Files
phx-frontend-plugin-webcomp…/latest/main.js

3839 lines
1.3 MiB

var VA=Object.defineProperty,jA=Object.defineProperties;var zA=Object.getOwnPropertyDescriptors;var Ku=Object.getOwnPropertySymbols;var ix=Object.prototype.hasOwnProperty,ox=Object.prototype.propertyIsEnumerable;var HA=(t,n)=>(n=Symbol[t])?n:Symbol.for("Symbol."+t);var rx=(t,n,e)=>n in t?VA(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,_=(t,n)=>{for(var e in n||={})ix.call(n,e)&&rx(t,e,n[e]);if(Ku)for(var e of Ku(n))ox.call(n,e)&&rx(t,e,n[e]);return t},A=(t,n)=>jA(t,zA(n));var Yu=t=>typeof t=="symbol"?t:t+"",Et=(t,n)=>{var e={};for(var r in t)ix.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&Ku)for(var r of Ku(t))n.indexOf(r)<0&&ox.call(t,r)&&(e[r]=t[r]);return e};var pt=(t,n,e)=>new Promise((r,i)=>{var o=l=>{try{a(e.next(l))}catch(c){i(c)}},s=l=>{try{a(e.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((e=e.apply(t,n)).next())}),Ig=function(t,n){this[0]=t,this[1]=n},sx=(t,n,e)=>{var r=(a,l,c,d)=>{try{var u=e[a](l),p=(l=u.value)instanceof Ig,f=u.done;Promise.resolve(p?l[0]:l).then(y=>p?r(a==="return"?a:"next",l[1]?{done:y.done,value:y.value}:y,c,d):c({value:y,done:f})).catch(y=>r("throw",y,c,d))}catch(y){d(y)}},i=(a,l,c,d)=>s[a]=u=>(l=new Promise((p,f,y)=>(y=()=>r(a,u,p,f),o?o.then(y):y())),d=()=>o===c&&(o=0),o=c=l.then(d,d),l),o,s={};return e=e.apply(t,n),s[HA("asyncIterator")]=()=>s,i("next"),i("throw"),i("return"),s};var Dg;function Zu(){return Dg}function bi(t){let n=Dg;return Dg=t,n}var ax=Symbol("NotFound");function Fa(t){return t===ax||t?.name==="\u0275NotFound"}var Ln=null,Ju=!1,kg=1,$A=null,yn=Symbol("SIGNAL");function Re(t){let n=Ln;return Ln=t,n}function np(){return Ln}var Ts={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function La(t){if(Ju)throw new Error("");if(Ln===null)return;Ln.consumerOnSignalRead(t);let n=Ln.producersTail;if(n!==void 0&&n.producer===t)return;let e,r=Ln.recomputing;if(r&&(e=n!==void 0?n.nextProducer:Ln.producers,e!==void 0&&e.producer===t)){Ln.producersTail=e,e.lastReadVersion=t.version;return}let i=t.consumersTail;if(i!==void 0&&i.consumer===Ln&&(!r||WA(i,Ln)))return;let o=ja(Ln),s={producer:t,consumer:Ln,nextProducer:e,prevConsumer:i,lastReadVersion:t.version,nextConsumer:void 0};Ln.producersTail=s,n!==void 0?n.nextProducer=s:Ln.producers=s,o&&ux(t,s)}function lx(){kg++}function rp(t){if(!(ja(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===kg)){if(!t.producerMustRecompute(t)&&!Va(t)){tp(t);return}t.producerRecomputeValue(t),tp(t)}}function Mg(t){if(t.consumers===void 0)return;let n=Ju;Ju=!0;try{for(let e=t.consumers;e!==void 0;e=e.nextConsumer){let r=e.consumer;r.dirty||UA(r)}}finally{Ju=n}}function Og(){return Ln?.consumerAllowSignalWrites!==!1}function UA(t){t.dirty=!0,Mg(t),t.consumerMarkedDirty?.(t)}function tp(t){t.dirty=!1,t.lastCleanEpoch=kg}function Es(t){return t&&cx(t),Re(t)}function cx(t){t.producersTail=void 0,t.recomputing=!0}function Ba(t,n){Re(n),t&&dx(t)}function dx(t){t.recomputing=!1;let n=t.producersTail,e=n!==void 0?n.nextProducer:t.producers;if(e!==void 0){if(ja(t))do e=Rg(e);while(e!==void 0);n!==void 0?n.nextProducer=void 0:t.producers=void 0}}function Va(t){for(let n=t.producers;n!==void 0;n=n.nextProducer){let e=n.producer,r=n.lastReadVersion;if(r!==e.version||(rp(e),r!==e.version))return!0}return!1}function Ss(t){if(ja(t)){let n=t.producers;for(;n!==void 0;)n=Rg(n)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function ux(t,n){let e=t.consumersTail,r=ja(t);if(e!==void 0?(n.nextConsumer=e.nextConsumer,e.nextConsumer=n):(n.nextConsumer=void 0,t.consumers=n),n.prevConsumer=e,t.consumersTail=n,!r)for(let i=t.producers;i!==void 0;i=i.nextProducer)ux(i.producer,i)}function Rg(t){let n=t.producer,e=t.nextProducer,r=t.nextConsumer,i=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,r!==void 0?r.prevConsumer=i:n.consumersTail=i,i!==void 0)i.nextConsumer=r;else if(n.consumers=r,!ja(n)){let o=n.producers;for(;o!==void 0;)o=Rg(o)}return e}function ja(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function ip(t){$A?.(t)}function WA(t,n){let e=n.producersTail;if(e!==void 0){let r=n.producers;do{if(r===t)return!0;if(r===e)break;r=r.nextProducer}while(r!==void 0)}return!1}function op(t,n){return Object.is(t,n)}function Mc(t,n){let e=Object.create(GA);e.computation=t,n!==void 0&&(e.equal=n);let r=()=>{if(rp(e),La(e),e.value===kc)throw e.error;return e.value};return r[yn]=e,ip(e),r}var Xu=Symbol("UNSET"),ep=Symbol("COMPUTING"),kc=Symbol("ERRORED"),GA=A(_({},Ts),{value:Xu,dirty:!0,error:null,equal:op,kind:"computed",producerMustRecompute(t){return t.value===Xu||t.value===ep},producerRecomputeValue(t){if(t.value===ep)throw new Error("");let n=t.value;t.value=ep;let e=Es(t),r,i=!1;try{r=t.computation(),Re(null),i=n!==Xu&&n!==kc&&r!==kc&&t.equal(n,r)}catch(o){r=kc,t.error=o}finally{Ba(t,e)}if(i){t.value=n;return}t.value=r,t.version++}});function qA(){throw new Error}var px=qA;function fx(t){px(t)}function Pg(t){px=t}var QA=null;function Ag(t,n){let e=Object.create(sp);e.value=t,n!==void 0&&(e.equal=n);let r=()=>hx(e);return r[yn]=e,ip(e),[r,s=>za(e,s),s=>Ng(e,s)]}function hx(t){return La(t),t.value}function za(t,n){Og()||fx(t),t.equal(t.value,n)||(t.value=n,KA(t))}function Ng(t,n){Og()||fx(t),za(t,n(t.value))}var sp=A(_({},Ts),{equal:op,value:void 0,kind:"signal"});function KA(t){t.version++,lx(),Mg(t),QA?.(t)}function Le(t){return typeof t=="function"}function Ha(t){let e=t(r=>{Error.call(r),r.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var ap=Ha(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:
${e.map((r,i)=>`${i+1}) ${r.toString()}`).join(`
`)}`:"",this.name="UnsubscriptionError",this.errors=e});function Is(t,n){if(t){let e=t.indexOf(n);0<=e&&t.splice(e,1)}}var qt=class t{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;let{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(let o of e)o.remove(this);else e.remove(this);let{initialTeardown:r}=this;if(Le(r))try{r()}catch(o){n=o instanceof ap?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{mx(o)}catch(s){n=n??[],s instanceof ap?n=[...n,...s.errors]:n.push(s)}}if(n)throw new ap(n)}}add(n){var e;if(n&&n!==this)if(this.closed)mx(n);else{if(n instanceof t){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(n)}}_hasParent(n){let{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){let{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){let{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&Is(e,n)}remove(n){let{_finalizers:e}=this;e&&Is(e,n),n instanceof t&&n._removeParent(this)}};qt.EMPTY=(()=>{let t=new qt;return t.closed=!0,t})();var Fg=qt.EMPTY;function lp(t){return t instanceof qt||t&&"closed"in t&&Le(t.remove)&&Le(t.add)&&Le(t.unsubscribe)}function mx(t){Le(t)?t():t.unsubscribe()}var jr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var $a={setTimeout(t,n,...e){let{delegate:r}=$a;return r?.setTimeout?r.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){let{delegate:n}=$a;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function cp(t){$a.setTimeout(()=>{let{onUnhandledError:n}=jr;if(n)n(t);else throw t})}function Oc(){}var gx=Lg("C",void 0,void 0);function yx(t){return Lg("E",void 0,t)}function bx(t){return Lg("N",t,void 0)}function Lg(t,n,e){return{kind:t,value:n,error:e}}var Ds=null;function Ua(t){if(jr.useDeprecatedSynchronousErrorHandling){let n=!Ds;if(n&&(Ds={errorThrown:!1,error:null}),t(),n){let{errorThrown:e,error:r}=Ds;if(Ds=null,e)throw r}}else t()}function vx(t){jr.useDeprecatedSynchronousErrorHandling&&Ds&&(Ds.errorThrown=!0,Ds.error=t)}var ks=class extends qt{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,lp(n)&&n.add(this)):this.destination=JA}static create(n,e,r){return new io(n,e,r)}next(n){this.isStopped?Vg(bx(n),this):this._next(n)}error(n){this.isStopped?Vg(yx(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Vg(gx,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},YA=Function.prototype.bind;function Bg(t,n){return YA.call(t,n)}var jg=class{constructor(n){this.partialObserver=n}next(n){let{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(r){dp(r)}}error(n){let{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(r){dp(r)}else dp(n)}complete(){let{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){dp(e)}}},io=class extends ks{constructor(n,e,r){super();let i;if(Le(n)||!n)i={next:n??void 0,error:e??void 0,complete:r??void 0};else{let o;this&&jr.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),i={next:n.next&&Bg(n.next,o),error:n.error&&Bg(n.error,o),complete:n.complete&&Bg(n.complete,o)}):i=n}this.destination=new jg(i)}};function dp(t){jr.useDeprecatedSynchronousErrorHandling?vx(t):cp(t)}function ZA(t){throw t}function Vg(t,n){let{onStoppedNotification:e}=jr;e&&$a.setTimeout(()=>e(t,n))}var JA={closed:!0,next:Oc,error:ZA,complete:Oc};var Wa=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Hn(t){return t}function zg(...t){return Hg(t)}function Hg(t){return t.length===0?Hn:t.length===1?t[0]:function(e){return t.reduce((r,i)=>i(r),e)}}var pe=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let r=new t;return r.source=this,r.operator=e,r}subscribe(e,r,i){let o=eN(e)?e:new io(e,r,i);return Ua(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(r){e.error(r)}}forEach(e,r){return r=_x(r),new r((i,o)=>{let s=new io({next:a=>{try{e(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(e){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(e)}[Wa](){return this}pipe(...e){return Hg(e)(this)}toPromise(e){return e=_x(e),new e((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return t.create=n=>new t(n),t})();function _x(t){var n;return(n=t??jr.Promise)!==null&&n!==void 0?n:Promise}function XA(t){return t&&Le(t.next)&&Le(t.error)&&Le(t.complete)}function eN(t){return t&&t instanceof ks||XA(t)&&lp(t)}function $g(t){return Le(t?.lift)}function ze(t){return n=>{if($g(n))return n.lift(function(e){try{return t(e,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function He(t,n,e,r,i){return new Ug(t,n,e,r,i)}var Ug=class extends ks{constructor(n,e,r,i,o,s){super(n),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(l){n.error(l)}}:super._next,this._error=i?function(a){try{i(a)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((n=this.onFinalize)===null||n===void 0||n.call(this))}}};function Ga(){return ze((t,n)=>{let e=null;t._refCount++;let r=He(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let i=t._connection,o=e;e=null,i&&(!o||i===o)&&i.unsubscribe(),n.unsubscribe()});t.subscribe(r),r.closed||(e=t.connect())})}var qa=class extends pe{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,$g(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){let n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new qt;let e=this.getSubject();n.add(this.source.subscribe(He(e,void 0,()=>{this._teardown(),e.complete()},r=>{this._teardown(),e.error(r)},()=>this._teardown()))),n.closed&&(this._connection=null,n=qt.EMPTY)}return n}refCount(){return Ga()(this)}};var wx=Ha(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var qe=(()=>{class t extends pe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let r=new up(this,this);return r.operator=e,r}_throwIfClosed(){if(this.closed)throw new wx}next(e){Ua(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(e)}})}error(e){Ua(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:r}=this;for(;r.length;)r.shift().error(e)}})}complete(){Ua(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){let{hasError:r,isStopped:i,observers:o}=this;return r||i?Fg:(this.currentObservers=null,o.push(e),new qt(()=>{this.currentObservers=null,Is(o,e)}))}_checkFinalizedStatuses(e){let{hasError:r,thrownError:i,isStopped:o}=this;r?e.error(i):o&&e.complete()}asObservable(){let e=new pe;return e.source=this,e}}return t.create=(n,e)=>new up(n,e),t})(),up=class extends qe{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.next)===null||r===void 0||r.call(e,n)}error(n){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.error)===null||r===void 0||r.call(e,n)}complete(){var n,e;(e=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||e===void 0||e.call(n)}_subscribe(n){var e,r;return(r=(e=this.source)===null||e===void 0?void 0:e.subscribe(n))!==null&&r!==void 0?r:Fg}};var an=class extends qe{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){let e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){let{hasError:n,thrownError:e,_value:r}=this;if(n)throw e;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}};var Rc={now(){return(Rc.delegate||Date).now()},delegate:void 0};var oo=class extends qe{constructor(n=1/0,e=1/0,r=Rc){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,e)}next(n){let{isStopped:e,_buffer:r,_infiniteTimeWindow:i,_timestampProvider:o,_windowTime:s}=this;e||(r.push(n),!i&&r.push(o.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(n),{_infiniteTimeWindow:r,_buffer:i}=this,o=i.slice();for(let s=0;s<o.length&&!n.closed;s+=r?1:2)n.next(o[s]);return this._checkFinalizedStatuses(n),e}_trimBuffer(){let{_bufferSize:n,_timestampProvider:e,_buffer:r,_infiniteTimeWindow:i}=this,o=(i?1:2)*n;if(n<1/0&&o<r.length&&r.splice(0,r.length-o),!i){let s=e.now(),a=0;for(let l=1;l<r.length&&r[l]<=s;l+=2)a=l;a&&r.splice(0,a+1)}}};var pp=class extends qt{constructor(n,e){super()}schedule(n,e=0){return this}};var Pc={setInterval(t,n,...e){let{delegate:r}=Pc;return r?.setInterval?r.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){let{delegate:n}=Pc;return(n?.clearInterval||clearInterval)(t)},delegate:void 0};var Qa=class extends pp{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){var r;if(this.closed)return this;this.state=n;let i=this.id,o=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(o,i,e)),this.pending=!0,this.delay=e,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(o,this.id,e),this}requestAsyncId(n,e,r=0){return Pc.setInterval(n.flush.bind(n,this),r)}recycleAsyncId(n,e,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return e;e!=null&&Pc.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(n,e);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let r=!1,i;try{this.work(n)}catch(o){r=!0,i=o||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){let{id:n,scheduler:e}=this,{actions:r}=e;this.work=this.state=this.scheduler=null,this.pending=!1,Is(r,this),n!=null&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}};var Ka=class t{constructor(n,e=t.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,r){return new this.schedulerActionCtor(this,n).schedule(r,e)}};Ka.now=Rc.now;var Ya=class extends Ka{constructor(n,e=Ka.now){super(n,e),this.actions=[],this._active=!1}flush(n){let{actions:e}=this;if(this._active){e.push(n);return}let r;this._active=!0;do if(r=n.execute(n.state,n.delay))break;while(n=e.shift());if(this._active=!1,r){for(;n=e.shift();)n.unsubscribe();throw r}}};var Wg=new Ya(Qa),Cx=Wg;var fp=class extends Qa{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}schedule(n,e=0){return e>0?super.schedule(n,e):(this.delay=e,this.state=n,this.scheduler.flush(this),this)}execute(n,e){return e>0||this.closed?super.execute(n,e):this._execute(n,e)}requestAsyncId(n,e,r=0){return r!=null&&r>0||r==null&&this.delay>0?super.requestAsyncId(n,e,r):(n.flush(this),0)}};var hp=class extends Ya{};var Gg=new hp(fp);var Pt=new pe(t=>t.complete());function mp(t){return t&&Le(t.schedule)}function qg(t){return t[t.length-1]}function gp(t){return Le(qg(t))?t.pop():void 0}function vi(t){return mp(qg(t))?t.pop():void 0}function xx(t,n){return typeof qg(t)=="number"?t.pop():n}var Ac=function(){return Ac=Object.assign||function(n){for(var e,r=1,i=arguments.length;r<i;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o])}return n},Ac.apply(this,arguments)};function Ex(t,n,e,r){function i(o){return o instanceof e?o:new e(function(s){s(o)})}return new(e||(e=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):i(d.value).then(a,l)}c((r=r.apply(t,n||[])).next())})}function Tx(t){var n=typeof Symbol=="function"&&Symbol.iterator,e=n&&t[n],r=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ms(t){return this instanceof Ms?(this.v=t,this):new Ms(t)}function Sx(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e.apply(t,n||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(f){return function(y){return Promise.resolve(y).then(f,u)}}function a(f,y){r[f]&&(i[f]=function(b){return new Promise(function(v,w){o.push([f,b,v,w])>1||l(f,b)})},y&&(i[f]=y(i[f])))}function l(f,y){try{c(r[f](y))}catch(b){p(o[0][3],b)}}function c(f){f.value instanceof Ms?Promise.resolve(f.value.v).then(d,u):p(o[0][2],f)}function d(f){l("next",f)}function u(f){l("throw",f)}function p(f,y){f(y),o.shift(),o.length&&l(o[0][0],o[0][1])}}function Ix(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t[Symbol.asyncIterator],e;return n?n.call(t):(t=typeof Tx=="function"?Tx(t):t[Symbol.iterator](),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(o){e[o]=t[o]&&function(s){return new Promise(function(a,l){s=t[o](s),i(a,l,s.done,s.value)})}}function i(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}}var yp=t=>t&&typeof t.length=="number"&&typeof t!="function";function bp(t){return Le(t?.then)}function vp(t){return Le(t[Wa])}function _p(t){return Symbol.asyncIterator&&Le(t?.[Symbol.asyncIterator])}function wp(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function tN(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Cp=tN();function xp(t){return Le(t?.[Cp])}function Tp(t){return Sx(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:r,done:i}=yield Ms(e.read());if(i)return yield Ms(void 0);yield yield Ms(r)}}finally{e.releaseLock()}})}function Ep(t){return Le(t?.getReader)}function At(t){if(t instanceof pe)return t;if(t!=null){if(vp(t))return nN(t);if(yp(t))return rN(t);if(bp(t))return iN(t);if(_p(t))return Dx(t);if(xp(t))return oN(t);if(Ep(t))return sN(t)}throw wp(t)}function nN(t){return new pe(n=>{let e=t[Wa]();if(Le(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function rN(t){return new pe(n=>{for(let e=0;e<t.length&&!n.closed;e++)n.next(t[e]);n.complete()})}function iN(t){return new pe(n=>{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,cp)})}function oN(t){return new pe(n=>{for(let e of t)if(n.next(e),n.closed)return;n.complete()})}function Dx(t){return new pe(n=>{aN(t,n).catch(e=>n.error(e))})}function sN(t){return Dx(Tp(t))}function aN(t,n){var e,r,i,o;return Ex(this,void 0,void 0,function*(){try{for(e=Ix(t);r=yield e.next(),!r.done;){let s=r.value;if(n.next(s),n.closed)return}}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=e.return)&&(yield o.call(e))}finally{if(i)throw i.error}}n.complete()})}function Zn(t,n,e,r=0,i=!1){let o=n.schedule(function(){e(),i?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(o),!i)return o}function Os(t,n=0){return ze((e,r)=>{e.subscribe(He(r,i=>Zn(r,t,()=>r.next(i),n),()=>Zn(r,t,()=>r.complete(),n),i=>Zn(r,t,()=>r.error(i),n)))})}function Sp(t,n=0){return ze((e,r)=>{r.add(t.schedule(()=>e.subscribe(r),n))})}function kx(t,n){return At(t).pipe(Sp(n),Os(n))}function Mx(t,n){return At(t).pipe(Sp(n),Os(n))}function Ox(t,n){return new pe(e=>{let r=0;return n.schedule(function(){r===t.length?e.complete():(e.next(t[r++]),e.closed||this.schedule())})})}function Rx(t,n){return new pe(e=>{let r;return Zn(e,n,()=>{r=t[Cp](),Zn(e,n,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){e.error(s);return}o?e.complete():e.next(i)},0,!0)}),()=>Le(r?.return)&&r.return()})}function Ip(t,n){if(!t)throw new Error("Iterable cannot be null");return new pe(e=>{Zn(e,n,()=>{let r=t[Symbol.asyncIterator]();Zn(e,n,()=>{r.next().then(i=>{i.done?e.complete():e.next(i.value)})},0,!0)})})}function Px(t,n){return Ip(Tp(t),n)}function Ax(t,n){if(t!=null){if(vp(t))return kx(t,n);if(yp(t))return Ox(t,n);if(bp(t))return Mx(t,n);if(_p(t))return Ip(t,n);if(xp(t))return Rx(t,n);if(Ep(t))return Px(t,n)}throw wp(t)}function ft(t,n){return n?Ax(t,n):At(t)}function ve(...t){let n=vi(t);return ft(t,n)}function _i(t,n){let e=Le(t)?t:()=>t,r=i=>i.error(e());return new pe(n?i=>n.schedule(r,0,i):r)}var Lo=class t{constructor(n,e,r){this.kind=n,this.value=e,this.error=r,this.hasValue=n==="N"}observe(n){return lN(this,n)}do(n,e,r){let{kind:i,value:o,error:s}=this;return i==="N"?n?.(o):i==="E"?e?.(s):r?.()}accept(n,e,r){var i;return Le((i=n)===null||i===void 0?void 0:i.next)?this.observe(n):this.do(n,e,r)}toObservable(){let{kind:n,value:e,error:r}=this,i=n==="N"?ve(e):n==="E"?_i(()=>r):n==="C"?Pt:0;if(!i)throw new TypeError(`Unexpected notification kind ${n}`);return i}static createNext(n){return new t("N",n)}static createError(n){return new t("E",void 0,n)}static createComplete(){return t.completeNotification}};Lo.completeNotification=new Lo("C");function lN(t,n){var e,r,i;let{kind:o,value:s,error:a}=t;if(typeof o!="string")throw new TypeError('Invalid notification, missing "kind"');o==="N"?(e=n.next)===null||e===void 0||e.call(n,s):o==="E"?(r=n.error)===null||r===void 0||r.call(n,a):(i=n.complete)===null||i===void 0||i.call(n)}function Qg(t){return!!t&&(t instanceof pe||Le(t.lift)&&Le(t.subscribe))}var zr=Ha(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Cr(t,n){let e=typeof n=="object";return new Promise((r,i)=>{let o=!1,s;t.subscribe({next:a=>{s=a,o=!0},error:i,complete:()=>{o?r(s):e?r(n.defaultValue):i(new zr)}})})}function Nx(t){return t instanceof Date&&!isNaN(t)}function be(t,n){return ze((e,r)=>{let i=0;e.subscribe(He(r,o=>{r.next(t.call(n,o,i++))}))})}var{isArray:cN}=Array;function dN(t,n){return cN(n)?t(...n):t(n)}function Dp(t){return be(n=>dN(t,n))}var{isArray:uN}=Array,{getPrototypeOf:pN,prototype:fN,keys:hN}=Object;function kp(t){if(t.length===1){let n=t[0];if(uN(n))return{args:n,keys:null};if(mN(n)){let e=hN(n);return{args:e.map(r=>n[r]),keys:e}}}return{args:t,keys:null}}function mN(t){return t&&typeof t=="object"&&pN(t)===fN}function Mp(t,n){return t.reduce((e,r,i)=>(e[r]=n[i],e),{})}function Op(...t){let n=vi(t),e=gp(t),{args:r,keys:i}=kp(t);if(r.length===0)return ft([],n);let o=new pe(gN(r,n,i?s=>Mp(i,s):Hn));return e?o.pipe(Dp(e)):o}function gN(t,n,e=Hn){return r=>{Fx(n,()=>{let{length:i}=t,o=new Array(i),s=i,a=i;for(let l=0;l<i;l++)Fx(n,()=>{let c=ft(t[l],n),d=!1;c.subscribe(He(r,u=>{o[l]=u,d||(d=!0,a--),a||r.next(e(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}function Fx(t,n,e){t?Zn(e,t,n):n()}function Lx(t,n,e,r,i,o,s,a){let l=[],c=0,d=0,u=!1,p=()=>{u&&!l.length&&!c&&n.complete()},f=b=>c<r?y(b):l.push(b),y=b=>{o&&n.next(b),c++;let v=!1;At(e(b,d++)).subscribe(He(n,w=>{i?.(w),o?f(w):n.next(w)},()=>{v=!0},void 0,()=>{if(v)try{for(c--;l.length&&c<r;){let w=l.shift();s?Zn(n,s,()=>y(w)):y(w)}p()}catch(w){n.error(w)}}))};return t.subscribe(He(n,f,()=>{u=!0,p()})),()=>{a?.()}}function Nt(t,n,e=1/0){return Le(n)?Nt((r,i)=>be((o,s)=>n(r,o,i,s))(At(t(r,i))),e):(typeof n=="number"&&(e=n),ze((r,i)=>Lx(r,i,t,e)))}function Rp(t=1/0){return Nt(Hn,t)}function Bx(){return Rp(1)}function wi(...t){return Bx()(ft(t,vi(t)))}function Nc(t){return new pe(n=>{At(t()).subscribe(n)})}function Kg(...t){let n=gp(t),{args:e,keys:r}=kp(t),i=new pe(o=>{let{length:s}=e;if(!s){o.complete();return}let a=new Array(s),l=s,c=s;for(let d=0;d<s;d++){let u=!1;At(e[d]).subscribe(He(o,p=>{u||(u=!0,c--),a[d]=p},()=>l--,void 0,()=>{(!l||!u)&&(c||o.next(r?Mp(r,a):a),o.complete())}))}});return n?i.pipe(Dp(n)):i}function Yg(t=0,n,e=Cx){let r=-1;return n!=null&&(mp(n)?e=n:r=n),new pe(i=>{let o=Nx(t)?+t-e.now():t;o<0&&(o=0);let s=0;return e.schedule(function(){i.closed||(i.next(s++),0<=r?this.schedule(void 0,r):i.complete())},o)})}function Zg(...t){let n=vi(t),e=xx(t,1/0),r=t;return r.length?r.length===1?At(r[0]):Rp(e)(ft(r,n)):Pt}function nn(t,n){return ze((e,r)=>{let i=0;e.subscribe(He(r,o=>t.call(n,o,i++)&&r.next(o)))})}function dr(t){return ze((n,e)=>{let r=null,i=!1,o;r=n.subscribe(He(e,void 0,void 0,s=>{o=At(t(s,dr(t)(n))),r?(r.unsubscribe(),r=null,o.subscribe(e)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(e))})}function Vx(t,n,e,r,i){return(o,s)=>{let a=e,l=n,c=0;o.subscribe(He(s,d=>{let u=c++;l=a?t(l,d,u):(a=!0,d),r&&s.next(l)},i&&(()=>{a&&s.next(l),s.complete()})))}}function Bo(t,n){return Le(n)?Nt(t,n,1):Nt(t,1)}function Jg(t,n=Wg){return ze((e,r)=>{let i=null,o=null,s=null,a=()=>{if(i){i.unsubscribe(),i=null;let c=o;o=null,r.next(c)}};function l(){let c=s+t,d=n.now();if(d<c){i=this.schedule(void 0,c-d),r.add(i);return}a()}e.subscribe(He(r,c=>{o=c,s=n.now(),i||(i=n.schedule(l,t),r.add(i))},()=>{a(),r.complete()},void 0,()=>{o=i=null}))})}function Vo(t){return ze((n,e)=>{let r=!1;n.subscribe(He(e,i=>{r=!0,e.next(i)},()=>{r||e.next(t),e.complete()}))})}function so(t){return t<=0?()=>Pt:ze((n,e)=>{let r=0;n.subscribe(He(e,i=>{++r<=t&&(e.next(i),t<=r&&e.complete())}))})}function Fc(t,n=Hn){return t=t??yN,ze((e,r)=>{let i,o=!0;e.subscribe(He(r,s=>{let a=n(s);(o||!t(i,a))&&(o=!1,i=a,r.next(s))}))})}function yN(t,n){return t===n}function Pp(t=bN){return ze((n,e)=>{let r=!1;n.subscribe(He(e,i=>{r=!0,e.next(i)},()=>r?e.complete():e.error(t())))})}function bN(){return new zr}function Ci(t){return ze((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function ao(t,n){let e=arguments.length>=2;return r=>r.pipe(t?nn((i,o)=>t(i,o,r)):Hn,so(1),e?Vo(n):Pp(()=>new zr))}function Za(t){return t<=0?()=>Pt:ze((n,e)=>{let r=[];n.subscribe(He(e,i=>{r.push(i),t<r.length&&r.shift()},()=>{for(let i of r)e.next(i);e.complete()},void 0,()=>{r=null}))})}function Xg(t,n){let e=arguments.length>=2;return r=>r.pipe(t?nn((i,o)=>t(i,o,r)):Hn,Za(1),e?Vo(n):Pp(()=>new zr))}function e0(){return ze((t,n)=>{t.subscribe(He(n,e=>{n.next(Lo.createNext(e))},()=>{n.next(Lo.createComplete()),n.complete()},e=>{n.next(Lo.createError(e)),n.complete()}))})}function t0(t,n){return ze(Vx(t,n,arguments.length>=2,!0))}function xi(t={}){let{connector:n=()=>new qe,resetOnError:e=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=t;return o=>{let s,a,l,c=0,d=!1,u=!1,p=()=>{a?.unsubscribe(),a=void 0},f=()=>{p(),s=l=void 0,d=u=!1},y=()=>{let b=s;f(),b?.unsubscribe()};return ze((b,v)=>{c++,!u&&!d&&p();let w=l=l??n();v.add(()=>{c--,c===0&&!u&&!d&&(a=n0(y,i))}),w.subscribe(v),!s&&c>0&&(s=new io({next:D=>w.next(D),error:D=>{u=!0,p(),a=n0(f,e,D),w.error(D)},complete:()=>{d=!0,p(),a=n0(f,r),w.complete()}}),At(b).subscribe(s))})(o)}}function n0(t,n,...e){if(n===!0){t();return}if(n===!1)return;let r=new io({next:()=>{r.unsubscribe(),t()}});return At(n(...e)).subscribe(r)}function Rs(t,n,e){let r,i=!1;return t&&typeof t=="object"?{bufferSize:r=1/0,windowTime:n=1/0,refCount:i=!1,scheduler:e}=t:r=t??1/0,xi({connector:()=>new oo(r,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}function Lc(...t){let n=vi(t);return ze((e,r)=>{(n?wi(t,e,n):wi(t,e)).subscribe(r)})}function bn(t,n){return ze((e,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();e.subscribe(He(r,l=>{i?.unsubscribe();let c=0,d=o++;At(t(l,d)).subscribe(i=He(r,u=>r.next(n?n(l,u,d,c++):u),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function Ap(t){return ze((n,e)=>{At(t).subscribe(He(e,()=>e.complete(),Oc)),!e.closed&&n.subscribe(e)})}function St(t,n,e){let r=Le(t)||n||e?{next:t,error:n,complete:e}:t;return r?ze((i,o)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;i.subscribe(He(o,l=>{var c;(c=r.next)===null||c===void 0||c.call(r,l),o.next(l)},()=>{var l;a=!1,(l=r.complete)===null||l===void 0||l.call(r),o.complete()},l=>{var c;a=!1,(c=r.error)===null||c===void 0||c.call(r,l),o.error(l)},()=>{var l,c;a&&((l=r.unsubscribe)===null||l===void 0||l.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):Hn}function jx(t){let n=Re(null);try{return t()}finally{Re(n)}}var zx=A(_({},Ts),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function Hx(t){if(t.dirty=!1,t.version>0&&!Va(t))return;t.version++;let n=Es(t);try{t.cleanup(),t.fn()}finally{Ba(t,n)}}var Bp="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",U=class extends Error{code;constructor(n,e){super(Ho(n,e)),this.code=n}};function vN(t){return`NG0${Math.abs(t)}`}function Ho(t,n){return`${vN(t)}${n?": "+n:""}`}function yt(t){for(let n in t)if(t[n]===yt)return n;throw Error("")}function Wx(t,n){for(let e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function co(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(co).join(", ")}]`;if(t==null)return""+t;let n=t.overriddenName||t.name;if(n)return`${n}`;let e=t.toString();if(e==null)return""+e;let r=e.indexOf(`
`);return r>=0?e.slice(0,r):e}function Vp(t,n){return t?n?`${t} ${n}`:t:n||""}var _N=yt({__forward_ref__:yt});function Ht(t){return t.__forward_ref__=Ht,t.toString=function(){return co(this())},t}function ln(t){return f0(t)?t():t}function f0(t){return typeof t=="function"&&t.hasOwnProperty(_N)&&t.__forward_ref__===Ht}function N(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Ie(t){return{providers:t.providers||[],imports:t.imports||[]}}function Hc(t){return wN(t,jp)}function h0(t){return Hc(t)!==null}function wN(t,n){return t.hasOwnProperty(n)&&t[n]||null}function CN(t){let n=t?.[jp]??null;return n||null}function i0(t){return t&&t.hasOwnProperty(Fp)?t[Fp]:null}var jp=yt({\u0275prov:yt}),Fp=yt({\u0275inj:yt}),H=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(n,e){this._desc=n,this.\u0275prov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.\u0275prov=N({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function m0(t){return t&&!!t.\u0275providers}var g0=yt({\u0275cmp:yt}),y0=yt({\u0275dir:yt}),b0=yt({\u0275pipe:yt}),v0=yt({\u0275mod:yt}),Vc=yt({\u0275fac:yt}),Ls=yt({__NG_ELEMENT_ID__:yt}),$x=yt({__NG_ENV_ID__:yt});function Bs(t){return typeof t=="string"?t:t==null?"":String(t)}function Gx(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Bs(t)}var qx=yt({ngErrorCode:yt}),xN=yt({ngErrorMessage:yt}),TN=yt({ngTokenPath:yt});function _0(t,n){return Qx("",-200,n)}function zp(t,n){throw new U(-201,!1)}function Qx(t,n,e){let r=new U(n,t);return r[qx]=n,r[xN]=t,e&&(r[TN]=e),r}function EN(t){return t[qx]}var o0;function Kx(){return o0}function $n(t){let n=o0;return o0=t,n}function w0(t,n,e){let r=Hc(t);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(e&8)return null;if(n!==void 0)return n;zp(t,"Injector")}var SN={},Ps=SN,IN="__NG_DI_FLAG__",s0=class{injector;constructor(n){this.injector=n}retrieve(n,e){let r=As(e)||0;try{return this.injector.get(n,r&8?null:Ps,r)}catch(i){if(Fa(i))return i;throw i}}};function DN(t,n=0){let e=Zu();if(e===void 0)throw new U(-203,!1);if(e===null)return w0(t,void 0,n);{let r=kN(n),i=e.retrieve(t,r);if(Fa(i)){if(r.optional)return null;throw i}return i}}function me(t,n=0){return(Kx()||DN)(ln(t),n)}function x(t,n){return me(t,As(n))}function As(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function kN(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function a0(t){let n=[];for(let e=0;e<t.length;e++){let r=ln(t[e]);if(Array.isArray(r)){if(r.length===0)throw new U(900,!1);let i,o=0;for(let s=0;s<r.length;s++){let a=r[s],l=MN(a);typeof l=="number"?l===-1?i=a.token:o|=l:i=a}n.push(me(i,o))}else n.push(me(r))}return n}function MN(t){return t[IN]}function jo(t,n){let e=t.hasOwnProperty(Vc);return e?t[Vc]:null}function Yx(t,n,e){if(t.length!==n.length)return!1;for(let r=0;r<t.length;r++){let i=t[r],o=n[r];if(e&&(i=e(i),o=e(o)),o!==i)return!1}return!0}function Zx(t){return t.flat(Number.POSITIVE_INFINITY)}function Hp(t,n){t.forEach(e=>Array.isArray(e)?Hp(e,n):n(e))}function C0(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function $c(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function Jx(t,n){let e=[];for(let r=0;r<t;r++)e.push(n);return e}function Xx(t,n,e,r){let i=t.length;if(i==n)t.push(e,r);else if(i===1)t.push(r,t[0]),t[0]=e;else{for(i--,t.push(t[i-1],t[i]);i>n;){let o=i-2;t[i]=t[o],i--}t[n]=e,t[n+1]=r}}function Uc(t,n,e){let r=Xa(t,n);return r>=0?t[r|1]=e:(r=~r,Xx(t,r,n,e)),r}function $p(t,n){let e=Xa(t,n);if(e>=0)return t[e|1]}function Xa(t,n){return ON(t,n,1)}function ON(t,n,e){let r=0,i=t.length>>e;for(;i!==r;){let o=r+(i-r>>1),s=t[o<<e];if(n===s)return o<<e;s>n?i=o:r=o+1}return~(i<<e)}var Hr={},Bn=[],uo=new H(""),x0=new H("",-1),T0=new H(""),jc=class{get(n,e=Ps){if(e===Ps){let i=Qx("",-201);throw i.name="\u0275NotFound",i}return e}};function E0(t){return t[v0]||null}function $o(t){return t[g0]||null}function Up(t){return t[y0]||null}function eT(t){return t[b0]||null}function Tr(t){return{\u0275providers:t}}function tT(t){return Tr([{provide:uo,multi:!0,useValue:t}])}function nT(...t){return{\u0275providers:S0(!0,t),\u0275fromNgModule:!0}}function S0(t,...n){let e=[],r=new Set,i,o=s=>{e.push(s)};return Hp(n,s=>{let a=s;Lp(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&rT(i,o),e}function rT(t,n){for(let e=0;e<t.length;e++){let{ngModule:r,providers:i}=t[e];I0(i,o=>{n(o,r)})}}function Lp(t,n,e,r){if(t=ln(t),!t)return!1;let i=null,o=i0(t),s=!o&&$o(t);if(!o&&!s){let l=t.ngModule;if(o=i0(l),o)i=l;else return!1}else{if(s&&!s.standalone)return!1;i=t}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of l)Lp(c,n,e,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let c;Hp(o.imports,d=>{Lp(d,n,e,r)&&(c||=[],c.push(d))}),c!==void 0&&rT(c,n)}if(!a){let c=jo(i)||(()=>new i);n({provide:i,useFactory:c,deps:Bn},i),n({provide:T0,useValue:i,multi:!0},i),n({provide:uo,useValue:()=>me(i),multi:!0},i)}let l=o.providers;if(l!=null&&!a){let c=t;I0(l,d=>{n(d,c)})}}else return!1;return i!==t&&t.providers!==void 0}function I0(t,n){for(let e of t)m0(e)&&(e=e.\u0275providers),Array.isArray(e)?I0(e,n):n(e)}var RN=yt({provide:String,useValue:yt});function iT(t){return t!==null&&typeof t=="object"&&RN in t}function PN(t){return!!(t&&t.useExisting)}function AN(t){return!!(t&&t.useFactory)}function Ns(t){return typeof t=="function"}function oT(t){return!!t.useClass}var Wc=new H(""),Np={},Ux={},r0;function Gc(){return r0===void 0&&(r0=new jc),r0}var Jt=class{},Fs=class extends Jt{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(n,e,r,i){super(),this.parent=e,this.source=r,this.scopes=i,c0(n,s=>this.processProvider(s)),this.records.set(x0,Ja(void 0,this)),i.has("environment")&&this.records.set(Jt,Ja(void 0,this));let o=this.records.get(Wc);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(T0,Bn,{self:!0}))}retrieve(n,e){let r=As(e)||0;try{return this.get(n,Ps,r)}catch(i){if(Fa(i))return i;throw i}}destroy(){Bc(this),this._destroyed=!0;let n=Re(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of e)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Re(n)}}onDestroy(n){return Bc(this),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){Bc(this);let e=bi(this),r=$n(void 0),i;try{return n()}finally{bi(e),$n(r)}}get(n,e=Ps,r){if(Bc(this),n.hasOwnProperty($x))return n[$x](this);let i=As(r),o,s=bi(this),a=$n(void 0);try{if(!(i&4)){let c=this.records.get(n);if(c===void 0){let d=VN(n)&&Hc(n);d&&this.injectableDefInScope(d)?c=Ja(l0(n),Np):c=null,this.records.set(n,c)}if(c!=null)return this.hydrate(n,c,i)}let l=i&2?Gc():this.parent;return e=i&8&&e===Ps?null:e,l.get(n,e)}catch(l){let c=EN(l);throw c===-200||c===-201?new U(c,null):l}finally{$n(a),bi(s)}}resolveInjectorInitializers(){let n=Re(null),e=bi(this),r=$n(void 0),i;try{let o=this.get(uo,Bn,{self:!0});for(let s of o)s()}finally{bi(e),$n(r),Re(n)}}toString(){let n=[],e=this.records;for(let r of e.keys())n.push(co(r));return`R3Injector[${n.join(", ")}]`}processProvider(n){n=ln(n);let e=Ns(n)?n:ln(n&&n.provide),r=FN(n);if(!Ns(n)&&n.multi===!0){let i=this.records.get(e);i||(i=Ja(void 0,Np,!0),i.factory=()=>a0(i.multi),this.records.set(e,i)),e=n,i.multi.push(n)}this.records.set(e,r)}hydrate(n,e,r){let i=Re(null);try{if(e.value===Ux)throw _0(co(n));return e.value===Np&&(e.value=Ux,e.value=e.factory(void 0,r)),typeof e.value=="object"&&e.value&&BN(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{Re(i)}}injectableDefInScope(n){if(!n.providedIn)return!1;let e=ln(n.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){let e=this._onDestroyHooks.indexOf(n);e!==-1&&this._onDestroyHooks.splice(e,1)}};function l0(t){let n=Hc(t),e=n!==null?n.factory:jo(t);if(e!==null)return e;if(t instanceof H)throw new U(204,!1);if(t instanceof Function)return NN(t);throw new U(204,!1)}function NN(t){if(t.length>0)throw new U(204,!1);let e=CN(t);return e!==null?()=>e.factory(t):()=>new t}function FN(t){if(iT(t))return Ja(void 0,t.useValue);{let n=D0(t);return Ja(n,Np)}}function D0(t,n,e){let r;if(Ns(t)){let i=ln(t);return jo(i)||l0(i)}else if(iT(t))r=()=>ln(t.useValue);else if(AN(t))r=()=>t.useFactory(...a0(t.deps||[]));else if(PN(t))r=(i,o)=>me(ln(t.useExisting),o!==void 0&&o&8?8:void 0);else{let i=ln(t&&(t.useClass||t.provide));if(LN(t))r=()=>new i(...a0(t.deps));else return jo(i)||l0(i)}return r}function Bc(t){if(t.destroyed)throw new U(205,!1)}function Ja(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function LN(t){return!!t.deps}function BN(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function VN(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function c0(t,n){for(let e of t)Array.isArray(e)?c0(e,n):e&&m0(e)?c0(e.\u0275providers,n):n(e)}function In(t,n){let e;t instanceof Fs?(Bc(t),e=t):e=new s0(t);let r,i=bi(e),o=$n(void 0);try{return n()}finally{bi(i),$n(o)}}function sT(){return Kx()!==void 0||Zu()!=null}var $r=0,Ce=1,Se=2,cn=3,Er=4,Un=5,Vs=6,el=7,Xt=8,po=9,Ti=10,It=11,tl=12,k0=13,js=14,Wn=15,Uo=16,zs=17,Ei=18,qc=19,M0=20,lo=21,Wp=22,fo=23,pr=24,Hs=25,$s=26,Vt=27,aT=1,O0=6,Wo=7,Qc=8,Us=9,Qt=10;function Si(t){return Array.isArray(t)&&typeof t[aT]=="object"}function Ur(t){return Array.isArray(t)&&t[aT]===!0}function R0(t){return(t.flags&4)!==0}function Go(t){return t.componentOffset>-1}function nl(t){return(t.flags&1)===1}function Wr(t){return!!t.template}function rl(t){return(t[Se]&512)!==0}function Ws(t){return(t[Se]&256)===256}var P0="svg",lT="math";function Sr(t){for(;Array.isArray(t);)t=t[$r];return t}function A0(t,n){return Sr(n[t])}function Gr(t,n){return Sr(n[t.index])}function Kc(t,n){return t.data[n]}function N0(t,n){return t[n]}function F0(t,n,e,r){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=r}function Ir(t,n){let e=n[t];return Si(e)?e:e[$r]}function cT(t){return(t[Se]&4)===4}function Gp(t){return(t[Se]&128)===128}function dT(t){return Ur(t[cn])}function Dr(t,n){return n==null?null:t[n]}function L0(t){t[zs]=0}function qp(t){t[Se]&1024||(t[Se]|=1024,Gp(t)&&qo(t))}function uT(t,n){for(;t>0;)n=n[js],t--;return n}function il(t){return!!(t[Se]&9216||t[pr]?.dirty)}function Qp(t){t[Ti].changeDetectionScheduler?.notify(8),t[Se]&64&&(t[Se]|=1024),il(t)&&qo(t)}function qo(t){t[Ti].changeDetectionScheduler?.notify(0);let n=zo(t);for(;n!==null&&!(n[Se]&8192||(n[Se]|=8192,!Gp(n)));)n=zo(n)}function B0(t,n){if(Ws(t))throw new U(911,!1);t[lo]===null&&(t[lo]=[]),t[lo].push(n)}function pT(t,n){if(t[lo]===null)return;let e=t[lo].indexOf(n);e!==-1&&t[lo].splice(e,1)}function zo(t){let n=t[cn];return Ur(n)?n[cn]:n}function V0(t){return t[el]??=[]}function j0(t){return t.cleanup??=[]}function fT(t,n,e,r){let i=V0(n);i.push(e),t.firstCreatePass&&j0(t).push(r,i.length-1)}var Ge={lFrame:ET(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var d0=!1;function hT(){return Ge.lFrame.elementDepthCount}function mT(){Ge.lFrame.elementDepthCount++}function z0(){Ge.lFrame.elementDepthCount--}function Kp(){return Ge.bindingsEnabled}function H0(){return Ge.skipHydrationRootTNode!==null}function $0(t){return Ge.skipHydrationRootTNode===t}function U0(){Ge.skipHydrationRootTNode=null}function _e(){return Ge.lFrame.lView}function jt(){return Ge.lFrame.tView}function S(t){return Ge.lFrame.contextLView=t,t[Xt]}function I(t){return Ge.lFrame.contextLView=null,t}function vn(){let t=W0();for(;t!==null&&t.type===64;)t=t.parent;return t}function W0(){return Ge.lFrame.currentTNode}function gT(){let t=Ge.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function ol(t,n){let e=Ge.lFrame;e.currentTNode=t,e.isParent=n}function G0(){return Ge.lFrame.isParent}function q0(){Ge.lFrame.isParent=!1}function yT(){return Ge.lFrame.contextLView}function Q0(){return d0}function sl(t){let n=d0;return d0=t,n}function Ii(){let t=Ge.lFrame,n=t.bindingRootIndex;return n===-1&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function bT(){return Ge.lFrame.bindingIndex}function vT(t){return Ge.lFrame.bindingIndex=t}function Qo(){return Ge.lFrame.bindingIndex++}function Yp(t){let n=Ge.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function _T(){return Ge.lFrame.inI18n}function wT(t,n){let e=Ge.lFrame;e.bindingIndex=e.bindingRootIndex=t,Zp(n)}function CT(){return Ge.lFrame.currentDirectiveIndex}function Zp(t){Ge.lFrame.currentDirectiveIndex=t}function xT(t){let n=Ge.lFrame.currentDirectiveIndex;return n===-1?null:t[n]}function Jp(){return Ge.lFrame.currentQueryIndex}function Yc(t){Ge.lFrame.currentQueryIndex=t}function jN(t){let n=t[Ce];return n.type===2?n.declTNode:n.type===1?t[Un]:null}function K0(t,n,e){if(e&4){let i=n,o=t;for(;i=i.parent,i===null&&!(e&1);)if(i=jN(o),i===null||(o=o[js],i.type&10))break;if(i===null)return!1;n=i,t=o}let r=Ge.lFrame=TT();return r.currentTNode=n,r.lView=t,!0}function Xp(t){let n=TT(),e=t[Ce];Ge.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function TT(){let t=Ge.lFrame,n=t===null?null:t.child;return n===null?ET(t):n}function ET(t){let n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=n),n}function ST(){let t=Ge.lFrame;return Ge.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Y0=ST;function ef(){let t=ST();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function IT(t){return(Ge.lFrame.contextLView=uT(t,Ge.lFrame.contextLView))[Xt]}function Di(){return Ge.lFrame.selectedIndex}function Ko(t){Ge.lFrame.selectedIndex=t}function Zc(){let t=Ge.lFrame;return Kc(t.tView,t.selectedIndex)}function G(){Ge.lFrame.currentNamespace=P0}function Z0(){return Ge.lFrame.currentNamespace}var DT=!0;function tf(){return DT}function Jc(t){DT=t}function u0(t,n=null,e=null,r){let i=J0(t,n,e,r);return i.resolveInjectorInitializers(),i}function J0(t,n=null,e=null,r,i=new Set){let o=[e||Bn,nT(t)];return r=r||(typeof t=="object"?void 0:co(t)),new Fs(o,n||Gc(),r||null,i)}var Bt=class t{static THROW_IF_NOT_FOUND=Ps;static NULL=new jc;static create(n,e){if(Array.isArray(n))return u0({name:""},e,n,"");{let r=n.name??"";return u0({name:r},n.parent,n.providers,r)}}static \u0275prov=N({token:t,providedIn:"any",factory:()=>me(x0)});static __NG_ELEMENT_ID__=-1},bt=new H(""),kr=(()=>{class t{static __NG_ELEMENT_ID__=zN;static __NG_ENV_ID__=e=>e}return t})(),zc=class extends kr{_lView;constructor(n){super(),this._lView=n}get destroyed(){return Ws(this._lView)}onDestroy(n){let e=this._lView;return B0(e,n),()=>pT(e,n)}};function zN(){return new zc(_e())}var xr=class{_console=console;handleError(n){this._console.error("ERROR",n)}},Jn=new H("",{providedIn:"root",factory:()=>{let t=x(Jt),n;return e=>{t.destroyed&&!n?setTimeout(()=>{throw e}):(n??=t.get(xr),n.handleError(e))}}}),kT={provide:uo,useValue:()=>{x(xr)},multi:!0},HN=new H("",{providedIn:"root",factory:()=>{let t=x(bt).defaultView;if(!t)return;let n=x(Jn),e=o=>{n(o.reason),o.preventDefault()},r=o=>{o.error?n(o.error):n(new Error(o.message,{cause:o})),o.preventDefault()},i=()=>{t.addEventListener("unhandledrejection",e),t.addEventListener("error",r)};typeof Zone<"u"?Zone.root.run(i):i(),x(kr).onDestroy(()=>{t.removeEventListener("error",r),t.removeEventListener("unhandledrejection",e)})}});function X0(){return Tr([tT(()=>{x(HN)})])}function ey(t){return typeof t=="function"&&t[yn]!==void 0}function ge(t,n){let[e,r,i]=Ag(t,n?.equal),o=e,s=o[yn];return o.set=r,o.update=i,o.asReadonly=ty.bind(o),o}function ty(){let t=this[yn];if(t.readonlyFn===void 0){let n=()=>this();n[yn]=t,t.readonlyFn=n}return t.readonlyFn}function ny(t){return ey(t)&&typeof t.set=="function"}var al=(()=>{class t{view;node;constructor(e,r){this.view=e,this.node=r}static __NG_ELEMENT_ID__=$N}return t})();function $N(){return new al(_e(),vn())}var ur=class{},Xc=new H("",{providedIn:"root",factory:()=>!1});var ry=new H(""),iy=new H(""),ki=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new an(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new pe(e=>{e.next(!1),e.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(e),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=N({token:t,providedIn:"root",factory:()=>new t})}return t})(),ed=(()=>{class t{internalPendingTasks=x(ki);scheduler=x(ur);errorHandler=x(Jn);add(){let e=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(e)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(e))}}run(e){let r=this.add();e().catch(this.errorHandler).finally(r)}static \u0275prov=N({token:t,providedIn:"root",factory:()=>new t})}return t})();function Gs(...t){}var td=(()=>{class t{static \u0275prov=N({token:t,providedIn:"root",factory:()=>new p0})}return t})(),p0=class{dirtyEffectCount=0;queues=new Map;add(n){this.enqueue(n),this.schedule(n)}schedule(n){n.dirty&&this.dirtyEffectCount++}remove(n){let e=n.zone,r=this.queues.get(e);r.has(n)&&(r.delete(n),n.dirty&&this.dirtyEffectCount--)}enqueue(n){let e=n.zone;this.queues.has(e)||this.queues.set(e,new Set);let r=this.queues.get(e);r.has(n)||r.add(n)}flush(){for(;this.dirtyEffectCount>0;){let n=!1;for(let[e,r]of this.queues)e===null?n||=this.flushQueue(r):n||=e.run(()=>this.flushQueue(r));n||(this.dirtyEffectCount=0)}}flushQueue(n){let e=!1;for(let r of n)r.dirty&&(this.dirtyEffectCount--,e=!0,r.run());return e}};function dd(t){return{toString:t}.toString()}function YN(t){return typeof t=="function"}var lf=class{previousValue;currentValue;firstChange;constructor(n,e,r){this.previousValue=n,this.currentValue=e,this.firstChange=r}isFirstChange(){return this.firstChange}};function cE(t,n,e,r){n!==null?n.applyValueToInputSignal(n,r):t[e]=r}var Kr=(()=>{let t=()=>dE;return t.ngInherit=!0,t})();function dE(t){return t.type.prototype.ngOnChanges&&(t.setInput=JN),ZN}function ZN(){let t=pE(this),n=t?.current;if(n){let e=t.previous;if(e===Hr)t.previous=n;else for(let r in n)e[r]=n[r];t.current=null,this.ngOnChanges(n)}}function JN(t,n,e,r,i){let o=this.declaredInputs[r],s=pE(t)||XN(t,{previous:Hr,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[o];a[o]=new lf(c&&c.currentValue,e,l===Hr),cE(t,n,i,e)}var uE="__ngSimpleChanges__";function pE(t){return t[uE]||null}function XN(t,n){return t[uE]=n}var MT=[];var _t=function(t,n=null,e){for(let r=0;r<MT.length;r++){let i=MT[r];i(t,n,e)}};function eF(t,n,e){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=n.type.prototype;if(r){let s=dE(n);(e.preOrderHooks??=[]).push(t,s),(e.preOrderCheckHooks??=[]).push(t,s)}i&&(e.preOrderHooks??=[]).push(0-t,i),o&&((e.preOrderHooks??=[]).push(t,o),(e.preOrderCheckHooks??=[]).push(t,o))}function fE(t,n){for(let e=n.directiveStart,r=n.directiveEnd;e<r;e++){let o=t.data[e].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:d}=o;s&&(t.contentHooks??=[]).push(-e,s),a&&((t.contentHooks??=[]).push(e,a),(t.contentCheckHooks??=[]).push(e,a)),l&&(t.viewHooks??=[]).push(-e,l),c&&((t.viewHooks??=[]).push(e,c),(t.viewCheckHooks??=[]).push(e,c)),d!=null&&(t.destroyHooks??=[]).push(e,d)}}function rf(t,n,e){hE(t,n,3,e)}function of(t,n,e,r){(t[Se]&3)===e&&hE(t,n,e,r)}function oy(t,n){let e=t[Se];(e&3)===n&&(e&=16383,e+=1,t[Se]=e)}function hE(t,n,e,r){let i=r!==void 0?t[zs]&65535:0,o=r??-1,s=n.length-1,a=0;for(let l=i;l<s;l++)if(typeof n[l+1]=="number"){if(a=n[l],r!=null&&a>=r)break}else n[l]<0&&(t[zs]+=65536),(a<o||o==-1)&&(tF(t,e,n,l),t[zs]=(t[zs]&4294901760)+l+2),l++}function OT(t,n){_t(4,t,n);let e=Re(null);try{n.call(t)}finally{Re(e),_t(5,t,n)}}function tF(t,n,e,r){let i=e[r]<0,o=e[r+1],s=i?-e[r]:e[r],a=t[s];i?t[Se]>>14<t[zs]>>16&&(t[Se]&3)===n&&(t[Se]+=16384,OT(a,o)):OT(a,o)}var cl=-1,Qs=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(n,e,r,i){this.factory=n,this.name=i,this.canSeeViewProviders=e,this.injectImpl=r}};function nF(t){return(t.flags&8)!==0}function rF(t){return(t.flags&16)!==0}function iF(t,n,e){let r=0;for(;r<e.length;){let i=e[r];if(typeof i=="number"){if(i!==0)break;r++;let o=e[r++],s=e[r++],a=e[r++];t.setAttribute(n,s,a,o)}else{let o=i,s=e[++r];sF(o)?t.setProperty(n,o,s):t.setAttribute(n,o,s),r++}}return r}function oF(t){return t===3||t===4||t===6}function sF(t){return t.charCodeAt(0)===64}function dl(t,n){if(!(n===null||n.length===0))if(t===null||t.length===0)t=n.slice();else{let e=-1;for(let r=0;r<n.length;r++){let i=n[r];typeof i=="number"?e=i:e===0||(e===-1||e===2?RT(t,e,i,null,n[++r]):RT(t,e,i,null,null))}}return t}function RT(t,n,e,r,i){let o=0,s=t.length;if(n===-1)s=-1;else for(;o<t.length;){let a=t[o++];if(typeof a=="number"){if(a===n){s=-1;break}else if(a>n){s=o-1;break}}}for(;o<t.length;){let a=t[o];if(typeof a=="number")break;if(a===e){i!==null&&(t[o+1]=i);return}o++,i!==null&&o++}s!==-1&&(t.splice(s,0,n),o=s+1),t.splice(o++,0,e),i!==null&&t.splice(o++,0,i)}function mE(t){return t!==cl}function cf(t){return t&32767}function aF(t){return t>>16}function df(t,n){let e=aF(t),r=n;for(;e>0;)r=r[js],e--;return r}var gy=!0;function uf(t){let n=gy;return gy=t,n}var lF=256,gE=lF-1,yE=5,cF=0,Mi={};function dF(t,n,e){let r;typeof e=="string"?r=e.charCodeAt(0)||0:e.hasOwnProperty(Ls)&&(r=e[Ls]),r==null&&(r=e[Ls]=cF++);let i=r&gE,o=1<<i;n.data[t+(i>>yE)]|=o}function pf(t,n){let e=bE(t,n);if(e!==-1)return e;let r=n[Ce];r.firstCreatePass&&(t.injectorIndex=n.length,sy(r.data,t),sy(n,null),sy(r.blueprint,null));let i=qy(t,n),o=t.injectorIndex;if(mE(i)){let s=cf(i),a=df(i,n),l=a[Ce].data;for(let c=0;c<8;c++)n[o+c]=a[s+c]|l[s+c]}return n[o+8]=i,o}function sy(t,n){t.push(0,0,0,0,0,0,0,0,n)}function bE(t,n){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||n[t.injectorIndex+8]===null?-1:t.injectorIndex}function qy(t,n){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,r=null,i=n;for(;i!==null;){if(r=xE(i),r===null)return cl;if(e++,i=i[js],r.injectorIndex!==-1)return r.injectorIndex|e<<16}return cl}function yy(t,n,e){dF(t,n,e)}function vE(t,n,e){if(e&8||t!==void 0)return t;zp(n,"NodeInjector")}function _E(t,n,e,r){if(e&8&&r===void 0&&(r=null),(e&3)===0){let i=t[po],o=$n(void 0);try{return i?i.get(n,r,e&8):w0(n,r,e&8)}finally{$n(o)}}return vE(r,n,e)}function wE(t,n,e,r=0,i){if(t!==null){if(n[Se]&2048&&!(r&2)){let s=hF(t,n,e,r,Mi);if(s!==Mi)return s}let o=CE(t,n,e,r,Mi);if(o!==Mi)return o}return _E(n,e,r,i)}function CE(t,n,e,r,i){let o=pF(e);if(typeof o=="function"){if(!K0(n,t,r))return r&1?vE(i,e,r):_E(n,e,r,i);try{let s;if(s=o(r),s==null&&!(r&8))zp(e);else return s}finally{Y0()}}else if(typeof o=="number"){let s=null,a=bE(t,n),l=cl,c=r&1?n[Wn][Un]:null;for((a===-1||r&4)&&(l=a===-1?qy(t,n):n[a+8],l===cl||!AT(r,!1)?a=-1:(s=n[Ce],a=cf(l),n=df(l,n)));a!==-1;){let d=n[Ce];if(PT(o,a,d.data)){let u=uF(a,n,e,s,r,c);if(u!==Mi)return u}l=n[a+8],l!==cl&&AT(r,n[Ce].data[a+8]===c)&&PT(o,a,n)?(s=d,a=cf(l),n=df(l,n)):a=-1}}return i}function uF(t,n,e,r,i,o){let s=n[Ce],a=s.data[t+8],l=r==null?Go(a)&&gy:r!=s&&(a.type&3)!==0,c=i&1&&o===a,d=sf(a,s,e,l,c);return d!==null?id(n,s,d,a,i):Mi}function sf(t,n,e,r,i){let o=t.providerIndexes,s=n.data,a=o&1048575,l=t.directiveStart,c=t.directiveEnd,d=o>>20,u=r?a:a+d,p=i?a+d:c;for(let f=u;f<p;f++){let y=s[f];if(f<l&&e===y||f>=l&&y.type===e)return f}if(i){let f=s[l];if(f&&Wr(f)&&f.type===e)return l}return null}function id(t,n,e,r,i){let o=t[e],s=n.data;if(o instanceof Qs){let a=o;if(a.resolving){let f=Gx(s[e]);throw _0(f)}let l=uf(a.canSeeViewProviders);a.resolving=!0;let c=s[e].type||s[e],d,u=a.injectImpl?$n(a.injectImpl):null,p=K0(t,r,0);try{o=t[e]=a.factory(void 0,i,s,t,r),n.firstCreatePass&&e>=r.directiveStart&&eF(e,s[e],n)}finally{u!==null&&$n(u),uf(l),a.resolving=!1,Y0()}}return o}function pF(t){if(typeof t=="string")return t.charCodeAt(0)||0;let n=t.hasOwnProperty(Ls)?t[Ls]:void 0;return typeof n=="number"?n>=0?n&gE:fF:n}function PT(t,n,e){let r=1<<t;return!!(e[n+(t>>yE)]&r)}function AT(t,n){return!(t&2)&&!(t&1&&n)}var qs=class{_tNode;_lView;constructor(n,e){this._tNode=n,this._lView=e}get(n,e,r){return wE(this._tNode,this._lView,n,As(r),e)}};function fF(){return new qs(vn(),_e())}function F(t){return dd(()=>{let n=t.prototype.constructor,e=n[Vc]||by(n),r=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==r;){let o=i[Vc]||by(i);if(o&&o!==e)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function by(t){return f0(t)?()=>{let n=by(ln(t));return n&&n()}:jo(t)}function hF(t,n,e,r,i){let o=t,s=n;for(;o!==null&&s!==null&&s[Se]&2048&&!rl(s);){let a=CE(o,s,e,r|2,Mi);if(a!==Mi)return a;let l=o.parent;if(!l){let c=s[M0];if(c){let d=c.get(e,Mi,r);if(d!==Mi)return d}l=xE(s),s=s[js]}o=l}return i}function xE(t){let n=t[Ce],e=n.type;return e===2?n.declTNode:e===1?t[Un]:null}function mF(){return yl(vn(),_e())}function yl(t,n){return new un(Gr(t,n))}var un=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=mF}return t})();function TE(t){return t instanceof un?t.nativeElement:t}function gF(){return this._results[Symbol.iterator]()}var ff=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 qe}constructor(n=!1){this._emitDistinctChangesOnly=n}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){this.dirty=!1;let r=Zx(n);(this._changesDetected=!Yx(this._results,r,e))&&(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(n){this._onDirty=n}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=gF};function EE(t){return(t.flags&128)===128}var Qy=(function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t})(Qy||{}),SE=new Map,yF=0;function bF(){return yF++}function vF(t){SE.set(t[qc],t)}function vy(t){SE.delete(t[qc])}var NT="__ngContext__";function ul(t,n){Si(n)?(t[NT]=n[qc],vF(n)):t[NT]=n}function IE(t){return kE(t[tl])}function DE(t){return kE(t[Er])}function kE(t){for(;t!==null&&!Ur(t);)t=t[Er];return t}var _y;function Ky(t){_y=t}function ME(){if(_y!==void 0)return _y;if(typeof document<"u")return document;throw new U(210,!1)}var Mf=new H("",{providedIn:"root",factory:()=>_F}),_F="ng",Of=new H(""),Yr=new H("",{providedIn:"platform",factory:()=>"unknown"});var Rf=new H(""),Pf=new H("",{providedIn:"root",factory:()=>ME().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var wF="h",CF="b";var OE="r";var RE="di";var PE=!1,AE=new H("",{providedIn:"root",factory:()=>PE});var xF=(t,n,e,r)=>{};function TF(t,n,e,r){xF(t,n,e,r)}function Af(t){return(t.flags&32)===32}var EF=()=>null;function NE(t,n,e=!1){return EF(t,n,e)}function FE(t,n){let e=t.contentQueries;if(e!==null){let r=Re(null);try{for(let i=0;i<e.length;i+=2){let o=e[i],s=e[i+1];if(s!==-1){let a=t.data[s];Yc(o),a.contentQueries(2,n[s],s)}}}finally{Re(r)}}}function wy(t,n,e){Yc(0);let r=Re(null);try{n(t,e)}finally{Re(r)}}function Yy(t,n,e){if(R0(n)){let r=Re(null);try{let i=n.directiveStart,o=n.directiveEnd;for(let s=i;s<o;s++){let a=t.data[s];if(a.contentQueries){let l=e[s];a.contentQueries(1,l,s)}}}finally{Re(r)}}}var ho=(function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t})(ho||{});var hf=class{changingThisBreaksApplicationSecurity;constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Bp})`}};function ud(t){return t instanceof hf?t.changingThisBreaksApplicationSecurity:t}function LE(t,n){let e=BE(t);if(e!=null&&e!==n){if(e==="ResourceURL"&&n==="URL")return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${Bp})`)}return e===n}function BE(t){return t instanceof hf&&t.getTypeName()||null}var SF=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function VE(t){return t=String(t),t.match(SF)?t:"unsafe:"+t}var IF=/^>|^->|<!--|-->|--!>|<!-$/g,DF=/(<|>)/g,kF="\u200B$1\u200B";function MF(t){return t.replace(IF,n=>n.replace(DF,kF))}function OF(t,n){return t.createText(n)}function RF(t,n,e){t.setValue(n,e)}function PF(t,n){return t.createComment(MF(n))}function jE(t,n,e){return t.createElement(n,e)}function mf(t,n,e,r,i){t.insertBefore(n,e,r,i)}function zE(t,n,e){t.appendChild(n,e)}function FT(t,n,e,r,i){r!==null?mf(t,n,e,r,i):zE(t,n,e)}function HE(t,n,e,r){t.removeChild(null,n,e,r)}function AF(t,n,e){t.setAttribute(n,"style",e)}function NF(t,n,e){e===""?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e)}function $E(t,n,e){let{mergedAttrs:r,classes:i,styles:o}=e;r!==null&&iF(t,n,r),i!==null&&NF(t,n,i),o!==null&&AF(t,n,o)}var Zy=(function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t[t.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",t})(Zy||{});function Js(t){let n=FF();return n?n.sanitize(Zy.URL,t)||"":LE(t,"URL")?ud(t):VE(Bs(t))}function FF(){let t=_e();return t&&t[Ti].sanitizer}function UE(t){return t instanceof Function?t():t}function LF(t,n,e){let r=t.length;for(;;){let i=t.indexOf(n,e);if(i===-1)return i;if(i===0||t.charCodeAt(i-1)<=32){let o=n.length;if(i+o===r||t.charCodeAt(i+o)<=32)return i}e=i+1}}var WE="ng-template";function BF(t,n,e,r){let i=0;if(r){for(;i<n.length&&typeof n[i]=="string";i+=2)if(n[i]==="class"&&LF(n[i+1].toLowerCase(),e,0)!==-1)return!0}else if(Jy(t))return!1;if(i=n.indexOf(1,i),i>-1){let o;for(;++i<n.length&&typeof(o=n[i])=="string";)if(o.toLowerCase()===e)return!0}return!1}function Jy(t){return t.type===4&&t.value!==WE}function VF(t,n,e){let r=t.type===4&&!e?WE:t.value;return n===r}function jF(t,n,e){let r=4,i=t.attrs,o=i!==null?$F(i):0,s=!1;for(let a=0;a<n.length;a++){let l=n[a];if(typeof l=="number"){if(!s&&!qr(r)&&!qr(l))return!1;if(s&&qr(l))continue;s=!1,r=l|r&1;continue}if(!s)if(r&4){if(r=2|r&1,l!==""&&!VF(t,l,e)||l===""&&n.length===1){if(qr(r))return!1;s=!0}}else if(r&8){if(i===null||!BF(t,i,l,e)){if(qr(r))return!1;s=!0}}else{let c=n[++a],d=zF(l,i,Jy(t),e);if(d===-1){if(qr(r))return!1;s=!0;continue}if(c!==""){let u;if(d>o?u="":u=i[d+1].toLowerCase(),r&2&&c!==u){if(qr(r))return!1;s=!0}}}}return qr(r)||s}function qr(t){return(t&1)===0}function zF(t,n,e,r){if(n===null)return-1;let i=0;if(r||!e){let o=!1;for(;i<n.length;){let s=n[i];if(s===t)return i;if(s===3||s===6)o=!0;else if(s===1||s===2){let a=n[++i];for(;typeof a=="string";)a=n[++i];continue}else{if(s===4)break;if(s===0){i+=4;continue}}i+=o?1:2}return-1}else return UF(n,t)}function GE(t,n,e=!1){for(let r=0;r<n.length;r++)if(jF(t,n[r],e))return!0;return!1}function HF(t){let n=t.attrs;if(n!=null){let e=n.indexOf(5);if((e&1)===0)return n[e+1]}return null}function $F(t){for(let n=0;n<t.length;n++){let e=t[n];if(oF(e))return n}return t.length}function UF(t,n){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){let r=t[e];if(typeof r=="number")return-1;if(r===n)return e;e++}return-1}function WF(t,n){e:for(let e=0;e<n.length;e++){let r=n[e];if(t.length===r.length){for(let i=0;i<t.length;i++)if(t[i]!==r[i])continue e;return!0}}return!1}function LT(t,n){return t?":not("+n.trim()+")":n}function GF(t){let n=t[0],e=1,r=2,i="",o=!1;for(;e<t.length;){let s=t[e];if(typeof s=="string")if(r&2){let a=t[++e];i+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!qr(s)&&(n+=LT(o,i),i=""),r=s,o=o||!qr(r);e++}return i!==""&&(n+=LT(o,i)),n}function qF(t){return t.map(GF).join(",")}function QF(t){let n=[],e=[],r=1,i=2;for(;r<t.length;){let o=t[r];if(typeof o=="string")i===2?o!==""&&n.push(o,t[++r]):i===8&&e.push(o);else{if(!qr(i))break;i=o}r++}return e.length&&n.push(1,...e),n}var Gn={};function Xy(t,n,e,r,i,o,s,a,l,c,d){let u=Vt+r,p=u+i,f=KF(u,p),y=typeof c=="function"?c():c;return f[Ce]={type:t,blueprint:f,template:e,queries:null,viewQuery:a,declTNode:n,data:f.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof o=="function"?o():o,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:l,consts:y,incompleteFirstPass:!1,ssrId:d}}function KF(t,n){let e=[];for(let r=0;r<n;r++)e.push(r<t?null:Gn);return e}function YF(t){let n=t.tView;return n===null||n.incompleteFirstPass?t.tView=Xy(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):n}function eb(t,n,e,r,i,o,s,a,l,c,d){let u=n.blueprint.slice();return u[$r]=i,u[Se]=r|4|128|8|64|1024,(c!==null||t&&t[Se]&2048)&&(u[Se]|=2048),L0(u),u[cn]=u[js]=t,u[Xt]=e,u[Ti]=s||t&&t[Ti],u[It]=a||t&&t[It],u[po]=l||t&&t[po]||null,u[Un]=o,u[qc]=bF(),u[Vs]=d,u[M0]=c,u[Wn]=n.type==2?t[Wn]:u,u}function ZF(t,n,e){let r=Gr(n,t),i=YF(e),o=t[Ti].rendererFactory,s=tb(t,eb(t,i,null,qE(e),r,n,null,o.createRenderer(r,e),null,null,null));return t[n.index]=s}function qE(t){let n=16;return t.signals?n=4096:t.onPush&&(n=64),n}function QE(t,n,e,r){if(e===0)return-1;let i=n.length;for(let o=0;o<e;o++)n.push(r),t.blueprint.push(r),t.data.push(null);return i}function tb(t,n){return t[tl]?t[k0][Er]=n:t[tl]=n,t[k0]=n,n}function g(t=1){KE(jt(),_e(),Di()+t,!1)}function KE(t,n,e,r){if(!r)if((n[Se]&3)===3){let o=t.preOrderCheckHooks;o!==null&&rf(n,o,e)}else{let o=t.preOrderHooks;o!==null&&of(n,o,0,e)}Ko(e)}var Nf=(function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t})(Nf||{});function Cy(t,n,e,r){let i=Re(null);try{let[o,s,a]=t.inputs[e],l=null;(s&Nf.SignalBased)!==0&&(l=n[o][yn]),l!==null&&l.transformFn!==void 0?r=l.transformFn(r):a!==null&&(r=a.call(n,r)),t.setInput!==null?t.setInput(n,l,r,e,o):cE(n,l,o,r)}finally{Re(i)}}var Qr=(function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t})(Qr||{}),JF;function nb(t,n){return JF(t,n)}var Ks=new Set,Ff=(function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t})(Ff||{}),Xs=new H(""),BT=new Set;function Zr(t){BT.has(t)||(BT.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var YE=!1,xy=class extends qe{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(n=!1){super(),this.__isAsync=n,sT()&&(this.destroyRef=x(kr,{optional:!0})??void 0,this.pendingTasks=x(ki,{optional:!0})??void 0)}emit(n){let e=Re(null);try{super.next(n)}finally{Re(e)}}subscribe(n,e,r){let i=n,o=e||(()=>null),s=r;if(n&&typeof n=="object"){let l=n;i=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:i,error:o,complete:s});return n instanceof qt&&n.add(a),a}wrapInTimeout(n){return e=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{n(e)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},z=xy;function ZE(t){let n,e;function r(){t=Gs;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),n!==void 0&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{t(),r()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),r()})),()=>r()}function VT(t){return queueMicrotask(()=>t()),()=>{t=Gs}}var rb="isAngularZone",gf=rb+"_ID",XF=0,$e=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new z(!1);onMicrotaskEmpty=new z(!1);onStable=new z(!1);onError=new z(!1);constructor(n){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=YE}=n;if(typeof Zone>"u")throw new U(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)),e&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&r,s.shouldCoalesceRunChangeDetection=i,s.callbackScheduled=!1,s.scheduleInRootZone=o,nL(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(rb)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new U(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new U(909,!1)}run(n,e,r){return this._inner.run(n,e,r)}runTask(n,e,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,n,eL,Gs,Gs);try{return o.runTask(s,e,r)}finally{o.cancelTask(s)}}runGuarded(n,e,r){return this._inner.runGuarded(n,e,r)}runOutsideAngular(n){return this._outer.run(n)}},eL={};function ib(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function tL(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function n(){ZE(()=>{t.callbackScheduled=!1,Ty(t),t.isCheckStableRunning=!0,ib(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{n()}):t._outer.run(()=>{n()}),Ty(t)}function nL(t){let n=()=>{tL(t)},e=XF++;t._inner=t._inner.fork({name:"angular",properties:{[rb]:!0,[gf]:e,[gf+e]:!0},onInvokeTask:(r,i,o,s,a,l)=>{if(rL(l))return r.invokeTask(o,s,a,l);try{return jT(t),r.invokeTask(o,s,a,l)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&n(),zT(t)}},onInvoke:(r,i,o,s,a,l,c)=>{try{return jT(t),r.invoke(o,s,a,l,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!iL(l)&&n(),zT(t)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,Ty(t),ib(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,i,o,s)=>(r.handleError(o,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function Ty(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function jT(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function zT(t){t._nesting--,ib(t)}var yf=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new z;onMicrotaskEmpty=new z;onStable=new z;onError=new z;run(n,e,r){return n.apply(e,r)}runGuarded(n,e,r){return n.apply(e,r)}runOutsideAngular(n){return n()}runTask(n,e,r,i){return n.apply(e,r)}};function rL(t){return JE(t,"__ignore_ng_zone__")}function iL(t){return JE(t,"__scheduler_tick__")}function JE(t,n){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[n]===!0}var ob=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=N({token:t,providedIn:"root",factory:()=>new t})}return t})(),XE=[0,1,2,3],eS=(()=>{class t{ngZone=x($e);scheduler=x(ur);errorHandler=x(xr,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){x(Xs,{optional:!0})}execute(){let e=this.sequences.size>0;e&&_t(16),this.executing=!0;for(let r of XE)for(let i of this.sequences)if(!(i.erroredOrDestroyed||!i.hooks[r]))try{i.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let o=i.hooks[r];return o(i.pipelinedValue)},i.snapshot))}catch(o){i.erroredOrDestroyed=!0,this.errorHandler?.handleError(o)}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(),e&&_t(17)}register(e){let{view:r}=e;r!==void 0?((r[Hs]??=[]).push(e),qo(r),r[Se]|=8192):this.executing?this.deferredRegistrations.add(e):this.addSequence(e)}addSequence(e){this.sequences.add(e),this.scheduler.notify(7)}unregister(e){this.executing&&this.sequences.has(e)?(e.erroredOrDestroyed=!0,e.pipelinedValue=void 0,e.once=!0):(this.sequences.delete(e),this.deferredRegistrations.delete(e))}maybeTrace(e,r){return r?r.run(Ff.AFTER_NEXT_RENDER,e):e()}static \u0275prov=N({token:t,providedIn:"root",factory:()=>new t})}return t})(),bf=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(n,e,r,i,o,s=null){this.impl=n,this.hooks=e,this.view=r,this.once=i,this.snapshot=s,this.unregisterOnDestroy=o?.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 n=this.view?.[Hs];n&&(this.view[Hs]=n.filter(e=>e!==this))}};function pd(t,n){let e=n?.injector??x(Bt);return Zr("NgAfterNextRender"),sL(t,e,n,!0)}function oL(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function sL(t,n,e,r){let i=n.get(ob);i.impl??=n.get(eS);let o=n.get(Xs,null,{optional:!0}),s=e?.manualCleanup!==!0?n.get(kr):null,a=n.get(al,null,{optional:!0}),l=new bf(i.impl,oL(t),a?.view,r,s,o?.snapshot(null));return i.impl.register(l),l}var tS=new H("",{providedIn:"root",factory:()=>({queue:new Set,isScheduled:!1,scheduler:null})});function nS(t,n,e){let r=t.get(tS);if(Array.isArray(n))for(let i of n)r.queue.add(i),e?.detachedLeaveAnimationFns?.push(i);else r.queue.add(n),e?.detachedLeaveAnimationFns?.push(n);r.scheduler&&r.scheduler(t)}function aL(t,n){let e=t.get(tS);if(n.detachedLeaveAnimationFns){for(let r of n.detachedLeaveAnimationFns)e.queue.delete(r);n.detachedLeaveAnimationFns=void 0}}function lL(t,n){for(let[e,r]of n)nS(t,r.animateFns)}function HT(t,n,e,r){let i=t?.[$s]?.enter;n!==null&&i&&i.has(e.index)&&lL(r,i)}function ll(t,n,e,r,i,o,s,a){if(i!=null){let l,c=!1;Ur(i)?l=i:Si(i)&&(c=!0,i=i[$r]);let d=Sr(i);t===0&&r!==null?(HT(a,r,o,e),s==null?zE(n,r,d):mf(n,r,d,s||null,!0)):t===1&&r!==null?(HT(a,r,o,e),mf(n,r,d,s||null,!0)):t===2?$T(a,o,e,u=>{HE(n,d,c,u)}):t===3&&$T(a,o,e,()=>{n.destroyNode(d)}),l!=null&&vL(n,t,e,l,o,r,s)}}function cL(t,n){rS(t,n),n[$r]=null,n[Un]=null}function dL(t,n,e,r,i,o){r[$r]=i,r[Un]=n,Bf(t,r,e,1,i,o)}function rS(t,n){n[Ti].changeDetectionScheduler?.notify(9),Bf(t,n,n[It],2,null,null)}function uL(t){let n=t[tl];if(!n)return ay(t[Ce],t);for(;n;){let e=null;if(Si(n))e=n[tl];else{let r=n[Qt];r&&(e=r)}if(!e){for(;n&&!n[Er]&&n!==t;)Si(n)&&ay(n[Ce],n),n=n[cn];n===null&&(n=t),Si(n)&&ay(n[Ce],n),e=n&&n[Er]}n=e}}function sb(t,n){let e=t[Us],r=e.indexOf(n);e.splice(r,1)}function Lf(t,n){if(Ws(n))return;let e=n[It];e.destroyNode&&Bf(t,n,e,3,null,null),uL(n)}function ay(t,n){if(Ws(n))return;let e=Re(null);try{n[Se]&=-129,n[Se]|=256,n[pr]&&Ss(n[pr]),hL(t,n),fL(t,n),n[Ce].type===1&&n[It].destroy();let r=n[Uo];if(r!==null&&Ur(n[cn])){r!==n[cn]&&sb(r,n);let i=n[Ei];i!==null&&i.detachView(t)}vy(n)}finally{Re(e)}}function $T(t,n,e,r){let i=t?.[$s];if(i==null||i.leave==null||!i.leave.has(n.index))return r(!1);t&&Ks.add(t),nS(e,()=>{if(i.leave&&i.leave.has(n.index)){let s=i.leave.get(n.index),a=[];if(s){for(let l=0;l<s.animateFns.length;l++){let c=s.animateFns[l],{promise:d}=c();a.push(d)}i.detachedLeaveAnimationFns=void 0}i.running=Promise.allSettled(a),pL(t,r)}else t&&Ks.delete(t),r(!1)},i)}function pL(t,n){let e=t[$s]?.running;if(e){e.then(()=>{t[$s].running=void 0,Ks.delete(t),n(!0)});return}n(!1)}function fL(t,n){let e=t.cleanup,r=n[el];if(e!==null)for(let s=0;s<e.length-1;s+=2)if(typeof e[s]=="string"){let a=e[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[e[s+1]];e[s].call(a)}r!==null&&(n[el]=null);let i=n[lo];if(i!==null){n[lo]=null;for(let s=0;s<i.length;s++){let a=i[s];a()}}let o=n[fo];if(o!==null){n[fo]=null;for(let s of o)s.destroy()}}function hL(t,n){let e;if(t!=null&&(e=t.destroyHooks)!=null)for(let r=0;r<e.length;r+=2){let i=n[e[r]];if(!(i instanceof Qs)){let o=e[r+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let a=i[o[s]],l=o[s+1];_t(4,a,l);try{l.call(a)}finally{_t(5,a,l)}}else{_t(4,i,o);try{o.call(i)}finally{_t(5,i,o)}}}}}function iS(t,n,e){return mL(t,n.parent,e)}function mL(t,n,e){let r=n;for(;r!==null&&r.type&168;)n=r,r=n.parent;if(r===null)return e[$r];if(Go(r)){let{encapsulation:i}=t.data[r.directiveStart+r.componentOffset];if(i===ho.None||i===ho.Emulated)return null}return Gr(r,e)}function oS(t,n,e){return yL(t,n,e)}function gL(t,n,e){return t.type&40?Gr(t,e):null}var yL=gL,UT;function ab(t,n,e,r){let i=iS(t,r,n),o=n[It],s=r.parent||n[Un],a=oS(s,r,n);if(i!=null)if(Array.isArray(e))for(let l=0;l<e.length;l++)FT(o,i,e[l],a,!1);else FT(o,i,e,a,!1);UT!==void 0&&UT(o,r,n,e,i)}function nd(t,n){if(n!==null){let e=n.type;if(e&3)return Gr(n,t);if(e&4)return Ey(-1,t[n.index]);if(e&8){let r=n.child;if(r!==null)return nd(t,r);{let i=t[n.index];return Ur(i)?Ey(-1,i):Sr(i)}}else{if(e&128)return nd(t,n.next);if(e&32)return nb(n,t)()||Sr(t[n.index]);{let r=sS(t,n);if(r!==null){if(Array.isArray(r))return r[0];let i=zo(t[Wn]);return nd(i,r)}else return nd(t,n.next)}}}return null}function sS(t,n){if(n!==null){let r=t[Wn][Un],i=n.projection;return r.projection[i]}return null}function Ey(t,n){let e=Qt+t+1;if(e<n.length){let r=n[e],i=r[Ce].firstChild;if(i!==null)return nd(r,i)}return n[Wo]}function lb(t,n,e,r,i,o,s){for(;e!=null;){let a=r[po];if(e.type===128){e=e.next;continue}let l=r[e.index],c=e.type;if(s&&n===0&&(l&&ul(Sr(l),r),e.flags|=2),!Af(e))if(c&8)lb(t,n,e.child,r,i,o,!1),ll(n,t,a,i,l,e,o,r);else if(c&32){let d=nb(e,r),u;for(;u=d();)ll(n,t,a,i,u,e,o,r);ll(n,t,a,i,l,e,o,r)}else c&16?aS(t,n,r,e,i,o):ll(n,t,a,i,l,e,o,r);e=s?e.projectionNext:e.next}}function Bf(t,n,e,r,i,o){lb(e,r,t.firstChild,n,i,o,!1)}function bL(t,n,e){let r=n[It],i=iS(t,e,n),o=e.parent||n[Un],s=oS(o,e,n);aS(r,0,n,e,i,s)}function aS(t,n,e,r,i,o){let s=e[Wn],l=s[Un].projection[r.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++){let d=l[c];ll(n,t,e[po],i,d,r,o,e)}else{let c=l,d=s[cn];EE(r)&&(c.flags|=128),lb(t,n,c,d,i,o,!0)}}function vL(t,n,e,r,i,o,s){let a=r[Wo],l=Sr(r);a!==l&&ll(n,t,e,o,a,i,s);for(let c=Qt;c<r.length;c++){let d=r[c];Bf(d[Ce],d,t,n,o,a)}}function _L(t,n,e,r,i){if(n)i?t.addClass(e,r):t.removeClass(e,r);else{let o=r.indexOf("-")===-1?void 0:Qr.DashCase;i==null?t.removeStyle(e,r,o):(typeof i=="string"&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=Qr.Important),t.setStyle(e,r,i,o))}}function lS(t,n,e,r,i){let o=Di(),s=r&2;try{Ko(-1),s&&n.length>Vt&&KE(t,n,Vt,!1),_t(s?2:0,i,e),e(r,i)}finally{Ko(o),_t(s?3:1,i,e)}}function Vf(t,n,e){SL(t,n,e),(e.flags&64)===64&&IL(t,n,e)}function fd(t,n,e=Gr){let r=n.localNames;if(r!==null){let i=n.index+1;for(let o=0;o<r.length;o+=2){let s=r[o+1],a=s===-1?e(n,t):t[s];t[i++]=a}}}function wL(t,n,e,r){let o=r.get(AE,PE)||e===ho.ShadowDom,s=t.selectRootElement(n,o);if(s.tagName.toLowerCase()==="script")throw new U(905,!1);return CL(s),s}function CL(t){xL(t)}var xL=()=>null;function TL(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function cS(t,n,e,r,i,o){let s=n[Ce];if(pb(t,s,n,e,r)){Go(t)&&EL(n,t.index);return}t.type&3&&(e=TL(e)),dS(t,n,e,r,i,o)}function dS(t,n,e,r,i,o){if(t.type&3){let s=Gr(t,n);r=o!=null?o(r,t.value||"",e):r,i.setProperty(s,e,r)}else t.type&12}function EL(t,n){let e=Ir(n,t);e[Se]&16||(e[Se]|=64)}function SL(t,n,e){let r=e.directiveStart,i=e.directiveEnd;Go(e)&&ZF(n,e,t.data[r+e.componentOffset]),t.firstCreatePass||pf(e,n);let o=e.initialInputs;for(let s=r;s<i;s++){let a=t.data[s],l=id(n,t,s,e);if(ul(l,n),o!==null&&OL(n,s-r,l,a,e,o),Wr(a)){let c=Ir(e.index,n);c[Xt]=id(n,t,s,e)}}}function IL(t,n,e){let r=e.directiveStart,i=e.directiveEnd,o=e.index,s=CT();try{Ko(o);for(let a=r;a<i;a++){let l=t.data[a],c=n[a];Zp(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&DL(l,c)}}finally{Ko(-1),Zp(s)}}function DL(t,n){t.hostBindings!==null&&t.hostBindings(1,n)}function cb(t,n){let e=t.directiveRegistry,r=null;if(e)for(let i=0;i<e.length;i++){let o=e[i];GE(n,o.selectors,!1)&&(r??=[],Wr(o)?r.unshift(o):r.push(o))}return r}function kL(t,n,e,r,i,o){let s=Gr(t,n);ML(n[It],s,o,t.value,e,r,i)}function ML(t,n,e,r,i,o,s){if(o==null)t.removeAttribute(n,i,e);else{let a=s==null?Bs(o):s(o,r||"",i);t.setAttribute(n,i,a,e)}}function OL(t,n,e,r,i,o){let s=o[n];if(s!==null)for(let a=0;a<s.length;a+=2){let l=s[a],c=s[a+1];Cy(r,e,l,c)}}function db(t,n,e,r,i){let o=Vt+e,s=n[Ce],a=i(s,n,t,r,e);n[o]=a,ol(t,!0);let l=t.type===2;return l?($E(n[It],a,t),(hT()===0||nl(t))&&ul(a,n),mT()):ul(a,n),tf()&&(!l||!Af(t))&&ab(s,n,a,t),t}function ub(t){let n=t;return G0()?q0():(n=n.parent,ol(n,!1)),n}function RL(t,n){let e=t[po];if(!e)return;let r;try{r=e.get(Jn,null)}catch{r=null}r?.(n)}function pb(t,n,e,r,i){let o=t.inputs?.[r],s=t.hostDirectiveInputs?.[r],a=!1;if(s)for(let l=0;l<s.length;l+=2){let c=s[l],d=s[l+1],u=n.data[c];Cy(u,e[c],d,i),a=!0}if(o)for(let l of o){let c=e[l],d=n.data[l];Cy(d,c,r,i),a=!0}return a}function PL(t,n){let e=Ir(n,t),r=e[Ce];AL(r,e);let i=e[$r];i!==null&&e[Vs]===null&&(e[Vs]=NE(i,e[po])),_t(18),fb(r,e,e[Xt]),_t(19,e[Xt])}function AL(t,n){for(let e=n.length;e<t.blueprint.length;e++)n.push(t.blueprint[e])}function fb(t,n,e){Xp(n);try{let r=t.viewQuery;r!==null&&wy(1,r,e);let i=t.template;i!==null&&lS(t,n,i,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),n[Ei]?.finishViewCreation(t),t.staticContentQueries&&FE(t,n),t.staticViewQueries&&wy(2,t.viewQuery,e);let o=t.components;o!==null&&NL(n,o)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),r}finally{n[Se]&=-5,ef()}}function NL(t,n){for(let e=0;e<n.length;e++)PL(t,n[e])}function hd(t,n,e,r){let i=Re(null);try{let o=n.tView,a=t[Se]&4096?4096:16,l=eb(t,o,e,a,null,n,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),c=t[n.index];l[Uo]=c;let d=t[Ei];return d!==null&&(l[Ei]=d.createEmbeddedView(o)),fb(o,l,e),l}finally{Re(i)}}function pl(t,n){return!n||n.firstChild===null||EE(t)}function od(t,n,e,r,i=!1){for(;e!==null;){if(e.type===128){e=i?e.projectionNext:e.next;continue}let o=n[e.index];o!==null&&r.push(Sr(o)),Ur(o)&&uS(o,r);let s=e.type;if(s&8)od(t,n,e.child,r);else if(s&32){let a=nb(e,n),l;for(;l=a();)r.push(l)}else if(s&16){let a=sS(n,e);if(Array.isArray(a))r.push(...a);else{let l=zo(n[Wn]);od(l[Ce],l,a,r,!0)}}e=i?e.projectionNext:e.next}return r}function uS(t,n){for(let e=Qt;e<t.length;e++){let r=t[e],i=r[Ce].firstChild;i!==null&&od(r[Ce],r,i,n)}t[Wo]!==t[$r]&&n.push(t[Wo])}function pS(t){if(t[Hs]!==null){for(let n of t[Hs])n.impl.addSequence(n);t[Hs].length=0}}var fS=[];function FL(t){return t[pr]??LL(t)}function LL(t){let n=fS.pop()??Object.create(VL);return n.lView=t,n}function BL(t){t.lView[pr]!==t&&(t.lView=null,fS.push(t))}var VL=A(_({},Ts),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{qo(t.lView)},consumerOnSignalRead(){this.lView[pr]=this}});function jL(t){let n=t[pr]??Object.create(zL);return n.lView=t,n}var zL=A(_({},Ts),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let n=zo(t.lView);for(;n&&!hS(n[Ce]);)n=zo(n);n&&qp(n)},consumerOnSignalRead(){this.lView[pr]=this}});function hS(t){return t.type!==2}function mS(t){if(t[fo]===null)return;let n=!0;for(;n;){let e=!1;for(let r of t[fo])r.dirty&&(e=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));n=e&&!!(t[Se]&8192)}}var HL=100;function gS(t,n=0){let r=t[Ti].rendererFactory,i=!1;i||r.begin?.();try{$L(t,n)}finally{i||r.end?.()}}function $L(t,n){let e=Q0();try{sl(!0),Sy(t,n);let r=0;for(;il(t);){if(r===HL)throw new U(103,!1);r++,Sy(t,1)}}finally{sl(e)}}function UL(t,n,e,r){if(Ws(n))return;let i=n[Se],o=!1,s=!1;Xp(n);let a=!0,l=null,c=null;o||(hS(t)?(c=FL(n),l=Es(c)):np()===null?(a=!1,c=jL(n),l=Es(c)):n[pr]&&(Ss(n[pr]),n[pr]=null));try{L0(n),vT(t.bindingStartIndex),e!==null&&lS(t,n,e,2,r);let d=(i&3)===3;if(!o)if(d){let f=t.preOrderCheckHooks;f!==null&&rf(n,f,null)}else{let f=t.preOrderHooks;f!==null&&of(n,f,0,null),oy(n,0)}if(s||WL(n),mS(n),yS(n,0),t.contentQueries!==null&&FE(t,n),!o)if(d){let f=t.contentCheckHooks;f!==null&&rf(n,f)}else{let f=t.contentHooks;f!==null&&of(n,f,1),oy(n,1)}qL(t,n);let u=t.components;u!==null&&vS(n,u,0);let p=t.viewQuery;if(p!==null&&wy(2,p,r),!o)if(d){let f=t.viewCheckHooks;f!==null&&rf(n,f)}else{let f=t.viewHooks;f!==null&&of(n,f,2),oy(n,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),n[Wp]){for(let f of n[Wp])f();n[Wp]=null}o||(pS(n),n[Se]&=-73)}catch(d){throw o||qo(n),d}finally{c!==null&&(Ba(c,l),a&&BL(c)),ef()}}function yS(t,n){for(let e=IE(t);e!==null;e=DE(e))for(let r=Qt;r<e.length;r++){let i=e[r];bS(i,n)}}function WL(t){for(let n=IE(t);n!==null;n=DE(n)){if(!(n[Se]&2))continue;let e=n[Us];for(let r=0;r<e.length;r++){let i=e[r];qp(i)}}}function GL(t,n,e){_t(18);let r=Ir(n,t);bS(r,e),_t(19,r[Xt])}function bS(t,n){Gp(t)&&Sy(t,n)}function Sy(t,n){let r=t[Ce],i=t[Se],o=t[pr],s=!!(n===0&&i&16);if(s||=!!(i&64&&n===0),s||=!!(i&1024),s||=!!(o?.dirty&&Va(o)),s||=!1,o&&(o.dirty=!1),t[Se]&=-9217,s)UL(r,t,r.template,t[Xt]);else if(i&8192){let a=Re(null);try{mS(t),yS(t,1);let l=r.components;l!==null&&vS(t,l,1),pS(t)}finally{Re(a)}}}function vS(t,n,e){for(let r=0;r<n.length;r++)GL(t,n[r],e)}function qL(t,n){let e=t.hostBindingOpCodes;if(e!==null)try{for(let r=0;r<e.length;r++){let i=e[r];if(i<0)Ko(~i);else{let o=i,s=e[++r],a=e[++r];wT(s,o);let l=n[o];_t(24,l),a(2,l),_t(25,l)}}}finally{Ko(-1)}}function hb(t,n){let e=Q0()?64:1088;for(t[Ti].changeDetectionScheduler?.notify(n);t;){t[Se]|=e;let r=zo(t);if(rl(t)&&!r)return t;t=r}return null}function _S(t,n,e,r){return[t,!0,0,n,null,r,null,e,null,null]}function wS(t,n){let e=Qt+n;if(e<t.length)return t[e]}function md(t,n,e,r=!0){let i=n[Ce];if(QL(i,n,t,e),r){let s=Ey(e,t),a=n[It],l=a.parentNode(t[Wo]);l!==null&&dL(i,t[Un],a,n,l,s)}let o=n[Vs];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function CS(t,n){let e=sd(t,n);return e!==void 0&&Lf(e[Ce],e),e}function sd(t,n){if(t.length<=Qt)return;let e=Qt+n,r=t[e];if(r){let i=r[Uo];i!==null&&i!==t&&sb(i,r),n>0&&(t[e-1][Er]=r[Er]);let o=$c(t,Qt+n);cL(r[Ce],r);let s=o[Ei];s!==null&&s.detachView(o[Ce]),r[cn]=null,r[Er]=null,r[Se]&=-129}return r}function QL(t,n,e,r){let i=Qt+r,o=e.length;r>0&&(e[i-1][Er]=n),r<o-Qt?(n[Er]=e[i],C0(e,Qt+r,n)):(e.push(n),n[Er]=null),n[cn]=e;let s=n[Uo];s!==null&&e!==s&&xS(s,n);let a=n[Ei];a!==null&&a.insertView(t),Qp(n),n[Se]|=128}function xS(t,n){let e=t[Us],r=n[cn];if(Si(r))t[Se]|=2;else{let i=r[cn][Wn];n[Wn]!==i&&(t[Se]|=2)}e===null?t[Us]=[n]:e.push(n)}var Yo=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let n=this._lView,e=n[Ce];return od(e,n,e.firstChild,[])}constructor(n,e){this._lView=n,this._cdRefInjectingView=e}get context(){return this._lView[Xt]}set context(n){this._lView[Xt]=n}get destroyed(){return Ws(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let n=this._lView[cn];if(Ur(n)){let e=n[Qc],r=e?e.indexOf(this):-1;r>-1&&(sd(n,r),$c(e,r))}this._attachedToViewContainer=!1}Lf(this._lView[Ce],this._lView)}onDestroy(n){B0(this._lView,n)}markForCheck(){hb(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[Se]&=-129}reattach(){Qp(this._lView),this._lView[Se]|=128}detectChanges(){this._lView[Se]|=1024,gS(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new U(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let n=rl(this._lView),e=this._lView[Uo];e!==null&&!n&&sb(e,this._lView),rS(this._lView[Ce],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new U(902,!1);this._appRef=n;let e=rl(this._lView),r=this._lView[Uo];r!==null&&!e&&xS(r,this._lView),Qp(this._lView)}};function mb(t){return il(t._lView)||!!(t._lView[Se]&64)}function gb(t){qp(t._lView)}var Oi=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=KL;constructor(e,r,i){this._declarationLView=e,this._declarationTContainer=r,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,i){let o=hd(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:r,dehydratedView:i});return new Yo(o)}}return t})();function KL(){return jf(vn(),_e())}function jf(t,n){return t.type&4?new Oi(n,t,yl(t,n)):null}function bl(t,n,e,r,i){let o=t.data[n];if(o===null)o=YL(t,n,e,r,i),_T()&&(o.flags|=32);else if(o.type&64){o.type=e,o.value=r,o.attrs=i;let s=gT();o.injectorIndex=s===null?-1:s.injectorIndex}return ol(o,!0),o}function YL(t,n,e,r,i){let o=W0(),s=G0(),a=s?o:o&&o.parent,l=t.data[n]=JL(t,a,e,n,r,i);return ZL(t,l,o,s),l}function ZL(t,n,e,r){t.firstChild===null&&(t.firstChild=n),e!==null&&(r?e.child==null&&n.parent!==null&&(e.child=n):e.next===null&&(e.next=n,n.prev=e))}function JL(t,n,e,r,i,o){let s=n?n.injectorIndex:-1,a=0;return H0()&&(a|=128),{type:e,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,namespace:Z0(),attrs:o,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:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var Vhe=new RegExp(`^(\\d+)*(${CF}|${wF})*(.*)`);function XL(t){let n=t[O0]??[],r=t[cn][It],i=[];for(let o of n)o.data[RE]!==void 0?i.push(o):e3(o,r);t[O0]=i}function e3(t,n){let e=0,r=t.firstChild;if(r){let i=t.data[OE];for(;e<i;){let o=r.nextSibling;HE(n,r,!1),r=o,e++}}}var t3=()=>null,n3=()=>null;function vf(t,n){return t3(t,n)}function TS(t,n,e){return n3(t,n,e)}var ES=class{},zf=class{},Iy=class{resolveComponentFactory(n){throw new U(917,!1)}},Zo=class{static NULL=new Iy},mo=class{},Jr=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>r3()}return t})();function r3(){let t=_e(),n=vn(),e=Ir(n.index,t);return(Si(e)?e:t)[It]}var SS=(()=>{class t{static \u0275prov=N({token:t,providedIn:"root",factory:()=>null})}return t})();var af={},Dy=class{injector;parentInjector;constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,r){let i=this.injector.get(n,af,r);return i!==af||e===af?i:this.parentInjector.get(n,e,r)}};function _f(t,n,e){let r=e?t.styles:null,i=e?t.classes:null,o=0;if(n!==null)for(let s=0;s<n.length;s++){let a=n[s];if(typeof a=="number")o=a;else if(o==1)i=Vp(i,a);else if(o==2){let l=a,c=n[++s];r=Vp(r,l+": "+c+";")}}e?t.styles=r:t.stylesWithoutHost=r,e?t.classes=i:t.classesWithoutHost=i}function de(t,n=0){let e=_e();if(e===null)return me(t,n);let r=vn();return wE(r,e,ln(t),n)}function IS(t,n,e,r,i){let o=r===null?null:{"":-1},s=i(t,e);if(s!==null){let a=s,l=null,c=null;for(let d of s)if(d.resolveHostDirectives!==null){[a,l,c]=d.resolveHostDirectives(s);break}s3(t,n,e,a,o,l,c)}o!==null&&r!==null&&i3(e,r,o)}function i3(t,n,e){let r=t.localNames=[];for(let i=0;i<n.length;i+=2){let o=e[n[i+1]];if(o==null)throw new U(-301,!1);r.push(n[i],o)}}function o3(t,n,e){n.componentOffset=e,(t.components??=[]).push(n.index)}function s3(t,n,e,r,i,o,s){let a=r.length,l=!1;for(let p=0;p<a;p++){let f=r[p];!l&&Wr(f)&&(l=!0,o3(t,e,p)),yy(pf(e,n),t,f.type)}p3(e,t.data.length,a);for(let p=0;p<a;p++){let f=r[p];f.providersResolver&&f.providersResolver(f)}let c=!1,d=!1,u=QE(t,n,a,null);a>0&&(e.directiveToIndex=new Map);for(let p=0;p<a;p++){let f=r[p];if(e.mergedAttrs=dl(e.mergedAttrs,f.hostAttrs),l3(t,e,n,u,f),u3(u,f,i),s!==null&&s.has(f)){let[b,v]=s.get(f);e.directiveToIndex.set(f.type,[u,b+e.directiveStart,v+e.directiveStart])}else(o===null||!o.has(f))&&e.directiveToIndex.set(f.type,u);f.contentQueries!==null&&(e.flags|=4),(f.hostBindings!==null||f.hostAttrs!==null||f.hostVars!==0)&&(e.flags|=64);let y=f.type.prototype;!c&&(y.ngOnChanges||y.ngOnInit||y.ngDoCheck)&&((t.preOrderHooks??=[]).push(e.index),c=!0),!d&&(y.ngOnChanges||y.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(e.index),d=!0),u++}a3(t,e,o)}function a3(t,n,e){for(let r=n.directiveStart;r<n.directiveEnd;r++){let i=t.data[r];if(e===null||!e.has(i))WT(0,n,i,r),WT(1,n,i,r),qT(n,r,!1);else{let o=e.get(i);GT(0,n,o,r),GT(1,n,o,r),qT(n,r,!0)}}}function WT(t,n,e,r){let i=t===0?e.inputs:e.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s;t===0?s=n.inputs??={}:s=n.outputs??={},s[o]??=[],s[o].push(r),DS(n,o)}}function GT(t,n,e,r){let i=t===0?e.inputs:e.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s=i[o],a;t===0?a=n.hostDirectiveInputs??={}:a=n.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,o),DS(n,s)}}function DS(t,n){n==="class"?t.flags|=8:n==="style"&&(t.flags|=16)}function qT(t,n,e){let{attrs:r,inputs:i,hostDirectiveInputs:o}=t;if(r===null||!e&&i===null||e&&o===null||Jy(t)){t.initialInputs??=[],t.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let l=r[a];if(l===0){a+=4;continue}else if(l===5){a+=2;continue}else if(typeof l=="number")break;if(!e&&i.hasOwnProperty(l)){let c=i[l];for(let d of c)if(d===n){s??=[],s.push(l,r[a+1]);break}}else if(e&&o.hasOwnProperty(l)){let c=o[l];for(let d=0;d<c.length;d+=2)if(c[d]===n){s??=[],s.push(c[d+1],r[a+1]);break}}a+=2}t.initialInputs??=[],t.initialInputs.push(s)}function l3(t,n,e,r,i){t.data[r]=i;let o=i.factory||(i.factory=jo(i.type,!0)),s=new Qs(o,Wr(i),de,null);t.blueprint[r]=s,e[r]=s,c3(t,n,r,QE(t,e,i.hostVars,Gn),i)}function c3(t,n,e,r,i){let o=i.hostBindings;if(o){let s=t.hostBindingOpCodes;s===null&&(s=t.hostBindingOpCodes=[]);let a=~n.index;d3(s)!=a&&s.push(a),s.push(e,r,o)}}function d3(t){let n=t.length;for(;n>0;){let e=t[--n];if(typeof e=="number"&&e<0)return e}return 0}function u3(t,n,e){if(e){if(n.exportAs)for(let r=0;r<n.exportAs.length;r++)e[n.exportAs[r]]=t;Wr(n)&&(e[""]=t)}}function p3(t,n,e){t.flags|=1,t.directiveStart=n,t.directiveEnd=n+e,t.providerIndexes=n}function yb(t,n,e,r,i,o,s,a){let l=n[Ce],c=l.consts,d=Dr(c,s),u=bl(l,t,e,r,d);return o&&IS(l,n,u,Dr(c,a),i),u.mergedAttrs=dl(u.mergedAttrs,u.attrs),u.attrs!==null&&_f(u,u.attrs,!1),u.mergedAttrs!==null&&_f(u,u.mergedAttrs,!0),l.queries!==null&&l.queries.elementStart(l,u),u}function bb(t,n){fE(t,n),R0(n)&&t.queries.elementEnd(n)}function f3(t,n,e,r,i,o){let s=n.consts,a=Dr(s,i),l=bl(n,t,e,r,a);if(l.mergedAttrs=dl(l.mergedAttrs,l.attrs),o!=null){let c=Dr(s,o);l.localNames=[];for(let d=0;d<c.length;d+=2)l.localNames.push(c[d],-1)}return l.attrs!==null&&_f(l,l.attrs,!1),l.mergedAttrs!==null&&_f(l,l.mergedAttrs,!0),n.queries!==null&&n.queries.elementStart(n,l),l}function vb(t){return Hf(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function kS(t,n){if(Array.isArray(t))for(let e=0;e<t.length;e++)n(t[e]);else{let e=t[Symbol.iterator](),r;for(;!(r=e.next()).done;)n(r.value)}}function Hf(t){return t!==null&&(typeof t=="function"||typeof t=="object")}function Jo(t,n,e){return t[n]=e}function $f(t,n){return t[n]}function Xn(t,n,e){if(e===Gn)return!1;let r=t[n];return Object.is(r,e)?!1:(t[n]=e,!0)}function fl(t,n,e,r){let i=Xn(t,n,e);return Xn(t,n+1,r)||i}function MS(t,n,e,r,i){let o=fl(t,n,e,r);return Xn(t,n+2,i)||o}function Uf(t,n,e,r,i,o){let s=fl(t,n,e,r);return fl(t,n+2,i,o)||s}function ly(t,n,e){return function r(i){let o=Go(t)?Ir(t.index,n):n;hb(o,5);let s=n[Xt],a=QT(n,s,e,i),l=r.__ngNextListenerFn__;for(;l;)a=QT(n,s,l,i)&&a,l=l.__ngNextListenerFn__;return a}}function QT(t,n,e,r){let i=Re(null);try{return _t(6,n,e),e(r)!==!1}catch(o){return RL(t,o),!1}finally{_t(7,n,e),Re(i)}}function h3(t,n,e,r,i,o,s,a){let l=nl(t),c=!1,d=null;if(!r&&l&&(d=g3(n,e,o,t.index)),d!==null){let u=d.__ngLastListenerFn__||d;u.__ngNextListenerFn__=s,d.__ngLastListenerFn__=s,c=!0}else{let u=Gr(t,e),p=r?r(u):u;TF(e,p,o,a);let f=i.listen(p,o,a);if(!m3(o)){let y=r?b=>r(Sr(b[t.index])):t.index;OS(y,n,e,o,a,f,!1)}}return c}function m3(t){return t.startsWith("animation")||t.startsWith("transition")}function g3(t,n,e,r){let i=t.cleanup;if(i!=null)for(let o=0;o<i.length-1;o+=2){let s=i[o];if(s===e&&i[o+1]===r){let a=n[el],l=i[o+2];return a&&a.length>l?a[l]:null}typeof s=="string"&&(o+=2)}return null}function OS(t,n,e,r,i,o,s){let a=n.firstCreatePass?j0(n):null,l=V0(e),c=l.length;l.push(i,o),a&&a.push(r,t,c,(c+1)*(s?-1:1))}function KT(t,n,e,r,i,o){let s=n[e],a=n[Ce],c=a.data[e].outputs[r],u=s[c].subscribe(o);OS(t.index,a,n,i,o,u,!0)}var ky=Symbol("BINDING");var wf=class extends Zo{ngModule;constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){let e=$o(n);return new hl(e,this.ngModule)}};function y3(t){return Object.keys(t).map(n=>{let[e,r,i]=t[n],o={propName:e,templateName:n,isSignal:(r&Nf.SignalBased)!==0};return i&&(o.transform=i),o})}function b3(t){return Object.keys(t).map(n=>({propName:t[n],templateName:n}))}function v3(t,n,e){let r=n instanceof Jt?n:n?.injector;return r&&t.getStandaloneInjector!==null&&(r=t.getStandaloneInjector(r)||r),r?new Dy(e,r):e}function _3(t){let n=t.get(mo,null);if(n===null)throw new U(407,!1);let e=t.get(SS,null),r=t.get(ur,null);return{rendererFactory:n,sanitizer:e,changeDetectionScheduler:r,ngReflect:!1}}function w3(t,n){let e=RS(t);return jE(n,e,e==="svg"?P0:e==="math"?lT:null)}function RS(t){return(t.selectors[0][0]||"div").toLowerCase()}var hl=class extends zf{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=y3(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=b3(this.componentDef.outputs),this.cachedOutputs}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=qF(n.selectors),this.ngContentSelectors=n.ngContentSelectors??[],this.isBoundToModule=!!e}create(n,e,r,i,o,s){_t(22);let a=Re(null);try{let l=this.componentDef,c=C3(r,l,s,o),d=v3(l,i||this.ngModule,n),u=_3(d),p=u.rendererFactory.createRenderer(null,l),f=r?wL(p,r,l.encapsulation,d):w3(l,p),y=s?.some(YT)||o?.some(w=>typeof w!="function"&&w.bindings.some(YT)),b=eb(null,c,null,512|qE(l),null,null,u,p,d,null,NE(f,d,!0));b[Vt]=f,Xp(b);let v=null;try{let w=yb(Vt,b,2,"#host",()=>c.directiveRegistry,!0,0);$E(p,f,w),ul(f,b),Vf(c,b,w),Yy(c,w,b),bb(c,w),e!==void 0&&T3(w,this.ngContentSelectors,e),v=Ir(w.index,b),b[Xt]=v[Xt],fb(c,b,null)}catch(w){throw v!==null&&vy(v),vy(b),w}finally{_t(23),ef()}return new Cf(this.componentType,b,!!y)}finally{Re(a)}}};function C3(t,n,e,r){let i=t?["ng-version","20.3.24"]:QF(n.selectors[0]),o=null,s=null,a=0;if(e)for(let d of e)a+=d[ky].requiredVars,d.create&&(d.targetIdx=0,(o??=[]).push(d)),d.update&&(d.targetIdx=0,(s??=[]).push(d));if(r)for(let d=0;d<r.length;d++){let u=r[d];if(typeof u!="function")for(let p of u.bindings){a+=p[ky].requiredVars;let f=d+1;p.create&&(p.targetIdx=f,(o??=[]).push(p)),p.update&&(p.targetIdx=f,(s??=[]).push(p))}}let l=[n];if(r)for(let d of r){let u=typeof d=="function"?d:d.type,p=Up(u);l.push(p)}return Xy(0,null,x3(o,s),1,a,l,null,null,null,[i],null)}function x3(t,n){return!t&&!n?null:e=>{if(e&1&&t)for(let r of t)r.create();if(e&2&&n)for(let r of n)r.update()}}function YT(t){let n=t[ky].kind;return n==="input"||n==="twoWay"}var Cf=class extends ES{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(n,e,r){super(),this._rootLView=e,this._hasInputBindings=r,this._tNode=Kc(e[Ce],Vt),this.location=yl(this._tNode,e),this.instance=Ir(this._tNode.index,e)[Xt],this.hostView=this.changeDetectorRef=new Yo(e,void 0),this.componentType=n}setInput(n,e){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),e))return;let i=this._rootLView,o=pb(r,i[Ce],i,n,e);this.previousInputValues.set(n,e);let s=Ir(r.index,i);hb(s,1)}get injector(){return new qs(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}};function T3(t,n,e){let r=t.projection=[];for(let i=0;i<n.length;i++){let o=e[i];r.push(o!=null&&o.length?Array.from(o):null)}}var Mr=(()=>{class t{static __NG_ELEMENT_ID__=E3}return t})();function E3(){let t=vn();return AS(t,_e())}var S3=Mr,PS=class extends S3{_lContainer;_hostTNode;_hostLView;constructor(n,e,r){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=r}get element(){return yl(this._hostTNode,this._hostLView)}get injector(){return new qs(this._hostTNode,this._hostLView)}get parentInjector(){let n=qy(this._hostTNode,this._hostLView);if(mE(n)){let e=df(n,this._hostLView),r=cf(n),i=e[Ce].data[r+8];return new qs(i,e)}else return new qs(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){let e=ZT(this._lContainer);return e!==null&&e[n]||null}get length(){return this._lContainer.length-Qt}createEmbeddedView(n,e,r){let i,o;typeof r=="number"?i=r:r!=null&&(i=r.index,o=r.injector);let s=vf(this._lContainer,n.ssrId),a=n.createEmbeddedViewImpl(e||{},o,s);return this.insertImpl(a,i,pl(this._hostTNode,s)),a}createComponent(n,e,r,i,o,s,a){let l=n&&!YN(n),c;if(l)c=e;else{let v=e||{};c=v.index,r=v.injector,i=v.projectableNodes,o=v.environmentInjector||v.ngModuleRef,s=v.directives,a=v.bindings}let d=l?n:new hl($o(n)),u=r||this.parentInjector;if(!o&&d.ngModule==null){let w=(l?u:this.parentInjector).get(Jt,null);w&&(o=w)}let p=$o(d.componentType??{}),f=vf(this._lContainer,p?.id??null),y=f?.firstChild??null,b=d.create(u,i,y,o,s,a);return this.insertImpl(b.hostView,c,pl(this._hostTNode,f)),b}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,r){let i=n._lView;if(dT(i)){let a=this.indexOf(n);if(a!==-1)this.detach(a);else{let l=i[cn],c=new PS(l,l[Un],l[cn]);c.detach(c.indexOf(n))}}let o=this._adjustIndex(e),s=this._lContainer;return md(s,i,o,r),n.attachToViewContainerRef(),C0(cy(s),o,n),n}move(n,e){return this.insert(n,e)}indexOf(n){let e=ZT(this._lContainer);return e!==null?e.indexOf(n):-1}remove(n){let e=this._adjustIndex(n,-1),r=sd(this._lContainer,e);r&&($c(cy(this._lContainer),e),Lf(r[Ce],r))}detach(n){let e=this._adjustIndex(n,-1),r=sd(this._lContainer,e);return r&&$c(cy(this._lContainer),e)!=null?new Yo(r):null}_adjustIndex(n,e=0){return n??this.length+e}};function ZT(t){return t[Qc]}function cy(t){return t[Qc]||(t[Qc]=[])}function AS(t,n){let e,r=n[t.index];return Ur(r)?e=r:(e=_S(r,n,null,t),n[t.index]=e,tb(n,e)),D3(e,n,t,r),new PS(e,t,n)}function I3(t,n){let e=t[It],r=e.createComment(""),i=Gr(n,t),o=e.parentNode(i);return mf(e,o,r,e.nextSibling(i),!1),r}var D3=O3,k3=()=>!1;function M3(t,n,e){return k3(t,n,e)}function O3(t,n,e,r){if(t[Wo])return;let i;e.type&8?i=Sr(r):i=I3(n,e),t[Wo]=i}var My=class t{queryList;matches=null;constructor(n){this.queryList=n}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Oy=class t{queries;constructor(n=[]){this.queries=n}createEmbeddedView(n){let e=n.queries;if(e!==null){let r=n.contentQueries!==null?n.contentQueries[0]:e.length,i=[];for(let o=0;o<r;o++){let s=e.getByIndex(o),a=this.queries[s.indexInDeclarationView];i.push(a.clone())}return new t(i)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}finishViewCreation(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let e=0;e<this.queries.length;e++)wb(n,e).matches!==null&&this.queries[e].setDirty()}},xf=class{flags;read;predicate;constructor(n,e,r=null){this.flags=e,this.read=r,typeof n=="string"?this.predicate=L3(n):this.predicate=n}},Ry=class t{queries;constructor(n=[]){this.queries=n}elementStart(n,e){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(n,e)}elementEnd(n){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(n)}embeddedTView(n){let e=null;for(let r=0;r<this.length;r++){let i=e!==null?e.length:0,o=this.getByIndex(r).embeddedTView(n,i);o&&(o.indexInDeclarationView=r,e!==null?e.push(o):e=[o])}return e!==null?new t(e):null}template(n,e){for(let r=0;r<this.queries.length;r++)this.queries[r].template(n,e)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}},Py=class t{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(n,e=-1){this.metadata=n,this._declarationNodeIndex=e}elementStart(n,e){this.isApplyingToNode(e)&&this.matchTNode(n,e)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,e){this.elementStart(n,e)}embeddedTView(n,e){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,e),new t(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let e=this._declarationNodeIndex,r=n.parent;for(;r!==null&&r.type&8&&r.index!==e;)r=r.parent;return e===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(n,e){let r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){let o=r[i];this.matchTNodeWithReadOption(n,e,R3(e,o)),this.matchTNodeWithReadOption(n,e,sf(e,n,o,!1,!1))}else r===Oi?e.type&4&&this.matchTNodeWithReadOption(n,e,-1):this.matchTNodeWithReadOption(n,e,sf(e,n,r,!1,!1))}matchTNodeWithReadOption(n,e,r){if(r!==null){let i=this.metadata.read;if(i!==null)if(i===un||i===Mr||i===Oi&&e.type&4)this.addMatch(e.index,-2);else{let o=sf(e,n,i,!1,!1);o!==null&&this.addMatch(e.index,o)}else this.addMatch(e.index,r)}}addMatch(n,e){this.matches===null?this.matches=[n,e]:this.matches.push(n,e)}};function R3(t,n){let e=t.localNames;if(e!==null){for(let r=0;r<e.length;r+=2)if(e[r]===n)return e[r+1]}return null}function P3(t,n){return t.type&11?yl(t,n):t.type&4?jf(t,n):null}function A3(t,n,e,r){return e===-1?P3(n,t):e===-2?N3(t,n,r):id(t,t[Ce],e,n)}function N3(t,n,e){if(e===un)return yl(n,t);if(e===Oi)return jf(n,t);if(e===Mr)return AS(n,t)}function NS(t,n,e,r){let i=n[Ei].queries[r];if(i.matches===null){let o=t.data,s=e.matches,a=[];for(let l=0;s!==null&&l<s.length;l+=2){let c=s[l];if(c<0)a.push(null);else{let d=o[c];a.push(A3(n,d,s[l+1],e.metadata.read))}}i.matches=a}return i.matches}function Ay(t,n,e,r){let i=t.queries.getByIndex(e),o=i.matches;if(o!==null){let s=NS(t,n,i,e);for(let a=0;a<o.length;a+=2){let l=o[a];if(l>0)r.push(s[a/2]);else{let c=o[a+1],d=n[-l];for(let u=Qt;u<d.length;u++){let p=d[u];p[Uo]===p[cn]&&Ay(p[Ce],p,c,r)}if(d[Us]!==null){let u=d[Us];for(let p=0;p<u.length;p++){let f=u[p];Ay(f[Ce],f,c,r)}}}}}return r}function _b(t,n){return t[Ei].queries[n].queryList}function FS(t,n,e){let r=new ff((e&4)===4);return fT(t,n,r,r.destroy),(n[Ei]??=new Oy).queries.push(new My(r))-1}function LS(t,n,e){let r=jt();return r.firstCreatePass&&(BS(r,new xf(t,n,e),-1),(n&2)===2&&(r.staticViewQueries=!0)),FS(r,_e(),n)}function F3(t,n,e,r){let i=jt();if(i.firstCreatePass){let o=vn();BS(i,new xf(n,e,r),o.index),B3(i,t),(e&2)===2&&(i.staticContentQueries=!0)}return FS(i,_e(),e)}function L3(t){return t.split(",").map(n=>n.trim())}function BS(t,n,e){t.queries===null&&(t.queries=new Ry),t.queries.track(new Py(n,e))}function B3(t,n){let e=t.contentQueries||(t.contentQueries=[]),r=e.length?e[e.length-1]:-1;n!==r&&e.push(t.queries.length-1,n)}function wb(t,n){return t.queries.getByIndex(n)}function VS(t,n){let e=t[Ce],r=wb(e,n);return r.crossesNgTemplate?Ay(e,t,n,[]):NS(e,t,r,n)}function jS(t,n,e){let r,i=Mc(()=>{r._dirtyCounter();let o=j3(r,t);if(n&&o===void 0)throw new U(-951,!1);return o});return r=i[yn],r._dirtyCounter=ge(0),r._flatValue=void 0,i}function zS(t){return jS(!0,!1,t)}function HS(t){return jS(!0,!0,t)}function V3(t,n){let e=t[yn];e._lView=_e(),e._queryIndex=n,e._queryList=_b(e._lView,n),e._queryList.onDirty(()=>e._dirtyCounter.update(r=>r+1))}function j3(t,n){let e=t._lView,r=t._queryIndex;if(e===void 0||r===void 0||e[Se]&4)return n?void 0:Bn;let i=_b(e,r),o=VS(e,r);return i.reset(o,TE),n?i.first:i._changesDetected||t._flatValue===void 0?t._flatValue=i.toArray():t._flatValue}var Ys=class{},Wf=class{};var Tf=class extends Ys{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new wf(this);constructor(n,e,r,i=!0){super(),this.ngModuleType=n,this._parent=e;let o=E0(n);this._bootstrapComponents=UE(o.bootstrap),this._r3Injector=J0(n,e,[{provide:Ys,useValue:this},{provide:Zo,useValue:this.componentFactoryResolver},...r],co(n),new Set(["environment"])),i&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}},Ef=class extends Wf{moduleType;constructor(n){super(),this.moduleType=n}create(n){return new Tf(this.moduleType,n,[])}};var ad=class extends Ys{injector;componentFactoryResolver=new wf(this);instance=null;constructor(n){super();let e=new Fs([...n.providers,{provide:Ys,useValue:this},{provide:Zo,useValue:this.componentFactoryResolver}],n.parent||Gc(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}};function gd(t,n,e=null){return new ad({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}var z3=(()=>{class t{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let r=S0(!1,e.type),i=r.length>0?gd([r],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,i)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=N({token:t,providedIn:"environment",factory:()=>new t(me(Jt))})}return t})();function $(t){return dd(()=>{let n=$S(t),e=A(_({},n),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Qy.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:n.standalone?i=>i.get(z3).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||ho.Emulated,styles:t.styles||Bn,_:null,schemas:t.schemas||null,tView:null,id:""});n.standalone&&Zr("NgStandalone"),US(e);let r=t.dependencies;return e.directiveDefs=JT(r,H3),e.pipeDefs=JT(r,eT),e.id=W3(e),e})}function H3(t){return $o(t)||Up(t)}function ke(t){return dd(()=>({type:t.type,bootstrap:t.bootstrap||Bn,declarations:t.declarations||Bn,imports:t.imports||Bn,exports:t.exports||Bn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function $3(t,n){if(t==null)return Hr;let e={};for(let r in t)if(t.hasOwnProperty(r)){let i=t[r],o,s,a,l;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o,l=i[3]||null):(o=i,s=i,a=Nf.None,l=null),e[o]=[r,a,l],n[o]=s}return e}function U3(t){if(t==null)return Hr;let n={};for(let e in t)t.hasOwnProperty(e)&&(n[t[e]]=e);return n}function Ue(t){return dd(()=>{let n=$S(t);return US(n),n})}function Cb(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function $S(t){let n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputConfig:t.inputs||Hr,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||Bn,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:$3(t.inputs,n),outputs:U3(t.outputs),debugInfo:null}}function US(t){t.features?.forEach(n=>n(t))}function JT(t,n){return t?()=>{let e=typeof t=="function"?t():t,r=[];for(let i of e){let o=n(i);o!==null&&r.push(o)}return r}:null}function W3(t){let n=0,e=typeof t.consts=="function"?"":t.consts,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,e,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let o of r.join("|"))n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}function G3(t){return Object.getPrototypeOf(t.prototype).constructor}function j(t){let n=G3(t.type),e=!0,r=[t];for(;n;){let i;if(Wr(t))i=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new U(903,!1);i=n.\u0275dir}if(i){if(e){r.push(i);let s=t;s.inputs=dy(t.inputs),s.declaredInputs=dy(t.declaredInputs),s.outputs=dy(t.outputs);let a=i.hostBindings;a&&Z3(t,a);let l=i.viewQuery,c=i.contentQueries;if(l&&K3(t,l),c&&Y3(t,c),q3(t,i),Wx(t.outputs,i.outputs),Wr(i)&&i.data.animation){let d=t.data;d.animation=(d.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s<o.length;s++){let a=o[s];a&&a.ngInherit&&a(t),a===j&&(e=!1)}}n=Object.getPrototypeOf(n)}Q3(r)}function q3(t,n){for(let e in n.inputs){if(!n.inputs.hasOwnProperty(e)||t.inputs.hasOwnProperty(e))continue;let r=n.inputs[e];r!==void 0&&(t.inputs[e]=r,t.declaredInputs[e]=n.declaredInputs[e])}}function Q3(t){let n=0,e=null;for(let r=t.length-1;r>=0;r--){let i=t[r];i.hostVars=n+=i.hostVars,i.hostAttrs=dl(i.hostAttrs,e=dl(e,i.hostAttrs))}}function dy(t){return t===Hr?{}:t===Bn?[]:t}function K3(t,n){let e=t.viewQuery;e?t.viewQuery=(r,i)=>{n(r,i),e(r,i)}:t.viewQuery=n}function Y3(t,n){let e=t.contentQueries;e?t.contentQueries=(r,i,o)=>{n(r,i,o),e(r,i,o)}:t.contentQueries=n}function Z3(t,n){let e=t.hostBindings;e?t.hostBindings=(r,i)=>{n(r,i),e(r,i)}:t.hostBindings=n}function et(t){let n=e=>{let r=Array.isArray(t);e.hostDirectives===null?(e.resolveHostDirectives=J3,e.hostDirectives=r?t.map(Ny):[t]):r?e.hostDirectives.unshift(...t.map(Ny)):e.hostDirectives.unshift(t)};return n.ngInherit=!0,n}function J3(t){let n=[],e=!1,r=null,i=null;for(let o=0;o<t.length;o++){let s=t[o];if(s.hostDirectives!==null){let a=n.length;r??=new Map,i??=new Map,WS(s,n,r),i.set(s,[a,n.length-1])}o===0&&Wr(s)&&(e=!0,n.push(s))}for(let o=e?1:0;o<t.length;o++)n.push(t[o]);return[n,r,i]}function WS(t,n,e){if(t.hostDirectives!==null)for(let r of t.hostDirectives)if(typeof r=="function"){let i=r();for(let o of i)XT(Ny(o),n,e)}else XT(r,n,e)}function XT(t,n,e){let r=Up(t.directive);X3(r.declaredInputs,t.inputs),WS(r,n,e),e.set(r,t),n.push(r)}function Ny(t){return typeof t=="function"?{directive:ln(t),inputs:Hr,outputs:Hr}:{directive:ln(t.directive),inputs:eE(t.inputs),outputs:eE(t.outputs)}}function eE(t){if(t===void 0||t.length===0)return Hr;let n={};for(let e=0;e<t.length;e+=2)n[t[e]]=t[e+1];return n}function X3(t,n){for(let e in n)if(n.hasOwnProperty(e)){let r=n[e],i=t[e];t[r]=i}}function GS(t,n,e,r,i,o,s,a){if(e.firstCreatePass){t.mergedAttrs=dl(t.mergedAttrs,t.attrs);let d=t.tView=Xy(2,t,i,o,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,e.consts,null);e.queries!==null&&(e.queries.template(e,t),d.queries=e.queries.embeddedTView(t))}a&&(t.flags|=a),ol(t,!1);let l=t5(e,n,t,r);tf()&&ab(e,n,l,t),ul(l,n);let c=_S(l,n,l,t);n[r+Vt]=c,tb(n,c),M3(c,t,n)}function e5(t,n,e,r,i,o,s,a,l,c,d){let u=e+Vt,p;return n.firstCreatePass?(p=bl(n,u,4,s||null,a||null),Kp()&&IS(n,t,p,Dr(n.consts,c),cb),fE(n,p)):p=n.data[u],GS(p,t,n,e,r,i,o,l),nl(p)&&Vf(n,t,p),c!=null&&fd(t,p,d),p}function ld(t,n,e,r,i,o,s,a,l,c,d){let u=e+Vt,p;if(n.firstCreatePass){if(p=bl(n,u,4,s||null,a||null),c!=null){let f=Dr(n.consts,c);p.localNames=[];for(let y=0;y<f.length;y+=2)p.localNames.push(f[y],-1)}}else p=n.data[u];return GS(p,t,n,e,r,i,o,l),c!=null&&fd(t,p,d),p}function C(t,n,e,r,i,o,s,a){let l=_e(),c=jt(),d=Dr(c.consts,o);return e5(l,c,t,n,e,r,i,d,void 0,s,a),C}var t5=n5;function n5(t,n,e,r){return Jc(!0),n[It].createComment("")}var xb=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();var Tb=new H("");function Xo(t){return!!t&&typeof t.then=="function"}function Eb(t){return!!t&&typeof t.subscribe=="function"}var Sb=new H("");function vl(t){return Tr([{provide:Sb,multi:!0,useValue:t}])}var Ib=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,r)=>{this.resolve=e,this.reject=r});appInits=x(Sb,{optional:!0})??[];injector=x(Bt);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let i of this.appInits){let o=In(this.injector,i);if(Xo(o))e.push(o);else if(Eb(o)){let s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});e.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{r()}).catch(i=>{this.reject(i)}),e.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Gf=new H("");function qS(){Pg(()=>{let t="";throw new U(600,t)})}function QS(t){return t.isBoundToModule}var r5=10;var Ri=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=x(Jn);afterRenderManager=x(ob);zonelessEnabled=x(Xc);rootEffectScheduler=x(td);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new qe;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=x(ki);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(be(e=>!e))}constructor(){x(Xs,{optional:!0})}whenStable(){let e;return new Promise(r=>{e=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{e.unsubscribe()})}_injector=x(Jt);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,r){return this.bootstrapImpl(e,r)}bootstrapImpl(e,r,i=Bt.NULL){return this._injector.get($e).run(()=>{_t(10);let s=e instanceof zf;if(!this._injector.get(Ib).done){let y="";throw new U(405,y)}let l;s?l=e:l=this._injector.get(Zo).resolveComponentFactory(e),this.componentTypes.push(l.componentType);let c=QS(l)?void 0:this._injector.get(Ys),d=r||l.selector,u=l.create(i,[],d,c),p=u.location.nativeElement,f=u.injector.get(Tb,null);return f?.registerApplication(p),u.onDestroy(()=>{this.detachView(u.hostView),rd(this.components,u),f?.unregisterApplication(p)}),this._loadComponent(u),_t(11,u),u})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){_t(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(Ff.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new U(101,!1);let e=Re(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,Re(e),this.afterTick.next(),_t(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(mo,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++<r5;)_t(14),this.synchronizeOnce(),_t(15)}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let e=!1;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:i}of this.allViews){if(!r&&!il(i))continue;let o=r&&!this.zonelessEnabled?0:1;gS(i,o),e=!0}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}e||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:e})=>il(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let r=e;this._views.push(r),r.attachToAppRef(this)}detachView(e){let r=e;rd(this._views,r),r.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView);try{this.tick()}catch(i){this.internalErrorHandler(i)}this.components.push(e),this._injector.get(Gf,[]).forEach(i=>i(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>rd(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new U(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function rd(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function J(t,n,e,r){let i=_e(),o=Qo();if(Xn(i,o,n)){let s=jt(),a=Zc();kL(a,i,t,n,e,r)}return J}var Ghe=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var Fy=class{destroy(n){}updateValue(n,e){}swap(n,e){let r=Math.min(n,e),i=Math.max(n,e),o=this.detach(i);if(i-r>1){let s=this.detach(r);this.attach(r,o),this.attach(i,s)}else this.attach(r,o)}move(n,e){this.attach(e,this.detach(n))}};function uy(t,n,e,r,i){return t===e&&Object.is(n,r)?1:Object.is(i(t,n),i(e,r))?-1:0}function i5(t,n,e){let r,i,o=0,s=t.length-1,a=void 0;if(Array.isArray(n)){let l=n.length-1;for(;o<=s&&o<=l;){let c=t.at(o),d=n[o],u=uy(o,c,o,d,e);if(u!==0){u<0&&t.updateValue(o,d),o++;continue}let p=t.at(s),f=n[l],y=uy(s,p,l,f,e);if(y!==0){y<0&&t.updateValue(s,f),s--,l--;continue}let b=e(o,c),v=e(s,p),w=e(o,d);if(Object.is(w,v)){let D=e(l,f);Object.is(D,b)?(t.swap(o,s),t.updateValue(s,f),l--,s--):t.move(s,o),t.updateValue(o,d),o++;continue}if(r??=new Sf,i??=nE(t,o,s,e),Ly(t,r,o,w))t.updateValue(o,d),o++,s++;else if(i.has(w))r.set(b,t.detach(o)),s--;else{let D=t.create(o,n[o]);t.attach(o,D),o++,s++}}for(;o<=l;)tE(t,r,e,o,n[o]),o++}else if(n!=null){let l=n[Symbol.iterator](),c=l.next();for(;!c.done&&o<=s;){let d=t.at(o),u=c.value,p=uy(o,d,o,u,e);if(p!==0)p<0&&t.updateValue(o,u),o++,c=l.next();else{r??=new Sf,i??=nE(t,o,s,e);let f=e(o,u);if(Ly(t,r,o,f))t.updateValue(o,u),o++,s++,c=l.next();else if(!i.has(f))t.attach(o,t.create(o,u)),o++,s++,c=l.next();else{let y=e(o,d);r.set(y,t.detach(o)),s--}}}for(;!c.done;)tE(t,r,e,t.length,c.value),c=l.next()}for(;o<=s;)t.destroy(t.detach(s--));r?.forEach(l=>{t.destroy(l)})}function Ly(t,n,e,r){return n!==void 0&&n.has(r)?(t.attach(e,n.get(r)),n.delete(r),!0):!1}function tE(t,n,e,r,i){if(Ly(t,n,r,e(r,i)))t.updateValue(r,i);else{let o=t.create(r,i);t.attach(r,o)}}function nE(t,n,e,r){let i=new Set;for(let o=n;o<=e;o++)i.add(r(o,t.at(o)));return i}var Sf=class{kvMap=new Map;_vMap=void 0;has(n){return this.kvMap.has(n)}delete(n){if(!this.has(n))return!1;let e=this.kvMap.get(n);return this._vMap!==void 0&&this._vMap.has(e)?(this.kvMap.set(n,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(n),!0}get(n){return this.kvMap.get(n)}set(n,e){if(this.kvMap.has(n)){let r=this.kvMap.get(n);this._vMap===void 0&&(this._vMap=new Map);let i=this._vMap;for(;i.has(r);)r=i.get(r);i.set(r,e)}else this.kvMap.set(n,e)}forEach(n){for(let[e,r]of this.kvMap)if(n(r,e),this._vMap!==void 0){let i=this._vMap;for(;i.has(r);)r=i.get(r),n(r,e)}}};function rt(t,n,e,r,i,o,s,a){Zr("NgControlFlow");let l=_e(),c=jt(),d=Dr(c.consts,o);return ld(l,c,t,n,e,r,i,d,256,s,a),Db}function Db(t,n,e,r,i,o,s,a){Zr("NgControlFlow");let l=_e(),c=jt(),d=Dr(c.consts,o);return ld(l,c,t,n,e,r,i,d,512,s,a),Db}function it(t,n){Zr("NgControlFlow");let e=_e(),r=Qo(),i=e[r]!==Gn?e[r]:-1,o=i!==-1?If(e,Vt+i):void 0,s=0;if(Xn(e,r,t)){let a=Re(null);try{if(o!==void 0&&CS(o,s),t!==-1){let l=Vt+t,c=If(e,l),d=zy(e[Ce],l),u=TS(c,d,e),p=hd(e,d,n,{dehydratedView:u});md(c,p,s,pl(d,u))}}finally{Re(a)}}else if(o!==void 0){let a=wS(o,s);a!==void 0&&(a[Xt]=n)}}var By=class{lContainer;$implicit;$index;constructor(n,e,r){this.lContainer=n,this.$implicit=e,this.$index=r}get $count(){return this.lContainer.length-Qt}};function qf(t){return t}var Vy=class{hasEmptyBlock;trackByFn;liveCollection;constructor(n,e,r){this.hasEmptyBlock=n,this.trackByFn=e,this.liveCollection=r}};function es(t,n,e,r,i,o,s,a,l,c,d,u,p){Zr("NgControlFlow");let f=_e(),y=jt(),b=l!==void 0,v=_e(),w=a?s.bind(v[Wn][Xt]):s,D=new Vy(b,w);v[Vt+t]=D,ld(f,y,t+1,n,e,r,i,Dr(y.consts,o),256),b&&ld(f,y,t+2,l,c,d,u,Dr(y.consts,p),512)}var jy=class extends Fy{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(n,e,r){super(),this.lContainer=n,this.hostLView=e,this.templateTNode=r}get length(){return this.lContainer.length-Qt}at(n){return this.getLView(n)[Xt].$implicit}attach(n,e){let r=e[Vs];this.needsIndexUpdate||=n!==this.length,md(this.lContainer,e,n,pl(this.templateTNode,r)),o5(this.lContainer,n)}detach(n){return this.needsIndexUpdate||=n!==this.length-1,s5(this.lContainer,n),a5(this.lContainer,n)}create(n,e){let r=vf(this.lContainer,this.templateTNode.tView.ssrId),i=hd(this.hostLView,this.templateTNode,new By(this.lContainer,e,n),{dehydratedView:r});return this.operationsCounter?.recordCreate(),i}destroy(n){Lf(n[Ce],n),this.operationsCounter?.recordDestroy()}updateValue(n,e){this.getLView(n)[Xt].$implicit=e}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n<this.length;n++)this.getLView(n)[Xt].$index=n}getLView(n){return l5(this.lContainer,n)}};function ts(t){let n=Re(null),e=Di();try{let r=_e(),i=r[Ce],o=r[e],s=e+1,a=If(r,s);if(o.liveCollection===void 0){let c=zy(i,s);o.liveCollection=new jy(a,r,c)}else o.liveCollection.reset();let l=o.liveCollection;if(i5(l,t,o.trackByFn),l.updateIndexes(),o.hasEmptyBlock){let c=Qo(),d=l.length===0;if(Xn(r,c,d)){let u=e+2,p=If(r,u);if(d){let f=zy(i,u),y=TS(p,f,r),b=hd(r,f,void 0,{dehydratedView:y});md(p,b,0,pl(f,y))}else i.firstUpdatePass&&XL(p),CS(p,0)}}}finally{Re(n)}}function If(t,n){return t[n]}function o5(t,n){if(t.length<=Qt)return;let e=Qt+n,r=t[e],i=r?r[$s]:void 0;if(r&&i&&i.detachedLeaveAnimationFns&&i.detachedLeaveAnimationFns.length>0){let o=r[po];aL(o,i),Ks.delete(r),i.detachedLeaveAnimationFns=void 0}}function s5(t,n){if(t.length<=Qt)return;let e=Qt+n,r=t[e],i=r?r[$s]:void 0;i&&i.leave&&i.leave.size>0&&(i.detachedLeaveAnimationFns=[])}function a5(t,n){return sd(t,n)}function l5(t,n){return wS(t,n)}function zy(t,n){return Kc(t,n)}function h(t,n,e){let r=_e(),i=Qo();if(Xn(r,i,n)){let o=jt(),s=Zc();cS(s,r,t,n,r[It],e)}return h}function Hy(t,n,e,r,i){pb(n,t,e,i?"class":"style",r)}function E(t,n,e,r){let i=_e(),o=i[Ce],s=t+Vt,a=o.firstCreatePass?yb(s,i,2,n,cb,Kp(),e,r):o.data[s];if(db(a,i,t,n,KS),nl(a)){let l=i[Ce];Vf(l,i,a),Yy(l,a,i)}return r!=null&&fd(i,a),E}function T(){let t=jt(),n=vn(),e=ub(n);return t.firstCreatePass&&bb(t,e),$0(e)&&U0(),z0(),e.classesWithoutHost!=null&&nF(e)&&Hy(t,e,_e(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&rF(e)&&Hy(t,e,_e(),e.stylesWithoutHost,!1),T}function X(t,n,e,r){return E(t,n,e,r),T(),X}function ot(t,n,e,r){let i=_e(),o=i[Ce],s=t+Vt,a=o.firstCreatePass?f3(s,o,2,n,e,r):o.data[s];return db(a,i,t,n,KS),r!=null&&fd(i,a),ot}function st(){let t=vn(),n=ub(t);return $0(n)&&U0(),z0(),st}function ue(t,n,e,r){return ot(t,n,e,r),st(),ue}var KS=(t,n,e,r,i)=>(Jc(!0),jE(n[It],r,Z0()));function ie(t,n,e){let r=_e(),i=r[Ce],o=t+Vt,s=i.firstCreatePass?yb(o,r,8,"ng-container",cb,Kp(),n,e):i.data[o];if(db(s,r,t,"ng-container",c5),nl(s)){let a=r[Ce];Vf(a,r,s),Yy(a,s,r)}return e!=null&&fd(r,s),ie}function oe(){let t=jt(),n=vn(),e=ub(n);return t.firstCreatePass&&bb(t,e),oe}function ne(t,n,e){return ie(t,n,e),oe(),ne}var c5=(t,n,e,r,i)=>(Jc(!0),PF(n[It],""));function se(){return _e()}function Ft(t,n,e){let r=_e(),i=Qo();if(Xn(r,i,n)){let o=jt(),s=Zc();dS(s,r,t,n,r[It],e)}return Ft}var yd="en-US";var d5=yd;function YS(t){typeof t=="string"&&(d5=t.toLowerCase().replace(/_/g,"-"))}function q(t,n,e){let r=_e(),i=jt(),o=vn();return ZS(i,r,r[It],o,t,n,e),q}function ZS(t,n,e,r,i,o,s){let a=!0,l=null;if((r.type&3||s)&&(l??=ly(r,n,o),h3(r,t,n,s,e,i,o,l)&&(a=!1)),a){let c=r.outputs?.[i],d=r.hostDirectiveOutputs?.[i];if(d&&d.length)for(let u=0;u<d.length;u+=2){let p=d[u],f=d[u+1];l??=ly(r,n,o),KT(r,n,p,f,i,l)}if(c&&c.length)for(let u of c)l??=ly(r,n,o),KT(r,n,u,i,i,l)}}function m(t=1){return IT(t)}function u5(t,n){let e=null,r=HF(t);for(let i=0;i<n.length;i++){let o=n[i];if(o==="*"){e=i;continue}if(r===null?GE(t,o,!0):WF(r,o))return i}return e}function zt(t){let n=_e()[Wn][Un];if(!n.projection){let e=t?t.length:1,r=n.projection=Jx(e,null),i=r.slice(),o=n.child;for(;o!==null;){if(o.type!==128){let s=t?u5(o,t):0;s!==null&&(i[s]?i[s].projectionNext=o:r[s]=o,i[s]=o)}o=o.next}}}function Ot(t,n=0,e,r,i,o){let s=_e(),a=jt(),l=r?t+1:null;l!==null&&ld(s,a,l,r,i,o,null,e);let c=bl(a,Vt+t,16,null,e||null);c.projection===null&&(c.projection=n),q0();let u=!s[Vs]||H0();s[Wn][Un].projection[c.projection]===null&&l!==null?p5(s,a,l):u&&!Af(c)&&bL(a,s,c)}function p5(t,n,e){let r=Vt+e,i=n.data[r],o=t[r],s=vf(o,i.tView.ssrId),a=hd(t,i,void 0,{dehydratedView:s});md(o,a,0,pl(i,s))}function V(t,n,e,r){F3(t,n,e,r)}function ct(t,n,e){LS(t,n,e)}function M(t){let n=_e(),e=jt(),r=Jp();Yc(r+1);let i=wb(e,r);if(t.dirty&&cT(n)===((i.metadata.flags&2)===2)){if(i.matches===null)t.reset([]);else{let o=VS(n,r);t.reset(o,TE),t.notifyOnChanges()}return!0}return!1}function O(){return _b(_e(),Jp())}function kb(t,n,e,r){V3(t,LS(n,e,r))}function Qf(t=1){Yc(Jp()+t)}function pn(t){let n=yT();return N0(n,Vt+t)}function nf(t,n){return t<<17|n<<2}function Zs(t){return t>>17&32767}function f5(t){return(t&2)==2}function h5(t,n){return t&131071|n<<17}function $y(t){return t|2}function ml(t){return(t&131068)>>2}function py(t,n){return t&-131069|n<<2}function m5(t){return(t&1)===1}function Uy(t){return t|1}function g5(t,n,e,r,i,o){let s=o?n.classBindings:n.styleBindings,a=Zs(s),l=ml(s);t[r]=e;let c=!1,d;if(Array.isArray(e)){let u=e;d=u[1],(d===null||Xa(u,d)>0)&&(c=!0)}else d=e;if(i)if(l!==0){let p=Zs(t[a+1]);t[r+1]=nf(p,a),p!==0&&(t[p+1]=py(t[p+1],r)),t[a+1]=h5(t[a+1],r)}else t[r+1]=nf(a,0),a!==0&&(t[a+1]=py(t[a+1],r)),a=r;else t[r+1]=nf(l,0),a===0?a=r:t[l+1]=py(t[l+1],r),l=r;c&&(t[r+1]=$y(t[r+1])),rE(t,d,r,!0),rE(t,d,r,!1),y5(n,d,t,r,o),s=nf(a,l),o?n.classBindings=s:n.styleBindings=s}function y5(t,n,e,r,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof n=="string"&&Xa(o,n)>=0&&(e[r+1]=Uy(e[r+1]))}function rE(t,n,e,r){let i=t[e+1],o=n===null,s=r?Zs(i):ml(i),a=!1;for(;s!==0&&(a===!1||o);){let l=t[s],c=t[s+1];b5(l,n)&&(a=!0,t[s+1]=r?Uy(c):$y(c)),s=r?Zs(c):ml(c)}a&&(t[e+1]=r?$y(i):Uy(i))}function b5(t,n){return t===null||n==null||(Array.isArray(t)?t[1]:t)===n?!0:Array.isArray(t)&&typeof n=="string"?Xa(t,n)>=0:!1}var dn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function JS(t){return t.substring(dn.key,dn.keyEnd)}function v5(t){return t.substring(dn.value,dn.valueEnd)}function _5(t){return tI(t),XS(t,gl(t,0,dn.textEnd))}function XS(t,n){let e=dn.textEnd;return e===n?-1:(n=dn.keyEnd=C5(t,dn.key=n,e),gl(t,n,e))}function w5(t){return tI(t),eI(t,gl(t,0,dn.textEnd))}function eI(t,n){let e=dn.textEnd,r=dn.key=gl(t,n,e);return e===r?-1:(r=dn.keyEnd=x5(t,r,e),r=iE(t,r,e,58),r=dn.value=gl(t,r,e),r=dn.valueEnd=T5(t,r,e),iE(t,r,e,59))}function tI(t){dn.key=0,dn.keyEnd=0,dn.value=0,dn.valueEnd=0,dn.textEnd=t.length}function gl(t,n,e){for(;n<e&&t.charCodeAt(n)<=32;)n++;return n}function C5(t,n,e){for(;n<e&&t.charCodeAt(n)>32;)n++;return n}function x5(t,n,e){let r;for(;n<e&&((r=t.charCodeAt(n))===45||r===95||(r&-33)>=65&&(r&-33)<=90||r>=48&&r<=57);)n++;return n}function iE(t,n,e,r){return n=gl(t,n,e),n<e&&n++,n}function T5(t,n,e){let r=-1,i=-1,o=-1,s=n,a=s;for(;s<e;){let l=t.charCodeAt(s++);if(l===59)return a;l===34||l===39?a=s=oE(t,l,s,e):n===s-4&&o===85&&i===82&&r===76&&l===40?a=s=oE(t,41,s,e):l>32&&(a=s),o=i,i=r,r=l&-33}return a}function oE(t,n,e,r){let i=-1,o=e;for(;o<r;){let s=t.charCodeAt(o++);if(s==n&&i!==92)return o;s==92&&i===92?i=0:i=s}throw new Error}function er(t,n,e){return nI(t,n,e,!1),er}function ea(t,n){return nI(t,n,null,!0),ea}function Dn(t){rI(sI,E5,t,!1)}function E5(t,n){for(let e=w5(n);e>=0;e=eI(n,e))sI(t,JS(n),v5(n))}function k(t){rI(R5,S5,t,!0)}function S5(t,n){for(let e=_5(n);e>=0;e=XS(n,e))Uc(t,JS(n),!0)}function nI(t,n,e,r){let i=_e(),o=jt(),s=Yp(2);if(o.firstUpdatePass&&oI(o,t,s,r),n!==Gn&&Xn(i,s,n)){let a=o.data[Di()];aI(o,a,i,i[It],t,i[s+1]=A5(n,e),r,s)}}function rI(t,n,e,r){let i=jt(),o=Yp(2);i.firstUpdatePass&&oI(i,null,o,r);let s=_e();if(e!==Gn&&Xn(s,o,e)){let a=i.data[Di()];if(lI(a,r)&&!iI(i,o)){let l=r?a.classesWithoutHost:a.stylesWithoutHost;l!==null&&(e=Vp(l,e||"")),Hy(i,a,s,e,r)}else P5(i,a,s,s[It],s[o+1],s[o+1]=O5(t,n,e),r,o)}}function iI(t,n){return n>=t.expandoStartIndex}function oI(t,n,e,r){let i=t.data;if(i[e+1]===null){let o=i[Di()],s=iI(t,e);lI(o,r)&&n===null&&!s&&(n=!1),n=I5(i,o,n,r),g5(i,o,n,e,s,r)}}function I5(t,n,e,r){let i=xT(t),o=r?n.residualClasses:n.residualStyles;if(i===null)(r?n.classBindings:n.styleBindings)===0&&(e=fy(null,t,n,e,r),e=cd(e,n.attrs,r),o=null);else{let s=n.directiveStylingLast;if(s===-1||t[s]!==i)if(e=fy(i,t,n,e,r),o===null){let l=D5(t,n,r);l!==void 0&&Array.isArray(l)&&(l=fy(null,t,n,l[1],r),l=cd(l,n.attrs,r),k5(t,n,r,l))}else o=M5(t,n,r)}return o!==void 0&&(r?n.residualClasses=o:n.residualStyles=o),e}function D5(t,n,e){let r=e?n.classBindings:n.styleBindings;if(ml(r)!==0)return t[Zs(r)]}function k5(t,n,e,r){let i=e?n.classBindings:n.styleBindings;t[Zs(i)]=r}function M5(t,n,e){let r,i=n.directiveEnd;for(let o=1+n.directiveStylingLast;o<i;o++){let s=t[o].hostAttrs;r=cd(r,s,e)}return cd(r,n.attrs,e)}function fy(t,n,e,r,i){let o=null,s=e.directiveEnd,a=e.directiveStylingLast;for(a===-1?a=e.directiveStart:a++;a<s&&(o=n[a],r=cd(r,o.hostAttrs,i),o!==t);)a++;return t!==null&&(e.directiveStylingLast=a),r}function cd(t,n,e){let r=e?1:2,i=-1;if(n!==null)for(let o=0;o<n.length;o++){let s=n[o];typeof s=="number"?i=s:i===r&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),Uc(t,s,e?!0:n[++o]))}return t===void 0?null:t}function O5(t,n,e){if(e==null||e==="")return Bn;let r=[],i=ud(e);if(Array.isArray(i))for(let o=0;o<i.length;o++)t(r,i[o],!0);else if(typeof i=="object")for(let o in i)i.hasOwnProperty(o)&&t(r,o,i[o]);else typeof i=="string"&&n(r,i);return r}function sI(t,n,e){Uc(t,n,ud(e))}function R5(t,n,e){let r=String(n);r!==""&&!r.includes(" ")&&Uc(t,r,e)}function P5(t,n,e,r,i,o,s,a){i===Gn&&(i=Bn);let l=0,c=0,d=0<i.length?i[0]:null,u=0<o.length?o[0]:null;for(;d!==null||u!==null;){let p=l<i.length?i[l+1]:void 0,f=c<o.length?o[c+1]:void 0,y=null,b;d===u?(l+=2,c+=2,p!==f&&(y=u,b=f)):u===null||d!==null&&d<u?(l+=2,y=d):(c+=2,y=u,b=f),y!==null&&aI(t,n,e,r,y,b,s,a),d=l<i.length?i[l]:null,u=c<o.length?o[c]:null}}function aI(t,n,e,r,i,o,s,a){if(!(n.type&3))return;let l=t.data,c=l[a+1],d=m5(c)?sE(l,n,e,i,ml(c),s):void 0;if(!Df(d)){Df(o)||f5(c)&&(o=sE(l,null,e,i,a,s));let u=A0(Di(),e);_L(r,s,u,i,o)}}function sE(t,n,e,r,i,o){let s=n===null,a;for(;i>0;){let l=t[i],c=Array.isArray(l),d=c?l[1]:l,u=d===null,p=e[i+1];p===Gn&&(p=u?Bn:void 0);let f=u?$p(p,r):d===r?p:void 0;if(c&&!Df(f)&&(f=$p(l,r)),Df(f)&&(a=f,s))return a;let y=t[i+1];i=s?Zs(y):ml(y)}if(n!==null){let l=o?n.residualClasses:n.residualStyles;l!=null&&(a=$p(l,r))}return a}function Df(t){return t!==void 0}function A5(t,n){return t==null||t===""||(typeof n=="string"?t=t+n:typeof t=="object"&&(t=co(ud(t)))),t}function lI(t,n){return(t.flags&(n?8:16))!==0}function ce(t,n=""){let e=_e(),r=jt(),i=t+Vt,o=r.firstCreatePass?bl(r,i,1,n,null):r.data[i],s=N5(r,e,o,n,t);e[i]=s,tf()&&ab(r,e,s,o),ol(o,!1)}var N5=(t,n,e,r,i)=>(Jc(!0),OF(n[It],r));function cI(t,n,e,r=""){return Xn(t,Qo(),e)?n+Bs(e)+r:Gn}function F5(t,n,e,r,i,o=""){let s=bT(),a=fl(t,s,e,i);return Yp(2),a?n+Bs(e)+r+Bs(i)+o:Gn}function Ze(t){return $t("",t),Ze}function $t(t,n,e){let r=_e(),i=cI(r,t,n,e);return i!==Gn&&dI(r,Di(),i),$t}function _l(t,n,e,r,i){let o=_e(),s=F5(o,t,n,e,r,i);return s!==Gn&&dI(o,Di(),s),_l}function dI(t,n,e){let r=A0(n,t);RF(t[It],r,e)}function Or(t,n,e){ny(n)&&(n=n());let r=_e(),i=Qo();if(Xn(r,i,n)){let o=jt(),s=Zc();cS(s,r,t,n,r[It],e)}return Or}function Xr(t,n){let e=ny(t);return e&&t.set(n),e}function Rr(t,n){let e=_e(),r=jt(),i=vn();return ZS(r,e,e[It],i,t,n),Rr}function Mb(t,n,e=""){return cI(_e(),t,n,e)}function L5(t,n,e){let r=jt();if(r.firstCreatePass){let i=Wr(t);Wy(e,r.data,r.blueprint,i,!0),Wy(n,r.data,r.blueprint,i,!1)}}function Wy(t,n,e,r,i){if(t=ln(t),Array.isArray(t))for(let o=0;o<t.length;o++)Wy(t[o],n,e,r,i);else{let o=jt(),s=_e(),a=vn(),l=Ns(t)?t:ln(t.provide),c=D0(t),d=a.providerIndexes&1048575,u=a.directiveStart,p=a.providerIndexes>>20;if(Ns(t)||!t.multi){let f=new Qs(c,i,de,null),y=my(l,n,i?d:d+p,u);y===-1?(yy(pf(a,s),o,l),hy(o,t,n.length),n.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),e.push(f),s.push(f)):(e[y]=f,s[y]=f)}else{let f=my(l,n,d+p,u),y=my(l,n,d,d+p),b=f>=0&&e[f],v=y>=0&&e[y];if(i&&!v||!i&&!b){yy(pf(a,s),o,l);let w=j5(i?V5:B5,e.length,i,r,c,t);!i&&v&&(e[y].providerFactory=w),hy(o,t,n.length,0),n.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),e.push(w),s.push(w)}else{let w=uI(e[i?y:f],c,!i&&r);hy(o,t,f>-1?f:y,w)}!i&&r&&v&&e[y].componentProviders++}}}function hy(t,n,e,r){let i=Ns(n),o=oT(n);if(i||o){let l=(o?ln(n.useClass):n).prototype.ngOnDestroy;if(l){let c=t.destroyHooks||(t.destroyHooks=[]);if(!i&&n.multi){let d=c.indexOf(e);d===-1?c.push(e,[r,l]):c[d+1].push(r,l)}else c.push(e,l)}}}function uI(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function my(t,n,e,r){for(let i=e;i<r;i++)if(n[i]===t)return i;return-1}function B5(t,n,e,r,i){return Gy(this.multi,[])}function V5(t,n,e,r,i){let o=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,l=id(r,r[Ce],this.providerFactory.index,i);s=l.slice(0,a),Gy(o,s);for(let c=a;c<l.length;c++)s.push(l[c])}else s=[],Gy(o,s);return s}function Gy(t,n){for(let e=0;e<t.length;e++){let r=t[e];n.push(r())}return n}function j5(t,n,e,r,i,o){let s=new Qs(t,e,de,null);return s.multi=[],s.index=n,s.componentProviders=0,uI(s,i,r&&!e),s}function xe(t,n=[]){return e=>{e.providersResolver=(r,i)=>L5(r,i?i(t):t,n)}}function Pi(t,n,e){let r=Ii()+t,i=_e();return i[r]===Gn?Jo(i,r,e?n.call(e):n()):$f(i,r)}function Ee(t,n,e,r){return z5(_e(),Ii(),t,n,e,r)}function Dt(t,n,e,r,i){return H5(_e(),Ii(),t,n,e,r,i)}function Ob(t,n,e,r,i,o){return pI(_e(),Ii(),t,n,e,r,i,o)}function Kf(t,n,e,r,i,o,s){return $5(_e(),Ii(),t,n,e,r,i,o,s)}function bd(t,n,e,r,i,o,s,a){let l=Ii()+t,c=_e(),d=Uf(c,l,e,r,i,o);return Xn(c,l+4,s)||d?Jo(c,l+5,a?n.call(a,e,r,i,o,s):n(e,r,i,o,s)):$f(c,l+5)}function wl(t,n,e,r,i,o,s,a,l){let c=Ii()+t,d=_e(),u=Uf(d,c,e,r,i,o);return fl(d,c+4,s,a)||u?Jo(d,c+6,l?n.call(l,e,r,i,o,s,a):n(e,r,i,o,s,a)):$f(d,c+6)}function Rb(t,n,e,r,i,o,s,a,l,c){let d=Ii()+t,u=_e(),p=Uf(u,d,e,r,i,o);return MS(u,d+4,s,a,l)||p?Jo(u,d+7,c?n.call(c,e,r,i,o,s,a,l):n(e,r,i,o,s,a,l)):$f(u,d+7)}function Yf(t,n){let e=t[n];return e===Gn?void 0:e}function z5(t,n,e,r,i,o){let s=n+e;return Xn(t,s,i)?Jo(t,s+1,o?r.call(o,i):r(i)):Yf(t,s+1)}function H5(t,n,e,r,i,o,s){let a=n+e;return fl(t,a,i,o)?Jo(t,a+2,s?r.call(s,i,o):r(i,o)):Yf(t,a+2)}function pI(t,n,e,r,i,o,s,a){let l=n+e;return MS(t,l,i,o,s)?Jo(t,l+3,a?r.call(a,i,o,s):r(i,o,s)):Yf(t,l+3)}function $5(t,n,e,r,i,o,s,a,l){let c=n+e;return Uf(t,c,i,o,s,a)?Jo(t,c+4,l?r.call(l,i,o,s,a):r(i,o,s,a)):Yf(t,c+4)}function Zf(t,n){let e=jt(),r,i=t+Vt;e.firstCreatePass?(r=U5(n,e.pipeRegistry),e.data[i]=r,r.onDestroy&&(e.destroyHooks??=[]).push(i,r.onDestroy)):r=e.data[i];let o=r.factory||(r.factory=jo(r.type,!0)),s,a=$n(de);try{let l=uf(!1),c=o();return uf(l),F0(e,_e(),i,c),c}finally{$n(a)}}function U5(t,n){if(n)for(let e=n.length-1;e>=0;e--){let r=n[e];if(t===r.name)return r}}function Jf(t,n,e,r,i){let o=t+Vt,s=_e(),a=N0(s,o);return W5(s,o)?pI(s,Ii(),n,a.transform,e,r,i,a):a.transform(e,r,i)}function W5(t,n){return t[Ce].data[n].pure}function at(t,n){return jf(t,n)}var kf=class{ngModuleFactory;componentFactories;constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}},Pb=(()=>{class t{compileModuleSync(e){return new Ef(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let r=this.compileModuleSync(e),i=E0(e),o=UE(i.declarations).reduce((s,a)=>{let l=$o(a);return l&&s.push(new hl(l)),s},[]);return new kf(r,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var G5=(()=>{class t{zone=x($e);changeDetectionScheduler=x(ur);applicationRef=x(Ri);applicationErrorHandler=x(Jn);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(e){this.applicationErrorHandler(e)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),fI=new H("",{factory:()=>!1});function Ab({ngZoneFactory:t,ignoreChangesOutsideZone:n,scheduleInRootZone:e}){return t??=()=>new $e(A(_({},Fb()),{scheduleInRootZone:e})),[{provide:$e,useFactory:t},{provide:uo,multi:!0,useFactory:()=>{let r=x(G5,{optional:!0});return()=>r.initialize()}},{provide:uo,multi:!0,useFactory:()=>{let r=x(q5);return()=>{r.initialize()}}},n===!0?{provide:ry,useValue:!0}:[],{provide:iy,useValue:e??YE},{provide:Jn,useFactory:()=>{let r=x($e),i=x(Jt),o;return s=>{r.runOutsideAngular(()=>{i.destroyed&&!o?setTimeout(()=>{throw s}):(o??=i.get(xr),o.handleError(s))})}}}]}function Nb(t){let n=t?.ignoreChangesOutsideZone,e=t?.scheduleInRootZone,r=Ab({ngZoneFactory:()=>{let i=Fb(t);return i.scheduleInRootZone=e,i.shouldCoalesceEventChangeDetection&&Zr("NgZone_CoalesceEvent"),new $e(i)},ignoreChangesOutsideZone:n,scheduleInRootZone:e});return Tr([{provide:fI,useValue:!0},{provide:Xc,useValue:!1},r])}function Fb(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var q5=(()=>{class t{subscription=new qt;initialized=!1;zone=x($e);pendingTasks=x(ki);initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{$e.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{$e.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var hI=(()=>{class t{applicationErrorHandler=x(Jn);appRef=x(Ri);taskService=x(ki);ngZone=x($e);zonelessEnabled=x(Xc);tracing=x(Xs,{optional:!0});disableScheduling=x(ry,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new qt;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(gf):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(x(iy,{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 yf||!this.zoneIsDefined)}notify(e){if(!this.zonelessEnabled&&e===5)return;let r=!1;switch(e){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}default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let i=this.useMicrotaskScheduler?VT:ZE;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>i(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>i(()=>this.tick()))}shouldScheduleTick(e){return!(this.disableScheduling&&!e||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(gf+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 e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){this.taskService.remove(e),this.applicationErrorHandler(r)}finally{this.cleanup()}this.useMicrotaskScheduler=!0,VT(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Q5(){return typeof $localize<"u"&&$localize.locale||yd}var Xf=new H("",{providedIn:"root",factory:()=>x(Xf,{optional:!0,skipSelf:!0})||Q5()});function fn(t){return jx(t)}function We(t,n){return Mc(t,n?.equal)}var Lb=class{[yn];constructor(n){this[yn]=n}destroy(){this[yn].destroy()}};function Lt(t,n){let e=n?.injector??x(Bt),r=n?.manualCleanup!==!0?e.get(kr):null,i,o=e.get(al,null,{optional:!0}),s=e.get(ur);return o!==null?(i=Z5(o.view,s,t),r instanceof zc&&r._lView===o.view&&(r=null)):i=J5(t,e.get(td),s),i.injector=e,r!==null&&(i.onDestroyFn=r.onDestroy(()=>i.destroy())),new Lb(i)}var mI=A(_({},zx),{cleanupFns:void 0,zone:null,onDestroyFn:Gs,run(){let t=sl(!1);try{Hx(this)}finally{sl(t)}},cleanup(){if(!this.cleanupFns?.length)return;let t=Re(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],Re(t)}}}),K5=A(_({},mI),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){Ss(this),this.onDestroyFn(),this.cleanup(),this.scheduler.remove(this)}}),Y5=A(_({},mI),{consumerMarkedDirty(){this.view[Se]|=8192,qo(this.view),this.notifier.notify(13)},destroy(){Ss(this),this.onDestroyFn(),this.cleanup(),this.view[fo]?.delete(this)}});function Z5(t,n,e){let r=Object.create(Y5);return r.view=t,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=n,r.fn=gI(r,e),t[fo]??=new Set,t[fo].add(r),r.consumerMarkedDirty(r),r}function J5(t,n,e){let r=Object.create(K5);return r.fn=gI(r,t),r.scheduler=n,r.notifier=e,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function gI(t,n){return()=>{n(e=>(t.cleanupFns??=[]).push(e))}}var xI=Symbol("InputSignalNode#UNSET"),mB=A(_({},sp),{transformFn:void 0,applyValueToInputSignal(t,n){za(t,n)}});function TI(t,n){let e=Object.create(mB);e.value=t,e.transformFn=n?.transform;function r(){if(La(e),e.value===xI){let i=null;throw new U(-950,i)}return e.value}return r[yn]=e,r}var gB=new H("");gB.__NG_ELEMENT_ID__=t=>{let n=vn();if(n===null)throw new U(204,!1);if(n.type&2)return n.value;if(t&8)return null;throw new U(204,!1)};function yI(t,n){return TI(t,n)}function yB(t){return TI(xI,t)}var ae=(yI.required=yB,yI);function bI(t,n){return zS(n)}function bB(t,n){return HS(n)}var EI=(bI.required=bB,bI);var Bb=new H(""),vB=new H("");function vd(t){return!t.moduleRef}function _B(t){let n=vd(t)?t.r3Injector:t.moduleRef.injector,e=n.get($e);return e.run(()=>{vd(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let r=n.get(Jn),i;if(e.runOutsideAngular(()=>{i=e.onError.subscribe({next:r})}),vd(t)){let o=()=>n.destroy(),s=t.platformInjector.get(Bb);s.add(o),n.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>t.moduleRef.destroy(),s=t.platformInjector.get(Bb);s.add(o),t.moduleRef.onDestroy(()=>{rd(t.allPlatformModules,t.moduleRef),i.unsubscribe(),s.delete(o)})}return CB(r,e,()=>{let o=n.get(ki),s=o.add(),a=n.get(Ib);return a.runInitializers(),a.donePromise.then(()=>{let l=n.get(Xf,yd);if(YS(l||yd),!n.get(vB,!0))return vd(t)?n.get(Ri):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(vd(t)){let d=n.get(Ri);return t.rootComponent!==void 0&&d.bootstrap(t.rootComponent),d}else return wB?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>{o.remove(s)})})})}var wB;function CB(t,n,e){try{let r=e();return Xo(r)?r.catch(i=>{throw n.runOutsideAngular(()=>t(i)),i}):r}catch(r){throw n.runOutsideAngular(()=>t(r)),r}}var eh=null;function xB(t=[],n){return Bt.create({name:n,providers:[{provide:Wc,useValue:"platform"},{provide:Bb,useValue:new Set([()=>eh=null])},...t]})}function TB(t=[]){if(eh)return eh;let n=xB(t);return eh=n,qS(),EB(n),n}function EB(t){let n=t.get(Of,null);In(t,()=>{n?.forEach(e=>e())})}var ns=(()=>{class t{static __NG_ELEMENT_ID__=SB}return t})();function SB(t){return IB(vn(),_e(),(t&16)===16)}function IB(t,n,e){if(Go(t)&&!e){let r=Ir(t.index,n);return new Yo(r,r)}else if(t.type&175){let r=n[Wn];return new Yo(r,n)}return null}var Vb=class{constructor(){}supports(n){return vb(n)}create(n){return new jb(n)}},DB=(t,n)=>n,jb=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(n){this._trackByFn=n||DB}forEachItem(n){let e;for(e=this._itHead;e!==null;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,r=this._removalsHead,i=0,o=null;for(;e||r;){let s=!r||e&&e.currentIndex<vI(r,i,o)?e:r,a=vI(s,i,o),l=s.currentIndex;if(s===r)i--,r=r._nextRemoved;else if(e=e._next,s.previousIndex==null)i++;else{o||(o=[]);let c=a-i,d=l-i;if(c!=d){for(let p=0;p<c;p++){let f=p<o.length?o[p]:o[p]=0,y=f+p;d<=y&&y<c&&(o[p]=f+1)}let u=s.previousIndex;o[u]=d-c}}a!==l&&n(s,a,l)}}forEachPreviousItem(n){let e;for(e=this._previousItHead;e!==null;e=e._nextPrevious)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;e!==null;e=e._nextAdded)n(e)}forEachMovedItem(n){let e;for(e=this._movesHead;e!==null;e=e._nextMoved)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;e!==null;e=e._nextRemoved)n(e)}forEachIdentityChange(n){let e;for(e=this._identityChangesHead;e!==null;e=e._nextIdentityChange)n(e)}diff(n){if(n==null&&(n=[]),!vb(n))throw new U(900,!1);return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let e=this._itHead,r=!1,i,o,s;if(Array.isArray(n)){this.length=n.length;for(let a=0;a<this.length;a++)o=n[a],s=this._trackByFn(a,o),e===null||!Object.is(e.trackById,s)?(e=this._mismatch(e,o,s,a),r=!0):(r&&(e=this._verifyReinsertion(e,o,s,a)),Object.is(e.item,o)||this._addIdentityChange(e,o)),e=e._next}else i=0,kS(n,a=>{s=this._trackByFn(i,a),e===null||!Object.is(e.trackById,s)?(e=this._mismatch(e,a,s,i),r=!0):(r&&(e=this._verifyReinsertion(e,a,s,i)),Object.is(e.item,a)||this._addIdentityChange(e,a)),e=e._next,i++}),this.length=i;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;n!==null;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;n!==null;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;n!==null;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,r,i){let o;return n===null?o=this._itTail:(o=n._prev,this._remove(n)),n=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,i)):(n=this._linkedRecords===null?null:this._linkedRecords.get(r,i),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,i)):n=this._addAfter(new zb(e,r),o,i)),n}_verifyReinsertion(n,e,r,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return o!==null?n=this._reinsertAfter(o,n._prev,i):n.currentIndex!=i&&(n.currentIndex=i,this._addToMoves(n,i)),n}_truncate(n){for(;n!==null;){let e=n._next;this._addToRemovals(this._unlink(n)),n=e}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(n);let i=n._prevRemoved,o=n._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(n,e,r),this._addToMoves(n,r),n}_moveAfter(n,e,r){return this._unlink(n),this._insertAfter(n,e,r),this._addToMoves(n,r),n}_addAfter(n,e,r){return this._insertAfter(n,e,r),this._additionsTail===null?this._additionsTail=this._additionsHead=n:this._additionsTail=this._additionsTail._nextAdded=n,n}_insertAfter(n,e,r){let i=e===null?this._itHead:e._next;return n._next=i,n._prev=e,i===null?this._itTail=n:i._prev=n,e===null?this._itHead=n:e._next=n,this._linkedRecords===null&&(this._linkedRecords=new th),this._linkedRecords.put(n),n.currentIndex=r,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){this._linkedRecords!==null&&this._linkedRecords.remove(n);let e=n._prev,r=n._next;return e===null?this._itHead=r:e._next=r,r===null?this._itTail=e:r._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=n:this._movesTail=this._movesTail._nextMoved=n),n}_addToRemovals(n){return this._unlinkedRecords===null&&(this._unlinkedRecords=new th),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=n:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=n,n}},zb=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(n,e){this.item=n,this.trackById=e}},Hb=class{_head=null;_tail=null;add(n){this._head===null?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let r;for(r=this._head;r!==null;r=r._nextDup)if((e===null||e<=r.currentIndex)&&Object.is(r.trackById,n))return r;return null}remove(n){let e=n._prevDup,r=n._nextDup;return e===null?this._head=r:e._nextDup=r,r===null?this._tail=e:r._prevDup=e,this._head===null}},th=class{map=new Map;put(n){let e=n.trackById,r=this.map.get(e);r||(r=new Hb,this.map.set(e,r)),r.add(n)}get(n,e){let r=n,i=this.map.get(r);return i?i.get(n,e):null}remove(n){let e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function vI(t,n,e){let r=t.previousIndex;if(r===null)return r;let i=0;return e&&r<e.length&&(i=e[r]),r+n+i}var $b=class{constructor(){}supports(n){return n instanceof Map||Hf(n)}create(){return new Ub}},Ub=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(n){let e;for(e=this._mapHead;e!==null;e=e._next)n(e)}forEachPreviousItem(n){let e;for(e=this._previousMapHead;e!==null;e=e._nextPrevious)n(e)}forEachChangedItem(n){let e;for(e=this._changesHead;e!==null;e=e._nextChanged)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;e!==null;e=e._nextAdded)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;e!==null;e=e._nextRemoved)n(e)}diff(n){if(!n)n=new Map;else if(!(n instanceof Map||Hf(n)))throw new U(900,!1);return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(n,(r,i)=>{if(e&&e.key===i)this._maybeAddToChanges(e,r),this._appendAfter=e,e=e._next;else{let o=this._getOrCreateRecordForKey(i,r);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let r=e;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(n,e){if(n){let r=n._prev;return e._next=n,e._prev=r,n._prev=e,r&&(r._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){let i=this._records.get(n);this._maybeAddToChanges(i,e);let o=i._prev,s=i._next;return o&&(o._next=s),s&&(s._prev=o),i._next=null,i._prev=null,i}let r=new Wb(n);return this._records.set(n,r),r.currentValue=e,this._addToAdditions(r),r}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;n!==null;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;n!==null;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;n!=null;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){this._additionsHead===null?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){this._changesHead===null?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(r=>e(n[r],r))}},Wb=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(n){this.key=n}};function _I(){return new Gb([new Vb])}var Gb=(()=>{class t{factories;static \u0275prov=N({token:t,providedIn:"root",factory:_I});constructor(e){this.factories=e}static create(e,r){if(r!=null){let i=r.factories.slice();e=e.concat(i)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let r=x(t,{optional:!0,skipSelf:!0});return t.create(e,r||_I())}}}find(e){let r=this.factories.find(i=>i.supports(e));if(r!=null)return r;throw new U(901,!1)}}return t})();function wI(){return new qb([new $b])}var qb=(()=>{class t{static \u0275prov=N({token:t,providedIn:"root",factory:wI});factories;constructor(e){this.factories=e}static create(e,r){if(r){let i=r.factories.slice();e=e.concat(i)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let r=x(t,{optional:!0,skipSelf:!0});return t.create(e,r||wI())}}}find(e){let r=this.factories.find(i=>i.supports(e));if(r)return r;throw new U(901,!1)}}return t})();function SI(t){let{rootComponent:n,appProviders:e,platformProviders:r,platformRef:i}=t;_t(8);try{let o=i?.injector??TB(r),s=[Ab({}),{provide:ur,useExisting:hI},kT,...e||[]],a=new ad({providers:s,parent:o,debugName:"",runEnvironmentInitializers:!1});return _B({r3Injector:a.injector,platformInjector:o,rootComponent:n})}catch(o){return Promise.reject(o)}finally{_t(9)}}function R(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function Me(t,n=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):n}var kI=null;function Pr(){return kI}function Qb(t){kI??=t}var _d=class{},Kb=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:()=>x(MI),providedIn:"platform"})}return t})();var MI=(()=>{class t extends Kb{_location;_history;_doc=x(bt);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Pr().getBaseHref(this._doc)}onPopState(e){let r=Pr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",e,!1),()=>r.removeEventListener("popstate",e)}onHashChange(e){let r=Pr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",e,!1),()=>r.removeEventListener("hashchange",e)}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(e){this._location.pathname=e}pushState(e,r,i){this._history.pushState(e,r,i)}replaceState(e,r,i){this._history.replaceState(e,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function OI(t,n){return t?n?t.endsWith("/")?n.startsWith("/")?t+n.slice(1):t+n:n.startsWith("/")?t+n:`${t}/${n}`:t:n}function II(t){let n=t.search(/#|\?|$/);return t[n-1]==="/"?t.slice(0,n-1)+t.slice(n):t}function rs(t){return t&&t[0]!=="?"?`?${t}`:t}var nh=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:()=>x(RI),providedIn:"root"})}return t})(),rh=new H(""),RI=(()=>{class t extends nh{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,r){super(),this._platformLocation=e,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??x(bt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return OI(this._baseHref,e)}path(e=!1){let r=this._platformLocation.pathname+rs(this._platformLocation.search),i=this._platformLocation.hash;return i&&e?`${r}${i}`:r}pushState(e,r,i,o){let s=this.prepareExternalUrl(i+rs(o));this._platformLocation.pushState(e,r,s)}replaceState(e,r,i,o){let s=this.prepareExternalUrl(i+rs(o));this._platformLocation.replaceState(e,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(r){return new(r||t)(me(Kb),me(rh,8))};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),xl=(()=>{class t{_subject=new qe;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let r=this._locationStrategy.getBaseHref();this._basePath=OB(II(DI(r))),this._locationStrategy.onPopState(i=>{this._subject.next({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,r=""){return this.path()==this.normalize(e+rs(r))}normalize(e){return t.stripTrailingSlash(MB(this._basePath,DI(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,r="",i=null){this._locationStrategy.pushState(i,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+rs(r)),i)}replaceState(e,r="",i=null){this._locationStrategy.replaceState(i,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+rs(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",r){this._urlChangeListeners.forEach(i=>i(e,r))}subscribe(e,r,i){return this._subject.subscribe({next:e,error:r??void 0,complete:i??void 0})}static normalizeQueryParams=rs;static joinWithSlash=OI;static stripTrailingSlash=II;static \u0275fac=function(r){return new(r||t)(me(nh))};static \u0275prov=N({token:t,factory:()=>kB(),providedIn:"root"})}return t})();function kB(){return new xl(me(nh))}function MB(t,n){if(!t||!n.startsWith(t))return n;let e=n.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:n}function DI(t){return t.replace(/\/index.html$/,"")}function OB(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var Yb=/\s+/,PI=[],ei=(()=>{class t{_ngEl;_renderer;initialClasses=PI;rawClass;stateMap=new Map;constructor(e,r){this._ngEl=e,this._renderer=r}set klass(e){this.initialClasses=e!=null?e.trim().split(Yb):PI}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(Yb):e}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let r of e)this._updateState(r,!0);else if(e!=null)for(let r of Object.keys(e))this._updateState(r,!!e[r]);this._applyStateDiff()}_updateState(e,r){let i=this.stateMap.get(e);i!==void 0?(i.enabled!==r&&(i.changed=!0,i.enabled=r),i.touched=!0):this.stateMap.set(e,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let r=e[0],i=e[1];i.changed?(this._toggleClass(r,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),i.touched=!1}}_toggleClass(e,r){e=e.trim(),e.length>0&&e.split(Yb).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static \u0275fac=function(r){return new(r||t)(de(un),de(Jr))};static \u0275dir=Ue({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var ih=class{$implicit;ngForOf;index;count;constructor(n,e,r,i){this.$implicit=n,this.ngForOf=e,this.index=r,this.count=i}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Ar=(()=>{class t{_viewContainer;_template;_differs;set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(e,r,i){this._viewContainer=e,this._template=r,this._differs=i}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){let e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){let r=this._viewContainer;e.forEachOperation((i,o,s)=>{if(i.previousIndex==null)r.createEmbeddedView(this._template,new ih(i.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(o===null?void 0:o);else if(o!==null){let a=r.get(o);r.move(a,s),AI(a,i)}});for(let i=0,o=r.length;i<o;i++){let a=r.get(i).context;a.index=i,a.count=o,a.ngForOf=this._ngForOf}e.forEachIdentityChange(i=>{let o=r.get(i.currentIndex);AI(o,i)})}static ngTemplateContextGuard(e,r){return!0}static \u0275fac=function(r){return new(r||t)(de(Mr),de(Oi),de(Gb))};static \u0275dir=Ue({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return t})();function AI(t,n){t.context.$implicit=n.item}var Ut=(()=>{class t{_viewContainer;_context=new oh;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(e,r){this._viewContainer=e,this._thenTemplateRef=r}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){NI(e,!1),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){NI(e,!1),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(e,r){return!0}static \u0275fac=function(r){return new(r||t)(de(Mr),de(Oi))};static \u0275dir=Ue({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return t})(),oh=class{$implicit=null;ngIf=null};function NI(t,n){if(t&&!t.createEmbeddedView)throw new U(2020,!1)}var tr=(()=>{class t{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,r,i){this._ngEl=e,this._differs=r,this._renderer=i}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,r){let[i,o]=e.split("."),s=i.indexOf("-")===-1?void 0:Qr.DashCase;r!=null?this._renderer.setStyle(this._ngEl.nativeElement,i,o?`${r}${o}`:r,s):this._renderer.removeStyle(this._ngEl.nativeElement,i,s)}_applyChanges(e){e.forEachRemovedItem(r=>this._setStyle(r.key,null)),e.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),e.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}static \u0275fac=function(r){return new(r||t)(de(un),de(qb),de(Jr))};static \u0275dir=Ue({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),kt=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,r,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,i):!1,get:(e,r,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,i)}})}static \u0275fac=function(r){return new(r||t)(de(Mr))};static \u0275dir=Ue({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Kr]})}return t})();function RB(t,n){return new U(2100,!1)}var Zb=(()=>{class t{transform(e,r,i){if(e==null)return null;if(!(typeof e=="string"||Array.isArray(e)))throw RB(t,e);return e.slice(r,i)}static \u0275fac=function(r){return new(r||t)};static \u0275pipe=Cb({name:"slice",type:t,pure:!1})}return t})();var Qe=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({})}return t})();function wd(t,n){n=encodeURIComponent(n);for(let e of t.split(";")){let r=e.indexOf("="),[i,o]=r==-1?[e,""]:[e.slice(0,r),e.slice(r+1)];if(i.trim()===n)return decodeURIComponent(o)}return null}var ta=class{};var Jb="browser",NB="server";function kn(t){return t===Jb}function Xb(t){return t===NB}var Cd=class{_doc;constructor(n){this._doc=n}manager},sh=(()=>{class t extends Cd{constructor(e){super(e)}supports(e){return!0}addEventListener(e,r,i,o){return e.addEventListener(r,i,o),()=>this.removeEventListener(e,r,i,o)}removeEventListener(e,r,i,o){return e.removeEventListener(r,i,o)}static \u0275fac=function(r){return new(r||t)(me(bt))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),lh=new H(""),iv=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,r){this._zone=r,e.forEach(s=>{s.manager=this});let i=e.filter(s=>!(s instanceof sh));this._plugins=i.slice().reverse();let o=e.find(s=>s instanceof sh);o&&this._plugins.push(o)}addEventListener(e,r,i,o){return this._findPluginFor(r).addEventListener(e,r,i,o)}getZone(){return this._zone}_findPluginFor(e){let r=this._eventNameToPlugin.get(e);if(r)return r;if(r=this._plugins.find(o=>o.supports(e)),!r)throw new U(5101,!1);return this._eventNameToPlugin.set(e,r),r}static \u0275fac=function(r){return new(r||t)(me(lh),me($e))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),ev="ng-app-id";function FI(t){for(let n of t)n.remove()}function LI(t,n){let e=n.createElement("style");return e.textContent=t,e}function FB(t,n,e,r){let i=t.head?.querySelectorAll(`style[${ev}="${n}"],link[${ev}="${n}"]`);if(i)for(let o of i)o.removeAttribute(ev),o instanceof HTMLLinkElement?r.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]})}function nv(t,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var ov=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,r,i,o={}){this.doc=e,this.appId=r,this.nonce=i,FB(e,r,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,r){for(let i of e)this.addUsage(i,this.inline,LI);r?.forEach(i=>this.addUsage(i,this.external,nv))}removeStyles(e,r){for(let i of e)this.removeUsage(i,this.inline);r?.forEach(i=>this.removeUsage(i,this.external))}addUsage(e,r,i){let o=r.get(e);o?o.usage++:r.set(e,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(e,this.doc)))})}removeUsage(e,r){let i=r.get(e);i&&(i.usage--,i.usage<=0&&(FI(i.elements),r.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])FI(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(e,LI(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(e,nv(r,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,r){return this.nonce&&r.setAttribute("nonce",this.nonce),e.appendChild(r)}static \u0275fac=function(r){return new(r||t)(me(bt),me(Mf),me(Pf,8),me(Yr))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),tv={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"},sv=/%COMP%/g;var VI="%COMP%",LB=`_nghost-${VI}`,BB=`_ngcontent-${VI}`,VB=!0,jB=new H("",{providedIn:"root",factory:()=>VB});function zB(t){return BB.replace(sv,t)}function HB(t){return LB.replace(sv,t)}function jI(t,n){return n.map(e=>e.replace(sv,t))}var Ed=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,r,i,o,s,a,l=null,c=null){this.eventManager=e,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.ngZone=a,this.nonce=l,this.tracingService=c,this.platformIsServer=!1,this.defaultRenderer=new xd(e,s,a,this.platformIsServer,this.tracingService)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;let i=this.getOrCreateRenderer(e,r);return i instanceof ah?i.applyToHost(e):i instanceof Td&&i.applyStyles(),i}getOrCreateRenderer(e,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,u=this.platformIsServer,p=this.tracingService;switch(r.encapsulation){case ho.Emulated:o=new ah(l,c,r,this.appId,d,s,a,u,p);break;case ho.ShadowDom:return new rv(l,c,e,r,s,a,this.nonce,u,p);default:o=new Td(l,c,r,d,s,a,u,p);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(r){return new(r||t)(me(iv),me(ov),me(Mf),me(jB),me(bt),me($e),me(Pf),me(Xs,8))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),xd=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,r,i,o){this.eventManager=n,this.doc=e,this.ngZone=r,this.platformIsServer=i,this.tracingService=o}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(tv[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(BI(n)?n.content:n).appendChild(e)}insertBefore(n,e,r){n&&(BI(n)?n.content:n).insertBefore(e,r)}removeChild(n,e){e.remove()}selectRootElement(n,e){let r=typeof n=="string"?this.doc.querySelector(n):n;if(!r)throw new U(-5104,!1);return e||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,r,i){if(i){e=i+":"+e;let o=tv[i];o?n.setAttributeNS(o,e,r):n.setAttribute(e,r)}else n.setAttribute(e,r)}removeAttribute(n,e,r){if(r){let i=tv[r];i?n.removeAttributeNS(i,e):n.removeAttribute(`${r}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,r,i){i&(Qr.DashCase|Qr.Important)?n.style.setProperty(e,r,i&Qr.Important?"important":""):n.style[e]=r}removeStyle(n,e,r){r&Qr.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,r){n!=null&&(n[e]=r)}setValue(n,e){n.nodeValue=e}listen(n,e,r,i){if(typeof n=="string"&&(n=Pr().getGlobalEventTarget(this.doc,n),!n))throw new U(5102,!1);let o=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(n,e,o)),this.eventManager.addEventListener(n,e,o,i)}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;n(e)===!1&&e.preventDefault()}}};function BI(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var rv=class extends xd{sharedStylesHost;hostEl;shadowRoot;constructor(n,e,r,i,o,s,a,l,c){super(n,o,s,l,c),this.sharedStylesHost=e,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=i.styles;d=jI(i.id,d);for(let p of d){let f=document.createElement("style");a&&f.setAttribute("nonce",a),f.textContent=p,this.shadowRoot.appendChild(f)}let u=i.getExternalStyles?.();if(u)for(let p of u){let f=nv(p,o);a&&f.setAttribute("nonce",a),this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,r){return super.insertBefore(this.nodeOrShadowRoot(n),e,r)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Td=class extends xd{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,r,i,o,s,a,l,c){super(n,o,s,a,l),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=i;let d=r.styles;this.styles=c?jI(c,d):d,this.styleUrls=r.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&Ks.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},ah=class extends Td{contentAttr;hostAttr;constructor(n,e,r,i,o,s,a,l,c){let d=i+"-"+r.id;super(n,e,r,o,s,a,l,c,d),this.contentAttr=zB(d),this.hostAttr=HB(d)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let r=super.createElement(n,e);return super.setAttribute(r,this.contentAttr,""),r}};var ch=class t extends _d{supportsDOMEvents=!0;static makeCurrent(){Qb(new t)}onAndCancel(n,e,r,i){return n.addEventListener(e,r,i),()=>{n.removeEventListener(e,r,i)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=$B();return e==null?null:UB(e)}resetBaseElement(){Sd=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return wd(document.cookie,n)}},Sd=null;function $B(){return Sd=Sd||document.head.querySelector("base"),Sd?Sd.getAttribute("href"):null}function UB(t){return new URL(t,document.baseURI).pathname}var WB=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),zI=["alt","control","meta","shift"],GB={"\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"},qB={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},HI=(()=>{class t extends Cd{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,r,i,o){let s=t.parseEventName(r),a=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Pr().onAndCancel(e,s.domEventName,a,o))}static parseEventName(e){let r=e.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=t._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),zI.forEach(c=>{let d=r.indexOf(c);d>-1&&(r.splice(d,1),s+=c+".")}),s+=o,r.length!=0||o.length===0)return null;let l={};return l.domEventName=i,l.fullKey=s,l}static matchEventFullKeyCode(e,r){let i=GB[e.key]||e.key,o="";return r.indexOf("code.")>-1&&(i=e.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),zI.forEach(s=>{if(s!==i){let a=qB[s];a(e)&&(o+=s+".")}}),o+=i,o===r)}static eventCallback(e,r,i){return o=>{t.matchEventFullKeyCode(o,e)&&i.runGuarded(()=>r(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(r){return new(r||t)(me(bt))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();function av(t){return SI(QB(t))}function QB(t){return{appProviders:[...XB,...t?.providers??[]],platformProviders:JB}}function KB(){ch.makeCurrent()}function YB(){return new xr}function ZB(){return Ky(document),document}var JB=[{provide:Yr,useValue:Jb},{provide:Of,useValue:KB,multi:!0},{provide:bt,useFactory:ZB}];var XB=[{provide:Wc,useValue:"root"},{provide:xr,useFactory:YB},{provide:lh,useClass:sh,multi:!0,deps:[bt]},{provide:lh,useClass:HI,multi:!0,deps:[bt]},Ed,ov,iv,{provide:mo,useExisting:Ed},{provide:ta,useClass:WB},[]];var El=class{},Id=class{},ti=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(n){n?typeof n=="string"?this.lazyInit=()=>{this.headers=new Map,n.split(`
`).forEach(e=>{let r=e.indexOf(":");if(r>0){let i=e.slice(0,r),o=e.slice(r+1).trim();this.addHeaderEntry(i,o)}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,r)=>{this.addHeaderEntry(r,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,r])=>{this.setHeaderEntries(e,r)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();let e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){let e=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(n.name,e);let i=(n.op==="a"?this.headers.get(e):void 0)||[];i.push(...r),this.headers.set(e,i);break;case"d":let o=n.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let s=this.headers.get(e);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}break}}addHeaderEntry(n,e){let r=n.toLowerCase();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(e):this.headers.set(r,[e])}setHeaderEntries(n,e){let r=(Array.isArray(e)?e:[e]).map(o=>o.toString()),i=n.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(n,i)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}};var uh=class{encodeKey(n){return $I(n)}encodeValue(n){return $I(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}};function e4(t,n){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[n.decodeKey(i),""]:[n.decodeKey(i.slice(0,o)),n.decodeValue(i.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}var t4=/%(\d[a-f0-9])/gi,n4={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function $I(t){return encodeURIComponent(t).replace(t4,(n,e)=>n4[e]??n)}function dh(t){return`${t}`}var go=class t{map;encoder;updates=null;cloneFrom=null;constructor(n={}){if(this.encoder=n.encoder||new uh,n.fromString){if(n.fromObject)throw new U(2805,!1);this.map=e4(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{let r=n.fromObject[e],i=Array.isArray(r)?r.map(dh):[dh(r)];this.map.set(e,i)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();let e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){let e=[];return Object.keys(n).forEach(r=>{let i=n[r];Array.isArray(i)?i.forEach(o=>{e.push({param:r,value:o,op:"a"})}):e.push({param:r,value:i,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{let e=this.encoder.encodeKey(n);return this.map.get(n).map(r=>e+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>n!=="").join("&")}clone(n){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":let e=(n.op==="a"?this.map.get(n.param):void 0)||[];e.push(dh(n.value)),this.map.set(n.param,e);break;case"d":if(n.value!==void 0){let r=this.map.get(n.param)||[],i=r.indexOf(dh(n.value));i!==-1&&r.splice(i,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}else{this.map.delete(n.param);break}}}),this.cloneFrom=this.updates=null)}};var Sl=class{map=new Map;set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}};function r4(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function UI(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function WI(t){return typeof Blob<"u"&&t instanceof Blob}function GI(t){return typeof FormData<"u"&&t instanceof FormData}function i4(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var qI="Content-Type",QI="Accept",KI="X-Request-URL",YI="text/plain",ZI="application/json",o4=`${ZI}, ${YI}, */*`,Tl=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(n,e,r,i){this.url=e,this.method=n.toUpperCase();let o;if(r4(this.method)||i?(this.body=r!==void 0?r:null,o=i):o=r,o){if(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,this.keepalive=!!o.keepalive,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),o.priority&&(this.priority=o.priority),o.cache&&(this.cache=o.cache),o.credentials&&(this.credentials=o.credentials),typeof o.timeout=="number"){if(o.timeout<1||!Number.isInteger(o.timeout))throw new U(2822,"");this.timeout=o.timeout}o.mode&&(this.mode=o.mode),o.redirect&&(this.redirect=o.redirect),o.integrity&&(this.integrity=o.integrity),o.referrer&&(this.referrer=o.referrer),this.transferCache=o.transferCache}if(this.headers??=new ti,this.context??=new Sl,!this.params)this.params=new go,this.urlWithParams=e;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=e;else{let a=e.indexOf("?"),l=a===-1?"?":a<e.length-1?"&":"";this.urlWithParams=e+l+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||UI(this.body)||WI(this.body)||GI(this.body)||i4(this.body)?this.body:this.body instanceof go?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||GI(this.body)?null:WI(this.body)?this.body.type||null:UI(this.body)?null:typeof this.body=="string"?YI:this.body instanceof go?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?ZI:null}clone(n={}){let e=n.method||this.method,r=n.url||this.url,i=n.responseType||this.responseType,o=n.keepalive??this.keepalive,s=n.priority||this.priority,a=n.cache||this.cache,l=n.mode||this.mode,c=n.redirect||this.redirect,d=n.credentials||this.credentials,u=n.referrer||this.referrer,p=n.integrity||this.integrity,f=n.transferCache??this.transferCache,y=n.timeout??this.timeout,b=n.body!==void 0?n.body:this.body,v=n.withCredentials??this.withCredentials,w=n.reportProgress??this.reportProgress,D=n.headers||this.headers,P=n.params||this.params,B=n.context??this.context;return n.setHeaders!==void 0&&(D=Object.keys(n.setHeaders).reduce((Y,ye)=>Y.set(ye,n.setHeaders[ye]),D)),n.setParams&&(P=Object.keys(n.setParams).reduce((Y,ye)=>Y.set(ye,n.setParams[ye]),P)),new t(e,r,b,{params:P,headers:D,context:B,reportProgress:w,responseType:i,withCredentials:v,transferCache:f,keepalive:o,cache:a,priority:s,timeout:y,mode:l,redirect:c,credentials:d,referrer:u,integrity:p})}},na=(function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t})(na||{}),Il=class{headers;status;statusText;url;ok;type;redirected;constructor(n,e=200,r="OK"){this.headers=n.headers||new ti,this.status=n.status!==void 0?n.status:e,this.statusText=n.statusText||r,this.url=n.url||null,this.redirected=n.redirected,this.ok=this.status>=200&&this.status<300}},ph=class t extends Il{constructor(n={}){super(n)}type=na.ResponseHeader;clone(n={}){return new t({headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},Dd=class t extends Il{body;constructor(n={}){super(n),this.body=n.body!==void 0?n.body:null}type=na.Response;clone(n={}){return new t({body:n.body!==void 0?n.body:this.body,headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0,redirected:n.redirected??this.redirected})}},is=class extends Il{name="HttpErrorResponse";message;error;ok=!1;constructor(n){super(n,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${n.url||"(unknown url)"}`:this.message=`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}},s4=200,a4=204;function lv(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,credentials:t.credentials,transferCache:t.transferCache,timeout:t.timeout,keepalive:t.keepalive,priority:t.priority,cache:t.cache,mode:t.mode,redirect:t.redirect,integrity:t.integrity,referrer:t.referrer}}var hh=(()=>{class t{handler;constructor(e){this.handler=e}request(e,r,i={}){let o;if(e instanceof Tl)o=e;else{let l;i.headers instanceof ti?l=i.headers:l=new ti(i.headers);let c;i.params&&(i.params instanceof go?c=i.params:c=new go({fromObject:i.params})),o=new Tl(e,r,i.body!==void 0?i.body:null,{headers:l,context:i.context,params:c,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache,keepalive:i.keepalive,priority:i.priority,cache:i.cache,mode:i.mode,redirect:i.redirect,credentials:i.credentials,referrer:i.referrer,integrity:i.integrity,timeout:i.timeout})}let s=ve(o).pipe(Bo(l=>this.handler.handle(l)));if(e instanceof Tl||i.observe==="events")return s;let a=s.pipe(nn(l=>l instanceof Dd));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(be(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new U(2806,!1);return l.body}));case"blob":return a.pipe(be(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new U(2807,!1);return l.body}));case"text":return a.pipe(be(l=>{if(l.body!==null&&typeof l.body!="string")throw new U(2808,!1);return l.body}));default:return a.pipe(be(l=>l.body))}case"response":return a;default:throw new U(2809,!1)}}delete(e,r={}){return this.request("DELETE",e,r)}get(e,r={}){return this.request("GET",e,r)}head(e,r={}){return this.request("HEAD",e,r)}jsonp(e,r){return this.request("JSONP",e,{params:new go().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,r={}){return this.request("OPTIONS",e,r)}patch(e,r,i={}){return this.request("PATCH",e,lv(i,r))}post(e,r,i={}){return this.request("POST",e,lv(i,r))}put(e,r,i={}){return this.request("PUT",e,lv(i,r))}static \u0275fac=function(r){return new(r||t)(me(El))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var l4=new H("");function c4(t,n){return n(t)}function d4(t,n,e){return(r,i)=>In(e,()=>n(r,o=>t(o,i)))}var JI=new H(""),XI=new H(""),eD=new H("",{providedIn:"root",factory:()=>!0});var fh=(()=>{class t extends El{backend;injector;chain=null;pendingTasks=x(ed);contributeToStability=x(eD);constructor(e,r){super(),this.backend=e,this.injector=r}handle(e){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(JI),...this.injector.get(XI,[])]));this.chain=r.reduceRight((i,o)=>d4(i,o,this.injector),c4)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(e,i=>this.backend.handle(i)).pipe(Ci(r))}else return this.chain(e,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||t)(me(Id),me(Jt))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var u4=/^\)\]\}',?\n/,p4=RegExp(`^${KI}:`,"m");function f4(t){return"responseURL"in t&&t.responseURL?t.responseURL:p4.test(t.getAllResponseHeaders())?t.getResponseHeader(KI):null}var cv=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new U(-2800,!1);let r=this.xhrFactory;return ve(null).pipe(bn(()=>new pe(o=>{let s=r.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((v,w)=>s.setRequestHeader(v,w.join(","))),e.headers.has(QI)||s.setRequestHeader(QI,o4),!e.headers.has(qI)){let v=e.detectContentTypeHeader();v!==null&&s.setRequestHeader(qI,v)}if(e.timeout&&(s.timeout=e.timeout),e.responseType){let v=e.responseType.toLowerCase();s.responseType=v!=="json"?v:"text"}let a=e.serializeBody(),l=null,c=()=>{if(l!==null)return l;let v=s.statusText||"OK",w=new ti(s.getAllResponseHeaders()),D=f4(s)||e.url;return l=new ph({headers:w,status:s.status,statusText:v,url:D}),l},d=()=>{let{headers:v,status:w,statusText:D,url:P}=c(),B=null;w!==a4&&(B=typeof s.response>"u"?s.responseText:s.response),w===0&&(w=B?s4:0);let Y=w>=200&&w<300;if(e.responseType==="json"&&typeof B=="string"){let ye=B;B=B.replace(u4,"");try{B=B!==""?JSON.parse(B):null}catch(Xe){B=ye,Y&&(Y=!1,B={error:Xe,text:B})}}Y?(o.next(new Dd({body:B,headers:v,status:w,statusText:D,url:P||void 0})),o.complete()):o.error(new is({error:B,headers:v,status:w,statusText:D,url:P||void 0}))},u=v=>{let{url:w}=c(),D=new is({error:v,status:s.status||0,statusText:s.statusText||"Unknown Error",url:w||void 0});o.error(D)},p=u;e.timeout&&(p=v=>{let{url:w}=c(),D=new is({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:w||void 0});o.error(D)});let f=!1,y=v=>{f||(o.next(c()),f=!0);let w={type:na.DownloadProgress,loaded:v.loaded};v.lengthComputable&&(w.total=v.total),e.responseType==="text"&&s.responseText&&(w.partialText=s.responseText),o.next(w)},b=v=>{let w={type:na.UploadProgress,loaded:v.loaded};v.lengthComputable&&(w.total=v.total),o.next(w)};return s.addEventListener("load",d),s.addEventListener("error",u),s.addEventListener("timeout",p),s.addEventListener("abort",u),e.reportProgress&&(s.addEventListener("progress",y),a!==null&&s.upload&&s.upload.addEventListener("progress",b)),s.send(a),o.next({type:na.Sent}),()=>{s.removeEventListener("error",u),s.removeEventListener("abort",u),s.removeEventListener("load",d),s.removeEventListener("timeout",p),e.reportProgress&&(s.removeEventListener("progress",y),a!==null&&s.upload&&s.upload.removeEventListener("progress",b)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||t)(me(ta))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),tD=new H(""),h4="XSRF-TOKEN",m4=new H("",{providedIn:"root",factory:()=>h4}),g4="X-XSRF-TOKEN",y4=new H("",{providedIn:"root",factory:()=>g4}),kd=class{},b4=(()=>{class t{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,r){this.doc=e,this.cookieName=r}getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=wd(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(r){return new(r||t)(me(bt),me(m4))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),v4=/^(?:https?:)?\/\//i;function _4(t,n){if(!x(tD)||t.method==="GET"||t.method==="HEAD"||v4.test(t.url))return n(t);let e=x(kd).getToken(),r=x(y4);return e!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,e)})),n(t)}function dv(...t){let n=[hh,cv,fh,{provide:El,useExisting:fh},{provide:Id,useFactory:()=>x(l4,{optional:!0})??x(cv)},{provide:JI,useValue:_4,multi:!0},{provide:tD,useValue:!0},{provide:kd,useClass:b4}];for(let e of t)n.push(...e.\u0275providers);return Tr(n)}var nD=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(r){return new(r||t)(me(bt))};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ve="primary",Ud=Symbol("RouteTitle"),mv=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function oa(t){return new mv(t)}function dD(t,n,e){let r=e.path.split("/");if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let i={};for(let o=0;o<r.length;o++){let s=r[o],a=t[o];if(s[0]===":")i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}function x4(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!Ai(t[e],n[e]))return!1;return!0}function Ai(t,n){let e=t?gv(t):void 0,r=n?gv(n):void 0;if(!e||!r||e.length!=r.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!uD(t[i],n[i]))return!1;return!0}function gv(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function uD(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function pD(t){return t.length>0?t[t.length-1]:null}function vo(t){return Qg(t)?t:Xo(t)?ft(Promise.resolve(t)):ve(t)}var T4={exact:hD,subset:mD},fD={exact:E4,subset:S4,ignored:()=>!0};function rD(t,n,e){return T4[e.paths](t.root,n.root,e.matrixParams)&&fD[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function E4(t,n){return Ai(t,n)}function hD(t,n,e){if(!ra(t.segments,n.segments)||!yh(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!hD(t.children[r],n.children[r],e))return!1;return!0}function S4(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>uD(t[e],n[e]))}function mD(t,n,e){return gD(t,n,n.segments,e)}function gD(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!ra(i,e)||n.hasChildren()||!yh(i,e,r))}else if(t.segments.length===e.length){if(!ra(t.segments,e)||!yh(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!mD(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!ra(t.segments,i)||!yh(t.segments,i,r)||!t.children[Ve]?!1:gD(t.children[Ve],n,o,r)}}function yh(t,n,e){return n.every((r,i)=>fD[e](t[i].parameters,r.parameters))}var Fi=class{root;queryParams;fragment;_queryParamMap;constructor(n=new mt([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=oa(this.queryParams),this._queryParamMap}toString(){return k4.serialize(this)}},mt=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return bh(this)}},os=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=oa(this.parameters),this._parameterMap}toString(){return bD(this)}};function I4(t,n){return ra(t,n)&&t.every((e,r)=>Ai(e.parameters,n[r].parameters))}function ra(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function D4(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===Ve&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==Ve&&(e=e.concat(n(i,r)))}),e}var Wd=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:()=>new sa,providedIn:"root"})}return t})(),sa=class{parse(n){let e=new bv(n);return new Fi(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${Md(n.root,!0)}`,r=R4(n.queryParams),i=typeof n.fragment=="string"?`#${M4(n.fragment)}`:"";return`${e}${r}${i}`}},k4=new sa;function bh(t){return t.segments.map(n=>bD(n)).join("/")}function Md(t,n){if(!t.hasChildren())return bh(t);if(n){let e=t.children[Ve]?Md(t.children[Ve],!1):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==Ve&&r.push(`${i}:${Md(o,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=D4(t,(r,i)=>i===Ve?[Md(t.children[Ve],!1)]:[`${i}:${Md(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[Ve]!=null?`${bh(t)}/${e[0]}`:`${bh(t)}/(${e.join("//")})`}}function yD(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function mh(t){return yD(t).replace(/%3B/gi,";")}function M4(t){return encodeURI(t)}function yv(t){return yD(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function vh(t){return decodeURIComponent(t)}function iD(t){return vh(t.replace(/\+/g,"%20"))}function bD(t){return`${yv(t.path)}${O4(t.parameters)}`}function O4(t){return Object.entries(t).map(([n,e])=>`;${yv(n)}=${yv(e)}`).join("")}function R4(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${mh(e)}=${mh(i)}`).join("&"):`${mh(e)}=${mh(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var P4=/^[^\/()?;#]+/;function uv(t){let n=t.match(P4);return n?n[0]:""}var A4=/^[^\/()?;=#]+/;function N4(t){let n=t.match(A4);return n?n[0]:""}var F4=/^[^=?&#]+/;function L4(t){let n=t.match(F4);return n?n[0]:""}var B4=/^[^&#]+/;function V4(t){let n=t.match(B4);return n?n[0]:""}var bv=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new mt([],{}):new mt([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(r[Ve]=new mt(n,e)),r}parseSegment(){let n=uv(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new U(4009,!1);return this.capture(n),new os(vh(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=N4(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=uv(this.remaining);i&&(r=i,this.capture(r))}n[vh(e)]=vh(r)}parseQueryParam(n){let e=L4(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let s=V4(this.remaining);s&&(r=s,this.capture(r))}let i=iD(e),o=iD(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=uv(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new U(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=Ve);let s=this.parseChildren();e[o??Ve]=Object.keys(s).length===1&&s[Ve]?s[Ve]:new mt([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new U(4011,!1)}};function vD(t){return t.segments.length>0?new mt([],{[Ve]:t}):t}function _D(t){let n={};for(let[r,i]of Object.entries(t.children)){let o=_D(i);if(r===Ve&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}let e=new mt(t.segments,n);return j4(e)}function j4(t){if(t.numberOfChildren===1&&t.children[Ve]){let n=t.children[Ve];return new mt(t.segments.concat(n.segments),n.children)}return t}function Rl(t){return t instanceof Fi}function wD(t,n,e=null,r=null){let i=CD(t);return xD(i,n,e,r)}function CD(t){let n;function e(o){let s={};for(let l of o.children){let c=e(l);s[l.outlet]=c}let a=new mt(o.url,s);return o===t&&(n=a),a}let r=e(t.root),i=vD(r);return n??i}function xD(t,n,e,r){let i=t;for(;i.parent;)i=i.parent;if(n.length===0)return pv(i,i,i,e,r);let o=z4(n);if(o.toRoot())return pv(i,i,new mt([],{}),e,r);let s=H4(o,i,t),a=s.processChildren?Rd(s.segmentGroup,s.index,o.commands):ED(s.segmentGroup,s.index,o.commands);return pv(i,s.segmentGroup,a,e,r)}function _h(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Nd(t){return typeof t=="object"&&t!=null&&t.outlets}function pv(t,n,e,r,i){let o={};r&&Object.entries(r).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`});let s;t===n?s=e:s=TD(t,n,e);let a=vD(_D(s));return new Fi(a,o,i)}function TD(t,n,e){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=TD(o,n,e)}),new mt(t.segments,r)}var wh=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&_h(r[0]))throw new U(4003,!1);let i=r.find(Nd);if(i&&i!==pD(r))throw new U(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function z4(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new wh(!0,0,t);let n=0,e=!1,r=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([l,c])=>{a[l]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?e=!0:a===".."?n++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new wh(e,n,r)}var Ml=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function H4(t,n,e){if(t.isAbsolute)return new Ml(n,!0,0);if(!e)return new Ml(n,!1,NaN);if(e.parent===null)return new Ml(e,!0,0);let r=_h(t.commands[0])?0:1,i=e.segments.length-1+r;return $4(e,i,t.numberOfDoubleDots)}function $4(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new U(4005,!1);i=r.segments.length}return new Ml(r,!1,i-o)}function U4(t){return Nd(t[0])?t[0].outlets:{[Ve]:t}}function ED(t,n,e){if(t??=new mt([],{}),t.segments.length===0&&t.hasChildren())return Rd(t,n,e);let r=W4(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new mt(t.segments.slice(0,r.pathIndex),{});return o.children[Ve]=new mt(t.segments.slice(r.pathIndex),t.children),Rd(o,0,i)}else return r.match&&i.length===0?new mt(t.segments,{}):r.match&&!t.hasChildren()?vv(t,n,e):r.match?Rd(t,0,i):vv(t,n,e)}function Rd(t,n,e){if(e.length===0)return new mt(t.segments,{});{let r=U4(e),i={};if(Object.keys(r).some(o=>o!==Ve)&&t.children[Ve]&&t.numberOfChildren===1&&t.children[Ve].segments.length===0){let o=Rd(t.children[Ve],n,e);return new mt(t.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=ED(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new mt(t.segments,i)}}function W4(t,n,e){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let s=t.segments[i],a=e[r];if(Nd(a))break;let l=`${a}`,c=r<e.length-1?e[r+1]:null;if(i>0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!sD(l,c,s))return o;r+=2}else{if(!sD(l,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function vv(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(Nd(o)){let l=G4(o.outlets);return new mt(r,l)}if(i===0&&_h(e[0])){let l=t.segments[n];r.push(new os(l.path,oD(e[0]))),i++;continue}let s=Nd(o)?o.outlets[Ve]:`${o}`,a=i<e.length-1?e[i+1]:null;s&&a&&_h(a)?(r.push(new os(s,oD(a))),i+=2):(r.push(new os(s,{})),i++)}return new mt(r,{})}function G4(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=vv(new mt([],{}),0,r))}),n}function oD(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function sD(t,n,e){return t==e.path&&Ai(n,e.parameters)}var Pd="imperative",_n=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(_n||{}),hr=class{id;url;constructor(n,e){this.id=n,this.url=e}},aa=class extends hr{type=_n.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},yo=class extends hr{urlAfterRedirects;type=_n.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},qn=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(qn||{}),Fd=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(Fd||{}),Ni=class extends hr{reason;code;type=_n.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},bo=class extends hr{reason;code;type=_n.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}},Pl=class extends hr{error;target;type=_n.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Ld=class extends hr{urlAfterRedirects;state;type=_n.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ch=class extends hr{urlAfterRedirects;state;type=_n.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},xh=class extends hr{urlAfterRedirects;state;shouldActivate;type=_n.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Th=class extends hr{urlAfterRedirects;state;type=_n.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Eh=class extends hr{urlAfterRedirects;state;type=_n.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Sh=class{route;type=_n.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Ih=class{route;type=_n.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Dh=class{snapshot;type=_n.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},kh=class{snapshot;type=_n.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Mh=class{snapshot;type=_n.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Oh=class{snapshot;type=_n.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Bd=class{},Al=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function q4(t){return!(t instanceof Bd)&&!(t instanceof Al)}function Q4(t,n){return t.providers&&!t._injector&&(t._injector=gd(t.providers,n,`Route: ${t.path}`)),t._injector??n}function ni(t){return t.outlet||Ve}function K4(t,n){let e=t.filter(r=>ni(r)===n);return e.push(...t.filter(r=>ni(r)!==n)),e}function Ll(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var Rh=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Ll(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new Bl(this.rootInjector)}},Bl=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new Rh(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(me(Jt))};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ph=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=_v(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=_v(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=wv(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return wv(n,this._root).map(e=>e.value)}};function _v(t,n){if(t===n.value)return n;for(let e of n.children){let r=_v(t,e);if(r)return r}return null}function wv(t,n){if(t===n.value)return[n];for(let e of n.children){let r=wv(t,e);if(r.length)return r.unshift(n),r}return[]}var fr=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function kl(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var Vd=class extends Ph{snapshot;constructor(n,e){super(n),this.snapshot=e,kv(this,n)}toString(){return this.snapshot.toString()}};function SD(t){let n=Y4(t),e=new an([new os("",{})]),r=new an({}),i=new an({}),o=new an({}),s=new an(""),a=new Li(e,r,o,s,i,Ve,t,n.root);return a.snapshot=n.root,new Vd(new fr(a,[]),n)}function Y4(t){let n={},e={},r={},o=new ia([],n,r,"",e,Ve,t,null,{});return new jd("",new fr(o,[]))}var Li=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,r,i,o,s,a,l){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(be(c=>c[Ud]))??ve(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(be(n=>oa(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(be(n=>oa(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Ah(t,n,e="emptyOnly"){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:_(_({},n.params),t.params),data:_(_({},n.data),t.data),resolve:_(_(_(_({},t.data),n.data),i?.data),t._resolvedData)}:r={params:_({},t.params),data:_({},t.data),resolve:_(_({},t.data),t._resolvedData??{})},i&&DD(i)&&(r.resolve[Ud]=i.title),r}var ia=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Ud]}constructor(n,e,r,i,o,s,a,l,c){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=oa(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=oa(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},jd=class extends Ph{url;constructor(n,e){super(e),this.url=n,kv(this,e)}toString(){return ID(this._root)}};function kv(t,n){n.value._routerState=t,n.children.forEach(e=>kv(t,e))}function ID(t){let n=t.children.length>0?` { ${t.children.map(ID).join(", ")} } `:"";return`${t.value}${n}`}function fv(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,Ai(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),Ai(n.params,e.params)||t.paramsSubject.next(e.params),x4(n.url,e.url)||t.urlSubject.next(e.url),Ai(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Cv(t,n){let e=Ai(t.params,n.params)&&I4(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||Cv(t.parent,n.parent))}function DD(t){return typeof t.title=="string"||t.title===null}var kD=new H(""),Gd=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=Ve;activateEvents=new z;deactivateEvents=new z;attachEvents=new z;detachEvents=new z;routerOutletData=ae();parentContexts=x(Bl);location=x(Mr);changeDetector=x(ns);inputBinder=x(Bh,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new U(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new U(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new U(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new U(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new xv(e,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:l,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||t)};static \u0275dir=Ue({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Kr]})}return t})(),xv=class{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i}get(n,e){return n===Li?this.route:n===Bl?this.childContexts:n===kD?this.outletData:this.parent.get(n,e)}},Bh=new H("");var Mv=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=$({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&X(0,"router-outlet")},dependencies:[Gd],encapsulation:2})}return t})();function Ov(t){let n=t.children&&t.children.map(Ov),e=n?A(_({},t),{children:n}):_({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==Ve&&(e.component=Mv),e}function Z4(t,n,e){let r=zd(t,n._root,e?e._root:void 0);return new Vd(r,n)}function zd(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let i=J4(t,n,e);return new fr(r,i)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>zd(t,a)),s}}let r=X4(n.value),i=n.children.map(o=>zd(t,o));return new fr(r,i)}}function J4(t,n,e){return n.children.map(r=>{for(let i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return zd(t,r,i);return zd(t,r)})}function X4(t){return new Li(new an(t.url),new an(t.params),new an(t.queryParams),new an(t.fragment),new an(t.data),t.outlet,t.component,t)}var Nl=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},MD="ngNavigationCancelingError";function Nh(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=Rl(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=OD(!1,qn.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function OD(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[MD]=!0,e.cancellationCode=n,e}function eV(t){return RD(t)&&Rl(t.url)}function RD(t){return!!t&&t[MD]}var tV=(t,n,e,r)=>be(i=>(new Tv(n,i.targetRouterState,i.currentRouterState,e,r).activate(t),i)),Tv=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),fv(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=kl(e);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=kl(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=kl(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,e,r){let i=kl(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Oh(o.value.snapshot))}),n.children.length&&this.forwardEvent(new kh(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(fv(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),fv(a.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,r)}},Fh=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},Ol=class{component;route;constructor(n,e){this.component=n,this.route=e}};function nV(t,n,e){let r=t._root,i=n?n._root:null;return Od(r,i,e,[r.value])}function rV(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Vl(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!h0(t)?t:n.get(t):r}function Od(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=kl(n);return t.children.forEach(s=>{iV(s,o[s.value.outlet],e,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Ad(a,e.getContext(s),i)),i}function iV(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let l=oV(s,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new Fh(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Od(t,n,a?a.children:null,r,i):Od(t,n,e,r,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Ol(a.outlet.component,s))}else s&&Ad(n,a,i),i.canActivateChecks.push(new Fh(r)),o.component?Od(t,null,a?a.children:null,r,i):Od(t,null,e,r,i);return i}function oV(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!ra(t.url,n.url);case"pathParamsOrQueryParamsChange":return!ra(t.url,n.url)||!Ai(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Cv(t,n)||!Ai(t.queryParams,n.queryParams);default:return!Cv(t,n)}}function Ad(t,n,e){let r=kl(t),i=t.value;Object.entries(r).forEach(([o,s])=>{i.component?n?Ad(s,n.children.getContext(o),e):Ad(s,null,e):Ad(s,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Ol(n.outlet.component,i)):e.canDeactivateChecks.push(new Ol(null,i)):e.canDeactivateChecks.push(new Ol(null,i))}function qd(t){return typeof t=="function"}function sV(t){return typeof t=="boolean"}function aV(t){return t&&qd(t.canLoad)}function lV(t){return t&&qd(t.canActivate)}function cV(t){return t&&qd(t.canActivateChild)}function dV(t){return t&&qd(t.canDeactivate)}function uV(t){return t&&qd(t.canMatch)}function PD(t){return t instanceof zr||t?.name==="EmptyError"}var gh=Symbol("INITIAL_VALUE");function Fl(){return bn(t=>Op(t.map(n=>n.pipe(so(1),Lc(gh)))).pipe(be(n=>{for(let e of n)if(e!==!0){if(e===gh)return gh;if(e===!1||pV(e))return e}return!0}),nn(n=>n!==gh),so(1)))}function pV(t){return Rl(t)||t instanceof Nl}function fV(t,n){return Nt(e=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?ve(A(_({},e),{guardsResult:!0})):hV(s,r,i,t).pipe(Nt(a=>a&&sV(a)?mV(r,o,t,n):ve(a)),be(a=>A(_({},e),{guardsResult:a})))})}function hV(t,n,e,r){return ft(t).pipe(Nt(i=>_V(i.component,i.route,e,n,r)),ao(i=>i!==!0,!0))}function mV(t,n,e,r){return ft(n).pipe(Bo(i=>wi(yV(i.route.parent,r),gV(i.route,r),vV(t,i.path,e),bV(t,i.route,e))),ao(i=>i!==!0,!0))}function gV(t,n){return t!==null&&n&&n(new Mh(t)),ve(!0)}function yV(t,n){return t!==null&&n&&n(new Dh(t)),ve(!0)}function bV(t,n,e){let r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||r.length===0)return ve(!0);let i=r.map(o=>Nc(()=>{let s=Ll(n)??e,a=Vl(o,s),l=lV(a)?a.canActivate(n,t):In(s,()=>a(n,t));return vo(l).pipe(ao())}));return ve(i).pipe(Fl())}function vV(t,n,e){let r=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>rV(s)).filter(s=>s!==null).map(s=>Nc(()=>{let a=s.guards.map(l=>{let c=Ll(s.node)??e,d=Vl(l,c),u=cV(d)?d.canActivateChild(r,t):In(c,()=>d(r,t));return vo(u).pipe(ao())});return ve(a).pipe(Fl())}));return ve(o).pipe(Fl())}function _V(t,n,e,r,i){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return ve(!0);let s=o.map(a=>{let l=Ll(n)??i,c=Vl(a,l),d=dV(c)?c.canDeactivate(t,n,e,r):In(l,()=>c(t,n,e,r));return vo(d).pipe(ao())});return ve(s).pipe(Fl())}function wV(t,n,e,r){let i=n.canLoad;if(i===void 0||i.length===0)return ve(!0);let o=i.map(s=>{let a=Vl(s,t),l=aV(a)?a.canLoad(n,e):In(t,()=>a(n,e));return vo(l)});return ve(o).pipe(Fl(),AD(r))}function AD(t){return zg(St(n=>{if(typeof n!="boolean")throw Nh(t,n)}),be(n=>n===!0))}function CV(t,n,e,r){let i=n.canMatch;if(!i||i.length===0)return ve(!0);let o=i.map(s=>{let a=Vl(s,t),l=uV(a)?a.canMatch(n,e):In(t,()=>a(n,e));return vo(l)});return ve(o).pipe(Fl(),AD(r))}var Hd=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},$d=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function Dl(t){return _i(new Hd(t))}function xV(t){return _i(new U(4e3,!1))}function TV(t){return _i(OD(!1,qn.GuardRejected))}var Ev=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return ve(r);if(i.numberOfChildren>1||!i.children[Ve])return xV(`${n.redirectTo}`);i=i.children[Ve]}}applyRedirectCommands(n,e,r,i,o){return EV(e,i,o).pipe(be(s=>{if(s instanceof Fi)throw new $d(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),n,r);if(s[0]==="/")throw new $d(a);return a}))}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new Fi(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);r[i]=e[a]}else r[i]=o}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),s={};return Object.entries(e.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(n,l,r,i)}),new mt(o,s)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new U(4001,!1);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++}return n}};function EV(t,n,e){if(typeof t=="string")return ve(t);let r=t,{queryParams:i,fragment:o,routeConfig:s,url:a,outlet:l,params:c,data:d,title:u}=n;return vo(In(e,()=>r({params:c,data:d,queryParams:i,fragment:o,routeConfig:s,url:a,outlet:l,title:u})))}var Sv={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function SV(t,n,e,r,i){let o=ND(t,n,e);return o.matched?(r=Q4(n,r),CV(r,n,e,i).pipe(be(s=>s===!0?o:_({},Sv)))):ve(o)}function ND(t,n,e){if(n.path==="**")return IV(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?_({},Sv):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||dD)(e,t,n);if(!i)return _({},Sv);let o={};Object.entries(i.posParams??{}).forEach(([a,l])=>{o[a]=l.path});let s=i.consumed.length>0?_(_({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function IV(t){return{matched:!0,parameters:t.length>0?pD(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function aD(t,n,e,r){return e.length>0&&MV(t,e,r)?{segmentGroup:new mt(n,kV(r,new mt(e,t.children))),slicedSegments:[]}:e.length===0&&OV(t,e,r)?{segmentGroup:new mt(t.segments,DV(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new mt(t.segments,t.children),slicedSegments:e}}function DV(t,n,e,r){let i={};for(let o of e)if(Vh(t,n,o)&&!r[ni(o)]){let s=new mt([],{});i[ni(o)]=s}return _(_({},r),i)}function kV(t,n){let e={};e[Ve]=n;for(let r of t)if(r.path===""&&ni(r)!==Ve){let i=new mt([],{});e[ni(r)]=i}return e}function MV(t,n,e){return e.some(r=>Vh(t,n,r)&&ni(r)!==Ve)}function OV(t,n,e){return e.some(r=>Vh(t,n,r))}function Vh(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function RV(t,n,e){return n.length===0&&!t.children[e]}var Iv=class{};function PV(t,n,e,r,i,o,s="emptyOnly"){return new Dv(t,n,e,r,i,s,o).recognize()}var AV=31,Dv=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,r,i,o,s,a){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Ev(this.urlSerializer,this.urlTree)}noMatchError(n){return new U(4002,`'${n.segmentGroup}'`)}recognize(){let n=aD(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(be(({children:e,rootSnapshot:r})=>{let i=new fr(r,e),o=new jd("",i),s=wD(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(n){let e=new ia([],Object.freeze({}),Object.freeze(_({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),Ve,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,Ve,e).pipe(be(r=>({children:r,rootSnapshot:e})),dr(r=>{if(r instanceof $d)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Hd?this.noMatchError(r):r}))}processSegmentGroup(n,e,r,i,o){return r.segments.length===0&&r.hasChildren()?this.processChildren(n,e,r,o):this.processSegment(n,e,r,r.segments,i,!0,o).pipe(be(s=>s instanceof fr?[s]:[]))}processChildren(n,e,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);return ft(o).pipe(Bo(s=>{let a=r.children[s],l=K4(e,s);return this.processSegmentGroup(n,l,a,s,i)}),t0((s,a)=>(s.push(...a),s)),Vo(null),Xg(),Nt(s=>{if(s===null)return Dl(r);let a=FD(s);return NV(a),ve(a)}))}processSegment(n,e,r,i,o,s,a){return ft(e).pipe(Bo(l=>this.processSegmentAgainstRoute(l._injector??n,e,l,r,i,o,s,a).pipe(dr(c=>{if(c instanceof Hd)return ve(null);throw c}))),ao(l=>!!l),dr(l=>{if(PD(l))return RV(r,i,o)?ve(new Iv):Dl(r);throw l}))}processSegmentAgainstRoute(n,e,r,i,o,s,a,l){return ni(r)!==s&&(s===Ve||!Vh(i,o,r))?Dl(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(n,i,r,o,s,l):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,s,l):Dl(i)}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,s,a){let{matched:l,parameters:c,consumedSegments:d,positionalParamSegments:u,remainingSegments:p}=ND(e,i,o);if(!l)return Dl(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>AV&&(this.allowRedirects=!1));let f=new ia(o,c,Object.freeze(_({},this.urlTree.queryParams)),this.urlTree.fragment,lD(i),ni(i),i.component??i._loadedComponent??null,i,cD(i)),y=Ah(f,a,this.paramsInheritanceStrategy);return f.params=Object.freeze(y.params),f.data=Object.freeze(y.data),this.applyRedirects.applyRedirectCommands(d,i.redirectTo,u,f,n).pipe(bn(v=>this.applyRedirects.lineralizeSegments(i,v)),Nt(v=>this.processSegment(n,r,e,v.concat(p),s,!1,a)))}matchSegmentAgainstRoute(n,e,r,i,o,s){let a=SV(e,r,i,n,this.urlSerializer);return r.path==="**"&&(e.children={}),a.pipe(bn(l=>l.matched?(n=r._injector??n,this.getChildConfig(n,r,i).pipe(bn(({routes:c})=>{let d=r._loadedInjector??n,{parameters:u,consumedSegments:p,remainingSegments:f}=l,y=new ia(p,u,Object.freeze(_({},this.urlTree.queryParams)),this.urlTree.fragment,lD(r),ni(r),r.component??r._loadedComponent??null,r,cD(r)),b=Ah(y,s,this.paramsInheritanceStrategy);y.params=Object.freeze(b.params),y.data=Object.freeze(b.data);let{segmentGroup:v,slicedSegments:w}=aD(e,p,f,c);if(w.length===0&&v.hasChildren())return this.processChildren(d,c,v,y).pipe(be(P=>new fr(y,P)));if(c.length===0&&w.length===0)return ve(new fr(y,[]));let D=ni(r)===o;return this.processSegment(d,c,v,w,D?Ve:o,!0,y).pipe(be(P=>new fr(y,P instanceof fr?[P]:[])))}))):Dl(e)))}getChildConfig(n,e,r){return e.children?ve({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?ve({routes:e._loadedRoutes,injector:e._loadedInjector}):wV(n,e,r,this.urlSerializer).pipe(Nt(i=>i?this.configLoader.loadChildren(n,e).pipe(St(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):TV(e))):ve({routes:[],injector:n})}};function NV(t){t.sort((n,e)=>n.value.outlet===Ve?-1:e.value.outlet===Ve?1:n.value.outlet.localeCompare(e.value.outlet))}function FV(t){let n=t.value.routeConfig;return n&&n.path===""}function FD(t){let n=[],e=new Set;for(let r of t){if(!FV(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r)}for(let r of e){let i=FD(r.children);n.push(new fr(r.value,i))}return n.filter(r=>!e.has(r))}function lD(t){return t.data||{}}function cD(t){return t.resolve||{}}function LV(t,n,e,r,i,o){return Nt(s=>PV(t,n,e,r,s.extractedUrl,i,o).pipe(be(({state:a,tree:l})=>A(_({},s),{targetSnapshot:a,urlAfterRedirects:l}))))}function BV(t,n){return Nt(e=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=e;if(!i.length)return ve(e);let o=new Set(i.map(l=>l.route)),s=new Set;for(let l of o)if(!s.has(l))for(let c of LD(l))s.add(c);let a=0;return ft(s).pipe(Bo(l=>o.has(l)?VV(l,r,t,n):(l.data=Ah(l,l.parent,t).resolve,ve(void 0))),St(()=>a++),Za(1),Nt(l=>a===s.size?ve(e):Pt))})}function LD(t){let n=t.children.map(e=>LD(e)).flat();return[t,...n]}function VV(t,n,e,r){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!DD(i)&&(o[Ud]=i.title),Nc(()=>(t.data=Ah(t,t.parent,e).resolve,jV(o,t,n,r).pipe(be(s=>(t._resolvedData=s,t.data=_(_({},t.data),s),null)))))}function jV(t,n,e,r){let i=gv(t);if(i.length===0)return ve({});let o={};return ft(i).pipe(Nt(s=>zV(t[s],n,e,r).pipe(ao(),St(a=>{if(a instanceof Nl)throw Nh(new sa,a);o[s]=a}))),Za(1),be(()=>o),dr(s=>PD(s)?Pt:_i(s)))}function zV(t,n,e,r){let i=Ll(n)??r,o=Vl(t,i),s=o.resolve?o.resolve(n,e):In(i,()=>o(n,e));return vo(s)}function hv(t){return bn(n=>{let e=t(n);return e?ft(e).pipe(be(()=>n)):ve(n)})}var Rv=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===Ve);return r}getResolvedTitleForRoute(e){return e.data[Ud]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:()=>x(BD),providedIn:"root"})}return t})(),BD=(()=>{class t extends Rv{title;constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||t)(me(nD))};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Qd=new H("",{providedIn:"root",factory:()=>({})}),Kd=new H(""),VD=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=x(Pb);loadComponent(e,r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return ve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=vo(In(e,()=>r.loadComponent())).pipe(be(zD),bn(HD),St(s=>{this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s}),Ci(()=>{this.componentLoaders.delete(r)})),o=new qa(i,()=>new qe).pipe(Ga());return this.componentLoaders.set(r,o),o}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return ve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=jD(r,this.compiler,e,this.onLoadEndListener).pipe(Ci(()=>{this.childrenLoaders.delete(r)})),s=new qa(o,()=>new qe).pipe(Ga());return this.childrenLoaders.set(r,s),s}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function jD(t,n,e,r){return vo(In(e,()=>t.loadChildren())).pipe(be(zD),bn(HD),Nt(i=>i instanceof Wf||Array.isArray(i)?ve(i):ft(n.compileModuleAsync(i))),be(i=>{r&&r(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(e).injector,s=o.get(Kd,[],{optional:!0,self:!0}).flat()),{routes:s.map(Ov),injector:o}}))}function HV(t){return t&&typeof t=="object"&&"default"in t}function zD(t){return HV(t)?t.default:t}function HD(t){return ve(t)}var jh=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:()=>x($V),providedIn:"root"})}return t})(),$V=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),$D=new H("");var UD=new H(""),WD=(()=>{class t{currentNavigation=ge(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=null;events=new qe;transitionAbortWithErrorSubject=new qe;configLoader=x(VD);environmentInjector=x(Jt);destroyRef=x(kr);urlSerializer=x(Wd);rootContexts=x(Bl);location=x(xl);inputBindingEnabled=x(Bh,{optional:!0})!==null;titleStrategy=x(Rv);options=x(Qd,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=x(jh);createViewTransition=x($D,{optional:!0});navigationErrorHandler=x(UD,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>ve(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new Sh(i)),r=i=>this.events.next(new Ih(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r=++this.navigationId;fn(()=>{this.transitions?.next(A(_({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:r}))})}setupNavigations(e){return this.transitions=new an(null),this.transitions.pipe(nn(r=>r!==null),bn(r=>{let i=!1;return ve(r).pipe(bn(o=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",qn.SupersededByNewNavigation),Pt;this.currentTransition=r,this.currentNavigation.set({id:o.id,initialUrl:o.rawUrl,extractedUrl:o.extractedUrl,targetBrowserUrl:typeof o.extras.browserUrl=="string"?this.urlSerializer.parse(o.extras.browserUrl):o.extras.browserUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?A(_({},this.lastSuccessfulNavigation),{previousNavigation:null}):null,abort:()=>o.abortController.abort()});let s=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),a=o.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!s&&a!=="reload")return this.events.next(new bo(o.id,this.urlSerializer.serialize(o.rawUrl),"",Fd.IgnoredSameUrlNavigation)),o.resolve(!1),Pt;if(this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return ve(o).pipe(bn(l=>(this.events.next(new aa(l.id,this.urlSerializer.serialize(l.extractedUrl),l.source,l.restoredState)),l.id!==this.navigationId?Pt:Promise.resolve(l))),LV(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),St(l=>{r.targetSnapshot=l.targetSnapshot,r.urlAfterRedirects=l.urlAfterRedirects,this.currentNavigation.update(d=>(d.finalUrl=l.urlAfterRedirects,d));let c=new Ld(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}));if(s&&this.urlHandlingStrategy.shouldProcessUrl(o.currentRawUrl)){let{id:l,extractedUrl:c,source:d,restoredState:u,extras:p}=o,f=new aa(l,this.urlSerializer.serialize(c),d,u);this.events.next(f);let y=SD(this.rootComponentType).snapshot;return this.currentTransition=r=A(_({},o),{targetSnapshot:y,urlAfterRedirects:c,extras:A(_({},p),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(b=>(b.finalUrl=c,b)),ve(r)}else return this.events.next(new bo(o.id,this.urlSerializer.serialize(o.extractedUrl),"",Fd.IgnoredByUrlHandlingStrategy)),o.resolve(!1),Pt}),St(o=>{let s=new Ch(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot);this.events.next(s)}),be(o=>(this.currentTransition=r=A(_({},o),{guards:nV(o.targetSnapshot,o.currentSnapshot,this.rootContexts)}),r)),fV(this.environmentInjector,o=>this.events.next(o)),St(o=>{if(r.guardsResult=o.guardsResult,o.guardsResult&&typeof o.guardsResult!="boolean")throw Nh(this.urlSerializer,o.guardsResult);let s=new xh(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.events.next(s)}),nn(o=>o.guardsResult?!0:(this.cancelNavigationTransition(o,"",qn.GuardRejected),!1)),hv(o=>{if(o.guards.canActivateChecks.length!==0)return ve(o).pipe(St(s=>{let a=new Th(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),bn(s=>{let a=!1;return ve(s).pipe(BV(this.paramsInheritanceStrategy,this.environmentInjector),St({next:()=>a=!0,complete:()=>{a||this.cancelNavigationTransition(s,"",qn.NoDataFromResolver)}}))}),St(s=>{let a=new Eh(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}))}),hv(o=>{let s=a=>{let l=[];if(a.routeConfig?.loadComponent){let c=Ll(a)??this.environmentInjector;l.push(this.configLoader.loadComponent(c,a.routeConfig).pipe(St(d=>{a.component=d}),be(()=>{})))}for(let c of a.children)l.push(...s(c));return l};return Op(s(o.targetSnapshot.root)).pipe(Vo(null),so(1))}),hv(()=>this.afterPreactivation()),bn(()=>{let{currentSnapshot:o,targetSnapshot:s}=r,a=this.createViewTransition?.(this.environmentInjector,o.root,s.root);return a?ft(a).pipe(be(()=>r)):ve(r)}),be(o=>{let s=Z4(e.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return this.currentTransition=r=A(_({},o),{targetRouterState:s}),this.currentNavigation.update(a=>(a.targetRouterState=s,a)),r}),St(()=>{this.events.next(new Bd)}),tV(this.rootContexts,e.routeReuseStrategy,o=>this.events.next(o),this.inputBindingEnabled),so(1),Ap(new pe(o=>{let s=r.abortController.signal,a=()=>o.next();return s.addEventListener("abort",a),()=>s.removeEventListener("abort",a)}).pipe(nn(()=>!i&&!r.targetRouterState),St(()=>{this.cancelNavigationTransition(r,r.abortController.signal.reason+"",qn.Aborted)}))),St({next:o=>{i=!0,this.lastSuccessfulNavigation=fn(this.currentNavigation),this.events.next(new yo(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects))),this.titleStrategy?.updateTitle(o.targetRouterState.snapshot),o.resolve(!0)},complete:()=>{i=!0}}),Ap(this.transitionAbortWithErrorSubject.pipe(St(o=>{throw o}))),Ci(()=>{i||this.cancelNavigationTransition(r,"",qn.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),dr(o=>{if(this.destroyed)return r.resolve(!1),Pt;if(i=!0,RD(o))this.events.next(new Ni(r.id,this.urlSerializer.serialize(r.extractedUrl),o.message,o.cancellationCode)),eV(o)?this.events.next(new Al(o.url,o.navigationBehaviorOptions)):r.resolve(!1);else{let s=new Pl(r.id,this.urlSerializer.serialize(r.extractedUrl),o,r.targetSnapshot??void 0);try{let a=In(this.environmentInjector,()=>this.navigationErrorHandler?.(s));if(a instanceof Nl){let{message:l,cancellationCode:c}=Nh(this.urlSerializer,a);this.events.next(new Ni(r.id,this.urlSerializer.serialize(r.extractedUrl),l,c)),this.events.next(new Al(a.redirectTo,a.navigationBehaviorOptions))}else throw this.events.next(s),o}catch(a){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(a)}}return Pt}))}))}cancelNavigationTransition(e,r,i){let o=new Ni(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=fn(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return e.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function UV(t){return t!==Pd}var GD=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:()=>x(WV),providedIn:"root"})}return t})(),Lh=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},WV=(()=>{class t extends Lh{static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qD=(()=>{class t{urlSerializer=x(Wd);options=x(Qd,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=x(xl);urlHandlingStrategy=x(jh);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Fi;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,s=i??o;return s instanceof Fi?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i}routerState=SD(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:()=>x(GV),providedIn:"root"})}return t})(),GV=(()=>{class t extends qD{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate")})})}handleRouterEvent(e,r){e instanceof aa?this.updateStateMemento():e instanceof bo?this.commitTransition(r):e instanceof Ld?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof Bd?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof Ni&&e.code!==qn.SupersededByNewNavigation&&e.code!==qn.Redirect?this.restoreHistory(r):e instanceof Pl?this.restoreHistory(r,!0):e instanceof yo&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:r,id:i}){let{replaceUrl:o,state:s}=r;if(this.location.isCurrentPathEqualTo(e)||o){let a=this.browserPageId,l=_(_({},s),this.generateNgRouterState(i,a));this.location.replaceState(e,"",l)}else{let a=_(_({},s),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(e,"",a)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Pv(t,n){t.events.pipe(nn(e=>e instanceof yo||e instanceof Ni||e instanceof Pl||e instanceof bo),be(e=>e instanceof yo||e instanceof bo?0:(e instanceof Ni?e.code===qn.Redirect||e.code===qn.SupersededByNewNavigation:!1)?2:1),nn(e=>e!==2),so(1)).subscribe(()=>{n()})}var qV={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},QV={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Vn=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=x(xb);stateManager=x(qD);options=x(Qd,{optional:!0})||{};pendingTasks=x(ki);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=x(WD);urlSerializer=x(Wd);location=x(xl);urlHandlingStrategy=x(jh);injector=x(Jt);_events=new qe;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=x(GD);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=x(Kd,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!x(Bh,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new qt;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=fn(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof Ni&&r.code!==qn.Redirect&&r.code!==qn.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof yo)this.navigated=!0;else if(r instanceof Al){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),l=_({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||UV(i.source)},s);this.scheduleNavigation(a,Pd,null,l,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}q4(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Pd,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i)=>{this.navigateToSyncWithBrowser(e,i,r)})}navigateToSyncWithBrowser(e,r,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let l=_({},i);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let a=this.parseUrl(e);this.scheduleNavigation(a,r,s,o).catch(l=>{this.disposed||this.injector.get(Jn)(l)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return fn(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Ov),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=r,c=l?this.currentUrlTree.fragment:s,d=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":d=_(_({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let u;try{let p=i?i.snapshot:this.routerState.snapshot.root;u=CD(p)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),u=this.currentUrlTree.root}return xD(u,e,d,c??null)}navigateByUrl(e,r={skipLocationChange:!1}){let i=Rl(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Pd,null,r)}navigate(e,r={skipLocationChange:!1}){return KV(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn(Ho(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===!0?i=_({},qV):r===!1?i=_({},QV):i=r,Rl(e))return rD(this.currentUrlTree,e,i);let o=this.parseUrl(e);return rD(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((u,p)=>{a=u,l=p});let d=this.pendingTasks.add();return Pv(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(u=>Promise.reject(u))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function KV(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new U(4008,!1)}var ZV=new H("");function Av(t,...n){return Tr([{provide:Kd,multi:!0,useValue:t},[],{provide:Li,useFactory:JV,deps:[Vn]},{provide:Gf,multi:!0,useFactory:XV},n.map(e=>e.\u0275providers)])}function JV(t){return t.routerState.root}function XV(){let t=x(Bt);return n=>{let e=t.get(Ri);if(n!==e.components[0])return;let r=t.get(Vn),i=t.get(e6);t.get(t6)===1&&r.initialNavigation(),t.get(n6,null,{optional:!0})?.setUpPreloading(),t.get(ZV,null,{optional:!0})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var e6=new H("",{factory:()=>new qe}),t6=new H("",{providedIn:"root",factory:()=>1});var n6=new H("");function ss(...t){if(t){let n=[];for(let e=0;e<t.length;e++){let r=t[e];if(!r)continue;let i=typeof r;if(i==="string"||i==="number")n.push(r);else if(i==="object"){let o=Array.isArray(r)?[ss(...r)]:Object.entries(r).map(([s,a])=>a?s:void 0);n=o.length?n.concat(o.filter(s=>!!s)):n}}return n.join(" ").trim()}}function wn(t,n){return t?t.classList?t.classList.contains(n):new RegExp("(^| )"+n+"( |$)","gi").test(t.className):!1}function ri(t,n){if(t&&n){let e=r=>{wn(t,r)||(t.classList?t.classList.add(r):t.className+=" "+r)};[n].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(e))}}function o6(){return window.innerWidth-document.documentElement.offsetWidth}function QD(t){typeof t=="string"?ri(document.body,t||"p-overflow-hidden"):(t!=null&&t.variableName&&document.body.style.setProperty(t.variableName,o6()+"px"),ri(document.body,t?.className||"p-overflow-hidden"))}function Bi(t,n){if(t&&n){let e=r=>{t.classList?t.classList.remove(r):t.className=t.className.replace(new RegExp("(^|\\b)"+r.split(" ").join("|")+"(\\b|$)","gi")," ")};[n].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(e))}}function KD(t){typeof t=="string"?Bi(document.body,t||"p-overflow-hidden"):(t!=null&&t.variableName&&document.body.style.removeProperty(t.variableName),Bi(document.body,t?.className||"p-overflow-hidden"))}function Yd(t){for(let n of document?.styleSheets)try{for(let e of n?.cssRules)for(let r of e?.style)if(t.test(r))return{name:r,value:e.style.getPropertyValue(r).trim()}}catch{}return null}function YD(t){let n={width:0,height:0};if(t){let[e,r]=[t.style.visibility,t.style.display],i=t.getBoundingClientRect();t.style.visibility="hidden",t.style.display="block",n.width=i.width||t.offsetWidth,n.height=i.height||t.offsetHeight,t.style.display=r,t.style.visibility=e}return n}function zh(){let t=window,n=document,e=n.documentElement,r=n.getElementsByTagName("body")[0],i=t.innerWidth||e.clientWidth||r.clientWidth,o=t.innerHeight||e.clientHeight||r.clientHeight;return{width:i,height:o}}function Nv(t){return t?Math.abs(t.scrollLeft):0}function Fv(){let t=document.documentElement;return(window.pageXOffset||Nv(t))-(t.clientLeft||0)}function Lv(){let t=document.documentElement;return(window.pageYOffset||t.scrollTop)-(t.clientTop||0)}function s6(t){return t?getComputedStyle(t).direction==="rtl":!1}function ZD(t,n,e=!0){var r,i,o,s;if(t){let a=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:YD(t),l=a.height,c=a.width,d=n.offsetHeight,u=n.offsetWidth,p=n.getBoundingClientRect(),f=Lv(),y=Fv(),b=zh(),v,w,D="top";p.top+d+l>b.height?(v=p.top+f-l,D="bottom",v<0&&(v=f)):v=d+p.top+f,p.left+c>b.width?w=Math.max(0,p.left+y+u-c):w=p.left+y,s6(t)?t.style.insetInlineEnd=w+"px":t.style.insetInlineStart=w+"px",t.style.top=v+"px",t.style.transformOrigin=D,e&&(t.style.marginTop=D==="bottom"?`calc(${(i=(r=Yd(/-anchor-gutter$/))==null?void 0:r.value)!=null?i:"2px"} * -1)`:(s=(o=Yd(/-anchor-gutter$/))==null?void 0:o.value)!=null?s:"")}}function JD(t,n){t&&(typeof n=="string"?t.style.cssText=n:Object.entries(n||{}).forEach(([e,r])=>t.style[e]=r))}function Mn(t,n){if(t instanceof HTMLElement){let e=t.offsetWidth;if(n){let r=getComputedStyle(t);e+=parseFloat(r.marginLeft)+parseFloat(r.marginRight)}return e}return 0}function XD(t,n,e=!0,r=void 0){var i;if(t){let o=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:YD(t),s=n.offsetHeight,a=n.getBoundingClientRect(),l=zh(),c,d,u=r??"top";if(!r&&a.top+s+o.height>l.height?(c=-1*o.height,u="bottom",a.top+c<0&&(c=-1*a.top)):c=s,o.width>l.width?d=a.left*-1:a.left+o.width>l.width?d=(a.left+o.width-l.width)*-1:d=0,t.style.top=c+"px",t.style.insetInlineStart=d+"px",t.style.transformOrigin=u,e){let p=(i=Yd(/-anchor-gutter$/))==null?void 0:i.value;t.style.marginTop=u==="bottom"?`calc(${p??"2px"} * -1)`:p??""}}}function ek(t){if(t){let n=t.parentNode;return n&&n instanceof ShadowRoot&&n.host&&(n=n.host),n}return null}function a6(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&ek(t))}function Zd(t){return typeof Element<"u"?t instanceof Element:t!==null&&typeof t=="object"&&t.nodeType===1&&typeof t.nodeName=="string"}function tk(t){let n=t;return t&&typeof t=="object"&&(Object.hasOwn(t,"current")?n=t.current:Object.hasOwn(t,"el")&&(Object.hasOwn(t.el,"nativeElement")?n=t.el.nativeElement:n=t.el)),Zd(n)?n:void 0}function Bv(t,n){var e,r,i;if(t)switch(t){case"document":return document;case"window":return window;case"body":return document.body;case"@next":return n?.nextElementSibling;case"@prev":return n?.previousElementSibling;case"@first":return n?.firstElementChild;case"@last":return n?.lastElementChild;case"@child":return(e=n?.children)==null?void 0:e[0];case"@parent":return n?.parentElement;case"@grandparent":return(r=n?.parentElement)==null?void 0:r.parentElement;default:{if(typeof t=="string"){let a=t.match(/^@child\[(\d+)]/);return a?((i=n?.children)==null?void 0:i[parseInt(a[1],10)])||null:document.querySelector(t)||null}let o=(a=>typeof a=="function"&&"call"in a&&"apply"in a)(t)?t():t,s=tk(o);return a6(s)?s:o?.nodeType===9?o:void 0}}}function Jd(t,n){let e=Bv(t,n);if(e)e.appendChild(n);else throw new Error("Cannot append "+n+" to "+t)}function Hh(t,n={}){if(Zd(t)){let e=(r,i)=>{var o,s;let a=(o=t?.$attrs)!=null&&o[r]?[(s=t?.$attrs)==null?void 0:s[r]]:[];return[i].flat().reduce((l,c)=>{if(c!=null){let d=typeof c;if(d==="string"||d==="number")l.push(c);else if(d==="object"){let u=Array.isArray(c)?e(r,c):Object.entries(c).map(([p,f])=>r==="style"&&(f||f===0)?`${p.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${f}`:f?p:void 0);l=u.length?l.concat(u.filter(p=>!!p)):l}}return l},a)};Object.entries(n).forEach(([r,i])=>{if(i!=null){let o=r.match(/^on(.+)/);o?t.addEventListener(o[1].toLowerCase(),i):r==="p-bind"||r==="pBind"?Hh(t,i):(i=r==="class"?[...new Set(e("class",i))].join(" ").trim():r==="style"?e("style",i).join(";").trim():i,(t.$attrs=t.$attrs||{})&&(t.$attrs[r]=i),t.setAttribute(r,i))}})}}function Xd(t,n={},...e){if(t){let r=document.createElement(t);return Hh(r,n),r.append(...e),r}}function nk(t,n){if(t){t.style.opacity="0";let e=+new Date,r="0",i=function(){r=`${+t.style.opacity+(new Date().getTime()-e)/n}`,t.style.opacity=r,e=+new Date,+r<1&&("requestAnimationFrame"in window?requestAnimationFrame(i):setTimeout(i,16))};i()}}function Vi(t,n){return Zd(t)?Array.from(t.querySelectorAll(n)):[]}function wt(t,n){return Zd(t)?t.matches(n)?t:t.querySelector(n):null}function ii(t,n){t&&document.activeElement!==t&&t.focus(n)}function la(t,n=""){let e=Vi(t,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},
[href]:not([tabindex = "-1"]):not([style*="display:none"]):not([hidden])${n},
input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},
select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},
textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},
[tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},
[contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n}`),r=[];for(let i of e)getComputedStyle(i).display!="none"&&getComputedStyle(i).visibility!="hidden"&&r.push(i);return r}function rk(t,n){let e=la(t,n);return e.length>0?e[0]:null}function ji(t){if(t){let n=t.offsetHeight,e=getComputedStyle(t);return n-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)+parseFloat(e.borderTopWidth)+parseFloat(e.borderBottomWidth),n}return 0}function eu(t){var n;if(t){let e=(n=ek(t))==null?void 0:n.childNodes,r=0;if(e)for(let i=0;i<e.length;i++){if(e[i]===t)return r;e[i].nodeType===1&&r++}}return-1}function ik(t,n){let e=la(t,n);return e.length>0?e[e.length-1]:null}function ok(t){if(t){let n=t.getBoundingClientRect();return{top:n.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:n.left+(window.pageXOffset||Nv(document.documentElement)||Nv(document.body)||0)}}return{top:"auto",left:"auto"}}function oi(t,n){if(t){let e=t.offsetHeight;if(n){let r=getComputedStyle(t);e+=parseFloat(r.marginTop)+parseFloat(r.marginBottom)}return e}return 0}function sk(){if(window.getSelection)return window.getSelection().toString();if(document.getSelection)return document.getSelection().toString()}function zi(t){if(t){let n=t.offsetWidth,e=getComputedStyle(t);return n-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)+parseFloat(e.borderLeftWidth)+parseFloat(e.borderRightWidth),n}return 0}function Vv(t){return!!(t&&t.offsetParent!=null)}function _o(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function ak(t){var n;t&&("remove"in Element.prototype?t.remove():(n=t.parentNode)==null||n.removeChild(t))}function lk(t,n){let e=tk(t);if(e)e.removeChild(n);else throw new Error("Cannot remove "+n+" from "+t)}function ck(t,n){let e=getComputedStyle(t).getPropertyValue("borderTopWidth"),r=e?parseFloat(e):0,i=getComputedStyle(t).getPropertyValue("paddingTop"),o=i?parseFloat(i):0,s=t.getBoundingClientRect(),a=n.getBoundingClientRect().top+document.body.scrollTop-(s.top+document.body.scrollTop)-r-o,l=t.scrollTop,c=t.clientHeight,d=oi(n);a<0?t.scrollTop=l+a:a+d>c&&(t.scrollTop=l+a-c+d)}function tu(t,n="",e){Zd(t)&&e!==null&&e!==void 0&&t.setAttribute(n,e)}function dk(){let t=new Map;return{on(n,e){let r=t.get(n);return r?r.push(e):r=[e],t.set(n,r),this},off(n,e){let r=t.get(n);return r&&r.splice(r.indexOf(e)>>>0,1),this},emit(n,e){let r=t.get(n);r&&r.forEach(i=>{i(e)})},clear(){t.clear()}}}var l6=Object.defineProperty,uk=Object.getOwnPropertySymbols,c6=Object.prototype.hasOwnProperty,d6=Object.prototype.propertyIsEnumerable,pk=(t,n,e)=>n in t?l6(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,fk=(t,n)=>{for(var e in n||(n={}))c6.call(n,e)&&pk(t,e,n[e]);if(uk)for(var e of uk(n))d6.call(n,e)&&pk(t,e,n[e]);return t};function hk(...t){if(t){let n=[];for(let e=0;e<t.length;e++){let r=t[e];if(!r)continue;let i=typeof r;if(i==="string"||i==="number")n.push(r);else if(i==="object"){let o=Array.isArray(r)?[hk(...r)]:Object.entries(r).map(([s,a])=>a?s:void 0);n=o.length?n.concat(o.filter(s=>!!s)):n}}return n.join(" ").trim()}}function u6(t){return typeof t=="function"&&"call"in t&&"apply"in t}function p6({skipUndefined:t=!1},...n){return n?.reduce((e,r={})=>{for(let i in r){let o=r[i];if(!(t&&o===void 0))if(i==="style")e.style=fk(fk({},e.style),r.style);else if(i==="class"||i==="className")e[i]=hk(e[i],r[i]);else if(u6(o)){let s=e[i];e[i]=s?(...a)=>{s(...a),o(...a)}:o}else e[i]=o}return e},{})}function jv(...t){return p6({skipUndefined:!1},...t)}var f6=Object.defineProperty,mk=Object.getOwnPropertySymbols,h6=Object.prototype.hasOwnProperty,m6=Object.prototype.propertyIsEnumerable,gk=(t,n,e)=>n in t?f6(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,g6=(t,n)=>{for(var e in n||(n={}))h6.call(n,e)&&gk(t,e,n[e]);if(mk)for(var e of mk(n))m6.call(n,e)&&gk(t,e,n[e]);return t};function Hi(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function zv(t,n,e=new WeakSet){if(t===n)return!0;if(!t||!n||typeof t!="object"||typeof n!="object"||e.has(t)||e.has(n))return!1;e.add(t).add(n);let r=Array.isArray(t),i=Array.isArray(n),o,s,a;if(r&&i){if(s=t.length,s!=n.length)return!1;for(o=s;o--!==0;)if(!zv(t[o],n[o],e))return!1;return!0}if(r!=i)return!1;let l=t instanceof Date,c=n instanceof Date;if(l!=c)return!1;if(l&&c)return t.getTime()==n.getTime();let d=t instanceof RegExp,u=n instanceof RegExp;if(d!=u)return!1;if(d&&u)return t.toString()==n.toString();let p=Object.keys(t);if(s=p.length,s!==Object.keys(n).length)return!1;for(o=s;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,p[o]))return!1;for(o=s;o--!==0;)if(a=p[o],!zv(t[a],n[a],e))return!1;return!0}function Hv(t,n){return zv(t,n)}function $h(t){return typeof t=="function"&&"call"in t&&"apply"in t}function lt(t){return!Hi(t)}function On(t,n){if(!t||!n)return null;try{let e=t[n];if(lt(e))return e}catch{}if(Object.keys(t).length){if($h(n))return n(t);if(n.indexOf(".")===-1)return t[n];{let e=n.split("."),r=t;for(let i=0,o=e.length;i<o;++i){if(r==null)return null;r=r[e[i]]}return r}}return null}function nr(t,n,e){return e?On(t,e)===On(n,e):Hv(t,n)}function yk(t,n){if(t!=null&&n&&n.length){for(let e of n)if(nr(t,e))return!0}return!1}function si(t,n=!0){return t instanceof Object&&t.constructor===Object&&(n||Object.keys(t).length!==0)}function bk(t={},n={}){let e=g6({},t);return Object.keys(n).forEach(r=>{let i=r;si(n[i])&&i in t&&si(t[i])?e[i]=bk(t[i],n[i]):e[i]=n[i]}),e}function vk(...t){return t.reduce((n,e,r)=>r===0?e:bk(n,e),{})}function $v(t,n){let e=-1;if(lt(t))try{e=t.findLastIndex(n)}catch{e=t.lastIndexOf([...t].reverse().find(n))}return e}function Cn(t,...n){return $h(t)?t(...n):t}function Fr(t,n=!0){return typeof t=="string"&&(n||t!=="")}function as(t){return Fr(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function Uh(t,n="",e={}){let r=as(n).split("."),i=r.shift();if(i){if(si(t)){let o=Object.keys(t).find(s=>as(s)===i)||"";return Uh(Cn(t[o],e),r.join("."),e)}return}return Cn(t,e)}function Uv(t,n=!0){return Array.isArray(t)&&(n||t.length!==0)}function nu(t){return t instanceof Date}function _k(t){return lt(t)&&!isNaN(t)}function wk(t=""){return lt(t)&&t.length===1&&!!t.match(/\S| /)}function ai(t,n){if(n){let e=n.test(t);return n.lastIndex=0,e}return!1}function ca(t){return t&&t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":").trim()}function mr(t){if(t&&/[\xC0-\xFF\u0100-\u017E]/.test(t)){let n={A:/[\xC0-\xC5\u0100\u0102\u0104]/g,AE:/[\xC6]/g,C:/[\xC7\u0106\u0108\u010A\u010C]/g,D:/[\xD0\u010E\u0110]/g,E:/[\xC8-\xCB\u0112\u0114\u0116\u0118\u011A]/g,G:/[\u011C\u011E\u0120\u0122]/g,H:/[\u0124\u0126]/g,I:/[\xCC-\xCF\u0128\u012A\u012C\u012E\u0130]/g,IJ:/[\u0132]/g,J:/[\u0134]/g,K:/[\u0136]/g,L:/[\u0139\u013B\u013D\u013F\u0141]/g,N:/[\xD1\u0143\u0145\u0147\u014A]/g,O:/[\xD2-\xD6\xD8\u014C\u014E\u0150]/g,OE:/[\u0152]/g,R:/[\u0154\u0156\u0158]/g,S:/[\u015A\u015C\u015E\u0160]/g,T:/[\u0162\u0164\u0166]/g,U:/[\xD9-\xDC\u0168\u016A\u016C\u016E\u0170\u0172]/g,W:/[\u0174]/g,Y:/[\xDD\u0176\u0178]/g,Z:/[\u0179\u017B\u017D]/g,a:/[\xE0-\xE5\u0101\u0103\u0105]/g,ae:/[\xE6]/g,c:/[\xE7\u0107\u0109\u010B\u010D]/g,d:/[\u010F\u0111]/g,e:/[\xE8-\xEB\u0113\u0115\u0117\u0119\u011B]/g,g:/[\u011D\u011F\u0121\u0123]/g,i:/[\xEC-\xEF\u0129\u012B\u012D\u012F\u0131]/g,ij:/[\u0133]/g,j:/[\u0135]/g,k:/[\u0137,\u0138]/g,l:/[\u013A\u013C\u013E\u0140\u0142]/g,n:/[\xF1\u0144\u0146\u0148\u014B]/g,p:/[\xFE]/g,o:/[\xF2-\xF6\xF8\u014D\u014F\u0151]/g,oe:/[\u0153]/g,r:/[\u0155\u0157\u0159]/g,s:/[\u015B\u015D\u015F\u0161]/g,t:/[\u0163\u0165\u0167]/g,u:/[\xF9-\xFC\u0169\u016B\u016D\u016F\u0171\u0173]/g,w:/[\u0175]/g,y:/[\xFD\xFF\u0177]/g,z:/[\u017A\u017C\u017E]/g};for(let e in n)t=t.replace(n[e],e)}return t}function Wh(t){return Fr(t)?t.replace(/(_)/g,"-").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase():t}var Gh={};function gt(t="pui_id_"){return Object.hasOwn(Gh,t)||(Gh[t]=0),Gh[t]++,`${t}${Gh[t]}`}var Ck=["*"];var hn=(()=>{class t{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static IN="in";static LESS_THAN="lt";static LESS_THAN_OR_EQUAL_TO="lte";static GREATER_THAN="gt";static GREATER_THAN_OR_EQUAL_TO="gte";static BETWEEN="between";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static DATE_IS="dateIs";static DATE_IS_NOT="dateIsNot";static DATE_BEFORE="dateBefore";static DATE_AFTER="dateAfter"}return t})(),Wv=(()=>{class t{static AND="and";static OR="or"}return t})(),jl=(()=>{class t{filter(e,r,i,o,s){let a=[];if(e)for(let l of e)for(let c of r){let d=On(l,c);if(this.filters[o](d,i,s)){a.push(l);break}}return a}filters={startsWith:(e,r,i)=>{if(r==null||r.trim()==="")return!0;if(e==null)return!1;let o=mr(r.toString()).toLocaleLowerCase(i);return mr(e.toString()).toLocaleLowerCase(i).slice(0,o.length)===o},contains:(e,r,i)=>{if(r==null||typeof r=="string"&&r.trim()==="")return!0;if(e==null)return!1;let o=mr(r.toString()).toLocaleLowerCase(i);return mr(e.toString()).toLocaleLowerCase(i).indexOf(o)!==-1},notContains:(e,r,i)=>{if(r==null||typeof r=="string"&&r.trim()==="")return!0;if(e==null)return!1;let o=mr(r.toString()).toLocaleLowerCase(i);return mr(e.toString()).toLocaleLowerCase(i).indexOf(o)===-1},endsWith:(e,r,i)=>{if(r==null||r.trim()==="")return!0;if(e==null)return!1;let o=mr(r.toString()).toLocaleLowerCase(i),s=mr(e.toString()).toLocaleLowerCase(i);return s.indexOf(o,s.length-o.length)!==-1},equals:(e,r,i)=>r==null||typeof r=="string"&&r.trim()===""?!0:e==null?!1:e.getTime&&r.getTime?e.getTime()===r.getTime():e==r?!0:mr(e.toString()).toLocaleLowerCase(i)==mr(r.toString()).toLocaleLowerCase(i),notEquals:(e,r,i)=>r==null||typeof r=="string"&&r.trim()===""?!1:e==null?!0:e.getTime&&r.getTime?e.getTime()!==r.getTime():e==r?!1:mr(e.toString()).toLocaleLowerCase(i)!=mr(r.toString()).toLocaleLowerCase(i),in:(e,r)=>{if(r==null||r.length===0)return!0;for(let i=0;i<r.length;i++)if(nr(e,r[i]))return!0;return!1},between:(e,r)=>r==null||r[0]==null||r[1]==null?!0:e==null?!1:e.getTime?r[0].getTime()<=e.getTime()&&e.getTime()<=r[1].getTime():r[0]<=e&&e<=r[1],lt:(e,r,i)=>r==null?!0:e==null?!1:e.getTime&&r.getTime?e.getTime()<r.getTime():e<r,lte:(e,r,i)=>r==null?!0:e==null?!1:e.getTime&&r.getTime?e.getTime()<=r.getTime():e<=r,gt:(e,r,i)=>r==null?!0:e==null?!1:e.getTime&&r.getTime?e.getTime()>r.getTime():e>r,gte:(e,r,i)=>r==null?!0:e==null?!1:e.getTime&&r.getTime?e.getTime()>=r.getTime():e>=r,is:(e,r,i)=>this.filters.equals(e,r,i),isNot:(e,r,i)=>this.filters.notEquals(e,r,i),before:(e,r,i)=>this.filters.lt(e,r,i),after:(e,r,i)=>this.filters.gt(e,r,i),dateIs:(e,r)=>r==null?!0:e==null?!1:e.toDateString()===r.toDateString(),dateIsNot:(e,r)=>r==null?!0:e==null?!1:e.toDateString()!==r.toDateString(),dateBefore:(e,r)=>r==null?!0:e==null?!1:e.getTime()<r.getTime(),dateAfter:(e,r)=>r==null?!0:e==null?!1:(e.setHours(0,0,0,0),e.getTime()>r.getTime())};register(e,r){this.filters[e]=r}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var zl=(()=>{class t{clickSource=new qe;clickObservable=this.clickSource.asObservable();add(e){e&&this.clickSource.next(e)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var xk=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=$({type:t,selectors:[["p-header"]],standalone:!1,ngContentSelectors:Ck,decls:1,vars:0,template:function(r,i){r&1&&(zt(),Ot(0))},encapsulation:2})}return t})(),Tk=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=$({type:t,selectors:[["p-footer"]],standalone:!1,ngContentSelectors:Ck,decls:1,vars:0,template:function(r,i){r&1&&(zt(),Ot(0))},encapsulation:2})}return t})(),xt=(()=>{class t{template;type;name;constructor(e){this.template=e}getType(){return this.name}static \u0275fac=function(r){return new(r||t)(de(Oi))};static \u0275dir=Ue({type:t,selectors:[["","pTemplate",""]],inputs:{type:"type",name:[0,"pTemplate","name"]}})}return t})(),Te=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({imports:[Qe]})}return t})(),xn=(()=>{class t{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static NO_FILTER="noFilter";static LT="lt";static LTE="lte";static GT="gt";static GTE="gte";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static CLEAR="clear";static APPLY="apply";static MATCH_ALL="matchAll";static MATCH_ANY="matchAny";static ADD_RULE="addRule";static REMOVE_RULE="removeRule";static ACCEPT="accept";static REJECT="reject";static CHOOSE="choose";static UPLOAD="upload";static CANCEL="cancel";static PENDING="pending";static FILE_SIZE_TYPES="fileSizeTypes";static DAY_NAMES="dayNames";static DAY_NAMES_SHORT="dayNamesShort";static DAY_NAMES_MIN="dayNamesMin";static MONTH_NAMES="monthNames";static MONTH_NAMES_SHORT="monthNamesShort";static FIRST_DAY_OF_WEEK="firstDayOfWeek";static TODAY="today";static WEEK_HEADER="weekHeader";static WEAK="weak";static MEDIUM="medium";static STRONG="strong";static PASSWORD_PROMPT="passwordPrompt";static EMPTY_MESSAGE="emptyMessage";static EMPTY_FILTER_MESSAGE="emptyFilterMessage";static SHOW_FILTER_MENU="showFilterMenu";static HIDE_FILTER_MENU="hideFilterMenu";static SELECTION_MESSAGE="selectionMessage";static ARIA="aria";static SELECT_COLOR="selectColor";static BROWSE_FILES="browseFiles"}return t})();var y6=Object.defineProperty,b6=Object.defineProperties,v6=Object.getOwnPropertyDescriptors,qh=Object.getOwnPropertySymbols,Ik=Object.prototype.hasOwnProperty,Dk=Object.prototype.propertyIsEnumerable,Ek=(t,n,e)=>n in t?y6(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,ci=(t,n)=>{for(var e in n||(n={}))Ik.call(n,e)&&Ek(t,e,n[e]);if(qh)for(var e of qh(n))Dk.call(n,e)&&Ek(t,e,n[e]);return t},Gv=(t,n)=>b6(t,v6(n)),wo=(t,n)=>{var e={};for(var r in t)Ik.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&qh)for(var r of qh(t))n.indexOf(r)<0&&Dk.call(t,r)&&(e[r]=t[r]);return e};function kk(...t){return vk(...t)}var _6=dk(),mn=_6,ru=/{([^}]*)}/g,Mk=/(\d+\s+[\+\-\*\/]\s+\d+)/g,Ok=/var\([^)]+\)/g;function Sk(t){return Fr(t)?t.replace(/[A-Z]/g,(n,e)=>e===0?n:"."+n.toLowerCase()).toLowerCase():t}function w6(t){return si(t)&&t.hasOwnProperty("$value")&&t.hasOwnProperty("$type")?t.$value:t}function C6(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function qv(t="",n=""){return C6(`${Fr(t,!1)&&Fr(n,!1)?`${t}-`:t}${n}`)}function Rk(t="",n=""){return`--${qv(t,n)}`}function x6(t=""){let n=(t.match(/{/g)||[]).length,e=(t.match(/}/g)||[]).length;return(n+e)%2!==0}function Pk(t,n="",e="",r=[],i){if(Fr(t)){let o=t.trim();if(x6(o))return;if(ai(o,ru)){let s=o.replaceAll(ru,a=>{let l=a.replace(/{|}/g,"").split(".").filter(c=>!r.some(d=>ai(c,d)));return`var(${Rk(e,Wh(l.join("-")))}${lt(i)?`, ${i}`:""})`});return ai(s.replace(Ok,"0"),Mk)?`calc(${s})`:s}return o}else if(_k(t))return t}function T6(t,n,e){Fr(n,!1)&&t.push(`${n}:${e};`)}function $l(t,n){return t?`${t}{${n}}`:""}function Ak(t,n){if(t.indexOf("dt(")===-1)return t;function e(s,a){let l=[],c=0,d="",u=null,p=0;for(;c<=s.length;){let f=s[c];if((f==='"'||f==="'"||f==="`")&&s[c-1]!=="\\"&&(u=u===f?null:f),!u&&(f==="("&&p++,f===")"&&p--,(f===","||c===s.length)&&p===0)){let y=d.trim();y.startsWith("dt(")?l.push(Ak(y,a)):l.push(r(y)),d="",c++;continue}f!==void 0&&(d+=f),c++}return l}function r(s){let a=s[0];if((a==='"'||a==="'"||a==="`")&&s[s.length-1]===a)return s.slice(1,-1);let l=Number(s);return isNaN(l)?s:l}let i=[],o=[];for(let s=0;s<t.length;s++)if(t[s]==="d"&&t.slice(s,s+3)==="dt(")o.push(s),s+=2;else if(t[s]===")"&&o.length>0){let a=o.pop();o.length===0&&i.push([a,s])}if(!i.length)return t;for(let s=i.length-1;s>=0;s--){let[a,l]=i[s],c=t.slice(a+3,l),d=e(c,n),u=n(...d);t=t.slice(0,a)+u+t.slice(l+1)}return t}var Kv=t=>{var n;let e=Mt.getTheme(),r=Qv(e,t,void 0,"variable"),i=(n=r?.match(/--[\w-]+/g))==null?void 0:n[0],o=Qv(e,t,void 0,"value");return{name:i,variable:r,value:o}},Co=(...t)=>Qv(Mt.getTheme(),...t),Qv=(t={},n,e,r)=>{if(n){let{variable:i,options:o}=Mt.defaults||{},{prefix:s,transform:a}=t?.options||o||{},l=ai(n,ru)?n:`{${n}}`;return r==="value"||Hi(r)&&a==="strict"?Mt.getTokenValue(n):Pk(l,void 0,s,[i.excludedKeyRegex],e)}return""};function Ul(t,...n){if(t instanceof Array){let e=t.reduce((r,i,o)=>{var s;return r+i+((s=Cn(n[o],{dt:Co}))!=null?s:"")},"");return Ak(e,Co)}return Cn(t,{dt:Co})}function E6(t,n={}){let e=Mt.defaults.variable,{prefix:r=e.prefix,selector:i=e.selector,excludedKeyRegex:o=e.excludedKeyRegex}=n,s=[],a=[],l=[{node:t,path:r}];for(;l.length;){let{node:d,path:u}=l.pop();for(let p in d){let f=d[p],y=w6(f),b=ai(p,o)?qv(u):qv(u,Wh(p));if(si(y))l.push({node:y,path:b});else{let v=Rk(b),w=Pk(y,b,r,[o]);T6(a,v,w);let D=b;r&&D.startsWith(r+"-")&&(D=D.slice(r.length+1)),s.push(D.replace(/-/g,"."))}}}let c=a.join("");return{value:a,tokens:s,declarations:c,css:$l(i,c)}}var li={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(t){return{type:"class",selector:t,matched:this.pattern.test(t.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(t){return{type:"attr",selector:`:root${t},:host${t}`,matched:this.pattern.test(t.trim())}}},media:{pattern:/^@media (.*)$/,resolve(t){return{type:"media",selector:t,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark)",matched:this.pattern.test(t.trim())}}},custom:{resolve(t){return{type:"custom",selector:t,matched:!0}}}},resolve(t){let n=Object.keys(this.rules).filter(e=>e!=="custom").map(e=>this.rules[e]);return[t].flat().map(e=>{var r;return(r=n.map(i=>i.resolve(e)).find(i=>i.matched))!=null?r:this.rules.custom.resolve(e)})}},_toVariables(t,n){return E6(t,{prefix:n?.prefix})},getCommon({name:t="",theme:n={},params:e,set:r,defaults:i}){var o,s,a,l,c,d,u;let{preset:p,options:f}=n,y,b,v,w,D,P,B;if(lt(p)&&f.transform!=="strict"){let{primitive:Y,semantic:ye,extend:Xe}=p,tt=ye||{},{colorScheme:vt}=tt,tn=wo(tt,["colorScheme"]),gi=Xe||{},{colorScheme:zn}=gi,_r=wo(gi,["colorScheme"]),Fo=vt||{},{dark:je}=Fo,Z=wo(Fo,["dark"]),K=zn||{},{dark:ee}=K,he=wo(K,["dark"]),Ye=lt(Y)?this._toVariables({primitive:Y},f):{},Fe=lt(tn)?this._toVariables({semantic:tn},f):{},Rt=lt(Z)?this._toVariables({light:Z},f):{},Sn=lt(je)?this._toVariables({dark:je},f):{},ht=lt(_r)?this._toVariables({semantic:_r},f):{},wr=lt(he)?this._toVariables({light:he},f):{},Zt=lt(ee)?this._toVariables({dark:ee},f):{},[nt,yi]=[(o=Ye.declarations)!=null?o:"",Ye.tokens],[Fn,Na]=[(s=Fe.declarations)!=null?s:"",Fe.tokens||[]],[Dc,SA]=[(a=Rt.declarations)!=null?a:"",Rt.tokens||[]],[IA,DA]=[(l=Sn.declarations)!=null?l:"",Sn.tokens||[]],[kA,MA]=[(c=ht.declarations)!=null?c:"",ht.tokens||[]],[OA,RA]=[(d=wr.declarations)!=null?d:"",wr.tokens||[]],[PA,AA]=[(u=Zt.declarations)!=null?u:"",Zt.tokens||[]];y=this.transformCSS(t,nt,"light","variable",f,r,i),b=yi;let NA=this.transformCSS(t,`${Fn}${Dc}`,"light","variable",f,r,i),FA=this.transformCSS(t,`${IA}`,"dark","variable",f,r,i);v=`${NA}${FA}`,w=[...new Set([...Na,...SA,...DA])];let LA=this.transformCSS(t,`${kA}${OA}color-scheme:light`,"light","variable",f,r,i),BA=this.transformCSS(t,`${PA}color-scheme:dark`,"dark","variable",f,r,i);D=`${LA}${BA}`,P=[...new Set([...MA,...RA,...AA])],B=Cn(p.css,{dt:Co})}return{primitive:{css:y,tokens:b},semantic:{css:v,tokens:w},global:{css:D,tokens:P},style:B}},getPreset({name:t="",preset:n={},options:e,params:r,set:i,defaults:o,selector:s}){var a,l,c;let d,u,p;if(lt(n)&&e.transform!=="strict"){let f=t.replace("-directive",""),y=n,{colorScheme:b,extend:v,css:w}=y,D=wo(y,["colorScheme","extend","css"]),P=v||{},{colorScheme:B}=P,Y=wo(P,["colorScheme"]),ye=b||{},{dark:Xe}=ye,tt=wo(ye,["dark"]),vt=B||{},{dark:tn}=vt,gi=wo(vt,["dark"]),zn=lt(D)?this._toVariables({[f]:ci(ci({},D),Y)},e):{},_r=lt(tt)?this._toVariables({[f]:ci(ci({},tt),gi)},e):{},Fo=lt(Xe)?this._toVariables({[f]:ci(ci({},Xe),tn)},e):{},[je,Z]=[(a=zn.declarations)!=null?a:"",zn.tokens||[]],[K,ee]=[(l=_r.declarations)!=null?l:"",_r.tokens||[]],[he,Ye]=[(c=Fo.declarations)!=null?c:"",Fo.tokens||[]],Fe=this.transformCSS(f,`${je}${K}`,"light","variable",e,i,o,s),Rt=this.transformCSS(f,he,"dark","variable",e,i,o,s);d=`${Fe}${Rt}`,u=[...new Set([...Z,...ee,...Ye])],p=Cn(w,{dt:Co})}return{css:d,tokens:u,style:p}},getPresetC({name:t="",theme:n={},params:e,set:r,defaults:i}){var o;let{preset:s,options:a}=n,l=(o=s?.components)==null?void 0:o[t];return this.getPreset({name:t,preset:l,options:a,params:e,set:r,defaults:i})},getPresetD({name:t="",theme:n={},params:e,set:r,defaults:i}){var o,s;let a=t.replace("-directive",""),{preset:l,options:c}=n,d=((o=l?.components)==null?void 0:o[a])||((s=l?.directives)==null?void 0:s[a]);return this.getPreset({name:a,preset:d,options:c,params:e,set:r,defaults:i})},applyDarkColorScheme(t){return!(t.darkModeSelector==="none"||t.darkModeSelector===!1)},getColorSchemeOption(t,n){var e;return this.applyDarkColorScheme(t)?this.regex.resolve(t.darkModeSelector===!0?n.options.darkModeSelector:(e=t.darkModeSelector)!=null?e:n.options.darkModeSelector):[]},getLayerOrder(t,n={},e,r){let{cssLayer:i}=n;return i?`@layer ${Cn(i.order||i.name||"primeui",e)}`:""},getCommonStyleSheet({name:t="",theme:n={},params:e,props:r={},set:i,defaults:o}){let s=this.getCommon({name:t,theme:n,params:e,set:i,defaults:o}),a=Object.entries(r).reduce((l,[c,d])=>l.push(`${c}="${d}"`)&&l,[]).join(" ");return Object.entries(s||{}).reduce((l,[c,d])=>{if(si(d)&&Object.hasOwn(d,"css")){let u=ca(d.css),p=`${c}-variables`;l.push(`<style type="text/css" data-primevue-style-id="${p}" ${a}>${u}</style>`)}return l},[]).join("")},getStyleSheet({name:t="",theme:n={},params:e,props:r={},set:i,defaults:o}){var s;let a={name:t,theme:n,params:e,set:i,defaults:o},l=(s=t.includes("-directive")?this.getPresetD(a):this.getPresetC(a))==null?void 0:s.css,c=Object.entries(r).reduce((d,[u,p])=>d.push(`${u}="${p}"`)&&d,[]).join(" ");return l?`<style type="text/css" data-primevue-style-id="${t}-variables" ${c}>${ca(l)}</style>`:""},createTokens(t={},n,e="",r="",i={}){let o=function(a,l={},c=[]){if(c.includes(this.path))return console.warn(`Circular reference detected at ${this.path}`),{colorScheme:a,path:this.path,paths:l,value:void 0};c.push(this.path),l.name=this.path,l.binding||(l.binding={});let d=this.value;if(typeof this.value=="string"&&ru.test(this.value)){let u=this.value.trim().replace(ru,p=>{var f;let y=p.slice(1,-1),b=this.tokens[y];if(!b)return console.warn(`Token not found for path: ${y}`),"__UNRESOLVED__";let v=b.computed(a,l,c);return Array.isArray(v)&&v.length===2?`light-dark(${v[0].value},${v[1].value})`:(f=v?.value)!=null?f:"__UNRESOLVED__"});d=Mk.test(u.replace(Ok,"0"))?`calc(${u})`:u}return Hi(l.binding)&&delete l.binding,c.pop(),{colorScheme:a,path:this.path,paths:l,value:d.includes("__UNRESOLVED__")?void 0:d}},s=(a,l,c)=>{Object.entries(a).forEach(([d,u])=>{let p=ai(d,n.variable.excludedKeyRegex)?l:l?`${l}.${Sk(d)}`:Sk(d),f=c?`${c}.${d}`:d;si(u)?s(u,p,f):(i[p]||(i[p]={paths:[],computed:(y,b={},v=[])=>{if(i[p].paths.length===1)return i[p].paths[0].computed(i[p].paths[0].scheme,b.binding,v);if(y&&y!=="none")for(let w=0;w<i[p].paths.length;w++){let D=i[p].paths[w];if(D.scheme===y)return D.computed(y,b.binding,v)}return i[p].paths.map(w=>w.computed(w.scheme,b[w.scheme],v))}}),i[p].paths.push({path:f,value:u,scheme:f.includes("colorScheme.light")?"light":f.includes("colorScheme.dark")?"dark":"none",computed:o,tokens:i}))})};return s(t,e,r),i},getTokenValue(t,n,e){var r;let i=(a=>a.split(".").filter(l=>!ai(l.toLowerCase(),e.variable.excludedKeyRegex)).join("."))(n),o=n.includes("colorScheme.light")?"light":n.includes("colorScheme.dark")?"dark":void 0,s=[(r=t[i])==null?void 0:r.computed(o)].flat().filter(a=>a);return s.length===1?s[0].value:s.reduce((a={},l)=>{let c=l,{colorScheme:d}=c,u=wo(c,["colorScheme"]);return a[d]=u,a},void 0)},getSelectorRule(t,n,e,r){return e==="class"||e==="attr"?$l(lt(n)?`${t}${n},${t} ${n}`:t,r):$l(t,$l(n??":root,:host",r))},transformCSS(t,n,e,r,i={},o,s,a){if(lt(n)){let{cssLayer:l}=i;if(r!=="style"){let c=this.getColorSchemeOption(i,s);n=e==="dark"?c.reduce((d,{type:u,selector:p})=>(lt(p)&&(d+=p.includes("[CSS]")?p.replace("[CSS]",n):this.getSelectorRule(p,a,u,n)),d),""):$l(a??":root,:host",n)}if(l){let c={name:"primeui",order:"primeui"};si(l)&&(c.name=Cn(l.name,{name:t,type:r})),lt(c.name)&&(n=$l(`@layer ${c.name}`,n),o?.layerNames(c.name))}return n}return""}},Mt={defaults:{variable:{prefix:"p",selector:":root,:host",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){let{theme:n}=t;n&&(this._theme=Gv(ci({},n),{options:ci(ci({},this.defaults.options),n.options)}),this._tokens=li.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var t;return((t=this.theme)==null?void 0:t.preset)||{}},get options(){var t;return((t=this.theme)==null?void 0:t.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(t){this.update({theme:t}),mn.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=Gv(ci({},this.theme),{preset:t}),this._tokens=li.createTokens(t,this.defaults),this.clearLoadedStyleNames(),mn.emit("preset:change",t),mn.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=Gv(ci({},this.theme),{options:t}),this.clearLoadedStyleNames(),mn.emit("options:change",t),mn.emit("theme:change",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(t){this._layerNames.add(t)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(t){return this._loadedStyleNames.has(t)},setLoadedStyleName(t){this._loadedStyleNames.add(t)},deleteLoadedStyleName(t){this._loadedStyleNames.delete(t)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(t){return li.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",n){return li.getCommon({name:t,theme:this.theme,params:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(t="",n){let e={name:t,theme:this.theme,params:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return li.getPresetC(e)},getDirective(t="",n){let e={name:t,theme:this.theme,params:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return li.getPresetD(e)},getCustomPreset(t="",n,e,r){let i={name:t,preset:n,options:this.options,selector:e,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return li.getPreset(i)},getLayerOrderCSS(t=""){return li.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",n,e="style",r){return li.transformCSS(t,n,r,e,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",n,e={}){return li.getCommonStyleSheet({name:t,theme:this.theme,params:n,props:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,n,e={}){return li.getStyleSheet({name:t,theme:this.theme,params:n,props:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(t){this._loadingStyles.add(t)},onStyleUpdated(t){this._loadingStyles.add(t)},onStyleLoaded(t,{name:n}){this._loadingStyles.size&&(this._loadingStyles.delete(n),mn.emit(`theme:${n}:load`,t),!this._loadingStyles.size&&mn.emit("theme:load"))}};var Nk=`
*,
::before,
::after {
box-sizing: border-box;
}
/* Non vue overlay animations */
.p-connected-overlay {
opacity: 0;
transform: scaleY(0.8);
transition:
transform 0.12s cubic-bezier(0, 0, 0.2, 1),
opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
}
.p-connected-overlay-visible {
opacity: 1;
transform: scaleY(1);
}
.p-connected-overlay-hidden {
opacity: 0;
transform: scaleY(1);
transition: opacity 0.1s linear;
}
/* Vue based overlay animations */
.p-connected-overlay-enter-from {
opacity: 0;
transform: scaleY(0.8);
}
.p-connected-overlay-leave-to {
opacity: 0;
}
.p-connected-overlay-enter-active {
transition:
transform 0.12s cubic-bezier(0, 0, 0.2, 1),
opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
}
.p-connected-overlay-leave-active {
transition: opacity 0.1s linear;
}
/* Toggleable Content */
.p-toggleable-content-enter-from,
.p-toggleable-content-leave-to {
max-height: 0;
}
.p-toggleable-content-enter-to,
.p-toggleable-content-leave-from {
max-height: 1000px;
}
.p-toggleable-content-leave-active {
overflow: hidden;
transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);
}
.p-toggleable-content-enter-active {
overflow: hidden;
transition: max-height 1s ease-in-out;
}
.p-disabled,
.p-disabled * {
cursor: default;
pointer-events: none;
user-select: none;
}
.p-disabled,
.p-component:disabled {
opacity: dt('disabled.opacity');
}
.pi {
font-size: dt('icon.size');
}
.p-icon {
width: dt('icon.size');
height: dt('icon.size');
}
.p-overlay-mask {
background: dt('mask.background');
color: dt('mask.color');
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.p-overlay-mask-enter {
animation: p-overlay-mask-enter-animation dt('mask.transition.duration') forwards;
}
.p-overlay-mask-leave {
animation: p-overlay-mask-leave-animation dt('mask.transition.duration') forwards;
}
@keyframes p-overlay-mask-enter-animation {
from {
background: transparent;
}
to {
background: dt('mask.background');
}
}
@keyframes p-overlay-mask-leave-animation {
from {
background: dt('mask.background');
}
to {
background: transparent;
}
}
`;var S6=0,Fk=(()=>{class t{document=x(bt);use(e,r={}){let i=!1,o=e,s=null,{immediate:a=!0,manual:l=!1,name:c=`style_${++S6}`,id:d=void 0,media:u=void 0,nonce:p=void 0,first:f=!1,props:y={}}=r;if(this.document){if(s=this.document.querySelector(`style[data-primeng-style-id="${c}"]`)||d&&this.document.getElementById(d)||this.document.createElement("style"),s){if(!s.isConnected){o=e;let b=this.document.head;tu(s,"nonce",p),f&&b.firstChild?b.insertBefore(s,b.firstChild):b.appendChild(s),Hh(s,{type:"text/css",media:u,nonce:p,"data-primeng-style-id":c})}s.textContent!==o&&(s.textContent=o)}return{id:d,name:c,el:s,css:o}}}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Wl={_loadedStyleNames:new Set,getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(t){return this._loadedStyleNames.has(t)},setLoadedStyleName(t){this._loadedStyleNames.add(t)},deleteLoadedStyleName(t){this._loadedStyleNames.delete(t)},clearLoadedStyleNames(){this._loadedStyleNames.clear()}},I6=`
.p-hidden-accessible {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
.p-hidden-accessible input,
.p-hidden-accessible select {
transform: scale(0);
}
.p-overflow-hidden {
overflow: hidden;
padding-right: dt('scrollbar.width');
}
`,Oe=(()=>{class t{name="base";useStyle=x(Fk);css=void 0;style=void 0;classes={};inlineStyles={};load=(e,r={},i=o=>o)=>{let o=i(Ul`${Cn(e,{dt:Co})}`);return o?this.useStyle.use(ca(o),_({name:this.name},r)):{}};loadCSS=(e={})=>this.load(this.css,e);loadStyle=(e={},r="")=>this.load(this.style,e,(i="")=>Mt.transformCSS(e.name||this.name,`${i}${Ul`${r}`}`));loadBaseCSS=(e={})=>this.load(I6,e);loadBaseStyle=(e={},r="")=>this.load(Nk,e,(i="")=>Mt.transformCSS(e.name||this.name,`${i}${Ul`${r}`}`));getCommonTheme=e=>Mt.getCommon(this.name,e);getComponentTheme=e=>Mt.getComponent(this.name,e);getPresetTheme=(e,r,i)=>Mt.getCustomPreset(this.name,e,r,i);getLayerOrderThemeCSS=()=>Mt.getLayerOrderCSS(this.name);getStyleSheet=(e="",r={})=>{if(this.css){let i=Cn(this.css,{dt:Co}),o=ca(Ul`${i}${e}`),s=Object.entries(r).reduce((a,[l,c])=>a.push(`${l}="${c}"`)&&a,[]).join(" ");return`<style type="text/css" data-primeng-style-id="${this.name}" ${s}>${o}</style>`}return""};getCommonThemeStyleSheet=(e,r={})=>Mt.getCommonStyleSheet(this.name,e,r);getThemeStyleSheet=(e,r={})=>{let i=[Mt.getStyleSheet(this.name,e,r)];if(this.style){let o=this.name==="base"?"global-style":`${this.name}-style`,s=Ul`${Cn(this.style,{dt:Co})}`,a=ca(Mt.transformCSS(o,s)),l=Object.entries(r).reduce((c,[d,u])=>c.push(`${d}="${u}"`)&&c,[]).join(" ");i.push(`<style type="text/css" data-primeng-style-id="${o}" ${l}>${a}</style>`)}return i.join("")};static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var D6=(()=>{class t{theme=ge(void 0);csp=ge({nonce:void 0});isThemeChanged=!1;document=x(bt);baseStyle=x(Oe);constructor(){Lt(()=>{mn.on("theme:change",e=>{fn(()=>{this.isThemeChanged=!0,this.theme.set(e)})})}),Lt(()=>{let e=this.theme();this.document&&e&&(this.isThemeChanged||this.onThemeChange(e),this.isThemeChanged=!1)})}ngOnDestroy(){Mt.clearLoadedStyleNames(),mn.clear()}onThemeChange(e){Mt.setTheme(e),this.document&&this.loadCommonTheme()}loadCommonTheme(){if(this.theme()!=="none"&&!Mt.isStyleNameLoaded("common")){let{primitive:e,semantic:r,global:i,style:o}=this.baseStyle.getCommonTheme?.()||{},s={nonce:this.csp?.()?.nonce};this.baseStyle.load(e?.css,_({name:"primitive-variables"},s)),this.baseStyle.load(r?.css,_({name:"semantic-variables"},s)),this.baseStyle.load(i?.css,_({name:"global-variables"},s)),this.baseStyle.loadBaseStyle(_({name:"global-style"},s),o),Mt.setLoadedStyleName("common")}}setThemeConfig(e){let{theme:r,csp:i}=e||{};r&&this.theme.set(r),i&&this.csp.set(i)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Yv=(()=>{class t extends D6{ripple=ge(!1);platformId=x(Yr);inputStyle=ge(null);inputVariant=ge(null);overlayAppendTo=ge("self");overlayOptions={};csp=ge({nonce:void 0});unstyled=ge(void 0);pt=ge(void 0);ptOptions=ge(void 0);filterMatchModeOptions={text:[hn.STARTS_WITH,hn.CONTAINS,hn.NOT_CONTAINS,hn.ENDS_WITH,hn.EQUALS,hn.NOT_EQUALS],numeric:[hn.EQUALS,hn.NOT_EQUALS,hn.LESS_THAN,hn.LESS_THAN_OR_EQUAL_TO,hn.GREATER_THAN,hn.GREATER_THAN_OR_EQUAL_TO],date:[hn.DATE_IS,hn.DATE_IS_NOT,hn.DATE_BEFORE,hn.DATE_AFTER]};translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",completed:"Completed",upload:"Upload",cancel:"Cancel",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",searchMessage:"Search results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyFilterMessage:"No results found",fileChosenMessage:"Files",noFileChosenMessage:"No file chosen",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"{page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",previousPageLabel:"Previous Page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left",listLabel:"Option List",selectColor:"Select a color",removeLabel:"Remove",browseFiles:"Browse Files",maximizeLabel:"Maximize",minimizeLabel:"Minimize"}};zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100};translationSource=new qe;translationObserver=this.translationSource.asObservable();getTranslation(e){return this.translation[e]}setTranslation(e){this.translation=_(_({},this.translation),e),this.translationSource.next(this.translation)}setConfig(e){let{csp:r,ripple:i,inputStyle:o,inputVariant:s,theme:a,overlayOptions:l,translation:c,filterMatchModeOptions:d,overlayAppendTo:u,zIndex:p,ptOptions:f,pt:y,unstyled:b}=e||{};r&&this.csp.set(r),u&&this.overlayAppendTo.set(u),i&&this.ripple.set(i),o&&this.inputStyle.set(o),s&&this.inputVariant.set(s),l&&(this.overlayOptions=l),c&&this.setTranslation(c),d&&(this.filterMatchModeOptions=d),p&&(this.zIndex=p),y&&this.pt.set(y),f&&this.ptOptions.set(f),b&&this.unstyled.set(b),a&&this.setThemeConfig({theme:a,csp:r})}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),k6=new H("PRIME_NG_CONFIG");function Lk(...t){let n=t?.map(r=>({provide:k6,useValue:r,multi:!1})),e=vl(()=>{let r=x(Yv);t?.forEach(i=>r.setConfig(i))});return Tr([...n,e])}var Bk=(()=>{class t extends Oe{name="common";static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ke=new H("PARENT_INSTANCE"),ut=(()=>{class t{document=x(bt);platformId=x(Yr);el=x(un);injector=x(Bt);cd=x(ns);renderer=x(Jr);config=x(Yv);$parentInstance=x(Ke,{optional:!0,skipSelf:!0})??void 0;baseComponentStyle=x(Bk);baseStyle=x(Oe);scopedStyleEl;parent=this.$params.parent;cn=ss;_themeScopedListener;dt=ae();unstyled=ae();pt=ae();ptOptions=ae();$attrSelector=gt("pc");get $name(){return this.componentName||this.constructor?.name?.replace(/^_/,"")||"UnknownComponent"}get $hostName(){return this.hostName}$unstyled=We(()=>this.unstyled()!==void 0?this.unstyled():this.config?.unstyled()||!1);$pt=We(()=>Cn(this.pt()||this.directivePT(),this.$params));directivePT=ge(void 0);get $globalPT(){return this._getPT(this.config?.pt(),void 0,e=>Cn(e,this.$params))}get $defaultPT(){return this._getPT(this.config?.pt(),void 0,e=>this._getOptionValue(e,this.$hostName||this.$name,this.$params)||Cn(e,this.$params))}get $style(){return _(_({theme:void 0,css:void 0,classes:void 0,inlineStyles:void 0},(this._getHostInstance(this)||{}).$style),this._componentStyle)}get $styleOptions(){return{nonce:this.config?.csp().nonce}}get $params(){let e=this._getHostInstance(this)||this.$parentInstance;return{instance:this,parent:{instance:e}}}onInit(){}onChanges(e){}onDoCheck(){}onAfterContentInit(){}onAfterContentChecked(){}onAfterViewInit(){}onAfterViewChecked(){}onDestroy(){}constructor(){Lt(e=>{this.document&&!Xb(this.platformId)&&(mn.off("theme:change",this._themeScopedListener),this.dt()?(this._loadScopedThemeStyles(this.dt()),this._themeScopedListener=()=>this._loadScopedThemeStyles(this.dt()),this._themeChangeListener(this._themeScopedListener)):this._unloadScopedThemeStyles()),e(()=>{mn.off("theme:change",this._themeScopedListener)})}),Lt(e=>{this.document&&!Xb(this.platformId)&&(mn.off("theme:change",this._loadCoreStyles),this.$unstyled()||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))),e(()=>{mn.off("theme:change",this._loadCoreStyles)})}),this._hook("onBeforeInit")}ngOnInit(){this._loadCoreStyles(),this._loadStyles(),this.onInit(),this._hook("onInit")}ngOnChanges(e){this.onChanges(e),this._hook("onChanges",e)}ngDoCheck(){this.onDoCheck(),this._hook("onDoCheck")}ngAfterContentInit(){this.onAfterContentInit(),this._hook("onAfterContentInit")}ngAfterContentChecked(){this.onAfterContentChecked(),this._hook("onAfterContentChecked")}ngAfterViewInit(){this.el?.nativeElement?.setAttribute(this.$attrSelector,""),this.onAfterViewInit(),this._hook("onAfterViewInit")}ngAfterViewChecked(){this.onAfterViewChecked(),this._hook("onAfterViewChecked")}ngOnDestroy(){this._removeThemeListeners(),this._unloadScopedThemeStyles(),this.onDestroy(),this._hook("onDestroy")}_mergeProps(e,...r){return $h(e)?e(...r):jv(...r)}_getHostInstance(e){return e?this.$hostName?this.$name===this.$hostName?e:this._getHostInstance(e.$parentInstance):e.$parentInstance:void 0}_getPropValue(e){return this[e]||this._getHostInstance(this)?.[e]}_getOptionValue(e,r="",i={}){return Uh(e,r,i)}_hook(e,...r){if(!this.$hostName){let i=this._usePT(this._getPT(this.$pt(),this.$name),this._getOptionValue,`hooks.${e}`),o=this._useDefaultPT(this._getOptionValue,`hooks.${e}`);i?.(...r),o?.(...r)}}_load(){Wl.isStyleNameLoaded("base")||(this.baseStyle.loadBaseCSS(this.$styleOptions),this._loadGlobalStyles(),Wl.setLoadedStyleName("base")),this._loadThemeStyles()}_loadStyles(){this._load(),this._themeChangeListener(()=>this._load())}_loadGlobalStyles(){let e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);lt(e)&&this.baseStyle.load(e,_({name:"global"},this.$styleOptions))}_loadCoreStyles(){!Wl.isStyleNameLoaded(this.$style?.name)&&this.$style?.name&&(this.baseComponentStyle.loadCSS(this.$styleOptions),this.$style.loadCSS(this.$styleOptions),Wl.setLoadedStyleName(this.$style.name))}_loadThemeStyles(){if(!(this.$unstyled()||this.config?.theme()==="none")){if(!Mt.isStyleNameLoaded("common")){let{primitive:e,semantic:r,global:i,style:o}=this.$style?.getCommonTheme?.()||{};this.baseStyle.load(e?.css,_({name:"primitive-variables"},this.$styleOptions)),this.baseStyle.load(r?.css,_({name:"semantic-variables"},this.$styleOptions)),this.baseStyle.load(i?.css,_({name:"global-variables"},this.$styleOptions)),this.baseStyle.loadBaseStyle(_({name:"global-style"},this.$styleOptions),o),Mt.setLoadedStyleName("common")}if(!Mt.isStyleNameLoaded(this.$style?.name)&&this.$style?.name){let{css:e,style:r}=this.$style?.getComponentTheme?.()||{};this.$style?.load(e,_({name:`${this.$style?.name}-variables`},this.$styleOptions)),this.$style?.loadStyle(_({name:`${this.$style?.name}-style`},this.$styleOptions),r),Mt.setLoadedStyleName(this.$style?.name)}if(!Mt.isStyleNameLoaded("layer-order")){let e=this.$style?.getLayerOrderThemeCSS?.();this.baseStyle.load(e,_({name:"layer-order",first:!0},this.$styleOptions)),Mt.setLoadedStyleName("layer-order")}}}_loadScopedThemeStyles(e){let{css:r}=this.$style?.getPresetTheme?.(e,`[${this.$attrSelector}]`)||{},i=this.$style?.load(r,_({name:`${this.$attrSelector}-${this.$style?.name}`},this.$styleOptions));this.scopedStyleEl=i?.el}_unloadScopedThemeStyles(){this.scopedStyleEl?.remove()}_themeChangeListener(e=()=>{}){Wl.clearLoadedStyleNames(),mn.on("theme:change",e.bind(this))}_removeThemeListeners(){mn.off("theme:change",this._loadCoreStyles),mn.off("theme:change",this._load),mn.off("theme:change",this._themeScopedListener)}_getPTValue(e={},r="",i={},o=!0){let s=/./g.test(r)&&!!i[r.split(".")[0]],{mergeSections:a=!0,mergeProps:l=!1}=this._getPropValue("ptOptions")?.()||this.config?.ptOptions?.()||{},c=o?s?this._useGlobalPT(this._getPTClassValue,r,i):this._useDefaultPT(this._getPTClassValue,r,i):void 0,d=s?void 0:this._usePT(this._getPT(e,this.$hostName||this.$name),this._getPTClassValue,r,A(_({},i),{global:c||{}})),u=this._getPTDatasets(r);return a||!a&&d?l?this._mergeProps(l,c,d,u):_(_(_({},c),d),u):_(_({},d),u)}_getPTDatasets(e=""){let r="data-pc-",i=e==="root"&&lt(this.$pt()?.["data-pc-section"]);return e!=="transition"&&A(_({},e==="root"&&A(_({[`${r}name`]:as(i?this.$pt()?.["data-pc-section"]:this.$name)},i&&{[`${r}extend`]:as(this.$name)}),{[`${this.$attrSelector}`]:""})),{[`${r}section`]:as(e.includes(".")?e.split(".").at(-1)??"":e)})}_getPTClassValue(e,r,i){let o=this._getOptionValue(e,r,i);return Fr(o)||Uv(o)?{class:o}:o}_getPT(e,r="",i){let o=(s,a=!1)=>{let l=i?i(s):s,c=as(r),d=as(this.$hostName||this.$name);return(a?c!==d?l?.[c]:void 0:l?.[c])??l};return e?.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:o(e.originalValue),value:o(e.value)}:o(e,!0)}_usePT(e,r,i,o){let s=a=>r?.call(this,a,i,o);if(e?.hasOwnProperty("_usept")){let{mergeSections:a=!0,mergeProps:l=!1}=e._usept||this.config?.ptOptions()||{},c=s(e.originalValue),d=s(e.value);return c===void 0&&d===void 0?void 0:Fr(d)?d:Fr(c)?c:a||!a&&d?l?this._mergeProps(l,c,d):_(_({},c),d):d}return s(e)}_useGlobalPT(e,r,i){return this._usePT(this.$globalPT,e,r,i)}_useDefaultPT(e,r,i){return this._usePT(this.$defaultPT,e,r,i)}ptm(e="",r={}){return this._getPTValue(this.$pt(),e,_(_({},this.$params),r))}ptms(e,r={}){return e.reduce((i,o)=>(i=jv(i,this.ptm(o,r))||{},i),{})}ptmo(e={},r="",i={}){return this._getPTValue(e,r,_({instance:this},i),!1)}cx(e,r={}){return this.$unstyled()?void 0:ss(this._getOptionValue(this.$style.classes,e,_(_({},this.$params),r)))}sx(e="",r=!0,i={}){if(r){let o=this._getOptionValue(this.$style.inlineStyles,e,_(_({},this.$params),i)),s=this._getOptionValue(this.baseComponentStyle.inlineStyles,e,_(_({},this.$params),i));return _(_({},s),o)}}static \u0275fac=function(r){return new(r||t)};static \u0275dir=Ue({type:t,inputs:{dt:[1,"dt"],unstyled:[1,"unstyled"],pt:[1,"pt"],ptOptions:[1,"ptOptions"]},features:[xe([Bk,Oe]),Kr]})}return t})();var De=(()=>{class t{static zindex=1e3;static calculatedScrollbarWidth=null;static calculatedScrollbarHeight=null;static browser;static addClass(e,r){e&&r&&(e.classList?e.classList.add(r):e.className+=" "+r)}static addMultipleClasses(e,r){if(e&&r)if(e.classList){let i=r.trim().split(" ");for(let o=0;o<i.length;o++)e.classList.add(i[o])}else{let i=r.split(" ");for(let o=0;o<i.length;o++)e.className+=" "+i[o]}}static removeClass(e,r){e&&r&&(e.classList?e.classList.remove(r):e.className=e.className.replace(new RegExp("(^|\\b)"+r.split(" ").join("|")+"(\\b|$)","gi")," "))}static removeMultipleClasses(e,r){e&&r&&[r].flat().filter(Boolean).forEach(i=>i.split(" ").forEach(o=>this.removeClass(e,o)))}static hasClass(e,r){return e&&r?e.classList?e.classList.contains(r):new RegExp("(^| )"+r+"( |$)","gi").test(e.className):!1}static siblings(e){return Array.prototype.filter.call(e.parentNode.children,function(r){return r!==e})}static find(e,r){return Array.from(e.querySelectorAll(r))}static findSingle(e,r){return this.isElement(e)?e.querySelector(r):null}static index(e){let r=e.parentNode.childNodes,i=0;for(var o=0;o<r.length;o++){if(r[o]==e)return i;r[o].nodeType==1&&i++}return-1}static indexWithinGroup(e,r){let i=e.parentNode?e.parentNode.childNodes:[],o=0;for(var s=0;s<i.length;s++){if(i[s]==e)return o;i[s].attributes&&i[s].attributes[r]&&i[s].nodeType==1&&o++}return-1}static appendOverlay(e,r,i="self"){i!=="self"&&e&&r&&this.appendChild(e,r)}static alignOverlay(e,r,i="self",o=!0){e&&r&&(o&&(e.style.minWidth=`${t.getOuterWidth(r)}px`),i==="self"?this.relativePosition(e,r):this.absolutePosition(e,r))}static relativePosition(e,r,i=!0){let o=P=>{if(P)return getComputedStyle(P).getPropertyValue("position")==="relative"?P:o(P.parentElement)},s=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),a=r.offsetHeight,l=r.getBoundingClientRect(),c=this.getWindowScrollTop(),d=this.getWindowScrollLeft(),u=this.getViewport(),f=o(e)?.getBoundingClientRect()||{top:-1*c,left:-1*d},y,b,v="top";l.top+a+s.height>u.height?(y=l.top-f.top-s.height,v="bottom",l.top+y<0&&(y=-1*l.top)):(y=a+l.top-f.top,v="top");let w=l.left+s.width-u.width,D=l.left-f.left;if(s.width>u.width?b=(l.left-f.left)*-1:w>0?b=D-w:b=l.left-f.left,e.style.top=y+"px",e.style.left=b+"px",e.style.transformOrigin=v,i){let P=Yd(/-anchor-gutter$/)?.value;e.style.marginTop=v==="bottom"?`calc(${P??"2px"} * -1)`:P??""}}static absolutePosition(e,r,i=!0){let o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),s=o.height,a=o.width,l=r.offsetHeight,c=r.offsetWidth,d=r.getBoundingClientRect(),u=this.getWindowScrollTop(),p=this.getWindowScrollLeft(),f=this.getViewport(),y,b;d.top+l+s>f.height?(y=d.top+u-s,e.style.transformOrigin="bottom",y<0&&(y=u)):(y=l+d.top+u,e.style.transformOrigin="top"),d.left+a>f.width?b=Math.max(0,d.left+p+c-a):b=d.left+p,e.style.top=y+"px",e.style.left=b+"px",i&&(e.style.marginTop=origin==="bottom"?"calc(var(--p-anchor-gutter) * -1)":"calc(var(--p-anchor-gutter))")}static getParents(e,r=[]){return e.parentNode===null?r:this.getParents(e.parentNode,r.concat([e.parentNode]))}static getScrollableParents(e){let r=[];if(e){let i=this.getParents(e),o=/(auto|scroll)/,s=a=>{let l=window.getComputedStyle(a,null);return o.test(l.getPropertyValue("overflow"))||o.test(l.getPropertyValue("overflowX"))||o.test(l.getPropertyValue("overflowY"))};for(let a of i){let l=a.nodeType===1&&a.dataset.scrollselectors;if(l){let c=l.split(",");for(let d of c){let u=this.findSingle(a,d);u&&s(u)&&r.push(u)}}a.nodeType!==9&&s(a)&&r.push(a)}}return r}static getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let r=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",r}static getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let r=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",r}static getHiddenElementDimensions(e){let r={};return e.style.visibility="hidden",e.style.display="block",r.width=e.offsetWidth,r.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",r}static scrollInView(e,r){let i=getComputedStyle(e).getPropertyValue("borderTopWidth"),o=i?parseFloat(i):0,s=getComputedStyle(e).getPropertyValue("paddingTop"),a=s?parseFloat(s):0,l=e.getBoundingClientRect(),d=r.getBoundingClientRect().top+document.body.scrollTop-(l.top+document.body.scrollTop)-o-a,u=e.scrollTop,p=e.clientHeight,f=this.getOuterHeight(r);d<0?e.scrollTop=u+d:d+f>p&&(e.scrollTop=u+d-p+f)}static fadeIn(e,r){e.style.opacity=0;let i=+new Date,o=0,s=function(){o=+e.style.opacity.replace(",",".")+(new Date().getTime()-i)/r,e.style.opacity=o,i=+new Date,+o<1&&(window.requestAnimationFrame?window.requestAnimationFrame(s):setTimeout(s,16))};s()}static fadeOut(e,r){var i=1,o=50,s=r,a=o/s;let l=setInterval(()=>{i=i-a,i<=0&&(i=0,clearInterval(l)),e.style.opacity=i},o)}static getWindowScrollTop(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}static getWindowScrollLeft(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}static matches(e,r){var i=Element.prototype,o=i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector||function(s){return[].indexOf.call(document.querySelectorAll(s),this)!==-1};return o.call(e,r)}static getOuterWidth(e,r){let i=e.offsetWidth;if(r){let o=getComputedStyle(e);i+=parseFloat(o.marginLeft)+parseFloat(o.marginRight)}return i}static getHorizontalPadding(e){let r=getComputedStyle(e);return parseFloat(r.paddingLeft)+parseFloat(r.paddingRight)}static getHorizontalMargin(e){let r=getComputedStyle(e);return parseFloat(r.marginLeft)+parseFloat(r.marginRight)}static innerWidth(e){let r=e.offsetWidth,i=getComputedStyle(e);return r+=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),r}static width(e){let r=e.offsetWidth,i=getComputedStyle(e);return r-=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),r}static getInnerHeight(e){let r=e.offsetHeight,i=getComputedStyle(e);return r+=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom),r}static getOuterHeight(e,r){let i=e.offsetHeight;if(r){let o=getComputedStyle(e);i+=parseFloat(o.marginTop)+parseFloat(o.marginBottom)}return i}static getHeight(e){let r=e.offsetHeight,i=getComputedStyle(e);return r-=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)+parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),r}static getWidth(e){let r=e.offsetWidth,i=getComputedStyle(e);return r-=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)+parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth),r}static getViewport(){let e=window,r=document,i=r.documentElement,o=r.getElementsByTagName("body")[0],s=e.innerWidth||i.clientWidth||o.clientWidth,a=e.innerHeight||i.clientHeight||o.clientHeight;return{width:s,height:a}}static getOffset(e){var r=e.getBoundingClientRect();return{top:r.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:r.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(e,r){let i=e.parentNode;if(!i)throw"Can't replace element";return i.replaceChild(r,e)}static getUserAgent(){if(navigator&&this.isClient())return navigator.userAgent}static isIE(){var e=window.navigator.userAgent,r=e.indexOf("MSIE ");if(r>0)return!0;var i=e.indexOf("Trident/");if(i>0){var o=e.indexOf("rv:");return!0}var s=e.indexOf("Edge/");return s>0}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(e,r){if(this.isElement(r))r.appendChild(e);else if(r&&r.el&&r.el.nativeElement)r.el.nativeElement.appendChild(e);else throw"Cannot append "+r+" to "+e}static removeChild(e,r){if(this.isElement(r))r.removeChild(e);else if(r.el&&r.el.nativeElement)r.el.nativeElement.removeChild(e);else throw"Cannot remove "+e+" from "+r}static removeElement(e){"remove"in Element.prototype?e.remove():e.parentNode?.removeChild(e)}static isElement(e){return typeof HTMLElement=="object"?e instanceof HTMLElement:e&&typeof e=="object"&&e!==null&&e.nodeType===1&&typeof e.nodeName=="string"}static calculateScrollbarWidth(e){if(e){let r=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(r.borderLeftWidth)-parseFloat(r.borderRightWidth)}else{if(this.calculatedScrollbarWidth!==null)return this.calculatedScrollbarWidth;let r=document.createElement("div");r.className="p-scrollbar-measure",document.body.appendChild(r);let i=r.offsetWidth-r.clientWidth;return document.body.removeChild(r),this.calculatedScrollbarWidth=i,i}}static calculateScrollbarHeight(){if(this.calculatedScrollbarHeight!==null)return this.calculatedScrollbarHeight;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let r=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),this.calculatedScrollbarWidth=r,r}static invokeElementMethod(e,r,i){e[r].apply(e,i)}static clearSelection(){if(window.getSelection&&window.getSelection())window.getSelection()?.empty?window.getSelection()?.empty():window.getSelection()?.removeAllRanges&&(window.getSelection()?.rangeCount||0)>0&&(window.getSelection()?.getRangeAt(0)?.getClientRects()?.length||0)>0&&window.getSelection()?.removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let e=navigator.userAgent.toLowerCase(),r=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:r[1]||"",version:r[2]||"0"}}static isInteger(e){return Number.isInteger?Number.isInteger(e):typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}static isHidden(e){return!e||e.offsetParent===null}static isVisible(e){return e&&e.offsetParent!=null}static isExist(e){return e!==null&&typeof e<"u"&&e.nodeName&&e.parentNode}static focus(e,r){e&&document.activeElement!==e&&e.focus(r)}static getFocusableSelectorString(e=""){return`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
[href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
[tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
[contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
.p-inputtext:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
.p-button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e}`}static getFocusableElements(e,r=""){let i=this.find(e,this.getFocusableSelectorString(r)),o=[];for(let s of i){let a=getComputedStyle(s);this.isVisible(s)&&a.display!="none"&&a.visibility!="hidden"&&o.push(s)}return o}static getFocusableElement(e,r=""){let i=this.findSingle(e,this.getFocusableSelectorString(r));if(i){let o=getComputedStyle(i);if(this.isVisible(i)&&o.display!="none"&&o.visibility!="hidden")return i}return null}static getFirstFocusableElement(e,r=""){let i=this.getFocusableElements(e,r);return i.length>0?i[0]:null}static getLastFocusableElement(e,r){let i=this.getFocusableElements(e,r);return i.length>0?i[i.length-1]:null}static getNextFocusableElement(e,r=!1){let i=t.getFocusableElements(e),o=0;if(i&&i.length>0){let s=i.indexOf(i[0].ownerDocument.activeElement);r?s==-1||s===0?o=i.length-1:o=s-1:s!=-1&&s!==i.length-1&&(o=s+1)}return i[o]}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection()?.toString():document.getSelection?document.getSelection()?.toString():document.selection?document.selection.createRange().text:null}static getTargetElement(e,r){if(!e)return null;switch(e){case"document":return document;case"window":return window;case"@next":return r?.nextElementSibling;case"@prev":return r?.previousElementSibling;case"@parent":return r?.parentElement;case"@grandparent":return r?.parentElement?.parentElement;default:let i=typeof e;if(i==="string")return document.querySelector(e);if(i==="object"&&e.hasOwnProperty("nativeElement"))return this.isExist(e.nativeElement)?e.nativeElement:void 0;let s=(a=>!!(a&&a.constructor&&a.call&&a.apply))(e)?e():e;return s&&s.nodeType===9||this.isExist(s)?s:null}}static isClient(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}static getAttribute(e,r){if(e){let i=e.getAttribute(r);return isNaN(i)?i==="true"||i==="false"?i==="true":i:+i}}static calculateBodyScrollbarWidth(){return window.innerWidth-document.documentElement.offsetWidth}static blockBodyScroll(e="p-overflow-hidden"){document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,e)}static unblockBodyScroll(e="p-overflow-hidden"){document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,e)}static createElement(e,r={},...i){if(e){let o=document.createElement(e);return this.setAttributes(o,r),o.append(...i),o}}static setAttribute(e,r="",i){this.isElement(e)&&i!==null&&i!==void 0&&e.setAttribute(r,i)}static setAttributes(e,r={}){if(this.isElement(e)){let i=(o,s)=>{let a=e?.$attrs?.[o]?[e?.$attrs?.[o]]:[];return[s].flat().reduce((l,c)=>{if(c!=null){let d=typeof c;if(d==="string"||d==="number")l.push(c);else if(d==="object"){let u=Array.isArray(c)?i(o,c):Object.entries(c).map(([p,f])=>o==="style"&&(f||f===0)?`${p.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${f}`:f?p:void 0);l=u.length?l.concat(u.filter(p=>!!p)):l}}return l},a)};Object.entries(r).forEach(([o,s])=>{if(s!=null){let a=o.match(/^on(.+)/);a?e.addEventListener(a[1].toLowerCase(),s):o==="pBind"?this.setAttributes(e,s):(s=o==="class"?[...new Set(i("class",s))].join(" ").trim():o==="style"?i("style",s).join(";").trim():s,(e.$attrs=e.$attrs||{})&&(e.$attrs[o]=s),e.setAttribute(o,s))}})}}static isFocusableElement(e,r=""){return this.isElement(e)?e.matches(`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r},
[href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r},
input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r},
select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r},
textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r},
[tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r},
[contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}`):!1}}return t})();function Vk(){QD({variableName:Kv("scrollbar.width").name})}function Qh(){KD({variableName:Kv("scrollbar.width").name})}var xo=class{element;listener;scrollableParents;constructor(n,e=()=>{}){this.element=n,this.listener=e}bindScrollListener(){this.scrollableParents=De.getScrollableParents(this.element);for(let n=0;n<this.scrollableParents.length;n++)this.scrollableParents[n].addEventListener("scroll",this.listener)}unbindScrollListener(){if(this.scrollableParents)for(let n=0;n<this.scrollableParents.length;n++)this.scrollableParents[n].removeEventListener("scroll",this.listener)}destroy(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}};var $i=(()=>{class t extends ut{autofocus=!1;focused=!1;platformId=x(Yr);document=x(bt);host=x(un);onAfterContentChecked(){this.autofocus===!1?this.host.nativeElement.removeAttribute("autofocus"):this.host.nativeElement.setAttribute("autofocus",!0),this.focused||this.autoFocus()}onAfterViewChecked(){this.focused||this.autoFocus()}autoFocus(){kn(this.platformId)&&this.autofocus&&setTimeout(()=>{let e=De.getFocusableElements(this.host?.nativeElement);e.length===0&&this.host.nativeElement.focus(),e.length>0&&e[0].focus(),this.focused=!0})}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275dir=Ue({type:t,selectors:[["","pAutoFocus",""]],inputs:{autofocus:[0,"pAutoFocus","autofocus"]},features:[j]})}return t})();var te=(()=>{class t{el;renderer;pBind=ae(void 0);_attrs=ge(void 0);attrs=We(()=>this._attrs()||this.pBind());styles=We(()=>this.attrs()?.style);classes=We(()=>ss(this.attrs()?.class));listeners=[];constructor(e,r){this.el=e,this.renderer=r,Lt(()=>{let a=this.attrs()||{},{style:i,class:o}=a,s=Et(a,["style","class"]);for(let[l,c]of Object.entries(s))if(l.startsWith("on")&&typeof c=="function"){let d=l.slice(2).toLowerCase();if(!this.listeners.some(u=>u.eventName===d)){let u=this.renderer.listen(this.el.nativeElement,d,c);this.listeners.push({eventName:d,unlisten:u})}}else c==null?this.renderer.removeAttribute(this.el.nativeElement,l):(this.renderer.setAttribute(this.el.nativeElement,l,c.toString()),l in this.el.nativeElement&&(this.el.nativeElement[l]=c))})}ngOnDestroy(){this.clearListeners()}setAttrs(e){nr(this._attrs(),e)||this._attrs.set(e)}clearListeners(){this.listeners.forEach(({unlisten:e})=>e()),this.listeners=[]}static \u0275fac=function(r){return new(r||t)(de(un),de(Jr))};static \u0275dir=Ue({type:t,selectors:[["","pBind",""]],hostVars:4,hostBindings:function(r,i){r&2&&(Dn(i.styles()),k(i.classes()))},inputs:{pBind:[1,"pBind"]}})}return t})(),Wt=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({})}return t})();var jk=`
.p-badge {
display: inline-flex;
border-radius: dt('badge.border.radius');
align-items: center;
justify-content: center;
padding: dt('badge.padding');
background: dt('badge.primary.background');
color: dt('badge.primary.color');
font-size: dt('badge.font.size');
font-weight: dt('badge.font.weight');
min-width: dt('badge.min.width');
height: dt('badge.height');
}
.p-badge-dot {
width: dt('badge.dot.size');
min-width: dt('badge.dot.size');
height: dt('badge.dot.size');
border-radius: 50%;
padding: 0;
}
.p-badge-circle {
padding: 0;
border-radius: 50%;
}
.p-badge-secondary {
background: dt('badge.secondary.background');
color: dt('badge.secondary.color');
}
.p-badge-success {
background: dt('badge.success.background');
color: dt('badge.success.color');
}
.p-badge-info {
background: dt('badge.info.background');
color: dt('badge.info.color');
}
.p-badge-warn {
background: dt('badge.warn.background');
color: dt('badge.warn.color');
}
.p-badge-danger {
background: dt('badge.danger.background');
color: dt('badge.danger.color');
}
.p-badge-contrast {
background: dt('badge.contrast.background');
color: dt('badge.contrast.color');
}
.p-badge-sm {
font-size: dt('badge.sm.font.size');
min-width: dt('badge.sm.min.width');
height: dt('badge.sm.height');
}
.p-badge-lg {
font-size: dt('badge.lg.font.size');
min-width: dt('badge.lg.min.width');
height: dt('badge.lg.height');
}
.p-badge-xl {
font-size: dt('badge.xl.font.size');
min-width: dt('badge.xl.min.width');
height: dt('badge.xl.height');
}
`;var M6=`
${jk}
/* For PrimeNG (directive)*/
.p-overlay-badge {
position: relative;
}
.p-overlay-badge > .p-badge {
position: absolute;
top: 0;
inset-inline-end: 0;
transform: translate(50%, -50%);
transform-origin: 100% 0;
margin: 0;
}
`,O6={root:({instance:t})=>{let n=typeof t.value=="function"?t.value():t.value,e=typeof t.size=="function"?t.size():t.size,r=typeof t.badgeSize=="function"?t.badgeSize():t.badgeSize,i=typeof t.severity=="function"?t.severity():t.severity;return["p-badge p-component",{"p-badge-circle":lt(n)&&String(n).length===1,"p-badge-dot":Hi(n),"p-badge-sm":e==="small"||r==="small","p-badge-lg":e==="large"||r==="large","p-badge-xl":e==="xlarge"||r==="xlarge","p-badge-info":i==="info","p-badge-success":i==="success","p-badge-warn":i==="warn","p-badge-danger":i==="danger","p-badge-secondary":i==="secondary","p-badge-contrast":i==="contrast"}]}},zk=(()=>{class t extends Oe{name="badge";style=M6;classes=O6;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var Hk=new H("BADGE_INSTANCE");var Zv=(()=>{class t extends ut{$pcBadge=x(Hk,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=x(te,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}styleClass=ae();badgeSize=ae();size=ae();severity=ae();value=ae();badgeDisabled=ae(!1,{transform:R});_componentStyle=x(zk);static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["p-badge"]],hostVars:4,hostBindings:function(r,i){r&2&&(k(i.cn(i.cx("root"),i.styleClass())),er("display",i.badgeDisabled()?"none":null))},inputs:{styleClass:[1,"styleClass"],badgeSize:[1,"badgeSize"],size:[1,"size"],severity:[1,"severity"],value:[1,"value"],badgeDisabled:[1,"badgeDisabled"]},features:[xe([zk,{provide:Hk,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],decls:1,vars:1,template:function(r,i){r&1&&ce(0),r&2&&Ze(i.value())},dependencies:[Qe,Te,Wt],encapsulation:2,changeDetection:0})}return t})(),Kh=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({imports:[Zv,Te,Te]})}return t})();var P6=["*"],A6={root:"p-fluid"},$k=(()=>{class t extends Oe{name="fluid";classes=A6;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var Uk=new H("FLUID_INSTANCE"),Gl=(()=>{class t extends ut{$pcFluid=x(Uk,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=x(te,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}_componentStyle=x($k);static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["p-fluid"]],hostVars:2,hostBindings:function(r,i){r&2&&k(i.cx("root"))},features:[xe([$k,{provide:Uk,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],ngContentSelectors:P6,decls:1,vars:0,template:function(r,i){r&1&&(zt(),Ot(0))},dependencies:[Qe],encapsulation:2,changeDetection:0})}return t})();var N6=["*"],F6=`
.p-icon {
display: inline-block;
vertical-align: baseline;
flex-shrink: 0;
}
.p-icon-spin {
-webkit-animation: p-icon-spin 2s infinite linear;
animation: p-icon-spin 2s infinite linear;
}
@-webkit-keyframes p-icon-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
@keyframes p-icon-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
`,Wk=(()=>{class t extends Oe{name="baseicon";css=F6;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var we=(()=>{class t extends ut{spin=!1;_componentStyle=x(Wk);getClassNames(){return ss("p-icon",{"p-icon-spin":this.spin})}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["ng-component"]],hostAttrs:["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],hostVars:2,hostBindings:function(r,i){r&2&&k(i.getClassNames())},inputs:{spin:[2,"spin","spin",R]},features:[xe([Wk]),j],ngContentSelectors:N6,decls:1,vars:0,template:function(r,i){r&1&&(zt(),Ot(0))},encapsulation:2,changeDetection:0})}return t})();var L6=["data-p-icon","angle-double-left"],Gk=(()=>{class t extends we{static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","angle-double-left"]],features:[j],attrs:L6,decls:1,vars:0,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M5.71602 11.164C5.80782 11.2021 5.9063 11.2215 6.00569 11.221C6.20216 11.2301 6.39427 11.1612 6.54025 11.0294C6.68191 10.8875 6.76148 10.6953 6.76148 10.4948C6.76148 10.2943 6.68191 10.1021 6.54025 9.96024L3.51441 6.9344L6.54025 3.90855C6.624 3.76126 6.65587 3.59011 6.63076 3.42254C6.60564 3.25498 6.525 3.10069 6.40175 2.98442C6.2785 2.86815 6.11978 2.79662 5.95104 2.7813C5.78229 2.76598 5.61329 2.80776 5.47112 2.89994L1.97123 6.39983C1.82957 6.54167 1.75 6.73393 1.75 6.9344C1.75 7.13486 1.82957 7.32712 1.97123 7.46896L5.47112 10.9991C5.54096 11.0698 5.62422 11.1259 5.71602 11.164ZM11.0488 10.9689C11.1775 11.1156 11.3585 11.2061 11.5531 11.221C11.7477 11.2061 11.9288 11.1156 12.0574 10.9689C12.1815 10.8302 12.25 10.6506 12.25 10.4645C12.25 10.2785 12.1815 10.0989 12.0574 9.96024L9.03158 6.93439L12.0574 3.90855C12.1248 3.76739 12.1468 3.60881 12.1204 3.45463C12.0939 3.30045 12.0203 3.15826 11.9097 3.04765C11.7991 2.93703 11.6569 2.86343 11.5027 2.83698C11.3486 2.81053 11.19 2.83252 11.0488 2.89994L7.51865 6.36957C7.37699 6.51141 7.29742 6.70367 7.29742 6.90414C7.29742 7.1046 7.37699 7.29686 7.51865 7.4387L11.0488 10.9689Z","fill","currentColor"]],template:function(r,i){r&1&&(G(),ue(0,"path",0))},encapsulation:2})}return t})();var B6=["data-p-icon","angle-double-right"],qk=(()=>{class t extends we{static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","angle-double-right"]],features:[j],attrs:B6,decls:1,vars:0,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M7.68757 11.1451C7.7791 11.1831 7.8773 11.2024 7.9764 11.2019C8.07769 11.1985 8.17721 11.1745 8.26886 11.1312C8.36052 11.088 8.44238 11.0265 8.50943 10.9505L12.0294 7.49085C12.1707 7.34942 12.25 7.15771 12.25 6.95782C12.25 6.75794 12.1707 6.56622 12.0294 6.42479L8.50943 2.90479C8.37014 2.82159 8.20774 2.78551 8.04633 2.80192C7.88491 2.81833 7.73309 2.88635 7.6134 2.99588C7.4937 3.10541 7.41252 3.25061 7.38189 3.40994C7.35126 3.56927 7.37282 3.73423 7.44337 3.88033L10.4605 6.89748L7.44337 9.91463C7.30212 10.0561 7.22278 10.2478 7.22278 10.4477C7.22278 10.6475 7.30212 10.8393 7.44337 10.9807C7.51301 11.0512 7.59603 11.1071 7.68757 11.1451ZM1.94207 10.9505C2.07037 11.0968 2.25089 11.1871 2.44493 11.2019C2.63898 11.1871 2.81949 11.0968 2.94779 10.9505L6.46779 7.49085C6.60905 7.34942 6.68839 7.15771 6.68839 6.95782C6.68839 6.75793 6.60905 6.56622 6.46779 6.42479L2.94779 2.90479C2.80704 2.83757 2.6489 2.81563 2.49517 2.84201C2.34143 2.86839 2.19965 2.94178 2.08936 3.05207C1.97906 3.16237 1.90567 3.30415 1.8793 3.45788C1.85292 3.61162 1.87485 3.76975 1.94207 3.9105L4.95922 6.92765L1.94207 9.9448C1.81838 10.0831 1.75 10.2621 1.75 10.4477C1.75 10.6332 1.81838 10.8122 1.94207 10.9505Z","fill","currentColor"]],template:function(r,i){r&1&&(G(),ue(0,"path",0))},encapsulation:2})}return t})();var V6=["data-p-icon","angle-down"],Qk=(()=>{class t extends we{static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","angle-down"]],features:[j],attrs:V6,decls:1,vars:0,consts:[["d","M3.58659 4.5007C3.68513 4.50023 3.78277 4.51945 3.87379 4.55723C3.9648 4.59501 4.04735 4.65058 4.11659 4.7207L7.11659 7.7207L10.1166 4.7207C10.2619 4.65055 10.4259 4.62911 10.5843 4.65956C10.7427 4.69002 10.8871 4.77074 10.996 4.88976C11.1049 5.00877 11.1726 5.15973 11.1889 5.32022C11.2052 5.48072 11.1693 5.6422 11.0866 5.7807L7.58659 9.2807C7.44597 9.42115 7.25534 9.50004 7.05659 9.50004C6.85784 9.50004 6.66722 9.42115 6.52659 9.2807L3.02659 5.7807C2.88614 5.64007 2.80725 5.44945 2.80725 5.2507C2.80725 5.05195 2.88614 4.86132 3.02659 4.7207C3.09932 4.64685 3.18675 4.58911 3.28322 4.55121C3.37969 4.51331 3.48305 4.4961 3.58659 4.5007Z","fill","currentColor"]],template:function(r,i){r&1&&(G(),ue(0,"path",0))},encapsulation:2})}return t})();var j6=["data-p-icon","angle-left"],Kk=(()=>{class t extends we{static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","angle-left"]],features:[j],attrs:j6,decls:1,vars:0,consts:[["d","M8.75 11.185C8.65146 11.1854 8.55381 11.1662 8.4628 11.1284C8.37179 11.0906 8.28924 11.0351 8.22 10.965L4.72 7.46496C4.57955 7.32433 4.50066 7.13371 4.50066 6.93496C4.50066 6.73621 4.57955 6.54558 4.72 6.40496L8.22 2.93496C8.36095 2.84357 8.52851 2.80215 8.69582 2.81733C8.86312 2.83252 9.02048 2.90344 9.14268 3.01872C9.26487 3.134 9.34483 3.28696 9.36973 3.4531C9.39463 3.61924 9.36303 3.78892 9.28 3.93496L6.28 6.93496L9.28 9.93496C9.42045 10.0756 9.49934 10.2662 9.49934 10.465C9.49934 10.6637 9.42045 10.8543 9.28 10.995C9.13526 11.1257 8.9448 11.1939 8.75 11.185Z","fill","currentColor"]],template:function(r,i){r&1&&(G(),ue(0,"path",0))},encapsulation:2})}return t})();var z6=["data-p-icon","angle-right"],Yk=(()=>{class t extends we{static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","angle-right"]],features:[j],attrs:z6,decls:1,vars:0,consts:[["d","M5.25 11.1728C5.14929 11.1694 5.05033 11.1455 4.9592 11.1025C4.86806 11.0595 4.78666 10.9984 4.72 10.9228C4.57955 10.7822 4.50066 10.5916 4.50066 10.3928C4.50066 10.1941 4.57955 10.0035 4.72 9.86283L7.72 6.86283L4.72 3.86283C4.66067 3.71882 4.64765 3.55991 4.68275 3.40816C4.71785 3.25642 4.79932 3.11936 4.91585 3.01602C5.03238 2.91268 5.17819 2.84819 5.33305 2.83149C5.4879 2.81479 5.64411 2.84671 5.78 2.92283L9.28 6.42283C9.42045 6.56346 9.49934 6.75408 9.49934 6.95283C9.49934 7.15158 9.42045 7.34221 9.28 7.48283L5.78 10.9228C5.71333 10.9984 5.63193 11.0595 5.5408 11.1025C5.44966 11.1455 5.35071 11.1694 5.25 11.1728Z","fill","currentColor"]],template:function(r,i){r&1&&(G(),ue(0,"path",0))},encapsulation:2})}return t})();var H6=["data-p-icon","angle-up"],Zk=(()=>{class t extends we{static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","angle-up"]],features:[j],attrs:H6,decls:1,vars:0,consts:[["d","M10.4134 9.49931C10.3148 9.49977 10.2172 9.48055 10.1262 9.44278C10.0352 9.405 9.95263 9.34942 9.88338 9.27931L6.88338 6.27931L3.88338 9.27931C3.73811 9.34946 3.57409 9.3709 3.41567 9.34044C3.25724 9.30999 3.11286 9.22926 3.00395 9.11025C2.89504 8.99124 2.82741 8.84028 2.8111 8.67978C2.79478 8.51928 2.83065 8.35781 2.91338 8.21931L6.41338 4.71931C6.55401 4.57886 6.74463 4.49997 6.94338 4.49997C7.14213 4.49997 7.33276 4.57886 7.47338 4.71931L10.9734 8.21931C11.1138 8.35994 11.1927 8.55056 11.1927 8.74931C11.1927 8.94806 11.1138 9.13868 10.9734 9.27931C10.9007 9.35315 10.8132 9.41089 10.7168 9.44879C10.6203 9.48669 10.5169 9.5039 10.4134 9.49931Z","fill","currentColor"]],template:function(r,i){r&1&&(G(),ue(0,"path",0))},encapsulation:2})}return t})();var $6=["data-p-icon","arrow-down"],Jv=(()=>{class t extends we{pathId;onInit(){this.pathId="url(#"+gt()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","arrow-down"]],features:[j],attrs:$6,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M6.99994 14C6.91097 14.0004 6.82281 13.983 6.74064 13.9489C6.65843 13.9148 6.58387 13.8646 6.52133 13.8013L1.10198 8.38193C0.982318 8.25351 0.917175 8.08367 0.920272 7.90817C0.923368 7.73267 0.994462 7.56523 1.11858 7.44111C1.24269 7.317 1.41014 7.2459 1.58563 7.2428C1.76113 7.23971 1.93098 7.30485 2.0594 7.42451L6.32263 11.6877V0.677419C6.32263 0.497756 6.394 0.325452 6.52104 0.198411C6.64808 0.0713706 6.82039 0 7.00005 0C7.17971 0 7.35202 0.0713706 7.47906 0.198411C7.6061 0.325452 7.67747 0.497756 7.67747 0.677419V11.6877L11.9407 7.42451C12.0691 7.30485 12.2389 7.23971 12.4144 7.2428C12.5899 7.2459 12.7574 7.317 12.8815 7.44111C13.0056 7.56523 13.0767 7.73267 13.0798 7.90817C13.0829 8.08367 13.0178 8.25351 12.8981 8.38193L7.47875 13.8013C7.41621 13.8646 7.34164 13.9148 7.25944 13.9489C7.17727 13.983 7.08912 14.0004 7.00015 14C7.00012 14 7.00009 14 7.00005 14C7.00001 14 6.99998 14 6.99994 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(r,i){r&1&&(G(),ot(0,"g"),ue(1,"path",0),st(),ot(2,"defs")(3,"clipPath",1),ue(4,"rect",2),st()()),r&2&&(J("clip-path",i.pathId),g(3),Ft("id",i.pathId))},encapsulation:2})}return t})();var U6=["data-p-icon","arrow-up"],Xv=(()=>{class t extends we{pathId;onInit(){this.pathId="url(#"+gt()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","arrow-up"]],features:[j],attrs:U6,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M6.51551 13.799C6.64205 13.9255 6.813 13.9977 6.99193 14C7.17087 13.9977 7.34182 13.9255 7.46835 13.799C7.59489 13.6725 7.66701 13.5015 7.66935 13.3226V2.31233L11.9326 6.57554C11.9951 6.63887 12.0697 6.68907 12.1519 6.72319C12.2341 6.75731 12.3223 6.77467 12.4113 6.77425C12.5003 6.77467 12.5885 6.75731 12.6707 6.72319C12.7529 6.68907 12.8274 6.63887 12.89 6.57554C13.0168 6.44853 13.0881 6.27635 13.0881 6.09683C13.0881 5.91732 13.0168 5.74514 12.89 5.61812L7.48846 0.216594C7.48274 0.210436 7.4769 0.204374 7.47094 0.198411C7.3439 0.0713707 7.1716 0 6.99193 0C6.81227 0 6.63997 0.0713707 6.51293 0.198411C6.50704 0.204296 6.50128 0.210278 6.49563 0.216354L1.09386 5.61812C0.974201 5.74654 0.909057 5.91639 0.912154 6.09189C0.91525 6.26738 0.986345 6.43483 1.11046 6.55894C1.23457 6.68306 1.40202 6.75415 1.57752 6.75725C1.75302 6.76035 1.92286 6.6952 2.05128 6.57554L6.31451 2.31231V13.3226C6.31685 13.5015 6.38898 13.6725 6.51551 13.799Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(r,i){r&1&&(G(),ot(0,"g"),ue(1,"path",0),st(),ot(2,"defs")(3,"clipPath",1),ue(4,"rect",2),st()()),r&2&&(J("clip-path",i.pathId),g(3),Ft("id",i.pathId))},encapsulation:2})}return t})();var W6=["data-p-icon","blank"],Jk=(()=>{class t extends we{static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","blank"]],features:[j],attrs:W6,decls:1,vars:0,consts:[["width","1","height","1","fill","currentColor","fill-opacity","0"]],template:function(r,i){r&1&&(G(),ue(0,"rect",0))},encapsulation:2})}return t})();var G6=["data-p-icon","calendar"],Xk=(()=>{class t extends we{static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","calendar"]],features:[j],attrs:G6,decls:1,vars:0,consts:[["d","M10.7838 1.51351H9.83783V0.567568C9.83783 0.417039 9.77804 0.272676 9.6716 0.166237C9.56516 0.0597971 9.42079 0 9.27027 0C9.11974 0 8.97538 0.0597971 8.86894 0.166237C8.7625 0.272676 8.7027 0.417039 8.7027 0.567568V1.51351H5.29729V0.567568C5.29729 0.417039 5.2375 0.272676 5.13106 0.166237C5.02462 0.0597971 4.88025 0 4.72973 0C4.5792 0 4.43484 0.0597971 4.3284 0.166237C4.22196 0.272676 4.16216 0.417039 4.16216 0.567568V1.51351H3.21621C2.66428 1.51351 2.13494 1.73277 1.74467 2.12305C1.35439 2.51333 1.13513 3.04266 1.13513 3.59459V11.9189C1.13513 12.4709 1.35439 13.0002 1.74467 13.3905C2.13494 13.7807 2.66428 14 3.21621 14H10.7838C11.3357 14 11.865 13.7807 12.2553 13.3905C12.6456 13.0002 12.8649 12.4709 12.8649 11.9189V3.59459C12.8649 3.04266 12.6456 2.51333 12.2553 2.12305C11.865 1.73277 11.3357 1.51351 10.7838 1.51351ZM3.21621 2.64865H4.16216V3.59459C4.16216 3.74512 4.22196 3.88949 4.3284 3.99593C4.43484 4.10237 4.5792 4.16216 4.72973 4.16216C4.88025 4.16216 5.02462 4.10237 5.13106 3.99593C5.2375 3.88949 5.29729 3.74512 5.29729 3.59459V2.64865H8.7027V3.59459C8.7027 3.74512 8.7625 3.88949 8.86894 3.99593C8.97538 4.10237 9.11974 4.16216 9.27027 4.16216C9.42079 4.16216 9.56516 4.10237 9.6716 3.99593C9.77804 3.88949 9.83783 3.74512 9.83783 3.59459V2.64865H10.7838C11.0347 2.64865 11.2753 2.74831 11.4527 2.92571C11.6301 3.10311 11.7297 3.34371 11.7297 3.59459V5.67568H2.27027V3.59459C2.27027 3.34371 2.36993 3.10311 2.54733 2.92571C2.72473 2.74831 2.96533 2.64865 3.21621 2.64865ZM10.7838 12.8649H3.21621C2.96533 12.8649 2.72473 12.7652 2.54733 12.5878C2.36993 12.4104 2.27027 12.1698 2.27027 11.9189V6.81081H11.7297V11.9189C11.7297 12.1698 11.6301 12.4104 11.4527 12.5878C11.2753 12.7652 11.0347 12.8649 10.7838 12.8649Z","fill","currentColor"]],template:function(r,i){r&1&&(G(),ue(0,"path",0))},encapsulation:2})}return t})();var q6=["data-p-icon","check"],Yh=(()=>{class t extends we{static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","check"]],features:[j],attrs:q6,decls:1,vars:0,consts:[["d","M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z","fill","currentColor"]],template:function(r,i){r&1&&(G(),ue(0,"path",0))},encapsulation:2})}return t})();var Q6=["data-p-icon","chevron-down"],Zh=(()=>{class t extends we{static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","chevron-down"]],features:[j],attrs:Q6,decls:1,vars:0,consts:[["d","M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z","fill","currentColor"]],template:function(r,i){r&1&&(G(),ue(0,"path",0))},encapsulation:2})}return t})();var K6=["data-p-icon","chevron-left"],eM=(()=>{class t extends we{static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","chevron-left"]],features:[j],attrs:K6,decls:1,vars:0,consts:[["d","M9.61296 13C9.50997 13.0005 9.40792 12.9804 9.3128 12.9409C9.21767 12.9014 9.13139 12.8433 9.05902 12.7701L3.83313 7.54416C3.68634 7.39718 3.60388 7.19795 3.60388 6.99022C3.60388 6.78249 3.68634 6.58325 3.83313 6.43628L9.05902 1.21039C9.20762 1.07192 9.40416 0.996539 9.60724 1.00012C9.81032 1.00371 10.0041 1.08597 10.1477 1.22959C10.2913 1.37322 10.3736 1.56698 10.3772 1.77005C10.3808 1.97313 10.3054 2.16968 10.1669 2.31827L5.49496 6.99022L10.1669 11.6622C10.3137 11.8091 10.3962 12.0084 10.3962 12.2161C10.3962 12.4238 10.3137 12.6231 10.1669 12.7701C10.0945 12.8433 10.0083 12.9014 9.91313 12.9409C9.81801 12.9804 9.71596 13.0005 9.61296 13Z","fill","currentColor"]],template:function(r,i){r&1&&(G(),ue(0,"path",0))},encapsulation:2})}return t})();var Y6=["data-p-icon","chevron-right"],tM=(()=>{class t extends we{static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","chevron-right"]],features:[j],attrs:Y6,decls:1,vars:0,consts:[["d","M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z","fill","currentColor"]],template:function(r,i){r&1&&(G(),ue(0,"path",0))},encapsulation:2})}return t})();var Z6=["data-p-icon","chevron-up"],nM=(()=>{class t extends we{static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","chevron-up"]],features:[j],attrs:Z6,decls:1,vars:0,consts:[["d","M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z","fill","currentColor"]],template:function(r,i){r&1&&(G(),ue(0,"path",0))},encapsulation:2})}return t})();var J6=["data-p-icon","filter"],rM=(()=>{class t extends we{pathId;onInit(){this.pathId="url(#"+gt()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","filter"]],features:[j],attrs:J6,decls:5,vars:2,consts:[["d","M8.64708 14H5.35296C5.18981 13.9979 5.03395 13.9321 4.91858 13.8167C4.8032 13.7014 4.73745 13.5455 4.73531 13.3824V7L0.329431 0.98C0.259794 0.889466 0.217389 0.780968 0.20718 0.667208C0.19697 0.553448 0.219379 0.439133 0.271783 0.337647C0.324282 0.236453 0.403423 0.151519 0.500663 0.0920138C0.597903 0.0325088 0.709548 0.000692754 0.823548 0H13.1765C13.2905 0.000692754 13.4021 0.0325088 13.4994 0.0920138C13.5966 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7826 0.780968 13.7402 0.889466 13.6706 0.98L9.26472 7V13.3824C9.26259 13.5455 9.19683 13.7014 9.08146 13.8167C8.96609 13.9321 8.81022 13.9979 8.64708 14ZM5.97061 12.7647H8.02943V6.79412C8.02878 6.66289 8.07229 6.53527 8.15296 6.43177L11.9412 1.23529H2.05884L5.86355 6.43177C5.94422 6.53527 5.98773 6.66289 5.98708 6.79412L5.97061 12.7647Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(r,i){r&1&&(G(),ot(0,"g"),ue(1,"path",0),st(),ot(2,"defs")(3,"clipPath",1),ue(4,"rect",2),st()()),r&2&&(J("clip-path",i.pathId),g(3),Ft("id",i.pathId))},encapsulation:2})}return t})();var X6=["data-p-icon","filter-slash"],iM=(()=>{class t extends we{pathId;onInit(){this.pathId="url(#"+gt()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","filter-slash"]],features:[j],attrs:X6,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M13.4994 0.0920138C13.5967 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7827 0.780968 13.7403 0.889466 13.6707 0.98L11.406 4.06823C11.3099 4.19928 11.1656 4.28679 11.005 4.3115C10.8444 4.33621 10.6805 4.2961 10.5495 4.2C10.4184 4.1039 10.3309 3.95967 10.3062 3.79905C10.2815 3.63843 10.3216 3.47458 10.4177 3.34353L11.9412 1.23529H7.41184C7.24803 1.23529 7.09093 1.17022 6.97509 1.05439C6.85926 0.938558 6.79419 0.781457 6.79419 0.617647C6.79419 0.453837 6.85926 0.296736 6.97509 0.180905C7.09093 0.0650733 7.24803 0 7.41184 0H13.1765C13.2905 0.000692754 13.4022 0.0325088 13.4994 0.0920138ZM4.20008 0.181168H4.24126L13.2013 9.03411C13.3169 9.14992 13.3819 9.3069 13.3819 9.47058C13.3819 9.63426 13.3169 9.79124 13.2013 9.90705C13.1445 9.96517 13.0766 10.0112 13.0016 10.0423C12.9266 10.0735 12.846 10.0891 12.7648 10.0882C12.6836 10.0886 12.6032 10.0728 12.5283 10.0417C12.4533 10.0106 12.3853 9.96479 12.3283 9.90705L9.3142 6.92587L9.26479 6.99999V13.3823C9.26265 13.5455 9.19689 13.7014 9.08152 13.8167C8.96615 13.9321 8.81029 13.9979 8.64714 14H5.35302C5.18987 13.9979 5.03401 13.9321 4.91864 13.8167C4.80327 13.7014 4.73751 13.5455 4.73537 13.3823V6.99999L0.329492 1.02117C0.259855 0.930634 0.21745 0.822137 0.207241 0.708376C0.197031 0.594616 0.21944 0.480301 0.271844 0.378815C0.324343 0.277621 0.403484 0.192687 0.500724 0.133182C0.597964 0.073677 0.709609 0.041861 0.823609 0.0411682H3.86243C3.92448 0.0461551 3.9855 0.060022 4.04361 0.0823446C4.10037 0.10735 4.15311 0.140655 4.20008 0.181168ZM8.02949 6.79411C8.02884 6.66289 8.07235 6.53526 8.15302 6.43176L8.42478 6.05293L3.55773 1.23529H2.0589L5.84714 6.43176C5.92781 6.53526 5.97132 6.66289 5.97067 6.79411V12.7647H8.02949V6.79411Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(r,i){r&1&&(G(),ot(0,"g"),ue(1,"path",0),st(),ot(2,"defs")(3,"clipPath",1),ue(4,"rect",2),st()()),r&2&&(J("clip-path",i.pathId),g(3),Ft("id",i.pathId))},encapsulation:2})}return t})();var e8=["data-p-icon","minus"],oM=(()=>{class t extends we{static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","minus"]],features:[j],attrs:e8,decls:1,vars:0,consts:[["d","M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z","fill","currentColor"]],template:function(r,i){r&1&&(G(),ue(0,"path",0))},encapsulation:2})}return t})();var t8=["data-p-icon","plus"],sM=(()=>{class t extends we{pathId;onInit(){this.pathId="url(#"+gt()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","plus"]],features:[j],attrs:t8,decls:5,vars:2,consts:[["d","M7.67742 6.32258V0.677419C7.67742 0.497757 7.60605 0.325452 7.47901 0.198411C7.35197 0.0713707 7.17966 0 7 0C6.82034 0 6.64803 0.0713707 6.52099 0.198411C6.39395 0.325452 6.32258 0.497757 6.32258 0.677419V6.32258H0.677419C0.497757 6.32258 0.325452 6.39395 0.198411 6.52099C0.0713707 6.64803 0 6.82034 0 7C0 7.17966 0.0713707 7.35197 0.198411 7.47901C0.325452 7.60605 0.497757 7.67742 0.677419 7.67742H6.32258V13.3226C6.32492 13.5015 6.39704 13.6725 6.52358 13.799C6.65012 13.9255 6.82106 13.9977 7 14C7.17966 14 7.35197 13.9286 7.47901 13.8016C7.60605 13.6745 7.67742 13.5022 7.67742 13.3226V7.67742H13.3226C13.5022 7.67742 13.6745 7.60605 13.8016 7.47901C13.9286 7.35197 14 7.17966 14 7C13.9977 6.82106 13.9255 6.65012 13.799 6.52358C13.6725 6.39704 13.5015 6.32492 13.3226 6.32258H7.67742Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(r,i){r&1&&(G(),ot(0,"g"),ue(1,"path",0),st(),ot(2,"defs")(3,"clipPath",1),ue(4,"rect",2),st()()),r&2&&(J("clip-path",i.pathId),g(3),Ft("id",i.pathId))},encapsulation:2})}return t})();var n8=["data-p-icon","search"],aM=(()=>{class t extends we{pathId;onInit(){this.pathId="url(#"+gt()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","search"]],features:[j],attrs:n8,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(r,i){r&1&&(G(),ot(0,"g"),ue(1,"path",0),st(),ot(2,"defs")(3,"clipPath",1),ue(4,"rect",2),st()()),r&2&&(J("clip-path",i.pathId),g(3),Ft("id",i.pathId))},encapsulation:2})}return t})();var r8=["data-p-icon","sort-alt"],lM=(()=>{class t extends we{pathId;onInit(){this.pathId="url(#"+gt()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","sort-alt"]],features:[j],attrs:r8,decls:8,vars:2,consts:[["d","M5.64515 3.61291C5.47353 3.61291 5.30192 3.54968 5.16644 3.4142L3.38708 1.63484L1.60773 3.4142C1.34579 3.67613 0.912244 3.67613 0.650309 3.4142C0.388374 3.15226 0.388374 2.71871 0.650309 2.45678L2.90837 0.198712C3.17031 -0.0632236 3.60386 -0.0632236 3.86579 0.198712L6.12386 2.45678C6.38579 2.71871 6.38579 3.15226 6.12386 3.4142C5.98837 3.54968 5.81676 3.61291 5.64515 3.61291Z","fill","currentColor"],["d","M3.38714 14C3.01681 14 2.70972 13.6929 2.70972 13.3226V0.677419C2.70972 0.307097 3.01681 0 3.38714 0C3.75746 0 4.06456 0.307097 4.06456 0.677419V13.3226C4.06456 13.6929 3.75746 14 3.38714 14Z","fill","currentColor"],["d","M10.6129 14C10.4413 14 10.2697 13.9368 10.1342 13.8013L7.87611 11.5432C7.61418 11.2813 7.61418 10.8477 7.87611 10.5858C8.13805 10.3239 8.5716 10.3239 8.83353 10.5858L10.6129 12.3652L12.3922 10.5858C12.6542 10.3239 13.0877 10.3239 13.3497 10.5858C13.6116 10.8477 13.6116 11.2813 13.3497 11.5432L11.0916 13.8013C10.9561 13.9368 10.7845 14 10.6129 14Z","fill","currentColor"],["d","M10.6129 14C10.2426 14 9.93552 13.6929 9.93552 13.3226V0.677419C9.93552 0.307097 10.2426 0 10.6129 0C10.9833 0 11.2904 0.307097 11.2904 0.677419V13.3226C11.2904 13.6929 10.9832 14 10.6129 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(r,i){r&1&&(G(),ot(0,"g"),ue(1,"path",0)(2,"path",1)(3,"path",2)(4,"path",3),st(),ot(5,"defs")(6,"clipPath",4),ue(7,"rect",5),st()()),r&2&&(J("clip-path",i.pathId),g(6),Ft("id",i.pathId))},encapsulation:2})}return t})();var i8=["data-p-icon","sort-amount-down"],cM=(()=>{class t extends we{pathId;onInit(){this.pathId="url(#"+gt()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","sort-amount-down"]],features:[j],attrs:i8,decls:5,vars:2,consts:[["d","M4.93953 10.5858L3.83759 11.6877V0.677419C3.83759 0.307097 3.53049 0 3.16017 0C2.78985 0 2.48275 0.307097 2.48275 0.677419V11.6877L1.38082 10.5858C1.11888 10.3239 0.685331 10.3239 0.423396 10.5858C0.16146 10.8477 0.16146 11.2813 0.423396 11.5432L2.68146 13.8013C2.74469 13.8645 2.81694 13.9097 2.89823 13.9458C2.97952 13.9819 3.06985 14 3.16017 14C3.25049 14 3.33178 13.9819 3.42211 13.9458C3.5034 13.9097 3.57565 13.8645 3.63888 13.8013L5.89694 11.5432C6.15888 11.2813 6.15888 10.8477 5.89694 10.5858C5.63501 10.3239 5.20146 10.3239 4.93953 10.5858ZM13.0957 0H7.22468C6.85436 0 6.54726 0.307097 6.54726 0.677419C6.54726 1.04774 6.85436 1.35484 7.22468 1.35484H13.0957C13.466 1.35484 13.7731 1.04774 13.7731 0.677419C13.7731 0.307097 13.466 0 13.0957 0ZM7.22468 5.41935H9.48275C9.85307 5.41935 10.1602 5.72645 10.1602 6.09677C10.1602 6.4671 9.85307 6.77419 9.48275 6.77419H7.22468C6.85436 6.77419 6.54726 6.4671 6.54726 6.09677C6.54726 5.72645 6.85436 5.41935 7.22468 5.41935ZM7.6763 8.12903H7.22468C6.85436 8.12903 6.54726 8.43613 6.54726 8.80645C6.54726 9.17677 6.85436 9.48387 7.22468 9.48387H7.6763C8.04662 9.48387 8.35372 9.17677 8.35372 8.80645C8.35372 8.43613 8.04662 8.12903 7.6763 8.12903ZM7.22468 2.70968H11.2892C11.6595 2.70968 11.9666 3.01677 11.9666 3.3871C11.9666 3.75742 11.6595 4.06452 11.2892 4.06452H7.22468C6.85436 4.06452 6.54726 3.75742 6.54726 3.3871C6.54726 3.01677 6.85436 2.70968 7.22468 2.70968Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(r,i){r&1&&(G(),ot(0,"g"),ue(1,"path",0),st(),ot(2,"defs")(3,"clipPath",1),ue(4,"rect",2),st()()),r&2&&(J("clip-path",i.pathId),g(3),Ft("id",i.pathId))},encapsulation:2})}return t})();var o8=["data-p-icon","sort-amount-up-alt"],dM=(()=>{class t extends we{pathId;onInit(){this.pathId="url(#"+gt()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","sort-amount-up-alt"]],features:[j],attrs:o8,decls:5,vars:2,consts:[["d","M3.63435 0.19871C3.57113 0.135484 3.49887 0.0903226 3.41758 0.0541935C3.255 -0.0180645 3.06532 -0.0180645 2.90274 0.0541935C2.82145 0.0903226 2.74919 0.135484 2.68597 0.19871L0.427901 2.45677C0.165965 2.71871 0.165965 3.15226 0.427901 3.41419C0.689836 3.67613 1.12338 3.67613 1.38532 3.41419L2.48726 2.31226V13.3226C2.48726 13.6929 2.79435 14 3.16467 14C3.535 14 3.84209 13.6929 3.84209 13.3226V2.31226L4.94403 3.41419C5.07951 3.54968 5.25113 3.6129 5.42274 3.6129C5.59435 3.6129 5.76597 3.54968 5.90145 3.41419C6.16338 3.15226 6.16338 2.71871 5.90145 2.45677L3.64338 0.19871H3.63435ZM13.7685 13.3226C13.7685 12.9523 13.4615 12.6452 13.0911 12.6452H7.22016C6.84984 12.6452 6.54274 12.9523 6.54274 13.3226C6.54274 13.6929 6.84984 14 7.22016 14H13.0911C13.4615 14 13.7685 13.6929 13.7685 13.3226ZM7.22016 8.58064C6.84984 8.58064 6.54274 8.27355 6.54274 7.90323C6.54274 7.5329 6.84984 7.22581 7.22016 7.22581H9.47823C9.84855 7.22581 10.1556 7.5329 10.1556 7.90323C10.1556 8.27355 9.84855 8.58064 9.47823 8.58064H7.22016ZM7.22016 5.87097H7.67177C8.0421 5.87097 8.34919 5.56387 8.34919 5.19355C8.34919 4.82323 8.0421 4.51613 7.67177 4.51613H7.22016C6.84984 4.51613 6.54274 4.82323 6.54274 5.19355C6.54274 5.56387 6.84984 5.87097 7.22016 5.87097ZM11.2847 11.2903H7.22016C6.84984 11.2903 6.54274 10.9832 6.54274 10.6129C6.54274 10.2426 6.84984 9.93548 7.22016 9.93548H11.2847C11.655 9.93548 11.9621 10.2426 11.9621 10.6129C11.9621 10.9832 11.655 11.2903 11.2847 11.2903Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(r,i){r&1&&(G(),ot(0,"g"),ue(1,"path",0),st(),ot(2,"defs")(3,"clipPath",1),ue(4,"rect",2),st()()),r&2&&(J("clip-path",i.pathId),g(3),Ft("id",i.pathId))},encapsulation:2})}return t})();var s8=["data-p-icon","spinner"],To=(()=>{class t extends we{pathId;onInit(){this.pathId="url(#"+gt()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","spinner"]],features:[j],attrs:s8,decls:5,vars:2,consts:[["d","M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(r,i){r&1&&(G(),ot(0,"g"),ue(1,"path",0),st(),ot(2,"defs")(3,"clipPath",1),ue(4,"rect",2),st()()),r&2&&(J("clip-path",i.pathId),g(3),Ft("id",i.pathId))},encapsulation:2})}return t})();var a8=["data-p-icon","times"],ql=(()=>{class t extends we{static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","times"]],features:[j],attrs:a8,decls:1,vars:0,consts:[["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(r,i){r&1&&(G(),ue(0,"path",0))},encapsulation:2})}return t})();var l8=["data-p-icon","trash"],uM=(()=>{class t extends we{pathId;onInit(){this.pathId="url(#"+gt()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","trash"]],features:[j],attrs:l8,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M3.44802 13.9955H10.552C10.8056 14.0129 11.06 13.9797 11.3006 13.898C11.5412 13.8163 11.7632 13.6877 11.9537 13.5196C12.1442 13.3515 12.2995 13.1473 12.4104 12.9188C12.5213 12.6903 12.5858 12.442 12.6 12.1884V4.36041H13.4C13.5591 4.36041 13.7117 4.29722 13.8243 4.18476C13.9368 4.07229 14 3.91976 14 3.76071C14 3.60166 13.9368 3.44912 13.8243 3.33666C13.7117 3.22419 13.5591 3.16101 13.4 3.16101H12.0537C12.0203 3.1557 11.9863 3.15299 11.952 3.15299C11.9178 3.15299 11.8838 3.1557 11.8503 3.16101H11.2285C11.2421 3.10893 11.2487 3.05513 11.248 3.00106V1.80966C11.2171 1.30262 10.9871 0.828306 10.608 0.48989C10.229 0.151475 9.73159 -0.0236625 9.22402 0.00257442H4.77602C4.27251 -0.0171866 3.78126 0.160868 3.40746 0.498617C3.03365 0.836366 2.807 1.30697 2.77602 1.80966V3.00106C2.77602 3.0556 2.78346 3.10936 2.79776 3.16101H0.6C0.521207 3.16101 0.443185 3.17652 0.37039 3.20666C0.297595 3.2368 0.231451 3.28097 0.175736 3.33666C0.120021 3.39235 0.0758251 3.45846 0.0456722 3.53121C0.0155194 3.60397 0 3.68196 0 3.76071C0 3.83946 0.0155194 3.91744 0.0456722 3.9902C0.0758251 4.06296 0.120021 4.12907 0.175736 4.18476C0.231451 4.24045 0.297595 4.28462 0.37039 4.31476C0.443185 4.3449 0.521207 4.36041 0.6 4.36041H1.40002V12.1884C1.41426 12.442 1.47871 12.6903 1.58965 12.9188C1.7006 13.1473 1.85582 13.3515 2.04633 13.5196C2.23683 13.6877 2.45882 13.8163 2.69944 13.898C2.94005 13.9797 3.1945 14.0129 3.44802 13.9955ZM2.60002 4.36041H11.304V12.1884C11.304 12.5163 10.952 12.7961 10.504 12.7961H3.40002C2.97602 12.7961 2.60002 12.5163 2.60002 12.1884V4.36041ZM3.95429 3.16101C3.96859 3.10936 3.97602 3.0556 3.97602 3.00106V1.80966C3.97602 1.48183 4.33602 1.20197 4.77602 1.20197H9.24802C9.66403 1.20197 10.048 1.48183 10.048 1.80966V3.00106C10.0473 3.05515 10.054 3.10896 10.0678 3.16101H3.95429ZM5.57571 10.997C5.41731 10.995 5.26597 10.9311 5.15395 10.8191C5.04193 10.7071 4.97808 10.5558 4.97601 10.3973V6.77517C4.97601 6.61612 5.0392 6.46359 5.15166 6.35112C5.26413 6.23866 5.41666 6.17548 5.57571 6.17548C5.73476 6.17548 5.8873 6.23866 5.99976 6.35112C6.11223 6.46359 6.17541 6.61612 6.17541 6.77517V10.3894C6.17647 10.4688 6.16174 10.5476 6.13208 10.6213C6.10241 10.695 6.05841 10.762 6.00261 10.8186C5.94682 10.8751 5.88035 10.92 5.80707 10.9506C5.73378 10.9813 5.65514 10.9971 5.57571 10.997ZM7.99968 10.8214C8.11215 10.9339 8.26468 10.997 8.42373 10.997C8.58351 10.9949 8.73604 10.93 8.84828 10.8163C8.96052 10.7025 9.02345 10.5491 9.02343 10.3894V6.77517C9.02343 6.61612 8.96025 6.46359 8.84778 6.35112C8.73532 6.23866 8.58278 6.17548 8.42373 6.17548C8.26468 6.17548 8.11215 6.23866 7.99968 6.35112C7.88722 6.46359 7.82404 6.61612 7.82404 6.77517V10.3973C7.82404 10.5564 7.88722 10.7089 7.99968 10.8214Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(r,i){r&1&&(G(),ot(0,"g"),ue(1,"path",0),st(),ot(2,"defs")(3,"clipPath",1),ue(4,"rect",2),st()()),r&2&&(J("clip-path",i.pathId),g(3),Ft("id",i.pathId))},encapsulation:2})}return t})();var pM=`
.p-ink {
display: block;
position: absolute;
background: dt('ripple.background');
border-radius: 100%;
transform: scale(0);
pointer-events: none;
}
.p-ink-active {
animation: ripple 0.4s linear;
}
@keyframes ripple {
100% {
opacity: 0;
transform: scale(2.5);
}
}
`;var c8=`
${pM}
/* For PrimeNG */
.p-ripple {
overflow: hidden;
position: relative;
}
.p-ripple-disabled .p-ink {
display: none !important;
}
@keyframes ripple {
100% {
opacity: 0;
transform: scale(2.5);
}
}
`,d8={root:"p-ink"},fM=(()=>{class t extends Oe{name="ripple";style=c8;classes=d8;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var Ui=(()=>{class t extends ut{zone=x($e);_componentStyle=x(fM);animationListener;mouseDownListener;timeout;constructor(){super(),Lt(()=>{kn(this.platformId)&&(this.config.ripple()?this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.renderer.listen(this.el.nativeElement,"mousedown",this.onMouseDown.bind(this))}):this.remove())})}onAfterViewInit(){}onMouseDown(e){let r=this.getInk();if(!r||this.document.defaultView?.getComputedStyle(r,null).display==="none")return;if(Bi(r,"p-ink-active"),!ji(r)&&!zi(r)){let a=Math.max(Mn(this.el.nativeElement),oi(this.el.nativeElement));r.style.height=a+"px",r.style.width=a+"px"}let i=ok(this.el.nativeElement),o=e.pageX-i.left+this.document.body.scrollTop-zi(r)/2,s=e.pageY-i.top+this.document.body.scrollLeft-ji(r)/2;this.renderer.setStyle(r,"top",s+"px"),this.renderer.setStyle(r,"left",o+"px"),ri(r,"p-ink-active"),this.timeout=setTimeout(()=>{let a=this.getInk();a&&Bi(a,"p-ink-active")},401)}getInk(){let e=this.el.nativeElement.children;for(let r=0;r<e.length;r++)if(typeof e[r].className=="string"&&e[r].className.indexOf("p-ink")!==-1)return e[r];return null}resetInk(){let e=this.getInk();e&&Bi(e,"p-ink-active")}onAnimationEnd(e){this.timeout&&clearTimeout(this.timeout),Bi(e.currentTarget,"p-ink-active")}create(){let e=this.renderer.createElement("span");this.renderer.addClass(e,"p-ink"),this.renderer.appendChild(this.el.nativeElement,e),this.renderer.setAttribute(e,"aria-hidden","true"),this.renderer.setAttribute(e,"role","presentation"),this.animationListener||(this.animationListener=this.renderer.listen(e,"animationend",this.onAnimationEnd.bind(this)))}remove(){let e=this.getInk();e&&(this.mouseDownListener&&this.mouseDownListener(),this.animationListener&&this.animationListener(),this.mouseDownListener=null,this.animationListener=null,ak(e))}onDestroy(){this.config&&this.config.ripple()&&this.remove()}static \u0275fac=function(r){return new(r||t)};static \u0275dir=Ue({type:t,selectors:[["","pRipple",""]],hostAttrs:[1,"p-ripple"],features:[xe([fM]),j]})}return t})();var hM=`
.p-button {
display: inline-flex;
cursor: pointer;
user-select: none;
align-items: center;
justify-content: center;
overflow: hidden;
position: relative;
color: dt('button.primary.color');
background: dt('button.primary.background');
border: 1px solid dt('button.primary.border.color');
padding: dt('button.padding.y') dt('button.padding.x');
font-size: 1rem;
font-family: inherit;
font-feature-settings: inherit;
transition:
background dt('button.transition.duration'),
color dt('button.transition.duration'),
border-color dt('button.transition.duration'),
outline-color dt('button.transition.duration'),
box-shadow dt('button.transition.duration');
border-radius: dt('button.border.radius');
outline-color: transparent;
gap: dt('button.gap');
}
.p-button:disabled {
cursor: default;
}
.p-button-icon-right {
order: 1;
}
.p-button-icon-right:dir(rtl) {
order: -1;
}
.p-button:not(.p-button-vertical) .p-button-icon:not(.p-button-icon-right):dir(rtl) {
order: 1;
}
.p-button-icon-bottom {
order: 2;
}
.p-button-icon-only {
width: dt('button.icon.only.width');
padding-inline-start: 0;
padding-inline-end: 0;
gap: 0;
}
.p-button-icon-only.p-button-rounded {
border-radius: 50%;
height: dt('button.icon.only.width');
}
.p-button-icon-only .p-button-label {
visibility: hidden;
width: 0;
}
.p-button-icon-only::after {
content: "\0A0";
visibility: hidden;
width: 0;
}
.p-button-sm {
font-size: dt('button.sm.font.size');
padding: dt('button.sm.padding.y') dt('button.sm.padding.x');
}
.p-button-sm .p-button-icon {
font-size: dt('button.sm.font.size');
}
.p-button-sm.p-button-icon-only {
width: dt('button.sm.icon.only.width');
}
.p-button-sm.p-button-icon-only.p-button-rounded {
height: dt('button.sm.icon.only.width');
}
.p-button-lg {
font-size: dt('button.lg.font.size');
padding: dt('button.lg.padding.y') dt('button.lg.padding.x');
}
.p-button-lg .p-button-icon {
font-size: dt('button.lg.font.size');
}
.p-button-lg.p-button-icon-only {
width: dt('button.lg.icon.only.width');
}
.p-button-lg.p-button-icon-only.p-button-rounded {
height: dt('button.lg.icon.only.width');
}
.p-button-vertical {
flex-direction: column;
}
.p-button-label {
font-weight: dt('button.label.font.weight');
}
.p-button-fluid {
width: 100%;
}
.p-button-fluid.p-button-icon-only {
width: dt('button.icon.only.width');
}
.p-button:not(:disabled):hover {
background: dt('button.primary.hover.background');
border: 1px solid dt('button.primary.hover.border.color');
color: dt('button.primary.hover.color');
}
.p-button:not(:disabled):active {
background: dt('button.primary.active.background');
border: 1px solid dt('button.primary.active.border.color');
color: dt('button.primary.active.color');
}
.p-button:focus-visible {
box-shadow: dt('button.primary.focus.ring.shadow');
outline: dt('button.focus.ring.width') dt('button.focus.ring.style') dt('button.primary.focus.ring.color');
outline-offset: dt('button.focus.ring.offset');
}
.p-button .p-badge {
min-width: dt('button.badge.size');
height: dt('button.badge.size');
line-height: dt('button.badge.size');
}
.p-button-raised {
box-shadow: dt('button.raised.shadow');
}
.p-button-rounded {
border-radius: dt('button.rounded.border.radius');
}
.p-button-secondary {
background: dt('button.secondary.background');
border: 1px solid dt('button.secondary.border.color');
color: dt('button.secondary.color');
}
.p-button-secondary:not(:disabled):hover {
background: dt('button.secondary.hover.background');
border: 1px solid dt('button.secondary.hover.border.color');
color: dt('button.secondary.hover.color');
}
.p-button-secondary:not(:disabled):active {
background: dt('button.secondary.active.background');
border: 1px solid dt('button.secondary.active.border.color');
color: dt('button.secondary.active.color');
}
.p-button-secondary:focus-visible {
outline-color: dt('button.secondary.focus.ring.color');
box-shadow: dt('button.secondary.focus.ring.shadow');
}
.p-button-success {
background: dt('button.success.background');
border: 1px solid dt('button.success.border.color');
color: dt('button.success.color');
}
.p-button-success:not(:disabled):hover {
background: dt('button.success.hover.background');
border: 1px solid dt('button.success.hover.border.color');
color: dt('button.success.hover.color');
}
.p-button-success:not(:disabled):active {
background: dt('button.success.active.background');
border: 1px solid dt('button.success.active.border.color');
color: dt('button.success.active.color');
}
.p-button-success:focus-visible {
outline-color: dt('button.success.focus.ring.color');
box-shadow: dt('button.success.focus.ring.shadow');
}
.p-button-info {
background: dt('button.info.background');
border: 1px solid dt('button.info.border.color');
color: dt('button.info.color');
}
.p-button-info:not(:disabled):hover {
background: dt('button.info.hover.background');
border: 1px solid dt('button.info.hover.border.color');
color: dt('button.info.hover.color');
}
.p-button-info:not(:disabled):active {
background: dt('button.info.active.background');
border: 1px solid dt('button.info.active.border.color');
color: dt('button.info.active.color');
}
.p-button-info:focus-visible {
outline-color: dt('button.info.focus.ring.color');
box-shadow: dt('button.info.focus.ring.shadow');
}
.p-button-warn {
background: dt('button.warn.background');
border: 1px solid dt('button.warn.border.color');
color: dt('button.warn.color');
}
.p-button-warn:not(:disabled):hover {
background: dt('button.warn.hover.background');
border: 1px solid dt('button.warn.hover.border.color');
color: dt('button.warn.hover.color');
}
.p-button-warn:not(:disabled):active {
background: dt('button.warn.active.background');
border: 1px solid dt('button.warn.active.border.color');
color: dt('button.warn.active.color');
}
.p-button-warn:focus-visible {
outline-color: dt('button.warn.focus.ring.color');
box-shadow: dt('button.warn.focus.ring.shadow');
}
.p-button-help {
background: dt('button.help.background');
border: 1px solid dt('button.help.border.color');
color: dt('button.help.color');
}
.p-button-help:not(:disabled):hover {
background: dt('button.help.hover.background');
border: 1px solid dt('button.help.hover.border.color');
color: dt('button.help.hover.color');
}
.p-button-help:not(:disabled):active {
background: dt('button.help.active.background');
border: 1px solid dt('button.help.active.border.color');
color: dt('button.help.active.color');
}
.p-button-help:focus-visible {
outline-color: dt('button.help.focus.ring.color');
box-shadow: dt('button.help.focus.ring.shadow');
}
.p-button-danger {
background: dt('button.danger.background');
border: 1px solid dt('button.danger.border.color');
color: dt('button.danger.color');
}
.p-button-danger:not(:disabled):hover {
background: dt('button.danger.hover.background');
border: 1px solid dt('button.danger.hover.border.color');
color: dt('button.danger.hover.color');
}
.p-button-danger:not(:disabled):active {
background: dt('button.danger.active.background');
border: 1px solid dt('button.danger.active.border.color');
color: dt('button.danger.active.color');
}
.p-button-danger:focus-visible {
outline-color: dt('button.danger.focus.ring.color');
box-shadow: dt('button.danger.focus.ring.shadow');
}
.p-button-contrast {
background: dt('button.contrast.background');
border: 1px solid dt('button.contrast.border.color');
color: dt('button.contrast.color');
}
.p-button-contrast:not(:disabled):hover {
background: dt('button.contrast.hover.background');
border: 1px solid dt('button.contrast.hover.border.color');
color: dt('button.contrast.hover.color');
}
.p-button-contrast:not(:disabled):active {
background: dt('button.contrast.active.background');
border: 1px solid dt('button.contrast.active.border.color');
color: dt('button.contrast.active.color');
}
.p-button-contrast:focus-visible {
outline-color: dt('button.contrast.focus.ring.color');
box-shadow: dt('button.contrast.focus.ring.shadow');
}
.p-button-outlined {
background: transparent;
border-color: dt('button.outlined.primary.border.color');
color: dt('button.outlined.primary.color');
}
.p-button-outlined:not(:disabled):hover {
background: dt('button.outlined.primary.hover.background');
border-color: dt('button.outlined.primary.border.color');
color: dt('button.outlined.primary.color');
}
.p-button-outlined:not(:disabled):active {
background: dt('button.outlined.primary.active.background');
border-color: dt('button.outlined.primary.border.color');
color: dt('button.outlined.primary.color');
}
.p-button-outlined.p-button-secondary {
border-color: dt('button.outlined.secondary.border.color');
color: dt('button.outlined.secondary.color');
}
.p-button-outlined.p-button-secondary:not(:disabled):hover {
background: dt('button.outlined.secondary.hover.background');
border-color: dt('button.outlined.secondary.border.color');
color: dt('button.outlined.secondary.color');
}
.p-button-outlined.p-button-secondary:not(:disabled):active {
background: dt('button.outlined.secondary.active.background');
border-color: dt('button.outlined.secondary.border.color');
color: dt('button.outlined.secondary.color');
}
.p-button-outlined.p-button-success {
border-color: dt('button.outlined.success.border.color');
color: dt('button.outlined.success.color');
}
.p-button-outlined.p-button-success:not(:disabled):hover {
background: dt('button.outlined.success.hover.background');
border-color: dt('button.outlined.success.border.color');
color: dt('button.outlined.success.color');
}
.p-button-outlined.p-button-success:not(:disabled):active {
background: dt('button.outlined.success.active.background');
border-color: dt('button.outlined.success.border.color');
color: dt('button.outlined.success.color');
}
.p-button-outlined.p-button-info {
border-color: dt('button.outlined.info.border.color');
color: dt('button.outlined.info.color');
}
.p-button-outlined.p-button-info:not(:disabled):hover {
background: dt('button.outlined.info.hover.background');
border-color: dt('button.outlined.info.border.color');
color: dt('button.outlined.info.color');
}
.p-button-outlined.p-button-info:not(:disabled):active {
background: dt('button.outlined.info.active.background');
border-color: dt('button.outlined.info.border.color');
color: dt('button.outlined.info.color');
}
.p-button-outlined.p-button-warn {
border-color: dt('button.outlined.warn.border.color');
color: dt('button.outlined.warn.color');
}
.p-button-outlined.p-button-warn:not(:disabled):hover {
background: dt('button.outlined.warn.hover.background');
border-color: dt('button.outlined.warn.border.color');
color: dt('button.outlined.warn.color');
}
.p-button-outlined.p-button-warn:not(:disabled):active {
background: dt('button.outlined.warn.active.background');
border-color: dt('button.outlined.warn.border.color');
color: dt('button.outlined.warn.color');
}
.p-button-outlined.p-button-help {
border-color: dt('button.outlined.help.border.color');
color: dt('button.outlined.help.color');
}
.p-button-outlined.p-button-help:not(:disabled):hover {
background: dt('button.outlined.help.hover.background');
border-color: dt('button.outlined.help.border.color');
color: dt('button.outlined.help.color');
}
.p-button-outlined.p-button-help:not(:disabled):active {
background: dt('button.outlined.help.active.background');
border-color: dt('button.outlined.help.border.color');
color: dt('button.outlined.help.color');
}
.p-button-outlined.p-button-danger {
border-color: dt('button.outlined.danger.border.color');
color: dt('button.outlined.danger.color');
}
.p-button-outlined.p-button-danger:not(:disabled):hover {
background: dt('button.outlined.danger.hover.background');
border-color: dt('button.outlined.danger.border.color');
color: dt('button.outlined.danger.color');
}
.p-button-outlined.p-button-danger:not(:disabled):active {
background: dt('button.outlined.danger.active.background');
border-color: dt('button.outlined.danger.border.color');
color: dt('button.outlined.danger.color');
}
.p-button-outlined.p-button-contrast {
border-color: dt('button.outlined.contrast.border.color');
color: dt('button.outlined.contrast.color');
}
.p-button-outlined.p-button-contrast:not(:disabled):hover {
background: dt('button.outlined.contrast.hover.background');
border-color: dt('button.outlined.contrast.border.color');
color: dt('button.outlined.contrast.color');
}
.p-button-outlined.p-button-contrast:not(:disabled):active {
background: dt('button.outlined.contrast.active.background');
border-color: dt('button.outlined.contrast.border.color');
color: dt('button.outlined.contrast.color');
}
.p-button-outlined.p-button-plain {
border-color: dt('button.outlined.plain.border.color');
color: dt('button.outlined.plain.color');
}
.p-button-outlined.p-button-plain:not(:disabled):hover {
background: dt('button.outlined.plain.hover.background');
border-color: dt('button.outlined.plain.border.color');
color: dt('button.outlined.plain.color');
}
.p-button-outlined.p-button-plain:not(:disabled):active {
background: dt('button.outlined.plain.active.background');
border-color: dt('button.outlined.plain.border.color');
color: dt('button.outlined.plain.color');
}
.p-button-text {
background: transparent;
border-color: transparent;
color: dt('button.text.primary.color');
}
.p-button-text:not(:disabled):hover {
background: dt('button.text.primary.hover.background');
border-color: transparent;
color: dt('button.text.primary.color');
}
.p-button-text:not(:disabled):active {
background: dt('button.text.primary.active.background');
border-color: transparent;
color: dt('button.text.primary.color');
}
.p-button-text.p-button-secondary {
background: transparent;
border-color: transparent;
color: dt('button.text.secondary.color');
}
.p-button-text.p-button-secondary:not(:disabled):hover {
background: dt('button.text.secondary.hover.background');
border-color: transparent;
color: dt('button.text.secondary.color');
}
.p-button-text.p-button-secondary:not(:disabled):active {
background: dt('button.text.secondary.active.background');
border-color: transparent;
color: dt('button.text.secondary.color');
}
.p-button-text.p-button-success {
background: transparent;
border-color: transparent;
color: dt('button.text.success.color');
}
.p-button-text.p-button-success:not(:disabled):hover {
background: dt('button.text.success.hover.background');
border-color: transparent;
color: dt('button.text.success.color');
}
.p-button-text.p-button-success:not(:disabled):active {
background: dt('button.text.success.active.background');
border-color: transparent;
color: dt('button.text.success.color');
}
.p-button-text.p-button-info {
background: transparent;
border-color: transparent;
color: dt('button.text.info.color');
}
.p-button-text.p-button-info:not(:disabled):hover {
background: dt('button.text.info.hover.background');
border-color: transparent;
color: dt('button.text.info.color');
}
.p-button-text.p-button-info:not(:disabled):active {
background: dt('button.text.info.active.background');
border-color: transparent;
color: dt('button.text.info.color');
}
.p-button-text.p-button-warn {
background: transparent;
border-color: transparent;
color: dt('button.text.warn.color');
}
.p-button-text.p-button-warn:not(:disabled):hover {
background: dt('button.text.warn.hover.background');
border-color: transparent;
color: dt('button.text.warn.color');
}
.p-button-text.p-button-warn:not(:disabled):active {
background: dt('button.text.warn.active.background');
border-color: transparent;
color: dt('button.text.warn.color');
}
.p-button-text.p-button-help {
background: transparent;
border-color: transparent;
color: dt('button.text.help.color');
}
.p-button-text.p-button-help:not(:disabled):hover {
background: dt('button.text.help.hover.background');
border-color: transparent;
color: dt('button.text.help.color');
}
.p-button-text.p-button-help:not(:disabled):active {
background: dt('button.text.help.active.background');
border-color: transparent;
color: dt('button.text.help.color');
}
.p-button-text.p-button-danger {
background: transparent;
border-color: transparent;
color: dt('button.text.danger.color');
}
.p-button-text.p-button-danger:not(:disabled):hover {
background: dt('button.text.danger.hover.background');
border-color: transparent;
color: dt('button.text.danger.color');
}
.p-button-text.p-button-danger:not(:disabled):active {
background: dt('button.text.danger.active.background');
border-color: transparent;
color: dt('button.text.danger.color');
}
.p-button-text.p-button-contrast {
background: transparent;
border-color: transparent;
color: dt('button.text.contrast.color');
}
.p-button-text.p-button-contrast:not(:disabled):hover {
background: dt('button.text.contrast.hover.background');
border-color: transparent;
color: dt('button.text.contrast.color');
}
.p-button-text.p-button-contrast:not(:disabled):active {
background: dt('button.text.contrast.active.background');
border-color: transparent;
color: dt('button.text.contrast.color');
}
.p-button-text.p-button-plain {
background: transparent;
border-color: transparent;
color: dt('button.text.plain.color');
}
.p-button-text.p-button-plain:not(:disabled):hover {
background: dt('button.text.plain.hover.background');
border-color: transparent;
color: dt('button.text.plain.color');
}
.p-button-text.p-button-plain:not(:disabled):active {
background: dt('button.text.plain.active.background');
border-color: transparent;
color: dt('button.text.plain.color');
}
.p-button-link {
background: transparent;
border-color: transparent;
color: dt('button.link.color');
}
.p-button-link:not(:disabled):hover {
background: transparent;
border-color: transparent;
color: dt('button.link.hover.color');
}
.p-button-link:not(:disabled):hover .p-button-label {
text-decoration: underline;
}
.p-button-link:not(:disabled):active {
background: transparent;
border-color: transparent;
color: dt('button.link.active.color');
}
`;var p8=["content"],f8=["loadingicon"],h8=["icon"],m8=["*"],yM=(t,n)=>({class:t,pt:n});function g8(t,n){t&1&&ne(0)}function y8(t,n){if(t&1&&X(0,"span",7),t&2){let e=m(3);k(e.cn(e.cx("loadingIcon"),"pi-spin",e.loadingIcon)),h("pBind",e.ptm("loadingIcon")),J("aria-hidden",!0)}}function b8(t,n){if(t&1&&(G(),X(0,"svg",8)),t&2){let e=m(3);k(e.cn(e.cx("loadingIcon"),e.spinnerIconClass())),h("pBind",e.ptm("loadingIcon"))("spin",!0),J("aria-hidden",!0)}}function v8(t,n){if(t&1&&(ie(0),C(1,y8,1,4,"span",3)(2,b8,1,5,"svg",6),oe()),t&2){let e=m(2);g(),h("ngIf",e.loadingIcon),g(),h("ngIf",!e.loadingIcon)}}function _8(t,n){}function w8(t,n){if(t&1&&C(0,_8,0,0,"ng-template",9),t&2){let e=m(2);h("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function C8(t,n){if(t&1&&(ie(0),C(1,v8,3,2,"ng-container",2)(2,w8,1,1,null,5),oe()),t&2){let e=m();g(),h("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),g(),h("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)("ngTemplateOutletContext",Dt(3,yM,e.cx("loadingIcon"),e.ptm("loadingIcon")))}}function x8(t,n){if(t&1&&X(0,"span",7),t&2){let e=m(2);k(e.cn("icon",e.iconClass())),h("pBind",e.ptm("icon"))}}function T8(t,n){}function E8(t,n){if(t&1&&C(0,T8,0,0,"ng-template",9),t&2){let e=m(2);h("ngIf",!e.icon&&(e.iconTemplate||e._iconTemplate))}}function S8(t,n){if(t&1&&(ie(0),C(1,x8,1,3,"span",3)(2,E8,1,1,null,5),oe()),t&2){let e=m();g(),h("ngIf",e.icon&&!e.iconTemplate&&!e._iconTemplate),g(),h("ngTemplateOutlet",e.iconTemplate||e._iconTemplate)("ngTemplateOutletContext",Dt(3,yM,e.cx("icon"),e.ptm("icon")))}}function I8(t,n){if(t&1&&(E(0,"span",7),ce(1),T()),t&2){let e=m();k(e.cx("label")),h("pBind",e.ptm("label")),J("aria-hidden",e.icon&&!e.label),g(),Ze(e.label)}}function D8(t,n){if(t&1&&X(0,"p-badge",10),t&2){let e=m();h("value",e.badge)("severity",e.badgeSeverity)("pt",e.ptm("pcBadge"))}}var k8={root:({instance:t})=>["p-button p-component",{"p-button-icon-only":(t.icon||t.buttonProps?.icon||t.iconTemplate||t._iconTemplate||t.loadingIcon||t.loadingIconTemplate||t._loadingIconTemplate)&&!t.label&&!t.buttonProps?.label,"p-button-vertical":(t.iconPos==="top"||t.iconPos==="bottom")&&t.label,"p-button-loading":t.loading||t.buttonProps?.loading,"p-button-link":t.link||t.buttonProps?.link,[`p-button-${t.severity||t.buttonProps?.severity}`]:t.severity||t.buttonProps?.severity,"p-button-raised":t.raised||t.buttonProps?.raised,"p-button-rounded":t.rounded||t.buttonProps?.rounded,"p-button-text":t.text||t.variant==="text"||t.buttonProps?.text||t.buttonProps?.variant==="text","p-button-outlined":t.outlined||t.variant==="outlined"||t.buttonProps?.outlined||t.buttonProps?.variant==="outlined","p-button-sm":t.size==="small"||t.buttonProps?.size==="small","p-button-lg":t.size==="large"||t.buttonProps?.size==="large","p-button-plain":t.plain||t.buttonProps?.plain,"p-button-fluid":t.hasFluid}],loadingIcon:"p-button-loading-icon",icon:({instance:t})=>["p-button-icon",{[`p-button-icon-${t.iconPos||t.buttonProps?.iconPos}`]:t.label||t.buttonProps?.label,"p-button-icon-left":(t.iconPos==="left"||t.buttonProps?.iconPos==="left")&&t.label||t.buttonProps?.label,"p-button-icon-right":(t.iconPos==="right"||t.buttonProps?.iconPos==="right")&&t.label||t.buttonProps?.label},t.icon,t.buttonProps?.icon],spinnerIcon:({instance:t})=>Object.entries(t.iconClass()).filter(([,n])=>!!n).reduce((n,[e])=>n+` ${e}`,"p-button-loading-icon"),label:"p-button-label"},mM=(()=>{class t extends Oe{name="button";style=hM;classes=k8;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var gM=new H("BUTTON_INSTANCE");var rr=(()=>{class t extends ut{hostName="";$pcButton=x(gM,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=x(te,{self:!0});_componentStyle=x(mM);onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host"))}type="button";badge;disabled;raised=!1;rounded=!1;text=!1;plain=!1;outlined=!1;link=!1;tabindex;size;variant;style;styleClass;badgeClass;badgeSeverity="secondary";ariaLabel;autofocus;iconPos="left";icon;label;loading=!1;loadingIcon;severity;buttonProps;fluid=ae(void 0,{transform:R});onClick=new z;onFocus=new z;onBlur=new z;contentTemplate;loadingIconTemplate;iconTemplate;templates;pcFluid=x(Gl,{optional:!0,host:!0,skipSelf:!0});get hasFluid(){return this.fluid()??!!this.pcFluid}_contentTemplate;_iconTemplate;_loadingIconTemplate;onAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"content":this._contentTemplate=e.template;break;case"icon":this._iconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;default:this._contentTemplate=e.template;break}})}spinnerIconClass(){return Object.entries(this.iconClass()).filter(([,e])=>!!e).reduce((e,[r])=>e+` ${r}`,"p-button-loading-icon")}iconClass(){return{[`p-button-loading-icon pi-spin ${this.loadingIcon??""}`]:this.loading,"p-button-icon":!0,[this.icon]:!0,"p-button-icon-left":this.iconPos==="left"&&this.label,"p-button-icon-right":this.iconPos==="right"&&this.label,"p-button-icon-top":this.iconPos==="top"&&this.label,"p-button-icon-bottom":this.iconPos==="bottom"&&this.label}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["p-button"]],contentQueries:function(r,i,o){if(r&1&&(V(o,p8,5),V(o,f8,5),V(o,h8,5),V(o,xt,4)),r&2){let s;M(s=O())&&(i.contentTemplate=s.first),M(s=O())&&(i.loadingIconTemplate=s.first),M(s=O())&&(i.iconTemplate=s.first),M(s=O())&&(i.templates=s)}},inputs:{hostName:"hostName",type:"type",badge:"badge",disabled:[2,"disabled","disabled",R],raised:[2,"raised","raised",R],rounded:[2,"rounded","rounded",R],text:[2,"text","text",R],plain:[2,"plain","plain",R],outlined:[2,"outlined","outlined",R],link:[2,"link","link",R],tabindex:[2,"tabindex","tabindex",Me],size:"size",variant:"variant",style:"style",styleClass:"styleClass",badgeClass:"badgeClass",badgeSeverity:"badgeSeverity",ariaLabel:"ariaLabel",autofocus:[2,"autofocus","autofocus",R],iconPos:"iconPos",icon:"icon",label:"label",loading:[2,"loading","loading",R],loadingIcon:"loadingIcon",severity:"severity",buttonProps:"buttonProps",fluid:[1,"fluid"]},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},features:[xe([mM,{provide:gM,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],ngContentSelectors:m8,decls:7,vars:14,consts:[["pRipple","",3,"click","focus","blur","ngStyle","disabled","pAutoFocus","pBind"],[4,"ngTemplateOutlet"],[4,"ngIf"],[3,"class","pBind",4,"ngIf"],[3,"value","severity","pt",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","spinner",3,"class","pBind","spin",4,"ngIf"],[3,"pBind"],["data-p-icon","spinner",3,"pBind","spin"],[3,"ngIf"],[3,"value","severity","pt"]],template:function(r,i){r&1&&(zt(),E(0,"button",0),q("click",function(s){return i.onClick.emit(s)})("focus",function(s){return i.onFocus.emit(s)})("blur",function(s){return i.onBlur.emit(s)}),Ot(1),C(2,g8,1,0,"ng-container",1)(3,C8,3,6,"ng-container",2)(4,S8,3,6,"ng-container",2)(5,I8,2,5,"span",3)(6,D8,1,3,"p-badge",4),T()),r&2&&(k(i.cn(i.cx("root"),i.styleClass,i.buttonProps==null?null:i.buttonProps.styleClass)),h("ngStyle",i.style||(i.buttonProps==null?null:i.buttonProps.style))("disabled",i.disabled||i.loading||(i.buttonProps==null?null:i.buttonProps.disabled))("pAutoFocus",i.autofocus||(i.buttonProps==null?null:i.buttonProps.autofocus))("pBind",i.ptm("root")),J("type",i.type||(i.buttonProps==null?null:i.buttonProps.type))("aria-label",i.ariaLabel||(i.buttonProps==null?null:i.buttonProps.ariaLabel))("tabindex",i.tabindex||(i.buttonProps==null?null:i.buttonProps.tabindex)),g(2),h("ngTemplateOutlet",i.contentTemplate||i._contentTemplate),g(),h("ngIf",i.loading),g(),h("ngIf",!i.loading),g(),h("ngIf",!i.contentTemplate&&!i._contentTemplate&&i.label),g(),h("ngIf",!i.contentTemplate&&!i._contentTemplate&&i.badge))},dependencies:[Qe,Ut,kt,tr,Ui,$i,To,Kh,Zv,Te,te],encapsulation:2,changeDetection:0})}return t})(),bM=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({imports:[Qe,rr,Te,Te]})}return t})();var Pe=class t{static isArray(n,e=!0){return Array.isArray(n)&&(e||n.length!==0)}static isObject(n,e=!0){return typeof n=="object"&&!Array.isArray(n)&&n!=null&&(e||Object.keys(n).length!==0)}static equals(n,e,r){return r?this.resolveFieldData(n,r)===this.resolveFieldData(e,r):this.equalsByValue(n,e)}static equalsByValue(n,e){if(n===e)return!0;if(n&&e&&typeof n=="object"&&typeof e=="object"){var r=Array.isArray(n),i=Array.isArray(e),o,s,a;if(r&&i){if(s=n.length,s!=e.length)return!1;for(o=s;o--!==0;)if(!this.equalsByValue(n[o],e[o]))return!1;return!0}if(r!=i)return!1;var l=this.isDate(n),c=this.isDate(e);if(l!=c)return!1;if(l&&c)return n.getTime()==e.getTime();var d=n instanceof RegExp,u=e instanceof RegExp;if(d!=u)return!1;if(d&&u)return n.toString()==e.toString();var p=Object.keys(n);if(s=p.length,s!==Object.keys(e).length)return!1;for(o=s;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,p[o]))return!1;for(o=s;o--!==0;)if(a=p[o],!this.equalsByValue(n[a],e[a]))return!1;return!0}return n!==n&&e!==e}static resolveFieldData(n,e){if(n&&e){if(this.isFunction(e))return e(n);if(e.indexOf(".")==-1)return n[e];{let r=e.split("."),i=n;for(let o=0,s=r.length;o<s;++o){if(i==null)return null;i=i[r[o]]}return i}}else return null}static isFunction(n){return!!(n&&n.constructor&&n.call&&n.apply)}static reorderArray(n,e,r){let i;n&&e!==r&&(r>=n.length&&(r%=n.length,e%=n.length),n.splice(r,0,n.splice(e,1)[0]))}static insertIntoOrderedArray(n,e,r,i){if(r.length>0){let o=!1;for(let s=0;s<r.length;s++)if(this.findIndexInList(r[s],i)>e){r.splice(s,0,n),o=!0;break}o||r.push(n)}else r.push(n)}static findIndexInList(n,e){let r=-1;if(e){for(let i=0;i<e.length;i++)if(e[i]==n){r=i;break}}return r}static contains(n,e){if(n!=null&&e&&e.length){for(let r of e)if(this.equals(n,r))return!0}return!1}static removeAccents(n){return n&&(n=n.normalize("NFKD").replace(new RegExp("\\p{Diacritic}","gu"),"")),n}static isDate(n){return Object.prototype.toString.call(n)==="[object Date]"}static isEmpty(n){return n==null||n===""||Array.isArray(n)&&n.length===0||!this.isDate(n)&&typeof n=="object"&&Object.keys(n).length===0}static isNotEmpty(n){return!this.isEmpty(n)}static compare(n,e,r,i=1){let o=-1,s=this.isEmpty(n),a=this.isEmpty(e);return s&&a?o=0:s?o=i:a?o=-i:typeof n=="string"&&typeof e=="string"?o=n.localeCompare(e,r,{numeric:!0}):o=n<e?-1:n>e?1:0,o}static sort(n,e,r=1,i,o=1){let s=t.compare(n,e,i,r),a=r;return(t.isEmpty(n)||t.isEmpty(e))&&(a=o===1?r:o),a*s}static merge(n,e){if(!(n==null&&e==null)){{if((n==null||typeof n=="object")&&(e==null||typeof e=="object"))return _(_({},n||{}),e||{});if((n==null||typeof n=="string")&&(e==null||typeof e=="string"))return[n||"",e||""].join(" ")}return e||n}}static isPrintableCharacter(n=""){return this.isNotEmpty(n)&&n.length===1&&n.match(/\S| /)}static getItemValue(n,...e){return this.isFunction(n)?n(...e):n}static findLastIndex(n,e){let r=-1;if(this.isNotEmpty(n))try{r=n.findLastIndex(e)}catch{r=n.lastIndexOf([...n].reverse().find(e))}return r}static findLast(n,e){let r;if(this.isNotEmpty(n))try{r=n.findLast(e)}catch{r=[...n].reverse().find(e)}return r}static deepEquals(n,e){if(n===e)return!0;if(n&&e&&typeof n=="object"&&typeof e=="object"){var r=Array.isArray(n),i=Array.isArray(e),o,s,a;if(r&&i){if(s=n.length,s!=e.length)return!1;for(o=s;o--!==0;)if(!this.deepEquals(n[o],e[o]))return!1;return!0}if(r!=i)return!1;var l=n instanceof Date,c=e instanceof Date;if(l!=c)return!1;if(l&&c)return n.getTime()==e.getTime();var d=n instanceof RegExp,u=e instanceof RegExp;if(d!=u)return!1;if(d&&u)return n.toString()==e.toString();var p=Object.keys(n);if(s=p.length,s!==Object.keys(e).length)return!1;for(o=s;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,p[o]))return!1;for(o=s;o--!==0;)if(a=p[o],!this.deepEquals(n[a],e[a]))return!1;return!0}return n!==n&&e!==e}static minifyCSS(n){return n&&n.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":")}static toFlatCase(n){return this.isString(n)?n.replace(/(-|_)/g,"").toLowerCase():n}static isString(n,e=!0){return typeof n=="string"&&(e||n!=="")}},vM=0;function _M(t="pn_id_"){return vM++,`${t}${vM}`}function M8(){let t=[],n=(o,s)=>{let a=t.length>0?t[t.length-1]:{key:o,value:s},l=a.value+(a.key===o?0:s)+2;return t.push({key:o,value:l}),l},e=o=>{t=t.filter(s=>s.value!==o)},r=()=>t.length>0?t[t.length-1].value:0,i=o=>o&&parseInt(o.style.zIndex,10)||0;return{get:i,set:(o,s,a)=>{s&&(s.style.zIndex=String(n(o,a)))},clear:o=>{o&&(e(i(o)),o.style.zIndex="")},getCurrent:()=>r(),generateZIndex:n,revertZIndex:e}}var ir=M8();var wM=`
.p-tooltip {
position: absolute;
display: none;
max-width: dt('tooltip.max.width');
}
.p-tooltip-right,
.p-tooltip-left {
padding: 0 dt('tooltip.gutter');
}
.p-tooltip-top,
.p-tooltip-bottom {
padding: dt('tooltip.gutter') 0;
}
.p-tooltip-text {
white-space: pre-line;
word-break: break-word;
background: dt('tooltip.background');
color: dt('tooltip.color');
padding: dt('tooltip.padding');
box-shadow: dt('tooltip.shadow');
border-radius: dt('tooltip.border.radius');
}
.p-tooltip-arrow {
position: absolute;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
}
.p-tooltip-right .p-tooltip-arrow {
margin-top: calc(-1 * dt('tooltip.gutter'));
border-width: dt('tooltip.gutter') dt('tooltip.gutter') dt('tooltip.gutter') 0;
border-right-color: dt('tooltip.background');
}
.p-tooltip-left .p-tooltip-arrow {
margin-top: calc(-1 * dt('tooltip.gutter'));
border-width: dt('tooltip.gutter') 0 dt('tooltip.gutter') dt('tooltip.gutter');
border-left-color: dt('tooltip.background');
}
.p-tooltip-top .p-tooltip-arrow {
margin-left: calc(-1 * dt('tooltip.gutter'));
border-width: dt('tooltip.gutter') dt('tooltip.gutter') 0 dt('tooltip.gutter');
border-top-color: dt('tooltip.background');
border-bottom-color: dt('tooltip.background');
}
.p-tooltip-bottom .p-tooltip-arrow {
margin-left: calc(-1 * dt('tooltip.gutter'));
border-width: 0 dt('tooltip.gutter') dt('tooltip.gutter') dt('tooltip.gutter');
border-top-color: dt('tooltip.background');
border-bottom-color: dt('tooltip.background');
}
`;var O8={root:"p-tooltip p-component",arrow:"p-tooltip-arrow",text:"p-tooltip-text"},CM=(()=>{class t extends Oe{name="tooltip";style=wM;classes=O8;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var xM=new H("TOOLTIP_INSTANCE"),Jh=(()=>{class t extends ut{zone;viewContainer;$pcTooltip=x(xM,{optional:!0,skipSelf:!0})??void 0;tooltipPosition;tooltipEvent="hover";positionStyle;tooltipStyleClass;tooltipZIndex;escape=!0;showDelay;hideDelay;life;positionTop;positionLeft;autoHide=!0;fitContent=!0;hideOnEscape=!0;content;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this.deactivate()}tooltipOptions;appendTo=ae(void 0);$appendTo=We(()=>this.appendTo()||this.config.overlayAppendTo());_tooltipOptions={tooltipLabel:null,tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",positionStyle:null,tooltipStyleClass:null,tooltipZIndex:"auto",escape:!0,disabled:null,showDelay:null,hideDelay:null,positionTop:null,positionLeft:null,life:null,autoHide:!0,hideOnEscape:!0,id:gt("pn_id_")+"_tooltip"};_disabled;container;styleClass;tooltipText;rootPTClasses="";showTimeout;hideTimeout;active;mouseEnterListener;mouseLeaveListener;containerMouseleaveListener;clickListener;focusListener;blurListener;documentEscapeListener;scrollHandler;resizeListener;_componentStyle=x(CM);interactionInProgress=!1;ptTooltip=ae();constructor(e,r){super(),this.zone=e,this.viewContainer=r,Lt(()=>{this.ptTooltip()&&this.directivePT.set(this.ptTooltip())})}onAfterViewInit(){kn(this.platformId)&&this.zone.runOutsideAngular(()=>{let e=this.getOption("tooltipEvent");if((e==="hover"||e==="both")&&(this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onInputClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("click",this.clickListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener)),e==="focus"||e==="both"){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let r=this.el.nativeElement.querySelector(".p-component");r||(r=this.getTarget(this.el.nativeElement)),r.addEventListener("focus",this.focusListener),r.addEventListener("blur",this.blurListener)}})}onChanges(e){e.tooltipPosition&&this.setOption({tooltipPosition:e.tooltipPosition.currentValue}),e.tooltipEvent&&this.setOption({tooltipEvent:e.tooltipEvent.currentValue}),e.appendTo&&this.setOption({appendTo:e.appendTo.currentValue}),e.positionStyle&&this.setOption({positionStyle:e.positionStyle.currentValue}),e.tooltipStyleClass&&this.setOption({tooltipStyleClass:e.tooltipStyleClass.currentValue}),e.tooltipZIndex&&this.setOption({tooltipZIndex:e.tooltipZIndex.currentValue}),e.escape&&this.setOption({escape:e.escape.currentValue}),e.showDelay&&this.setOption({showDelay:e.showDelay.currentValue}),e.hideDelay&&this.setOption({hideDelay:e.hideDelay.currentValue}),e.life&&this.setOption({life:e.life.currentValue}),e.positionTop&&this.setOption({positionTop:e.positionTop.currentValue}),e.positionLeft&&this.setOption({positionLeft:e.positionLeft.currentValue}),e.disabled&&this.setOption({disabled:e.disabled.currentValue}),e.content&&(this.setOption({tooltipLabel:e.content.currentValue}),this.active&&(e.content.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),e.autoHide&&this.setOption({autoHide:e.autoHide.currentValue}),e.id&&this.setOption({id:e.id.currentValue}),e.tooltipOptions&&(this._tooltipOptions=_(_({},this._tooltipOptions),e.tooltipOptions.currentValue),this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}isAutoHide(){return this.getOption("autoHide")}onMouseEnter(e){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(e){this.isAutoHide()?this.deactivate():!(wn(e.relatedTarget,"p-tooltip")||wn(e.relatedTarget,"p-tooltip-text")||wn(e.relatedTarget,"p-tooltip-arrow"))&&this.deactivate()}onFocus(e){this.activate()}onBlur(e){this.deactivate()}onInputClick(e){this.deactivate()}activate(){if(!this.interactionInProgress){if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let e=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},e)}this.getOption("hideOnEscape")&&(this.documentEscapeListener=this.renderer.listen("document","keydown.escape",()=>{this.deactivate(),this.documentEscapeListener?.()})),this.interactionInProgress=!0}}deactivate(){this.interactionInProgress=!1,this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide(),this.documentEscapeListener&&this.documentEscapeListener()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=Xd("div",{class:this.cx("root"),role:"tooltip","p-bind":this.ptm("root"),"data-pc-section":"root"});let e=Xd("div",{class:"p-tooltip-arrow","p-bind":this.ptm("arrow"),"data-pc-section":"arrow"});this.container.appendChild(e),this.tooltipText=Xd("div",{class:"p-tooltip-text","p-bind":this.ptm("text"),"data-pc-section":"text"}),this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),this.getOption("appendTo")==="body"?document.body.appendChild(this.container):this.getOption("appendTo")==="target"?Jd(this.container,this.el.nativeElement):Jd(this.getOption("appendTo"),this.container),this.container.style.display="none",this.fitContent&&(this.container.style.width="fit-content"),this.isAutoHide()?this.container.style.pointerEvents="none":(this.container.style.pointerEvents="unset",this.bindContainerMouseleaveListener())}bindContainerMouseleaveListener(){if(!this.containerMouseleaveListener){let e=this.container??this.container.nativeElement;this.containerMouseleaveListener=this.renderer.listen(e,"mouseleave",r=>{this.deactivate()})}}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){if(!this.getOption("tooltipLabel")||this.getOption("disabled"))return;this.create(),this.el.nativeElement.closest("p-dialog")?setTimeout(()=>{this.container&&(this.container.style.display="inline-block"),this.container&&this.align()},100):(this.container.style.display="inline-block",this.align()),nk(this.container,250),this.getOption("tooltipZIndex")==="auto"?ir.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener()}hide(){this.getOption("tooltipZIndex")==="auto"&&ir.clear(this.container),this.remove()}updateText(){let e=this.getOption("tooltipLabel");if(e&&typeof e.createEmbeddedView=="function"){let r=this.viewContainer.createEmbeddedView(e);r.detectChanges(),r.rootNodes.forEach(i=>this.tooltipText.appendChild(i))}else this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(e))):this.tooltipText.innerHTML=e}align(){let e=this.getOption("tooltipPosition"),i={top:[this.alignTop,this.alignBottom,this.alignRight,this.alignLeft],bottom:[this.alignBottom,this.alignTop,this.alignRight,this.alignLeft],left:[this.alignLeft,this.alignRight,this.alignTop,this.alignBottom],right:[this.alignRight,this.alignLeft,this.alignTop,this.alignBottom]}[e]||[];for(let[o,s]of i.entries())if(o===0)s.call(this);else if(this.isOutOfBounds())s.call(this);else break}getHostOffset(){if(this.getOption("appendTo")==="body"||this.getOption("appendTo")==="target"){let e=this.el.nativeElement.getBoundingClientRect(),r=e.left+Fv(),i=e.top+Lv();return{left:r,top:i}}else return{left:0,top:0}}get activeElement(){return this.el.nativeElement.nodeName.startsWith("P-")?wt(this.el.nativeElement,".p-component"):this.el.nativeElement}alignRight(){this.preAlign("right");let e=this.activeElement,r=Mn(e),i=(oi(e)-oi(this.container))/2;this.alignTooltip(r,i);let o=this.getArrowElement();o.style.top="50%",o.style.right=null,o.style.bottom=null,o.style.left="0"}alignLeft(){this.preAlign("left");let e=this.getArrowElement(),r=Mn(this.container),i=(oi(this.el.nativeElement)-oi(this.container))/2;this.alignTooltip(-r,i),e.style.top="50%",e.style.right="0",e.style.bottom=null,e.style.left=null}alignTop(){this.preAlign("top");let e=this.getArrowElement(),r=this.getHostOffset(),i=Mn(this.container),o=(Mn(this.el.nativeElement)-Mn(this.container))/2,s=oi(this.container);this.alignTooltip(o,-s);let a=r.left-this.getHostOffset().left+i/2;e.style.top=null,e.style.right=null,e.style.bottom="0",e.style.left=a+"px"}getArrowElement(){return wt(this.container,'[data-pc-section="arrow"]')}alignBottom(){this.preAlign("bottom");let e=this.getArrowElement(),r=Mn(this.container),i=this.getHostOffset(),o=(Mn(this.el.nativeElement)-Mn(this.container))/2,s=oi(this.el.nativeElement);this.alignTooltip(o,s);let a=i.left-this.getHostOffset().left+r/2;e.style.top="0",e.style.right=null,e.style.bottom=null,e.style.left=a+"px"}alignTooltip(e,r){let i=this.getHostOffset(),o=i.left+e,s=i.top+r;this.container.style.left=o+this.getOption("positionLeft")+"px",this.container.style.top=s+this.getOption("positionTop")+"px"}setOption(e){this._tooltipOptions=_(_({},this._tooltipOptions),e)}getOption(e){return this._tooltipOptions[e]}getTarget(e){return wn(e,"p-inputwrapper")?wt(e,"input"):e}preAlign(e){this.container.style.left="-999px",this.container.style.top="-999px",this.container.className=this.cn(this.cx("root"),this.ptm("root")?.class,"p-tooltip-"+e,this.getOption("tooltipStyleClass"))}isOutOfBounds(){let e=this.container.getBoundingClientRect(),r=e.top,i=e.left,o=Mn(this.container),s=oi(this.container),a=zh();return i+o>a.width||i<0||r<0||r+s>a.height}onWindowResize(e){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new xo(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){let e=this.getOption("tooltipEvent");if((e==="hover"||e==="both")&&(this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener)),e==="focus"||e==="both"){let r=this.el.nativeElement.querySelector(".p-component");r||(r=this.getTarget(this.el.nativeElement)),r.removeEventListener("focus",this.focusListener),r.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&(this.getOption("appendTo")==="body"?document.body.removeChild(this.container):this.getOption("appendTo")==="target"?this.el.nativeElement.removeChild(this.container):lk(this.getOption("appendTo"),this.container)),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.unbindContainerMouseleaveListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}onDestroy(){this.unbindEvents(),this.container&&ir.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.documentEscapeListener&&this.documentEscapeListener()}static \u0275fac=function(r){return new(r||t)(de($e),de(Mr))};static \u0275dir=Ue({type:t,selectors:[["","pTooltip",""]],inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:[2,"escape","escape",R],showDelay:[2,"showDelay","showDelay",Me],hideDelay:[2,"hideDelay","hideDelay",Me],life:[2,"life","life",Me],positionTop:[2,"positionTop","positionTop",Me],positionLeft:[2,"positionLeft","positionLeft",Me],autoHide:[2,"autoHide","autoHide",R],fitContent:[2,"fitContent","fitContent",R],hideOnEscape:[2,"hideOnEscape","hideOnEscape",R],content:[0,"pTooltip","content"],disabled:[0,"tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions",appendTo:[1,"appendTo"],ptTooltip:[1,"ptTooltip"]},features:[xe([CM,{provide:xM,useExisting:t},{provide:Ke,useExisting:t}]),j]})}return t})();var R8=["*"];function P8(t,n){if(t&1){let e=se();E(0,"p-button",9),q("click",function(){S(e);let i=m();return I(i.router.navigate(["/"]))}),T()}}var ls=class t{title=ae.required();router=x(Vn);noHomeButton=ae(!1);static \u0275fac=function(e){return new(e||t)};static \u0275cmp=$({type:t,selectors:[["app-base"]],inputs:{title:[1,"title"],noHomeButton:[1,"noHomeButton"]},ngContentSelectors:R8,decls:11,vars:2,consts:[[1,"min-h-screen","flex","items-center","justify-center","p-4"],[1,"border-2","rounded-2xl","bg-gray-100/50","drop-shadow-2xl","w-full","mx-auto","p-4",2,"max-width","800px"],[1,"flex","justify-between","items-center"],[1,"flex","items-center","gap-2","w-full"],[1,"text-2xl","font-bold"],[1,"flex","items-center","gap-2"],["icon","fa fa-home","text","","rounded","","outlined","","pTooltip","Home","tooltipPosition","left"],[1,"my-4"],[1,"mt-4"],["icon","fa fa-home","text","","rounded","","outlined","","pTooltip","Home","tooltipPosition","left",3,"click"]],template:function(e,r){e&1&&(zt(),E(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),ce(5),T()(),E(6,"div",5),rt(7,P8,1,0,"p-button",6),T()(),X(8,"hr",7),E(9,"div",8),Ot(10),T()()()),e&2&&(g(5),Ze(r.title()),g(2),it(r.noHomeButton()?-1:7))},dependencies:[rr,Jh],styles:['*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[_ngcontent-%COMP%]::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}[_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-content: ""}html[_ngcontent-%COMP%], [_nghost-%COMP%]{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body[_ngcontent-%COMP%]{margin:0;line-height:inherit}hr[_ngcontent-%COMP%]{height:0;color:inherit;border-top-width:1px}abbr[_ngcontent-%COMP%]:where([title]){text-decoration:underline dotted}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{font-size:inherit;font-weight:inherit}a[_ngcontent-%COMP%]{color:inherit;text-decoration:inherit}b[_ngcontent-%COMP%], strong[_ngcontent-%COMP%]{font-weight:bolder}code[_ngcontent-%COMP%], kbd[_ngcontent-%COMP%], samp[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small[_ngcontent-%COMP%]{font-size:80%}sub[_ngcontent-%COMP%], sup[_ngcontent-%COMP%]{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub[_ngcontent-%COMP%]{bottom:-.25em}sup[_ngcontent-%COMP%]{top:-.5em}table[_ngcontent-%COMP%]{text-indent:0;border-color:inherit;border-collapse:collapse}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%], optgroup[_ngcontent-%COMP%], select[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{text-transform:none}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%]:where([type=button]), input[_ngcontent-%COMP%]:where([type=reset]), input[_ngcontent-%COMP%]:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}[_ngcontent-%COMP%]:-moz-focusring{outline:auto}[_ngcontent-%COMP%]:-moz-ui-invalid{box-shadow:none}progress[_ngcontent-%COMP%]{vertical-align:baseline}[_ngcontent-%COMP%]::-webkit-inner-spin-button, [_ngcontent-%COMP%]::-webkit-outer-spin-button{height:auto}[type=search][_ngcontent-%COMP%]{-webkit-appearance:textfield;outline-offset:-2px}[_ngcontent-%COMP%]::-webkit-search-decoration{-webkit-appearance:none}[_ngcontent-%COMP%]::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary[_ngcontent-%COMP%]{display:list-item}blockquote[_ngcontent-%COMP%], dl[_ngcontent-%COMP%], dd[_ngcontent-%COMP%], h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%], hr[_ngcontent-%COMP%], figure[_ngcontent-%COMP%], p[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{margin:0}fieldset[_ngcontent-%COMP%]{margin:0;padding:0}legend[_ngcontent-%COMP%]{padding:0}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%], menu[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0}dialog[_ngcontent-%COMP%]{padding:0}textarea[_ngcontent-%COMP%]{resize:vertical}input[_ngcontent-%COMP%]::placeholder, textarea[_ngcontent-%COMP%]::placeholder{opacity:1;color:#9ca3af}button[_ngcontent-%COMP%], [role=button][_ngcontent-%COMP%]{cursor:pointer}[_ngcontent-%COMP%]:disabled{cursor:default}img[_ngcontent-%COMP%], svg[_ngcontent-%COMP%], video[_ngcontent-%COMP%], canvas[_ngcontent-%COMP%], audio[_ngcontent-%COMP%], iframe[_ngcontent-%COMP%], embed[_ngcontent-%COMP%], object[_ngcontent-%COMP%]{display:block;vertical-align:middle}img[_ngcontent-%COMP%], video[_ngcontent-%COMP%]{max-width:100%;height:auto}[hidden][_ngcontent-%COMP%]:where(:not([hidden=until-found])){display:none}.visible[_ngcontent-%COMP%]{visibility:visible}.absolute[_ngcontent-%COMP%]{position:absolute}.col-span-2[_ngcontent-%COMP%]{grid-column:span 2 / span 2}.mx-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.my-4[_ngcontent-%COMP%]{margin-top:1rem;margin-bottom:1rem}.mb-4[_ngcontent-%COMP%]{margin-bottom:1rem}.ml-auto[_ngcontent-%COMP%]{margin-left:auto}.mr-auto[_ngcontent-%COMP%]{margin-right:auto}.mt-4[_ngcontent-%COMP%]{margin-top:1rem}.line-clamp-2[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block[_ngcontent-%COMP%]{display:block}.flex[_ngcontent-%COMP%]{display:flex}.table[_ngcontent-%COMP%]{display:table}.grid[_ngcontent-%COMP%]{display:grid}.h-16[_ngcontent-%COMP%]{height:4rem}.h-32[_ngcontent-%COMP%]{height:8rem}.min-h-screen[_ngcontent-%COMP%]{min-height:100vh}.w-16[_ngcontent-%COMP%]{width:4rem}.w-32[_ngcontent-%COMP%]{width:8rem}.w-full[_ngcontent-%COMP%]{width:100%}.transform[_ngcontent-%COMP%]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.grid-cols-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col[_ngcontent-%COMP%]{flex-direction:column}.items-center[_ngcontent-%COMP%]{align-items:center}.justify-center[_ngcontent-%COMP%]{justify-content:center}.justify-between[_ngcontent-%COMP%]{justify-content:space-between}.gap-2[_ngcontent-%COMP%]{gap:.5rem}.gap-4[_ngcontent-%COMP%]{gap:1rem}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded[_ngcontent-%COMP%]{border-radius:.25rem}.rounded-2xl[_ngcontent-%COMP%]{border-radius:1rem}.rounded-lg[_ngcontent-%COMP%]{border-radius:.5rem}.border[_ngcontent-%COMP%]{border-width:1px}.border-2[_ngcontent-%COMP%]{border-width:2px}.bg-gray-100\\/50[_ngcontent-%COMP%]{background-color:#f3f4f680}.bg-red-500[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-white[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-1[_ngcontent-%COMP%]{padding:.25rem}.p-2[_ngcontent-%COMP%]{padding:.5rem}.p-4[_ngcontent-%COMP%]{padding:1rem}.p-8[_ngcontent-%COMP%]{padding:2rem}.pt-4[_ngcontent-%COMP%]{padding-top:1rem}.text-center[_ngcontent-%COMP%]{text-align:center}.text-2xl[_ngcontent-%COMP%]{font-size:1.5rem;line-height:2rem}.text-lg[_ngcontent-%COMP%]{font-size:1.125rem;line-height:1.75rem}.text-sm[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem}.font-bold[_ngcontent-%COMP%]{font-weight:700}.italic[_ngcontent-%COMP%]{font-style:italic}.text-blue-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-gray-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-white[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.drop-shadow[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-2xl[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 25px 25px rgb(0 0 0 / .15));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-lg[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / .04)) drop-shadow(0 4px 3px rgb(0 0 0 / .1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter[_ngcontent-%COMP%]{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.text-muted-color[_ngcontent-%COMP%]{color:var(--p-text-muted-color)}@keyframes _ngcontent-%COMP%_enter{0%{opacity:var(--p-enter-opacity, 1);transform:translate3d(var(--p-enter-translate-x, 0),var(--p-enter-translate-y, 0),0) scale3d(var(--p-enter-scale, 1),var(--p-enter-scale, 1),var(--p-enter-scale, 1)) rotate(var(--p-enter-rotate, 0))}}@keyframes _ngcontent-%COMP%_leave{to{opacity:var(--p-leave-opacity, 1);transform:translate3d(var(--p-leave-translate-x, 0),var(--p-leave-translate-y, 0),0) scale3d(var(--p-leave-scale, 1),var(--p-leave-scale, 1),var(--p-leave-scale, 1)) rotate(var(--p-leave-rotate, 0))}}.hover\\:text-blue-700[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.hover\\:underline[_ngcontent-%COMP%]:hover{text-decoration-line:underline}@media(min-width:640px){.sm\\:grid-cols-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}']})};function Ql(t,n){if(!!!t)throw new Error(n)}function TM(t){return typeof t=="object"&&t!==null}function EM(t,n){if(!!!t)throw new Error(n??"Unexpected invariant triggered.")}var A8=/\r\n|[\n\r]/g;function Kl(t,n){let e=0,r=1;for(let i of t.body.matchAll(A8)){if(typeof i.index=="number"||EM(!1),i.index>=n)break;e=i.index+i[0].length,r+=1}return{line:r,column:n+1-e}}function e_(t){return Xh(t.source,Kl(t.source,t.start))}function Xh(t,n){let e=t.locationOffset.column-1,r="".padStart(e)+t.body,i=n.line-1,o=t.locationOffset.line-1,s=n.line+o,a=n.line===1?e:0,l=n.column+a,c=`${t.name}:${s}:${l}
`,d=r.split(/\r\n|[\n\r]/g),u=d[i];if(u.length>120){let p=Math.floor(l/80),f=l%80,y=[];for(let b=0;b<u.length;b+=80)y.push(u.slice(b,b+80));return c+SM([[`${s} |`,y[0]],...y.slice(1,p+1).map(b=>["|",b]),["|","^".padStart(f)],["|",y[p+1]]])}return c+SM([[`${s-1} |`,d[i-1]],[`${s} |`,u],["|","^".padStart(l)],[`${s+1} |`,d[i+1]]])}function SM(t){let n=t.filter(([r,i])=>i!==void 0),e=Math.max(...n.map(([r])=>r.length));return n.map(([r,i])=>r.padStart(e)+(i?" "+i:"")).join(`
`)}function N8(t){let n=t[0];return n==null||"kind"in n||"length"in n?{nodes:n,source:t[1],positions:t[2],path:t[3],originalError:t[4],extensions:t[5]}:n}var em=class t extends Error{constructor(n,...e){var r,i,o;let{nodes:s,source:a,positions:l,path:c,originalError:d,extensions:u}=N8(e);super(n),this.name="GraphQLError",this.path=c??void 0,this.originalError=d??void 0,this.nodes=IM(Array.isArray(s)?s:s?[s]:void 0);let p=IM((r=this.nodes)===null||r===void 0?void 0:r.map(y=>y.loc).filter(y=>y!=null));this.source=a??(p==null||(i=p[0])===null||i===void 0?void 0:i.source),this.positions=l??p?.map(y=>y.start),this.locations=l&&a?l.map(y=>Kl(a,y)):p?.map(y=>Kl(y.source,y.start));let f=TM(d?.extensions)?d?.extensions:void 0;this.extensions=(o=u??f)!==null&&o!==void 0?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),d!=null&&d.stack?Object.defineProperty(this,"stack",{value:d.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let n=this.message;if(this.nodes)for(let e of this.nodes)e.loc&&(n+=`
`+e_(e.loc));else if(this.source&&this.locations)for(let e of this.locations)n+=`
`+Xh(this.source,e);return n}toJSON(){let n={message:this.message};return this.locations!=null&&(n.locations=this.locations),this.path!=null&&(n.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(n.extensions=this.extensions),n}};function IM(t){return t===void 0||t.length===0?void 0:t}function en(t,n,e){return new em(`Syntax Error: ${e}`,{source:t,positions:[n]})}var Yl=class{constructor(n,e,r){this.start=n.start,this.end=e.end,this.startToken=n,this.endToken=e,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},da=class{constructor(n,e,r,i,o,s){this.kind=n,this.start=e,this.end=r,this.line=i,this.column=o,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},t_={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:["name","directives"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},F8=new Set(Object.keys(t_));function n_(t){let n=t?.kind;return typeof n=="string"&&F8.has(n)}var Qn=(function(t){return t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription",t})(Qn||{});var tm=(function(t){return t.QUERY="QUERY",t.MUTATION="MUTATION",t.SUBSCRIPTION="SUBSCRIPTION",t.FIELD="FIELD",t.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",t.FRAGMENT_SPREAD="FRAGMENT_SPREAD",t.INLINE_FRAGMENT="INLINE_FRAGMENT",t.VARIABLE_DEFINITION="VARIABLE_DEFINITION",t.SCHEMA="SCHEMA",t.SCALAR="SCALAR",t.OBJECT="OBJECT",t.FIELD_DEFINITION="FIELD_DEFINITION",t.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",t.INTERFACE="INTERFACE",t.UNION="UNION",t.ENUM="ENUM",t.ENUM_VALUE="ENUM_VALUE",t.INPUT_OBJECT="INPUT_OBJECT",t.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",t.DIRECTIVE_DEFINITION="DIRECTIVE_DEFINITION",t})(tm||{});var Q=(function(t){return t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.VARIABLE="Variable",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition",t.SCHEMA_EXTENSION="SchemaExtension",t.DIRECTIVE_EXTENSION="DirectiveExtension",t.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",t.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",t.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",t.UNION_TYPE_EXTENSION="UnionTypeExtension",t.ENUM_TYPE_EXTENSION="EnumTypeExtension",t.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",t.TYPE_COORDINATE="TypeCoordinate",t.MEMBER_COORDINATE="MemberCoordinate",t.ARGUMENT_COORDINATE="ArgumentCoordinate",t.DIRECTIVE_COORDINATE="DirectiveCoordinate",t.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate",t})(Q||{});function nm(t){return t===9||t===32}function Zl(t){return t>=48&&t<=57}function DM(t){return t>=97&&t<=122||t>=65&&t<=90}function r_(t){return DM(t)||t===95}function kM(t){return DM(t)||Zl(t)||t===95}function MM(t){var n;let e=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let s=0;s<t.length;++s){var o;let a=t[s],l=L8(a);l!==a.length&&(r=(o=r)!==null&&o!==void 0?o:s,i=s,s!==0&&l<e&&(e=l))}return t.map((s,a)=>a===0?s:s.slice(e)).slice((n=r)!==null&&n!==void 0?n:0,i+1)}function L8(t){let n=0;for(;n<t.length&&nm(t.charCodeAt(n));)++n;return n}function OM(t,n){let e=t.replace(/"""/g,'\\"""'),r=e.split(/\r\n|[\n\r]/g),i=r.length===1,o=r.length>1&&r.slice(1).every(f=>f.length===0||nm(f.charCodeAt(0))),s=e.endsWith('\\"""'),a=t.endsWith('"')&&!s,l=t.endsWith("\\"),c=a||l,d=!(n!=null&&n.minimize)&&(!i||t.length>70||c||o||s),u="",p=i&&nm(t.charCodeAt(0));return(d&&!p||o)&&(u+=`
`),u+=e,(d||c)&&(u+=`
`),'"""'+u+'"""'}var L=(function(t){return t.SOF="<SOF>",t.EOF="<EOF>",t.BANG="!",t.DOLLAR="$",t.AMP="&",t.PAREN_L="(",t.PAREN_R=")",t.DOT=".",t.SPREAD="...",t.COLON=":",t.EQUALS="=",t.AT="@",t.BRACKET_L="[",t.BRACKET_R="]",t.BRACE_L="{",t.PIPE="|",t.BRACE_R="}",t.NAME="Name",t.INT="Int",t.FLOAT="Float",t.STRING="String",t.BLOCK_STRING="BlockString",t.COMMENT="Comment",t})(L||{});var ou=class{constructor(n){let e=new da(L.SOF,0,0,0,0);this.source=n,this.lastToken=e,this.token=e,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let n=this.token;if(n.kind!==L.EOF)do if(n.next)n=n.next;else{let e=B8(this,n.end);n.next=e,e.prev=n,n=e}while(n.kind===L.COMMENT);return n}};function PM(t){return t===L.BANG||t===L.DOLLAR||t===L.AMP||t===L.PAREN_L||t===L.PAREN_R||t===L.DOT||t===L.SPREAD||t===L.COLON||t===L.EQUALS||t===L.AT||t===L.BRACKET_L||t===L.BRACKET_R||t===L.BRACE_L||t===L.PIPE||t===L.BRACE_R}function Jl(t){return t>=0&&t<=55295||t>=57344&&t<=1114111}function rm(t,n){return AM(t.charCodeAt(n))&&NM(t.charCodeAt(n+1))}function AM(t){return t>=55296&&t<=56319}function NM(t){return t>=56320&&t<=57343}function ua(t,n){let e=t.source.body.codePointAt(n);if(e===void 0)return L.EOF;if(e>=32&&e<=126){let r=String.fromCodePoint(e);return r==='"'?`'"'`:`"${r}"`}return"U+"+e.toString(16).toUpperCase().padStart(4,"0")}function rn(t,n,e,r,i){let o=t.line,s=1+e-t.lineStart;return new da(n,e,r,o,s,i)}function B8(t,n){let e=t.source.body,r=e.length,i=n;for(;i<r;){let o=e.charCodeAt(i);switch(o){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++t.line,t.lineStart=i;continue;case 13:e.charCodeAt(i+1)===10?i+=2:++i,++t.line,t.lineStart=i;continue;case 35:return V8(t,i);case 33:return rn(t,L.BANG,i,i+1);case 36:return rn(t,L.DOLLAR,i,i+1);case 38:return rn(t,L.AMP,i,i+1);case 40:return rn(t,L.PAREN_L,i,i+1);case 41:return rn(t,L.PAREN_R,i,i+1);case 46:if(e.charCodeAt(i+1)===46&&e.charCodeAt(i+2)===46)return rn(t,L.SPREAD,i,i+3);break;case 58:return rn(t,L.COLON,i,i+1);case 61:return rn(t,L.EQUALS,i,i+1);case 64:return rn(t,L.AT,i,i+1);case 91:return rn(t,L.BRACKET_L,i,i+1);case 93:return rn(t,L.BRACKET_R,i,i+1);case 123:return rn(t,L.BRACE_L,i,i+1);case 124:return rn(t,L.PIPE,i,i+1);case 125:return rn(t,L.BRACE_R,i,i+1);case 34:return e.charCodeAt(i+1)===34&&e.charCodeAt(i+2)===34?W8(t,i):z8(t,i)}if(Zl(o)||o===45)return j8(t,i,o);if(r_(o))return G8(t,i);throw en(t.source,i,o===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:Jl(o)||rm(e,i)?`Unexpected character: ${ua(t,i)}.`:`Invalid character: ${ua(t,i)}.`)}return rn(t,L.EOF,r,r)}function V8(t,n){let e=t.source.body,r=e.length,i=n+1;for(;i<r;){let o=e.charCodeAt(i);if(o===10||o===13)break;if(Jl(o))++i;else if(rm(e,i))i+=2;else break}return rn(t,L.COMMENT,n,i,e.slice(n+1,i))}function j8(t,n,e){let r=t.source.body,i=n,o=e,s=!1;if(o===45&&(o=r.charCodeAt(++i)),o===48){if(o=r.charCodeAt(++i),Zl(o))throw en(t.source,i,`Invalid number, unexpected digit after 0: ${ua(t,i)}.`)}else i=i_(t,i,o),o=r.charCodeAt(i);if(o===46&&(s=!0,o=r.charCodeAt(++i),i=i_(t,i,o),o=r.charCodeAt(i)),(o===69||o===101)&&(s=!0,o=r.charCodeAt(++i),(o===43||o===45)&&(o=r.charCodeAt(++i)),i=i_(t,i,o),o=r.charCodeAt(i)),o===46||r_(o))throw en(t.source,i,`Invalid number, expected digit but got: ${ua(t,i)}.`);return rn(t,s?L.FLOAT:L.INT,n,i,r.slice(n,i))}function i_(t,n,e){if(!Zl(e))throw en(t.source,n,`Invalid number, expected digit but got: ${ua(t,n)}.`);let r=t.source.body,i=n+1;for(;Zl(r.charCodeAt(i));)++i;return i}function z8(t,n){let e=t.source.body,r=e.length,i=n+1,o=i,s="";for(;i<r;){let a=e.charCodeAt(i);if(a===34)return s+=e.slice(o,i),rn(t,L.STRING,n,i+1,s);if(a===92){s+=e.slice(o,i);let l=e.charCodeAt(i+1)===117?e.charCodeAt(i+2)===123?H8(t,i):$8(t,i):U8(t,i);s+=l.value,i+=l.size,o=i;continue}if(a===10||a===13)break;if(Jl(a))++i;else if(rm(e,i))i+=2;else throw en(t.source,i,`Invalid character within String: ${ua(t,i)}.`)}throw en(t.source,i,"Unterminated string.")}function H8(t,n){let e=t.source.body,r=0,i=3;for(;i<12;){let o=e.charCodeAt(n+i++);if(o===125){if(i<5||!Jl(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|iu(o),r<0)break}throw en(t.source,n,`Invalid Unicode escape sequence: "${e.slice(n,n+i)}".`)}function $8(t,n){let e=t.source.body,r=RM(e,n+2);if(Jl(r))return{value:String.fromCodePoint(r),size:6};if(AM(r)&&e.charCodeAt(n+6)===92&&e.charCodeAt(n+7)===117){let i=RM(e,n+8);if(NM(i))return{value:String.fromCodePoint(r,i),size:12}}throw en(t.source,n,`Invalid Unicode escape sequence: "${e.slice(n,n+6)}".`)}function RM(t,n){return iu(t.charCodeAt(n))<<12|iu(t.charCodeAt(n+1))<<8|iu(t.charCodeAt(n+2))<<4|iu(t.charCodeAt(n+3))}function iu(t){return t>=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}function U8(t,n){let e=t.source.body;switch(e.charCodeAt(n+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw en(t.source,n,`Invalid character escape sequence: "${e.slice(n,n+2)}".`)}function W8(t,n){let e=t.source.body,r=e.length,i=t.lineStart,o=n+3,s=o,a="",l=[];for(;o<r;){let c=e.charCodeAt(o);if(c===34&&e.charCodeAt(o+1)===34&&e.charCodeAt(o+2)===34){a+=e.slice(s,o),l.push(a);let d=rn(t,L.BLOCK_STRING,n,o+3,MM(l).join(`
`));return t.line+=l.length-1,t.lineStart=i,d}if(c===92&&e.charCodeAt(o+1)===34&&e.charCodeAt(o+2)===34&&e.charCodeAt(o+3)===34){a+=e.slice(s,o),s=o+1,o+=4;continue}if(c===10||c===13){a+=e.slice(s,o),l.push(a),c===13&&e.charCodeAt(o+1)===10?o+=2:++o,a="",s=o,i=o;continue}if(Jl(c))++o;else if(rm(e,o))o+=2;else throw en(t.source,o,`Invalid character within String: ${ua(t,o)}.`)}throw en(t.source,o,"Unterminated string.")}function G8(t,n){let e=t.source.body,r=e.length,i=n+1;for(;i<r;){let o=e.charCodeAt(i);if(kM(o))++i;else break}return rn(t,L.NAME,n,i,e.slice(n,i))}function Xl(t){return im(t,[])}function im(t,n){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return q8(t,n);default:return String(t)}}function q8(t,n){if(t===null)return"null";if(n.includes(t))return"[Circular]";let e=[...n,t];if(Q8(t)){let r=t.toJSON();if(r!==t)return typeof r=="string"?r:im(r,e)}else if(Array.isArray(t))return Y8(t,e);return K8(t,e)}function Q8(t){return typeof t.toJSON=="function"}function K8(t,n){let e=Object.entries(t);return e.length===0?"{}":n.length>2?"["+Z8(t)+"]":"{ "+e.map(([i,o])=>i+": "+im(o,n)).join(", ")+" }"}function Y8(t,n){if(t.length===0)return"[]";if(n.length>2)return"[Array]";let e=Math.min(10,t.length),r=t.length-e,i=[];for(let o=0;o<e;++o)i.push(im(t[o],n));return r===1?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function Z8(t){let n=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if(n==="Object"&&typeof t.constructor=="function"){let e=t.constructor.name;if(typeof e=="string"&&e!=="")return e}return n}var J8=globalThis.process&&!0,FM=J8?function(n,e){return n instanceof e}:function(n,e){if(n instanceof e)return!0;if(typeof n=="object"&&n!==null){var r;let i=e.prototype[Symbol.toStringTag],o=Symbol.toStringTag in n?n[Symbol.toStringTag]:(r=n.constructor)===null||r===void 0?void 0:r.name;if(i===o){let s=Xl(n);throw new Error(`Cannot use ${i} "${s}" from another module or realm.
Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "graphql" are the dependencies of other
relied on modules, use "resolutions" to ensure only one version is installed.
https://yarnpkg.com/en/docs/selective-version-resolutions
Duplicate "graphql" modules cannot be used at the same time since different
versions may have different capabilities and behavior. The data from one
version used in the function from another could produce confusing and
spurious results.`)}}return!1};var ec=class{constructor(n,e="GraphQL request",r={line:1,column:1}){typeof n=="string"||Ql(!1,`Body must be a string. Received: ${Xl(n)}.`),this.body=n,this.name=e,this.locationOffset=r,this.locationOffset.line>0||Ql(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Ql(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};function LM(t){return FM(t,ec)}function sm(t,n){let e=new o_(t,n),r=e.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:e.tokenCount}),r}var o_=class{constructor(n,e={}){let o=e,{lexer:r}=o,i=Et(o,["lexer"]);if(r)this._lexer=r;else{let s=LM(n)?n:new ec(n);this._lexer=new ou(s)}this._options=i,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let n=this.expectToken(L.NAME);return this.node(n,{kind:Q.NAME,value:n.value})}parseDocument(){return this.node(this._lexer.token,{kind:Q.DOCUMENT,definitions:this.many(L.SOF,this.parseDefinition,L.EOF)})}parseDefinition(){if(this.peek(L.BRACE_L))return this.parseOperationDefinition();let n=this.peekDescription(),e=n?this._lexer.lookahead():this._lexer.token;if(n&&e.kind===L.BRACE_L)throw en(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(e.kind===L.NAME){switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(e.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(n)throw en(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if(e.value==="extend")return this.parseTypeSystemExtension()}throw this.unexpected(e)}parseOperationDefinition(){let n=this._lexer.token;if(this.peek(L.BRACE_L))return this.node(n,{kind:Q.OPERATION_DEFINITION,operation:Qn.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let e=this.parseDescription(),r=this.parseOperationType(),i;return this.peek(L.NAME)&&(i=this.parseName()),this.node(n,{kind:Q.OPERATION_DEFINITION,operation:r,description:e,name:i,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let n=this.expectToken(L.NAME);switch(n.value){case"query":return Qn.QUERY;case"mutation":return Qn.MUTATION;case"subscription":return Qn.SUBSCRIPTION}throw this.unexpected(n)}parseVariableDefinitions(){return this.optionalMany(L.PAREN_L,this.parseVariableDefinition,L.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Q.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(L.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(L.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let n=this._lexer.token;return this.expectToken(L.DOLLAR),this.node(n,{kind:Q.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Q.SELECTION_SET,selections:this.many(L.BRACE_L,this.parseSelection,L.BRACE_R)})}parseSelection(){return this.peek(L.SPREAD)?this.parseFragment():this.parseField()}parseField(){let n=this._lexer.token,e=this.parseName(),r,i;return this.expectOptionalToken(L.COLON)?(r=e,i=this.parseName()):i=e,this.node(n,{kind:Q.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(L.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(n){let e=n?this.parseConstArgument:this.parseArgument;return this.optionalMany(L.PAREN_L,e,L.PAREN_R)}parseArgument(n=!1){let e=this._lexer.token,r=this.parseName();return this.expectToken(L.COLON),this.node(e,{kind:Q.ARGUMENT,name:r,value:this.parseValueLiteral(n)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let n=this._lexer.token;this.expectToken(L.SPREAD);let e=this.expectOptionalKeyword("on");return!e&&this.peek(L.NAME)?this.node(n,{kind:Q.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(n,{kind:Q.INLINE_FRAGMENT,typeCondition:e?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let n=this._lexer.token,e=this.parseDescription();return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(n,{kind:Q.FRAGMENT_DEFINITION,description:e,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(n,{kind:Q.FRAGMENT_DEFINITION,description:e,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(n){let e=this._lexer.token;switch(e.kind){case L.BRACKET_L:return this.parseList(n);case L.BRACE_L:return this.parseObject(n);case L.INT:return this.advanceLexer(),this.node(e,{kind:Q.INT,value:e.value});case L.FLOAT:return this.advanceLexer(),this.node(e,{kind:Q.FLOAT,value:e.value});case L.STRING:case L.BLOCK_STRING:return this.parseStringLiteral();case L.NAME:switch(this.advanceLexer(),e.value){case"true":return this.node(e,{kind:Q.BOOLEAN,value:!0});case"false":return this.node(e,{kind:Q.BOOLEAN,value:!1});case"null":return this.node(e,{kind:Q.NULL});default:return this.node(e,{kind:Q.ENUM,value:e.value})}case L.DOLLAR:if(n)if(this.expectToken(L.DOLLAR),this._lexer.token.kind===L.NAME){let r=this._lexer.token.value;throw en(this._lexer.source,e.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(e);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let n=this._lexer.token;return this.advanceLexer(),this.node(n,{kind:Q.STRING,value:n.value,block:n.kind===L.BLOCK_STRING})}parseList(n){let e=()=>this.parseValueLiteral(n);return this.node(this._lexer.token,{kind:Q.LIST,values:this.any(L.BRACKET_L,e,L.BRACKET_R)})}parseObject(n){let e=()=>this.parseObjectField(n);return this.node(this._lexer.token,{kind:Q.OBJECT,fields:this.any(L.BRACE_L,e,L.BRACE_R)})}parseObjectField(n){let e=this._lexer.token,r=this.parseName();return this.expectToken(L.COLON),this.node(e,{kind:Q.OBJECT_FIELD,name:r,value:this.parseValueLiteral(n)})}parseDirectives(n){let e=[];for(;this.peek(L.AT);)e.push(this.parseDirective(n));return e}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(n){let e=this._lexer.token;return this.expectToken(L.AT),this.node(e,{kind:Q.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(n)})}parseTypeReference(){let n=this._lexer.token,e;if(this.expectOptionalToken(L.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(L.BRACKET_R),e=this.node(n,{kind:Q.LIST_TYPE,type:r})}else e=this.parseNamedType();return this.expectOptionalToken(L.BANG)?this.node(n,{kind:Q.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:Q.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(L.STRING)||this.peek(L.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let n=this._lexer.token,e=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),i=this.many(L.BRACE_L,this.parseOperationTypeDefinition,L.BRACE_R);return this.node(n,{kind:Q.SCHEMA_DEFINITION,description:e,directives:r,operationTypes:i})}parseOperationTypeDefinition(){let n=this._lexer.token,e=this.parseOperationType();this.expectToken(L.COLON);let r=this.parseNamedType();return this.node(n,{kind:Q.OPERATION_TYPE_DEFINITION,operation:e,type:r})}parseScalarTypeDefinition(){let n=this._lexer.token,e=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),i=this.parseConstDirectives();return this.node(n,{kind:Q.SCALAR_TYPE_DEFINITION,description:e,name:r,directives:i})}parseObjectTypeDefinition(){let n=this._lexer.token,e=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(n,{kind:Q.OBJECT_TYPE_DEFINITION,description:e,name:r,interfaces:i,directives:o,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(L.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(L.BRACE_L,this.parseFieldDefinition,L.BRACE_R)}parseFieldDefinition(){let n=this._lexer.token,e=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(L.COLON);let o=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(n,{kind:Q.FIELD_DEFINITION,description:e,name:r,arguments:i,type:o,directives:s})}parseArgumentDefs(){return this.optionalMany(L.PAREN_L,this.parseInputValueDef,L.PAREN_R)}parseInputValueDef(){let n=this._lexer.token,e=this.parseDescription(),r=this.parseName();this.expectToken(L.COLON);let i=this.parseTypeReference(),o;this.expectOptionalToken(L.EQUALS)&&(o=this.parseConstValueLiteral());let s=this.parseConstDirectives();return this.node(n,{kind:Q.INPUT_VALUE_DEFINITION,description:e,name:r,type:i,defaultValue:o,directives:s})}parseInterfaceTypeDefinition(){let n=this._lexer.token,e=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(n,{kind:Q.INTERFACE_TYPE_DEFINITION,description:e,name:r,interfaces:i,directives:o,fields:s})}parseUnionTypeDefinition(){let n=this._lexer.token,e=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),i=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(n,{kind:Q.UNION_TYPE_DEFINITION,description:e,name:r,directives:i,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(L.EQUALS)?this.delimitedMany(L.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let n=this._lexer.token,e=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),i=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(n,{kind:Q.ENUM_TYPE_DEFINITION,description:e,name:r,directives:i,values:o})}parseEnumValuesDefinition(){return this.optionalMany(L.BRACE_L,this.parseEnumValueDefinition,L.BRACE_R)}parseEnumValueDefinition(){let n=this._lexer.token,e=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(n,{kind:Q.ENUM_VALUE_DEFINITION,description:e,name:r,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw en(this._lexer.source,this._lexer.token.start,`${om(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let n=this._lexer.token,e=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),i=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(n,{kind:Q.INPUT_OBJECT_TYPE_DEFINITION,description:e,name:r,directives:i,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(L.BRACE_L,this.parseInputValueDef,L.BRACE_R)}parseTypeSystemExtension(){let n=this._lexer.lookahead();if(n.kind===L.NAME)switch(n.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension();case"directive":if(this._options.experimentalDirectivesOnDirectiveDefinitions)return this.parseDirectiveDefinitionExtension();break}throw this.unexpected(n)}parseSchemaExtension(){let n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let e=this.parseConstDirectives(),r=this.optionalMany(L.BRACE_L,this.parseOperationTypeDefinition,L.BRACE_R);if(e.length===0&&r.length===0)throw this.unexpected();return this.node(n,{kind:Q.SCHEMA_EXTENSION,directives:e,operationTypes:r})}parseScalarTypeExtension(){let n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let e=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(n,{kind:Q.SCALAR_TYPE_EXTENSION,name:e,directives:r})}parseObjectTypeExtension(){let n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let e=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(n,{kind:Q.OBJECT_TYPE_EXTENSION,name:e,interfaces:r,directives:i,fields:o})}parseInterfaceTypeExtension(){let n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let e=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(n,{kind:Q.INTERFACE_TYPE_EXTENSION,name:e,interfaces:r,directives:i,fields:o})}parseUnionTypeExtension(){let n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let e=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(n,{kind:Q.UNION_TYPE_EXTENSION,name:e,directives:r,types:i})}parseEnumTypeExtension(){let n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let e=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(n,{kind:Q.ENUM_TYPE_EXTENSION,name:e,directives:r,values:i})}parseInputObjectTypeExtension(){let n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let e=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(n,{kind:Q.INPUT_OBJECT_TYPE_EXTENSION,name:e,directives:r,fields:i})}parseDirectiveDefinitionExtension(){let n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("directive"),this.expectToken(L.AT);let e=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(n,{kind:Q.DIRECTIVE_EXTENSION,name:e,directives:r})}parseDirectiveDefinition(){let n=this._lexer.token,e=this.parseDescription();this.expectKeyword("directive"),this.expectToken(L.AT);let r=this.parseName(),i=this.parseArgumentDefs(),o=this._options.experimentalDirectivesOnDirectiveDefinitions?this.parseConstDirectives():[],s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let a=this.parseDirectiveLocations();return this.node(n,{kind:Q.DIRECTIVE_DEFINITION,description:e,name:r,arguments:i,directives:o,repeatable:s,locations:a})}parseDirectiveLocations(){return this.delimitedMany(L.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let n=this._lexer.token,e=this.parseName();if(Object.prototype.hasOwnProperty.call(tm,e.value))return e;throw this.unexpected(n)}parseSchemaCoordinate(){let n=this._lexer.token,e=this.expectOptionalToken(L.AT),r=this.parseName(),i;!e&&this.expectOptionalToken(L.DOT)&&(i=this.parseName());let o;return(e||i)&&this.expectOptionalToken(L.PAREN_L)&&(o=this.parseName(),this.expectToken(L.COLON),this.expectToken(L.PAREN_R)),e?o?this.node(n,{kind:Q.DIRECTIVE_ARGUMENT_COORDINATE,name:r,argumentName:o}):this.node(n,{kind:Q.DIRECTIVE_COORDINATE,name:r}):i?o?this.node(n,{kind:Q.ARGUMENT_COORDINATE,name:r,fieldName:i,argumentName:o}):this.node(n,{kind:Q.MEMBER_COORDINATE,name:r,memberName:i}):this.node(n,{kind:Q.TYPE_COORDINATE,name:r})}node(n,e){return this._options.noLocation!==!0&&(e.loc=new Yl(n,this._lexer.lastToken,this._lexer.source)),e}peek(n){return this._lexer.token.kind===n}expectToken(n){let e=this._lexer.token;if(e.kind===n)return this.advanceLexer(),e;throw en(this._lexer.source,e.start,`Expected ${BM(n)}, found ${om(e)}.`)}expectOptionalToken(n){return this._lexer.token.kind===n?(this.advanceLexer(),!0):!1}expectKeyword(n){let e=this._lexer.token;if(e.kind===L.NAME&&e.value===n)this.advanceLexer();else throw en(this._lexer.source,e.start,`Expected "${n}", found ${om(e)}.`)}expectOptionalKeyword(n){let e=this._lexer.token;return e.kind===L.NAME&&e.value===n?(this.advanceLexer(),!0):!1}unexpected(n){let e=n??this._lexer.token;return en(this._lexer.source,e.start,`Unexpected ${om(e)}.`)}any(n,e,r){this.expectToken(n);let i=[];for(;!this.expectOptionalToken(r);)i.push(e.call(this));return i}optionalMany(n,e,r){if(this.expectOptionalToken(n)){let i=[];do i.push(e.call(this));while(!this.expectOptionalToken(r));return i}return[]}many(n,e,r){this.expectToken(n);let i=[];do i.push(e.call(this));while(!this.expectOptionalToken(r));return i}delimitedMany(n,e){this.expectOptionalToken(n);let r=[];do r.push(e.call(this));while(this.expectOptionalToken(n));return r}advanceLexer(){let{maxTokens:n}=this._options,e=this._lexer.advance();if(e.kind!==L.EOF&&(++this._tokenCounter,n!==void 0&&this._tokenCounter>n))throw en(this._lexer.source,e.start,`Document contains more that ${n} tokens. Parsing aborted.`)}};function om(t){let n=t.value;return BM(t.kind)+(n!=null?` "${n}"`:"")}function BM(t){return PM(t)?`"${t}"`:t}function VM(t){return`"${t.replace(X8,e7)}"`}var X8=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function e7(t){return t7[t.charCodeAt(0)]}var t7=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var Eo=Object.freeze({});function on(t,n,e=t_){let r=new Map;for(let w of Object.values(Q))r.set(w,s_(n,w));let i,o=Array.isArray(t),s=[t],a=-1,l=[],c=t,d,u,p=[],f=[];do{a++;let w=a===s.length,D=w&&l.length!==0;if(w){if(d=f.length===0?void 0:p[p.length-1],c=u,u=f.pop(),D)if(o){c=c.slice();let B=0;for(let[Y,ye]of l){let Xe=Y-B;ye===null?(c.splice(Xe,1),B++):c[Xe]=ye}}else{c=_({},c);for(let[B,Y]of l)c[B]=Y}a=i.index,s=i.keys,l=i.edits,o=i.inArray,i=i.prev}else if(u){if(d=o?a:s[a],c=u[d],c==null)continue;p.push(d)}let P;if(!Array.isArray(c)){var y,b;n_(c)||Ql(!1,`Invalid AST Node: ${Xl(c)}.`);let B=w?(y=r.get(c.kind))===null||y===void 0?void 0:y.leave:(b=r.get(c.kind))===null||b===void 0?void 0:b.enter;if(P=B?.call(n,c,d,u,p,f),P===Eo)break;if(P===!1){if(!w){p.pop();continue}}else if(P!==void 0&&(l.push([d,P]),!w))if(n_(P))c=P;else{p.pop();continue}}if(P===void 0&&D&&l.push([d,c]),w)p.pop();else{var v;i={inArray:o,index:a,keys:s,edits:l,prev:i},o=Array.isArray(c),s=o?c:(v=e[c.kind])!==null&&v!==void 0?v:[],a=-1,l=[],u&&f.push(u),u=c}}while(i!==void 0);return l.length!==0?l[l.length-1][1]:t}function s_(t,n){let e=t[n];return typeof e=="object"?e:typeof e=="function"?{enter:e,leave:void 0}:{enter:t.enter,leave:t.leave}}function tc(t){return on(t,r7)}var n7=80,r7={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>le(t.definitions,`
`)},OperationDefinition:{leave(t){let n=a_(t.variableDefinitions)?Be(`(
`,le(t.variableDefinitions,`
`),`
)`):Be("(",le(t.variableDefinitions,", "),")"),e=Be("",t.description,`
`)+le([t.operation,le([t.name,n]),le(t.directives," ")]," ");return(e==="query"?"":e+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:n,defaultValue:e,directives:r,description:i})=>Be("",i,`
`)+t+": "+n+Be(" = ",e)+Be(" ",le(r," "))},SelectionSet:{leave:({selections:t})=>di(t)},Field:{leave({alias:t,name:n,arguments:e,directives:r,selectionSet:i}){let o=Be("",t,": ")+n,s=o+Be("(",le(e,", "),")");return s.length>n7&&(s=o+Be(`(
`,am(le(e,`
`)),`
)`)),le([s,le(r," "),i]," ")}},Argument:{leave:({name:t,value:n})=>t+": "+n},FragmentSpread:{leave:({name:t,directives:n})=>"..."+t+Be(" ",le(n," "))},InlineFragment:{leave:({typeCondition:t,directives:n,selectionSet:e})=>le(["...",Be("on ",t),le(n," "),e]," ")},FragmentDefinition:{leave:({name:t,typeCondition:n,variableDefinitions:e,directives:r,selectionSet:i,description:o})=>Be("",o,`
`)+`fragment ${t}${Be("(",le(e,", "),")")} on ${n} ${Be("",le(r," ")," ")}`+i},IntValue:{leave:({value:t})=>t},FloatValue:{leave:({value:t})=>t},StringValue:{leave:({value:t,block:n})=>n?OM(t):VM(t)},BooleanValue:{leave:({value:t})=>t?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:t})=>t},ListValue:{leave:({values:t})=>"["+le(t,", ")+"]"},ObjectValue:{leave:({fields:t})=>"{"+le(t,", ")+"}"},ObjectField:{leave:({name:t,value:n})=>t+": "+n},Directive:{leave:({name:t,arguments:n})=>"@"+t+Be("(",le(n,", "),")")},NamedType:{leave:({name:t})=>t},ListType:{leave:({type:t})=>"["+t+"]"},NonNullType:{leave:({type:t})=>t+"!"},SchemaDefinition:{leave:({description:t,directives:n,operationTypes:e})=>Be("",t,`
`)+le(["schema",le(n," "),di(e)]," ")},OperationTypeDefinition:{leave:({operation:t,type:n})=>t+": "+n},ScalarTypeDefinition:{leave:({description:t,name:n,directives:e})=>Be("",t,`
`)+le(["scalar",n,le(e," ")]," ")},ObjectTypeDefinition:{leave:({description:t,name:n,interfaces:e,directives:r,fields:i})=>Be("",t,`
`)+le(["type",n,Be("implements ",le(e," & ")),le(r," "),di(i)]," ")},FieldDefinition:{leave:({description:t,name:n,arguments:e,type:r,directives:i})=>Be("",t,`
`)+n+(a_(e)?Be(`(
`,am(le(e,`
`)),`
)`):Be("(",le(e,", "),")"))+": "+r+Be(" ",le(i," "))},InputValueDefinition:{leave:({description:t,name:n,type:e,defaultValue:r,directives:i})=>Be("",t,`
`)+le([n+": "+e,Be("= ",r),le(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:t,name:n,interfaces:e,directives:r,fields:i})=>Be("",t,`
`)+le(["interface",n,Be("implements ",le(e," & ")),le(r," "),di(i)]," ")},UnionTypeDefinition:{leave:({description:t,name:n,directives:e,types:r})=>Be("",t,`
`)+le(["union",n,le(e," "),Be("= ",le(r," | "))]," ")},EnumTypeDefinition:{leave:({description:t,name:n,directives:e,values:r})=>Be("",t,`
`)+le(["enum",n,le(e," "),di(r)]," ")},EnumValueDefinition:{leave:({description:t,name:n,directives:e})=>Be("",t,`
`)+le([n,le(e," ")]," ")},InputObjectTypeDefinition:{leave:({description:t,name:n,directives:e,fields:r})=>Be("",t,`
`)+le(["input",n,le(e," "),di(r)]," ")},DirectiveDefinition:{leave:({description:t,name:n,arguments:e,directives:r,repeatable:i,locations:o})=>Be("",t,`
`)+"directive @"+n+(a_(e)?Be(`(
`,am(le(e,`
`)),`
)`):Be("(",le(e,", "),")"))+Be(" ",le(r," "))+(i?" repeatable":"")+" on "+le(o," | ")},SchemaExtension:{leave:({directives:t,operationTypes:n})=>le(["extend schema",le(t," "),di(n)]," ")},ScalarTypeExtension:{leave:({name:t,directives:n})=>le(["extend scalar",t,le(n," ")]," ")},ObjectTypeExtension:{leave:({name:t,interfaces:n,directives:e,fields:r})=>le(["extend type",t,Be("implements ",le(n," & ")),le(e," "),di(r)]," ")},InterfaceTypeExtension:{leave:({name:t,interfaces:n,directives:e,fields:r})=>le(["extend interface",t,Be("implements ",le(n," & ")),le(e," "),di(r)]," ")},UnionTypeExtension:{leave:({name:t,directives:n,types:e})=>le(["extend union",t,le(n," "),Be("= ",le(e," | "))]," ")},EnumTypeExtension:{leave:({name:t,directives:n,values:e})=>le(["extend enum",t,le(n," "),di(e)]," ")},InputObjectTypeExtension:{leave:({name:t,directives:n,fields:e})=>le(["extend input",t,le(n," "),di(e)]," ")},DirectiveExtension:{leave:({name:t,directives:n})=>le(["extend directive @"+t,le(n," ")]," ")},TypeCoordinate:{leave:({name:t})=>t},MemberCoordinate:{leave:({name:t,memberName:n})=>le([t,Be(".",n)])},ArgumentCoordinate:{leave:({name:t,fieldName:n,argumentName:e})=>le([t,Be(".",n),Be("(",e,":)")])},DirectiveCoordinate:{leave:({name:t})=>le(["@",t])},DirectiveArgumentCoordinate:{leave:({name:t,argumentName:n})=>le(["@",t,Be("(",n,":)")])}};function le(t,n=""){var e;return(e=t?.filter(r=>r).join(n))!==null&&e!==void 0?e:""}function di(t){return Be(`{
`,am(le(t,`
`)),`
}`)}function Be(t,n,e=""){return n!=null&&n!==""?t+n+e:""}function am(t){return Be(" ",t.replace(/\n/g,`
`))}function a_(t){var n;return(n=t?.some(e=>e.includes(`
`)))!==null&&n!==void 0?n:!1}function pa(t){try{return t()}catch{}}var nc=pa(()=>globalThis)||pa(()=>window)||pa(()=>self)||pa(()=>global)||pa(function(){return pa.constructor("return this")()});var su="4.2.2";var jM=new Map;function au(t){let n=jM.get(t)||1;return jM.set(t,n+1),`${t}:${n}:${Math.random().toString(36).slice(2)}`}function lu(t,n=0){let e=au("stringifyForDisplay");return JSON.stringify(t,(r,i)=>i===void 0?e:i,n).split(JSON.stringify(e)).join("<undefined>")}var zM="Invariant Violation",l_=class t extends Error{constructor(n=zM){super(n),this.name=zM,Object.setPrototypeOf(this,t.prototype)}},$M=["debug","log","warn","error","silent"],d7=$M.indexOf("silent");function W(t,...n){if(!t)throw Kt(...n)}function lm(t){return function(n,...e){if($M.indexOf(t)>=d7){let r=console[t]||console.log;if(typeof n=="number"){let i=n;n=UM(i),n||(n=WM(i,e),e=[])}r(n,...e)}}}W.debug=lm("debug");W.log=lm("log");W.warn=lm("warn");W.error=lm("error");function Kt(t,...n){return new l_(UM(t,n)||WM(t,n))}var HM=Symbol.for("ApolloErrorMessageHandler_"+su);function c_(t){if(typeof t=="string")return t;try{return lu(t,2).slice(0,1e3)}catch{return"<non-serializable>"}}function UM(t,n=[]){if(t)return nc[HM]&&nc[HM](t,n.map(c_))}function WM(t,n=[]){if(t)return typeof t=="string"?n.reduce((e,r)=>e.replace(/%[sdfo]/,c_(r)),t):`An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(JSON.stringify({version:su,message:t,args:n.map(c_)}))}`}function So(t,n,e,r){if(e.kind===Q.INT||e.kind===Q.FLOAT)t[n.value]=Number(e.value);else if(e.kind===Q.BOOLEAN||e.kind===Q.STRING)t[n.value]=e.value;else if(e.kind===Q.OBJECT){let i={};e.fields.map(o=>So(i,o.name,o.value,r)),t[n.value]=i}else if(e.kind===Q.VARIABLE){let i=(r||{})[e.name.value];t[n.value]=i}else if(e.kind===Q.LIST)t[n.value]=e.values.map(i=>{let o={};return So(o,n,i,r),o[n.value]});else if(e.kind===Q.ENUM)t[n.value]=e.value;else if(e.kind===Q.NULL)t[n.value]=null;else throw Kt(19,n.value,e.kind)}function fa(t,n){if(t.arguments&&t.arguments.length){let e={};return t.arguments.forEach(({name:r,value:i})=>So(e,r,i,n)),e}return null}var u7=Symbol.for("apollo.cacheSize"),gn=_({},nc[u7]);function sn(t,n){return t.definitions.find(e=>e.kind==="OperationDefinition"&&!!e.name)?.name.value??n}var p7=()=>Object.create(null),{forEach:f7,slice:GM}=Array.prototype,{hasOwnProperty:h7}=Object.prototype,Rn=class t{constructor(n=!0,e=p7){this.weakness=n,this.makeData=e}lookup(){return this.lookupArray(arguments)}lookupArray(n){let e=this;return f7.call(n,r=>e=e.getChildTrie(r)),h7.call(e,"data")?e.data:e.data=this.makeData(GM.call(n))}peek(){return this.peekArray(arguments)}peekArray(n){let e=this;for(let r=0,i=n.length;e&&r<i;++r){let o=e.mapFor(n[r],!1);e=o&&o.get(n[r])}return e&&e.data}remove(){return this.removeArray(arguments)}removeArray(n){let e;if(n.length){let r=n[0],i=this.mapFor(r,!1),o=i&&i.get(r);o&&(e=o.removeArray(GM.call(n,1)),!o.data&&!o.weak&&!(o.strong&&o.strong.size)&&i.delete(r))}else e=this.data,delete this.data;return e}getChildTrie(n){let e=this.mapFor(n,!0),r=e.get(n);return r||e.set(n,r=new t(this.weakness,this.makeData)),r}mapFor(n,e){return this.weakness&&m7(n)?this.weak||(e?this.weak=new WeakMap:void 0):this.strong||(e?this.strong=new Map:void 0)}};function m7(t){switch(typeof t){case"object":if(t===null)break;case"function":return!0}return!1}function g7(){}var cs=class{constructor(n=1/0,e=g7){this.max=n,this.dispose=e,this.map=new Map,this.newest=null,this.oldest=null}has(n){return this.map.has(n)}get(n){let e=this.getNode(n);return e&&e.value}get size(){return this.map.size}getNode(n){let e=this.map.get(n);if(e&&e!==this.newest){let{older:r,newer:i}=e;i&&(i.older=r),r&&(r.newer=i),e.older=this.newest,e.older.newer=e,e.newer=null,this.newest=e,e===this.oldest&&(this.oldest=i)}return e}set(n,e){let r=this.getNode(n);return r?r.value=e:(r={key:n,value:e,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(n,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(n){let e=this.map.get(n);return e?(e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.map.delete(n),this.dispose(e.value,n),!0):!1}};function d_(){}var y7=d_,b7=typeof WeakRef<"u"?WeakRef:function(t){return{deref:()=>t}},v7=typeof WeakMap<"u"?WeakMap:Map,_7=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:d_,unregister:d_}},w7=10024,Wi=class{constructor(n=1/0,e=y7){this.max=n,this.dispose=e,this.map=new v7,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{let r=this.unfinalizedNodes.values();for(let i=0;i<w7;i++){let o=r.next().value;if(!o)break;this.unfinalizedNodes.delete(o);let s=o.key;delete o.key,o.keyRef=new b7(s),this.registry.register(s,o,o)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new _7(this.deleteNode.bind(this))}has(n){return this.map.has(n)}get(n){let e=this.getNode(n);return e&&e.value}getNode(n){let e=this.map.get(n);if(e&&e!==this.newest){let{older:r,newer:i}=e;i&&(i.older=r),r&&(r.newer=i),e.older=this.newest,e.older.newer=e,e.newer=null,this.newest=e,e===this.oldest&&(this.oldest=i)}return e}set(n,e){let r=this.getNode(n);return r?r.value=e:(r={key:n,value:e,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(n,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(n){n===this.newest&&(this.newest=n.older),n===this.oldest&&(this.oldest=n.newer),n.newer&&(n.newer.older=n.older),n.older&&(n.older.newer=n.newer),this.size--;let e=n.key||n.keyRef&&n.keyRef.deref();this.dispose(n.value,e),n.keyRef?this.registry.unregister(n):this.unfinalizedNodes.delete(n),e&&this.map.delete(e)}delete(n){let e=this.map.get(n);return e?(this.deleteNode(e),!0):!1}scheduleFinalization(n){this.unfinalizedNodes.add(n),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}};var u_=new WeakSet;function qM(t){t.size<=(t.max||-1)||u_.has(t)||(u_.add(t),setTimeout(()=>{t.clean(),u_.delete(t)},100))}var ha=function(t,n){let e=new Wi(t,n);return e.set=function(r,i){let o=Wi.prototype.set.call(this,r,i);return qM(this),o},e},p_=function(t,n){let e=new cs(t,n);return e.set=function(r,i){let o=cs.prototype.set.call(this,r,i);return qM(this),o},e};function cm(t,{max:n,makeCacheKey:e=r=>r}){let r=new Rn(!0),i=new ha(n);return(...o)=>{let s=r.lookupArray(e(o)),a=i.get(s);if(a){if(a.error)throw a.error;return a.result}let l=i.set(s,{});try{return l.result=t(...o)}catch(c){throw l.error=c,c}}}var Kn=cm((t,n)=>{W(t&&t.kind==="Document",1);let e=t.definitions.filter(r=>r.kind==="OperationDefinition");!1,n&&W(e.length==1&&e[0].operation===n,4,n,n,e[0].operation),on(t,{Field(r,i,o,s){if(r.alias&&(r.alias.value==="__typename"||r.alias.value.startsWith("__ac_"))&&r.alias.value!==r.name.value){let a=t,l=[];for(let c of s)a=a[c],a.kind===Q.FIELD&&l.push(a.alias?.value||a.name.value);throw l.splice(-1,1,r.name.value),Kt(5,r.alias.value,l.join("."),e[0].operation,sn(t,"(anonymous)"))}}})},{max:gn.checkDocument||2e3});var{toString:C7}=Object.prototype;function h_(t){return f_(t)}function f_(t,n){switch(C7.call(t)){case"[object Array]":{if(n=n||new Map,n.has(t))return n.get(t);let e=t.slice(0);return n.set(t,e),e.forEach(function(r,i){e[i]=f_(r,n)}),e}case"[object Object]":{if(n=n||new Map,n.has(t))return n.get(t);let e=Object.create(Object.getPrototypeOf(t));return n.set(t,e),Object.keys(t).forEach(r=>{e[r]=f_(t[r],n)}),e}default:return t}}function m_(t){return t.length===0?Pt:new pe(n=>{let{length:e}=t,r=new Array(e),i=new Map;t.forEach((l,c)=>{i.has(l)||i.set(l,new Set),i.get(l).add(c)});let o=i.size,s=i.size,a;i.forEach((l,c)=>{let d=!1,u=c.subscribe({next:p=>{l.forEach(f=>r[f]=p),d||(d=!0,s--),s||(a||=new Set(t.filter(f=>f.dirty)),a.delete(c),a.size||(n.next(r.slice()),a=void 0))},complete:()=>{o--,o||n.complete()},error:n.error.bind(n)});n.add(u)})})}function Lr(...t){let n={};return t.forEach(e=>{e&&Reflect.ownKeys(e).forEach(r=>{let i=e[r];i!==void 0&&(n[r]=i)})}),n}function ui(t=[]){let n={};return t.forEach(e=>{n[e.name.value]=e}),n}function Ct(t){return t!==null&&typeof t=="object"}var{hasOwnProperty:x7}=Object.prototype,T7=function(t,n,e){return this.merge(t[e],n[e])},QM=t=>isNaN(+t)?{}:[],or=class{options;reconciler;constructor(n={}){this.options=n,this.reconciler=n.reconciler||T7}merge(n,e,r={}){let i=r.atPath;if(i?.length){let[o,...s]=i;n===void 0&&(n=QM(o));let a=n[o];a===void 0&&s.length&&(a=QM(s[0]));let l=this.merge(a,e,A(_({},r),{atPath:s}));return a!==l&&(n=this.shallowCopyForMerge(n),n[o]=l),n}return Array.isArray(n)&&Array.isArray(e)&&this.options.arrayMerge==="truncate"&&n.length>e.length&&(n=n.slice(0,e.length),this.pastCopies.add(n)),Ct(e)&&Ct(n)?(Object.keys(e).forEach(o=>{if(x7.call(n,o)){let s=n[o];if(e[o]!==s){let a=this.reconciler(n,e,o);a!==s&&(n=this.shallowCopyForMerge(n),n[o]=a)}}else n=this.shallowCopyForMerge(n),n[o]=e[o]}),n):e}isObject=Ct;pastCopies=new Set;shallowCopyForMerge(n){return Ct(n)&&(this.pastCopies.has(n)||(Array.isArray(n)?n=n.slice(0):n=_({__proto__:Object.getPrototypeOf(n)},n),this.pastCopies.add(n))),n}};function ma(t){let n={},e=t&&t.variableDefinitions;return e&&e.length&&e.forEach(r=>{r.defaultValue&&So(n,r.variable.name,r.defaultValue)}),n}function ds(t,n){switch(t.kind){case"InlineFragment":return t;case"FragmentSpread":{let e=t.name.value;if(typeof n=="function")return n(e);let r=n&&n[e];return W(r,9,e),r||null}default:return null}}function g_(t,n){let e=n,r=[];return t.definitions.forEach(o=>{if(o.kind==="OperationDefinition")throw Kt(10,o.operation,o.name?` named '${o.name.value}'`:"");o.kind==="FragmentDefinition"&&r.push(o)}),typeof e>"u"&&(W(r.length===1,11,r.length),e=r[0].name.value),A(_({},t),{definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:e}}]}},...t.definitions]})}function cu(t){W(t.kind==="Document",6),W(t.definitions.length<=1,7);let n=t.definitions[0];return W(n.kind==="FragmentDefinition",8),n}function pi(t){return t.definitions.filter(n=>n.kind==="FragmentDefinition")}function us(t){Kn(t);let n;for(let e of t.definitions){if(e.kind==="OperationDefinition")return e;e.kind==="FragmentDefinition"&&!n&&(n=e)}if(n)return n;throw Kt(12)}function Pn(t){return Kn(t),t.definitions.filter(n=>n.kind==="OperationDefinition")[0]}function du(t){let n=Pn(t);return W(n&&n.operation==="query",13),n}var E7={};function uu(t,n){E7[t]=n}var En=Object.assign(function(n){return JSON.stringify(n,S7)},{reset(){rc=new p_(gn.canonicalStringify||1e3)}});!1;var rc;En.reset();function S7(t,n){if(n&&typeof n=="object"){let e=Object.getPrototypeOf(n);if(e===Object.prototype||e===null){let r=Object.keys(n);if(r.every(I7))return n;let i=JSON.stringify(r),o=rc.get(i);if(!o){r.sort();let a=JSON.stringify(r);o=rc.get(a)||r,rc.set(i,o),rc.set(a,o)}let s=Object.create(e);return o.forEach(a=>{s[a]=n[a]}),s}}return n}function I7(t,n,e){return n===0||e[n-1]<=t}var D7=["connection","include","skip","client","rest","export","nonreactive","stream"],pu=En,fu=Object.assign(function(t,n,e){if(n&&e&&e.connection&&e.connection.key){if(e.connection.filter&&e.connection.filter.length>0){let i=e.connection.filter?e.connection.filter:[];i.sort();let o={};i.forEach(a=>{o[a]=n[a]});let s=pu(o);if(s!=="{}")return`${e.connection.key}(${s})`}return e.connection.key}let r=t;if(n){let i=pu(n);i!=="{}"&&(r+=`(${i})`)}return e&&Object.keys(e).forEach(i=>{D7.indexOf(i)===-1&&(e[i]&&Object.keys(e[i]).length?r+=`@${i}(${pu(e[i])})`:r+=`@${i}`)}),r},{setStringify(t){let n=pu;return pu=t,n}});function Io(t){return!!t.errors?.length}function Gi(t,n,e){let r=new Set(t),i=r.size;return on(n,{Directive(o){if(r.delete(o.name.value)&&(!e||!r.size))return Eo}}),e?!r.size:r.size<i}function y_(t){let n=!1;return on(t,{Directive:{enter(e){if(e.name.value==="client"&&e.arguments&&(n=e.arguments.some(r=>r.name.value==="always"&&r.value.kind==="BooleanValue"&&r.value.value===!0),n))return Eo}}}),n}var Tt=Array.isArray;function b_(t){return Ct(t)&&t.kind==="Document"&&Array.isArray(t.definitions)}function qi(t){return t.kind==="Field"}function ga(t){return Array.isArray(t)&&t.length>0}function Qi(t){return{__ref:String(t)}}function KM(t){let n=new Set([t]);return n.forEach(e=>{Ct(e)&&k7(e)===e&&Object.getOwnPropertyNames(e).forEach(r=>{Ct(e[r])&&n.add(e[r])})}),t}function k7(t){if(!1)try{Object.freeze(t)}catch(n){if(n instanceof TypeError)return null;throw n}return t}function ps(t){return!1,t}function v_(t){let n=t[0]||{},e=t.length;if(e>1){let r=new or;for(let i=1;i<e;++i)n=r.merge(n,t[i])}return n}function ya(t,n){return Lr(t,n,n.variables&&{variables:Lr(_(_({},t&&t.variables),n.variables))})}function dm(t){return t.catch(()=>{}),t}function __(t,n){Kn(n);let e=YM(""),r=YM(""),i=v=>{for(let w=0,D;w<v.length&&(D=v[w]);++w)if(!Tt(D)){if(D.kind===Q.OPERATION_DEFINITION)return e(D.name&&D.name.value);if(D.kind===Q.FRAGMENT_DEFINITION)return r(D.name.value)}return W.error(14),null},o=0;for(let v=n.definitions.length-1;v>=0;--v)n.definitions[v].kind===Q.OPERATION_DEFINITION&&++o;let s=M7(t),a=v=>ga(v)&&v.map(s).some(w=>w&&w.remove),l=new Map,c=!1,d={enter(v){if(a(v.directives))return c=!0,null}},u=on(n,{Field:d,InlineFragment:d,VariableDefinition:{enter(){return!1}},Variable:{enter(v,w,D,P,B){let Y=i(B);Y&&Y.variables.add(v.name.value)}},FragmentSpread:{enter(v,w,D,P,B){if(a(v.directives))return c=!0,null;let Y=i(B);Y&&Y.fragmentSpreads.add(v.name.value)}},FragmentDefinition:{enter(v,w,D,P){l.set(JSON.stringify(P),v)},leave(v,w,D,P){let B=l.get(JSON.stringify(P));if(v===B)return v;if(o>0&&v.selectionSet.selections.every(Y=>Y.kind===Q.FIELD&&Y.name.value==="__typename"))return r(v.name.value).removed=!0,c=!0,null}},Directive:{leave(v){if(s(v))return c=!0,null}}});if(!c)return n;let p=v=>(v.transitiveVars||(v.transitiveVars=new Set(v.variables),v.removed||v.fragmentSpreads.forEach(w=>{p(r(w)).transitiveVars.forEach(D=>{v.transitiveVars.add(D)})})),v),f=new Set;u.definitions.forEach(v=>{v.kind===Q.OPERATION_DEFINITION?p(e(v.name&&v.name.value)).fragmentSpreads.forEach(w=>{f.add(w)}):v.kind===Q.FRAGMENT_DEFINITION&&o===0&&!r(v.name.value).removed&&f.add(v.name.value)}),f.forEach(v=>{p(r(v)).fragmentSpreads.forEach(w=>{f.add(w)})});let y=v=>!!(!f.has(v)||r(v).removed),b={enter(v){if(y(v.name.value))return null}};return O7(on(u,{FragmentSpread:b,FragmentDefinition:b,OperationDefinition:{leave(v){if(v.variableDefinitions){let w=p(e(v.name&&v.name.value)).transitiveVars;if(w.size<v.variableDefinitions.length)return A(_({},v),{variableDefinitions:v.variableDefinitions.filter(D=>w.has(D.variable.name.value))})}}}}))}function YM(t){let n=new Map;return function(r=t){let i=n.get(r);return i||n.set(r,i={variables:new Set,fragmentSpreads:new Set}),i}}function M7(t){let n=new Map,e=new Map;return t.forEach(r=>{r&&(r.name?n.set(r.name,r):r.test&&e.set(r.test,r))}),r=>{let i=n.get(r.name.value);return!i&&e.size&&e.forEach((o,s)=>{s(r)&&(i=o)}),i}}function ZM(t,n){return!t||t.selectionSet.selections.every(e=>e.kind===Q.FRAGMENT_SPREAD&&ZM(n[e.name.value],n))}function O7(t){return ZM(Pn(t)||cu(t),ui(pi(t)))?null:t}function w_(t){return on(t,{FragmentSpread(n){if(!n.directives?.some(({name:e})=>e.value==="unmask"))return null}})}function gr(t){return t.alias?t.alias.value:t.name.value}function Do({directives:t},n){return!t||!t.length?!0:P7(t).every(({directive:e,ifArgument:r})=>{let i=!1;return r.value.kind==="Variable"?(i=n&&n[r.value.name.value],W(i!==void 0,15,e.name.value)):i=r.value.value,e.name.value==="skip"?!i:i})}function R7({name:{value:t}}){return t==="skip"||t==="include"}function P7(t){let n=[];return t&&t.length&&t.forEach(e=>{if(!R7(e))return;let r=e.arguments,i=e.name.value;W(r&&r.length===1,16,i);let o=r[0];W(o.name&&o.name.value==="if",17,i);let s=o.value;W(s&&(s.kind==="Variable"||s.kind==="BooleanValue"),18,i),n.push({directive:e,ifArgument:o})}),n}function C_(t,n){let e=null;t.directives&&(e={},t.directives.forEach(i=>{e[i.name.value]={},i.arguments&&i.arguments.forEach(({name:o,value:s})=>So(e[i.name.value],o,s,n))}));let r=null;return t.arguments&&t.arguments.length&&(r={},t.arguments.forEach(({name:i,value:o})=>So(r,i,o,n))),fu(t.name.value,r,e)}function fs(t){let n={data:t.data};return t.error&&(n.error=t.error),n}function ic(t,n=()=>{}){return e=>new pe(r=>{let i=n();return e.subscribe({next(o){let s;try{s=t(o,i)}catch(a){r.error(a)}s!==void 0&&r.next(s)},error(o){r.error(o)},complete(){r.complete()}})})}var{toString:JM,hasOwnProperty:A7}=Object.prototype,XM=Function.prototype.toString,x_=new Map;function dt(t,n){try{return T_(t,n)}finally{x_.clear()}}function T_(t,n){if(t===n)return!0;let e=JM.call(t),r=JM.call(n);if(e!==r)return!1;switch(e){case"[object Array]":if(t.length!==n.length)return!1;case"[object Object]":{if(tO(t,n))return!0;let i=eO(t),o=eO(n),s=i.length;if(s!==o.length)return!1;for(let a=0;a<s;++a)if(!A7.call(n,i[a]))return!1;for(let a=0;a<s;++a){let l=i[a];if(!T_(t[l],n[l]))return!1}return!0}case"[object Error]":return t.name===n.name&&t.message===n.message;case"[object Number]":if(t!==t)return n!==n;case"[object Boolean]":case"[object Date]":return+t==+n;case"[object RegExp]":case"[object String]":return t==`${n}`;case"[object Map]":case"[object Set]":{if(t.size!==n.size)return!1;if(tO(t,n))return!0;let i=t.entries(),o=e==="[object Map]";for(;;){let s=i.next();if(s.done)break;let[a,l]=s.value;if(!n.has(a)||o&&!T_(l,n.get(a)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),n=new Uint8Array(n);case"[object DataView]":{let i=t.byteLength;if(i===n.byteLength)for(;i--&&t[i]===n[i];);return i===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{let i=XM.call(t);return i!==XM.call(n)?!1:!L7(i,F7)}}return!1}function eO(t){return Object.keys(t).filter(N7,t)}function N7(t){return this[t]!==void 0}var F7="{ [native code] }";function L7(t,n){let e=t.length-n.length;return e>=0&&t.indexOf(n,e)===e}function tO(t,n){let e=x_.get(t);if(e){if(e.has(n))return!0}else x_.set(t,e=new Set);return e.add(n),!1}function hu(t,s,l,o){var a=s,{data:n}=a,e=Et(a,["data"]);var c=l,{data:r}=c,i=Et(c,["data"]);return dt(e,i)&&um(us(t).selectionSet,n,r,{fragmentMap:ui(pi(t)),variables:o})}function um(t,n,e,r){if(n===e)return!0;let i=new Set;return t.selections.every(o=>{if(i.has(o)||(i.add(o),!Do(o,r.variables))||nO(o))return!0;if(qi(o)){let s=gr(o),a=n&&n[s],l=e&&e[s],c=o.selectionSet;if(!c)return dt(a,l);let d=Array.isArray(a),u=Array.isArray(l);if(d!==u)return!1;if(d&&u){let p=a.length;if(l.length!==p)return!1;for(let f=0;f<p;++f)if(!um(c,a[f],l[f],r))return!1;return!0}return um(c,a,l,r)}else{let s=ds(o,r.fragmentMap);if(s)return nO(s)?!0:um(s.selectionSet,n,e,r)}})}function nO(t){return!!t.directives&&t.directives.some(B7)}function B7(t){return t.name.value==="nonreactive"}function V7(t,n){let e,r;function i(o){return o!==e&&(e=o,r=n(e)),r}return Object.assign(t.pipe(be(i),Rs({bufferSize:1,refCount:!0})),{getCurrentResult:()=>i(t.getCurrentResult())})}var mu=cm(function(n,e,r){return V7(n,r)},{max:1,makeCacheKey:t=>t.slice(0,2)});var gu=Symbol.for("apollo.result.extensions"),yr=Symbol.for("apollo.result.streamInfo"),E_=Symbol.for("apollo.observableQuery.variablesUnknown");var An=null,rO={},j7=1,z7=()=>class{constructor(){this.id=["slot",j7++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let n=An;n;n=n.parent)if(this.id in n.slots){let e=n.slots[this.id];if(e===rO)break;return n!==An&&(An.slots[this.id]=e),!0}return An&&(An.slots[this.id]=rO),!1}getValue(){if(this.hasValue())return An.slots[this.id]}withValue(n,e,r,i){let o={__proto__:null,[this.id]:n},s=An;An={parent:s,slots:o};try{return e.apply(i,r)}finally{An=s}}static bind(n){let e=An;return function(){let r=An;try{return An=e,n.apply(this,arguments)}finally{An=r}}}static noContext(n,e,r){if(An){let i=An;try{return An=null,n.apply(r,e)}finally{An=i}}else return n.apply(r,e)}};function iO(t){try{return t()}catch{}}var S_="@wry/context:Slot",H7=iO(()=>globalThis)||iO(()=>global)||Object.create(null),oO=H7,ko=oO[S_]||Array[S_]||(function(t){try{Object.defineProperty(oO,S_,{value:t,enumerable:!1,writable:!1,configurable:!0})}finally{return t}})(z7());var{bind:sO,noContext:aO}=ko;var ba=new ko;var{hasOwnProperty:lO}=Object.prototype,yu=Array.from||function(t){let n=[];return t.forEach(e=>n.push(e)),n};function oc(t){let{unsubscribe:n}=t;typeof n=="function"&&(t.unsubscribe=void 0,n())}var bu=[],W7=100;function sc(t,n){if(!t)throw new Error(n||"assertion failure")}function dO(t,n){let e=t.length;return e>0&&e===n.length&&t[e-1]===n[e-1]}function uO(t){switch(t.length){case 0:throw new Error("unknown value");case 1:return t[0];case 2:throw t[1]}}function pO(t){return t.slice(0)}var fO=(()=>{class t{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++t.count}peek(){if(this.value.length===1&&!hs(this))return cO(this),this.value[0]}recompute(e){return sc(!this.recomputing,"already recomputing"),cO(this),hs(this)?G7(this,e):uO(this.value)}setDirty(){this.dirty||(this.dirty=!0,hO(this),oc(this))}dispose(){this.setDirty(),vO(this),I_(this,(e,r)=>{e.setDirty(),_O(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=bu.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(yu(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),bu.push(this.deps),this.deps=null)}}return t.count=0,t})();function cO(t){let n=ba.getValue();if(n)return t.parents.add(n),n.childValues.has(t)||n.childValues.set(t,[]),hs(t)?gO(n,t):yO(n,t),n}function G7(t,n){return vO(t),ba.withValue(t,q7,[t,n]),K7(t,n)&&Q7(t),uO(t.value)}function q7(t,n){t.recomputing=!0;let{normalizeResult:e}=t,r;e&&t.value.length===1&&(r=pO(t.value)),t.value.length=0;try{if(t.value[0]=t.fn.apply(null,n),e&&r&&!dO(r,t.value))try{t.value[0]=e(t.value[0],r[0])}catch{}}catch(i){t.value[1]=i}t.recomputing=!1}function hs(t){return t.dirty||!!(t.dirtyChildren&&t.dirtyChildren.size)}function Q7(t){t.dirty=!1,!hs(t)&&mO(t)}function hO(t){I_(t,gO)}function mO(t){I_(t,yO)}function I_(t,n){let e=t.parents.size;if(e){let r=yu(t.parents);for(let i=0;i<e;++i)n(r[i],t)}}function gO(t,n){sc(t.childValues.has(n)),sc(hs(n));let e=!hs(t);if(!t.dirtyChildren)t.dirtyChildren=bu.pop()||new Set;else if(t.dirtyChildren.has(n))return;t.dirtyChildren.add(n),e&&hO(t)}function yO(t,n){sc(t.childValues.has(n)),sc(!hs(n));let e=t.childValues.get(n);e.length===0?t.childValues.set(n,pO(n.value)):dO(e,n.value)||t.setDirty(),bO(t,n),!hs(t)&&mO(t)}function bO(t,n){let e=t.dirtyChildren;e&&(e.delete(n),e.size===0&&(bu.length<W7&&bu.push(e),t.dirtyChildren=null))}function vO(t){t.childValues.size>0&&t.childValues.forEach((n,e)=>{_O(t,e)}),t.forgetDeps(),sc(t.dirtyChildren===null)}function _O(t,n){n.parents.delete(t),t.childValues.delete(n),bO(t,n)}function K7(t,n){if(typeof t.subscribe=="function")try{oc(t),t.unsubscribe=t.subscribe.apply(null,n)}catch{return t.setDirty(),!1}return!0}var Y7={setDirty:!0,dispose:!0,forget:!0};function vu(t){let n=new Map,e=t&&t.subscribe;function r(i){let o=ba.getValue();if(o){let s=n.get(i);s||n.set(i,s=new Set),o.dependOn(s),typeof e=="function"&&(oc(s),s.unsubscribe=e(i))}}return r.dirty=function(o,s){let a=n.get(o);if(a){let l=s&&lO.call(Y7,s)?s:"setDirty";yu(a).forEach(c=>c[l]()),n.delete(o),oc(a)}},r}var wO;function k_(...t){return(wO||(wO=new Rn(typeof WeakMap=="function"))).lookupArray(t)}var D_=new Set;function Mo(t,{max:n=Math.pow(2,16),keyArgs:e,makeCacheKey:r=k_,normalizeResult:i,subscribe:o,cache:s=cs}=Object.create(null)){let a=typeof s=="function"?new s(n,p=>p.dispose()):s,l=function(){let p=r.apply(null,e?e.apply(null,arguments):arguments);if(p===void 0)return t.apply(null,arguments);let f=a.get(p);f||(a.set(p,f=new fO(t)),f.normalizeResult=i,f.subscribe=o,f.forget=()=>a.delete(p));let y=f.recompute(Array.prototype.slice.call(arguments));return a.set(p,f),D_.add(a),ba.hasValue()||(D_.forEach(b=>b.clean()),D_.clear()),y};Object.defineProperty(l,"size",{get:()=>a.size,configurable:!1,enumerable:!1}),Object.freeze(l.options={max:n,keyArgs:e,makeCacheKey:r,normalizeResult:i,subscribe:o,cache:a});function c(p){let f=p&&a.get(p);f&&f.setDirty()}l.dirtyKey=c,l.dirty=function(){c(r.apply(null,arguments))};function d(p){let f=p&&a.get(p);if(f)return f.peek()}l.peekKey=d,l.peek=function(){return d(r.apply(null,arguments))};function u(p){return p?a.delete(p):!1}return l.forgetKey=u,l.forget=function(){return u(r.apply(null,arguments))},l.makeCacheKey=r,l.getKey=e?function(){return r.apply(null,e.apply(null,arguments))}:r,Object.freeze(l)}function M_(...t){return k_.bind(null,...t)}function O_(){throw new Error("only supported in development mode")}var CO=O_,xO=O_,TO=O_;var _u=class{isIncrementalResult(n){return!1}prepareRequest(n){return W(!Gi(["defer","stream"],n.query),67),n}extractErrors(){}startRequest=void 0};function R_(t,{client:n}){let e={query:t.query,variables:t.variables||{},extensions:t.extensions||{},operationName:sn(t.query),operationType:Pn(t.query).operation},r=_({},t.context),i=s=>{typeof s=="function"?r=_(_({},r),s(o())):r=_(_({},r),s)},o=()=>Object.freeze(_({},r));return Object.defineProperty(e,"setContext",{enumerable:!1,value:i}),Object.defineProperty(e,"getContext",{enumerable:!1,value:o}),Object.defineProperty(e,"client",{enumerable:!1,value:n}),e}var jn=class t{static empty(){return new t(()=>Pt)}static from(n){if(n.length===0)return t.empty();let[e,...r]=n;return e.concat(...r)}static split(n,e,r=new t((i,o)=>o(i))){let i=new t((o,s)=>{let a=n(o);return!1,a?e.request(o,s):r.request(o,s)});return Object.assign(i,{left:e,right:r})}static execute(n,e,r){return n.request(R_(e,r),()=>(!1,Pt))}static concat(...n){return t.from(n)}constructor(n){n&&(this.request=n)}split(n,e,r){return this.concat(t.split(n,e,r))}concat(...n){return n.length===0?this:n.reduce(this.combine.bind(this),this)}combine(n,e){let r=new t((i,o)=>n.request(i,s=>e.request(s,o)));return Object.assign(r,{left:n,right:e})}request(n,e){throw Kt(65)}left;right};var pm=jn.split;var va=jn.execute;function Z7(t){return t}var Oo=class t{transform;cached;resultCache=new WeakSet;getCacheKey(n){return[n]}static identity(){return new t(Z7,{cache:!1})}static split(n,e,r=t.identity()){return Object.assign(new t(i=>(n(i)?e:r).transformDocument(i),{cache:!1}),{left:e,right:r})}constructor(n,e={}){this.transform=n,e.getCacheKey&&(this.getCacheKey=e.getCacheKey),this.cached=e.cache!==!1,this.resetCache()}resetCache(){if(this.cached){let n=new Rn;this.performWork=Mo(t.prototype.performWork.bind(this),{makeCacheKey:e=>{let r=this.getCacheKey(e);if(r)return W(Array.isArray(r),20),n.lookupArray(r)},max:gn["documentTransform.cache"],cache:Wi})}}performWork(n){return Kn(n),this.transform(n)}transformDocument(n){if(this.resultCache.has(n))return n;let e=this.performWork(n);return this.resultCache.add(e),e}concat(n){return Object.assign(new t(e=>n.transformDocument(this.transformDocument(e)),{cache:!1}),{left:this,right:n})}left;right};var wu,Ki=Object.assign(t=>{let n=wu.get(t);return n||(n=tc(t),wu.set(t,n)),n},{reset(){wu=new ha(gn.print||2e3)}});Ki.reset();!1;function Je(t){return!!(t&&typeof t=="object"&&typeof t.__ref=="string")}var EO={kind:Q.FIELD,name:{kind:Q.NAME,value:"__typename"}},_a=Object.assign(function(t){return on(t,{SelectionSet:{enter(n,e,r){if(r&&r.kind===Q.OPERATION_DEFINITION)return;let{selections:i}=n;if(!i||i.some(a=>a.kind===Q.FIELD&&(a.name.value==="__typename"||a.name.value.lastIndexOf("__",0)===0)))return;let s=r;if(!(s.kind===Q.FIELD&&s.directives&&s.directives.some(a=>a.name.value==="export")))return A(_({},n),{selections:[...i,EO]})}}})},{added(t){return t===EO}});function Cu(t){return t===7||t===8}function wa(t){return!Cu(t)}var ac=class{assumeImmutableResults=!1;lookupFragment(n){return null}batch(n){let e=typeof n.optimistic=="string"?n.optimistic:n.optimistic===!1?null:void 0,r;return this.performTransaction(()=>r=n.update(this),e),r}recordOptimisticTransaction(n,e){this.performTransaction(n,e)}transformDocument(n){return n}transformForLink(n){return n}identify(n){}gc(){return[]}modify(n){return!1}readQuery(n,e=!!n.optimistic){return this.read(A(_({},n),{rootId:n.id||"ROOT_QUERY",optimistic:e}))}fragmentWatches=new Rn(!0);watchFragment(n){let{fragment:e,fragmentName:r,from:i}=n,o=this.getFragmentDoc(e,r),a=(Array.isArray(i)?i:[i]).map(f=>{let y=f==null?f:this.toCacheId(f);if(!1){let b=r||cu(e).name.value;y===void 0&&!1&&W.warn(118,b)}return y});if(!Array.isArray(i)){let f=this.watchSingleFragment(a[0],o,n);return i===null?f:mu(f,Symbol.for("apollo.transform.individualResult"),y=>A(_({},y),{data:y.data??{}}))}let l;function c(f){let y=f.reduce((b,v,w)=>(b.data.push(v.data),b.complete&&=v.complete,b.dataState=b.complete?"complete":"partial",v.missing&&(b.missing||={},b.missing[w]=v.missing),b),{data:[],dataState:"complete",complete:!0});return dt(l,y)||(l=y),l}if(a.length===0)return X7;let d=!1,u=a.map(f=>this.watchSingleFragment(f,o,n)),p=m_(u).pipe(be(c),St({subscribe:()=>d=!0,unsubscribe:()=>d=!1}),Rs({bufferSize:1,refCount:!0}));return Object.assign(p,{getCurrentResult:()=>{if(d&&l)return l;let f=u.map(y=>y.getCurrentResult());return c(f)}})}onAfterBroadcast=n=>n();watchSingleFragment(n,e,r){if(n===null)return J7;let{optimistic:i=!0,variables:o}=r,s=[e,En({id:n,optimistic:i,variables:o})],a=this.fragmentWatches.lookupArray(s);if(!a.observable){let u=function(f){let y=f.result;return(!d||!hu(e,{data:d.data},{data:y},r.variables))&&(d={data:y,dataState:f.complete?"complete":"partial",complete:f.complete},f.missing&&(d.missing=f.missing.missing)),d};var l=u;let c=!1,d,p=new pe(f=>{c=!0;let y=this.watch({variables:o,returnPartialData:!0,id:n,query:e,optimistic:i,immediate:!0,callback:b=>{p.dirty=!0,this.onAfterBroadcast(()=>{f.next(u(b)),p.dirty=!1})}});return()=>{c=!1,y(),this.fragmentWatches.removeArray(s)}}).pipe(Fc(),xi({connector:()=>new oo(1),resetOnRefCountZero:()=>Yg(0)}));a.observable=Object.assign(p,{dirty:!1,getCurrentResult:()=>c&&d?d:u(this.diff({id:n,query:e,returnPartialData:!0,optimistic:i,variables:o}))})}return a.observable}getFragmentDoc=Mo(g_,{max:gn["cache.fragmentQueryDocuments"]||1e3,cache:Wi,makeCacheKey:M_(this)});readFragment(n,e=!!n.optimistic){let r=n.from!==void 0?this.toCacheId(n.from):n.id;return this.read(A(_({},n),{query:this.getFragmentDoc(n.fragment,n.fragmentName),rootId:r,optimistic:e}))}writeQuery(i){var o=i,{id:n,data:e}=o,r=Et(o,["id","data"]);return this.write(Object.assign(r,{dataId:n||"ROOT_QUERY",result:e}))}writeFragment(o){var s=o,{data:n,fragment:e,fragmentName:r}=s,i=Et(s,["data","fragment","fragmentName"]);let a=i.from!==void 0?this.toCacheId(i.from):i.id;return this.write(Object.assign(i,{query:this.getFragmentDoc(e,r),dataId:a,result:n}))}updateQuery(n,e){return this.batch({update(r){let i=r.readQuery(n),o=e(i);return o==null?i:(r.writeQuery(A(_({},n),{data:o})),o)}})}updateFragment(n,e){return this.batch({update(r){let i=r.readFragment(n),o=e(i);return o==null?i:(r.writeFragment(A(_({},n),{data:o})),o)}})}toCacheId(n){return typeof n=="string"?n:this.identify(n)}};!1;var SO=Object.freeze({data:null,dataState:"complete",complete:!0}),J7=Object.assign(new pe(t=>{t.next(SO)}),{dirty:!1,getCurrentResult:()=>SO}),IO=Object.freeze({data:[],dataState:"complete",complete:!0}),X7=Object.assign(new pe(t=>{t.next(IO)}),{getCurrentResult:()=>IO});var xu=class t extends Error{message;path;query;variables;constructor(n,e,r,i){if(super(n),this.message=n,this.path=e,this.query=r,this.variables=i,this.name="MissingFieldError",Array.isArray(this.path)){this.missing=this.message;for(let o=this.path.length-1;o>=0;--o)this.missing={[this.path[o]]:this.missing}}else this.missing=this.path;this.__proto__=t.prototype}missing};var{hasOwnProperty:Yt}=Object.prototype;function hm({__typename:t,id:n,_id:e},r){if(typeof t=="string"&&(r&&(r.keyObject=n!=null?{id:n}:e!=null?{_id:e}:void 0),n==null&&e!=null&&(n=e),n!=null))return`${t}:${typeof n=="number"||typeof n=="string"?n:JSON.stringify(n)}`}var e9={dataIdFromObject:hm,resultCaching:!0};function DO(t){return Lr(e9,t)}function kO(t,n){return Je(n)?t.get(n.__ref,"__typename"):n&&n.__typename}var P_=/^[_a-z][_0-9a-z]*/i;function fi(t){let n=t.match(P_);return n?n[0]:t}function fm(t,n,e){return Ct(n)?Tt(n)?n.every(r=>fm(t,r,e)):t.selections.every(r=>{if(qi(r)&&Do(r,e)){let i=gr(r);return Yt.call(n,i)&&(!r.selectionSet||fm(r.selectionSet,n[i],e))}return!0}):!1}function ms(t){return Ct(t)&&!Je(t)&&!Tt(t)}function MO(){return new or}function mm(t,n){let e=ui(pi(t));return{fragmentMap:e,lookupFragment(r){let i=e[r];return!i&&n&&(i=n.lookup(r)),i||null}}}var gm={},A_=()=>gm,OO={},Ca=class{policies;group;data={};constructor(n,e){this.policies=n,this.group=e}toObject(){return _({},this.data)}has(n){return this.lookup(n,!0)!==void 0}get(n,e){if(this.group.depend(n,e),Yt.call(this.data,n)){let r=this.data[n];if(r&&Yt.call(r,e))return r[e]}if(e==="__typename"&&Yt.call(this.policies.rootTypenamesById,n))return this.policies.rootTypenamesById[n];if(this instanceof Yi)return this.parent.get(n,e)}lookup(n,e){if(e&&this.group.depend(n,"__exists"),Yt.call(this.data,n))return this.data[n];if(this instanceof Yi)return this.parent.lookup(n,e);if(this.policies.rootTypenamesById[n])return{}}merge(n,e){let r;Je(n)&&(n=n.__ref),Je(e)&&(e=e.__ref);let i=typeof n=="string"?this.lookup(r=n):n,o=typeof e=="string"?this.lookup(r=e):e;if(!o)return;W(typeof r=="string",104);let s=new or({reconciler:t9}).merge(i,o);if(this.data[r]=s,s!==i&&(delete this.refs[r],this.group.caching)){let a={};i||(a.__exists=1),Object.keys(o).forEach(l=>{if(!i||i[l]!==s[l]){a[l]=1;let c=fi(l);c!==l&&!this.policies.hasKeyArgs(s.__typename,c)&&(a[c]=1),s[l]===void 0&&!(this instanceof Yi)&&delete s[l]}}),a.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[r]===s.__typename&&delete a.__typename,Object.keys(a).forEach(l=>this.group.dirty(r,l))}}modify(n,e,r){let i=this.lookup(n);if(i){let o={},s=!1,a=!0,l={DELETE:gm,INVALIDATE:OO,isReference:Je,toReference:this.toReference,canRead:this.canRead,readField:(c,d)=>this.policies.readField(typeof c=="string"?{fieldName:c,from:d||Qi(n)}:c,{store:this})};if(Object.keys(i).forEach(c=>{let d=fi(c),u=i[c];if(u===void 0)return;let p=typeof e=="function"?e:e[c]||(r?void 0:e[d]);if(p){let f=p===A_?gm:p(ps(u),A(_({},l),{fieldName:d,storeFieldName:c,storage:this.getStorage(n,c)}));if(f===OO)this.group.dirty(n,c);else if(f===gm&&(f=void 0),f!==u&&(o[c]=f,s=!0,u=f,!1)){let y=b=>{if(this.lookup(b.__ref)===void 0)return!1,!0};if(Je(f))y(f);else if(Array.isArray(f)){let b=!1,v;for(let w of f){if(Je(w)){if(b=!0,y(w))break}else if(typeof w=="object"&&w){let[D]=this.policies.identify(w);D&&(v=w)}if(b&&v!==void 0){!1;break}}}}}u!==void 0&&(a=!1)}),s)return this.merge(n,o),a&&(this instanceof Yi?this.data[n]=void 0:delete this.data[n],this.group.dirty(n,"__exists")),!0}return!1}delete(n,e,r){let i=this.lookup(n);if(i){let o=this.getFieldValue(i,"__typename"),s=e&&r?this.policies.getStoreFieldName({typename:o,fieldName:e,args:r}):e;return this.modify(n,s?{[s]:A_}:A_,!!r)}return!1}evict(n,e){let r=!1;return n.id&&(Yt.call(this.data,n.id)&&(r=this.delete(n.id,n.fieldName,n.args)),this instanceof Yi&&this!==e&&(r=this.parent.evict(n,e)||r),(n.fieldName||r)&&this.group.dirty(n.id,n.fieldName||"__exists")),r}clear(){this.replace(null)}extract(){let n=this.toObject(),e=[];return this.getRootIdSet().forEach(r=>{Yt.call(this.policies.rootTypenamesById,r)||e.push(r)}),e.length&&(n.__META={extraRootIds:e.sort()}),n}replace(n){if(Object.keys(this.data).forEach(r=>{n&&Yt.call(n,r)||this.delete(r)}),n){let e=n,{__META:r}=e,i=Et(e,["__META"]);Object.keys(i).forEach(o=>{this.merge(o,i[o])}),r&&r.extraRootIds.forEach(this.retain,this)}}rootIds={};retain(n){return this.rootIds[n]=(this.rootIds[n]||0)+1}release(n){if(this.rootIds[n]>0){let e=--this.rootIds[n];return e||delete this.rootIds[n],e}return 0}getRootIdSet(n=new Set){return Object.keys(this.rootIds).forEach(n.add,n),this instanceof Yi?this.parent.getRootIdSet(n):Object.keys(this.policies.rootTypenamesById).forEach(n.add,n),n}gc(){let n=this.getRootIdSet(),e=this.toObject();n.forEach(i=>{Yt.call(e,i)&&(Object.keys(this.findChildRefIds(i)).forEach(n.add,n),delete e[i])});let r=Object.keys(e);if(r.length){let i=this;for(;i instanceof Yi;)i=i.parent;r.forEach(o=>i.delete(o))}return r}refs={};findChildRefIds(n){if(!Yt.call(this.refs,n)){let e=this.refs[n]={},r=this.data[n];if(!r)return e;let i=new Set([r]);i.forEach(o=>{Je(o)&&(e[o.__ref]=!0),Ct(o)&&Object.keys(o).forEach(s=>{let a=o[s];Ct(a)&&i.add(a)})})}return this.refs[n]}makeCacheKey(){return this.group.keyMaker.lookupArray(arguments)}getFieldValue=(n,e)=>ps(Je(n)?this.get(n.__ref,e):n&&n[e]);canRead=n=>Je(n)?this.has(n.__ref):typeof n=="object";toReference=(n,e)=>{if(typeof n=="string")return Qi(n);if(Je(n))return n;let[r]=this.policies.identify(n);if(r){let i=Qi(r);return e&&this.merge(r,n),i}};get supportsResultCaching(){return this.group.caching}},ym=class{caching;parent;d=null;keyMaker;constructor(n,e=null){this.caching=n,this.parent=e,this.resetCaching()}resetCaching(){this.d=this.caching?vu():null,this.keyMaker=new Rn}depend(n,e){if(this.d){this.d(N_(n,e));let r=fi(e);r!==e&&this.d(N_(n,r)),this.parent&&this.parent.depend(n,e)}}dirty(n,e){this.d&&this.d.dirty(N_(n,e),e==="__exists"?"forget":"setDirty")}};function N_(t,n){return n+"#"+t}function B_(t,n){xa(t)&&t.group.depend(n,"__exists")}var F_=class extends Ca{constructor({policies:n,resultCaching:e=!0,seed:r}){super(n,new ym(e)),r&&this.replace(r)}stump=new L_(this);addLayer(n,e){return this.stump.addLayer(n,e)}removeLayer(){return this}storageTrie=new Rn;getStorage(){return this.storageTrie.lookupArray(arguments)}};Ca.Root=F_;var Yi=class t extends Ca{id;parent;replay;group;constructor(n,e,r,i){super(e.policies,i),this.id=n,this.parent=e,this.replay=r,this.group=i,r(this)}addLayer(n,e){return new t(n,this,e,this.group)}removeLayer(n){let e=this.parent.removeLayer(n);return n===this.id?(this.group.caching&&Object.keys(this.data).forEach(r=>{let i=this.data[r],o=e.lookup(r);o?i?i!==o&&Object.keys(i).forEach(s=>{dt(i[s],o[s])||this.group.dirty(r,s)}):(this.group.dirty(r,"__exists"),Object.keys(o).forEach(s=>{this.group.dirty(r,s)})):this.delete(r)}),e):e===this.parent?this:e.addLayer(this.id,this.replay)}toObject(){return _(_({},this.parent.toObject()),this.data)}findChildRefIds(n){let e=this.parent.findChildRefIds(n);return Yt.call(this.data,n)?_(_({},e),super.findChildRefIds(n)):e}getStorage(...n){let e=this.parent;for(;e.parent;)e=e.parent;return e.getStorage(...n)}},L_=class extends Yi{constructor(n){super("EntityStore.Stump",n,()=>{},new ym(n.group.caching,n.group))}removeLayer(){return this}merge(n,e){return this.parent.merge(n,e)}};function t9(t,n,e){let r=t[e],i=n[e];return dt(r,i)?r:i}function xa(t){return!!(t&&t.supportsResultCaching)}var lc=new ko;function RO(t){let n=t.directives?.find(({name:r})=>r.value==="unmask");if(!n)return"mask";let e=n.arguments?.find(({name:r})=>r.value==="mode");return!1,e&&"value"in e.value&&e.value.value==="migrate"?"migrate":"unmask"}function bm(t,n,e){return lc.withValue(!0,()=>{let r=Tu(t,n,e,!1);return Object.isFrozen(t)&&ps(r),r})}function n9(t,n){if(n.has(t))return n.get(t);let e=Array.isArray(t)?[]:{};return n.set(t,e),e}function Tu(t,n,e,r,i){let{knownChanged:o}=e,s=n9(t,e.mutableTargets);if(Array.isArray(t)){for(let[a,l]of Array.from(t.entries())){if(l===null){s[a]=null;continue}let c=Tu(l,n,e,r,void 0);o.has(c)&&o.add(s),s[a]=c}return o.has(s)?s:t}for(let a of n.selections){let l;if(r&&o.add(s),a.kind===Q.FIELD){let c=gr(a),d=a.selectionSet;if(l=s[c]||t[c],l===void 0)continue;if(d&&l!==null){let u=Tu(t[c],d,e,r,void 0);o.has(u)&&(l=u)}s[c]=l,!1}if(a.kind===Q.INLINE_FRAGMENT&&(!a.typeCondition||e.cache.fragmentMatches(a,t.__typename))&&(l=Tu(t,a.selectionSet,e,r,i)),a.kind===Q.FRAGMENT_SPREAD){let c=a.name.value,d=e.fragmentMap[c]||(e.fragmentMap[c]=e.cache.lookupFragment(c));W(d,39,c);let u=RO(a);u!=="mask"&&(l=Tu(t,d.selectionSet,e,u==="migrate",i))}o.has(l)&&o.add(s)}return"__typename"in t&&!("__typename"in s)&&(s.__typename=t.__typename),Object.keys(s).length!==Object.keys(t).length&&o.add(s),o.has(s)?s:t}function r9(t,n,e,r,i){let o=()=>(lc.getValue()||(!1,o=()=>n),n);return{get(){return o()},set(s){o=()=>s},enumerable:!0,configurable:!0}}function V_(t,n,e,r){let i=n.definitions.filter(s=>s.kind===Q.FRAGMENT_DEFINITION);typeof r>"u"&&(W(i.length===1,41,i.length),r=i[0].name.value);let o=i.find(s=>s.name.value===r);return W(!!o,42,r),t==null||dt(t,{})?t:bm(t,o.selectionSet,{operationType:"fragment",operationName:o.name.value,fragmentMap:ui(pi(n)),cache:e,mutableTargets:new WeakMap,knownChanged:new WeakSet})}function j_(t,n,e){let r=Pn(n);return W(r,43),t==null?t:bm(t,r.selectionSet,{operationType:r.operation,operationName:r.name?.value,fragmentMap:ui(pi(n)),cache:e,mutableTargets:new WeakMap,knownChanged:new WeakSet})}var PO={};function z_(t){let n=JSON.stringify(t);return PO[n]||(PO[n]={})}function H_(t){let n=z_(t);return n.keyFieldsFn||(n.keyFieldsFn=(e,r)=>{let i=(s,a)=>r.readField(a,s),o=r.keyObject=U_(t,s=>{let a=cc(r.storeObject,s,i);return a===void 0&&e!==r.storeObject&&Yt.call(e,s[0])&&(a=cc(e,s,NO)),W(a!==void 0,107,s.join("."),e),a});return`${r.typename}:${JSON.stringify(o)}`})}function $_(t){let n=z_(t);return n.keyArgsFn||(n.keyArgsFn=(e,{field:r,variables:i,fieldName:o})=>{let s=U_(t,l=>{let c=l[0],d=c.charAt(0);if(d==="@"){if(r&&ga(r.directives)){let u=c.slice(1),p=r.directives.find(y=>y.name.value===u),f=p&&fa(p,i);return f&&cc(f,l.slice(1))}return}if(d==="$"){let u=c.slice(1);if(i&&Yt.call(i,u)){let p=l.slice(0);return p[0]=u,cc(i,p)}return}if(e)return cc(e,l)}),a=JSON.stringify(s);return(e||a!=="{}")&&(o+=":"+a),o})}function U_(t,n){let e=new or;return AO(t).reduce((r,i)=>{let o=n(i);if(o!==void 0){for(let s=i.length-1;s>=0;--s)o={[i[s]]:o};r=e.merge(r,o)}return r},{})}function AO(t){let n=z_(t);if(!n.paths){let e=n.paths=[],r=[];t.forEach((i,o)=>{Tt(i)?(AO(i).forEach(s=>e.push(r.concat(s))),r.length=0):(r.push(i),Tt(t[o+1])||(e.push(r.slice(0)),r.length=0))})}return n.paths}function NO(t,n){return t[n]}function cc(t,n,e){return e=e||NO,FO(n.reduce(function r(i,o){return Tt(i)?i.map(s=>r(s,o)):i&&e(i,o)},t))}function FO(t){return Ct(t)?Tt(t)?t.map(FO):U_(Object.keys(t).sort(),n=>cc(t,n)):t}var W_=new ko,LO=new WeakMap;function Eu(t){let n=LO.get(t);return n||LO.set(t,n={vars:new Set,dep:vu()}),n}function G_(t){Eu(t).vars.forEach(n=>n.forgetCache(t))}function BO(t){Eu(t).vars.forEach(n=>n.attachCache(t))}function q_(t){let n=new Set,e=new Set,r=function(o){if(arguments.length>0){if(t!==o){t=o,n.forEach(a=>{Eu(a).dep.dirty(r),i9(a)});let s=Array.from(e);e.clear(),s.forEach(a=>a(t))}}else{let s=W_.getValue();s&&(i(s),Eu(s).dep(r))}return t};r.onNextChange=o=>(e.add(o),()=>{e.delete(o)});let i=r.attachCache=o=>(n.add(o),Eu(o).vars.add(r),r);return r.forgetCache=o=>n.delete(o),r}function i9(t){t.broadcastWatches&&t.broadcastWatches()}function Q_(t){return t.args!==void 0?t.args:t.field?fa(t.field,t.variables):null}var o9=()=>{},VO=(t,n)=>n.fieldName,jO=(t,n,{mergeObjects:e})=>e(t,n),zO=(t,n)=>n,HO=(t,n,{streamFieldInfo:e,existingData:r})=>{if(!t&&!r)return n;let i=[],o=t??r,s=e?.isLastChunk?n.length:Math.max(o.length,n.length);for(let a=0;a<s;a++)i[a]=n[a]===void 0?o[a]:n[a];return i},vm=class{config;typePolicies={};toBeAdded={};supertypeMap=new Map;fuzzySubtypes=new Map;cache;rootIdsByTypename={};rootTypenamesById={};usingPossibleTypes=!1;constructor(n){this.config=n,this.config=_({dataIdFromObject:hm},n),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),n.possibleTypes&&this.addPossibleTypes(n.possibleTypes),n.typePolicies&&this.addTypePolicies(n.typePolicies)}identify(n,e){let r=this,i=e&&(e.typename||e.storeObject?.__typename)||n.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];let o=e&&e.storeObject||n,s=A(_({},e),{typename:i,storeObject:o,readField:e&&e.readField||((...d)=>{let u=_m(d,o);return r.readField(u,{store:r.cache.data,variables:u.variables})})}),a,l=i&&this.getTypePolicy(i),c=l&&l.keyFn||this.config.dataIdFromObject;return lc.withValue(!0,()=>{for(;c;){let d=c(_(_({},n),o),s);if(Tt(d))c=H_(d);else{a=d;break}}}),a=a?String(a):void 0,s.keyObject?[a,s.keyObject]:[a]}addTypePolicies(n){Object.keys(n).forEach(e=>{let a=n[e],{queryType:r,mutationType:i,subscriptionType:o}=a,s=Et(a,["queryType","mutationType","subscriptionType"]);r&&this.setRootTypename("Query",e),i&&this.setRootTypename("Mutation",e),o&&this.setRootTypename("Subscription",e),Yt.call(this.toBeAdded,e)?this.toBeAdded[e].push(s):this.toBeAdded[e]=[s]})}updateTypePolicy(n,e,r){let i=this.getTypePolicy(n),{keyFields:o,fields:s}=e;function a(l,c){l.merge=typeof c=="function"?c:c===!0?jO:c===!1?zO:l.merge}a(i,e.merge),i.keyFn=o===!1?o9:Tt(o)?H_(o):typeof o=="function"?o:i.keyFn,s&&Object.keys(s).forEach(l=>{let c=r[l];(!c||c?.typename!==n)&&(c=r[l]={typename:n});let d=s[l];if(typeof d=="function")c.read=d;else{let{keyArgs:u,read:p,merge:f}=d;c.keyFn=u===!1?VO:Tt(u)?$_(u):typeof u=="function"?u:c.keyFn,typeof p=="function"&&(c.read=p),a(c,f)}c.read&&c.merge&&(c.keyFn=c.keyFn||VO)})}setRootTypename(n,e=n){let r="ROOT_"+n.toUpperCase(),i=this.rootTypenamesById[r];e!==i&&(W(!i||i===n,108,n),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[e]=r,this.rootTypenamesById[r]=e)}addPossibleTypes(n){this.usingPossibleTypes=!0,Object.keys(n).forEach(e=>{this.getSupertypeSet(e,!0),n[e].forEach(r=>{this.getSupertypeSet(r,!0).add(e);let i=r.match(P_);(!i||i[0]!==r)&&this.fuzzySubtypes.set(r,new RegExp(r))})})}getTypePolicy(n){if(!Yt.call(this.typePolicies,n)){let r=this.typePolicies[n]={};r.fields={};let i=this.supertypeMap.get(n);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(n,!0),this.fuzzySubtypes.forEach((o,s)=>{if(o.test(n)){let a=this.supertypeMap.get(s);a&&a.forEach(l=>i.add(l))}})),i&&i.size&&i.forEach(o=>{let l=this.getTypePolicy(o),{fields:s}=l,a=Et(l,["fields"]);Object.assign(r,a),Object.assign(r.fields,s)})}let e=this.toBeAdded[n];return e&&e.length&&e.splice(0).forEach(r=>{this.updateTypePolicy(n,r,this.typePolicies[n].fields)}),this.typePolicies[n]}getFieldPolicy(n,e){if(n)return this.getTypePolicy(n).fields[e]}getSupertypeSet(n,e){let r=this.supertypeMap.get(n);return!r&&e&&this.supertypeMap.set(n,r=new Set),r}fragmentMatches(n,e,r,i){if(!n.typeCondition)return!0;if(!e)return!1;let o=n.typeCondition.name.value;if(e===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o)){let s=this.getSupertypeSet(e,!0),a=[s],l=u=>{let p=this.getSupertypeSet(u,!1);p&&p.size&&a.indexOf(p)<0&&a.push(p)},c=!!(r&&this.fuzzySubtypes.size),d=!1;for(let u=0;u<a.length;++u){let p=a[u];if(p.has(o))return s.has(o)||(d&&!1&&W.warn(109,e,o),s.add(o)),!0;p.forEach(l),c&&u===a.length-1&&fm(n.selectionSet,r,i)&&(c=!1,d=!0,this.fuzzySubtypes.forEach((f,y)=>{let b=e.match(f);b&&b[0]===e&&l(y)}))}}return!1}hasKeyArgs(n,e){let r=this.getFieldPolicy(n,e);return!!(r&&r.keyFn)}getStoreFieldName(n){let{typename:e,fieldName:r}=n,i=this.getFieldPolicy(e,r),o,s=i&&i.keyFn;if(s&&e){let a={typename:e,fieldName:r,field:n.field||null,variables:n.variables},l=Q_(n);for(;s;){let c=s(l,a);if(Tt(c))s=$_(c);else{o=c||r;break}}}return o===void 0&&(o=n.field?C_(n.field,n.variables):fu(r,Q_(n))),o===!1?r:r===fi(o)?o:r+":"+o}readField(n,e){let r=n.from;if(!r||!(n.field||n.fieldName))return;if(n.typename===void 0){let d=e.store.getFieldValue(r,"__typename");d&&(n.typename=d)}let o=this.getStoreFieldName(n),s=fi(o),a=e.store.getFieldValue(r,o),l=this.getFieldPolicy(n.typename,s),c=l&&l.read;if(c){let d=$O(this,r,n,e,e.store.getStorage(Je(r)?r.__ref:r,o));return W_.withValue(this.cache,c,[a,d])}return a}getReadFunction(n,e){let r=this.getFieldPolicy(n,e);return r&&r.read}getMergeFunction(n,e,r){let i=this.getFieldPolicy(n,e),o=i&&i.merge;return!o&&r&&(i=this.getTypePolicy(r),o=i&&i.merge),o}runMergeFunction(n,e,{field:r,typename:i,merge:o,path:s},a,l){let c=n;if(o===jO)return UO(a.store)(n,e);if(o===zO)return e;a.overwrite&&(n=void 0);let d=a.extensions?.[yr]?.deref()?.peekArray(s);if(d){let{current:p,previous:f}=d;if(f&&dt(f.incoming,e)&&dt(f.streamFieldInfo,p))return f.result}let u=o(n,e,s9(this,void 0,{typename:i,fieldName:r.name.value,field:r,variables:a.variables,path:s},a,l||{},c));return d&&(d.previous={incoming:e,streamFieldInfo:d.current,result:u}),u}};function $O(t,n,e,r,i){let o=t.getStoreFieldName(e),s=fi(o),a=e.variables||r.variables,{toReference:l,canRead:c}=r.store;return{args:Q_(e),field:e.field||null,fieldName:s,storeFieldName:o,variables:a,isReference:Je,toReference:l,storage:i,cache:t.cache,canRead:c,readField(...d){return t.readField(_m(d,n,a),r)},mergeObjects:UO(r.store)}}function s9(t,n,e,r,i,o){var l;let s=A(_({},$O(t,n,e,r,i)),{extensions:r.extensions,existingData:o}),a=r.extensions;if(a&&yr in a){let c=a,{[l=yr]:d}=c,u=Et(c,[Yu(l)]),p=d?.deref()?.peekArray(e.path);p&&(s.streamFieldInfo=p.current),s.extensions=Object.keys(u).length===0?void 0:u}return s}function _m(t,n,e){let{0:r,1:i,length:o}=t,s;return typeof r=="string"?s={fieldName:r,from:o>1?i:n}:(s=_({},r),Yt.call(s,"from")||(s.from=n)),!1,s.variables===void 0&&(s.variables=e),s}function UO(t){return function(e,r){if(Tt(e)||Tt(r))throw Kt(111);if(Ct(e)&&Ct(r)){let i=t.getFieldValue(e,"__typename"),o=t.getFieldValue(r,"__typename");if(i&&o&&i!==o)return r;if(Je(e)&&ms(r))return t.merge(e.__ref,r),e;if(ms(e)&&Je(r))return t.merge(e,r.__ref),r;if(ms(e)&&ms(r))return _(_({},e),r)}return r}}function WO(t){return[t.selectionSet,t.objectOrReference,t.context]}var wm=class{executeSelectionSet;executeSubSelectedArray;config;knownResults=new WeakMap;constructor(n){this.config=n,this.executeSelectionSet=Mo(e=>{let r=WO(e),i=this.executeSelectionSet.peek(...r);return i||(B_(e.context.store,e.enclosingRef.__ref),this.execSelectionSetImpl(e))},{max:gn["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:WO,makeCacheKey(e,r,i){if(xa(i.store))return i.store.makeCacheKey(e,Je(r)?r.__ref:r,i.varString)}}),this.executeSubSelectedArray=Mo(e=>(B_(e.context.store,e.enclosingRef.__ref),this.execSubSelectedArrayImpl(e)),{max:gn["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey({field:e,array:r,context:i}){if(xa(i.store))return i.store.makeCacheKey(e,r,i.varString)}})}diffQueryAgainstStore({store:n,query:e,rootId:r="ROOT_QUERY",variables:i,returnPartialData:o=!0}){let s=this.config.cache.policies;i=_(_({},ma(du(e))),i);let a=Qi(r),l=this.executeSelectionSet({selectionSet:us(e).selectionSet,objectOrReference:a,enclosingRef:a,context:_({store:n,query:e,policies:s,variables:i,varString:En(i)},mm(e,this.config.fragments))}),c;l.missing&&(c=new xu(a9(l.missing),l.missing,e,i));let d=!c,{result:u}=l;return{result:d?u:o?Object.keys(u).length===0?null:u:null,complete:d,missing:c}}isFresh(n,e,r,i){if(xa(i.store)&&this.knownResults.get(n)===r){let o=this.executeSelectionSet.peek(r,e,i);if(o&&n===o.result)return!0}return!1}execSelectionSetImpl({selectionSet:n,objectOrReference:e,enclosingRef:r,context:i}){if(Je(e)&&!i.policies.rootTypenamesById[e.__ref]&&!i.store.has(e.__ref))return{result:{},missing:`Dangling reference to missing ${e.__ref} object`};let{variables:o,policies:s,store:a}=i,l=a.getFieldValue(e,"__typename"),c=[],d,u=new or;typeof l=="string"&&!s.rootIdsByTypename[l]&&c.push({__typename:l});function p(w,D){return w.missing&&(d=u.merge(d,{[D]:w.missing})),w.result}let f=new Set(n.selections);f.forEach(w=>{if(Do(w,o))if(qi(w)){let D=s.readField({fieldName:w.name.value,field:w,variables:i.variables,from:e},i),P=gr(w);D===void 0?_a.added(w)||(d=u.merge(d,{[P]:`Can't find field '${w.name.value}' on ${Je(e)?e.__ref+" object":"object "+JSON.stringify(e,null,2)}`})):Tt(D)?D.length>0&&(D=p(this.executeSubSelectedArray({field:w,array:D,enclosingRef:r,context:i}),P)):w.selectionSet&&D!=null&&(D=p(this.executeSelectionSet({selectionSet:w.selectionSet,objectOrReference:D,enclosingRef:Je(D)?D:r,context:i}),P)),D!==void 0&&c.push({[P]:D})}else{let D=ds(w,i.lookupFragment);if(!D&&w.kind===Q.FRAGMENT_SPREAD)throw Kt(112,w.name.value);D&&s.fragmentMatches(D,l)&&D.selectionSet.selections.forEach(f.add,f)}});let b={result:v_(c),missing:d},v=ps(b);return v.result&&this.knownResults.set(v.result,n),v}execSubSelectedArrayImpl({field:n,array:e,enclosingRef:r,context:i}){let o,s=new or;function a(l,c){return l.missing&&(o=s.merge(o,{[c]:l.missing})),l.result}return n.selectionSet&&(e=e.filter(l=>l===void 0||i.store.canRead(l))),e=e.map((l,c)=>l===null?null:Tt(l)?a(this.executeSubSelectedArray({field:n,array:l,enclosingRef:r,context:i}),c):n.selectionSet?a(this.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:l,enclosingRef:Je(l)?l:r,context:i}),c):(!1,l)),{result:e,missing:o}}};function a9(t){try{JSON.stringify(t,(n,e)=>{if(typeof e=="string")throw e;return e})}catch(n){return n}}function l9(t,n,e){if(!n.selectionSet){let r=new Set([e]);r.forEach(i=>{Ct(i)&&(W(!Je(i),113,kO(t,i),n.name.value),Object.values(i).forEach(r.add,r))})}}function K_(t,n,e){let r=`${n}${e}`,i=t.flavors.get(r);return i||t.flavors.set(r,i=t.clientOnly===n&&t.deferred===e?t:A(_({},t),{clientOnly:n,deferred:e})),i}var Cm=class{cache;reader;fragments;constructor(n,e,r){this.cache=n,this.reader=e,this.fragments=r}writeToStore(n,{query:e,result:r,dataId:i,variables:o,overwrite:s,extensions:a}){let l=Pn(e),c=MO();o=_(_({},ma(l)),o);let d=A(_({store:n,written:{},merge(p,f){return c.merge(p,f)},variables:o,varString:En(o)},mm(e,this.fragments)),{overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map,extensions:a}),u=this.processSelectionSet({result:r||{},dataId:i,selectionSet:l.selectionSet,mergeTree:{map:new Map},context:d,path:[]});if(!Je(u))throw Kt(114,r);return d.incomingById.forEach(({storeObject:p,mergeTree:f,fieldNodeSet:y},b)=>{let v=Qi(b);if(f&&f.map.size){let w=this.applyMerges(f,v,p,d);if(Je(w))return;p=w}if(!1){let w={};y.forEach(B=>{B.selectionSet&&(w[B.name.value]=!0)});let D=B=>w[fi(B)]===!0,P=B=>{let Y=f&&f.map.get(B);return!!(Y&&Y.info&&Y.info.merge)};Object.keys(p).forEach(B=>{D(B)&&!P(B)&&c9(v,p,B,d.store)})}n.merge(b,p)}),n.retain(u.__ref),u}processSelectionSet({dataId:n,result:e,selectionSet:r,context:i,mergeTree:o,path:s}){let{policies:a}=this.cache,l={},c=n&&a.rootTypenamesById[n]||Z_(e,r,i.fragmentMap)||n&&i.store.get(n,"__typename");typeof c=="string"&&(l.__typename=c);let d=(...p)=>{let f=_m(p,l,i.variables);if(Je(f.from)){let y=i.incomingById.get(f.from.__ref);if(y){let b=a.readField(A(_({},f),{from:y.storeObject}),i);if(b!==void 0)return b}}return a.readField(f,i)},u=new Set;this.flattenFields(r,e,i,c).forEach((p,f)=>{let y=gr(f),b=e[y],v=[...s,f.name.value];if(u.add(f),b!==void 0){let w=a.getStoreFieldName({typename:c,fieldName:f.name.value,field:f,variables:p.variables}),D=GO(o,w),P=this.processFieldValue(b,f,f.selectionSet?K_(p,!1,!1):p,D,v),B;f.selectionSet&&(Je(P)||ms(P))&&(B=d("__typename",P));let Y=a.getMergeFunction(c,f.name.value,B);Y?D.info={field:f,typename:c,merge:Y,path:v}:Gi(["stream"],f)&&Array.isArray(P)&&p.extensions?.[yr]?D.info={field:f,typename:c,merge:HO,path:v}:qO(o,w),l=p.merge(l,{[w]:P})}else!1});try{let[p,f]=a.identify(e,{typename:c,selectionSet:r,fragmentMap:i.fragmentMap,storeObject:l,readField:d});n=n||p,f&&(l=i.merge(l,f))}catch(p){if(!n)throw p}if(typeof n=="string"){let p=Qi(n),f=i.written[n]||(i.written[n]=[]);if(f.indexOf(r)>=0||(f.push(r),this.reader&&this.reader.isFresh(e,p,r,i)))return p;let y=i.incomingById.get(n);return y?(y.storeObject=i.merge(y.storeObject,l),y.mergeTree=Y_(y.mergeTree,o),u.forEach(b=>y.fieldNodeSet.add(b))):i.incomingById.set(n,{storeObject:l,mergeTree:xm(o)?void 0:o,fieldNodeSet:u}),p}return l}processFieldValue(n,e,r,i,o){return!e.selectionSet||n===null?n:Tt(n)?n.map((s,a)=>{let l=this.processFieldValue(s,e,r,GO(i,a),[...o,a]);return qO(i,a),l}):this.processSelectionSet({result:n,selectionSet:e.selectionSet,context:r,mergeTree:i,path:o})}flattenFields(n,e,r,i=Z_(e,n,r.fragmentMap)){let o=new Map,{policies:s}=this.cache,a=new Rn(!1);return(function l(c,d){let u=a.lookup(c,d.clientOnly,d.deferred);u.visited||(u.visited=!0,c.selections.forEach(p=>{if(!Do(p,r.variables))return;let{clientOnly:f,deferred:y}=d;if(!(f&&y)&&ga(p.directives)&&p.directives.forEach(b=>{let v=b.name.value;if(v==="client"&&(f=!0),v==="defer"){let w=fa(b,r.variables);(!w||w.if!==!1)&&(y=!0)}}),qi(p)){let b=o.get(p);b&&(f=f&&b.clientOnly,y=y&&b.deferred),o.set(p,K_(r,f,y))}else{let b=ds(p,r.lookupFragment);if(!b&&p.kind===Q.FRAGMENT_SPREAD)throw Kt(116,p.name.value);b&&s.fragmentMatches(b,i,e,r.variables)&&l(b.selectionSet,K_(r,f,y))}}))})(n,r),o}applyMerges(n,e,r,i,o){if(n.map.size&&!Je(r)){let s=!Tt(r)&&(Je(e)||ms(e))?e:void 0,a=r;s&&!o&&(o=[Je(s)?s.__ref:s]);let l,c=(d,u)=>Tt(d)?typeof u=="number"?d[u]:void 0:i.store.getFieldValue(d,String(u));n.map.forEach((d,u)=>{let p=c(s,u),f=c(a,u);if(f===void 0)return;o&&o.push(u);let y=this.applyMerges(d,p,f,i,o);y!==f&&(l=l||new Map,l.set(u,y)),o&&W(o.pop()===u)}),l&&(r=Tt(a)?a.slice(0):_({},a),l.forEach((d,u)=>{r[u]=d}))}return n.info?this.cache.policies.runMergeFunction(e,r,n.info,i,o&&i.store.getStorage(...o)):r}},KO=[];function GO({map:t},n){return t.has(n)||t.set(n,KO.pop()||{map:new Map}),t.get(n)}function Y_(t,n){if(t===n||!n||xm(n))return t;if(!t||xm(t))return n;let e=t.info&&n.info?_(_({},t.info),n.info):t.info||n.info,r=t.map.size&&n.map.size,i=r?new Map:t.map.size?t.map:n.map,o={info:e,map:i};if(r){let s=new Set(n.map.keys());t.map.forEach((a,l)=>{o.map.set(l,Y_(a,n.map.get(l))),s.delete(l)}),s.forEach(a=>{o.map.set(a,Y_(n.map.get(a),t.map.get(a)))})}return o}function xm(t){return!t||!(t.info||t.map.size)}function qO({map:t},n){let e=t.get(n);e&&xm(e)&&(KO.push(e),t.delete(n))}var QO=new Set;function c9(t,n,e,r){let i=u=>{let p=r.getFieldValue(u,e);return typeof p=="object"&&p},o=i(t);if(!o)return;let s=i(n);if(!s||Je(o)||dt(o,s)||Object.keys(o).every(u=>r.getFieldValue(s,u)!==void 0))return;let a=r.getFieldValue(t,"__typename")||r.getFieldValue(n,"__typename"),l=fi(e),c=`${a}.${l}`;if(QO.has(c))return;QO.add(c);let d=[];!Tt(o)&&!Tt(s)&&[o,s].forEach(u=>{let p=r.getFieldValue(u,"__typename");typeof p=="string"&&!d.includes(p)&&d.push(p)}),!1}function Z_(t,n,e){let r;for(let i of n.selections)if(qi(i)){if(i.name.value==="__typename")return t[gr(i)]}else r?r.push(i):r=[i];if(typeof t.__typename=="string")return t.__typename;if(r)for(let i of r){let o=Z_(t,ds(i,e).selectionSet,e);if(typeof o=="string")return o}}var Ta=class extends ac{data;optimisticData;config;watches=new Set;storeReader;storeWriter;addTypenameTransform=new Oo(_a);maybeBroadcastWatch;assumeImmutableResults=!0;policies;makeVar=q_;constructor(n={}){super(),this.config=DO(n),this.policies=new vm({cache:this,dataIdFromObject:this.config.dataIdFromObject,possibleTypes:this.config.possibleTypes,typePolicies:this.config.typePolicies}),this.init()}init(){let n=this.data=new Ca.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=n.stump,this.resetResultCache()}resetResultCache(){let{fragments:n}=this.config;this.addTypenameTransform.resetCache(),n?.resetCaches(),this.storeWriter=new Cm(this,this.storeReader=new wm({cache:this,fragments:n}),n),this.maybeBroadcastWatch=Mo((e,r)=>this.broadcastWatch(e,r),{max:gn["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:e=>{let r=e.optimistic?this.optimisticData:this.data;if(xa(r)){let{optimistic:i,id:o,variables:s}=e;return r.makeCacheKey(e.query,e.callback,En({optimistic:i,id:o,variables:s}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(e=>e.resetCaching())}restore(n){return this.init(),n&&this.data.replace(n),this}extract(n=!1){return(n?this.optimisticData:this.data).extract()}read(n){let{returnPartialData:e=!1}=n;return this.storeReader.diffQueryAgainstStore(A(_({},n),{store:n.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:e})).result}write(n){try{return++this.txCount,this.storeWriter.writeToStore(this.data,n)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}}modify(n){if(Yt.call(n,"id")&&!n.id)return!1;let e=n.optimistic?this.optimisticData:this.data;try{return++this.txCount,e.modify(n.id||"ROOT_QUERY",n.fields,!1)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}}diff(n){return this.storeReader.diffQueryAgainstStore(A(_({},n),{store:n.optimistic?this.optimisticData:this.data,rootId:n.id||"ROOT_QUERY",config:this.config}))}watch(n){return this.watches.size||BO(this),this.watches.add(n),n.immediate&&this.maybeBroadcastWatch(n),()=>{this.watches.delete(n)&&!this.watches.size&&G_(this),this.maybeBroadcastWatch.forget(n)}}gc(n){En.reset(),Ki.reset();let e=this.optimisticData.gc();return n&&!this.txCount&&n.resetResultCache&&this.resetResultCache(),e}retain(n,e){return(e?this.optimisticData:this.data).retain(n)}release(n,e){return(e?this.optimisticData:this.data).release(n)}identify(n){if(Je(n))return n.__ref;try{return this.policies.identify(n)[0]}catch(e){!1}}evict(n){if(!n.id){if(Yt.call(n,"id"))return!1;n=A(_({},n),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(n,this.data)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}}reset(n){return this.init(),En.reset(),n&&n.discardWatches?(this.watches.forEach(e=>this.maybeBroadcastWatch.forget(e)),this.watches.clear(),G_(this)):this.broadcastWatches(),Promise.resolve()}removeOptimistic(n){let e=this.optimisticData.removeLayer(n);e!==this.optimisticData&&(this.optimisticData=e,this.broadcastWatches())}txCount=0;batch(n){let{update:e,optimistic:r=!0,removeOptimistic:i,onWatchUpdated:o}=n,s,a=c=>{let{data:d,optimisticData:u}=this;++this.txCount,c&&(this.data=this.optimisticData=c);try{return s=e(this)}finally{--this.txCount,this.data=d,this.optimisticData=u}},l=new Set;return o&&!this.txCount&&this.broadcastWatches(A(_({},n),{onWatchUpdated(c){return l.add(c),!1}})),typeof r=="string"?this.optimisticData=this.optimisticData.addLayer(r,a):r===!1?a(this.data):a(),typeof i=="string"&&(this.optimisticData=this.optimisticData.removeLayer(i)),o&&l.size?(this.broadcastWatches(A(_({},n),{onWatchUpdated(c,d){let u=o.call(this,c,d);return u!==!1&&l.delete(c),u}})),l.size&&l.forEach(c=>this.maybeBroadcastWatch.dirty(c))):this.broadcastWatches(n),s}performTransaction(n,e){return this.batch({update:n,optimistic:e||e!==null})}transformDocument(n){return this.addTypenameTransform.transformDocument(this.addFragmentsToDocument(n))}fragmentMatches(n,e){return this.policies.fragmentMatches(n,e)}lookupFragment(n){return this.config.fragments?.lookup(n)||null}resolvesClientField(n,e){return!!this.policies.getReadFunction(n,e)}broadcastWatches(n){if(!this.txCount){let e=this.onAfterBroadcast,r=new Set;this.onAfterBroadcast=i=>{r.add(i)};try{this.watches.forEach(i=>this.maybeBroadcastWatch(i,n)),r.forEach(i=>i())}finally{this.onAfterBroadcast=e}}}addFragmentsToDocument(n){let{fragments:e}=this.config;return e?e.transform(n):n}broadcastWatch(n,e){let{lastDiff:r}=n,i=this.diff(n);e&&(n.optimistic&&typeof e.optimistic=="string"&&(i.fromOptimisticTransaction=!0),e.onWatchUpdated&&e.onWatchUpdated.call(this,n,i,r)===!1)||(!r||!dt(r.result,i.result))&&n.callback(n.lastDiff=i,r)}};!1;function gs(t,n){return typeof t=="object"&&t!==null&&t[Symbol.for("apollo.error")]===n}function ys(t){Object.defineProperty(t,Symbol.for("apollo.error"),{value:t.name,enumerable:!1,writable:!1,configurable:!1})}function YO(t){return t.map(n=>n.message||"Error message not found.").join(`
`)}var ZO=(()=>{class t extends Error{static is(e){return gs(e,"CombinedProtocolErrors")}static formatMessage=YO;errors;constructor(e){super(t.formatMessage(e,{defaultFormatMessage:YO})),this.name="CombinedProtocolErrors",this.errors=e,ys(this),Object.setPrototypeOf(this,t.prototype)}}return t})();function JO(t){return t!==null&&typeof t=="object"&&typeof t.message=="string"&&typeof t.name=="string"&&(typeof t.stack=="string"||typeof t.stack>"u")}var Tm=class t extends Error{static is(n){return gs(n,"UnconventionalError")}constructor(n){super("An error of unexpected shape occurred.",{cause:n}),this.name="UnconventionalError",ys(this),Object.setPrototypeOf(this,t.prototype)}};function XO(t){return t.filter(n=>n).map(n=>n.message||"Error message not found.").join(`
`)}var Ro=(()=>{class t extends Error{static is(e){return gs(e,"CombinedGraphQLErrors")}static formatMessage=XO;errors;data;extensions;constructor(e,r=e.errors||[]){super(t.formatMessage(r,{result:e,defaultFormatMessage:XO})),this.errors=r,this.data=e.data,this.extensions=e.extensions,this.name="CombinedGraphQLErrors",ys(this),Object.setPrototypeOf(this,t.prototype)}}return t})();var d9=new WeakSet;function J_(t){d9.add(t)}var Su=class t extends Error{static is(n){return gs(n,"ServerError")}response;statusCode;bodyText;constructor(n,e){super(n),this.name="ServerError",this.response=e.response,this.statusCode=e.response.status,this.bodyText=e.bodyText,ys(this),Object.setPrototypeOf(this,t.prototype)}};var Em=Symbol();function e2(t){return"extensions"in t?ZO.is(t.extensions[Em]):!1}function t2(t){return JO(t)?t:typeof t=="string"?new Error(t,{cause:t}):new Tm(t)}var Ae=(function(t){return t[t.loading=1]="loading",t[t.setVariables=2]="setVariables",t[t.fetchMore=3]="fetchMore",t[t.refetch=4]="refetch",t[t.poll=6]="poll",t[t.ready=7]="ready",t[t.error=8]="error",t[t.streaming=9]="streaming",t})(Ae||{});var{assign:n2,hasOwnProperty:u9}=Object,dc={loading:!0,networkStatus:Ae.loading,data:void 0,dataState:"empty",partial:!0},X_={loading:!1,networkStatus:Ae.ready,data:void 0,dataState:"empty",partial:!0},uc=class{options;queryName;variablesUnknown=!1;_lastWrite;get query(){return this.lastQuery}get variables(){return this.options.variables}unsubscribeFromCache;input;subject;isTornDown;queryManager;subscriptions=new Set;waitForNetworkResult;lastQuery;linkSubscription;pollingInfo;get networkStatus(){return this.subject.getValue().result.networkStatus}get cache(){return this.queryManager.cache}constructor({queryManager:n,options:e,transformedQuery:r=n.transform(e.query)}){this.queryManager=n,this.waitForNetworkResult=e.fetchPolicy==="network-only",this.isTornDown=!1,this.subscribeToMore=this.subscribeToMore.bind(this),this.maskResult=this.maskResult.bind(this);let{watchQuery:{fetchPolicy:i="cache-first"}={}}=n.defaultOptions,{fetchPolicy:o=i,initialFetchPolicy:s=o==="standby"?i:o}=e;e[E_]&&(W(o==="standby",82),this.variablesUnknown=!0),this.lastQuery=r,this.options=A(_({},e),{initialFetchPolicy:s,fetchPolicy:o,variables:this.getVariablesWithDefaults(e.variables)}),this.initializeObservablesQueue(),this["@@observable"]=()=>this,Symbol.observable&&(this[Symbol.observable]=()=>this);let a=Pn(this.query);this.queryName=a&&a.name&&a.name.value}initializeObservablesQueue(){this.subject=new an({query:this.query,variables:this.variables,result:dc,meta:{}});let n=this.subject.pipe(St({subscribe:()=>{this.subject.observed||(this.reobserve(),setTimeout(()=>this.updatePolling()))},unsubscribe:()=>{this.subject.observed||this.tearDownQuery()}}),ic(({query:e,variables:r,result:i,meta:o},s)=>{let{shouldEmit:a}=o;if(i===dc&&(s.previous=void 0,s.previousVariables=void 0),this.options.fetchPolicy==="standby"||a===2)return;if(a===1)return d();let{previous:l,previousVariables:c}=s;if(l){let u=this.queryManager.getDocumentInfo(e),p=this.queryManager.dataMasking,f=p?u.nonReactiveQuery:e;if((p||u.hasNonreactiveDirective?hu(f,l,i,r):dt(l,i))&&dt(c,r))return}if(a===3&&(!this.options.notifyOnNetworkStatusChange||dt(l,i)))return;return d();function d(){return s.previous=i,s.previousVariables=r,i}},()=>({})));this.pipe=n.pipe.bind(n),this.subscribe=n.subscribe.bind(n),this.input=new qe,this.input.complete=()=>{},this.input.pipe(this.operator).subscribe(this.subject)}subscribe;pipe;[Symbol.observable];"@@observable";getCacheDiff({optimistic:n=!0}={}){return this.cache.diff({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:n})}getInitialResult(n){let e=n||this.options.fetchPolicy;this.queryManager.prioritizeCacheValues&&(e==="network-only"||e==="cache-and-network")&&(e="cache-first");let r=()=>{let i=this.getCacheDiff(),o=this.options.returnPartialData||i.complete?i.result??void 0:void 0;return this.maskResult({data:o,dataState:i.complete?"complete":o===void 0?"empty":"partial",loading:!i.complete,networkStatus:i.complete?Ae.ready:Ae.loading,partial:!i.complete})};switch(e){case"cache-only":return A(_({},r()),{loading:!1,networkStatus:Ae.ready});case"cache-first":return r();case"cache-and-network":return A(_({},r()),{loading:!0,networkStatus:Ae.loading});case"standby":return X_;default:return dc}}resubscribeCache(){let{variables:n,fetchPolicy:e}=this.options,r=this.query,i=e==="standby"||e==="no-cache"||this.waitForNetworkResult,o=!Iu({query:r,variables:n},this.unsubscribeFromCache)&&!this.waitForNetworkResult;if((i||o)&&this.unsubscribeFromCache?.(),i||!o)return;let s={query:r,variables:n,optimistic:!0,watcher:this,callback:l=>{let c=this.queryManager.getDocumentInfo(r);if((c.hasClientExports||c.hasForcedResolvers)&&(s.lastDiff=void 0),s.lastOwnDiff===l)return;let{result:d}=this.subject.getValue();!l.complete&&(d.error||d===dc||d===X_)||dt(d.data,l.result)||this.scheduleNotify()}},a=this.cache.watch(s);this.unsubscribeFromCache=Object.assign(()=>{this.unsubscribeFromCache=void 0,a()},{query:r,variables:n})}stableLastResult;getCurrentResult(){let{result:n}=this.subject.getValue(),e=n.networkStatus===Ae.error||this.hasObservers()||this.options.fetchPolicy==="no-cache"?n:this.getInitialResult();return e===dc&&(e=this.getInitialResult()),dt(this.stableLastResult,e)||(this.stableLastResult=e),this.stableLastResult}refetch(n){let{fetchPolicy:e}=this.options,r={pollInterval:0};if(e==="no-cache"?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",!1){let i=du(this.query),o=i.variableDefinitions;(!o||!o.some(s=>s.variable.name.value==="variables"))&&!1&&W.warn(83,n,i.name?.value||i)}return n&&!dt(this.variables,n)&&(r.variables=this.options.variables=this.getVariablesWithDefaults(_(_({},this.variables),n))),this._lastWrite=void 0,this._reobserve(r,{newNetworkStatus:Ae.refetch})}fetchMore({query:n,variables:e,context:r,errorPolicy:i,updateQuery:o}){W(this.options.fetchPolicy!=="cache-only",84,sn(this.query,"(anonymous)"));let s=A(_({},Lr(this.options,{errorPolicy:"none"},{query:n,context:r,errorPolicy:i})),{variables:n?e:_(_({},this.variables),e),fetchPolicy:"no-cache",notifyOnNetworkStatusChange:this.options.notifyOnNetworkStatusChange});s.query=this.transformDocument(s.query),this.lastQuery=n?this.transformDocument(this.options.query):s.query;let a=!1,l=this.options.fetchPolicy!=="no-cache";l||W(o,85);let{finalize:c,pushNotification:d}=this.pushOperation(Ae.fetchMore);d({source:"newNetworkStatus",kind:"N",value:{}},{shouldEmit:3});let{promise:u,operator:p}=r2(),{observable:f}=this.queryManager.fetchObservableWithInfo(s,{networkStatus:Ae.fetchMore,exposeExtensions:!0}),y=f.pipe(p,nn(b=>b.kind==="N"&&b.source==="network")).subscribe({next:b=>{a=!1;let v=b.value,w=v[gu];if(Cu(b.value.networkStatus)&&c(),l){let D=this.getCacheDiff();this.cache.batch({update:P=>{o?P.updateQuery({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:!1,extensions:w},B=>o(B,{fetchMoreResult:v.data,variables:s.variables})):P.writeQuery({query:s.query,variables:s.variables,data:v.data,extensions:w})},onWatchUpdated:(P,B)=>{if(P.watcher===this&&!dt(B.result,D.result)){a=!0;let Y=this.getCurrentResult();wa(v.networkStatus)&&d({kind:"N",source:"network",value:A(_({},Y),{networkStatus:v.networkStatus===Ae.error?Ae.ready:v.networkStatus,loading:!1,data:B.result,dataState:v.dataState==="streaming"?"streaming":"complete"})})}}})}else{let D=this.getCurrentResult(),P=o(D.data,{fetchMoreResult:v.data,variables:s.variables});d({kind:"N",value:A(_({},D),{networkStatus:Ae.ready,loading:!1,data:P,dataState:D.dataState==="streaming"?"streaming":"complete"}),source:"network"})}}});return dm(u.then(b=>fs(this.maskResult(b))).finally(()=>{if(y.unsubscribe(),c(),l&&!a){let b=this.getCurrentResult();b.dataState==="streaming"?d({kind:"N",source:"network",value:A(_({},b),{dataState:"complete",networkStatus:Ae.ready})}):d({kind:"N",source:"newNetworkStatus",value:{}},{shouldEmit:1})}}))}subscribeToMore(n){let e=this.queryManager.startGraphQLSubscription({query:n.document,variables:n.variables,context:n.context}).subscribe({next:r=>{let{updateQuery:i,onError:o}=n,{error:s}=r;if(s){o?o(s):W.error(86,s);return}i&&this.updateQuery((a,l)=>i(a,_({subscriptionData:r},l)))}});return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)&&e.unsubscribe()}}applyOptions(n){let e=Lr(this.options,n||{});n2(this.options,e),this.updatePolling()}setVariables(n){return pt(this,null,function*(){return n=this.getVariablesWithDefaults(n),dt(this.variables,n)?fs(this.getCurrentResult()):(this.options.variables=n,this.hasObservers()?this._reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:n},{newNetworkStatus:Ae.setVariables}):fs(this.getCurrentResult()))})}updateQuery(n){let{queryManager:e}=this,{result:r,complete:i}=this.getCacheDiff({optimistic:!1}),o=n(r,{variables:this.variables,complete:!!i,previousData:r});o&&(this.cache.writeQuery({query:this.options.query,data:o,variables:this.variables}),e.broadcastQueries())}startPolling(n){this.options.pollInterval=n,this.updatePolling()}stopPolling(){this.options.pollInterval=0,this.updatePolling()}applyNextFetchPolicy(n,e){if(e.nextFetchPolicy){let{fetchPolicy:r="cache-first",initialFetchPolicy:i=r}=e;r==="standby"||(typeof e.nextFetchPolicy=="function"?e.fetchPolicy=e.nextFetchPolicy.call(e,r,{reason:n,options:e,observable:this,initialFetchPolicy:i}):n==="variables-changed"?e.fetchPolicy=i:e.fetchPolicy=e.nextFetchPolicy)}return e.fetchPolicy}fetch(n,e,r,i){let o=this.options.fetchPolicy;n.context??={};let s=!1,a=()=>{s=!0},l=v=>new pe(w=>{try{return v.subscribe({next(D){s=!0,w.next(D)},error:D=>w.error(D),complete:()=>w.complete()})}finally{s||(f.override=e,this.input.next({kind:"N",source:"newNetworkStatus",value:{resetError:!0},query:u,variables:p,meta:{shouldEmit:3,fetchPolicy:o}}))}}),{observable:c,fromLink:d}=this.queryManager.fetchObservableWithInfo(n,{networkStatus:e,query:r,onCacheHit:a,fetchQueryOperator:l,observableQuery:this}),{query:u,variables:p}=this,f={abort:()=>{b.unsubscribe()},query:u,variables:p};this.activeOperations.add(f);let y=e==Ae.refetch||e==Ae.setVariables;c=c.pipe(i,xi());let b=c.pipe(St({next:v=>{v.source==="newNetworkStatus"||v.kind==="N"&&v.value.loading?f.override=e:delete f.override},finalize:()=>this.activeOperations.delete(f)})).subscribe({next:v=>{let w={};y&&v.kind==="N"&&"loading"in v.value&&!v.value.loading&&(y=!1,w.shouldEmit=1),this.input.next(A(_({},v),{query:u,variables:p,meta:w}))}});return{fromLink:d,subscription:b,observable:c}}didWarnCacheOnlyPolling=!1;updatePolling(){if(this.queryManager.ssrMode)return;let{pollingInfo:n,options:{fetchPolicy:e,pollInterval:r}}=this,i=()=>{let{options:l}=this;return!l.pollInterval||!this.hasObservers()||l.fetchPolicy==="cache-only"||l.fetchPolicy==="standby"};if(i()){!1,this.cancelPolling();return}if(n?.interval===r)return;let o=n||(this.pollingInfo={});o.interval=r;let s=()=>{if(i())return this.cancelPolling();this.pollingInfo&&(!wa(this.networkStatus)&&!this.options.skipPollAttempt?.()?this._reobserve({fetchPolicy:this.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},{newNetworkStatus:Ae.poll}).then(a,a):a())},a=()=>{let l=this.pollingInfo;l&&(clearTimeout(l.timeout),l.timeout=setTimeout(s,l.interval))};a()}cancelPolling(){this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),delete this.pollingInfo)}reobserve(n){return this._reobserve(n)}_reobserve(n,e){this.isTornDown=!1;let{newNetworkStatus:r}=e||{};this.queryManager.obsQueries.add(this);let i=r===Ae.refetch||r===Ae.poll,o=this.variables,s=this.options.fetchPolicy,a=Lr(this.options,n||{});this.variablesUnknown&&=a.fetchPolicy==="standby";let l=i?a:n2(this.options,a),c=this.transformDocument(l.query);this.lastQuery=c,n&&"variables"in n&&(l.variables=this.getVariablesWithDefaults(n.variables)),i||(this.updatePolling(),n&&n.variables&&!dt(n.variables,o)&&l.fetchPolicy!=="standby"&&(l.fetchPolicy===s||typeof l.nextFetchPolicy=="function")&&(this.applyNextFetchPolicy("variables-changed",l),r===void 0&&(r=Ae.setVariables)));let d=this.networkStatus;r||(r=Ae.loading,d!==Ae.loading&&n?.variables&&!dt(n.variables,o)&&(r=Ae.setVariables),l.fetchPolicy==="standby"&&(r=Ae.ready)),l.fetchPolicy==="standby"&&this.cancelPolling(),this.resubscribeCache();let{promise:u,operator:p}=r2(l.fetchPolicy==="standby"?{data:void 0}:void 0),{subscription:f,observable:y,fromLink:b}=this.fetch(l,r,c,p);!i&&(b||!this.linkSubscription)&&(this.linkSubscription&&this.linkSubscription.unsubscribe(),this.linkSubscription=f);let v=Object.assign(dm(u.then(w=>fs(this.maskResult(w))).finally(()=>{!this.hasObservers()&&this.activeOperations.size===0&&this.tearDownQuery()})),{retain:()=>{let w=y.subscribe({}),D=()=>w.unsubscribe();return u.then(D,D),v}});return v}hasObservers(){return this.subject.observed}stop(){this.subject.complete(),this.initializeObservablesQueue(),this.tearDownQuery()}tearDownQuery(){this.isTornDown||(this.resetNotifications(),this.unsubscribeFromCache?.(),this.linkSubscription&&(this.linkSubscription.unsubscribe(),delete this.linkSubscription),this.stopPolling(),this.subscriptions.forEach(n=>n.unsubscribe()),this.subscriptions.clear(),this.queryManager.obsQueries.delete(this),this.isTornDown=!0,this.abortActiveOperations(),this._lastWrite=void 0)}transformDocument(n){return this.queryManager.transform(n)}maskResult(n){let e=this.queryManager.maskOperation({document:this.query,data:n.data,fetchPolicy:this.options.fetchPolicy,cause:this});return e===n.data?n:A(_({},n),{data:e})}dirty=!1;notifyTimeout;resetNotifications(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0),this.dirty=!1}scheduleNotify(){this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(()=>this.notify(!0),0)))}notify(n=!1){if(!n){let r=this.queryManager.getDocumentInfo(this.query);if(r.hasClientExports||r.hasForcedResolvers)return}let{dirty:e}=this;if(this.resetNotifications(),e&&(this.options.fetchPolicy==="cache-only"||this.options.fetchPolicy==="cache-and-network"||!this.activeOperations.size)){let r=this.getCacheDiff();dt(r.result,this.getCacheDiff({optimistic:!1}).result)?this.reobserveCacheFirst():this.input.next({kind:"N",value:{data:r.result,dataState:r.complete?"complete":r.result?"partial":"empty",networkStatus:Ae.ready,loading:!1,error:void 0,partial:!r.complete},source:"cache",query:this.query,variables:this.variables,meta:{}})}}activeOperations=new Set;pushOperation(n){let e=!1,{query:r,variables:i}=this,o=()=>{this.activeOperations.delete(s)},s={override:n,abort:()=>{e=!0,o()},query:r,variables:i};return this.activeOperations.add(s),{finalize:o,pushNotification:(a,l)=>{e||this.input.next(A(_({},a),{query:r,variables:i,meta:_({},l)}))}}}calculateNetworkStatus(n){return n===Ae.streaming?n:Array.from(this.activeOperations.values()).reverse().find(r=>Iu(r,this)&&r.override!==void 0)?.override??n}abortActiveOperations(){this.activeOperations.forEach(n=>n.abort())}reset(){let n=this.options.fetchPolicy==="cache-only";this.setResult(n?X_:dc,{shouldEmit:n?1:2}),this.abortActiveOperations()}setResult(n,e){this.input.next({source:"setResult",kind:"N",value:n,query:this.query,variables:this.variables,meta:_({},e)})}operator=ic(n=>{let{query:e,variables:r,meta:i}=n;if(n.source==="setResult")return{query:e,variables:r,result:n.value,meta:i};if(n.kind==="C"||!Iu(n,this))return;let o,s=this.subject.getValue();if(n.source==="cache"){if(o=n.value,o.networkStatus===Ae.ready&&o.partial&&(!this.options.returnPartialData||s.result.networkStatus===Ae.error)&&this.options.fetchPolicy!=="cache-only")return}else if(n.source==="network")this.waitForNetworkResult&&(this.waitForNetworkResult=!1,this.resubscribeCache()),o=n.kind==="E"?A(_({},Iu(s,n)?s.result:{data:void 0,dataState:"empty",partial:!0}),{error:n.error,networkStatus:Ae.error,loading:!1}):n.value,n.kind==="E"&&o.dataState==="streaming"&&(o.dataState="complete"),o.error&&(i.shouldEmit=1);else if(n.source==="newNetworkStatus"){let a=Iu(s,n)?s.result:this.getInitialResult(i.fetchPolicy),{resetError:l}=n.value,c=l?void 0:a.error,d=c?Ae.error:Ae.ready;o=A(_({},a),{error:c,networkStatus:d})}return W(o),o.error||delete o.error,o.networkStatus=this.calculateNetworkStatus(o.networkStatus),o.loading=wa(o.networkStatus),o=this.maskResult(o),s.result.data!==void 0&&o.data!==s.result.data&&dt(o.data,s.result.data)&&(o.data=s.result.data),{query:e,variables:r,result:o,meta:i}});reobserveCacheFirst(){let{fetchPolicy:n,nextFetchPolicy:e}=this.options;n==="cache-and-network"||n==="network-only"?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy(r,i){return this.nextFetchPolicy=e,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(r,i):n}}):this.reobserve()}getVariablesWithDefaults(n){return this.queryManager.getVariables(this.query,n)}};function i2(t){!1}function Iu(t,n){return!!(t&&n&&t.query===n.query&&dt(t.variables,n.variables))}function r2(t){let n=t,e,r,i=new Promise((s,a)=>{e=s,r=a}),o=St({next(s){if(s.kind==="E")return r(s.error);s.kind==="N"&&s.source!=="newNetworkStatus"&&!s.value.loading&&(n=s.value)},finalize:()=>{if(n)e(n);else{let s="The operation was aborted.",a="AbortError";r(typeof DOMException<"u"?new DOMException(s,a):Object.assign(new Error(s),{name:a}))}}});return{promise:i,operator:o}}var o2={},pc=new WeakMap;function ew(t,n){let e=t[n];typeof e=="function"&&(t[n]=function(){return pc.set(t,(pc.get(t)+1)%1e15),e.apply(this,arguments)})}var s2=new WeakMap,fc=class{lastRequestId=1;cache;queryManager;id;observableQuery;incremental;constructor(n,e){let r=this.cache=n.cache,i=(s2.get(n)||0)+1;s2.set(n,i),this.id=i+"",this.observableQuery=e,this.queryManager=n,pc.has(r)||(pc.set(r,0),ew(r,"evict"),ew(r,"modify"),ew(r,"reset"))}_lastWrite;get lastWrite(){return(this.observableQuery||this)._lastWrite}set lastWrite(n){(this.observableQuery||this)._lastWrite=n}resetLastWrite(){this.lastWrite=void 0}shouldWrite(n,e){let{lastWrite:r}=this;return!(r&&r.dmCount===pc.get(this.cache)&&dt(e,r.variables)&&dt(n.data,r.result.data)&&n.extensions?.[yr]===r.result.extensions?.[yr])}get hasNext(){return this.incremental?this.incremental.hasNext:!1}maybeHandleIncrementalResult(n,e,r){let{incrementalHandler:i}=this.queryManager;return i.isIncrementalResult(e)?(this.incremental||=i.startRequest({query:r}),this.incremental.handle(n,e)):e}markQueryResult(n,{document:e,variables:r,errorPolicy:i,cacheWriteBehavior:o}){let s={query:e,variables:r,returnPartialData:!0,optimistic:!0};this.observableQuery?.resetNotifications();let a=o===0,l=a?void 0:this.cache.diff(s),c=this.maybeHandleIncrementalResult(l?.result,n,e);return a||(tw(c,i)?this.cache.batch({onWatchUpdated:(d,u)=>{d.watcher===this.observableQuery&&(d.lastOwnDiff=u)},update:d=>{if(this.shouldWrite(c,r))d.writeQuery({query:e,data:c.data,variables:r,overwrite:o===1,extensions:c.extensions}),this.lastWrite={result:c,variables:r,dmCount:pc.get(this.cache)};else if(l&&l.complete){c=A(_({},c),{data:l.result});return}let u=d.diff(s);u.complete&&(c=A(_({},c),{data:u.result}))}}):this.lastWrite=void 0),c}markMutationResult(n,e,r=this.cache){let i=[],o=e.cacheWriteBehavior===0,s=this.maybeHandleIncrementalResult(o?void 0:r.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}).result,n,e.document);if(e.errorPolicy==="ignore"&&(s=A(_({},s),{errors:[]})),Io(s)&&e.errorPolicy==="none")return Promise.resolve(s);let a=()=>A(_({},s),{dataState:this.hasNext?"streaming":"complete"});if(!o&&tw(s,e.errorPolicy)){i.push({result:s.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables,extensions:s.extensions});let{updateQueries:c}=e;c&&this.queryManager.getObservableQueries("all").forEach(d=>{let u=d&&d.queryName;if(!u||!Object.hasOwnProperty.call(c,u))return;let p=c[u],{query:f,variables:y}=d,{result:b,complete:v}=d.getCacheDiff({optimistic:!1});if(v&&b){let w=p(b,{mutationResult:a(),queryName:f&&sn(f)||void 0,queryVariables:y});w&&i.push({result:w,dataId:"ROOT_QUERY",query:f,variables:y})}})}let l=e.refetchQueries;if(typeof l=="function"&&(l=l(a())),i.length>0||(l||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){let c=[];if(this.queryManager.refetchQueries({updateCache:d=>{o||i.forEach(p=>d.write(p));let{update:u}=e;if(u){if(!o){let p=d.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});p.complete&&(s=A(_({},s),{data:p.result}))}this.hasNext||u(d,s,{context:e.context,variables:e.variables})}!o&&!e.keepRootFields&&!this.hasNext&&d.modify({id:"ROOT_MUTATION",fields(p,{fieldName:f,DELETE:y}){return f==="__typename"?p:y}})},include:l,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(d=>c.push(d)),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(c).then(()=>s)}return Promise.resolve(s)}markMutationOptimistic(n,e){let r=typeof n=="function"?n(e.variables,{IGNORE:o2}):n;return r===o2?!1:(this.cache.recordOptimisticTransaction(i=>{try{this.markMutationResult({data:r},e,i)}catch(o){W.error(o)}},this.id),!0)}markSubscriptionResult(n,{document:e,variables:r,errorPolicy:i,cacheWriteBehavior:o}){o!==0&&(tw(n,i)&&this.cache.write({query:e,result:n.data,dataId:"ROOT_SUBSCRIPTION",variables:r,extensions:n.extensions}),this.queryManager.broadcastQueries())}};function tw(t,n="none"){let e=n==="ignore"||n==="all",r=!Io(t);return!r&&e&&t.data&&(r=!0),r}var Sm=class{defaultOptions;client;clientOptions;assumeImmutableResults;documentTransform;ssrMode;defaultContext;dataMasking;incrementalHandler;localState;queryDeduplication;prioritizeCacheValues=!1;onBroadcast;mutationStore;obsQueries=new Set;fetchCancelFns=new Map;constructor(n){let e=new Oo(i=>this.cache.transformDocument(i),{cache:!1});this.client=n.client,this.defaultOptions=n.defaultOptions,this.queryDeduplication=n.queryDeduplication,this.clientOptions=n.clientOptions,this.ssrMode=n.ssrMode,this.assumeImmutableResults=n.assumeImmutableResults,this.dataMasking=n.dataMasking,this.localState=n.localState,this.incrementalHandler=n.incrementalHandler;let r=n.documentTransform;this.documentTransform=r?e.concat(r).concat(e):e,this.defaultContext=n.defaultContext||{},(this.onBroadcast=n.onBroadcast)&&(this.mutationStore={})}get link(){return this.client.link}get cache(){return this.client.cache}stop(){this.obsQueries.forEach(n=>n.stop()),this.cancelPendingFetches(Kt(89))}cancelPendingFetches(n){this.fetchCancelFns.forEach(e=>e(n)),this.fetchCancelFns.clear()}mutate(f){return pt(this,arguments,function*({mutation:n,variables:e,optimisticResponse:r,updateQueries:i,refetchQueries:o=[],awaitRefetchQueries:s=!1,update:a,onQueryUpdated:l,fetchPolicy:c,errorPolicy:d,keepRootFields:u,context:p}){let y=new fc(this);n=this.cache.transformForLink(this.transform(n));let{hasClientExports:b}=this.getDocumentInfo(n);e=this.getVariables(n,e),b&&(!1,e=yield this.localState.getExportedVariables({client:this.client,document:n,variables:e,context:p}));let v=this.mutationStore&&(this.mutationStore[y.id]={mutation:n,variables:e,loading:!0,error:null}),w=r&&y.markMutationOptimistic(r,{document:n,variables:e,cacheWriteBehavior:c==="no-cache"?0:2,errorPolicy:d,context:p,updateQueries:i,update:a,keepRootFields:u});return this.broadcastQueries(),new Promise((D,P)=>{let B={};return this.getObservableFromLink(n,A(_({},p),{optimisticResponse:w?r:void 0}),e,c,{},!1).observable.pipe(a2(),Nt(Y=>{let ye=_({},Y);return ft(y.markMutationResult(ye,{document:n,variables:e,cacheWriteBehavior:c==="no-cache"?0:2,errorPolicy:d,context:p,update:a,updateQueries:i,awaitRefetchQueries:s,refetchQueries:o,removeOptimistic:w?y.id:void 0,onQueryUpdated:l,keepRootFields:u}))})).pipe(be(Y=>{if(Io(Y)&&d==="none")throw new Ro(nw(Y));return v&&(v.loading=!1,v.error=null),Y})).subscribe({next:Y=>{if(this.broadcastQueries(),!y.hasNext){let ye={data:this.maskOperation({document:n,data:Y.data,fetchPolicy:c,cause:B})};Io(Y)&&(ye.error=new Ro(Y)),Object.keys(Y.extensions||{}).length&&(ye.extensions=Y.extensions),D(ye)}},error:Y=>{if(v&&(v.loading=!1,v.error=Y),w&&this.cache.removeOptimistic(y.id),this.broadcastQueries(),d==="ignore")return D({data:void 0});if(d==="all")return D({data:void 0,error:Y});P(Y)}})})})}fetchQuery(n,e){return Kn(n.query,Qn.QUERY),pt(this,null,function*(){return Cr(this.fetchObservableWithInfo(n,{networkStatus:e}).observable.pipe(ic(r=>{switch(r.kind){case"E":throw r.error;case"N":if(r.source!=="newNetworkStatus")return fs(r.value)}})),{defaultValue:{data:void 0}})})}transform(n){return this.documentTransform.transformDocument(n)}transformCache=new ha(gn["queryManager.getDocumentInfo"]||2e3);getDocumentInfo(n){let{transformCache:e}=this;if(!e.has(n)){let i=Pn(n),o={hasClientExports:Gi(["client","export"],n,!0),hasForcedResolvers:y_(n),hasNonreactiveDirective:Gi(["nonreactive"],n),hasIncrementalDirective:Gi(["defer"],n),nonReactiveQuery:f9(n),clientQuery:Gi(["client"],n)?n:null,serverQuery:__([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],n),operationType:i?.operation,defaultVars:ma(i),asQuery:A(_({},n),{definitions:n.definitions.map(s=>s.kind==="OperationDefinition"&&s.operation!=="query"?A(_({},s),{operation:"query"}):s)})};e.set(n,o)}let r=e.get(n);if(r.violation)throw r.violation;return r}getVariables(n,e){let r=this.getDocumentInfo(n).defaultVars,i=Object.entries(e??{}).map(([o,s])=>[o,s===void 0?r[o]:s]);return _(_({},r),Object.fromEntries(i))}watchQuery(n){Kn(n.query,Qn.QUERY);let e=this.transform(n.query);return n=A(_({},n),{variables:this.getVariables(e,n.variables)}),typeof n.notifyOnNetworkStatusChange>"u"&&(n.notifyOnNetworkStatusChange=!0),new uc({queryManager:this,options:n,transformedQuery:e})}query(n){let e=this.transform(n.query);return this.fetchQuery(A(_({},n),{query:e})).then(r=>A(_({},r),{data:this.maskOperation({document:e,data:r?.data,fetchPolicy:n.fetchPolicy})}))}requestIdCounter=1;generateRequestId(){return this.requestIdCounter++}clearStore(n={discardWatches:!0}){return this.cancelPendingFetches(Kt(91)),this.obsQueries.forEach(e=>{e.reset()}),this.mutationStore&&(this.mutationStore={}),this.cache.reset(n)}getObservableQueries(n="active"){let e=new Set,r=new Map,i=new Map,o=new Set;return Array.isArray(n)&&n.forEach(s=>{if(typeof s=="string")r.set(s,s),i.set(s,!1);else if(b_(s)){let a=Ki(this.transform(s));r.set(a,sn(s)),i.set(a,!1)}else Ct(s)&&s.query&&o.add(s)}),this.obsQueries.forEach(s=>{let a=Ki(this.transform(s.options.query));if(n==="all"){e.add(s);return}let{queryName:l,options:{fetchPolicy:c}}=s;n==="active"&&c==="standby"||(n==="active"||l&&i.has(l)||a&&i.has(a))&&(e.add(s),l&&i.set(l,!0),a&&i.set(a,!0))}),o.size&&o.forEach(s=>{let a=new uc({queryManager:this,options:A(_({},ya(this.defaultOptions.watchQuery,s)),{fetchPolicy:"network-only"})});e.add(a)}),!1,e}refetchObservableQueries(n=!1){let e=[];return this.getObservableQueries(n?"all":"active").forEach(r=>{let{fetchPolicy:i}=r.options;(n||i!=="standby")&&i!=="cache-only"&&e.push(r.refetch())}),this.broadcastQueries(),Promise.all(e)}startGraphQLSubscription(n){let{query:e,variables:r}=n,{fetchPolicy:i="cache-first",errorPolicy:o="none",context:s={},extensions:a={}}=n;Kn(e,Qn.SUBSCRIPTION),e=this.transform(e),r=this.getVariables(e,r);let l;!1;let c=(this.getDocumentInfo(e).hasClientExports?ft(this.localState.getExportedVariables({client:this.client,document:e,variables:r,context:s})):ve(r)).pipe(Nt(d=>{let{observable:u,restart:p}=this.getObservableFromLink(e,s,d,i,a),f=new fc(this);return l=p,u.pipe(be(y=>{f.markSubscriptionResult(y,{document:e,variables:d,errorPolicy:o,cacheWriteBehavior:i==="no-cache"?0:2});let b={data:y.data??void 0};return Io(y)?b.error=new Ro(y):e2(y)&&(b.error=y.extensions[Em],delete y.extensions[Em]),y.extensions&&Object.keys(y.extensions).length&&(b.extensions=y.extensions),b.error&&o==="none"&&(b.data=void 0),o==="ignore"&&delete b.error,b}),dr(y=>o==="ignore"?ve({data:void 0}):ve({data:void 0,error:y})),nn(y=>!!(y.data||y.error)))}));return Object.assign(c,{restart:()=>l?.()})}broadcastQueries(){this.onBroadcast&&this.onBroadcast(),this.obsQueries.forEach(n=>n.notify())}inFlightLinkObservables=new Rn(!1);getObservableFromLink(n,e,r,i,o,s=e?.queryDeduplication??this.queryDeduplication){let a={},{serverQuery:l,clientQuery:c,operationType:d,hasIncrementalDirective:u}=this.getDocumentInfo(n),p=sn(n),f={client:this.client};if(l){let{inFlightLinkObservables:b,link:v}=this;try{let D=function(P){return new pe(B=>{function Y(){return P.subscribe({next:B.next.bind(B),complete:B.complete.bind(B),error:B.error.bind(B)})}let ye=Y();return a.restart||=()=>{ye.unsubscribe(),ye=Y()},()=>{ye.unsubscribe(),a.restart=void 0}})};var y=D;let w=this.incrementalHandler.prepareRequest({query:l,variables:r,context:A(_(_({},this.defaultContext),e),{queryDeduplication:s}),extensions:o});if(e=w.context,s){let P=Ki(l),B=En(r);a=b.lookup(P,B),a.observable||(a.observable=va(v,w,f).pipe(D,Ci(()=>{b.peek(P,B)===a&&b.remove(P,B)}),d===Qn.SUBSCRIPTION?xi():Rs({refCount:!0})))}else a.observable=va(v,w,f).pipe(D)}catch(w){a.observable=_i(()=>w)}}else a.observable=ve({data:{}});if(c){let{operation:b}=Pn(n);!1,W(!u,96,b[0].toUpperCase()+b.slice(1),p??"(anonymous)"),a.observable=a.observable.pipe(Nt(v=>ft(this.localState.execute({client:this.client,document:c,remoteResult:v,context:e,variables:r,fetchPolicy:i}))))}return{restart:()=>a.restart?.(),observable:a.observable.pipe(dr(b=>{throw b=t2(b),J_(b),b}))}}getResultsFromLink(n,{queryInfo:e,cacheWriteBehavior:r,observableQuery:i,exposeExtensions:o}){let s=e.lastRequestId=this.generateRequestId(),{errorPolicy:a}=n,l=this.cache.transformForLink(n.query);return this.getObservableFromLink(l,n.context,n.variables,n.fetchPolicy).observable.pipe(be(c=>{let d=e.markQueryResult(c,A(_({},n),{document:l,cacheWriteBehavior:r})),u=Io(d);if(u&&a==="none")throw e.resetLastWrite(),i?.resetNotifications(),new Ro(nw(d));let p=_({data:d.data},e.hasNext?{loading:!0,networkStatus:Ae.streaming,dataState:"streaming",partial:!0}:{dataState:d.data?"complete":"empty",loading:!1,networkStatus:Ae.ready,partial:!d.data});return o&&"extensions"in d&&(p[gu]=d.extensions),u&&(a==="none"&&(p.data=void 0,p.dataState="empty"),a!=="ignore"&&(p.error=new Ro(nw(d)),p.dataState!=="streaming"&&(p.networkStatus=Ae.error))),p}),dr(c=>{if(s>=e.lastRequestId&&a==="none")throw e.resetLastWrite(),i?.resetNotifications(),c;let d={data:void 0,dataState:"empty",loading:!1,networkStatus:Ae.ready,partial:!0};return a!=="ignore"&&(d.error=c,d.networkStatus=Ae.error),ve(d)}))}fetchObservableWithInfo(n,{networkStatus:e=Ae.loading,query:r=n.query,fetchQueryOperator:i=l=>l,onCacheHit:o=()=>{},observableQuery:s,exposeExtensions:a}){let l=this.getVariables(r,n.variables),{fetchPolicy:c="cache-first",errorPolicy:d="none",returnPartialData:u=!1,notifyOnNetworkStatusChange:p=!0,context:f={}}=n;this.prioritizeCacheValues&&(c==="network-only"||c==="cache-and-network")&&(c="cache-first");let y=Object.assign({},n,{query:r,variables:l,fetchPolicy:c,errorPolicy:d,returnPartialData:u,notifyOnNetworkStatusChange:p,context:f}),b=new fc(this,s),v=Y=>{y.variables=Y;let ye=c==="no-cache"?0:e===Ae.refetch&&y.refetchWritePolicy!=="merge"?1:2,Xe=this.fetchQueryByPolicy(y,{queryInfo:b,cacheWriteBehavior:ye,onCacheHit:o,observableQuery:s,exposeExtensions:a});return Xe.observable=Xe.observable.pipe(i),y.fetchPolicy!=="standby"&&s?.applyNextFetchPolicy("after-fetch",n),Xe},w=()=>{this.fetchCancelFns.delete(b.id)};this.fetchCancelFns.set(b.id,Y=>{D.next({kind:"E",error:Y,source:"network"})});let D=new qe,P,B;if(this.getDocumentInfo(y.query).hasClientExports)!1,P=ft(this.localState.getExportedVariables({client:this.client,document:y.query,variables:y.variables,context:y.context})).pipe(Nt(Y=>v(Y).observable)),B=!0;else{let Y=v(y.variables);B=Y.fromLink,P=Y.observable}return{observable:new pe(Y=>{Y.add(w),P.subscribe(Y),D.subscribe(Y)}).pipe(xi()),fromLink:B}}refetchQueries({updateCache:n,include:e,optimistic:r=!1,removeOptimistic:i=r?au("refetchQueries"):void 0,onQueryUpdated:o}){let s=new Map;e&&this.getObservableQueries(e).forEach(l=>{if(l.options.fetchPolicy==="cache-only"||l.variablesUnknown)return;let c=l.getCurrentResult();s.set(l,{oq:l,lastDiff:{result:c?.data,complete:!c?.partial}})});let a=new Map;if(n){let l=new Set;this.cache.batch({update:n,optimistic:r&&i||!1,removeOptimistic:i,onWatchUpdated(c,d,u){let p=c.watcher;if(p instanceof uc&&!l.has(p)){if(l.add(p),o){s.delete(p);let f=o(p,d,u);return f===!0&&(f=p.refetch().retain()),f!==!1&&a.set(p,f),f}o!==null&&p.options.fetchPolicy!=="cache-only"&&s.set(p,{oq:p,lastDiff:u,diff:d})}}})}return s.size&&s.forEach(({oq:l,lastDiff:c,diff:d})=>{let u;o&&(d||(d=l.getCacheDiff()),u=o(l,d,c)),(!o||u===!0)&&(u=l.refetch().retain()),u!==!1&&a.set(l,u)}),i&&this.cache.removeOptimistic(i),a}noCacheWarningsByCause=new WeakSet;maskOperation(n){let{document:e,data:r}=n;if(!1){let{fetchPolicy:i,cause:o={}}=n,s=Pn(e)?.operation;this.dataMasking&&i==="no-cache"&&!p9(e)&&!this.noCacheWarningsByCause.has(o)&&(this.noCacheWarningsByCause.add(o),!1)}return this.dataMasking?j_(r,e,this.cache):r}maskFragment(n){let{data:e,fragment:r,fragmentName:i}=n;return this.dataMasking?V_(e,r,this.cache,i):e}fetchQueryByPolicy({query:n,variables:e,fetchPolicy:r,errorPolicy:i,returnPartialData:o,context:s},{cacheWriteBehavior:a,onCacheHit:l,queryInfo:c,observableQuery:d,exposeExtensions:u}){let p=()=>this.cache.diff({query:n,variables:e,returnPartialData:!0,optimistic:!0}),f=(b,v)=>{let w=b.result;!1;let D=B=>(!b.complete&&!o&&(B=void 0),{data:B,dataState:b.complete?"complete":B?"partial":"empty",loading:wa(v),networkStatus:v,partial:!b.complete}),P=B=>ve({kind:"N",value:D(B),source:"cache"});return(b.complete||o)&&this.getDocumentInfo(n).hasForcedResolvers?(!1,l(),ft(this.localState.execute({client:this.client,document:n,remoteResult:w?{data:w}:void 0,context:s,variables:e,onlyRunForcedResolvers:!0,returnPartialData:!0,fetchPolicy:r}).then(B=>({kind:"N",value:D(B.data||void 0),source:"cache"})))):i==="none"&&v===Ae.refetch&&b.missing?P(void 0):P(w||void 0)},y=()=>this.getResultsFromLink({query:n,variables:e,context:s,fetchPolicy:r,errorPolicy:i},{cacheWriteBehavior:a,queryInfo:c,observableQuery:d,exposeExtensions:u}).pipe(a2(),e0(),be(b=>A(_({},b),{source:"network"})));switch(r){default:case"cache-first":{let b=p();return b.complete?{fromLink:!1,observable:f(b,Ae.ready)}:o?{fromLink:!0,observable:wi(f(b,Ae.loading),y())}:{fromLink:!0,observable:y()}}case"cache-and-network":{let b=p();return b.complete||o?{fromLink:!0,observable:wi(f(b,Ae.loading),y())}:{fromLink:!0,observable:y()}}case"cache-only":return{fromLink:!1,observable:wi(f(p(),Ae.ready))};case"network-only":return{fromLink:!0,observable:y()};case"no-cache":return{fromLink:!0,observable:y()};case"standby":return{fromLink:!1,observable:Pt}}}};function a2(){let t=!1;return St({next(){t=!0},complete(){W(t,100)}})}function p9(t){let n=!0;return on(t,{FragmentSpread:e=>{if(n=!!e.directives&&e.directives.some(r=>r.name.value==="unmask"),!n)return Eo}}),n}function f9(t){return on(t,{FragmentSpread:n=>{if(!n.directives?.some(e=>e.name.value==="unmask"))return A(_({},n),{directives:[...n.directives||[],{kind:Q.DIRECTIVE,name:{kind:Q.NAME,value:"nonreactive"}}]})}})}function nw(t){var s;if(t.extensions?.[yr]==null)return t;let i=t,{extensions:o}=i,a=o,{[s=yr]:n}=a,e=Et(a,[Yu(s)]),r=Et(i,["extensions"]);return Object.keys(e).length>0&&(r.extensions=e),r}var l2=!1,Ea=class{link;cache;disableNetworkFetches;set prioritizeCacheValues(n){this.queryManager.prioritizeCacheValues=n}get prioritizeCacheValues(){return this.queryManager.prioritizeCacheValues}version;queryDeduplication;defaultOptions;devtoolsConfig;refetchEventManager;queryManager;devToolsHookCb;resetStoreCallbacks=[];clearStoreCallbacks=[];constructor(n){!1;let{cache:e,documentTransform:r,ssrMode:i=!1,ssrForceFetchDelay:o=0,queryDeduplication:s=!0,defaultOptions:a,defaultContext:l,assumeImmutableResults:c=e.assumeImmutableResults,localState:d,devtools:u,dataMasking:p,link:f,incrementalHandler:y=new _u,experiments:b=[],refetchEventManager:v}=n;this.link=f,this.cache=e,this.queryDeduplication=s,this.defaultOptions=a||{},this.devtoolsConfig=A(_({},u),{enabled:u?.enabled??!1}),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.refetchObservableQueries=this.refetchObservableQueries.bind(this),this.version=su,this.queryManager=new Sm({client:this,defaultOptions:this.defaultOptions,defaultContext:l,documentTransform:r,queryDeduplication:s,ssrMode:i,dataMasking:!!p,clientOptions:n,incrementalHandler:y,assumeImmutableResults:c,onBroadcast:this.devtoolsConfig.enabled?()=>{this.devToolsHookCb&&this.devToolsHookCb()}:void 0,localState:d}),this.prioritizeCacheValues=i||o>0,o&&setTimeout(()=>{this.prioritizeCacheValues=!1},o),this.devtoolsConfig.enabled&&this.connectToDevTools(),b.forEach(w=>w.call(this,n)),this.refetchEventManager=v,this.refetchEventManager?.connect(this)}connectToDevTools(){if(typeof window>"u")return;let n=window,e=Symbol.for("apollo.devtools");(n[e]=n[e]||[]).push(this),n.__APOLLO_CLIENT__=this,!l2&&!1&&(l2=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(()=>{if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){let r=window.navigator,i=r&&r.userAgent,o;typeof i=="string"&&(i.indexOf("Chrome/")>-1?o="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":i.indexOf("Firefox/")>-1&&(o="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),o&&!1&&W.log("Download the Apollo DevTools for a better development experience: %s",o)}},1e4))}get documentTransform(){return this.queryManager.documentTransform}get localState(){return this.queryManager.localState}set localState(n){this.queryManager.localState=n}stop(){this.queryManager.stop(),this.refetchEventManager?.disconnect(this)}watchQuery(n){let{refetchOn:e}=n;if(this.defaultOptions.watchQuery){let r=this.defaultOptions.watchQuery.refetchOn,i;e&&typeof e=="object"&&(typeof r=="object"?i=_(_({},r),e):r!=null&&(i=o=>{let s=e[o.source]??r;return typeof s=="function"?s(o):s})),n=ya(this.defaultOptions.watchQuery,n),i&&(n.refetchOn=i)}if(!1){let{query:r}=n,{refetchEventManager:i}=this;if(e){let o=sn(r,"(anonymous)");i?typeof e=="object"&&Object.keys(e).forEach(s=>{i.hasSource(s)||!1}):!1}}return this.queryManager.watchQuery(n)}query=n=>(this.defaultOptions.query&&(n=ya(this.defaultOptions.query,n)),!1,this.queryManager.query(n));mutate=n=>{let e=ya(Lr({fetchPolicy:"network-only",errorPolicy:"none"},this.defaultOptions.mutate),n);return!1,Kn(e.mutation,Qn.MUTATION),this.queryManager.mutate(e)};subscribe(n){let e={},r=this.queryManager.startGraphQLSubscription(n),i=r.pipe(be(o=>A(_({},o),{data:this.queryManager.maskOperation({document:n.query,data:o.data,fetchPolicy:n.fetchPolicy,cause:e})})));return Object.assign(i,{restart:r.restart})}readQuery(n,e=!1){return this.cache.readQuery(A(_({},n),{query:this.transform(n.query)}),e)}watchFragment(n){let e=this.queryManager.dataMasking,r=this.cache.watchFragment(A(_({},n),{fragment:this.transform(n.fragment,e)}));return r}readFragment(n,e=!1){return this.cache.readFragment(A(_({},n),{fragment:this.transform(n.fragment)}),e)}writeQuery(n){let e=this.cache.writeQuery(n);return n.broadcast!==!1&&this.queryManager.broadcastQueries(),e}writeFragment(n){let e=this.cache.writeFragment(n);return n.broadcast!==!1&&this.queryManager.broadcastQueries(),e}__actionHookForDevTools(n){this.devToolsHookCb=n}__requestRaw(n){return va(this.link,n,{client:this})}resetStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!1})).then(()=>Promise.all(this.resetStoreCallbacks.map(n=>n()))).then(()=>this.refetchObservableQueries())}clearStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!0})).then(()=>Promise.all(this.clearStoreCallbacks.map(n=>n())))}onResetStore(n){return this.resetStoreCallbacks.push(n),()=>{this.resetStoreCallbacks=this.resetStoreCallbacks.filter(e=>e!==n)}}onClearStore(n){return this.clearStoreCallbacks.push(n),()=>{this.clearStoreCallbacks=this.clearStoreCallbacks.filter(e=>e!==n)}}reFetchObservableQueries;refetchObservableQueries(n){return this.queryManager.refetchObservableQueries(n)}refetchQueries(n){let e=this.queryManager.refetchQueries(n),r=[],i=[];e.forEach((s,a)=>{r.push(a),i.push(s)});let o=Promise.all(i);return o.queries=r,o.results=i,o.catch(s=>{!1}),o}getObservableQueries(n="active"){return this.queryManager.getObservableQueries(n)}extract(n){return this.cache.extract(n)}restore(n){return this.cache.restore(n)}setLink(n){this.link=n}get defaultContext(){return this.queryManager.defaultContext}maskedFragmentTransform=new Oo(w_);transform(n,e=!1){let r=this.queryManager.transform(n);return e?this.maskedFragmentTransform.transformDocument(r):r}};!1;var Im=new Map,rw=new Map,c2=!0,Dm=!1;function d2(t){return t.replace(/[\s,]+/g," ").trim()}function h9(t){return d2(t.source.body.substring(t.start,t.end))}function m9(t){var n=new Set,e=[];return t.definitions.forEach(function(r){if(r.kind==="FragmentDefinition"){var i=r.name.value,o=h9(r.loc),s=rw.get(i);s&&!s.has(o)?c2&&console.warn("Warning: fragment with name "+i+` already exists.
graphql-tag enforces all fragment names across your application to be unique; read more about
this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s||rw.set(i,s=new Set),s.add(o),n.has(o)||(n.add(o),e.push(r))}else e.push(r)}),Ac(Ac({},t),{definitions:e})}function g9(t){var n=new Set(t.definitions);n.forEach(function(r){r.loc&&delete r.loc,Object.keys(r).forEach(function(i){var o=r[i];o&&typeof o=="object"&&n.add(o)})});var e=t.loc;return e&&(delete e.startToken,delete e.endToken),t}function y9(t){var n=d2(t);if(!Im.has(n)){var e=sm(t,{experimentalFragmentVariables:Dm,allowLegacyFragmentVariables:Dm});if(!e||e.kind!=="Document")throw new Error("Not a valid GraphQL document.");Im.set(n,g9(m9(e)))}return Im.get(n)}function bs(t){for(var n=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];typeof t=="string"&&(t=[t]);var r=t[0];return n.forEach(function(i,o){i&&i.kind==="Document"?r+=i.loc.source.body:r+=i,r+=t[o+1]}),y9(r)}function u2(){Im.clear(),rw.clear()}function p2(){c2=!1}function f2(){Dm=!0}function h2(){Dm=!1}var Du={gql:bs,resetCaches:u2,disableFragmentWarnings:p2,enableExperimentalFragmentVariables:f2,disableExperimentalFragmentVariables:h2};(function(t){t.gql=Du.gql,t.resetCaches=Du.resetCaches,t.disableFragmentWarnings=Du.disableFragmentWarnings,t.enableExperimentalFragmentVariables=Du.enableExperimentalFragmentVariables,t.disableExperimentalFragmentVariables=Du.disableExperimentalFragmentVariables})(bs||(bs={}));bs.default=bs;function m2(t){return new pe(n=>(t().then(e=>{n.closed||(n.next(e),n.complete())},e=>{n.closed||n.error(e)}),()=>n.unsubscribe()))}function b9(t,n){return n?t.pipe(be(e=>A(_({},e),{loading:!1})),Lc({data:void 0,loading:!0})):t.pipe(be(e=>A(_({},e),{loading:!1})))}var ow=class{zone;constructor(n){this.zone=n}now=Date.now;schedule(n,e=0,r){return this.zone.run(()=>Gg.schedule(n,e,r))}};function sw(t,n){return t.pipe(Os(new ow(n)))}var aw=class{obsQuery;valueChanges;constructor(n,e){this.obsQuery=n,this.valueChanges=sw(ft(this.obsQuery),e)}get options(){return this.obsQuery.options}get variables(){return this.obsQuery.variables}getCurrentResult(){return this.obsQuery.getCurrentResult()}refetch(n){return this.obsQuery.refetch(n)}fetchMore(n){return this.obsQuery.fetchMore(n)}subscribeToMore(n){return this.obsQuery.subscribeToMore(n)}updateQuery(n){return this.obsQuery.updateQuery(n)}stopPolling(){return this.obsQuery.stopPolling()}startPolling(n){return this.obsQuery.startPolling(n)}setVariables(n){return this.obsQuery.setVariables(n)}reobserve(n){return this.obsQuery.reobserve(n)}},v9=new H("APOLLO_FLAGS"),lw=new H("APOLLO_OPTIONS"),_9=new H("APOLLO_NAMED_OPTIONS"),km=class{ngZone;flags;_client;useMutationLoading;constructor(n,e,r){this.ngZone=n,this.flags=e,this._client=r,this.useMutationLoading=e?.useMutationLoading??!1}watchQuery(n){return new aw(this.ensureClient().watchQuery(_({},n)),this.ngZone)}query(n){return m2(()=>this.ensureClient().query(_({},n)))}mutate(n){return b9(m2(()=>this.ensureClient().mutate(_({},n))),n.useMutationLoading??this.useMutationLoading)}watchFragment(n){let o=n,{useZone:e}=o,r=Et(o,["useZone"]),i=this.ensureClient().watchFragment(_({},r));return e!==!0?i:sw(i,this.ngZone)}subscribe(n){let o=n,{useZone:e}=o,r=Et(o,["useZone"]),i=this.ensureClient().subscribe(_({},r));return e!==!0?i:sw(i,this.ngZone)}get client(){return this.ensureClient()}set client(n){if(this._client)throw new Error("Client has been already defined");this._client=n}ensureClient(){return this.checkInstance(),this._client}checkInstance(){if(this._client)return!0;throw new Error("Client has not been defined yet")}},Mm=(()=>{class t extends km{map=new Map;constructor(e,r,i,o){if(super(e,o),r&&this.createDefault(r),i&&typeof i=="object"){for(let s in i)if(i.hasOwnProperty(s)){let a=i[s];this.create(a,s)}}}create(e,r){iw(r)?this.createNamed(r,e):this.createDefault(e)}default(){return this}use(e){return iw(e)?this.map.get(e):this.default()}createDefault(e){if(this._client)throw new Error("Apollo has been already created.");this.client=this.ngZone.runOutsideAngular(()=>new Ea(e))}createNamed(e,r){if(this.map.has(e))throw new Error(`Client ${e} has been already created`);this.map.set(e,new km(this.ngZone,this.flags,this.ngZone.runOutsideAngular(()=>new Ea(r))))}removeClient(e){iw(e)?this.map.delete(e):this._client=void 0}static \u0275fac=function(r){return new(r||t)(me($e),me(lw,8),me(_9,8),me(v9,8))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();function iw(t){return!!t&&t!=="default"}var w9=bs,Zi=w9;var hc=Zi`
fragment BaseModel on IBaseModel {
id
createdById
createdAt
updatedAt
lastUpdatedById
version
deleted
}
`,g2=Zi`
mutation Login($username: String!, $password: String!) {
login(username: $username, password: $password) {
... on CurrentUser {
id
identifier
channels {
id
token
}
}
... on InvalidCredentialsError {
errorCode
message
}
... on NativeAuthStrategyError {
errorCode
message
}
... on EmailCodeAuthStrategyError {
errorCode
message
}
}
}
`,y2=Zi`
query Me {
me {
id
identifier
}
}
`;var b2=Zi`
query GetUser($id: String!) {
getUser(id: $id) {
...BaseModel
identifier
activeEmployee {
...BaseModel
name
lastName
}
}
}
${hc}
`;var Gt={production:!0,apiUrl:void 0,wsUrl:void 0,apiKey:void 0,serverUrl:""};var Sa=class t{_hostInjector=ge(null);_pluginServices=ge(null);hostInjector(){return this._hostInjector()}setHostInjector(n){this._hostInjector.set(n)}pluginServices(){return this._pluginServices()}setPluginServices(n){this._pluginServices.set(n)}static \u0275fac=function(e){return new(e||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})};var Ji=class t{constructor(n){this.injector=n;Gt.production?this._apollo.set(n.get(Sa)?.pluginServices()?.apollo):this._apollo.set(n.get(Sa)?.pluginServices()?.apollo??n.get(Mm))}injector;_apollo=ge(void 0);apollo=()=>this._apollo();static \u0275fac=function(e){return new(e||t)(me(Bt))};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})};var C9=(t,n)=>n.title;function x9(t,n){t&1&&(E(0,"div",2),ce(1," Apollo not provided! "),T())}function T9(t,n){if(t&1){let e=se();E(0,"p-button",5),q("click",function(){let i=S(e).$implicit,o=m(2);return I(i.link?o.router.navigate([i.link]):null)}),T()}if(t&2){let e=n.$implicit,r=n.$index,i=n.$index,o=n.$count;k("w-full drop-shadow-lg"+(i===o-1&&r%2==0?" col-span-2":"")),h("label",e.title)("icon",e.icon)}}function E9(t,n){if(t&1&&(E(0,"app-base",0)(1,"div",1),ce(2," This is a demo of a PHX Frontend Plugin. "),X(3,"br"),ce(4," Click the buttons below to navigate to the different pages. "),T(),rt(5,x9,2,0,"div",2),E(6,"div",3),es(7,T9,1,4,"p-button",4,C9),T()()),t&2){let e=m();h("title",Mb("Hello ",e.userName(),"!"))("noHomeButton",!0),g(5),it(e.apolloProvided()?-1:5),g(2),ts(e.routeItems())}}var Om=class t{constructor(n){this.apollo=n;this.init()}apollo;router=x(Vn);userName=ge(void 0);apolloProvided=We(()=>this.apollo.apollo()!==void 0);routeItems=ae([{title:"Product View",link:"/product-view",icon:"fa fa-boxes-stacked"},{title:"Address List",link:"/address-list",icon:"fa fa-address-card"}]);init(){return pt(this,null,function*(){let n="World";try{let e=yield Cr(this.apollo.apollo().query({query:y2}));if(!e.data?.me)return;n=e.data.me.identifier??"World";let r=yield Cr(this.apollo.apollo().query({query:b2,variables:{id:e.data.me.id}}));if(r.data?.getUser?.activeEmployee){let i=[r.data.getUser.activeEmployee.name,r.data.getUser.activeEmployee.lastName].filter(Boolean);i.length>0&&(n=i.join(" "))}}catch(e){console.error(e)}finally{this.userName.set(n)}})}static \u0275fac=function(e){return new(e||t)(de(Ji))};static \u0275cmp=$({type:t,selectors:[["app-hello-world"]],inputs:{routeItems:[1,"routeItems"]},decls:1,vars:1,consts:[[3,"title","noHomeButton"],[1,"text-muted-color","text-center","bg-white","border-2","rounded-lg","p-8","mb-4","drop-shadow-lg"],[1,"text-center","text-white","bg-red-500","border-2","rounded-lg","p-4","mb-4"],[1,"grid","grid-cols-2","gap-2","pt-4"],["size","large","styleClass","w-full","iconPos","top",3,"label","icon","class"],["size","large","styleClass","w-full","iconPos","top",3,"click","label","icon"]],template:function(e,r){e&1&&rt(0,E9,9,4,"app-base",0),e&2&&it(r.userName()?0:-1)},dependencies:[ls,rr],styles:['*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[_ngcontent-%COMP%]::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}[_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-content: ""}html[_ngcontent-%COMP%], [_nghost-%COMP%]{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body[_ngcontent-%COMP%]{margin:0;line-height:inherit}hr[_ngcontent-%COMP%]{height:0;color:inherit;border-top-width:1px}abbr[_ngcontent-%COMP%]:where([title]){text-decoration:underline dotted}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{font-size:inherit;font-weight:inherit}a[_ngcontent-%COMP%]{color:inherit;text-decoration:inherit}b[_ngcontent-%COMP%], strong[_ngcontent-%COMP%]{font-weight:bolder}code[_ngcontent-%COMP%], kbd[_ngcontent-%COMP%], samp[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small[_ngcontent-%COMP%]{font-size:80%}sub[_ngcontent-%COMP%], sup[_ngcontent-%COMP%]{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub[_ngcontent-%COMP%]{bottom:-.25em}sup[_ngcontent-%COMP%]{top:-.5em}table[_ngcontent-%COMP%]{text-indent:0;border-color:inherit;border-collapse:collapse}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%], optgroup[_ngcontent-%COMP%], select[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{text-transform:none}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%]:where([type=button]), input[_ngcontent-%COMP%]:where([type=reset]), input[_ngcontent-%COMP%]:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}[_ngcontent-%COMP%]:-moz-focusring{outline:auto}[_ngcontent-%COMP%]:-moz-ui-invalid{box-shadow:none}progress[_ngcontent-%COMP%]{vertical-align:baseline}[_ngcontent-%COMP%]::-webkit-inner-spin-button, [_ngcontent-%COMP%]::-webkit-outer-spin-button{height:auto}[type=search][_ngcontent-%COMP%]{-webkit-appearance:textfield;outline-offset:-2px}[_ngcontent-%COMP%]::-webkit-search-decoration{-webkit-appearance:none}[_ngcontent-%COMP%]::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary[_ngcontent-%COMP%]{display:list-item}blockquote[_ngcontent-%COMP%], dl[_ngcontent-%COMP%], dd[_ngcontent-%COMP%], h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%], hr[_ngcontent-%COMP%], figure[_ngcontent-%COMP%], p[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{margin:0}fieldset[_ngcontent-%COMP%]{margin:0;padding:0}legend[_ngcontent-%COMP%]{padding:0}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%], menu[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0}dialog[_ngcontent-%COMP%]{padding:0}textarea[_ngcontent-%COMP%]{resize:vertical}input[_ngcontent-%COMP%]::placeholder, textarea[_ngcontent-%COMP%]::placeholder{opacity:1;color:#9ca3af}button[_ngcontent-%COMP%], [role=button][_ngcontent-%COMP%]{cursor:pointer}[_ngcontent-%COMP%]:disabled{cursor:default}img[_ngcontent-%COMP%], svg[_ngcontent-%COMP%], video[_ngcontent-%COMP%], canvas[_ngcontent-%COMP%], audio[_ngcontent-%COMP%], iframe[_ngcontent-%COMP%], embed[_ngcontent-%COMP%], object[_ngcontent-%COMP%]{display:block;vertical-align:middle}img[_ngcontent-%COMP%], video[_ngcontent-%COMP%]{max-width:100%;height:auto}[hidden][_ngcontent-%COMP%]:where(:not([hidden=until-found])){display:none}.visible[_ngcontent-%COMP%]{visibility:visible}.absolute[_ngcontent-%COMP%]{position:absolute}.col-span-2[_ngcontent-%COMP%]{grid-column:span 2 / span 2}.mx-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.my-4[_ngcontent-%COMP%]{margin-top:1rem;margin-bottom:1rem}.mb-4[_ngcontent-%COMP%]{margin-bottom:1rem}.ml-auto[_ngcontent-%COMP%]{margin-left:auto}.mr-auto[_ngcontent-%COMP%]{margin-right:auto}.mt-4[_ngcontent-%COMP%]{margin-top:1rem}.line-clamp-2[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block[_ngcontent-%COMP%]{display:block}.flex[_ngcontent-%COMP%]{display:flex}.table[_ngcontent-%COMP%]{display:table}.grid[_ngcontent-%COMP%]{display:grid}.h-16[_ngcontent-%COMP%]{height:4rem}.h-32[_ngcontent-%COMP%]{height:8rem}.min-h-screen[_ngcontent-%COMP%]{min-height:100vh}.w-16[_ngcontent-%COMP%]{width:4rem}.w-32[_ngcontent-%COMP%]{width:8rem}.w-full[_ngcontent-%COMP%]{width:100%}.transform[_ngcontent-%COMP%]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.grid-cols-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col[_ngcontent-%COMP%]{flex-direction:column}.items-center[_ngcontent-%COMP%]{align-items:center}.justify-center[_ngcontent-%COMP%]{justify-content:center}.justify-between[_ngcontent-%COMP%]{justify-content:space-between}.gap-2[_ngcontent-%COMP%]{gap:.5rem}.gap-4[_ngcontent-%COMP%]{gap:1rem}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded[_ngcontent-%COMP%]{border-radius:.25rem}.rounded-2xl[_ngcontent-%COMP%]{border-radius:1rem}.rounded-lg[_ngcontent-%COMP%]{border-radius:.5rem}.border[_ngcontent-%COMP%]{border-width:1px}.border-2[_ngcontent-%COMP%]{border-width:2px}.bg-gray-100\\/50[_ngcontent-%COMP%]{background-color:#f3f4f680}.bg-red-500[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-white[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-1[_ngcontent-%COMP%]{padding:.25rem}.p-2[_ngcontent-%COMP%]{padding:.5rem}.p-4[_ngcontent-%COMP%]{padding:1rem}.p-8[_ngcontent-%COMP%]{padding:2rem}.pt-4[_ngcontent-%COMP%]{padding-top:1rem}.text-center[_ngcontent-%COMP%]{text-align:center}.text-2xl[_ngcontent-%COMP%]{font-size:1.5rem;line-height:2rem}.text-lg[_ngcontent-%COMP%]{font-size:1.125rem;line-height:1.75rem}.text-sm[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem}.font-bold[_ngcontent-%COMP%]{font-weight:700}.italic[_ngcontent-%COMP%]{font-style:italic}.text-blue-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-gray-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-white[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.drop-shadow[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-2xl[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 25px 25px rgb(0 0 0 / .15));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-lg[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / .04)) drop-shadow(0 4px 3px rgb(0 0 0 / .1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter[_ngcontent-%COMP%]{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.text-muted-color[_ngcontent-%COMP%]{color:var(--p-text-muted-color)}@keyframes _ngcontent-%COMP%_enter{0%{opacity:var(--p-enter-opacity, 1);transform:translate3d(var(--p-enter-translate-x, 0),var(--p-enter-translate-y, 0),0) scale3d(var(--p-enter-scale, 1),var(--p-enter-scale, 1),var(--p-enter-scale, 1)) rotate(var(--p-enter-rotate, 0))}}@keyframes _ngcontent-%COMP%_leave{to{opacity:var(--p-leave-opacity, 1);transform:translate3d(var(--p-leave-translate-x, 0),var(--p-leave-translate-y, 0),0) scale3d(var(--p-leave-scale, 1),var(--p-leave-scale, 1),var(--p-leave-scale, 1)) rotate(var(--p-leave-rotate, 0))}}.hover\\:text-blue-700[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.hover\\:underline[_ngcontent-%COMP%]:hover{text-decoration-line:underline}@media(min-width:640px){.sm\\:grid-cols-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}']})};var D2=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,r){this._renderer=e,this._elementRef=r}setProperty(e,r){this._renderer.setProperty(this._elementRef.nativeElement,e,r)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(r){return new(r||t)(de(Jr),de(un))};static \u0275dir=Ue({type:t})}return t})(),S9=(()=>{class t extends D2{static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275dir=Ue({type:t,features:[j]})}return t})(),Nn=new H("");var I9={provide:Nn,useExisting:Ht(()=>bc),multi:!0};function D9(){let t=Pr()?Pr().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var k9=new H(""),bc=(()=>{class t extends D2{_compositionMode;_composing=!1;constructor(e,r,i){super(e,r),this._compositionMode=i,this._compositionMode==null&&(this._compositionMode=!D9())}writeValue(e){let r=e??"";this.setProperty("value",r)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(r){return new(r||t)(de(Jr),de(un),de(k9,8))};static \u0275dir=Ue({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,i){r&1&&q("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},standalone:!1,features:[xe([I9]),j]})}return t})();function hw(t){return t==null||mw(t)===0}function mw(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var gw=new H(""),yw=new H(""),M9=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Au=class{static min(n){return O9(n)}static max(n){return R9(n)}static required(n){return P9(n)}static requiredTrue(n){return A9(n)}static email(n){return N9(n)}static minLength(n){return F9(n)}static maxLength(n){return L9(n)}static pattern(n){return B9(n)}static nullValidator(n){return k2()}static compose(n){return N2(n)}static composeAsync(n){return L2(n)}};function O9(t){return n=>{if(n.value==null||t==null)return null;let e=parseFloat(n.value);return!isNaN(e)&&e<t?{min:{min:t,actual:n.value}}:null}}function R9(t){return n=>{if(n.value==null||t==null)return null;let e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}function P9(t){return hw(t.value)?{required:!0}:null}function A9(t){return t.value===!0?null:{required:!0}}function N9(t){return hw(t.value)||M9.test(t.value)?null:{email:!0}}function F9(t){return n=>{let e=n.value?.length??mw(n.value);return e===null||e===0?null:e<t?{minlength:{requiredLength:t,actualLength:e}}:null}}function L9(t){return n=>{let e=n.value?.length??mw(n.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function B9(t){if(!t)return k2;let n,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),r=>{if(hw(r.value))return null;let i=r.value;return n.test(i)?null:{pattern:{requiredPattern:e,actualValue:i}}}}function k2(t){return null}function M2(t){return t!=null}function O2(t){return Xo(t)?ft(t):t}function R2(t){let n={};return t.forEach(e=>{n=e!=null?_(_({},n),e):n}),Object.keys(n).length===0?null:n}function P2(t,n){return n.map(e=>e(t))}function V9(t){return!t.validate}function A2(t){return t.map(n=>V9(n)?n:e=>n.validate(e))}function N2(t){if(!t)return null;let n=t.filter(M2);return n.length==0?null:function(e){return R2(P2(e,n))}}function F2(t){return t!=null?N2(A2(t)):null}function L2(t){if(!t)return null;let n=t.filter(M2);return n.length==0?null:function(e){let r=P2(e,n).map(O2);return Kg(r).pipe(be(R2))}}function B2(t){return t!=null?L2(A2(t)):null}function _2(t,n){return t===null?[n]:Array.isArray(t)?[...t,n]:[t,n]}function V2(t){return t._rawValidators}function j2(t){return t._rawAsyncValidators}function cw(t){return t?Array.isArray(t)?t:[t]:[]}function Pm(t,n){return Array.isArray(t)?t.includes(n):t===n}function w2(t,n){let e=cw(n);return cw(t).forEach(i=>{Pm(e,i)||e.push(i)}),e}function C2(t,n){return cw(n).filter(e=>!Pm(t,e))}var Am=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=F2(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=B2(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return this.control?this.control.hasError(n,e):!1}getError(n,e){return this.control?this.control.getError(n,e):null}},Ia=class extends Am{name;get formDirective(){return null}get path(){return null}},Yn=class extends Am{_parent=null;name=null;valueAccessor=null},Nm=class{_cd;constructor(n){this._cd=n}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},j9={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},zNe=A(_({},j9),{"[class.ng-submitted]":"isSubmitted"}),_s=(()=>{class t extends Nm{constructor(e){super(e)}static \u0275fac=function(r){return new(r||t)(de(Yn,2))};static \u0275dir=Ue({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){r&2&&ea("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},standalone:!1,features:[j]})}return t})(),z2=(()=>{class t extends Nm{constructor(e){super(e)}static \u0275fac=function(r){return new(r||t)(de(Ia,10))};static \u0275dir=Ue({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,i){r&2&&ea("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},standalone:!1,features:[j]})}return t})();var ku="VALID",Rm="INVALID",mc="PENDING",Mu="DISABLED",vs=class{},Fm=class extends vs{value;source;constructor(n,e){super(),this.value=n,this.source=e}},Ou=class extends vs{pristine;source;constructor(n,e){super(),this.pristine=n,this.source=e}},Ru=class extends vs{touched;source;constructor(n,e){super(),this.touched=n,this.source=e}},gc=class extends vs{status;source;constructor(n,e){super(),this.status=n,this.source=e}},dw=class extends vs{source;constructor(n){super(),this.source=n}},Nu=class extends vs{source;constructor(n){super(),this.source=n}};function bw(t){return(jm(t)?t.validators:t)||null}function z9(t){return Array.isArray(t)?F2(t):t||null}function vw(t,n){return(jm(n)?n.asyncValidators:t)||null}function H9(t){return Array.isArray(t)?B2(t):t||null}function jm(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function H2(t,n,e){let r=t.controls;if(!(n?Object.keys(r):r).length)throw new U(1e3,"");if(!r[e])throw new U(1001,"")}function $2(t,n,e){t._forEachChild((r,i)=>{if(e[i]===void 0)throw new U(1002,"")})}var yc=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(n,e){this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get status(){return fn(this.statusReactive)}set status(n){fn(()=>this.statusReactive.set(n))}_status=We(()=>this.statusReactive());statusReactive=ge(void 0);get valid(){return this.status===ku}get invalid(){return this.status===Rm}get pending(){return this.status==mc}get disabled(){return this.status===Mu}get enabled(){return this.status!==Mu}errors;get pristine(){return fn(this.pristineReactive)}set pristine(n){fn(()=>this.pristineReactive.set(n))}_pristine=We(()=>this.pristineReactive());pristineReactive=ge(!0);get dirty(){return!this.pristine}get touched(){return fn(this.touchedReactive)}set touched(n){fn(()=>this.touchedReactive.set(n))}_touched=We(()=>this.touchedReactive());touchedReactive=ge(!1);get untouched(){return!this.touched}_events=new qe;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(w2(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(w2(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(C2(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(C2(n,this._rawAsyncValidators))}hasValidator(n){return Pm(this._rawValidators,n)}hasAsyncValidator(n){return Pm(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){let e=this.touched===!1;this.touched=!0;let r=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched(A(_({},n),{sourceControl:r})),e&&n.emitEvent!==!1&&this._events.next(new Ru(!0,r))}markAllAsDirty(n={}){this.markAsDirty({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(n))}markAllAsTouched(n={}){this.markAsTouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(n))}markAsUntouched(n={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=n.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:r})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,r),e&&n.emitEvent!==!1&&this._events.next(new Ru(!1,r))}markAsDirty(n={}){let e=this.pristine===!0;this.pristine=!1;let r=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty(A(_({},n),{sourceControl:r})),e&&n.emitEvent!==!1&&this._events.next(new Ou(!1,r))}markAsPristine(n={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=n.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,r),e&&n.emitEvent!==!1&&this._events.next(new Ou(!0,r))}markAsPending(n={}){this.status=mc;let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new gc(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.markAsPending(A(_({},n),{sourceControl:e}))}disable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=Mu,this.errors=null,this._forEachChild(i=>{i.disable(A(_({},n),{onlySelf:!0}))}),this._updateValue();let r=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Fm(this.value,r)),this._events.next(new gc(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(A(_({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=ku,this._forEachChild(r=>{r.enable(A(_({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(A(_({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(n,e){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ku||this.status===mc)&&this._runAsyncValidator(r,n.emitEvent)}let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Fm(this.value,e)),this._events.next(new gc(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(A(_({},n),{sourceControl:e}))}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Mu:ku}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,e){if(this.asyncValidator){this.status=mc,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:n!==!1};let r=O2(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:e,shouldHaveEmitted:n})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let n=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(n){let e=n;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((r,i)=>r&&r._find(i),this)}getError(n,e){let r=e?this.get(e):this;return r&&r.errors?r.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n,e,r){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||r)&&this._events.next(new gc(this.status,e)),this._parent&&this._parent._updateControlsErrors(n,e,r)}_initObservables(){this.valueChanges=new z,this.statusChanges=new z}_calculateStatus(){return this._allControlsDisabled()?Mu:this.errors?Rm:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(mc)?mc:this._anyControlsHaveStatus(Rm)?Rm:ku}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n,e){let r=!this._anyControlsDirty(),i=this.pristine!==r;this.pristine=r,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,e),i&&this._events.next(new Ou(this.pristine,e))}_updateTouched(n={},e){this.touched=this._anyControlsTouched(),this._events.next(new Ru(this.touched,e)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,e)}_onDisabledChange=[];_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){jm(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){let e=this._parent&&this._parent.dirty;return!n&&!!e&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=z9(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=H9(this._rawAsyncValidators)}},Lm=class extends yc{constructor(n,e,r){super(bw(e),vw(r,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,r={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,r={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){$2(this,!0,n),Object.keys(n).forEach(r=>{H2(this,!0,r),this.controls[r].setValue(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(Object.keys(n).forEach(r=>{let i=this.controls[r];i&&i.patchValue(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((r,i)=>{r.reset(n?n[i]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new Nu(this))}getRawValue(){return this._reduceChildren({},(n,e,r)=>(n[r]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,r)=>r._syncPendingControls()?!0:e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{let r=this.controls[e];r&&n(r,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(let[e,r]of Object.entries(this.controls))if(this.contains(e)&&n(r))return!0;return!1}_reduceValue(){let n={};return this._reduceChildren(n,(e,r,i)=>((r.enabled||this.disabled)&&(e[i]=r.value),e))}_reduceChildren(n,e){let r=n;return this._forEachChild((i,o)=>{r=e(r,i,o)}),r}_allControlsDisabled(){for(let n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}};var uw=class extends Lm{};var zm=new H("",{providedIn:"root",factory:()=>Hm}),Hm="always";function U2(t,n){return[...n.path,t]}function pw(t,n,e=Hm){_w(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&n.valueAccessor.setDisabledState?.(t.disabled),U9(t,n),G9(t,n),W9(t,n),$9(t,n)}function x2(t,n,e=!0){let r=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(r),n.valueAccessor.registerOnTouched(r)),Vm(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Bm(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function $9(t,n){if(n.valueAccessor.setDisabledState){let e=r=>{n.valueAccessor.setDisabledState(r)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function _w(t,n){let e=V2(t);n.validator!==null?t.setValidators(_2(e,n.validator)):typeof e=="function"&&t.setValidators([e]);let r=j2(t);n.asyncValidator!==null?t.setAsyncValidators(_2(r,n.asyncValidator)):typeof r=="function"&&t.setAsyncValidators([r]);let i=()=>t.updateValueAndValidity();Bm(n._rawValidators,i),Bm(n._rawAsyncValidators,i)}function Vm(t,n){let e=!1;if(t!==null){if(n.validator!==null){let i=V2(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==n.validator);o.length!==i.length&&(e=!0,t.setValidators(o))}}if(n.asyncValidator!==null){let i=j2(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==n.asyncValidator);o.length!==i.length&&(e=!0,t.setAsyncValidators(o))}}}let r=()=>{};return Bm(n._rawValidators,r),Bm(n._rawAsyncValidators,r),e}function U9(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&W2(t,n)})}function W9(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&W2(t,n),t.updateOn!=="submit"&&t.markAsTouched()})}function W2(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function G9(t,n){let e=(r,i)=>{n.valueAccessor.writeValue(r),i&&n.viewToModelUpdate(r)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function q9(t,n){t==null,_w(t,n)}function Q9(t,n){return Vm(t,n)}function G2(t,n){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(n,e.currentValue)}function K9(t){return Object.getPrototypeOf(t.constructor)===S9}function Y9(t,n){t._syncPendingControls(),n.forEach(e=>{let r=e.control;r.updateOn==="submit"&&r._pendingChange&&(e.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function q2(t,n){if(!n)return null;Array.isArray(n);let e,r,i;return n.forEach(o=>{o.constructor===bc?e=o:K9(o)?r=o:i=o}),i||r||e||null}function Z9(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function T2(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function E2(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Pu=class extends yc{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(n=null,e,r){super(bw(e),vw(r,e)),this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),jm(e)&&(e.nonNullable||e.initialValueIsDefault)&&(E2(n)?this.defaultValue=n.value:this.defaultValue=n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new Nu(this))}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){T2(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){T2(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(n){E2(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};var J9=t=>t instanceof Pu;var X9={provide:Yn,useExisting:Ht(()=>Da)},S2=Promise.resolve(),Da=(()=>{class t extends Yn{_changeDetectorRef;callSetDisabledState;control=new Pu;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new z;constructor(e,r,i,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=e,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=q2(this,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let r=e.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),G2(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){pw(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){S2.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let r=e.isDisabled.currentValue,i=r!==0&&R(r);S2.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?U2(e,this._parent):[e]}static \u0275fac=function(r){return new(r||t)(de(Ia,9),de(gw,10),de(yw,10),de(Nn,10),de(ns,8),de(zm,8))};static \u0275dir=Ue({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[xe([X9]),j,Kr]})}return t})();var Q2=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275dir=Ue({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})();var K2=new H("");var ej={provide:Ia,useExisting:Ht(()=>ww)},ww=(()=>{class t extends Ia{callSetDisabledState;get submitted(){return fn(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=We(()=>this._submittedReactive());_submittedReactive=ge(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new z;constructor(e,r,i){super(),this.callSetDisabledState=i,this._setValidators(e),this._setAsyncValidators(r)}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Vm(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let r=this.form.get(e.path);return pw(r,e,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),r}getControl(e){return this.form.get(e.path)}removeControl(e){x2(e.control||null,e,!1),Z9(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,r){this.form.get(e.path).setValue(r)}onSubmit(e){return this._submittedReactive.set(!0),Y9(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new dw(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0,r={}){this.form.reset(e,r),this._submittedReactive.set(!1)}_updateDomValue(){this.directives.forEach(e=>{let r=e.control,i=this.form.get(e.path);r!==i&&(x2(r||null,e),J9(i)&&(pw(i,e,this.callSetDisabledState),e.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let r=this.form.get(e.path);q9(r,e),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let r=this.form.get(e.path);r&&Q9(r,e)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){_w(this.form,this),this._oldForm&&Vm(this._oldForm,this)}static \u0275fac=function(r){return new(r||t)(de(gw,10),de(yw,10),de(zm,8))};static \u0275dir=Ue({type:t,selectors:[["","formGroup",""]],hostBindings:function(r,i){r&1&&q("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[xe([ej]),j,Kr]})}return t})();var tj={provide:Yn,useExisting:Ht(()=>Cw)},Cw=(()=>{class t extends Yn{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new z;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,r,i,o,s){super(),this._ngModelWarningConfig=s,this._parent=e,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=q2(this,o)}ngOnChanges(e){this._added||this._setUpControl(),G2(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return U2(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(r){return new(r||t)(de(Ia,13),de(gw,10),de(yw,10),de(Nn,10),de(K2,8))};static \u0275dir=Ue({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[xe([tj]),j,Kr]})}return t})();var Y2=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({})}return t})(),fw=class extends yc{constructor(n,e,r){super(bw(e),vw(r,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){Array.isArray(n)?n.forEach(r=>{this.controls.push(r),this._registerControl(r)}):(this.controls.push(n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,r={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(n,e={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,r={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),e&&(this.controls.splice(i,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){$2(this,!1,n),n.forEach((r,i)=>{H2(this,!1,i),this.at(i).setValue(r,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(n.forEach((r,i)=>{this.at(i)&&this.at(i).patchValue(r,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((r,i)=>{r.reset(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new Nu(this))}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,r)=>r._syncPendingControls()?!0:e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,r)=>{n(e,r)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(let n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}};function I2(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var Z2=(()=>{class t{useNonNullable=!1;get nonNullable(){let e=new t;return e.useNonNullable=!0,e}group(e,r=null){let i=this._reduceControls(e),o={};return I2(r)?o=r:r!==null&&(o.validators=r.validator,o.asyncValidators=r.asyncValidator),new Lm(i,o)}record(e,r=null){let i=this._reduceControls(e);return new uw(i,r)}control(e,r,i){let o={};return this.useNonNullable?(I2(r)?o=r:(o.validators=r,o.asyncValidators=i),new Pu(e,A(_({},o),{nonNullable:!0}))):new Pu(e,r,i)}array(e,r,i){let o=e.map(s=>this._createControl(s));return new fw(o,r,i)}_reduceControls(e){let r={};return Object.keys(e).forEach(i=>{r[i]=this._createControl(e[i])}),r}_createControl(e){if(e instanceof Pu)return e;if(e instanceof yc)return e;if(Array.isArray(e)){let r=e[0],i=e.length>1?e[1]:null,o=e.length>2?e[2]:null;return this.control(r,i,o)}else return this.control(e)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Xi=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:zm,useValue:e.callSetDisabledState??Hm}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({imports:[Y2]})}return t})(),J2=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:K2,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:zm,useValue:e.callSetDisabledState??Hm}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({imports:[Y2]})}return t})();var Um=(()=>{class t extends ut{modelValue=ge(void 0);$filled=We(()=>lt(this.modelValue()));writeModelValue(e){this.modelValue.set(e)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275dir=Ue({type:t,features:[j]})}return t})();var eo=(()=>{class t extends Um{required=ae(void 0,{transform:R});invalid=ae(void 0,{transform:R});disabled=ae(void 0,{transform:R});name=ae();_disabled=ge(!1);$disabled=We(()=>this.disabled()||this._disabled());onModelChange=()=>{};onModelTouched=()=>{};writeDisabledState(e){this._disabled.set(e)}writeControlValue(e,r){}writeValue(e){this.writeControlValue(e,this.writeModelValue.bind(this))}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.writeDisabledState(e),this.cd.markForCheck()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275dir=Ue({type:t,inputs:{required:[1,"required"],invalid:[1,"invalid"],disabled:[1,"disabled"],name:[1,"name"]},features:[j]})}return t})();var vc=(()=>{class t extends eo{pcFluid=x(Gl,{optional:!0,host:!0,skipSelf:!0});fluid=ae(void 0,{transform:R});variant=ae();size=ae();inputSize=ae();pattern=ae();min=ae();max=ae();step=ae();minlength=ae();maxlength=ae();$variant=We(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());get hasFluid(){return this.fluid()??!!this.pcFluid}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275dir=Ue({type:t,inputs:{fluid:[1,"fluid"],variant:[1,"variant"],size:[1,"size"],inputSize:[1,"inputSize"],pattern:[1,"pattern"],min:[1,"min"],max:[1,"max"],step:[1,"step"],minlength:[1,"minlength"],maxlength:[1,"maxlength"]},features:[j]})}return t})();var X2=`
.p-iconfield {
position: relative;
display: block;
}
.p-inputicon {
position: absolute;
top: 50%;
margin-top: calc(-1 * (dt('icon.size') / 2));
color: dt('iconfield.icon.color');
line-height: 1;
z-index: 1;
}
.p-iconfield .p-inputicon:first-child {
inset-inline-start: dt('form.field.padding.x');
}
.p-iconfield .p-inputicon:last-child {
inset-inline-end: dt('form.field.padding.x');
}
.p-iconfield .p-inputtext:not(:first-child),
.p-iconfield .p-inputwrapper:not(:first-child) .p-inputtext {
padding-inline-start: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
}
.p-iconfield .p-inputtext:not(:last-child) {
padding-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
}
.p-iconfield:has(.p-inputfield-sm) .p-inputicon {
font-size: dt('form.field.sm.font.size');
width: dt('form.field.sm.font.size');
height: dt('form.field.sm.font.size');
margin-top: calc(-1 * (dt('form.field.sm.font.size') / 2));
}
.p-iconfield:has(.p-inputfield-lg) .p-inputicon {
font-size: dt('form.field.lg.font.size');
width: dt('form.field.lg.font.size');
height: dt('form.field.lg.font.size');
margin-top: calc(-1 * (dt('form.field.lg.font.size') / 2));
}
`;var nj=["*"],rj={root:({instance:t})=>["p-iconfield",{"p-iconfield-left":t.iconPosition=="left","p-iconfield-right":t.iconPosition=="right"}]},eR=(()=>{class t extends Oe{name="iconfield";style=X2;classes=rj;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var tR=new H("ICONFIELD_INSTANCE"),Wm=(()=>{class t extends ut{hostName="";_componentStyle=x(eR);$pcIconField=x(tR,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=x(te,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}iconPosition="left";styleClass;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["p-iconfield"],["p-iconField"],["p-icon-field"]],hostVars:2,hostBindings:function(r,i){r&2&&k(i.cn(i.cx("root"),i.styleClass))},inputs:{hostName:"hostName",iconPosition:"iconPosition",styleClass:"styleClass"},features:[xe([eR,{provide:tR,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],ngContentSelectors:nj,decls:1,vars:0,template:function(r,i){r&1&&(zt(),Ot(0))},dependencies:[Qe,Wt],encapsulation:2,changeDetection:0})}return t})();var ij=["*"],oj={root:"p-inputicon"},nR=(()=>{class t extends Oe{name="inputicon";classes=oj;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),rR=new H("INPUTICON_INSTANCE"),Gm=(()=>{class t extends ut{hostName="";styleClass;_componentStyle=x(nR);$pcInputIcon=x(rR,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=x(te,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["p-inputicon"],["p-inputIcon"]],hostVars:2,hostBindings:function(r,i){r&2&&k(i.cn(i.cx("root"),i.styleClass))},inputs:{hostName:"hostName",styleClass:"styleClass"},features:[xe([nR,{provide:rR,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],ngContentSelectors:ij,decls:1,vars:0,template:function(r,i){r&1&&(zt(),Ot(0))},dependencies:[Qe,Te,Wt],encapsulation:2,changeDetection:0})}return t})();var iR=`
.p-inputtext {
font-family: inherit;
font-feature-settings: inherit;
font-size: 1rem;
color: dt('inputtext.color');
background: dt('inputtext.background');
padding-block: dt('inputtext.padding.y');
padding-inline: dt('inputtext.padding.x');
border: 1px solid dt('inputtext.border.color');
transition:
background dt('inputtext.transition.duration'),
color dt('inputtext.transition.duration'),
border-color dt('inputtext.transition.duration'),
outline-color dt('inputtext.transition.duration'),
box-shadow dt('inputtext.transition.duration');
appearance: none;
border-radius: dt('inputtext.border.radius');
outline-color: transparent;
box-shadow: dt('inputtext.shadow');
}
.p-inputtext:enabled:hover {
border-color: dt('inputtext.hover.border.color');
}
.p-inputtext:enabled:focus {
border-color: dt('inputtext.focus.border.color');
box-shadow: dt('inputtext.focus.ring.shadow');
outline: dt('inputtext.focus.ring.width') dt('inputtext.focus.ring.style') dt('inputtext.focus.ring.color');
outline-offset: dt('inputtext.focus.ring.offset');
}
.p-inputtext.p-invalid {
border-color: dt('inputtext.invalid.border.color');
}
.p-inputtext.p-variant-filled {
background: dt('inputtext.filled.background');
}
.p-inputtext.p-variant-filled:enabled:hover {
background: dt('inputtext.filled.hover.background');
}
.p-inputtext.p-variant-filled:enabled:focus {
background: dt('inputtext.filled.focus.background');
}
.p-inputtext:disabled {
opacity: 1;
background: dt('inputtext.disabled.background');
color: dt('inputtext.disabled.color');
}
.p-inputtext::placeholder {
color: dt('inputtext.placeholder.color');
}
.p-inputtext.p-invalid::placeholder {
color: dt('inputtext.invalid.placeholder.color');
}
.p-inputtext-sm {
font-size: dt('inputtext.sm.font.size');
padding-block: dt('inputtext.sm.padding.y');
padding-inline: dt('inputtext.sm.padding.x');
}
.p-inputtext-lg {
font-size: dt('inputtext.lg.font.size');
padding-block: dt('inputtext.lg.padding.y');
padding-inline: dt('inputtext.lg.padding.x');
}
.p-inputtext-fluid {
width: 100%;
}
`;var sj=`
${iR}
/* For PrimeNG */
.p-inputtext.ng-invalid.ng-dirty {
border-color: dt('inputtext.invalid.border.color');
}
.p-inputtext.ng-invalid.ng-dirty::placeholder {
color: dt('inputtext.invalid.placeholder.color');
}
`,aj={root:({instance:t})=>["p-inputtext p-component",{"p-filled":t.$filled(),"p-inputtext-sm":t.pSize==="small","p-inputtext-lg":t.pSize==="large","p-invalid":t.invalid(),"p-variant-filled":t.$variant()==="filled","p-inputtext-fluid":t.hasFluid}]},oR=(()=>{class t extends Oe{name="inputtext";style=sj;classes=aj;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var sR=new H("INPUTTEXT_INSTANCE"),to=(()=>{class t extends Um{hostName="";ptInputText=ae();bindDirectiveInstance=x(te,{self:!0});$pcInputText=x(sR,{optional:!0,skipSelf:!0})??void 0;ngControl=x(Yn,{optional:!0,self:!0});pcFluid=x(Gl,{optional:!0,host:!0,skipSelf:!0});pSize;variant=ae();fluid=ae(void 0,{transform:R});invalid=ae(void 0,{transform:R});$variant=We(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());_componentStyle=x(oR);constructor(){super(),Lt(()=>{this.ptInputText()&&this.directivePT.set(this.ptInputText())})}onAfterViewInit(){this.writeModelValue(this.ngControl?.value??this.el.nativeElement.value),this.cd.detectChanges()}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("root"))}onDoCheck(){this.writeModelValue(this.ngControl?.value??this.el.nativeElement.value)}onInput(){this.writeModelValue(this.ngControl?.value??this.el.nativeElement.value)}get hasFluid(){return this.fluid()??!!this.pcFluid}static \u0275fac=function(r){return new(r||t)};static \u0275dir=Ue({type:t,selectors:[["","pInputText",""]],hostVars:2,hostBindings:function(r,i){r&1&&q("input",function(s){return i.onInput(s)}),r&2&&k(i.cx("root"))},inputs:{hostName:"hostName",ptInputText:[1,"ptInputText"],pSize:"pSize",variant:[1,"variant"],fluid:[1,"fluid"],invalid:[1,"invalid"]},features:[xe([oR,{provide:sR,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j]})}return t})(),aR=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({})}return t})();var Ne=(function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t})(Ne||{}),Br="*";function Fu(t,n){return{type:Ne.Trigger,name:t,definitions:n,options:{}}}function Po(t,n=null){return{type:Ne.Animate,styles:n,timings:t}}function lR(t,n=null){return{type:Ne.Sequence,steps:t,options:n}}function sr(t){return{type:Ne.Style,styles:t,offset:null}}function xw(t,n,e){return{type:Ne.State,name:t,styles:n,options:e}}function Ao(t,n,e=null){return{type:Ne.Transition,expr:t,animation:n,options:e}}function qm(t,n=null){return{type:Ne.Reference,animation:t,options:n}}function Qm(t,n=null){return{type:Ne.AnimateRef,animation:t,options:n}}var no=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(n=0,e=0){this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){let e=n=="start"?this._onStartFns:this._onDoneFns;e.forEach(r=>r()),e.length=0}},ka=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(n){this.players=n;let e=0,r=0,i=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++r==o&&this._onDestroy()}),s.onStart(()=>{++i==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){let e=n*this.totalTime;this.players.forEach(r=>{let i=r.totalTime?Math.min(1,e/r.totalTime):1;r.setPosition(i)})}getPosition(){let n=this.players.reduce((e,r)=>e===null||r.totalTime>e.totalTime?r:e,null);return n!=null?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){let e=n=="start"?this._onStartFns:this._onDoneFns;e.forEach(r=>r()),e.length=0}},_c="!";var cR=["content"],lj=["overlay"],cj=["*"],dj=(t,n,e)=>({showTransitionParams:t,hideTransitionParams:n,transform:e}),uj=t=>({value:"visible",params:t}),pj=t=>({mode:t}),fj=t=>({$implicit:t});function hj(t,n){t&1&&ne(0)}function mj(t,n){if(t&1){let e=se();E(0,"div",3,1),q("click",function(i){S(e);let o=m(2);return I(o.onOverlayContentClick(i))})("@overlayContentAnimation.start",function(i){S(e);let o=m(2);return I(o.onOverlayContentAnimationStart(i))})("@overlayContentAnimation.done",function(i){S(e);let o=m(2);return I(o.onOverlayContentAnimationDone(i))}),Ot(2),C(3,hj,1,0,"ng-container",4),T()}if(t&2){let e=m(2);k(e.cn(e.cx("content"),e.contentStyleClass)),h("pBind",e.ptm("content"))("@overlayContentAnimation",Ee(10,uj,Ob(6,dj,e.showTransitionOptions,e.hideTransitionOptions,e.transformOptions[e.modal?e.overlayResponsiveDirection:"default"]))),g(3),h("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",Ee(14,fj,Ee(12,pj,e.overlayMode)))}}function gj(t,n){if(t&1){let e=se();E(0,"div",3,0),q("click",function(){S(e);let i=m();return I(i.onOverlayClick())}),C(2,mj,4,16,"div",2),T()}if(t&2){let e=m();k(e.cn(e.cx("root"),e.styleClass)),h("pBind",e.ptm("root")),g(2),h("ngIf",e.visible)}}var yj=`
.p-overlay {
position: absolute;
top: 0;
}
.p-overlay-modal {
display: flex;
align-items: center;
justify-content: center;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.p-overlay-content {
transform-origin: inherit;
}
/* Github Issue #18560 */
.p-component-overlay.p-component {
position: relative;
}
.p-overlay-modal > .p-overlay-content {
z-index: 1;
width: 90%;
}
/* Position */
/* top */
.p-overlay-top {
align-items: flex-start;
}
.p-overlay-top-start {
align-items: flex-start;
justify-content: flex-start;
}
.p-overlay-top-end {
align-items: flex-start;
justify-content: flex-end;
}
/* bottom */
.p-overlay-bottom {
align-items: flex-end;
}
.p-overlay-bottom-start {
align-items: flex-end;
justify-content: flex-start;
}
.p-overlay-bottom-end {
align-items: flex-end;
justify-content: flex-end;
}
/* left */
.p-overlay-left {
justify-content: flex-start;
}
.p-overlay-left-start {
justify-content: flex-start;
align-items: flex-start;
}
.p-overlay-left-end {
justify-content: flex-start;
align-items: flex-end;
}
/* right */
.p-overlay-right {
justify-content: flex-end;
}
.p-overlay-right-start {
justify-content: flex-end;
align-items: flex-start;
}
.p-overlay-right-end {
justify-content: flex-end;
align-items: flex-end;
}
.p-overlay-content ~ .p-overlay-content {
display: none;
}
`,bj={host:"p-overlay-host",root:({instance:t})=>["p-overlay p-component",{"p-overlay-modal p-overlay-mask p-overlay-mask-enter":t.modal,"p-overlay-center":t.modal&&t.overlayResponsiveDirection==="center","p-overlay-top":t.modal&&t.overlayResponsiveDirection==="top","p-overlay-top-start":t.modal&&t.overlayResponsiveDirection==="top-start","p-overlay-top-end":t.modal&&t.overlayResponsiveDirection==="top-end","p-overlay-bottom":t.modal&&t.overlayResponsiveDirection==="bottom","p-overlay-bottom-start":t.modal&&t.overlayResponsiveDirection==="bottom-start","p-overlay-bottom-end":t.modal&&t.overlayResponsiveDirection==="bottom-end","p-overlay-left":t.modal&&t.overlayResponsiveDirection==="left","p-overlay-left-start":t.modal&&t.overlayResponsiveDirection==="left-start","p-overlay-left-end":t.modal&&t.overlayResponsiveDirection==="left-end","p-overlay-right":t.modal&&t.overlayResponsiveDirection==="right","p-overlay-right-start":t.modal&&t.overlayResponsiveDirection==="right-start","p-overlay-right-end":t.modal&&t.overlayResponsiveDirection==="right-end"}],content:"p-overlay-content"},dR=(()=>{class t extends Oe{name="overlay";style=yj;classes=bj;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),uR=new H("OVERLAY_INSTANCE"),vj=qm([sr({transform:"{{transform}}",opacity:0}),Po("{{showTransitionParams}}")]),_j=qm([Po("{{hideTransitionParams}}",sr({transform:"{{transform}}",opacity:0}))]),pR=(()=>{class t extends ut{overlayService;zone;$pcOverlay=x(uR,{optional:!0,skipSelf:!0})??void 0;hostName="";get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.modalVisible&&(this.modalVisible=!0)}get mode(){return this._mode||this.overlayOptions?.mode}set mode(e){this._mode=e}get style(){return Pe.merge(this._style,this.modal?this.overlayResponsiveOptions?.style:this.overlayOptions?.style)}set style(e){this._style=e}get styleClass(){return Pe.merge(this._styleClass,this.modal?this.overlayResponsiveOptions?.styleClass:this.overlayOptions?.styleClass)}set styleClass(e){this._styleClass=e}get contentStyle(){return Pe.merge(this._contentStyle,this.modal?this.overlayResponsiveOptions?.contentStyle:this.overlayOptions?.contentStyle)}set contentStyle(e){this._contentStyle=e}get contentStyleClass(){return Pe.merge(this._contentStyleClass,this.modal?this.overlayResponsiveOptions?.contentStyleClass:this.overlayOptions?.contentStyleClass)}set contentStyleClass(e){this._contentStyleClass=e}get target(){let e=this._target||this.overlayOptions?.target;return e===void 0?"@prev":e}set target(e){this._target=e}get autoZIndex(){let e=this._autoZIndex||this.overlayOptions?.autoZIndex;return e===void 0?!0:e}set autoZIndex(e){this._autoZIndex=e}get baseZIndex(){let e=this._baseZIndex||this.overlayOptions?.baseZIndex;return e===void 0?0:e}set baseZIndex(e){this._baseZIndex=e}get showTransitionOptions(){let e=this._showTransitionOptions||this.overlayOptions?.showTransitionOptions;return e===void 0?".12s cubic-bezier(0, 0, 0.2, 1)":e}set showTransitionOptions(e){this._showTransitionOptions=e}get hideTransitionOptions(){let e=this._hideTransitionOptions||this.overlayOptions?.hideTransitionOptions;return e===void 0?".1s linear":e}set hideTransitionOptions(e){this._hideTransitionOptions=e}get listener(){return this._listener||this.overlayOptions?.listener}set listener(e){this._listener=e}get responsive(){return this._responsive||this.overlayOptions?.responsive}set responsive(e){this._responsive=e}get options(){return this._options}set options(e){this._options=e}appendTo=ae(void 0);visibleChange=new z;onBeforeShow=new z;onShow=new z;onBeforeHide=new z;onHide=new z;onAnimationStart=new z;onAnimationDone=new z;overlayViewChild;contentViewChild;contentTemplate;templates;hostAttrSelector=ae();$appendTo=We(()=>this.appendTo()||this.config.overlayAppendTo());_contentTemplate;_visible=!1;_mode;_style;_styleClass;_contentStyle;_contentStyleClass;_target;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_listener;_responsive;_options;modalVisible=!1;isOverlayClicked=!1;isOverlayContentClicked=!1;scrollHandler;documentClickListener;documentResizeListener;_componentStyle=x(dR);bindDirectiveInstance=x(te,{self:!0});documentKeyboardListener;window;transformOptions={default:"scaleY(0.8)",center:"scale(0.7)",top:"translate3d(0px, -100%, 0px)","top-start":"translate3d(0px, -100%, 0px)","top-end":"translate3d(0px, -100%, 0px)",bottom:"translate3d(0px, 100%, 0px)","bottom-start":"translate3d(0px, 100%, 0px)","bottom-end":"translate3d(0px, 100%, 0px)",left:"translate3d(-100%, 0px, 0px)","left-start":"translate3d(-100%, 0px, 0px)","left-end":"translate3d(-100%, 0px, 0px)",right:"translate3d(100%, 0px, 0px)","right-start":"translate3d(100%, 0px, 0px)","right-end":"translate3d(100%, 0px, 0px)"};get modal(){if(kn(this.platformId))return this.mode==="modal"||this.overlayResponsiveOptions&&this.document.defaultView?.matchMedia(this.overlayResponsiveOptions.media?.replace("@media","")||`(max-width: ${this.overlayResponsiveOptions.breakpoint})`).matches}get overlayMode(){return this.mode||(this.modal?"modal":"overlay")}get overlayOptions(){return _(_({},this.config?.overlayOptions),this.options)}get overlayResponsiveOptions(){return _(_({},this.overlayOptions?.responsive),this.responsive)}get overlayResponsiveDirection(){return this.overlayResponsiveOptions?.direction||"center"}get overlayEl(){return this.overlayViewChild?.nativeElement}get contentEl(){return this.contentViewChild?.nativeElement}get targetEl(){return Bv(this.target,this.el?.nativeElement)}constructor(e,r){super(),this.overlayService=e,this.zone=r}onAfterContentInit(){this.templates?.forEach(e=>{e.getType()==="content"?this._contentTemplate=e.template:this._contentTemplate=e.template})}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host"))}show(e,r=!1){this.onVisibleChange(!0),this.handleEvents("onShow",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),r&&ii(this.targetEl),this.modal&&ri(this.document?.body,"p-overflow-hidden")}hide(e,r=!1){if(this.visible)this.onVisibleChange(!1),this.handleEvents("onHide",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),r&&ii(this.targetEl),this.modal&&Bi(this.document?.body,"p-overflow-hidden");else return}alignOverlay(){!this.modal&&De.alignOverlay(this.overlayEl,this.targetEl,this.$appendTo())}onVisibleChange(e){this._visible=e,this.visibleChange.emit(e)}onOverlayClick(){this.isOverlayClicked=!0}onOverlayContentClick(e){this.overlayService.add({originalEvent:e,target:this.targetEl}),this.isOverlayContentClicked=!0}onOverlayContentAnimationStart(e){switch(e.toState){case"visible":this.handleEvents("onBeforeShow",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.autoZIndex&&ir.set(this.overlayMode,this.overlayEl,this.baseZIndex+this.config?.zIndex[this.overlayMode]),this.hostAttrSelector()&&this.overlayEl&&this.overlayEl.setAttribute(this.hostAttrSelector(),""),De.appendOverlay(this.overlayEl,this.$appendTo()==="body"?this.document.body:this.$appendTo(),this.$appendTo()),this.alignOverlay();break;case"void":this.handleEvents("onBeforeHide",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.modal&&ri(this.overlayEl,"p-overlay-mask-leave");break}this.handleEvents("onAnimationStart",e)}onOverlayContentAnimationDone(e){let r=this.overlayEl||e.element.parentElement;switch(e.toState){case"visible":this.visible&&(this.show(r,!0),this.bindListeners());break;case"void":if(!this.visible){this.hide(r,!0),this.modalVisible=!1,this.unbindListeners(),De.appendOverlay(this.overlayEl,this.targetEl,this.$appendTo()),ir.clear(r),this.cd.markForCheck();break}}this.handleEvents("onAnimationDone",e)}handleEvents(e,r){this[e].emit(r),this.options&&this.options[e]&&this.options[e](r),this.config?.overlayOptions&&(this.config?.overlayOptions)[e]&&(this.config?.overlayOptions)[e](r)}bindListeners(){this.bindScrollListener(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindDocumentKeyboardListener()}unbindListeners(){this.unbindScrollListener(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindDocumentKeyboardListener()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new xo(this.targetEl,e=>{(!this.listener||this.listener(e,{type:"scroll",mode:this.overlayMode,valid:!0}))&&this.hide(e,!0)})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.document,"click",e=>{let i=!(this.targetEl&&(this.targetEl.isSameNode(e.target)||!this.isOverlayClicked&&this.targetEl.contains(e.target)))&&!this.isOverlayContentClicked;(this.listener?this.listener(e,{type:"outside",mode:this.overlayMode,valid:e.which!==3&&i}):i)&&this.hide(e),this.isOverlayClicked=this.isOverlayContentClicked=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.document.defaultView,"resize",e=>{(this.listener?this.listener(e,{type:"resize",mode:this.overlayMode,valid:!_o()}):!_o())&&this.hide(e,!0)}))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindDocumentKeyboardListener(){this.documentKeyboardListener||this.zone.runOutsideAngular(()=>{this.documentKeyboardListener=this.renderer.listen(this.document.defaultView,"keydown",e=>{if(this.overlayOptions.hideOnEscape===!1||e.code!=="Escape")return;(this.listener?this.listener(e,{type:"keydown",mode:this.overlayMode,valid:!_o()}):!_o())&&this.zone.run(()=>{this.hide(e,!0)})})})}unbindDocumentKeyboardListener(){this.documentKeyboardListener&&(this.documentKeyboardListener(),this.documentKeyboardListener=null)}onDestroy(){this.hide(this.overlayEl,!0),this.overlayEl&&this.$appendTo()!=="self"&&(this.renderer.appendChild(this.el.nativeElement,this.overlayEl),ir.clear(this.overlayEl)),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindListeners()}static \u0275fac=function(r){return new(r||t)(de(zl),de($e))};static \u0275cmp=$({type:t,selectors:[["p-overlay"]],contentQueries:function(r,i,o){if(r&1&&(V(o,cR,4),V(o,xt,4)),r&2){let s;M(s=O())&&(i.contentTemplate=s.first),M(s=O())&&(i.templates=s)}},viewQuery:function(r,i){if(r&1&&(ct(lj,5),ct(cR,5)),r&2){let o;M(o=O())&&(i.overlayViewChild=o.first),M(o=O())&&(i.contentViewChild=o.first)}},inputs:{hostName:"hostName",visible:"visible",mode:"mode",style:"style",styleClass:"styleClass",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",target:"target",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",listener:"listener",responsive:"responsive",options:"options",appendTo:[1,"appendTo"],hostAttrSelector:[1,"hostAttrSelector"]},outputs:{visibleChange:"visibleChange",onBeforeShow:"onBeforeShow",onShow:"onShow",onBeforeHide:"onBeforeHide",onHide:"onHide",onAnimationStart:"onAnimationStart",onAnimationDone:"onAnimationDone"},features:[xe([dR,{provide:uR,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],ngContentSelectors:cj,decls:1,vars:1,consts:[["overlay",""],["content",""],[3,"class","pBind","click",4,"ngIf"],[3,"click","pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,i){r&1&&(zt(),C(0,gj,3,4,"div",2)),r&2&&h("ngIf",i.modalVisible)},dependencies:[Qe,Ut,kt,Te,te],encapsulation:2,data:{animation:[Fu("overlayContentAnimation",[Ao(":enter",[Qm(vj)]),Ao(":leave",[Qm(_j)])])]},changeDetection:0})}return t})();var fR=["content"],wj=["item"],Cj=["loader"],xj=["loadericon"],Tj=["element"],Ej=["*"],Tw=(t,n)=>({$implicit:t,options:n}),Sj=t=>({numCols:t}),gR=t=>({options:t}),Ij=()=>({styleClass:"p-virtualscroller-loading-icon"}),Dj=(t,n)=>({rows:t,columns:n});function kj(t,n){t&1&&ne(0)}function Mj(t,n){if(t&1&&(ie(0),C(1,kj,1,0,"ng-container",10),oe()),t&2){let e=m(2);g(),h("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",Dt(2,Tw,e.loadedItems,e.getContentOptions()))}}function Oj(t,n){t&1&&ne(0)}function Rj(t,n){if(t&1&&(ie(0),C(1,Oj,1,0,"ng-container",10),oe()),t&2){let e=n.$implicit,r=n.index,i=m(3);g(),h("ngTemplateOutlet",i.itemTemplate||i._itemTemplate)("ngTemplateOutletContext",Dt(2,Tw,e,i.getOptions(r)))}}function Pj(t,n){if(t&1&&(E(0,"div",11,3),C(2,Rj,2,5,"ng-container",12),T()),t&2){let e=m(2);Dn(e.contentStyle),k(e.cn(e.cx("content"),e.contentStyleClass)),h("pBind",e.ptm("content")),g(2),h("ngForOf",e.loadedItems)("ngForTrackBy",e._trackBy)}}function Aj(t,n){if(t&1&&X(0,"div",13),t&2){let e=m(2);k(e.cx("spacer")),h("ngStyle",e.spacerStyle)("pBind",e.ptm("spacer"))}}function Nj(t,n){t&1&&ne(0)}function Fj(t,n){if(t&1&&(ie(0),C(1,Nj,1,0,"ng-container",10),oe()),t&2){let e=n.index,r=m(4);g(),h("ngTemplateOutlet",r.loaderTemplate||r._loaderTemplate)("ngTemplateOutletContext",Ee(4,gR,r.getLoaderOptions(e,r.both&&Ee(2,Sj,r.numItemsInViewport.cols))))}}function Lj(t,n){if(t&1&&(ie(0),C(1,Fj,2,6,"ng-container",14),oe()),t&2){let e=m(3);g(),h("ngForOf",e.loaderArr)}}function Bj(t,n){t&1&&ne(0)}function Vj(t,n){if(t&1&&(ie(0),C(1,Bj,1,0,"ng-container",10),oe()),t&2){let e=m(4);g(),h("ngTemplateOutlet",e.loaderIconTemplate||e._loaderIconTemplate)("ngTemplateOutletContext",Ee(3,gR,Pi(2,Ij)))}}function jj(t,n){if(t&1&&(G(),X(0,"svg",15)),t&2){let e=m(4);k(e.cx("loadingIcon")),h("spin",!0)("pBind",e.ptm("loadingIcon"))}}function zj(t,n){if(t&1&&C(0,Vj,2,5,"ng-container",6)(1,jj,1,4,"ng-template",null,5,at),t&2){let e=pn(2),r=m(3);h("ngIf",r.loaderIconTemplate||r._loaderIconTemplate)("ngIfElse",e)}}function Hj(t,n){if(t&1&&(E(0,"div",11),C(1,Lj,2,1,"ng-container",6)(2,zj,3,2,"ng-template",null,4,at),T()),t&2){let e=pn(3),r=m(2);k(r.cx("loader")),h("pBind",r.ptm("loader")),g(),h("ngIf",r.loaderTemplate||r._loaderTemplate)("ngIfElse",e)}}function $j(t,n){if(t&1){let e=se();ie(0),E(1,"div",7,1),q("scroll",function(i){S(e);let o=m();return I(o.onContainerScroll(i))}),C(3,Mj,2,5,"ng-container",6)(4,Pj,3,7,"ng-template",null,2,at)(6,Aj,1,4,"div",8)(7,Hj,4,5,"div",9),T(),oe()}if(t&2){let e=pn(5),r=m();g(),k(r.cn(r.cx("root"),r.styleClass)),h("ngStyle",r._style)("pBind",r.ptm("root")),J("id",r._id)("tabindex",r.tabindex),g(2),h("ngIf",r.contentTemplate||r._contentTemplate)("ngIfElse",e),g(3),h("ngIf",r._showSpacer),g(),h("ngIf",!r.loaderDisabled&&r._showLoader&&r.d_loading)}}function Uj(t,n){t&1&&ne(0)}function Wj(t,n){if(t&1&&(ie(0),C(1,Uj,1,0,"ng-container",10),oe()),t&2){let e=m(2);g(),h("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",Dt(5,Tw,e.items,Dt(2,Dj,e._items,e.loadedColumns)))}}function Gj(t,n){if(t&1&&(Ot(0),C(1,Wj,2,8,"ng-container",16)),t&2){let e=m();g(),h("ngIf",e.contentTemplate||e._contentTemplate)}}var qj=`
.p-virtualscroller {
position: relative;
overflow: auto;
contain: strict;
transform: translateZ(0);
will-change: scroll-position;
outline: 0 none;
}
.p-virtualscroller-content {
position: absolute;
top: 0;
left: 0;
min-height: 100%;
min-width: 100%;
will-change: transform;
}
.p-virtualscroller-spacer {
position: absolute;
top: 0;
left: 0;
height: 1px;
width: 1px;
transform-origin: 0 0;
pointer-events: none;
}
.p-virtualscroller-loader {
position: sticky;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: dt('virtualscroller.loader.mask.background');
color: dt('virtualscroller.loader.mask.color');
}
.p-virtualscroller-loader-mask {
display: flex;
align-items: center;
justify-content: center;
}
.p-virtualscroller-loading-icon {
font-size: dt('virtualscroller.loader.icon.size');
width: dt('virtualscroller.loader.icon.size');
height: dt('virtualscroller.loader.icon.size');
}
.p-virtualscroller-horizontal > .p-virtualscroller-content {
display: flex;
}
.p-virtualscroller-inline .p-virtualscroller-content {
position: static;
}
`,Qj={root:({instance:t})=>["p-virtualscroller",{"p-virtualscroller-inline":t.inline,"p-virtualscroller-both p-both-scroll":t.both,"p-virtualscroller-horizontal p-horizontal-scroll":t.horizontal}],content:"p-virtualscroller-content",spacer:"p-virtualscroller-spacer",loader:({instance:t})=>["p-virtualscroller-loader",{"p-virtualscroller-loader-mask":!t.loaderTemplate}],loadingIcon:"p-virtualscroller-loading-icon"},hR=(()=>{class t extends Oe{name="virtualscroller";css=qj;classes=Qj;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var mR=new H("SCROLLER_INSTANCE"),Lu=(()=>{class t extends ut{zone;componentName="virtualScroller";bindDirectiveInstance=x(te,{self:!0});$pcScroller=x(mR,{optional:!0,skipSelf:!0})??void 0;hostName="";get id(){return this._id}set id(e){this._id=e}get style(){return this._style}set style(e){this._style=e}get styleClass(){return this._styleClass}set styleClass(e){this._styleClass=e}get tabindex(){return this._tabindex}set tabindex(e){this._tabindex=e}get items(){return this._items}set items(e){this._items=e}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e}get scrollHeight(){return this._scrollHeight}set scrollHeight(e){this._scrollHeight=e}get scrollWidth(){return this._scrollWidth}set scrollWidth(e){this._scrollWidth=e}get orientation(){return this._orientation}set orientation(e){this._orientation=e}get step(){return this._step}set step(e){this._step=e}get delay(){return this._delay}set delay(e){this._delay=e}get resizeDelay(){return this._resizeDelay}set resizeDelay(e){this._resizeDelay=e}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=e}get inline(){return this._inline}set inline(e){this._inline=e}get lazy(){return this._lazy}set lazy(e){this._lazy=e}get disabled(){return this._disabled}set disabled(e){this._disabled=e}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(e){this._loaderDisabled=e}get columns(){return this._columns}set columns(e){this._columns=e}get showSpacer(){return this._showSpacer}set showSpacer(e){this._showSpacer=e}get showLoader(){return this._showLoader}set showLoader(e){this._showLoader=e}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(e){this._numToleratedItems=e}get loading(){return this._loading}set loading(e){this._loading=e}get autoSize(){return this._autoSize}set autoSize(e){this._autoSize=e}get trackBy(){return this._trackBy}set trackBy(e){this._trackBy=e}get options(){return this._options}set options(e){this._options=e,e&&typeof e=="object"&&(Object.entries(e).forEach(([r,i])=>this[`_${r}`]!==i&&(this[`_${r}`]=i)),Object.entries(e).forEach(([r,i])=>this[`${r}`]!==i&&(this[`${r}`]=i)))}onLazyLoad=new z;onScroll=new z;onScrollIndexChange=new z;elementViewChild;contentViewChild;height;_id;_style;_styleClass;_tabindex=0;_items;_itemSize=0;_scrollHeight;_scrollWidth;_orientation="vertical";_step=0;_delay=0;_resizeDelay=10;_appendOnly=!1;_inline=!1;_lazy=!1;_disabled=!1;_loaderDisabled=!1;_columns;_showSpacer=!0;_showLoader=!1;_numToleratedItems;_loading;_autoSize=!1;_trackBy;_options;d_loading=!1;d_numToleratedItems;contentEl;contentTemplate;itemTemplate;loaderTemplate;loaderIconTemplate;templates;_contentTemplate;_itemTemplate;_loaderTemplate;_loaderIconTemplate;first=0;last=0;page=0;isRangeChanged=!1;numItemsInViewport=0;lastScrollPos=0;lazyLoadState={};loaderArr=[];spacerStyle={};contentStyle={};scrollTimeout;resizeTimeout;initialized=!1;windowResizeListener;defaultWidth;defaultHeight;defaultContentWidth;defaultContentHeight;_contentStyleClass;get contentStyleClass(){return this._contentStyleClass}set contentStyleClass(e){this._contentStyleClass=e}get vertical(){return this._orientation==="vertical"}get horizontal(){return this._orientation==="horizontal"}get both(){return this._orientation==="both"}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(e=>this._columns?e:Array.isArray(e)?e.slice(this._appendOnly?0:this.first.cols,this.last.cols):e):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}_componentStyle=x(hR);constructor(e){super(),this.zone=e}onInit(){this.setInitialState()}onChanges(e){let r=!1;if(this.scrollHeight=="100%"&&(this.height="100%"),e.loading){let{previousValue:i,currentValue:o}=e.loading;this.lazy&&i!==o&&o!==this.d_loading&&(this.d_loading=o,r=!0)}if(e.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),e.numToleratedItems){let{previousValue:i,currentValue:o}=e.numToleratedItems;i!==o&&o!==this.d_numToleratedItems&&(this.d_numToleratedItems=o)}if(e.options){let{previousValue:i,currentValue:o}=e.options;this.lazy&&i?.loading!==o?.loading&&o?.loading!==this.d_loading&&(this.d_loading=o.loading,r=!0),i?.numToleratedItems!==o?.numToleratedItems&&o?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=o.numToleratedItems)}this.initialized&&!r&&(e.items?.previousValue?.length!==e.items?.currentValue?.length||e.itemSize||e.scrollHeight||e.scrollWidth)&&(this.init(),this.calculateAutoSize())}onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":this._contentTemplate=e.template;break;case"item":this._itemTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"loadericon":this._loaderIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}onAfterViewInit(){Promise.resolve().then(()=>{this.viewInit()})}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host")),this.initialized||this.viewInit()}onDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1}viewInit(){kn(this.platformId)&&!this.initialized&&Vv(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=zi(this.elementViewChild?.nativeElement),this.defaultHeight=ji(this.elementViewChild?.nativeElement),this.defaultContentWidth=zi(this.contentEl),this.defaultContentHeight=ji(this.contentEl),this.initialized=!0)}init(){this._disabled||(this.bindResizeListener(),setTimeout(()=>{this.setSpacerSize(),this.setSize(),this.calculateOptions(),this.cd.detectChanges()},1))}setContentEl(e){this.contentEl=e||this.contentViewChild?.nativeElement||wt(this.elementViewChild?.nativeElement,".p-virtualscroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,(this.d_loading===void 0||this.d_loading===!1)&&(this.d_loading=this._loading||!1),this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=this.loaderArr.length>0?this.loaderArr:[]}getElementRef(){return this.elementViewChild}getPageByFirst(e){return Math.floor(((e??this.first)+this.d_numToleratedItems*4)/(this._step||1))}isPageChanged(e){return this._step?this.page!==this.getPageByFirst(e??this.first):!0}scrollTo(e){this.elementViewChild?.nativeElement?.scrollTo(e)}scrollToIndex(e,r="auto"){if(this.both?e.every(o=>o>-1):e>-1){let o=this.first,{scrollTop:s=0,scrollLeft:a=0}=this.elementViewChild?.nativeElement,{numToleratedItems:l}=this.calculateNumItems(),c=this.getContentPosition(),d=this.itemSize,u=(w=0,D)=>w<=D?0:w,p=(w,D,P)=>w*D+P,f=(w=0,D=0)=>this.scrollTo({left:w,top:D,behavior:r}),y=this.both?{rows:0,cols:0}:0,b=!1,v=!1;this.both?(y={rows:u(e[0],l[0]),cols:u(e[1],l[1])},f(p(y.cols,d[1],c.left),p(y.rows,d[0],c.top)),v=this.lastScrollPos.top!==s||this.lastScrollPos.left!==a,b=y.rows!==o.rows||y.cols!==o.cols):(y=u(e,l),this.horizontal?f(p(y,d,c.left),s):f(a,p(y,d,c.top)),v=this.lastScrollPos!==(this.horizontal?a:s),b=y!==o),this.isRangeChanged=b,v&&(this.first=y)}}scrollInView(e,r,i="auto"){if(r){let{first:o,viewport:s}=this.getRenderedRange(),a=(d=0,u=0)=>this.scrollTo({left:d,top:u,behavior:i}),l=r==="to-start",c=r==="to-end";if(l){if(this.both)s.first.rows-o.rows>e[0]?a(s.first.cols*this._itemSize[1],(s.first.rows-1)*this._itemSize[0]):s.first.cols-o.cols>e[1]&&a((s.first.cols-1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.first-o>e){let d=(s.first-1)*this._itemSize;this.horizontal?a(d,0):a(0,d)}}else if(c){if(this.both)s.last.rows-o.rows<=e[0]+1?a(s.first.cols*this._itemSize[1],(s.first.rows+1)*this._itemSize[0]):s.last.cols-o.cols<=e[1]+1&&a((s.first.cols+1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.last-o<=e+1){let d=(s.first+1)*this._itemSize;this.horizontal?a(d,0):a(0,d)}}}else this.scrollToIndex(e,i)}getRenderedRange(){let e=(o,s)=>s||o?Math.floor(o/(s||o)):0,r=this.first,i=0;if(this.elementViewChild?.nativeElement){let{scrollTop:o,scrollLeft:s}=this.elementViewChild.nativeElement;if(this.both)r={rows:e(o,this._itemSize[0]),cols:e(s,this._itemSize[1])},i={rows:r.rows+this.numItemsInViewport.rows,cols:r.cols+this.numItemsInViewport.cols};else{let a=this.horizontal?s:o;r=e(a,this._itemSize),i=r+this.numItemsInViewport}}return{first:this.first,last:this.last,viewport:{first:r,last:i}}}calculateNumItems(){let e=this.getContentPosition(),r=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-e.left:0)||0,i=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-e.top:0)||0,o=(c,d)=>d||c?Math.ceil(c/(d||c)):0,s=c=>Math.ceil(c/2),a=this.both?{rows:o(i,this._itemSize[0]),cols:o(r,this._itemSize[1])}:o(this.horizontal?r:i,this._itemSize),l=this.d_numToleratedItems||(this.both?[s(a.rows),s(a.cols)]:s(a));return{numItemsInViewport:a,numToleratedItems:l}}calculateOptions(){let{numItemsInViewport:e,numToleratedItems:r}=this.calculateNumItems(),i=(a,l,c,d=!1)=>this.getLast(a+l+(a<c?2:3)*c,d),o=this.first,s=this.both?{rows:i(this.first.rows,e.rows,r[0]),cols:i(this.first.cols,e.cols,r[1],!0)}:i(this.first,e,r);this.last=s,this.numItemsInViewport=e,this.d_numToleratedItems=r,this._showLoader&&(this.loaderArr=this.both?Array.from({length:e.rows}).map(()=>Array.from({length:e.cols})):Array.from({length:e})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:o.cols}:0:o,last:Math.min(this._step?this._step:this.last,this._items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto",this.contentEl.style.position="relative",this.elementViewChild.nativeElement.style.contain="none";let[e,r]=[zi(this.contentEl),ji(this.contentEl)];e!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),r!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");let[i,o]=[zi(this.elementViewChild.nativeElement),ji(this.elementViewChild.nativeElement)];(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=i<this.defaultWidth?i+"px":this._scrollWidth||this.defaultWidth+"px"),(this.both||this.vertical)&&(this.elementViewChild.nativeElement.style.height=o<this.defaultHeight?o+"px":this._scrollHeight||this.defaultHeight+"px"),this.contentEl.style.minHeight=this.contentEl.style.minWidth="",this.contentEl.style.position="",this.elementViewChild.nativeElement.style.contain=""}})}getLast(e=0,r=!1){return this._items?Math.min(r?(this._columns||this._items[0]).length:this._items.length,e):0}getContentPosition(){if(this.contentEl){let e=getComputedStyle(this.contentEl),r=parseFloat(e.paddingLeft)+Math.max(parseFloat(e.left)||0,0),i=parseFloat(e.paddingRight)+Math.max(parseFloat(e.right)||0,0),o=parseFloat(e.paddingTop)+Math.max(parseFloat(e.top)||0,0),s=parseFloat(e.paddingBottom)+Math.max(parseFloat(e.bottom)||0,0);return{left:r,right:i,top:o,bottom:s,x:r+i,y:o+s}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}}setSize(){if(this.elementViewChild?.nativeElement){let e=this.elementViewChild.nativeElement,r=e.parentElement?.parentElement,i=e.offsetWidth,o=r?.offsetWidth||0,s=this._scrollWidth||`${i||o}px`,a=e.offsetHeight,l=r?.offsetHeight||0,c=this._scrollHeight||`${a||l}px`,d=(u,p)=>e.style[u]=p;this.both||this.horizontal?(d("height",c),d("width",s)):d("height",c)}}setSpacerSize(){if(this._items){let e=this.getContentPosition(),r=(i,o,s,a=0)=>this.spacerStyle=A(_({},this.spacerStyle),{[`${i}`]:(o||[]).length*s+a+"px"});this.both?(r("height",this._items,this._itemSize[0],e.y),r("width",this._columns||this._items[1],this._itemSize[1],e.x)):this.horizontal?r("width",this._columns||this._items,this._itemSize,e.x):r("height",this._items,this._itemSize,e.y)}}setContentPosition(e){if(this.contentEl&&!this._appendOnly){let r=e?e.first:this.first,i=(s,a)=>s*a,o=(s=0,a=0)=>this.contentStyle=A(_({},this.contentStyle),{transform:`translate3d(${s}px, ${a}px, 0)`});if(this.both)o(i(r.cols,this._itemSize[1]),i(r.rows,this._itemSize[0]));else{let s=i(r,this._itemSize);this.horizontal?o(s,0):o(0,s)}}}onScrollPositionChange(e){let r=e.target;if(!r)throw new Error("Event target is null");let i=this.getContentPosition(),o=(v,w)=>v?v>w?v-w:v:0,s=(v,w)=>w||v?Math.floor(v/(w||v)):0,a=(v,w,D,P,B,Y)=>v<=B?B:Y?D-P-B:w+B-1,l=(v,w,D,P,B,Y,ye)=>v<=Y?0:Math.max(0,ye?v<w?D:v-Y:v>w?D:v-2*Y),c=(v,w,D,P,B,Y=!1)=>{let ye=w+P+2*B;return v>=B&&(ye+=B+1),this.getLast(ye,Y)},d=o(r.scrollTop,i.top),u=o(r.scrollLeft,i.left),p=this.both?{rows:0,cols:0}:0,f=this.last,y=!1,b=this.lastScrollPos;if(this.both){let v=this.lastScrollPos.top<=d,w=this.lastScrollPos.left<=u;if(!this._appendOnly||this._appendOnly&&(v||w)){let D={rows:s(d,this._itemSize[0]),cols:s(u,this._itemSize[1])},P={rows:a(D.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],v),cols:a(D.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],w)};p={rows:l(D.rows,P.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],v),cols:l(D.cols,P.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],w)},f={rows:c(D.rows,p.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:c(D.cols,p.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},y=p.rows!==this.first.rows||f.rows!==this.last.rows||p.cols!==this.first.cols||f.cols!==this.last.cols||this.isRangeChanged,b={top:d,left:u}}}else{let v=this.horizontal?u:d,w=this.lastScrollPos<=v;if(!this._appendOnly||this._appendOnly&&w){let D=s(v,this._itemSize),P=a(D,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,w);p=l(D,P,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,w),f=c(D,p,this.last,this.numItemsInViewport,this.d_numToleratedItems),y=p!==this.first||f!==this.last||this.isRangeChanged,b=v}}return{first:p,last:f,isRangeChanged:y,scrollPos:b}}onScrollChange(e){let{first:r,last:i,isRangeChanged:o,scrollPos:s}=this.onScrollPositionChange(e);if(o){let a={first:r,last:i};if(this.setContentPosition(a),this.first=r,this.last=i,this.lastScrollPos=s,this.handleEvents("onScrollIndexChange",a),this._lazy&&this.isPageChanged(r)){let l={first:this._step?Math.min(this.getPageByFirst(r)*this._step,this._items.length-this._step):r,last:Math.min(this._step?(this.getPageByFirst(r)+1)*this._step:i,this._items.length)};(this.lazyLoadState.first!==l.first||this.lazyLoadState.last!==l.last)&&this.handleEvents("onLazyLoad",l),this.lazyLoadState=l}}}onContainerScroll(e){if(this.handleEvents("onScroll",{originalEvent:e}),this._delay){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this._showLoader){let{isRangeChanged:r}=this.onScrollPositionChange(e);(r||this._step&&this.isPageChanged())&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(e),this.d_loading&&this._showLoader&&(!this._lazy||this._loading===void 0)&&(this.d_loading=!1,this.page=this.getPageByFirst()),this.cd.detectChanges()},this._delay)}else!this.d_loading&&this.onScrollChange(e)}bindResizeListener(){kn(this.platformId)&&(this.windowResizeListener||this.zone.runOutsideAngular(()=>{let e=this.document.defaultView,r=_o()?"orientationchange":"resize";this.windowResizeListener=this.renderer.listen(e,r,this.onWindowResize.bind(this))}))}unbindResizeListener(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(Vv(this.elementViewChild?.nativeElement)){let[e,r]=[zi(this.elementViewChild?.nativeElement),ji(this.elementViewChild?.nativeElement)],[i,o]=[e!==this.defaultWidth,r!==this.defaultHeight];(this.both?i||o:this.horizontal?i:this.vertical&&o)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=e,this.defaultHeight=r,this.defaultContentWidth=zi(this.contentEl),this.defaultContentHeight=ji(this.contentEl),this.init()})}},this._resizeDelay)}handleEvents(e,r){return this.options&&this.options[e]?this.options[e](r):this[e].emit(r)}getContentOptions(){return{contentStyleClass:`p-virtualscroller-content ${this.d_loading?"p-virtualscroller-loading":""}`,items:this.loadedItems,getItemOptions:e=>this.getOptions(e),loading:this.d_loading,getLoaderOptions:(e,r)=>this.getLoaderOptions(e,r),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both,scrollTo:this.scrollTo.bind(this),scrollToIndex:this.scrollToIndex.bind(this),orientation:this._orientation,scrollableElement:this.elementViewChild?.nativeElement}}getOptions(e){let r=(this._items||[]).length,i=this.both?this.first.rows+e:this.first+e;return{index:i,count:r,first:i===0,last:i===r-1,even:i%2===0,odd:i%2!==0}}getLoaderOptions(e,r){let i=this.loaderArr.length;return _({index:e,count:i,first:e===0,last:e===i-1,even:e%2===0,odd:e%2!==0,loading:this.d_loading},r)}static \u0275fac=function(r){return new(r||t)(de($e))};static \u0275cmp=$({type:t,selectors:[["p-scroller"],["p-virtualscroller"],["p-virtual-scroller"],["p-virtualScroller"]],contentQueries:function(r,i,o){if(r&1&&(V(o,fR,4),V(o,wj,4),V(o,Cj,4),V(o,xj,4),V(o,xt,4)),r&2){let s;M(s=O())&&(i.contentTemplate=s.first),M(s=O())&&(i.itemTemplate=s.first),M(s=O())&&(i.loaderTemplate=s.first),M(s=O())&&(i.loaderIconTemplate=s.first),M(s=O())&&(i.templates=s)}},viewQuery:function(r,i){if(r&1&&(ct(Tj,5),ct(fR,5)),r&2){let o;M(o=O())&&(i.elementViewChild=o.first),M(o=O())&&(i.contentViewChild=o.first)}},hostVars:2,hostBindings:function(r,i){r&2&&er("height",i.height)},inputs:{hostName:"hostName",id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[xe([hR,{provide:mR,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],ngContentSelectors:Ej,decls:3,vars:2,consts:[["disabledContainer",""],["element",""],["buildInContent",""],["content",""],["buildInLoader",""],["buildInLoaderIcon",""],[4,"ngIf","ngIfElse"],[3,"scroll","ngStyle","pBind"],[3,"class","ngStyle","pBind",4,"ngIf"],[3,"class","pBind",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"pBind"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngStyle","pBind"],[4,"ngFor","ngForOf"],["data-p-icon","spinner",3,"spin","pBind"],[4,"ngIf"]],template:function(r,i){if(r&1&&(zt(),C(0,$j,8,10,"ng-container",6)(1,Gj,2,1,"ng-template",null,0,at)),r&2){let o=pn(2);h("ngIf",!i._disabled)("ngIfElse",o)}},dependencies:[Qe,Ar,Ut,kt,tr,To,Te,te],encapsulation:2})}return t})(),Ew=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({imports:[Lu,Te,Te]})}return t})();var yR=`
.p-select {
display: inline-flex;
cursor: pointer;
position: relative;
user-select: none;
background: dt('select.background');
border: 1px solid dt('select.border.color');
transition:
background dt('select.transition.duration'),
color dt('select.transition.duration'),
border-color dt('select.transition.duration'),
outline-color dt('select.transition.duration'),
box-shadow dt('select.transition.duration');
border-radius: dt('select.border.radius');
outline-color: transparent;
box-shadow: dt('select.shadow');
}
.p-select:not(.p-disabled):hover {
border-color: dt('select.hover.border.color');
}
.p-select:not(.p-disabled).p-focus {
border-color: dt('select.focus.border.color');
box-shadow: dt('select.focus.ring.shadow');
outline: dt('select.focus.ring.width') dt('select.focus.ring.style') dt('select.focus.ring.color');
outline-offset: dt('select.focus.ring.offset');
}
.p-select.p-variant-filled {
background: dt('select.filled.background');
}
.p-select.p-variant-filled:not(.p-disabled):hover {
background: dt('select.filled.hover.background');
}
.p-select.p-variant-filled:not(.p-disabled).p-focus {
background: dt('select.filled.focus.background');
}
.p-select.p-invalid {
border-color: dt('select.invalid.border.color');
}
.p-select.p-disabled {
opacity: 1;
background: dt('select.disabled.background');
}
.p-select-clear-icon {
align-self: center;
color: dt('select.clear.icon.color');
inset-inline-end: dt('select.dropdown.width');
}
.p-select-dropdown {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
background: transparent;
color: dt('select.dropdown.color');
width: dt('select.dropdown.width');
border-start-end-radius: dt('select.border.radius');
border-end-end-radius: dt('select.border.radius');
}
.p-select-label {
display: block;
white-space: nowrap;
overflow: hidden;
flex: 1 1 auto;
width: 1%;
padding: dt('select.padding.y') dt('select.padding.x');
text-overflow: ellipsis;
cursor: pointer;
color: dt('select.color');
background: transparent;
border: 0 none;
outline: 0 none;
font-size: 1rem;
}
.p-select-label.p-placeholder {
color: dt('select.placeholder.color');
}
.p-select.p-invalid .p-select-label.p-placeholder {
color: dt('select.invalid.placeholder.color');
}
.p-select.p-disabled .p-select-label {
color: dt('select.disabled.color');
}
.p-select-label-empty {
overflow: hidden;
opacity: 0;
}
input.p-select-label {
cursor: default;
}
.p-select-overlay {
position: absolute;
top: 0;
left: 0;
background: dt('select.overlay.background');
color: dt('select.overlay.color');
border: 1px solid dt('select.overlay.border.color');
border-radius: dt('select.overlay.border.radius');
box-shadow: dt('select.overlay.shadow');
min-width: 100%;
}
.p-select-header {
padding: dt('select.list.header.padding');
}
.p-select-filter {
width: 100%;
}
.p-select-list-container {
overflow: auto;
}
.p-select-option-group {
cursor: auto;
margin: 0;
padding: dt('select.option.group.padding');
background: dt('select.option.group.background');
color: dt('select.option.group.color');
font-weight: dt('select.option.group.font.weight');
}
.p-select-list {
margin: 0;
padding: 0;
list-style-type: none;
padding: dt('select.list.padding');
gap: dt('select.list.gap');
display: flex;
flex-direction: column;
}
.p-select-option {
cursor: pointer;
font-weight: normal;
white-space: nowrap;
position: relative;
overflow: hidden;
display: flex;
align-items: center;
padding: dt('select.option.padding');
border: 0 none;
color: dt('select.option.color');
background: transparent;
transition:
background dt('select.transition.duration'),
color dt('select.transition.duration'),
border-color dt('select.transition.duration'),
box-shadow dt('select.transition.duration'),
outline-color dt('select.transition.duration');
border-radius: dt('select.option.border.radius');
}
.p-select-option:not(.p-select-option-selected):not(.p-disabled).p-focus {
background: dt('select.option.focus.background');
color: dt('select.option.focus.color');
}
.p-select-option.p-select-option-selected {
background: dt('select.option.selected.background');
color: dt('select.option.selected.color');
}
.p-select-option.p-select-option-selected.p-focus {
background: dt('select.option.selected.focus.background');
color: dt('select.option.selected.focus.color');
}
.p-select-option-blank-icon {
flex-shrink: 0;
}
.p-select-option-check-icon {
position: relative;
flex-shrink: 0;
margin-inline-start: dt('select.checkmark.gutter.start');
margin-inline-end: dt('select.checkmark.gutter.end');
color: dt('select.checkmark.color');
}
.p-select-empty-message {
padding: dt('select.empty.message.padding');
}
.p-select-fluid {
display: flex;
width: 100%;
}
.p-select-sm .p-select-label {
font-size: dt('select.sm.font.size');
padding-block: dt('select.sm.padding.y');
padding-inline: dt('select.sm.padding.x');
}
.p-select-sm .p-select-dropdown .p-icon {
font-size: dt('select.sm.font.size');
width: dt('select.sm.font.size');
height: dt('select.sm.font.size');
}
.p-select-lg .p-select-label {
font-size: dt('select.lg.font.size');
padding-block: dt('select.lg.padding.y');
padding-inline: dt('select.lg.padding.x');
}
.p-select-lg .p-select-dropdown .p-icon {
font-size: dt('select.lg.font.size');
width: dt('select.lg.font.size');
height: dt('select.lg.font.size');
}
.p-floatlabel-in .p-select-filter {
padding-block-start: dt('select.padding.y');
padding-block-end: dt('select.padding.y');
}
`;var Bu=t=>({height:t}),Sw=t=>({$implicit:t});function Yj(t,n){if(t&1&&(G(),X(0,"svg",6)),t&2){let e=m(2);k(e.cx("optionCheckIcon")),h("pBind",e.$pcSelect==null?null:e.$pcSelect.ptm("optionCheckIcon"))}}function Zj(t,n){if(t&1&&(G(),X(0,"svg",7)),t&2){let e=m(2);k(e.cx("optionBlankIcon")),h("pBind",e.$pcSelect==null?null:e.$pcSelect.ptm("optionBlankIcon"))}}function Jj(t,n){if(t&1&&(ie(0),C(1,Yj,1,3,"svg",4)(2,Zj,1,3,"svg",5),oe()),t&2){let e=m();g(),h("ngIf",e.selected),g(),h("ngIf",!e.selected)}}function Xj(t,n){if(t&1&&(E(0,"span",8),ce(1),T()),t&2){let e=m();h("pBind",e.$pcSelect==null?null:e.$pcSelect.ptm("optionLabel")),g(),Ze(e.label??"empty")}}function ez(t,n){t&1&&ne(0)}var tz=["item"],nz=["group"],rz=["loader"],iz=["selectedItem"],oz=["header"],bR=["filter"],sz=["footer"],az=["emptyfilter"],lz=["empty"],cz=["dropdownicon"],dz=["loadingicon"],uz=["clearicon"],pz=["filtericon"],fz=["onicon"],hz=["officon"],mz=["cancelicon"],gz=["focusInput"],yz=["editableInput"],bz=["items"],vz=["scroller"],_z=["overlay"],wz=["firstHiddenFocusableEl"],Cz=["lastHiddenFocusableEl"],vR=t=>({class:t}),_R=t=>({options:t}),wR=(t,n)=>({$implicit:t,options:n}),xz=()=>({});function Tz(t,n){if(t&1&&(ie(0),ce(1),oe()),t&2){let e=m(2);g(),Ze(e.label()==="p-emptylabel"?"\xA0":e.label())}}function Ez(t,n){if(t&1&&ne(0,24),t&2){let e=m(2);h("ngTemplateOutlet",e.selectedItemTemplate||e._selectedItemTemplate)("ngTemplateOutletContext",Ee(2,Sw,e.selectedOption))}}function Sz(t,n){if(t&1&&(E(0,"span"),ce(1),T()),t&2){let e=m(3);g(),Ze(e.label()==="p-emptylabel"?"\xA0":e.label())}}function Iz(t,n){if(t&1&&C(0,Sz,2,1,"span",18),t&2){let e=m(2);h("ngIf",e.isSelectedOptionEmpty())}}function Dz(t,n){if(t&1){let e=se();E(0,"span",22,3),q("focus",function(i){S(e);let o=m();return I(o.onInputFocus(i))})("blur",function(i){S(e);let o=m();return I(o.onInputBlur(i))})("keydown",function(i){S(e);let o=m();return I(o.onKeyDown(i))}),C(2,Tz,2,1,"ng-container",20)(3,Ez,1,4,"ng-container",23)(4,Iz,1,1,"ng-template",null,4,at),T()}if(t&2){let e=pn(5),r=m();k(r.cx("label")),h("pBind",r.ptm("label"))("pTooltip",r.tooltip)("tooltipPosition",r.tooltipPosition)("positionStyle",r.tooltipPositionStyle)("tooltipStyleClass",r.tooltipStyleClass)("pAutoFocus",r.autofocus),J("aria-disabled",r.$disabled())("id",r.inputId)("aria-label",r.ariaLabel||(r.label()==="p-emptylabel"?void 0:r.label()))("aria-labelledby",r.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",r.overlayVisible??!1)("aria-controls",r.overlayVisible?r.id+"_list":null)("tabindex",r.$disabled()?-1:r.tabindex)("aria-activedescendant",r.focused?r.focusedOptionId:void 0)("aria-required",r.required())("required",r.required()?"":void 0)("disabled",r.$disabled()?"":void 0),g(2),h("ngIf",!r.selectedItemTemplate&&!r._selectedItemTemplate)("ngIfElse",e),g(),h("ngIf",(r.selectedItemTemplate||r._selectedItemTemplate)&&!r.isSelectedOptionEmpty())}}function kz(t,n){if(t&1){let e=se();E(0,"input",25,5),q("input",function(i){S(e);let o=m();return I(o.onEditableInput(i))})("keydown",function(i){S(e);let o=m();return I(o.onKeyDown(i))})("focus",function(i){S(e);let o=m();return I(o.onInputFocus(i))})("blur",function(i){S(e);let o=m();return I(o.onInputBlur(i))}),T()}if(t&2){let e=m();k(e.cx("label")),h("pBind",e.ptm("label"))("pAutoFocus",e.autofocus),J("id",e.inputId)("aria-haspopup","listbox")("placeholder",e.modelValue()===void 0||e.modelValue()===null?e.placeholder():void 0)("aria-label",e.ariaLabel||(e.label()==="p-emptylabel"?void 0:e.label()))("aria-activedescendant",e.focused?e.focusedOptionId:void 0)("name",e.name())("minlength",e.minlength())("min",e.min())("max",e.max())("pattern",e.pattern())("size",e.inputSize())("maxlength",e.maxlength())("required",e.required()?"":void 0)("readonly",e.readonly?"":void 0)("disabled",e.$disabled()?"":void 0)}}function Mz(t,n){if(t&1){let e=se();G(),E(0,"svg",28),q("click",function(i){S(e);let o=m(2);return I(o.clear(i))}),T()}if(t&2){let e=m(2);k(e.cx("clearIcon")),h("pBind",e.ptm("clearIcon")),J("data-pc-section","clearicon")}}function Oz(t,n){}function Rz(t,n){t&1&&C(0,Oz,0,0,"ng-template")}function Pz(t,n){if(t&1){let e=se();E(0,"span",29),q("click",function(i){S(e);let o=m(2);return I(o.clear(i))}),C(1,Rz,1,0,null,30),T()}if(t&2){let e=m(2);k(e.cx("clearIcon")),h("pBind",e.ptm("clearIcon")),J("data-pc-section","clearicon"),g(),h("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)("ngTemplateOutletContext",Ee(6,vR,e.cx("clearIcon")))}}function Az(t,n){if(t&1&&(ie(0),C(1,Mz,1,4,"svg",26)(2,Pz,2,8,"span",27),oe()),t&2){let e=m();g(),h("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),g(),h("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function Nz(t,n){t&1&&ne(0)}function Fz(t,n){if(t&1&&(ie(0),C(1,Nz,1,0,"ng-container",31),oe()),t&2){let e=m(2);g(),h("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function Lz(t,n){if(t&1&&X(0,"span",33),t&2){let e=m(3);k(e.cn(e.cx("loadingIcon"),"pi-spin"+e.loadingIcon)),h("pBind",e.ptm("loadingIcon"))}}function Bz(t,n){if(t&1&&X(0,"span",33),t&2){let e=m(3);k(e.cn(e.cx("loadingIcon"),"pi pi-spinner pi-spin")),h("pBind",e.ptm("loadingIcon"))}}function Vz(t,n){if(t&1&&(ie(0),C(1,Lz,1,3,"span",32)(2,Bz,1,3,"span",32),oe()),t&2){let e=m(2);g(),h("ngIf",e.loadingIcon),g(),h("ngIf",!e.loadingIcon)}}function jz(t,n){if(t&1&&(ie(0),C(1,Fz,2,1,"ng-container",18)(2,Vz,3,2,"ng-container",18),oe()),t&2){let e=m();g(),h("ngIf",e.loadingIconTemplate||e._loadingIconTemplate),g(),h("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate)}}function zz(t,n){if(t&1&&X(0,"span",36),t&2){let e=m(3);k(e.cn(e.cx("dropdownIcon"),e.dropdownIcon)),h("pBind",e.ptm("dropdownIcon"))}}function Hz(t,n){if(t&1&&(G(),X(0,"svg",37)),t&2){let e=m(3);k(e.cx("dropdownIcon")),h("pBind",e.ptm("dropdownIcon"))}}function $z(t,n){if(t&1&&(ie(0),C(1,zz,1,3,"span",34)(2,Hz,1,3,"svg",35),oe()),t&2){let e=m(2);g(),h("ngIf",e.dropdownIcon),g(),h("ngIf",!e.dropdownIcon)}}function Uz(t,n){}function Wz(t,n){t&1&&C(0,Uz,0,0,"ng-template")}function Gz(t,n){if(t&1&&(E(0,"span",36),C(1,Wz,1,0,null,30),T()),t&2){let e=m(2);k(e.cx("dropdownIcon")),h("pBind",e.ptm("dropdownIcon")),g(),h("ngTemplateOutlet",e.dropdownIconTemplate||e._dropdownIconTemplate)("ngTemplateOutletContext",Ee(5,vR,e.cx("dropdownIcon")))}}function qz(t,n){if(t&1&&C(0,$z,3,2,"ng-container",18)(1,Gz,2,7,"span",34),t&2){let e=m();h("ngIf",!e.dropdownIconTemplate&&!e._dropdownIconTemplate),g(),h("ngIf",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function Qz(t,n){t&1&&ne(0)}function Kz(t,n){t&1&&ne(0)}function Yz(t,n){if(t&1&&(ie(0),C(1,Kz,1,0,"ng-container",30),oe()),t&2){let e=m(3);g(),h("ngTemplateOutlet",e.filterTemplate||e._filterTemplate)("ngTemplateOutletContext",Ee(2,_R,e.filterOptions))}}function Zz(t,n){if(t&1&&(G(),X(0,"svg",45)),t&2){let e=m(4);h("pBind",e.ptm("filterIcon"))}}function Jz(t,n){}function Xz(t,n){t&1&&C(0,Jz,0,0,"ng-template")}function eH(t,n){if(t&1&&(E(0,"span",36),C(1,Xz,1,0,null,31),T()),t&2){let e=m(4);h("pBind",e.ptm("filterIcon")),g(),h("ngTemplateOutlet",e.filterIconTemplate||e._filterIconTemplate)}}function tH(t,n){if(t&1){let e=se();E(0,"p-iconfield",41)(1,"input",42,10),q("input",function(i){S(e);let o=m(3);return I(o.onFilterInputChange(i))})("keydown",function(i){S(e);let o=m(3);return I(o.onFilterKeyDown(i))})("blur",function(i){S(e);let o=m(3);return I(o.onFilterBlur(i))}),T(),E(3,"p-inputicon",41),C(4,Zz,1,1,"svg",43)(5,eH,2,2,"span",44),T()()}if(t&2){let e=m(3);h("pt",e.ptm("pcFilterContainer")),g(),k(e.cx("pcFilter")),h("pSize",e.size())("value",e._filterValue()||"")("variant",e.$variant())("pt",e.ptm("pcFilter")),J("placeholder",e.filterPlaceholder)("aria-owns",e.id+"_list")("aria-label",e.ariaFilterLabel)("aria-activedescendant",e.focusedOptionId),g(2),h("pt",e.ptm("pcFilterIconContainer")),g(),h("ngIf",!e.filterIconTemplate&&!e._filterIconTemplate),g(),h("ngIf",e.filterIconTemplate||e._filterIconTemplate)}}function nH(t,n){if(t&1){let e=se();E(0,"div",29),q("click",function(i){return S(e),I(i.stopPropagation())}),C(1,Yz,2,4,"ng-container",20)(2,tH,6,14,"ng-template",null,9,at),T()}if(t&2){let e=pn(3),r=m(2);k(r.cx("header")),h("pBind",r.ptm("header")),g(),h("ngIf",r.filterTemplate||r._filterTemplate)("ngIfElse",e)}}function rH(t,n){t&1&&ne(0)}function iH(t,n){if(t&1&&C(0,rH,1,0,"ng-container",30),t&2){let e=n.$implicit,r=n.options;m(2);let i=pn(9);h("ngTemplateOutlet",i)("ngTemplateOutletContext",Dt(2,wR,e,r))}}function oH(t,n){t&1&&ne(0)}function sH(t,n){if(t&1&&C(0,oH,1,0,"ng-container",30),t&2){let e=n.options,r=m(4);h("ngTemplateOutlet",r.loaderTemplate||r._loaderTemplate)("ngTemplateOutletContext",Ee(2,_R,e))}}function aH(t,n){t&1&&(ie(0),C(1,sH,1,4,"ng-template",null,12,at),oe())}function lH(t,n){if(t&1){let e=se();E(0,"p-scroller",46,11),q("onLazyLoad",function(i){S(e);let o=m(2);return I(o.onLazyLoad.emit(i))}),C(2,iH,1,5,"ng-template",null,2,at)(4,aH,3,0,"ng-container",18),T()}if(t&2){let e=m(2);Dn(Ee(9,Bu,e.scrollHeight)),h("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions)("pt",e.ptm("virtualScroller")),g(4),h("ngIf",e.loaderTemplate||e._loaderTemplate)}}function cH(t,n){t&1&&ne(0)}function dH(t,n){if(t&1&&(ie(0),C(1,cH,1,0,"ng-container",30),oe()),t&2){m();let e=pn(9),r=m();g(),h("ngTemplateOutlet",e)("ngTemplateOutletContext",Dt(3,wR,r.visibleOptions(),Pi(2,xz)))}}function uH(t,n){if(t&1&&(E(0,"span",36),ce(1),T()),t&2){let e=m(2).$implicit,r=m(3);k(r.cx("optionGroupLabel")),h("pBind",r.ptm("optionGroupLabel")),g(),Ze(r.getOptionGroupLabel(e.optionGroup))}}function pH(t,n){t&1&&ne(0)}function fH(t,n){if(t&1&&(ie(0),E(1,"li",50),C(2,uH,2,4,"span",34)(3,pH,1,0,"ng-container",30),T(),oe()),t&2){let e=m(),r=e.$implicit,i=e.index,o=m().options,s=m(2);g(),k(s.cx("optionGroup")),h("ngStyle",Ee(8,Bu,o.itemSize+"px"))("pBind",s.ptm("optionGroup")),J("id",s.id+"_"+s.getOptionIndex(i,o)),g(),h("ngIf",!s.groupTemplate&&!s._groupTemplate),g(),h("ngTemplateOutlet",s.groupTemplate||s._groupTemplate)("ngTemplateOutletContext",Ee(10,Sw,r.optionGroup))}}function hH(t,n){if(t&1){let e=se();ie(0),E(1,"p-selectItem",51),q("onClick",function(i){S(e);let o=m().$implicit,s=m(3);return I(s.onOptionSelect(i,o))})("onMouseEnter",function(i){S(e);let o=m().index,s=m().options,a=m(2);return I(a.onOptionMouseEnter(i,a.getOptionIndex(o,s)))}),T(),oe()}if(t&2){let e=m(),r=e.$implicit,i=e.index,o=m().options,s=m(2);g(),h("id",s.id+"_"+s.getOptionIndex(i,o))("option",r)("checkmark",s.checkmark)("selected",s.isSelected(r))("label",s.getOptionLabel(r))("disabled",s.isOptionDisabled(r))("template",s.itemTemplate||s._itemTemplate)("focused",s.focusedOptionIndex()===s.getOptionIndex(i,o))("ariaPosInset",s.getAriaPosInset(s.getOptionIndex(i,o)))("ariaSetSize",s.ariaSetSize)("index",i)("scrollerOptions",o)}}function mH(t,n){if(t&1&&C(0,fH,4,12,"ng-container",18)(1,hH,2,12,"ng-container",18),t&2){let e=n.$implicit,r=m(3);h("ngIf",r.isOptionGroup(e)),g(),h("ngIf",!r.isOptionGroup(e))}}function gH(t,n){if(t&1&&ce(0),t&2){let e=m(4);$t(" ",e.emptyFilterMessageLabel," ")}}function yH(t,n){t&1&&ne(0,null,14)}function bH(t,n){if(t&1&&C(0,yH,2,0,"ng-container",31),t&2){let e=m(4);h("ngTemplateOutlet",e.emptyFilterTemplate||e._emptyFilterTemplate||e.emptyTemplate||e._emptyTemplate)}}function vH(t,n){if(t&1&&(E(0,"li",50),rt(1,gH,1,1)(2,bH,1,1,"ng-container"),T()),t&2){let e=m().options,r=m(2);k(r.cx("emptyMessage")),h("ngStyle",Ee(5,Bu,e.itemSize+"px"))("pBind",r.ptm("emptyMessage")),g(),it(!r.emptyFilterTemplate&&!r._emptyFilterTemplate&&!r.emptyTemplate?1:2)}}function _H(t,n){if(t&1&&ce(0),t&2){let e=m(4);$t(" ",e.emptyMessageLabel||e.emptyFilterMessageLabel," ")}}function wH(t,n){t&1&&ne(0,null,15)}function CH(t,n){if(t&1&&C(0,wH,2,0,"ng-container",31),t&2){let e=m(4);h("ngTemplateOutlet",e.emptyTemplate||e._emptyTemplate)}}function xH(t,n){if(t&1&&(E(0,"li",50),rt(1,_H,1,1)(2,CH,1,1,"ng-container"),T()),t&2){let e=m().options,r=m(2);k(r.cx("emptyMessage")),h("ngStyle",Ee(5,Bu,e.itemSize+"px"))("pBind",r.ptm("emptyMessage")),g(),it(!r.emptyTemplate&&!r._emptyTemplate?1:2)}}function TH(t,n){if(t&1&&(E(0,"ul",47,13),C(2,mH,2,2,"ng-template",48)(3,vH,3,7,"li",49)(4,xH,3,7,"li",49),T()),t&2){let e=n.$implicit,r=n.options,i=m(2);Dn(r.contentStyle),k(i.cn(i.cx("list"),r.contentStyleClass)),h("pBind",i.ptm("list")),J("id",i.id+"_list")("aria-label",i.listLabel),g(2),h("ngForOf",e),g(),h("ngIf",i.filterValue&&i.isEmpty()),g(),h("ngIf",!i.filterValue&&i.isEmpty())}}function EH(t,n){t&1&&ne(0)}function SH(t,n){if(t&1){let e=se();E(0,"div",38)(1,"span",39,6),q("focus",function(i){S(e);let o=m();return I(o.onFirstHiddenFocus(i))}),T(),C(3,Qz,1,0,"ng-container",31)(4,nH,4,5,"div",27),E(5,"div",36),C(6,lH,5,11,"p-scroller",40)(7,dH,2,6,"ng-container",18)(8,TH,5,10,"ng-template",null,7,at),T(),C(10,EH,1,0,"ng-container",31),E(11,"span",39,8),q("focus",function(i){S(e);let o=m();return I(o.onLastHiddenFocus(i))}),T()()}if(t&2){let e=m();k(e.cn(e.cx("overlay"),e.panelStyleClass)),h("ngStyle",e.panelStyle)("pBind",e.ptm("overlay")),g(),h("pBind",e.ptm("hiddenFirstFocusableEl")),J("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),g(2),h("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),g(),h("ngIf",e.filter),g(),k(e.cx("listContainer")),er("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),h("pBind",e.ptm("listContainer")),g(),h("ngIf",e.virtualScroll),g(),h("ngIf",!e.virtualScroll),g(3),h("ngTemplateOutlet",e.footerTemplate||e._footerTemplate),g(),h("pBind",e.ptm("hiddenLastFocusableEl")),J("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}var IH=`
${yR}
/* For PrimeNG */
.p-select-label.p-placeholder {
color: dt('select.placeholder.color');
}
.p-select.ng-invalid.ng-dirty {
border-color: dt('select.invalid.border.color');
}
.p-dropdown.ng-invalid.ng-dirty .p-dropdown-label.p-placeholder,
.p-select.ng-invalid.ng-dirty .p-select-label.p-placeholder {
color: dt('select.invalid.placeholder.color');
}
`,DH={root:({instance:t})=>["p-select p-component p-inputwrapper",{"p-disabled":t.$disabled(),"p-variant-filled":t.$variant()==="filled","p-focus":t.focused,"p-invalid":t.invalid(),"p-inputwrapper-filled":t.$filled(),"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-select-open":t.overlayVisible,"p-select-fluid":t.hasFluid,"p-select-sm p-inputfield-sm":t.size()==="small","p-select-lg p-inputfield-lg":t.size()==="large"}],label:({instance:t})=>["p-select-label",{"p-placeholder":t.placeholder()&&t.label()===t.placeholder(),"p-select-label-empty":!t.editable&&!t.selectedItemTemplate&&(t.label()===void 0||t.label()===null||t.label()==="p-emptylabel"||t.label().length===0)}],clearIcon:"p-select-clear-icon",dropdown:"p-select-dropdown",loadingIcon:"p-select-loading-icon",dropdownIcon:"p-select-dropdown-icon",overlay:"p-select-overlay p-component-overlay p-component",header:"p-select-header",pcFilter:"p-select-filter",listContainer:"p-select-list-container",list:"p-select-list",optionGroup:"p-select-option-group",optionGroupLabel:"p-select-option-group-label",option:({instance:t})=>["p-select-option",{"p-select-option-selected":t.selected&&!t.checkmark,"p-disabled":t.disabled,"p-focus":t.focused}],optionLabel:"p-select-option-label",optionCheckIcon:"p-select-option-check-icon",optionBlankIcon:"p-select-option-blank-icon",emptyMessage:"p-select-empty-message"},Km=(()=>{class t extends Oe{name="select";style=IH;classes=DH;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var CR=new H("SELECT_INSTANCE"),kH=new H("SELECT_ITEM_INSTANCE"),MH={provide:Nn,useExisting:Ht(()=>Ym),multi:!0},OH=(()=>{class t extends ut{hostName="select";$pcSelectItem=x(kH,{optional:!0,skipSelf:!0})??void 0;$pcSelect=x(CR,{optional:!0,skipSelf:!0})??void 0;id;option;selected;focused;label;disabled;visible;itemSize;ariaPosInset;ariaSetSize;template;checkmark;index;scrollerOptions;onClick=new z;onMouseEnter=new z;_componentStyle=x(Km);onOptionClick(e){this.onClick.emit(e)}onOptionMouseEnter(e){this.onMouseEnter.emit(e)}getPTOptions(){return this.$pcSelect?.getPTItemOptions?.(this.option,this.scrollerOptions,this.index??0,"option")??this.$pcSelect?.ptm("option",{context:{option:this.option,selected:this.selected,focused:this.focused,disabled:this.disabled}})}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["p-selectItem"]],inputs:{id:"id",option:"option",selected:[2,"selected","selected",R],focused:[2,"focused","focused",R],label:"label",disabled:[2,"disabled","disabled",R],visible:[2,"visible","visible",R],itemSize:[2,"itemSize","itemSize",Me],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template",checkmark:[2,"checkmark","checkmark",R],index:"index",scrollerOptions:"scrollerOptions"},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},features:[xe([Km,{provide:Ke,useExisting:t}]),j],decls:4,vars:20,consts:[["role","option","pRipple","",3,"click","mouseenter","id","pBind","ngStyle"],[4,"ngIf"],[3,"pBind",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","check",3,"class","pBind",4,"ngIf"],["data-p-icon","blank",3,"class","pBind",4,"ngIf"],["data-p-icon","check",3,"pBind"],["data-p-icon","blank",3,"pBind"],[3,"pBind"]],template:function(r,i){r&1&&(E(0,"li",0),q("click",function(s){return i.onOptionClick(s)})("mouseenter",function(s){return i.onOptionMouseEnter(s)}),C(1,Jj,3,2,"ng-container",1)(2,Xj,2,2,"span",2)(3,ez,1,0,"ng-container",3),T()),r&2&&(k(i.cx("option")),h("id",i.id)("pBind",i.getPTOptions())("ngStyle",Ee(16,Bu,i.itemSize+"px")),J("aria-label",i.label)("aria-setsize",i.ariaSetSize)("aria-posinset",i.ariaPosInset)("aria-selected",i.selected)("data-p-focused",i.focused)("data-p-highlight",i.selected)("data-p-disabled",i.disabled),g(),h("ngIf",i.checkmark),g(),h("ngIf",!i.template),g(),h("ngTemplateOutlet",i.template)("ngTemplateOutletContext",Ee(18,Sw,i.option)))},dependencies:[Qe,Ut,kt,tr,Te,Ui,Yh,Jk,Wt,te],encapsulation:2})}return t})(),Ym=(()=>{class t extends vc{zone;filterService;bindDirectiveInstance=x(te,{self:!0});id;scrollHeight="200px";filter;panelStyle;styleClass;panelStyleClass;readonly;editable;tabindex=0;set placeholder(e){this._placeholder.set(e)}get placeholder(){return this._placeholder.asReadonly()}loadingIcon;filterPlaceholder;filterLocale;inputId;dataKey;filterBy;filterFields;autofocus;resetFilterOnHide=!1;checkmark=!1;dropdownIcon;loading=!1;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";group;showClear;emptyFilterMessage="";emptyMessage="";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;overlayOptions;ariaFilterLabel;ariaLabel;ariaLabelledBy;filterMatchMode="contains";tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;focusOnHover=!0;selectOnFocus=!1;autoOptionFocus=!1;autofocusFilter=!0;get filterValue(){return this._filterValue()}set filterValue(e){setTimeout(()=>{this._filterValue.set(e)})}get options(){return this._options()}set options(e){Hv(e,this._options())||this._options.set(e)}appendTo=ae(void 0);onChange=new z;onFilter=new z;onFocus=new z;onBlur=new z;onClick=new z;onShow=new z;onHide=new z;onClear=new z;onLazyLoad=new z;_componentStyle=x(Km);filterViewChild;focusInputViewChild;editableInputViewChild;itemsViewChild;scroller;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;itemsWrapper;$appendTo=We(()=>this.appendTo()||this.config.overlayAppendTo());itemTemplate;groupTemplate;loaderTemplate;selectedItemTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;dropdownIconTemplate;loadingIconTemplate;clearIconTemplate;filterIconTemplate;onIconTemplate;offIconTemplate;cancelIconTemplate;templates;_itemTemplate;_selectedItemTemplate;_headerTemplate;_filterTemplate;_footerTemplate;_emptyFilterTemplate;_emptyTemplate;_groupTemplate;_loaderTemplate;_dropdownIconTemplate;_loadingIconTemplate;_clearIconTemplate;_filterIconTemplate;_cancelIconTemplate;_onIconTemplate;_offIconTemplate;filterOptions;_options=ge(null);_placeholder=ge(void 0);value;hover;focused;overlayVisible;optionsChanged;panel;dimensionsUpdated;hoveredItem;selectedOptionUpdated;_filterValue=ge(null);searchValue;searchIndex;searchTimeout;previousSearchChar;currentSearchChar;preventModelTouched;focusedOptionIndex=ge(-1);labelId;listId;clicked=ge(!1);get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(xn.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(xn.EMPTY_FILTER_MESSAGE)}get isVisibleClearIcon(){return this.modelValue()!=null&&this.hasSelectedOption()&&this.showClear&&!this.$disabled()}get listLabel(){return this.config.getTranslation(xn.ARIA).listLabel}get focusedOptionId(){return this.focusedOptionIndex()!==-1?`${this.id}_${this.focusedOptionIndex()}`:null}visibleOptions=We(()=>{let e=this.getAllVisibleAndNonVisibleOptions();if(this._filterValue()){let i=!(this.filterBy||this.optionLabel)&&!this.filterFields&&!this.optionValue?this.options?.filter(o=>o.label?o.label.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim())!==-1:o.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim())!==-1):this.filterService.filter(e,this.searchFields(),this._filterValue().trim(),this.filterMatchMode,this.filterLocale);if(this.group){let o=this.options||[],s=[];return o.forEach(a=>{let c=this.getOptionGroupChildren(a).filter(d=>i?.includes(d));c.length>0&&s.push(A(_({},a),{[typeof this.optionGroupChildren=="string"?this.optionGroupChildren:"items"]:[...c]}))}),this.flatOptions(s)}return i}return e});label=We(()=>{let e=this.getAllVisibleAndNonVisibleOptions(),r=e.findIndex(i=>this.isOptionValueEqualsModelValue(i));if(r!==-1){let i=e[r];return this.getOptionLabel(i)}return this.placeholder()||"p-emptylabel"});selectedOption;constructor(e,r){super(),this.zone=e,this.filterService=r,Lt(()=>{let i=this.modelValue(),o=this.visibleOptions();if(o&&lt(o)){let s=this.findSelectedOptionIndex();if(s!==-1||i===void 0||typeof i=="string"&&i.length===0||this.isModelValueNotSet()||this.editable)this.selectedOption=o[s];else{let a=o.findIndex(l=>this.isSelected(l));a!==-1&&(this.selectedOption=o[a])}}Hi(o)&&(i===void 0||this.isModelValueNotSet())&&lt(this.selectedOption)&&(this.selectedOption=null),i!==void 0&&this.editable&&this.updateEditableLabel(),this.cd.markForCheck()})}isModelValueNotSet(){return this.modelValue()===null&&!this.isOptionValueEqualsModelValue(this.selectedOption)}getAllVisibleAndNonVisibleOptions(){return this.group?this.flatOptions(this.options):this.options||[]}onInit(){this.id=this.id||gt("pn_id_"),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":this._itemTemplate=e.template;break;case"selectedItem":this._selectedItemTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"filter":this._filterTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"emptyfilter":this._emptyFilterTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"group":this._groupTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"dropdownicon":this._dropdownIconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"cancelicon":this._cancelIconTemplate=e.template;break;case"onicon":this._onIconTemplate=e.template;break;case"officon":this._offIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}onAfterViewChecked(){if(this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"])),this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){let e=wt(this.overlayViewChild?.overlayViewChild?.nativeElement,"li.p-select-option-selected");e&&ck(this.itemsWrapper,e),this.selectedOptionUpdated=!1}}flatOptions(e){return(e||[]).reduce((r,i,o)=>{r.push({optionGroup:i,group:!0,index:o});let s=this.getOptionGroupChildren(i);return s&&s.forEach(a=>r.push(a)),r},[])}autoUpdateModel(){this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&(this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex()),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1))}onOptionSelect(e,r,i=!0,o=!1){if(!this.isOptionDisabled(r)){if(!this.isSelected(r)){let s=this.getOptionValue(r);this.updateModel(s,e),this.focusedOptionIndex.set(this.findSelectedOptionIndex()),o===!1&&this.onChange.emit({originalEvent:e,value:s})}i&&this.hide(!0)}}onOptionMouseEnter(e,r){this.focusOnHover&&this.changeFocusedOptionIndex(e,r)}updateModel(e,r){this.value=e,this.onModelChange(e),this.writeModelValue(e),this.selectedOptionUpdated=!0}allowModelChange(){return!!this.modelValue()&&!this.placeholder()&&(this.modelValue()===void 0||this.modelValue()===null)&&!this.editable&&this.options&&this.options.length}isSelected(e){return this.isOptionValueEqualsModelValue(e)}isOptionValueEqualsModelValue(e){return e!=null&&!this.isOptionGroup(e)&&nr(this.modelValue(),this.getOptionValue(e),this.equalityKey())}onAfterViewInit(){this.editable&&this.updateEditableLabel(),this.updatePlaceHolderForFloatingLabel()}updatePlaceHolderForFloatingLabel(){let e=this.el.nativeElement.parentElement,r=e?.classList.contains("p-float-label");if(e&&r&&!this.selectedOption){let i=e.querySelector("label");i&&this._placeholder.set(i.textContent)}}updateEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value=this.getOptionLabel(this.selectedOption)||this.modelValue()||"")}clearEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value="")}getOptionIndex(e,r){return this.virtualScrollerDisabled?e:r&&r.getItemOptions(e).index}getOptionLabel(e){return this.optionLabel!==void 0&&this.optionLabel!==null?On(e,this.optionLabel):e&&e.label!==void 0?e.label:e}getOptionValue(e){return this.optionValue&&this.optionValue!==null?On(e,this.optionValue):!this.optionLabel&&e&&e.value!==void 0?e.value:e}getPTItemOptions(e,r,i,o){return this.ptm(o,{context:{option:e,index:i,selected:this.isSelected(e),focused:this.focusedOptionIndex()===this.getOptionIndex(i,r),disabled:this.isOptionDisabled(e)}})}isSelectedOptionEmpty(){return Hi(this.selectedOption)}isOptionDisabled(e){return this.optionDisabled?On(e,this.optionDisabled):e&&e.disabled!==void 0?e.disabled:!1}getOptionGroupLabel(e){return this.optionGroupLabel!==void 0&&this.optionGroupLabel!==null?On(e,this.optionGroupLabel):e&&e.label!==void 0?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren!==void 0&&this.optionGroupChildren!==null?On(e,this.optionGroupChildren):e.items}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(r=>this.isOptionGroup(r)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}resetFilter(){this._filterValue.set(null),this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value="")}onContainerClick(e){this.$disabled()||this.readonly||this.loading||e.target.tagName==="INPUT"||e.target.getAttribute("data-pc-section")==="clearicon"||e.target.closest('[data-pc-section="clearicon"]')||((!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),this.onClick.emit(e),this.clicked.set(!0),this.cd.detectChanges())}isEmpty(){return!this._options()||this.visibleOptions()&&this.visibleOptions().length===0}onEditableInput(e){let r=e.target.value;this.searchValue="",!this.searchOptions(e,r)&&this.focusedOptionIndex.set(-1),this.onModelChange(r),this.updateModel(r||null,e),setTimeout(()=>{this.onChange.emit({originalEvent:e,value:r})},1),!this.overlayVisible&&lt(r)&&this.show()}show(e){this.overlayVisible=!0,this.focusedOptionIndex.set(this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex()),e&&ii(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayAnimationStart(e){if(e.toState==="visible"){if(this.itemsWrapper=wt(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-select-list-container"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){let r=this.modelValue()?this.focusedOptionIndex():-1;r!==-1&&this.scroller?.scrollToIndex(r)}else{let r=wt(this.itemsWrapper,".p-select-option.p-select-option-selected");r&&r.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&!this.editable&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(e)}e.toState==="void"&&(this.itemsWrapper=null,this.onModelTouched(),this.onHide.emit(e))}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.clicked.set(!1),this.searchValue="",this.overlayOptions?.mode==="modal"&&Qh(),this.filter&&this.resetFilterOnHide&&this.resetFilter(),e&&(this.focusInputViewChild&&ii(this.focusInputViewChild?.nativeElement),this.editable&&this.editableInputViewChild&&ii(this.editableInputViewChild?.nativeElement)),this.cd.markForCheck()}onInputFocus(e){if(this.$disabled())return;this.focused=!0;let r=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(r),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),!this.preventModelTouched&&!this.overlayVisible&&this.onModelTouched(),this.preventModelTouched=!1}onKeyDown(e,r=!1){if(!(this.$disabled()||this.readonly||this.loading)){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,this.editable);break;case"Delete":this.onDeleteKey(e);break;case"Home":this.onHomeKey(e,this.editable);break;case"End":this.onEndKey(e,this.editable);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Space":this.onSpaceKey(e,r);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!e.metaKey&&wk(e.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(e,e.key));break}this.clicked.set(!1)}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(e,!0);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0);break;default:break}}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onArrowDownKey(e){if(!this.overlayVisible)this.show(),this.editable&&this.changeFocusedOptionIndex(e,this.findSelectedOptionIndex());else{let r=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,r)}e.preventDefault(),e.stopPropagation()}changeFocusedOptionIndex(e,r){if(this.focusedOptionIndex()!==r&&(this.focusedOptionIndex.set(r),this.scrollInView(),this.selectOnFocus)){let i=this.visibleOptions()[r];this.onOptionSelect(e,i,!1)}}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){let r=e!==-1?`${this.id}_${e}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){let i=wt(this.itemsViewChild.nativeElement,`li[id="${r}"]`);i?i.scrollIntoView&&i.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(e!==-1?e:this.focusedOptionIndex())},0)}}hasSelectedOption(){return this.modelValue()!==void 0}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}equalityKey(){return this.optionValue?void 0:this.dataKey}findFirstFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){let r=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(i=>this.isValidOption(i)):-1;return r>-1?r+e+1:e}findPrevOptionIndex(e){let r=e>0?$v(this.visibleOptions().slice(0,e),i=>this.isValidOption(i)):-1;return r>-1?r:e}findLastOptionIndex(){return $v(this.visibleOptions(),e=>this.isValidOption(e))}findLastFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}isValidOption(e){return e!=null&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionGroup(e){return this.optionGroupLabel!==void 0&&this.optionGroupLabel!==null&&e.optionGroup!==void 0&&e.optionGroup!==null&&e.group}onArrowUpKey(e,r=!1){if(e.altKey&&!r){if(this.focusedOptionIndex()!==-1){let i=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,i)}this.overlayVisible&&this.hide()}else{let i=this.focusedOptionIndex()!==-1?this.findPrevOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,i),!this.overlayVisible&&this.show()}e.preventDefault(),e.stopPropagation()}onArrowLeftKey(e,r=!1){r&&this.focusedOptionIndex.set(-1)}onDeleteKey(e){this.showClear&&(this.clear(e),e.preventDefault())}onHomeKey(e,r=!1){if(r&&e.currentTarget&&e.currentTarget.setSelectionRange){let i=e.currentTarget;e.shiftKey?i.setSelectionRange(0,i.value.length):(i.setSelectionRange(0,0),this.focusedOptionIndex.set(-1))}else this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onEndKey(e,r=!1){if(r&&e.currentTarget&&e.currentTarget.setSelectionRange){let i=e.currentTarget;if(e.shiftKey)i.setSelectionRange(0,i.value.length);else{let o=i.value.length;i.setSelectionRange(o,o),this.focusedOptionIndex.set(-1)}}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onSpaceKey(e,r=!1){!this.editable&&!r&&this.onEnterKey(e)}onEnterKey(e,r=!1){if(!this.overlayVisible)this.focusedOptionIndex.set(-1),this.onArrowDownKey(e);else{if(this.focusedOptionIndex()!==-1){let i=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,i)}!r&&this.hide()}e.preventDefault()}onEscapeKey(e){this.overlayVisible&&(this.hide(!0),e.preventDefault(),e.stopPropagation())}onTabKey(e,r=!1){if(!r)if(this.overlayVisible&&this.hasFocusableElements())ii(e.shiftKey?this.lastHiddenFocusableElementOnOverlay?.nativeElement:this.firstHiddenFocusableElementOnOverlay?.nativeElement),e.preventDefault();else{if(this.focusedOptionIndex()!==-1&&this.overlayVisible){let i=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,i)}this.overlayVisible&&this.hide(this.filter)}e.stopPropagation()}onFirstHiddenFocus(e){let r=e.relatedTarget===this.focusInputViewChild?.nativeElement?rk(this.overlayViewChild?.el?.nativeElement,":not(.p-hidden-focusable)"):this.focusInputViewChild?.nativeElement;ii(r)}onLastHiddenFocus(e){let r=e.relatedTarget===this.focusInputViewChild?.nativeElement?ik(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;ii(r)}hasFocusableElements(){return la(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}onBackspaceKey(e,r=!1){r&&!this.overlayVisible&&this.show()}searchFields(){return this.filterBy?.split(",")||this.filterFields||[this.optionLabel]}searchOptions(e,r){this.searchValue=(this.searchValue||"")+r;let i=-1,o=!1;return i=this.visibleOptions().findIndex(s=>this.isOptionMatched(s)),i!==-1&&(o=!0),i===-1&&this.focusedOptionIndex()===-1&&(i=this.findFirstFocusedOptionIndex()),i!==-1&&setTimeout(()=>{this.changeFocusedOptionIndex(e,i)}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),o}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue?.toLocaleLowerCase(this.filterLocale))}onFilterInputChange(e){let r=e.target.value;this._filterValue.set(r),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller?.scrollToIndex(0),setTimeout(()=>{this.overlayViewChild?.alignOverlay()}),this.cd.markForCheck()}applyFocus(){this.editable?wt(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():ii(this.focusInputViewChild?.nativeElement)}focus(){this.applyFocus()}clear(e){this.updateModel(null,e),this.clearEditableLabel(),this.onModelTouched(),this.onChange.emit({originalEvent:e,value:this.value}),this.onClear.emit(e),this.resetFilter()}writeControlValue(e,r){this.filter&&this.resetFilter(),this.value=e,this.allowModelChange()&&this.onModelChange(e),r(this.value),this.updateEditableLabel(),this.cd.markForCheck()}static \u0275fac=function(r){return new(r||t)(de($e),de(jl))};static \u0275cmp=$({type:t,selectors:[["p-select"]],contentQueries:function(r,i,o){if(r&1&&(V(o,tz,4),V(o,nz,4),V(o,rz,4),V(o,iz,4),V(o,oz,4),V(o,bR,4),V(o,sz,4),V(o,az,4),V(o,lz,4),V(o,cz,4),V(o,dz,4),V(o,uz,4),V(o,pz,4),V(o,fz,4),V(o,hz,4),V(o,mz,4),V(o,xt,4)),r&2){let s;M(s=O())&&(i.itemTemplate=s.first),M(s=O())&&(i.groupTemplate=s.first),M(s=O())&&(i.loaderTemplate=s.first),M(s=O())&&(i.selectedItemTemplate=s.first),M(s=O())&&(i.headerTemplate=s.first),M(s=O())&&(i.filterTemplate=s.first),M(s=O())&&(i.footerTemplate=s.first),M(s=O())&&(i.emptyFilterTemplate=s.first),M(s=O())&&(i.emptyTemplate=s.first),M(s=O())&&(i.dropdownIconTemplate=s.first),M(s=O())&&(i.loadingIconTemplate=s.first),M(s=O())&&(i.clearIconTemplate=s.first),M(s=O())&&(i.filterIconTemplate=s.first),M(s=O())&&(i.onIconTemplate=s.first),M(s=O())&&(i.offIconTemplate=s.first),M(s=O())&&(i.cancelIconTemplate=s.first),M(s=O())&&(i.templates=s)}},viewQuery:function(r,i){if(r&1&&(ct(bR,5),ct(gz,5),ct(yz,5),ct(bz,5),ct(vz,5),ct(_z,5),ct(wz,5),ct(Cz,5)),r&2){let o;M(o=O())&&(i.filterViewChild=o.first),M(o=O())&&(i.focusInputViewChild=o.first),M(o=O())&&(i.editableInputViewChild=o.first),M(o=O())&&(i.itemsViewChild=o.first),M(o=O())&&(i.scroller=o.first),M(o=O())&&(i.overlayViewChild=o.first),M(o=O())&&(i.firstHiddenFocusableElementOnOverlay=o.first),M(o=O())&&(i.lastHiddenFocusableElementOnOverlay=o.first)}},hostVars:3,hostBindings:function(r,i){r&1&&q("click",function(s){return i.onContainerClick(s)}),r&2&&(J("id",i.id),k(i.cn(i.cx("root"),i.styleClass)))},inputs:{id:"id",scrollHeight:"scrollHeight",filter:[2,"filter","filter",R],panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:[2,"readonly","readonly",R],editable:[2,"editable","editable",R],tabindex:[2,"tabindex","tabindex",Me],placeholder:"placeholder",loadingIcon:"loadingIcon",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",inputId:"inputId",dataKey:"dataKey",filterBy:"filterBy",filterFields:"filterFields",autofocus:[2,"autofocus","autofocus",R],resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",R],checkmark:[2,"checkmark","checkmark",R],dropdownIcon:"dropdownIcon",loading:[2,"loading","loading",R],optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",group:[2,"group","group",R],showClear:[2,"showClear","showClear",R],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",lazy:[2,"lazy","lazy",R],virtualScroll:[2,"virtualScroll","virtualScroll",R],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",Me],virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",focusOnHover:[2,"focusOnHover","focusOnHover",R],selectOnFocus:[2,"selectOnFocus","selectOnFocus",R],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",R],autofocusFilter:[2,"autofocusFilter","autofocusFilter",R],filterValue:"filterValue",options:"options",appendTo:[1,"appendTo"]},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:"onShow",onHide:"onHide",onClear:"onClear",onLazyLoad:"onLazyLoad"},features:[xe([MH,Km,{provide:CR,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],decls:11,vars:16,consts:[["elseBlock",""],["overlay",""],["content",""],["focusInput",""],["defaultPlaceholder",""],["editableInput",""],["firstHiddenFocusableEl",""],["buildInItems",""],["lastHiddenFocusableEl",""],["builtInFilterElement",""],["filter",""],["scroller",""],["loader",""],["items",""],["emptyFilter",""],["empty",""],["role","combobox",3,"class","pBind","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus","focus","blur","keydown",4,"ngIf"],["type","text",3,"class","pBind","pAutoFocus","input","keydown","focus","blur",4,"ngIf"],[4,"ngIf"],["role","button","aria-label","dropdown trigger","aria-haspopup","listbox",3,"pBind"],[4,"ngIf","ngIfElse"],["hostName","select",3,"visibleChange","onAnimationStart","onHide","hostAttrSelector","pt","visible","options","target","appendTo"],["role","combobox",3,"focus","blur","keydown","pBind","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["type","text",3,"input","keydown","focus","blur","pBind","pAutoFocus"],["data-p-icon","times",3,"class","pBind","click",4,"ngIf"],[3,"class","pBind","click",4,"ngIf"],["data-p-icon","times",3,"click","pBind"],[3,"click","pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["aria-hidden","true",3,"class","pBind",4,"ngIf"],["aria-hidden","true",3,"pBind"],[3,"class","pBind",4,"ngIf"],["data-p-icon","chevron-down",3,"class","pBind",4,"ngIf"],[3,"pBind"],["data-p-icon","chevron-down",3,"pBind"],[3,"ngStyle","pBind"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus","pBind"],["hostName","select",3,"items","style","itemSize","autoSize","lazy","options","pt","onLazyLoad",4,"ngIf"],[3,"pt"],["pInputText","","type","text","role","searchbox","autocomplete","off",3,"input","keydown","blur","pSize","value","variant","pt"],["data-p-icon","search",3,"pBind",4,"ngIf"],[3,"pBind",4,"ngIf"],["data-p-icon","search",3,"pBind"],["hostName","select",3,"onLazyLoad","items","itemSize","autoSize","lazy","options","pt"],["role","listbox",3,"pBind"],["ngFor","",3,"ngForOf"],["role","option",3,"class","ngStyle","pBind",4,"ngIf"],["role","option",3,"ngStyle","pBind"],[3,"onClick","onMouseEnter","id","option","checkmark","selected","label","disabled","template","focused","ariaPosInset","ariaSetSize","index","scrollerOptions"]],template:function(r,i){if(r&1){let o=se();C(0,Dz,6,23,"span",16)(1,kz,2,19,"input",17)(2,Az,3,2,"ng-container",18),E(3,"div",19),C(4,jz,3,2,"ng-container",20)(5,qz,2,2,"ng-template",null,0,at),T(),E(7,"p-overlay",21,1),Rr("visibleChange",function(a){return S(o),Xr(i.overlayVisible,a)||(i.overlayVisible=a),I(a)}),q("onAnimationStart",function(a){return S(o),I(i.onOverlayAnimationStart(a))})("onHide",function(){return S(o),I(i.hide())}),C(9,SH,13,22,"ng-template",null,2,at),T()}if(r&2){let o=pn(6);h("ngIf",!i.editable),g(),h("ngIf",i.editable),g(),h("ngIf",i.isVisibleClearIcon),g(),k(i.cx("dropdown")),h("pBind",i.ptm("dropdown")),J("aria-expanded",i.overlayVisible??!1)("data-pc-section","trigger"),g(),h("ngIf",i.loading)("ngIfElse",o),g(3),h("hostAttrSelector",i.$attrSelector)("pt",i.ptm("pcOverlay")),Or("visible",i.overlayVisible),h("options",i.overlayOptions)("target","@parent")("appendTo",i.$appendTo())}},dependencies:[Qe,Ar,Ut,kt,tr,OH,pR,Jh,$i,ql,Zh,aM,to,Wm,Gm,Lu,Te,Wt,te],encapsulation:2,changeDetection:0})}return t})(),xR=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({imports:[Ym,Te,Te]})}return t})();var TR=`
.p-inputnumber {
display: inline-flex;
position: relative;
}
.p-inputnumber-button {
display: flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
cursor: pointer;
background: dt('inputnumber.button.background');
color: dt('inputnumber.button.color');
width: dt('inputnumber.button.width');
transition:
background dt('inputnumber.transition.duration'),
color dt('inputnumber.transition.duration'),
border-color dt('inputnumber.transition.duration'),
outline-color dt('inputnumber.transition.duration');
}
.p-inputnumber-button:disabled {
cursor: auto;
}
.p-inputnumber-button:not(:disabled):hover {
background: dt('inputnumber.button.hover.background');
color: dt('inputnumber.button.hover.color');
}
.p-inputnumber-button:not(:disabled):active {
background: dt('inputnumber.button.active.background');
color: dt('inputnumber.button.active.color');
}
.p-inputnumber-stacked .p-inputnumber-button {
position: relative;
flex: 1 1 auto;
border: 0 none;
}
.p-inputnumber-stacked .p-inputnumber-button-group {
display: flex;
flex-direction: column;
position: absolute;
inset-block-start: 1px;
inset-inline-end: 1px;
height: calc(100% - 2px);
z-index: 1;
}
.p-inputnumber-stacked .p-inputnumber-increment-button {
padding: 0;
border-start-end-radius: calc(dt('inputnumber.button.border.radius') - 1px);
}
.p-inputnumber-stacked .p-inputnumber-decrement-button {
padding: 0;
border-end-end-radius: calc(dt('inputnumber.button.border.radius') - 1px);
}
.p-inputnumber-stacked .p-inputnumber-input {
padding-inline-end: calc(dt('inputnumber.button.width') + dt('form.field.padding.x'));
}
.p-inputnumber-horizontal .p-inputnumber-button {
border: 1px solid dt('inputnumber.button.border.color');
}
.p-inputnumber-horizontal .p-inputnumber-button:hover {
border-color: dt('inputnumber.button.hover.border.color');
}
.p-inputnumber-horizontal .p-inputnumber-button:active {
border-color: dt('inputnumber.button.active.border.color');
}
.p-inputnumber-horizontal .p-inputnumber-increment-button {
order: 3;
border-start-end-radius: dt('inputnumber.button.border.radius');
border-end-end-radius: dt('inputnumber.button.border.radius');
border-inline-start: 0 none;
}
.p-inputnumber-horizontal .p-inputnumber-input {
order: 2;
border-radius: 0;
}
.p-inputnumber-horizontal .p-inputnumber-decrement-button {
order: 1;
border-start-start-radius: dt('inputnumber.button.border.radius');
border-end-start-radius: dt('inputnumber.button.border.radius');
border-inline-end: 0 none;
}
.p-floatlabel:has(.p-inputnumber-horizontal) label {
margin-inline-start: dt('inputnumber.button.width');
}
.p-inputnumber-vertical {
flex-direction: column;
}
.p-inputnumber-vertical .p-inputnumber-button {
border: 1px solid dt('inputnumber.button.border.color');
padding: dt('inputnumber.button.vertical.padding');
}
.p-inputnumber-vertical .p-inputnumber-button:hover {
border-color: dt('inputnumber.button.hover.border.color');
}
.p-inputnumber-vertical .p-inputnumber-button:active {
border-color: dt('inputnumber.button.active.border.color');
}
.p-inputnumber-vertical .p-inputnumber-increment-button {
order: 1;
border-start-start-radius: dt('inputnumber.button.border.radius');
border-start-end-radius: dt('inputnumber.button.border.radius');
width: 100%;
border-block-end: 0 none;
}
.p-inputnumber-vertical .p-inputnumber-input {
order: 2;
border-radius: 0;
text-align: center;
}
.p-inputnumber-vertical .p-inputnumber-decrement-button {
order: 3;
border-end-start-radius: dt('inputnumber.button.border.radius');
border-end-end-radius: dt('inputnumber.button.border.radius');
width: 100%;
border-block-start: 0 none;
}
.p-inputnumber-input {
flex: 1 1 auto;
}
.p-inputnumber-fluid {
width: 100%;
}
.p-inputnumber-fluid .p-inputnumber-input {
width: 1%;
}
.p-inputnumber-fluid.p-inputnumber-vertical .p-inputnumber-input {
width: 100%;
}
.p-inputnumber:has(.p-inputtext-sm) .p-inputnumber-button .p-icon {
font-size: dt('form.field.sm.font.size');
width: dt('form.field.sm.font.size');
height: dt('form.field.sm.font.size');
}
.p-inputnumber:has(.p-inputtext-lg) .p-inputnumber-button .p-icon {
font-size: dt('form.field.lg.font.size');
width: dt('form.field.lg.font.size');
height: dt('form.field.lg.font.size');
}
.p-inputnumber-clear-icon {
position: absolute;
top: 50%;
margin-top: -0.5rem;
cursor: pointer;
inset-inline-end: dt('form.field.padding.x');
color: dt('form.field.icon.color');
}
.p-inputnumber:has(.p-inputnumber-clear-icon) .p-inputnumber-input {
padding-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
}
.p-inputnumber-stacked .p-inputnumber-clear-icon {
inset-inline-end: calc(dt('inputnumber.button.width') + dt('form.field.padding.x'));
}
.p-inputnumber-stacked:has(.p-inputnumber-clear-icon) .p-inputnumber-input {
padding-inline-end: calc(dt('inputnumber.button.width') + (dt('form.field.padding.x') * 2) + dt('icon.size'));
}
.p-inputnumber-horizontal .p-inputnumber-clear-icon {
inset-inline-end: calc(dt('inputnumber.button.width') + dt('form.field.padding.x'));
}
`;var RH=["clearicon"],PH=["incrementbuttonicon"],AH=["decrementbuttonicon"],NH=["input"];function FH(t,n){if(t&1){let e=se();G(),E(0,"svg",7),q("click",function(){S(e);let i=m(2);return I(i.clear())}),T()}if(t&2){let e=m(2);k(e.cx("clearIcon")),h("pBind",e.ptm("clearIcon"))}}function LH(t,n){}function BH(t,n){t&1&&C(0,LH,0,0,"ng-template")}function VH(t,n){if(t&1){let e=se();E(0,"span",8),q("click",function(){S(e);let i=m(2);return I(i.clear())}),C(1,BH,1,0,null,9),T()}if(t&2){let e=m(2);k(e.cx("clearIcon")),h("pBind",e.ptm("clearIcon")),g(),h("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function jH(t,n){if(t&1&&(ie(0),C(1,FH,1,3,"svg",5)(2,VH,2,4,"span",6),oe()),t&2){let e=m();g(),h("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),g(),h("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function zH(t,n){if(t&1&&X(0,"span",13),t&2){let e=m(2);h("pBind",e.ptm("incrementButtonIcon"))("ngClass",e.incrementButtonIcon)}}function HH(t,n){if(t&1&&(G(),X(0,"svg",15)),t&2){let e=m(3);h("pBind",e.ptm("incrementButtonIcon"))}}function $H(t,n){}function UH(t,n){t&1&&C(0,$H,0,0,"ng-template")}function WH(t,n){if(t&1&&(ie(0),C(1,HH,1,1,"svg",14)(2,UH,1,0,null,9),oe()),t&2){let e=m(2);g(),h("ngIf",!e.incrementButtonIconTemplate&&!e._incrementButtonIconTemplate),g(),h("ngTemplateOutlet",e.incrementButtonIconTemplate||e._incrementButtonIconTemplate)}}function GH(t,n){if(t&1&&X(0,"span",13),t&2){let e=m(2);h("pBind",e.ptm("decrementButtonIcon"))("ngClass",e.decrementButtonIcon)}}function qH(t,n){if(t&1&&(G(),X(0,"svg",17)),t&2){let e=m(3);h("pBind",e.ptm("decrementButtonIcon"))}}function QH(t,n){}function KH(t,n){t&1&&C(0,QH,0,0,"ng-template")}function YH(t,n){if(t&1&&(ie(0),C(1,qH,1,1,"svg",16)(2,KH,1,0,null,9),oe()),t&2){let e=m(2);g(),h("ngIf",!e.decrementButtonIconTemplate&&!e._decrementButtonIconTemplate),g(),h("ngTemplateOutlet",e.decrementButtonIconTemplate||e._decrementButtonIconTemplate)}}function ZH(t,n){if(t&1){let e=se();E(0,"span",10)(1,"button",11),q("mousedown",function(i){S(e);let o=m();return I(o.onUpButtonMouseDown(i))})("mouseup",function(){S(e);let i=m();return I(i.onUpButtonMouseUp())})("mouseleave",function(){S(e);let i=m();return I(i.onUpButtonMouseLeave())})("keydown",function(i){S(e);let o=m();return I(o.onUpButtonKeyDown(i))})("keyup",function(){S(e);let i=m();return I(i.onUpButtonKeyUp())}),C(2,zH,1,2,"span",12)(3,WH,3,2,"ng-container",2),T(),E(4,"button",11),q("mousedown",function(i){S(e);let o=m();return I(o.onDownButtonMouseDown(i))})("mouseup",function(){S(e);let i=m();return I(i.onDownButtonMouseUp())})("mouseleave",function(){S(e);let i=m();return I(i.onDownButtonMouseLeave())})("keydown",function(i){S(e);let o=m();return I(o.onDownButtonKeyDown(i))})("keyup",function(){S(e);let i=m();return I(i.onDownButtonKeyUp())}),C(5,GH,1,2,"span",12)(6,YH,3,2,"ng-container",2),T()()}if(t&2){let e=m();k(e.cx("buttonGroup")),h("pBind",e.ptm("buttonGroup")),g(),k(e.cn(e.cx("incrementButton"),e.incrementButtonClass)),h("pBind",e.ptm("incrementButton")),J("disabled",e.$disabled()?"":void 0)("aria-hidden",!0),g(),h("ngIf",e.incrementButtonIcon),g(),h("ngIf",!e.incrementButtonIcon),g(),k(e.cn(e.cx("decrementButton"),e.decrementButtonClass)),h("pBind",e.ptm("decrementButton")),J("disabled",e.$disabled()?"":void 0)("aria-hidden",!0),g(),h("ngIf",e.decrementButtonIcon),g(),h("ngIf",!e.decrementButtonIcon)}}function JH(t,n){if(t&1&&X(0,"span",13),t&2){let e=m(2);h("pBind",e.ptm("incrementButtonIcon"))("ngClass",e.incrementButtonIcon)}}function XH(t,n){if(t&1&&(G(),X(0,"svg",15)),t&2){let e=m(3);h("pBind",e.ptm("incrementButtonIcon"))}}function e$(t,n){}function t$(t,n){t&1&&C(0,e$,0,0,"ng-template")}function n$(t,n){if(t&1&&(ie(0),C(1,XH,1,1,"svg",14)(2,t$,1,0,null,9),oe()),t&2){let e=m(2);g(),h("ngIf",!e.incrementButtonIconTemplate&&!e._incrementButtonIconTemplate),g(),h("ngTemplateOutlet",e.incrementButtonIconTemplate||e._incrementButtonIconTemplate)}}function r$(t,n){if(t&1){let e=se();E(0,"button",11),q("mousedown",function(i){S(e);let o=m();return I(o.onUpButtonMouseDown(i))})("mouseup",function(){S(e);let i=m();return I(i.onUpButtonMouseUp())})("mouseleave",function(){S(e);let i=m();return I(i.onUpButtonMouseLeave())})("keydown",function(i){S(e);let o=m();return I(o.onUpButtonKeyDown(i))})("keyup",function(){S(e);let i=m();return I(i.onUpButtonKeyUp())}),C(1,JH,1,2,"span",12)(2,n$,3,2,"ng-container",2),T()}if(t&2){let e=m();k(e.cn(e.cx("incrementButton"),e.incrementButtonClass)),h("pBind",e.ptm("incrementButton")),J("disabled",e.$disabled()?"":void 0)("aria-hidden",!0),g(),h("ngIf",e.incrementButtonIcon),g(),h("ngIf",!e.incrementButtonIcon)}}function i$(t,n){if(t&1&&X(0,"span",13),t&2){let e=m(2);h("pBind",e.ptm("decrementButtonIcon"))("ngClass",e.decrementButtonIcon)}}function o$(t,n){if(t&1&&(G(),X(0,"svg",17)),t&2){let e=m(3);h("pBind",e.ptm("decrementButtonIcon"))}}function s$(t,n){}function a$(t,n){t&1&&C(0,s$,0,0,"ng-template")}function l$(t,n){if(t&1&&(ie(0),C(1,o$,1,1,"svg",16)(2,a$,1,0,null,9),oe()),t&2){let e=m(2);g(),h("ngIf",!e.decrementButtonIconTemplate&&!e._decrementButtonIconTemplate),g(),h("ngTemplateOutlet",e.decrementButtonIconTemplate||e._decrementButtonIconTemplate)}}function c$(t,n){if(t&1){let e=se();E(0,"button",11),q("mousedown",function(i){S(e);let o=m();return I(o.onDownButtonMouseDown(i))})("mouseup",function(){S(e);let i=m();return I(i.onDownButtonMouseUp())})("mouseleave",function(){S(e);let i=m();return I(i.onDownButtonMouseLeave())})("keydown",function(i){S(e);let o=m();return I(o.onDownButtonKeyDown(i))})("keyup",function(){S(e);let i=m();return I(i.onDownButtonKeyUp())}),C(1,i$,1,2,"span",12)(2,l$,3,2,"ng-container",2),T()}if(t&2){let e=m();k(e.cn(e.cx("decrementButton"),e.decrementButtonClass)),h("pBind",e.ptm("decrementButton")),J("disabled",e.$disabled()?"":void 0)("aria-hidden",!0),g(),h("ngIf",e.decrementButtonIcon),g(),h("ngIf",!e.decrementButtonIcon)}}var d$=`
${TR}
/* For PrimeNG */
p-inputNumber.ng-invalid.ng-dirty > .p-inputtext,
p-input-number.ng-invalid.ng-dirty > .p-inputtext,
p-inputnumber.ng-invalid.ng-dirty > .p-inputtext {
border-color: dt('inputtext.invalid.border.color');
}
p-inputNumber.ng-invalid.ng-dirty > .p-inputtext:enabled:focus,
p-input-number.ng-invalid.ng-dirty > .p-inputtext:enabled:focus,
p-inputnumber.ng-invalid.ng-dirty > .p-inputtext:enabled:focus {
border-color: dt('inputtext.focus.border.color');
}
p-inputNumber.ng-invalid.ng-dirty > .p-inputtext::placeholder,
p-input-number.ng-invalid.ng-dirty > .p-inputtext::placeholder,
p-inputnumber.ng-invalid.ng-dirty > .p-inputtext::placeholder {
color: dt('inputtext.invalid.placeholder.color');
}
`,u$={root:({instance:t})=>["p-inputnumber p-component p-inputwrapper",{"p-inputwrapper-filled":t.$filled()||t.allowEmpty===!1,"p-inputwrapper-focus":t.focused,"p-inputnumber-stacked":t.showButtons&&t.buttonLayout==="stacked","p-inputnumber-horizontal":t.showButtons&&t.buttonLayout==="horizontal","p-inputnumber-vertical":t.showButtons&&t.buttonLayout==="vertical","p-inputnumber-fluid":t.hasFluid,"p-invalid":t.invalid()}],pcInputText:"p-inputnumber-input",buttonGroup:"p-inputnumber-button-group",incrementButton:({instance:t})=>["p-inputnumber-button p-inputnumber-increment-button",{"p-disabled":t.showButtons&&t.max()!=null&&t.maxlength()}],decrementButton:({instance:t})=>["p-inputnumber-button p-inputnumber-decrement-button",{"p-disabled":t.showButtons&&t.min()!=null&&t.minlength()}],clearIcon:"p-inputnumber-clear-icon"},ER=(()=>{class t extends Oe{name="inputnumber";style=d$;classes=u$;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var SR=new H("INPUTNUMBER_INSTANCE"),p$={provide:Nn,useExisting:Ht(()=>Zm),multi:!0},Zm=(()=>{class t extends vc{injector;$pcInputNumber=x(SR,{optional:!0,skipSelf:!0})??void 0;_componentStyle=x(ER);bindDirectiveInstance=x(te,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}showButtons=!1;format=!0;buttonLayout="stacked";inputId;styleClass;placeholder;tabindex;title;ariaLabelledBy;ariaDescribedBy;ariaLabel;ariaRequired;autocomplete;incrementButtonClass;decrementButtonClass;incrementButtonIcon;decrementButtonIcon;readonly;allowEmpty=!0;locale;localeMatcher;mode="decimal";currency;currencyDisplay;useGrouping=!0;minFractionDigits;maxFractionDigits;prefix;suffix;inputStyle;inputStyleClass;showClear=!1;autofocus;onInput=new z;onFocus=new z;onBlur=new z;onKeyDown=new z;onClear=new z;clearIconTemplate;incrementButtonIconTemplate;decrementButtonIconTemplate;templates;input;_clearIconTemplate;_incrementButtonIconTemplate;_decrementButtonIconTemplate;value;focused;initialized;groupChar="";prefixChar="";suffixChar="";isSpecialChar;timer;lastValue;_numeral;numberFormat;_decimal;_decimalChar="";_group;_minusSign;_currency;_prefix;_suffix;_index;ngControl=null;constructor(e){super(),this.injector=e}onChanges(e){["locale","localeMatcher","mode","currency","currencyDisplay","useGrouping","minFractionDigits","maxFractionDigits","prefix","suffix"].some(i=>!!e[i])&&this.updateConstructParser()}onInit(){this.ngControl=this.injector.get(Yn,null,{optional:!0}),this.constructParser(),this.initialized=!0}onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"clearicon":this._clearIconTemplate=e.template;break;case"incrementbuttonicon":this._incrementButtonIconTemplate=e.template;break;case"decrementbuttonicon":this._decrementButtonIconTemplate=e.template;break}})}getOptions(){let e=(s,a,l)=>{if(!(s==null||isNaN(s)||!isFinite(s)))return Math.max(a,Math.min(l,Math.floor(s)))},r=e(this.minFractionDigits,0,20),i=e(this.maxFractionDigits,0,100),o=r!=null&&i!=null&&r>i?i:r;return{localeMatcher:this.localeMatcher,style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:this.useGrouping,minimumFractionDigits:o,maximumFractionDigits:i}}constructParser(){let e=this.getOptions(),r=Object.fromEntries(Object.entries(e).filter(([s,a])=>a!==void 0));this.numberFormat=new Intl.NumberFormat(this.locale,r);let i=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),o=new Map(i.map((s,a)=>[s,a]));this._numeral=new RegExp(`[${i.join("")}]`,"g"),this._group=this.getGroupingExpression(),this._minusSign=this.getMinusSignExpression(),this._currency=this.getCurrencyExpression(),this._decimal=this.getDecimalExpression(),this._decimalChar=this.getDecimalChar(),this._suffix=this.getSuffixExpression(),this._prefix=this.getPrefixExpression(),this._index=s=>o.get(s)}updateConstructParser(){this.initialized&&this.constructParser()}escapeRegExp(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}getDecimalExpression(){let e=this.getDecimalChar();return new RegExp(`[${e}]`,"g")}getDecimalChar(){return new Intl.NumberFormat(this.locale,A(_({},this.getOptions()),{useGrouping:!1})).format(1.1).replace(this._currency,"").trim().replace(this._numeral,"")}getGroupingExpression(){let e=new Intl.NumberFormat(this.locale,{useGrouping:!0});return this.groupChar=e.format(1e6).trim().replace(this._numeral,"").charAt(0),new RegExp(`[${this.groupChar}]`,"g")}getMinusSignExpression(){let e=new Intl.NumberFormat(this.locale,{useGrouping:!1});return new RegExp(`[${e.format(-1).trim().replace(this._numeral,"")}]`,"g")}getCurrencyExpression(){if(this.currency){let e=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});return new RegExp(`[${e.format(1).replace(/\s/g,"").replace(this._numeral,"").replace(this._group,"")}]`,"g")}return new RegExp("[]","g")}getPrefixExpression(){if(this.prefix)this.prefixChar=this.prefix;else{let e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay});this.prefixChar=e.format(1).split("1")[0]}return new RegExp(`${this.escapeRegExp(this.prefixChar||"")}`,"g")}getSuffixExpression(){if(this.suffix)this.suffixChar=this.suffix;else{let e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});this.suffixChar=e.format(1).split("1")[1]}return new RegExp(`${this.escapeRegExp(this.suffixChar||"")}`,"g")}formatValue(e){if(e!=null){if(e==="-")return e;if(this.format){let i=new Intl.NumberFormat(this.locale,this.getOptions()).format(e);return this.prefix&&e!=this.prefix&&(i=this.prefix+i),this.suffix&&e!=this.suffix&&(i=i+this.suffix),i}return e.toString()}return""}parseValue(e){let r=this._suffix?new RegExp(this._suffix,""):/(?:)/,i=this._prefix?new RegExp(this._prefix,""):/(?:)/,o=this._currency?new RegExp(this._currency,""):/(?:)/,s=e.replace(r,"").replace(i,"").trim().replace(/\s/g,"").replace(o,"").replace(this._group,"").replace(this._minusSign,"-").replace(this._decimal,".").replace(this._numeral,this._index);if(s){if(s==="-")return s;let a=+s;return isNaN(a)?null:a}return null}repeat(e,r,i){if(this.readonly)return;let o=r||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,40,i)},o),this.spin(e,i)}spin(e,r){let i=(this.step()??1)*r,o=this.parseValue(this.input?.nativeElement.value)||0,s=this.validateValue(o+i),a=this.maxlength();a&&a<this.formatValue(s).length||(this.updateInput(s,null,"spin",null),this.updateModel(e,s),this.handleOnInput(e,o,s))}clear(){this.value=null,this.onModelChange(this.value),this.onClear.emit()}onUpButtonMouseDown(e){if(e.button===2){this.clearTimer();return}this.$disabled()||(this.input?.nativeElement.focus(),this.repeat(e,null,1),e.preventDefault())}onUpButtonMouseUp(){this.$disabled()||this.clearTimer()}onUpButtonMouseLeave(){this.$disabled()||this.clearTimer()}onUpButtonKeyDown(e){(e.keyCode===32||e.keyCode===13)&&this.repeat(e,null,1)}onUpButtonKeyUp(){this.$disabled()||this.clearTimer()}onDownButtonMouseDown(e){if(e.button===2){this.clearTimer();return}this.$disabled()||(this.input?.nativeElement.focus(),this.repeat(e,null,-1),e.preventDefault())}onDownButtonMouseUp(){this.$disabled()||this.clearTimer()}onDownButtonMouseLeave(){this.$disabled()||this.clearTimer()}onDownButtonKeyUp(){this.$disabled()||this.clearTimer()}onDownButtonKeyDown(e){(e.keyCode===32||e.keyCode===13)&&this.repeat(e,null,-1)}onUserInput(e){this.readonly||(this.isSpecialChar&&(e.target.value=this.lastValue),this.isSpecialChar=!1)}onInputKeyDown(e){if(this.readonly)return;if(this.lastValue=e.target.value,e.shiftKey||e.altKey){this.isSpecialChar=!0;return}let r=e.target.selectionStart,i=e.target.selectionEnd,o=e.target.value,s=null;switch(e.altKey&&e.preventDefault(),e.key){case"ArrowUp":this.spin(e,1),e.preventDefault();break;case"ArrowDown":this.spin(e,-1),e.preventDefault();break;case"ArrowLeft":for(let a=r;a<=o.length;a++){let l=a===0?0:a-1;if(this.isNumeralChar(o.charAt(l))){this.input.nativeElement.setSelectionRange(a,a);break}}break;case"ArrowRight":for(let a=i;a>=0;a--)if(this.isNumeralChar(o.charAt(a))){this.input.nativeElement.setSelectionRange(a,a);break}break;case"Tab":case"Enter":s=this.validateValue(this.parseValue(this.input.nativeElement.value)),this.input.nativeElement.value=this.formatValue(s),this.input.nativeElement.setAttribute("aria-valuenow",s),this.updateModel(e,s);break;case"Backspace":{if(e.preventDefault(),r===i){if(r==1&&this.prefix||r==o.length&&this.suffix)break;let a=o.charAt(r-1),{decimalCharIndex:l,decimalCharIndexWithoutPrefix:c}=this.getDecimalCharIndexes(o);if(this.isNumeralChar(a)){let d=this.getDecimalLength(o);if(this._group.test(a))this._group.lastIndex=0,s=o.slice(0,r-2)+o.slice(r-1);else if(this._decimal.test(a))this._decimal.lastIndex=0,d?this.input?.nativeElement.setSelectionRange(r-1,r-1):s=o.slice(0,r-1)+o.slice(r);else if(l>0&&r>l){let u=this.isDecimalMode()&&(this.minFractionDigits||0)<d?"":"0";s=o.slice(0,r-1)+u+o.slice(r)}else c===1?(s=o.slice(0,r-1)+"0"+o.slice(r),s=this.parseValue(s)>0?s:""):s=o.slice(0,r-1)+o.slice(r)}else this.mode==="currency"&&this._currency&&a.search(this._currency)!=-1&&(s=o.slice(1));this.updateValue(e,s,null,"delete-single")}else s=this.deleteRange(o,r,i),this.updateValue(e,s,null,"delete-range");break}case"Delete":if(e.preventDefault(),r===i){if(r==0&&this.prefix||r==o.length-1&&this.suffix)break;let a=o.charAt(r),{decimalCharIndex:l,decimalCharIndexWithoutPrefix:c}=this.getDecimalCharIndexes(o);if(this.isNumeralChar(a)){let d=this.getDecimalLength(o);if(this._group.test(a))this._group.lastIndex=0,s=o.slice(0,r)+o.slice(r+2);else if(this._decimal.test(a))this._decimal.lastIndex=0,d?this.input?.nativeElement.setSelectionRange(r+1,r+1):s=o.slice(0,r)+o.slice(r+1);else if(l>0&&r>l){let u=this.isDecimalMode()&&(this.minFractionDigits||0)<d?"":"0";s=o.slice(0,r)+u+o.slice(r+1)}else c===1?(s=o.slice(0,r)+"0"+o.slice(r+1),s=this.parseValue(s)>0?s:""):s=o.slice(0,r)+o.slice(r+1)}this.updateValue(e,s,null,"delete-back-single")}else s=this.deleteRange(o,r,i),this.updateValue(e,s,null,"delete-range");break;case"Home":this.min()&&(this.updateModel(e,this.min()),e.preventDefault());break;case"End":this.max()&&(this.updateModel(e,this.max()),e.preventDefault());break;default:break}this.onKeyDown.emit(e)}onInputKeyPress(e){if(this.readonly)return;let r=e.which||e.keyCode,i=String.fromCharCode(r),o=this.isDecimalSign(i),s=this.isMinusSign(i);r!=13&&e.preventDefault(),!o&&e.code==="NumpadDecimal"&&(o=!0,i=this._decimalChar,r=i.charCodeAt(0));let{value:a,selectionStart:l,selectionEnd:c}=this.input.nativeElement,d=this.parseValue(a+i),u=d!=null?d.toString():"",p=a.substring(l,c),f=this.parseValue(p),y=f!=null?f.toString():"";if(l!==c&&y.length>0){this.insert(e,i,{isDecimalSign:o,isMinusSign:s});return}let b=this.maxlength();b&&u.length>b||(48<=r&&r<=57||s||o)&&this.insert(e,i,{isDecimalSign:o,isMinusSign:s})}onPaste(e){if(!this.$disabled()&&!this.readonly){e.preventDefault();let r=(e.clipboardData||this.document.defaultView.clipboardData).getData("Text");if(this.inputId==="integeronly"&&/[^\d-]/.test(r))return;if(r){this.maxlength()&&(r=r.toString().substring(0,this.maxlength()));let i=this.parseValue(r);i!=null&&this.insert(e,i.toString())}}}allowMinusSign(){let e=this.min();return e==null||e<0}isMinusSign(e){return this._minusSign.test(e)||e==="-"?(this._minusSign.lastIndex=0,!0):!1}isDecimalSign(e){return this._decimal.test(e)?(this._decimal.lastIndex=0,!0):!1}isDecimalMode(){return this.mode==="decimal"}getDecimalCharIndexes(e){let r=e.search(this._decimal);this._decimal.lastIndex=0;let o=e.replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:r,decimalCharIndexWithoutPrefix:o}}getCharIndexes(e){let r=e.search(this._decimal);this._decimal.lastIndex=0;let i=e.search(this._minusSign);this._minusSign.lastIndex=0;let o=e.search(this._suffix);this._suffix.lastIndex=0;let s=e.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:r,minusCharIndex:i,suffixCharIndex:o,currencyCharIndex:s}}insert(e,r,i={isDecimalSign:!1,isMinusSign:!1}){let o=r.search(this._minusSign);if(this._minusSign.lastIndex=0,!this.allowMinusSign()&&o!==-1)return;let s=this.input?.nativeElement.selectionStart,a=this.input?.nativeElement.selectionEnd,l=this.input?.nativeElement.value.trim(),{decimalCharIndex:c,minusCharIndex:d,suffixCharIndex:u,currencyCharIndex:p}=this.getCharIndexes(l),f;if(i.isMinusSign)s===0&&(f=l,(d===-1||a!==0)&&(f=this.insertText(l,r,0,a)),this.updateValue(e,f,r,"insert"));else if(i.isDecimalSign)c>0&&s===c?this.updateValue(e,l,r,"insert"):c>s&&c<a?(f=this.insertText(l,r,s,a),this.updateValue(e,f,r,"insert")):c===-1&&this.maxFractionDigits&&(f=this.insertText(l,r,s,a),this.updateValue(e,f,r,"insert"));else{let y=this.numberFormat.resolvedOptions().maximumFractionDigits,b=s!==a?"range-insert":"insert";if(c>0&&s>c){if(s+r.length-(c+1)<=y){let v=p>=s?p-1:u>=s?u:l.length;f=l.slice(0,s)+r+l.slice(s+r.length,v)+l.slice(v),this.updateValue(e,f,r,b)}}else f=this.insertText(l,r,s,a),this.updateValue(e,f,r,b)}}insertText(e,r,i,o){if((r==="."?r:r.split(".")).length===2){let a=e.slice(i,o).search(this._decimal);return this._decimal.lastIndex=0,a>0?e.slice(0,i)+this.formatValue(r)+e.slice(o):e||this.formatValue(r)}else return o-i===e.length?this.formatValue(r):i===0?r+e.slice(o):o===e.length?e.slice(0,i)+r:e.slice(0,i)+r+e.slice(o)}deleteRange(e,r,i){let o;return i-r===e.length?o="":r===0?o=e.slice(i):i===e.length?o=e.slice(0,r):o=e.slice(0,r)+e.slice(i),o}initCursor(){let e=this.input?.nativeElement.selectionStart,r=this.input?.nativeElement.selectionEnd,i=this.input?.nativeElement.value,o=i.length,s=null,a=(this.prefixChar||"").length;i=i.replace(this._prefix,""),(e===r||e!==0||r<a)&&(e-=a);let l=i.charAt(e);if(this.isNumeralChar(l))return e+a;let c=e-1;for(;c>=0;)if(l=i.charAt(c),this.isNumeralChar(l)){s=c+a;break}else c--;if(s!==null)this.input?.nativeElement.setSelectionRange(s+1,s+1);else{for(c=e;c<o;)if(l=i.charAt(c),this.isNumeralChar(l)){s=c+a;break}else c++;s!==null&&this.input?.nativeElement.setSelectionRange(s,s)}return s||0}onInputClick(){let e=this.input?.nativeElement.value;!this.readonly&&e!==sk()&&this.initCursor()}isNumeralChar(e){return e.length===1&&(this._numeral.test(e)||this._decimal.test(e)||this._group.test(e)||this._minusSign.test(e))?(this.resetRegex(),!0):!1}resetRegex(){this._numeral.lastIndex=0,this._decimal.lastIndex=0,this._group.lastIndex=0,this._minusSign.lastIndex=0}updateValue(e,r,i,o){let s=this.input?.nativeElement.value,a=null;r!=null&&(a=this.parseValue(r),a=!a&&!this.allowEmpty?0:a,this.updateInput(a,i,o,r),this.handleOnInput(e,s,a))}handleOnInput(e,r,i){this.isValueChanged(r,i)&&(this.input.nativeElement.value=this.formatValue(i),this.input?.nativeElement.setAttribute("aria-valuenow",i),this.updateModel(e,i),this.onInput.emit({originalEvent:e,value:i,formattedValue:r}))}isValueChanged(e,r){if(r===null&&e!==null)return!0;if(r!=null){let i=typeof e=="string"?this.parseValue(e):e;return r!==i}return!1}validateValue(e){if(e==="-"||e==null)return null;let r=this.min(),i=this.max();return r!=null&&e<r?this.min():i!=null&&e>i?i:e}updateInput(e,r,i,o){r=r||"";let s=this.input?.nativeElement.value,a=this.formatValue(e),l=s.length;if(a!==o&&(a=this.concatValues(a,o)),l===0){this.input.nativeElement.value=a,this.input.nativeElement.setSelectionRange(0,0);let d=this.initCursor()+r.length;this.input.nativeElement.setSelectionRange(d,d)}else{let c=this.input.nativeElement.selectionStart,d=this.input.nativeElement.selectionEnd,u=this.maxlength();if(u&&a.length>u&&(a=a.slice(0,u),c=Math.min(c,u),d=Math.min(d,u)),u&&u<a.length)return;this.input.nativeElement.value=a;let p=a.length;if(i==="range-insert"){let f=this.parseValue((s||"").slice(0,c)),b=(f!==null?f.toString():"").split("").join(`(${this.groupChar})?`),v=new RegExp(b,"g");v.test(a);let w=r.split("").join(`(${this.groupChar})?`),D=new RegExp(w,"g");D.test(a.slice(v.lastIndex)),d=v.lastIndex+D.lastIndex,this.input.nativeElement.setSelectionRange(d,d)}else if(p===l)i==="insert"||i==="delete-back-single"?this.input.nativeElement.setSelectionRange(d+1,d+1):i==="delete-single"?this.input.nativeElement.setSelectionRange(d-1,d-1):(i==="delete-range"||i==="spin")&&this.input.nativeElement.setSelectionRange(d,d);else if(i==="delete-back-single"){let f=s.charAt(d-1),y=s.charAt(d),b=l-p,v=this._group.test(y);v&&b===1?d+=1:!v&&this.isNumeralChar(f)&&(d+=-1*b+1),this._group.lastIndex=0,this.input.nativeElement.setSelectionRange(d,d)}else if(s==="-"&&i==="insert"){this.input.nativeElement.setSelectionRange(0,0);let y=this.initCursor()+r.length+1;this.input.nativeElement.setSelectionRange(y,y)}else d=d+(p-l),this.input.nativeElement.setSelectionRange(d,d)}this.input.nativeElement.setAttribute("aria-valuenow",e)}concatValues(e,r){if(e&&r){let i=r.search(this._decimal);return this._decimal.lastIndex=0,this.suffixChar?i!==-1?e.replace(this.suffixChar,"").split(this._decimal)[0]+r.replace(this.suffixChar,"").slice(i)+this.suffixChar:e:i!==-1?e.split(this._decimal)[0]+r.slice(i):e}return e}getDecimalLength(e){if(e){let r=e.split(this._decimal);if(r.length===2)return r[1].replace(this._suffix,"").trim().replace(/\s/g,"").replace(this._currency,"").length}return 0}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1;let r=this.validateValue(this.parseValue(this.input.nativeElement.value)),i=r?.toString();this.input.nativeElement.value=this.formatValue(i),this.input.nativeElement.setAttribute("aria-valuenow",i),this.updateModel(e,r),this.onModelTouched(),this.onBlur.emit(e)}formattedValue(){let e=!this.value&&!this.allowEmpty?0:this.value;return this.formatValue(e)}updateModel(e,r){let i=this.ngControl?.control?.updateOn==="blur";this.value!==r?(this.value=r,i&&this.focused||this.onModelChange(r)):i&&this.onModelChange(r)}writeControlValue(e,r){this.value=e&&Number(e),r(e),this.cd.markForCheck()}clearTimer(){this.timer&&clearInterval(this.timer)}static \u0275fac=function(r){return new(r||t)(de(Bt))};static \u0275cmp=$({type:t,selectors:[["p-inputNumber"],["p-inputnumber"],["p-input-number"]],contentQueries:function(r,i,o){if(r&1&&(V(o,RH,4),V(o,PH,4),V(o,AH,4),V(o,xt,4)),r&2){let s;M(s=O())&&(i.clearIconTemplate=s.first),M(s=O())&&(i.incrementButtonIconTemplate=s.first),M(s=O())&&(i.decrementButtonIconTemplate=s.first),M(s=O())&&(i.templates=s)}},viewQuery:function(r,i){if(r&1&&ct(NH,5),r&2){let o;M(o=O())&&(i.input=o.first)}},hostVars:2,hostBindings:function(r,i){r&2&&k(i.cn(i.cx("root"),i.styleClass))},inputs:{showButtons:[2,"showButtons","showButtons",R],format:[2,"format","format",R],buttonLayout:"buttonLayout",inputId:"inputId",styleClass:"styleClass",placeholder:"placeholder",tabindex:[2,"tabindex","tabindex",Me],title:"title",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",ariaLabel:"ariaLabel",ariaRequired:[2,"ariaRequired","ariaRequired",R],autocomplete:"autocomplete",incrementButtonClass:"incrementButtonClass",decrementButtonClass:"decrementButtonClass",incrementButtonIcon:"incrementButtonIcon",decrementButtonIcon:"decrementButtonIcon",readonly:[2,"readonly","readonly",R],allowEmpty:[2,"allowEmpty","allowEmpty",R],locale:"locale",localeMatcher:"localeMatcher",mode:"mode",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:[2,"useGrouping","useGrouping",R],minFractionDigits:[2,"minFractionDigits","minFractionDigits",e=>Me(e,void 0)],maxFractionDigits:[2,"maxFractionDigits","maxFractionDigits",e=>Me(e,void 0)],prefix:"prefix",suffix:"suffix",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",showClear:[2,"showClear","showClear",R],autofocus:[2,"autofocus","autofocus",R]},outputs:{onInput:"onInput",onFocus:"onFocus",onBlur:"onBlur",onKeyDown:"onKeyDown",onClear:"onClear"},features:[xe([p$,ER,{provide:SR,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],decls:6,vars:36,consts:[["input",""],["pInputText","","role","spinbutton","inputmode","decimal",3,"input","keydown","keypress","paste","click","focus","blur","value","ngStyle","variant","invalid","pSize","pt","pAutoFocus","fluid"],[4,"ngIf"],[3,"pBind","class",4,"ngIf"],["type","button","tabindex","-1",3,"pBind","class","mousedown","mouseup","mouseleave","keydown","keyup",4,"ngIf"],["data-p-icon","times",3,"pBind","class","click",4,"ngIf"],[3,"pBind","class","click",4,"ngIf"],["data-p-icon","times",3,"click","pBind"],[3,"click","pBind"],[4,"ngTemplateOutlet"],[3,"pBind"],["type","button","tabindex","-1",3,"mousedown","mouseup","mouseleave","keydown","keyup","pBind"],[3,"pBind","ngClass",4,"ngIf"],[3,"pBind","ngClass"],["data-p-icon","angle-up",3,"pBind",4,"ngIf"],["data-p-icon","angle-up",3,"pBind"],["data-p-icon","angle-down",3,"pBind",4,"ngIf"],["data-p-icon","angle-down",3,"pBind"]],template:function(r,i){if(r&1){let o=se();E(0,"input",1,0),q("input",function(a){return S(o),I(i.onUserInput(a))})("keydown",function(a){return S(o),I(i.onInputKeyDown(a))})("keypress",function(a){return S(o),I(i.onInputKeyPress(a))})("paste",function(a){return S(o),I(i.onPaste(a))})("click",function(){return S(o),I(i.onInputClick())})("focus",function(a){return S(o),I(i.onInputFocus(a))})("blur",function(a){return S(o),I(i.onInputBlur(a))}),T(),C(2,jH,3,2,"ng-container",2)(3,ZH,7,17,"span",3)(4,r$,3,7,"button",4)(5,c$,3,7,"button",4)}r&2&&(k(i.cn(i.cx("pcInputText"),i.inputStyleClass)),h("value",i.formattedValue())("ngStyle",i.inputStyle)("variant",i.$variant())("invalid",i.invalid())("pSize",i.size())("pt",i.ptm("pcInputText"))("pAutoFocus",i.autofocus)("fluid",i.hasFluid),J("id",i.inputId)("aria-valuemin",i.min())("aria-valuemax",i.max())("aria-valuenow",i.value)("placeholder",i.placeholder)("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy)("title",i.title)("size",i.inputSize())("name",i.name())("autocomplete",i.autocomplete)("maxlength",i.maxlength())("minlength",i.minlength())("tabindex",i.tabindex)("aria-required",i.ariaRequired)("min",i.min())("max",i.max())("step",i.step()??1)("required",i.required()?"":void 0)("readonly",i.readonly?"":void 0)("disabled",i.$disabled()?"":void 0),g(2),h("ngIf",i.buttonLayout!="vertical"&&i.showClear&&i.value),g(),h("ngIf",i.showButtons&&i.buttonLayout==="stacked"),g(),h("ngIf",i.showButtons&&i.buttonLayout!=="stacked"),g(),h("ngIf",i.showButtons&&i.buttonLayout!=="stacked"))},dependencies:[Qe,ei,Ut,kt,tr,to,$i,ql,Zk,Qk,Te,Wt,te],encapsulation:2,changeDetection:0})}return t})(),IR=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({imports:[Zm,Te,Te]})}return t})();var DR=`
.p-paginator {
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
background: dt('paginator.background');
color: dt('paginator.color');
padding: dt('paginator.padding');
border-radius: dt('paginator.border.radius');
gap: dt('paginator.gap');
}
.p-paginator-content {
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
gap: dt('paginator.gap');
}
.p-paginator-content-start {
margin-inline-end: auto;
}
.p-paginator-content-end {
margin-inline-start: auto;
}
.p-paginator-page,
.p-paginator-next,
.p-paginator-last,
.p-paginator-first,
.p-paginator-prev {
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
line-height: 1;
user-select: none;
overflow: hidden;
position: relative;
background: dt('paginator.nav.button.background');
border: 0 none;
color: dt('paginator.nav.button.color');
min-width: dt('paginator.nav.button.width');
height: dt('paginator.nav.button.height');
transition:
background dt('paginator.transition.duration'),
color dt('paginator.transition.duration'),
outline-color dt('paginator.transition.duration'),
box-shadow dt('paginator.transition.duration');
border-radius: dt('paginator.nav.button.border.radius');
padding: 0;
margin: 0;
}
.p-paginator-page:focus-visible,
.p-paginator-next:focus-visible,
.p-paginator-last:focus-visible,
.p-paginator-first:focus-visible,
.p-paginator-prev:focus-visible {
box-shadow: dt('paginator.nav.button.focus.ring.shadow');
outline: dt('paginator.nav.button.focus.ring.width') dt('paginator.nav.button.focus.ring.style') dt('paginator.nav.button.focus.ring.color');
outline-offset: dt('paginator.nav.button.focus.ring.offset');
}
.p-paginator-page:not(.p-disabled):not(.p-paginator-page-selected):hover,
.p-paginator-first:not(.p-disabled):hover,
.p-paginator-prev:not(.p-disabled):hover,
.p-paginator-next:not(.p-disabled):hover,
.p-paginator-last:not(.p-disabled):hover {
background: dt('paginator.nav.button.hover.background');
color: dt('paginator.nav.button.hover.color');
}
.p-paginator-page.p-paginator-page-selected {
background: dt('paginator.nav.button.selected.background');
color: dt('paginator.nav.button.selected.color');
}
.p-paginator-current {
color: dt('paginator.current.page.report.color');
}
.p-paginator-pages {
display: flex;
align-items: center;
gap: dt('paginator.gap');
}
.p-paginator-jtp-input .p-inputtext {
max-width: dt('paginator.jump.to.page.input.max.width');
}
.p-paginator-first:dir(rtl),
.p-paginator-prev:dir(rtl),
.p-paginator-next:dir(rtl),
.p-paginator-last:dir(rtl) {
transform: rotate(180deg);
}
`;var f$=["dropdownicon"],h$=["firstpagelinkicon"],m$=["previouspagelinkicon"],g$=["lastpagelinkicon"],y$=["nextpagelinkicon"],Jm=t=>({$implicit:t}),b$=t=>({pageLink:t});function v$(t,n){t&1&&ne(0)}function _$(t,n){if(t&1&&(E(0,"div",10),C(1,v$,1,0,"ng-container",11),T()),t&2){let e=m();k(e.cx("contentStart")),h("pBind",e.ptm("contentStart")),g(),h("ngTemplateOutlet",e.templateLeft)("ngTemplateOutletContext",Ee(5,Jm,e.paginatorState))}}function w$(t,n){if(t&1&&(E(0,"span",10),ce(1),T()),t&2){let e=m();k(e.cx("current")),h("pBind",e.ptm("current")),g(),Ze(e.currentPageReport)}}function C$(t,n){if(t&1&&(G(),X(0,"svg",14)),t&2){let e=m(2);k(e.cx("firstIcon")),h("pBind",e.ptm("firstIcon"))}}function x$(t,n){}function T$(t,n){t&1&&C(0,x$,0,0,"ng-template")}function E$(t,n){if(t&1&&(E(0,"span"),C(1,T$,1,0,null,15),T()),t&2){let e=m(2);k(e.cx("firstIcon")),g(),h("ngTemplateOutlet",e.firstPageLinkIconTemplate||e._firstPageLinkIconTemplate)}}function S$(t,n){if(t&1){let e=se();E(0,"button",12),q("click",function(i){S(e);let o=m();return I(o.changePageToFirst(i))}),C(1,C$,1,3,"svg",13)(2,E$,2,3,"span",4),T()}if(t&2){let e=m();k(e.cx("first")),h("pBind",e.ptm("first")),J("aria-label",e.getAriaLabel("firstPageLabel")),g(),h("ngIf",!e.firstPageLinkIconTemplate&&!e._firstPageLinkIconTemplate),g(),h("ngIf",e.firstPageLinkIconTemplate||e._firstPageLinkIconTemplate)}}function I$(t,n){if(t&1&&(G(),X(0,"svg",16)),t&2){let e=m();k(e.cx("prevIcon")),h("pBind",e.ptm("prevIcon"))}}function D$(t,n){}function k$(t,n){t&1&&C(0,D$,0,0,"ng-template")}function M$(t,n){if(t&1&&(E(0,"span"),C(1,k$,1,0,null,15),T()),t&2){let e=m();k(e.cx("prevIcon")),g(),h("ngTemplateOutlet",e.previousPageLinkIconTemplate||e._previousPageLinkIconTemplate)}}function O$(t,n){if(t&1){let e=se();E(0,"button",12),q("click",function(i){let o=S(e).$implicit,s=m(2);return I(s.onPageLinkClick(i,o-1))}),ce(1),T()}if(t&2){let e=n.$implicit,r=m(2);k(r.cx("page",Ee(6,b$,e))),h("pBind",r.ptm("page")),J("aria-label",r.getPageAriaLabel(e))("aria-current",e-1==r.getPage()?"page":void 0),g(),$t(" ",r.getLocalization(e)," ")}}function R$(t,n){if(t&1&&(E(0,"span",10),C(1,O$,2,8,"button",17),T()),t&2){let e=m();k(e.cx("pages")),h("pBind",e.ptm("pages")),g(),h("ngForOf",e.pageLinks)}}function P$(t,n){if(t&1&&ce(0),t&2){let e=m(2);Ze(e.currentPageReport)}}function A$(t,n){t&1&&ne(0)}function N$(t,n){if(t&1&&C(0,A$,1,0,"ng-container",11),t&2){let e=n.$implicit,r=m(3);h("ngTemplateOutlet",r.jumpToPageItemTemplate)("ngTemplateOutletContext",Ee(2,Jm,e))}}function F$(t,n){t&1&&(ie(0),C(1,N$,1,4,"ng-template",21),oe())}function L$(t,n){t&1&&ne(0)}function B$(t,n){if(t&1&&C(0,L$,1,0,"ng-container",15),t&2){let e=m(3);h("ngTemplateOutlet",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function V$(t,n){t&1&&C(0,B$,1,1,"ng-template",22)}function j$(t,n){if(t&1){let e=se();E(0,"p-select",18),q("onChange",function(i){S(e);let o=m();return I(o.onPageDropdownChange(i))}),C(1,P$,1,1,"ng-template",19)(2,F$,2,0,"ng-container",20)(3,V$,1,0,null,20),T()}if(t&2){let e=m();h("options",e.pageItems)("ngModel",e.getPage())("disabled",e.empty())("styleClass",e.cx("pcJumpToPageDropdown"))("appendTo",e.dropdownAppendTo||e.$appendTo())("scrollHeight",e.dropdownScrollHeight)("pt",e.ptm("pcJumpToPageDropdown")),J("aria-label",e.getAriaLabel("jumpToPageDropdownLabel")),g(2),h("ngIf",e.jumpToPageItemTemplate),g(),h("ngIf",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function z$(t,n){if(t&1&&(G(),X(0,"svg",23)),t&2){let e=m();k(e.cx("nextIcon")),h("pBind",e.ptm("nextIcon"))}}function H$(t,n){}function $$(t,n){t&1&&C(0,H$,0,0,"ng-template")}function U$(t,n){if(t&1&&(E(0,"span"),C(1,$$,1,0,null,15),T()),t&2){let e=m();k(e.cx("nextIcon")),g(),h("ngTemplateOutlet",e.nextPageLinkIconTemplate||e._nextPageLinkIconTemplate)}}function W$(t,n){if(t&1&&(G(),X(0,"svg",25)),t&2){let e=m(2);k(e.cx("lastIcon")),h("pBind",e.ptm("lastIcon"))}}function G$(t,n){}function q$(t,n){t&1&&C(0,G$,0,0,"ng-template")}function Q$(t,n){if(t&1&&(E(0,"span"),C(1,q$,1,0,null,15),T()),t&2){let e=m(2);k(e.cx("lastIcon")),g(),h("ngTemplateOutlet",e.lastPageLinkIconTemplate||e._lastPageLinkIconTemplate)}}function K$(t,n){if(t&1){let e=se();E(0,"button",2),q("click",function(i){S(e);let o=m();return I(o.changePageToLast(i))}),C(1,W$,1,3,"svg",24)(2,Q$,2,3,"span",4),T()}if(t&2){let e=m();k(e.cx("last")),h("pBind",e.ptm("last"))("disabled",e.isLastPage()||e.empty()),J("aria-label",e.getAriaLabel("lastPageLabel")),g(),h("ngIf",!e.lastPageLinkIconTemplate&&!e._lastPageLinkIconTemplate),g(),h("ngIf",e.lastPageLinkIconTemplate||e._lastPageLinkIconTemplate)}}function Y$(t,n){if(t&1){let e=se();E(0,"p-inputnumber",26),q("ngModelChange",function(i){S(e);let o=m();return I(o.changePage(i-1))}),T()}if(t&2){let e=m();k(e.cx("pcJumpToPageInput")),h("pt",e.ptm("pcJumpToPageInput"))("ngModel",e.currentPage())("disabled",e.empty())}}function Z$(t,n){t&1&&ne(0)}function J$(t,n){if(t&1&&C(0,Z$,1,0,"ng-container",11),t&2){let e=n.$implicit,r=m(3);h("ngTemplateOutlet",r.dropdownItemTemplate)("ngTemplateOutletContext",Ee(2,Jm,e))}}function X$(t,n){t&1&&(ie(0),C(1,J$,1,4,"ng-template",21),oe())}function eU(t,n){t&1&&ne(0)}function tU(t,n){if(t&1&&C(0,eU,1,0,"ng-container",15),t&2){let e=m(3);h("ngTemplateOutlet",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function nU(t,n){t&1&&C(0,tU,1,1,"ng-template",22)}function rU(t,n){if(t&1){let e=se();E(0,"p-select",27),Rr("ngModelChange",function(i){S(e);let o=m();return Xr(o.rows,i)||(o.rows=i),I(i)}),q("onChange",function(i){S(e);let o=m();return I(o.onRppChange(i))}),C(1,X$,2,0,"ng-container",20)(2,nU,1,0,null,20),T()}if(t&2){let e=m();h("options",e.rowsPerPageItems),Or("ngModel",e.rows),h("styleClass",e.cx("pcRowPerPageDropdown"))("disabled",e.empty())("appendTo",e.dropdownAppendTo||e.$appendTo())("scrollHeight",e.dropdownScrollHeight)("ariaLabel",e.getAriaLabel("rowsPerPageLabel"))("pt",e.ptm("pcRowPerPageDropdown")),g(),h("ngIf",e.dropdownItemTemplate),g(),h("ngIf",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function iU(t,n){t&1&&ne(0)}function oU(t,n){if(t&1&&(E(0,"div",10),C(1,iU,1,0,"ng-container",11),T()),t&2){let e=m();k(e.cx("contentEnd")),h("pBind",e.ptm("contentEnd")),g(),h("ngTemplateOutlet",e.templateRight)("ngTemplateOutletContext",Ee(5,Jm,e.paginatorState))}}var sU={paginator:({instance:t})=>["p-paginator p-component"],content:"p-paginator-content",contentStart:"p-paginator-content-start",contentEnd:"p-paginator-content-end",first:({instance:t})=>["p-paginator-first",{"p-disabled":t.isFirstPage()||t.empty()}],firstIcon:"p-paginator-first-icon",prev:({instance:t})=>["p-paginator-prev",{"p-disabled":t.isFirstPage()||t.empty()}],prevIcon:"p-paginator-prev-icon",next:({instance:t})=>["p-paginator-next",{"p-disabled":t.isLastPage()||t.empty()}],nextIcon:"p-paginator-next-icon",last:({instance:t})=>["p-paginator-last",{"p-disabled":t.isLastPage()||t.empty()}],lastIcon:"p-paginator-last-icon",pages:"p-paginator-pages",page:({instance:t,pageLink:n})=>["p-paginator-page",{"p-paginator-page-selected":n-1==t.getPage()}],current:"p-paginator-current",pcRowPerPageDropdown:"p-paginator-rpp-dropdown",pcJumpToPageDropdown:"p-paginator-jtp-dropdown",pcJumpToPageInput:"p-paginator-jtp-input"},kR=(()=>{class t extends Oe{name="paginator";style=DR;classes=sU;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var MR=new H("PAGINATOR_INSTANCE"),Vu=(()=>{class t extends ut{bindDirectiveInstance=x(te,{self:!0});$pcPaginator=x(MR,{optional:!0,skipSelf:!0})??void 0;onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}pageLinkSize=5;styleClass;alwaysShow=!0;dropdownAppendTo;templateLeft;templateRight;dropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showFirstLastIcon=!0;totalRecords=0;rows=0;rowsPerPageOptions;showJumpToPageDropdown;showJumpToPageInput;jumpToPageItemTemplate;showPageLinks=!0;locale;dropdownItemTemplate;get first(){return this._first}set first(e){this._first=e}appendTo=ae(void 0);onPageChange=new z;dropdownIconTemplate;firstPageLinkIconTemplate;previousPageLinkIconTemplate;lastPageLinkIconTemplate;nextPageLinkIconTemplate;templates;_dropdownIconTemplate;_firstPageLinkIconTemplate;_previousPageLinkIconTemplate;_lastPageLinkIconTemplate;_nextPageLinkIconTemplate;pageLinks;pageItems;rowsPerPageItems;paginatorState;_first=0;_page=0;_componentStyle=x(kR);$appendTo=We(()=>this.appendTo()||this.config.overlayAppendTo());get display(){return this.alwaysShow||this.pageLinks&&this.pageLinks.length>1?null:"none"}constructor(){super()}onInit(){this.updatePaginatorState()}onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"dropdownicon":this._dropdownIconTemplate=e.template;break;case"firstpagelinkicon":this._firstPageLinkIconTemplate=e.template;break;case"previouspagelinkicon":this._previousPageLinkIconTemplate=e.template;break;case"lastpagelinkicon":this._lastPageLinkIconTemplate=e.template;break;case"nextpagelinkicon":this._nextPageLinkIconTemplate=e.template;break}})}getAriaLabel(e){return this.config.translation.aria?this.config.translation.aria[e]:void 0}getPageAriaLabel(e){return this.config.translation.aria?this.config.translation.aria.pageLabel?.replace(/{page}/g,`${e}`):void 0}getLocalization(e){let r=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),i=new Map(r.map((o,s)=>[s,o]));return e>9?String(e).split("").map(s=>i.get(Number(s))).join(""):i.get(e)}onChanges(e){e.totalRecords&&(this.updatePageLinks(),this.updatePaginatorState(),this.updateFirst(),this.updateRowsPerPageOptions()),e.first&&(this._first=e.first.currentValue,this.updatePageLinks(),this.updatePaginatorState()),e.rows&&(this.updatePageLinks(),this.updatePaginatorState()),e.rowsPerPageOptions&&this.updateRowsPerPageOptions(),e.pageLinkSize&&this.updatePageLinks()}updateRowsPerPageOptions(){if(this.rowsPerPageOptions){this.rowsPerPageItems=[];let e=null;for(let r of this.rowsPerPageOptions)typeof r=="object"&&r.showAll?e={label:r.showAll,value:this.totalRecords}:this.rowsPerPageItems.push({label:String(this.getLocalization(r)),value:r});e&&this.rowsPerPageItems.push(e)}}isFirstPage(){return this.getPage()===0}isLastPage(){return this.getPage()===this.getPageCount()-1}getPageCount(){return Math.ceil(this.totalRecords/this.rows)}calculatePageLinkBoundaries(){let e=this.getPageCount(),r=Math.min(this.pageLinkSize,e),i=Math.max(0,Math.ceil(this.getPage()-r/2)),o=Math.min(e-1,i+r-1);var s=this.pageLinkSize-(o-i+1);return i=Math.max(0,i-s),[i,o]}updatePageLinks(){this.pageLinks=[];let e=this.calculatePageLinkBoundaries(),r=e[0],i=e[1];for(let o=r;o<=i;o++)this.pageLinks.push(o+1);if(this.showJumpToPageDropdown){this.pageItems=[];for(let o=0;o<this.getPageCount();o++)this.pageItems.push({label:String(o+1),value:o})}}changePage(e){var r=this.getPageCount();if(e>=0&&e<r){this._first=this.rows*e;var i={page:e,first:this.first,rows:this.rows,pageCount:r};this.updatePageLinks(),this.onPageChange.emit(i),this.updatePaginatorState()}}updateFirst(){let e=this.getPage();e>0&&this.totalRecords&&this.first>=this.totalRecords&&Promise.resolve(null).then(()=>this.changePage(e-1))}getPage(){return Math.floor(this.first/this.rows)}changePageToFirst(e){this.isFirstPage()||this.changePage(0),e.preventDefault()}changePageToPrev(e){this.changePage(this.getPage()-1),e.preventDefault()}changePageToNext(e){this.changePage(this.getPage()+1),e.preventDefault()}changePageToLast(e){this.isLastPage()||this.changePage(this.getPageCount()-1),e.preventDefault()}onPageLinkClick(e,r){this.changePage(r),e.preventDefault()}onRppChange(e){this.changePage(this.getPage())}onPageDropdownChange(e){this.changePage(e.value)}updatePaginatorState(){this.paginatorState={page:this.getPage(),pageCount:this.getPageCount(),rows:this.rows,first:this.first,totalRecords:this.totalRecords}}empty(){return this.getPageCount()===0}currentPage(){return this.getPageCount()>0?this.getPage()+1:0}get currentPageReport(){return this.currentPageReportTemplate.replace("{currentPage}",String(this.currentPage())).replace("{totalPages}",String(this.getPageCount())).replace("{first}",String(this.totalRecords>0?this._first+1:0)).replace("{last}",String(Math.min(this._first+this.rows,this.totalRecords))).replace("{rows}",String(this.rows)).replace("{totalRecords}",String(this.totalRecords))}static \u0275fac=function(r){return new(r||t)};static \u0275cmp=$({type:t,selectors:[["p-paginator"]],contentQueries:function(r,i,o){if(r&1&&(V(o,f$,4),V(o,h$,4),V(o,m$,4),V(o,g$,4),V(o,y$,4),V(o,xt,4)),r&2){let s;M(s=O())&&(i.dropdownIconTemplate=s.first),M(s=O())&&(i.firstPageLinkIconTemplate=s.first),M(s=O())&&(i.previousPageLinkIconTemplate=s.first),M(s=O())&&(i.lastPageLinkIconTemplate=s.first),M(s=O())&&(i.nextPageLinkIconTemplate=s.first),M(s=O())&&(i.templates=s)}},hostVars:4,hostBindings:function(r,i){r&2&&(k(i.cn(i.cx("paginator"),i.styleClass)),er("display",i.display))},inputs:{pageLinkSize:[2,"pageLinkSize","pageLinkSize",Me],styleClass:"styleClass",alwaysShow:[2,"alwaysShow","alwaysShow",R],dropdownAppendTo:"dropdownAppendTo",templateLeft:"templateLeft",templateRight:"templateRight",dropdownScrollHeight:"dropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:[2,"showCurrentPageReport","showCurrentPageReport",R],showFirstLastIcon:[2,"showFirstLastIcon","showFirstLastIcon",R],totalRecords:[2,"totalRecords","totalRecords",Me],rows:[2,"rows","rows",Me],rowsPerPageOptions:"rowsPerPageOptions",showJumpToPageDropdown:[2,"showJumpToPageDropdown","showJumpToPageDropdown",R],showJumpToPageInput:[2,"showJumpToPageInput","showJumpToPageInput",R],jumpToPageItemTemplate:"jumpToPageItemTemplate",showPageLinks:[2,"showPageLinks","showPageLinks",R],locale:"locale",dropdownItemTemplate:"dropdownItemTemplate",first:"first",appendTo:[1,"appendTo"]},outputs:{onPageChange:"onPageChange"},features:[xe([kR,{provide:MR,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],decls:15,vars:23,consts:[[3,"pBind","class",4,"ngIf"],["type","button","pRipple","",3,"pBind","class","click",4,"ngIf"],["type","button","pRipple","",3,"click","pBind","disabled"],["data-p-icon","angle-left",3,"pBind","class",4,"ngIf"],[3,"class",4,"ngIf"],[3,"options","ngModel","disabled","styleClass","appendTo","scrollHeight","pt","onChange",4,"ngIf"],["data-p-icon","angle-right",3,"pBind","class",4,"ngIf"],["type","button","pRipple","",3,"pBind","disabled","class","click",4,"ngIf"],[3,"pt","ngModel","class","disabled","ngModelChange",4,"ngIf"],[3,"options","ngModel","styleClass","disabled","appendTo","scrollHeight","ariaLabel","pt","ngModelChange","onChange",4,"ngIf"],[3,"pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button","pRipple","",3,"click","pBind"],["data-p-icon","angle-double-left",3,"pBind","class",4,"ngIf"],["data-p-icon","angle-double-left",3,"pBind"],[4,"ngTemplateOutlet"],["data-p-icon","angle-left",3,"pBind"],["type","button","pRipple","",3,"pBind","class","click",4,"ngFor","ngForOf"],[3,"onChange","options","ngModel","disabled","styleClass","appendTo","scrollHeight","pt"],["pTemplate","selectedItem"],[4,"ngIf"],["pTemplate","item"],["pTemplate","dropdownicon"],["data-p-icon","angle-right",3,"pBind"],["data-p-icon","angle-double-right",3,"pBind","class",4,"ngIf"],["data-p-icon","angle-double-right",3,"pBind"],[3,"ngModelChange","pt","ngModel","disabled"],[3,"ngModelChange","onChange","options","ngModel","styleClass","disabled","appendTo","scrollHeight","ariaLabel","pt"]],template:function(r,i){r&1&&(C(0,_$,2,7,"div",0)(1,w$,2,4,"span",0)(2,S$,3,6,"button",1),E(3,"button",2),q("click",function(s){return i.changePageToPrev(s)}),C(4,I$,1,3,"svg",3)(5,M$,2,3,"span",4),T(),C(6,R$,2,4,"span",0)(7,j$,4,10,"p-select",5),E(8,"button",2),q("click",function(s){return i.changePageToNext(s)}),C(9,z$,1,3,"svg",6)(10,U$,2,3,"span",4),T(),C(11,K$,3,7,"button",7)(12,Y$,1,5,"p-inputnumber",8)(13,rU,3,10,"p-select",9)(14,oU,2,7,"div",0)),r&2&&(h("ngIf",i.templateLeft),g(),h("ngIf",i.showCurrentPageReport),g(),h("ngIf",i.showFirstLastIcon),g(),k(i.cx("prev")),h("pBind",i.ptm("prev"))("disabled",i.isFirstPage()||i.empty()),J("aria-label",i.getAriaLabel("prevPageLabel")),g(),h("ngIf",!i.previousPageLinkIconTemplate&&!i._previousPageLinkIconTemplate),g(),h("ngIf",i.previousPageLinkIconTemplate||i._previousPageLinkIconTemplate),g(),h("ngIf",i.showPageLinks),g(),h("ngIf",i.showJumpToPageDropdown),g(),k(i.cx("next")),h("pBind",i.ptm("next"))("disabled",i.isLastPage()||i.empty()),J("aria-label",i.getAriaLabel("nextPageLabel")),g(),h("ngIf",!i.nextPageLinkIconTemplate&&!i._nextPageLinkIconTemplate),g(),h("ngIf",i.nextPageLinkIconTemplate||i._nextPageLinkIconTemplate),g(),h("ngIf",i.showFirstLastIcon),g(),h("ngIf",i.showJumpToPageInput),g(),h("ngIf",i.rowsPerPageOptions),g(),h("ngIf",i.templateRight))},dependencies:[Qe,Ar,Ut,kt,Ym,Zm,Xi,_s,Da,Ui,Gk,qk,Kk,Yk,Te,xt,te],encapsulation:2,changeDetection:0})}return t})(),Xm=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({imports:[Vu,Te,Te]})}return t})();var RR=`
.p-dataview {
position: relative;
border-color: dt('dataview.border.color');
border-width: dt('dataview.border.width');
border-style: solid;
border-radius: dt('dataview.border.radius');
padding: dt('dataview.padding');
}
.p-dataview-header {
background: dt('dataview.header.background');
color: dt('dataview.header.color');
border-color: dt('dataview.header.border.color');
border-width: dt('dataview.header.border.width');
border-style: solid;
padding: dt('dataview.header.padding');
border-radius: dt('dataview.header.border.radius');
}
.p-dataview-content {
background: dt('dataview.content.background');
border-color: dt('dataview.content.border.color');
border-width: dt('dataview.content.border.width');
border-style: solid;
color: dt('dataview.content.color');
padding: dt('dataview.content.padding');
border-radius: dt('dataview.content.border.radius');
}
.p-dataview-footer {
background: dt('dataview.footer.background');
color: dt('dataview.footer.color');
border-color: dt('dataview.footer.border.color');
border-width: dt('dataview.footer.border.width');
border-style: solid;
padding: dt('dataview.footer.padding');
border-radius: dt('dataview.footer.border.radius');
}
.p-dataview-paginator-top {
border-width: dt('dataview.paginator.top.border.width');
border-color: dt('dataview.paginator.top.border.color');
border-style: solid;
}
.p-dataview-paginator-bottom {
border-width: dt('dataview.paginator.bottom.border.width');
border-color: dt('dataview.paginator.bottom.border.color');
border-style: solid;
}
.p-dataview-loading-overlay {
position: absolute;
display: flex;
align-items: center;
justify-content: center;
z-index: 2;
}
`;var aU=["list"],lU=["grid"],cU=["header"],dU=["emptymessage"],uU=["footer"],pU=["paginatorleft"],fU=["paginatorright"],hU=["paginatordropdownitem"],mU=["loadingicon"],gU=["listicon"],yU=["gridicon"],bU=[[["p-header"]],[["p-footer"]]],vU=["p-header","p-footer"],_U=()=>({position:"top"}),NR=t=>({$implicit:t}),wU=()=>({position:"bottom"});function CU(t,n){if(t&1&&X(0,"i"),t&2){let e=m(2);k(e.cn(e.cx("loadingIcon"),"pi-spin"+e.loadingIcon))}}function xU(t,n){}function TU(t,n){t&1&&C(0,xU,0,0,"ng-template")}function EU(t,n){if(t&1&&(ie(0),G(),X(1,"svg",5),C(2,TU,1,0,null,6),oe()),t&2){let e=m(2);g(),k(e.cx("loadingIcon")),h("pBind",e.ptm("loadingIcon"))("spin",!0),g(),h("ngTemplateOutlet",e.loadingicon)}}function SU(t,n){if(t&1&&(E(0,"div",3)(1,"div",3),rt(2,CU,1,2,"i",4)(3,EU,3,5,"ng-container"),T()()),t&2){let e=m();k(e.cx("loading")),h("pBind",e.ptm("loading")),g(),k(e.cx("loadingOverlay")),h("pBind",e.ptm("loadingOverlay")),g(),it(e.loadingIcon?2:3)}}function IU(t,n){t&1&&ne(0)}function DU(t,n){if(t&1&&(E(0,"div",3),Ot(1),C(2,IU,1,0,"ng-container",6),T()),t&2){let e=m();k(e.cx("header")),h("pBind",e.ptm("header")),g(2),h("ngTemplateOutlet",e.headerTemplate)}}function kU(t,n){if(t&1){let e=se();E(0,"p-paginator",7),q("onPageChange",function(i){S(e);let o=m();return I(o.paginate(i))}),T()}if(t&2){let e=m();h("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("appendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("templateLeft",e.paginatorleft)("templateRight",e.paginatorright)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatordropdownitem)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showPageLinks",e.showPageLinks)("styleClass",e.cn(e.cx("pcPaginator",Pi(18,_U)),e.paginatorStyleClass))("pt",e.ptm("pcPaginator"))}}function MU(t,n){t&1&&ne(0)}function OU(t,n){if(t&1&&(C(0,MU,1,0,"ng-container",8),Zf(1,"slice")),t&2){let e=m();h("ngTemplateOutlet",e.listTemplate)("ngTemplateOutletContext",Ee(6,NR,e.paginator?Jf(1,2,e.filteredValue||e.value,e.lazy?0:e.first,(e.lazy?0:e.first)+e.rows):e.filteredValue||e.value))}}function RU(t,n){t&1&&ne(0)}function PU(t,n){if(t&1&&(C(0,RU,1,0,"ng-container",8),Zf(1,"slice")),t&2){let e=m();h("ngTemplateOutlet",e.gridTemplate)("ngTemplateOutletContext",Ee(6,NR,e.paginator?Jf(1,2,e.filteredValue||e.value,e.lazy?0:e.first,(e.lazy?0:e.first)+e.rows):e.filteredValue||e.value))}}function AU(t,n){if(t&1&&(ie(0),ce(1),oe()),t&2){let e=m(2);g(),$t(" ",e.emptyMessageLabel," ")}}function NU(t,n){t&1&&ne(0,null,0)}function FU(t,n){if(t&1&&(E(0,"div",3),C(1,AU,2,1,"ng-container",9)(2,NU,2,0,"ng-container",6),T()),t&2){let e=m();k(e.cx("emptyMessage")),h("pBind",e.ptm("emptyMessage")),g(),h("ngIf",!e.emptymessageTemplate)("ngIfElse",e.empty),g(),h("ngTemplateOutlet",e.emptymessageTemplate)}}function LU(t,n){if(t&1){let e=se();E(0,"p-paginator",7),q("onPageChange",function(i){S(e);let o=m();return I(o.paginate(i))}),T()}if(t&2){let e=m();h("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("appendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("templateLeft",e.paginatorleft)("templateRight",e.paginatorright)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatordropdownitem)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showPageLinks",e.showPageLinks)("styleClass",e.cn(e.cx("pcPaginator",Pi(18,wU)),e.paginatorStyleClass))("pt",e.ptm("pcPaginator"))}}function BU(t,n){t&1&&ne(0)}function VU(t,n){if(t&1&&(E(0,"div",3),Ot(1,1),C(2,BU,1,0,"ng-container",6),T()),t&2){let e=m();k(e.cx("footer")),h("pBind",e.ptm("footer")),g(2),h("ngTemplateOutlet",e.footerTemplate)}}var jU={root:({instance:t})=>["p-dataview p-component",{"p-dataview-list":t.layout==="list","p-dataview-grid":t.layout==="grid"}],header:"p-dataview-header",loading:"p-dataview-loading",loadingOverlay:"p-dataview-loading-overlay p-overlay-mask",loadingIcon:"p-dataview-loading-icon",pcPaginator:({position:t})=>"p-dataview-paginator-"+t,content:"p-dataview-content",emptyMessage:"p-dataview-empty-message",footer:"p-dataview-footer"},PR=(()=>{class t extends Oe{name="dataview";style=RR;classes=jU;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var AR=new H("DATAVIEW_INSTANCE"),FR=(()=>{class t extends ut{bindDirectiveInstance=x(te,{self:!0});$pcDataView=x(AR,{optional:!0,skipSelf:!0})??void 0;onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}paginator;rows;totalRecords;pageLinks=5;rowsPerPageOptions;paginatorPosition="bottom";paginatorStyleClass;alwaysShowPaginator=!0;paginatorDropdownAppendTo;paginatorDropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showJumpToPageDropdown;showFirstLastIcon=!0;showPageLinks=!0;lazy;lazyLoadOnInit=!0;emptyMessage="";styleClass;gridStyleClass="";trackBy=(e,r)=>r;filterBy;filterLocale;loading;loadingIcon;first=0;sortField;sortOrder;value;layout="list";onLazyLoad=new z;onPage=new z;onSort=new z;onChangeLayout=new z;listTemplate;gridTemplate;headerTemplate;emptymessageTemplate;footerTemplate;paginatorleft;paginatorright;paginatordropdownitem;loadingicon;listicon;gridicon;header;footer;_value;filteredValue;filterValue;initialized;_layout="list";translationSubscription;_componentStyle=x(PR);get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(xn.EMPTY_MESSAGE)}filterService=x(jl);onInit(){this.lazy&&this.lazyLoadOnInit&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()}),this.initialized=!0}onAfterViewInit(){}onChanges(e){e.layout&&!e.layout.firstChange&&this.onChangeLayout.emit({layout:e.layout.currentValue}),e.value&&(this._value=e.value.currentValue,this.updateTotalRecords(),!this.lazy&&this.hasFilter()&&this.filter(this.filterValue)),(e.sortField||e.sortOrder)&&(!this.lazy||this.initialized)&&this.sort()}updateTotalRecords(){this.totalRecords=this.lazy?this.totalRecords:this._value?this._value.length:0}paginate(e){this.first=e.first,this.rows=e.rows,this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.onPage.emit({first:this.first,rows:this.rows})}sort(){this.first=0,this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.value.sort((e,r)=>{let i=On(e,this.sortField),o=On(r,this.sortField),s;return i==null&&o!=null?s=-1:i!=null&&o==null?s=1:i==null&&o==null?s=0:typeof i=="string"&&typeof o=="string"?s=i.localeCompare(o):s=i<o?-1:i>o?1:0,this.sortOrder*s}),this.hasFilter()&&this.filter(this.filterValue)),this.onSort.emit({sortField:this.sortField,sortOrder:this.sortOrder})}isEmpty(){let e=this.filteredValue||this.value;return e==null||e.length==0}createLazyLoadMetadata(){return{first:this.first,rows:this.rows,sortField:this.sortField,sortOrder:this.sortOrder}}getBlockableElement(){return this.el.nativeElement.children[0]}filter(e,r="contains"){if(this.filterValue=e,this.value&&this.value.length){let i=this.filterBy.split(",");this.filteredValue=this.filterService.filter(this.value,i,e,r,this.filterLocale),this.filteredValue.length===this.value.length&&(this.filteredValue=null),this.paginator&&(this.first=0,this.totalRecords=this.filteredValue?this.filteredValue.length:this.value?this.value.length:0),this.cd.markForCheck()}}hasFilter(){return this.filterValue&&this.filterValue.trim().length>0}onDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["p-dataView"],["p-dataview"],["p-data-view"]],contentQueries:function(r,i,o){if(r&1&&(V(o,aU,5),V(o,lU,5),V(o,cU,5),V(o,dU,5),V(o,uU,5),V(o,pU,5),V(o,fU,5),V(o,hU,5),V(o,mU,5),V(o,gU,5),V(o,yU,5),V(o,xk,5),V(o,Tk,5)),r&2){let s;M(s=O())&&(i.listTemplate=s.first),M(s=O())&&(i.gridTemplate=s.first),M(s=O())&&(i.headerTemplate=s.first),M(s=O())&&(i.emptymessageTemplate=s.first),M(s=O())&&(i.footerTemplate=s.first),M(s=O())&&(i.paginatorleft=s.first),M(s=O())&&(i.paginatorright=s.first),M(s=O())&&(i.paginatordropdownitem=s.first),M(s=O())&&(i.loadingicon=s.first),M(s=O())&&(i.listicon=s.first),M(s=O())&&(i.gridicon=s.first),M(s=O())&&(i.header=s.first),M(s=O())&&(i.footer=s.first)}},hostVars:2,hostBindings:function(r,i){r&2&&k(i.cn(i.cx("root"),i.styleClass))},inputs:{paginator:[2,"paginator","paginator",R],rows:[2,"rows","rows",Me],totalRecords:[2,"totalRecords","totalRecords",Me],pageLinks:[2,"pageLinks","pageLinks",Me],rowsPerPageOptions:"rowsPerPageOptions",paginatorPosition:"paginatorPosition",paginatorStyleClass:"paginatorStyleClass",alwaysShowPaginator:[2,"alwaysShowPaginator","alwaysShowPaginator",R],paginatorDropdownAppendTo:"paginatorDropdownAppendTo",paginatorDropdownScrollHeight:"paginatorDropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:[2,"showCurrentPageReport","showCurrentPageReport",R],showJumpToPageDropdown:[2,"showJumpToPageDropdown","showJumpToPageDropdown",R],showFirstLastIcon:[2,"showFirstLastIcon","showFirstLastIcon",R],showPageLinks:[2,"showPageLinks","showPageLinks",R],lazy:[2,"lazy","lazy",R],lazyLoadOnInit:[2,"lazyLoadOnInit","lazyLoadOnInit",R],emptyMessage:"emptyMessage",styleClass:"styleClass",gridStyleClass:"gridStyleClass",trackBy:"trackBy",filterBy:"filterBy",filterLocale:"filterLocale",loading:[2,"loading","loading",R],loadingIcon:"loadingIcon",first:[2,"first","first",Me],sortField:"sortField",sortOrder:[2,"sortOrder","sortOrder",Me],value:"value",layout:"layout"},outputs:{onLazyLoad:"onLazyLoad",onPage:"onPage",onSort:"onSort",onChangeLayout:"onChangeLayout"},features:[xe([PR,{provide:AR,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],ngContentSelectors:vU,decls:9,vars:11,consts:[["empty",""],[3,"pBind","class"],[3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","appendTo","dropdownScrollHeight","templateLeft","templateRight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","styleClass","pt"],[3,"pBind"],[3,"class"],["data-p-icon","spinner",3,"pBind","spin"],[4,"ngTemplateOutlet"],[3,"onPageChange","rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","appendTo","dropdownScrollHeight","templateLeft","templateRight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","styleClass","pt"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf","ngIfElse"]],template:function(r,i){r&1&&(zt(bU),rt(0,SU,4,7,"div",1),rt(1,DU,3,4,"div",1),rt(2,kU,1,19,"p-paginator",2),E(3,"div",3),rt(4,OU,2,8,"ng-container"),rt(5,PU,2,8,"ng-container"),rt(6,FU,3,6,"div",1),T(),rt(7,LU,1,19,"p-paginator",2),rt(8,VU,3,4,"div",1)),r&2&&(it(i.loading?0:-1),g(),it(i.header||i.headerTemplate?1:-1),g(),it(i.paginator&&(i.paginatorPosition==="top"||i.paginatorPosition=="both")?2:-1),g(),k(i.cx("content")),h("pBind",i.ptm("content")),g(),it(i.layout==="list"?4:-1),g(),it(i.layout==="grid"?5:-1),g(),it(i.isEmpty()&&!i.loading?6:-1),g(),it(i.paginator&&(i.paginatorPosition==="bottom"||i.paginatorPosition=="both")?7:-1),g(),it(i.footer||i.footerTemplate?8:-1))},dependencies:[Qe,Ut,kt,Xm,Vu,To,Te,te,Zb],encapsulation:2,changeDetection:0})}return t})();var LR=Zi`
query GetProductsForList($input: ProductSearchInput) {
getProducts(input: $input) {
isLastPage
totalItems
items {
id
...BaseModel
identifier
description
primaryProductGroup {
...BaseModel
identifier
description
}
featuredAsset {
...BaseModel
source
preview
name
displayName
height
width
}
}
}
}
${hc}
`;var BR=`
.p-togglebutton {
display: inline-flex;
cursor: pointer;
user-select: none;
overflow: hidden;
position: relative;
color: dt('togglebutton.color');
background: dt('togglebutton.background');
border: 1px solid dt('togglebutton.border.color');
padding: dt('togglebutton.padding');
font-size: 1rem;
font-family: inherit;
font-feature-settings: inherit;
transition:
background dt('togglebutton.transition.duration'),
color dt('togglebutton.transition.duration'),
border-color dt('togglebutton.transition.duration'),
outline-color dt('togglebutton.transition.duration'),
box-shadow dt('togglebutton.transition.duration');
border-radius: dt('togglebutton.border.radius');
outline-color: transparent;
font-weight: dt('togglebutton.font.weight');
}
.p-togglebutton-content {
display: inline-flex;
flex: 1 1 auto;
align-items: center;
justify-content: center;
gap: dt('togglebutton.gap');
padding: dt('togglebutton.content.padding');
background: transparent;
border-radius: dt('togglebutton.content.border.radius');
transition:
background dt('togglebutton.transition.duration'),
color dt('togglebutton.transition.duration'),
border-color dt('togglebutton.transition.duration'),
outline-color dt('togglebutton.transition.duration'),
box-shadow dt('togglebutton.transition.duration');
}
.p-togglebutton:not(:disabled):not(.p-togglebutton-checked):hover {
background: dt('togglebutton.hover.background');
color: dt('togglebutton.hover.color');
}
.p-togglebutton.p-togglebutton-checked {
background: dt('togglebutton.checked.background');
border-color: dt('togglebutton.checked.border.color');
color: dt('togglebutton.checked.color');
}
.p-togglebutton-checked .p-togglebutton-content {
background: dt('togglebutton.content.checked.background');
box-shadow: dt('togglebutton.content.checked.shadow');
}
.p-togglebutton:focus-visible {
box-shadow: dt('togglebutton.focus.ring.shadow');
outline: dt('togglebutton.focus.ring.width') dt('togglebutton.focus.ring.style') dt('togglebutton.focus.ring.color');
outline-offset: dt('togglebutton.focus.ring.offset');
}
.p-togglebutton.p-invalid {
border-color: dt('togglebutton.invalid.border.color');
}
.p-togglebutton:disabled {
opacity: 1;
cursor: default;
background: dt('togglebutton.disabled.background');
border-color: dt('togglebutton.disabled.border.color');
color: dt('togglebutton.disabled.color');
}
.p-togglebutton-label,
.p-togglebutton-icon {
position: relative;
transition: none;
}
.p-togglebutton-icon {
color: dt('togglebutton.icon.color');
}
.p-togglebutton:not(:disabled):not(.p-togglebutton-checked):hover .p-togglebutton-icon {
color: dt('togglebutton.icon.hover.color');
}
.p-togglebutton.p-togglebutton-checked .p-togglebutton-icon {
color: dt('togglebutton.icon.checked.color');
}
.p-togglebutton:disabled .p-togglebutton-icon {
color: dt('togglebutton.icon.disabled.color');
}
.p-togglebutton-sm {
padding: dt('togglebutton.sm.padding');
font-size: dt('togglebutton.sm.font.size');
}
.p-togglebutton-sm .p-togglebutton-content {
padding: dt('togglebutton.content.sm.padding');
}
.p-togglebutton-lg {
padding: dt('togglebutton.lg.padding');
font-size: dt('togglebutton.lg.font.size');
}
.p-togglebutton-lg .p-togglebutton-content {
padding: dt('togglebutton.content.lg.padding');
}
.p-togglebutton-fluid {
width: 100%;
}
`;var zU=["icon"],HU=["content"],zR=t=>({$implicit:t});function $U(t,n){t&1&&ne(0)}function UU(t,n){if(t&1&&X(0,"span",0),t&2){let e=m(3);k(e.cn(e.cx("icon"),e.checked?e.onIcon:e.offIcon,e.iconPos==="left"?e.cx("iconLeft"):e.cx("iconRight"))),h("pBind",e.ptm("icon"))}}function WU(t,n){if(t&1&&rt(0,UU,1,3,"span",2),t&2){let e=m(2);it(e.onIcon||e.offIcon?0:-1)}}function GU(t,n){t&1&&ne(0)}function qU(t,n){if(t&1&&C(0,GU,1,0,"ng-container",1),t&2){let e=m(2);h("ngTemplateOutlet",e.iconTemplate||e._iconTemplate)("ngTemplateOutletContext",Ee(2,zR,e.checked))}}function QU(t,n){if(t&1&&(rt(0,WU,1,1)(1,qU,1,4,"ng-container"),E(2,"span",0),ce(3),T()),t&2){let e=m();it(e.iconTemplate?1:0),g(2),k(e.cx("label")),h("pBind",e.ptm("label")),g(),Ze(e.checked?e.hasOnLabel?e.onLabel:"\xA0":e.hasOffLabel?e.offLabel:"\xA0")}}var KU=`
${BR}
/* For PrimeNG (iconPos) */
.p-togglebutton-icon-right {
order: 1;
}
.p-togglebutton.ng-invalid.ng-dirty {
border-color: dt('togglebutton.invalid.border.color');
}
`,YU={root:({instance:t})=>["p-togglebutton p-component",{"p-togglebutton-checked":t.checked,"p-invalid":t.invalid(),"p-disabled":t.$disabled(),"p-togglebutton-sm p-inputfield-sm":t.size==="small","p-togglebutton-lg p-inputfield-lg":t.size==="large","p-togglebutton-fluid":t.fluid()}],content:"p-togglebutton-content",icon:"p-togglebutton-icon",iconLeft:"p-togglebutton-icon-left",iconRight:"p-togglebutton-icon-right",label:"p-togglebutton-label"},VR=(()=>{class t extends Oe{name="togglebutton";style=KU;classes=YU;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var jR=new H("TOGGLEBUTTON_INSTANCE"),ZU={provide:Nn,useExisting:Ht(()=>Iw),multi:!0},Iw=(()=>{class t extends eo{$pcToggleButton=x(jR,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=x(te,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}onKeyDown(e){switch(e.code){case"Enter":this.toggle(e),e.preventDefault();break;case"Space":this.toggle(e),e.preventDefault();break}}toggle(e){!this.$disabled()&&!(this.allowEmpty===!1&&this.checked)&&(this.checked=!this.checked,this.writeModelValue(this.checked),this.onModelChange(this.checked),this.onModelTouched(),this.onChange.emit({originalEvent:e,checked:this.checked}),this.cd.markForCheck())}onLabel="Yes";offLabel="No";onIcon;offIcon;ariaLabel;ariaLabelledBy;styleClass;inputId;tabindex=0;iconPos="left";autofocus;size;allowEmpty;fluid=ae(void 0,{transform:R});onChange=new z;iconTemplate;contentTemplate;templates;checked=!1;onInit(){(this.checked===null||this.checked===void 0)&&(this.checked=!1)}_componentStyle=x(VR);onBlur(){this.onModelTouched()}get hasOnLabel(){return this.onLabel&&this.onLabel.length>0}get hasOffLabel(){return this.offLabel&&this.offLabel.length>0}get active(){return this.checked===!0}_iconTemplate;_contentTemplate;onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"icon":this._iconTemplate=e.template;break;case"content":this._contentTemplate=e.template;break;default:this._contentTemplate=e.template;break}})}writeControlValue(e,r){this.checked=e,r(e),this.cd.markForCheck()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["p-toggleButton"],["p-togglebutton"],["p-toggle-button"]],contentQueries:function(r,i,o){if(r&1&&(V(o,zU,4),V(o,HU,4),V(o,xt,4)),r&2){let s;M(s=O())&&(i.iconTemplate=s.first),M(s=O())&&(i.contentTemplate=s.first),M(s=O())&&(i.templates=s)}},hostVars:8,hostBindings:function(r,i){r&1&&q("keydown",function(s){return i.onKeyDown(s)})("click",function(s){return i.toggle(s)}),r&2&&(J("aria-labelledby",i.ariaLabelledBy)("aria-label",i.ariaLabel)("aria-pressed",i.checked?"true":"false")("role","button")("tabindex",i.tabindex!==void 0?i.tabindex:i.$disabled()?-1:0)("data-pc-name","togglebutton"),k(i.cn(i.cx("root"),i.styleClass)))},inputs:{onLabel:"onLabel",offLabel:"offLabel",onIcon:"onIcon",offIcon:"offIcon",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",styleClass:"styleClass",inputId:"inputId",tabindex:[2,"tabindex","tabindex",Me],iconPos:"iconPos",autofocus:[2,"autofocus","autofocus",R],size:"size",allowEmpty:"allowEmpty",fluid:[1,"fluid"]},outputs:{onChange:"onChange"},features:[xe([ZU,VR,{provide:jR,useExisting:t},{provide:Ke,useExisting:t}]),et([Ui,te]),j],decls:3,vars:8,consts:[[3,"pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"class","pBind"]],template:function(r,i){r&1&&(E(0,"span",0),C(1,$U,1,0,"ng-container",1),rt(2,QU,4,5),T()),r&2&&(k(i.cx("content")),h("pBind",i.ptm("content")),g(),h("ngTemplateOutlet",i.contentTemplate||i._contentTemplate)("ngTemplateOutletContext",Ee(6,zR,i.checked)),g(),it(i.contentTemplate?-1:2))},dependencies:[Qe,kt,Te,Wt,te],encapsulation:2,changeDetection:0})}return t})();var HR=`
.p-selectbutton {
display: inline-flex;
user-select: none;
vertical-align: bottom;
outline-color: transparent;
border-radius: dt('selectbutton.border.radius');
}
.p-selectbutton .p-togglebutton {
border-radius: 0;
border-width: 1px 1px 1px 0;
}
.p-selectbutton .p-togglebutton:focus-visible {
position: relative;
z-index: 1;
}
.p-selectbutton .p-togglebutton:first-child {
border-inline-start-width: 1px;
border-start-start-radius: dt('selectbutton.border.radius');
border-end-start-radius: dt('selectbutton.border.radius');
}
.p-selectbutton .p-togglebutton:last-child {
border-start-end-radius: dt('selectbutton.border.radius');
border-end-end-radius: dt('selectbutton.border.radius');
}
.p-selectbutton.p-invalid {
outline: 1px solid dt('selectbutton.invalid.border.color');
outline-offset: 0;
}
.p-selectbutton-fluid {
width: 100%;
}
.p-selectbutton-fluid .p-togglebutton {
flex: 1 1 0;
}
`;var JU=["item"],XU=(t,n)=>({$implicit:t,index:n});function eW(t,n){return this.getOptionLabel(n)}function tW(t,n){t&1&&ne(0)}function nW(t,n){if(t&1&&C(0,tW,1,0,"ng-container",3),t&2){let e=m(2),r=e.$implicit,i=e.$index,o=m();h("ngTemplateOutlet",o.itemTemplate||o._itemTemplate)("ngTemplateOutletContext",Dt(2,XU,r,i))}}function rW(t,n){t&1&&C(0,nW,1,5,"ng-template",null,0,at)}function iW(t,n){if(t&1){let e=se();E(0,"p-togglebutton",2),q("onChange",function(i){let o=S(e),s=o.$implicit,a=o.$index,l=m();return I(l.onOptionSelect(i,s,a))}),rt(1,rW,2,0),T()}if(t&2){let e=n.$implicit,r=m();h("autofocus",r.autofocus)("styleClass",r.styleClass)("ngModel",r.isSelected(e))("onLabel",r.getOptionLabel(e))("offLabel",r.getOptionLabel(e))("disabled",r.$disabled()||r.isOptionDisabled(e))("allowEmpty",r.getAllowEmpty())("size",r.size())("fluid",r.fluid())("pt",r.ptm("pcToggleButton")),g(),it(r.itemTemplate||r._itemTemplate?1:-1)}}var oW=`
${HR}
/* For PrimeNG */
.p-selectbutton.ng-invalid.ng-dirty {
outline: 1px solid dt('selectbutton.invalid.border.color');
outline-offset: 0;
}
`,sW={root:({instance:t})=>["p-selectbutton p-component",{"p-invalid":t.invalid(),"p-selectbutton-fluid":t.fluid()}]},$R=(()=>{class t extends Oe{name="selectbutton";style=oW;classes=sW;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var UR=new H("SELECTBUTTON_INSTANCE"),aW={provide:Nn,useExisting:Ht(()=>eg),multi:!0},eg=(()=>{class t extends eo{options;optionLabel;optionValue;optionDisabled;get unselectable(){return this._unselectable}_unselectable=!1;set unselectable(e){this._unselectable=e,this.allowEmpty=!e}tabindex=0;multiple;allowEmpty=!0;styleClass;ariaLabelledBy;dataKey;autofocus;size=ae();fluid=ae(void 0,{transform:R});onOptionClick=new z;onChange=new z;itemTemplate;_itemTemplate;get equalityKey(){return this.optionValue?null:this.dataKey}value;focusedIndex=0;_componentStyle=x($R);$pcSelectButton=x(UR,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=x(te,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}getAllowEmpty(){return this.multiple?this.allowEmpty||this.value?.length!==1:this.allowEmpty}getOptionLabel(e){return this.optionLabel?On(e,this.optionLabel):e.label!=null?e.label:e}getOptionValue(e){return this.optionValue?On(e,this.optionValue):this.optionLabel||e.value===void 0?e:e.value}isOptionDisabled(e){return this.optionDisabled?On(e,this.optionDisabled):e.disabled!==void 0?e.disabled:!1}onOptionSelect(e,r,i){if(this.$disabled()||this.isOptionDisabled(r))return;let o=this.isSelected(r);if(o&&this.unselectable)return;let s=this.getOptionValue(r),a;if(this.multiple)o?a=this.value.filter(l=>!nr(l,s,this.equalityKey||void 0)):a=this.value?[...this.value,s]:[s];else{if(o&&!this.allowEmpty)return;a=o?null:s}this.focusedIndex=i,this.value=a,this.writeModelValue(this.value),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}),this.onOptionClick.emit({originalEvent:e,option:r,index:i})}changeTabIndexes(e,r){let i,o;for(let s=0;s<=this.el.nativeElement.children.length-1;s++)this.el.nativeElement.children[s].getAttribute("tabindex")==="0"&&(i={elem:this.el.nativeElement.children[s],index:s});r==="prev"?i.index===0?o=this.el.nativeElement.children.length-1:o=i.index-1:i.index===this.el.nativeElement.children.length-1?o=0:o=i.index+1,this.focusedIndex=o,this.el.nativeElement.children[o].focus()}onFocus(e,r){this.focusedIndex=r}onBlur(){this.onModelTouched()}removeOption(e){this.value=this.value.filter(r=>!nr(r,this.getOptionValue(e),this.dataKey))}isSelected(e){let r=!1,i=this.getOptionValue(e);if(this.multiple){if(this.value&&Array.isArray(this.value)){for(let o of this.value)if(nr(o,i,this.dataKey)){r=!0;break}}}else r=nr(this.getOptionValue(e),this.value,this.equalityKey||void 0);return r}templates;onAfterContentInit(){this.templates.forEach(e=>{e.getType()==="item"&&(this._itemTemplate=e.template)})}writeControlValue(e,r){this.value=e,r(this.value),this.cd.markForCheck()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["p-selectButton"],["p-selectbutton"],["p-select-button"]],contentQueries:function(r,i,o){if(r&1&&(V(o,JU,4),V(o,xt,4)),r&2){let s;M(s=O())&&(i.itemTemplate=s.first),M(s=O())&&(i.templates=s)}},hostVars:4,hostBindings:function(r,i){r&2&&(J("role","group")("aria-labelledby",i.ariaLabelledBy),k(i.cx("root")))},inputs:{options:"options",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",unselectable:[2,"unselectable","unselectable",R],tabindex:[2,"tabindex","tabindex",Me],multiple:[2,"multiple","multiple",R],allowEmpty:[2,"allowEmpty","allowEmpty",R],styleClass:"styleClass",ariaLabelledBy:"ariaLabelledBy",dataKey:"dataKey",autofocus:[2,"autofocus","autofocus",R],size:[1,"size"],fluid:[1,"fluid"]},outputs:{onOptionClick:"onOptionClick",onChange:"onChange"},features:[xe([aW,$R,{provide:UR,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],decls:2,vars:0,consts:[["content",""],[3,"autofocus","styleClass","ngModel","onLabel","offLabel","disabled","allowEmpty","size","fluid","pt"],[3,"onChange","autofocus","styleClass","ngModel","onLabel","offLabel","disabled","allowEmpty","size","fluid","pt"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,i){r&1&&es(0,iW,2,11,"p-togglebutton",1,eW,!0),r&2&&ts(i.options)},dependencies:[Iw,Xi,_s,Da,Qe,kt,Te,Wt],encapsulation:2,changeDetection:0})}return t})(),WR=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({imports:[eg,Te,Te]})}return t})();function wc(t){return`${Gt.serverUrl}${t}`}var lW=["dt2"],cW=(t,n)=>({"fa-bars":t,"fa-table":n});function dW(t,n){if(t&1){let e=se();E(0,"p-inputicon",17),q("click",function(){S(e),m();let i=pn(6),o=m();return o.searchTrigger.next(""),o.filterValue.set(""),I(i.focus())}),T()}}function uW(t,n){if(t&1&&X(0,"i",18),t&2){let e=n.$implicit;h("ngClass",Dt(1,cW,e==="list",e==="grid"))}}function pW(t,n){if(t&1){let e=se();E(0,"div",9)(1,"div",10)(2,"p-iconfield",11)(3,"p-iconfield",12),X(4,"p-inputicon",13),E(5,"input",14,5),Rr("ngModelChange",function(i){S(e);let o=m();return Xr(o.filterValue,i)||(o.filterValue=i),I(i)}),q("input",function(i){S(e);let o=m();return I(o.searchTrigger.next(i.target.value))}),T()(),rt(7,dW,1,0,"p-inputicon",15),T()(),E(8,"p-selectbutton",16),Rr("ngModelChange",function(i){S(e);let o=m();return Xr(o.layout,i)||(o.layout=i),I(i)}),q("ngModelChange",function(i){S(e);let o=m();return I(o.onLayoutChange(i))}),C(9,uW,1,4,"ng-template",null,6,at),T()()}if(t&2){let e=m();g(5),Or("ngModel",e.filterValue),g(2),it(e.filterValue()?7:-1),g(),Or("ngModel",e.layout),h("options",e.layoutOptions)("allowEmpty",!1)}}function fW(t,n){if(t&1&&X(0,"img",22),t&2){let e=m().$implicit,r=m(2);h("src",r.getPhxUrl(e.featuredAsset==null?null:e.featuredAsset.source),Js)("alt",e.featuredAsset==null?null:e.featuredAsset.name)}}function hW(t,n){if(t&1){let e=se();E(0,"div",20)(1,"div",21),rt(2,fW,1,2,"img",22),E(3,"div",23)(4,"div")(5,"h3",24),ce(6),T(),E(7,"p",25),ce(8),T()(),E(9,"p-button",26),q("click",function(){let i=S(e).$implicit,o=m(2);return I(o.openProduct(i))}),T()()()()}if(t&2){let e=n.$implicit;g(2),it(e.featuredAsset!=null&&e.featuredAsset.source?2:-1),g(4),Ze(e.identifier),g(2),Ze(e.description)}}function mW(t,n){if(t&1&&(E(0,"div",19),es(1,hW,10,3,"div",20,qf),T()),t&2){let e=n.$implicit;g(),ts(e)}}function gW(t,n){if(t&1&&X(0,"img",28),t&2){let e=m().$implicit,r=m(2);h("src",r.getPhxUrl(e.featuredAsset==null?null:e.featuredAsset.source),Js)("alt",e.featuredAsset==null?null:e.featuredAsset.name)}}function yW(t,n){if(t&1){let e=se();E(0,"div",20),rt(1,gW,1,2,"img",28),E(2,"div",29)(3,"div")(4,"h3",24),ce(5),T(),E(6,"p",25),ce(7),T()(),E(8,"p-button",30),q("click",function(){let i=S(e).$implicit,o=m(2);return I(o.openProduct(i))}),T()()()}if(t&2){let e=n.$implicit;g(),it(e.featuredAsset!=null&&e.featuredAsset.source?1:-1),g(4),Ze(e.identifier),g(2),Ze(e.description)}}function bW(t,n){if(t&1&&(E(0,"div",27),es(1,yW,9,3,"div",20,qf),T()),t&2){let e=n.$implicit;g(),ts(e)}}function vW(t,n){t&1&&(E(0,"div",31),ce(1,"No results found"),T())}function _W(t,n){t&1&&(E(0,"div",31),ce(1,"No products found"),T())}function wW(t,n){if(t&1&&rt(0,vW,2,0,"div",31)(1,_W,2,0,"div",31),t&2){let e=m();it(e.filterValue()?0:1)}}var tg=class t{constructor(n){this.apollo=n;this.searchTrigger.pipe(Jg(800),Fc()).subscribe(e=>{this.onLazyLoad()})}apollo;router=x(Vn);dataViewComponent=EI("dt2");products=ge([]);loading=ae(!1);layout=ge(localStorage.getItem("product-view-layout")==="list"?"list":"grid");layoutOptions=["list","grid"];listPageOptions=[10,25,50,75,100];gridPageOptions=[12,24,48,72,96];listRows=ge(localStorage.getItem("product-view-list-rows")?parseInt(localStorage.getItem("product-view-list-rows")):25);gridRows=ge(localStorage.getItem("product-view-grid-rows")?parseInt(localStorage.getItem("product-view-grid-rows")):12);rows=We(()=>this.layout()==="list"?this.listRows():this.gridRows());currentTotalProducts=ge(0);filterValue=ge("");getPhxUrl=wc;searchTrigger=new qe;getProducts=(...e)=>pt(this,[...e],function*(n={}){return(yield Cr(this.apollo.apollo().query({query:LR,variables:{input:n}})))?.data?.getProducts});onLazyLoad(n){return pt(this,null,function*(){let e=yield this.getProducts({take:n?.rows??this.rows(),skip:n?.first??0,term:this.filterValue()});(n?.rows??-1)>=0&&n.rows!=this.rows()&&(this.layout()==="list"?(this.listRows.set(n.rows),localStorage.setItem("product-view-list-rows",n.rows.toString())):(this.gridRows.set(n.rows),localStorage.setItem("product-view-grid-rows",n.rows.toString()))),this.products.set(e?.items??[]),this.currentTotalProducts.set(e?.totalItems??0)})}openProduct(n){window.open(wc("/products/edit/"+n.id),"_blank")}onLayoutChange(n){this.layout.set(n),this.dataViewComponent()&&(this.dataViewComponent().first=0),localStorage.setItem("product-view-layout",n),this.onLazyLoad()}static \u0275fac=function(e){return new(e||t)(de(Ji))};static \u0275cmp=$({type:t,selectors:[["app-product-view"]],viewQuery:function(e,r){e&1&&kb(r.dataViewComponent,lW,5),e&2&&Qf()},inputs:{loading:[1,"loading"]},decls:11,vars:8,consts:[["dt2",""],["header",""],["list",""],["grid",""],["emptymessage",""],["searchInput",""],["item",""],["title","Product View"],["lazy","",3,"onLazyLoad","value","paginator","lazy","totalRecords","loading","layout","rowsPerPageOptions","rows"],[1,"flex","justify-between","items-center","gap-4"],[1,"w-full"],["iconPosition","right",1,"mr-auto","drop-shadow"],["iconPosition","left",1,"ml-auto"],[1,"fa","fa-search"],["pInputText","","type","text","placeholder","Search...","fluid","",3,"ngModelChange","input","ngModel"],[1,"fa","fa-circle-xmark","cursor-pointer"],[1,"drop-shadow",3,"ngModelChange","ngModel","options","allowEmpty"],[1,"fa","fa-circle-xmark","cursor-pointer",3,"click"],[1,"fa",3,"ngClass"],[1,"flex","flex-col","gap-2","p-2"],[1,"bg-white","border","rounded-lg","p-4","drop-shadow-lg"],[1,"flex","items-center","gap-2"],[1,"w-16","h-16","p-1","rounded-lg","border",2,"object-fit","contain",3,"src","alt"],[1,"flex","justify-between","gap-2","w-full","items-center"],[1,"text-lg","font-bold","truncate"],[1,"text-sm","text-gray-500","line-clamp-2"],["icon","fa fa-arrow-up-right-from-square","size","large","text","","rounded","","outlined","",3,"click"],[1,"grid","grid-cols-2","sm:grid-cols-3","gap-2","p-2"],[1,"w-32","h-32","p-1","mx-auto","mb-4","rounded-lg","border",2,"object-fit","contain",3,"src","alt"],[1,"flex","justify-between","gap-2"],["icon","fa fa-arrow-up-right-from-square","size","small","text","","rounded","","outlined","",3,"click"],[1,"text-center","p-8","italic","text-muted-color"]],template:function(e,r){if(e&1){let i=se();E(0,"app-base",7)(1,"p-dataView",8,0),q("onLazyLoad",function(s){return S(i),I(r.onLazyLoad(s))}),C(3,pW,11,5,"ng-template",null,1,at)(5,mW,3,0,"ng-template",null,2,at)(7,bW,3,0,"ng-template",null,3,at)(9,wW,2,1,"ng-template",null,4,at),T()()}e&2&&(g(),h("value",r.products())("paginator",!0)("lazy",!0)("totalRecords",r.currentTotalProducts())("loading",r.loading())("layout",r.layout())("rowsPerPageOptions",r.layout()==="list"?r.listPageOptions:r.gridPageOptions)("rows",r.rows()))},dependencies:[ls,FR,eg,Xi,bc,_s,Da,ei,rr,to,Wm,Gm],styles:['*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[_ngcontent-%COMP%]::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}[_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-content: ""}html[_ngcontent-%COMP%], [_nghost-%COMP%]{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body[_ngcontent-%COMP%]{margin:0;line-height:inherit}hr[_ngcontent-%COMP%]{height:0;color:inherit;border-top-width:1px}abbr[_ngcontent-%COMP%]:where([title]){text-decoration:underline dotted}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{font-size:inherit;font-weight:inherit}a[_ngcontent-%COMP%]{color:inherit;text-decoration:inherit}b[_ngcontent-%COMP%], strong[_ngcontent-%COMP%]{font-weight:bolder}code[_ngcontent-%COMP%], kbd[_ngcontent-%COMP%], samp[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small[_ngcontent-%COMP%]{font-size:80%}sub[_ngcontent-%COMP%], sup[_ngcontent-%COMP%]{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub[_ngcontent-%COMP%]{bottom:-.25em}sup[_ngcontent-%COMP%]{top:-.5em}table[_ngcontent-%COMP%]{text-indent:0;border-color:inherit;border-collapse:collapse}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%], optgroup[_ngcontent-%COMP%], select[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{text-transform:none}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%]:where([type=button]), input[_ngcontent-%COMP%]:where([type=reset]), input[_ngcontent-%COMP%]:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}[_ngcontent-%COMP%]:-moz-focusring{outline:auto}[_ngcontent-%COMP%]:-moz-ui-invalid{box-shadow:none}progress[_ngcontent-%COMP%]{vertical-align:baseline}[_ngcontent-%COMP%]::-webkit-inner-spin-button, [_ngcontent-%COMP%]::-webkit-outer-spin-button{height:auto}[type=search][_ngcontent-%COMP%]{-webkit-appearance:textfield;outline-offset:-2px}[_ngcontent-%COMP%]::-webkit-search-decoration{-webkit-appearance:none}[_ngcontent-%COMP%]::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary[_ngcontent-%COMP%]{display:list-item}blockquote[_ngcontent-%COMP%], dl[_ngcontent-%COMP%], dd[_ngcontent-%COMP%], h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%], hr[_ngcontent-%COMP%], figure[_ngcontent-%COMP%], p[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{margin:0}fieldset[_ngcontent-%COMP%]{margin:0;padding:0}legend[_ngcontent-%COMP%]{padding:0}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%], menu[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0}dialog[_ngcontent-%COMP%]{padding:0}textarea[_ngcontent-%COMP%]{resize:vertical}input[_ngcontent-%COMP%]::placeholder, textarea[_ngcontent-%COMP%]::placeholder{opacity:1;color:#9ca3af}button[_ngcontent-%COMP%], [role=button][_ngcontent-%COMP%]{cursor:pointer}[_ngcontent-%COMP%]:disabled{cursor:default}img[_ngcontent-%COMP%], svg[_ngcontent-%COMP%], video[_ngcontent-%COMP%], canvas[_ngcontent-%COMP%], audio[_ngcontent-%COMP%], iframe[_ngcontent-%COMP%], embed[_ngcontent-%COMP%], object[_ngcontent-%COMP%]{display:block;vertical-align:middle}img[_ngcontent-%COMP%], video[_ngcontent-%COMP%]{max-width:100%;height:auto}[hidden][_ngcontent-%COMP%]:where(:not([hidden=until-found])){display:none}.visible[_ngcontent-%COMP%]{visibility:visible}.absolute[_ngcontent-%COMP%]{position:absolute}.col-span-2[_ngcontent-%COMP%]{grid-column:span 2 / span 2}.mx-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.my-4[_ngcontent-%COMP%]{margin-top:1rem;margin-bottom:1rem}.mb-4[_ngcontent-%COMP%]{margin-bottom:1rem}.ml-auto[_ngcontent-%COMP%]{margin-left:auto}.mr-auto[_ngcontent-%COMP%]{margin-right:auto}.mt-4[_ngcontent-%COMP%]{margin-top:1rem}.line-clamp-2[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block[_ngcontent-%COMP%]{display:block}.flex[_ngcontent-%COMP%]{display:flex}.table[_ngcontent-%COMP%]{display:table}.grid[_ngcontent-%COMP%]{display:grid}.h-16[_ngcontent-%COMP%]{height:4rem}.h-32[_ngcontent-%COMP%]{height:8rem}.min-h-screen[_ngcontent-%COMP%]{min-height:100vh}.w-16[_ngcontent-%COMP%]{width:4rem}.w-32[_ngcontent-%COMP%]{width:8rem}.w-full[_ngcontent-%COMP%]{width:100%}.transform[_ngcontent-%COMP%]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.grid-cols-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col[_ngcontent-%COMP%]{flex-direction:column}.items-center[_ngcontent-%COMP%]{align-items:center}.justify-center[_ngcontent-%COMP%]{justify-content:center}.justify-between[_ngcontent-%COMP%]{justify-content:space-between}.gap-2[_ngcontent-%COMP%]{gap:.5rem}.gap-4[_ngcontent-%COMP%]{gap:1rem}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded[_ngcontent-%COMP%]{border-radius:.25rem}.rounded-2xl[_ngcontent-%COMP%]{border-radius:1rem}.rounded-lg[_ngcontent-%COMP%]{border-radius:.5rem}.border[_ngcontent-%COMP%]{border-width:1px}.border-2[_ngcontent-%COMP%]{border-width:2px}.bg-gray-100\\/50[_ngcontent-%COMP%]{background-color:#f3f4f680}.bg-red-500[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-white[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-1[_ngcontent-%COMP%]{padding:.25rem}.p-2[_ngcontent-%COMP%]{padding:.5rem}.p-4[_ngcontent-%COMP%]{padding:1rem}.p-8[_ngcontent-%COMP%]{padding:2rem}.pt-4[_ngcontent-%COMP%]{padding-top:1rem}.text-center[_ngcontent-%COMP%]{text-align:center}.text-2xl[_ngcontent-%COMP%]{font-size:1.5rem;line-height:2rem}.text-lg[_ngcontent-%COMP%]{font-size:1.125rem;line-height:1.75rem}.text-sm[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem}.font-bold[_ngcontent-%COMP%]{font-weight:700}.italic[_ngcontent-%COMP%]{font-style:italic}.text-blue-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-gray-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-white[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.drop-shadow[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-2xl[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 25px 25px rgb(0 0 0 / .15));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-lg[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / .04)) drop-shadow(0 4px 3px rgb(0 0 0 / .1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter[_ngcontent-%COMP%]{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.text-muted-color[_ngcontent-%COMP%]{color:var(--p-text-muted-color)}@keyframes _ngcontent-%COMP%_enter{0%{opacity:var(--p-enter-opacity, 1);transform:translate3d(var(--p-enter-translate-x, 0),var(--p-enter-translate-y, 0),0) scale3d(var(--p-enter-scale, 1),var(--p-enter-scale, 1),var(--p-enter-scale, 1)) rotate(var(--p-enter-rotate, 0))}}@keyframes _ngcontent-%COMP%_leave{to{opacity:var(--p-leave-opacity, 1);transform:translate3d(var(--p-leave-translate-x, 0),var(--p-leave-translate-y, 0),0) scale3d(var(--p-leave-scale, 1),var(--p-leave-scale, 1),var(--p-leave-scale, 1)) rotate(var(--p-leave-rotate, 0))}} .p-dataview-content{background:transparent!important} .p-dataview-header, p-paginator{border-width:1px!important;border-radius:12px!important;margin-left:.5rem!important;margin-right:.5rem!important;--tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / .04)) drop-shadow(0 4px 3px rgb(0 0 0 / .1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}input[pInputText][_ngcontent-%COMP%]{padding-top:.5rem!important;padding-bottom:.5rem!important;border-width:1px!important}.hover\\:text-blue-700[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.hover\\:underline[_ngcontent-%COMP%]:hover{text-decoration-line:underline}@media(min-width:640px){.sm\\:grid-cols-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}']})};var ng=class t{constructor(n){this.route=n;this.route.queryParams.subscribe(e=>{e.redirectTo?(this.redirectTo=atob(e.redirectTo),console.log("redirectTo",this.redirectTo)):this.redirectTo="/"})}route;apollo=x(Ji);fb=x(Z2);router=x(Vn);loginForm=this.fb.group({username:["",Au.required],password:["",Au.required]});redirectTo="/";loading=ge(!1);onSubmit(){return pt(this,null,function*(){this.loading.set(!0);try{((yield Cr(this.apollo.apollo().mutate({mutation:g2,variables:{username:this.loginForm.value.username,password:this.loginForm.value.password}}))).data?.login).__typename==="CurrentUser"&&this.router.navigate([this.redirectTo])}catch(n){console.error(n)}finally{this.loading.set(!1)}})}static \u0275fac=function(e){return new(e||t)(de(Li))};static \u0275cmp=$({type:t,selectors:[["app-login"]],decls:13,vars:2,consts:[[1,"min-h-screen","flex","items-center","justify-center","p-8"],[1,"border-2","rounded-2xl","bg-gray-100/50","drop-shadow-2xl","w-full","mx-auto","p-4",2,"max-width","300px"],[3,"ngSubmit","formGroup"],[1,"flex","flex-col","gap-2"],[1,"flex","flex-col"],["for","username"],["type","text","pInputText","","id","username","formControlName","username"],["for","password"],["type","password","pInputText","","id","password","formControlName","password"],["type","submit","label","Login","icon","fa fa-sign-in","styleClass","w-full mt-4",1,"w-full",3,"loading"]],template:function(e,r){e&1&&(E(0,"div",0)(1,"div",1)(2,"form",2),q("ngSubmit",function(){return r.onSubmit()}),E(3,"div",3)(4,"div",4)(5,"label",5),ce(6,"Username"),T(),X(7,"input",6),T(),E(8,"div",4)(9,"label",7),ce(10,"Password"),T(),X(11,"input",8),T()(),X(12,"p-button",9),T()()()),e&2&&(g(2),h("formGroup",r.loginForm),g(10),h("loading",r.loading()))},dependencies:[Xi,Q2,bc,_s,z2,J2,ww,Cw,to,rr],styles:['*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[_ngcontent-%COMP%]::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}[_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-content: ""}html[_ngcontent-%COMP%], [_nghost-%COMP%]{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body[_ngcontent-%COMP%]{margin:0;line-height:inherit}hr[_ngcontent-%COMP%]{height:0;color:inherit;border-top-width:1px}abbr[_ngcontent-%COMP%]:where([title]){text-decoration:underline dotted}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{font-size:inherit;font-weight:inherit}a[_ngcontent-%COMP%]{color:inherit;text-decoration:inherit}b[_ngcontent-%COMP%], strong[_ngcontent-%COMP%]{font-weight:bolder}code[_ngcontent-%COMP%], kbd[_ngcontent-%COMP%], samp[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small[_ngcontent-%COMP%]{font-size:80%}sub[_ngcontent-%COMP%], sup[_ngcontent-%COMP%]{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub[_ngcontent-%COMP%]{bottom:-.25em}sup[_ngcontent-%COMP%]{top:-.5em}table[_ngcontent-%COMP%]{text-indent:0;border-color:inherit;border-collapse:collapse}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%], optgroup[_ngcontent-%COMP%], select[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{text-transform:none}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%]:where([type=button]), input[_ngcontent-%COMP%]:where([type=reset]), input[_ngcontent-%COMP%]:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}[_ngcontent-%COMP%]:-moz-focusring{outline:auto}[_ngcontent-%COMP%]:-moz-ui-invalid{box-shadow:none}progress[_ngcontent-%COMP%]{vertical-align:baseline}[_ngcontent-%COMP%]::-webkit-inner-spin-button, [_ngcontent-%COMP%]::-webkit-outer-spin-button{height:auto}[type=search][_ngcontent-%COMP%]{-webkit-appearance:textfield;outline-offset:-2px}[_ngcontent-%COMP%]::-webkit-search-decoration{-webkit-appearance:none}[_ngcontent-%COMP%]::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary[_ngcontent-%COMP%]{display:list-item}blockquote[_ngcontent-%COMP%], dl[_ngcontent-%COMP%], dd[_ngcontent-%COMP%], h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%], hr[_ngcontent-%COMP%], figure[_ngcontent-%COMP%], p[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{margin:0}fieldset[_ngcontent-%COMP%]{margin:0;padding:0}legend[_ngcontent-%COMP%]{padding:0}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%], menu[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0}dialog[_ngcontent-%COMP%]{padding:0}textarea[_ngcontent-%COMP%]{resize:vertical}input[_ngcontent-%COMP%]::placeholder, textarea[_ngcontent-%COMP%]::placeholder{opacity:1;color:#9ca3af}button[_ngcontent-%COMP%], [role=button][_ngcontent-%COMP%]{cursor:pointer}[_ngcontent-%COMP%]:disabled{cursor:default}img[_ngcontent-%COMP%], svg[_ngcontent-%COMP%], video[_ngcontent-%COMP%], canvas[_ngcontent-%COMP%], audio[_ngcontent-%COMP%], iframe[_ngcontent-%COMP%], embed[_ngcontent-%COMP%], object[_ngcontent-%COMP%]{display:block;vertical-align:middle}img[_ngcontent-%COMP%], video[_ngcontent-%COMP%]{max-width:100%;height:auto}[hidden][_ngcontent-%COMP%]:where(:not([hidden=until-found])){display:none}.visible[_ngcontent-%COMP%]{visibility:visible}.absolute[_ngcontent-%COMP%]{position:absolute}.col-span-2[_ngcontent-%COMP%]{grid-column:span 2 / span 2}.mx-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.my-4[_ngcontent-%COMP%]{margin-top:1rem;margin-bottom:1rem}.mb-4[_ngcontent-%COMP%]{margin-bottom:1rem}.ml-auto[_ngcontent-%COMP%]{margin-left:auto}.mr-auto[_ngcontent-%COMP%]{margin-right:auto}.mt-4[_ngcontent-%COMP%]{margin-top:1rem}.line-clamp-2[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block[_ngcontent-%COMP%]{display:block}.flex[_ngcontent-%COMP%]{display:flex}.table[_ngcontent-%COMP%]{display:table}.grid[_ngcontent-%COMP%]{display:grid}.h-16[_ngcontent-%COMP%]{height:4rem}.h-32[_ngcontent-%COMP%]{height:8rem}.min-h-screen[_ngcontent-%COMP%]{min-height:100vh}.w-16[_ngcontent-%COMP%]{width:4rem}.w-32[_ngcontent-%COMP%]{width:8rem}.w-full[_ngcontent-%COMP%]{width:100%}.transform[_ngcontent-%COMP%]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.grid-cols-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col[_ngcontent-%COMP%]{flex-direction:column}.items-center[_ngcontent-%COMP%]{align-items:center}.justify-center[_ngcontent-%COMP%]{justify-content:center}.justify-between[_ngcontent-%COMP%]{justify-content:space-between}.gap-2[_ngcontent-%COMP%]{gap:.5rem}.gap-4[_ngcontent-%COMP%]{gap:1rem}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded[_ngcontent-%COMP%]{border-radius:.25rem}.rounded-2xl[_ngcontent-%COMP%]{border-radius:1rem}.rounded-lg[_ngcontent-%COMP%]{border-radius:.5rem}.border[_ngcontent-%COMP%]{border-width:1px}.border-2[_ngcontent-%COMP%]{border-width:2px}.bg-gray-100\\/50[_ngcontent-%COMP%]{background-color:#f3f4f680}.bg-red-500[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-white[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-1[_ngcontent-%COMP%]{padding:.25rem}.p-2[_ngcontent-%COMP%]{padding:.5rem}.p-4[_ngcontent-%COMP%]{padding:1rem}.p-8[_ngcontent-%COMP%]{padding:2rem}.pt-4[_ngcontent-%COMP%]{padding-top:1rem}.text-center[_ngcontent-%COMP%]{text-align:center}.text-2xl[_ngcontent-%COMP%]{font-size:1.5rem;line-height:2rem}.text-lg[_ngcontent-%COMP%]{font-size:1.125rem;line-height:1.75rem}.text-sm[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem}.font-bold[_ngcontent-%COMP%]{font-weight:700}.italic[_ngcontent-%COMP%]{font-style:italic}.text-blue-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-gray-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-white[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.drop-shadow[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-2xl[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 25px 25px rgb(0 0 0 / .15));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-lg[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / .04)) drop-shadow(0 4px 3px rgb(0 0 0 / .1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter[_ngcontent-%COMP%]{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.text-muted-color[_ngcontent-%COMP%]{color:var(--p-text-muted-color)}@keyframes _ngcontent-%COMP%_enter{0%{opacity:var(--p-enter-opacity, 1);transform:translate3d(var(--p-enter-translate-x, 0),var(--p-enter-translate-y, 0),0) scale3d(var(--p-enter-scale, 1),var(--p-enter-scale, 1),var(--p-enter-scale, 1)) rotate(var(--p-enter-rotate, 0))}}@keyframes _ngcontent-%COMP%_leave{to{opacity:var(--p-leave-opacity, 1);transform:translate3d(var(--p-leave-translate-x, 0),var(--p-leave-translate-y, 0),0) scale3d(var(--p-leave-scale, 1),var(--p-leave-scale, 1),var(--p-leave-scale, 1)) rotate(var(--p-leave-rotate, 0))}}input[pInputText][_ngcontent-%COMP%]{padding:.5rem!important;border-width:2px!important}.hover\\:text-blue-700[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.hover\\:underline[_ngcontent-%COMP%]:hover{text-decoration-line:underline}@media(min-width:640px){.sm\\:grid-cols-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}']})};var Ma=class t{router=x(Vn);canActivate(n,e){let r=Gt.apiKey??localStorage.getItem("api-key");return!Gt.production&&!r&&this.router.navigate(["login"],{queryParams:{redirectTo:btoa(window.location.pathname+window.location.search)}}),!0}static \u0275fac=function(e){return new(e||t)};static \u0275prov=N({token:t,factory:t.\u0275fac})};var GR=`
.p-datatable {
position: relative;
display: block;
}
.p-datatable-table {
border-spacing: 0;
border-collapse: separate;
width: 100%;
}
.p-datatable-scrollable > .p-datatable-table-container {
position: relative;
}
.p-datatable-scrollable-table > .p-datatable-thead {
inset-block-start: 0;
z-index: 1;
}
.p-datatable-scrollable-table > .p-datatable-frozen-tbody {
position: sticky;
z-index: 1;
}
.p-datatable-scrollable-table > .p-datatable-tfoot {
inset-block-end: 0;
z-index: 1;
}
.p-datatable-scrollable .p-datatable-frozen-column {
position: sticky;
}
.p-datatable-scrollable th.p-datatable-frozen-column {
z-index: 1;
}
.p-datatable-scrollable td.p-datatable-frozen-column {
background: inherit;
}
.p-datatable-scrollable > .p-datatable-table-container > .p-datatable-table > .p-datatable-thead,
.p-datatable-scrollable > .p-datatable-table-container > .p-virtualscroller > .p-datatable-table > .p-datatable-thead {
background: dt('datatable.header.cell.background');
}
.p-datatable-scrollable > .p-datatable-table-container > .p-datatable-table > .p-datatable-tfoot,
.p-datatable-scrollable > .p-datatable-table-container > .p-virtualscroller > .p-datatable-table > .p-datatable-tfoot {
background: dt('datatable.footer.cell.background');
}
.p-datatable-flex-scrollable {
display: flex;
flex-direction: column;
height: 100%;
}
.p-datatable-flex-scrollable > .p-datatable-table-container {
display: flex;
flex-direction: column;
flex: 1;
height: 100%;
}
.p-datatable-scrollable-table > .p-datatable-tbody > .p-datatable-row-group-header {
position: sticky;
z-index: 1;
}
.p-datatable-resizable-table > .p-datatable-thead > tr > th,
.p-datatable-resizable-table > .p-datatable-tfoot > tr > td,
.p-datatable-resizable-table > .p-datatable-tbody > tr > td {
overflow: hidden;
white-space: nowrap;
}
.p-datatable-resizable-table > .p-datatable-thead > tr > th.p-datatable-resizable-column:not(.p-datatable-frozen-column) {
background-clip: padding-box;
position: relative;
}
.p-datatable-resizable-table-fit > .p-datatable-thead > tr > th.p-datatable-resizable-column:last-child .p-datatable-column-resizer {
display: none;
}
.p-datatable-column-resizer {
display: block;
position: absolute;
inset-block-start: 0;
inset-inline-end: 0;
margin: 0;
width: dt('datatable.column.resizer.width');
height: 100%;
padding: 0;
cursor: col-resize;
border: 1px solid transparent;
}
.p-datatable-column-header-content {
display: flex;
align-items: center;
gap: dt('datatable.header.cell.gap');
}
.p-datatable-column-resize-indicator {
width: dt('datatable.resize.indicator.width');
position: absolute;
z-index: 10;
display: none;
background: dt('datatable.resize.indicator.color');
}
.p-datatable-row-reorder-indicator-up,
.p-datatable-row-reorder-indicator-down {
position: absolute;
display: none;
}
.p-datatable-reorderable-column,
.p-datatable-reorderable-row-handle {
cursor: move;
}
.p-datatable-mask {
position: absolute;
display: flex;
align-items: center;
justify-content: center;
z-index: 2;
}
.p-datatable-inline-filter {
display: flex;
align-items: center;
width: 100%;
gap: dt('datatable.filter.inline.gap');
}
.p-datatable-inline-filter .p-datatable-filter-element-container {
flex: 1 1 auto;
width: 1%;
}
.p-datatable-filter-overlay {
background: dt('datatable.filter.overlay.select.background');
color: dt('datatable.filter.overlay.select.color');
border: 1px solid dt('datatable.filter.overlay.select.border.color');
border-radius: dt('datatable.filter.overlay.select.border.radius');
box-shadow: dt('datatable.filter.overlay.select.shadow');
min-width: 12.5rem;
}
.p-datatable-filter-constraint-list {
margin: 0;
list-style: none;
display: flex;
flex-direction: column;
padding: dt('datatable.filter.constraint.list.padding');
gap: dt('datatable.filter.constraint.list.gap');
}
.p-datatable-filter-constraint {
padding: dt('datatable.filter.constraint.padding');
color: dt('datatable.filter.constraint.color');
border-radius: dt('datatable.filter.constraint.border.radius');
cursor: pointer;
transition:
background dt('datatable.transition.duration'),
color dt('datatable.transition.duration'),
border-color dt('datatable.transition.duration'),
box-shadow dt('datatable.transition.duration');
}
.p-datatable-filter-constraint-selected {
background: dt('datatable.filter.constraint.selected.background');
color: dt('datatable.filter.constraint.selected.color');
}
.p-datatable-filter-constraint:not(.p-datatable-filter-constraint-selected):not(.p-disabled):hover {
background: dt('datatable.filter.constraint.focus.background');
color: dt('datatable.filter.constraint.focus.color');
}
.p-datatable-filter-constraint:focus-visible {
outline: 0 none;
background: dt('datatable.filter.constraint.focus.background');
color: dt('datatable.filter.constraint.focus.color');
}
.p-datatable-filter-constraint-selected:focus-visible {
outline: 0 none;
background: dt('datatable.filter.constraint.selected.focus.background');
color: dt('datatable.filter.constraint.selected.focus.color');
}
.p-datatable-filter-constraint-separator {
border-block-start: 1px solid dt('datatable.filter.constraint.separator.border.color');
}
.p-datatable-popover-filter {
display: inline-flex;
margin-inline-start: auto;
}
.p-datatable-filter-overlay-popover {
background: dt('datatable.filter.overlay.popover.background');
color: dt('datatable.filter.overlay.popover.color');
border: 1px solid dt('datatable.filter.overlay.popover.border.color');
border-radius: dt('datatable.filter.overlay.popover.border.radius');
box-shadow: dt('datatable.filter.overlay.popover.shadow');
min-width: 12.5rem;
padding: dt('datatable.filter.overlay.popover.padding');
display: flex;
flex-direction: column;
gap: dt('datatable.filter.overlay.popover.gap');
}
.p-datatable-filter-operator-dropdown {
width: 100%;
}
.p-datatable-filter-rule-list,
.p-datatable-filter-rule {
display: flex;
flex-direction: column;
gap: dt('datatable.filter.overlay.popover.gap');
}
.p-datatable-filter-rule {
border-block-end: 1px solid dt('datatable.filter.rule.border.color');
padding-bottom: dt('datatable.filter.overlay.popover.gap');
}
.p-datatable-filter-rule:last-child {
border-block-end: 0 none;
padding-bottom: 0;
}
.p-datatable-filter-add-rule-button {
width: 100%;
}
.p-datatable-filter-remove-rule-button {
width: 100%;
}
.p-datatable-filter-buttonbar {
padding: 0;
display: flex;
align-items: center;
justify-content: space-between;
}
.p-datatable-virtualscroller-spacer {
display: flex;
}
.p-datatable .p-virtualscroller .p-virtualscroller-loading {
transform: none !important;
min-height: 0;
position: sticky;
inset-block-start: 0;
inset-inline-start: 0;
}
.p-datatable-paginator-top {
border-color: dt('datatable.paginator.top.border.color');
border-style: solid;
border-width: dt('datatable.paginator.top.border.width');
}
.p-datatable-paginator-bottom {
border-color: dt('datatable.paginator.bottom.border.color');
border-style: solid;
border-width: dt('datatable.paginator.bottom.border.width');
}
.p-datatable-header {
background: dt('datatable.header.background');
color: dt('datatable.header.color');
border-color: dt('datatable.header.border.color');
border-style: solid;
border-width: dt('datatable.header.border.width');
padding: dt('datatable.header.padding');
}
.p-datatable-footer {
background: dt('datatable.footer.background');
color: dt('datatable.footer.color');
border-color: dt('datatable.footer.border.color');
border-style: solid;
border-width: dt('datatable.footer.border.width');
padding: dt('datatable.footer.padding');
}
.p-datatable-header-cell {
padding: dt('datatable.header.cell.padding');
background: dt('datatable.header.cell.background');
border-color: dt('datatable.header.cell.border.color');
border-style: solid;
border-width: 0 0 1px 0;
color: dt('datatable.header.cell.color');
font-weight: normal;
text-align: start;
transition:
background dt('datatable.transition.duration'),
color dt('datatable.transition.duration'),
border-color dt('datatable.transition.duration'),
outline-color dt('datatable.transition.duration'),
box-shadow dt('datatable.transition.duration');
}
.p-datatable-column-title {
font-weight: dt('datatable.column.title.font.weight');
}
.p-datatable-tbody > tr {
outline-color: transparent;
background: dt('datatable.row.background');
color: dt('datatable.row.color');
transition:
background dt('datatable.transition.duration'),
color dt('datatable.transition.duration'),
border-color dt('datatable.transition.duration'),
outline-color dt('datatable.transition.duration'),
box-shadow dt('datatable.transition.duration');
}
.p-datatable-tbody > tr > td {
text-align: start;
border-color: dt('datatable.body.cell.border.color');
border-style: solid;
border-width: 0 0 1px 0;
padding: dt('datatable.body.cell.padding');
}
.p-datatable-hoverable .p-datatable-tbody > tr:not(.p-datatable-row-selected):hover {
background: dt('datatable.row.hover.background');
color: dt('datatable.row.hover.color');
}
.p-datatable-tbody > tr.p-datatable-row-selected {
background: dt('datatable.row.selected.background');
color: dt('datatable.row.selected.color');
}
.p-datatable-tbody > tr:has(+ .p-datatable-row-selected) > td {
border-block-end-color: dt('datatable.body.cell.selected.border.color');
}
.p-datatable-tbody > tr.p-datatable-row-selected > td {
border-block-end-color: dt('datatable.body.cell.selected.border.color');
}
.p-datatable-tbody > tr:focus-visible,
.p-datatable-tbody > tr.p-datatable-contextmenu-row-selected {
box-shadow: dt('datatable.row.focus.ring.shadow');
outline: dt('datatable.row.focus.ring.width') dt('datatable.row.focus.ring.style') dt('datatable.row.focus.ring.color');
outline-offset: dt('datatable.row.focus.ring.offset');
}
.p-datatable-tfoot > tr > td {
text-align: start;
padding: dt('datatable.footer.cell.padding');
border-color: dt('datatable.footer.cell.border.color');
border-style: solid;
border-width: 0 0 1px 0;
color: dt('datatable.footer.cell.color');
background: dt('datatable.footer.cell.background');
}
.p-datatable-column-footer {
font-weight: dt('datatable.column.footer.font.weight');
}
.p-datatable-sortable-column {
cursor: pointer;
user-select: none;
outline-color: transparent;
}
.p-datatable-column-title,
.p-datatable-sort-icon,
.p-datatable-sort-badge {
vertical-align: middle;
}
.p-datatable-sort-icon {
color: dt('datatable.sort.icon.color');
font-size: dt('datatable.sort.icon.size');
width: dt('datatable.sort.icon.size');
height: dt('datatable.sort.icon.size');
transition: color dt('datatable.transition.duration');
}
.p-datatable-sortable-column:not(.p-datatable-column-sorted):hover {
background: dt('datatable.header.cell.hover.background');
color: dt('datatable.header.cell.hover.color');
}
.p-datatable-sortable-column:not(.p-datatable-column-sorted):hover .p-datatable-sort-icon {
color: dt('datatable.sort.icon.hover.color');
}
.p-datatable-column-sorted {
background: dt('datatable.header.cell.selected.background');
color: dt('datatable.header.cell.selected.color');
}
.p-datatable-column-sorted .p-datatable-sort-icon {
color: dt('datatable.header.cell.selected.color');
}
.p-datatable-sortable-column:focus-visible {
box-shadow: dt('datatable.header.cell.focus.ring.shadow');
outline: dt('datatable.header.cell.focus.ring.width') dt('datatable.header.cell.focus.ring.style') dt('datatable.header.cell.focus.ring.color');
outline-offset: dt('datatable.header.cell.focus.ring.offset');
}
.p-datatable-hoverable .p-datatable-selectable-row {
cursor: pointer;
}
.p-datatable-tbody > tr.p-datatable-dragpoint-top > td {
box-shadow: inset 0 2px 0 0 dt('datatable.drop.point.color');
}
.p-datatable-tbody > tr.p-datatable-dragpoint-bottom > td {
box-shadow: inset 0 -2px 0 0 dt('datatable.drop.point.color');
}
.p-datatable-loading-icon {
font-size: dt('datatable.loading.icon.size');
width: dt('datatable.loading.icon.size');
height: dt('datatable.loading.icon.size');
}
.p-datatable-gridlines .p-datatable-header {
border-width: 1px 1px 0 1px;
}
.p-datatable-gridlines .p-datatable-footer {
border-width: 0 1px 1px 1px;
}
.p-datatable-gridlines .p-datatable-paginator-top {
border-width: 1px 1px 0 1px;
}
.p-datatable-gridlines .p-datatable-paginator-bottom {
border-width: 0 1px 1px 1px;
}
.p-datatable-gridlines .p-datatable-thead > tr > th {
border-width: 1px 0 1px 1px;
}
.p-datatable-gridlines .p-datatable-thead > tr > th:last-child {
border-width: 1px;
}
.p-datatable-gridlines .p-datatable-tbody > tr > td {
border-width: 1px 0 0 1px;
}
.p-datatable-gridlines .p-datatable-tbody > tr > td:last-child {
border-width: 1px 1px 0 1px;
}
.p-datatable-gridlines .p-datatable-tbody > tr:last-child > td {
border-width: 1px 0 1px 1px;
}
.p-datatable-gridlines .p-datatable-tbody > tr:last-child > td:last-child {
border-width: 1px;
}
.p-datatable-gridlines .p-datatable-tfoot > tr > td {
border-width: 1px 0 1px 1px;
}
.p-datatable-gridlines .p-datatable-tfoot > tr > td:last-child {
border-width: 1px 1px 1px 1px;
}
.p-datatable.p-datatable-gridlines .p-datatable-thead + .p-datatable-tfoot > tr > td {
border-width: 0 0 1px 1px;
}
.p-datatable.p-datatable-gridlines .p-datatable-thead + .p-datatable-tfoot > tr > td:last-child {
border-width: 0 1px 1px 1px;
}
.p-datatable.p-datatable-gridlines:has(.p-datatable-thead):has(.p-datatable-tbody) .p-datatable-tbody > tr > td {
border-width: 0 0 1px 1px;
}
.p-datatable.p-datatable-gridlines:has(.p-datatable-thead):has(.p-datatable-tbody) .p-datatable-tbody > tr > td:last-child {
border-width: 0 1px 1px 1px;
}
.p-datatable.p-datatable-gridlines:has(.p-datatable-tbody):has(.p-datatable-tfoot) .p-datatable-tbody > tr:last-child > td {
border-width: 0 0 0 1px;
}
.p-datatable.p-datatable-gridlines:has(.p-datatable-tbody):has(.p-datatable-tfoot) .p-datatable-tbody > tr:last-child > td:last-child {
border-width: 0 1px 0 1px;
}
.p-datatable.p-datatable-striped .p-datatable-tbody > tr.p-row-odd {
background: dt('datatable.row.striped.background');
}
.p-datatable.p-datatable-striped .p-datatable-tbody > tr.p-row-odd.p-datatable-row-selected {
background: dt('datatable.row.selected.background');
color: dt('datatable.row.selected.color');
}
.p-datatable-striped.p-datatable-hoverable .p-datatable-tbody > tr:not(.p-datatable-row-selected):hover {
background: dt('datatable.row.hover.background');
color: dt('datatable.row.hover.color');
}
.p-datatable.p-datatable-sm .p-datatable-header {
padding: dt('datatable.header.sm.padding');
}
.p-datatable.p-datatable-sm .p-datatable-thead > tr > th {
padding: dt('datatable.header.cell.sm.padding');
}
.p-datatable.p-datatable-sm .p-datatable-tbody > tr > td {
padding: dt('datatable.body.cell.sm.padding');
}
.p-datatable.p-datatable-sm .p-datatable-tfoot > tr > td {
padding: dt('datatable.footer.cell.sm.padding');
}
.p-datatable.p-datatable-sm .p-datatable-footer {
padding: dt('datatable.footer.sm.padding');
}
.p-datatable.p-datatable-lg .p-datatable-header {
padding: dt('datatable.header.lg.padding');
}
.p-datatable.p-datatable-lg .p-datatable-thead > tr > th {
padding: dt('datatable.header.cell.lg.padding');
}
.p-datatable.p-datatable-lg .p-datatable-tbody > tr > td {
padding: dt('datatable.body.cell.lg.padding');
}
.p-datatable.p-datatable-lg .p-datatable-tfoot > tr > td {
padding: dt('datatable.footer.cell.lg.padding');
}
.p-datatable.p-datatable-lg .p-datatable-footer {
padding: dt('datatable.footer.lg.padding');
}
.p-datatable-row-toggle-button {
display: inline-flex;
align-items: center;
justify-content: center;
overflow: hidden;
position: relative;
width: dt('datatable.row.toggle.button.size');
height: dt('datatable.row.toggle.button.size');
color: dt('datatable.row.toggle.button.color');
border: 0 none;
background: transparent;
cursor: pointer;
border-radius: dt('datatable.row.toggle.button.border.radius');
transition:
background dt('datatable.transition.duration'),
color dt('datatable.transition.duration'),
border-color dt('datatable.transition.duration'),
outline-color dt('datatable.transition.duration'),
box-shadow dt('datatable.transition.duration');
outline-color: transparent;
user-select: none;
}
.p-datatable-row-toggle-button:enabled:hover {
color: dt('datatable.row.toggle.button.hover.color');
background: dt('datatable.row.toggle.button.hover.background');
}
.p-datatable-tbody > tr.p-datatable-row-selected .p-datatable-row-toggle-button:hover {
background: dt('datatable.row.toggle.button.selected.hover.background');
color: dt('datatable.row.toggle.button.selected.hover.color');
}
.p-datatable-row-toggle-button:focus-visible {
box-shadow: dt('datatable.row.toggle.button.focus.ring.shadow');
outline: dt('datatable.row.toggle.button.focus.ring.width') dt('datatable.row.toggle.button.focus.ring.style') dt('datatable.row.toggle.button.focus.ring.color');
outline-offset: dt('datatable.row.toggle.button.focus.ring.offset');
}
.p-datatable-row-toggle-icon:dir(rtl) {
transform: rotate(180deg);
}
`;var qR=`
.p-checkbox {
position: relative;
display: inline-flex;
user-select: none;
vertical-align: bottom;
width: dt('checkbox.width');
height: dt('checkbox.height');
}
.p-checkbox-input {
cursor: pointer;
appearance: none;
position: absolute;
inset-block-start: 0;
inset-inline-start: 0;
width: 100%;
height: 100%;
padding: 0;
margin: 0;
opacity: 0;
z-index: 1;
outline: 0 none;
border: 1px solid transparent;
border-radius: dt('checkbox.border.radius');
}
.p-checkbox-box {
display: flex;
justify-content: center;
align-items: center;
border-radius: dt('checkbox.border.radius');
border: 1px solid dt('checkbox.border.color');
background: dt('checkbox.background');
width: dt('checkbox.width');
height: dt('checkbox.height');
transition:
background dt('checkbox.transition.duration'),
color dt('checkbox.transition.duration'),
border-color dt('checkbox.transition.duration'),
box-shadow dt('checkbox.transition.duration'),
outline-color dt('checkbox.transition.duration');
outline-color: transparent;
box-shadow: dt('checkbox.shadow');
}
.p-checkbox-icon {
transition-duration: dt('checkbox.transition.duration');
color: dt('checkbox.icon.color');
font-size: dt('checkbox.icon.size');
width: dt('checkbox.icon.size');
height: dt('checkbox.icon.size');
}
.p-checkbox:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {
border-color: dt('checkbox.hover.border.color');
}
.p-checkbox-checked .p-checkbox-box {
border-color: dt('checkbox.checked.border.color');
background: dt('checkbox.checked.background');
}
.p-checkbox-checked .p-checkbox-icon {
color: dt('checkbox.icon.checked.color');
}
.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {
background: dt('checkbox.checked.hover.background');
border-color: dt('checkbox.checked.hover.border.color');
}
.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-icon {
color: dt('checkbox.icon.checked.hover.color');
}
.p-checkbox:not(.p-disabled):has(.p-checkbox-input:focus-visible) .p-checkbox-box {
border-color: dt('checkbox.focus.border.color');
box-shadow: dt('checkbox.focus.ring.shadow');
outline: dt('checkbox.focus.ring.width') dt('checkbox.focus.ring.style') dt('checkbox.focus.ring.color');
outline-offset: dt('checkbox.focus.ring.offset');
}
.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:focus-visible) .p-checkbox-box {
border-color: dt('checkbox.checked.focus.border.color');
}
.p-checkbox.p-invalid > .p-checkbox-box {
border-color: dt('checkbox.invalid.border.color');
}
.p-checkbox.p-variant-filled .p-checkbox-box {
background: dt('checkbox.filled.background');
}
.p-checkbox-checked.p-variant-filled .p-checkbox-box {
background: dt('checkbox.checked.background');
}
.p-checkbox-checked.p-variant-filled:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {
background: dt('checkbox.checked.hover.background');
}
.p-checkbox.p-disabled {
opacity: 1;
}
.p-checkbox.p-disabled .p-checkbox-box {
background: dt('checkbox.disabled.background');
border-color: dt('checkbox.checked.disabled.border.color');
}
.p-checkbox.p-disabled .p-checkbox-box .p-checkbox-icon {
color: dt('checkbox.icon.disabled.color');
}
.p-checkbox-sm,
.p-checkbox-sm .p-checkbox-box {
width: dt('checkbox.sm.width');
height: dt('checkbox.sm.height');
}
.p-checkbox-sm .p-checkbox-icon {
font-size: dt('checkbox.icon.sm.size');
width: dt('checkbox.icon.sm.size');
height: dt('checkbox.icon.sm.size');
}
.p-checkbox-lg,
.p-checkbox-lg .p-checkbox-box {
width: dt('checkbox.lg.width');
height: dt('checkbox.lg.height');
}
.p-checkbox-lg .p-checkbox-icon {
font-size: dt('checkbox.icon.lg.size');
width: dt('checkbox.icon.lg.size');
height: dt('checkbox.icon.lg.size');
}
`;var CW=["icon"],xW=["input"],TW=(t,n)=>({checked:t,class:n});function EW(t,n){if(t&1&&X(0,"span",8),t&2){let e=m(3);k(e.cx("icon")),h("ngClass",e.checkboxIcon)("pBind",e.ptm("icon"))}}function SW(t,n){if(t&1&&(G(),X(0,"svg",9)),t&2){let e=m(3);k(e.cx("icon")),h("pBind",e.ptm("icon"))}}function IW(t,n){if(t&1&&(ie(0),C(1,EW,1,4,"span",6)(2,SW,1,3,"svg",7),oe()),t&2){let e=m(2);g(),h("ngIf",e.checkboxIcon),g(),h("ngIf",!e.checkboxIcon)}}function DW(t,n){if(t&1&&(G(),X(0,"svg",10)),t&2){let e=m(2);k(e.cx("icon")),h("pBind",e.ptm("icon"))}}function kW(t,n){if(t&1&&(ie(0),C(1,IW,3,2,"ng-container",3)(2,DW,1,3,"svg",5),oe()),t&2){let e=m();g(),h("ngIf",e.checked),g(),h("ngIf",e._indeterminate())}}function MW(t,n){}function OW(t,n){t&1&&C(0,MW,0,0,"ng-template")}var RW=`
${qR}
/* For PrimeNG */
p-checkBox.ng-invalid.ng-dirty .p-checkbox-box,
p-check-box.ng-invalid.ng-dirty .p-checkbox-box,
p-checkbox.ng-invalid.ng-dirty .p-checkbox-box {
border-color: dt('checkbox.invalid.border.color');
}
`,PW={root:({instance:t})=>["p-checkbox p-component",{"p-checkbox-checked p-highlight":t.checked,"p-disabled":t.$disabled(),"p-invalid":t.invalid(),"p-variant-filled":t.$variant()==="filled","p-checkbox-sm p-inputfield-sm":t.size()==="small","p-checkbox-lg p-inputfield-lg":t.size()==="large"}],box:"p-checkbox-box",input:"p-checkbox-input",icon:"p-checkbox-icon"},QR=(()=>{class t extends Oe{name="checkbox";style=RW;classes=PW;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var KR=new H("CHECKBOX_INSTANCE"),AW={provide:Nn,useExisting:Ht(()=>YR),multi:!0},YR=(()=>{class t extends eo{hostName="";value;binary;ariaLabelledBy;ariaLabel;tabindex;inputId;inputStyle;styleClass;inputClass;indeterminate=!1;formControl;checkboxIcon;readonly;autofocus;trueValue=!0;falseValue=!1;variant=ae();size=ae();onChange=new z;onFocus=new z;onBlur=new z;inputViewChild;get checked(){return this._indeterminate()?!1:this.binary?this.modelValue()===this.trueValue:yk(this.value,this.modelValue())}_indeterminate=ge(void 0);checkboxIconTemplate;templates;_checkboxIconTemplate;focused=!1;_componentStyle=x(QR);bindDirectiveInstance=x(te,{self:!0});$pcCheckbox=x(KR,{optional:!0,skipSelf:!0})??void 0;$variant=We(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());onAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"icon":this._checkboxIconTemplate=e.template;break;case"checkboxicon":this._checkboxIconTemplate=e.template;break}})}onChanges(e){e.indeterminate&&this._indeterminate.set(e.indeterminate.currentValue)}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}updateModel(e){let r,i=this.injector.get(Yn,null,{optional:!0,self:!0}),o=i&&!this.formControl?i.value:this.modelValue();this.binary?(r=this._indeterminate()?this.trueValue:this.checked?this.falseValue:this.trueValue,this.writeModelValue(r),this.onModelChange(r)):(this.checked||this._indeterminate()?r=o.filter(s=>!nr(s,this.value)):r=o?[...o,this.value]:[this.value],this.onModelChange(r),this.writeModelValue(r),this.formControl&&this.formControl.setValue(r)),this._indeterminate()&&this._indeterminate.set(!1),this.onChange.emit({checked:r,originalEvent:e})}handleChange(e){this.readonly||this.updateModel(e)}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),this.onModelTouched()}focus(){this.inputViewChild?.nativeElement.focus()}writeControlValue(e,r){r(e),this.cd.markForCheck()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["p-checkbox"],["p-checkBox"],["p-check-box"]],contentQueries:function(r,i,o){if(r&1&&(V(o,CW,4),V(o,xt,4)),r&2){let s;M(s=O())&&(i.checkboxIconTemplate=s.first),M(s=O())&&(i.templates=s)}},viewQuery:function(r,i){if(r&1&&ct(xW,5),r&2){let o;M(o=O())&&(i.inputViewChild=o.first)}},hostVars:5,hostBindings:function(r,i){r&2&&(J("data-p-highlight",i.checked)("data-p-checked",i.checked)("data-p-disabled",i.$disabled()),k(i.cn(i.cx("root"),i.styleClass)))},inputs:{hostName:"hostName",value:"value",binary:[2,"binary","binary",R],ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:[2,"tabindex","tabindex",Me],inputId:"inputId",inputStyle:"inputStyle",styleClass:"styleClass",inputClass:"inputClass",indeterminate:[2,"indeterminate","indeterminate",R],formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:[2,"readonly","readonly",R],autofocus:[2,"autofocus","autofocus",R],trueValue:"trueValue",falseValue:"falseValue",variant:[1,"variant"],size:[1,"size"]},outputs:{onChange:"onChange",onFocus:"onFocus",onBlur:"onBlur"},features:[xe([AW,QR,{provide:KR,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],decls:5,vars:24,consts:[["input",""],["type","checkbox",3,"focus","blur","change","checked","pBind"],[3,"pBind"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","minus",3,"class","pBind",4,"ngIf"],[3,"class","ngClass","pBind",4,"ngIf"],["data-p-icon","check",3,"class","pBind",4,"ngIf"],[3,"ngClass","pBind"],["data-p-icon","check",3,"pBind"],["data-p-icon","minus",3,"pBind"]],template:function(r,i){if(r&1){let o=se();E(0,"input",1,0),q("focus",function(a){return S(o),I(i.onInputFocus(a))})("blur",function(a){return S(o),I(i.onInputBlur(a))})("change",function(a){return S(o),I(i.handleChange(a))}),T(),E(2,"div",2),C(3,kW,3,2,"ng-container",3)(4,OW,1,0,null,4),T()}r&2&&(Dn(i.inputStyle),k(i.cn(i.cx("input"),i.inputClass)),h("checked",i.checked)("pBind",i.ptm("input")),J("id",i.inputId)("value",i.value)("name",i.name())("tabindex",i.tabindex)("required",i.required()?"":void 0)("readonly",i.readonly?"":void 0)("disabled",i.$disabled()?"":void 0)("aria-labelledby",i.ariaLabelledBy)("aria-label",i.ariaLabel),g(2),k(i.cx("box")),h("pBind",i.ptm("box")),g(),h("ngIf",!i.checkboxIconTemplate&&!i._checkboxIconTemplate),g(),h("ngTemplateOutlet",i.checkboxIconTemplate||i._checkboxIconTemplate)("ngTemplateOutletContext",Dt(21,TW,i.checked,i.cx("icon"))))},dependencies:[Qe,ei,Ut,kt,Te,Yh,oM,Wt,te],encapsulation:2,changeDetection:0})}return t})(),ZR=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({imports:[YR,Te,Te]})}return t})();var JR=`
.p-datepicker {
display: inline-flex;
max-width: 100%;
}
.p-datepicker:has(.p-datepicker-dropdown) .p-datepicker-input {
border-start-end-radius: 0;
border-end-end-radius: 0;
}
.p-datepicker-dropdown {
cursor: pointer;
display: inline-flex;
user-select: none;
align-items: center;
justify-content: center;
overflow: hidden;
position: relative;
width: dt('datepicker.dropdown.width');
border-start-end-radius: dt('datepicker.dropdown.border.radius');
border-end-end-radius: dt('datepicker.dropdown.border.radius');
background: dt('datepicker.dropdown.background');
border: 1px solid dt('datepicker.dropdown.border.color');
border-inline-start: 0 none;
color: dt('datepicker.dropdown.color');
transition:
background dt('datepicker.transition.duration'),
color dt('datepicker.transition.duration'),
border-color dt('datepicker.transition.duration'),
outline-color dt('datepicker.transition.duration');
outline-color: transparent;
}
.p-datepicker-dropdown:not(:disabled):hover {
background: dt('datepicker.dropdown.hover.background');
border-color: dt('datepicker.dropdown.hover.border.color');
color: dt('datepicker.dropdown.hover.color');
}
.p-datepicker-dropdown:not(:disabled):active {
background: dt('datepicker.dropdown.active.background');
border-color: dt('datepicker.dropdown.active.border.color');
color: dt('datepicker.dropdown.active.color');
}
.p-datepicker-dropdown:focus-visible {
box-shadow: dt('datepicker.dropdown.focus.ring.shadow');
outline: dt('datepicker.dropdown.focus.ring.width') dt('datepicker.dropdown.focus.ring.style') dt('datepicker.dropdown.focus.ring.color');
outline-offset: dt('datepicker.dropdown.focus.ring.offset');
}
.p-datepicker:has(.p-datepicker-input-icon-container) {
position: relative;
}
.p-datepicker:has(.p-datepicker-input-icon-container) .p-datepicker-input {
padding-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
}
.p-datepicker-input-icon-container {
cursor: pointer;
position: absolute;
top: 50%;
inset-inline-end: dt('form.field.padding.x');
margin-block-start: calc(-1 * (dt('icon.size') / 2));
color: dt('datepicker.input.icon.color');
line-height: 1;
z-index: 1;
}
.p-datepicker:has(.p-datepicker-input:disabled) .p-datepicker-input-icon-container {
cursor: default;
}
.p-datepicker-fluid {
display: flex;
}
.p-datepicker-fluid:has(.p-datepicker-dropdown) .p-datepicker-input {
flex: 1 1 auto;
width: 1%;
}
.p-datepicker .p-datepicker-panel {
min-width: 100%;
}
.p-datepicker-panel {
width: auto;
padding: dt('datepicker.panel.padding');
background: dt('datepicker.panel.background');
color: dt('datepicker.panel.color');
border: 1px solid dt('datepicker.panel.border.color');
border-radius: dt('datepicker.panel.border.radius');
box-shadow: dt('datepicker.panel.shadow');
}
.p-datepicker-panel-inline {
display: inline-block;
overflow-x: auto;
box-shadow: none;
}
.p-datepicker-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: dt('datepicker.header.padding');
background: dt('datepicker.header.background');
color: dt('datepicker.header.color');
border-block-end: 1px solid dt('datepicker.header.border.color');
}
.p-datepicker-next-button:dir(rtl) {
order: -1;
}
.p-datepicker-prev-button:dir(rtl) {
order: 1;
}
.p-datepicker-title {
display: flex;
align-items: center;
justify-content: space-between;
gap: dt('datepicker.title.gap');
font-weight: dt('datepicker.title.font.weight');
}
.p-datepicker-select-year,
.p-datepicker-select-month {
border: none;
background: transparent;
margin: 0;
cursor: pointer;
font-weight: inherit;
transition:
background dt('datepicker.transition.duration'),
color dt('datepicker.transition.duration'),
border-color dt('datepicker.transition.duration'),
outline-color dt('datepicker.transition.duration'),
box-shadow dt('datepicker.transition.duration');
}
.p-datepicker-select-month {
padding: dt('datepicker.select.month.padding');
color: dt('datepicker.select.month.color');
border-radius: dt('datepicker.select.month.border.radius');
}
.p-datepicker-select-year {
padding: dt('datepicker.select.year.padding');
color: dt('datepicker.select.year.color');
border-radius: dt('datepicker.select.year.border.radius');
}
.p-datepicker-select-month:enabled:hover {
background: dt('datepicker.select.month.hover.background');
color: dt('datepicker.select.month.hover.color');
}
.p-datepicker-select-year:enabled:hover {
background: dt('datepicker.select.year.hover.background');
color: dt('datepicker.select.year.hover.color');
}
.p-datepicker-select-month:focus-visible,
.p-datepicker-select-year:focus-visible {
box-shadow: dt('datepicker.date.focus.ring.shadow');
outline: dt('datepicker.date.focus.ring.width') dt('datepicker.date.focus.ring.style') dt('datepicker.date.focus.ring.color');
outline-offset: dt('datepicker.date.focus.ring.offset');
}
.p-datepicker-calendar-container {
display: flex;
}
.p-datepicker-calendar-container .p-datepicker-calendar {
flex: 1 1 auto;
border-inline-start: 1px solid dt('datepicker.group.border.color');
padding-inline-end: dt('datepicker.group.gap');
padding-inline-start: dt('datepicker.group.gap');
}
.p-datepicker-calendar-container .p-datepicker-calendar:first-child {
padding-inline-start: 0;
border-inline-start: 0 none;
}
.p-datepicker-calendar-container .p-datepicker-calendar:last-child {
padding-inline-end: 0;
}
.p-datepicker-day-view {
width: 100%;
border-collapse: collapse;
font-size: 1rem;
margin: dt('datepicker.day.view.margin');
}
.p-datepicker-weekday-cell {
padding: dt('datepicker.week.day.padding');
}
.p-datepicker-weekday {
font-weight: dt('datepicker.week.day.font.weight');
color: dt('datepicker.week.day.color');
}
.p-datepicker-day-cell {
padding: dt('datepicker.date.padding');
}
.p-datepicker-day {
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
margin: 0 auto;
overflow: hidden;
position: relative;
width: dt('datepicker.date.width');
height: dt('datepicker.date.height');
border-radius: dt('datepicker.date.border.radius');
transition:
background dt('datepicker.transition.duration'),
color dt('datepicker.transition.duration'),
border-color dt('datepicker.transition.duration'),
box-shadow dt('datepicker.transition.duration'),
outline-color dt('datepicker.transition.duration');
border: 1px solid transparent;
outline-color: transparent;
color: dt('datepicker.date.color');
}
.p-datepicker-day:not(.p-datepicker-day-selected):not(.p-disabled):hover {
background: dt('datepicker.date.hover.background');
color: dt('datepicker.date.hover.color');
}
.p-datepicker-day:focus-visible {
box-shadow: dt('datepicker.date.focus.ring.shadow');
outline: dt('datepicker.date.focus.ring.width') dt('datepicker.date.focus.ring.style') dt('datepicker.date.focus.ring.color');
outline-offset: dt('datepicker.date.focus.ring.offset');
}
.p-datepicker-day-selected {
background: dt('datepicker.date.selected.background');
color: dt('datepicker.date.selected.color');
}
.p-datepicker-day-selected-range {
background: dt('datepicker.date.range.selected.background');
color: dt('datepicker.date.range.selected.color');
}
.p-datepicker-today > .p-datepicker-day {
background: dt('datepicker.today.background');
color: dt('datepicker.today.color');
}
.p-datepicker-today > .p-datepicker-day-selected {
background: dt('datepicker.date.selected.background');
color: dt('datepicker.date.selected.color');
}
.p-datepicker-today > .p-datepicker-day-selected-range {
background: dt('datepicker.date.range.selected.background');
color: dt('datepicker.date.range.selected.color');
}
.p-datepicker-weeknumber {
text-align: center;
}
.p-datepicker-month-view {
margin: dt('datepicker.month.view.margin');
}
.p-datepicker-month {
width: 33.3%;
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
overflow: hidden;
position: relative;
padding: dt('datepicker.month.padding');
transition:
background dt('datepicker.transition.duration'),
color dt('datepicker.transition.duration'),
border-color dt('datepicker.transition.duration'),
box-shadow dt('datepicker.transition.duration'),
outline-color dt('datepicker.transition.duration');
border-radius: dt('datepicker.month.border.radius');
outline-color: transparent;
color: dt('datepicker.date.color');
}
.p-datepicker-month:not(.p-disabled):not(.p-datepicker-month-selected):hover {
color: dt('datepicker.date.hover.color');
background: dt('datepicker.date.hover.background');
}
.p-datepicker-month-selected {
color: dt('datepicker.date.selected.color');
background: dt('datepicker.date.selected.background');
}
.p-datepicker-month:not(.p-disabled):focus-visible {
box-shadow: dt('datepicker.date.focus.ring.shadow');
outline: dt('datepicker.date.focus.ring.width') dt('datepicker.date.focus.ring.style') dt('datepicker.date.focus.ring.color');
outline-offset: dt('datepicker.date.focus.ring.offset');
}
.p-datepicker-year-view {
margin: dt('datepicker.year.view.margin');
}
.p-datepicker-year {
width: 50%;
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
overflow: hidden;
position: relative;
padding: dt('datepicker.year.padding');
transition:
background dt('datepicker.transition.duration'),
color dt('datepicker.transition.duration'),
border-color dt('datepicker.transition.duration'),
box-shadow dt('datepicker.transition.duration'),
outline-color dt('datepicker.transition.duration');
border-radius: dt('datepicker.year.border.radius');
outline-color: transparent;
color: dt('datepicker.date.color');
}
.p-datepicker-year:not(.p-disabled):not(.p-datepicker-year-selected):hover {
color: dt('datepicker.date.hover.color');
background: dt('datepicker.date.hover.background');
}
.p-datepicker-year-selected {
color: dt('datepicker.date.selected.color');
background: dt('datepicker.date.selected.background');
}
.p-datepicker-year:not(.p-disabled):focus-visible {
box-shadow: dt('datepicker.date.focus.ring.shadow');
outline: dt('datepicker.date.focus.ring.width') dt('datepicker.date.focus.ring.style') dt('datepicker.date.focus.ring.color');
outline-offset: dt('datepicker.date.focus.ring.offset');
}
.p-datepicker-buttonbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: dt('datepicker.buttonbar.padding');
border-block-start: 1px solid dt('datepicker.buttonbar.border.color');
}
.p-datepicker-buttonbar .p-button {
width: auto;
}
.p-datepicker-time-picker {
display: flex;
justify-content: center;
align-items: center;
border-block-start: 1px solid dt('datepicker.time.picker.border.color');
padding: 0;
gap: dt('datepicker.time.picker.gap');
}
.p-datepicker-calendar-container + .p-datepicker-time-picker {
padding: dt('datepicker.time.picker.padding');
}
.p-datepicker-time-picker > div {
display: flex;
align-items: center;
flex-direction: column;
gap: dt('datepicker.time.picker.button.gap');
}
.p-datepicker-time-picker span {
font-size: 1rem;
}
.p-datepicker-timeonly .p-datepicker-time-picker {
border-block-start: 0 none;
}
.p-datepicker-time-picker:dir(rtl) {
flex-direction: row-reverse;
}
.p-datepicker:has(.p-inputtext-sm) .p-datepicker-dropdown {
width: dt('datepicker.dropdown.sm.width');
}
.p-datepicker:has(.p-inputtext-sm) .p-datepicker-dropdown .p-icon,
.p-datepicker:has(.p-inputtext-sm) .p-datepicker-input-icon {
font-size: dt('form.field.sm.font.size');
width: dt('form.field.sm.font.size');
height: dt('form.field.sm.font.size');
}
.p-datepicker:has(.p-inputtext-lg) .p-datepicker-dropdown {
width: dt('datepicker.dropdown.lg.width');
}
.p-datepicker:has(.p-inputtext-lg) .p-datepicker-dropdown .p-icon,
.p-datepicker:has(.p-inputtext-lg) .p-datepicker-input-icon {
font-size: dt('form.field.lg.font.size');
width: dt('form.field.lg.font.size');
height: dt('form.field.lg.font.size');
}
.p-datepicker-clear-icon {
position: absolute;
top: 50%;
margin-top: -0.5rem;
cursor: pointer;
color: dt('form.field.icon.color');
inset-inline-end: dt('form.field.padding.x');
}
.p-datepicker:has(.p-datepicker-dropdown) .p-datepicker-clear-icon {
inset-inline-end: calc(dt('datepicker.dropdown.width') + dt('form.field.padding.x'));
}
.p-datepicker:has(.p-datepicker-input-icon-container) .p-datepicker-clear-icon {
inset-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
}
.p-datepicker:has(.p-datepicker-clear-icon) .p-datepicker-input {
padding-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
}
.p-datepicker:has(.p-datepicker-input-icon-container):has(.p-datepicker-clear-icon) .p-datepicker-input {
padding-inline-end: calc((dt('form.field.padding.x') * 3) + calc(dt('icon.size') * 2));
}
.p-inputgroup .p-datepicker-dropdown {
border-radius: 0;
}
.p-inputgroup > .p-datepicker:last-child:has(.p-datepicker-dropdown) > .p-datepicker-input {
border-start-end-radius: 0;
border-end-end-radius: 0;
}
.p-inputgroup > .p-datepicker:last-child .p-datepicker-dropdown {
border-start-end-radius: dt('datepicker.dropdown.border.radius');
border-end-end-radius: dt('datepicker.dropdown.border.radius');
}
`;var NW=["date"],FW=["header"],LW=["footer"],BW=["disabledDate"],VW=["decade"],jW=["previousicon"],zW=["nexticon"],HW=["triggericon"],$W=["clearicon"],UW=["decrementicon"],WW=["incrementicon"],GW=["inputicon"],qW=["buttonbar"],QW=["inputfield"],KW=["contentWrapper"],YW=[[["p-header"]],[["p-footer"]]],ZW=["p-header","p-footer"],JW=t=>({clickCallBack:t}),XW=(t,n)=>({showTransitionParams:t,hideTransitionParams:n}),eG=t=>({value:"visible",params:t}),XR=t=>({visibility:t}),Dw=t=>({$implicit:t}),tG=t=>({date:t}),nG=(t,n)=>({month:t,index:n}),rG=t=>({year:t}),iG=(t,n)=>({todayCallback:t,clearCallback:n});function oG(t,n){if(t&1){let e=se();G(),E(0,"svg",10),q("click",function(){S(e);let i=m(3);return I(i.clear())}),T()}if(t&2){let e=m(3);k(e.cx("clearIcon")),h("pBind",e.ptm("inputIcon"))}}function sG(t,n){}function aG(t,n){t&1&&C(0,sG,0,0,"ng-template")}function lG(t,n){if(t&1){let e=se();E(0,"span",11),q("click",function(){S(e);let i=m(3);return I(i.clear())}),C(1,aG,1,0,null,12),T()}if(t&2){let e=m(3);k(e.cx("clearIcon")),h("pBind",e.ptm("inputIcon")),g(),h("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function cG(t,n){if(t&1&&(ie(0),C(1,oG,1,3,"svg",8)(2,lG,2,4,"span",9),oe()),t&2){let e=m(2);g(),h("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),g(),h("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function dG(t,n){if(t&1&&X(0,"span",15),t&2){let e=m(3);h("ngClass",e.icon)("pBind",e.ptm("dropdownIcon"))}}function uG(t,n){if(t&1&&(G(),X(0,"svg",17)),t&2){let e=m(4);h("pBind",e.ptm("dropdownIcon"))}}function pG(t,n){}function fG(t,n){t&1&&C(0,pG,0,0,"ng-template")}function hG(t,n){if(t&1&&(ie(0),C(1,uG,1,1,"svg",16)(2,fG,1,0,null,12),oe()),t&2){let e=m(3);g(),h("ngIf",!e.triggerIconTemplate&&!e._triggerIconTemplate),g(),h("ngTemplateOutlet",e.triggerIconTemplate||e._triggerIconTemplate)}}function mG(t,n){if(t&1){let e=se();E(0,"button",13),q("click",function(i){S(e),m();let o=pn(1),s=m();return I(s.onButtonClick(i,o))}),C(1,dG,1,2,"span",14)(2,hG,3,2,"ng-container",6),T()}if(t&2){let e=m(2);k(e.cx("dropdown")),h("disabled",e.$disabled())("pBind",e.ptm("dropdown")),J("aria-label",e.iconButtonAriaLabel)("aria-expanded",e.overlayVisible??!1)("aria-controls",e.overlayVisible?e.panelId:null),g(),h("ngIf",e.icon),g(),h("ngIf",!e.icon)}}function gG(t,n){if(t&1){let e=se();G(),E(0,"svg",21),q("click",function(i){S(e);let o=m(3);return I(o.onButtonClick(i))}),T()}if(t&2){let e=m(3);k(e.cx("inputIcon")),h("pBind",e.ptm("inputIcon"))}}function yG(t,n){t&1&&ne(0)}function bG(t,n){if(t&1&&(ie(0),E(1,"span",18),C(2,gG,1,3,"svg",19)(3,yG,1,0,"ng-container",20),T(),oe()),t&2){let e=m(2);g(),k(e.cx("inputIconContainer")),h("pBind",e.ptm("inputIconContainer")),g(),h("ngIf",!e.inputIconTemplate&&!e._inputIconTemplate),g(),h("ngTemplateOutlet",e.inputIconTemplate||e._inputIconTemplate)("ngTemplateOutletContext",Ee(6,JW,e.onButtonClick.bind(e)))}}function vG(t,n){if(t&1){let e=se();E(0,"input",5,0),q("focus",function(i){S(e);let o=m();return I(o.onInputFocus(i))})("keydown",function(i){S(e);let o=m();return I(o.onInputKeydown(i))})("click",function(){S(e);let i=m();return I(i.onInputClick())})("blur",function(i){S(e);let o=m();return I(o.onInputBlur(i))})("input",function(i){S(e);let o=m();return I(o.onUserInput(i))}),T(),C(2,cG,3,2,"ng-container",6)(3,mG,3,9,"button",7)(4,bG,4,8,"ng-container",6)}if(t&2){let e=m();k(e.cn(e.cx("pcInputText"),e.inputStyleClass)),h("pSize",e.size())("value",e.inputFieldValue)("ngStyle",e.inputStyle)("pAutoFocus",e.autofocus)("variant",e.$variant())("fluid",e.hasFluid)("invalid",e.invalid())("pt",e.ptm("pcInputText")),J("size",e.inputSize())("id",e.inputId)("name",e.name())("aria-required",e.required())("aria-expanded",e.overlayVisible??!1)("aria-controls",e.overlayVisible?e.panelId:null)("aria-labelledby",e.ariaLabelledBy)("aria-label",e.ariaLabel)("required",e.required()?"":void 0)("readonly",e.readonlyInput?"":void 0)("disabled",e.$disabled()?"":void 0)("placeholder",e.placeholder)("tabindex",e.tabindex)("inputmode",e.touchUI?"off":null),g(2),h("ngIf",e.showClear&&!e.$disabled()&&(e.inputfieldViewChild==null||e.inputfieldViewChild.nativeElement==null?null:e.inputfieldViewChild.nativeElement.value)),g(),h("ngIf",e.showIcon&&e.iconDisplay==="button"),g(),h("ngIf",e.iconDisplay==="input"&&e.showIcon)}}function _G(t,n){t&1&&ne(0)}function wG(t,n){t&1&&(G(),X(0,"svg",30))}function CG(t,n){}function xG(t,n){t&1&&C(0,CG,0,0,"ng-template")}function TG(t,n){if(t&1&&(E(0,"span"),C(1,xG,1,0,null,12),T()),t&2){let e=m(5);g(),h("ngTemplateOutlet",e.previousIconTemplate||e._previousIconTemplate)}}function EG(t,n){if(t&1&&C(0,wG,1,0,"svg",29)(1,TG,2,1,"span",6),t&2){let e=m(4);h("ngIf",!e.previousIconTemplate&&!e._previousIconTemplate),g(),h("ngIf",e.previousIconTemplate||e._previousIconTemplate)}}function SG(t,n){if(t&1){let e=se();E(0,"button",31),q("click",function(i){S(e);let o=m(4);return I(o.switchToMonthView(i))})("keydown",function(i){S(e);let o=m(4);return I(o.onContainerButtonKeydown(i))}),ce(1),T()}if(t&2){let e=m().$implicit,r=m(3);k(r.cx("selectMonth")),h("pBind",r.ptm("selectMonth")),J("disabled",r.switchViewButtonDisabled()?"":void 0)("aria-label",r.getTranslation("chooseMonth"))("data-pc-group-section","navigator"),g(),$t(" ",r.getMonthName(e.month)," ")}}function IG(t,n){if(t&1){let e=se();E(0,"button",31),q("click",function(i){S(e);let o=m(4);return I(o.switchToYearView(i))})("keydown",function(i){S(e);let o=m(4);return I(o.onContainerButtonKeydown(i))}),ce(1),T()}if(t&2){let e=m().$implicit,r=m(3);k(r.cx("selectYear")),h("pBind",r.ptm("selectYear")),J("disabled",r.switchViewButtonDisabled()?"":void 0)("aria-label",r.getTranslation("chooseYear"))("data-pc-group-section","navigator"),g(),$t(" ",r.getYear(e)," ")}}function DG(t,n){if(t&1&&(ie(0),ce(1),oe()),t&2){let e=m(5);g(),_l("",e.yearPickerValues()[0]," - ",e.yearPickerValues()[e.yearPickerValues().length-1])}}function kG(t,n){t&1&&ne(0)}function MG(t,n){if(t&1&&(E(0,"span",18),C(1,DG,2,2,"ng-container",6)(2,kG,1,0,"ng-container",20),T()),t&2){let e=m(4);k(e.cx("decade")),h("pBind",e.ptm("decade")),g(),h("ngIf",!e.decadeTemplate&&!e._decadeTemplate),g(),h("ngTemplateOutlet",e.decadeTemplate||e._decadeTemplate)("ngTemplateOutletContext",Ee(6,Dw,e.yearPickerValues))}}function OG(t,n){t&1&&(G(),X(0,"svg",33))}function RG(t,n){}function PG(t,n){t&1&&C(0,RG,0,0,"ng-template")}function AG(t,n){if(t&1&&(ie(0),C(1,PG,1,0,null,12),oe()),t&2){let e=m(5);g(),h("ngTemplateOutlet",e.nextIconTemplate||e._nextIconTemplate)}}function NG(t,n){if(t&1&&C(0,OG,1,0,"svg",32)(1,AG,2,1,"ng-container",6),t&2){let e=m(4);h("ngIf",!e.nextIconTemplate&&!e._nextIconTemplate),g(),h("ngIf",e.nextIconTemplate||e._nextIconTemplate)}}function FG(t,n){if(t&1&&(E(0,"th",18)(1,"span",18),ce(2),T()()),t&2){let e=m(5);k(e.cx("weekHeader")),h("pBind",e.ptm("weekHeader")),g(),h("pBind",e.ptm("weekHeaderLabel")),g(),Ze(e.getTranslation("weekHeader"))}}function LG(t,n){if(t&1&&(E(0,"th",37)(1,"span",18),ce(2),T()()),t&2){let e=n.$implicit,r=m(5);k(r.cx("weekDayCell")),h("pBind",r.ptm("weekDayCell")),g(),k(r.cx("weekDay")),h("pBind",r.ptm("weekDay")),g(),Ze(e)}}function BG(t,n){if(t&1&&(E(0,"td",18)(1,"span",18),ce(2),T()()),t&2){let e=m().index,r=m(2).$implicit,i=m(3);k(i.cx("weekNumber")),h("pBind",i.ptm("weekNumber")),g(),k(i.cx("weekLabelContainer")),h("pBind",i.ptm("weekLabelContainer")),g(),$t(" ",r.weekNumbers[e]," ")}}function VG(t,n){if(t&1&&(ie(0),ce(1),oe()),t&2){let e=m(2).$implicit;g(),Ze(e.day)}}function jG(t,n){t&1&&ne(0)}function zG(t,n){if(t&1&&(ie(0),C(1,jG,1,0,"ng-container",20),oe()),t&2){let e=m(2).$implicit,r=m(6);g(),h("ngTemplateOutlet",r.dateTemplate||r._dateTemplate)("ngTemplateOutletContext",Ee(2,Dw,e))}}function HG(t,n){t&1&&ne(0)}function $G(t,n){if(t&1&&(ie(0),C(1,HG,1,0,"ng-container",20),oe()),t&2){let e=m(2).$implicit,r=m(6);g(),h("ngTemplateOutlet",r.disabledDateTemplate||r._disabledDateTemplate)("ngTemplateOutletContext",Ee(2,Dw,e))}}function UG(t,n){if(t&1&&(E(0,"div",40),ce(1),T()),t&2){let e=m(2).$implicit;g(),$t(" ",e.day," ")}}function WG(t,n){if(t&1){let e=se();ie(0),E(1,"span",38),q("click",function(i){S(e);let o=m().$implicit,s=m(6);return I(s.onDateSelect(i,o))})("keydown",function(i){S(e);let o=m().$implicit,s=m(3).index,a=m(3);return I(a.onDateCellKeydown(i,o,s))}),C(2,VG,2,1,"ng-container",6)(3,zG,2,4,"ng-container",6)(4,$G,2,4,"ng-container",6),T(),C(5,UG,2,1,"div",39),oe()}if(t&2){let e=m().$implicit,r=m(6);g(),h("ngClass",r.dayClass(e))("pBind",r.ptm("day")),J("data-date",r.formatDateKey(r.formatDateMetaToDate(e))),g(),h("ngIf",!r.dateTemplate&&!r._dateTemplate&&(e.selectable||!r.disabledDateTemplate&&!r._disabledDateTemplate)),g(),h("ngIf",e.selectable||!r.disabledDateTemplate&&!r._disabledDateTemplate),g(),h("ngIf",!e.selectable),g(),h("ngIf",r.isSelected(e))}}function GG(t,n){if(t&1&&(E(0,"td",18),C(1,WG,6,7,"ng-container",6),T()),t&2){let e=n.$implicit,r=m(6);k(r.cx("dayCell",Ee(5,tG,e))),h("pBind",r.ptm("dayCell")),J("aria-label",e.day),g(),h("ngIf",e.otherMonth?r.showOtherMonths:!0)}}function qG(t,n){if(t&1&&(E(0,"tr",18),C(1,BG,3,7,"td",23)(2,GG,2,7,"td",24),T()),t&2){let e=n.$implicit,r=m(5);h("pBind",r.ptm("tableBodyRow")),g(),h("ngIf",r.showWeek),g(),h("ngForOf",e)}}function QG(t,n){if(t&1&&(E(0,"table",34)(1,"thead",18)(2,"tr",18),C(3,FG,3,5,"th",23)(4,LG,3,7,"th",35),T()(),E(5,"tbody",18),C(6,qG,3,3,"tr",36),T()()),t&2){let e=m().$implicit,r=m(3);k(r.cx("dayView")),h("pBind",r.ptm("table")),g(),h("pBind",r.ptm("tableHeader")),g(),h("pBind",r.ptm("tableHeaderRow")),g(),h("ngIf",r.showWeek),g(),h("ngForOf",r.weekDays),g(),h("pBind",r.ptm("tableBody")),g(),h("ngForOf",e.dates)}}function KG(t,n){if(t&1){let e=se();E(0,"div",18)(1,"div",18)(2,"p-button",25),q("keydown",function(i){S(e);let o=m(3);return I(o.onContainerButtonKeydown(i))})("onClick",function(i){S(e);let o=m(3);return I(o.onPrevButtonClick(i))}),C(3,EG,2,2,"ng-template",null,2,at),T(),E(5,"div",18),C(6,SG,2,7,"button",26)(7,IG,2,7,"button",26)(8,MG,3,8,"span",23),T(),E(9,"p-button",27),q("keydown",function(i){S(e);let o=m(3);return I(o.onContainerButtonKeydown(i))})("onClick",function(i){S(e);let o=m(3);return I(o.onNextButtonClick(i))}),C(10,NG,2,2,"ng-template",null,2,at),T()(),C(12,QG,7,9,"table",28),T()}if(t&2){let e=n.index,r=m(3);k(r.cx("calendar")),h("pBind",r.ptm("calendar")),g(),k(r.cx("header")),h("pBind",r.ptm("header")),g(),h("styleClass",r.cx("pcPrevButton"))("ngStyle",Ee(23,XR,e===0?"visible":"hidden"))("ariaLabel",r.prevIconAriaLabel)("pt",r.ptm("pcPrevButton")),J("data-pc-group-section","navigator"),g(3),k(r.cx("title")),h("pBind",r.ptm("title")),g(),h("ngIf",r.currentView==="date"),g(),h("ngIf",r.currentView!=="year"),g(),h("ngIf",r.currentView==="year"),g(),h("styleClass",r.cx("pcNextButton"))("ngStyle",Ee(25,XR,e===r.months.length-1?"visible":"hidden"))("ariaLabel",r.nextIconAriaLabel)("pt",r.ptm("pcNextButton")),J("data-pc-group-section","navigator"),g(3),h("ngIf",r.currentView==="date")}}function YG(t,n){if(t&1&&(E(0,"div",40),ce(1),T()),t&2){let e=m().$implicit;g(),$t(" ",e," ")}}function ZG(t,n){if(t&1){let e=se();E(0,"span",42),q("click",function(i){let o=S(e).index,s=m(4);return I(s.onMonthSelect(i,o))})("keydown",function(i){let o=S(e).index,s=m(4);return I(s.onMonthCellKeydown(i,o))}),ce(1),C(2,YG,2,1,"div",39),T()}if(t&2){let e=n.$implicit,r=n.index,i=m(4);k(i.cx("month",Dt(5,nG,e,r))),h("pBind",i.ptm("month")),g(),$t(" ",e," "),g(),h("ngIf",i.isMonthSelected(r))}}function JG(t,n){if(t&1&&(E(0,"div",18),C(1,ZG,3,8,"span",41),T()),t&2){let e=m(3);k(e.cx("monthView")),h("pBind",e.ptm("monthView")),g(),h("ngForOf",e.monthPickerValues())}}function XG(t,n){if(t&1&&(E(0,"div",40),ce(1),T()),t&2){let e=m().$implicit;g(),$t(" ",e," ")}}function eq(t,n){if(t&1){let e=se();E(0,"span",42),q("click",function(i){let o=S(e).$implicit,s=m(4);return I(s.onYearSelect(i,o))})("keydown",function(i){let o=S(e).$implicit,s=m(4);return I(s.onYearCellKeydown(i,o))}),ce(1),C(2,XG,2,1,"div",39),T()}if(t&2){let e=n.$implicit,r=m(4);k(r.cx("year",Ee(5,rG,e))),h("pBind",r.ptm("year")),g(),$t(" ",e," "),g(),h("ngIf",r.isYearSelected(e))}}function tq(t,n){if(t&1&&(E(0,"div",18),C(1,eq,3,7,"span",41),T()),t&2){let e=m(3);k(e.cx("yearView")),h("pBind",e.ptm("yearView")),g(),h("ngForOf",e.yearPickerValues())}}function nq(t,n){if(t&1&&(ie(0),E(1,"div",18),C(2,KG,13,27,"div",24),T(),C(3,JG,2,4,"div",23)(4,tq,2,4,"div",23),oe()),t&2){let e=m(2);g(),k(e.cx("calendarContainer")),h("pBind",e.ptm("calendarContainer")),g(),h("ngForOf",e.months),g(),h("ngIf",e.currentView==="month"),g(),h("ngIf",e.currentView==="year")}}function rq(t,n){if(t&1&&(G(),X(0,"svg",46)),t&2){let e=m(4);h("pBind",e.ptm("pcIncrementButton").icon)}}function iq(t,n){}function oq(t,n){t&1&&C(0,iq,0,0,"ng-template")}function sq(t,n){if(t&1&&C(0,rq,1,1,"svg",45)(1,oq,1,0,null,12),t&2){let e=m(3);h("ngIf",!e.incrementIconTemplate&&!e._incrementIconTemplate),g(),h("ngTemplateOutlet",e.incrementIconTemplate||e._incrementIconTemplate)}}function aq(t,n){t&1&&(ie(0),ce(1,"0"),oe())}function lq(t,n){if(t&1&&(G(),X(0,"svg",48)),t&2){let e=m(4);h("pBind",e.ptm("pcDecrementButton").icon)}}function cq(t,n){}function dq(t,n){t&1&&C(0,cq,0,0,"ng-template")}function uq(t,n){if(t&1&&C(0,lq,1,1,"svg",47)(1,dq,1,0,null,12),t&2){let e=m(3);h("ngIf",!e.decrementIconTemplate&&!e._decrementIconTemplate),g(),h("ngTemplateOutlet",e.decrementIconTemplate||e._decrementIconTemplate)}}function pq(t,n){if(t&1&&(G(),X(0,"svg",46)),t&2){let e=m(4);h("pBind",e.ptm("pcIncrementButton").icon)}}function fq(t,n){}function hq(t,n){t&1&&C(0,fq,0,0,"ng-template")}function mq(t,n){if(t&1&&C(0,pq,1,1,"svg",45)(1,hq,1,0,null,12),t&2){let e=m(3);h("ngIf",!e.incrementIconTemplate&&!e._incrementIconTemplate),g(),h("ngTemplateOutlet",e.incrementIconTemplate||e._incrementIconTemplate)}}function gq(t,n){t&1&&(ie(0),ce(1,"0"),oe())}function yq(t,n){if(t&1&&(G(),X(0,"svg",48)),t&2){let e=m(4);h("pBind",e.ptm("pcDecrementButton").icon)}}function bq(t,n){}function vq(t,n){t&1&&C(0,bq,0,0,"ng-template")}function _q(t,n){if(t&1&&C(0,yq,1,1,"svg",47)(1,vq,1,0,null,12),t&2){let e=m(3);h("ngIf",!e.decrementIconTemplate&&!e._decrementIconTemplate),g(),h("ngTemplateOutlet",e.decrementIconTemplate||e._decrementIconTemplate)}}function wq(t,n){if(t&1&&(E(0,"div",18)(1,"span",18),ce(2),T()()),t&2){let e=m(3);k(e.cx("separator")),h("pBind",e.ptm("separatorContainer")),g(),h("pBind",e.ptm("separator")),g(),Ze(e.timeSeparator)}}function Cq(t,n){if(t&1&&(G(),X(0,"svg",46)),t&2){let e=m(5);h("pBind",e.ptm("pcIncrementButton").icon)}}function xq(t,n){}function Tq(t,n){t&1&&C(0,xq,0,0,"ng-template")}function Eq(t,n){if(t&1&&C(0,Cq,1,1,"svg",45)(1,Tq,1,0,null,12),t&2){let e=m(4);h("ngIf",!e.incrementIconTemplate&&!e._incrementIconTemplate),g(),h("ngTemplateOutlet",e.incrementIconTemplate||e._incrementIconTemplate)}}function Sq(t,n){t&1&&(ie(0),ce(1,"0"),oe())}function Iq(t,n){if(t&1&&(G(),X(0,"svg",48)),t&2){let e=m(5);h("pBind",e.ptm("pcDecrementButton").icon)}}function Dq(t,n){}function kq(t,n){t&1&&C(0,Dq,0,0,"ng-template")}function Mq(t,n){if(t&1&&C(0,Iq,1,1,"svg",47)(1,kq,1,0,null,12),t&2){let e=m(4);h("ngIf",!e.decrementIconTemplate&&!e._decrementIconTemplate),g(),h("ngTemplateOutlet",e.decrementIconTemplate||e._decrementIconTemplate)}}function Oq(t,n){if(t&1){let e=se();E(0,"div",18)(1,"p-button",43),q("keydown",function(i){S(e);let o=m(3);return I(o.onContainerButtonKeydown(i))})("keydown.enter",function(i){S(e);let o=m(3);return I(o.incrementSecond(i))})("keydown.space",function(i){S(e);let o=m(3);return I(o.incrementSecond(i))})("mousedown",function(i){S(e);let o=m(3);return I(o.onTimePickerElementMouseDown(i,2,1))})("mouseup",function(i){S(e);let o=m(3);return I(o.onTimePickerElementMouseUp(i))})("keyup.enter",function(i){S(e);let o=m(3);return I(o.onTimePickerElementMouseUp(i))})("keyup.space",function(i){S(e);let o=m(3);return I(o.onTimePickerElementMouseUp(i))})("mouseleave",function(){S(e);let i=m(3);return I(i.onTimePickerElementMouseLeave())}),C(2,Eq,2,2,"ng-template",null,2,at),T(),E(4,"span",18),C(5,Sq,2,0,"ng-container",6),ce(6),T(),E(7,"p-button",43),q("keydown",function(i){S(e);let o=m(3);return I(o.onContainerButtonKeydown(i))})("keydown.enter",function(i){S(e);let o=m(3);return I(o.decrementSecond(i))})("keydown.space",function(i){S(e);let o=m(3);return I(o.decrementSecond(i))})("mousedown",function(i){S(e);let o=m(3);return I(o.onTimePickerElementMouseDown(i,2,-1))})("mouseup",function(i){S(e);let o=m(3);return I(o.onTimePickerElementMouseUp(i))})("keyup.enter",function(i){S(e);let o=m(3);return I(o.onTimePickerElementMouseUp(i))})("keyup.space",function(i){S(e);let o=m(3);return I(o.onTimePickerElementMouseUp(i))})("mouseleave",function(){S(e);let i=m(3);return I(i.onTimePickerElementMouseLeave())}),C(8,Mq,2,2,"ng-template",null,2,at),T()()}if(t&2){let e=m(3);k(e.cx("secondPicker")),h("pBind",e.ptm("secondPicker")),g(),h("styleClass",e.cx("pcIncrementButton"))("pt",e.ptm("pcIncrementButton")),J("aria-label",e.getTranslation("nextSecond"))("data-pc-group-section","timepickerbutton"),g(3),h("pBind",e.ptm("second")),g(),h("ngIf",e.currentSecond<10),g(),Ze(e.currentSecond),g(),h("styleClass",e.cx("pcDecrementButton"))("pt",e.ptm("pcDecrementButton")),J("aria-label",e.getTranslation("prevSecond"))("data-pc-group-section","timepickerbutton")}}function Rq(t,n){if(t&1&&(E(0,"div",18)(1,"span",18),ce(2),T()()),t&2){let e=m(3);k(e.cx("separator")),h("pBind",e.ptm("separatorContainer")),g(),h("pBind",e.ptm("separator")),g(),Ze(e.timeSeparator)}}function Pq(t,n){if(t&1&&(G(),X(0,"svg",46)),t&2){let e=m(5);h("pBind",e.ptm("pcIncrementButton").icon)}}function Aq(t,n){}function Nq(t,n){t&1&&C(0,Aq,0,0,"ng-template")}function Fq(t,n){if(t&1&&C(0,Pq,1,1,"svg",45)(1,Nq,1,0,null,12),t&2){let e=m(4);h("ngIf",!e.incrementIconTemplate&&!e._incrementIconTemplate),g(),h("ngTemplateOutlet",e.incrementIconTemplate||e._incrementIconTemplate)}}function Lq(t,n){if(t&1&&(G(),X(0,"svg",48)),t&2){let e=m(5);h("pBind",e.ptm("pcDecrementButton").icon)}}function Bq(t,n){}function Vq(t,n){t&1&&C(0,Bq,0,0,"ng-template")}function jq(t,n){if(t&1&&C(0,Lq,1,1,"svg",47)(1,Vq,1,0,null,12),t&2){let e=m(4);h("ngIf",!e.decrementIconTemplate&&!e._decrementIconTemplate),g(),h("ngTemplateOutlet",e.decrementIconTemplate||e._decrementIconTemplate)}}function zq(t,n){if(t&1){let e=se();E(0,"div",18)(1,"p-button",49),q("keydown",function(i){S(e);let o=m(3);return I(o.onContainerButtonKeydown(i))})("onClick",function(i){S(e);let o=m(3);return I(o.toggleAMPM(i))})("keydown.enter",function(i){S(e);let o=m(3);return I(o.toggleAMPM(i))}),C(2,Fq,2,2,"ng-template",null,2,at),T(),E(4,"span",18),ce(5),T(),E(6,"p-button",50),q("keydown",function(i){S(e);let o=m(3);return I(o.onContainerButtonKeydown(i))})("click",function(i){S(e);let o=m(3);return I(o.toggleAMPM(i))})("keydown.enter",function(i){S(e);let o=m(3);return I(o.toggleAMPM(i))}),C(7,jq,2,2,"ng-template",null,2,at),T()()}if(t&2){let e=m(3);k(e.cx("ampmPicker")),h("pBind",e.ptm("ampmPicker")),g(),h("styleClass",e.cx("pcIncrementButton"))("pt",e.ptm("pcIncrementButton")),J("aria-label",e.getTranslation("am"))("data-pc-group-section","timepickerbutton"),g(3),h("pBind",e.ptm("ampm")),g(),Ze(e.pm?"PM":"AM"),g(),h("styleClass",e.cx("pcDecrementButton"))("pt",e.ptm("pcDecrementButton")),J("aria-label",e.getTranslation("pm"))("data-pc-group-section","timepickerbutton")}}function Hq(t,n){if(t&1){let e=se();E(0,"div",18)(1,"div",18)(2,"p-button",43),q("keydown",function(i){S(e);let o=m(2);return I(o.onContainerButtonKeydown(i))})("keydown.enter",function(i){S(e);let o=m(2);return I(o.incrementHour(i))})("keydown.space",function(i){S(e);let o=m(2);return I(o.incrementHour(i))})("mousedown",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseDown(i,0,1))})("mouseup",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseUp(i))})("keyup.enter",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseUp(i))})("keyup.space",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseUp(i))})("mouseleave",function(){S(e);let i=m(2);return I(i.onTimePickerElementMouseLeave())}),C(3,sq,2,2,"ng-template",null,2,at),T(),E(5,"span",18),C(6,aq,2,0,"ng-container",6),ce(7),T(),E(8,"p-button",43),q("keydown",function(i){S(e);let o=m(2);return I(o.onContainerButtonKeydown(i))})("keydown.enter",function(i){S(e);let o=m(2);return I(o.decrementHour(i))})("keydown.space",function(i){S(e);let o=m(2);return I(o.decrementHour(i))})("mousedown",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseDown(i,0,-1))})("mouseup",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseUp(i))})("keyup.enter",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseUp(i))})("keyup.space",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseUp(i))})("mouseleave",function(){S(e);let i=m(2);return I(i.onTimePickerElementMouseLeave())}),C(9,uq,2,2,"ng-template",null,2,at),T()(),E(11,"div",44)(12,"span",18),ce(13),T()(),E(14,"div",18)(15,"p-button",43),q("keydown",function(i){S(e);let o=m(2);return I(o.onContainerButtonKeydown(i))})("keydown.enter",function(i){S(e);let o=m(2);return I(o.incrementMinute(i))})("keydown.space",function(i){S(e);let o=m(2);return I(o.incrementMinute(i))})("mousedown",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseDown(i,1,1))})("mouseup",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseUp(i))})("keyup.enter",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseUp(i))})("keyup.space",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseUp(i))})("mouseleave",function(){S(e);let i=m(2);return I(i.onTimePickerElementMouseLeave())}),C(16,mq,2,2,"ng-template",null,2,at),T(),E(18,"span",18),C(19,gq,2,0,"ng-container",6),ce(20),T(),E(21,"p-button",43),q("keydown",function(i){S(e);let o=m(2);return I(o.onContainerButtonKeydown(i))})("keydown.enter",function(i){S(e);let o=m(2);return I(o.decrementMinute(i))})("keydown.space",function(i){S(e);let o=m(2);return I(o.decrementMinute(i))})("mousedown",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseDown(i,1,-1))})("mouseup",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseUp(i))})("keyup.enter",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseUp(i))})("keyup.space",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseUp(i))})("mouseleave",function(){S(e);let i=m(2);return I(i.onTimePickerElementMouseLeave())}),C(22,_q,2,2,"ng-template",null,2,at),T()(),C(24,wq,3,5,"div",23)(25,Oq,10,14,"div",23)(26,Rq,3,5,"div",23)(27,zq,9,13,"div",23),T()}if(t&2){let e=m(2);k(e.cx("timePicker")),h("pBind",e.ptm("timePicker")),g(),k(e.cx("hourPicker")),h("pBind",e.ptm("hourPicker")),g(),h("styleClass",e.cx("pcIncrementButton"))("pt",e.ptm("pcIncrementButton")),J("aria-label",e.getTranslation("nextHour"))("data-pc-group-section","timepickerbutton"),g(3),h("pBind",e.ptm("hour")),g(),h("ngIf",e.currentHour<10),g(),Ze(e.currentHour),g(),h("styleClass",e.cx("pcDecrementButton"))("pt",e.ptm("pcDecrementButton")),J("aria-label",e.getTranslation("prevHour"))("data-pc-group-section","timepickerbutton"),g(3),h("pBind",e.ptm("separatorContainer")),g(),h("pBind",e.ptm("separator")),g(),Ze(e.timeSeparator),g(),k(e.cx("minutePicker")),h("pBind",e.ptm("minutePicker")),g(),h("styleClass",e.cx("pcIncrementButton"))("pt",e.ptm("pcIncrementButton")),J("aria-label",e.getTranslation("nextMinute"))("data-pc-group-section","timepickerbutton"),g(3),h("pBind",e.ptm("minute")),g(),h("ngIf",e.currentMinute<10),g(),Ze(e.currentMinute),g(),h("styleClass",e.cx("pcDecrementButton"))("pt",e.ptm("pcDecrementButton")),J("aria-label",e.getTranslation("prevMinute"))("data-pc-group-section","timepickerbutton"),g(3),h("ngIf",e.showSeconds),g(),h("ngIf",e.showSeconds),g(),h("ngIf",e.hourFormat=="12"),g(),h("ngIf",e.hourFormat=="12")}}function $q(t,n){t&1&&ne(0)}function Uq(t,n){if(t&1&&C(0,$q,1,0,"ng-container",20),t&2){let e=m(3);h("ngTemplateOutlet",e.buttonBarTemplate||e._buttonBarTemplate)("ngTemplateOutletContext",Dt(2,iG,e.onTodayButtonClick.bind(e),e.onClearButtonClick.bind(e)))}}function Wq(t,n){if(t&1){let e=se();E(0,"p-button",51),q("keydown",function(i){S(e);let o=m(3);return I(o.onContainerButtonKeydown(i))})("onClick",function(i){S(e);let o=m(3);return I(o.onTodayButtonClick(i))}),T(),E(1,"p-button",51),q("keydown",function(i){S(e);let o=m(3);return I(o.onContainerButtonKeydown(i))})("onClick",function(i){S(e);let o=m(3);return I(o.onClearButtonClick(i))}),T()}if(t&2){let e=m(3);h("styleClass",e.cx("pcTodayButton"))("label",e.getTranslation("today"))("ngClass",e.todayButtonStyleClass)("pt",e.ptm("pcTodayButton")),J("data-pc-group-section","button"),g(),h("styleClass",e.cx("pcClearButton"))("label",e.getTranslation("clear"))("ngClass",e.clearButtonStyleClass)("pt",e.ptm("pcClearButton")),J("data-pc-group-section","button")}}function Gq(t,n){if(t&1&&(E(0,"div",18),rt(1,Uq,1,5,"ng-container")(2,Wq,2,10),T()),t&2){let e=m(2);k(e.cx("buttonbar")),h("pBind",e.ptm("buttonbar")),g(),it(e.buttonBarTemplate||e._buttonBarTemplate?1:2)}}function qq(t,n){t&1&&ne(0)}function Qq(t,n){if(t&1){let e=se();E(0,"div",22,1),q("@overlayAnimation.start",function(i){S(e);let o=m();return I(o.onOverlayAnimationStart(i))})("@overlayAnimation.done",function(i){S(e);let o=m();return I(o.onOverlayAnimationDone(i))})("click",function(i){S(e);let o=m();return I(o.onOverlayClick(i))}),Ot(2),C(3,_G,1,0,"ng-container",12)(4,nq,5,6,"ng-container",6)(5,Hq,28,38,"div",23)(6,Gq,3,4,"div",23),Ot(7,1),C(8,qq,1,0,"ng-container",12),T()}if(t&2){let e=m();k(e.cn(e.cx("panel"),e.panelStyleClass)),h("ngStyle",e.panelStyle)("@overlayAnimation",Ee(18,eG,Dt(15,XW,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",e.inline===!0)("pBind",e.ptm("panel")),J("id",e.panelId)("aria-label",e.getTranslation("chooseDate"))("role",e.inline?null:"dialog")("aria-modal",e.inline?null:"true"),g(3),h("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),g(),h("ngIf",!e.timeOnly),g(),h("ngIf",(e.showTime||e.timeOnly)&&e.currentView==="date"),g(),h("ngIf",e.showButtonBar),g(2),h("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}var Kq=`
${JR}
/* For PrimeNG */
.p-datepicker.ng-invalid.ng-dirty .p-inputtext {
border-color: dt('inputtext.invalid.border.color');
}
`,Yq={root:()=>({position:"relative"})},Zq={root:({instance:t})=>["p-datepicker p-component p-inputwrapper",{"p-invalid":t.invalid(),"p-datepicker-fluid":t.hasFluid,"p-inputwrapper-filled":t.$filled(),"p-variant-filled":t.$variant()==="filled","p-inputwrapper-focus":t.focus||t.overlayVisible,"p-focus":t.focus||t.overlayVisible}],pcInputText:"p-datepicker-input",dropdown:"p-datepicker-dropdown",inputIconContainer:"p-datepicker-input-icon-container",inputIcon:"p-datepicker-input-icon",panel:({instance:t})=>["p-datepicker-panel p-component",{"p-datepicker-panel p-component":!0,"p-datepicker-panel-inline":t.inline,"p-disabled":t.$disabled(),"p-datepicker-timeonly":t.timeOnly}],calendarContainer:"p-datepicker-calendar-container",calendar:"p-datepicker-calendar",header:"p-datepicker-header",pcPrevButton:"p-datepicker-prev-button",title:"p-datepicker-title",selectMonth:"p-datepicker-select-month",selectYear:"p-datepicker-select-year",decade:"p-datepicker-decade",pcNextButton:"p-datepicker-next-button",dayView:"p-datepicker-day-view",weekHeader:"p-datepicker-weekheader p-disabled",weekNumber:"p-datepicker-weeknumber",weekLabelContainer:"p-datepicker-weeklabel-container p-disabled",weekDayCell:"p-datepicker-weekday-cell",weekDay:"p-datepicker-weekday",dayCell:({date:t})=>["p-datepicker-day-cell",{"p-datepicker-other-month":t.otherMonth,"p-datepicker-today":t.today}],day:({instance:t,date:n})=>{let e="";if(t.isRangeSelection()&&t.isSelected(n)&&n.selectable){let r=t.value[0],i=t.value[1],o=r&&n.year===r.getFullYear()&&n.month===r.getMonth()&&n.day===r.getDate(),s=i&&n.year===i.getFullYear()&&n.month===i.getMonth()&&n.day===i.getDate();e=o||s?"p-datepicker-day-selected":"p-datepicker-day-selected-range"}return{"p-datepicker-day":!0,"p-datepicker-day-selected":!t.isRangeSelection()&&t.isSelected(n)&&n.selectable,"p-disabled":t.$disabled()||!n.selectable,[e]:!0}},monthView:"p-datepicker-month-view",month:({instance:t,index:n})=>["p-datepicker-month",{"p-datepicker-month-selected":t.isMonthSelected(n),"p-disabled":t.isMonthDisabled(n)}],yearView:"p-datepicker-year-view",year:({instance:t,year:n})=>["p-datepicker-year",{"p-datepicker-year-selected":t.isYearSelected(n),"p-disabled":t.isYearDisabled(n)}],timePicker:"p-datepicker-time-picker",hourPicker:"p-datepicker-hour-picker",pcIncrementButton:"p-datepicker-increment-button",pcDecrementButton:"p-datepicker-decrement-button",separator:"p-datepicker-separator",minutePicker:"p-datepicker-minute-picker",secondPicker:"p-datepicker-second-picker",ampmPicker:"p-datepicker-ampm-picker",buttonbar:"p-datepicker-buttonbar",pcTodayButton:"p-datepicker-today-button",pcClearButton:"p-datepicker-clear-button",clearIcon:"p-datepicker-clear-icon"},eP=(()=>{class t extends Oe{name="datepicker";style=Kq;classes=Zq;inlineStyles=Yq;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var Jq={provide:Nn,useExisting:Ht(()=>nP),multi:!0},tP=new H("DATEPICKER_INSTANCE"),nP=(()=>{class t extends vc{zone;overlayService;bindDirectiveInstance=x(te,{self:!0});$pcDatePicker=x(tP,{optional:!0,skipSelf:!0})??void 0;iconDisplay="button";styleClass;inputStyle;inputId;inputStyleClass;placeholder;ariaLabelledBy;ariaLabel;iconAriaLabel;get dateFormat(){return this._dateFormat}set dateFormat(e){this._dateFormat=e,this.initialized&&this.updateInputfield()}multipleSeparator=",";rangeSeparator="-";inline=!1;showOtherMonths=!0;selectOtherMonths;showIcon;icon;readonlyInput;shortYearCutoff="+10";get hourFormat(){return this._hourFormat}set hourFormat(e){this._hourFormat=e,this.initialized&&this.updateInputfield()}timeOnly;stepHour=1;stepMinute=1;stepSecond=1;showSeconds=!1;showOnFocus=!0;showWeek=!1;startWeekFromFirstDayOfYear=!1;showClear=!1;dataType="date";selectionMode="single";maxDateCount;showButtonBar;todayButtonStyleClass;clearButtonStyleClass;autofocus;autoZIndex=!0;baseZIndex=0;panelStyleClass;panelStyle;keepInvalid=!1;hideOnDateTimeSelect=!0;touchUI;timeSeparator=":";focusTrap=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";tabindex;get minDate(){return this._minDate}set minDate(e){this._minDate=e,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=e,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDates(){return this._disabledDates}set disabledDates(e){this._disabledDates=e,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDays(){return this._disabledDays}set disabledDays(e){this._disabledDays=e,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get showTime(){return this._showTime}set showTime(e){this._showTime=e,this.currentHour===void 0&&this.initTime(this.value||new Date),this.updateInputfield()}get responsiveOptions(){return this._responsiveOptions}set responsiveOptions(e){this._responsiveOptions=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get numberOfMonths(){return this._numberOfMonths}set numberOfMonths(e){this._numberOfMonths=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get firstDayOfWeek(){return this._firstDayOfWeek}set firstDayOfWeek(e){this._firstDayOfWeek=e,this.createWeekDays()}get view(){return this._view}set view(e){this._view=e,this.currentView=this._view}get defaultDate(){return this._defaultDate}set defaultDate(e){if(this._defaultDate=e,this.initialized){let r=e||new Date;this.currentMonth=r.getMonth(),this.currentYear=r.getFullYear(),this.initTime(r),this.createMonths(this.currentMonth,this.currentYear)}}appendTo=ae(void 0);onFocus=new z;onBlur=new z;onClose=new z;onSelect=new z;onClear=new z;onInput=new z;onTodayClick=new z;onClearClick=new z;onMonthChange=new z;onYearChange=new z;onClickOutside=new z;onShow=new z;inputfieldViewChild;set content(e){this.contentViewChild=e,this.contentViewChild&&(this.isMonthNavigate?(Promise.resolve(null).then(()=>this.updateFocus()),this.isMonthNavigate=!1):!this.focus&&!this.inline&&this.initFocusableCell())}_componentStyle=x(eP);contentViewChild;value;dates;months;weekDays;currentMonth;currentYear;currentHour;currentMinute;currentSecond;p;pm;mask;maskClickListener;overlay;responsiveStyleElement;overlayVisible;$appendTo=We(()=>this.appendTo()||this.config.overlayAppendTo());calendarElement;timePickerTimer;documentClickListener;animationEndListener;ticksTo1970;yearOptions;focus;isKeydown;_minDate;_maxDate;_dateFormat;_hourFormat="24";_showTime;_yearRange;preventDocumentListener;dayClass(e){return this._componentStyle.classes.day({instance:this,date:e})}dateTemplate;headerTemplate;footerTemplate;disabledDateTemplate;decadeTemplate;previousIconTemplate;nextIconTemplate;triggerIconTemplate;clearIconTemplate;decrementIconTemplate;incrementIconTemplate;inputIconTemplate;buttonBarTemplate;_dateTemplate;_headerTemplate;_footerTemplate;_disabledDateTemplate;_decadeTemplate;_previousIconTemplate;_nextIconTemplate;_triggerIconTemplate;_clearIconTemplate;_decrementIconTemplate;_incrementIconTemplate;_inputIconTemplate;_buttonBarTemplate;_disabledDates;_disabledDays;selectElement;todayElement;focusElement;scrollHandler;documentResizeListener;navigationState=null;isMonthNavigate;initialized;translationSubscription;_locale;_responsiveOptions;currentView;attributeSelector;panelId;_numberOfMonths=1;_firstDayOfWeek;_view="date";preventFocus;_defaultDate;_focusKey=null;window;get locale(){return this._locale}get iconButtonAriaLabel(){return this.iconAriaLabel?this.iconAriaLabel:this.getTranslation("chooseDate")}get prevIconAriaLabel(){return this.currentView==="year"?this.getTranslation("prevDecade"):this.currentView==="month"?this.getTranslation("prevYear"):this.getTranslation("prevMonth")}get nextIconAriaLabel(){return this.currentView==="year"?this.getTranslation("nextDecade"):this.currentView==="month"?this.getTranslation("nextYear"):this.getTranslation("nextMonth")}constructor(e,r){super(),this.zone=e,this.overlayService=r,this.window=this.document.defaultView}onInit(){this.attributeSelector=gt("pn_id_"),this.panelId=this.attributeSelector+"_panel";let e=this.defaultDate||new Date;this.createResponsiveStyle(),this.currentMonth=e.getMonth(),this.currentYear=e.getFullYear(),this.yearOptions=[],this.currentView=this.view,this.view==="date"&&(this.createWeekDays(),this.initTime(e),this.createMonths(this.currentMonth,this.currentYear),this.ticksTo1970=(1969*365+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*24*60*60*1e7),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.createWeekDays(),this.cd.markForCheck()}),this.initialized=!0}onAfterViewInit(){this.inline&&(this.contentViewChild&&this.contentViewChild.nativeElement.setAttribute(this.attributeSelector,""),!this.$disabled()&&!this.inline&&(this.initFocusableCell(),this.numberOfMonths===1&&this.contentViewChild&&this.contentViewChild.nativeElement&&(this.contentViewChild.nativeElement.style.width=Mn(this.el?.nativeElement)+"px")))}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}templates;onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"date":this._dateTemplate=e.template;break;case"decade":this._decadeTemplate=e.template;break;case"disabledDate":this._disabledDateTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"inputicon":this._inputIconTemplate=e.template;break;case"buttonbar":this._buttonBarTemplate=e.template;break;case"previousicon":this._previousIconTemplate=e.template;break;case"nexticon":this._nextIconTemplate=e.template;break;case"triggericon":this._triggerIconTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"decrementicon":this._decrementIconTemplate=e.template;break;case"incrementicon":this._incrementIconTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;default:this._dateTemplate=e.template;break}})}getTranslation(e){return this.config.getTranslation(e)}populateYearOptions(e,r){this.yearOptions=[];for(let i=e;i<=r;i++)this.yearOptions.push(i)}createWeekDays(){this.weekDays=[];let e=this.getFirstDateOfWeek(),r=this.getTranslation(xn.DAY_NAMES_MIN);for(let i=0;i<7;i++)this.weekDays.push(r[e]),e=e==6?0:++e}monthPickerValues(){let e=[];for(let r=0;r<=11;r++)e.push(this.config.getTranslation("monthNamesShort")[r]);return e}yearPickerValues(){let e=[],r=this.currentYear-this.currentYear%10;for(let i=0;i<10;i++)e.push(r+i);return e}createMonths(e,r){this.months=this.months=[];for(let i=0;i<this.numberOfMonths;i++){let o=e+i,s=r;o>11&&(o=o%12,s=r+Math.floor((e+i)/12)),this.months.push(this.createMonth(o,s))}}getWeekNumber(e){let r=new Date(e.getTime());if(this.startWeekFromFirstDayOfYear){let o=+this.getFirstDateOfWeek();r.setDate(r.getDate()+6+o-r.getDay())}else r.setDate(r.getDate()+4-(r.getDay()||7));let i=r.getTime();return r.setMonth(0),r.setDate(1),Math.floor(Math.round((i-r.getTime())/864e5)/7)+1}createMonth(e,r){let i=[],o=this.getFirstDayOfMonthIndex(e,r),s=this.getDaysCountInMonth(e,r),a=this.getDaysCountInPrevMonth(e,r),l=1,c=new Date,d=[],u=Math.ceil((s+o)/7);for(let p=0;p<u;p++){let f=[];if(p==0){for(let b=a-o+1;b<=a;b++){let v=this.getPreviousMonthAndYear(e,r);f.push({day:b,month:v.month,year:v.year,otherMonth:!0,today:this.isToday(c,b,v.month,v.year),selectable:this.isSelectable(b,v.month,v.year,!0)})}let y=7-f.length;for(let b=0;b<y;b++)f.push({day:l,month:e,year:r,today:this.isToday(c,l,e,r),selectable:this.isSelectable(l,e,r,!1)}),l++}else for(let y=0;y<7;y++){if(l>s){let b=this.getNextMonthAndYear(e,r);f.push({day:l-s,month:b.month,year:b.year,otherMonth:!0,today:this.isToday(c,l-s,b.month,b.year),selectable:this.isSelectable(l-s,b.month,b.year,!0)})}else f.push({day:l,month:e,year:r,today:this.isToday(c,l,e,r),selectable:this.isSelectable(l,e,r,!1)});l++}this.showWeek&&d.push(this.getWeekNumber(new Date(f[0].year,f[0].month,f[0].day))),i.push(f)}return{month:e,year:r,dates:i,weekNumbers:d}}initTime(e){this.pm=e.getHours()>11,this.showTime?(this.currentMinute=e.getMinutes(),this.currentSecond=this.showSeconds?e.getSeconds():0,this.setCurrentHourPM(e.getHours())):this.timeOnly&&(this.currentMinute=0,this.currentHour=0,this.currentSecond=0)}navBackward(e){if(this.$disabled()){e.preventDefault();return}this.isMonthNavigate=!0,this.currentView==="month"?(this.decrementYear(),setTimeout(()=>{this.updateFocus()},1)):this.currentView==="year"?(this.decrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(this.currentMonth===0?(this.currentMonth=11,this.decrementYear()):this.currentMonth--,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear))}navForward(e){if(this.$disabled()){e.preventDefault();return}this.isMonthNavigate=!0,this.currentView==="month"?(this.incrementYear(),setTimeout(()=>{this.updateFocus()},1)):this.currentView==="year"?(this.incrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(this.currentMonth===11?(this.currentMonth=0,this.incrementYear()):this.currentMonth++,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear))}decrementYear(){this.currentYear--;let e=this.yearOptions;if(this.currentYear<e[0]){let r=e[e.length-1]-e[0];this.populateYearOptions(e[0]-r,e[e.length-1]-r)}}decrementDecade(){this.currentYear=this.currentYear-10}incrementDecade(){this.currentYear=this.currentYear+10}incrementYear(){this.currentYear++;let e=this.yearOptions;if(this.currentYear>e[e.length-1]){let r=e[e.length-1]-e[0];this.populateYearOptions(e[0]+r,e[e.length-1]+r)}}switchToMonthView(e){this.setCurrentView("month"),e.preventDefault()}switchToYearView(e){this.setCurrentView("year"),e.preventDefault()}onDateSelect(e,r){if(this.$disabled()||!r.selectable){e.preventDefault();return}this.isMultipleSelection()&&this.isSelected(r)?(this.value=this.value.filter((i,o)=>!this.isDateEquals(i,r)),this.value.length===0&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(r)&&this.selectDate(r),this.hideOnDateTimeSelect&&(this.isSingleSelection()||this.isRangeSelection()&&this.value[1])&&setTimeout(()=>{e.preventDefault(),this.hideOverlay(),this.mask&&this.disableModality(),this.cd.markForCheck()},150),this.updateInputfield(),e.preventDefault()}shouldSelectDate(e){return this.isMultipleSelection()&&this.maxDateCount!=null?this.maxDateCount>(this.value?this.value.length:0):!0}onMonthSelect(e,r){this.view==="month"?this.onDateSelect(e,{year:this.currentYear,month:r,day:1,selectable:!0}):(this.currentMonth=r,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(e,r){this.view==="year"?this.onDateSelect(e,{year:r,month:0,day:1,selectable:!0}):(this.currentYear=r,this.setCurrentView("month"),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}))}updateInputfield(){let e="";if(this.value){if(this.isSingleSelection())e=this.formatDateTime(this.value);else if(this.isMultipleSelection())for(let r=0;r<this.value.length;r++){let i=this.formatDateTime(this.value[r]);e+=i,r!==this.value.length-1&&(e+=this.multipleSeparator+" ")}else if(this.isRangeSelection()&&this.value&&this.value.length){let r=this.value[0],i=this.value[1];e=this.formatDateTime(r),i&&(e+=" "+this.rangeSeparator+" "+this.formatDateTime(i))}}this.writeModelValue(e),this.inputFieldValue=e,this.inputfieldViewChild&&this.inputfieldViewChild.nativeElement&&(this.inputfieldViewChild.nativeElement.value=this.inputFieldValue)}inputFieldValue=null;formatDateTime(e){let r=this.keepInvalid?e:null,i=this.isValidDateForTimeConstraints(e);return this.isValidDate(e)?this.timeOnly?r=this.formatTime(e):(r=this.formatDate(e,this.getDateFormat()),this.showTime&&(r+=" "+this.formatTime(e))):this.dataType==="string"&&(r=e),r=i?r:"",r}formatDateMetaToDate(e){return new Date(e.year,e.month,e.day)}formatDateKey(e){return`${e.getFullYear()}-${e.getMonth()}-${e.getDate()}`}setCurrentHourPM(e){this.hourFormat=="12"?(this.pm=e>11,e>=12?this.currentHour=e==12?12:e-12:this.currentHour=e==0?12:e):this.currentHour=e}setCurrentView(e){this.currentView=e,this.cd.detectChanges(),this.alignOverlay()}selectDate(e){let r=this.formatDateMetaToDate(e);if(this.showTime&&(this.hourFormat=="12"?this.currentHour===12?r.setHours(this.pm?12:0):r.setHours(this.pm?this.currentHour+12:this.currentHour):r.setHours(this.currentHour),r.setMinutes(this.currentMinute),r.setSeconds(this.currentSecond)),this.minDate&&this.minDate>r&&(r=this.minDate,this.setCurrentHourPM(r.getHours()),this.currentMinute=r.getMinutes(),this.currentSecond=r.getSeconds()),this.maxDate&&this.maxDate<r&&(r=this.maxDate,this.setCurrentHourPM(r.getHours()),this.currentMinute=r.getMinutes(),this.currentSecond=r.getSeconds()),this.isSingleSelection())this.updateModel(r);else if(this.isMultipleSelection())this.updateModel(this.value?[...this.value,r]:[r]);else if(this.isRangeSelection())if(this.value&&this.value.length){let i=this.value[0],o=this.value[1];!o&&r.getTime()>=i.getTime()?o=r:(i=r,o=null),this.updateModel([i,o])}else this.updateModel([r,null]);this.onSelect.emit(r)}updateModel(e){if(this.value=e,this.dataType=="date")this.writeModelValue(this.value),this.onModelChange(this.value);else if(this.dataType=="string")if(this.isSingleSelection())this.onModelChange(this.formatDateTime(this.value));else{let r=null;Array.isArray(this.value)&&(r=this.value.map(i=>this.formatDateTime(i))),this.writeModelValue(r),this.onModelChange(r)}}getFirstDayOfMonthIndex(e,r){let i=new Date;i.setDate(1),i.setMonth(e),i.setFullYear(r);let o=i.getDay()+this.getSundayIndex();return o>=7?o-7:o}getDaysCountInMonth(e,r){return 32-this.daylightSavingAdjust(new Date(r,e,32)).getDate()}getDaysCountInPrevMonth(e,r){let i=this.getPreviousMonthAndYear(e,r);return this.getDaysCountInMonth(i.month,i.year)}getPreviousMonthAndYear(e,r){let i,o;return e===0?(i=11,o=r-1):(i=e-1,o=r),{month:i,year:o}}getNextMonthAndYear(e,r){let i,o;return e===11?(i=0,o=r+1):(i=e+1,o=r),{month:i,year:o}}getSundayIndex(){let e=this.getFirstDateOfWeek();return e>0?7-e:0}isSelected(e){if(this.value){if(this.isSingleSelection())return this.isDateEquals(this.value,e);if(this.isMultipleSelection()){let r=!1;for(let i of this.value)if(r=this.isDateEquals(i,e),r)break;return r}else if(this.isRangeSelection())return this.value[1]?this.isDateEquals(this.value[0],e)||this.isDateEquals(this.value[1],e)||this.isDateBetween(this.value[0],this.value[1],e):this.isDateEquals(this.value[0],e)}else return!1}isComparable(){return this.value!=null&&typeof this.value!="string"}isMonthSelected(e){if(!this.isComparable())return!1;if(this.isMultipleSelection())return this.value.some(r=>r.getMonth()===e&&r.getFullYear()===this.currentYear);if(this.isRangeSelection())if(this.value[1]){let r=new Date(this.currentYear,e,1),i=new Date(this.value[0].getFullYear(),this.value[0].getMonth(),1),o=new Date(this.value[1].getFullYear(),this.value[1].getMonth(),1);return r>=i&&r<=o}else return this.value[0]?.getFullYear()===this.currentYear&&this.value[0]?.getMonth()===e;else return this.value.getMonth()===e&&this.value.getFullYear()===this.currentYear}isMonthDisabled(e,r){let i=r??this.currentYear;for(let o=1;o<this.getDaysCountInMonth(e,i)+1;o++)if(this.isSelectable(o,e,i,!1))return!1;return!0}isYearDisabled(e){return Array(12).fill(0).every((r,i)=>this.isMonthDisabled(i,e))}isYearSelected(e){if(this.isComparable()){let r=this.isRangeSelection()?this.value[0]:this.value;return this.isMultipleSelection()?!1:r.getFullYear()===e}return!1}isDateEquals(e,r){return e&&nu(e)?e.getDate()===r.day&&e.getMonth()===r.month&&e.getFullYear()===r.year:!1}isDateBetween(e,r,i){let o=!1;if(nu(e)&&nu(r)){let s=this.formatDateMetaToDate(i);return e.getTime()<=s.getTime()&&r.getTime()>=s.getTime()}return o}isSingleSelection(){return this.selectionMode==="single"}isRangeSelection(){return this.selectionMode==="range"}isMultipleSelection(){return this.selectionMode==="multiple"}isToday(e,r,i,o){return e.getDate()===r&&e.getMonth()===i&&e.getFullYear()===o}isSelectable(e,r,i,o){let s=!0,a=!0,l=!0,c=!0;return o&&!this.selectOtherMonths?!1:(this.minDate&&(this.minDate.getFullYear()>i||this.minDate.getFullYear()===i&&this.currentView!="year"&&(this.minDate.getMonth()>r||this.minDate.getMonth()===r&&this.minDate.getDate()>e))&&(s=!1),this.maxDate&&(this.maxDate.getFullYear()<i||this.maxDate.getFullYear()===i&&(this.maxDate.getMonth()<r||this.maxDate.getMonth()===r&&this.maxDate.getDate()<e))&&(a=!1),this.disabledDates&&(l=!this.isDateDisabled(e,r,i)),this.disabledDays&&(c=!this.isDayDisabled(e,r,i)),s&&a&&l&&c)}isDateDisabled(e,r,i){if(this.disabledDates){for(let o of this.disabledDates)if(o.getFullYear()===i&&o.getMonth()===r&&o.getDate()===e)return!0}return!1}isDayDisabled(e,r,i){if(this.disabledDays){let s=new Date(i,r,e).getDay();return this.disabledDays.indexOf(s)!==-1}return!1}onInputFocus(e){this.focus=!0,this.showOnFocus&&this.showOverlay(),this.onFocus.emit(e)}onInputClick(){this.showOnFocus&&!this.overlayVisible&&this.showOverlay()}onInputBlur(e){this.focus=!1,this.onBlur.emit(e),this.keepInvalid||this.updateInputfield(),this.onModelTouched()}onButtonClick(e,r=this.inputfieldViewChild?.nativeElement){this.$disabled()||(this.overlayVisible?this.hideOverlay():(r.focus(),this.showOverlay()))}clear(){this.value=null,this.inputFieldValue=null,this.writeModelValue(this.value),this.onModelChange(this.value),this.updateInputfield(),this.onClear.emit()}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement})}getMonthName(e){return this.config.getTranslation("monthNames")[e]}getYear(e){return this.currentView==="month"?this.currentYear:e.year}switchViewButtonDisabled(){return this.numberOfMonths>1||this.$disabled()}onPrevButtonClick(e){this.navigationState={backward:!0,button:!0},this.navBackward(e)}onNextButtonClick(e){this.navigationState={backward:!1,button:!0},this.navForward(e)}onContainerButtonKeydown(e){switch(e.which){case 9:if(this.inline||this.trapFocus(e),this.inline){let r=wt(this.el?.nativeElement,".p-datepicker-header"),i=e.target;if(this.timeOnly)return;i==r?.children[r?.children?.length-1]&&this.initFocusableCell()}break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break;default:break}}onInputKeydown(e){this.isKeydown=!0,e.keyCode===40&&this.contentViewChild?this.trapFocus(e):e.keyCode===27?this.overlayVisible&&(this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault()):e.keyCode===13?this.overlayVisible&&(this.overlayVisible=!1,e.preventDefault()):e.keyCode===9&&this.contentViewChild&&(la(this.contentViewChild.nativeElement).forEach(r=>r.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(e,r,i){let o=e.currentTarget,s=o.parentElement,a=this.formatDateMetaToDate(r);switch(e.which){case 40:{o.tabIndex="-1";let y=eu(s),b=s.parentElement.nextElementSibling;if(b){let v=b.children[y].children[0];wn(v,"p-disabled")?(this.navigationState={backward:!1},this.navForward(e)):(b.children[y].children[0].tabIndex="0",b.children[y].children[0].focus())}else this.navigationState={backward:!1},this.navForward(e);e.preventDefault();break}case 38:{o.tabIndex="-1";let y=eu(s),b=s.parentElement.previousElementSibling;if(b){let v=b.children[y].children[0];wn(v,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(e)):(v.tabIndex="0",v.focus())}else this.navigationState={backward:!0},this.navBackward(e);e.preventDefault();break}case 37:{o.tabIndex="-1";let y=s.previousElementSibling;if(y){let b=y.children[0];wn(b,"p-disabled")||wn(b.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,i):(b.tabIndex="0",b.focus())}else this.navigateToMonth(!0,i);e.preventDefault();break}case 39:{o.tabIndex="-1";let y=s.nextElementSibling;if(y){let b=y.children[0];wn(b,"p-disabled")?this.navigateToMonth(!1,i):(b.tabIndex="0",b.focus())}else this.navigateToMonth(!1,i);e.preventDefault();break}case 13:case 32:{this.onDateSelect(e,r),e.preventDefault();break}case 27:{this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break}case 9:{this.inline||this.trapFocus(e);break}case 33:{o.tabIndex="-1";let y=new Date(a.getFullYear(),a.getMonth()-1,a.getDate()),b=this.formatDateKey(y);this.navigateToMonth(!0,i,`span[data-date='${b}']:not(.p-disabled):not(.p-ink)`),e.preventDefault();break}case 34:{o.tabIndex="-1";let y=new Date(a.getFullYear(),a.getMonth()+1,a.getDate()),b=this.formatDateKey(y);this.navigateToMonth(!1,i,`span[data-date='${b}']:not(.p-disabled):not(.p-ink)`),e.preventDefault();break}case 36:o.tabIndex="-1";let l=new Date(a.getFullYear(),a.getMonth(),1),c=this.formatDateKey(l),d=wt(o.offsetParent,`span[data-date='${c}']:not(.p-disabled):not(.p-ink)`);d&&(d.tabIndex="0",d.focus()),e.preventDefault();break;case 35:o.tabIndex="-1";let u=new Date(a.getFullYear(),a.getMonth()+1,0),p=this.formatDateKey(u),f=wt(o.offsetParent,`span[data-date='${p}']:not(.p-disabled):not(.p-ink)`);u&&(f.tabIndex="0",f.focus()),e.preventDefault();break;default:break}}onMonthCellKeydown(e,r){let i=e.currentTarget;switch(e.which){case 38:case 40:{i.tabIndex="-1";var o=i.parentElement.children,s=eu(i);let a=o[e.which===40?s+3:s-3];a&&(a.tabIndex="0",a.focus()),e.preventDefault();break}case 37:{i.tabIndex="-1";let a=i.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{i.tabIndex="-1";let a=i.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:{this.onMonthSelect(e,r),e.preventDefault();break}case 27:{this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break}case 9:{this.inline||this.trapFocus(e);break}default:break}}onYearCellKeydown(e,r){let i=e.currentTarget;switch(e.which){case 38:case 40:{i.tabIndex="-1";var o=i.parentElement.children,s=eu(i);let a=o[e.which===40?s+2:s-2];a&&(a.tabIndex="0",a.focus()),e.preventDefault();break}case 37:{i.tabIndex="-1";let a=i.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{i.tabIndex="-1";let a=i.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:{this.onYearSelect(e,r),e.preventDefault();break}case 27:{this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break}case 9:{this.trapFocus(e);break}default:break}}navigateToMonth(e,r,i){if(e)if(this.numberOfMonths===1||r===0)this.navigationState={backward:!0},this._focusKey=i,this.navBackward(event);else{let o=this.contentViewChild.nativeElement.children[r-1];if(i){let s=wt(o,i);s.tabIndex="0",s.focus()}else{let s=Vi(o,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),a=s[s.length-1];a.tabIndex="0",a.focus()}}else if(this.numberOfMonths===1||r===this.numberOfMonths-1)this.navigationState={backward:!1},this._focusKey=i,this.navForward(event);else{let o=this.contentViewChild.nativeElement.children[r+1];if(i){let s=wt(o,i);s.tabIndex="0",s.focus()}else{let s=wt(o,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");s.tabIndex="0",s.focus()}}}updateFocus(){let e;if(this.navigationState){if(this.navigationState.button)this.initFocusableCell(),this.navigationState.backward?wt(this.contentViewChild.nativeElement,".p-datepicker-prev-button").focus():wt(this.contentViewChild.nativeElement,".p-datepicker-next-button").focus();else{if(this.navigationState.backward){let r;this.currentView==="month"?r=Vi(this.contentViewChild.nativeElement,".p-datepicker-month-view .p-datepicker-month:not(.p-disabled)"):this.currentView==="year"?r=Vi(this.contentViewChild.nativeElement,".p-datepicker-year-view .p-datepicker-year:not(.p-disabled)"):r=Vi(this.contentViewChild.nativeElement,this._focusKey||".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),r&&r.length>0&&(e=r[r.length-1])}else this.currentView==="month"?e=wt(this.contentViewChild.nativeElement,".p-datepicker-month-view .p-datepicker-month:not(.p-disabled)"):this.currentView==="year"?e=wt(this.contentViewChild.nativeElement,".p-datepicker-year-view .p-datepicker-year:not(.p-disabled)"):e=wt(this.contentViewChild.nativeElement,this._focusKey||".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");e&&(e.tabIndex="0",e.focus())}this.navigationState=null,this._focusKey=null}else this.initFocusableCell()}initFocusableCell(){let e=this.contentViewChild?.nativeElement,r;if(this.currentView==="month"){let i=Vi(e,".p-datepicker-month-view .p-datepicker-month:not(.p-disabled)"),o=wt(e,".p-datepicker-month-view .p-datepicker-month.p-highlight");i.forEach(s=>s.tabIndex=-1),r=o||i[0],i.length===0&&Vi(e,'.p-datepicker-month-view .p-datepicker-month.p-disabled[tabindex = "0"]').forEach(a=>a.tabIndex=-1)}else if(this.currentView==="year"){let i=Vi(e,".p-datepicker-year-view .p-datepicker-year:not(.p-disabled)"),o=wt(e,".p-datepicker-year-view .p-datepicker-year.p-highlight");i.forEach(s=>s.tabIndex=-1),r=o||i[0],i.length===0&&Vi(e,'.p-datepicker-year-view .p-datepicker-year.p-disabled[tabindex = "0"]').forEach(a=>a.tabIndex=-1)}else if(r=wt(e,"span.p-highlight"),!r){let i=wt(e,"td.p-datepicker-today span:not(.p-disabled):not(.p-ink)");i?r=i:r=wt(e,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)")}r&&(r.tabIndex="0",!this.preventFocus&&(!this.navigationState||!this.navigationState.button)&&setTimeout(()=>{this.$disabled()||r.focus()},1),this.preventFocus=!1)}trapFocus(e){let r=la(this.contentViewChild.nativeElement);if(r&&r.length>0)if(!r[0].ownerDocument.activeElement)r[0].focus();else{let i=r.indexOf(r[0].ownerDocument.activeElement);if(e.shiftKey)if(i==-1||i===0)if(this.focusTrap)r[r.length-1].focus();else{if(i===-1)return this.hideOverlay();if(i===0)return}else r[i-1].focus();else if(i==-1)if(this.timeOnly)r[0].focus();else{let o=0;for(let s=0;s<r.length;s++)r[s].tagName==="SPAN"&&(o=s);r[o].focus()}else if(i===r.length-1){if(!this.focusTrap&&i!=-1)return this.hideOverlay();r[0].focus()}else r[i+1].focus()}e.preventDefault()}onMonthDropdownChange(e){this.currentMonth=parseInt(e),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}onYearDropdownChange(e){this.currentYear=parseInt(e),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}convertTo24Hour(e,r){return this.hourFormat=="12"?e===12?r?12:0:r?e+12:e:e}constrainTime(e,r,i,o){let s=[e,r,i],a=!1,l=this.value,c=this.convertTo24Hour(e,o),d=this.isRangeSelection(),u=this.isMultipleSelection();(d||u)&&(this.value||(this.value=[new Date,new Date]),d&&(l=this.value[1]||this.value[0]),u&&(l=this.value[this.value.length-1]));let f=l?l.toDateString():null,y=this.minDate&&f&&this.minDate.toDateString()===f,b=this.maxDate&&f&&this.maxDate.toDateString()===f;switch(y&&(a=this.minDate.getHours()>=12),!0){case(y&&a&&this.minDate.getHours()===12&&this.minDate.getHours()>c):s[0]=11;case(y&&this.minDate.getHours()===c&&this.minDate.getMinutes()>r):s[1]=this.minDate.getMinutes();case(y&&this.minDate.getHours()===c&&this.minDate.getMinutes()===r&&this.minDate.getSeconds()>i):s[2]=this.minDate.getSeconds();break;case(y&&!a&&this.minDate.getHours()-1===c&&this.minDate.getHours()>c):s[0]=11,this.pm=!0;case(y&&this.minDate.getHours()===c&&this.minDate.getMinutes()>r):s[1]=this.minDate.getMinutes();case(y&&this.minDate.getHours()===c&&this.minDate.getMinutes()===r&&this.minDate.getSeconds()>i):s[2]=this.minDate.getSeconds();break;case(y&&a&&this.minDate.getHours()>c&&c!==12):this.setCurrentHourPM(this.minDate.getHours()),s[0]=this.currentHour||0;case(y&&this.minDate.getHours()===c&&this.minDate.getMinutes()>r):s[1]=this.minDate.getMinutes();case(y&&this.minDate.getHours()===c&&this.minDate.getMinutes()===r&&this.minDate.getSeconds()>i):s[2]=this.minDate.getSeconds();break;case(y&&this.minDate.getHours()>c):s[0]=this.minDate.getHours();case(y&&this.minDate.getHours()===c&&this.minDate.getMinutes()>r):s[1]=this.minDate.getMinutes();case(y&&this.minDate.getHours()===c&&this.minDate.getMinutes()===r&&this.minDate.getSeconds()>i):s[2]=this.minDate.getSeconds();break;case(b&&this.maxDate.getHours()<c):s[0]=this.maxDate.getHours();case(b&&this.maxDate.getHours()===c&&this.maxDate.getMinutes()<r):s[1]=this.maxDate.getMinutes();case(b&&this.maxDate.getHours()===c&&this.maxDate.getMinutes()===r&&this.maxDate.getSeconds()<i):s[2]=this.maxDate.getSeconds();break}return s}incrementHour(e){let r=this.currentHour??0,i=(this.currentHour??0)+this.stepHour,o=this.pm;this.hourFormat=="24"?i=i>=24?i-24:i:this.hourFormat=="12"&&(r<12&&i>11&&(o=!this.pm),i=i>=13?i-12:i),this.toggleAMPMIfNotMinDate(o),[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(i,this.currentMinute,this.currentSecond,o),e.preventDefault()}toggleAMPMIfNotMinDate(e){let r=this.value,i=r?r.toDateString():null;this.minDate&&i&&this.minDate.toDateString()===i&&this.minDate.getHours()>=12?this.pm=!0:this.pm=e}onTimePickerElementMouseDown(e,r,i){this.$disabled()||(this.repeat(e,null,r,i),e.preventDefault())}onTimePickerElementMouseUp(e){this.$disabled()||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.$disabled()&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(e,r,i,o){let s=r||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(e,100,i,o),this.cd.markForCheck()},s),i){case 0:o===1?this.incrementHour(e):this.decrementHour(e);break;case 1:o===1?this.incrementMinute(e):this.decrementMinute(e);break;case 2:o===1?this.incrementSecond(e):this.decrementSecond(e);break}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(e){let r=(this.currentHour??0)-this.stepHour,i=this.pm;this.hourFormat=="24"?r=r<0?24+r:r:this.hourFormat=="12"&&(this.currentHour===12&&(i=!this.pm),r=r<=0?12+r:r),this.toggleAMPMIfNotMinDate(i),[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(r,this.currentMinute,this.currentSecond,i),e.preventDefault()}incrementMinute(e){let r=(this.currentMinute??0)+this.stepMinute;r=r>59?r-60:r,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour||0,r,this.currentSecond,this.pm),e.preventDefault()}decrementMinute(e){let r=(this.currentMinute??0)-this.stepMinute;r=r<0?60+r:r,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour||0,r,this.currentSecond||0,this.pm),e.preventDefault()}incrementSecond(e){let r=this.currentSecond+this.stepSecond;r=r>59?r-60:r,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour||0,this.currentMinute||0,r,this.pm),e.preventDefault()}decrementSecond(e){let r=this.currentSecond-this.stepSecond;r=r<0?60+r:r,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour||0,this.currentMinute||0,r,this.pm),e.preventDefault()}updateTime(){let e=this.value;this.isRangeSelection()&&(e=this.value[1]||this.value[0]),this.isMultipleSelection()&&(e=this.value[this.value.length-1]),e=e?new Date(e.getTime()):new Date,this.hourFormat=="12"?this.currentHour===12?e.setHours(this.pm?12:0):e.setHours(this.pm?this.currentHour+12:this.currentHour):e.setHours(this.currentHour),e.setMinutes(this.currentMinute),e.setSeconds(this.currentSecond),this.isRangeSelection()&&(this.value[1]?e=[this.value[0],e]:e=[e,null]),this.isMultipleSelection()&&(e=[...this.value.slice(0,-1),e]),this.updateModel(e),this.onSelect.emit(e),this.updateInputfield()}toggleAMPM(e){let r=!this.pm;this.pm=r,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour||0,this.currentMinute||0,this.currentSecond||0,r),this.updateTime(),e.preventDefault()}onUserInput(e){if(!this.isKeydown)return;this.isKeydown=!1;let r=e.target.value;try{let i=this.parseValueFromString(r);this.isValidSelection(i)?(this.updateModel(i),this.updateUI()):this.keepInvalid&&this.updateModel(i)}catch{let o=this.keepInvalid?r:null;this.updateModel(o)}this.onInput.emit(e)}isValidSelection(e){if(this.isSingleSelection())return this.isSelectable(e.getDate(),e.getMonth(),e.getFullYear(),!1);let r=e.every(i=>this.isSelectable(i.getDate(),i.getMonth(),i.getFullYear(),!1));return r&&this.isRangeSelection()&&(r=e.length===1||e.length>1&&e[1]>=e[0]),r}parseValueFromString(e){if(!e||e.trim().length===0)return null;let r;if(this.isSingleSelection())r=this.parseDateTime(e);else if(this.isMultipleSelection()){let i=e.split(this.multipleSeparator);r=[];for(let o of i)r.push(this.parseDateTime(o.trim()))}else if(this.isRangeSelection()){let i=e.split(" "+this.rangeSeparator+" ");r=[];for(let o=0;o<i.length;o++)r[o]=this.parseDateTime(i[o].trim())}return r}parseDateTime(e){let r,i=e.split(" ");if(this.timeOnly)r=new Date,this.populateTime(r,i[0],i[1]);else{let o=this.getDateFormat();if(this.showTime){let s=this.hourFormat=="12"?i.pop():null,a=i.pop();r=this.parseDate(i.join(" "),o),this.populateTime(r,a,s)}else r=this.parseDate(e,o)}return r}populateTime(e,r,i){if(this.hourFormat=="12"&&!i)throw"Invalid Time";this.pm=i==="PM"||i==="pm";let o=this.parseTime(r);e.setHours(o.hour),e.setMinutes(o.minute),e.setSeconds(o.second)}isValidDate(e){return nu(e)&&lt(e)}updateUI(){let e=this.value;Array.isArray(e)&&(e=e.length===2?e[1]:e[0]);let r=this.defaultDate&&this.isValidDate(this.defaultDate)&&!this.value?this.defaultDate:e&&this.isValidDate(e)?e:new Date;this.currentMonth=r.getMonth(),this.currentYear=r.getFullYear(),this.createMonths(this.currentMonth,this.currentYear),(this.showTime||this.timeOnly)&&(this.setCurrentHourPM(r.getHours()),this.currentMinute=r.getMinutes(),this.currentSecond=this.showSeconds?r.getSeconds():0)}showOverlay(){this.overlayVisible||(this.updateUI(),this.touchUI||(this.preventFocus=!0),this.overlayVisible=!0)}hideOverlay(){this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,this.clearTimePickerTimer(),this.touchUI&&this.disableModality(),this.cd.markForCheck()}toggle(){this.inline||(this.overlayVisible?this.hideOverlay():(this.showOverlay(),this.inputfieldViewChild?.nativeElement.focus()))}onOverlayAnimationStart(e){switch(e.toState){case"visible":case"visibleTouchUI":if(!this.inline){this.overlay=e.element,this.$attrSelector&&this.overlay.setAttribute(this.$attrSelector,"");let r=this.inline?void 0:{position:"absolute",top:"0"};JD(this.overlay,r||{}),this.appendOverlay(),this.updateFocus(),this.autoZIndex&&(this.touchUI?ir.set("modal",this.overlay,this.baseZIndex||this.config.zIndex.modal):ir.set("overlay",this.overlay,this.baseZIndex||this.config.zIndex.overlay)),this.alignOverlay(),this.onShow.emit(e)}break;case"void":this.onOverlayHide(),this.onClose.emit(e);break}}onOverlayAnimationDone(e){switch(e.toState){case"visible":case"visibleTouchUI":this.inline||(this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener());break;case"void":this.autoZIndex&&ir.clear(e.element);break}}appendOverlay(){this.$appendTo()&&this.$appendTo()!=="self"&&(this.$appendTo()==="body"?this.document.body.appendChild(this.overlay):Jd(this.$appendTo(),this.overlay))}restoreOverlayAppend(){this.overlay&&this.$appendTo()!=="self"&&this.el.nativeElement.appendChild(this.overlay)}alignOverlay(){this.touchUI?this.enableModality(this.overlay):this.overlay&&(this.view==="date"?(this.overlay.style.width||(this.overlay.style.width=Mn(this.overlay)+"px"),this.overlay.style.minWidth||(this.overlay.style.minWidth=Mn(this.inputfieldViewChild?.nativeElement)+"px")):this.overlay.style.width||(this.overlay.style.width=Mn(this.inputfieldViewChild?.nativeElement)+"px"),this.$appendTo()&&this.$appendTo()!=="self"?ZD(this.overlay,this.inputfieldViewChild?.nativeElement):XD(this.overlay,this.inputfieldViewChild?.nativeElement))}enableModality(e){!this.mask&&this.touchUI&&(this.mask=this.renderer.createElement("div"),this.renderer.setStyle(this.mask,"zIndex",String(parseInt(e.style.zIndex)-1)),ri(this.mask,"p-overlay-mask p-datepicker-mask p-datepicker-mask-scrollblocker p-overlay-mask p-overlay-mask-enter"),this.maskClickListener=this.renderer.listen(this.mask,"click",i=>{this.disableModality(),this.overlayVisible=!1}),this.renderer.appendChild(this.document.body,this.mask),Vk())}disableModality(){this.mask&&(ri(this.mask,"p-overlay-mask-leave"),this.animationEndListener||(this.animationEndListener=this.renderer.listen(this.mask,"animationend",this.destroyMask.bind(this))))}destroyMask(){if(!this.mask)return;this.renderer.removeChild(this.document.body,this.mask);let e=this.document.body.children,r;for(let i=0;i<e.length;i++){let o=e[i];if(wn(o,"p-datepicker-mask-scrollblocker")){r=!0;break}}r||Qh(),this.unbindAnimationEndListener(),this.unbindMaskClickListener(),this.mask=null}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}unbindAnimationEndListener(){this.animationEndListener&&this.mask&&(this.animationEndListener(),this.animationEndListener=null)}getDateFormat(){return this.dateFormat||this.getTranslation("dateFormat")}getFirstDateOfWeek(){return this._firstDayOfWeek||this.getTranslation(xn.FIRST_DAY_OF_WEEK)}formatDate(e,r){if(!e)return"";let i,o=d=>{let u=i+1<r.length&&r.charAt(i+1)===d;return u&&i++,u},s=(d,u,p)=>{let f=""+u;if(o(d))for(;f.length<p;)f="0"+f;return f},a=(d,u,p,f)=>o(d)?f[u]:p[u],l="",c=!1;if(e)for(i=0;i<r.length;i++)if(c)r.charAt(i)==="'"&&!o("'")?c=!1:l+=r.charAt(i);else switch(r.charAt(i)){case"d":l+=s("d",e.getDate(),2);break;case"D":l+=a("D",e.getDay(),this.getTranslation(xn.DAY_NAMES_SHORT),this.getTranslation(xn.DAY_NAMES));break;case"o":l+=s("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":l+=s("m",e.getMonth()+1,2);break;case"M":l+=a("M",e.getMonth(),this.getTranslation(xn.MONTH_NAMES_SHORT),this.getTranslation(xn.MONTH_NAMES));break;case"y":l+=o("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":l+=e.getTime();break;case"!":l+=e.getTime()*1e4+this.ticksTo1970;break;case"'":o("'")?l+="'":c=!0;break;default:l+=r.charAt(i)}return l}formatTime(e){if(!e)return"";let r="",i=e.getHours(),o=e.getMinutes(),s=e.getSeconds();return this.hourFormat=="12"&&i>11&&i!=12&&(i-=12),this.hourFormat=="12"?r+=i===0?12:i<10?"0"+i:i:r+=i<10?"0"+i:i,r+=":",r+=o<10?"0"+o:o,this.showSeconds&&(r+=":",r+=s<10?"0"+s:s),this.hourFormat=="12"&&(r+=e.getHours()>11?" PM":" AM"),r}parseTime(e){let r=e.split(":"),i=this.showSeconds?3:2;if(r.length!==i)throw"Invalid time";let o=parseInt(r[0]),s=parseInt(r[1]),a=this.showSeconds?parseInt(r[2]):null;if(isNaN(o)||isNaN(s)||o>23||s>59||this.hourFormat=="12"&&o>12||this.showSeconds&&(isNaN(a)||a>59))throw"Invalid time";return this.hourFormat=="12"&&(o!==12&&this.pm?o+=12:!this.pm&&o===12&&(o-=12)),{hour:o,minute:s,second:a}}parseDate(e,r){if(r==null||e==null)throw"Invalid arguments";if(e=typeof e=="object"?e.toString():e+"",e==="")return null;let i,o,s,a=0,l=typeof this.shortYearCutoff!="string"?this.shortYearCutoff:new Date().getFullYear()%100+parseInt(this.shortYearCutoff,10),c=-1,d=-1,u=-1,p=-1,f=!1,y,b=P=>{let B=i+1<r.length&&r.charAt(i+1)===P;return B&&i++,B},v=P=>{let B=b(P),Y=P==="@"?14:P==="!"?20:P==="y"&&B?4:P==="o"?3:2,ye=P==="y"?Y:1,Xe=new RegExp("^\\d{"+ye+","+Y+"}"),tt=e.substring(a).match(Xe);if(!tt)throw"Missing number at position "+a;return a+=tt[0].length,parseInt(tt[0],10)},w=(P,B,Y)=>{let ye=-1,Xe=b(P)?Y:B,tt=[];for(let vt=0;vt<Xe.length;vt++)tt.push([vt,Xe[vt]]);tt.sort((vt,tn)=>-(vt[1].length-tn[1].length));for(let vt=0;vt<tt.length;vt++){let tn=tt[vt][1];if(e.substr(a,tn.length).toLowerCase()===tn.toLowerCase()){ye=tt[vt][0],a+=tn.length;break}}if(ye!==-1)return ye+1;throw"Unknown name at position "+a},D=()=>{if(e.charAt(a)!==r.charAt(i))throw"Unexpected literal at position "+a;a++};for(this.view==="month"&&(u=1),i=0;i<r.length;i++)if(f)r.charAt(i)==="'"&&!b("'")?f=!1:D();else switch(r.charAt(i)){case"d":u=v("d");break;case"D":w("D",this.getTranslation(xn.DAY_NAMES_SHORT),this.getTranslation(xn.DAY_NAMES));break;case"o":p=v("o");break;case"m":d=v("m");break;case"M":d=w("M",this.getTranslation(xn.MONTH_NAMES_SHORT),this.getTranslation(xn.MONTH_NAMES));break;case"y":c=v("y");break;case"@":y=new Date(v("@")),c=y.getFullYear(),d=y.getMonth()+1,u=y.getDate();break;case"!":y=new Date((v("!")-this.ticksTo1970)/1e4),c=y.getFullYear(),d=y.getMonth()+1,u=y.getDate();break;case"'":b("'")?D():f=!0;break;default:D()}if(a<e.length&&(s=e.substr(a),!/^\s+/.test(s)))throw"Extra/unparsed characters found in date: "+s;if(c===-1?c=new Date().getFullYear():c<100&&(c+=new Date().getFullYear()-new Date().getFullYear()%100+(c<=l?0:-100)),p>-1){d=1,u=p;do{if(o=this.getDaysCountInMonth(c,d-1),u<=o)break;d++,u-=o}while(!0)}if(this.view==="year"&&(d=d===-1?1:d,u=u===-1?1:u),y=this.daylightSavingAdjust(new Date(c,d-1,u)),y.getFullYear()!==c||y.getMonth()+1!==d||y.getDate()!==u)throw"Invalid date";return y}daylightSavingAdjust(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null}isValidDateForTimeConstraints(e){return this.keepInvalid?!0:(!this.minDate||e>=this.minDate)&&(!this.maxDate||e<=this.maxDate)}onTodayButtonClick(e){let r=new Date,i={day:r.getDate(),month:r.getMonth(),year:r.getFullYear(),otherMonth:r.getMonth()!==this.currentMonth||r.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.createMonths(r.getMonth(),r.getFullYear()),this.onDateSelect(e,i),this.onTodayClick.emit(r)}onClearButtonClick(e){this.updateModel(null),this.updateInputfield(),this.hideOverlay(),this.onClearClick.emit(e)}createResponsiveStyle(){if(this.numberOfMonths>1&&this.responsiveOptions){this.responsiveStyleElement||(this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",tu(this.responsiveStyleElement,"nonce",this.config?.csp()?.nonce),this.renderer.appendChild(this.document.body,this.responsiveStyleElement));let e="";if(this.responsiveOptions){let r=[...this.responsiveOptions].filter(i=>!!(i.breakpoint&&i.numMonths)).sort((i,o)=>-1*i.breakpoint.localeCompare(o.breakpoint,void 0,{numeric:!0}));for(let i=0;i<r.length;i++){let{breakpoint:o,numMonths:s}=r[i],a=`
.p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${s}) .p-datepicker-next {
display: inline-flex !important;
}
`;for(let l=s;l<this.numberOfMonths;l++)a+=`
.p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${l+1}) {
display: none !important;
}
`;e+=`
@media screen and (max-width: ${o}) {
${a}
}
`}}this.responsiveStyleElement.innerHTML=e,tu(this.responsiveStyleElement,"nonce",this.config?.csp()?.nonce)}}destroyResponsiveStyleElement(){this.responsiveStyleElement&&(this.responsiveStyleElement.remove(),this.responsiveStyleElement=null)}bindDocumentClickListener(){this.documentClickListener||this.zone.runOutsideAngular(()=>{let e=this.el?this.el.nativeElement.ownerDocument:this.document;this.documentClickListener=this.renderer.listen(e,"mousedown",r=>{this.isOutsideClicked(r)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(r),this.cd.markForCheck()})})})}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){!this.documentResizeListener&&!this.touchUI&&(this.documentResizeListener=this.renderer.listen(this.window,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new xo(this.el?.nativeElement,()=>{this.overlayVisible&&this.hideOverlay()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}isOutsideClicked(e){return!(this.el.nativeElement.isSameNode(e.target)||this.isNavIconClicked(e)||this.el.nativeElement.contains(e.target)||this.overlay&&this.overlay.contains(e.target))}isNavIconClicked(e){return wn(e.target,"p-datepicker-prev-button")||wn(e.target,"p-datepicker-prev-icon")||wn(e.target,"p-datepicker-next-button")||wn(e.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!_o()&&this.hideOverlay()}onOverlayHide(){this.currentView=this.view,this.mask&&this.destroyMask(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}writeControlValue(e){if(this.value=e,this.value&&typeof this.value=="string")try{this.value=this.parseValueFromString(this.value)}catch{this.keepInvalid&&(this.value=e)}this.updateInputfield(),this.updateUI(),this.cd.markForCheck()}onDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.overlay&&this.autoZIndex&&ir.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}static \u0275fac=function(r){return new(r||t)(de($e),de(zl))};static \u0275cmp=$({type:t,selectors:[["p-datePicker"],["p-datepicker"],["p-date-picker"]],contentQueries:function(r,i,o){if(r&1&&(V(o,NW,4),V(o,FW,4),V(o,LW,4),V(o,BW,4),V(o,VW,4),V(o,jW,4),V(o,zW,4),V(o,HW,4),V(o,$W,4),V(o,UW,4),V(o,WW,4),V(o,GW,4),V(o,qW,4),V(o,xt,4)),r&2){let s;M(s=O())&&(i.dateTemplate=s.first),M(s=O())&&(i.headerTemplate=s.first),M(s=O())&&(i.footerTemplate=s.first),M(s=O())&&(i.disabledDateTemplate=s.first),M(s=O())&&(i.decadeTemplate=s.first),M(s=O())&&(i.previousIconTemplate=s.first),M(s=O())&&(i.nextIconTemplate=s.first),M(s=O())&&(i.triggerIconTemplate=s.first),M(s=O())&&(i.clearIconTemplate=s.first),M(s=O())&&(i.decrementIconTemplate=s.first),M(s=O())&&(i.incrementIconTemplate=s.first),M(s=O())&&(i.inputIconTemplate=s.first),M(s=O())&&(i.buttonBarTemplate=s.first),M(s=O())&&(i.templates=s)}},viewQuery:function(r,i){if(r&1&&(ct(QW,5),ct(KW,5)),r&2){let o;M(o=O())&&(i.inputfieldViewChild=o.first),M(o=O())&&(i.content=o.first)}},hostVars:4,hostBindings:function(r,i){r&2&&(Dn(i.sx("root")),k(i.cn(i.cx("root"),i.styleClass)))},inputs:{iconDisplay:"iconDisplay",styleClass:"styleClass",inputStyle:"inputStyle",inputId:"inputId",inputStyleClass:"inputStyleClass",placeholder:"placeholder",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",iconAriaLabel:"iconAriaLabel",dateFormat:"dateFormat",multipleSeparator:"multipleSeparator",rangeSeparator:"rangeSeparator",inline:[2,"inline","inline",R],showOtherMonths:[2,"showOtherMonths","showOtherMonths",R],selectOtherMonths:[2,"selectOtherMonths","selectOtherMonths",R],showIcon:[2,"showIcon","showIcon",R],icon:"icon",readonlyInput:[2,"readonlyInput","readonlyInput",R],shortYearCutoff:"shortYearCutoff",hourFormat:"hourFormat",timeOnly:[2,"timeOnly","timeOnly",R],stepHour:[2,"stepHour","stepHour",Me],stepMinute:[2,"stepMinute","stepMinute",Me],stepSecond:[2,"stepSecond","stepSecond",Me],showSeconds:[2,"showSeconds","showSeconds",R],showOnFocus:[2,"showOnFocus","showOnFocus",R],showWeek:[2,"showWeek","showWeek",R],startWeekFromFirstDayOfYear:"startWeekFromFirstDayOfYear",showClear:[2,"showClear","showClear",R],dataType:"dataType",selectionMode:"selectionMode",maxDateCount:[2,"maxDateCount","maxDateCount",Me],showButtonBar:[2,"showButtonBar","showButtonBar",R],todayButtonStyleClass:"todayButtonStyleClass",clearButtonStyleClass:"clearButtonStyleClass",autofocus:[2,"autofocus","autofocus",R],autoZIndex:[2,"autoZIndex","autoZIndex",R],baseZIndex:[2,"baseZIndex","baseZIndex",Me],panelStyleClass:"panelStyleClass",panelStyle:"panelStyle",keepInvalid:[2,"keepInvalid","keepInvalid",R],hideOnDateTimeSelect:[2,"hideOnDateTimeSelect","hideOnDateTimeSelect",R],touchUI:[2,"touchUI","touchUI",R],timeSeparator:"timeSeparator",focusTrap:[2,"focusTrap","focusTrap",R],showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",tabindex:[2,"tabindex","tabindex",Me],minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabledDays:"disabledDays",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",view:"view",defaultDate:"defaultDate",appendTo:[1,"appendTo"]},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onClear:"onClear",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},features:[xe([Jq,eP,{provide:tP,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],ngContentSelectors:ZW,decls:2,vars:2,consts:[["inputfield",""],["contentWrapper",""],["icon",""],[3,"ngIf"],[3,"ngStyle","class","pBind","click",4,"ngIf"],["pInputText","","type","text","role","combobox","aria-autocomplete","none","aria-haspopup","dialog","autocomplete","off",3,"focus","keydown","click","blur","input","pSize","value","ngStyle","pAutoFocus","variant","fluid","invalid","pt"],[4,"ngIf"],["type","button","aria-haspopup","dialog","tabindex","0",3,"class","disabled","pBind","click",4,"ngIf"],["data-p-icon","times",3,"class","pBind","click",4,"ngIf"],[3,"class","pBind","click",4,"ngIf"],["data-p-icon","times",3,"click","pBind"],[3,"click","pBind"],[4,"ngTemplateOutlet"],["type","button","aria-haspopup","dialog","tabindex","0",3,"click","disabled","pBind"],[3,"ngClass","pBind",4,"ngIf"],[3,"ngClass","pBind"],["data-p-icon","calendar",3,"pBind",4,"ngIf"],["data-p-icon","calendar",3,"pBind"],[3,"pBind"],["data-p-icon","calendar",3,"class","pBind","click",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","calendar",3,"click","pBind"],[3,"click","ngStyle","pBind"],[3,"class","pBind",4,"ngIf"],[3,"class","pBind",4,"ngFor","ngForOf"],["rounded","","variant","text","severity","secondary","type","button",3,"keydown","onClick","styleClass","ngStyle","ariaLabel","pt"],["type","button","pRipple","",3,"class","pBind","click","keydown",4,"ngIf"],["rounded","","variant","text","severity","secondary",3,"keydown","onClick","styleClass","ngStyle","ariaLabel","pt"],["role","grid",3,"class","pBind",4,"ngIf"],["data-p-icon","chevron-left",4,"ngIf"],["data-p-icon","chevron-left"],["type","button","pRipple","",3,"click","keydown","pBind"],["data-p-icon","chevron-right",4,"ngIf"],["data-p-icon","chevron-right"],["role","grid",3,"pBind"],["scope","col",3,"class","pBind",4,"ngFor","ngForOf"],[3,"pBind",4,"ngFor","ngForOf"],["scope","col",3,"pBind"],["draggable","false","pRipple","",3,"click","keydown","ngClass","pBind"],["class","p-hidden-accessible","aria-live","polite",4,"ngIf"],["aria-live","polite",1,"p-hidden-accessible"],["pRipple","",3,"class","pBind","click","keydown",4,"ngFor","ngForOf"],["pRipple","",3,"click","keydown","pBind"],["rounded","","variant","text","severity","secondary",3,"keydown","keydown.enter","keydown.space","mousedown","mouseup","keyup.enter","keyup.space","mouseleave","styleClass","pt"],[1,"p-datepicker-separator",3,"pBind"],["data-p-icon","chevron-up",3,"pBind",4,"ngIf"],["data-p-icon","chevron-up",3,"pBind"],["data-p-icon","chevron-down",3,"pBind",4,"ngIf"],["data-p-icon","chevron-down",3,"pBind"],["text","","rounded","","severity","secondary",3,"keydown","onClick","keydown.enter","styleClass","pt"],["text","","rounded","","severity","secondary",3,"keydown","click","keydown.enter","styleClass","pt"],["size","small","severity","secondary","variant","text","size","small",3,"keydown","onClick","styleClass","label","ngClass","pt"]],template:function(r,i){r&1&&(zt(YW),C(0,vG,5,27,"ng-template",3)(1,Qq,9,20,"div",4)),r&2&&(h("ngIf",!i.inline),g(),h("ngIf",i.inline||i.overlayVisible))},dependencies:[Qe,ei,Ar,Ut,kt,tr,rr,Ui,eM,tM,nM,Zh,ql,Xk,$i,to,Te,Wt,te],encapsulation:2,data:{animation:[Fu("overlayAnimation",[xw("visibleTouchUI",sr({transform:"translate(-50%,-50%)",opacity:1})),Ao("void => visible",[sr({opacity:0,transform:"scaleY(0.8)"}),Po("{{showTransitionParams}}",sr({opacity:1,transform:"*"}))]),Ao("visible => void",[Po("{{hideTransitionParams}}",sr({opacity:0}))]),Ao("void => visibleTouchUI",[sr({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}),Po("{{showTransitionParams}}")]),Ao("visibleTouchUI => void",[Po("{{hideTransitionParams}}",sr({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}))])])]},changeDetection:0})}return t})(),rP=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({imports:[nP,Te,Te]})}return t})();var Xq=["data-p-icon","filter-fill"],iP=(()=>{class t extends we{static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","filter-fill"]],features:[j],attrs:Xq,decls:1,vars:0,consts:[["d","M13.7274 0.33847C13.6228 0.130941 13.4095 0 13.1764 0H0.82351C0.590451 0 0.377157 0.130941 0.272568 0.33847C0.167157 0.545999 0.187746 0.795529 0.325275 0.98247L4.73527 6.99588V13.3824C4.73527 13.7233 5.01198 14 5.35292 14H8.64704C8.98798 14 9.26469 13.7233 9.26469 13.3824V6.99588L13.6747 0.98247C13.8122 0.795529 13.8328 0.545999 13.7274 0.33847Z","fill","currentColor"]],template:function(r,i){r&1&&(G(),ue(0,"path",0))},encapsulation:2})}return t})();var oP=`
.p-radiobutton {
position: relative;
display: inline-flex;
user-select: none;
vertical-align: bottom;
width: dt('radiobutton.width');
height: dt('radiobutton.height');
}
.p-radiobutton-input {
cursor: pointer;
appearance: none;
position: absolute;
top: 0;
inset-inline-start: 0;
width: 100%;
height: 100%;
padding: 0;
margin: 0;
opacity: 0;
z-index: 1;
outline: 0 none;
border: 1px solid transparent;
border-radius: 50%;
}
.p-radiobutton-box {
display: flex;
justify-content: center;
align-items: center;
border-radius: 50%;
border: 1px solid dt('radiobutton.border.color');
background: dt('radiobutton.background');
width: dt('radiobutton.width');
height: dt('radiobutton.height');
transition:
background dt('radiobutton.transition.duration'),
color dt('radiobutton.transition.duration'),
border-color dt('radiobutton.transition.duration'),
box-shadow dt('radiobutton.transition.duration'),
outline-color dt('radiobutton.transition.duration');
outline-color: transparent;
box-shadow: dt('radiobutton.shadow');
}
.p-radiobutton-icon {
transition-duration: dt('radiobutton.transition.duration');
background: transparent;
font-size: dt('radiobutton.icon.size');
width: dt('radiobutton.icon.size');
height: dt('radiobutton.icon.size');
border-radius: 50%;
backface-visibility: hidden;
transform: translateZ(0) scale(0.1);
}
.p-radiobutton:not(.p-disabled):has(.p-radiobutton-input:hover) .p-radiobutton-box {
border-color: dt('radiobutton.hover.border.color');
}
.p-radiobutton-checked .p-radiobutton-box {
border-color: dt('radiobutton.checked.border.color');
background: dt('radiobutton.checked.background');
}
.p-radiobutton-checked .p-radiobutton-box .p-radiobutton-icon {
background: dt('radiobutton.icon.checked.color');
transform: translateZ(0) scale(1, 1);
visibility: visible;
}
.p-radiobutton-checked:not(.p-disabled):has(.p-radiobutton-input:hover) .p-radiobutton-box {
border-color: dt('radiobutton.checked.hover.border.color');
background: dt('radiobutton.checked.hover.background');
}
.p-radiobutton:not(.p-disabled):has(.p-radiobutton-input:hover).p-radiobutton-checked .p-radiobutton-box .p-radiobutton-icon {
background: dt('radiobutton.icon.checked.hover.color');
}
.p-radiobutton:not(.p-disabled):has(.p-radiobutton-input:focus-visible) .p-radiobutton-box {
border-color: dt('radiobutton.focus.border.color');
box-shadow: dt('radiobutton.focus.ring.shadow');
outline: dt('radiobutton.focus.ring.width') dt('radiobutton.focus.ring.style') dt('radiobutton.focus.ring.color');
outline-offset: dt('radiobutton.focus.ring.offset');
}
.p-radiobutton-checked:not(.p-disabled):has(.p-radiobutton-input:focus-visible) .p-radiobutton-box {
border-color: dt('radiobutton.checked.focus.border.color');
}
.p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: dt('radiobutton.invalid.border.color');
}
.p-radiobutton.p-variant-filled .p-radiobutton-box {
background: dt('radiobutton.filled.background');
}
.p-radiobutton.p-variant-filled.p-radiobutton-checked .p-radiobutton-box {
background: dt('radiobutton.checked.background');
}
.p-radiobutton.p-variant-filled:not(.p-disabled):has(.p-radiobutton-input:hover).p-radiobutton-checked .p-radiobutton-box {
background: dt('radiobutton.checked.hover.background');
}
.p-radiobutton.p-disabled {
opacity: 1;
}
.p-radiobutton.p-disabled .p-radiobutton-box {
background: dt('radiobutton.disabled.background');
border-color: dt('radiobutton.checked.disabled.border.color');
}
.p-radiobutton-checked.p-disabled .p-radiobutton-box .p-radiobutton-icon {
background: dt('radiobutton.icon.disabled.color');
}
.p-radiobutton-sm,
.p-radiobutton-sm .p-radiobutton-box {
width: dt('radiobutton.sm.width');
height: dt('radiobutton.sm.height');
}
.p-radiobutton-sm .p-radiobutton-icon {
font-size: dt('radiobutton.icon.sm.size');
width: dt('radiobutton.icon.sm.size');
height: dt('radiobutton.icon.sm.size');
}
.p-radiobutton-lg,
.p-radiobutton-lg .p-radiobutton-box {
width: dt('radiobutton.lg.width');
height: dt('radiobutton.lg.height');
}
.p-radiobutton-lg .p-radiobutton-icon {
font-size: dt('radiobutton.icon.lg.size');
width: dt('radiobutton.icon.lg.size');
height: dt('radiobutton.icon.lg.size');
}
`;var eQ=["input"],tQ=`
${oP}
/* For PrimeNG */
p-radioButton.ng-invalid.ng-dirty .p-radiobutton-box,
p-radio-button.ng-invalid.ng-dirty .p-radiobutton-box,
p-radiobutton.ng-invalid.ng-dirty .p-radiobutton-box {
border-color: dt('radiobutton.invalid.border.color');
}
`,nQ={root:({instance:t})=>["p-radiobutton p-component",{"p-radiobutton-checked":t.checked,"p-disabled":t.$disabled(),"p-invalid":t.invalid(),"p-variant-filled":t.$variant()==="filled","p-radiobutton-sm p-inputfield-sm":t.size()==="small","p-radiobutton-lg p-inputfield-lg":t.size()==="large"}],box:"p-radiobutton-box",input:"p-radiobutton-input",icon:"p-radiobutton-icon"},sP=(()=>{class t extends Oe{name="radiobutton";style=tQ;classes=nQ;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var aP=new H("RADIOBUTTON_INSTANCE"),rQ={provide:Nn,useExisting:Ht(()=>lP),multi:!0},iQ=(()=>{class t{accessors=[];add(e,r){this.accessors.push([e,r])}remove(e){this.accessors=this.accessors.filter(r=>r[1]!==e)}select(e){this.accessors.forEach(r=>{this.isSameGroup(r,e)&&r[1]!==e&&r[1].writeValue(e.value)})}isSameGroup(e,r){return e[0].control?e[0].control.root===r.control.control.root&&e[1].name()===r.name():!1}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),lP=(()=>{class t extends eo{$pcRadioButton=x(aP,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=x(te,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}value;tabindex;inputId;ariaLabelledBy;ariaLabel;styleClass;autofocus;binary;variant=ae();size=ae();onClick=new z;onFocus=new z;onBlur=new z;inputViewChild;$variant=We(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());checked;focused;control;_componentStyle=x(sP);injector=x(Bt);registry=x(iQ);onInit(){this.control=this.injector.get(Yn),this.registry.add(this.control,this)}onChange(e){this.$disabled()||this.select(e)}select(e){this.$disabled()||(this.checked=!0,this.writeModelValue(this.checked),this.onModelChange(this.value),this.registry.select(this),this.onClick.emit({originalEvent:e,value:this.value}))}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onModelTouched(),this.onBlur.emit(e)}focus(){this.inputViewChild.nativeElement.focus()}writeControlValue(e,r){this.checked=this.binary?!!e:e==this.value,r(this.checked),this.cd.markForCheck()}onDestroy(){this.registry.remove(this)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["p-radioButton"],["p-radiobutton"],["p-radio-button"]],viewQuery:function(r,i){if(r&1&&ct(eQ,5),r&2){let o;M(o=O())&&(i.inputViewChild=o.first)}},hostVars:2,hostBindings:function(r,i){r&2&&k(i.cx("root"))},inputs:{value:"value",tabindex:[2,"tabindex","tabindex",Me],inputId:"inputId",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",styleClass:"styleClass",autofocus:[2,"autofocus","autofocus",R],binary:[2,"binary","binary",R],variant:[1,"variant"],size:[1,"size"]},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},features:[xe([rQ,sP,{provide:aP,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],decls:4,vars:20,consts:[["input",""],["type","radio",3,"focus","blur","change","checked","pAutoFocus","pBind"],[3,"pBind"]],template:function(r,i){if(r&1){let o=se();E(0,"input",1,0),q("focus",function(a){return S(o),I(i.onInputFocus(a))})("blur",function(a){return S(o),I(i.onInputBlur(a))})("change",function(a){return S(o),I(i.onChange(a))}),T(),E(2,"div",2),X(3,"div",2),T()}r&2&&(k(i.cx("input")),h("checked",i.checked)("pAutoFocus",i.autofocus)("pBind",i.ptm("input")),J("id",i.inputId)("name",i.name())("required",i.required()?"":void 0)("disabled",i.$disabled()?"":void 0)("value",i.modelValue())("aria-labelledby",i.ariaLabelledBy)("aria-label",i.ariaLabel)("aria-checked",i.checked)("tabindex",i.tabindex),g(2),k(i.cx("box")),h("pBind",i.ptm("box")),g(),k(i.cx("icon")),h("pBind",i.ptm("icon")))},dependencies:[Qe,$i,Te,Wt,te],encapsulation:2,changeDetection:0})}return t})(),cP=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({imports:[lP,Te,Te]})}return t})();var oQ=["header"],sQ=["headergrouped"],aQ=["body"],lQ=["loadingbody"],cQ=["caption"],dQ=["footer"],uQ=["footergrouped"],pQ=["summary"],fQ=["colgroup"],hQ=["expandedrow"],mQ=["groupheader"],gQ=["groupfooter"],yQ=["frozenexpandedrow"],bQ=["frozenheader"],vQ=["frozenbody"],_Q=["frozenfooter"],wQ=["frozencolgroup"],CQ=["emptymessage"],xQ=["paginatorleft"],TQ=["paginatorright"],EQ=["paginatordropdownitem"],SQ=["loadingicon"],IQ=["reorderindicatorupicon"],DQ=["reorderindicatordownicon"],kQ=["sorticon"],MQ=["checkboxicon"],OQ=["headercheckboxicon"],RQ=["paginatordropdownicon"],PQ=["paginatorfirstpagelinkicon"],AQ=["paginatorlastpagelinkicon"],NQ=["paginatorpreviouspagelinkicon"],FQ=["paginatornextpagelinkicon"],LQ=["resizeHelper"],BQ=["reorderIndicatorUp"],VQ=["reorderIndicatorDown"],jQ=["wrapper"],zQ=["table"],HQ=["thead"],$Q=["tfoot"],UQ=["scroller"],WQ=t=>({height:t}),dP=(t,n)=>({$implicit:t,options:n}),GQ=t=>({columns:t}),kw=t=>({$implicit:t});function qQ(t,n){if(t&1&&X(0,"i",17),t&2){let e=m(2);k(e.cn(e.cx("loadingIcon"),e.loadingIcon)),h("pBind",e.ptm("loadingIcon"))}}function QQ(t,n){if(t&1&&(G(),X(0,"svg",19)),t&2){let e=m(3);k(e.cx("loadingIcon")),h("spin",!0)("pBind",e.ptm("loadingIcon"))}}function KQ(t,n){}function YQ(t,n){t&1&&C(0,KQ,0,0,"ng-template")}function ZQ(t,n){if(t&1&&(E(0,"span",17),C(1,YQ,1,0,null,20),T()),t&2){let e=m(3);k(e.cx("loadingIcon")),h("pBind",e.ptm("loadingIcon")),g(),h("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function JQ(t,n){if(t&1&&(ie(0),C(1,QQ,1,4,"svg",18)(2,ZQ,2,4,"span",10),oe()),t&2){let e=m(2);g(),h("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),g(),h("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function XQ(t,n){if(t&1&&(E(0,"div",17),C(1,qQ,1,3,"i",10)(2,JQ,3,2,"ng-container",14),T()),t&2){let e=m();k(e.cx("mask")),h("pBind",e.ptm("mask")),g(),h("ngIf",e.loadingIcon),g(),h("ngIf",!e.loadingIcon)}}function eK(t,n){t&1&&ne(0)}function tK(t,n){if(t&1&&(E(0,"div",17),C(1,eK,1,0,"ng-container",20),T()),t&2){let e=m();k(e.cx("header")),h("pBind",e.ptm("header")),g(),h("ngTemplateOutlet",e.captionTemplate||e._captionTemplate)}}function nK(t,n){t&1&&ne(0)}function rK(t,n){if(t&1&&C(0,nK,1,0,"ng-container",20),t&2){let e=m(3);h("ngTemplateOutlet",e.paginatorDropdownIconTemplate||e._paginatorDropdownIconTemplate)}}function iK(t,n){t&1&&C(0,rK,1,1,"ng-template",22)}function oK(t,n){t&1&&ne(0)}function sK(t,n){if(t&1&&C(0,oK,1,0,"ng-container",20),t&2){let e=m(3);h("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function aK(t,n){t&1&&C(0,sK,1,1,"ng-template",23)}function lK(t,n){t&1&&ne(0)}function cK(t,n){if(t&1&&C(0,lK,1,0,"ng-container",20),t&2){let e=m(3);h("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function dK(t,n){t&1&&C(0,cK,1,1,"ng-template",24)}function uK(t,n){t&1&&ne(0)}function pK(t,n){if(t&1&&C(0,uK,1,0,"ng-container",20),t&2){let e=m(3);h("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function fK(t,n){t&1&&C(0,pK,1,1,"ng-template",25)}function hK(t,n){t&1&&ne(0)}function mK(t,n){if(t&1&&C(0,hK,1,0,"ng-container",20),t&2){let e=m(3);h("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function gK(t,n){t&1&&C(0,mK,1,1,"ng-template",26)}function yK(t,n){if(t&1){let e=se();E(0,"p-paginator",21),q("onPageChange",function(i){S(e);let o=m();return I(o.onPageChange(i))}),C(1,iK,1,0,null,14)(2,aK,1,0,null,14)(3,dK,1,0,null,14)(4,fK,1,0,null,14)(5,gK,1,0,null,14),T()}if(t&2){let e=m();h("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate||e._paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate||e._paginatorRightTemplate)("appendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate||e._paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)("styleClass",e.cx("pcPaginator")+" "+e.paginatorStyleClass&&e.paginatorStyleClass)("locale",e.paginatorLocale)("pt",e.ptm("pcPaginator")),g(),h("ngIf",e.paginatorDropdownIconTemplate||e._paginatorDropdownIconTemplate),g(),h("ngIf",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate),g(),h("ngIf",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate),g(),h("ngIf",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate),g(),h("ngIf",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function bK(t,n){t&1&&ne(0)}function vK(t,n){if(t&1&&C(0,bK,1,0,"ng-container",28),t&2){let e=n.$implicit,r=n.options;m(2);let i=pn(8);h("ngTemplateOutlet",i)("ngTemplateOutletContext",Dt(2,dP,e,r))}}function _K(t,n){if(t&1){let e=se();E(0,"p-scroller",27,2),q("onLazyLoad",function(i){S(e);let o=m();return I(o.onLazyItemLoad(i))}),C(2,vK,1,5,"ng-template",null,3,at),T()}if(t&2){let e=m();Dn(Ee(16,WQ,e.scrollHeight!=="flex"?e.scrollHeight:void 0)),h("items",e.processedData)("columns",e.columns)("scrollHeight",e.scrollHeight!=="flex"?void 0:"100%")("itemSize",e.virtualScrollItemSize)("step",e.rows)("delay",e.lazy?e.virtualScrollDelay:0)("inline",!0)("autoSize",!0)("lazy",e.lazy)("loaderDisabled",!0)("showSpacer",!1)("showLoader",e.loadingBodyTemplate||e._loadingBodyTemplate)("options",e.virtualScrollOptions)("pt",e.ptm("virtualScroller"))}}function wK(t,n){t&1&&ne(0)}function CK(t,n){if(t&1&&(ie(0),C(1,wK,1,0,"ng-container",28),oe()),t&2){let e=m(),r=pn(8);g(),h("ngTemplateOutlet",r)("ngTemplateOutletContext",Dt(4,dP,e.processedData,Ee(2,GQ,e.columns)))}}function xK(t,n){t&1&&ne(0)}function TK(t,n){t&1&&ne(0)}function EK(t,n){if(t&1&&X(0,"tbody",35),t&2){let e=m().options,r=m();k(r.cx("tbody")),h("pBind",r.ptm("tbody"))("value",r.frozenValue)("frozenRows",!0)("pTableBody",e.columns)("pTableBodyTemplate",r.frozenBodyTemplate||r._frozenBodyTemplate)("frozen",!0)}}function SK(t,n){if(t&1&&X(0,"tbody",36),t&2){let e=m().options,r=m();Dn("height: calc("+e.spacerStyle.height+" - "+e.rows.length*e.itemSize+"px);"),k(r.cx("virtualScrollerSpacer")),h("pBind",r.ptm("virtualScrollerSpacer"))}}function IK(t,n){t&1&&ne(0)}function DK(t,n){if(t&1&&(E(0,"tfoot",37,6),C(2,IK,1,0,"ng-container",28),T()),t&2){let e=m().options,r=m();h("ngClass",r.cx("footer"))("ngStyle",r.sx("tfoot"))("pBind",r.ptm("tfoot")),g(2),h("ngTemplateOutlet",r.footerGroupedTemplate||r.footerTemplate||r._footerTemplate||r._footerGroupedTemplate)("ngTemplateOutletContext",Ee(5,kw,e.columns))}}function kK(t,n){if(t&1&&(E(0,"table",29,4),C(2,xK,1,0,"ng-container",28),E(3,"thead",30,5),C(5,TK,1,0,"ng-container",28),T(),C(6,EK,1,8,"tbody",31),X(7,"tbody",32),C(8,SK,1,5,"tbody",33)(9,DK,3,7,"tfoot",34),T()),t&2){let e=n.options,r=m();Dn(r.tableStyle),k(r.cn(r.cx("table"),r.tableStyleClass)),h("pBind",r.ptm("table")),J("id",r.id+"-table"),g(2),h("ngTemplateOutlet",r.colGroupTemplate||r._colGroupTemplate)("ngTemplateOutletContext",Ee(26,kw,e.columns)),g(),k(r.cx("thead")),h("ngStyle",r.sx("thead"))("pBind",r.ptm("thead")),g(2),h("ngTemplateOutlet",r.headerGroupedTemplate||r.headerTemplate||r._headerTemplate)("ngTemplateOutletContext",Ee(28,kw,e.columns)),g(),h("ngIf",r.frozenValue||r.frozenBodyTemplate||r._frozenBodyTemplate),g(),Dn(e.contentStyle),k(r.cx("tbody",e.contentStyleClass)),h("pBind",r.ptm("tbody"))("value",r.dataToRender(e.rows))("pTableBody",e.columns)("pTableBodyTemplate",r.bodyTemplate||r._bodyTemplate)("scrollerOptions",e),g(),h("ngIf",e.spacerStyle),g(),h("ngIf",r.footerGroupedTemplate||r.footerTemplate||r._footerTemplate||r._footerGroupedTemplate)}}function MK(t,n){t&1&&ne(0)}function OK(t,n){if(t&1&&C(0,MK,1,0,"ng-container",20),t&2){let e=m(3);h("ngTemplateOutlet",e.paginatorDropdownIconTemplate||e._paginatorDropdownIconTemplate)}}function RK(t,n){t&1&&C(0,OK,1,1,"ng-template",22)}function PK(t,n){t&1&&ne(0)}function AK(t,n){if(t&1&&C(0,PK,1,0,"ng-container",20),t&2){let e=m(3);h("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function NK(t,n){t&1&&C(0,AK,1,1,"ng-template",23)}function FK(t,n){t&1&&ne(0)}function LK(t,n){if(t&1&&C(0,FK,1,0,"ng-container",20),t&2){let e=m(3);h("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function BK(t,n){t&1&&C(0,LK,1,1,"ng-template",24)}function VK(t,n){t&1&&ne(0)}function jK(t,n){if(t&1&&C(0,VK,1,0,"ng-container",20),t&2){let e=m(3);h("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function zK(t,n){t&1&&C(0,jK,1,1,"ng-template",25)}function HK(t,n){t&1&&ne(0)}function $K(t,n){if(t&1&&C(0,HK,1,0,"ng-container",20),t&2){let e=m(3);h("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function UK(t,n){t&1&&C(0,$K,1,1,"ng-template",26)}function WK(t,n){if(t&1){let e=se();E(0,"p-paginator",21),q("onPageChange",function(i){S(e);let o=m();return I(o.onPageChange(i))}),C(1,RK,1,0,null,14)(2,NK,1,0,null,14)(3,BK,1,0,null,14)(4,zK,1,0,null,14)(5,UK,1,0,null,14),T()}if(t&2){let e=m();h("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate||e._paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate||e._paginatorRightTemplate)("appendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate||e._paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)("styleClass",e.cx("pcPaginator")+" "+e.paginatorStyleClass&&e.paginatorStyleClass)("locale",e.paginatorLocale)("pt",e.ptm("pcPaginator")),g(),h("ngIf",e.paginatorDropdownIconTemplate||e._paginatorDropdownIconTemplate),g(),h("ngIf",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate),g(),h("ngIf",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate),g(),h("ngIf",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate),g(),h("ngIf",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function GK(t,n){t&1&&ne(0)}function qK(t,n){if(t&1&&(E(0,"div",38),C(1,GK,1,0,"ng-container",20),T()),t&2){let e=m();h("ngClass",e.cx("footer"))("pBind",e.ptm("footer")),g(),h("ngTemplateOutlet",e.summaryTemplate||e._summaryTemplate)}}function QK(t,n){if(t&1&&X(0,"div",38,7),t&2){let e=m();er("display","none"),h("ngClass",e.cx("columnResizeIndicator"))("pBind",e.ptm("columnResizeIndicator"))}}function KK(t,n){if(t&1&&(G(),X(0,"svg",40)),t&2){let e=m(2);h("pBind",e.ptm("rowReorderIndicatorUp").icon)}}function YK(t,n){}function ZK(t,n){t&1&&C(0,YK,0,0,"ng-template")}function JK(t,n){if(t&1&&(E(0,"span",38,8),C(2,KK,1,1,"svg",39)(3,ZK,1,0,null,20),T()),t&2){let e=m();er("display","none"),h("ngClass",e.cx("rowReorderIndicatorUp"))("pBind",e.ptm("rowReorderIndicatorUp")),g(2),h("ngIf",!e.reorderIndicatorUpIconTemplate&&!e._reorderIndicatorUpIconTemplate),g(),h("ngTemplateOutlet",e.reorderIndicatorUpIconTemplate||e._reorderIndicatorUpIconTemplate)}}function XK(t,n){if(t&1&&(G(),X(0,"svg",42)),t&2){let e=m(2);h("pBind",e.ptm("rowReorderIndicatorDown").icon)}}function eY(t,n){}function tY(t,n){t&1&&C(0,eY,0,0,"ng-template")}function nY(t,n){if(t&1&&(E(0,"span",38,9),C(2,XK,1,1,"svg",41)(3,tY,1,0,null,20),T()),t&2){let e=m();er("display","none"),h("ngClass",e.cx("rowReorderIndicatorDown"))("pBind",e.ptm("rowReorderIndicatorDown")),g(2),h("ngIf",!e.reorderIndicatorDownIconTemplate&&!e._reorderIndicatorDownIconTemplate),g(),h("ngTemplateOutlet",e.reorderIndicatorDownIconTemplate||e._reorderIndicatorDownIconTemplate)}}var rY=["pTableBody",""],Rw=(t,n,e,r,i)=>({$implicit:t,rowIndex:n,columns:e,editing:r,frozen:i}),iY=(t,n,e,r,i,o,s)=>({$implicit:t,rowIndex:n,columns:e,editing:r,frozen:i,rowgroup:o,rowspan:s}),rg=(t,n,e,r,i,o)=>({$implicit:t,rowIndex:n,columns:e,expanded:r,editing:i,frozen:o}),uP=(t,n,e,r)=>({$implicit:t,rowIndex:n,columns:e,frozen:r}),pP=(t,n)=>({$implicit:t,frozen:n});function oY(t,n){t&1&&ne(0)}function sY(t,n){if(t&1&&(ie(0,3),C(1,oY,1,0,"ng-container",4),oe()),t&2){let e=m(),r=e.$implicit,i=e.index,o=m(2);g(),h("ngTemplateOutlet",o.dataTable.groupHeaderTemplate||o.dataTable._groupHeaderTemplate)("ngTemplateOutletContext",bd(2,Rw,r,o.getRowIndex(i),o.columns,o.dataTable.editMode==="row"&&o.dataTable.isRowEditing(r),o.frozen))}}function aY(t,n){t&1&&ne(0)}function lY(t,n){if(t&1&&(ie(0),C(1,aY,1,0,"ng-container",4),oe()),t&2){let e=m(),r=e.$implicit,i=e.index,o=m(2);g(),h("ngTemplateOutlet",r?o.template:o.dataTable.loadingBodyTemplate||o.dataTable._loadingBodyTemplate)("ngTemplateOutletContext",bd(2,Rw,r,o.getRowIndex(i),o.columns,o.dataTable.editMode==="row"&&o.dataTable.isRowEditing(r),o.frozen))}}function cY(t,n){t&1&&ne(0)}function dY(t,n){if(t&1&&(ie(0),C(1,cY,1,0,"ng-container",4),oe()),t&2){let e=m(),r=e.$implicit,i=e.index,o=m(2);g(),h("ngTemplateOutlet",r?o.template:o.dataTable.loadingBodyTemplate||o.dataTable._loadingBodyTemplate)("ngTemplateOutletContext",Rb(2,iY,r,o.getRowIndex(i),o.columns,o.dataTable.editMode==="row"&&o.dataTable.isRowEditing(r),o.frozen,o.shouldRenderRowspan(o.value,r,i),o.calculateRowGroupSize(o.value,r,i)))}}function uY(t,n){t&1&&ne(0)}function pY(t,n){if(t&1&&(ie(0,3),C(1,uY,1,0,"ng-container",4),oe()),t&2){let e=m(),r=e.$implicit,i=e.index,o=m(2);g(),h("ngTemplateOutlet",o.dataTable.groupFooterTemplate||o.dataTable._groupFooterTemplate)("ngTemplateOutletContext",bd(2,Rw,r,o.getRowIndex(i),o.columns,o.dataTable.editMode==="row"&&o.dataTable.isRowEditing(r),o.frozen))}}function fY(t,n){if(t&1&&C(0,sY,2,8,"ng-container",2)(1,lY,2,8,"ng-container",0)(2,dY,2,10,"ng-container",0)(3,pY,2,8,"ng-container",2),t&2){let e=n.$implicit,r=n.index,i=m(2);h("ngIf",(i.dataTable.groupHeaderTemplate||i.dataTable._groupHeaderTemplate)&&!i.dataTable.virtualScroll&&i.dataTable.rowGroupMode==="subheader"&&i.shouldRenderRowGroupHeader(i.value,e,i.getRowIndex(r))),g(),h("ngIf",i.dataTable.rowGroupMode!=="rowspan"),g(),h("ngIf",i.dataTable.rowGroupMode==="rowspan"),g(),h("ngIf",(i.dataTable.groupFooterTemplate||i.dataTable._groupFooterTemplate)&&!i.dataTable.virtualScroll&&i.dataTable.rowGroupMode==="subheader"&&i.shouldRenderRowGroupFooter(i.value,e,i.getRowIndex(r)))}}function hY(t,n){if(t&1&&(ie(0),C(1,fY,4,4,"ng-template",1),oe()),t&2){let e=m();g(),h("ngForOf",e.value)("ngForTrackBy",e.dataTable.rowTrackBy)}}function mY(t,n){t&1&&ne(0)}function gY(t,n){if(t&1&&(ie(0),C(1,mY,1,0,"ng-container",4),oe()),t&2){let e=m(),r=e.$implicit,i=e.index,o=m(2);g(),h("ngTemplateOutlet",o.template)("ngTemplateOutletContext",wl(2,rg,r,o.getRowIndex(i),o.columns,o.dataTable.isRowExpanded(r),o.dataTable.editMode==="row"&&o.dataTable.isRowEditing(r),o.frozen))}}function yY(t,n){t&1&&ne(0)}function bY(t,n){if(t&1&&(ie(0,3),C(1,yY,1,0,"ng-container",4),oe()),t&2){let e=m(),r=e.$implicit,i=e.index,o=m(2);g(),h("ngTemplateOutlet",o.dataTable.groupHeaderTemplate||o.dataTable._groupHeaderTemplate)("ngTemplateOutletContext",wl(2,rg,r,o.getRowIndex(i),o.columns,o.dataTable.isRowExpanded(r),o.dataTable.editMode==="row"&&o.dataTable.isRowEditing(r),o.frozen))}}function vY(t,n){t&1&&ne(0)}function _Y(t,n){t&1&&ne(0)}function wY(t,n){if(t&1&&(ie(0,3),C(1,_Y,1,0,"ng-container",4),oe()),t&2){let e=m(2),r=e.$implicit,i=e.index,o=m(2);g(),h("ngTemplateOutlet",o.dataTable.groupFooterTemplate||o.dataTable._groupFooterTemplate)("ngTemplateOutletContext",wl(2,rg,r,o.getRowIndex(i),o.columns,o.dataTable.isRowExpanded(r),o.dataTable.editMode==="row"&&o.dataTable.isRowEditing(r),o.frozen))}}function CY(t,n){if(t&1&&(ie(0),C(1,vY,1,0,"ng-container",4)(2,wY,2,9,"ng-container",2),oe()),t&2){let e=m(),r=e.$implicit,i=e.index,o=m(2);g(),h("ngTemplateOutlet",o.dataTable.expandedRowTemplate||o.dataTable._expandedRowTemplate)("ngTemplateOutletContext",Kf(3,uP,r,o.getRowIndex(i),o.columns,o.frozen)),g(),h("ngIf",(o.dataTable.groupFooterTemplate||o.dataTable._groupFooterTemplate)&&o.dataTable.rowGroupMode==="subheader"&&o.shouldRenderRowGroupFooter(o.value,r,o.getRowIndex(i)))}}function xY(t,n){if(t&1&&C(0,gY,2,9,"ng-container",0)(1,bY,2,9,"ng-container",2)(2,CY,3,8,"ng-container",0),t&2){let e=n.$implicit,r=n.index,i=m(2);h("ngIf",!(i.dataTable.groupHeaderTemplate&&i.dataTable._groupHeaderTemplate)),g(),h("ngIf",(i.dataTable.groupHeaderTemplate||i.dataTable._groupHeaderTemplate)&&i.dataTable.rowGroupMode==="subheader"&&i.shouldRenderRowGroupHeader(i.value,e,i.getRowIndex(r))),g(),h("ngIf",i.dataTable.isRowExpanded(e))}}function TY(t,n){if(t&1&&(ie(0),C(1,xY,3,3,"ng-template",1),oe()),t&2){let e=m();g(),h("ngForOf",e.value)("ngForTrackBy",e.dataTable.rowTrackBy)}}function EY(t,n){t&1&&ne(0)}function SY(t,n){t&1&&ne(0)}function IY(t,n){if(t&1&&(ie(0),C(1,SY,1,0,"ng-container",4),oe()),t&2){let e=m(),r=e.$implicit,i=e.index,o=m(2);g(),h("ngTemplateOutlet",o.dataTable.frozenExpandedRowTemplate||o.dataTable._frozenExpandedRowTemplate)("ngTemplateOutletContext",Kf(2,uP,r,o.getRowIndex(i),o.columns,o.frozen))}}function DY(t,n){if(t&1&&C(0,EY,1,0,"ng-container",4)(1,IY,2,7,"ng-container",0),t&2){let e=n.$implicit,r=n.index,i=m(2);h("ngTemplateOutlet",i.template)("ngTemplateOutletContext",wl(3,rg,e,i.getRowIndex(r),i.columns,i.dataTable.isRowExpanded(e),i.dataTable.editMode==="row"&&i.dataTable.isRowEditing(e),i.frozen)),g(),h("ngIf",i.dataTable.isRowExpanded(e))}}function kY(t,n){if(t&1&&(ie(0),C(1,DY,2,10,"ng-template",1),oe()),t&2){let e=m();g(),h("ngForOf",e.value)("ngForTrackBy",e.dataTable.rowTrackBy)}}function MY(t,n){t&1&&ne(0)}function OY(t,n){if(t&1&&(ie(0),C(1,MY,1,0,"ng-container",4),oe()),t&2){let e=m();g(),h("ngTemplateOutlet",e.dataTable.loadingBodyTemplate||e.dataTable._loadingBodyTemplate)("ngTemplateOutletContext",Dt(2,pP,e.columns,e.frozen))}}function RY(t,n){t&1&&ne(0)}function PY(t,n){if(t&1&&(ie(0),C(1,RY,1,0,"ng-container",4),oe()),t&2){let e=m();g(),h("ngTemplateOutlet",e.dataTable.emptyMessageTemplate||e.dataTable._emptyMessageTemplate)("ngTemplateOutletContext",Dt(2,pP,e.columns,e.frozen))}}var AY=`
${GR}
/* For PrimeNG */
.p-datatable-scrollable-table > .p-datatable-thead {
top: 0;
z-index: 2;
}
.p-datatable-scrollable-table > .p-datatable-frozen-tbody {
position: sticky;
z-index: 2;
}
.p-datatable-scrollable-table > .p-datatable-frozen-tbody + .p-datatable-frozen-tbody {
z-index: 1;
}
.p-datatable-mask.p-overlay-mask {
position: absolute;
display: flex;
align-items: center;
justify-content: center;
z-index: 3;
}
.p-datatable-filter-overlay {
position: absolute;
background: dt('datatable.filter.overlay.select.background');
color: dt('datatable.filter.overlay.select.color');
border: 1px solid dt('datatable.filter.overlay.select.border.color');
border-radius: dt('datatable.filter.overlay.select.border.radius');
box-shadow: dt('datatable.filter.overlay.select.shadow');
min-width: 12.5rem;
}
.p-datatable-filter-rule {
border-bottom: 1px solid dt('datatable.filter.rule.border.color');
}
.p-datatable-filter-rule:last-child {
border-bottom: 0 none;
}
.p-datatable-filter-add-rule-button,
.p-datatable-filter-remove-rule-button {
width: 100%;
}
.p-datatable-filter-remove-button {
width: 100%;
}
.p-datatable-thead > tr > th {
padding: dt('datatable.header.cell.padding');
background: dt('datatable.header.cell.background');
border-color: dt('datatable.header.cell.border.color');
border-style: solid;
border-width: 0 0 1px 0;
color: dt('datatable.header.cell.color');
font-weight: dt('datatable.column.title.font.weight');
text-align: start;
transition:
background dt('datatable.transition.duration'),
color dt('datatable.transition.duration'),
border-color dt('datatable.transition.duration'),
outline-color dt('datatable.transition.duration'),
box-shadow dt('datatable.transition.duration');
}
.p-datatable-thead > tr > th p-columnfilter {
font-weight: normal;
}
.p-datatable-thead > tr > th,
.p-datatable-sort-icon,
.p-datatable-sort-badge {
vertical-align: middle;
}
.p-datatable-thead > tr > th.p-datatable-column-sorted {
background: dt('datatable.header.cell.selected.background');
color: dt('datatable.header.cell.selected.color');
}
.p-datatable-thead > tr > th.p-datatable-column-sorted .p-datatable-sort-icon {
color: dt('datatable.header.cell.selected.color');
}
.p-datatable.p-datatable-striped .p-datatable-tbody > tr:nth-child(odd) {
background: dt('datatable.row.striped.background');
}
.p-datatable.p-datatable-striped .p-datatable-tbody > tr:nth-child(odd).p-datatable-row-selected {
background: dt('datatable.row.selected.background');
color: dt('datatable.row.selected.color');
}
p-sortIcon, p-sort-icon, p-sorticon {
display: inline-flex;
align-items: center;
gap: dt('datatable.header.cell.gap');
}
.p-datatable .p-editable-column.p-cell-editing {
padding: 0;
}
.p-datatable .p-editable-column.p-cell-editing p-celleditor {
display: block;
width: 100%;
}
`,NY={root:({instance:t})=>["p-datatable p-component",{"p-datatable-hoverable":t.rowHover||t.selectionMode,"p-datatable-resizable":t.resizableColumns,"p-datatable-resizable-fit":t.resizableColumns&&t.columnResizeMode==="fit","p-datatable-scrollable":t.scrollable,"p-datatable-flex-scrollable":t.scrollable&&t.scrollHeight==="flex","p-datatable-striped":t.stripedRows,"p-datatable-gridlines":t.showGridlines,"p-datatable-sm":t.size==="small","p-datatable-lg":t.size==="large"}],mask:"p-datatable-mask p-overlay-mask",loadingIcon:"p-datatable-loading-icon",header:"p-datatable-header",pcPaginator:({instance:t})=>"p-datatable-paginator-"+t.paginatorPosition,tableContainer:"p-datatable-table-container",table:({instance:t})=>["p-datatable-table",{"p-datatable-scrollable-table":t.scrollable,"p-datatable-resizable-table":t.resizableColumns,"p-datatable-resizable-table-fit":t.resizableColumns&&t.columnResizeMode==="fit"}],thead:"p-datatable-thead",columnResizer:"p-datatable-column-resizer",columnHeaderContent:"p-datatable-column-header-content",columnTitle:"p-datatable-column-title",columnFooter:"p-datatable-column-footer",sortIcon:"p-datatable-sort-icon",pcSortBadge:"p-datatable-sort-badge",filter:({instance:t})=>({"p-datatable-filter":!0,"p-datatable-inline-filter":t.display==="row","p-datatable-popover-filter":t.display==="menu"}),filterElementContainer:"p-datatable-filter-element-container",pcColumnFilterButton:"p-datatable-column-filter-button",pcColumnFilterClearButton:"p-datatable-column-filter-clear-button",filterOverlay:({instance:t})=>({"p-datatable-filter-overlay p-component":!0,"p-datatable-filter-overlay-popover":t.display==="menu"}),filterConstraintList:"p-datatable-filter-constraint-list",filterConstraint:"p-datatable-filter-constraint",filterConstraintSeparator:"p-datatable-filter-constraint-separator",filterOperator:"p-datatable-filter-operator",pcFilterOperatorDropdown:"p-datatable-filter-operator-dropdown",filterRuleList:"p-datatable-filter-rule-list",filterRule:"p-datatable-filter-rule",pcFilterConstraintDropdown:"p-datatable-filter-constraint-dropdown",pcFilterRemoveRuleButton:"p-datatable-filter-remove-rule-button",pcFilterAddRuleButton:"p-datatable-filter-add-rule-button",filterButtonbar:"p-datatable-filter-buttonbar",pcFilterClearButton:"p-datatable-filter-clear-button",pcFilterApplyButton:"p-datatable-filter-apply-button",tbody:({instance:t})=>({"p-datatable-tbody":!0,"p-datatable-frozen-tbody":t.frozenValue||t.frozenBodyTemplate,"p-virtualscroller-content":t.virtualScroll}),rowGroupHeader:"p-datatable-row-group-header",rowToggleButton:"p-datatable-row-toggle-button",rowToggleIcon:"p-datatable-row-toggle-icon",rowExpansion:"p-datatable-row-expansion",rowGroupFooter:"p-datatable-row-group-footer",emptyMessage:"p-datatable-empty-message",bodyCell:({instance:t})=>({"p-datatable-frozen-column":t.columnProp("frozen")}),reorderableRowHandle:"p-datatable-reorderable-row-handle",pcRowEditorInit:"p-datatable-row-editor-init",pcRowEditorSave:"p-datatable-row-editor-save",pcRowEditorCancel:"p-datatable-row-editor-cancel",tfoot:"p-datatable-tfoot",footerCell:({instance:t})=>({"p-datatable-frozen-column":t.columnProp("frozen")}),virtualScrollerSpacer:"p-datatable-virtualscroller-spacer",footer:"p-datatable-tfoot",columnResizeIndicator:"p-datatable-column-resize-indicator",rowReorderIndicatorUp:"p-datatable-row-reorder-indicator-up",rowReorderIndicatorDown:"p-datatable-row-reorder-indicator-down",sortableColumn:({instance:t})=>({"p-datatable-sortable-column":t.isEnabled()," p-datatable-column-sorted":t.sorted}),sortableColumnIcon:"p-datatable-sort-icon",sortableColumnBadge:"p-sortable-column-badge",selectableRow:({instance:t})=>({"p-datatable-selectable-row":t.isEnabled(),"p-datatable-row-selected":t.selected}),resizableColumn:"p-datatable-resizable-column",reorderableColumn:"p-datatable-reorderable-column",rowEditorCancel:"p-datatable-row-editor-cancel"},FY={tableContainer:({instance:t})=>({"max-height":t.virtualScroll?"":t.scrollHeight,overflow:"auto"}),thead:{position:"sticky"},tfoot:{position:"sticky"}},Mw=(()=>{class t extends Oe{name="datatable";style=AY;classes=NY;inlineStyles=FY;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var LY=new H("TABLE_INSTANCE"),Ow=(()=>{class t{sortSource=new qe;selectionSource=new qe;contextMenuSource=new qe;valueSource=new qe;columnsSource=new qe;sortSource$=this.sortSource.asObservable();selectionSource$=this.selectionSource.asObservable();contextMenuSource$=this.contextMenuSource.asObservable();valueSource$=this.valueSource.asObservable();columnsSource$=this.columnsSource.asObservable();onSort(e){this.sortSource.next(e)}onSelectionChange(){this.selectionSource.next(null)}onContextMenu(e){this.contextMenuSource.next(e)}onValueChange(e){this.valueSource.next(e)}onColumnsChange(e){this.columnsSource.next(e)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),Pw=(()=>{class t extends ut{frozenColumns;frozenValue;styleClass;tableStyle;tableStyleClass;paginator;pageLinks=5;rowsPerPageOptions;alwaysShowPaginator=!0;paginatorPosition="bottom";paginatorStyleClass;paginatorDropdownAppendTo;paginatorDropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showJumpToPageDropdown;showJumpToPageInput;showFirstLastIcon=!0;showPageLinks=!0;defaultSortOrder=1;sortMode="single";resetPageOnSort=!0;selectionMode;selectionPageOnly;contextMenuSelection;contextMenuSelectionChange=new z;contextMenuSelectionMode="separate";dataKey;metaKeySelection=!1;rowSelectable;rowTrackBy=(e,r)=>r;lazy=!1;lazyLoadOnInit=!0;compareSelectionBy="deepEquals";csvSeparator=",";exportFilename="download";filters={};globalFilterFields;filterDelay=300;filterLocale;expandedRowKeys={};editingRowKeys={};rowExpandMode="multiple";scrollable;rowGroupMode;scrollHeight;virtualScroll;virtualScrollItemSize;virtualScrollOptions;virtualScrollDelay=250;frozenWidth;contextMenu;resizableColumns;columnResizeMode="fit";reorderableColumns;loading;loadingIcon;showLoader=!0;rowHover;customSort;showInitialSortBadge=!0;exportFunction;exportHeader;stateKey;stateStorage="session";editMode="cell";groupRowsBy;size;showGridlines;stripedRows;groupRowsByOrder=1;responsiveLayout="scroll";breakpoint="960px";paginatorLocale;get value(){return this._value}set value(e){this._value=e}get columns(){return this._columns}set columns(e){this._columns=e}get first(){return this._first}set first(e){this._first=e}get rows(){return this._rows}set rows(e){this._rows=e}totalRecords=0;get sortField(){return this._sortField}set sortField(e){this._sortField=e}get sortOrder(){return this._sortOrder}set sortOrder(e){this._sortOrder=e}get multiSortMeta(){return this._multiSortMeta}set multiSortMeta(e){this._multiSortMeta=e}get selection(){return this._selection}set selection(e){this._selection=e}get selectAll(){return this._selection}set selectAll(e){this._selection=e}selectAllChange=new z;selectionChange=new z;onRowSelect=new z;onRowUnselect=new z;onPage=new z;onSort=new z;onFilter=new z;onLazyLoad=new z;onRowExpand=new z;onRowCollapse=new z;onContextMenuSelect=new z;onColResize=new z;onColReorder=new z;onRowReorder=new z;onEditInit=new z;onEditComplete=new z;onEditCancel=new z;onHeaderCheckboxToggle=new z;sortFunction=new z;firstChange=new z;rowsChange=new z;onStateSave=new z;onStateRestore=new z;resizeHelperViewChild;reorderIndicatorUpViewChild;reorderIndicatorDownViewChild;wrapperViewChild;tableViewChild;tableHeaderViewChild;tableFooterViewChild;scroller;_templates;_value=[];_columns;_totalRecords=0;_first=0;_rows;filteredValue;_headerTemplate;headerTemplate;_headerGroupedTemplate;headerGroupedTemplate;_bodyTemplate;bodyTemplate;_loadingBodyTemplate;loadingBodyTemplate;_captionTemplate;captionTemplate;_footerTemplate;footerTemplate;_footerGroupedTemplate;footerGroupedTemplate;_summaryTemplate;summaryTemplate;_colGroupTemplate;colGroupTemplate;_expandedRowTemplate;expandedRowTemplate;_groupHeaderTemplate;groupHeaderTemplate;_groupFooterTemplate;groupFooterTemplate;_frozenExpandedRowTemplate;frozenExpandedRowTemplate;_frozenHeaderTemplate;frozenHeaderTemplate;_frozenBodyTemplate;frozenBodyTemplate;_frozenFooterTemplate;frozenFooterTemplate;_frozenColGroupTemplate;frozenColGroupTemplate;_emptyMessageTemplate;emptyMessageTemplate;_paginatorLeftTemplate;paginatorLeftTemplate;_paginatorRightTemplate;paginatorRightTemplate;_paginatorDropdownItemTemplate;paginatorDropdownItemTemplate;_loadingIconTemplate;loadingIconTemplate;_reorderIndicatorUpIconTemplate;reorderIndicatorUpIconTemplate;_reorderIndicatorDownIconTemplate;reorderIndicatorDownIconTemplate;_sortIconTemplate;sortIconTemplate;_checkboxIconTemplate;checkboxIconTemplate;_headerCheckboxIconTemplate;headerCheckboxIconTemplate;_paginatorDropdownIconTemplate;paginatorDropdownIconTemplate;_paginatorFirstPageLinkIconTemplate;paginatorFirstPageLinkIconTemplate;_paginatorLastPageLinkIconTemplate;paginatorLastPageLinkIconTemplate;_paginatorPreviousPageLinkIconTemplate;paginatorPreviousPageLinkIconTemplate;_paginatorNextPageLinkIconTemplate;paginatorNextPageLinkIconTemplate;selectionKeys={};lastResizerHelperX;reorderIconWidth;reorderIconHeight;draggedColumn;draggedRowIndex;droppedRowIndex;rowDragging;dropPosition;editingCell;editingCellData;editingCellField;editingCellRowIndex;selfClick;documentEditListener;_multiSortMeta;_sortField;_sortOrder=1;preventSelectionSetterPropagation;_selection;_selectAll=null;anchorRowIndex;rangeRowIndex;filterTimeout;initialized;rowTouched;restoringSort;restoringFilter;stateRestored;columnOrderStateRestored;columnWidthsState;tableWidthState;overlaySubscription;resizeColumnElement;columnResizing=!1;rowGroupHeaderStyleObject={};id=_M();styleElement;responsiveStyleElement;overlayService=x(zl);filterService=x(jl);tableService=x(Ow);zone=x($e);_componentStyle=x(Mw);bindDirectiveInstance=x(te,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}onInit(){this.lazy&&this.lazyLoadOnInit&&(this.virtualScroll||this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.restoringFilter&&(this.restoringFilter=!1)),this.responsiveLayout==="stack"&&this.createResponsiveStyle(),this.initialized=!0}onAfterContentInit(){this._templates.forEach(e=>{switch(e.getType()){case"caption":this.captionTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"headergrouped":this.headerGroupedTemplate=e.template;break;case"body":this.bodyTemplate=e.template;break;case"loadingbody":this.loadingBodyTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"footergrouped":this.footerGroupedTemplate=e.template;break;case"summary":this.summaryTemplate=e.template;break;case"colgroup":this.colGroupTemplate=e.template;break;case"expandedrow":this.expandedRowTemplate=e.template;break;case"groupheader":this.groupHeaderTemplate=e.template;break;case"groupfooter":this.groupFooterTemplate=e.template;break;case"frozenheader":this.frozenHeaderTemplate=e.template;break;case"frozenbody":this.frozenBodyTemplate=e.template;break;case"frozenfooter":this.frozenFooterTemplate=e.template;break;case"frozencolgroup":this.frozenColGroupTemplate=e.template;break;case"frozenexpandedrow":this.frozenExpandedRowTemplate=e.template;break;case"emptymessage":this.emptyMessageTemplate=e.template;break;case"paginatorleft":this.paginatorLeftTemplate=e.template;break;case"paginatorright":this.paginatorRightTemplate=e.template;break;case"paginatordropdownicon":this.paginatorDropdownIconTemplate=e.template;break;case"paginatordropdownitem":this.paginatorDropdownItemTemplate=e.template;break;case"paginatorfirstpagelinkicon":this.paginatorFirstPageLinkIconTemplate=e.template;break;case"paginatorlastpagelinkicon":this.paginatorLastPageLinkIconTemplate=e.template;break;case"paginatorpreviouspagelinkicon":this.paginatorPreviousPageLinkIconTemplate=e.template;break;case"paginatornextpagelinkicon":this.paginatorNextPageLinkIconTemplate=e.template;break;case"loadingicon":this.loadingIconTemplate=e.template;break;case"reorderindicatorupicon":this.reorderIndicatorUpIconTemplate=e.template;break;case"reorderindicatordownicon":this.reorderIndicatorDownIconTemplate=e.template;break;case"sorticon":this.sortIconTemplate=e.template;break;case"checkboxicon":this.checkboxIconTemplate=e.template;break;case"headercheckboxicon":this.headerCheckboxIconTemplate=e.template;break}})}onAfterViewInit(){kn(this.platformId)&&this.isStateful()&&this.resizableColumns&&this.restoreColumnWidths()}onChanges(e){e.totalRecords&&e.totalRecords.firstChange&&(this._totalRecords=e.totalRecords.currentValue),e.value&&(this.isStateful()&&!this.stateRestored&&kn(this.platformId)&&this.restoreState(),this._value=e.value.currentValue,this.lazy||(this.totalRecords=this._totalRecords===0&&this._value?this._value.length:this._totalRecords??0,this.sortMode=="single"&&(this.sortField||this.groupRowsBy)?this.sortSingle():this.sortMode=="multiple"&&(this.multiSortMeta||this.groupRowsBy)?this.sortMultiple():this.hasFilter()&&this._filter()),this.tableService.onValueChange(e.value.currentValue)),e.columns&&(this.isStateful()||(this._columns=e.columns.currentValue,this.tableService.onColumnsChange(e.columns.currentValue)),this._columns&&this.isStateful()&&this.reorderableColumns&&!this.columnOrderStateRestored&&(this.restoreColumnOrder(),this.tableService.onColumnsChange(this._columns))),e.sortField&&(this._sortField=e.sortField.currentValue,(!this.lazy||this.initialized)&&this.sortMode==="single"&&this.sortSingle()),e.groupRowsBy&&(!this.lazy||this.initialized)&&this.sortMode==="single"&&this.sortSingle(),e.sortOrder&&(this._sortOrder=e.sortOrder.currentValue,(!this.lazy||this.initialized)&&this.sortMode==="single"&&this.sortSingle()),e.groupRowsByOrder&&(!this.lazy||this.initialized)&&this.sortMode==="single"&&this.sortSingle(),e.multiSortMeta&&(this._multiSortMeta=e.multiSortMeta.currentValue,this.sortMode==="multiple"&&(this.initialized||!this.lazy&&!this.virtualScroll)&&this.sortMultiple()),e.selection&&(this._selection=e.selection.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange()),this.preventSelectionSetterPropagation=!1),e.selectAll&&(this._selectAll=e.selectAll.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()),this.preventSelectionSetterPropagation=!1)}get processedData(){return this.filteredValue||this.value||[]}_initialColWidths;dataToRender(e){let r=e||this.processedData;if(r&&this.paginator){let i=this.lazy?0:this.first;return r.slice(i,i+this.rows)}return r}updateSelectionKeys(){if(this.dataKey&&this._selection)if(this.selectionKeys={},Array.isArray(this._selection))for(let e of this._selection)this.selectionKeys[String(Pe.resolveFieldData(e,this.dataKey))]=1;else this.selectionKeys[String(Pe.resolveFieldData(this._selection,this.dataKey))]=1}onPageChange(e){this.first=e.first,this.rows=e.rows,this.onPage.emit({first:this.first,rows:this.rows}),this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.firstChange.emit(this.first),this.rowsChange.emit(this.rows),this.tableService.onValueChange(this.value),this.isStateful()&&this.saveState(),this.anchorRowIndex=null,this.scrollable&&this.resetScrollTop()}sort(e){let r=e.originalEvent;if(this.sortMode==="single"&&(this._sortOrder=this.sortField===e.field?this.sortOrder*-1:this.defaultSortOrder,this._sortField=e.field,this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop()),this.sortSingle()),this.sortMode==="multiple"){let i=r.metaKey||r.ctrlKey,o=this.getSortMeta(e.field);o?i?o.order=o.order*-1:(this._multiSortMeta=[{field:e.field,order:o.order*-1}],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop())):((!i||!this.multiSortMeta)&&(this._multiSortMeta=[],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first))),this._multiSortMeta.push({field:e.field,order:this.defaultSortOrder})),this.sortMultiple()}this.isStateful()&&this.saveState(),this.anchorRowIndex=null}sortSingle(){let e=this.sortField||this.groupRowsBy,r=this.sortField?this.sortOrder:this.groupRowsByOrder;if(this.groupRowsBy&&this.sortField&&this.groupRowsBy!==this.sortField){this._multiSortMeta=[this.getGroupRowsMeta(),{field:this.sortField,order:this.sortOrder}],this.sortMultiple();return}if(e&&r){this.restoringSort&&(this.restoringSort=!1),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,field:e,order:r}):(this.value.sort((o,s)=>{let a=Pe.resolveFieldData(o,e),l=Pe.resolveFieldData(s,e),c=null;return a==null&&l!=null?c=-1:a!=null&&l==null?c=1:a==null&&l==null?c=0:typeof a=="string"&&typeof l=="string"?c=a.localeCompare(l):c=a<l?-1:a>l?1:0,r*(c||0)}),this._value=[...this.value]),this.hasFilter()&&this._filter());let i={field:e,order:r};this.onSort.emit(i),this.tableService.onSort(i)}}sortMultiple(){this.groupRowsBy&&(this._multiSortMeta?this.multiSortMeta[0].field!==this.groupRowsBy&&(this._multiSortMeta=[this.getGroupRowsMeta(),...this._multiSortMeta]):this._multiSortMeta=[this.getGroupRowsMeta()]),this.multiSortMeta&&(this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,multiSortMeta:this.multiSortMeta}):(this.value.sort((e,r)=>this.multisortField(e,r,this.multiSortMeta,0)),this._value=[...this.value]),this.hasFilter()&&this._filter()),this.onSort.emit({multisortmeta:this.multiSortMeta}),this.tableService.onSort(this.multiSortMeta))}multisortField(e,r,i,o){let s=Pe.resolveFieldData(e,i[o].field),a=Pe.resolveFieldData(r,i[o].field);return Pe.compare(s,a,this.filterLocale)===0?i.length-1>o?this.multisortField(e,r,i,o+1):0:this.compareValuesOnSort(s,a,i[o].order)}compareValuesOnSort(e,r,i){return Pe.sort(e,r,i,this.filterLocale,this.sortOrder)}getSortMeta(e){if(this.multiSortMeta&&this.multiSortMeta.length){for(let r=0;r<this.multiSortMeta.length;r++)if(this.multiSortMeta[r].field===e)return this.multiSortMeta[r]}return null}isSorted(e){if(this.sortMode==="single")return this.sortField&&this.sortField===e;if(this.sortMode==="multiple"){let r=!1;if(this.multiSortMeta){for(let i=0;i<this.multiSortMeta.length;i++)if(this.multiSortMeta[i].field==e){r=!0;break}}return r}}handleRowClick(e){let r=e.originalEvent.target,i=r.nodeName,o=r.parentElement&&r.parentElement.nodeName;if(!(i=="INPUT"||i=="BUTTON"||i=="A"||o=="INPUT"||o=="BUTTON"||o=="A"||De.hasClass(e.originalEvent.target,"p-clickable"))){if(this.selectionMode){let s=e.rowData,a=e.rowIndex;if(this.preventSelectionSetterPropagation=!0,this.isMultipleSelectionMode()&&e.originalEvent.shiftKey&&this.anchorRowIndex!=null)De.clearSelection(),this.rangeRowIndex!=null&&this.clearSelectionRange(e.originalEvent),this.rangeRowIndex=a,this.selectRange(e.originalEvent,a);else{let l=this.isSelected(s);if(!l&&!this.isRowSelectable(s,a))return;let c=this.rowTouched?!1:this.metaKeySelection,d=this.dataKey?String(Pe.resolveFieldData(s,this.dataKey)):null;if(this.anchorRowIndex=a,this.rangeRowIndex=a,c){let u=e.originalEvent.metaKey||e.originalEvent.ctrlKey;if(l&&u){if(this.isSingleSelectionMode())this._selection=null,this.selectionKeys={},this.selectionChange.emit(null);else{let p=this.findIndexInSelection(s);this._selection=this.selection.filter((f,y)=>y!=p),this.selectionChange.emit(this.selection),d&&delete this.selectionKeys[d]}this.onRowUnselect.emit({originalEvent:e.originalEvent,data:s,type:"row"})}else this.isSingleSelectionMode()?(this._selection=s,this.selectionChange.emit(s),d&&(this.selectionKeys={},this.selectionKeys[d]=1)):this.isMultipleSelectionMode()&&(u?this._selection=this.selection||[]:(this._selection=[],this.selectionKeys={}),this._selection=[...this.selection,s],this.selectionChange.emit(this.selection),d&&(this.selectionKeys[d]=1)),this.onRowSelect.emit({originalEvent:e.originalEvent,data:s,type:"row",index:a})}else if(this.selectionMode==="single")l?(this._selection=null,this.selectionKeys={},this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:s,type:"row",index:a})):(this._selection=s,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:s,type:"row",index:a}),d&&(this.selectionKeys={},this.selectionKeys[d]=1));else if(this.selectionMode==="multiple")if(l){let u=this.findIndexInSelection(s);this._selection=this.selection.filter((p,f)=>f!=u),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:s,type:"row",index:a}),d&&delete this.selectionKeys[d]}else this._selection=this.selection?[...this.selection,s]:[s],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:s,type:"row",index:a}),d&&(this.selectionKeys[d]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}this.rowTouched=!1}}handleRowTouchEnd(e){this.rowTouched=!0}handleRowRightClick(e){if(this.contextMenu){let r=e.rowData,i=e.rowIndex,o=()=>{this.contextMenu.show(e.originalEvent),this.contextMenu.hideCallback=()=>{this.contextMenuSelection=null,this.contextMenuSelectionChange.emit(null),this.tableService.onContextMenu(null)}};if(this.contextMenuSelectionMode==="separate")this.contextMenuSelection=r,this.contextMenuSelectionChange.emit(r),this.onContextMenuSelect.emit({originalEvent:e.originalEvent,data:r,index:e.rowIndex}),o(),this.tableService.onContextMenu(r);else if(this.contextMenuSelectionMode==="joint"){this.preventSelectionSetterPropagation=!0;let s=this.isSelected(r),a=this.dataKey?String(Pe.resolveFieldData(r,this.dataKey)):null;if(!s){if(!this.isRowSelectable(r,i))return;this.isSingleSelectionMode()?(this.selection=r,this.selectionChange.emit(r),a&&(this.selectionKeys={},this.selectionKeys[a]=1)):this.isMultipleSelectionMode()&&(this._selection=this.selection?[...this.selection,r]:[r],this.selectionChange.emit(this.selection),a&&(this.selectionKeys[a]=1))}this.tableService.onSelectionChange(),o(),this.onContextMenuSelect.emit({originalEvent:e,data:r,index:e.rowIndex})}}}selectRange(e,r,i){let o,s;this.anchorRowIndex>r?(o=r,s=this.anchorRowIndex):this.anchorRowIndex<r?(o=this.anchorRowIndex,s=r):(o=r,s=r),this.lazy&&this.paginator&&(o-=this.first,s-=this.first);let a=[];for(let l=o;l<=s;l++){let c=this.filteredValue?this.filteredValue[l]:this.value[l];if(!this.isSelected(c)&&!i){if(!this.isRowSelectable(c,r))continue;a.push(c),this._selection=[...this.selection,c];let d=this.dataKey?String(Pe.resolveFieldData(c,this.dataKey)):null;d&&(this.selectionKeys[d]=1)}}this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e,data:a,type:"row"})}clearSelectionRange(e){let r,i,o=this.rangeRowIndex,s=this.anchorRowIndex;o>s?(r=this.anchorRowIndex,i=this.rangeRowIndex):o<s?(r=this.rangeRowIndex,i=this.anchorRowIndex):(r=this.rangeRowIndex,i=this.rangeRowIndex);for(let a=r;a<=i;a++){let l=this.value[a],c=this.findIndexInSelection(l);this._selection=this.selection.filter((u,p)=>p!=c);let d=this.dataKey?String(Pe.resolveFieldData(l,this.dataKey)):null;d&&delete this.selectionKeys[d],this.onRowUnselect.emit({originalEvent:e,data:l,type:"row"})}}isSelected(e){return e&&this.selection?this.dataKey?this.selectionKeys[Pe.resolveFieldData(e,this.dataKey)]!==void 0:Array.isArray(this.selection)?this.findIndexInSelection(e)>-1:this.equals(e,this.selection):!1}findIndexInSelection(e){let r=-1;if(this.selection&&this.selection.length){for(let i=0;i<this.selection.length;i++)if(this.equals(e,this.selection[i])){r=i;break}}return r}isRowSelectable(e,r){return!(this.rowSelectable&&!this.rowSelectable({data:e,index:r}))}toggleRowWithRadio(e,r){if(this.preventSelectionSetterPropagation=!0,this.selection!=r){if(!this.isRowSelectable(r,e.rowIndex))return;this._selection=r,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:r,type:"radiobutton"}),this.dataKey&&(this.selectionKeys={},this.selectionKeys[String(Pe.resolveFieldData(r,this.dataKey))]=1)}else this._selection=null,this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:r,type:"radiobutton"});this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowWithCheckbox(e,r){this.selection=this.selection||[];let i=this.isSelected(r),o=this.dataKey?String(Pe.resolveFieldData(r,this.dataKey)):null;if(this.preventSelectionSetterPropagation=!0,i){let s=this.findIndexInSelection(r);this._selection=this.selection.filter((a,l)=>l!=s),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:r,type:"checkbox"}),o&&delete this.selectionKeys[o]}else{if(!this.isRowSelectable(r,e.rowIndex))return;this._selection=this.selection?[...this.selection,r]:[r],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:r,type:"checkbox"}),o&&(this.selectionKeys[o]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowsWithCheckbox({originalEvent:e},r){if(this._selectAll!==null)this.selectAllChange.emit({originalEvent:e,checked:r});else{let i=this.selectionPageOnly?this.dataToRender(this.processedData):this.processedData,o=this.selectionPageOnly&&this._selection?this._selection.filter(s=>!i.some(a=>this.equals(s,a))):[];r&&(o=this.frozenValue?[...o,...this.frozenValue,...i]:[...o,...i],o=this.rowSelectable?o.filter((s,a)=>this.rowSelectable({data:s,index:a})):o),this._selection=o,this.preventSelectionSetterPropagation=!0,this.updateSelectionKeys(),this.selectionChange.emit(this._selection),this.tableService.onSelectionChange(),this.onHeaderCheckboxToggle.emit({originalEvent:e,checked:r}),this.isStateful()&&this.saveState()}}equals(e,r){return this.compareSelectionBy==="equals"?e===r:Pe.equals(e,r,this.dataKey)}filter(e,r,i){this.filterTimeout&&clearTimeout(this.filterTimeout),this.isFilterBlank(e)?this.filters[r]&&delete this.filters[r]:this.filters[r]={value:e,matchMode:i},this.filterTimeout=setTimeout(()=>{this._filter(),this.filterTimeout=null},this.filterDelay),this.anchorRowIndex=null}filterGlobal(e,r){this.filter(e,"global",r)}isFilterBlank(e){return e!=null?!!(typeof e=="string"&&e.trim().length==0||Array.isArray(e)&&e.length==0):!0}_filter(){if(this.restoringFilter||(this.first=0,this.firstChange.emit(this.first)),this.lazy)this.onLazyLoad.emit(this.createLazyLoadMetadata());else{if(!this.value)return;if(!this.hasFilter())this.filteredValue=null,this.paginator&&(this.totalRecords=this._totalRecords===0&&this.value?this.value.length:this._totalRecords);else{let e;if(this.filters.global){if(!this.columns&&!this.globalFilterFields)throw new Error("Global filtering requires dynamic columns or globalFilterFields to be defined.");e=this.globalFilterFields||this.columns}this.filteredValue=[];for(let r=0;r<this.value.length;r++){let i=!0,o=!1,s=!1;for(let l in this.filters)if(this.filters.hasOwnProperty(l)&&l!=="global"){s=!0;let c=l,d=this.filters[c];if(Array.isArray(d)){for(let u of d)if(i=this.executeLocalFilter(c,this.value[r],u),u.operator===Wv.OR&&i||u.operator===Wv.AND&&!i)break}else i=this.executeLocalFilter(c,this.value[r],d);if(!i)break}if(this.filters.global&&!o&&e)for(let l=0;l<e.length;l++){let c=e[l].field||e[l];if(o=this.filterService.filters[this.filters.global.matchMode](Pe.resolveFieldData(this.value[r],c),this.filters.global.value,this.filterLocale),o)break}let a;this.filters.global?a=s?s&&i&&o:o:a=s&&i,a&&this.filteredValue.push(this.value[r])}this.filteredValue.length===this.value.length&&(this.filteredValue=null),this.paginator&&(this.totalRecords=this.filteredValue?this.filteredValue.length:this._totalRecords===0&&this.value?this.value.length:this._totalRecords??0)}}this.onFilter.emit({filters:this.filters,filteredValue:this.filteredValue||this.value}),this.tableService.onValueChange(this.value),this.isStateful()&&!this.restoringFilter&&this.saveState(),this.restoringFilter&&(this.restoringFilter=!1),this.cd.markForCheck(),this.scrollable&&this.resetScrollTop()}executeLocalFilter(e,r,i){let o=i.value,s=i.matchMode||hn.STARTS_WITH,a=Pe.resolveFieldData(r,e),l=this.filterService.filters[s];return l(a,o,this.filterLocale)}hasFilter(){let e=!0;for(let r in this.filters)if(this.filters.hasOwnProperty(r)){e=!1;break}return!e}createLazyLoadMetadata(){return{first:this.first,rows:this.rows,sortField:this.sortField,sortOrder:this.sortOrder,filters:this.filters,globalFilter:this.filters&&this.filters.global?this.filters.global.value:null,multiSortMeta:this.multiSortMeta,forceUpdate:()=>this.cd.detectChanges()}}clear(){this._sortField=null,this._sortOrder=this.defaultSortOrder,this._multiSortMeta=null,this.tableService.onSort(null),this.clearFilterValues(),this.filteredValue=null,this.first=0,this.firstChange.emit(this.first),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.totalRecords=this._totalRecords===0&&this._value?this._value.length:this._totalRecords??0}clearFilterValues(){for(let[,e]of Object.entries(this.filters))if(Array.isArray(e))for(let r of e)r.value=null;else e&&(e.value=null)}reset(){this.clear()}getExportHeader(e){return e[this.exportHeader]||e.header||e.field}exportCSV(e){let r,i="",o=this.columns;e&&e.selectionOnly?r=this.selection||[]:e&&e.allValues?r=this.value||[]:(r=this.filteredValue||this.value,this.frozenValue&&(r=r?[...this.frozenValue,...r]:this.frozenValue));let s=o.filter(d=>d.exportable!==!1&&d.field);i+=s.map(d=>'"'+this.getExportHeader(d)+'"').join(this.csvSeparator);let a=r.map(d=>s.map(u=>{let p=Pe.resolveFieldData(d,u.field);return p!=null?this.exportFunction?p=this.exportFunction({data:p,field:u.field}):p=String(p).replace(/"/g,'""'):p="",'"'+p+'"'}).join(this.csvSeparator)).join(`
`);a.length&&(i+=`
`+a);let l=new Blob([new Uint8Array([239,187,191]),i],{type:"text/csv;charset=utf-8;"}),c=this.renderer.createElement("a");c.style.display="none",this.renderer.appendChild(this.document.body,c),c.download!==void 0?(c.setAttribute("href",URL.createObjectURL(l)),c.setAttribute("download",this.exportFilename+".csv"),c.click()):(i="data:text/csv;charset=utf-8,"+i,this.document.defaultView?.open(encodeURI(i))),this.renderer.removeChild(this.document.body,c)}onLazyItemLoad(e){this.onLazyLoad.emit(A(_(_({},this.createLazyLoadMetadata()),e),{rows:e.last-e.first}))}resetScrollTop(){this.virtualScroll?this.scrollToVirtualIndex(0):this.scrollTo({top:0})}scrollToVirtualIndex(e){this.scroller&&this.scroller.scrollToIndex(e)}scrollTo(e){this.virtualScroll?this.scroller?.scrollTo(e):this.wrapperViewChild&&this.wrapperViewChild.nativeElement&&(this.wrapperViewChild.nativeElement.scrollTo?this.wrapperViewChild.nativeElement.scrollTo(e):(this.wrapperViewChild.nativeElement.scrollLeft=e.left,this.wrapperViewChild.nativeElement.scrollTop=e.top))}updateEditingCell(e,r,i,o){this.editingCell=e,this.editingCellData=r,this.editingCellField=i,this.editingCellRowIndex=o,this.bindDocumentEditListener()}isEditingCellValid(){return this.editingCell&&De.find(this.editingCell,".ng-invalid.ng-dirty").length===0}bindDocumentEditListener(){this.documentEditListener||(this.documentEditListener=this.renderer.listen(this.document,"click",e=>{this.editingCell&&!this.selfClick&&this.isEditingCellValid()&&(De.removeClass(this.editingCell,"p-cell-editing"),this.editingCell=null,this.onEditComplete.emit({field:this.editingCellField,data:this.editingCellData,originalEvent:e,index:this.editingCellRowIndex}),this.editingCellField=null,this.editingCellData=null,this.editingCellRowIndex=null,this.unbindDocumentEditListener(),this.cd.markForCheck(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()),this.selfClick=!1}))}unbindDocumentEditListener(){this.documentEditListener&&(this.documentEditListener(),this.documentEditListener=null)}initRowEdit(e){let r=String(Pe.resolveFieldData(e,this.dataKey));this.editingRowKeys[r]=!0}saveRowEdit(e,r){if(De.find(r,".ng-invalid.ng-dirty").length===0){let i=String(Pe.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[i]}}cancelRowEdit(e){let r=String(Pe.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[r]}toggleRow(e,r){if(!this.dataKey&&!this.groupRowsBy)throw new Error("dataKey or groupRowsBy must be defined to use row expansion");let i=this.groupRowsBy?String(Pe.resolveFieldData(e,this.groupRowsBy)):String(Pe.resolveFieldData(e,this.dataKey));this.expandedRowKeys[i]!=null?(delete this.expandedRowKeys[i],this.onRowCollapse.emit({originalEvent:r,data:e})):(this.rowExpandMode==="single"&&(this.expandedRowKeys={}),this.expandedRowKeys[i]=!0,this.onRowExpand.emit({originalEvent:r,data:e})),r&&r.preventDefault(),this.isStateful()&&this.saveState()}isRowExpanded(e){return this.groupRowsBy?this.expandedRowKeys[String(Pe.resolveFieldData(e,this.groupRowsBy))]===!0:this.expandedRowKeys[String(Pe.resolveFieldData(e,this.dataKey))]===!0}isRowEditing(e){return this.editingRowKeys[String(Pe.resolveFieldData(e,this.dataKey))]===!0}isSingleSelectionMode(){return this.selectionMode==="single"}isMultipleSelectionMode(){return this.selectionMode==="multiple"}onColumnResizeBegin(e){let r=De.getOffset(this.el?.nativeElement).left;this.resizeColumnElement=e.target.closest("th"),this.columnResizing=!0,e.type=="touchstart"?this.lastResizerHelperX=e.changedTouches[0].clientX-r+this.el?.nativeElement.scrollLeft:this.lastResizerHelperX=e.pageX-r+this.el?.nativeElement.scrollLeft,this.onColumnResize(e),e.preventDefault()}onColumnResize(e){let r=De.getOffset(this.el?.nativeElement).left;De.addClass(this.el?.nativeElement,"p-unselectable-text"),this.resizeHelperViewChild.nativeElement.style.height=this.el?.nativeElement.offsetHeight+"px",this.resizeHelperViewChild.nativeElement.style.top="0px",e.type=="touchmove"?this.resizeHelperViewChild.nativeElement.style.left=e.changedTouches[0].clientX-r+this.el?.nativeElement.scrollLeft+"px":this.resizeHelperViewChild.nativeElement.style.left=e.pageX-r+this.el?.nativeElement.scrollLeft+"px",this.resizeHelperViewChild.nativeElement.style.display="block"}onColumnResizeEnd(){let e=this.resizeHelperViewChild?.nativeElement.offsetLeft-this.lastResizerHelperX,i=this.resizeColumnElement.offsetWidth+e,o=this.resizeColumnElement.style.minWidth.replace(/[^\d.]/g,""),s=o?parseFloat(o):15;if(i>=s){if(this.columnResizeMode==="fit"){let l=this.resizeColumnElement.nextElementSibling.offsetWidth-e;i>15&&l>15&&this.resizeTableCells(i,l)}else if(this.columnResizeMode==="expand"){this._initialColWidths=this._totalTableWidth();let a=this.tableViewChild?.nativeElement.offsetWidth+e;this.setResizeTableWidth(a+"px"),this.resizeTableCells(i,null)}this.onColResize.emit({element:this.resizeColumnElement,delta:e}),this.isStateful()&&this.saveState()}this.resizeHelperViewChild.nativeElement.style.display="none",De.removeClass(this.el?.nativeElement,"p-unselectable-text")}_totalTableWidth(){let e=[],r=De.findSingle(this.el.nativeElement,".p-datatable-thead");return De.find(r,"tr > th").forEach(o=>e.push(De.getOuterWidth(o))),e}onColumnDragStart(e,r){this.reorderIconWidth=De.getHiddenElementOuterWidth(this.reorderIndicatorUpViewChild?.nativeElement),this.reorderIconHeight=De.getHiddenElementOuterHeight(this.reorderIndicatorDownViewChild?.nativeElement),this.draggedColumn=r,e.dataTransfer.setData("text","b")}onColumnDragEnter(e,r){if(this.reorderableColumns&&this.draggedColumn&&r){e.preventDefault();let i=De.getOffset(this.el?.nativeElement),o=De.getOffset(r);if(this.draggedColumn!=r){let s=De.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),a=De.indexWithinGroup(r,"preorderablecolumn"),l=o.left-i.left,c=i.top-o.top,d=o.left+r.offsetWidth/2;this.reorderIndicatorUpViewChild.nativeElement.style.top=o.top-i.top-(this.reorderIconHeight-1)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.top=o.top-i.top+r.offsetHeight+"px",e.pageX>d?(this.reorderIndicatorUpViewChild.nativeElement.style.left=l+r.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=l+r.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=1):(this.reorderIndicatorUpViewChild.nativeElement.style.left=l-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=l-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=-1),this.reorderIndicatorUpViewChild.nativeElement.style.display="block",this.reorderIndicatorDownViewChild.nativeElement.style.display="block"}else e.dataTransfer.dropEffect="none"}}onColumnDragLeave(e){this.reorderableColumns&&this.draggedColumn&&e.preventDefault()}onColumnDrop(e,r){if(e.preventDefault(),this.draggedColumn){let i=De.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),o=De.indexWithinGroup(r,"preorderablecolumn"),s=i!=o;if(s&&(o-i==1&&this.dropPosition===-1||i-o==1&&this.dropPosition===1)&&(s=!1),s&&o<i&&this.dropPosition===1&&(o=o+1),s&&o>i&&this.dropPosition===-1&&(o=o-1),s&&(Pe.reorderArray(this.columns,i,o),this.onColReorder.emit({dragIndex:i,dropIndex:o,columns:this.columns}),this.isStateful()&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.saveState()})})),this.resizableColumns&&this.resizeColumnElement){let a=this.columnResizeMode==="expand"?this._initialColWidths:this._totalTableWidth();Pe.reorderArray(a,i+1,o+1),this.updateStyleElement(a,i,0,0)}this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none",this.draggedColumn.draggable=!1,this.draggedColumn=null,this.dropPosition=null}}resizeTableCells(e,r){let i=De.index(this.resizeColumnElement),o=this.columnResizeMode==="expand"?this._initialColWidths:this._totalTableWidth();this.updateStyleElement(o,i,e,r)}updateStyleElement(e,r,i,o){this.destroyStyleElement(),this.createStyleElement();let s="";e.forEach((a,l)=>{let c=l===r?i:o&&l===r+1?o:a,d=`width: ${c}px !important; max-width: ${c}px !important;`;s+=`
#${this.id}-table > .p-datatable-thead > tr > th:nth-child(${l+1}),
#${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${l+1}),
#${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${l+1}) {
${d}
}
`}),this.renderer.setProperty(this.styleElement,"innerHTML",s)}onRowDragStart(e,r){this.rowDragging=!0,this.draggedRowIndex=r,e.dataTransfer.setData("text","b")}onRowDragOver(e,r,i){if(this.rowDragging&&this.draggedRowIndex!==r){let o=De.getOffset(i).top,s=e.pageY,a=o+De.getOuterHeight(i)/2,l=i.previousElementSibling;s<a?(De.removeClass(i,"p-datatable-dragpoint-bottom"),this.droppedRowIndex=r,l?De.addClass(l,"p-datatable-dragpoint-bottom"):De.addClass(i,"p-datatable-dragpoint-top")):(l?De.removeClass(l,"p-datatable-dragpoint-bottom"):De.addClass(i,"p-datatable-dragpoint-top"),this.droppedRowIndex=r+1,De.addClass(i,"p-datatable-dragpoint-bottom"))}}onRowDragLeave(e,r){let i=r.previousElementSibling;i&&De.removeClass(i,"p-datatable-dragpoint-bottom"),De.removeClass(r,"p-datatable-dragpoint-bottom"),De.removeClass(r,"p-datatable-dragpoint-top")}onRowDragEnd(e){this.rowDragging=!1,this.draggedRowIndex=null,this.droppedRowIndex=null}onRowDrop(e,r){if(this.droppedRowIndex!=null){let i=this.draggedRowIndex>this.droppedRowIndex?this.droppedRowIndex:this.droppedRowIndex===0?0:this.droppedRowIndex-1;Pe.reorderArray(this.value,this.draggedRowIndex,i),this.virtualScroll&&(this._value=[...this._value]),this.onRowReorder.emit({dragIndex:this.draggedRowIndex,dropIndex:i})}this.onRowDragLeave(e,r),this.onRowDragEnd(e)}isEmpty(){let e=this.filteredValue||this.value;return e==null||e.length==0}getBlockableElement(){return this.el.nativeElement.children[0]}getStorage(){if(kn(this.platformId))switch(this.stateStorage){case"local":return window.localStorage;case"session":return window.sessionStorage;default:throw new Error(this.stateStorage+' is not a valid value for the state storage, supported values are "local" and "session".')}else throw new Error("Browser storage is not available in the server side.")}isStateful(){return this.stateKey!=null}saveState(){let e=this.getStorage(),r={};this.paginator&&(r.first=this.first,r.rows=this.rows),this.sortField&&(r.sortField=this.sortField,r.sortOrder=this.sortOrder),this.multiSortMeta&&(r.multiSortMeta=this.multiSortMeta),this.hasFilter()&&(r.filters=this.filters),this.resizableColumns&&this.saveColumnWidths(r),this.reorderableColumns&&this.saveColumnOrder(r),this.selection&&(r.selection=this.selection),Object.keys(this.expandedRowKeys).length&&(r.expandedRowKeys=this.expandedRowKeys),e.setItem(this.stateKey,JSON.stringify(r)),this.onStateSave.emit(r)}clearState(){let e=this.getStorage();this.stateKey&&e.removeItem(this.stateKey)}restoreState(){let r=this.getStorage().getItem(this.stateKey),i=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/,o=function(s,a){return typeof a=="string"&&i.test(a)?new Date(a):a};if(r){let s=JSON.parse(r,o);this.paginator&&(this.first!==void 0&&(this.first=s.first,this.firstChange.emit(this.first)),this.rows!==void 0&&(this.rows=s.rows,this.rowsChange.emit(this.rows))),s.sortField&&(this.restoringSort=!0,this._sortField=s.sortField,this._sortOrder=s.sortOrder),s.multiSortMeta&&(this.restoringSort=!0,this._multiSortMeta=s.multiSortMeta),s.filters&&(this.restoringFilter=!0,this.filters=s.filters),this.resizableColumns&&(this.columnWidthsState=s.columnWidths,this.tableWidthState=s.tableWidth),s.expandedRowKeys&&(this.expandedRowKeys=s.expandedRowKeys),s.selection&&Promise.resolve(null).then(()=>this.selectionChange.emit(s.selection)),this.stateRestored=!0,this.onStateRestore.emit(s)}}saveColumnWidths(e){let r=[],i=[],o=this.el?.nativeElement;o&&(i=De.find(o,".p-datatable-thead > tr > th")),i.forEach(s=>r.push(De.getOuterWidth(s))),e.columnWidths=r.join(","),this.columnResizeMode==="expand"&&this.tableViewChild&&(e.tableWidth=De.getOuterWidth(this.tableViewChild.nativeElement))}setResizeTableWidth(e){this.tableViewChild.nativeElement.style.width=e,this.tableViewChild.nativeElement.style.minWidth=e}restoreColumnWidths(){if(this.columnWidthsState){let e=this.columnWidthsState.split(",");if(this.columnResizeMode==="expand"&&this.tableWidthState&&this.setResizeTableWidth(this.tableWidthState+"px"),Pe.isNotEmpty(e)){this.createStyleElement();let r="";e.forEach((i,o)=>{let s=`width: ${i}px !important; max-width: ${i}px !important`;r+=`
#${this.id}-table > .p-datatable-thead > tr > th:nth-child(${o+1}),
#${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${o+1}),
#${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${o+1}) {
${s}
}
`}),this.styleElement.innerHTML=r}}}saveColumnOrder(e){if(this.columns){let r=[];this.columns.map(i=>{r.push(i.field||i.key)}),e.columnOrder=r}}restoreColumnOrder(){let r=this.getStorage().getItem(this.stateKey);if(r){let o=JSON.parse(r).columnOrder;if(o){let s=[];o.map(a=>{let l=this.findColumnByKey(a);l&&s.push(l)}),this.columnOrderStateRestored=!0,this.columns=s}}}findColumnByKey(e){if(this.columns){for(let r of this.columns)if(r.key===e||r.field===e)return r}else return null}createStyleElement(){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",De.setAttribute(this.styleElement,"nonce",this.config?.csp()?.nonce),this.renderer.appendChild(this.document.head,this.styleElement),De.setAttribute(this.styleElement,"nonce",this.config?.csp()?.nonce)}getGroupRowsMeta(){return{field:this.groupRowsBy,order:this.groupRowsByOrder}}createResponsiveStyle(){if(kn(this.platformId)&&!this.responsiveStyleElement){this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",De.setAttribute(this.responsiveStyleElement,"nonce",this.config?.csp()?.nonce),this.renderer.appendChild(this.document.head,this.responsiveStyleElement);let e=`
@media screen and (max-width: ${this.breakpoint}) {
#${this.id}-table > .p-datatable-thead > tr > th,
#${this.id}-table > .p-datatable-tfoot > tr > td {
display: none !important;
}
#${this.id}-table > .p-datatable-tbody > tr > td {
display: flex;
width: 100% !important;
align-items: center;
justify-content: space-between;
}
#${this.id}-table > .p-datatable-tbody > tr > td:not(:last-child) {
border: 0 none;
}
#${this.id}.p-datatable-gridlines > .p-datatable-table-container > .p-datatable-table > .p-datatable-tbody > tr > td:last-child {
border-top: 0;
border-right: 0;
border-left: 0;
}
#${this.id}-table > .p-datatable-tbody > tr > td > .p-datatable-column-title {
display: block;
}
}
`;this.renderer.setProperty(this.responsiveStyleElement,"innerHTML",e),De.setAttribute(this.responsiveStyleElement,"nonce",this.config?.csp()?.nonce)}}destroyResponsiveStyle(){this.responsiveStyleElement&&(this.renderer.removeChild(this.document.head,this.responsiveStyleElement),this.responsiveStyleElement=null)}destroyStyleElement(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}onDestroy(){this.unbindDocumentEditListener(),this.editingCell=null,this.initialized=null,this.destroyStyleElement(),this.destroyResponsiveStyle()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["p-table"]],contentQueries:function(r,i,o){if(r&1&&(V(o,oQ,4),V(o,sQ,4),V(o,aQ,4),V(o,lQ,4),V(o,cQ,4),V(o,dQ,4),V(o,uQ,4),V(o,pQ,4),V(o,fQ,4),V(o,hQ,4),V(o,mQ,4),V(o,gQ,4),V(o,yQ,4),V(o,bQ,4),V(o,vQ,4),V(o,_Q,4),V(o,wQ,4),V(o,CQ,4),V(o,xQ,4),V(o,TQ,4),V(o,EQ,4),V(o,SQ,4),V(o,IQ,4),V(o,DQ,4),V(o,kQ,4),V(o,MQ,4),V(o,OQ,4),V(o,RQ,4),V(o,PQ,4),V(o,AQ,4),V(o,NQ,4),V(o,FQ,4),V(o,xt,4)),r&2){let s;M(s=O())&&(i._headerTemplate=s.first),M(s=O())&&(i._headerGroupedTemplate=s.first),M(s=O())&&(i._bodyTemplate=s.first),M(s=O())&&(i._loadingBodyTemplate=s.first),M(s=O())&&(i._captionTemplate=s.first),M(s=O())&&(i._footerTemplate=s.first),M(s=O())&&(i._footerGroupedTemplate=s.first),M(s=O())&&(i._summaryTemplate=s.first),M(s=O())&&(i._colGroupTemplate=s.first),M(s=O())&&(i._expandedRowTemplate=s.first),M(s=O())&&(i._groupHeaderTemplate=s.first),M(s=O())&&(i._groupFooterTemplate=s.first),M(s=O())&&(i._frozenExpandedRowTemplate=s.first),M(s=O())&&(i._frozenHeaderTemplate=s.first),M(s=O())&&(i._frozenBodyTemplate=s.first),M(s=O())&&(i._frozenFooterTemplate=s.first),M(s=O())&&(i._frozenColGroupTemplate=s.first),M(s=O())&&(i._emptyMessageTemplate=s.first),M(s=O())&&(i._paginatorLeftTemplate=s.first),M(s=O())&&(i._paginatorRightTemplate=s.first),M(s=O())&&(i._paginatorDropdownItemTemplate=s.first),M(s=O())&&(i._loadingIconTemplate=s.first),M(s=O())&&(i._reorderIndicatorUpIconTemplate=s.first),M(s=O())&&(i._reorderIndicatorDownIconTemplate=s.first),M(s=O())&&(i._sortIconTemplate=s.first),M(s=O())&&(i._checkboxIconTemplate=s.first),M(s=O())&&(i._headerCheckboxIconTemplate=s.first),M(s=O())&&(i._paginatorDropdownIconTemplate=s.first),M(s=O())&&(i._paginatorFirstPageLinkIconTemplate=s.first),M(s=O())&&(i._paginatorLastPageLinkIconTemplate=s.first),M(s=O())&&(i._paginatorPreviousPageLinkIconTemplate=s.first),M(s=O())&&(i._paginatorNextPageLinkIconTemplate=s.first),M(s=O())&&(i._templates=s)}},viewQuery:function(r,i){if(r&1&&(ct(LQ,5),ct(BQ,5),ct(VQ,5),ct(jQ,5),ct(zQ,5),ct(HQ,5),ct($Q,5),ct(UQ,5)),r&2){let o;M(o=O())&&(i.resizeHelperViewChild=o.first),M(o=O())&&(i.reorderIndicatorUpViewChild=o.first),M(o=O())&&(i.reorderIndicatorDownViewChild=o.first),M(o=O())&&(i.wrapperViewChild=o.first),M(o=O())&&(i.tableViewChild=o.first),M(o=O())&&(i.tableHeaderViewChild=o.first),M(o=O())&&(i.tableFooterViewChild=o.first),M(o=O())&&(i.scroller=o.first)}},hostVars:2,hostBindings:function(r,i){r&2&&k(i.cn(i.cx("root"),i.styleClass))},inputs:{frozenColumns:"frozenColumns",frozenValue:"frozenValue",styleClass:"styleClass",tableStyle:"tableStyle",tableStyleClass:"tableStyleClass",paginator:[2,"paginator","paginator",R],pageLinks:[2,"pageLinks","pageLinks",Me],rowsPerPageOptions:"rowsPerPageOptions",alwaysShowPaginator:[2,"alwaysShowPaginator","alwaysShowPaginator",R],paginatorPosition:"paginatorPosition",paginatorStyleClass:"paginatorStyleClass",paginatorDropdownAppendTo:"paginatorDropdownAppendTo",paginatorDropdownScrollHeight:"paginatorDropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:[2,"showCurrentPageReport","showCurrentPageReport",R],showJumpToPageDropdown:[2,"showJumpToPageDropdown","showJumpToPageDropdown",R],showJumpToPageInput:[2,"showJumpToPageInput","showJumpToPageInput",R],showFirstLastIcon:[2,"showFirstLastIcon","showFirstLastIcon",R],showPageLinks:[2,"showPageLinks","showPageLinks",R],defaultSortOrder:[2,"defaultSortOrder","defaultSortOrder",Me],sortMode:"sortMode",resetPageOnSort:[2,"resetPageOnSort","resetPageOnSort",R],selectionMode:"selectionMode",selectionPageOnly:[2,"selectionPageOnly","selectionPageOnly",R],contextMenuSelection:"contextMenuSelection",contextMenuSelectionMode:"contextMenuSelectionMode",dataKey:"dataKey",metaKeySelection:[2,"metaKeySelection","metaKeySelection",R],rowSelectable:"rowSelectable",rowTrackBy:"rowTrackBy",lazy:[2,"lazy","lazy",R],lazyLoadOnInit:[2,"lazyLoadOnInit","lazyLoadOnInit",R],compareSelectionBy:"compareSelectionBy",csvSeparator:"csvSeparator",exportFilename:"exportFilename",filters:"filters",globalFilterFields:"globalFilterFields",filterDelay:[2,"filterDelay","filterDelay",Me],filterLocale:"filterLocale",expandedRowKeys:"expandedRowKeys",editingRowKeys:"editingRowKeys",rowExpandMode:"rowExpandMode",scrollable:[2,"scrollable","scrollable",R],rowGroupMode:"rowGroupMode",scrollHeight:"scrollHeight",virtualScroll:[2,"virtualScroll","virtualScroll",R],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",Me],virtualScrollOptions:"virtualScrollOptions",virtualScrollDelay:[2,"virtualScrollDelay","virtualScrollDelay",Me],frozenWidth:"frozenWidth",contextMenu:"contextMenu",resizableColumns:[2,"resizableColumns","resizableColumns",R],columnResizeMode:"columnResizeMode",reorderableColumns:[2,"reorderableColumns","reorderableColumns",R],loading:[2,"loading","loading",R],loadingIcon:"loadingIcon",showLoader:[2,"showLoader","showLoader",R],rowHover:[2,"rowHover","rowHover",R],customSort:[2,"customSort","customSort",R],showInitialSortBadge:[2,"showInitialSortBadge","showInitialSortBadge",R],exportFunction:"exportFunction",exportHeader:"exportHeader",stateKey:"stateKey",stateStorage:"stateStorage",editMode:"editMode",groupRowsBy:"groupRowsBy",size:"size",showGridlines:[2,"showGridlines","showGridlines",R],stripedRows:[2,"stripedRows","stripedRows",R],groupRowsByOrder:[2,"groupRowsByOrder","groupRowsByOrder",Me],responsiveLayout:"responsiveLayout",breakpoint:"breakpoint",paginatorLocale:"paginatorLocale",value:"value",columns:"columns",first:"first",rows:"rows",totalRecords:"totalRecords",sortField:"sortField",sortOrder:"sortOrder",multiSortMeta:"multiSortMeta",selection:"selection",selectAll:"selectAll"},outputs:{contextMenuSelectionChange:"contextMenuSelectionChange",selectAllChange:"selectAllChange",selectionChange:"selectionChange",onRowSelect:"onRowSelect",onRowUnselect:"onRowUnselect",onPage:"onPage",onSort:"onSort",onFilter:"onFilter",onLazyLoad:"onLazyLoad",onRowExpand:"onRowExpand",onRowCollapse:"onRowCollapse",onContextMenuSelect:"onContextMenuSelect",onColResize:"onColResize",onColReorder:"onColReorder",onRowReorder:"onRowReorder",onEditInit:"onEditInit",onEditComplete:"onEditComplete",onEditCancel:"onEditCancel",onHeaderCheckboxToggle:"onHeaderCheckboxToggle",sortFunction:"sortFunction",firstChange:"firstChange",rowsChange:"rowsChange",onStateSave:"onStateSave",onStateRestore:"onStateRestore"},standalone:!1,features:[xe([Ow,Mw,{provide:LY,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],decls:14,vars:14,consts:[["wrapper",""],["buildInTable",""],["scroller",""],["content",""],["table",""],["thead",""],["tfoot",""],["resizeHelper",""],["reorderIndicatorUp",""],["reorderIndicatorDown",""],[3,"class","pBind",4,"ngIf"],[3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","appendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","pt","onPageChange",4,"ngIf"],[3,"ngStyle","pBind"],[3,"items","columns","style","scrollHeight","itemSize","step","delay","inline","autoSize","lazy","loaderDisabled","showSpacer","showLoader","options","pt","onLazyLoad",4,"ngIf"],[4,"ngIf"],[3,"ngClass","pBind",4,"ngIf"],[3,"ngClass","pBind","display",4,"ngIf"],[3,"pBind"],["data-p-icon","spinner",3,"spin","class","pBind",4,"ngIf"],["data-p-icon","spinner",3,"spin","pBind"],[4,"ngTemplateOutlet"],[3,"onPageChange","rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","appendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","pt"],["pTemplate","dropdownicon"],["pTemplate","firstpagelinkicon"],["pTemplate","previouspagelinkicon"],["pTemplate","lastpagelinkicon"],["pTemplate","nextpagelinkicon"],[3,"onLazyLoad","items","columns","scrollHeight","itemSize","step","delay","inline","autoSize","lazy","loaderDisabled","showSpacer","showLoader","options","pt"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","table",3,"pBind"],["role","rowgroup",3,"ngStyle","pBind"],["role","rowgroup",3,"class","pBind","value","frozenRows","pTableBody","pTableBodyTemplate","frozen",4,"ngIf"],["role","rowgroup",3,"pBind","value","pTableBody","pTableBodyTemplate","scrollerOptions"],["role","rowgroup",3,"style","class","pBind",4,"ngIf"],["role","rowgroup",3,"ngClass","ngStyle","pBind",4,"ngIf"],["role","rowgroup",3,"pBind","value","frozenRows","pTableBody","pTableBodyTemplate","frozen"],["role","rowgroup",3,"pBind"],["role","rowgroup",3,"ngClass","ngStyle","pBind"],[3,"ngClass","pBind"],["data-p-icon","arrow-down",3,"pBind",4,"ngIf"],["data-p-icon","arrow-down",3,"pBind"],["data-p-icon","arrow-up",3,"pBind",4,"ngIf"],["data-p-icon","arrow-up",3,"pBind"]],template:function(r,i){r&1&&(C(0,XQ,3,5,"div",10)(1,tK,2,4,"div",10)(2,yK,6,25,"p-paginator",11),E(3,"div",12,0),C(5,_K,4,18,"p-scroller",13)(6,CK,2,7,"ng-container",14)(7,kK,10,30,"ng-template",null,1,at),T(),C(9,WK,6,25,"p-paginator",11)(10,qK,2,3,"div",15)(11,QK,2,4,"div",16)(12,JK,4,6,"span",16)(13,nY,4,6,"span",16)),r&2&&(h("ngIf",i.loading&&i.showLoader),g(),h("ngIf",i.captionTemplate||i._captionTemplate),g(),h("ngIf",i.paginator&&(i.paginatorPosition==="top"||i.paginatorPosition=="both")),g(),k(i.cx("tableContainer")),h("ngStyle",i.sx("tableContainer"))("pBind",i.ptm("tableContainer")),g(2),h("ngIf",i.virtualScroll),g(),h("ngIf",!i.virtualScroll),g(3),h("ngIf",i.paginator&&(i.paginatorPosition==="bottom"||i.paginatorPosition=="both")),g(),h("ngIf",i.summaryTemplate||i._summaryTemplate),g(),h("ngIf",i.resizableColumns),g(),h("ngIf",i.reorderableColumns),g(),h("ngIf",i.reorderableColumns))},dependencies:()=>[ei,Ut,kt,tr,Vu,xt,Lu,Jv,Xv,To,te,BY],encapsulation:2})}return t})(),BY=(()=>{class t extends ut{dataTable;tableService;hostName="Table";columns;template;get value(){return this._value}set value(e){this._value=e,this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dataTable.scrollable&&this.dataTable.rowGroupMode==="subheader"&&this.updateFrozenRowGroupHeaderStickyPosition()}frozen;frozenRows;scrollerOptions;subscription;_value;onAfterViewInit(){this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dataTable.scrollable&&this.dataTable.rowGroupMode==="subheader"&&this.updateFrozenRowGroupHeaderStickyPosition()}constructor(e,r){super(),this.dataTable=e,this.tableService=r,this.subscription=this.dataTable.tableService.valueSource$.subscribe(()=>{this.dataTable.virtualScroll&&this.cd.detectChanges()})}shouldRenderRowGroupHeader(e,r,i){let o=Pe.resolveFieldData(r,this.dataTable?.groupRowsBy||""),s=e[i-(this.dataTable?._first||0)-1];if(s){let a=Pe.resolveFieldData(s,this.dataTable?.groupRowsBy||"");return o!==a}else return!0}shouldRenderRowGroupFooter(e,r,i){let o=Pe.resolveFieldData(r,this.dataTable?.groupRowsBy||""),s=e[i-(this.dataTable?._first||0)+1];if(s){let a=Pe.resolveFieldData(s,this.dataTable?.groupRowsBy||"");return o!==a}else return!0}shouldRenderRowspan(e,r,i){let o=Pe.resolveFieldData(r,this.dataTable?.groupRowsBy),s=e[i-1];if(s){let a=Pe.resolveFieldData(s,this.dataTable?.groupRowsBy||"");return o!==a}else return!0}calculateRowGroupSize(e,r,i){let o=Pe.resolveFieldData(r,this.dataTable?.groupRowsBy),s=o,a=0;for(;o===s;){a++;let l=e[++i];if(l)s=Pe.resolveFieldData(l,this.dataTable?.groupRowsBy||"");else break}return a===1?null:a}onDestroy(){this.subscription&&this.subscription.unsubscribe()}updateFrozenRowStickyPosition(){this.el.nativeElement.style.top=De.getOuterHeight(this.el.nativeElement.previousElementSibling)+"px"}updateFrozenRowGroupHeaderStickyPosition(){if(this.el.nativeElement.previousElementSibling){let e=De.getOuterHeight(this.el.nativeElement.previousElementSibling);this.dataTable.rowGroupHeaderStyleObject.top=e+"px"}}getScrollerOption(e,r){return this.dataTable.virtualScroll?(r=r||this.scrollerOptions,r?r[e]:null):null}getRowIndex(e){let r=this.dataTable.paginator?this.dataTable.first+e:e,i=this.getScrollerOption("getItemOptions");return i?i(r).index:r}static \u0275fac=function(r){return new(r||t)(de(Pw),de(Ow))};static \u0275cmp=$({type:t,selectors:[["","pTableBody",""]],inputs:{columns:[0,"pTableBody","columns"],template:[0,"pTableBodyTemplate","template"],value:"value",frozen:[2,"frozen","frozen",R],frozenRows:[2,"frozenRows","frozenRows",R],scrollerOptions:"scrollerOptions"},standalone:!1,features:[j],attrs:rY,decls:5,vars:5,consts:[[4,"ngIf"],["ngFor","",3,"ngForOf","ngForTrackBy"],["role","row",4,"ngIf"],["role","row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,i){r&1&&C(0,hY,2,2,"ng-container",0)(1,TY,2,2,"ng-container",0)(2,kY,2,2,"ng-container",0)(3,OY,2,5,"ng-container",0)(4,PY,2,5,"ng-container",0),r&2&&(h("ngIf",!i.dataTable.expandedRowTemplate&&!i.dataTable._expandedRowTemplate),g(),h("ngIf",(i.dataTable.expandedRowTemplate||i.dataTable._expandedRowTemplate)&&!(i.frozen&&(i.dataTable.frozenExpandedRowTemplate||i.dataTable._frozenExpandedRowTemplate))),g(),h("ngIf",(i.dataTable.frozenExpandedRowTemplate||i.dataTable._frozenExpandedRowTemplate)&&i.frozen),g(),h("ngIf",i.dataTable.loading),g(),h("ngIf",i.dataTable.isEmpty()&&!i.dataTable.loading))},dependencies:[Ar,Ut,kt],encapsulation:2})}return t})();var fP=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({providers:[Mw],imports:[Qe,Xm,aR,xR,Xi,bM,WR,rP,IR,Kh,ZR,Ew,Jv,Xv,To,lM,dM,cM,rM,iP,iM,sM,uM,cP,Wt,Te,Ew]})}return t})();var hP=Zi`
query GetAddressesForList($input: AddressSearchInput) {
getAddresses(input: $input) {
isLastPage
totalItems
items {
id
...BaseModel
name
addition
defaultEmail
featuredAsset {
...BaseModel
source
preview
width
height
displayName
name
}
primaryPostalAddress {
...BaseModel
street
city
postalCode
countryIso
countryName
}
}
}
}
${hc}
`;var jY=()=>[10,25,50,75,100];function zY(t,n){t&1&&(E(0,"tr"),X(1,"th"),E(2,"th"),ce(3,"Name"),T(),E(4,"th"),ce(5,"Email"),T(),E(6,"th"),ce(7,"Address"),T(),X(8,"th"),T())}function HY(t,n){if(t&1&&(E(0,"div",4),X(1,"img",7),T()),t&2){let e=m().$implicit,r=m();g(),h("src",r.getPhxUrl(e.featuredAsset==null?null:e.featuredAsset.preview),Js)("alt",e.featuredAsset==null?null:e.featuredAsset.displayName)}}function $Y(t,n){if(t&1&&(X(0,"br"),E(1,"div",8),ce(2),T()),t&2){let e=m().$implicit;g(2),Ze(e.addition)}}function UY(t,n){if(t&1){let e=se();E(0,"tr")(1,"td"),rt(2,HY,2,2,"div",4),T(),E(3,"td")(4,"b"),ce(5),T(),rt(6,$Y,3,1),T(),E(7,"td")(8,"a",5),ce(9),T()(),E(10,"td"),ce(11),X(12,"br"),ce(13),X(14,"br"),ce(15),T(),E(16,"td")(17,"p-button",6),q("click",function(){let i=S(e).$implicit,o=m();return I(o.openAddress(i))}),T()()()}if(t&2){let e=n.$implicit;g(2),it(e.featuredAsset!=null&&e.featuredAsset.preview?2:-1),g(3),Ze(e.name),g(),it(e.addition&&e.addition.length>0?6:-1),g(2),h("href","mailto:"+e.defaultEmail,Js),g(),Ze(e.defaultEmail),g(2),$t(" ",e.primaryPostalAddress==null?null:e.primaryPostalAddress.street),g(2),_l(" ",e.primaryPostalAddress==null?null:e.primaryPostalAddress.postalCode," ",e.primaryPostalAddress==null?null:e.primaryPostalAddress.city),g(2),$t(" ",e.primaryPostalAddress==null?null:e.primaryPostalAddress.countryName," ")}}var ig=class t{apollo=x(Ji);addresses=ge([]);rows=ge(localStorage.getItem("address-list-rows")?parseInt(localStorage.getItem("address-list-rows")):10);totalItems=ge(0);getPhxUrl=wc;constructor(){Lt(()=>{let n=this.rows();n>0&&n!==parseInt(localStorage.getItem("address-list-rows")??"0")&&localStorage.setItem("address-list-rows",n.toString())})}getAddresses=(...e)=>pt(this,[...e],function*(n={}){return(yield Cr(this.apollo.apollo().query({query:hP,variables:{input:n}})))?.data?.getAddresses});onLazyLoad(n){return pt(this,null,function*(){let e=yield this.getAddresses({take:n?.rows??this.rows(),skip:n?.first??0});this.addresses.set(e?.items??[]),this.totalItems.set(e?.totalItems??0)})}openAddress(n){window.open(wc("/crm/address/edit/"+n.id),"_blank")}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=$({type:t,selectors:[["app-address-list"]],decls:4,vars:5,consts:[["title","Address List"],["lazy","","paginator","",3,"onLazyLoad","rowsChange","value","rows","totalRecords","rowsPerPageOptions"],["pTemplate","header"],["pTemplate","body"],[1,"flex","justify-center","items-center"],[1,"text-blue-500","hover:text-blue-700","hover:underline",3,"href"],["icon","fa fa-arrow-up-right-from-square","size","small","text","","rounded","","outlined","",3,"click"],[2,"object-fit","contain","max-width","100px","max-height","70px",3,"src","alt"],[1,"text-muted-color","italic","text-sm"]],template:function(e,r){e&1&&(E(0,"app-base",0)(1,"p-table",1),q("onLazyLoad",function(o){return r.onLazyLoad(o)}),Rr("rowsChange",function(o){return Xr(r.rows,o)||(r.rows=o),o}),C(2,zY,9,0,"ng-template",2)(3,UY,18,9,"ng-template",3),T()()),e&2&&(g(),h("value",r.addresses()),Or("rows",r.rows),h("totalRecords",r.totalItems())("rowsPerPageOptions",Pi(4,jY)))},dependencies:[ls,fP,Pw,xt,rr],encapsulation:2})};var Aw=[Gt.production?()=>!0:Ma],Nw=[{path:"",canActivate:Aw,component:Om},{path:"product-view",canActivate:Aw,component:tg},{path:"address-list",canActivate:Aw,component:ig},{path:"login",component:ng}];var WY={schedule(t,n){let e=setTimeout(t,n);return()=>clearTimeout(e)}};function GY(t){return t.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}function qY(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}var Fw;function QY(t,n){if(!Fw){let e=Element.prototype;Fw=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return t.nodeType===Node.ELEMENT_NODE?Fw.call(t,n):!1}function KY(t){let n={};return t.forEach(({propName:e,templateName:r,transform:i})=>{n[GY(r)]=[e,i]}),n}function YY(t,n){return n.get(Zo).resolveComponentFactory(t).inputs}function ZY(t,n){let e=t.childNodes,r=n.map(()=>[]),i=-1;n.some((o,s)=>o==="*"?(i=s,!0):!1);for(let o=0,s=e.length;o<s;++o){let a=e[o],l=JY(a,n,i);l!==-1&&r[l].push(a)}return r}function JY(t,n,e){let r=e;return qY(t)&&n.some((i,o)=>i!=="*"&&QY(t,i)?(r=o,!0):!1),r}var XY=10,Lw=class{componentFactory;inputMap=new Map;constructor(n,e){this.componentFactory=e.get(Zo).resolveComponentFactory(n);for(let r of this.componentFactory.inputs)this.inputMap.set(r.propName,r.templateName)}create(n){return new Bw(this.componentFactory,n,this.inputMap)}},Bw=class{componentFactory;injector;inputMap;eventEmitters=new oo(1);events=this.eventEmitters.pipe(bn(n=>Zg(...n)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(n,e,r){this.componentFactory=n,this.injector=e,this.inputMap=r,this.ngZone=this.injector.get($e),this.appRef=this.injector.get(Ri),this.cdScheduler=e.get(ur),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(n){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(n)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=WY.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},XY))})}getInputValue(n){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(n):this.componentRef.instance[n])}setInputValue(n,e){if(this.componentRef===null){this.initialInputValues.set(n,e);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(n)??n,e),mb(this.componentRef.hostView)&&(gb(this.componentRef.changeDetectorRef),this.cdScheduler.notify(6))})}initializeComponent(n){let e=Bt.create({providers:[],parent:this.injector}),r=ZY(n,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,r,n),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[n,e]of this.initialInputValues)this.setInputValue(n,e);this.initialInputValues.clear()}initializeOutputs(n){let e=this.componentFactory.outputs.map(({propName:r,templateName:i})=>{let o=n.instance[r];return new pe(s=>{let a=o.subscribe(l=>s.next({name:i,value:l}));return()=>a.unsubscribe()})});this.eventEmitters.next(e)}runInZone(n){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(n):n()}},Vw=class extends HTMLElement{ngElementEventsSubscription=null};function mP(t,n){let e=YY(t,n.injector),r=n.strategyFactory||new Lw(t,n.injector),i=KY(e);class o extends Vw{injector;static observedAttributes=Object.keys(i);get ngElementStrategy(){if(!this._ngElementStrategy){let a=this._ngElementStrategy=r.create(this.injector||n.injector);e.forEach(({propName:l,transform:c})=>{if(!this.hasOwnProperty(l))return;let d=this[l];delete this[l],a.setInputValue(l,d,c)})}return this._ngElementStrategy}_ngElementStrategy;constructor(a){super(),this.injector=a}attributeChangedCallback(a,l,c,d){let[u,p]=i[a];this.ngElementStrategy.setInputValue(u,c,p)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{let l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return e.forEach(({propName:s,transform:a})=>{Object.defineProperty(o.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(l){this.ngElementStrategy.setInputValue(s,l,a)},configurable:!0,enumerable:!0})}),o}function gP(t){return new U(3e3,!1)}function eZ(){return new U(3100,!1)}function tZ(){return new U(3101,!1)}function nZ(t){return new U(3001,!1)}function rZ(t){return new U(3003,!1)}function iZ(t){return new U(3004,!1)}function bP(t,n){return new U(3005,!1)}function vP(){return new U(3006,!1)}function _P(){return new U(3007,!1)}function wP(t,n){return new U(3008,!1)}function CP(t){return new U(3002,!1)}function xP(t,n,e,r,i){return new U(3010,!1)}function TP(){return new U(3011,!1)}function EP(){return new U(3012,!1)}function SP(){return new U(3200,!1)}function IP(){return new U(3202,!1)}function DP(){return new U(3013,!1)}function kP(t){return new U(3014,!1)}function MP(t){return new U(3015,!1)}function OP(t){return new U(3016,!1)}function RP(t,n){return new U(3404,!1)}function oZ(t){return new U(3502,!1)}function PP(t){return new U(3503,!1)}function AP(){return new U(3300,!1)}function NP(t){return new U(3504,!1)}function FP(t){return new U(3301,!1)}function LP(t,n){return new U(3302,!1)}function BP(t){return new U(3303,!1)}function VP(t,n){return new U(3400,!1)}function jP(t){return new U(3401,!1)}function zP(t){return new U(3402,!1)}function HP(t,n){return new U(3505,!1)}function No(t){switch(t.length){case 0:return new no;case 1:return t[0];default:return new ka(t)}}function $w(t,n,e=new Map,r=new Map){let i=[],o=[],s=-1,a=null;if(n.forEach(l=>{let c=l.get("offset"),d=c==s,u=d&&a||new Map;l.forEach((p,f)=>{let y=f,b=p;if(f!=="offset")switch(y=t.normalizePropertyName(y,i),b){case _c:b=e.get(f);break;case Br:b=r.get(f);break;default:b=t.normalizeStyleValue(f,y,b,i);break}u.set(y,b)}),d||o.push(u),a=u,s=c}),i.length)throw oZ(i);return o}function og(t,n,e,r){switch(n){case"start":t.onStart(()=>r(e&&jw(e,"start",t)));break;case"done":t.onDone(()=>r(e&&jw(e,"done",t)));break;case"destroy":t.onDestroy(()=>r(e&&jw(e,"destroy",t)));break}}function jw(t,n,e){let r=e.totalTime,i=!!e.disabled,o=sg(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,r??t.totalTime,i),s=t._data;return s!=null&&(o._data=s),o}function sg(t,n,e,r,i="",o=0,s){return{element:t,triggerName:n,fromState:e,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function ar(t,n,e){let r=t.get(n);return r||t.set(n,r=e),r}function Uw(t){let n=t.indexOf(":"),e=t.substring(1,n),r=t.slice(n+1);return[e,r]}var sZ=typeof document>"u"?null:document.documentElement;function ag(t){let n=t.parentNode||t.host||null;return n===sZ?null:n}function aZ(t){return t.substring(1,6)=="ebkit"}var Oa=null,yP=!1;function $P(t){Oa||(Oa=lZ()||{},yP=Oa.style?"WebkitAppearance"in Oa.style:!1);let n=!0;return Oa.style&&!aZ(t)&&(n=t in Oa.style,!n&&yP&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Oa.style)),n}function lZ(){return typeof document<"u"?document.body:null}function Ww(t,n){for(;n;){if(n===t)return!0;n=ag(n)}return!1}function Gw(t,n,e){if(e)return Array.from(t.querySelectorAll(n));let r=t.querySelector(n);return r?[r]:[]}var cZ=1e3,qw="{{",dZ="}}",Qw="ng-enter",lg="ng-leave",ju="ng-trigger",zu=".ng-trigger",Kw="ng-animating",cg=".ng-animating";function ro(t){if(typeof t=="number")return t;let n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:zw(parseFloat(n[1]),n[2])}function zw(t,n){return n==="s"?t*cZ:t}function Hu(t,n,e){return t.hasOwnProperty("duration")?t:pZ(t,n,e)}var uZ=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function pZ(t,n,e){let r,i=0,o="";if(typeof t=="string"){let s=t.match(uZ);if(s===null)return n.push(gP(t)),{duration:0,delay:0,easing:""};r=zw(parseFloat(s[1]),s[2]);let a=s[3];a!=null&&(i=zw(parseFloat(a),s[4]));let l=s[5];l&&(o=l)}else r=t;if(!e){let s=!1,a=n.length;r<0&&(n.push(eZ()),s=!0),i<0&&(n.push(tZ()),s=!0),s&&n.splice(a,0,gP(t))}return{duration:r,delay:i,easing:o}}function UP(t){return t.length?t[0]instanceof Map?t:t.map(n=>new Map(Object.entries(n))):[]}function hi(t,n,e){n.forEach((r,i)=>{let o=dg(i);e&&!e.has(i)&&e.set(i,t.style[o]),t.style[o]=r})}function ws(t,n){n.forEach((e,r)=>{let i=dg(r);t.style[i]=""})}function Cc(t){return Array.isArray(t)?t.length==1?t[0]:lR(t):t}function WP(t,n,e){let r=n.params||{},i=Yw(t);i.length&&i.forEach(o=>{r.hasOwnProperty(o)||e.push(nZ(o))})}var Hw=new RegExp(`${qw}\\s*(.+?)\\s*${dZ}`,"g");function Yw(t){let n=[];if(typeof t=="string"){let e;for(;e=Hw.exec(t);)n.push(e[1]);Hw.lastIndex=0}return n}function xc(t,n,e){let r=`${t}`,i=r.replace(Hw,(o,s)=>{let a=n[s];return a==null&&(e.push(rZ(s)),a=""),a.toString()});return i==r?t:i}var fZ=/-+([a-z0-9])/g;function dg(t){return t.replace(fZ,(...n)=>n[1].toUpperCase())}function GP(t,n){return t===0||n===0}function qP(t,n,e){if(e.size&&n.length){let r=n[0],i=[];if(e.forEach((o,s)=>{r.has(s)||i.push(s),r.set(s,o)}),i.length)for(let o=1;o<n.length;o++){let s=n[o];i.forEach(a=>s.set(a,ug(t,a)))}}return n}function lr(t,n,e){switch(n.type){case Ne.Trigger:return t.visitTrigger(n,e);case Ne.State:return t.visitState(n,e);case Ne.Transition:return t.visitTransition(n,e);case Ne.Sequence:return t.visitSequence(n,e);case Ne.Group:return t.visitGroup(n,e);case Ne.Animate:return t.visitAnimate(n,e);case Ne.Keyframes:return t.visitKeyframes(n,e);case Ne.Style:return t.visitStyle(n,e);case Ne.Reference:return t.visitReference(n,e);case Ne.AnimateChild:return t.visitAnimateChild(n,e);case Ne.AnimateRef:return t.visitAnimateRef(n,e);case Ne.Query:return t.visitQuery(n,e);case Ne.Stagger:return t.visitStagger(n,e);default:throw iZ(n.type)}}function ug(t,n){return window.getComputedStyle(t)[n]}var fC=(()=>{class t{validateStyleProperty(e){return $P(e)}containsElement(e,r){return Ww(e,r)}getParentElement(e){return ag(e)}query(e,r,i){return Gw(e,r,i)}computeStyle(e,r,i){return i||""}animate(e,r,i,o,s,a=[],l){return new no(i,o)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),Pa=class{static NOOP=new fC},Aa=class{};var hZ=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),gg=class extends Aa{normalizePropertyName(n,e){return dg(n)}normalizeStyleValue(n,e,r,i){let o="",s=r.toString().trim();if(hZ.has(e)&&r!==0&&r!=="0")if(typeof r=="number")o="px";else{let a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&i.push(bP(n,r))}return s+o}};var yg="*";function mZ(t,n){let e=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(r=>gZ(r,e,n)):e.push(t),e}function gZ(t,n,e){if(t[0]==":"){let l=yZ(t,e);if(typeof l=="function"){n.push(l);return}t=l}let r=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(r==null||r.length<4)return e.push(MP(t)),n;let i=r[1],o=r[2],s=r[3];n.push(QP(i,s));let a=i==yg&&s==yg;o[0]=="<"&&!a&&n.push(QP(s,i))}function yZ(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,r)=>parseFloat(r)>parseFloat(e);case":decrement":return(e,r)=>parseFloat(r)<parseFloat(e);default:return n.push(OP(t)),"* => *"}}var pg=new Set(["true","1"]),fg=new Set(["false","0"]);function QP(t,n){let e=pg.has(t)||fg.has(t),r=pg.has(n)||fg.has(n);return(i,o)=>{let s=t==yg||t==i,a=n==yg||n==o;return!s&&e&&typeof i=="boolean"&&(s=i?pg.has(t):fg.has(t)),!a&&r&&typeof o=="boolean"&&(a=o?pg.has(n):fg.has(n)),s&&a}}var iA=":self",bZ=new RegExp(`s*${iA}s*,?`,"g");function oA(t,n,e,r){return new nC(t).build(n,e,r)}var KP="",nC=class{_driver;constructor(n){this._driver=n}build(n,e,r){let i=new rC(e);return this._resetContextStyleTimingState(i),lr(this,Cc(n),i)}_resetContextStyleTimingState(n){n.currentQuerySelector=KP,n.collectedStyles=new Map,n.collectedStyles.set(KP,new Map),n.currentTime=0}visitTrigger(n,e){let r=e.queryCount=0,i=e.depCount=0,o=[],s=[];return n.name.charAt(0)=="@"&&e.errors.push(vP()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),a.type==Ne.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,o.push(this.visitState(l,e))}),l.name=c}else if(a.type==Ne.Transition){let l=this.visitTransition(a,e);r+=l.queryCount,i+=l.depCount,s.push(l)}else e.errors.push(_P())}),{type:Ne.Trigger,name:n.name,states:o,transitions:s,queryCount:r,depCount:i,options:null}}visitState(n,e){let r=this.visitStyle(n.styles,e),i=n.options&&n.options.params||null;if(r.containsDynamicStyles){let o=new Set,s=i||{};r.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Yw(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&e.errors.push(wP(n.name,[...o.values()]))}return{type:Ne.State,name:n.name,style:r,options:i?{params:i}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;let r=lr(this,Cc(n.animation),e),i=mZ(n.expr,e.errors);return{type:Ne.Transition,matchers:i,animation:r,queryCount:e.queryCount,depCount:e.depCount,options:Ra(n.options)}}visitSequence(n,e){return{type:Ne.Sequence,steps:n.steps.map(r=>lr(this,r,e)),options:Ra(n.options)}}visitGroup(n,e){let r=e.currentTime,i=0,o=n.steps.map(s=>{e.currentTime=r;let a=lr(this,s,e);return i=Math.max(i,e.currentTime),a});return e.currentTime=i,{type:Ne.Group,steps:o,options:Ra(n.options)}}visitAnimate(n,e){let r=CZ(n.timings,e.errors);e.currentAnimateTimings=r;let i,o=n.styles?n.styles:sr({});if(o.type==Ne.Keyframes)i=this.visitKeyframes(o,e);else{let s=n.styles,a=!1;if(!s){a=!0;let c={};r.easing&&(c.easing=r.easing),s=sr(c)}e.currentTime+=r.duration+r.delay;let l=this.visitStyle(s,e);l.isEmptyStep=a,i=l}return e.currentAnimateTimings=null,{type:Ne.Animate,timings:r,style:i,options:null}}visitStyle(n,e){let r=this._makeStyleAst(n,e);return this._validateStyleAst(r,e),r}_makeStyleAst(n,e){let r=[],i=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of i)typeof a=="string"?a===Br?r.push(a):e.errors.push(CP(a)):r.push(new Map(Object.entries(a)));let o=!1,s=null;return r.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o)){for(let l of a.values())if(l.toString().indexOf(qw)>=0){o=!0;break}}}),{type:Ne.Style,styles:r,easing:s,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,e){let r=e.currentAnimateTimings,i=e.currentTime,o=e.currentTime;r&&o>0&&(o-=r.duration+r.delay),n.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,l)=>{let c=e.collectedStyles.get(e.currentQuerySelector),d=c.get(l),u=!0;d&&(o!=i&&o>=d.startTime&&i<=d.endTime&&(e.errors.push(xP(l,d.startTime,d.endTime,o,i)),u=!1),o=d.startTime),u&&c.set(l,{startTime:o,endTime:i}),e.options&&WP(a,e.options,e.errors)})})}visitKeyframes(n,e){let r={type:Ne.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(TP()),r;let i=1,o=0,s=[],a=!1,l=!1,c=0,d=n.steps.map(w=>{let D=this._makeStyleAst(w,e),P=D.offset!=null?D.offset:wZ(D.styles),B=0;return P!=null&&(o++,B=D.offset=P),l=l||B<0||B>1,a=a||B<c,c=B,s.push(B),D});l&&e.errors.push(EP()),a&&e.errors.push(SP());let u=n.steps.length,p=0;o>0&&o<u?e.errors.push(IP()):o==0&&(p=i/(u-1));let f=u-1,y=e.currentTime,b=e.currentAnimateTimings,v=b.duration;return d.forEach((w,D)=>{let P=p>0?D==f?1:p*D:s[D],B=P*v;e.currentTime=y+b.delay+B,b.duration=B,this._validateStyleAst(w,e),w.offset=P,r.styles.push(w)}),r}visitReference(n,e){return{type:Ne.Reference,animation:lr(this,Cc(n.animation),e),options:Ra(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:Ne.AnimateChild,options:Ra(n.options)}}visitAnimateRef(n,e){return{type:Ne.AnimateRef,animation:this.visitReference(n.animation,e),options:Ra(n.options)}}visitQuery(n,e){let r=e.currentQuerySelector,i=n.options||{};e.queryCount++,e.currentQuery=n;let[o,s]=vZ(n.selector);e.currentQuerySelector=r.length?r+" "+o:o,ar(e.collectedStyles,e.currentQuerySelector,new Map);let a=lr(this,Cc(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=r,{type:Ne.Query,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:Ra(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(DP());let r=n.timings==="full"?{duration:0,delay:0,easing:"full"}:Hu(n.timings,e.errors,!0);return{type:Ne.Stagger,animation:lr(this,Cc(n.animation),e),timings:r,options:null}}};function vZ(t){let n=!!t.split(/\s*,\s*/).find(e=>e==iA);return n&&(t=t.replace(bZ,"")),t=t.replace(/@\*/g,zu).replace(/@\w+/g,e=>zu+"-"+e.slice(1)).replace(/:animating/g,cg),[t,n]}function _Z(t){return t?_({},t):null}var rC=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(n){this.errors=n}};function wZ(t){if(typeof t=="string")return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){let r=e;n=parseFloat(r.get("offset")),r.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}function CZ(t,n){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let o=Hu(t,n).duration;return Zw(o,0,"")}let e=t;if(e.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=Zw(0,0,"");return o.dynamic=!0,o.strValue=e,o}let i=Hu(e,n);return Zw(i.duration,i.delay,i.easing)}function Ra(t){return t?(t=_({},t),t.params&&(t.params=_Z(t.params))):t={},t}function Zw(t,n,e){return{duration:t,delay:n,easing:e}}function hC(t,n,e,r,i,o,s=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}var Uu=class{_map=new Map;get(n){return this._map.get(n)||[]}append(n,e){let r=this._map.get(n);r||this._map.set(n,r=[]),r.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}},xZ=1,TZ=":enter",EZ=new RegExp(TZ,"g"),SZ=":leave",IZ=new RegExp(SZ,"g");function sA(t,n,e,r,i,o=new Map,s=new Map,a,l,c=[]){return new iC().buildKeyframes(t,n,e,r,i,o,s,a,l,c)}var iC=class{buildKeyframes(n,e,r,i,o,s,a,l,c,d=[]){c=c||new Uu;let u=new oC(n,e,c,i,o,d,[]);u.options=l;let p=l.delay?ro(l.delay):0;u.currentTimeline.delayNextStep(p),u.currentTimeline.setStyles([s],null,u.errors,l),lr(this,r,u);let f=u.timelines.filter(y=>y.containsAnimation());if(f.length&&a.size){let y;for(let b=f.length-1;b>=0;b--){let v=f[b];if(v.element===e){y=v;break}}y&&!y.allowOnlyTimelineStyles()&&y.setStyles([a],null,u.errors,l)}return f.length?f.map(y=>y.buildKeyframes()):[hC(e,[],[],[],0,p,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){let r=e.subInstructions.get(e.element);if(r){let i=e.createSubContext(n.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(r,i,i.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=n}visitAnimateRef(n,e){let r=e.createSubContext(n.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,r),this.visitReference(n.animation,r),e.transformIntoNewTimeline(r.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,r){for(let i of n){let o=i?.delay;if(o){let s=typeof o=="number"?o:ro(xc(o,i?.params??{},e.errors));r.delayNextStep(s)}}}_visitSubInstructions(n,e,r){let o=e.currentTimeline.currentTime,s=r.duration!=null?ro(r.duration):null,a=r.delay!=null?ro(r.delay):null;return s!==0&&n.forEach(l=>{let c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(n,e){e.updateOptions(n.options,!0),lr(this,n.animation,e),e.previousNode=n}visitSequence(n,e){let r=e.subContextCount,i=e,o=n.options;if(o&&(o.params||o.delay)&&(i=e.createSubContext(o),i.transformIntoNewTimeline(),o.delay!=null)){i.previousNode.type==Ne.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=bg);let s=ro(o.delay);i.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>lr(this,s,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){let r=[],i=e.currentTimeline.currentTime,o=n.options&&n.options.delay?ro(n.options.delay):0;n.steps.forEach(s=>{let a=e.createSubContext(n.options);o&&a.delayNextStep(o),lr(this,s,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(i),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){let r=n.strValue,i=e.params?xc(r,e.params,e.errors):r;return Hu(i,e.errors)}else return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){let r=e.currentAnimateTimings=this._visitTiming(n.timings,e),i=e.currentTimeline;r.delay&&(e.incrementTime(r.delay),i.snapshotCurrentStyles());let o=n.style;o.type==Ne.Keyframes?this.visitKeyframes(o,e):(e.incrementTime(r.duration),this.visitStyle(o,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){let r=e.currentTimeline,i=e.currentAnimateTimings;!i&&r.hasCurrentStyleProperties()&&r.forwardFrame();let o=i&&i.easing||n.easing;n.isEmptyStep?r.applyEmptyStep(o):r.setStyles(n.styles,o,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){let r=e.currentAnimateTimings,i=e.currentTimeline.duration,o=r.duration,a=e.createSubContext().currentTimeline;a.easing=r.easing,n.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(i+o),e.previousNode=n}visitQuery(n,e){let r=e.currentTimeline.currentTime,i=n.options||{},o=i.delay?ro(i.delay):0;o&&(e.previousNode.type===Ne.Style||r==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=bg);let s=r,a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{e.currentQueryIndex=d;let u=e.createSubContext(n.options,c);o&&u.delayNextStep(o),c===e.element&&(l=u.currentTimeline),lr(this,n.animation,u),u.currentTimeline.applyStylesToKeyframe();let p=u.currentTimeline.currentTime;s=Math.max(s,p)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){let r=e.parentContext,i=e.currentTimeline,o=n.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1),l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=r.currentStaggerTime;break}let d=e.currentTimeline;l&&d.delayNextStep(l);let u=d.currentTime;lr(this,n.animation,e),e.previousNode=n,r.currentStaggerTime=i.currentTime-u+(i.startTime-r.currentTimeline.startTime)}},bg={},oC=class t{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=bg;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(n,e,r,i,o,s,a,l){this._driver=n,this.element=e,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=s,this.timelines=a,this.currentTimeline=l||new vg(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;let r=n,i=this.options;r.duration!=null&&(i.duration=ro(r.duration)),r.delay!=null&&(i.delay=ro(r.delay));let o=r.params;if(o){let s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=xc(o[a],s,this.errors))})}}_copyOptions(){let n={};if(this.options){let e=this.options.params;if(e){let r=n.params={};Object.keys(e).forEach(i=>{r[i]=e[i]})}}return n}createSubContext(n=null,e,r){let i=e||this.element,o=new t(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=bg,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,r){let i={duration:e??n.duration,delay:this.currentTimeline.currentTime+(r??0)+n.delay,easing:""},o=new sC(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,i,n.stretchStartingKeyframe);return this.timelines.push(o),i}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,r,i,o,s){let a=[];if(i&&a.push(this.element),n.length>0){n=n.replace(EZ,"."+this._enterClassName),n=n.replace(IZ,"."+this._leaveClassName);let l=r!=1,c=this._driver.query(this.element,n,l);r!==0&&(c=r<0?c.slice(c.length+r,c.length):c.slice(0,r)),a.push(...c)}return!o&&a.length==0&&s.push(kP(e)),a}},vg=class t{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(n,e,r,i){this._driver=n,this.element=e,this.startTime=r,this._elementTimelineStylesLookup=i,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new t(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=xZ,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,r]of this._globalTimelineStyles)this._backFill.set(e,r||Br),this._currentKeyframe.set(e,Br);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,r,i){e&&this._previousKeyframe.set("easing",e);let o=i&&i.params||{},s=DZ(n,this._globalTimelineStyles);for(let[a,l]of s){let c=xc(l,o,r);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Br),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,r)=>{let i=this._styleSummary.get(r);(!i||e.time>i.time)&&this._updateStyle(r,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let n=new Set,e=new Set,r=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((d,u)=>{d===_c?n.add(u):d===Br&&e.add(u)}),r||c.set("offset",l/this.duration),i.push(c)});let o=[...n.values()],s=[...e.values()];if(r){let a=i[0],l=new Map(a);a.set("offset",0),l.set("offset",1),i=[a,l]}return hC(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)}},sC=class extends vg{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(n,e,r,i,o,s,a=!1){super(n,e,s.delay),this.keyframes=r,this.preStyleProps=i,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:r,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){let o=[],s=r+e,a=e/s,l=new Map(n[0]);l.set("offset",0),o.push(l);let c=new Map(n[0]);c.set("offset",YP(a)),o.push(c);let d=n.length-1;for(let u=1;u<=d;u++){let p=new Map(n[u]),f=p.get("offset"),y=e+f*r;p.set("offset",YP(y/s)),o.push(p)}r=s,e=0,i="",n=o}return hC(this.element,n,this.preStyleProps,this.postStyleProps,r,e,i,!0)}};function YP(t,n=3){let e=Math.pow(10,n-1);return Math.round(t*e)/e}function DZ(t,n){let e=new Map,r;return t.forEach(i=>{if(i==="*"){r??=n.keys();for(let o of r)e.set(o,Br)}else for(let[o,s]of i)e.set(o,s)}),e}function ZP(t,n,e,r,i,o,s,a,l,c,d,u,p){return{type:0,element:t,triggerName:n,isRemovalTransition:i,fromState:e,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:p}}var Jw={},_g=class{_triggerName;ast;_stateStyles;constructor(n,e,r){this._triggerName=n,this.ast=e,this._stateStyles=r}match(n,e,r,i){return kZ(this.ast.matchers,n,e,r,i)}buildStyles(n,e,r){let i=this._stateStyles.get("*");return n!==void 0&&(i=this._stateStyles.get(n?.toString())||i),i?i.buildStyles(e,r):new Map}build(n,e,r,i,o,s,a,l,c,d){let u=[],p=this.ast.options&&this.ast.options.params||Jw,f=a&&a.params||Jw,y=this.buildStyles(r,f,u),b=l&&l.params||Jw,v=this.buildStyles(i,b,u),w=new Set,D=new Map,P=new Map,B=i==="void",Y={params:aA(b,p),delay:this.ast.options?.delay},ye=d?[]:sA(n,e,this.ast.animation,o,s,y,v,Y,c,u),Xe=0;return ye.forEach(tt=>{Xe=Math.max(tt.duration+tt.delay,Xe)}),u.length?ZP(e,this._triggerName,r,i,B,y,v,[],[],D,P,Xe,u):(ye.forEach(tt=>{let vt=tt.element,tn=ar(D,vt,new Set);tt.preStyleProps.forEach(zn=>tn.add(zn));let gi=ar(P,vt,new Set);tt.postStyleProps.forEach(zn=>gi.add(zn)),vt!==e&&w.add(vt)}),ZP(e,this._triggerName,r,i,B,y,v,ye,[...w.values()],D,P,Xe))}};function kZ(t,n,e,r,i){return t.some(o=>o(n,e,r,i))}function aA(t,n){let e=_({},n);return Object.entries(t).forEach(([r,i])=>{i!=null&&(e[r]=i)}),e}var aC=class{styles;defaultParams;normalizer;constructor(n,e,r){this.styles=n,this.defaultParams=e,this.normalizer=r}buildStyles(n,e){let r=new Map,i=aA(n,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=xc(s,i,e));let l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),r.set(a,s)})}),r}};function MZ(t,n,e){return new lC(t,n,e)}var lC=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(n,e,r){this.name=n,this.ast=e,this._normalizer=r,e.states.forEach(i=>{let o=i.options&&i.options.params||{};this.states.set(i.name,new aC(i.style,o,r))}),JP(this.states,"true","1"),JP(this.states,"false","0"),e.transitions.forEach(i=>{this.transitionFactories.push(new _g(n,i,this.states))}),this.fallbackTransition=OZ(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,r,i){return this.transitionFactories.find(s=>s.match(n,e,r,i))||null}matchStyles(n,e,r){return this.fallbackTransition.buildStyles(n,e,r)}};function OZ(t,n,e){let r=[(s,a)=>!0],i={type:Ne.Sequence,steps:[],options:null},o={type:Ne.Transition,animation:i,matchers:r,options:null,queryCount:0,depCount:0};return new _g(t,o,n)}function JP(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}var RZ=new Uu,cC=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(n,e,r){this.bodyNode=n,this._driver=e,this._normalizer=r}register(n,e){let r=[],i=[],o=oA(this._driver,e,r,i);if(r.length)throw PP(r);this._animations.set(n,o)}_buildPlayer(n,e,r){let i=n.element,o=$w(this._normalizer,n.keyframes,e,r);return this._driver.animate(i,o,n.duration,n.delay,n.easing,[],!0)}create(n,e,r={}){let i=[],o=this._animations.get(n),s,a=new Map;if(o?(s=sA(this._driver,e,o,Qw,lg,new Map,new Map,r,RZ,i),s.forEach(d=>{let u=ar(a,d.element,new Map);d.postStyleProps.forEach(p=>u.set(p,null))})):(i.push(AP()),s=[]),i.length)throw NP(i);a.forEach((d,u)=>{d.forEach((p,f)=>{d.set(f,this._driver.computeStyle(u,f,Br))})});let l=s.map(d=>{let u=a.get(d.element);return this._buildPlayer(d,new Map,u)}),c=No(l);return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){let e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);let r=this.players.indexOf(e);r>=0&&this.players.splice(r,1)}_getPlayer(n){let e=this._playersById.get(n);if(!e)throw FP(n);return e}listen(n,e,r,i){let o=sg(e,"","","");return og(this._getPlayer(n),r,o,i),()=>{}}command(n,e,r,i){if(r=="register"){this.register(n,i[0]);return}if(r=="create"){let s=i[0]||{};this.create(n,e,s);return}let o=this._getPlayer(n);switch(r){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(n);break}}},XP="ng-animate-queued",PZ=".ng-animate-queued",Xw="ng-animate-disabled",AZ=".ng-animate-disabled",NZ="ng-star-inserted",FZ=".ng-star-inserted",LZ=[],lA={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},BZ={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},mi="__ng_removed",Wu=class{namespaceId;value;options;get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;let r=n&&n.hasOwnProperty("value"),i=r?n.value:n;if(this.value=jZ(i),r){let o=n,{value:s}=o,a=Et(o,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){let e=n.params;if(e){let r=this.options.params;Object.keys(e).forEach(i=>{r[i]==null&&(r[i]=e[i])})}}},$u="void",eC=new Wu($u),dC=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(n,e,r){this.id=n,this.hostElement=e,this._engine=r,this._hostClassName="ng-tns-"+n,Vr(e,this._hostClassName)}listen(n,e,r,i){if(!this._triggers.has(e))throw LP(r,e);if(r==null||r.length==0)throw BP(e);if(!zZ(r))throw VP(r,e);let o=ar(this._elementListeners,n,[]),s={name:e,phase:r,callback:i};o.push(s);let a=ar(this._engine.statesByElement,n,new Map);return a.has(e)||(Vr(n,ju),Vr(n,ju+"-"+e),a.set(e,eC)),()=>{this._engine.afterFlush(()=>{let l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(n,e){return this._triggers.has(n)?!1:(this._triggers.set(n,e),!0)}_getTrigger(n){let e=this._triggers.get(n);if(!e)throw jP(n);return e}trigger(n,e,r,i=!0){let o=this._getTrigger(e),s=new Gu(this.id,e,n),a=this._engine.statesByElement.get(n);a||(Vr(n,ju),Vr(n,ju+"-"+e),this._engine.statesByElement.set(n,a=new Map));let l=a.get(e),c=new Wu(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=eC),!(c.value===$u)&&l.value===c.value){if(!UZ(l.params,c.params)){let b=[],v=o.matchStyles(l.value,l.params,b),w=o.matchStyles(c.value,c.params,b);b.length?this._engine.reportError(b):this._engine.afterFlush(()=>{ws(n,v),hi(n,w)})}return}let p=ar(this._engine.playersByElement,n,[]);p.forEach(b=>{b.namespaceId==this.id&&b.triggerName==e&&b.queued&&b.destroy()});let f=o.matchTransition(l.value,c.value,n,c.params),y=!1;if(!f){if(!i)return;f=o.fallbackTransition,y=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:y}),y||(Vr(n,XP),s.onStart(()=>{Tc(n,XP)})),s.onDone(()=>{let b=this.players.indexOf(s);b>=0&&this.players.splice(b,1);let v=this._engine.playersByElement.get(n);if(v){let w=v.indexOf(s);w>=0&&v.splice(w,1)}}),this.players.push(s),p.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,r)=>{this._elementListeners.set(r,e.filter(i=>i.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);let e=this._engine.playersByElement.get(n);e&&(e.forEach(r=>r.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){let r=this._engine.driver.query(n,zu,!0);r.forEach(i=>{if(i[mi])return;let o=this._engine.fetchNamespacesByElement(i);o.size?o.forEach(s=>s.triggerLeaveAnimation(i,e,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(n,e,r,i){let o=this._engine.statesByElement.get(n),s=new Map;if(o){let a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){let d=this.trigger(n,c,$u,i);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,s),r&&No(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){let e=this._elementListeners.get(n),r=this._engine.statesByElement.get(n);if(e&&r){let i=new Set;e.forEach(o=>{let s=o.name;if(i.has(s))return;i.add(s);let l=this._triggers.get(s).fallbackTransition,c=r.get(s)||eC,d=new Wu($u),u=new Gu(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(n,e){let r=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let i=!1;if(r.totalAnimations){let o=r.players.length?r.playersByQueriedElement.get(n):[];if(o&&o.length)i=!0;else{let s=n;for(;s=s.parentNode;)if(r.statesByElement.get(s)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(n),i)r.markElementAsRemoved(this.id,n,!1,e);else{let o=n[mi];(!o||o===lA)&&(r.afterFlush(()=>this.clearElementCache(n)),r.destroyInnerAnimations(n),r._onRemovalComplete(n,e))}}insertNode(n,e){Vr(n,this._hostClassName)}drainQueuedTransitions(n){let e=[];return this._queue.forEach(r=>{let i=r.player;if(i.destroyed)return;let o=r.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==r.triggerName){let l=sg(o,r.triggerName,r.fromState.value,r.toState.value);l._data=n,og(r.player,a.phase,l,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(r)}),this._queue=[],e.sort((r,i)=>{let o=r.transition.ast.depCount,s=i.transition.ast.depCount;return o==0||s==0?o-s:this._engine.driver.containsElement(r.element,i.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}},uC=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(n,e)=>{};_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,r){this.bodyNode=n,this.driver=e,this._normalizer=r}get queuedPlayers(){let n=[];return this._namespaceList.forEach(e=>{e.players.forEach(r=>{r.queued&&n.push(r)})}),n}createNamespace(n,e){let r=new dC(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(r,e):(this.newHostElements.set(e,r),this.collectEnterElement(e)),this._namespaceLookup[n]=r}_balanceNamespaceList(n,e){let r=this._namespaceList,i=this.namespacesByHostElement;if(r.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){let l=i.get(a);if(l){let c=r.indexOf(l);r.splice(c+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||r.unshift(n)}else r.push(n);return i.set(e,n),n}register(n,e){let r=this._namespaceLookup[n];return r||(r=this.createNamespace(n,e)),r}registerTrigger(n,e,r){let i=this._namespaceLookup[n];i&&i.register(e,r)&&this.totalAnimations++}destroy(n,e){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let r=this._fetchNamespace(n);this.namespacesByHostElement.delete(r.hostElement);let i=this._namespaceList.indexOf(r);i>=0&&this._namespaceList.splice(i,1),r.destroy(e),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){let e=new Set,r=this.statesByElement.get(n);if(r){for(let i of r.values())if(i.namespaceId){let o=this._fetchNamespace(i.namespaceId);o&&e.add(o)}}return e}trigger(n,e,r,i){if(hg(e)){let o=this._fetchNamespace(n);if(o)return o.trigger(e,r,i),!0}return!1}insertNode(n,e,r,i){if(!hg(e))return;let o=e[mi];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){let s=this._fetchNamespace(n);s&&s.insertNode(e,r)}i&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Vr(n,Xw)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Tc(n,Xw))}removeNode(n,e,r){if(hg(e)){let i=n?this._fetchNamespace(n):null;i?i.removeNode(e,r):this.markElementAsRemoved(n,e,!1,r);let o=this.namespacesByHostElement.get(e);o&&o.id!==n&&o.removeNode(e,r)}else this._onRemovalComplete(e,r)}markElementAsRemoved(n,e,r,i,o){this.collectedLeaveElements.push(e),e[mi]={namespaceId:n,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,e,r,i,o){return hg(e)?this._fetchNamespace(n).listen(e,r,i,o):()=>{}}_buildInstruction(n,e,r,i,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,r,i,n.fromState.options,n.toState.options,e,o)}destroyInnerAnimations(n){let e=this.driver.query(n,zu,!0);e.forEach(r=>this.destroyActiveAnimationsForElement(r)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(n,cg,!0),e.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(n){let e=this.playersByElement.get(n);e&&e.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(n){let e=this.playersByQueriedElement.get(n);e&&e.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return No(this.players).onDone(()=>n());n()})}processLeaveNode(n){let e=n[mi];if(e&&e.setForRemoval){if(n[mi]=lA,e.namespaceId){this.destroyInnerAnimations(n);let r=this._fetchNamespace(e.namespaceId);r&&r.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(Xw)&&this.markElementAsDisabled(n,!1),this.driver.query(n,AZ,!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,i)=>this._balanceNamespaceList(r,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;r<this.collectedEnterElements.length;r++){let i=this.collectedEnterElements[r];Vr(i,NZ)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let r=[];try{e=this._flushAnimations(r,n)}finally{for(let i=0;i<r.length;i++)r[i]()}}else for(let r=0;r<this.collectedLeaveElements.length;r++){let i=this.collectedLeaveElements[r];this.processLeaveNode(i)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(r=>r()),this._flushFns=[],this._whenQuietFns.length){let r=this._whenQuietFns;this._whenQuietFns=[],e.length?No(e).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(n){throw zP(n)}_flushAnimations(n,e){let r=new Uu,i=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(Z=>{d.add(Z);let K=this.driver.query(Z,PZ,!0);for(let ee=0;ee<K.length;ee++)d.add(K[ee])});let u=this.bodyNode,p=Array.from(this.statesByElement.keys()),f=nA(p,this.collectedEnterElements),y=new Map,b=0;f.forEach((Z,K)=>{let ee=Qw+b++;y.set(K,ee),Z.forEach(he=>Vr(he,ee))});let v=[],w=new Set,D=new Set;for(let Z=0;Z<this.collectedLeaveElements.length;Z++){let K=this.collectedLeaveElements[Z],ee=K[mi];ee&&ee.setForRemoval&&(v.push(K),w.add(K),ee.hasAnimation?this.driver.query(K,FZ,!0).forEach(he=>w.add(he)):D.add(K))}let P=new Map,B=nA(p,Array.from(w));B.forEach((Z,K)=>{let ee=lg+b++;P.set(K,ee),Z.forEach(he=>Vr(he,ee))}),n.push(()=>{f.forEach((Z,K)=>{let ee=y.get(K);Z.forEach(he=>Tc(he,ee))}),B.forEach((Z,K)=>{let ee=P.get(K);Z.forEach(he=>Tc(he,ee))}),v.forEach(Z=>{this.processLeaveNode(Z)})});let Y=[],ye=[];for(let Z=this._namespaceList.length-1;Z>=0;Z--)this._namespaceList[Z].drainQueuedTransitions(e).forEach(ee=>{let he=ee.player,Ye=ee.element;if(Y.push(he),this.collectedEnterElements.length){let nt=Ye[mi];if(nt&&nt.setForMove){if(nt.previousTriggersValues&&nt.previousTriggersValues.has(ee.triggerName)){let yi=nt.previousTriggersValues.get(ee.triggerName),Fn=this.statesByElement.get(ee.element);if(Fn&&Fn.has(ee.triggerName)){let Na=Fn.get(ee.triggerName);Na.value=yi,Fn.set(ee.triggerName,Na)}}he.destroy();return}}let Fe=!u||!this.driver.containsElement(u,Ye),Rt=P.get(Ye),Sn=y.get(Ye),ht=this._buildInstruction(ee,r,Sn,Rt,Fe);if(ht.errors&&ht.errors.length){ye.push(ht);return}if(Fe){he.onStart(()=>ws(Ye,ht.fromStyles)),he.onDestroy(()=>hi(Ye,ht.toStyles)),i.push(he);return}if(ee.isFallbackTransition){he.onStart(()=>ws(Ye,ht.fromStyles)),he.onDestroy(()=>hi(Ye,ht.toStyles)),i.push(he);return}let wr=[];ht.timelines.forEach(nt=>{nt.stretchStartingKeyframe=!0,this.disabledNodes.has(nt.element)||wr.push(nt)}),ht.timelines=wr,r.append(Ye,ht.timelines);let Zt={instruction:ht,player:he,element:Ye};s.push(Zt),ht.queriedElements.forEach(nt=>ar(a,nt,[]).push(he)),ht.preStyleProps.forEach((nt,yi)=>{if(nt.size){let Fn=l.get(yi);Fn||l.set(yi,Fn=new Set),nt.forEach((Na,Dc)=>Fn.add(Dc))}}),ht.postStyleProps.forEach((nt,yi)=>{let Fn=c.get(yi);Fn||c.set(yi,Fn=new Set),nt.forEach((Na,Dc)=>Fn.add(Dc))})});if(ye.length){let Z=[];ye.forEach(K=>{Z.push(HP(K.triggerName,K.errors))}),Y.forEach(K=>K.destroy()),this.reportError(Z)}let Xe=new Map,tt=new Map;s.forEach(Z=>{let K=Z.element;r.has(K)&&(tt.set(K,K),this._beforeAnimationBuild(Z.player.namespaceId,Z.instruction,Xe))}),i.forEach(Z=>{let K=Z.element;this._getPreviousPlayers(K,!1,Z.namespaceId,Z.triggerName,null).forEach(he=>{ar(Xe,K,[]).push(he),he.destroy()})});let vt=v.filter(Z=>rA(Z,l,c)),tn=new Map;tA(tn,this.driver,D,c,Br).forEach(Z=>{rA(Z,l,c)&&vt.push(Z)});let zn=new Map;f.forEach((Z,K)=>{tA(zn,this.driver,new Set(Z),l,_c)}),vt.forEach(Z=>{let K=tn.get(Z),ee=zn.get(Z);tn.set(Z,new Map([...K?.entries()??[],...ee?.entries()??[]]))});let _r=[],Fo=[],je={};s.forEach(Z=>{let{element:K,player:ee,instruction:he}=Z;if(r.has(K)){if(d.has(K)){ee.onDestroy(()=>hi(K,he.toStyles)),ee.disabled=!0,ee.overrideTotalTime(he.totalTime),i.push(ee);return}let Ye=je;if(tt.size>1){let Rt=K,Sn=[];for(;Rt=Rt.parentNode;){let ht=tt.get(Rt);if(ht){Ye=ht;break}Sn.push(Rt)}Sn.forEach(ht=>tt.set(ht,Ye))}let Fe=this._buildAnimation(ee.namespaceId,he,Xe,o,zn,tn);if(ee.setRealPlayer(Fe),Ye===je)_r.push(ee);else{let Rt=this.playersByElement.get(Ye);Rt&&Rt.length&&(ee.parentPlayer=No(Rt)),i.push(ee)}}else ws(K,he.fromStyles),ee.onDestroy(()=>hi(K,he.toStyles)),Fo.push(ee),d.has(K)&&i.push(ee)}),Fo.forEach(Z=>{let K=o.get(Z.element);if(K&&K.length){let ee=No(K);Z.setRealPlayer(ee)}}),i.forEach(Z=>{Z.parentPlayer?Z.syncPlayerEvents(Z.parentPlayer):Z.destroy()});for(let Z=0;Z<v.length;Z++){let K=v[Z],ee=K[mi];if(Tc(K,lg),ee&&ee.hasAnimation)continue;let he=[];if(a.size){let Fe=a.get(K);Fe&&Fe.length&&he.push(...Fe);let Rt=this.driver.query(K,cg,!0);for(let Sn=0;Sn<Rt.length;Sn++){let ht=a.get(Rt[Sn]);ht&&ht.length&&he.push(...ht)}}let Ye=he.filter(Fe=>!Fe.destroyed);Ye.length?HZ(this,K,Ye):this.processLeaveNode(K)}return v.length=0,_r.forEach(Z=>{this.players.push(Z),Z.onDone(()=>{Z.destroy();let K=this.players.indexOf(Z);this.players.splice(K,1)}),Z.play()}),_r}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,r,i,o){let s=[];if(e){let a=this.playersByQueriedElement.get(n);a&&(s=a)}else{let a=this.playersByElement.get(n);if(a){let l=!o||o==$u;a.forEach(c=>{c.queued||!l&&c.triggerName!=i||s.push(c)})}}return(r||i)&&(s=s.filter(a=>!(r&&r!=a.namespaceId||i&&i!=a.triggerName))),s}_beforeAnimationBuild(n,e,r){let i=e.triggerName,o=e.element,s=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:i;for(let l of e.timelines){let c=l.element,d=c!==o,u=ar(r,c,[]);this._getPreviousPlayers(c,d,s,a,e.toState).forEach(f=>{let y=f.getRealPlayer();y.beforeDestroy&&y.beforeDestroy(),f.destroy(),u.push(f)})}ws(o,e.fromStyles)}_buildAnimation(n,e,r,i,o,s){let a=e.triggerName,l=e.element,c=[],d=new Set,u=new Set,p=e.timelines.map(y=>{let b=y.element;d.add(b);let v=b[mi];if(v&&v.removedBeforeQueried)return new no(y.duration,y.delay);let w=b!==l,D=$Z((r.get(b)||LZ).map(Xe=>Xe.getRealPlayer())).filter(Xe=>{let tt=Xe;return tt.element?tt.element===b:!1}),P=o.get(b),B=s.get(b),Y=$w(this._normalizer,y.keyframes,P,B),ye=this._buildPlayer(y,Y,D);if(y.subTimeline&&i&&u.add(b),w){let Xe=new Gu(n,a,b);Xe.setRealPlayer(ye),c.push(Xe)}return ye});c.forEach(y=>{ar(this.playersByQueriedElement,y.element,[]).push(y),y.onDone(()=>VZ(this.playersByQueriedElement,y.element,y))}),d.forEach(y=>Vr(y,Kw));let f=No(p);return f.onDestroy(()=>{d.forEach(y=>Tc(y,Kw)),hi(l,e.toStyles)}),u.forEach(y=>{ar(i,y,[]).push(f)}),f}_buildPlayer(n,e,r){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,r):new no(n.duration,n.delay)}},Gu=class{namespaceId;triggerName;element;_player=new no;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(n,e,r){this.namespaceId=n,this.triggerName=e,this.element=r}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,r)=>{e.forEach(i=>og(n,r,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){let e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){ar(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){let e=this._player;e.triggerCallback&&e.triggerCallback(n)}};function VZ(t,n,e){let r=t.get(n);if(r){if(r.length){let i=r.indexOf(e);r.splice(i,1)}r.length==0&&t.delete(n)}return r}function jZ(t){return t??null}function hg(t){return t&&t.nodeType===1}function zZ(t){return t=="start"||t=="done"}function eA(t,n){let e=t.style.display;return t.style.display=n??"none",e}function tA(t,n,e,r,i){let o=[];e.forEach(l=>o.push(eA(l)));let s=[];r.forEach((l,c)=>{let d=new Map;l.forEach(u=>{let p=n.computeStyle(c,u,i);d.set(u,p),(!p||p.length==0)&&(c[mi]=BZ,s.push(c))}),t.set(c,d)});let a=0;return e.forEach(l=>eA(l,o[a++])),s}function nA(t,n){let e=new Map;if(t.forEach(a=>e.set(a,[])),n.length==0)return e;let r=1,i=new Set(n),o=new Map;function s(a){if(!a)return r;let l=o.get(a);if(l)return l;let c=a.parentNode;return e.has(c)?l=c:i.has(c)?l=r:l=s(c),o.set(a,l),l}return n.forEach(a=>{let l=s(a);l!==r&&e.get(l).push(a)}),e}function Vr(t,n){t.classList?.add(n)}function Tc(t,n){t.classList?.remove(n)}function HZ(t,n,e){No(e).onDone(()=>t.processLeaveNode(n))}function $Z(t){let n=[];return cA(t,n),n}function cA(t,n){for(let e=0;e<t.length;e++){let r=t[e];r instanceof ka?cA(r.players,n):n.push(r)}}function UZ(t,n){let e=Object.keys(t),r=Object.keys(n);if(e.length!=r.length)return!1;for(let i=0;i<e.length;i++){let o=e[i];if(!n.hasOwnProperty(o)||t[o]!==n[o])return!1}return!0}function rA(t,n,e){let r=e.get(t);if(!r)return!1;let i=n.get(t);return i?r.forEach(o=>i.add(o)):n.set(t,r),e.delete(t),!0}var Ec=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(n,e)=>{};constructor(n,e,r){this._driver=e,this._normalizer=r,this._transitionEngine=new uC(n.body,e,r),this._timelineEngine=new cC(n.body,e,r),this._transitionEngine.onRemovalComplete=(i,o)=>this.onRemovalComplete(i,o)}registerTrigger(n,e,r,i,o){let s=n+"-"+i,a=this._triggerCache[s];if(!a){let l=[],c=[],d=oA(this._driver,o,l,c);if(l.length)throw RP(i,l);a=MZ(i,d,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,i,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,r,i){this._transitionEngine.insertNode(n,e,r,i)}onRemove(n,e,r){this._transitionEngine.removeNode(n,e,r)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,r,i){if(r.charAt(0)=="@"){let[o,s]=Uw(r),a=i;this._timelineEngine.command(o,e,s,a)}else this._transitionEngine.trigger(n,e,r,i)}listen(n,e,r,i,o){if(r.charAt(0)=="@"){let[s,a]=Uw(r);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(n,e,r,i,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}};function WZ(t,n){let e=null,r=null;return Array.isArray(n)&&n.length?(e=tC(n[0]),n.length>1&&(r=tC(n[n.length-1]))):n instanceof Map&&(e=tC(n)),e||r?new GZ(t,e,r):null}var GZ=(()=>{class t{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(e,r,i){this._element=e,this._startStyles=r,this._endStyles=i;let o=t.initialStylesByElement.get(e);o||t.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&hi(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(hi(this._element,this._initialStyles),this._endStyles&&(hi(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(ws(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ws(this._element,this._endStyles),this._endStyles=null),hi(this._element,this._initialStyles),this._state=3)}}return t})();function tC(t){let n=null;return t.forEach((e,r)=>{qZ(r)&&(n=n||new Map,n.set(r,e))}),n}function qZ(t){return t==="display"||t==="position"}var wg=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(n,e,r,i){this.element=n,this.keyframes=e,this.options=r,this._specialStyles=i,this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer()&&this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;let n=this.keyframes,e=this._triggerWebAnimation(this.element,n,this.options);if(!e)return this._onFinish(),null;this.domPlayer=e,this._finalKeyframe=n.length?n[n.length-1]:new Map;let r=()=>this._onFinish();return e.addEventListener("finish",r),this.onDestroy(()=>{e.removeEventListener("finish",r)}),e}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause()}_convertKeyframesToObject(n){let e=[];return n.forEach(r=>{e.push(Object.fromEntries(r))}),e}_triggerWebAnimation(n,e,r){let i=this._convertKeyframesToObject(e);try{return n.animate(i,r)}catch{return null}}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){let n=this._buildPlayer();n&&(this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),n.play())}pause(){this.init(),this.domPlayer?.pause()}finish(){this.init(),this.domPlayer&&(this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish())}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer?.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=n*this.time)}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,i)=>{i!=="offset"&&n.set(i,this._finished?r:ug(this.element,i))}),this.currentSnapshot=n}triggerCallback(n){let e=n==="start"?this._onStartFns:this._onDoneFns;e.forEach(r=>r()),e.length=0}},Cg=class{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}containsElement(n,e){return Ww(n,e)}getParentElement(n){return ag(n)}query(n,e,r){return Gw(n,e,r)}computeStyle(n,e,r){return ug(n,e)}animate(n,e,r,i,o,s=[]){let a=i==0?"both":"forwards",l={duration:r,delay:i,fill:a};o&&(l.easing=o);let c=new Map,d=s.filter(f=>f instanceof wg);GP(r,i)&&d.forEach(f=>{f.currentSnapshot.forEach((y,b)=>c.set(b,y))});let u=UP(e).map(f=>new Map(f));u=qP(n,u,c);let p=WZ(n,u);return new wg(n,u,l,p)}};var mg="@",dA="@.disabled",xg=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(n,e,r,i){this.namespaceId=n,this.delegate=e,this.engine=r,this._onDestroy=i}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,r,i=!0){this.delegate.insertBefore(n,e,r),this.engine.onInsert(this.namespaceId,e,n,i)}removeChild(n,e,r,i){if(i){this.delegate.removeChild(n,e,r,i);return}this.parentNode(e)&&this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,r,i){this.delegate.setAttribute(n,e,r,i)}removeAttribute(n,e,r){this.delegate.removeAttribute(n,e,r)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,r,i){this.delegate.setStyle(n,e,r,i)}removeStyle(n,e,r){this.delegate.removeStyle(n,e,r)}setProperty(n,e,r){e.charAt(0)==mg&&e==dA?this.disableAnimations(n,!!r):this.delegate.setProperty(n,e,r)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,r,i){return this.delegate.listen(n,e,r,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}},pC=class extends xg{factory;constructor(n,e,r,i,o){super(e,r,i,o),this.factory=n,this.namespaceId=e}setProperty(n,e,r){e.charAt(0)==mg?e.charAt(1)=="."&&e==dA?(r=r===void 0?!0:!!r,this.disableAnimations(n,r)):this.engine.process(this.namespaceId,n,e.slice(1),r):this.delegate.setProperty(n,e,r)}listen(n,e,r,i){if(e.charAt(0)==mg){let o=QZ(n),s=e.slice(1),a="";return s.charAt(0)!=mg&&([s,a]=KZ(s)),this.engine.listen(this.namespaceId,o,s,a,l=>{let c=l._data||-1;this.factory.scheduleListenerCallback(c,r,l)})}return this.delegate.listen(n,e,r,i)}};function QZ(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function KZ(t){let n=t.indexOf("."),e=t.substring(0,n),r=t.slice(n+1);return[e,r]}var Tg=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(n,e,r){this.delegate=n,this.engine=e,this._zone=r,e.onRemovalComplete=(i,o)=>{o?.removeChild(null,i)}}createRenderer(n,e){let i=this.delegate.createRenderer(n,e);if(!n||!e?.data?.animation){let c=this._rendererCache,d=c.get(i);if(!d){let u=()=>c.delete(i);d=new xg("",i,this.engine,u),c.set(i,d)}return d}let o=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,n);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(o,s,n,c.name,c)};return e.data.animation.forEach(a),new pC(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,e,r){if(n>=0&&n<this._microtaskId){this._zone.run(()=>e(r));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(o=>{let[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),i.push([e,r])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(n){this.engine.flush(),this.delegate.componentReplaced?.(n)}};var ZZ=(()=>{class t extends Ec{constructor(e,r,i){super(e,r,i)}ngOnDestroy(){this.flush()}static \u0275fac=function(r){return new(r||t)(me(bt),me(Pa),me(Aa))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();function JZ(){return new gg}function XZ(t,n,e){return new Tg(t,n,e)}var uA=[{provide:Aa,useFactory:JZ},{provide:Ec,useClass:ZZ},{provide:mo,useFactory:XZ,deps:[Ed,Ec,$e]}],O8e=[{provide:Pa,useClass:fC},{provide:Rf,useValue:"NoopAnimations"},...uA],eJ=[{provide:Pa,useFactory:()=>new Cg},{provide:Rf,useFactory:()=>"BrowserAnimations"},...uA];function pA(){return Zr("NgEagerAnimations"),[...eJ]}var tJ={transitionDuration:"{transition.duration}"},nJ={borderWidth:"0 0 1px 0",borderColor:"{content.border.color}"},rJ={color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",activeHoverColor:"{text.color}",padding:"1.125rem",fontWeight:"600",borderRadius:"0",borderWidth:"0",borderColor:"{content.border.color}",background:"{content.background}",hoverBackground:"{content.background}",activeBackground:"{content.background}",activeHoverBackground:"{content.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"},toggleIcon:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",activeHoverColor:"{text.color}"},first:{topBorderRadius:"{content.border.radius}",borderWidth:"0"},last:{bottomBorderRadius:"{content.border.radius}",activeBottomBorderRadius:"0"}},iJ={borderWidth:"0",borderColor:"{content.border.color}",background:"{content.background}",color:"{text.color}",padding:"0 1.125rem 1.125rem 1.125rem"},mC={root:tJ,panel:nJ,header:rJ,content:iJ};var oJ={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},sJ={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},aJ={padding:"{list.padding}",gap:"{list.gap}"},lJ={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},cJ={background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},dJ={width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},uJ={borderRadius:"{border.radius.sm}"},pJ={padding:"{list.option.padding}"},fJ={light:{chip:{focusBackground:"{surface.200}",focusColor:"{surface.800}"},dropdown:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",focusColor:"{surface.0}"},dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"}}},gC={root:oJ,overlay:sJ,list:aJ,option:lJ,optionGroup:cJ,dropdown:dJ,chip:uJ,emptyMessage:pJ,colorScheme:fJ};var hJ={width:"2rem",height:"2rem",fontSize:"1rem",background:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},mJ={size:"1rem"},gJ={borderColor:"{content.background}",offset:"-0.75rem"},yJ={width:"3rem",height:"3rem",fontSize:"1.5rem",icon:{size:"1.5rem"},group:{offset:"-1rem"}},bJ={width:"4rem",height:"4rem",fontSize:"2rem",icon:{size:"2rem"},group:{offset:"-1.5rem"}},yC={root:hJ,icon:mJ,group:gJ,lg:yJ,xl:bJ};var vJ={borderRadius:"{border.radius.md}",padding:"0 0.5rem",fontSize:"0.75rem",fontWeight:"700",minWidth:"1.5rem",height:"1.5rem"},_J={size:"0.5rem"},wJ={fontSize:"0.625rem",minWidth:"1.25rem",height:"1.25rem"},CJ={fontSize:"0.875rem",minWidth:"1.75rem",height:"1.75rem"},xJ={fontSize:"1rem",minWidth:"2rem",height:"2rem"},TJ={light:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.500}",color:"{surface.0}"},info:{background:"{sky.500}",color:"{surface.0}"},warn:{background:"{orange.500}",color:"{surface.0}"},danger:{background:"{red.500}",color:"{surface.0}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"{green.400}",color:"{green.950}"},info:{background:"{sky.400}",color:"{sky.950}"},warn:{background:"{orange.400}",color:"{orange.950}"},danger:{background:"{red.400}",color:"{red.950}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}},bC={root:vJ,dot:_J,sm:wJ,lg:CJ,xl:xJ,colorScheme:TJ};var EJ={borderRadius:{none:"0",xs:"2px",sm:"4px",md:"6px",lg:"8px",xl:"12px"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"}},SJ={transitionDuration:"0.2s",focusRing:{width:"1px",style:"solid",color:"{primary.color}",offset:"2px",shadow:"none"},disabledOpacity:"0.6",iconSize:"1rem",anchorGutter:"2px",primary:{50:"{emerald.50}",100:"{emerald.100}",200:"{emerald.200}",300:"{emerald.300}",400:"{emerald.400}",500:"{emerald.500}",600:"{emerald.600}",700:"{emerald.700}",800:"{emerald.800}",900:"{emerald.900}",950:"{emerald.950}"},formField:{paddingX:"0.75rem",paddingY:"0.5rem",sm:{fontSize:"0.875rem",paddingX:"0.625rem",paddingY:"0.375rem"},lg:{fontSize:"1.125rem",paddingX:"0.875rem",paddingY:"0.625rem"},borderRadius:"{border.radius.md}",focusRing:{width:"0",style:"none",color:"transparent",offset:"0",shadow:"none"},transitionDuration:"{transition.duration}"},list:{padding:"0.25rem 0.25rem",gap:"2px",header:{padding:"0.5rem 1rem 0.25rem 1rem"},option:{padding:"0.5rem 0.75rem",borderRadius:"{border.radius.sm}"},optionGroup:{padding:"0.5rem 0.75rem",fontWeight:"600"}},content:{borderRadius:"{border.radius.md}"},mask:{transitionDuration:"0.15s"},navigation:{list:{padding:"0.25rem 0.25rem",gap:"2px"},item:{padding:"0.5rem 0.75rem",borderRadius:"{border.radius.sm}",gap:"0.5rem"},submenuLabel:{padding:"0.5rem 0.75rem",fontWeight:"600"},submenuIcon:{size:"0.875rem"}},overlay:{select:{borderRadius:"{border.radius.md}",shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"},popover:{borderRadius:"{border.radius.md}",padding:"0.75rem",shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"},modal:{borderRadius:"{border.radius.xl}",padding:"1.25rem",shadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)"},navigation:{shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"}},colorScheme:{light:{surface:{0:"#ffffff",50:"{slate.50}",100:"{slate.100}",200:"{slate.200}",300:"{slate.300}",400:"{slate.400}",500:"{slate.500}",600:"{slate.600}",700:"{slate.700}",800:"{slate.800}",900:"{slate.900}",950:"{slate.950}"},primary:{color:"{primary.500}",contrastColor:"#ffffff",hoverColor:"{primary.600}",activeColor:"{primary.700}"},highlight:{background:"{primary.50}",focusBackground:"{primary.100}",color:"{primary.700}",focusColor:"{primary.800}"},mask:{background:"rgba(0,0,0,0.4)",color:"{surface.200}"},formField:{background:"{surface.0}",disabledBackground:"{surface.200}",filledBackground:"{surface.50}",filledHoverBackground:"{surface.50}",filledFocusBackground:"{surface.50}",borderColor:"{surface.300}",hoverBorderColor:"{surface.400}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.400}",color:"{surface.700}",disabledColor:"{surface.500}",placeholderColor:"{surface.500}",invalidPlaceholderColor:"{red.600}",floatLabelColor:"{surface.500}",floatLabelFocusColor:"{primary.600}",floatLabelActiveColor:"{surface.500}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.400}",shadow:"0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)"},text:{color:"{surface.700}",hoverColor:"{surface.800}",mutedColor:"{surface.500}",hoverMutedColor:"{surface.600}"},content:{background:"{surface.0}",hoverBackground:"{surface.100}",borderColor:"{surface.200}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"},popover:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"},modal:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.100}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}"}},optionGroup:{background:"transparent",color:"{text.muted.color}"}},navigation:{item:{focusBackground:"{surface.100}",activeBackground:"{surface.100}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}},submenuLabel:{background:"transparent",color:"{text.muted.color}"},submenuIcon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}}},dark:{surface:{0:"#ffffff",50:"{zinc.50}",100:"{zinc.100}",200:"{zinc.200}",300:"{zinc.300}",400:"{zinc.400}",500:"{zinc.500}",600:"{zinc.600}",700:"{zinc.700}",800:"{zinc.800}",900:"{zinc.900}",950:"{zinc.950}"},primary:{color:"{primary.400}",contrastColor:"{surface.900}",hoverColor:"{primary.300}",activeColor:"{primary.200}"},highlight:{background:"color-mix(in srgb, {primary.400}, transparent 84%)",focusBackground:"color-mix(in srgb, {primary.400}, transparent 76%)",color:"rgba(255,255,255,.87)",focusColor:"rgba(255,255,255,.87)"},mask:{background:"rgba(0,0,0,0.6)",color:"{surface.200}"},formField:{background:"{surface.950}",disabledBackground:"{surface.700}",filledBackground:"{surface.800}",filledHoverBackground:"{surface.800}",filledFocusBackground:"{surface.800}",borderColor:"{surface.600}",hoverBorderColor:"{surface.500}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.300}",color:"{surface.0}",disabledColor:"{surface.400}",placeholderColor:"{surface.400}",invalidPlaceholderColor:"{red.400}",floatLabelColor:"{surface.400}",floatLabelFocusColor:"{primary.color}",floatLabelActiveColor:"{surface.400}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.400}",shadow:"0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)"},text:{color:"{surface.0}",hoverColor:"{surface.0}",mutedColor:"{surface.400}",hoverMutedColor:"{surface.300}"},content:{background:"{surface.900}",hoverBackground:"{surface.800}",borderColor:"{surface.700}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"},popover:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"},modal:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.800}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.500}",focusColor:"{surface.400}"}},optionGroup:{background:"transparent",color:"{text.muted.color}"}},navigation:{item:{focusBackground:"{surface.800}",activeBackground:"{surface.800}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.500}",focusColor:"{surface.400}",activeColor:"{surface.400}"}},submenuLabel:{background:"transparent",color:"{text.muted.color}"},submenuIcon:{color:"{surface.500}",focusColor:"{surface.400}",activeColor:"{surface.400}"}}}}},vC={primitive:EJ,semantic:SJ};var IJ={borderRadius:"{content.border.radius}"},_C={root:IJ};var DJ={padding:"1rem",background:"{content.background}",gap:"0.5rem",transitionDuration:"{transition.duration}"},kJ={color:"{text.muted.color}",hoverColor:"{text.color}",borderRadius:"{content.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",hoverColor:"{navigation.item.icon.focus.color}"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},MJ={color:"{navigation.item.icon.color}"},wC={root:DJ,item:kJ,separator:MJ};var OJ={borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",gap:"0.5rem",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",iconOnlyWidth:"2.5rem",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}",iconOnlyWidth:"2rem"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}",iconOnlyWidth:"3rem"},label:{fontWeight:"500"},raisedShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"},badgeSize:"1rem",transitionDuration:"{form.field.transition.duration}"},RJ={light:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"{primary.color}",shadow:"none"}},secondary:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",borderColor:"{surface.100}",hoverBorderColor:"{surface.200}",activeBorderColor:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}",focusRing:{color:"{surface.600}",shadow:"none"}},info:{background:"{sky.500}",hoverBackground:"{sky.600}",activeBackground:"{sky.700}",borderColor:"{sky.500}",hoverBorderColor:"{sky.600}",activeBorderColor:"{sky.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{sky.500}",shadow:"none"}},success:{background:"{green.500}",hoverBackground:"{green.600}",activeBackground:"{green.700}",borderColor:"{green.500}",hoverBorderColor:"{green.600}",activeBorderColor:"{green.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{green.500}",shadow:"none"}},warn:{background:"{orange.500}",hoverBackground:"{orange.600}",activeBackground:"{orange.700}",borderColor:"{orange.500}",hoverBorderColor:"{orange.600}",activeBorderColor:"{orange.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{orange.500}",shadow:"none"}},help:{background:"{purple.500}",hoverBackground:"{purple.600}",activeBackground:"{purple.700}",borderColor:"{purple.500}",hoverBorderColor:"{purple.600}",activeBorderColor:"{purple.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{purple.500}",shadow:"none"}},danger:{background:"{red.500}",hoverBackground:"{red.600}",activeBackground:"{red.700}",borderColor:"{red.500}",hoverBorderColor:"{red.600}",activeBorderColor:"{red.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{red.500}",shadow:"none"}},contrast:{background:"{surface.950}",hoverBackground:"{surface.900}",activeBackground:"{surface.800}",borderColor:"{surface.950}",hoverBorderColor:"{surface.900}",activeBorderColor:"{surface.800}",color:"{surface.0}",hoverColor:"{surface.0}",activeColor:"{surface.0}",focusRing:{color:"{surface.950}",shadow:"none"}}},outlined:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",borderColor:"{primary.200}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.200}",color:"{surface.500}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",borderColor:"{green.200}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",borderColor:"{sky.200}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",borderColor:"{orange.200}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",borderColor:"{purple.200}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",borderColor:"{red.200}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.700}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.200}",color:"{surface.700}"}},text:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.500}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.700}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}},dark:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"{primary.color}",shadow:"none"}},secondary:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",borderColor:"{surface.800}",hoverBorderColor:"{surface.700}",activeBorderColor:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}",focusRing:{color:"{surface.300}",shadow:"none"}},info:{background:"{sky.400}",hoverBackground:"{sky.300}",activeBackground:"{sky.200}",borderColor:"{sky.400}",hoverBorderColor:"{sky.300}",activeBorderColor:"{sky.200}",color:"{sky.950}",hoverColor:"{sky.950}",activeColor:"{sky.950}",focusRing:{color:"{sky.400}",shadow:"none"}},success:{background:"{green.400}",hoverBackground:"{green.300}",activeBackground:"{green.200}",borderColor:"{green.400}",hoverBorderColor:"{green.300}",activeBorderColor:"{green.200}",color:"{green.950}",hoverColor:"{green.950}",activeColor:"{green.950}",focusRing:{color:"{green.400}",shadow:"none"}},warn:{background:"{orange.400}",hoverBackground:"{orange.300}",activeBackground:"{orange.200}",borderColor:"{orange.400}",hoverBorderColor:"{orange.300}",activeBorderColor:"{orange.200}",color:"{orange.950}",hoverColor:"{orange.950}",activeColor:"{orange.950}",focusRing:{color:"{orange.400}",shadow:"none"}},help:{background:"{purple.400}",hoverBackground:"{purple.300}",activeBackground:"{purple.200}",borderColor:"{purple.400}",hoverBorderColor:"{purple.300}",activeBorderColor:"{purple.200}",color:"{purple.950}",hoverColor:"{purple.950}",activeColor:"{purple.950}",focusRing:{color:"{purple.400}",shadow:"none"}},danger:{background:"{red.400}",hoverBackground:"{red.300}",activeBackground:"{red.200}",borderColor:"{red.400}",hoverBorderColor:"{red.300}",activeBorderColor:"{red.200}",color:"{red.950}",hoverColor:"{red.950}",activeColor:"{red.950}",focusRing:{color:"{red.400}",shadow:"none"}},contrast:{background:"{surface.0}",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",borderColor:"{surface.0}",hoverBorderColor:"{surface.100}",activeBorderColor:"{surface.200}",color:"{surface.950}",hoverColor:"{surface.950}",activeColor:"{surface.950}",focusRing:{color:"{surface.0}",shadow:"none"}}},outlined:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",borderColor:"{primary.700}",color:"{primary.color}"},secondary:{hoverBackground:"rgba(255,255,255,0.04)",activeBackground:"rgba(255,255,255,0.16)",borderColor:"{surface.700}",color:"{surface.400}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",borderColor:"{green.700}",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",borderColor:"{sky.700}",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",borderColor:"{orange.700}",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {purple.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {purple.400}, transparent 84%)",borderColor:"{purple.700}",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {red.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {red.400}, transparent 84%)",borderColor:"{red.700}",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.500}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.600}",color:"{surface.0}"}},text:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",color:"{primary.color}"},secondary:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.400}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {purple.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {purple.400}, transparent 84%)",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {red.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {red.400}, transparent 84%)",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}}},CC={root:OJ,colorScheme:RJ};var PJ={background:"{content.background}",borderRadius:"{border.radius.xl}",color:"{content.color}",shadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"},AJ={padding:"1.25rem",gap:"0.5rem"},NJ={gap:"0.5rem"},FJ={fontSize:"1.25rem",fontWeight:"500"},LJ={color:"{text.muted.color}"},xC={root:PJ,body:AJ,caption:NJ,title:FJ,subtitle:LJ};var BJ={transitionDuration:"{transition.duration}"},VJ={gap:"0.25rem"},jJ={padding:"1rem",gap:"0.5rem"},zJ={width:"2rem",height:"0.5rem",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},HJ={light:{indicator:{background:"{surface.200}",hoverBackground:"{surface.300}",activeBackground:"{primary.color}"}},dark:{indicator:{background:"{surface.700}",hoverBackground:"{surface.600}",activeBackground:"{primary.color}"}}},TC={root:BJ,content:VJ,indicatorList:jJ,indicator:zJ,colorScheme:HJ};var $J={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},UJ={width:"2.5rem",color:"{form.field.icon.color}"},WJ={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},GJ={padding:"{list.padding}",gap:"{list.gap}",mobileIndent:"1rem"},qJ={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",icon:{color:"{list.option.icon.color}",focusColor:"{list.option.icon.focus.color}",size:"0.875rem"}},QJ={color:"{form.field.icon.color}"},EC={root:$J,dropdown:UJ,overlay:WJ,list:GJ,option:qJ,clearIcon:QJ};var KJ={borderRadius:"{border.radius.sm}",width:"1.25rem",height:"1.25rem",background:"{form.field.background}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.hover.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}},YJ={size:"0.875rem",color:"{form.field.color}",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"0.75rem"},lg:{size:"1rem"}},SC={root:KJ,icon:YJ};var ZJ={borderRadius:"16px",paddingX:"0.75rem",paddingY:"0.5rem",gap:"0.5rem",transitionDuration:"{transition.duration}"},JJ={width:"2rem",height:"2rem"},XJ={size:"1rem"},eX={size:"1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},tX={light:{root:{background:"{surface.100}",color:"{surface.800}"},icon:{color:"{surface.800}"},removeIcon:{color:"{surface.800}"}},dark:{root:{background:"{surface.800}",color:"{surface.0}"},icon:{color:"{surface.0}"},removeIcon:{color:"{surface.0}"}}},IC={root:ZJ,image:JJ,icon:XJ,removeIcon:eX,colorScheme:tX};var nX={transitionDuration:"{transition.duration}"},rX={width:"1.5rem",height:"1.5rem",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},iX={shadow:"{overlay.popover.shadow}",borderRadius:"{overlay.popover.borderRadius}"},oX={light:{panel:{background:"{surface.800}",borderColor:"{surface.900}"},handle:{color:"{surface.0}"}},dark:{panel:{background:"{surface.900}",borderColor:"{surface.700}"},handle:{color:"{surface.0}"}}},DC={root:nX,preview:rX,panel:iX,colorScheme:oX};var sX={size:"2rem",color:"{overlay.modal.color}"},aX={gap:"1rem"},kC={icon:sX,content:aX};var lX={background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},cX={padding:"{overlay.popover.padding}",gap:"1rem"},dX={size:"1.5rem",color:"{overlay.popover.color}"},uX={gap:"0.5rem",padding:"0 {overlay.popover.padding} {overlay.popover.padding} {overlay.popover.padding}"},MC={root:lX,content:cX,icon:dX,footer:uX};var pX={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},fX={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},hX={focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},mX={mobileIndent:"1rem"},gX={size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},yX={borderColor:"{content.border.color}"},OC={root:pX,list:fX,item:hX,submenu:mX,submenuIcon:gX,separator:yX};var bX={transitionDuration:"{transition.duration}"},vX={background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem",sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},_X={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{datatable.border.color}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"},sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},wX={fontWeight:"600"},CX={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},xX={borderColor:"{datatable.border.color}",padding:"0.75rem 1rem",sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},TX={background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",padding:"0.75rem 1rem",sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},EX={fontWeight:"600"},SX={background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem",sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},IX={color:"{primary.color}"},DX={width:"0.5rem"},kX={width:"1px",color:"{primary.color}"},MX={color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},OX={size:"2rem"},RX={hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},PX={inlineGap:"0.5rem",overlaySelect:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},overlayPopover:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}",gap:"0.5rem"},rule:{borderColor:"{content.border.color}"},constraintList:{padding:"{list.padding}",gap:"{list.gap}"},constraint:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",separator:{borderColor:"{content.border.color}"},padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"}},AX={borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},NX={borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},FX={light:{root:{borderColor:"{content.border.color}"},row:{stripedBackground:"{surface.50}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},row:{stripedBackground:"{surface.950}"},bodyCell:{selectedBorderColor:"{primary.900}"}}},RC={root:bX,header:vX,headerCell:_X,columnTitle:wX,row:CX,bodyCell:xX,footerCell:TX,columnFooter:EX,footer:SX,dropPoint:IX,columnResizer:DX,resizeIndicator:kX,sortIcon:MX,loadingIcon:OX,rowToggleButton:RX,filter:PX,paginatorTop:AX,paginatorBottom:NX,colorScheme:FX};var LX={borderColor:"transparent",borderWidth:"0",borderRadius:"0",padding:"0"},BX={background:"{content.background}",color:"{content.color}",borderColor:"{content.border.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem",borderRadius:"0"},VX={background:"{content.background}",color:"{content.color}",borderColor:"transparent",borderWidth:"0",padding:"0",borderRadius:"0"},jX={background:"{content.background}",color:"{content.color}",borderColor:"{content.border.color}",borderWidth:"1px 0 0 0",padding:"0.75rem 1rem",borderRadius:"0"},zX={borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},HX={borderColor:"{content.border.color}",borderWidth:"1px 0 0 0"},PC={root:LX,header:BX,content:VX,footer:jX,paginatorTop:zX,paginatorBottom:HX};var $X={transitionDuration:"{transition.duration}"},UX={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}"},WX={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",padding:"0 0 0.5rem 0"},GX={gap:"0.5rem",fontWeight:"500"},qX={width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},QX={color:"{form.field.icon.color}"},KX={hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}"},YX={hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}"},ZX={borderColor:"{content.border.color}",gap:"{overlay.popover.padding}"},JX={margin:"0.5rem 0 0 0"},XX={padding:"0.25rem",fontWeight:"500",color:"{content.color}"},eee={hoverBackground:"{content.hover.background}",selectedBackground:"{primary.color}",rangeSelectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{primary.contrast.color}",rangeSelectedColor:"{highlight.color}",width:"2rem",height:"2rem",borderRadius:"50%",padding:"0.25rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},tee={margin:"0.5rem 0 0 0"},nee={padding:"0.375rem",borderRadius:"{content.border.radius}"},ree={margin:"0.5rem 0 0 0"},iee={padding:"0.375rem",borderRadius:"{content.border.radius}"},oee={padding:"0.5rem 0 0 0",borderColor:"{content.border.color}"},see={padding:"0.5rem 0 0 0",borderColor:"{content.border.color}",gap:"0.5rem",buttonGap:"0.25rem"},aee={light:{dropdown:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"},today:{background:"{surface.200}",color:"{surface.900}"}},dark:{dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"},today:{background:"{surface.700}",color:"{surface.0}"}}},AC={root:$X,panel:UX,header:WX,title:GX,dropdown:qX,inputIcon:QX,selectMonth:KX,selectYear:YX,group:ZX,dayView:JX,weekDay:XX,date:eee,monthView:tee,month:nee,yearView:ree,year:iee,buttonbar:oee,timePicker:see,colorScheme:aee};var lee={background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",borderRadius:"{overlay.modal.border.radius}",shadow:"{overlay.modal.shadow}"},cee={padding:"{overlay.modal.padding}",gap:"0.5rem"},dee={fontSize:"1.25rem",fontWeight:"600"},uee={padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},pee={padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}",gap:"0.5rem"},NC={root:lee,header:cee,title:dee,content:uee,footer:pee};var fee={borderColor:"{content.border.color}"},hee={background:"{content.background}",color:"{text.color}"},mee={margin:"1rem 0",padding:"0 1rem",content:{padding:"0 0.5rem"}},gee={margin:"0 1rem",padding:"0.5rem 0",content:{padding:"0.5rem 0"}},FC={root:fee,content:hee,horizontal:mee,vertical:gee};var yee={background:"rgba(255, 255, 255, 0.1)",borderColor:"rgba(255, 255, 255, 0.2)",padding:"0.5rem",borderRadius:"{border.radius.xl}"},bee={borderRadius:"{content.border.radius}",padding:"0.5rem",size:"3rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},LC={root:yee,item:bee};var vee={background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",shadow:"{overlay.modal.shadow}"},_ee={padding:"{overlay.modal.padding}"},wee={fontSize:"1.5rem",fontWeight:"600"},Cee={padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},xee={padding:"{overlay.modal.padding}"},BC={root:vee,header:_ee,title:wee,content:Cee,footer:xee};var Tee={background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}"},Eee={color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},See={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}",padding:"{list.padding}"},Iee={focusBackground:"{list.option.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},Dee={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},VC={toolbar:Tee,toolbarItem:Eee,overlay:See,overlayOption:Iee,content:Dee};var kee={background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",padding:"0 1.125rem 1.125rem 1.125rem",transitionDuration:"{transition.duration}"},Mee={background:"{content.background}",hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",borderRadius:"{content.border.radius}",borderWidth:"1px",borderColor:"transparent",padding:"0.5rem 0.75rem",gap:"0.5rem",fontWeight:"600",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Oee={color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}"},Ree={padding:"0"},jC={root:kee,legend:Mee,toggleIcon:Oee,content:Ree};var Pee={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},Aee={background:"transparent",color:"{text.color}",padding:"1.125rem",borderColor:"unset",borderWidth:"0",borderRadius:"0",gap:"0.5rem"},Nee={highlightBorderColor:"{primary.color}",padding:"0 1.125rem 1.125rem 1.125rem",gap:"1rem"},Fee={padding:"1rem",gap:"1rem",borderColor:"{content.border.color}",info:{gap:"0.5rem"}},Lee={gap:"0.5rem"},Bee={height:"0.25rem"},Vee={gap:"0.5rem"},zC={root:Pee,header:Aee,content:Nee,file:Fee,fileList:Lee,progressbar:Bee,basic:Vee};var jee={color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",activeColor:"{form.field.float.label.active.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",positionY:"{form.field.padding.y}",fontWeight:"500",active:{fontSize:"0.75rem",fontWeight:"400"}},zee={active:{top:"-1.25rem"}},Hee={input:{paddingTop:"1.5rem",paddingBottom:"{form.field.padding.y}"},active:{top:"{form.field.padding.y}"}},$ee={borderRadius:"{border.radius.xs}",active:{background:"{form.field.background}",padding:"0 0.125rem"}},HC={root:jee,over:zee,in:Hee,on:$ee};var Uee={borderWidth:"1px",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},Wee={background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.100}",hoverColor:"{surface.0}",size:"3rem",gutter:"0.5rem",prev:{borderRadius:"50%"},next:{borderRadius:"50%"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Gee={size:"1.5rem"},qee={background:"{content.background}",padding:"1rem 0.25rem"},Qee={size:"2rem",borderRadius:"{content.border.radius}",gutter:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Kee={size:"1rem"},Yee={background:"rgba(0, 0, 0, 0.5)",color:"{surface.100}",padding:"1rem"},Zee={gap:"0.5rem",padding:"1rem"},Jee={width:"1rem",height:"1rem",activeBackground:"{primary.color}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Xee={background:"rgba(0, 0, 0, 0.5)"},ete={background:"rgba(255, 255, 255, 0.4)",hoverBackground:"rgba(255, 255, 255, 0.6)",activeBackground:"rgba(255, 255, 255, 0.9)"},tte={size:"3rem",gutter:"0.5rem",background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.50}",hoverColor:"{surface.0}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},nte={size:"1.5rem"},rte={light:{thumbnailNavButton:{hoverBackground:"{surface.100}",color:"{surface.600}",hoverColor:"{surface.700}"},indicatorButton:{background:"{surface.200}",hoverBackground:"{surface.300}"}},dark:{thumbnailNavButton:{hoverBackground:"{surface.700}",color:"{surface.400}",hoverColor:"{surface.0}"},indicatorButton:{background:"{surface.700}",hoverBackground:"{surface.600}"}}},$C={root:Uee,navButton:Wee,navIcon:Gee,thumbnailsContent:qee,thumbnailNavButton:Qee,thumbnailNavButtonIcon:Kee,caption:Yee,indicatorList:Zee,indicatorButton:Jee,insetIndicatorList:Xee,insetIndicatorButton:ete,closeButton:tte,closeButtonIcon:nte,colorScheme:rte};var ite={color:"{form.field.icon.color}"},UC={icon:ite};var ote={color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",top:"{form.field.padding.y}",fontSize:"0.75rem",fontWeight:"400"},ste={paddingTop:"1.5rem",paddingBottom:"{form.field.padding.y}"},WC={root:ote,input:ste};var ate={transitionDuration:"{transition.duration}"},lte={icon:{size:"1.5rem"},mask:{background:"{mask.background}",color:"{mask.color}"}},cte={position:{left:"auto",right:"1rem",top:"1rem",bottom:"auto"},blur:"8px",background:"rgba(255,255,255,0.1)",borderColor:"rgba(255,255,255,0.2)",borderWidth:"1px",borderRadius:"30px",padding:".5rem",gap:"0.5rem"},dte={hoverBackground:"rgba(255,255,255,0.1)",color:"{surface.50}",hoverColor:"{surface.0}",size:"3rem",iconSize:"1.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},GC={root:ate,preview:lte,toolbar:cte,action:dte};var ute={size:"15px",hoverSize:"30px",background:"rgba(255,255,255,0.3)",hoverBackground:"rgba(255,255,255,0.3)",borderColor:"unset",hoverBorderColor:"unset",borderWidth:"0",borderRadius:"50%",transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"rgba(255,255,255,0.3)",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},qC={handle:ute};var pte={padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",gap:"0.5rem"},fte={fontWeight:"500"},hte={size:"1rem"},mte={light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)"},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)"},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)"},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)"},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)"},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)"}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)"},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)"},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)"},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)"},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)"},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)"}}},QC={root:pte,text:fte,icon:hte,colorScheme:mte};var gte={padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{transition.duration}"},yte={hoverBackground:"{content.hover.background}",hoverColor:"{content.hover.color}"},KC={root:gte,display:yte};var bte={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},vte={borderRadius:"{border.radius.sm}"},_te={light:{chip:{focusBackground:"{surface.200}",color:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",color:"{surface.0}"}}},YC={root:bte,chip:vte,colorScheme:_te};var wte={background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.icon.color}",borderRadius:"{form.field.border.radius}",padding:"0.5rem",minWidth:"2.5rem"},ZC={addon:wte};var Cte={transitionDuration:"{transition.duration}"},xte={width:"2.5rem",borderRadius:"{form.field.border.radius}",verticalPadding:"{form.field.padding.y}"},Tte={light:{button:{background:"transparent",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.400}",hoverColor:"{surface.500}",activeColor:"{surface.600}"}},dark:{button:{background:"transparent",hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.400}",hoverColor:"{surface.300}",activeColor:"{surface.200}"}}},JC={root:Cte,button:xte,colorScheme:Tte};var Ete={gap:"0.5rem"},Ste={width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"}},XC={root:Ete,input:Ste};var Ite={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},e1={root:Ite};var Dte={transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},kte={background:"{primary.color}"},Mte={background:"{content.border.color}"},Ote={color:"{text.muted.color}"},t1={root:Dte,value:kte,range:Mte,text:Ote};var Rte={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",borderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",shadow:"{form.field.shadow}",borderRadius:"{form.field.border.radius}",transitionDuration:"{form.field.transition.duration}"},Pte={padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},Ate={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},Nte={background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},Fte={color:"{list.option.color}",gutterStart:"-0.375rem",gutterEnd:"0.375rem"},Lte={padding:"{list.option.padding}"},Bte={light:{option:{stripedBackground:"{surface.50}"}},dark:{option:{stripedBackground:"{surface.900}"}}},n1={root:Rte,list:Pte,option:Ate,optionGroup:Nte,checkmark:Fte,emptyMessage:Lte,colorScheme:Bte};var Vte={background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",verticalOrientation:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},horizontalOrientation:{padding:"0.5rem 0.75rem",gap:"0.5rem"},transitionDuration:"{transition.duration}"},jte={borderRadius:"{content.border.radius}",padding:"{navigation.item.padding}"},zte={focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},Hte={padding:"0",background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",shadow:"{overlay.navigation.shadow}",gap:"0.5rem"},$te={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},Ute={padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background}",color:"{navigation.submenu.label.color}"},Wte={size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},Gte={borderColor:"{content.border.color}"},qte={borderRadius:"50%",size:"1.75rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},r1={root:Vte,baseItem:jte,item:zte,overlay:Hte,submenu:$te,submenuLabel:Ute,submenuIcon:Wte,separator:Gte,mobileButton:qte};var Qte={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},Kte={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},Yte={focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},Zte={padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background}",color:"{navigation.submenu.label.color}"},Jte={borderColor:"{content.border.color}"},i1={root:Qte,list:Kte,item:Yte,submenuLabel:Zte,separator:Jte};var Xte={background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",padding:"0.5rem 0.75rem",transitionDuration:"{transition.duration}"},ene={borderRadius:"{content.border.radius}",padding:"{navigation.item.padding}"},tne={focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},nne={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}",background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",mobileIndent:"1rem",icon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"}},rne={borderColor:"{content.border.color}"},ine={borderRadius:"50%",size:"1.75rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},o1={root:Xte,baseItem:ene,item:tne,submenu:nne,separator:rne,mobileButton:ine};var one={borderRadius:"{content.border.radius}",borderWidth:"1px",transitionDuration:"{transition.duration}"},sne={padding:"0.5rem 0.75rem",gap:"0.5rem",sm:{padding:"0.375rem 0.625rem"},lg:{padding:"0.625rem 0.875rem"}},ane={fontSize:"1rem",fontWeight:"500",sm:{fontSize:"0.875rem"},lg:{fontSize:"1.125rem"}},lne={size:"1.125rem",sm:{size:"1rem"},lg:{size:"1.25rem"}},cne={width:"1.75rem",height:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},dne={size:"1rem",sm:{size:"0.875rem"},lg:{size:"1.125rem"}},une={root:{borderWidth:"1px"}},pne={content:{padding:"0"}},fne={light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{blue.600}",shadow:"none"}},outlined:{color:"{blue.600}",borderColor:"{blue.600}"},simple:{color:"{blue.600}"}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{green.600}",shadow:"none"}},outlined:{color:"{green.600}",borderColor:"{green.600}"},simple:{color:"{green.600}"}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{yellow.600}",shadow:"none"}},outlined:{color:"{yellow.600}",borderColor:"{yellow.600}"},simple:{color:"{yellow.600}"}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{red.600}",shadow:"none"}},outlined:{color:"{red.600}",borderColor:"{red.600}"},simple:{color:"{red.600}"}},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{surface.600}",shadow:"none"}},outlined:{color:"{surface.500}",borderColor:"{surface.500}"},simple:{color:"{surface.500}"}},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{surface.50}",shadow:"none"}},outlined:{color:"{surface.950}",borderColor:"{surface.950}"},simple:{color:"{surface.950}"}}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{blue.500}",shadow:"none"}},outlined:{color:"{blue.500}",borderColor:"{blue.500}"},simple:{color:"{blue.500}"}},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{green.500}",shadow:"none"}},outlined:{color:"{green.500}",borderColor:"{green.500}"},simple:{color:"{green.500}"}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{yellow.500}",shadow:"none"}},outlined:{color:"{yellow.500}",borderColor:"{yellow.500}"},simple:{color:"{yellow.500}"}},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{red.500}",shadow:"none"}},outlined:{color:"{red.500}",borderColor:"{red.500}"},simple:{color:"{red.500}"}},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{surface.300}",shadow:"none"}},outlined:{color:"{surface.400}",borderColor:"{surface.400}"},simple:{color:"{surface.400}"}},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{surface.950}",shadow:"none"}},outlined:{color:"{surface.0}",borderColor:"{surface.0}"},simple:{color:"{surface.0}"}}}},s1={root:one,content:sne,text:ane,icon:lne,closeButton:cne,closeIcon:dne,outlined:une,simple:pne,colorScheme:fne};var hne={borderRadius:"{content.border.radius}",gap:"1rem"},mne={background:"{content.border.color}",size:"0.5rem"},gne={gap:"0.5rem"},yne={size:"0.5rem"},bne={size:"1rem"},vne={verticalGap:"0.5rem",horizontalGap:"1rem"},a1={root:hne,meters:mne,label:gne,labelMarker:yne,labelIcon:bne,labelList:vne};var _ne={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},wne={width:"2.5rem",color:"{form.field.icon.color}"},Cne={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},xne={padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},Tne={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",gap:"0.5rem"},Ene={background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},Sne={color:"{form.field.icon.color}"},Ine={borderRadius:"{border.radius.sm}"},Dne={padding:"{list.option.padding}"},l1={root:_ne,dropdown:wne,overlay:Cne,list:xne,option:Tne,optionGroup:Ene,chip:Ine,clearIcon:Sne,emptyMessage:Dne};var kne={gap:"1.125rem"},Mne={gap:"0.5rem"},c1={root:kne,controls:Mne};var One={gutter:"0.75rem",transitionDuration:"{transition.duration}"},Rne={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{content.border.color}",color:"{content.color}",selectedColor:"{highlight.color}",hoverColor:"{content.hover.color}",padding:"0.75rem 1rem",toggleablePadding:"0.75rem 1rem 1.25rem 1rem",borderRadius:"{content.border.radius}"},Pne={background:"{content.background}",hoverBackground:"{content.hover.background}",borderColor:"{content.border.color}",color:"{text.muted.color}",hoverColor:"{text.color}",size:"1.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Ane={color:"{content.border.color}",borderRadius:"{content.border.radius}",height:"24px"},d1={root:One,node:Rne,nodeToggleButton:Pne,connector:Ane};var Nne={outline:{width:"2px",color:"{content.background}"}},u1={root:Nne};var Fne={padding:"0.5rem 1rem",gap:"0.25rem",borderRadius:"{content.border.radius}",background:"{content.background}",color:"{content.color}",transitionDuration:"{transition.duration}"},Lne={background:"transparent",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}",width:"2.5rem",height:"2.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Bne={color:"{text.muted.color}"},Vne={maxWidth:"2.5rem"},p1={root:Fne,navButton:Lne,currentPageReport:Bne,jumpToPageInput:Vne};var jne={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},zne={background:"transparent",color:"{text.color}",padding:"1.125rem",borderColor:"{content.border.color}",borderWidth:"0",borderRadius:"0"},Hne={padding:"0.375rem 1.125rem"},$ne={fontWeight:"600"},Une={padding:"0 1.125rem 1.125rem 1.125rem"},Wne={padding:"0 1.125rem 1.125rem 1.125rem"},f1={root:jne,header:zne,toggleableHeader:Hne,title:$ne,content:Une,footer:Wne};var Gne={gap:"0.5rem",transitionDuration:"{transition.duration}"},qne={background:"{content.background}",borderColor:"{content.border.color}",borderWidth:"1px",color:"{content.color}",padding:"0.25rem 0.25rem",borderRadius:"{content.border.radius}",first:{borderWidth:"1px",topBorderRadius:"{content.border.radius}"},last:{borderWidth:"1px",bottomBorderRadius:"{content.border.radius}"}},Qne={focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",gap:"0.5rem",padding:"{navigation.item.padding}",borderRadius:"{content.border.radius}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},Kne={indent:"1rem"},Yne={color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}"},h1={root:Gne,panel:qne,item:Qne,submenu:Kne,submenuIcon:Yne};var Zne={background:"{content.border.color}",borderRadius:"{content.border.radius}",height:".75rem"},Jne={color:"{form.field.icon.color}"},Xne={background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",padding:"{overlay.popover.padding}",shadow:"{overlay.popover.shadow}"},ere={gap:"0.5rem"},tre={light:{strength:{weakBackground:"{red.500}",mediumBackground:"{amber.500}",strongBackground:"{green.500}"}},dark:{strength:{weakBackground:"{red.400}",mediumBackground:"{amber.400}",strongBackground:"{green.400}"}}},m1={meter:Zne,icon:Jne,overlay:Xne,content:ere,colorScheme:tre};var nre={gap:"1.125rem"},rre={gap:"0.5rem"},g1={root:nre,controls:rre};var ire={background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},ore={padding:"{overlay.popover.padding}"},y1={root:ire,content:ore};var sre={background:"{content.border.color}",borderRadius:"{content.border.radius}",height:"1.25rem"},are={background:"{primary.color}"},lre={color:"{primary.contrast.color}",fontSize:"0.75rem",fontWeight:"600"},b1={root:sre,value:are,label:lre};var cre={light:{root:{colorOne:"{red.500}",colorTwo:"{blue.500}",colorThree:"{green.500}",colorFour:"{yellow.500}"}},dark:{root:{colorOne:"{red.400}",colorTwo:"{blue.400}",colorThree:"{green.400}",colorFour:"{yellow.400}"}}},v1={colorScheme:cre};var dre={width:"1.25rem",height:"1.25rem",background:"{form.field.background}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.hover.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}},ure={size:"0.75rem",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"0.5rem"},lg:{size:"1rem"}},_1={root:dre,icon:ure};var pre={gap:"0.25rem",transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},fre={size:"1rem",color:"{text.muted.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"},w1={root:pre,icon:fre};var hre={light:{root:{background:"rgba(0,0,0,0.1)"}},dark:{root:{background:"rgba(255,255,255,0.3)"}}},C1={colorScheme:hre};var mre={transitionDuration:"{transition.duration}"},gre={size:"9px",borderRadius:"{border.radius.sm}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},yre={light:{bar:{background:"{surface.100}"}},dark:{bar:{background:"{surface.800}"}}},x1={root:mre,bar:gre,colorScheme:yre};var bre={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},vre={width:"2.5rem",color:"{form.field.icon.color}"},_re={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},wre={padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},Cre={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},xre={background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},Tre={color:"{form.field.icon.color}"},Ere={color:"{list.option.color}",gutterStart:"-0.375rem",gutterEnd:"0.375rem"},Sre={padding:"{list.option.padding}"},T1={root:bre,dropdown:vre,overlay:_re,list:wre,option:Cre,optionGroup:xre,clearIcon:Tre,checkmark:Ere,emptyMessage:Sre};var Ire={borderRadius:"{form.field.border.radius}"},Dre={light:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}},dark:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}}},E1={root:Ire,colorScheme:Dre};var kre={borderRadius:"{content.border.radius}"},Mre={light:{root:{background:"{surface.200}",animationBackground:"rgba(255,255,255,0.4)"}},dark:{root:{background:"rgba(255, 255, 255, 0.06)",animationBackground:"rgba(255, 255, 255, 0.04)"}}},S1={root:kre,colorScheme:Mre};var Ore={transitionDuration:"{transition.duration}"},Rre={background:"{content.border.color}",borderRadius:"{content.border.radius}",size:"3px"},Pre={background:"{primary.color}"},Are={width:"20px",height:"20px",borderRadius:"50%",background:"{content.border.color}",hoverBackground:"{content.border.color}",content:{borderRadius:"50%",hoverBackground:"{content.background}",width:"16px",height:"16px",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.08), 0px 1px 1px 0px rgba(0, 0, 0, 0.14)"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Nre={light:{handle:{content:{background:"{surface.0}"}}},dark:{handle:{content:{background:"{surface.950}"}}}},I1={root:Ore,track:Rre,range:Pre,handle:Are,colorScheme:Nre};var Fre={gap:"0.5rem",transitionDuration:"{transition.duration}"},D1={root:Fre};var Lre={borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",raisedShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)"},k1={root:Lre};var Bre={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",transitionDuration:"{transition.duration}"},Vre={background:"{content.border.color}"},jre={size:"24px",background:"transparent",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},M1={root:Bre,gutter:Vre,handle:jre};var zre={transitionDuration:"{transition.duration}"},Hre={background:"{content.border.color}",activeBackground:"{primary.color}",margin:"0 0 0 1.625rem",size:"2px"},$re={padding:"0.5rem",gap:"1rem"},Ure={padding:"0",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},Wre={color:"{text.muted.color}",activeColor:"{primary.color}",fontWeight:"500"},Gre={background:"{content.background}",activeBackground:"{content.background}",borderColor:"{content.border.color}",activeBorderColor:"{content.border.color}",color:"{text.muted.color}",activeColor:"{primary.color}",size:"2rem",fontSize:"1.143rem",fontWeight:"500",borderRadius:"50%",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"},qre={padding:"0.875rem 0.5rem 1.125rem 0.5rem"},Qre={background:"{content.background}",color:"{content.color}",padding:"0",indent:"1rem"},O1={root:zre,separator:Hre,step:$re,stepHeader:Ure,stepTitle:Wre,stepNumber:Gre,steppanels:qre,steppanel:Qre};var Kre={transitionDuration:"{transition.duration}"},Yre={background:"{content.border.color}"},Zre={borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},Jre={color:"{text.muted.color}",activeColor:"{primary.color}",fontWeight:"500"},Xre={background:"{content.background}",activeBackground:"{content.background}",borderColor:"{content.border.color}",activeBorderColor:"{content.border.color}",color:"{text.muted.color}",activeColor:"{primary.color}",size:"2rem",fontSize:"1.143rem",fontWeight:"500",borderRadius:"50%",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"},R1={root:Kre,separator:Yre,itemLink:Zre,itemLabel:Jre,itemNumber:Xre};var eie={transitionDuration:"{transition.duration}"},tie={borderWidth:"0 0 1px 0",background:"{content.background}",borderColor:"{content.border.color}"},nie={background:"transparent",hoverBackground:"transparent",activeBackground:"transparent",borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",hoverBorderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.125rem",fontWeight:"600",margin:"0 0 -1px 0",gap:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},rie={color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},iie={height:"1px",bottom:"-1px",background:"{primary.color}"},P1={root:eie,tablist:tie,item:nie,itemIcon:rie,activeBar:iie};var oie={transitionDuration:"{transition.duration}"},sie={borderWidth:"0 0 1px 0",background:"{content.background}",borderColor:"{content.border.color}"},aie={background:"transparent",hoverBackground:"transparent",activeBackground:"transparent",borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",hoverBorderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.125rem",fontWeight:"600",margin:"0 0 -1px 0",gap:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},lie={background:"{content.background}",color:"{content.color}",padding:"0.875rem 1.125rem 1.125rem 1.125rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},cie={background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",width:"2.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},die={height:"1px",bottom:"-1px",background:"{primary.color}"},uie={light:{navButton:{shadow:"0px 0px 10px 50px rgba(255, 255, 255, 0.6)"}},dark:{navButton:{shadow:"0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)"}}},A1={root:oie,tablist:sie,tab:aie,tabpanel:lie,navButton:cie,activeBar:die,colorScheme:uie};var pie={transitionDuration:"{transition.duration}"},fie={background:"{content.background}",borderColor:"{content.border.color}"},hie={borderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},mie={background:"{content.background}",color:"{content.color}"},gie={background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}"},yie={light:{navButton:{shadow:"0px 0px 10px 50px rgba(255, 255, 255, 0.6)"}},dark:{navButton:{shadow:"0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)"}}},N1={root:pie,tabList:fie,tab:hie,tabPanel:mie,navButton:gie,colorScheme:yie};var bie={fontSize:"0.875rem",fontWeight:"700",padding:"0.25rem 0.5rem",gap:"0.25rem",borderRadius:"{content.border.radius}",roundedBorderRadius:"{border.radius.xl}"},vie={size:"0.75rem"},_ie={light:{primary:{background:"{primary.100}",color:"{primary.700}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.100}",color:"{green.700}"},info:{background:"{sky.100}",color:"{sky.700}"},warn:{background:"{orange.100}",color:"{orange.700}"},danger:{background:"{red.100}",color:"{red.700}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"color-mix(in srgb, {primary.500}, transparent 84%)",color:"{primary.300}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",color:"{green.300}"},info:{background:"color-mix(in srgb, {sky.500}, transparent 84%)",color:"{sky.300}"},warn:{background:"color-mix(in srgb, {orange.500}, transparent 84%)",color:"{orange.300}"},danger:{background:"color-mix(in srgb, {red.500}, transparent 84%)",color:"{red.300}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}},F1={root:bie,icon:vie,colorScheme:_ie};var wie={background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.color}",height:"18rem",padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{form.field.border.radius}"},Cie={gap:"0.25rem"},xie={margin:"2px 0"},L1={root:wie,prompt:Cie,commandResponse:xie};var Tie={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},B1={root:Tie};var Eie={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},Sie={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},Iie={focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},Die={mobileIndent:"1rem"},kie={size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},Mie={borderColor:"{content.border.color}"},V1={root:Eie,list:Sie,item:Iie,submenu:Die,submenuIcon:kie,separator:Mie};var Oie={minHeight:"5rem"},Rie={eventContent:{padding:"1rem 0"}},Pie={eventContent:{padding:"0 1rem"}},Aie={size:"1.125rem",borderRadius:"50%",borderWidth:"2px",background:"{content.background}",borderColor:"{content.border.color}",content:{borderRadius:"50%",size:"0.375rem",background:"{primary.color}",insetShadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"}},Nie={color:"{content.border.color}",size:"2px"},j1={event:Oie,horizontal:Rie,vertical:Pie,eventMarker:Aie,eventConnector:Nie};var Fie={width:"25rem",borderRadius:"{content.border.radius}",borderWidth:"1px",transitionDuration:"{transition.duration}"},Lie={size:"1.125rem"},Bie={padding:"{overlay.popover.padding}",gap:"0.5rem"},Vie={gap:"0.5rem"},jie={fontWeight:"500",fontSize:"1rem"},zie={fontWeight:"500",fontSize:"0.875rem"},Hie={width:"1.75rem",height:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},$ie={size:"1rem"},Uie={light:{root:{blur:"1.5px"},info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{blue.600}",shadow:"none"}}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{green.600}",shadow:"none"}}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{yellow.600}",shadow:"none"}}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{red.600}",shadow:"none"}}},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{surface.600}",shadow:"none"}}},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{surface.50}",shadow:"none"}}}},dark:{root:{blur:"10px"},info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{blue.500}",shadow:"none"}}},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{green.500}",shadow:"none"}}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{yellow.500}",shadow:"none"}}},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{red.500}",shadow:"none"}}},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{surface.300}",shadow:"none"}}},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",detailColor:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{surface.950}",shadow:"none"}}}}},z1={root:Fie,icon:Lie,content:Bie,text:Vie,summary:jie,detail:zie,closeButton:Hie,closeIcon:$ie,colorScheme:Uie};var Wie={padding:"0.25rem",borderRadius:"{content.border.radius}",gap:"0.5rem",fontWeight:"500",disabledBackground:"{form.field.disabled.background}",disabledBorderColor:"{form.field.disabled.background}",disabledColor:"{form.field.disabled.color}",invalidBorderColor:"{form.field.invalid.border.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",padding:"0.25rem"},lg:{fontSize:"{form.field.lg.font.size}",padding:"0.25rem"}},Gie={disabledColor:"{form.field.disabled.color}"},qie={padding:"0.25rem 0.75rem",borderRadius:"{content.border.radius}",checkedShadow:"0px 1px 2px 0px rgba(0, 0, 0, 0.02), 0px 1px 2px 0px rgba(0, 0, 0, 0.04)",sm:{padding:"0.25rem 0.75rem"},lg:{padding:"0.25rem 0.75rem"}},Qie={light:{root:{background:"{surface.100}",checkedBackground:"{surface.100}",hoverBackground:"{surface.100}",borderColor:"{surface.100}",color:"{surface.500}",hoverColor:"{surface.700}",checkedColor:"{surface.900}",checkedBorderColor:"{surface.100}"},content:{checkedBackground:"{surface.0}"},icon:{color:"{surface.500}",hoverColor:"{surface.700}",checkedColor:"{surface.900}"}},dark:{root:{background:"{surface.950}",checkedBackground:"{surface.950}",hoverBackground:"{surface.950}",borderColor:"{surface.950}",color:"{surface.400}",hoverColor:"{surface.300}",checkedColor:"{surface.0}",checkedBorderColor:"{surface.950}"},content:{checkedBackground:"{surface.800}"},icon:{color:"{surface.400}",hoverColor:"{surface.300}",checkedColor:"{surface.0}"}}},H1={root:Wie,icon:Gie,content:qie,colorScheme:Qie};var Kie={width:"2.5rem",height:"1.5rem",borderRadius:"30px",gap:"0.25rem",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},borderWidth:"1px",borderColor:"transparent",hoverBorderColor:"transparent",checkedBorderColor:"transparent",checkedHoverBorderColor:"transparent",invalidBorderColor:"{form.field.invalid.border.color}",transitionDuration:"{form.field.transition.duration}",slideDuration:"0.2s"},Yie={borderRadius:"50%",size:"1rem"},Zie={light:{root:{background:"{surface.300}",disabledBackground:"{form.field.disabled.background}",hoverBackground:"{surface.400}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}"},handle:{background:"{surface.0}",disabledBackground:"{form.field.disabled.color}",hoverBackground:"{surface.0}",checkedBackground:"{surface.0}",checkedHoverBackground:"{surface.0}",color:"{text.muted.color}",hoverColor:"{text.color}",checkedColor:"{primary.color}",checkedHoverColor:"{primary.hover.color}"}},dark:{root:{background:"{surface.700}",disabledBackground:"{surface.600}",hoverBackground:"{surface.600}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}"},handle:{background:"{surface.400}",disabledBackground:"{surface.900}",hoverBackground:"{surface.300}",checkedBackground:"{surface.900}",checkedHoverBackground:"{surface.900}",color:"{surface.900}",hoverColor:"{surface.800}",checkedColor:"{primary.color}",checkedHoverColor:"{primary.hover.color}"}}},$1={root:Kie,handle:Yie,colorScheme:Zie};var Jie={background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",padding:"0.75rem"},U1={root:Jie};var Xie={maxWidth:"12.5rem",gutter:"0.25rem",shadow:"{overlay.popover.shadow}",padding:"0.5rem 0.75rem",borderRadius:"{overlay.popover.border.radius}"},eoe={light:{root:{background:"{surface.700}",color:"{surface.0}"}},dark:{root:{background:"{surface.700}",color:"{surface.0}"}}},W1={root:Xie,colorScheme:eoe};var toe={background:"{content.background}",color:"{content.color}",padding:"1rem",gap:"2px",indent:"1rem",transitionDuration:"{transition.duration}"},noe={padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.color}",hoverColor:"{text.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"},gap:"0.25rem"},roe={color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}"},ioe={borderRadius:"50%",size:"1.75rem",hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedHoverColor:"{primary.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},ooe={size:"2rem"},soe={margin:"0 0 0.5rem 0"},G1={root:toe,node:noe,nodeIcon:roe,nodeToggleButton:ioe,loadingIcon:ooe,filter:soe};var aoe={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},loe={width:"2.5rem",color:"{form.field.icon.color}"},coe={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},doe={padding:"{list.padding}"},uoe={padding:"{list.option.padding}"},poe={borderRadius:"{border.radius.sm}"},foe={color:"{form.field.icon.color}"},q1={root:aoe,dropdown:loe,overlay:coe,tree:doe,emptyMessage:uoe,chip:poe,clearIcon:foe};var hoe={transitionDuration:"{transition.duration}"},moe={background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},goe={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{treetable.border.color}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},yoe={fontWeight:"600"},boe={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},voe={borderColor:"{treetable.border.color}",padding:"0.75rem 1rem",gap:"0.5rem"},_oe={background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",padding:"0.75rem 1rem"},woe={fontWeight:"600"},Coe={background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},xoe={width:"0.5rem"},Toe={width:"1px",color:"{primary.color}"},Eoe={color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},Soe={size:"2rem"},Ioe={hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Doe={borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},koe={borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},Moe={light:{root:{borderColor:"{content.border.color}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},bodyCell:{selectedBorderColor:"{primary.900}"}}},Q1={root:hoe,header:moe,headerCell:goe,columnTitle:yoe,row:boe,bodyCell:voe,footerCell:_oe,columnFooter:woe,footer:Coe,columnResizer:xoe,resizeIndicator:Toe,sortIcon:Eoe,loadingIcon:Soe,nodeToggleButton:Ioe,paginatorTop:Doe,paginatorBottom:koe,colorScheme:Moe};var Ooe={mask:{background:"{content.background}",color:"{text.muted.color}"},icon:{size:"2rem"}},K1={loader:Ooe};var fA=A(_({},vC),{components:{accordion:mC,autocomplete:gC,avatar:yC,badge:bC,blockui:_C,breadcrumb:wC,button:CC,datepicker:AC,card:xC,carousel:TC,cascadeselect:EC,checkbox:SC,chip:IC,colorpicker:DC,confirmdialog:kC,confirmpopup:MC,contextmenu:OC,dataview:PC,datatable:RC,dialog:NC,divider:FC,dock:LC,drawer:BC,editor:VC,fieldset:jC,fileupload:zC,iftalabel:WC,floatlabel:HC,galleria:$C,iconfield:UC,image:GC,imagecompare:qC,inlinemessage:QC,inplace:KC,inputchips:YC,inputgroup:ZC,inputnumber:JC,inputotp:XC,inputtext:e1,knob:t1,listbox:n1,megamenu:r1,menu:i1,menubar:o1,message:s1,metergroup:a1,multiselect:l1,orderlist:c1,organizationchart:d1,overlaybadge:u1,popover:y1,paginator:p1,password:m1,panel:f1,panelmenu:h1,picklist:g1,progressbar:b1,progressspinner:v1,radiobutton:_1,rating:w1,ripple:C1,scrollpanel:x1,select:T1,selectbutton:E1,skeleton:S1,slider:I1,speeddial:D1,splitter:M1,splitbutton:k1,stepper:O1,steps:R1,tabmenu:P1,tabs:A1,tabview:N1,textarea:B1,tieredmenu:V1,tag:F1,terminal:L1,timeline:j1,togglebutton:H1,toggleswitch:$1,tree:G1,treeselect:q1,treetable:Q1,toast:z1,toolbar:U1,tooltip:W1,virtualscroller:K1}});var Roe=Object.defineProperty,hA=Object.getOwnPropertySymbols,Poe=Object.prototype.hasOwnProperty,Aoe=Object.prototype.propertyIsEnumerable,Cs=(t,n)=>Roe(t,"name",{value:n,configurable:!0}),Noe=(t,n)=>{var e={};for(var r in t)Poe.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&hA)for(var r of hA(t))n.indexOf(r)<0&&Aoe.call(t,r)&&(e[r]=t[r]);return e};function Y1(t,n,e){return av(e).then(r=>{let i=mP(t,{injector:r.injector});return customElements.define(n,i),r}).catch(r=>(console.error(r),null))}Cs(Y1,"bootstrapPhoenixPluginCustomElement");function mA(t){var n;let e=window.location.pathname.replace(/\/$/,"")||"/",r=(n=t?.stripTrailingSegments)!=null?n:[];for(let i of r){if(!i||i.includes("/"))continue;let o=`/${i}`;e.endsWith(o)&&(e=e.slice(0,-o.length)||"/")}return e!=="/"&&!e.endsWith("/")?`${e}/`:e}Cs(mA,"pluginAppBaseHref");function gA(t){return{provide:rh,useFactory:Cs(()=>mA(t),"useFactory")}}Cs(gA,"providePluginAppBaseHref");function yA(){return vl(()=>{let t=x(Vn),n=x(Jt);pd(()=>{t.initialNavigation()},{injector:n})})}Cs(yA,"providePhoenixPluginRouterInitialNavigation");function bA(t){return[gA(t),yA()]}Cs(bA,"providePhoenixPlugin");function Z1(t,n){return Lt(()=>{let e=n();e!==void 0&&t.setHostInjector(e)})}Cs(Z1,"syncPhoenixHostInjector");var Foe=kk(fA,{semantic:{primary:{50:"{blue.50}",100:"{blue.100}",200:"{blue.200}",300:"{blue.300}",400:"{blue.400}",500:"{blue.500}",600:"{blue.600}",700:"{blue.700}",800:"{blue.800}",900:"{blue.900}",950:"{blue.950}"}}}),Loe={ripple:!0,theme:{options:{prefix:"p",darkModeSelector:".dark"},preset:Foe}};function J1(t){let n=t??{},{primeNG:e}=n,r=Noe(n,["primeNG"]);return[pA(),Lk(e??Loe),...bA(r)]}Cs(J1,"providePhoenixPluginWithPrimeNG");var Eg=class extends jn{constructor(n){super((e,r)=>{let i=Et(e,[]);return Object.defineProperty(i,"client",{enumerable:!1,value:e.client}),new pe(o=>{let s=!1;return Promise.resolve(i).then(a=>n(e.getContext(),a)).then(e.setContext).then(()=>{s||r(e).subscribe(o)}).catch(o.error.bind(o)),()=>{s=!0}})})}};function Boe(t){return Ct(t)&&"code"in t&&"reason"in t}function Voe(t){return Ct(t)&&t.target?.readyState===WebSocket.CLOSED}var Sg=class extends jn{client;constructor(n){super(),this.client=n}request(n){return new pe(e=>{let{query:r,variables:i,operationName:o,extensions:s}=n;return this.client.subscribe({variables:i,operationName:o,extensions:s,query:Ki(r)},{next:e.next.bind(e),complete:e.complete.bind(e),error:a=>{if(a instanceof Error)return e.error(a);let l=Boe(a);return l||Voe(a)?e.error(new Error(`Socket closed${l?` with event ${a.code}`:""}${l?` ${a.reason}`:""}`)):e.error(new Ro({errors:Array.isArray(a)?a:[a]}))}})})}};var joe=(t,n,e)=>{let r=["POST","PUT","PATCH"].indexOf(t.method.toUpperCase())!==-1,i=c=>["variables","extensions"].indexOf(c.toLowerCase())!==-1,o=t.body.length,s=t.options&&t.options.useMultipart,a;if(s){if(o)return new pe(c=>c.error(new Error("File upload is not available when combined with Batching")));if(!r)return new pe(c=>c.error(new Error("File upload is not available when GET is used")));if(!e)return new pe(c=>c.error(new Error(`To use File upload you need to pass "extractFiles" function from "extract-files" library to HttpLink's options`)));a=e(t.body),s=!!a.files.size}let l={};if(o){if(!r)return new pe(c=>c.error(new Error("Batching is not available for GET requests")));l={body:t.body}}else{let c=s?a.clone:t.body;r?l={body:c}:l={params:Object.keys(t.body).reduce((u,p)=>{let f=t.body[p];return u[p]=i(p)?JSON.stringify(f):f,u},{})}}if(s&&r){let c=new FormData;c.append("operations",JSON.stringify(l.body));let d={},u=a.files,p=0;u.forEach(f=>{d[++p]=f}),c.append("map",JSON.stringify(d)),p=0,u.forEach((f,y)=>{c.append(++p+"",y,y.name)}),l.body=c}return n.request(t.method,t.url,_(_({observe:"response",responseType:"json",reportProgress:!1},l),t.options))},zoe=t=>t instanceof ti?t:new ti(t);var Hoe=(t,n)=>t&&n?n.keys().reduce((e,r)=>e.set(r,n.getAll(r)),t):n||t,vA=(t,n)=>t&&n?[...t.keys()].reduce((e,r)=>e.set(r,t.get(r)),n):n||t;function $oe(...t){return t.find(n=>typeof n<"u")}function Uoe(t){let n=zoe(t.headers);if(t.clientAwareness){let{name:e,version:r}=t.clientAwareness;e&&!n.has("apollographql-client-name")&&(n=n.set("apollographql-client-name",e)),r&&!n.has("apollographql-client-version")&&(n=n.set("apollographql-client-version",r))}return n}var Woe={batchInterval:10,batchMax:10,uri:"graphql",method:"POST",withCredentials:!1,includeQuery:!0,includeExtensions:!1,useMultipart:!1};function Sc(t,n,e){return $oe(t[e],n[e],Woe[e])}function Goe(t){let n={status:t.status,statusText:t.statusText,ok:t.ok,url:t.url||"",headers:new Headers,type:"error",redirected:!1};t.headers.keys().forEach(r=>{let i=t.headers.getAll(r);i&&i.forEach(o=>n.headers.append(r,o))});let e=typeof t.error=="string"?t.error:JSON.stringify(t.error||{});return t.status>=300?new Su(`Response not successful: Received status code ${t.status}`,{response:n,bodyText:e}):new Error(t.message)}var X1=class extends jn{httpClient;options;requester;print=tc;constructor(n,e){super(),this.httpClient=n,this.options=e,this.options.operationPrinter&&(this.print=this.options.operationPrinter),this.requester=r=>new pe(i=>{let o=r.getContext(),s=Sc(o,this.options,"method"),a=Sc(o,this.options,"includeQuery"),l=Sc(o,this.options,"includeExtensions"),c=Sc(o,this.options,"uri"),d=Sc(o,this.options,"withCredentials"),u=Sc(o,this.options,"useMultipart"),p=this.options.useGETForQueries===!0,f=vA(o.httpContext,vA(this.options.httpContext,new Sl)),y=r.query.definitions.some(D=>D.kind==="OperationDefinition"&&D.operation==="query");p&&y&&(s="GET");let b=Hoe(this.options.headers,Uoe(o)),v={method:s,url:typeof c=="function"?c(r):c,body:{operationName:r.operationName,variables:r.variables},options:{withCredentials:d,useMultipart:u,headers:b,context:f}};l&&(v.body.extensions=r.extensions),a&&(v.body.query=this.print(r.query));let w=joe(v,this.httpClient,this.options.extractFiles).subscribe({next:D=>{r.setContext({response:D}),i.next(D.body)},error:D=>{D instanceof is?i.error(Goe(D)):i.error(D)},complete:()=>i.complete()});return()=>{w.closed||w.unsubscribe()}})}request(n){return this.requester(n)}},_A=(()=>{class t{httpClient;constructor(e){this.httpClient=e}create(e){return new X1(this.httpClient,e)}static \u0275fac=function(r){return new(r||t)(me(hh))};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function cr(t){return t===null?"null":Array.isArray(t)?"array":typeof t}function xs(t){return cr(t)==="object"}function qoe(t){return Array.isArray(t)&&t.length>0&&t.every(n=>"message"in n)}function ex(t,n){return t.length<124?t:n}var wA="graphql-transport-ws";var br=(t=>(t[t.InternalServerError=4500]="InternalServerError",t[t.InternalClientError=4005]="InternalClientError",t[t.BadRequest=4400]="BadRequest",t[t.BadResponse=4004]="BadResponse",t[t.Unauthorized=4401]="Unauthorized",t[t.Forbidden=4403]="Forbidden",t[t.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",t[t.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",t[t.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",t[t.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",t[t.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",t))(br||{}),vr=(t=>(t.ConnectionInit="connection_init",t.ConnectionAck="connection_ack",t.Ping="ping",t.Pong="pong",t.Subscribe="subscribe",t.Next="next",t.Error="error",t.Complete="complete",t))(vr||{});function CA(t){if(!xs(t))throw new Error(`Message is expected to be an object, but got ${cr(t)}`);if(!t.type)throw new Error("Message is missing the 'type' property");if(typeof t.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${cr(t.type)}`);switch(t.type){case"connection_init":case"connection_ack":case"ping":case"pong":{if(t.payload!=null&&!xs(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${t.payload}"`);break}case"subscribe":{if(typeof t.id!="string")throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${cr(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);if(!xs(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an object, but got ${cr(t.payload)}`);if(typeof t.payload.query!="string")throw new Error(`"${t.type}" message payload expects the 'query' property to be a string, but got ${cr(t.payload.query)}`);if(t.payload.variables!=null&&!xs(t.payload.variables))throw new Error(`"${t.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${cr(t.payload.variables)}`);if(t.payload.operationName!=null&&cr(t.payload.operationName)!=="string")throw new Error(`"${t.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${cr(t.payload.operationName)}`);if(t.payload.extensions!=null&&!xs(t.payload.extensions))throw new Error(`"${t.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${cr(t.payload.extensions)}`);break}case"next":{if(typeof t.id!="string")throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${cr(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);if(!xs(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an object, but got ${cr(t.payload)}`);break}case"error":{if(typeof t.id!="string")throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${cr(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);if(!qoe(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(t.payload)}`);break}case"complete":{if(typeof t.id!="string")throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${cr(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${t.type}"`)}return t}function xA(t,n){return CA(typeof t=="string"?JSON.parse(t,n):t)}function Ic(t,n){return CA(t),JSON.stringify(t,n)}function nx(t){let{url:n,connectionParams:e,lazy:r=!0,onNonLazyError:i=console.error,lazyCloseTimeout:o=0,keepAlive:s=0,disablePong:a,connectionAckWaitTimeout:l=0,retryAttempts:c=5,retryWait:d=function(Z){return pt(this,null,function*(){let K=Math.pow(2,Z);yield new Promise(ee=>setTimeout(ee,K*1e3+Math.floor(Math.random()*2700+300)))})},shouldRetry:u=tx,on:p,webSocketImpl:f,generateID:y=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,Z=>{let K=Math.random()*16|0;return(Z=="x"?K:K&3|8).toString(16)})},jsonMessageReplacer:b,jsonMessageReviver:v}=t,w;if(f){if(!Koe(f))throw new Error("Invalid WebSocket implementation provided");w=f}else typeof WebSocket<"u"?w=WebSocket:typeof global<"u"?w=global.WebSocket||global.MozWebSocket:typeof window<"u"&&(w=window.WebSocket||window.MozWebSocket);if(!w)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");let D=w,P=(()=>{let je=(()=>{let K={};return{on(ee,he){return K[ee]=he,()=>{delete K[ee]}},emit(ee){"id"in ee&&K[ee.id]?.(ee)}}})(),Z={connecting:p?.connecting?[p.connecting]:[],opened:p?.opened?[p.opened]:[],connected:p?.connected?[p.connected]:[],ping:p?.ping?[p.ping]:[],pong:p?.pong?[p.pong]:[],message:p?.message?[je.emit,p.message]:[je.emit],closed:p?.closed?[p.closed]:[],error:p?.error?[p.error]:[]};return{onMessage:je.on,on(K,ee){let he=Z[K];return he.push(ee),()=>{he.splice(he.indexOf(ee),1)}},emit(K,...ee){for(let he of[...Z[K]])he(...ee)}}})();function B(je){let Z=[P.on("error",K=>{Z.forEach(ee=>ee()),je(K)}),P.on("closed",K=>{Z.forEach(ee=>ee()),je(K)})]}let Y,ye=0,Xe,tt=!1,vt=0,tn=!1;function gi(){return pt(this,null,function*(){clearTimeout(Xe);let[je,Z]=yield Y??(Y=new Promise((he,Ye)=>pt(null,null,function*(){if(tt){if(yield d(vt),!ye)return Y=void 0,Ye({code:1e3,reason:"All Subscriptions Gone"});vt++}P.emit("connecting",tt);let Fe=new D(typeof n=="function"?yield n():n,wA),Rt,Sn;function ht(){isFinite(s)&&s>0&&(clearTimeout(Sn),Sn=setTimeout(()=>{Fe.readyState===D.OPEN&&(Fe.send(Ic({type:vr.Ping})),P.emit("ping",!1,void 0))},s))}B(Zt=>{Y=void 0,clearTimeout(Rt),clearTimeout(Sn),Ye(Zt),Zt instanceof qu&&(Fe.close(4499,"Terminated"),Fe.onerror=null,Fe.onclose=null)}),Fe.onerror=Zt=>P.emit("error",Zt),Fe.onclose=Zt=>P.emit("closed",Zt),Fe.onopen=()=>pt(null,null,function*(){try{P.emit("opened",Fe);let Zt=typeof e=="function"?yield e():e;if(Fe.readyState!==D.OPEN)return;Fe.send(Ic(Zt?{type:vr.ConnectionInit,payload:Zt}:{type:vr.ConnectionInit},b)),isFinite(l)&&l>0&&(Rt=setTimeout(()=>{Fe.close(br.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},l)),ht()}catch(Zt){P.emit("error",Zt),Fe.close(br.InternalClientError,ex(Zt instanceof Error?Zt.message:String(Zt),"Internal client error"))}});let wr=!1;Fe.onmessage=({data:Zt})=>{try{let nt=xA(Zt,v);if(P.emit("message",nt),nt.type==="ping"||nt.type==="pong"){P.emit(nt.type,!0,nt.payload),nt.type==="pong"?ht():a||(Fe.send(Ic(nt.payload?{type:vr.Pong,payload:nt.payload}:{type:vr.Pong})),P.emit("pong",!1,nt.payload));return}if(wr)return;if(nt.type!==vr.ConnectionAck)throw new Error(`First message cannot be of type ${nt.type}`);clearTimeout(Rt),wr=!0,P.emit("connected",Fe,nt.payload,tt),tt=!1,vt=0,he([Fe,new Promise((yi,Fn)=>B(Fn))])}catch(nt){Fe.onmessage=null,P.emit("error",nt),Fe.close(br.BadResponse,ex(nt instanceof Error?nt.message:String(nt),"Bad response"))}}})));je.readyState===D.CLOSING&&(yield Z);let K=()=>{},ee=new Promise(he=>K=he);return[je,K,Promise.race([ee.then(()=>{if(!ye){let he=()=>je.close(1e3,"Normal Closure");isFinite(o)&&o>0?Xe=setTimeout(()=>{je.readyState===D.OPEN&&he()},o):he()}}),Z])]})}function zn(je){if(tx(je)&&(Qoe(je.code)||[br.InternalServerError,br.InternalClientError,br.BadRequest,br.BadResponse,br.Unauthorized,br.SubprotocolNotAcceptable,br.SubscriberAlreadyExists,br.TooManyInitialisationRequests].includes(je.code)))throw je;if(tn)return!1;if(tx(je)&&je.code===1e3)return ye>0;if(!c||vt>=c||!u(je))throw je;return tt=!0}r||pt(null,null,function*(){for(ye++;;)try{let[,,je]=yield gi();yield je}catch(je){try{if(!zn(je))return}catch(Z){return i?.(Z)}}});function _r(je,Z){let K=y(je),ee=!1,he=!1,Ye=()=>{ye--,ee=!0};return pt(null,null,function*(){for(ye++;;)try{let[Fe,Rt,Sn]=yield gi();if(ee)return Rt();let ht=P.onMessage(K,wr=>{switch(wr.type){case vr.Next:{Z.next(wr.payload);return}case vr.Error:{he=!0,ee=!0,Z.error(wr.payload),Ye();return}case vr.Complete:{ee=!0,Ye();return}}});Fe.send(Ic({id:K,type:vr.Subscribe,payload:je},b)),Ye=()=>{!ee&&Fe.readyState===D.OPEN&&Fe.send(Ic({id:K,type:vr.Complete},b)),ye--,ee=!0,Rt()},yield Sn.finally(ht);return}catch(Fe){if(!zn(Fe))return}}).then(()=>{he||Z.complete()}).catch(Fe=>{Z.error(Fe)}),()=>{ee||Ye()}}return{on:P.on,subscribe:_r,iterate(je){let Z=[],K={done:!1,error:null,resolve:()=>{}},ee=_r(je,{next(Ye){Z.push(Ye),K.resolve()},error(Ye){K.done=!0,K.error=Ye,K.resolve()},complete(){K.done=!0,K.resolve()}}),he=(function(){return sx(this,null,function*(){for(;;){for(Z.length||(yield new Ig(new Promise(Fe=>K.resolve=Fe)));Z.length;)yield Z.shift();if(K.error)throw K.error;if(K.done)return}})})();return he.throw=Ye=>pt(null,null,function*(){return K.done||(K.done=!0,K.error=Ye,K.resolve()),{done:!0,value:void 0}}),he.return=()=>pt(null,null,function*(){return ee(),{done:!0,value:void 0}}),he},dispose(){return pt(this,null,function*(){if(tn=!0,Y){let[je]=yield Y;je.close(1e3,"Normal Closure")}})},terminate(){Y&&P.emit("closed",new qu)}}}var qu=class extends Error{name="TerminatedCloseEvent";message="4499: Terminated";code=4499;reason="Terminated";wasClean=!1};function tx(t){return xs(t)&&"code"in t&&"reason"in t}function Qoe(t){return[1e3,1001,1006,1005,1012,1013,1014].includes(t)?!1:t>=1e3&&t<=1999}function Koe(t){return typeof t=="function"&&"constructor"in t&&"CLOSED"in t&&"CLOSING"in t&&"CONNECTING"in t&&"OPEN"in t}function Yoe(t){if(!Gt.apiUrl||!Gt.wsUrl){console.error("API URL or WS URL is not set");return}let n=t.create({uri:Gt.apiUrl}),e=new Eg((a,l)=>pt(null,null,function*(){let c=Gt.apiKey??localStorage.getItem("api-key");return c?A(_({},a),{headers:A(_({},a.headers),{authorization:`Bearer ${c}`})}):a})),r=new Sg(nx({url:Gt.wsUrl,connectionParams:()=>{let a=Gt.apiKey??localStorage.getItem("api-key");return{context:{authorization:a?`Bearer ${a}`:""}}}})),i=pm(({query:a})=>{let l=us(a);return l.kind==="OperationDefinition"&&l.operation==="subscription"},r,e.concat(n));return{link:new jn((a,l)=>l(a).pipe(be(c=>{let u=a.getContext().response?.headers.get("phoenix-auth-token");return u?.length&&(Gt.apiKey=u,localStorage.setItem("api-key",u)),c}))).concat(i),cache:new Ta,defaultOptions:{watchQuery:{fetchPolicy:"network-only"},query:{fetchPolicy:"network-only"},mutate:{fetchPolicy:"network-only"}}}}var TA=()=>[{provide:"API_URI",useValue:Gt.apiUrl},{provide:"WS_URI",useValue:Gt.wsUrl},Mm,{provide:lw,useFactory:Yoe,deps:[_A,"API_URI","WS_URI"]}];var EA={providers:[X0(),Nb({eventCoalescing:!0}),...J1({stripTrailingSegments:Nw.map(t=>t.path).filter(t=>(t?.length??0)>0)}),Av(Nw),dv(),...Gt.production?[]:[...TA(),{provide:Ma,useFactory:()=>new Ma}]]};var Qu=class t{hostBridge=x(Sa);pluginServices=ae({});hostInjector=ae(void 0);_syncHostInjector=Z1(this.hostBridge,this.hostInjector);_syncPluginServices=Lt(()=>{this.hostBridge.setPluginServices(this.pluginServices())});static \u0275fac=function(e){return new(e||t)};static \u0275cmp=$({type:t,selectors:[["app-root"]],inputs:{pluginServices:[1,"pluginServices"],hostInjector:[1,"hostInjector"]},decls:1,vars:0,template:function(e,r){e&1&&X(0,"router-outlet")},dependencies:[Gd],styles:['*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[_ngcontent-%COMP%]::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}[_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-content: ""}html[_ngcontent-%COMP%], [_nghost-%COMP%]{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body[_ngcontent-%COMP%]{margin:0;line-height:inherit}hr[_ngcontent-%COMP%]{height:0;color:inherit;border-top-width:1px}abbr[_ngcontent-%COMP%]:where([title]){text-decoration:underline dotted}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{font-size:inherit;font-weight:inherit}a[_ngcontent-%COMP%]{color:inherit;text-decoration:inherit}b[_ngcontent-%COMP%], strong[_ngcontent-%COMP%]{font-weight:bolder}code[_ngcontent-%COMP%], kbd[_ngcontent-%COMP%], samp[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small[_ngcontent-%COMP%]{font-size:80%}sub[_ngcontent-%COMP%], sup[_ngcontent-%COMP%]{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub[_ngcontent-%COMP%]{bottom:-.25em}sup[_ngcontent-%COMP%]{top:-.5em}table[_ngcontent-%COMP%]{text-indent:0;border-color:inherit;border-collapse:collapse}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%], optgroup[_ngcontent-%COMP%], select[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{text-transform:none}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%]:where([type=button]), input[_ngcontent-%COMP%]:where([type=reset]), input[_ngcontent-%COMP%]:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}[_ngcontent-%COMP%]:-moz-focusring{outline:auto}[_ngcontent-%COMP%]:-moz-ui-invalid{box-shadow:none}progress[_ngcontent-%COMP%]{vertical-align:baseline}[_ngcontent-%COMP%]::-webkit-inner-spin-button, [_ngcontent-%COMP%]::-webkit-outer-spin-button{height:auto}[type=search][_ngcontent-%COMP%]{-webkit-appearance:textfield;outline-offset:-2px}[_ngcontent-%COMP%]::-webkit-search-decoration{-webkit-appearance:none}[_ngcontent-%COMP%]::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary[_ngcontent-%COMP%]{display:list-item}blockquote[_ngcontent-%COMP%], dl[_ngcontent-%COMP%], dd[_ngcontent-%COMP%], h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%], hr[_ngcontent-%COMP%], figure[_ngcontent-%COMP%], p[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{margin:0}fieldset[_ngcontent-%COMP%]{margin:0;padding:0}legend[_ngcontent-%COMP%]{padding:0}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%], menu[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0}dialog[_ngcontent-%COMP%]{padding:0}textarea[_ngcontent-%COMP%]{resize:vertical}input[_ngcontent-%COMP%]::placeholder, textarea[_ngcontent-%COMP%]::placeholder{opacity:1;color:#9ca3af}button[_ngcontent-%COMP%], [role=button][_ngcontent-%COMP%]{cursor:pointer}[_ngcontent-%COMP%]:disabled{cursor:default}img[_ngcontent-%COMP%], svg[_ngcontent-%COMP%], video[_ngcontent-%COMP%], canvas[_ngcontent-%COMP%], audio[_ngcontent-%COMP%], iframe[_ngcontent-%COMP%], embed[_ngcontent-%COMP%], object[_ngcontent-%COMP%]{display:block;vertical-align:middle}img[_ngcontent-%COMP%], video[_ngcontent-%COMP%]{max-width:100%;height:auto}[hidden][_ngcontent-%COMP%]:where(:not([hidden=until-found])){display:none}.visible[_ngcontent-%COMP%]{visibility:visible}.absolute[_ngcontent-%COMP%]{position:absolute}.col-span-2[_ngcontent-%COMP%]{grid-column:span 2 / span 2}.mx-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.my-4[_ngcontent-%COMP%]{margin-top:1rem;margin-bottom:1rem}.mb-4[_ngcontent-%COMP%]{margin-bottom:1rem}.ml-auto[_ngcontent-%COMP%]{margin-left:auto}.mr-auto[_ngcontent-%COMP%]{margin-right:auto}.mt-4[_ngcontent-%COMP%]{margin-top:1rem}.line-clamp-2[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block[_ngcontent-%COMP%]{display:block}.flex[_ngcontent-%COMP%]{display:flex}.table[_ngcontent-%COMP%]{display:table}.grid[_ngcontent-%COMP%]{display:grid}.h-16[_ngcontent-%COMP%]{height:4rem}.h-32[_ngcontent-%COMP%]{height:8rem}.min-h-screen[_ngcontent-%COMP%]{min-height:100vh}.w-16[_ngcontent-%COMP%]{width:4rem}.w-32[_ngcontent-%COMP%]{width:8rem}.w-full[_ngcontent-%COMP%]{width:100%}.transform[_ngcontent-%COMP%]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.grid-cols-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col[_ngcontent-%COMP%]{flex-direction:column}.items-center[_ngcontent-%COMP%]{align-items:center}.justify-center[_ngcontent-%COMP%]{justify-content:center}.justify-between[_ngcontent-%COMP%]{justify-content:space-between}.gap-2[_ngcontent-%COMP%]{gap:.5rem}.gap-4[_ngcontent-%COMP%]{gap:1rem}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded[_ngcontent-%COMP%]{border-radius:.25rem}.rounded-2xl[_ngcontent-%COMP%]{border-radius:1rem}.rounded-lg[_ngcontent-%COMP%]{border-radius:.5rem}.border[_ngcontent-%COMP%]{border-width:1px}.border-2[_ngcontent-%COMP%]{border-width:2px}.bg-gray-100\\/50[_ngcontent-%COMP%]{background-color:#f3f4f680}.bg-red-500[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-white[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-1[_ngcontent-%COMP%]{padding:.25rem}.p-2[_ngcontent-%COMP%]{padding:.5rem}.p-4[_ngcontent-%COMP%]{padding:1rem}.p-8[_ngcontent-%COMP%]{padding:2rem}.pt-4[_ngcontent-%COMP%]{padding-top:1rem}.text-center[_ngcontent-%COMP%]{text-align:center}.text-2xl[_ngcontent-%COMP%]{font-size:1.5rem;line-height:2rem}.text-lg[_ngcontent-%COMP%]{font-size:1.125rem;line-height:1.75rem}.text-sm[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem}.font-bold[_ngcontent-%COMP%]{font-weight:700}.italic[_ngcontent-%COMP%]{font-style:italic}.text-blue-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-gray-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-white[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.drop-shadow[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-2xl[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 25px 25px rgb(0 0 0 / .15));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-lg[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / .04)) drop-shadow(0 4px 3px rgb(0 0 0 / .1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter[_ngcontent-%COMP%]{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.text-muted-color[_ngcontent-%COMP%]{color:var(--p-text-muted-color)}@keyframes _ngcontent-%COMP%_enter{0%{opacity:var(--p-enter-opacity, 1);transform:translate3d(var(--p-enter-translate-x, 0),var(--p-enter-translate-y, 0),0) scale3d(var(--p-enter-scale, 1),var(--p-enter-scale, 1),var(--p-enter-scale, 1)) rotate(var(--p-enter-rotate, 0))}}@keyframes _ngcontent-%COMP%_leave{to{opacity:var(--p-leave-opacity, 1);transform:translate3d(var(--p-leave-translate-x, 0),var(--p-leave-translate-y, 0),0) scale3d(var(--p-leave-scale, 1),var(--p-leave-scale, 1),var(--p-leave-scale, 1)) rotate(var(--p-leave-rotate, 0))}}.hover\\:text-blue-700[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.hover\\:underline[_ngcontent-%COMP%]:hover{text-decoration-line:underline}@media(min-width:640px){.sm\\:grid-cols-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}']})};Y1(Qu,"frontend-plugin-demo",EA).then(t=>Gt.production?t:t.bootstrap(Qu));