PageSourceSearch

https://sellerportal.naiya.ng/main-XS2VIG2R.js

js naiya.ng collected 2026-10-02 14:29:38 UTC 626,864 bytes, 10 lines download raw bytes

vendor: 9,773 bytes, lines 1-3
1var g$1=Object.defineProperty,j$6=Object.defineProperties;var k$4=Object.getOwnPropertyDescriptors;var e=Object.getOwnPropertySymbols;var h$1=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;var f$1=(a,b,c)=>b in a?g$1(a,b,{enumerable:true,configurable:true,writable:true,value:c}):a[b]=c,l$1=(a,b)=>{for(var c in b||={})h$1.call(b,c)&&f$1(a,c,b[c]);if(e)for(var c of e(b))i.call(b,c)&&f$1(a,c,b[c]);return a},m$2=(a,b)=>j$6(a,k$4(b));var n=(a,b)=>{var c={};for(var d in a)h$1.call(a,d)&&b.indexOf(d)<0&&(c[d]=a[d]);if(a!=null&&e)for(var d of e(a))b.indexOf(d)<0&&i.call(a,d)&&(c[d]=a[d]);return c};var o=(a,b)=>{for(var c in b)g$1(a,c,{get:b[c],enumerable:true});};function x$1(e){return typeof e=="function"}function kr$1(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack;});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var us$1=kr$1(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
2${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
3  `)}`:"",this.name="UnsubscriptionError",this.errors=n;});function zn(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1);}}var ie$3=class e{constructor(t){this.initialTeardown=t,this.closed=false,this._parentage=null,this._finalizers=null;}unsubscribe(){let t;if(!this.closed){this.closed=true;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(x$1(r))try{r();}catch(i){t=i instanceof us$1?i.errors:[i];}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Zh(i);}catch(s){t=t??[],s instanceof us$1?t=[...t,...s.errors]:t.push(s);}}if(t)throw new us$1(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Zh(t);else {if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this);}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t);}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t;}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&zn(n,t);}remove(t){let{_finalizers:n}=this;n&&zn(n,t),t instanceof e&&t._removeParent(this);}};ie$3.EMPTY=(()=>{let e=new ie$3;return e.closed=true,e})();var wu=ie$3.EMPTY;function ls$1(e){return e instanceof ie$3||e&&"closed"in e&&x$1(e.remove)&&x$1(e.add)&&x$1(e.unsubscribe)}function Zh(e){x$1(e)?e():e.unsubscribe();}var dt$2={Promise:void 0};var Pr$1={setTimeout(e,t,...n){return setTimeout(e,t,...n)},clearTimeout(e){return (clearTimeout)(e)},delegate:void 0};function ds$1(e){Pr$1.setTimeout(()=>{throw e});}function Gn(){}function Lr$1(e){e();}var Wn$1=class Wn extends ie$3{constructor(t){super(),this.isStopped=false,t?(this.destination=t,ls$1(t)&&t.add(this)):this.destination=uw;}static create(t,n,r){return new Fr$1(t,n,r)}next(t){this.isStopped?bu():this._next(t);}error(t){this.isStopped?bu():(this.isStopped=true,this._error(t));}complete(){this.isStopped?bu():(this.isStopped=true,this._complete());}unsubscribe(){this.closed||(this.isStopped=true,super.unsubscribe(),this.destination=null);}_next(t){this.destination.next(t);}_error(t){try{this.destination.error(t);}finally{this.unsubscribe();}}_complete(){try{this.destination.complete();}finally{this.unsubscribe();}}};var Su=class{constructor(t){this.partialObserver=t;}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t);}catch(r){fs$1(r);}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t);}catch(r){fs$1(r);}else fs$1(t);}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete();}catch(n){fs$1(n);}}},Fr$1=class Fr extends Wn$1{constructor(t,n,r){super();let o;if(x$1(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else {o=t;}this.destination=new Su(o);}};function fs$1(e){ds$1(e);}function cw(e){throw e}function bu(e,t){}var uw={closed:true,next:Gn,error:cw,complete:Gn};var jr$1=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Ae$3(e){return e}function Tu(...e){return _u(e)}function _u(e){return e.length===0?Ae$3:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var L$4=(()=>{class e{constructor(n){n&&(this._subscribe=n);}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=dw(n)?n:new Fr$1(n,r,o);return Lr$1(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i));}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r);}}forEach(n,r){return r=Xh(r),new r((o,i)=>{let s=new Fr$1({next:a=>{try{n(a);}catch(c){i(c),s.unsubscribe();}},error:i,complete:o});this.subscribe(s);})}_subscribe(n){var r;return (r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[jr$1](){return this}pipe(...n){return _u(n)(this)}toPromise(n){return n=Xh(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i));})}}return e.create=t=>new e(t),e})();function Xh(e){var t;return (t=e??dt$2.Promise)!==null&&t!==void 0?t:Promise}function lw(e){return e&&x$1(e.next)&&x$1(e.error)&&x$1(e.complete)}function dw(e){return e&&e instanceof Wn$1||lw(e)&&ls$1(e)}var ep=kr$1(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed";});var ae$4=(()=>{class e extends L$4{constructor(){super(),this.closed=false,this.currentObservers=null,this.observers=[],this.isStopped=false,this.hasError=false,this.thrownError=null;}lift(n){let r=new hs$1(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new ep}next(n){Lr$1(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n);}});}error(n){Lr$1(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=true,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n);}});}complete(){Lr$1(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=true;let{observers:n}=this;for(;n.length;)n.shift().complete();}});}unsubscribe(){this.isStopped=this.closed=true,this.observers=this.currentObservers=null;}get observed(){var n;return ((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?wu:(this.currentObservers=null,i.push(n),new ie$3(()=>{this.currentObservers=null,zn(i,n);}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete();}asObservable(){let n=new L$4;return n.source=this,n}}return e.create=(t,n)=>new hs$1(t,n),e})(),hs$1=class hs extends ae$4{constructor(t,n){super(),this.destination=t,this.source=n;}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t);}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t);}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t);}_subscribe(t){var n,r;return (r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:wu}};function ps$1(e){return e&&x$1(e.schedule)}function Mu(e){return e[e.length-1]}function gs$1(e){return x$1(Mu(e))?e.pop():void 0}function St$1(e){return ps$1(Mu(e))?e.pop():void 0}function tp(e,t){return typeof Mu(e)=="number"?e.pop():t}function rp(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i);})}return new(n||(n=Promise))(function(i,s){function a(l){try{u(r.next(l));}catch(d){s(d);}}function c(l){try{u(r.throw(l));}catch(d){s(d);}}function u(l){l.done?i(l.value):o(l.value).then(a,c);}u((r=r.apply(e,[])).next());})}function np(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Zn(e){return this instanceof Zn?(this.v=e,this):new Zn(e)}function op(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(h){return function(g){return Promise.resolve(g).then(h,d)}}function a(h,g){r[h]&&(o[h]=function(D){return new Promise(function(E,N){i.push([h,D,E,N])>1||c(h,D);})},g&&(o[h]=g(o[h])));}function c(h,g){try{u(r[h](g));}catch(D){f(i[0][3],D);}}function u(h){h.value instanceof Zn?Promise.resolve(h.value.v).then(l,d):f(i[0][2],h);}function l(h){c("next",h);}function d(h){c("throw",h);}function f(h,g){h(g),i.shift(),i.length&&c(i[0][0],i[0][1]);}}function ip(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof np=="function"?np(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value);})};}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a});},s);}}var ms$1=e=>e&&typeof e.length=="number"&&typeof e!="function";function ys$1(e){return x$1(e?.then)}function vs$1(e){return x$1(e[jr$1])}function Ds(e){return Symbol.asyncIterator&&x$1(e?.[Symbol.asyncIterator])}function Es(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invali
3d object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function fw(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ws$1=fw();function Is(e){return x$1(e?.[ws$1])}function Cs$1(e){return op(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Zn(n.read());if(o)return yield Zn(void 0);yield yield Zn(r);}}finally{n.releaseLock();}})}function bs$1(e){return x$1(e?.getReader)}function G$4(e){if(e instanceof L$4)return e;if(e!=null){if(vs$1(e))return hw(e);if(ms$1(e))return pw(e);if(ys$1(e))return gw(e);if(Ds(e))return sp(e);if(Is(e))return mw(e);if(bs$1(e))return yw(e)}throw Es(e)}function hw(e){return new L$4(t=>{let n=e[jr$1]();if(x$1(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function pw(e){return new L$4(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete();})}function gw(e){return new L$4(t=>{e.then(n=>{t.closed||(t.next(n),t.complete());},n=>t.error(n)).then(null,ds$1);})}function mw(e){return new L$4(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete();})}function sp(e){return new L$4(t=>{vw(e,t).catch(n=>t.error(n));})}function yw(e){return sp(Cs$1(e))}function vw(e,t){var n,r,o,i;return rp(this,void 0,void 0,function*(){try{for(n=ip(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s};}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n));}finally{if(o)throw o.error}}t.complete();})}function je$1(e,t,n,r=0,o=false){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe();},r);if(e.add(i),!o)return i}function Dw(e){return x$1(e?.lift)}function P$2(e){return t=>{if(Dw(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r);}});throw new TypeError("Unable to lift unknown Observable type")}}function O$2(e,t,n,r,o){return new Nu(e,t,n,r,o)}var Nu=class extends Wn$1{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a);}catch(c){t.error(c);}}:super._next,this._error=o?function(a){try{o(a);}catch(c){t.error(c);}finally{this.unsubscribe();}}:super._error,this._complete=r?function(){try{r();}catch(a){t.error(a);}finally{this.unsubscribe();}}:super._complete;}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this));}}};function Ss$1(e,t=0){return P$2((n,r)=>{n.subscribe(O$2(r,o=>je$1(r,e,()=>r.next(o),t),()=>je$1(r,e,()=>r.complete(),t),o=>je$1(r,e,()=>r.error(o),t)));})}function Ts$1(e,t=0){return P$2((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t));})}function ap(e,t){return G$4(e).pipe(Ts$1(t),Ss$1(t))}function cp(e,t){return G$4(e).pipe(Ts$1(t),Ss$1(t))}function up(e,t){return new L$4(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule());})})}function lp(e,t){return new L$4(n=>{let r;return je$1(n,t,()=>{r=e[ws$1](),je$1(n,t,()=>{let o,i;try{({value:o,done:i}=r.next());}catch(s){n.error(s);return}i?n.complete():n.next(o);},0,true);}),()=>x$1(r?.return)&&r.return()})}function _s$1(e,t){if(!e)throw new Error("Iterable cannot be null");return new L$4(n=>{je$1(n,t,()=>{let r=e[Symbol.asyncIterator]();je$1(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value);});},0,true);});})}function dp(e,t){return _s$1(Cs$1(e),t)}function fp(e,t){if(e!=null){if(vs$1(e))return ap(e,t);if(ms$1(e))return up(e,t);if(ys$1(e))return cp(e,t);if(Ds(e))return _s$1(e,t);if(Is(e))return lp(e,t);if(bs$1(e))return dp(e,t)}throw Es(e)}function K$4(e,t){return t?fp(e,t):G$4(e)}function T$5(...e){let t=St$1(e);return K$4(e,t)}var Gt$2=kr$1(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence";});function Ew(e,t){return new Promise((r,o)=>{let i=false,s;e.subscribe({next:a=>{s=a,i=true;},error:o,complete:()=>{i?r(s):o(new Gt$2);}});})}function B$3(e,t){return P$2((n,r)=>{let o=0;n.subscribe(O$2(r,i=>{r.next(e.call(t,i,o++));}));})}var{isArray:ww}=Array,{getPrototypeOf:Iw,prototype:Cw,keys:bw}=Object;function Ms$1(e){if(e.length===1){let t=e[0];if(ww(t))return {args:t,keys:null};if(Sw(t)){let n=bw(t);return {args:n.map(r=>t[r]),keys:n}}}return {args:e,keys:null}}function Sw(e){return e&&typeof e=="object"&&Iw(e)===Cw}var{isArray:Tw}=Array;function _w(e,t){return Tw(t)?e(...t):e(t)}function Ns(e){return B$3(t=>_w(e,t))}function As$1(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Rs(...e){let t=St$1(e),n=gs$1(e),{args:r,keys:o}=Ms$1(e);if(r.length===0)return K$4([],t);let i=new L$4(Mw(r,t,o?s=>As$1(o,s):Ae$3));return n?i.pipe(Ns(n)):i}function Mw(e,t,n=Ae$3){return r=>{hp(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)hp(t,()=>{let u=K$4(e[c],t),l=false;u.subscribe(O$2(r,d=>{i[c]=d,l||(l=true,a--),a||r.next(n(i.slice()));},()=>{--s||r.complete();}));},r);},r);}}function hp(e,t,n){e?je$1(n,e,t):t();}function Nw(...e){let t=gs$1(e),{args:n,keys:r}=Ms$1(e),o=new L$4(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l<s;l++){let d=false;G$4(n[l]).subscribe(O$2(i,f=>{d||(d=true,u--),a[l]=f;},()=>c--,void 0,()=>
3{(!c||!d)&&(u||i.next(r?As$1(r,a):a),i.complete());}));}});return t?o.pipe(Ns(t)):o}var xs=class extends ie$3{constructor(t,n){super();}schedule(t,n=0){return this}};var xo={setInterval(e,t,...n){let{delegate:r}=xo;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){return (clearInterval)(e)},delegate:void 0};var Ur$1=class Ur extends xs{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=false;}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=true,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return xo.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===false)return n;n!=null&&xo.clearInterval(n);}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=false;let r=this._execute(t,n);if(r)return r;this.pending===false&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null));}_execute(t,n){let r=false,o;try{this.work(t);}catch(i){r=true,o=i||new Error("Scheduled action threw falsy error");}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=false,zn(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe();}}};var Oo={now(){return (Oo.delegate||Date).now()},delegate:void 0};var Br$1=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n;}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};Br$1.now=Oo.now;var Hr$1=class Hr extends Br$1{constructor(t,n=Br$1.now){super(t,n),this.actions=[],this._active=false;}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=true;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=false,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var qt$2=new Hr$1(Ur$1),pp=qt$2;function gp(e){return e instanceof Date&&!isNaN(e)}function Wt$2(e=0,t,n=pp){let r=-1;return t!=null&&(ps$1(t)?n=t:r=t),new L$4(o=>{let i=gp(e)?+e-n.now():e;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete());},i)})}function Ue$1(e,t){return P$2((n,r)=>{let o=0;n.subscribe(O$2(r,i=>e.call(t,i,o++)&&r.next(i)));})}function Yn(e){return P$2((t,n)=>{let r=null,o=!1,i;r=t.subscribe(O$2(n,void 0,void 0,s=>{i=G$4(e(s,Yn(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0;})),o&&(r.unsubscribe(),r=null,i.subscribe(n));})}function mp(e,t=qt$2){return P$2((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let u=i;i=null,r.next(u);}};function c(){let u=s+e,l=t.now();if(l<u){o=this.schedule(void 0,u-l),r.add(o);return}a();}n.subscribe(O$2(r,u=>{i=u,s=t.now(),o||(o=t.schedule(c,e),r.add(o));},()=>{a(),r.complete();},void 0,()=>{i=o=null;}));})}var fe$1=new L$4(e=>e.complete());function $e$2(e){return e<=0?()=>fe$1:P$2((t,n)=>{let r=0;t.subscribe(O$2(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete());}));})}function yp(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=false,f=()=>{d&&!c.length&&!u&&t.complete();},h=D=>u<r?g(D):c.push(D),g=D=>{u++;let E=false;G$4(n(D,l++)).subscribe(O$2(t,N=>{t.next(N);},()=>{E=true;},void 0,()=>{if(E)try{for(u--;c.length&&u<r;){let N=c.shift();s?je$1(t,s,()=>g(N)):g(N);}f();}catch(N){t.error(N);}}));};return e.subscribe(O$2(t,h,()=>{d=true,f();})),()=>{}}function he$3(e,t,n=1/0){return x$1(t)?he$3((r,o)=>B$3((i,s)=>t(r,i,o,s))(G$4(e(r,o))),n):(typeof t=="number"&&(n=t),P$2((r,o)=>yp(r,o,e,n)))}function Tt$2(e=1/0){return he$3(Ae$3,e)}function vp(){return Tt$2(1)}function vn$1(...e){return vp()(K$4(e,St$1(e)))}function Dp(){return P$2((e,t)=>{e.subscribe(O$2(t,Gn));})}function Ep(e){return B$3(()=>e)}function Au(e,t){return t?n=>vn$1(t.pipe($e$2(1),Dp()),n.pipe(Au(e))):he$3((n,r)=>G$4(e(n,r)).pipe($e$2(1),Ep(n)))}function Aw(e,t=qt$2){let n=Wt$2(e,t);return Au(()=>n)}function wp(e,t=Ae$3){return e=e??Rw,P$2((n,r)=>{let o,i=!0;n.subscribe(O$2(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s));}));})}function Rw(e,t){return e===t}function ko(e){return P$2((t,n)=>{try{t.subscribe(n);}finally{n.add(e);}})}function xw(e=1/0){let t;e&&typeof e=="object"?t=e:t={count:e};let{count:n=1/0,delay:r,resetOnSuccess:o=false}=t;return n<=0?Ae$3:P$2((i,s)=>{let a=0,c,u=()=>{let l=!1;c=i.subscribe(O$2(s,d=>{o&&(a=0),s.next(d);},void 0,d=>{if(a++<n){let f=()=>{c?(c.unsubscribe(),c=null,u()):l=!0;};if(r!=null){let h=typeof r=="number"?Wt$2(r):G$4(r(d,a)),g=O$2(s,()=>{g.unsubscribe(),f();},()=>{s.complete();});h.subscribe(g);}else f();}else s.error(d);})),l&&(c.unsubscribe(),c=null,u());};u();})}function Ru(...e){let t=St$1(e);return P$2((n,r)=>{(t?vn$1(e,n,t):vn$1(e,n)).subscribe(r);})}function be$4(e,t){return P$2((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(O$2(r,c=>{o?.unsubscribe();let u=0,l=i++;G$4(e(c,l)).subscribe(o=O$2(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a();}));},()=>{s=!0,a();}));})}var Vr$1={schedule(e){let t=requestAnimationFrame,n=cancelAnimationFrame;let o=t(i=>{n=void 0,e(i);});return new ie$3(()=>n?.(o))},requestAnimationFrame(...e){let{delegate:t}=Vr$1;return (t?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){return (cancelAnimationFrame)(...e)},delegate:void 0};var Ee$2=class Ee extends ae$4{constructor(t){super(),this._value=t;}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return !n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t);}};var xu=class extends ae$4{constructor(t=1/0,n=1/0,r=Oo){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=true,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n);}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t);}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1);}}};var Os=class extends Ur$1{constructor(t,n){super(t,n),this.scheduler
3=t,this.work=n;}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=Vr$1.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&n===t._scheduled&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(Vr$1.cancelAnimationFrame(n),t._scheduled=void 0);}};var ks=class extends Hr$1{flush(t){this._active=true;let n;t?n=t.id:(n=this._scheduled,this._scheduled=void 0);let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=false,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var Ow=new ks(Os);function Ou(e,t){let n=x$1(e)?e:()=>e,r=o=>o.error(n());return new L$4(r)}function Ps$1(e){return !!e&&(e instanceof L$4||x$1(e.lift)&&x$1(e.subscribe))}function Po(e){return new L$4(t=>{G$4(e()).subscribe(t);})}function kw(e=0,t=qt$2){return e<0&&(e=0),Wt$2(e,e,t)}function Pw(...e){let t=St$1(e),n=tp(e,1/0),r=e;return r.length?r.length===1?G$4(r[0]):Tt$2(n)(K$4(r,t)):fe$1}function Ip(e){return P$2((t,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let u=o;o=null,n.next(u);}s&&n.complete();},c=()=>{i=null,s&&n.complete();};t.subscribe(O$2(n,u=>{r=!0,o=u,i||G$4(e(u)).subscribe(i=O$2(n,a,c));},()=>{s=!0,(!r||!i||i.closed)&&n.complete();}));})}function Lw(e,t=qt$2){return Ip(()=>Wt$2(e,t))}function Dn(e,t){return x$1(t)?he$3(e,t,1):he$3(e,1)}function Cp(e){return P$2((t,n)=>{let r=!1;t.subscribe(O$2(n,o=>{r=!0,n.next(o);},()=>{r||n.next(e),n.complete();}));})}function bp(e=Fw){return P$2((t,n)=>{let r=!1;t.subscribe(O$2(n,o=>{r=!0,n.next(o);},()=>r?n.complete():n.error(e())));})}function Fw(){return new Gt$2}function Zt$1(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Ue$1((o,i)=>e(o,i,r)):Ae$3,$e$2(1),n?Cp(t):bp(()=>new Gt$2))}function Ls(e){return e<=0?()=>fe$1:P$2((t,n)=>{let r=[];t.subscribe(O$2(n,o=>{r.push(o),e<r.length&&r.shift();},()=>{for(let o of r)n.next(o);n.complete();},void 0,()=>{r=null;}));})}function $r$1(e){return P$2((t,n)=>{G$4(e).subscribe(O$2(n,()=>n.complete(),Gn)),!n.closed&&t.subscribe(n);})}function ze$3(e,t,n){let r=x$1(e)||t||n?{next:e,error:t,complete:n}:e;return r?P$2((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(O$2(i,c=>{var u;(u=r.next)===null||u===void 0||u.call(r,c),i.next(c);},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete();},c=>{var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,c),i.error(c);},()=>{var c,u;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r);}));}):Ae$3}var Re$2=null,Fs=false,Qn=1,ce$3=Symbol("SIGNAL");function b$1(e){let t=Re$2;return Re$2=e,t}function js(){return Re$2}var En={version:0,lastCleanEpoch:0,dirty:false,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:false,consumerAllowSignalWrites:false,consumerIsAlwaysLive:false,kind:"unknown",producerMustRecompute:()=>false,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Xn(e){if(Fs)throw new Error("");if(Re$2===null)return;Re$2.consumerOnSignalRead(e);let t=Re$2.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=Re$2.recomputing;if(r&&(n=t!==void 0?t.nextProducer:Re$2.producers,n!==void 0&&n.producer===e)){Re$2.producersTail=n,n.lastReadVersion=e.version,n.knownValidAtEpoch=Qn;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===Re$2&&(!r||o.knownValidAtEpoch===Qn))return;let i=Gr$1(Re$2),s={producer:e,consumer:Re$2,nextProducer:n,prevConsumer:void 0,knownValidAtEpoch:Qn,lastReadVersion:e.version,nextConsumer:void 0};Re$2.producersTail=s,t!==void 0?t.nextProducer=s:Re$2.producers=s,i&&Mp(e,s);}function Sp(){Qn++;}function er$1(e){if(!(Gr$1(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Qn)){if(!e.producerMustRecompute(e)&&!Lo(e)){zr$1(e);return}e.producerRecomputeValue(e),zr$1(e);}}function ku(e){if(e.consumers===void 0)return;let t=Fs;Fs=true;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Uw(r);}}finally{Fs=t;}}function Pu(){return Re$2?.consumerAllowSignalWrites!==false}function Uw(e){e.dirty=true,ku(e),e.consumerMarkedDirty?.(e);}function zr$1(e){e.dirty=false,e.lastCleanEpoch=Qn;}function wn(e){return e&&Tp(e),b$1(e)}function Tp(e){if(e.producersTail?.knownValidAtEpoch===Qn){let t=e.producers;for(;t!==void 0;)t.knownValidAtEpoch=null,t=t.nextProducer;}e.producersTail=void 0,e.recomputing=true;}function tr$1(e,t){b$1(t),e&&_p(e);}function _p(e){e.recomputing=false;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(Gr$1(e))do n=Lu(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0;}}function Lo(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(er$1(n),r!==n.version))return  true}return  false}function nr$1(e){if(Gr$1(e)){let t=e.producers;for(;t!==void 0;)t=Lu(t);}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0;}function Mp(e,t){let n=e.consumersTail,r=Gr$1(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let o=e.producers;o!==void 0;o=o.nextProducer)Mp(o.producer,o);}function Lu(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:t.consumersTail=o,o!==void 0)
3o.nextConsumer=r;else if(t.consumers=r,!Gr$1(t)){let i=t.producers;for(;i!==void 0;)i=Lu(i);}return n}function Gr$1(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function jo(e,t){return Object.is(e,t)}function Uo(e,t){let n=Object.create(Bw);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(er$1(n),Xn(n),n.value===_t$1)throw n.error;return n.value};return r[ce$3]=n,r}var Kn=Symbol("UNSET"),Jn=Symbol("COMPUTING"),_t$1=Symbol("ERRORED"),Bw=m$2(l$1({},En),{value:Kn,dirty:true,error:null,equal:jo,kind:"computed",producerMustRecompute(e){return e.value===Kn||e.value===Jn},producerRecomputeValue(e){if(e.value===Jn)throw new Error("");let t=e.value;e.value=Jn;let n=wn(e),r,o=false;try{r=e.computation(),b$1(null),o=t!==Kn&&t!==_t$1&&r!==_t$1&&e.equal(t,r);}catch(i){r=_t$1,e.error=i;}finally{tr$1(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function Hw(){throw new Error}var Np=Hw;function Ap(e){Np(e);}function Fu(e){Np=e;}function ju(e,t){let n=Object.create(Bs);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Rp(n);return r[ce$3]=n,[r,s=>rr$1(n,s),s=>Us(n,s)]}function Rp(e){return Xn(e),e.value}function rr$1(e,t){Pu()||Ap(e),e.equal(e.value,t)||(e.value=t,$w(e));}function Us(e,t){Pu()||Ap(e),rr$1(e,t(e.value));}var Bs=m$2(l$1({},En),{equal:jo,value:void 0,kind:"signal"});function $w(e){e.version++,Sp(),ku(e);}var Uu=m$2(l$1({},En),{consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,dirty:true,kind:"effect"});function Bu(e){if(e.dirty=false,e.version>0&&!Lo(e))return;e.version++;let t=wn(e);try{e.cleanup(),e.fn();}finally{tr$1(e,t);}}var Hu;function Hs(){return Hu}function Mt$2(e){let t=Hu;return Hu=e,t}var xp=Symbol("NotFound");function qr$1(e){return e===xp||e?.name==="\u0275NotFound"}function Vu(e,t,n){let r=Object.create(zw);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if(er$1(r),Xn(r),r.value===_t$1)throw r.error;return r.value};return i[ce$3]=r,i}function Op(e,t){er$1(e),rr$1(e,t),zr$1(e);}function kp(e,t){if(er$1(e),e.value===_t$1)throw e.error;Us(e,t),zr$1(e);}var zw=m$2(l$1({},En),{value:Kn,dirty:true,error:null,equal:jo,kind:"linkedSignal",producerMustRecompute(e){return e.value===Kn||e.value===Jn},producerRecomputeValue(e){if(e.value===Jn)throw new Error("");let t=e.value;e.value=Jn;let n=wn(e),r,o=false;try{let i=e.source(),s=t!==Kn&&t!==_t$1,a=s?{source:e.sourceValue,value:t}:void 0;r=e.computation(i,a),e.sourceValue=i,b$1(null),o=s&&r!==_t$1&&e.equal(t,r);}catch(i){r=_t$1,e.error=i;}finally{tr$1(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function Pp(e){let t=b$1(null);try{return e()}finally{b$1(t);}}var Zs="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",m$1=class m extends Error{code;constructor(t,n){super(Ke$2(t,n)),this.code=t;}};function Gw(e){return `NG0${Math.abs(e)}`}function Ke$2(e,t){return `${Gw(e)}${t?": "+t:""}`}function H$4(e){for(let t in e)if(e[t]===H$4)return t;throw Error("")}function Bp(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);}function Go(e){if(typeof e=="string")return e;if(Array.isArray(e))return `[${e.map(Go).join(", ")}]`;if(e==null)return ""+e;let t=e.overriddenName||e.name;if(t)return `${t}`;let n=e.toString();if(n==null)return ""+n;let r=n.indexOf(`
4`);return r>=0?n.slice(0,r):n}function Ys(e,t){return e?t?`${e} ${t}`:e:t||""}var qw=H$4({__forward_ref__:H$4});function Qs(e){return e.__forward_ref__=Qs,e}function we$4(e){return tl(e)?e():e}function tl(e){return typeof e=="function"&&e.hasOwnProperty(qw)&&e.__forward_ref__===Qs}function S$4(e){return {token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function bn(e){return {providers:e.providers||[],imports:e.imports||[]}}function qo(e){return Ww(e,Ks)}function nl(e){return qo(e)!==null}function Ww(e,t){return e.hasOwnProperty(t)&&e[t]||null}function Zw(e){let t=e?.[Ks]??null;return t||null}function zu(e){return e&&e.hasOwnProperty($s)?e[$s]:null}var Ks=H$4({\u0275prov:H$4}),$s=H$4({\u0275inj:H$4}),v$2=class v{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=S$4({token:this,providedIn:n.providedIn||"root",factory:n.factory}));}get multi(){return this}toString(){return `InjectionToken ${this._desc}`}};function rl(e){return e&&!!e.\u0275providers}var ol=H$4({\u0275cmp:H$4}),il=H$4({\u0275dir:H$4}),sl=H$4({\u0275pipe:H$4}),al=H$4({\u0275mod:H$4}),Ho=H$4({\u0275fac:H$4}),cr$1=H$4({__NG_ELEMENT_ID__:H$4}),Lp=H$4({__NG_ENV_ID__:H$4});function Hp(e){return Js(e),e[al]||null}function Jt$2(e){return Js(e),e[ol]||null}function cl(e){return Js(e),e[il]||null}function Vp(e){return Js(e),e[sl]||null}function Js(e,t){if(e==null)throw new m$1(-919,false)}function ft$3(e){return typeof e=="string"?e:e==null?"":String(e)}var $p=H$4({ngErrorCode:H$4}),Yw=H$4({ngErrorMessage:H$4});H$4({ngTokenPath:H$4});function ul(e,t){return zp("",-200)}function Xs(e,t){throw new m$1(-201,false)}function zp(e,t,n){let r=new m$1(t,e);return r[$p]=t,r[Yw]=e,r}function Kw(e){return e[$p]}var Gu;function Gp(){return Gu}function xe$3(e){let t=Gu;return Gu=e,t}function ll(e,t,n){let r=qo(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;Xs();}var Je$2=globalThis;var Jw={},or$1=Jw,Xw="__NG_DI_FLAG__",qu=class{injector;constructor(t){this.injector=t;}retrieve(t,n){let r=ir$1(n)||0;try{return this.injector.get(t,r&8?null:or$1,r)}catch(o){if(qr$1(o))return o;throw o}}};function eI(e,t=0){let n=Hs();if(n===void 0)throw new m$1(-203,false);
vendor: 22,218 bytes, line 4
4if(n===null)return ll(e,void 0,t);{let r=tI(t),o=n.retrieve(e,r);if(qr$1(o)){if(r.optional)return null;throw o}return o}}function I$2(e,t=0){return (Gp()||eI)(we$4(e),t)}function p$1(e,t){return I$2(e,ir$1(t))}function ir$1(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function tI(e){return {optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Wu(e){let t=[];for(let n=0;n<e.length;n++){let r=we$4(e[n]);if(Array.isArray(r)){if(r.length===0)throw new m$1(900,false);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=nI(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a;}t.push(I$2(o,i));}else t.push(I$2(r));}return t}function nI(e){return e[Xw]}function In(e,t){let n=e.hasOwnProperty(Ho);return n?e[Ho]:null}function qp(e,t,n){if(e.length!==t.length)return  false;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return  false}return  true}function Wp(e){return e.flat(Number.POSITIVE_INFINITY)}function ea(e,t){e.forEach(n=>Array.isArray(n)?ea(n,t):t(n));}function dl(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n);}function Wo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Zp(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function Yp(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else {for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--;}e[t]=n,e[t+1]=r;}}function Zo(e,t,n){let r=Yr$1(e,t);return r>=0?e[r|1]=n:(r=~r,Yp(e,r,t,n)),r}function ta(e,t){let n=Yr$1(e,t);if(n>=0)return e[n|1]}function Yr$1(e,t){return rI(e,t,1)}function rI(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1;}return ~(o<<n)}var Sn={},Te$2=[],Qr$1=new v$2(""),Yo=new v$2("",-1),fl=new v$2(""),Zr$1=class Zr{get(t,n=or$1){if(n===or$1){let o=zp("",-201);throw o.name="\u0275NotFound",o}return n}};function Xt$1(e){return {\u0275providers:e}}function Qp(...e){return {\u0275providers:hl(true,e),\u0275fromNgModule:true}}function hl(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s);};return ea(t,s=>{let a=s;zs(a,i,[],r)&&(o||=[],o.push(a));}),o!==void 0&&Kp(o,i),n}function Kp(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];pl(o,i=>{t(i,r);});}}function zs(e,t,n,r){if(e=we$4(e),!e)return  false;let o=null,i=zu(e),s=!i&&Jt$2(e);if(!i&&!s){let c=e.ngModule;if(i=zu(c),i)o=c;else return  false}else {if(s&&!s.standalone)return  false;o=e;}let a=r.has(o);if(s){if(a)return  false;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)zs(u,t,n,r);}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;ea(i.imports,l=>{zs(l,t,n,r)&&(u||=[],u.push(l));}),u!==void 0&&Kp(u,t);}if(!a){let u=In(o)||(()=>new o);t({provide:o,useFactory:u,deps:Te$2},o),t({provide:fl,useValue:o,multi:true},o),t({provide:Qr$1,useValue:()=>I$2(o),multi:true},o);}let c=i.providers;if(c!=null&&!a){let u=e;pl(c,l=>{t(l,u);});}}else return  false;return o!==e&&e.providers!==void 0}function pl(e,t){for(let n of e)rl(n)&&(n=n.\u0275providers),Array.isArray(n)?pl(n,t):t(n);}var oI=H$4({provide:String,useValue:H$4});function Jp(e){return e!==null&&typeof e=="object"&&oI in e}function iI(e){return !!(e&&e.useExisting)}function sI(e){return !!(e&&e.useFactory)}function sr$1(e){return typeof e=="function"}function Xp(e){return !!e.useClass}var Qo=new v$2(""),Vs={},Fp={},$u;function Kr$1(){return $u===void 0&&($u=new Zr$1),$u}var te$4=class te{},ar$2=class ar extends te$4{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=false;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,Yu(t,s=>this.processProvider(s)),this.records.set(Yo,Wr$1(void 0,this)),o.has("environment")&&this.records.set(te$4,Wr$1(void 0,this));let i=this.records.get(Qo);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(fl,Te$2,{self:true}));}retrieve(t,n){let r=ir$1(n)||0;try{return this.get(t,or$1,r)}catch(o){if(qr$1(o))return o;throw o}}destroy(){Bo(this),this._destroyed=true;let t=b$1(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r();}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),b$1(t);}}onDestroy(t){return Bo(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Bo(this);let n=Mt$2(this),r=xe$3(void 0);try{return t()}finally{Mt$2(n),xe$3(r);}}get(t,n=or$1,r){if(Bo(this),t.hasOwnProperty(Lp))return t[Lp](this);let o=ir$1(r),s=Mt$2(this),a=xe$3(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=dI(t)&&qo(t);l&&this.injectableDefInScope(l)?u=Wr$1(Zu(t),Vs):u=null,this.records.set(t,u);}if(u!=null)return this.hydrate(t,u,o)}let c=o&2?Kr$1():this.parent;return n=o&8&&n===or$1?null:n,c.get(t,n)}catch(c){let u=Kw(c);throw u===-200||u===-201?new m$1(u,null):c}finally{xe$3(a),Mt$2(s);}}resolveInjectorInitializers(){let t=b$1(null),n=Mt$2(this),r=xe$3(void 0);try{let i=this.get(Qr$1,Te$2,{self:!0});for(let s of i)s();}finally{Mt$2(n),xe$3(r),b$1(t);}}toString(){return "R3Injector[...]"}processProvider(t){t=we$4(t);let n=sr$1(t)?t:we$4(t&&t.provide),r=cI(t);if(!sr$1(t)&&t.multi===true){let o=this.records.get(n);o||(o=Wr$1(void 0,Vs,true),o.factory=()=>Wu(o.multi),this.records.set(n,o)),n=t,o.multi.push(t);}this.records.set(n,r);}hydrate(t,n,r){let o=b$1(null);try{if(n.value===Fp)throw ul("");return n.value===Vs&&(n.value=Fp,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&lI(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{b$1(o);}}injectableDefInScope(t){if(!t.providedIn)return  false;let n=we$4(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1);}};function Zu(e){let t=qo(e),n=t!==null?t.factory:In(e);if(n!==null)return n;if(e instanceof v$2)throw new m$1(-204,false);if(e instanceof Function)return aI(e);throw new m$1(-204,false)}function aI(e){if(e.length>0)throw new m$1(-204,false);let n=Zw(e);return n!==null?()=>n.factory(e):()=>new e}function cI(e){if(Jp(e))return Wr$1(void 0,e.useValue);{let t=gl(e);return Wr$1(t,Vs)}}function gl(e,t,n){let r;if(sr$1(e)){let o=we$4(e);return In(o)||Zu(o)}else if(Jp(e))r=()=>we$4(e.useValue);else if(sI(e))r=()=>e.useFactory(...Wu(e.deps||[]));else if(iI(e))r=(o,i)=>I$2(we$4(e.useExisting),i!==void 0&&i&8?8:void 0);else {let o=we$4(e&&(e.useClass||e.provide));if(uI(e))r=()=>new o(...Wu(e.deps));else return In(o)||Zu(o)}return r}function Bo(e){if(e.destroyed)throw new m$1(-205,false)}function Wr$1(e,t,n=false){return {factory:e,value:t,multi:n?[]:void 0}}function uI(e){return !!e.deps}function lI(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function dI(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function Yu(e,t){for(let n of e)Array.isArray(n)?Yu(n,t):n&&rl(n)?Yu(n.\u0275providers,t):t(n);}function ge$2(e,t){let n;e instanceof ar$2?(Bo(e),n=e):n=new qu(e);let o=Mt$2(n),i=xe$3(void 0);try{return t()}finally{Mt$2(o),xe$3(i);}}function eg(){return Gp()!==void 0||Hs()!=null}var ht$3=0,C$1=1,M$2=2,pe$1=3,Xe$3=4,_e$4=5,ur$1=6,Jr$1=7,se$3=8,Nt$2=9,pt$2=10,$$3=11,Xr$1=12,ml=13,Tn=14,Oe$4=15,_n$1=16,lr$1=17,At$2=18,Rt$2=19,yl=20,Yt$2=21,na=22,Cn$1=23,Ge$1=24,dr$1=25,xt$2=26,q$3=27,tg=1,vl=6,Mn=7,Ko=8,fr$1=9,re$4=10;function en$1(e){return Array.isArray(e)&&typeof e[tg]=="object"}function et$3(e){return Array.isArray(e)&&e[tg]===true}function Dl(e){return (e.flags&4)!==0}function tn$1(e){return e.componentOffset>-1}function eo(e){return (e.flags&1)===1}function Ot$2(e){return !!e.template}function to(e){return (e[M$2]&512)!==0}function hr$1(e){return (e[M$2]&256)===256}var El="svg",ng="math";function tt$3(e){for(;Array.isArray(e);)e=e[ht$3];return e}function wl(e,t){return tt$3(t[e])}function nt$2(e,t){return tt$3(t[e.index])}function ra(e,t){return e.data[t]}function no(e,t){return e[t]}function Jo(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r;}function rt$4(e,t){let n=t[e];return en$1(n)?n:n[ht$3]}function rg(e){return (e[M$2]&4)===4}function oa(e){return (e[M$2]&128)===128}function og(e){return et$3(e[pe$1])}function ot$3(e,t){return t==null?null:e[t]}function Il(e){e[lr$1]=0;}function Cl(e){e[M$2]&1024||(e[M$2]|=1024,oa(e)&&pr$1(e));}function ig(e,t){for(;e>0;)t=t[Tn],e--;return t}function Xo(e){return !!(e[M$2]&9216||e[Ge$1]?.dirty)}function ia(e){e[pt$2].changeDetectionScheduler?.notify(8),e[M$2]&64&&(e[M$2]|=1024),Xo(e)&&pr$1(e);}function pr$1(e){e[pt$2].changeDetectionScheduler?.notify(0);let t=Qt$2(e);for(;t!==null&&!(t[M$2]&8192||(t[M$2]|=8192,!oa(t)));)t=Qt$2(t);}function sa(e,t){if(hr$1(e))throw new m$1(911,false);e[Yt$2]===null&&(e[Yt$2]=[]),e[Yt$2].push(t);}function sg(e,t){if(e[Yt$2]===null)return;let n=e[Yt$2].indexOf(t);n!==-1&&e[Yt$2].splice(n,1);}function Qt$2(e){let t=e[pe$1];return et$3(t)?t[pe$1]:t}function bl(e){return e[Jr$1]??=[]}function Sl(e){return e.cleanup??=[]}function ag(e,t,n,r){let o=bl(t);o.push(n),e.firstCreatePass&&Sl(e).push(r,o.length-1);}var k$3={lFrame:Dg(null),bindingsEnabled:true,skipHydrationRootTNode:null};var Qu=false;function cg(){return k$3.lFrame.elementDepthCount}function ug(){k$3.lFrame.elementDepthCount++;}function Tl(){k$3.lFrame.elementDepthCount--;}function aa(){return k$3.bindingsEnabled}function _l(){return k$3.skipHydrationRootTNode!==null}function Ml(e){return k$3.skipHydrationRootTNode===e}function Nl(){k$3.skipHydrationRootTNode=null;}function w$1(){return k$3.lFrame.lView}function z$1(){return k$3.lFrame.tView}function lg(e){return k$3.lFrame.contextLView=e,e[se$3]}function dg(e){return k$3.lFrame.contextLView=null,e}function ue$2(){let e=Al();for(;e!==null&&e.type===64;)e=e.parent;return e}function Al(){return k$3.lFrame.currentTNode}function fg(){let e=k$3.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function gr$1(e,t){let n=k$3.lFrame;n.currentTNode=e,n.isParent=t;}function Rl(){return k$3.lFrame.isParent}function xl(){k$3.lFrame.isParent=false;}function Ol(){return k$3.lFrame.contextLView}function kl(){return Qu}function Vo(e){let t=Qu;return Qu=e,t}function Nn(){let e=k$3.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Pl(){return k$3.lFrame.bindingIndex}function hg(e){return k$3.lFrame.bindingIndex=e}function nn$1(){return k$3.lFrame.bindingIndex++}function ei(e){let t=k$3.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function pg(){return k$3.lFrame.inI18n}function gg(e,t){let n=k$3.lFrame;n.bindingIndex=n.bindingRootIndex=e,ca(t);}function mg(){return k$3.lFrame.currentDirectiveIndex}function ca(e){k$3.lFrame.currentDirectiveIndex=e;}function yg(e){let t=k$3.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function ua(){return k$3.lFrame.currentQueryIndex}function ti(e){k$3.lFrame.currentQueryIndex=e;}function fI(e){let t=e[C$1];return t.type===2?t.declTNode:t.type===1?e[_e$4]:null}function Ll(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=fI(i),o===null||(i=i[Tn],o.type&10))break;if(o===null)return  false;t=o,e=i;}let r=k$3.lFrame=vg();return r.currentTNode=t,r.lView=e,true}function la(e){let t=vg(),n=e[C$1];k$3.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=false;}function vg(){let e=k$3.lFrame,t=e===null?null:e.child;return t===null?Dg(e):t}function Dg(e){let t={currentTNode:null,isParent:true,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:false};return e!==null&&(e.child=t),t}function Eg(){let e=k$3.lFrame;return k$3.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Fl=Eg;function da(){let e=Eg();e.isParent=true,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0;}function wg(e){return (k$3.lFrame.contextLView=ig(e,k$3.lFrame.contextLView))[se$3]}function it$3(){return k$3.lFrame.selectedIndex}function An(e){k$3.lFrame.selectedIndex=e;}function ro(){let e=k$3.lFrame;return ra(e.tView,e.selectedIndex)}function Ig(){k$3.lFrame.currentNamespace=El;}function Cg(){hI();}function hI(){k$3.lFrame.currentNamespace=null;}function jl(){return k$3.lFrame.currentNamespace}var bg=true;function fa(){return bg}function ni(e){bg=e;}function Ku(e,t=null,n=null,r){let o=Ul(e,t,n);return o.resolveInjectorInitializers(),o}function Ul(e,t=null,n=null,r,o=new Set){let i=[n||Te$2,Qp(e)];return new ar$2(i,t||Kr$1(),null,o)}var Ie$3=class e{static THROW_IF_NOT_FOUND=or$1;static NULL=new Zr$1;static create(t,n){if(Array.isArray(t))return Ku({name:""},n,t);{let r=t.name??"";return Ku({name:r},t.parent,t.providers)}}static \u0275prov=S$4({token:e,providedIn:"any",factory:()=>I$2(Yo)});static __NG_ELEMENT_ID__=-1},ee$3=new v$2(""),ke$2=(()=>{class e{static __NG_ELEMENT_ID__=pI;static __NG_ENV_ID__=n=>n}return e})(),Gs=class extends ke$2{_lView;constructor(t){super(),this._lView=t;}get destroyed(){return hr$1(this._lView)}onDestroy(t){let n=this._lView;return sa(n,t),()=>sg(n,t)}};function pI(){return new Gs(w$1())}var Sg=false,Tg=new v$2(""),rn$1=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=false;pendingTask=new Ee$2(false);debugTaskTracker=p$1(Tg,{optional:true});get hasPendingTasks(){return this.destroyed?false:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new L$4(n=>{n.next(false),n.complete();}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(true);let n=this.taskId++;return this.pendingTasks.add(n),this.debugTaskTracker?.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.debugTaskTracker?.remove(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(false);}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(false),this.destroyed=true,this.pendingTask.unsubscribe();}static \u0275prov=S$4({token:e,providedIn:"root",factory:()=>new e})}return e})(),Ju=class extends ae$4{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=false){super(),this.__isAsync=t,eg()&&(this.destroyRef=p$1(ke$2,{optional:true})??void 0,this.pendingTasks=p$1(rn$1,{optional:true})??void 0);}emit(t){let n=b$1(null);try{super.next(t);}finally{b$1(n);}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c);}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof ie$3&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n);}finally{r!==void 0&&this.pendingTasks?.remove(r);}});}}},Se$4=Ju;function qs(...e){}function Bl(e){let t,n;function r(){e=qs;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t);}catch{}}return t=setTimeout(()=>{e(),r();}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r();})),()=>r()}function _g(e){return queueMicrotask(()=>e()),()=>{e=qs;}}var Hl="isAngularZone",$o=Hl+"_ID",gI=0,ve$2=class e{hasPendingMacrotasks=false;hasPendingMicrotasks=false;isStable=true;onUnstable=new Se$4(false);onMicrotaskEmpty=new Se$4(false);onStable=new Se$4(false);onError=new Se$4(false);constructor(t){let{enableLongStackTrace:n=false,shouldCoalesceEventChangeDetection:r=false,shouldCoalesceRunChangeDetection:o=false,scheduleInRootZone:i=Sg}=t;if(typeof Zone>"u")throw new m$1(908,false);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=false,s.scheduleInRootZone=i,vI(s);}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Hl)===true}static assertInAngularZone(){if(!e.isInAngularZone())throw new m$1(909,false)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new m$1(909,false)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,mI,qs,qs);try{return i.runTask(s,n,r)}finally{i.cancelTask(s);}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},mI={};function Vl(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null);}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null));}finally{e.isStable=true;}}}function yI(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=true;function t(){Bl(()=>{e.callbackScheduled=false,Xu(e),e.isCheckStableRunning=true,Vl(e),e.isCheckStableRunning=false;});}e.scheduleInRootZone?Zone.root.run(()=>{t();}):e._outer.run(()=>{t();}),Xu(e);}function vI(e){let t=()=>{yI(e);},n=gI++;e._inner=e._inner.fork({name:"angular",properties:{[Hl]:true,[$o]:n,[$o+n]:true},onInvokeTask:(r,o,i,s,a,c)=>{if(DI(c))return r.invokeTask(i,s,a,c);try{return jp(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Up(e);}},onInvoke:(r,o,i,s,a,c,u)=>{try{return jp(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!EI(c)&&t(),Up(e);}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Xu(e),Vl(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask));},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),false)});}function Xu(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===true?e.hasPendingMicrotasks=true:e.hasPendingMicrotasks=false;}function jp(e){e._nesting++,e.isStable&&(e.isStable=false,e.onUnstable.emit(null));}function Up(e){e._nesting--,Vl(e);}var zo=class{hasPendingMicrotasks=false;hasPendingMacrotasks=false;isStable=true;onUnstable=new Se$4;onMicrotaskEmpty=new Se$4;onStable=new Se$4;onError=new Se$4;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function DI(e){return Mg(e,"__ignore_ng_zone__")}function EI(e){return Mg(e,"__scheduler_tick__")}function Mg(e,t){return !Array.isArray(e)||e.length!==1?false:e[0]?.data?.[t]===true}var Qe$2=class Qe{_console=console;handleError(t){this._console.error("ERROR",t);}},qe$3=new v$2("",{factory:()=>{let e=p$1(ve$2),t=p$1(te$4),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(Qe$2),n.handleError(r));});}}}),Ng={provide:Qr$1,useValue:()=>{p$1(Qe$2,{optional:true});},multi:true};function oe$2(e,t){let [n,r,o]=ju(e,t?.equal),i=n;i[ce$3];return i.set=r,i.update=o,i.asReadonly=ha.bind(i),i}function ha(){let e=this[ce$3];if(e.readonlyFn===void 0){let t=()=>this();t[ce$3]=e,e.readonlyFn=t;}return e.readonlyFn}var ri=new v$2("",{factory:()=>wI}),wI="ng";var pa=new v$2(""),oi=new v$2("",{providedIn:"platform",factory:()=>"unknown"}),II=new v$2(""),ii=new v$2("",{factory:()=>p$1(ee$3).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),ga={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840],placeholderResolution:30,disableImageSizeWarning:false,disableImageLazyLoadWarning:false},ma=new v$2("",{factory:()=>ga});var si=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r;}static __NG_ELEMENT_ID__=CI}return e})();function CI(){return new si(w$1(),ue$2())}var Kt$2=class Kt{},ai$1=new v$2("",{factory:()=>true});var $l=new v$2(""),ya=(()=>{class e{static \u0275prov=S$4({token:e,providedIn:"root",factory:()=>new el})}return e})(),el=class{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t);}schedule(t){t.dirty&&this.dirtyEffectCount++;}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--);}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||r.add(t);}flush(){for(;this.dirtyEffectCount>0;){let t=false;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0);}}flushQueue(t){let n=false;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=true,r.run());return n}},Ws=class{[ce$3];constructor(t){this[ce$3]=t;}destroy(){this[ce$3].destroy();}};function Ag(e,t){let n=t?.injector??p$1(Ie$3),r=t?.manualCleanup!==true?n.get(ke$2):null,o,i=n.get(si,null,{optional:true}),s=n.get(Kt$2);return i!==null?(o=TI(i.view,s,e),r instanceof Gs&&r._lView===i.view&&(r=null)):o=_I(e,n.get(ya),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new Ws(o)}var Rg=m$2(l$1({},Uu),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=Vo(false);try{Bu(this);}finally{Vo(e);}},cleanup(){if(!this.cleanupFns?.length)return;let e=b$1(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()();}finally{this.cleanupFns=[],b$1(e);}}}),bI=m$2(l$1({},Rg),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12);},destroy(){if(nr$1(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this);}}),SI=m$2(l$1({},Rg),{consumerMarkedDirty(){this.view[M$2]|=8192,pr$1(this.view),this.notifier.notify(13);},destroy(){if(nr$1(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[Cn$1]?.delete(this);}});function TI(e,t,n){let r=Object.create(SI);
4return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=xg(r,n),e[Cn$1]??=new Set,e[Cn$1].add(r),r.consumerMarkedDirty(r),r}function _I(e,t,n){let r=Object.create(bI);return r.fn=xg(r,e),r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function xg(e,t){return ()=>{t(n=>(e.cleanupFns??=[]).push(n));}}function ci$1(e){return typeof e=="function"&&e[ce$3]!==void 0}function va(e){return ci$1(e)&&typeof e.set=="function"}var ui$1=(()=>{class e{internalPendingTasks=p$1(rn$1);scheduler=p$1(Kt$2);errorHandler=p$1(qe$3);add(){let n=this.internalPendingTasks.add();return ()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n));}}run(n){let r=this.add();try{n().catch(this.errorHandler).finally(r);}catch(o){this.errorHandler(o),r();}}static \u0275prov=S$4({token:e,providedIn:"root",factory:()=>new e})}return e})();function Ii$1(e){return {toString:e}.toString()}var j$5=(function(e){return e[e.TemplateCreateStart=0]="TemplateCreateStart",e[e.TemplateCreateEnd=1]="TemplateCreateEnd",e[e.TemplateUpdateStart=2]="TemplateUpdateStart",e[e.TemplateUpdateEnd=3]="TemplateUpdateEnd",e[e.LifecycleHookStart=4]="LifecycleHookStart",e[e.LifecycleHookEnd=5]="LifecycleHookEnd",e[e.OutputStart=6]="OutputStart",e[e.OutputEnd=7]="OutputEnd",e[e.BootstrapApplicationStart=8]="BootstrapApplicationStart",e[e.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",e[e.BootstrapComponentStart=10]="BootstrapComponentStart",e[e.BootstrapComponentEnd=11]="BootstrapComponentEnd",e[e.ChangeDetectionStart=12]="ChangeDetectionStart",e[e.ChangeDetectionEnd=13]="ChangeDetectionEnd",e[e.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",e[e.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",e[e.AfterRenderHooksStart=16]="AfterRenderHooksStart",e[e.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",e[e.ComponentStart=18]="ComponentStart",e[e.ComponentEnd=19]="ComponentEnd",e[e.DeferBlockStateStart=20]="DeferBlockStateStart",e[e.DeferBlockStateEnd=21]="DeferBlockStateEnd",e[e.DynamicComponentStart=22]="DynamicComponentStart",e[e.DynamicComponentEnd=23]="DynamicComponentEnd",e[e.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",e[e.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",e})(j$5||{}),_a=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r;}isFirstChange(){return this.firstChange}};function wm(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r;}var Im=null,Lt$2=(()=>{Im=Og;let e=()=>Og;return e.ngInherit=true,e})();function LI(){return Im}function Og(e){return e.type.prototype.ngOnChanges&&(e.setInput=jI),FI}function FI(){let e=Cm(this),t=e?.current;if(t){let n=e.previous;if(n===Sn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t);}}function jI(e,t,n,r,o){let i=this.declaredInputs[r],s=Cm(e)||UI(e,{previous:Sn,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new _a(u&&u.currentValue,n,c===Sn),wm(e,t,o,n);}var ed="__ngSimpleChanges__";function Cm(e){return Object.hasOwn(e,ed)&&e[ed]||null}function UI(e,t){return e[ed]=t}var kg=[];var V$1=function(e,t=null,n){for(let r=0;r<kg.length;r++){let o=kg[r];o(e,t,n);}};function BI(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=LI()(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s);}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i));}function bm(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:u,ngOnDestroy:l}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),u&&((e.viewHooks??=[]).push(n,u),(e.viewCheckHooks??=[]).push(n,u)),l!=null&&(e.destroyHooks??=[]).push(n,l);}}function Ca(e,t,n){Sm(e,t,3,n);}function ba(e,t,n,r){(e[M$2]&3)===n&&Sm(e,t,n,r);}function zl(e,t){let n=e[M$2];(n&3)===t&&(n&=16383,n+=1,e[M$2]=n);}function Sm(e,t,n,r){let o=r!==void 0?e[lr$1]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[lr$1]+=65536),(a<i||i==-1)&&(HI(e,n,t,c),e[lr$1]=(e[lr$1]&4294901760)+c+2),c++;}function Pg(e,t){V$1(j$5.LifecycleHookStart,e,t);let n=b$1(null);try{t.call(e);}finally{b$1(n),V$1(j$5.LifecycleHookEnd,e,t);}}function HI(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[M$2]>>14<e[lr$1]>>16&&(e[M$2]&3)===t&&(e[M$2]+=16384,Pg(a,i)):Pg(a,i);}var io=-1,yr=class{factory;name;injectImpl;resolving=false;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r;}};function VI(e){return (e.flags&8)!==0}function $I(e){return (e.flags&16)!==0}function zI(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i);}else {let i=o,s=n[++r];GI(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++;}}return r}function Tm(e){return e===3||e===4||e===6}function GI(e){return e.charCodeAt(0)===64}function so(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else {let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?Lg(e,n,o,null,t[++r]):Lg(e,n,o,null,
4null));}}return e}function Lg(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++;}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o);}function _m(e){return e!==io}function Ma(e){return e&32767}function qI(e){return e>>16}function Na(e,t){let n=qI(e),r=t;for(;n>0;)r=r[Tn],n--;return r}var td=true;function Aa(e){let t=td;return td=e,t}var WI=256,Mm=WI-1,Nm=5,ZI=0,kt$2={};function YI(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(cr$1)&&(r=n[cr$1]),r==null&&(r=n[cr$1]=ZI++);let o=r&Mm,i=1<<o;t.data[e+(o>>Nm)]|=i;}function Ra(e,t){let n=Am(e,t);if(n!==-1)return n;let r=t[C$1];r.firstCreatePass&&(e.injectorIndex=t.length,Gl(r.data,e),Gl(t,null),Gl(r.blueprint,null));let o=Pd(e,t),i=e.injectorIndex;if(_m(o)){let s=Ma(o),a=Na(o,t),c=a[C$1].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u];}return t[i+8]=o,i}function Gl(e,t){e.push(0,0,0,0,0,0,0,0,t);}function Am(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Pd(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=Lm(o),r===null)return io;if(n++,o=o[Tn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return io}function nd(e,t,n){YI(e,t,n);}function QI(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o<r;){let i=n[o];if(Tm(i))break;if(i===0)o=o+2;else if(typeof i=="number")for(o++;o<r&&typeof n[o]=="string";)o++;else {if(i===t)return n[o+1];o=o+2;}}}return null}function Rm(e,t,n){if(n&8||e!==void 0)return e;Xs();}function xm(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[Nt$2],i=xe$3(void 0);try{return o?o.get(t,r,n&8):ll(t,r,n&8)}finally{xe$3(i);}}return Rm(r,t,n)}function Om(e,t,n,r=0,o){if(e!==null){if(t[M$2]&2048&&!(r&2)){let s=eC(e,t,n,r,kt$2);if(s!==kt$2)return s}let i=km(e,t,n,r,kt$2);if(i!==kt$2)return i}return xm(t,n,r,o)}function km(e,t,n,r,o){let i=JI(n);if(typeof i=="function"){if(!Ll(t,e,r))return r&1?Rm(o,n,r):xm(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))Xs(n);else return s}finally{Fl();}}else if(typeof i=="number"){let s=null,a=Am(e,t),c=io,u=r&1?t[Oe$4][_e$4]:null;for((a===-1||r&4)&&(c=a===-1?Pd(e,t):t[a+8],c===io||!jg(r,false)?a=-1:(s=t[C$1],a=Ma(c),t=Na(c,t)));a!==-1;){let l=t[C$1];if(Fg(i,a,l.data)){let d=KI(a,t,n,s,r,u);if(d!==kt$2)return d}c=t[a+8],c!==io&&jg(r,t[C$1].data[a+8]===u)&&Fg(i,a,t)?(s=l,a=Ma(c),t=Na(c,t)):a=-1;}}return o}function KI(e,t,n,r,o,i){let s=t[C$1],a=s.data[e+8],c=r==null?tn$1(a)&&td:r!=s&&(a.type&3)!==0,u=o&1&&i===a,l=Sa(a,s,n,c,u);return l!==null?gi$1(t,s,l,a,o):kt$2}function Sa(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,d=r?a:a+l,f=o?a+l:u;for(let h=d;h<f;h++){let g=s[h];if(h<c&&n===g||h>=c&&g.type===n)return h}if(o){let h=s[c];if(h&&Ot$2(h)&&h.type===n)return c}return null}function gi$1(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof yr){let a=i;if(a.resolving)throw ul();let c=Aa(a.canSeeViewProviders);a.resolving=true;s[n].type||s[n];let d=a.injectImpl?xe$3(a.injectImpl):null;Ll(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&BI(n,s[n],t);}finally{d!==null&&xe$3(d),Aa(c),a.resolving=false,Fl();}}return i}function JI(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(cr$1)?e[cr$1]:void 0;return typeof t=="number"?t>=0?t&Mm:XI:t}function Fg(e,t,n){let r=1<<e;return !!(n[t+(e>>Nm)]&r)}function jg(e,t){return !(e&2)&&!(e&1&&t)}var Rn=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n;}get(t,n,r){return Om(this._tNode,this._lView,t,ir$1(r),n)}};function XI(){return new Rn(ue$2(),w$1())}function Pm(e){return Ii$1(()=>{let t=e.prototype.constructor,n=t[Ho]||rd(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Ho]||rd(o);if(i&&i!==n)return i;
vendor: 6,876 bytes, line 4
4o=Object.getPrototypeOf(o);}return i=>new i})}function rd(e){return tl(e)?()=>{let t=rd(we$4(e));return t&&t()}:In(e)}function eC(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[M$2]&2048&&!to(s);){let a=km(i,s,n,r|2,kt$2);if(a!==kt$2)return a;let c=i.parent;if(!c){let u=s[yl];if(u){let l=u.get(n,kt$2,r&-5);if(l!==kt$2)return l}c=Lm(s),s=s[Tn];}i=c;}return o}function Lm(e){let t=e[C$1],n=t.type;return n===2?t.declTNode:n===1?e[_e$4]:null}function Ci$1(e){return QI(ue$2(),e)}function W$6(e){return {token:e.token,providedIn:e.autoProvided===false?null:"root",factory:e.factory,value:void 0}}function tC(){return ho(ue$2(),w$1())}function ho(e,t){return new st$3(nt$2(e,t))}var st$3=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n;}static __NG_ELEMENT_ID__=tC}return e})();function Fm(e){return e instanceof st$3?e.nativeElement:e}function nC(){return this._results[Symbol.iterator]()}var xa=class{_emitDistinctChangesOnly;dirty=true;_onDirty=void 0;_results=[];_changesDetected=false;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new ae$4}constructor(t=false){this._emitDistinctChangesOnly=t;}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t);}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=false;let r=Wp(t);(this._changesDetected=!qp(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0]);}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this);}onDirty(t){this._onDirty=t;}setDirty(){this.dirty=true,this._onDirty?.();}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe());}[Symbol.iterator]=nC};function jm(e){return (e.flags&128)===128}var Ld=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(Ld||{}),Um=new Map,rC=0;function oC(){return rC++}function iC(e){Um.set(e[Rt$2],e);}function od(e){Um.delete(e[Rt$2]);}var Ug="__ngContext__";function ao(e,t){en$1(t)?(e[Ug]=t[Rt$2],iC(t)):e[Ug]=t;}function Bm(e){return Vm(e[Xr$1])}function Hm(e){return Vm(e[Xe$3])}function Vm(e){for(;e!==null&&!et$3(e);)e=e[Xe$3];return e}var id;function Fd(e){id=e;}function jd(){if(id!==void 0)return id;if(typeof document<"u")return document;throw new m$1(210,false)}var $m="r";var zm="di";var Ud=new v$2(""),Gm=false,qm=new v$2("",{factory:()=>Gm});var Za=new v$2("");var Bg=new WeakMap;function sC(e,t){if(e==null||typeof e!="object")return;let n=Bg.get(e);n||(n=new WeakSet,Bg.set(e,n)),n.add(t);}function Ya(e){return (e.flags&32)===32}var uC=()=>null;function Wm(e,t,n=false){return uC()}function Zm(e,t){let n=e.contentQueries;if(n!==null){let r=b$1(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];ti(i),a.contentQueries(2,t[s],s);}}}finally{b$1(r);}}}function sd(e,t,n){ti(0);let r=b$1(null);try{t(e,n);}finally{b$1(r);}}function Bd(e,t,n){if(Dl(t)){let r=b$1(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s);}}}finally{b$1(r);}}}var mt$2=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})(mt$2||{});var Da;function lC(){if(Da===void 0&&(Da=null,Je$2.trustedTypes))try{Da=Je$2.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch{}return Da}function Qa(e){return lC()?.createHTML(e)||e}var Ea;function Ym(){if(Ea===void 0&&(Ea=null,Je$2.trustedTypes))try{Ea=Je$2.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch{}return Ea}function Hg(e){return Ym()?.createHTML(e)||e}function Vg(e){return Ym()?.createScriptURL(e)||e}var on$1=class on{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t;}toString(){return `SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Zs})`}},ad=class extends on$1{getTypeName(){return "HTML"}},cd=class extends on$1{getTypeName(){return "Style"}},ud=class extends on$1{getTypeName(){return "Script"}},ld=class extends on$1{getTypeName(){return "URL"}},dd=class extends on$1{getTypeName(){return "ResourceURL"}};function Pe$3(e){return e instanceof on$1?e.changingThisBreaksApplicationSecurity:e}function Ft$2(e,t){let n=Qm(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return  true;throw new Error(`Required a safe ${t}, got a ${n} (see ${Zs})`)}return n===t}function Qm(e){return e instanceof on$1&&e.getTypeName()||null}function Hd(e){return new ad(e)}function Vd(e){return new cd(e)}function $d(e){return new ud(e)}function zd(e){return new ld(e)}function Gd(e){return new dd(e)}function dC(e){let t=new hd(e);return fC()?new fd(t):t}var fd=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t;}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let n=new window.DOMParser().parseFromString(Qa(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},hd=class{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=Qa(t),n}};function fC(){try{return !!new window.DOMParser().parseFromString(Qa(""),"text/html")}catch{return  false}}var hC=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function bi$1(e){return e=String(e),e.match(hC)?e:"unsafe:"+e}function sn$1(e){let t={};for(let n of e.split(","))t[n]=true;return t}function Si$1(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=true);return t}var Km=sn$1("area,br,col,hr,img,wbr"),Jm=sn$1("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Xm=sn$1("rp,rt"),pC=Si$1(Xm,Jm),gC=Si$1(Jm,sn$1("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),mC=Si$1(Xm,sn$1("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),$g=Si$1(Km,gC,mC,pC),ey=sn$1("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),yC=sn$1("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,c
4olspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),vC=sn$1("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),DC=Si$1(ey,yC,vC),EC=sn$1("script,style,template"),pd=class{sanitizedSomething=false;buf=[];sanitizeChildren(t){let n=t.firstChild,r=true,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=true,r&&n.firstChild){o.push(n),n=CC(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=IC(n);if(i){n=i;break}n=o.pop();}}return this.buf.join("")}startElement(t){let n=zg(t).toLowerCase();if(!$g.hasOwnProperty(n))return this.sanitizedSomething=true,!EC.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o<r.length;o++){let i=r.item(o),s=i.name,a=s.toLowerCase();if(!DC.hasOwnProperty(a)){this.sanitizedSomething=true;continue}let c=i.value;ey[a]&&(c=bi$1(c)),this.buf.push(" ",s,'="',Gg(c),'"');}return this.buf.push(">"),true}endElement(t){let n=zg(t).toLowerCase();$g.hasOwnProperty(n)&&!Km.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"));}chars(t){this.buf.push(Gg(t));}};function wC(e,t){return (e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function IC(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw ty(t);return t}function CC(e){let t=e.firstChild;if(t&&wC(e,t))throw ty(t);return t}function zg(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function ty(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var bC=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,SC=/([^\#-~ |!])/g;function Gg(e){return e.replace(/&/g,"&amp;").replace(bC,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return "&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(SC,function(t){return "&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var wa;function Ka(e,t){let n=null;try{wa=wa||dC(e);let r=t?String(t):"";n=wa.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=wa.getInertBodyElement(r);}while(r!==i);let a=new pd().sanitizeChildren(qg(n)||n);return Qa(a)}finally{if(n){let r=qg(n)||n;for(;r.firstChild;)r.firstChild.remove();}}}function qg(e){return "content"in e&&TC(e)?e.content:null}function TC(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var _C=/^>|^->|<!--|-->|--!>|<!-$/g,MC=/(<|>)/g,NC="\u200B$1\u200B";function AC(e){return e.replace(_C,t=>t.replace(MC,NC))}function RC(e,t){return e.createText(t)}function xC(e,t,n){e.setValue(t,n);}function OC(e,t){return e.createComment(AC(t))}function ny(e,t,n){return e.createElement(t,n)}function Oa(e,t,n,r,o){e.insertBefore(t,n,r,o);}function ry(e,t,n){e.appendChild(t,n);}function Wg(e,t,n,r,o){r!==null?Oa(e,t,n,r,o):ry(e,t,n);}function oy(e,t,n,r){e.removeChild(null,t,n,r);}function kC(e,t,n){e.setAttribute(t,"style",n);}
4function PC(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n);}function iy(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&zI(e,t,r),o!==null&&PC(e,t,o),i!==null&&kC(e,t,i);}var at$3=(function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e[e.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",e})(at$3||{});function LC(e){let t=Wd();return t?Hg(t.sanitize(at$3.HTML,e)||""):Ft$2(e,"HTML")?Hg(Pe$3(e)):Ka(jd(),ft$3(e))}function sy(e){let t=Wd();return t?t.sanitize(at$3.URL,e)||"":Ft$2(e,"URL")?Pe$3(e):bi$1(ft$3(e))}function ay(e){let t=Wd();if(t)return Vg(t.sanitize(at$3.RESOURCE_URL,e)||"");if(Ft$2(e,"ResourceURL"))return Vg(Pe$3(e));throw new m$1(904,false)}var FC={embed:{src:true},frame:{src:true},iframe:{src:true},media:{src:true},base:{href:true},link:{href:true},object:{data:true,codebase:true}};function jC(e,t){return FC[e.toLowerCase()]?.[t.toLowerCase()]===true?ay:sy}function qd(e,t,n){return jC(t,n)(e)}function Wd(){let e=w$1();return e&&e[pt$2].sanitizer}function UC(e){return e.ownerDocument.defaultView}function BC(e){return e.ownerDocument}function HC(e){return e instanceof Function?e():e}function VC(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1;}}var cy="ng-template";function $C(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&VC(t[o+1].toLowerCase(),n,0)!==-1)return  true}else if(Zd(e))return  false;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return  true}return  false}function Zd(e){return e.type===4&&e.value!==cy}function zC(e,t,n){let r=e.type===4&&!n?cy:e.value;return t===r}function GC(e,t,n){let r=4,o=e.attrs,i=o!==null?ZC(o):0,s=false;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!gt$2(r)&&!gt$2(c))return  false;if(s&&gt$2(c))continue;s=false,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!zC(e,c,n)||c===""&&t.length===1){if(gt$2(r))return  false;s=true;}}else if(r&8){if(o===null||!$C(e,o,c,n)){if(gt$2(r))return  false;s=true;}}else {let u=t[++a],l=qC(c,o,Zd(e),n);if(l===-1){if(gt$2(r))return  false;s=true;continue}if(u!==""){let d;if(l>i?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(gt$2(r))return  false;s=true;}}}}return gt$2(r)||s}function gt$2(e){return (e&1)===0}function qC(e,t,n,r){if(t===null)return  -1;let o=0;if(r||!n){let i=false;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=true;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else {if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2;}return  -1}else return YC(t,e)}function uy(e,t,n=false){for(let r=0;r<t.length;r++)if(GC(e,t[r],n))return  true;return  false}function WC(e){let t=e.attrs;if(t!=null){let n=t.indexOf(5);if((n&1)===0)return t[n+1]}return null}function ZC(e){for(let t=0;t<e.length;t++){let n=e[t];if(Tm(n))return t}return e.length}function YC(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return  -1;if(r===t)return n;n++;}return  -1}function QC(e,t){e:for(let n=0;n<t.length;n++){let r=t[n];if(e.length===r.length){for(let o=0;o<e.length;o++)if(e[o]!==r[o])continue e;return  true}}return  false}function Zg(e,t){return e?":not("+t.trim()+")":t}function KC(e){let t=e[0],n=1,r=2,o="",i=false;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]";}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!gt$2(s)&&(t+=Zg(i,o),o=""),r=s,i=i||!gt$2(r);n++;}return o!==""&&(t+=Zg(i,o)),t}function JC(e){return e.map(KC).join(",")}function XC(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else {if(!gt$2(o))break;o=i;}r++;}return n.length&&t.push(1,...n),t}var De$3={},Pt$2=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(Pt$2||{}),eb;function Yd(e,t){return eb(e,t)}typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var gd=new WeakMap;function ly(e){return e?e[Tn]??e:null}var di$1=new WeakSet;function tb(e,t,n){let r=gd.get(e);if(!r||r.length===0)return;let o=t.parentNode,i=t.previousSibling,s=ly(n);for(let a=r.length-1;a>=0;a--){let{el:c,declarationView:u}=r[a],l=c.parentNode;c===t?(r.splice(a,1),di$1.add(c),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:true}}))):i&&c===i?(r.splice(a,1),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:true}})),c.parentNode?.removeChild(c)):l&&o&&l!==o&&(s===null||u===null||s===u)&&(r.splice(a,1),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:true}})),c.parentNode?.removeChild(c));}}function nb(e,t,n){let r=ly(n),o=gd.get(e);o?o.some(i=>i.el===t)||o.push({el:t,declarationView:r}):gd.set(e,[{el:t,declarationView:r}]);}var xn=new Set,Ja=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(Ja||{}),jt$2=new v$2(""),Yg=new Set;function He$1(e){Yg.has(e)||(Yg.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}));}var Qd=(()=>{class e{impl=null;execute(){this.impl?.execute();}static \u0275prov=S$4({token:e,providedIn:"root",factory:()=>new e})}return e})(),dy=[0,1,2,3],fy=(()=>{class e{ngZone=p$1(ve$2);
vendor: 23,081 bytes, line 4
4scheduler=p$1(Kt$2);errorHandler=p$1(Qe$2,{optional:true});sequences=new Set;deferredRegistrations=new Set;executing=false;constructor(){p$1(jt$2,{optional:true});}execute(){let n=this.sequences.size>0;n&&V$1(j$5.AfterRenderHooksStart),this.executing=true;for(let r of dy)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[r]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let i=o.hooks[r];return i(o.pipelinedValue)},o.snapshot));}catch(i){o.erroredOrDestroyed=true,this.errorHandler?.handleError(i);}this.executing=false;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&V$1(j$5.AfterRenderHooksEnd);}register(n){let{view:r}=n;r!==void 0?((r[dr$1]??=[]).push(n),pr$1(r),r[M$2]|=8192):this.executing?this.deferredRegistrations.add(n):this.addSequence(n);}addSequence(n){this.sequences.add(n),this.scheduler.notify(7);}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=true,n.pipelinedValue=void 0,n.once=true):(this.sequences.delete(n),this.deferredRegistrations.delete(n));}maybeTrace(n,r){return r?r.run(Ja.AFTER_NEXT_RENDER,n):n()}static \u0275prov=S$4({token:e,providedIn:"root",factory:()=>new e})}return e})(),ka=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=false;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,o,i,s=null){this.impl=t,this.hooks=n,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy());}afterRun(){this.erroredOrDestroyed=false,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null;}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let t=this.view?.[dr$1];t&&(this.view[dr$1]=t.filter(n=>n!==this));}};function Xa(e,t){let n=t?.injector??p$1(Ie$3);return He$1("NgAfterNextRender"),ob(e,n,t,true)}function rb(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function ob(e,t,n,r){let o=t.get(Qd);o.impl??=t.get(fy);let i=t.get(jt$2,null,{optional:true}),s=n?.manualCleanup!==true?t.get(ke$2):null,a=t.get(si,null,{optional:true}),c=new ka(o.impl,rb(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var Kd=new v$2("",{factory:()=>{let e=p$1(te$4),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:false,scheduler:null,injector:e}}});function hy(e,t,n){let r=e.get(Kd);if(Array.isArray(t))for(let o of t)r.queue.add(o),n?.detachedLeaveAnimationFns?.push(o);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e);}function ib(e,t){let n=e.get(Kd);if(Array.isArray(t))for(let r of t)n.queue.delete(r);else n.queue.delete(t);}function sb(e,t){let n=e.get(Kd);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0;}}function ab(e,t){for(let[n,r]of t)hy(e,r.animateFns);}function Qg(e,t,n,r){let o=e?.[xt$2]?.enter;t!==null&&o&&o.has(n.index)&&ab(r,o);}function Kg(e,t,n,r){try{n.get(Yo);}catch{return r(false)}let o=e?.[xt$2];o?.enter?.has(t.index)&&ib(n,o.enter.get(t.index).animateFns);let i=cb(e,t,o);if(i.size===0){let s=false;if(e){let a=[];ec(e,t,a),s=a.length>0;}if(!s)return r(false)}e&&xn.add(e[Rt$2]),hy(n,()=>ub(e,t,o||void 0,i,r),o||void 0);}function cb(e,t,n){let r=new Map,o=n?.leave;if(o&&o.has(t.index)&&r.set(t.index,o.get(t.index)),e&&o)for(let[i,s]of o){if(r.has(i))continue;let c=e[C$1].data[i].parent;for(;c;){if(c===t){r.set(i,s);break}c=c.parent;}}return r}function ub(e,t,n,r,o){let i=[];if(n&&n.leave)for(let[s]of r){if(!n.leave.has(s))continue;let a=n.leave.get(s);for(let c of a.animateFns){let{promise:u}=c();i.push(u);}n.detachedLeaveAnimationFns=void 0;}if(e&&ec(e,t,i),i.length>0){let s=n||e?.[xt$2];if(s){let a=s.running;a&&i.push(a),s.running=Promise.allSettled(i),db(e,s.running,o);}else Promise.allSettled(i).then(()=>{e&&xn.delete(e[Rt$2]),o(true);});}else e&&xn.delete(e[Rt$2]),o(false);}function ec(e,t,n){if(t.type&12){let o=e[t.index];if(et$3(o))for(let i=re$4;i<o.length;i++){let s=o[i];s[C$1].type===2&&lb(s,n);}}let r=t.child;for(;r;)ec(e,r,n),r=r.next;}function lb(e,t){let n=e[xt$2];if(n&&n.leave)for(let o of n.leave.values())for(let i of o.animateFns){let{promise:s}=i();t.push(s);}let r=e[C$1].firstChild;for(;r;)ec(e,r,t),r=r.next;}function db(e,t,n){t.then(()=>{e[xt$2]?.running===t&&(e[xt$2].running=void 0,xn.delete(e[Rt$2])),n(true);});}function oo(e,t,n,r,o,i,s,a){if(o!=null){let c,u=false;et$3(o)?c=o:en$1(o)&&(u=true,o=o[ht$3]);let l=tt$3(o);e===0&&r!==null?(Qg(a,r,i,n),s==null?ry(t,r,l):Oa(t,r,l,s||null,true)):e===1&&r!==null?(Qg(a,r,i,n),Oa(t,r,l,s||null,true),tb(i,l,a)):e===2?(a?.[xt$2]?.leave?.has(i.index)&&nb(i,l,a),di$1.delete(l),Kg(a,i,n,d=>{if(di$1.has(l)){di$1.delete(l);return}oy(t,l,u,d);})):e===3&&(di$1.delete(l),Kg(a,i,n,()=>{t.destroyNode(l);})),c!=null&&wb(t,e,n,c,i,r,s);}}function fb(e,t){py(e,t),t[ht$3]=null,t[_e$4]=null;}function hb(e,t,n,r,o,i){r[ht$3]=o,r[_e$4]=t,nc(e,r,n,1,o,i);}function py(e,t){t[pt$2].changeDetectionScheduler?.notify(9),nc(e,t,t[$$3],2,null,null);}function pb(e){let t=e[Xr$1];if(!t)return ql(e[C$1],e);for(;t;){let n=null;if(en$1(t))n=t[Xr$1];else {let r=t[re$4];r&&(n=r);}if(!n){for(;t&&!t[Xe$3]&&t!==e;)en$1(t)&&ql(t[C$1],t),t=t[pe$1];t===null&&(t=e),en$1(t)&&ql(t[C$1],t),n=t&&t[Xe$3];}t=n;}}function Jd(e,t){let n=e[fr$1],r=n.indexOf(t);n.splice(r,1);}function tc(e,t){if(hr$1(t))return;let n=t[$$3];n.destroyNode&&nc(e,t,n,3,null,null),pb(t);}function ql(e,t){if(hr$1(t))return;let n=b$1(null);try{t[M$2]&=-129,t[M$2]|=256,t[Ge$1]&&nr$1(t[Ge$1]),mb(e,t),gb(e,t),t[C$1].type===1&&t[$$3].destroy();let r=t[_n$1];if(r!==null&&et$3(t[pe$1])){r!==t[pe$1]&&Jd(r,t);let o=t[At$2];o!==null&&o.detachView(e);}od(t);}finally{b$1(n);}}function gb(e,t){let n=e.cleanup,r=t[Jr$1];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2;}else {let a=r[n[s+1]];n[s].call(a);}r!==null&&(t[Jr$1]=null);let o=t[Yt$2];if(o!==null){t[Yt$2]=null;for(let s=0;s<o.length;s++){let a=o[s];a();}}let i=t[Cn$1];if(i!==null){t[Cn$1]=null;for(let s of i)s.destroy();}}function mb(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof yr)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];V$1(j$5.LifecycleHookStart,a,c);try{c.call(a);}finally{V$1(j$5.LifecycleHookEnd,a,c);}}else {V$1(j$5.LifecycleHookStart,o,i);try{i.call(o);}finally{V$1(j$5.LifecycleHookEnd,o,i);}}}}}function gy(e,t,n){return yb(e,t.parent,n)}function yb(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[ht$3];if(tn$1(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===mt$2.None||o===mt$2.Emulated)return null}return nt$2(r,n)}function my(e,t,n){return Db(e,t,n)}function vb(e,t,n){return e.type&40?nt$2(e,n):null}var Db=vb;function Xd(e,t,n,r){let o=gy(e,r,t),i=t[$$3],s=r.parent||t[_e$4],a=my(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Wg(i,o,n[c],a,false);else Wg(i,o,n,a,false);}function fi$1(e,t){if(t!==null){let n=t.type;if(n&3)return nt$2(t,e);if(n&4)return md(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return fi$1(e,r);{let o=e[t.index];return et$3(o)?md(-1,o):tt$3(o)}}else {if(n&128)return fi$1(e,t.next);if(n&32)return Yd(t,e)()||tt$3(e[t.index]);{let r=yy(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Qt$2(e[Oe$4]);return fi$1(o,r)}else return fi$1(e,t.next)}}}return null}function yy(e,t){if(t!==null){let r=e[Oe$4][_e$4],o=t.projection;return r.projection[o]}return null}function md(e,t){let n=re$4+e+1;if(n<t.length){let r=t[n],o=r[C$1].firstChild;if(o!==null)return fi$1(r,o)}return t[Mn]}function ef(e,t,n,r,o,i,s){for(;n!=null;){let a=r[Nt$2];if(n.type===128){n=n.next;continue}let c=r[n.index],u=n.type;if(s&&t===0&&(c&&ao(tt$3(c),r),n.flags|=2),!Ya(n))if(u&8)ef(e,t,n.child,r,o,i,false),oo(t,e,a,o,c,n,i,r);else if(u&32){let l=Yd(n,r),d;for(;d=l();)oo(t,e,a,o,d,n,i,r);oo(t,e,a,o,c,n,i,r);}else u&16?vy(e,t,r,n,o,i):oo(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next;}}function nc(e,t,n,r,o,i){ef(n,r,e.firstChild,t,o,i,false);}function Eb(e,t,n){let r=t[$$3],o=gy(e,n,t),i=n.parent||t[_e$4],s=my(i,n,t);vy(r,0,t,n,o,s);}function vy(e,t,n,r,o,i){let s=n[Oe$4],c=s[_e$4].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];oo(t,e,n[Nt$2],o,l,r,i,n);}else {let u=c,l=s[pe$1];jm(r)&&(u.flags|=128),ef(e,t,u,l,o,i,true);}}function wb(e,t,n,r,o,i,s){let a=r[Mn],c=tt$3(r);a!==c&&oo(t,e,n,i,a,o,s);for(let u=re$4;u<r.length;u++){let l=r[u];nc(l[C$1],l,e,t,i,a);}}function Ib(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else {let i=r.indexOf("-")===-1?void 0:Pt$2.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Pt$2.Important),e.setStyle(n,r,o,i));}}function tf(e,t,n,r,o,i,s,a,c,u,l){let d=q$3+r,f=d+o,h=Cb(d,f),g=typeof u=="function"?u():u;return h[C$1]={type:e,blueprint:h,template:n,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:f,hostBindingOpCodes:null,firstCreatePass:true,firstUpdatePass:true,staticViewQueries:false,staticContentQueries:false,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:g,incompleteFirstPass:false,ssrId:l}}function Cb(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:De$3);return n}function bb(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=tf(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function nf(e,t,n,r,o,i,s,a,c,u,l){let d=t.blueprint.slice();return d[ht$3]=o,d[M$2]=r|4|128|8|64|1024,(u!==null||e&&e[M$2]&2048)&&(d[M$2]|=2048),Il(d),d[pe$1]=d[Tn]=e,d[se$3]=n,d[pt$2]=s||e&&e[pt$2],d[$$3]=a||e&&e[$$3],d[Nt$2]=c||e&&e[Nt$2]||null,d[_e$4]=i,d[Rt$2]=oC(),d[ur$1]=l,d[yl]=u,d[Oe$4]=t.type==2?e[Oe$4]:d,d}function Sb(e,t,n){let r=nt$2(t,e),o=bb(n),i=e[pt$2].rendererFactory,s=rf(e,nf(e,o,null,Dy(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function Dy(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Ey(e,t,n,r){if(n===0)return  -1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function rf(e,t){return e[Xr$1]?e[ml][Xe$3]=t:e[Xr$1]=t,e[ml]=t,t}function Tb(e=1){wy(z$1(),w$1(),it$3()+e);}function wy(e,t,n,r){if((t[M$2]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Ca(t,i,n);}else {let i=e.preOrderHooks;i!==null&&ba(t,i,0,n);}An(n);}var rc=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(rc||{});function vr$1(e,t,n,r){let o=b$1(null);try{let[i,s,a]=e.inputs[n],c=null;(s&rc.SignalBased)!==0&&(c=t[i][ce$3]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):wm(t,c,i,r);}finally{b$1(o);}}function Iy(e,t,n,r,o){let i=it$3(),s=r&2;try{An(-1),s&&t.length>q$3&&wy(e,t,q$3,!1);let a=s?j$5.TemplateUpdateStart:j$5.TemplateCreateStart;V$1(a,o,n),n(r,o);}finally{An(i);let a=s?j$5.TemplateUpdateEnd:j$5.TemplateCreateEnd;V$1(a,o,n);}}function oc(e,t,n){xb(e,t,n),(n.flags&64)===64&&Ob(e,t,n);}function Ti$1(e,t,n=nt$2){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a;}}}function _b(e,t,n,r){let i=r.get(qm,Gm)||n===mt$2.ShadowDom||n===mt$2.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);return s}function Ab(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Cy(e,t,n,r,o,i){let s=t[C$1];if(cf(e,s,t,n,r)){tn$1(e)&&Rb(t,e.index);return}e.type&3&&(n=Ab(n)),by(e,t,n,r,o,i);}function by(e,t,n,r,o,i){if(e.type&3){let s=nt$2(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r);}else e.type&12;}function Rb(e,t){let n=rt$4(t,e);n[M$2]&16||(n[M$2]|=64);}function xb(e,t,n){let r=n.directiveStart,o=n.directiveEnd;tn$1(n)&&Sb(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Ra(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=gi$1(t,e,s,n);if(ao(c,t),i!==null&&Fb(t,s-r,c,a,n,i),Ot$2(a)){let u=rt$4(n.index,t);u[se$3]=gi$1(t,e,s,n);}}}function Ob(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=mg();try{An(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];ca(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&kb(c,u);}}finally{An(-1),ca(s);}}function kb(e,t){e.hostBindings!==null&&e.hostBindings(1,t);}function of(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];uy(t,i.selectors,false)&&(r??=[],Ot$2(i)?r.unshift(i):r.push(i));}return r}function Pb(e,t,n,r,o,i){let s=nt$2(e,t);Lb(t[$$3],s,i,e.value,n,r,o);}function Lb(e,t,n,r,o,i,s){if(i==null)s?.(i,r||"",o),e.removeAttribute(t,o,n);else {let a=s==null?ft$3(i):s(i,r||"",o);e.setAttribute(t,o,a,n);}}function Fb(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],u=s[a+1];vr$1(r,n,c,u);}}function sf(e,t,n,r,o){let i=q$3+n,s=t[C$1],a=o(s,t,e,r,n);t[i]=a,gr$1(e,true);let c=e.type===2;return c?(iy(t[$$3],a,e),(cg()===0||eo(e))&&ao(a,t),ug()):ao(a,t),fa()&&(!c||!Ya(e))&&Xd(s,t,a,e),e}function af(e){let t=e;return Rl()?xl():(t=t.parent,gr$1(t,false)),t}function jb(e,t){let n=e[Nt$2];if(!n)return;let r;try{r=n.get(qe$3,null);}catch{r=null;}r?.(t);}function cf(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=false;if(s)for(let c=0;c<s.length;c+=2){let u=s[c],l=s[c+1],d=t.data[u];vr$1(d,n[u],l,o),a=true;}if(i)for(let c of i){let u=n[c],l=t.data[c];vr$1(l,u,r,o),a=true;}return a}function Ub(e,t,n,r,o,i){let s=null,a=null,c=null,u=false,l=e.directiveToIndex.get(r.type);if(typeof l=="number"?s=l:[s,a,c]=l,a!==null&&c!==null&&e.hostDirectiveInputs?.hasOwnProperty(o)){let d=e.hostDirectiveInputs[o];for(let f=0;f<d.length;f+=2){let h=d[f];if(h>=a&&h<=c){let g=t.data[h],D=d[f+1];vr$1(g,n[h],D,i),u=true;}else if(h>c)break}}return s!==null&&r.inputs.hasOwnProperty(o)&&(vr$1(r,n[s],o,i),u=true),u}function Bb(e,t){let n=rt$4(t,e),r=n[C$1];Hb(r,n);let o=n[ht$3];o!==null&&n[ur$1]===null&&(n[ur$1]=Wm(o,n[Nt$2])),V$1(j$5.ComponentStart);try{uf(r,n,n[se$3]);}finally{V$1(j$5.ComponentEnd,n[se$3]);}}function Hb(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n]);}function uf(e,t,n){la(t);try{let r=e.viewQuery;r!==null&&sd(1,r,n);let o=e.template;o!==null&&Iy(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[At$2]?.finishViewCreation(e),e.staticContentQueries&&Zm(e,t),e.staticViewQueries&&sd(2,e.viewQuery,n);let i=e.components;i!==null&&Vb(t,i);}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=true,e.firstCreatePass=false),r}finally{t[M$2]&=-5,da();}}function Vb(e,t){for(let n=0;n<t.length;n++)Bb(e,t[n]);}function _i$1(e,t,n,r){let o=b$1(null);try{let i=t.tView,a=e[M$2]&4096?4096:16,c=nf(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];c[_n$1]=u;let l=e[At$2];return l!==null&&(c[At$2]=l.createEmbeddedView(i)),uf(i,c,n),c}finally{b$1(o);}}function co(e,t){return !t||t.firstChild===null||jm(e)}function mi$1(e,t,n,r,o=false){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(tt$3(i)),et$3(i)&&Sy(i,r);let s=n.type;if(s&8)mi$1(e,t,n.child,r);else if(s&32){let a=Yd(n,t),c;for(;c=a();)r.push(c);}else if(s&16){let a=yy(t,n);if(Array.isArray(a))r.push(...a);else {let c=Qt$2(t[Oe$4]);mi$1(c[C$1],c,a,r,true);}}n=o?n.projectionNext:n.next;}return r}function Sy(e,t){for(let n=re$4;n<e.length;n++){let r=e[n],o=r[C$1].firstChild;o!==null&&mi$1(r[C$1],r,o,t);}e[Mn]!==e[ht$3]&&t.push(e[Mn]);}function Ty(e){if(e[dr$1]!==null){for(let t of e[dr$1])t.impl.addSequence(t);e[dr$1].length=0;}}var _y=[];function $b(e){return e[Ge$1]??zb(e)}function zb(e){let t=_y.pop()??Object.create(qb);return t.lView=e,t}function Gb(e){e.lView[Ge$1]!==e&&(e.lView=null,_y.push(e));}var qb=m$2(l$1({},En),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{pr$1(e.lView);},consumerOnSignalRead(){this.lView[Ge$1]=this;}});function Wb(e){let t=e[Ge$1]??Object.create(Zb);return t.lView=e,t}var Zb=m$2(l$1({},En),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{let t=Qt$2(e.lView);for(;t&&!My(t[C$1]);)t=Qt$2(t);t&&Cl(t);},consumerOnSignalRead(){this.lView[Ge$1]=this;}});function My(e){return e.type!==2}function Ny(e){if(e[Cn$1]===null)return;let t=true;for(;t;){let n=false;for(let r of e[Cn$1])r.dirty&&(n=true,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[M$2]&8192);}}var Yb=100;function Ay(e,t=0){let r=e[pt$2].rendererFactory;r.begin?.();try{Qb(e,t);}finally{r.end?.();}}function Qb(e,t){let n=kl();try{Vo(!0),yd(e,t);let r=0;for(;Xo(e);){if(r===Yb)throw new m$1(103,!1);r++,yd(e,1);}}finally{Vo(n);}}function Kb(e,t,n,r){if(hr$1(t))return;let o=t[M$2],i=false,s=false;la(t);let a=true,c=null,u=null;(My(e)?(u=$b(t),c=wn(u)):js()===null?(a=false,u=Wb(t),c=wn(u)):t[Ge$1]&&(nr$1(t[Ge$1]),t[Ge$1]=null));try{Il(t),hg(e.bindingStartIndex),n!==null&&Iy(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let h=e.preOrderCheckHooks;h!==null&&Ca(t,h,null);}else {let h=e.preOrderHooks;h!==null&&ba(t,h,0,null),zl(t,0);}if(s||Jb(t),Ny(t),Ry(t,0),e.contentQueries!==null&&Zm(e,t),!i)if(l){let h=e.contentCheckHooks;h!==null&&Ca(t,h);}else {let h=e.contentHooks;h!==null&&ba(t,h,1),zl(t,1);}eS(e,t);let d=e.components;d!==null&&Oy(t,d,0);let f=e.viewQuery;if(f!==null&&sd(2,f,r),!i)if(l){let h=e.viewCheckHooks;h!==null&&Ca(t,h);}else {let h=e.viewHooks;h!==null&&ba(t,h,2),zl(t,2);}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[na]){for(let h of t[na])h();t[na]=null;}i||(Ty(t),t[M$2]&=-73);}catch(l){throw pr$1(t),l}finally{u!==null&&(tr$1(u,c),a&&Gb(u)),da();}}function Ry(e,t){for(let n=Bm(e);n!==null;n=Hm(n))for(let r=re$4;r<n.length;r++){let o=n[r];xy(o,t);}}function Jb(e){for(let t=Bm(e);t!==null;t=Hm(t)){if(!(t[M$2]&2))continue;let n=t[fr$1];for(let r=0;r<n.length;r++){let o=n[r];Cl(o);}}}function Xb(e,t,n){V$1(j$5.ComponentStart);let r=rt$4(t,e);try{xy(r,n);}finally{V$1(j$5.ComponentEnd,r[se$3]);}}function xy(e,t){oa(e)&&yd(e,t);}function yd(e,t){let r=e[C$1],o=e[M$2],i=e[Ge$1],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&Lo(i)),s||=false,i&&(i.dirty=false),e[M$2]&=-9217,s)Kb(r,e,r.template,e[se$3]);else if(o&8192){let a=b$1(null);try{Ny(e),Ry(e,1);let c=r.components;c!==null&&Oy(e,c,1),Ty(e);}finally{b$1(a);}}}function Oy(e,t,n){for(let r=0;r<t.length;r++)Xb(e,t[r],n);}function eS(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)An(~o);else {let i=o,s=n[++r],a=n[++r];gg(s,i);let c=t[i];V$1(j$5.HostBindingsUpdateStart,c);try{a(2,c);}finally{V$1(j$5.HostBindingsUpdateEnd,c);}}}}finally{An(-1);}}function lf(e,t){let n=kl()?64:1088;for(e[pt$2].changeDetectionScheduler?.notify(t);e;){e[M$2]|=n;let r=Qt$2(e);if(to(e)&&!r)return e;e=r;}return null}function ky(e,t,n,r){return [e,true,0,t,null,r,null,n,null,null]}function Py(e,t){let n=re$4+t;if(n<e.length)return e[n]}function Mi$1(e,t,n,r=true){let o=t[C$1];if(tS(o,t,e,n),r){let s=md(n,e),a=t[$$3],c=a.parentNode(e[Mn]);c!==null&&hb(o,e[_e$4],a,t,c,s);}let i=t[ur$1];i!==null&&i.firstChild!==null&&(i.firstChild=null);}function Ly(e,t){let n=yi$1(e,t);return n!==void 0&&tc(n[C$1],n),n}function yi$1(e,t){if(e.length<=re$4)return;let n=re$4+t,r=e[n];if(r){let o=r[_n$1];o!==null&&o!==e&&Jd(o,r),t>0&&(e[n-1][Xe$3]=r[Xe$3]);let i=Wo(e,re$4+t);fb(r[C$1],r);let s=i[At$2];s!==null&&s.detachView(i[C$1]),r[pe$1]=null,r[Xe$3]=null,r[M$2]&=-129;}return r}function tS(e,t,n,r){let o=re$4+r,i=n.length;r>0&&(n[o-1][Xe$3]=t),r<i-re$4?(t[Xe$3]=n[o],dl(n,re$4+r,t)):(n.push(t),t[Xe$3]=null),t[pe$1]=n;let s=t[_n$1];s!==null&&n!==s&&Fy(s,t);let a=t[At$2];a!==null&&a.insertView(e),ia(t),t[M$2]|=128;}function Fy(e,t){let n=e[fr$1],r=t[pe$1];if(en$1(r))e[M$2]|=2;else {let o=r[pe$1][Oe$4];t[Oe$4]!==o&&(e[M$2]|=2);}n===null?e[fr$1]=[t]:n.push(t);}var On=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=false;exhaustive;get rootNodes(){let t=this._lView,n=t[C$1];return mi$1(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n;}get context(){return this._lView[se$3]}set context(t){this._lView[se$3]=t;}get destroyed(){return hr$1(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[pe$1];if(et$3(t)){let n=t[Ko],r=n?n.indexOf(this):-1;r>-1&&(yi$1(t,r),Wo(n,r));}this._attachedToViewContainer=false;}tc(this._lView[C$1],this._lView);}onDestroy(t){sa(this._lView,t);}markForCheck(){lf(this._cdRefInjectingView||this._lView,4);}detach(){this._lView[M$2]&=-129;}reattach(){ia(this._lView),this._lView[M$2]|=128;}detectChanges(){this._lView[M$2]|=1024,Ay(this._lView);}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new m$1(902,false);this._attachedToViewContainer=true;}detachFromAppRef(){this._appRef=null;let t=to(this._lView),n=this._lView[_n$1];n!==null&&!t&&Jd(n,this._lView),py(this._lView[C$1],this._lView);}attachToAppRef(t){if(this._attachedToViewContainer)throw new m$1(902,false);this._appRef=t;let n=to(this._lView),r=this._lView[_n$1];r!==null&&!n&&Fy(r,this._lView),ia(this._lView);}};var uo=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=nS;constructor(n,r,o){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=o;}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,o){let i=_i$1(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new On(i)}}return e})();function nS(){return ic(ue$2(),w$1())}function ic(e,t){return e.type&4?new uo(t,e,ho(e,t)):null}function Cr$1(e,t,n,r,o){let i=e.data[t];if(i===null)i=rS(e,t,n,r,o),pg()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=fg();i.injectorIndex=s===null?-1:s.injectorIndex;}return gr$1(i,true),i}function rS(e,t,n,r,o){let i=Al(),s=Rl(),a=s?i:i&&i.parent,c=e.data[t]=iS(e,a,n,t,r,o);return oS(e,c,i,s),c}function oS(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n));}function iS(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return _l()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,
4customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,namespace:jl(),attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function sS(e){let t=e[vl]??[],r=e[pe$1][$$3],o=[];for(let i of t)i.data[zm]!==void 0?o.push(i):aS(i,r);e[vl]=o;}function aS(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[$m];for(;n<o;){let i=r.nextSibling;oy(t,r,false),r=i,n++;}}}var cS=()=>null,uS=()=>null;function Pa(e,t){return cS()}function jy(e,t,n){return uS()}var Uy=class{},Dr$1=class Dr{},kn=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>lS()}return e})();function lS(){let e=w$1(),t=ue$2(),n=rt$4(t.index,e);return (en$1(n)?n:e)[$$3]}var By=(()=>{class e{static \u0275prov=S$4({token:e,providedIn:"root",factory:()=>null})}return e})();function Hy(e){return e.debugInfo?.className||e.type.name||null}var Ta={},La=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n;}get(t,n,r){let o=this.injector.get(t,Ta,r);return o!==Ta||n===Ta?o:this.parentInjector.get(t,n,r)}};function sc(e,t,n){return e[t]=n}function dS(e,t){return e[t]}function Be$1(e,t,n){if(n===De$3)return  false;let r=e[t];return Object.is(r,n)?false:(e[t]=n,true)}function vi$1(e,t,n,r){let o=Be$1(e,t,n);return Be$1(e,t+1,r)||o}function fS(e,t,n,r,o){let i=vi$1(e,t,n,r);return Be$1(e,t+2,o)||i}function hS(e,t,n,r,o,i){let s=vi$1(e,t,n,r);return vi$1(e,t+2,o,i)||s}function mr$1(e,t,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&sC(o,i);let s=tn$1(e)?rt$4(e.index,t):t;lf(s,5);let a=t[se$3],c=Xg(t,a,n,o),u=r.__ngNextListenerFn__;for(;u;)c=Xg(t,a,u,o)&&c,u=u.__ngNextListenerFn__;return c}}function Xg(e,t,n,r){let o=b$1(null);try{return V$1(j$5.OutputStart,t,n),n(r)!==!1}catch(i){return jb(e,i),false}finally{V$1(j$5.OutputEnd,t,n),b$1(o);}}function df(e,t,n,r,o,i,s,a){let c=eo(e),u=false,l=null;if(!r&&c&&(l=gS(t,n,i,e.index)),l!==null){let d=l.__ngLastListenerFn__||l;d.__ngNextListenerFn__=s,l.__ngLastListenerFn__=s,u=true;}else {let d=nt$2(e,n),f=r?r(d):d;r||(a.__ngNativeEl__=d);let h=o.listen(f,i,a);if(!pS(i)){let g=r?D=>r(tt$3(D[e.index])):e.index;Vy(g,t,n,i,a,h,false);}}return u}function pS(e){return e.startsWith("animation")||e.startsWith("transition")}function gS(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[Jr$1],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2);}return null}function Vy(e,t,n,r,o,i,s){let a=t.firstCreatePass?Sl(t):null,c=bl(n),u=c.length;c.push(o,i),a&&a.push(r,e,u,(u+1)*(s?-1:1));}function em(e,t,n,r,o){let i=null,s=null,a=null,c=false,u=e.directiveToIndex.get(n.type);if(typeof u=="number"?i=u:[i,s,a]=u,s!==null&&a!==null&&e.hostDirectiveOutputs?.hasOwnProperty(r)){let l=e.hostDirectiveOutputs[r];for(let d=0;d<l.length;d+=2){let f=l[d];if(f>=s&&f<=a)c=true,Fa(e,t,f,l[d+1],r,o);else if(f>a)break}}return n.outputs.hasOwnProperty(r)&&(c=true,Fa(e,t,i,r,r,o)),c}function Fa(e,t,n,r,o,i){let s=t[n],a=t[C$1],u=a.data[n].outputs[r],d=s[u].subscribe(i);Vy(e.index,a,t,o,i,d,true);}function mS(){yS();}function yS(){let e=w$1(),t=z$1(),n=ue$2();if(t.firstCreatePass&&ES(t,n),n.controlDirectiveIndex===-1)return;He$1("NgSignalForms");let r=e[n.controlDirectiveIndex];t.data[n.controlDirectiveIndex].controlDef.create(r,new ja(e,t,n));}function vS(){DS();}function DS(){let e=w$1(),t=z$1(),n=ro();if(n.controlDirectiveIndex===-1)return;let r=t.data[n.controlDirectiveIndex].controlDef,o=e[n.controlDirectiveIndex];r.update(o,new ja(e,t,n));}var ja=class{lView;tView;tNode;hasPassThrough;constructor(t,n,r){this.lView=t,this.tView=n,this.tNode=r,this.hasPassThrough=!!(r.flags&4096);}get customControl(){return this.tNode.customControlIndex!==-1?this.lView[this.tNode.customControlIndex]:void 0}get nativeElement(){return nt$2(this.tNode,this.lView)}get descriptor(){return `<${this.tNode.value}>`}listenToCustomControlOutput(t,n){let r=this.tView.data[this.tNode.customControlIndex];em(this.tNode,this.lView,r,t,mr$1(this.tNode,this.lView,n));}listenToCustomControlModel(t){let n=this.tNode.flags&1024?"valueChange":"checkedChange",r=this.tView.data[this.tNode.customControlIndex];em(this.tNode,this.lView,r,n,mr$1(this.tNode,this.lView,t));}listenToDom(t,n){df(this.tNode,this.tView,this.lView,void 0,this.lView[$$3],t,n,mr$1(this.tNode,this.lView,n));}
4setInputOnDirectives(t,n){let r=this.tNode.inputs?.[t],o=this.tNode.hostDirectiveInputs?.[t];if(!r&&!o)return  false;let i=false;if(r)for(let s of r){if(s===this.tNode.controlDirectiveIndex)continue;let a=this.tView.data[s],c=this.lView[s];vr$1(a,c,t,n),i=true;}if(o)for(let s=0;s<o.length;s+=2){let a=o[s];if(a===this.tNode.controlDirectiveIndex)continue;let c=o[s+1],u=this.tView.data[a],l=this.lView[a];vr$1(u,l,c,n),i=true;}return i}setCustomControlModelInput(t){let n=this.tView.data[this.tNode.customControlIndex],r=this.tNode.flags&1024?"value":"checked";Ub(this.tNode,this.tView,this.lView,n,r,t);}customControlHasInput(t){if(this.tNode.customControlIndex===-1)return  false;let n=this.tView.data[this.tNode.customControlIndex];return (n.signalFormsInputPresence??=this._buildCustomControlInputCache(n))[t]===true}_buildCustomControlInputCache(t){let n={};for(let r in t.inputs)n[r]=true;if(t.hostDirectives!==null){let r=[...t.hostDirectives];for(;r.length>0;){let o=r.shift();if(typeof o!="function"){for(let s in o.inputs)n[o.inputs[s]]=true;let i=tm(o.directive);i!==null&&r.push(...i);continue}for(let i of o()){if(typeof i=="function")continue;if(i.inputs)for(let a=0;a<i.inputs.length;a+=2){let c=i.inputs[a+1]||i.inputs[a];n[c]=true;}let s=tm(i.directive);s!==null&&r.push(...s);}}}return n}};function tm(e){return typeof e=="function"&&"\u0275dir"in e?e.\u0275dir.hostDirectives??null:null}function ES(e,t,n){for(let o=t.directiveStart;o<t.directiveEnd;o++)if(e.data[o].controlDef){t.controlDirectiveIndex=o;break}if(t.controlDirectiveIndex===-1)return;let r=e.data[t.controlDirectiveIndex].controlDef;if(r.passThroughInput&&(t.inputs?.[r.passThroughInput]?.length??0)>1){t.flags|=4096;return}wS(e,t);}function wS(e,t){for(let n=t.directiveStart;n<t.directiveEnd;n++){let r=e.data[n];if(!(t.directiveToIndex&&!t.directiveToIndex.has(r.type))){if(nm(r,"value")){t.flags|=1024,t.customControlIndex=n;return}if(nm(r,"checked")){t.flags|=2048,t.customControlIndex=n;return}}}if(t.hostDirectiveInputs!==null&&t.hostDirectiveOutputs!==null&&t.directiveToIndex!==null){let n=(r,o)=>{let i=t.hostDirectiveInputs[r],s=t.hostDirectiveOutputs[r+"Change"];if(!i||!s)return  false;for(let a=0;a<i.length;a+=2){let c=i[a];for(let u=0;u<s.length;u+=2){let l=s[u];if(c===l)for(let d of t.directiveToIndex.values()){if(!Array.isArray(d))continue;let[f,h,g]=d;if(c>=h&&c<=g)return t.flags|=o,t.customControlIndex=f,true}}}return  false};if(n("value",1024)||n("checked",2048))return}}function nm(e,t){return IS(e,t)&&CS(e,t+"Change")}function IS(e,t){return t in e.inputs}function CS(e,t){return t in e.outputs}var vd=Symbol("BINDING");var br$1=new v$2("");function Ua(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=Ys(o,a);else if(i==2){let c=a,u=t[++s];r=Ys(r,c+": "+u+";");}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o;}function J$6(e,t=0){let n=w$1();if(n===null)return I$2(e,t);let r=ue$2();return Om(r,n,we$4(e),t)}function Ni$1(){let e="invalid";throw new Error(e)}function $y(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a=s,c=null,u=null;for(let l of s)if(l.resolveHostDirectives!==null){[a,c,u]=l.resolveHostDirectives(s);break}TS(e,t,n,a,i,c,u);}i!==null&&r!==null&&bS(n,r,i);}function bS(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new m$1(-301,false);r.push(t[o],i);}}function SS(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index);}function TS(e,t,n,r,o,i,s){let a=r.length,c=null;for(let f=0;f<a;f++){let h=r[f];c===null&&Ot$2(h)&&(c=h,SS(e,n,f)),nd(Ra(n,t),e,h.type);}xS(n,e.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let f=0;f<a;f++){let h=r[f];h.providersResolver&&h.providersResolver(h);}let u=false,l=false,d=Ey(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let f=0;f<a;f++){let h=r[f];if(n.mergedAttrs=so(n.mergedAttrs,h.hostAttrs),MS(e,n,t,d,h),RS(d,h,o),s!==null&&s.has(h)){let[D,E]=s.get(h);n.directiveToIndex.set(h.type,[d,D+n.directiveStart,E+n.directiveStart]);}else (i===null||!i.has(h))&&n.directiveToIndex.set(h.type,d);h.contentQueries!==null&&(n.flags|=4),(h.hostBindings!==null||h.hostAttrs!==null||h.hostVars!==0)&&(n.flags|=64);let g=h.type.prototype;
4!u&&(g.ngOnChanges||g.ngOnInit||g.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=true),!l&&(g.ngOnChanges||g.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=true),d++;}_S(e,n,i);}function _S(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))rm(0,t,o,r),rm(1,t,o,r),im(t,r,false);else {let i=n.get(o);om(0,t,i,r),om(1,t,i,r),im(t,r,true);}}}function rm(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),zy(t,i);}}function om(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),zy(t,s);}}function zy(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16);}function im(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||Zd(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let u=o[c];for(let l of u)if(l===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let u=i[c];for(let l=0;l<u.length;l+=2)if(u[l]===t){s??=[],s.push(u[l+1],r[a+1]);break}}a+=2;}e.initialInputs??=[],e.initialInputs.push(s);}function MS(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=In(o.type)),s=new yr(i,Ot$2(o),J$6,null);e.blueprint[r]=s,n[r]=s,NS(e,t,r,Ey(e,n,o.hostVars,De$3),o);}function NS(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;AS(s)!=a&&s.push(a),s.push(n,r,i);}}function AS(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function RS(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Ot$2(t)&&(n[""]=e);}}function xS(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t;}function ff(e,t,n,r,o,i,s,a){let c=t[C$1],u=c.consts,l=ot$3(u,s),d=Cr$1(c,e,n,r,l);return $y(c,t,d,ot$3(u,a),o),d.mergedAttrs=so(d.mergedAttrs,d.attrs),d.attrs!==null&&Ua(d,d.attrs,false),d.mergedAttrs!==null&&Ua(d,d.mergedAttrs,true),c.queries!==null&&c.queries.elementStart(c,d),d}function hf(e,t){bm(e,t),Dl(t)&&e.queries.elementEnd(t);}function OS(e,t,n,r,o,i){let s=t.consts,a=ot$3(s,o),c=Cr$1(t,e,n,r,a);if(c.mergedAttrs=so(c.mergedAttrs,c.attrs),i!=null){let u=ot$3(s,i);c.localNames=[];for(let l=0;l<u.length;l+=2)c.localNames.push(u[l],-1);}return c.attrs!==null&&Ua(c,c.attrs,false),c.mergedAttrs!==null&&Ua(c,c.mergedAttrs,true),t.queries!==null&&t.queries.elementStart(t,c),c}var Gy=typeof ShadowRoot<"u",kS=typeof Document<"u";function PS(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&rc.SignalBased)!==0};return o&&(i.transform=o),i})}function LS(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function FS(e,t,n){let r=t instanceof te$4?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new La(n,r):n}function jS(e){let t=e.get(Dr$1,null);if(t===null)throw new m$1(407,false);let n=e.get(By,null),r=e.get(Kt$2,null),o=e.get(jt$2,null,{optional:true});return {rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:false,tracingService:o}}function US(e,t){let n=qy(e);return ny(t,n,n==="svg"?El:n==="math"?ng:null)}function BS(e){if(e?.toLowerCase()==="script")throw new m$1(905,false)}function qy(e){return (e.selectors[0][0]||"div").toLowerCase()}var Er$1=class Er{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=PS(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=LS(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=JC(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n;}create(t,n,r,o,i,s){V$1(j$5.DynamicComponentStart);let a=b$1(null);try{let c=this.componentDef,u=FS(c,o||this.ngModule,t),l=jS(u),d=l.tracingService;return d&&d.componentCreate?d.componentCreate(Hy(c),()=>this.createComponentRef(l,u,n,r,i,s)):this.createComponentRef(l,u,n,r,i,s)}finally{b$1(a);}}
vendor: 7,330 bytes, line 4
4createComponentRef(t,n,r,o,i,s){let a=this.componentDef,c=HS(o,a,s,i),u=t.rendererFactory.createRenderer(null,a),l=o?_b(u,o,a.encapsulation,n):US(a,u);BS(l?.tagName);let d=n.get(br$1,null),f=VS(l,()=>n.get(ee$3,null)??jd());d&&d.addHost(f);let h=s?.some(sm)||i?.some(E=>typeof E!="function"&&E.bindings.some(sm)),g=nf(null,c,null,512|Dy(a),null,null,t,u,n,null,Wm(l,n,true));d&&Gy&&f instanceof ShadowRoot&&sa(g,()=>{d.removeHost(f);}),g[q$3]=l,la(g);let D=null;try{let E=ff(q$3,g,2,"#host",()=>c.directiveRegistry,!0,0);iy(u,l,E),ao(l,g),oc(c,g,E),Bd(c,E,g),hf(c,E),r!==void 0&&zS(E,this.ngContentSelectors,r),D=rt$4(E.index,g),g[se$3]=D[se$3],uf(c,g,null);}catch(E){throw D!==null&&od(D),od(g),E}finally{V$1(j$5.DynamicComponentEnd),da();}return new Ba(this.componentType,g,!!h)}};function HS(e,t,n,r){let o=e?["ng-version","22.0.8"]:XC(t.selectors[0]),i=null,s=null,a=0;if(n)for(let l of n)a+=l[vd].requiredVars,l.create&&(l.targetIdx=0,(i??=[]).push(l)),l.update&&(l.targetIdx=0,(s??=[]).push(l));if(r)for(let l=0;l<r.length;l++){let d=r[l];if(typeof d!="function")for(let f of d.bindings){a+=f[vd].requiredVars;let h=l+1;f.create&&(f.targetIdx=h,(i??=[]).push(f)),f.update&&(f.targetIdx=h,(s??=[]).push(f));}}let c=[t];if(r)for(let l of r){let d=typeof l=="function"?l:l.type,f=cl(d);c.push(f);}return tf(0,null,$S(i,s),1,a,c,null,null,null,[o],null)}function VS(e,t){let n=e.getRootNode?.();return kS&&n instanceof Document?n.head:n&&Gy&&n instanceof ShadowRoot?n:t().head}function $S(e,t){return !e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update();}}function sm(e){let t=e[vd].kind;return t==="input"||t==="twoWay"}var Ba=class extends Uy{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=ra(n[C$1],q$3),this.location=ho(this._tNode,n),this.instance=rt$4(this._tNode.index,n)[se$3],this.hostView=this.changeDetectorRef=new On(n,void 0),this.componentType=t;}setInput(t,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView;cf(r,o[C$1],o,t,n);this.previousInputValues.set(t,n);let s=rt$4(r.index,o);lf(s,1);}get injector(){return new Rn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy();}onDestroy(t){this.hostView.onDestroy(t);}};function zS(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null);}}var Pn=(()=>{class e{static __NG_ELEMENT_ID__=GS}return e})();function GS(){let e=ue$2();return Wy(e,w$1())}var Dd=class e extends Pn{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r;}get element(){return ho(this._hostTNode,this._hostLView)}get injector(){return new Rn(this._hostTNode,this._hostLView)}get parentInjector(){let t=Pd(this._hostTNode,this._hostLView);if(_m(t)){let n=Na(t,this._hostLView),r=Ma(t),o=n[C$1].data[r+8];return new Rn(o,n)}else return new Rn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1);}get(t){let n=am(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-re$4}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Pa(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,co(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c,u=n||{};c=u.index,r=u.injector,o=u.projectableNodes,i=u.environmentInjector||u.ngModuleRef,s=u.directives,a=u.bindings;let l=new Er$1(Jt$2(t)),d=r||this.parentInjector;if(!i&&l.ngModule==null){let N=this.parentInjector.get(te$4,null);N&&(i=N);}let f=Jt$2(l.componentType??{}),h=Pa(this._lContainer,f?.id??null),g=null,D=l.create(d,o,g,i,s,a);return this.insertImpl(D.hostView,c,co(this._hostTNode,h)),D}insert(t,n){return this.insertImpl(t,n,true)}insertImpl(t,n,r){let o=t._lView;if(og(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else {let c=o[pe$1],u=new e(c,c[_e$4],c[pe$1]);u.detach(u.indexOf(t));}}let i=this._adjustIndex(n),s=this._lContainer;return Mi$1(s,o,i,r),t.attachToViewContainerRef(),dl(Wl(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=am(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=yi$1(this._lContainer,n);r&&(Wo(Wl(this._lContainer),n),tc(r[C$1],r));}detach(t){let n=this._adjustIndex(t,-1),r=yi$1(this._lContainer,n);return r&&Wo(Wl(this._lContainer),n)!=null?new On(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function am(e){return e[Ko]}function Wl(e){return e[Ko]||(e[Ko]=[])}function Wy(e,t){let n,r=t[e.index];return et$3(r)?n=r:(n=ky(r,t,null,e),t[e.index]=n,rf(t,n)),WS(n,t,e,r),new Dd(n,e,t)}function qS(e,t){let n=e[$$3],r=n.createComment(""),o=nt$2(t,e),i=n.parentNode(o);return Oa(n,i,r,n.nextSibling(o),false),r}var WS=QS;function QS(e,t,n,r){if(e[Mn])return;let o;n.type&8?o=tt$3(r):o=qS(t,n),e[Mn]=o;}var Ed=class e{queryList;matches=null;constructor(t){this.queryList=t;}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty();}},wd=class e{queries;constructor(t=[]){this.queries=t;}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){let s=n.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone());}return new e(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t);}detachView(t){this.dirtyQueriesWithMatches(t);}finishViewCreation(t){this.dirtyQueriesWithMatches(t);}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)gf(t,n).matches!==null&&this.queries[n].setDirty();}},Ha=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=nT(t):this.predicate=t;}},Id=class e{queries;constructor(t=[]){this.queries=t;}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n);}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t);}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i]);}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n);}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t);}},Cd=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=false;_declarationNodeIndex;_appliesToNextNode=true;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n;}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n);}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=false);}template(t,n){this.elementStart(t,n);}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=true,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}
4matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(t,n,KS(n,i)),this.matchTNodeWithReadOption(t,n,Sa(n,t,i,false,false));}else r===uo?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Sa(n,t,r,false,false));}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===st$3||o===Pn||o===uo&&n.type&4)this.addMatch(n.index,-2);else {let i=Sa(n,t,o,false,false);i!==null&&this.addMatch(n.index,i);}else this.addMatch(n.index,r);}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n);}};function KS(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function JS(e,t){return e.type&11?ho(e,t):e.type&4?ic(e,t):null}function XS(e,t,n,r){return n===-1?JS(t,e):n===-2?eT(e,t,r):gi$1(e,e[C$1],n,t)}function eT(e,t,n){if(n===st$3)return ho(t,e);if(n===uo)return ic(t,e);if(n===Pn)return Wy(t,e)}function Zy(e,t,n,r){let o=t[At$2].queries[r];if(o.matches===null){let i=e.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let u=s[c];if(u<0)a.push(null);else {let l=i[u];a.push(XS(t,l,s[c+1],n.metadata.read));}}o.matches=a;}return o.matches}function bd(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=Zy(e,t,o,n);for(let a=0;a<i.length;a+=2){let c=i[a];if(c>0)r.push(s[a/2]);else {let u=i[a+1],l=t[-c];for(let d=re$4;d<l.length;d++){let f=l[d];f[_n$1]===f[pe$1]&&bd(f[C$1],f,u,r);}if(l[fr$1]!==null){let d=l[fr$1];for(let f=0;f<d.length;f++){let h=d[f];bd(h[C$1],h,u,r);}}}}}return r}function pf(e,t){return e[At$2].queries[t].queryList}function Yy(e,t,n){let r=new xa((n&4)===4);return ag(e,t,r,r.destroy),(t[At$2]??=new wd).queries.push(new Ed(r))-1}function Qy(e,t,n){let r=z$1();return r.firstCreatePass&&(Ky(r,new Ha(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=true)),Yy(r,w$1(),t)}function tT(e,t,n,r){let o=z$1();if(o.firstCreatePass){let i=ue$2();Ky(o,new Ha(t,n,r),i.index),rT(o,e),(n&2)===2&&(o.staticContentQueries=true);}return Yy(o,w$1(),n)}function nT(e){return e.split(",").map(t=>t.trim())}function Ky(e,t,n){e.queries===null&&(e.queries=new Id),e.queries.track(new Cd(t,n));}function rT(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t);}function gf(e,t){return e.queries.getByIndex(t)}function Jy(e,t){let n=e[C$1],r=gf(n,t);return r.crossesNgTemplate?bd(n,e,t,[]):Zy(n,e,r,t)}function Xy(e,t,n){let r,o=Uo(()=>{r._dirtyCounter();let i=iT(r,e);if(t&&i===void 0)throw new m$1(-951,false);return i});return r=o[ce$3],r._dirtyCounter=oe$2(0),r._flatValue=void 0,o}function ev(e){return Xy(true,false)}function tv(e){return Xy(true,true)}function oT(e,t){let n=e[ce$3];n._lView=w$1(),n._queryIndex=t,n._queryList=pf(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1));}function iT(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[M$2]&4)return t?void 0:Te$2;let o=pf(n,r),i=Jy(n,r);return o.reset(i,Fm),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}function Sr$1(e){return !!e&&typeof e.then=="function"}function ac(e){return !!e&&typeof e.subscribe=="function"}var wr$1=class wr{},cc=class{};var Va=class extends wr$1{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];constructor(t,n,r,o=true){super(),this.ngModuleType=t,this._parent=n;let i=Hp(t);this._bootstrapComponents=HC(i.bootstrap),this._r3Injector=Ul(t,n,[{provide:wr$1,useValue:this},...r],Go(t),new Set(["environment"])),o&&this.resolveInjectorInitializers();}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType);}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null;}onDestroy(t){this.destroyCbs.push(t);}},$a=class extends cc{moduleType;constructor(t){super(),this.moduleType=t;}create(t){return new Va(this.moduleType,t,[])}};var Di$1=class Di extends wr$1{injector;instance=null;constructor(t){super();let n=new ar$2([...t.providers,{provide:wr$1,useValue:this}
vendor: 4,720 bytes, line 4
4],t.parent||Kr$1(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers();}destroy(){this.injector.destroy();}onDestroy(t){this.injector.onDestroy(t);}};function po(e,t,n=null){return new Di$1({providers:e,parent:t,debugName:n,runEnvironmentInitializers:true}).injector}var sT=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n;}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=hl(false,n.type),o=r.length>0?po([r],this._injector,""):null;this.cachedInjectors.set(n,o);}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy();}finally{this.cachedInjectors.clear();}}static \u0275prov=S$4({token:e,providedIn:"environment",factory:()=>new e(I$2(te$4))})}return e})();function mf(e){return Ii$1(()=>{let t=nv(e),n=m$2(l$1({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection!==Ld.Eager,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(sT).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??false,data:e.data||{},encapsulation:e.encapsulation||mt$2.Emulated,styles:e.styles||Te$2,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&He$1("NgStandalone"),rv(n);let r=e.dependencies;return n.directiveDefs=cm(r,aT),n.pipeDefs=cm(r,Vp),n.id=lT(n),n})}function aT(e){return Jt$2(e)||cl(e)}function Tr$1(e){return Ii$1(()=>({type:e.type,bootstrap:e.bootstrap||Te$2,declarations:e.declarations||Te$2,imports:e.imports||Te$2,exports:e.exports||Te$2,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function cT(e,t){if(e==null)return Sn;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=rc.None,c=null),n[i]=[r,a,c],t[i]=s;}return n}function uT(e){if(e==null)return Sn;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function yt$2(e){return Ii$1(()=>{let t=nv(e);return rv(t),t})}function an$1(e){return {type:e.type,name:e.name,factory:null,pure:e.pure!==false,standalone:e.standalone??true,onDestroy:e.type.prototype.ngOnDestroy||null}}function nv(e){let t={};return {type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||Sn,exportAs:e.exportAs||null,standalone:e.standalone??true,signals:e.signals===true,selectors:e.selectors||Te$2,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:cT(e.inputs,t),outputs:uT(e.outputs),debugInfo:null}}function rv(e){e.features?.forEach(t=>t(e));}function cm(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let o of n){let i=t(o);i!==null&&r.push(i);}return r}:null}function lT(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}var yf=new v$2("");function uc(e){return Xt$1([{provide:yf,multi:true,useValue:e}])}var vf=(()=>{class e{resolve;reject;initialized=false;done=false;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r;});appInits=p$1(yf,{optional:true})??[];injector=p$1(Ie$3);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=ge$2(this.injector,o);if(Sr$1(i))n.push(i);else if(ac(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c});});n.push(s);}}let r=()=>{this.done=true,this.resolve();};Promise.all(n).then(()=>{r();}).catch(o=>{this.reject(o);}),n.length===0&&r(),this.initialized=true;}static \u0275fac=function(r){return new(r||e)};static \u0275prov=W$6({token:e,factory:e.\u0275fac})}return e})();function dT(e){return t=>{t.controlDef={create:(n,r)=>{n?.\u0275ngControlCreate(r);},update:(n,r)=>{n?.\u0275ngControlUpdate?.(r);},passThroughInput:e};}}function fT(e){return Object.getPrototypeOf(e.prototype).constructor}function ov(e){let t=fT(e.type),n=true,r=[e];for(;t;){let o;if(Ot$2(e))o=t.\u0275cmp||t.\u0275dir;else {if(t.\u0275cmp)throw new m$1(903,false);o=t.\u0275dir;}if(o){if(n){r.push(o);let s=e;
4s.inputs=Zl(e.inputs),s.declaredInputs=Zl(e.declaredInputs),s.outputs=Zl(e.outputs);let a=o.hostBindings;a&&yT(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&gT(e,c),u&&mT(e,u),hT(e,o),Bp(e.outputs,o.outputs),Ot$2(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation);}}let i=o.features;if(i)for(let s=0;s<i.length;s++){let a=i[s];a&&a.ngInherit&&a(e),a===ov&&(n=false);}}t=Object.getPrototypeOf(t);}pT(r);}function hT(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n]);}}function pT(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=so(o.hostAttrs,n=so(n,o.hostAttrs));}}function Zl(e){return e===Sn?{}:e===Te$2?[]:e}function gT(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o);}:e.viewQuery=t;}function mT(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i);}:e.contentQueries=t;}function yT(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o);}:e.hostBindings=t;}function iv(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=so(e.mergedAttrs,e.attrs);let l=e.tView=tf(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),l.queries=n.queries.embeddedTView(e));}a&&(e.flags|=a),gr$1(e,false);let c=DT(n,t);fa()&&Xd(n,t,c,e),ao(c,t);let u=ky(c,t,c,e);t[r+q$3]=u,rf(t,u);}function vT(e,t,n,r,o,i,s,a,c,u,l){let d=n+q$3,f;return t.firstCreatePass?(f=Cr$1(t,d,4,s||null,a||null),$y(t,e,f,ot$3(t.consts,u),of),bm(t,f)):f=t.data[d],iv(f,e,t,n,r,o,i,c),eo(f)&&oc(t,e,f),u!=null&&Ti$1(e,f,l),f}function Ei$1(e,t,n,r,o,i,s,a,c,u,l){let d=n+q$3,f;if(t.firstCreatePass){if(f=Cr$1(t,d,4,s||null,a||null),u!=null){let h=ot$3(t.consts,u);f.localNames=[];for(let g=0;g<h.length;g+=2)f.localNames.push(h[g],-1);}}else f=t.data[d];return iv(f,e,t,n,r,o,i,c),u!=null&&Ti$1(e,f,l),f}function sv(e,t,n,r,o,i,s,a){let c=w$1(),u=z$1(),l=ot$3(u.consts,i);return vT(c,u,e,t,n,r,o,l,void 0,s,a),sv}var DT=ET;function ET(e,t,n,r){return ni(true),t[$$3].createComment("")}var lc=(()=>{class e{log(n){console.log(n);}warn(n){console.warn(n);}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S$4({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var Df=new v$2("");var go=new v$2("");function av(){Fu(()=>{let e="";throw new m$1(600,e)});}var wT=10;var Ln$1=(()=>{class e{_runningTick=false;_destroyed=false;_destroyListeners=[];_views=[];internalErrorHandler=p$1(qe$3);afterRenderManager=p$1(Qd);zonelessEnabled=p$1(ai$1);
vendor: 5,136 bytes, line 4
4rootEffectScheduler=p$1(ya);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=false;afterTick=new ae$4;get allViews(){return [...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=p$1(rn$1);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(B$3(n=>!n))}constructor(){p$1(jt$2,{optional:true});}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r();}});}).finally(()=>{n.unsubscribe();})}_injector=p$1(te$4);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=Ie$3.NULL){return this._injector.get(ve$2).run(()=>{if(V$1(j$5.BootstrapComponentStart),!this._injector.get(vf).done){let N="";throw new m$1(405,N)}let a=Jt$2(n),c=this._injector.get(wr$1),u=new Er$1(a,c);this.componentTypes.push(n);let{hostElement:l,directives:d,bindings:f}=IT(r),h=l||u.selector,g=u.create(o,[],h,c.injector,d,f),D=g.location.nativeElement,E=g.injector.get(Df,null);return E?.registerApplication(D),g.onDestroy(()=>{this.detachView(g.hostView),hi$1(this.components,g),E?.unregisterApplication(D);}),this._loadComponent(g),V$1(j$5.BootstrapComponentEnd,g),g})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick();}_tick(){V$1(j$5.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(Ja.CHANGE_DETECTION,this.tickImpl):this.tickImpl();}tickImpl=()=>{if(this._runningTick)throw V$1(j$5.ChangeDetectionEnd),new m$1(101,false);let n=b$1(null);try{this._runningTick=!0,this.synchronize();}finally{this._runningTick=false,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,b$1(n),this.afterTick.next(),V$1(j$5.ChangeDetectionEnd);}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Dr$1,null,{optional:true}));let n=0;for(;this.dirtyFlags!==0&&n++<wT;){V$1(j$5.ChangeDetectionSyncStart);try{this.synchronizeOnce();}finally{V$1(j$5.ChangeDetectionSyncEnd);}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=false;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o}of this.allViews){if(!r&&!Xo(o))continue;let i=r&&!this.zonelessEnabled?0:1;Ay(o,i),n=true;}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews();}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>Xo(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8;}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this);}detachView(n){let r=n;hi$1(this._views,r),r.detachFromAppRef();}_loadComponent(n){this.attachView(n.hostView);try{this.tick();}catch(o){this.internalErrorHandler(o);}this.components.push(n),this._injector.get(go,[]).forEach(o=>o(n));}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy());}finally{this._destroyed=true,this._views=[],this._destroyListeners=[];}}onDestroy(n){return this._destroyListeners.push(n),()=>hi$1(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new m$1(406,false);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy();}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=W$6({token:e,factory:e.\u0275fac})}return e})();function IT(e){return e===void 0||typeof e=="string"||e instanceof Element?{hostElement:e}:e}function hi$1(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1);}function dc(e,t,n,r){let o=w$1(),i=nn$1();if(Be$1(o,i,t)){z$1();let a=ro();Pb(a,o,e,t,n,r);}return dc}var Sd=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s);}else this.attach(r,i);}move(t,n){this.attach(n,this.detach(t));}};function Yl(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function CT(e,t,n,r){let o,i,s=0,a=e.length-1;if(Array.isArray(t)){b$1(r);let u=t.length-1;for(b$1(null);s<=a&&s<=u;){let l=e.at(s),d=t[s],f=Yl(s,l,s,d,n);if(f!==0){f<0&&e.updateValue(s,d),s++;continue}let h=e.at(a),g=t[u],D=Yl(a,h,u,g,n);if(D!==0){D<0&&e.updateValue(a,g),a--,u--;continue}let E=n(s,l),N=n(a,h),_=n(s,d);if(Object.is(_,N)){let R=n(u,g);Object.is(R,E)?(e.swap(s,a),e.updateValue(a,g),u--,a--):e.move(a,s),e.updateValue(s,d),s++;continue}if(o??=new za,i??=lm(e,s,a,n),Td(e,o,s,_))e.updateValue(s,d),s++,a++;else if(i.has(_))o.set(E,e.detach(s)),a--;else {let R=e.create(s,t[s]);e.attach(s,R),s++,a++;}}for(;s<=u;)um(e,o,n,s,t[s]),s++;}else if(t!=null){b$1(r);let u=t[Symbol.iterator]();b$1(null);let l=u.next();for(;!l.done&&s<=a;){let d=e.at(s),f=l.value,h=Yl(s,d,s,f,n);if(h!==0)h<0&&e.updateValue(s,f),s++,l=u.next();else {o??=new za,i??=lm(e,s,a,n);let g=n(s,f);
4if(Td(e,o,s,g))e.updateValue(s,f),s++,a++,l=u.next();else if(!i.has(g))e.attach(s,e.create(s,f)),s++,a++,l=u.next();else {let D=n(s,d);o.set(D,e.detach(s)),a--;}}}for(;!l.done;)um(e,o,n,e.length,l.value),l=u.next();}for(;s<=a;)e.destroy(e.detach(a--));o?.forEach(u=>{e.destroy(u);});}function Td(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),true):false}function um(e,t,n,r,o){if(Td(e,t,r,n(r,o)))e.updateValue(r,o);else {let i=e.create(r,o);e.attach(r,i);}}function lm(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var za=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return  false;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),true}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n);}else this.kvMap.set(t,n);}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n);}}};function bT(e,t,n,r,o,i,s,a){He$1("NgControlFlow");let c=w$1(),u=z$1(),l=ot$3(u.consts,i);return Ei$1(c,u,e,t,n,r,o,l,256,s,a),Ef}function Ef(e,t,n,r,o,i,s,a){He$1("NgControlFlow");let c=w$1(),u=z$1(),l=ot$3(u.consts,i);return Ei$1(c,u,e,t,n,r,o,l,512,s,a),Ef}function ST(e,t){He$1("NgControlFlow");let n=w$1(),r=nn$1(),o=n[r]!==De$3?n[r]:-1,i=o!==-1?Ga(n,q$3+o):void 0,s=0;if(Be$1(n,r,e)){let a=b$1(null);try{if(i!==void 0&&Ly(i,s),e!==-1){let c=q$3+e,u=Ga(n,c),l=Ad(n[C$1],c),d=jy(u,l,n),f=_i$1(n,l,t,{dehydratedView:d});Mi$1(u,f,s,co(l,d));}}finally{b$1(a);}}else if(i!==void 0){let a=Py(i,s);a!==void 0&&(a[se$3]=t);}}var _d=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r;}get $count(){return this.lContainer.length-re$4}};function TT(e){return e}function _T(e,t){return t}var Md=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r;}};function MT(e,t,n,r,o,i,s,a,c,u,l,d,f){He$1("NgControlFlow");let h=w$1(),g=z$1(),D=c!==void 0,E=w$1(),N=a?s.bind(E[Oe$4][se$3]):s,_=new Md(D,N);E[q$3+e]=_,Ei$1(h,g,e+1,t,n,r,o,ot$3(g.consts,i),256),D&&Ei$1(h,g,e+2,c,u,l,d,ot$3(g.consts,f),512);}var Nd=class extends Sd{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=false;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r;}get length(){return this.lContainer.length-re$4}at(t){return this.getLView(t)[se$3].$implicit}attach(t,n){let r=n[ur$1];this.needsIndexUpdate||=t!==this.length,Mi$1(this.lContainer,n,t,co(this.templateTNode,r)),AT(this.lContainer,t);}detach(t){return this.needsIndexUpdate||=t!==this.length-1,RT(this.lContainer,t),xT(this.lContainer,t)}create(t,n){let r=Pa(this.lContainer,this.templateTNode.tView.ssrId);return _i$1(this.hostLView,this.templateTNode,new _d(this.lContainer,n,t),{dehydratedView:r})}destroy(t){tc(t[C$1],t);}updateValue(t,n){this.getLView(t)[se$3].$implicit=n;}reset(){this.needsIndexUpdate=false;}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[se$3].$index=t;}getLView(t){return OT(this.lContainer,t)}};function NT(e){let t=b$1(null),n=it$3();try{let r=w$1(),o=r[C$1],i=r[n],s=n+1,a=Ga(r,s);if(i.liveCollection===void 0){let u=Ad(o,s);i.liveCollection=new Nd(a,r,u);}else i.liveCollection.reset();let c=i.liveCollection;if(CT(c,e,i.trackByFn,t),c.updateIndexes(),i.hasEmptyBlock){let u=nn$1(),l=c.length===0;if(Be$1(r,u,l)){let d=n+2,f=Ga(r,d);if(l){let h=Ad(o,d),g=jy(f,h,r),D=_i$1(r,h,void 0,{dehydratedView:g});Mi$1(f,D,0,co(h,g));}else o.firstUpdatePass&&sS(f),Ly(f,0);}}}finally{b$1(t);}}function Ga(e,t){return e[t]}function AT(e,t){if(e.length<=re$4)return;let n=re$4+t,r=e[n],o=r?r[xt$2]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[Nt$2];sb(i,o),xn.delete(r[Rt$2]),o.detachedLeaveAnimationFns=void 0;}}function RT(e,t){if(e.length<=re$4)return;
4let n=re$4+t,r=e[n],o=r?r[xt$2]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[]);}function xT(e,t){return yi$1(e,t)}function OT(e,t){return Py(e,t)}function Ad(e,t){return ra(e,t)}function cv(e,t,n){let r=w$1(),o=nn$1();if(Be$1(r,o,t)){z$1();let s=ro();Cy(s,r,e,t,r[$$3],n);}return cv}function Rd(e,t,n,r,o){cf(t,e,n,o?"class":"style",r);}function qa(e,t,n,r){let o=w$1(),i=o[C$1],s=e+q$3,a=i.firstCreatePass?ff(s,o,2,t,of,aa(),n,r):i.data[s];if(tn$1(a)){let c=o[pt$2].tracingService;if(c&&c.componentCreate){let u=i.data[a.directiveStart+a.componentOffset];return c.componentCreate(Hy(u),()=>(dm(e,t,o,a,r),qa))}}return dm(e,t,o,a,r),qa}function dm(e,t,n,r,o){if(sf(r,n,e,t,lv),eo(r)){let i=n[C$1];oc(i,n,r),Bd(i,r,n);}o!=null&&Ti$1(n,r);}function wf(){let e=z$1(),t=ue$2(),n=af(t);return e.firstCreatePass&&hf(e,n),Ml(n)&&Nl(),Tl(),n.classesWithoutHost!=null&&VI(n)&&Rd(e,n,w$1(),n.classesWithoutHost,true),n.stylesWithoutHost!=null&&$I(n)&&Rd(e,n,w$1(),n.stylesWithoutHost,false),wf}function fc(e,t,n,r){return qa(e,t,n,r),wf(),fc}function If(e,t,n,r){let o=w$1(),i=o[C$1],s=e+q$3,a=i.firstCreatePass?OS(s,i,2,t,n,r):i.data[s];return sf(a,o,e,t,lv),r!=null&&Ti$1(o,a),If}function Cf(){let e=ue$2(),t=af(e);return Ml(t)&&Nl(),Tl(),Cf}function uv(e,t,n,r){return If(e,t,n,r),Cf(),uv}var lv=(e,t,n,r,o)=>(ni(true),ny(t[$$3],r,jl()));function bf(e,t,n){let r=w$1(),o=r[C$1],i=e+q$3,s=o.firstCreatePass?ff(i,r,8,"ng-container",of,aa(),t,n):o.data[i];if(sf(s,r,e,"ng-container",kT),eo(s)){let a=r[C$1];oc(a,r,s),Bd(a,s,r);}return n!=null&&Ti$1(r,s),bf}function Sf(){let e=z$1(),t=ue$2(),n=af(t);return e.firstCreatePass&&hf(e,n),Sf}function dv(e,t,n){return bf(e,t,n),Sf(),dv}var kT=(e,t,n,r,o)=>(ni(true),OC(t[$$3],""));function PT(){return w$1()}function fv(e,t,n){let r=w$1(),o=nn$1();if(Be$1(r,o,t)){z$1();let s=ro();by(s,r,e,t,r[$$3],n);}return fv}var li$1=void 0;function LT(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var FT=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],li$1,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],li$1,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm\u202Fa","h:mm:ss\u202Fa","h:mm:ss\u202Fa z","h:mm:ss\u202Fa zzzz"],["{1}, {0}",li$1,li$1,li$1],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",LT],pi$1=Object.create(null);function Tf(e,t,n){typeof t!="string"&&(n=t,t=e[ne$3.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),pi$1[t]=e,n&&(pi$1[t][ne$3.ExtraData]=n);}function Le$3(e){let t=jT(e),n=fm(t);if(n)return n;let r=t.split("-")[0];if(n=fm(r),n)return n;if(r==="en")return FT;throw new m$1(701,false)}function fm(e){if(!(e in pi$1)){let t=Je$2.ng&&Je$2.ng.common&&Je$2.ng.common.locales&&Je$2.ng.common.locales[e];return t!==void 0&&(pi$1[e]=t),t}return pi$1[e]}var ne$3={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,Currencies:18,ExtraData:21};function jT(e){return e.toLowerCase().replace(/_/g,"-")}var Ai$1="en-US",UT="USD";function hv(e){typeof e=="string"&&(e.toLowerCase().replace(/_/g,"-"));}function hc(e,t,n){let r=w$1(),o=z$1(),i=ue$2();return gv(o,r,r[$$3],i,e,t,n),hc}function pv(e,t,n){let r=w$1(),o=z$1(),i=ue$2();return (i.type&3||n)&&df(i,o,r,n,r[$$3],e,t,mr$1(i,r,t)),pv}function gv(e,t,n,r,o,i,s){let a=true,c=null;if((r.type&3||s)&&(c??=mr$1(r,t,i),df(r,e,t,s,n,o,i,c)&&(a=false)),a){let u=r.outputs?.[o],l=r.hostDirectiveOutputs?.[o];if(l&&l.length)for(let d=0;d<l.length;d+=2){let f=l[d],h=l[d+1];c??=mr$1(r,t,i),Fa(r,t,f,h,o,c);}if(u&&u.length)for(let d of u)c??=mr$1(r,t,i),Fa(r,t,d,o,o,c);}}function HT(e=1){return wg(e)}function VT(e,t){let n=null,r=WC(e);for(let o=0;o<t.length;o++){let i=t[o];if(i==="*"){n=o;continue}if(r===null?uy(e,i,true):QC(r,i))return o}return n}function $T(e){let t=w$1()[Oe$4][_e$4];if(!t.projection){let n=e?e.length:1,r=t.projection=Zp(n,null),o=r.slice(),i=t.child;for(;i!==null;){if(i.type!==128){let s=e?VT(i,e):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i);}i=i.next;}}}function zT(e,t=0,n,r,o,i){let s=w$1(),a=z$1(),c=null;let u=Cr$1(a,q$3+e,16,null,null);u.projection===null&&(u.projection=t),xl();let d=!s[ur$1]||_l();s[Oe$4][_e$4].projection[u.projection]===null&&c!==null?GT(s,a,c):d&&!Ya(u)&&Eb(a,s,u);}function GT(e,t,n){let r=q$3+n,o=t.data[r],i=e[r],s=Pa(i,o.tView.ssrId),a=_i$1(e,o,void 0,{dehydratedView:s});Mi$1(i,a,0,co(o,s));}function pc(e,t,n,r){return tT(e,t,n,r),pc}function mv(e,t,n){return Qy(e,t,n),mv}function _f(e){let t=w$1(),n=z$1(),r=ua();ti(r+1);let o=gf(n,r);if(e.dirty&&rg(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else {let i=Jy(t,r);e.reset(i,Fm),e.notifyOnChanges();}return  true}return  false}function Mf(){return pf(w$1(),ua())}function yv(e,t,n,r){return oT(e,Qy(t,n,r)),yv}function qT(e=1){ti(ua()+e);}function WT(e){let t=Ol();return no(t,q$3+e)}function Ia(e,t){return e<<17|t<<2}function Ir$1(e){return e>>17&32767}function ZT(e){return (e&2)==2}function YT(e,t){return e&131071|t<<17}function xd(e){return e|2}function lo(e){return (e&131068)>>2}function Ql(e,t){return e&-131069|t<<2}function QT(e){return (e&1)===1}function Od(e){return e|1}function KT(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Ir$1(s),c=lo(s);e[r]=n;let u=false,l;if(Array.isArray(n)){let d=n;
vendor: 10,292 bytes, line 4
4l=d[1],(l===null||Yr$1(d,l)>0)&&(u=true);}else l=n;if(o)if(c!==0){let f=Ir$1(e[a+1]);e[r+1]=Ia(f,a),f!==0&&(e[f+1]=Ql(e[f+1],r)),e[a+1]=YT(e[a+1],r);}else e[r+1]=Ia(a,0),a!==0&&(e[a+1]=Ql(e[a+1],r)),a=r;else e[r+1]=Ia(c,0),a===0?a=r:e[c+1]=Ql(e[c+1],r),c=r;u&&(e[r+1]=xd(e[r+1])),hm(e,l,r,true),hm(e,l,r,false),JT(t,l,e,r,i),s=Ia(a,c),i?t.classBindings=s:t.styleBindings=s;}function JT(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Yr$1(i,t)>=0&&(n[r+1]=Od(n[r+1]));}function hm(e,t,n,r){let o=e[n+1],i=t===null,s=r?Ir$1(o):lo(o),a=false;for(;s!==0&&(a===false||i);){let c=e[s],u=e[s+1];XT(c,t)&&(a=true,e[s+1]=r?Od(u):xd(u)),s=r?Ir$1(u):lo(u);}a&&(e[n+1]=r?xd(o):Od(o));}function XT(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?true:Array.isArray(e)&&typeof t=="string"?Yr$1(e,t)>=0:false}var me$1={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function vv(e){return e.substring(me$1.key,me$1.keyEnd)}function e_(e){return e.substring(me$1.value,me$1.valueEnd)}function t_(e){return wv(e),Dv(e,fo(e,0,me$1.textEnd))}function Dv(e,t){let n=me$1.textEnd;return n===t?-1:(t=me$1.keyEnd=r_(e,me$1.key=t,n),fo(e,t,n))}function n_(e){return wv(e),Ev(e,fo(e,0,me$1.textEnd))}function Ev(e,t){let n=me$1.textEnd,r=me$1.key=fo(e,t,n);return n===r?-1:(r=me$1.keyEnd=o_(e,r,n),r=pm(e,r,n),r=me$1.value=fo(e,r,n),r=me$1.valueEnd=i_(e,r,n),pm(e,r,n))}function wv(e){me$1.key=0,me$1.keyEnd=0,me$1.value=0,me$1.valueEnd=0,me$1.textEnd=e.length;}function fo(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function r_(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function o_(e,t,n){let r;for(;t<n&&((r=e.charCodeAt(t))===45||r===95||(r&-33)>=65&&(r&-33)<=90||r>=48&&r<=57);)t++;return t}function pm(e,t,n,r){return t=fo(e,t,n),t<n&&t++,t}function i_(e,t,n){let r=-1,o=-1,i=-1,s=t,a=s;for(;s<n;){let c=e.charCodeAt(s++);if(c===59)return a;c===34||c===39?a=s=gm(e,c,s,n):t===s-4&&i===85&&o===82&&r===76&&c===40?a=s=gm(e,41,s,n):c>32&&(a=s),i=o,o=r,r=c&-33;}return a}function gm(e,t,n,r){let o=-1,i=n;for(;i<r;){let s=e.charCodeAt(i++);if(s==t&&o!==92)return i;s==92&&o===92?o=0:o=s;}throw new Error}function gc(e,t,n){return Cv(e,t,n,false),gc}function Iv(e,t){return Cv(e,t,null,true),Iv}function s_(e){bv(_v,a_,e,false);}function a_(e,t){for(let n=n_(t);n>=0;n=Ev(t,n))_v(e,vv(t),e_(t));}function c_(e){bv(g_,u_,e,true);}function u_(e,t){for(let n=t_(t);n>=0;n=Dv(t,n))Zo(e,vv(t),true);}function Cv(e,t,n,r){let o=w$1(),i=z$1(),s=ei(2);if(i.firstUpdatePass&&Tv(i,e,s,r),t!==De$3&&Be$1(o,s,t)){let a=i.data[it$3()];Mv(i,a,o,o[$$3],e,o[s+1]=y_(t,n),r,s);}}function bv(e,t,n,r){let o=z$1(),i=ei(2);o.firstUpdatePass&&Tv(o,null,i,r);let s=w$1();if(n!==De$3&&Be$1(s,i,n)){let a=o.data[it$3()];if(Nv(a,r)&&!Sv(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=Ys(c,n||"")),Rd(o,a,s,n,r);}else m_(o,a,s,s[$$3],s[i+1],s[i+1]=p_(e,t,n),r,i);}}function Sv(e,t){return t>=e.expandoStartIndex}function Tv(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[it$3()],s=Sv(e,n);Nv(i,r)&&t===null&&!s&&(t=false),t=l_(o,i,t,r),KT(o,i,t,n,s,r);}}function l_(e,t,n,r){let o=yg(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Kl(null,e,t,n,r),n=wi$1(n,t.attrs,r),i=null);else {let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Kl(o,e,t,n,r),i===null){let c=d_(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Kl(null,e,t,c[1],r),c=wi$1(c,t.attrs,r),f_(e,t,r,c));}else i=h_(e,t,r);}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function d_(e,t,n){let r=n?t.classBindings:t.styleBindings;if(lo(r)!==0)return e[Ir$1(r)]}function f_(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Ir$1(o)]=r;}function h_(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=wi$1(r,s,n);}return wi$1(r,t.attrs,n)}function Kl(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=wi$1(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function wi$1(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),Zo(e,s,n?true:t[++i]));}return e===void 0?null:e}function p_(e,t,n){if(n==null||n==="")return Te$2;let r=[],o=Pe$3(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)e(r,o[i],true);else if(o instanceof Set)for(let i of o)e(r,i,true);else if(typeof o=="object")for(let i in o)Object.hasOwn(o,i)&&e(r,i,o[i]);else typeof o=="string"&&t(r,o);return r}function _v(e,t,n){Zo(e,t,Pe$3(n));}function g_(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&Zo(e,r,n);}function m_(e,t,n,r,o,i,s,a){o===De$3&&(o=Te$2);let c=0,u=0,l=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;l!==null||d!==null;){let f=c<o.length?o[c+1]:void 0,h=u<i.length?i[u+1]:void 0,g=null,D;l===d?(c+=2,u+=2,f!==h&&(g=d,D=h)):d===null||l!==null&&l<d?(c+=2,g=l):(u+=2,g=d,D=h),g!==null&&Mv(e,t,n,r,g,D,s,a),l=c<o.length?o[c]:null,d=u<i.length?i[u]:null;}}function Mv(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1],l=QT(u)?mm(c,t,n,o,lo(u),s):void 0;if(!Wa(l)){Wa(i)||ZT(u)&&(i=mm(c,null,n,o,a,s));let d=wl(it$3(),n);Ib(r,s,d,o,i);}}function mm(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,f=n[o+1];f===De$3&&(f=d?Te$2:void 0);let h=d?ta(f,r):l===r?f:void 0;if(u&&!Wa(h)&&(h=ta(c,r)),Wa(h)&&(a=h,s))return a;let g=e[o+1];o=s?Ir$1(g):lo(g);}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=ta(c,r));}return a}function Wa(e){return e!==void 0}function y_(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Go(Pe$3(e)))),e}function Nv(e,t){return (e.flags&(t?8:16))!==0}function v_(e,t=""){let n=w$1(),r=z$1(),o=e+q$3,i=r.firstCreatePass?Cr$1(r,o,1,t,null):r.data[o],s=D_(r,n,i,t);n[o]=s,fa()&&Xd(r,n,s,i),gr$1(i,false);}var D_=(e,t,n,r)=>(ni(true),RC(t[$$3],r));function Av(e,t,n,r=""){return Be$1(e,nn$1(),n)?t+ft$3(n)+r:De$3}function E_(e,t,n,r,o,i=""){let s=Pl(),a=vi$1(e,s,n,o);return ei(2),a?t+ft$3(n)+r+ft$3(o)+i:De$3}function w_(e,t,n,r,o,i,s,a=""){let c=Pl(),u=fS(e,c,n,o,s);return ei(3),u?t+ft$3(n)+r+ft$3(o)+i+ft$3(s)+a:De$3}function Rv(e){return Nf("",e),Rv}function Nf(e,t,n){let r=w$1(),o=Av(r,e,t,n);return o!==De$3&&Af(r,it$3(),o),Nf}function xv(e,t,n,r,o){let i=w$1(),s=E_(i,e,t,n,r,o);return s!==De$3&&Af(i,it$3(),s),xv}function Ov(e,t,n,r,o,i,s){let a=w$1(),c=w_(a,e,t,n,r,o,i,s);return c!==De$3&&Af(a,it$3(),c),Ov}function Af(e,t,n){let r=wl(t,e);xC(e[$$3],r,n);}function kv(e,t,n){va(t)&&(t=t());let r=w$1(),o=nn$1();if(Be$1(r,o,t)){z$1();let s=ro();Cy(s,r,e,t,r[$$3],n);}return kv}function I_(e,t){let n=va(e);return n&&e.set(t),n}function Pv(e,t){let n=w$1(),r=z$1(),o=ue$2();return gv(r,n,n[$$3],o,e,t),Pv}var Lv={};function Fv(e){He$1("NgLet");let t=z$1(),n=w$1(),r=e+q$3,o=Cr$1(t,r,128,null,null);return gr$1(o,false),Jo(t,n,r,Lv),Fv}function C_(e){let t=z$1(),n=w$1(),r=it$3();return Jo(t,n,r,e),e}function b_(e){let t=Ol(),n=no(t,q$3+e);if(n===Lv)throw new m$1(314,false);return n}function S_(e){return Be$1(w$1(),nn$1(),e)?ft$3(e):De$3}function T_(e,t,n=""){return Av(w$1(),e,t,n)}function ym(e,t,n){let r=z$1();r.firstCreatePass&&jv(t,r.data,r.blueprint,Ot$2(e),n);}function jv(e,t,n,r,o){if(e=we$4(e),Array.isArray(e))for(let i=0;i<e.length;i++)jv(e[i],t,n,r,o);else {let i=z$1(),s=w$1(),a=ue$2(),c=sr$1(e)?e:we$4(e.provide),u=gl(e),l=a.providerIndexes&1048575,d=a.directiveStart,f=a.providerIndexes>>20;if(sr$1(e)||!e.multi){let h=new yr(u,o,J$6,null),g=Xl(c,t,l+f,d);g===-1?(nd(Ra(a,s),i,c),Jl(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,n.push(h),s.push(h)):(n[g]=h,s[g]=h);}else {let h=Xl(c,t,l+f,d),g=Xl(c,t,l,l+f),D=h>=0&&n[h],E=g>=0&&n[g];if(!D){nd(Ra(a,s),i,c);let N=N_(__,n.length,o,r,u);E&&(n[g].providerFactory=N),Jl(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,n.push(N),s.push(N);}else {let N=Uv(n[h],u,r);Jl(i,e,h>-1?h:g,N);}r&&E&&n[g].componentProviders++;}}}function Jl(e,t,n,r){let o=sr$1(t),i=Xp(t);if(o||i){let c=(i?we$4(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=u.indexOf(n);l===-1?u.push(n,[r,c]):u[l+1].push(r,c);}else u.push(n,c);}}}function Uv(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Xl(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return  -1}function __(e,t,n,r,o){return kd(this.multi,[])}function kd(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r());}return t}function N_(e,t,n,r,o,i){let s=new yr(e,n,J$6,null);return s.multi=[],s.index=t,s.componentProviders=0,Uv(s,o,r&&!n),s}function A_(e,t){return n=>{n.providersResolver=(r,o)=>ym(r,o?o(e):e,false);}}function R_(e,t){let n=Nn()+e,r=w$1();return r[n]===De$3?sc(r,n,t()):dS(r,n)}function x_(e,t,n){return Bv(w$1(),Nn(),e,t,n)}function O_(e,t,n,r){return Hv(w$1(),Nn(),e,t,n,r)}function k_(e,t,n,r,o,i,s){return Vv(w$1(),Nn(),e,t,n,r,o,i)}function Rf(e,t){let n=e[t];return n===De$3?void 0:n}function Bv(e,t,n,r,o,i){let s=t+n;return Be$1(e,s,o)?sc(e,s+1,i?r.call(i,o):r(o)):Rf(e,s+1)}function Hv(e,t,n,r,o,i,s){let a=t+n;return vi$1(e,a,o,i)?sc(e,a+2,s?r.call(s,o,i):r(o,i)):Rf(e,a+2)}function Vv(e,t,n,r,o,i,s,a,c){let u=t+n;return hS(e,u,o,i,s,a)?sc(e,u+4,c?r.call(c,o,i,s,a):r(o,i,s,a)):Rf(e,u+4)}function P_(e,t){let n=z$1(),r,o=e+q$3;n.firstCreatePass?(r=L_(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=In(r.type)),a=xe$3(J$6);try{let c=Aa(!1),u=i();return Aa(c),Jo(n,w$1(),o,u),u}finally{xe$3(a);}}function L_(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function F_(e,t,n){let r=e+q$3,o=w$1(),i=no(o,r);return xf(o,r)?Bv(o,Nn(),t,i.transform,n,i):i.transform(n)}function j_(e,t,n,r){let o=e+q$3,i=w$1(),s=no(i,o);return xf(i,o)?Hv(i,Nn(),t,s.transform,n,r,s):s.transform(n,r)}function U_(e,t,n,r,o,i){let s=e+q$3,a=w$1(),c=no(a,s);return xf(a,s)?Vv(a,Nn(),t,c.transform,n,r,o,i,c):c.transform(n,r,o,i)}function xf(e,t){return e[C$1].data[t].pure}function B_(e,t){return ic(e,t)}var $v=(()=>{class e{applicationErrorHandler=p$1(qe$3);appRef=p$1(Ln$1);taskService=p$1(rn$1);ngZone=p$1(ve$2);zonelessEnabled=p$1(ai$1);tracing=p$1(jt$2,{optional:true});
4zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:true}}];subscriptions=new ie$3;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get($o):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p$1($l,{optional:true})??false);cancelScheduledCallback=null;useMicrotaskScheduler=false;runningTick=false;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let n=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(n);return}this.switchToMicrotaskScheduler(),this.taskService.remove(n);})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup();}));}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let n=this.taskService.add();this.useMicrotaskScheduler=true,queueMicrotask(()=>{this.useMicrotaskScheduler=false,this.taskService.remove(n);});});}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:case 2:{this.appRef.dirtyFlags|=2;break}case 3:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8;}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?_g:Bl;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()));}shouldScheduleTick(){return !(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get($o+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick();},void 0,this.schedulerTickApplyArgs);}catch(r){this.applicationErrorHandler(r);}finally{this.taskService.remove(n),this.cleanup();}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup();}cleanup(){if(this.runningTick=false,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n);}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=W$6({token:e,factory:e.\u0275fac})}return e})();function H_(){return He$1("NgZoneless"),Xt$1([...Of(),[]])}function Of(){return [{provide:Kt$2,useExisting:$v},{provide:ve$2,useClass:zo},{provide:ai$1,useValue:true}]}var kf=(()=>{class e{compileModuleSync(n){return new $a(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=W$6({token:e,factory:e.\u0275fac})}return e})();function V_(){return typeof $localize<"u"&&$localize.locale||Ai$1}var _r=new v$2("",{factory:()=>p$1(_r,{optional:true,skipSelf:true})||V_()}),Pf=new v$2("",{factory:()=>UT});var mc=class{destroyed=false;listeners=null;errorHandler=p$1(Qe$2,{optional:true});isEmitting=false;hasNullListeners=false;destroyRef=p$1(ke$2);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=true,this.listeners=null;});}subscribe(t){if(this.destroyed)throw new m$1(953,false);return (this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?this.listeners.indexOf(t):-1;n>-1&&(this.isEmitting?(this.hasNullListeners=true,this.listeners[n]=null):this.listeners.splice(n,1));}}}emit(t){if(this.destroyed){console.warn(Ke$2(953,false));return}if(this.listeners===null)return;this.isEmitting=true;let n=b$1(null);try{for(let r of this.listeners)try{r!==null&&r(t);}catch(o){this.errorHandler?.handleError(o);}}finally{this.hasNullListeners&&(this.hasNullListeners=false,this.listeners&&$_(this.listeners)),b$1(n),this.isEmitting=false;}}};function $_(e){let t=e.length-1;for(;t>-1;)e[t]===null&&e.splice(t,1),t--;}function Ri$1(e,t){return Uo(e,t?.equal)}function Z$4(e){return Pp(e)}var z_=e=>e;function Lf(e,t){if(typeof e=="function"){let n=Vu(e,z_,t?.equal);return zv(n)}else {let n=Vu(e.source,e.computation,e.equal);return zv(n,e.debugName)}}function zv(e,t){let n=e[ce$3],r=e;return r.set=o=>Op(n,o),r.update=o=>kp(n,o),r.asReadonly=ha.bind(e),r}var Zv=Symbol("InputSignalNode#UNSET"),tM=m$2(l$1({},Bs),{transformFn:void 0,applyValueToInputSignal(e,t){rr$1(e,t);}});function Yv(e,t){let n=Object.create(tM);n.value=e,n.transformFn=t?.transform;function r(){if(Xn(n),n.value===Zv){let o=null;throw new m$1(-950,o)}return n.value}return r[ce$3]=n,r}var vc=class{attributeName;constructor(t){this.attributeName=t;}__NG_ELEMENT_ID__=()=>Ci$1(this.attributeName);toString(){return `HostAttributeToken ${this.attributeName}`}};function jf(e){return nM(e)?e.default:e}function nM(e){return e&&typeof e=="object"&&"default"in e}function a2(e){return new mc}function Gv(e,t){return Yv(e,t)}function rM(e){return Yv(Zv,e)}var Dc=(Gv.required=rM,Gv);function qv(e,t){return ev()}function oM(e,t){return tv()}var c2=(qv.required=oM,qv);var Fn=(()=>{class e{static __NG_ELEMENT_ID__=sM}return e})();function sM(e){return aM(ue$2(),w$1(),(e&16)===16)}
4function aM(e,t,n){if(tn$1(e)&&!n){let r=rt$4(e.index,t);return new On(r,r)}else if(e.type&175){let r=t[Oe$4];return new On(r,t)}return null}var Ff=new v$2(""),cM=new v$2("");function xi$1(e){return !e.moduleRef}function uM(e){let t=xi$1(e)?e.r3Injector:e.moduleRef.injector,n=t.get(ve$2);return n.run(()=>{xi$1(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(qe$3),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r});}),xi$1(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Ff);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i);});}else {let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Ff);s.add(i),e.moduleRef.onDestroy(()=>{hi$1(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i);});}return dM(r,n,()=>{let i=t.get(rn$1),s=i.add(),a=t.get(vf);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(_r,Ai$1);if(hv(c||Ai$1),!t.get(cM,!0))return xi$1(e)?t.get(Ln$1):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(xi$1(e)){let l=t.get(Ln$1);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return lM?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s);})})})}var lM;function dM(e,t,n){try{let r=n();return Sr$1(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var yc=null;function fM(e=[],t){return Ie$3.create({name:t,providers:[{provide:Qo,useValue:"platform"},{provide:Ff,useValue:new Set([()=>yc=null])},...e]})}function hM(e=[]){if(yc)return yc;let t=fM(e);return yc=t,av(),pM(t),t}function pM(e){let t=e.get(pa,null);ge$2(e,()=>{t?.forEach(n=>n());});}function Qv(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;V$1(j$5.BootstrapApplicationStart);try{let i=o?.injector??hM(r),s=[Of(),Ng,...n||[]],a=new Di$1({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return uM({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{V$1(j$5.BootstrapApplicationEnd);}}function cn$1(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function Uf(e,t=NaN){return !isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}function l2(e,t){let n=Jt$2(e),r=t.elementInjector||Kr$1();return new Er$1(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector,t.directives,t.bindings)}function Kv(e){let t=Jt$2(e);if(!t)return null;let n=new Er$1(t);return {get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}var Jv=null;function un$1(){return Jv}function Bf(e){Jv??=e;}var Oi$1=class Oi{},ln$1=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S$4({token:e,factory:()=>p$1(Xv),providedIn:"platform"})}return e})(),Hf=new v$2(""),Xv=(()=>{class e extends ln$1{_location;_history;_doc=p$1(ee$3);constructor(){super(),this._location=window.location,this._history=window.history;}getBaseHrefFromDOM(){return un$1().getBaseHref(this._doc)}onPopState(n){let r=un$1().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,false),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=un$1().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,false),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n;}pushState(n,r,o){this._history.pushState(n,r,o);}replaceState(n,r,o){this._history.replaceState(n,r,o);}forward(){this._history.forward();}back(){this._history.back();}historyGo(n=0){this._history.go(n);}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S$4({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function Ec(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function eD(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function Dt$2(e){return e&&e[0]!=="?"?`?${e}`:e}var Et$1=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S$4({token:e,factory:()=>p$1(Ic),providedIn:"root"})}return e})(),wc=new v$2(""),Ic=(()=>
4{class e extends Et$1{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??p$1(ee$3).location?.origin??"";}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()();}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n));}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Ec(this._baseHref,n)}path(n=false){let r=this._platformLocation.pathname+Dt$2(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Dt$2(i));this._platformLocation.pushState(n,r,s);}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Dt$2(i));this._platformLocation.replaceState(n,r,s);}forward(){this._platformLocation.forward();}back(){this._platformLocation.back();}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n);}static \u0275fac=function(r){return new(r||e)(I$2(ln$1),I$2(wc,8))};static \u0275prov=S$4({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var jn$1=(()=>{class e{_subject=new ae$4;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=yM(eD(tD(r))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(true),pop:true,state:o.state,type:o.type});});}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[];}path(n=false){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Dt$2(r))}normalize(n){return e.stripTrailingSlash(mM(this._basePath,tD(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Dt$2(r)),o);}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Dt$2(r)),o);}forward(){this._locationStrategy.forward();}back(){this._locationStrategy.back();}historyGo(n=0){this._locationStrategy.historyGo?.(n);}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state);}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null);}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r));}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r??void 0,complete:o??void 0})}static normalizeQueryParams=Dt$2;static joinWithSlash=Ec;static stripTrailingSlash=eD;static \u0275fac=function(r){return new(r||e)(I$2(Et$1))};static \u0275prov=S$4({token:e,factory:()=>gM(),providedIn:"root"})}return e})();function gM(){return new jn$1(I$2(Et$1))}function mM(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function tD(e){return e.replace(/\/index\.html$/,"")}function yM(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var Qf=(()=>{class e extends Et$1{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,r!=null&&(this._baseHref=r);}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()();}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n));}getBaseHref(){return this._baseHref}path(n=false){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(n){let r=Ec(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Dt$2(i))||this._platformLocation.pathname;this._platformLocation.pushState(n,r,s);}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Dt$2(i))||this._platformLocation.pathname;this._platformLocation.replaceState(n,r,s);}forward(){this._platformLocation.forward();}back(){this._platformLocation.back();}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n);}static \u0275fac=function(r){return new(r||e)(I$2(ln$1),I$2(wc,8))};static \u0275prov=S$4({token:e,factory:e.\u0275fac})}return e})(),sD={ADP:[void 0,void 0,0],AFN:[void 0,"\u060B",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058F",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20BC"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09F3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xA5","\xA5"],COP:[void 0,"$",2],CRC:[void 0,"\u20A1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010D",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xA3"],ESP:[void 0,"\u20A7",0],EUR:["\u20AC"],FJD:[void 0,"$"],FKP:[void 0,"\xA3"],GBP:["\xA3"],GEL:[void 0,"\u20BE"],GHS:[void 0,"GH\u20B5"],GIP:[void 0,"\xA3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20AA"],INR:["\u20B9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xA5",void 0,0],KGS:[void 0,"\u20C0"],KHR:[void 0,"\u17DB"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20A9",0],KRW:["\u20A9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20B8"],LAK:[void 0,"\u20AD",0],LBP:[void 0,"L\xA3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20AE",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20A6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20B1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20B2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20BD"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xA3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xA3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xA3",0],THB:[void 0,"\u0E3F"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20BA"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20B4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20AB",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XCG:["Cg."],XOF:["F\u202FCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xA4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},Ac=(function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e})(Ac||{});var Me$4=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(Me$4||{}),Y$4=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(Y$4||{}),Ve$3=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(Ve$3||{}),Ce$3={Decimal:0,Group:1,MinusSign:5,Exponential:6,Infinity:9,CurrencyDecimal:12,CurrencyGroup:13};function aD(e){return Le$3(e)[ne$3.LocaleId]}function cD(e,t,n){let r=Le$3(e),o=[r[ne$3.DayPeriodsFormat],r[ne$3.DayPeriodsStandalone]],i=ct$4(o,t);return ct$4(i,n)}function uD(e,t,n){let r=Le$3(e),o=[r[ne$3.DaysFormat],r[ne$3.DaysStandalone]],i=ct$4(o,t);return ct$4(i,n)}function lD(e,t,n){let r=Le$3(e),o=[r[ne$3.MonthsFormat],r[ne$3.MonthsStandalone]],i=ct$4(o,t);return ct$4(i,n)}
4function dD(e,t){let r=Le$3(e)[ne$3.Eras];return ct$4(r,t)}function ki$1(e,t){let n=Le$3(e);return ct$4(n[ne$3.DateFormat],t)}function Pi$1(e,t){let n=Le$3(e);return ct$4(n[ne$3.TimeFormat],t)}function Li$1(e,t){let r=Le$3(e)[ne$3.DateTimeFormat];return ct$4(r,t)}function It$2(e,t){let n=Le$3(e),r=n[ne$3.NumberSymbols][t];if(typeof r>"u"){if(t===Ce$3.CurrencyDecimal)return n[ne$3.NumberSymbols][Ce$3.Decimal];if(t===Ce$3.CurrencyGroup)return n[ne$3.NumberSymbols][Ce$3.Group]}return r}function Kf(e,t){return Le$3(e)[ne$3.NumberFormats][t]}function vM(e){return Le$3(e)[ne$3.Currencies]}function fD(e){if(!e[ne$3.ExtraData])throw new m$1(2303,false)}function hD(e){let t=Le$3(e);return fD(t),(t[ne$3.ExtraData][2]||[]).map(r=>typeof r=="string"?Vf(r):[Vf(r[0]),Vf(r[1])])}function pD(e,t,n){let r=Le$3(e);fD(r);let o=[r[ne$3.ExtraData][0],r[ne$3.ExtraData][1]],i=ct$4(o,t)||[];return ct$4(i,n)||[]}function ct$4(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new m$1(2304,false)}function Vf(e){let[t,n]=e.split(":");return {hours:+t,minutes:+n}}function gD(e,t,n="en"){let r=vM(n)[e]||sD[e]||[],o=r[1];return t==="narrow"&&typeof o=="string"?o:r[0]||e}var DM=2;function mD(e){let t,n=sD[e];return n&&(t=n[2]),typeof t=="number"?t:DM}var EM=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Cc=Object.create(null),wM=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,IM=256;function yD(e,t,n,r){let o=xM(e);CM(t),t=dn$1(n,t)||t;let s=[],a;for(;t;)if(a=wM.exec(t),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;t=l;}else {s.push(t);break}let c=o.getTimezoneOffset();r&&(c=DD(r,c),o=RM(o,r));let u="";return s.forEach(l=>{let d=NM(l);u+=d?d(o,n,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'");}),u}function CM(e){if(e.length>IM)throw new m$1(2300,false)}function Mc(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function dn$1(e,t){let n=aD(e);if(Cc[n]??=Object.create(null),Cc[n][t])return Cc[n][t];let r="";switch(t){case "shortDate":r=ki$1(e,Ve$3.Short);break;case "mediumDate":r=ki$1(e,Ve$3.Medium);break;case "longDate":r=ki$1(e,Ve$3.Long);break;case "fullDate":r=ki$1(e,Ve$3.Full);break;case "shortTime":r=Pi$1(e,Ve$3.Short);break;case "mediumTime":r=Pi$1(e,Ve$3.Medium);break;case "longTime":r=Pi$1(e,Ve$3.Long);break;case "fullTime":r=Pi$1(e,Ve$3.Full);break;case "short":let o=dn$1(e,"shortTime"),i=dn$1(e,"shortDate");r=bc(Li$1(e,Ve$3.Short),[o,i]);break;case "medium":let s=dn$1(e,"mediumTime"),a=dn$1(e,"mediumDate");r=bc(Li$1(e,Ve$3.Medium),[s,a]);break;case "long":let c=dn$1(e,"longTime"),u=dn$1(e,"longDate");r=bc(Li$1(e,Ve$3.Long),[c,u]);break;case "full":let l=dn$1(e,"fullTime"),d=dn$1(e,"fullDate");r=bc(Li$1(e,Ve$3.Full),[l,d]);break}return r&&(Cc[n][t]=r),r}function bc(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return Object.hasOwn(t,r)?t[r]:n})),e}function wt$2(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=n));let s=String(e);for(;s.length<t;)s="0"+s;return r&&(s=s.slice(s.length-t)),i+s}function bM(e,t){return wt$2(e,3).substring(0,t)}function le$2(e,t,n=0,r=false,o=false){return function(i,s){let a=SM(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return bM(a,t);let c=It$2(s,Ce$3.MinusSign);return wt$2(a,t,c,r,o)}}function SM(e,t){switch(e){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();case 3:return t.getHours();case 4:return t.getMinutes();case 5:return t.getSeconds();case 6:return t.getMilliseconds();case 7:return t.getDay();default:throw new m$1(2301,false)}}function X$4(e,t,n=Me$4.Format,r=false){return function(o,i){return TM(o,i,e,t,n,r)}}function TM(e,t,n,r,o,i){switch(n){case 2:return lD(t,o,r)[e.getMonth()];case 1:return uD(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let u=hD(t),l=pD(t,o,r),d=u.findIndex(f=>{if(Array.isArray(f)){let[h,g]=f,D=s>=h.hours&&a>=h.minutes,E=s<g.hours||s===g.hours&&a<g.minutes;if(h.hours<g.hours){if(D&&E)return  true}else if(D||E)return  true}else if(f.hours===s&&f.minutes===a)return  true;return  false});if(d!==-1)return l[d]}return cD(t,o,r)[s<12?0:1];case 3:return dD(t,r)[e.getFullYear()<=0?0:1];default:throw new m$1(2302,false)}}function Sc(e){return function(t,n,r){let o=-1*r,i=It$2(n,Ce$3.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return (o>=0?"+":"")+wt$2(s,2,i)+wt$2(Math.abs(o%60),2,i);case 1:return "GMT"+(o>=0?"+":"")+wt$2(s,1,i);case 2:return "GMT"+(o>=0?"+":"")+wt$2(s,2,i)+":"+wt$2(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+wt$2(s,2,i)+":"+wt$2(Math.abs(o%60),2,i);default:throw new m$1(2310,false)}}}var _M=0,_c=4;function MM(e){let t=Mc(e,_M,1).getDay();return Mc(e,0,1+(t<=_c?_c:_c+7)-t)}function vD(e){let t=e.getDay(),n=t===0?-3:_c-t;return Mc(e.getFullYear(),e.getMonth(),e.getDate()+n)}function $f(e,t=false){return function(n,r){let o;if(t){let i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7);}else {let i=vD(n),s=MM(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5);}return wt$2(o,e,It$2(r,Ce$3.MinusSign))}}function Tc(e,t=false){return function(n,r){let i=vD(n).getFullYear();return wt$2(i,e,It$2(r,Ce$3.MinusSign),t)}}var zf=Object.create(null);function NM(e){if(zf[e])return zf[e];let t;switch(e){case "G":case "GG":case "GGG":t=X$4(3,Y$4.Abbreviated);break;case "GGGG":t=X$4(3,Y$4.Wide);break;case "GGGGG":t=X$4(3,Y$4.Narrow);break;case "y":t=le$2(0,1,0,false,true);break;case "yy":t=le$2(0,2,0,true,true);break;case "yyy":t=le$2(0,3,0,false,true);break;case "yyyy":t=le$2(0,4,0,false,true);break;case "Y":t=Tc(1);break;case "YY":t=Tc(2,true);break;case "YYY":t=Tc(3);break;case "YYYY":t=Tc(4);break;case "M":case "L":t=le$2(1,1,1);break;case "MM":case "LL":t=le$2(1,2,1);break;case "MMM":t=X$4(2,Y$4.Abbreviated);break;case "MMMM":t=X$4(2,Y$4.Wide);break;case "MMMMM":t=X$4(2,Y$4.Narrow);break;case "LLL":t=X$4(2,Y$4.Abbreviated,Me$4.Standalone);break;case "LLLL":t=X$4(2,Y$4.Wide,Me$4.Standalone);break;case "LLLLL":t=X$4(2,Y$4.Narrow,Me$4.Standalone);break;case "w":t=$f(1);break;case "ww":t=$f(2);break;case "W":t=$f(1,true);break;case "d":t=le$2(2,1);break;case "dd":t=le$2(2,2);break;case "c":case "cc":t=le$2(7,1);break;case "ccc":t=X$4(1,Y$4.Abbreviated,Me$4.Standalone);break;case "cccc":t=X$4(1,Y$4.Wide,Me$4.Standalone);break;case "ccccc":t=X$4(1,Y$4.Narrow,Me$4.Standalone);break;case "cccccc":t=X$4(1,Y$4.Short,Me$4.Standalone);break;case "E":case "EE":case "EEE":t=X$4(1,Y$4.Abbreviated);break;case "EEEE":t=X$4(1,Y$4.Wide);break;case "EEEEE":t=X$4(1,Y$4.Narrow);break;case "EEEEEE":t=X$4(1,Y$4.Short);break;case "a":case "aa":case "aaa":t=X$4(0,Y$4.Abbreviated);break;case "aaaa":t=X$4(0,Y$4.Wide);break;case "aaaaa":t=X$4(0,Y$4.Narrow);break;case "b":case "bb":case "bbb":t=X$4(0,Y$4.Abbreviated,Me$4.Standalone,true);break;
vendor: 5,059 bytes, line 4
4case "bbbb":t=X$4(0,Y$4.Wide,Me$4.Standalone,true);break;case "bbbbb":t=X$4(0,Y$4.Narrow,Me$4.Standalone,true);break;case "B":case "BB":case "BBB":t=X$4(0,Y$4.Abbreviated,Me$4.Format,true);break;case "BBBB":t=X$4(0,Y$4.Wide,Me$4.Format,true);break;case "BBBBB":t=X$4(0,Y$4.Narrow,Me$4.Format,true);break;case "h":t=le$2(3,1,-12);break;case "hh":t=le$2(3,2,-12);break;case "H":t=le$2(3,1);break;case "HH":t=le$2(3,2);break;case "m":t=le$2(4,1);break;case "mm":t=le$2(4,2);break;case "s":t=le$2(5,1);break;case "ss":t=le$2(5,2);break;case "S":t=le$2(6,1);break;case "SS":t=le$2(6,2);break;case "SSS":t=le$2(6,3);break;case "Z":case "ZZ":case "ZZZ":t=Sc(0);break;case "ZZZZZ":t=Sc(3);break;case "O":case "OO":case "OOO":case "z":case "zz":case "zzz":t=Sc(1);break;case "OOOO":case "ZZZZ":case "zzzz":t=Sc(2);break;default:return null}return zf[e]=t,t}function DD(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function AM(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function RM(e,t,n){let o=e.getTimezoneOffset(),i=DD(t,o);return AM(e,-1*(i-o))}function xM(e){if(nD(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split("-").map(a=>+a);return Mc(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(EM))return OM(r)}let t=new Date(e);if(!nD(t))throw new m$1(2311,false);return t}function OM(e){let t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,c=Number(e[6]||0),u=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,a,c,u),t}function nD(e){return e instanceof Date&&!isNaN(e.valueOf())}var kM=/^(\d+)?\.((\d+)(-(\d+))?)?$/,rD=22,Nc=".",Fi$1="0",PM=";",LM=",",Gf="#",oD="\xA4";function ED(e,t,n,r,o,i,s=false){let a="",c=false;if(!isFinite(e))a=It$2(n,Ce$3.Infinity);else {let u=jM(e);s&&(u=FM(u));let l=t.minInt,d=t.minFrac,f=t.maxFrac;if(i){let _=i.match(kM);if(_===null)throw new m$1(2306,false);let R=_[1],de=_[3],lt=_[5];R!=null&&(l=qf(R)),de!=null&&(d=qf(de)),lt!=null?f=qf(lt):de!=null&&d>f&&(f=d);let Q=100;if(l>Q||d>Q||f>Q)throw new m$1(2306,false)}UM(u,d,f);let h=u.digits,g=u.integerLen,D=u.exponent,E=[];for(c=h.every(_=>!_);g<l;g++)h.unshift(0);for(;g<0;g++)h.unshift(0);g>0?E=h.splice(g,h.length):(E=h,h=[0]);let N=[];for(h.length>=t.lgSize&&N.unshift(h.splice(-t.lgSize,h.length).join(""));h.length>t.gSize;)N.unshift(h.splice(-t.gSize,h.length).join(""));h.length&&N.unshift(h.join("")),a=N.join(It$2(n,r)),E.length&&(a+=It$2(n,o)+E.join("")),D&&(a+=It$2(n,Ce$3.Exponential)+"+"+D);}return e<0&&!c?a=t.negPre+a+t.negSuf:a=t.posPre+a+t.posSuf,a}function wD(e,t,n,r,o){let i=Kf(t,Ac.Currency),s=CD(i,It$2(t,Ce$3.MinusSign));return s.minFrac=mD(r),s.maxFrac=s.minFrac,ED(e,s,t,Ce$3.CurrencyGroup,Ce$3.CurrencyDecimal,o).replace(oD,n).replace(oD,"").trim()}function ID(e,t,n){let r=Kf(t,Ac.Decimal),o=CD(r,It$2(t,Ce$3.MinusSign));return ED(e,o,t,Ce$3.Group,Ce$3.Decimal,n)}function CD(e,t="-"){let n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(PM),o=r[0],i=r[1],s=o.indexOf(Nc)!==-1?o.split(Nc):[o.substring(0,o.lastIndexOf(Fi$1)+1),o.substring(o.lastIndexOf(Fi$1)+1)],a=s[0],c=s[1]||"";n.posPre=a.substring(0,a.indexOf(Gf));for(let l=0;l<c.length;l++){let d=c.charAt(l);d===Fi$1?n.minFrac=n.maxFrac=l+1:d===Gf?n.maxFrac=l+1:n.posSuf+=d;}let u=a.split(LM);if(n.gSize=u[1]?u[1].length:0,n.lgSize=u[2]||u[1]?(u[2]||u[1]).length:0,i){let l=o.length-n.posPre.length-n.posSuf.length,d=i.indexOf(Gf);n.negPre=i.substring(0,d).replace(/'/g,""),n.negSuf=i.slice(d+l).replace(/'/g,"");}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}function FM(e){if(e.digits[0]===0)return e;let t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(t===0?e.digits.push(0,0):t===1&&e.digits.push(0),e.integerLen+=2),e}function jM(e){let t=Math.abs(e)+"",n=0,r,o,i,s,a;for((o=t.indexOf(Nc))>-1&&(t=t.replace(Nc,"")),(i=t.search(/e/i))>0?(o<0&&(o=i),o+=+t.slice(i+1),t=t.substring(0,i)):o<0&&(o=t.length),i=0;t.charAt(i)===Fi$1;i++);if(i===(a=t.length))r=[0],o=1;else {for(a--;t.charAt(a)===Fi$1;)a--;for(o-=i,r=[],s=0;i<=a;i++,s++)r[s]=Number(t.charAt(i));}return o>rD&&(r=r.splice(0,rD-1),n=o-1,o=1),{digits:r,exponent:n,integerLen:o}}function UM(e,t,n){if(t>n)throw new m$1(2307,false);let r=e.digits,o=r.length-e.integerLen,i=Math.min(Math.max(t,o),n),s=i+e.integerLen,a=r[s];if(s>0){r.splice(Math.max(e.integerLen,s));for(let d=s;d<r.length;d++)r[d]=0;}else {o=Math.max(0,o),e.integerLen=1,r.length=Math.max(1,s=i+1),r[0]=0;for(let d=1;d<s;d++)r[d]=0;}if(a>=5)if(s-1<0){for(let d=0;d>s;d--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++;}else r[s-1]++;for(;o<Math.max(0,i);o++)r.push(0);let c=i!==0,u=t+e.integerLen,l=r.reduceRight(function(d,f,h,g){return f=f+d,g[h]=f<10?f:f-10,
4c&&(g[h]===0&&h>=u?g.pop():c=false),f>=10?1:0},0);l&&(r.unshift(l),e.integerLen++);}function qf(e){let t=parseInt(e);if(isNaN(t))throw new m$1(2305,false);return t}var Wf=/\s+/,iD=[],BM=(()=>{class e{_ngEl;_renderer;initialClasses=iD;rawClass;stateMap=new Map;constructor(n,r){this._ngEl=n,this._renderer=r;}set klass(n){this.initialClasses=n!=null?n.trim().split(Wf):iD;}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(Wf):n;}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,true);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,true);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff();}_updateState(n,r){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==r&&(o.changed=true,o.enabled=r),o.touched=true):this.stateMap.set(n,{enabled:r,changed:true,touched:true});}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=false):o.touched||(o.enabled&&this._toggleClass(r,false),this.stateMap.delete(r)),o.touched=false;}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(Wf).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o);});}static \u0275fac=function(r){return new(r||e)(J$6(st$3),J$6(kn))};static \u0275dir=yt$2({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})();var HM=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=p$1(Ie$3);constructor(n){this._viewContainerRef=n;}ngOnChanges(n){if(this._shouldRecreateView(n)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this._getInjector()});}}_getInjector(){return this.ngTemplateOutletInjector==="outlet"?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(n){return !!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,r,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,o):false,get:(n,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}static \u0275fac=function(r){return new(r||e)(J$6(Pn))};static \u0275dir=yt$2({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Lt$2]})}return e})();function ji$1(e,t){return new m$1(2100,false)}var Zf=class{createSubscription(t,n,r){return Z$4(()=>t.subscribe({next:n,error:r}))}dispose(t){Z$4(()=>t.unsubscribe());}},Yf=class{createSubscription(t,n,r){return t.then(o=>n?.(o),o=>r?.(o)),{unsubscribe:()=>{n=null,r=null;}}}dispose(t){t.unsubscribe();}},VM=new Yf,$M=new Zf,zM=(()=>{class e{_ref;_latestValue=null;markForCheckOnValueUpdate=true;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=p$1(qe$3);constructor(n){this._ref=n;}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null;}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n);}finally{this.markForCheckOnValueUpdate=true;}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r),r=>this.applicationErrorHandler(r));}_selectStrategy(n){if(Sr$1(n))return VM;if(ac(n))return $M;throw ji$1()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null;}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck());}static \u0275fac=function(r){return new(r||e)(J$6(Fn,16))};static \u0275pipe=an$1({name:"async",type:e,pure:false})}return e})();var GM=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u
40EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g,qM=(()=>{class e{transform(n){return n==null?null:(bD(e,n),n.replace(GM,r=>r[0].toUpperCase()+r.slice(1).toLowerCase()))}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=an$1({name:"titlecase",type:e,pure:true})}return e})(),WM=(()=>{class e{transform(n){return n==null?null:(bD(e,n),n.toUpperCase())}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=an$1({name:"uppercase",type:e,pure:true})}return e})();function bD(e,t){if(typeof t!="string")throw ji$1()}var ZM="mediumDate",SD=new v$2(""),TD=new v$2(""),YM=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o;}
4transform(n,r,o,i){if(n==null||n===""||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??ZM,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return yD(n,s,i||this.locale,a)}catch(s){throw ji$1(e,s.message)}}static \u0275fac=function(r){return new(r||e)(J$6(_r,16),J$6(SD,24),J$6(TD,24))};static \u0275pipe=an$1({name:"date",type:e,pure:true})}return e})();var QM=(()=>{class e{transform(n){return JSON.stringify(n,null,2)}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=an$1({name:"json",type:e,pure:false})}return e})();var KM=(()=>{class e{_locale;constructor(n){this._locale=n;}transform(n,r,o){if(!_D(n))return null;o||=this._locale;try{let i=MD(n);return ID(i,o,r)}catch(i){throw ji$1(e,i.message)}}static \u0275fac=function(r){return new(r||e)(J$6(_r,16))};static \u0275pipe=an$1({name:"number",type:e,pure:true})}return e})();var JM=(()=>{class e{_locale;_defaultCurrencyCode;constructor(n,r="USD"){this._locale=n,this._defaultCurrencyCode=r;}transform(n,r=this._defaultCurrencyCode,o="symbol",i,s){if(!_D(n))return null;s||=this._locale,typeof o=="boolean"&&(o=o?"symbol":"code");let a=r||this._defaultCurrencyCode;o!=="code"&&(o==="symbol"||o==="symbol-narrow"?a=gD(a,o==="symbol"?"wide":"narrow",s):a=o);try{let c=MD(n);return wD(c,s,a,r,i)}catch(c){throw ji$1(e,c.message)}}static \u0275fac=function(r){return new(r||e)(J$6(_r,16),J$6(Pf,16))};static \u0275pipe=an$1({name:"currency",type:e,pure:true})}return e})();function _D(e){return !(e==null||e===""||e!==e)}function MD(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new m$1(2309,false);return e}var ND=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Tr$1({type:e});static \u0275inj=bn({})}return e})();function Ui$1(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var XM=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=W$6({token:e,factory:e.\u0275fac})}return e})(),Jf=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=S$4({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=I$2(XM),o},providedIn:"root"})}return e})();function T8(e,t,n){return Tf(e,t,n)}var eh="browser";function _8(e){return e===eh}var th=(()=>{class e{static \u0275prov=S$4({token:e,providedIn:"root",factory:()=>new Xf(p$1(ee$3),window)})}return e})(),Xf=class{document;window;offset=()=>[0,0];constructor(t,n){this.document=t,this.window=n;}setOffset(t){Array.isArray(t)?this.offset=()=>t:this.offset=t;}getScrollPosition(){return [this.window.scrollX,this.window.scrollY]}scrollToPosition(t,n){this.window.scrollTo(m$2(l$1({},n),{left:t[0],top:t[1]}));}scrollToAnchor(t,n){let r=tN(this.document,t);r&&(this.scrollToElement(r,n),r.focus({preventScroll:true}));}setHistoryScrollRestoration(t){try{this.window.history.scrollRestoration=t;}catch{console.warn(Ke$2(2400,false));}}scrollToElement(t,n){let r=t.getBoundingClientRect(),o=r.left+this.window.pageXOffset,i=r.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(m$2(l$1({},n),{left:o-s[0],top:i-s[1]}));}};function tN(e,t){let n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),o=r.currentNode;for(;o;){let i=o.shadowRoot;if(i){let s=i.getElementById(t)||i.querySelector(`[name="${CSS.escape(t)}"]`);if(s)return s}o=r.nextNode();}}return null}function AD(e){return e.replace(/\\/g,"\\\\").replace(/[\n\r\f\0]/g,"").replace(/"/g,'\\"')}var xD=e=>e.src,nN=new v$2("",{factory:()=>xD});var RD=/^((\s*\d+w\s*(,|$)){1,})$/;var rN=[1,2],oN=640;var iN=1920,sN=1080;var M8=(()=>{class e{imageLoader=p$1(nN);config=aN(p$1(ma));renderer=p$1(kn);imgElement=p$1(st$3).nativeElement;injector=p$1(Ie$3);destroyRef=p$1(ke$2);lcpObserver;_renderedSrc=null;ngSrc;ngSrcset;sizes;width;height;decoding;loading;priority=false;loaderParams;disableOptimizedSrcset=false;fill=false;placeholder;placeholderConfig;src;srcset;constructor(){this.destroyRef.onDestroy(()=>{this.renderer.removeAttribute(this.imgElement,"loading");});}
4ngOnInit(){He$1("NgOptimizedImage"),this.placeholder&&this.removePlaceholderOnLoad(this.imgElement),this.setHostAttributes();}setHostAttributes(){this.fill?this.sizes||="100vw":(this.setHostAttribute("width",this.width.toString()),this.setHostAttribute("height",this.height.toString())),this.setHostAttribute("loading",this.getLoadingBehavior()),this.setHostAttribute("fetchpriority",this.getFetchPriority()),this.setHostAttribute("decoding",this.getDecoding()),this.setHostAttribute("ng-img","true");this.updateSrcAndSrcset();this.sizes?this.getLoadingBehavior()==="lazy"?this.setHostAttribute("sizes","auto, "+this.sizes):this.setHostAttribute("sizes",this.sizes):this.ngSrcset&&RD.test(this.ngSrcset)&&this.getLoadingBehavior()==="lazy"&&this.setHostAttribute("sizes","auto, 100vw");}ngOnChanges(n){if(n.ngSrc&&!n.ngSrc.isFirstChange()){this._renderedSrc;this.updateSrcAndSrcset(true);}}getAspectRatio(){return this.width&&this.height&&this.height!==0?this.width/this.height:null}callImageLoader(n){let r=n;this.loaderParams&&(r.loaderParams=this.loaderParams);let o=this.getAspectRatio();return o!==null&&r.width&&(r.height=Math.round(r.width/o)),this.imageLoader(r)}getLoadingBehavior(){return !this.priority&&this.loading!==void 0?this.loading:this.priority?"eager":"lazy"}getFetchPriority(){return this.priority?"high":"auto"}getDecoding(){return this.priority?"sync":this.decoding??"auto"}getRewrittenSrc(){if(!this._renderedSrc){let n={src:this.ngSrc};this._renderedSrc=this.callImageLoader(n);}return this._renderedSrc}getRewrittenSrcset(){let n=RD.test(this.ngSrcset);return this.ngSrcset.split(",").filter(o=>o!=="").map(o=>{o=o.trim();let i=n?parseFloat(o):parseFloat(o)*this.width;return `${this.callImageLoader({src:this.ngSrc,width:i})} ${o}`}).join(", ")}getAutomaticSrcset(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}getResponsiveSrcset(){let{breakpoints:n}=this.config,r=n;return this.sizes?.trim()==="100vw"&&(r=n.filter(i=>i>=oN)),r.map(i=>`${this.callImageLoader({src:this.ngSrc,width:i})} ${i}w`).join(", ")}updateSrcAndSrcset(n=false){n&&(this._renderedSrc=null);let r=this.getRewrittenSrc();this.setHostAttribute("src",r);let o;return this.ngSrcset?o=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(o=this.getAutomaticSrcset()),o&&this.setHostAttribute("srcset",o),o}getFixedSrcset(){return rN.map(r=>`${this.callImageLoader({src:this.ngSrc,width:this.width*r})} ${r}x`).join(", ")}shouldGenerateAutomaticSrcset(){let n=false;return this.sizes||(n=this.width>iN||this.height>sN),!this.disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==xD&&!n}generatePlaceholder(n){let{placeholderResolution:r}=this.config;return n===true?`url("${AD(this.callImageLoader({src:this.ngSrc,width:r,isPlaceholder:true}))}")`:typeof n=="string"?`url("${AD(n)}")`:null}shouldBlurPlaceholder(n){return !n||!n.hasOwnProperty("blur")?true:!!n.blur}removePlaceholderOnLoad(n){let r=()=>{let s=this.injector.get(Fn);o(),i(),this.placeholder=false,s.markForCheck();},o=this.renderer.listen(n,"load",r),i=this.renderer.listen(n,"error",r);this.destroyRef.onDestroy(()=>{o(),i();}),cN(n,r);}setHostAttribute(n,r){this.renderer.setAttribute(this.imgElement,n,r);}static \u0275fac=function(r){return new(r||e)};static \u0275dir=yt$2({type:e,selectors:[["img","ngSrc",""]],hostVars:18,hostBindings:function(r,o){r&2&&gc("position",o.fill?"absolute":null)("width",o.fill?"100%":null)("height",o.fill?"100%":null)("inset",o.fill?"0":null)("background-size",o.placeholder?"cover":null)("background-position",o.placeholder?"50% 50%":null)("background-repeat",o.placeholder?"no-repeat":null)("background-image",o.placeholder?o.generatePlaceholder(o.placeholder):null)("filter",o.placeholder&&o.shouldBlurPlaceholder(o.placeholderConfig)?"blur(15px)":null);},inputs:{ngSrc:[2,"ngSrc","ngSrc",uN],ngSrcset:"ngSrcset",sizes:"sizes",width:[2,"width","width",Uf],height:[2,"height","height",Uf],decoding:"decoding",loading:"loading",priority:[2,"priority","priority",cn$1],loaderParams:"loaderParams",disableOptimizedSrcset:[2,"disableOptimizedSrcset","disableOptimizedSrcset",cn$1],fill:[2,"fill","fill",cn$1],placeholder:[2,"placeholder","placeholder",lN],placeholderConfig:"placeholderConfig",src:"src",srcset:"srcset"},features:[Lt$2]})}return e})();function aN(e){let t={};return e.breakpoints&&(t.breakpoints=e.breakpoints.sort((n,r)=>n-r)),Object.assign({},ga,e,t)}
4function cN(e,t){e.complete&&e.naturalWidth&&t();}function uN(e){return typeof e=="string"?e:Pe$3(e)}function lN(e){return typeof e=="string"&&e!=="true"&&e!=="false"&&e!==""?e:cn$1(e)}var Bi$1=class Bi{_doc;constructor(t){this._doc=t;}manager},Rc=(()=>{class e extends Bi$1{constructor(n){super(n);}supports(n){return  true}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(I$2(ee$3))};static \u0275prov=S$4({token:e,factory:e.\u0275fac})}return e})(),kc=new v$2(""),ih=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(s=>{s.manager=this;});let o=n.filter(s=>!(s instanceof Rc));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof Rc);i&&this._plugins.push(i);}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new m$1(-5101,false);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(I$2(kc),I$2(ve$2))};static \u0275prov=S$4({token:e,factory:e.\u0275fac})}return e})(),nh="ng-app-id";function OD(e){for(let t of e)t.remove();}function kD(e,t){let n=t.createElement("style");return n.textContent=e,n}function fN(e,t,n,r){let o=e.head?.querySelectorAll(`style[${nh}="${t}"],link[${nh}="${t}"]`);if(!o||o.length===0)return  false;for(let i of o)i.removeAttribute(nh),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]});return  true}function oh(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var sh=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,fN(n,r,this.inline,this.external)&&this.hosts.add(n.head);}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,kD);r?.forEach(o=>this.addUsage(o,this.external,oh));}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external));}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))});}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(OD(o.elements),r.delete(n)));}ngOnDestroy(){for(let[,{elements:n}]of [...this.inline,...this.external])OD(n);this.hosts.clear();}addHost(n){if(!this.hosts.has(n)){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,kD(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,oh(r,this.doc)));}}removeHost(n){this.hosts.delete(n);for(let r of [...this.inline.values(),...this.external.values()]){let o=[];for(let i of r.elements)i.parentNode===n?i.remove():o.push(i);r.elements=o;}}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(I$2(ee$3),I$2(ri),I$2(ii,8),I$2(oi))};static \u0275prov=S$4({token:e,factory:e.\u0275fac})}return e})(),rh={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"},ah=/%COMP%/g;var LD="%COMP%",hN=`_nghost-${LD}`,pN=`_ngcontent-${LD}`,gN=true,mN=new v$2("",{factory:()=>gN});function yN(e){return pN.replace(ah,e)}function vN(e){return hN.replace(ah,e)}function FD(e,t){return t.map(n=>n.replace(ah,e))}var ch=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(n,r,o,i,s,a,c=null,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.ngZone=a,this.nonce=c,this.tracingService=u,this.defaultRenderer=new Hi$1(n,s,a,this.tracingService);}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);
vendor: 4,610 bytes, line 4
4return o instanceof Oc?o.applyToHost(n):o instanceof Vi$1&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.tracingService;switch(r.encapsulation){case mt$2.Emulated:i=new Oc(c,u,r,this.appId,l,s,a,d);break;case mt$2.ShadowDom:return new xc(c,n,r,s,a,this.nonce,d,u);case mt$2.ExperimentalIsolatedShadowDom:return new xc(c,n,r,s,a,this.nonce,d);default:i=new Vi$1(c,u,r,l,s,a,d);break}o.set(r.id,i);}return i}ngOnDestroy(){this.rendererByCompId.clear();}componentReplaced(n){this.rendererByCompId.delete(n);}static \u0275fac=function(r){return new(r||e)(I$2(ih),I$2(br$1),I$2(ri),I$2(mN),I$2(ee$3),I$2(ve$2),I$2(ii),I$2(jt$2,8))};static \u0275prov=S$4({token:e,factory:e.\u0275fac})}return e})(),Hi$1=class Hi{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=true;constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.tracingService=o;}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(rh[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(PD(t)?t.content:t).appendChild(n);}insertBefore(t,n,r){t&&(PD(t)?t.content:t).insertBefore(n,r);}removeChild(t,n){n.remove();}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new m$1(-5104,false);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=rh[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r);}else t.setAttribute(n,r);}removeAttribute(t,n,r){if(r){let o=rh[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`);}else t.removeAttribute(n);}addClass(t,n){t.classList.add(n);}removeClass(t,n){t.classList.remove(n);}setStyle(t,n,r,o){o&(Pt$2.DashCase|Pt$2.Important)?t.style.setProperty(n,r,o&Pt$2.Important?"important":""):t.style[n]=r;}removeStyle(t,n,r){r&Pt$2.DashCase?t.style.removeProperty(n):t.style[n]="";}setProperty(t,n,r){t!=null&&(t[n]=r);}setValue(t,n){t.nodeValue=n;}listen(t,n,r,o){if(typeof t=="string"&&(t=un$1().getGlobalEventTarget(this.doc,t),!t))throw new m$1(-5102,false);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;t(n)===false&&n.preventDefault();}}};function PD(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var xc=class extends Hi$1{hostEl;sharedStylesHost;shadowRoot;constructor(t,n,r,o,i,s,a,c){super(t,o,i,a),this.hostEl=n,this.sharedStylesHost=c,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let u=r.styles;u=FD(r.id,u);for(let d of u){let f=document.createElement("style");s&&f.setAttribute("nonce",s),f.textContent=d,this.shadowRoot.appendChild(f);}let l=r.getExternalStyles?.();if(l)for(let d of l){let f=oh(d,o);s&&f.setAttribute("nonce",s),this.shadowRoot.appendChild(f);}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot);}},Vi$1=class Vi extends Hi$1{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let u=r.styles;this.styles=c?FD(c,u):u,this.styleUrls=r.getExternalStyles?.(c);}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls);}destroy(){this.removeStylesOnCompDestroy&&xn.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls);}},Oc=class extends Vi$1{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c){let u=o+"-"+r.id;super(t,n,r,i,s,a,c,u),this.contentAttr=yN(u),this.hostAttr=vN(u);}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"");}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}};var Pc=class e extends Oi$1{supportsDOMEvents=true;static makeCurrent(){Bf(new e);}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o);}}
4dispatchEvent(t,n){t.dispatchEvent(n);}remove(t){t.remove();}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=DN();return n==null?null:EN(n)}resetBaseElement(){$i$1=null;}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Ui$1(document.cookie,t)}},$i$1=null;function DN(){return $i$1=$i$1||document.head.querySelector("base"),$i$1?$i$1.getAttribute("href"):null}function EN(e){return new URL(e,document.baseURI).pathname}var jD=["alt","control","meta","shift"],wN={"\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"},IN={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},UD=(()=>{class e extends Bi$1{constructor(n){super(n);}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>un$1().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),jD.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".");}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=wN[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?false:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),jD.forEach(s=>{if(s!==o){let a=IN[s];a(n)&&(i+=s+".");}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i));}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(I$2(ee$3))};static \u0275prov=S$4({token:e,factory:e.\u0275fac})}return e})();async function CN(e,t,n){let r=l$1({rootComponent:e},bN(t,n));return Qv(r)}function bN(e,t){return {platformRef:t?.platformRef,appProviders:[...NN,...e?.providers??[]],platformProviders:MN}}function SN(){Pc.makeCurrent();}function TN(){return new Qe$2}function _N(){return Fd(document),document}var MN=[{provide:oi,useValue:eh},{provide:pa,useValue:SN,multi:true},{provide:ee$3,useFactory:_N}];var NN=[{provide:Qo,useValue:"root"},{provide:Qe$2,useFactory:TN},{provide:kc,useClass:Rc,multi:true},{provide:kc,useClass:UD,multi:true},ch,{provide:br$1,useClass:sh},{provide:sh,useExisting:br$1},ih,{provide:Dr$1,useExisting:ch},[]];var Bt$2=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
5`).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i);}});}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n);})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r);});}:this.headers=new Map;}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t);}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null));}
5copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n));});}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case "a":case "s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case "d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else {let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s);}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n]);}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o);}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)));}};var Fc=class{map=new Map;set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}},jc=class{encodeKey(t){return BD(t)}encodeValue(t){return BD(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function AN(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c);}),n}var RN=/%(\d[a-f0-9])/gi,xN={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function BD(e){return encodeURIComponent(e).replace(RN,(t,n)=>xN[n]??t)}function Lc(e){return `${e}`}var fn$1=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new jc,t.fromString){if(t.fromObject)throw new m$1(2805,false);this.map=AN(t.fromString,this.encoder);}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(Lc):[Lc(r)];this.map.set(n,o);})):this.map=null;}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"});}):n.push({param:r,value:o,op:"a"});}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case "a":case "s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(Lc(t.value)),this.map.set(t.param,n);break;case "d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(Lc(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param);}else {this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null);}};function ON(e){switch(e){case "DELETE":case "GET":case "HEAD":case "OPTIONS":case "JSONP":return  false;default:return  true}}function HD(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function VD(e){return typeof Blob<"u"&&e instanceof Blob}function $D(e){return typeof FormData<"u"&&e instanceof FormData}function kN(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var zi$1="Content-Type",Uc="Accept",GD="text/plain",qD="application/json",WD=`${qD}, ${GD}, */*`,mo=class e{url;body=null;headers;context;reportProgress=false;reportUploadProgress=false;reportDownloadProgress=false;withCredentials=false;credentials;keepalive=false;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(ON(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i){if(this.reportProgress=!!i.reportProgress,this.reportUploadProgress=!!i.reportUploadProgress,this.reportDownloadProgress=!!i.reportDownloadProgress,this.withCredentials=!!i.withCredentials,this.keepalive=!!i.keepalive,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),i.priority&&(this.priority=i.priority),i.cache&&(this.cache=i.cache),i.credentials&&(this.credentials=i.credentials),typeof i.timeout=="number"){if(i.timeout<1||!Number.isInteger(i.timeout))throw new m$1(2822,"");this.timeout=i.timeout;}i.mode&&(this.mode=i.mode),i.redirect&&(this.redirect=i.redirect),i.integrity&&(this.integrity=i.integrity),i.referrer!==void 0&&(this.referrer=i.referrer),i.referrerPolicy&&(this.referrerPolicy=i.referrerPolicy),this.transferCache=i.transferCache;}if(this.headers??=new Bt$2,this.context??=new Fc,!this.params)this.params=new fn$1,this.urlWithParams=n;else {let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else {let a=n,c="",u=n.indexOf("#");u!==-1&&(c=n.substring(u),a=n.substring(0,u));let l=a.indexOf("?"),d=l===-1?"?":l<a.length-1?"&":"";this.urlWithParams=a+d+s+c;}}}serializeBody(){return this.body===null?null:typeof this.body=="str
5ing"||HD(this.body)||VD(this.body)||$D(this.body)||kN(this.body)?this.body:this.body instanceof fn$1?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||$D(this.body)?null:VD(this.body)?this.body.type||null:HD(this.body)?null:typeof this.body=="string"?GD:this.body instanceof fn$1?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?qD:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,c=t.mode||this.mode,u=t.redirect||this.redirect,l=t.credentials||this.credentials,d=t.referrer??this.referrer,f=t.integrity||this.integrity,h=t.referrerPolicy||this.referrerPolicy,g=t.transferCache??this.transferCache,D=t.timeout??this.timeout,E=t.body!==void 0?t.body:this.body,N=t.withCredentials??this.withCredentials,_=t.reportProgress??this.reportProgress,R=t.reportUploadProgress??this.reportUploadProgress,de=t.reportDownloadProgress??this.reportDownloadProgress,lt=t.headers||this.headers,Q=t.params||this.params,mn=t.context??this.context;return t.setHeaders!==void 0&&(lt=Object.keys(t.setHeaders).reduce((yn,zt)=>yn.set(zt,t.setHeaders[zt]),lt)),t.setParams&&(Q=Object.keys(t.setParams).reduce((yn,zt)=>yn.set(zt,t.setParams[zt]),Q)),new e(n,r,E,{params:Q,headers:lt,context:mn,reportProgress:_,reportUploadProgress:R,reportDownloadProgress:de,responseType:o,withCredentials:N,transferCache:g,keepalive:i,cache:a,priority:s,timeout:D,mode:c,redirect:u,credentials:l,referrer:d,integrity:f,referrerPolicy:h})}},hn$1=(function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e})(hn$1||{}),yo=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,n=200,r="OK"){this.headers=t.headers||new Bt$2,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.responseType=t.responseType,this.ok=this.status>=200&&this.status<300;}},Gi$1=class e extends yo{constructor(t={}){super(t);}type=hn$1.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},vo=class e extends yo{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null;}type=hn$1.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected,responseType:t.responseType??this.responseType})}}
5,Ut$2=class Ut extends yo{name="HttpErrorResponse";message;error;ok=false;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null;}},ZD=200,PN=204;var LN=/^\)\]\}',?\n/,YD=new v$2("",{factory:()=>null}),Bc=(()=>{class e{fetchImpl=p$1(lh,{optional:true})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=p$1(ve$2);destroyRef=p$1(ke$2);maxResponseSize=p$1(YD);handle(n){return new L$4(r=>{let o=new AbortController;this.doRequest(n,o.signal,r).then(dh,s=>r.error(new Ut$2({error:s})));let i;return n.timeout&&(i=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{o.signal.aborted||o.abort(new DOMException("signal timed out","TimeoutError"));},n.timeout))),()=>{i!==void 0&&clearTimeout(i),o.abort();}})}async doRequest(n,r,o){let i=this.createRequestInit(n),s;try{let E=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,l$1({signal:r},i)));FN(E),o.next({type:hn$1.Sent}),s=await E;}catch(E){o.error(new Ut$2({error:E,status:E.status??0,statusText:E.statusText,url:n.urlWithParams,headers:E.headers}));return}let a=new Bt$2(s.headers),c=s.statusText,u=s.url||n.urlWithParams,l=s.status,d=null,f=n.reportProgress||n.reportDownloadProgress;if(f&&o.next(new Gi$1({headers:a,status:l,statusText:c,url:u})),s.body){let E=s.headers.get("content-length"),N=E!==null?Number(E):NaN;this.maxResponseSize!==null&&Number.isFinite(N)&&N>this.maxResponseSize&&zD(this.maxResponseSize);let _=[],R=s.body.getReader(),de=0,lt,Q,mn=typeof Zone<"u"&&Zone.current,yn=false;if(await this.ngZone.runOutsideAngular(async()=>{for(;;){if(this.destroyRef.destroyed){await R.cancel(),yn=true;break}let{done:Ro,value:Eu}=await R.read();if(Ro)break;if(_.push(Eu),de+=Eu.length,this.maxResponseSize!==null&&de>this.maxResponseSize&&(await R.cancel(),zD(this.maxResponseSize)),f){Q=n.responseType==="text"?(Q??"")+(lt??=new TextDecoder).decode(Eu,{stream:true}):void 0;let Wh=()=>o.next({type:hn$1.DownloadProgress,total:Number.isFinite(N)?N:void 0,loaded:de,partialText:Q});mn?mn.run(Wh):Wh();}}}),yn){o.complete();return}let zt=this.concatChunks(_,de);try{let Ro=s.headers.get(zi$1)??"";d=this.parseBody(n,zt,Ro,l);}catch(Ro){o.error(new Ut$2({error:Ro,headers:new Bt$2(s.headers),status:s.status,statusText:s.statusText,url:s.url||n.urlWithParams}));return}}l===0&&(l=d?ZD:0);let h=l>=200&&l<300,g=s.redirected,D=s.type;h?(o.next(new vo({body:d,headers:a,status:l,statusText:c,url:u,redirected:g,responseType:D})),o.complete()):o.error(new Ut$2({error:d,headers:a,status:l,statusText:c,url:u,redirected:g,responseType:D}));}parseBody(n,r,o,i){switch(n.responseType){case "json":let s=new TextDecoder().decode(r).replace(LN,"");if(s==="")return null;try{return JSON.parse(s)}catch(a){if(i<200||i>=300)return s;throw a}case "text":return new TextDecoder().decode(r);case "blob":return new Blob([r],{type:o});case "arraybuffer":return r.buffer}}createRequestInit(n){if(n.reportUploadProgress)throw new m$1(2824,false);let r={},o;if(o=n.credentials,n.withCredentials&&(o="include"),n.headers.forEach((i,s)=>r[i]=s.join(",")),n.headers.has(Uc)||(r[Uc]=WD),!n.headers.has(zi$1)){let i=n.detectContentTypeHeader();i!==null&&(r[zi$1]=i);}return {body:n.serializeBody(),method:n.method,headers:r,credentials:o,keepalive:n.keepalive,cache:n.cache,priority:n.priority,mode:n.mode,redirect:n.redirect,referrer:n.referrer,integrity:n.integrity,referrerPolicy:n.referrerPolicy}}concatChunks(n,r){let o=new Uint8Array(r),i=0;for(let s of n)o.set(s,i),i+=s.length;return o}static \u0275fac=function(r){return new(r||e)};static \u0275prov=W$6({token:e,factory:e.\u0275fac})}return e})(),lh=class{};function dh(){}function FN(e){e.then(dh,dh);}function zD(e){throw new m$1(-2825,false)}function jN(e,t){return t(e)}function UN(e,t,n){return (r,o)=>ge$2(n,()=>t(r,i=>e(i,o)))}var hh=new v$2("",{factory:()=>[]}),QD=new v$2(""),KD=new v$2("",{factory:()=>true});var Vc=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=S$4({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=I$2(Bc),o},providedIn:"root"})}return e})();var Hc=(()=>{class e{backend;injector;chain=null;pendingTasks=p$1(ui$1);contributeToStability=p$1(KD);constructor(n,r){this.backend=n,this.injector=r;}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(hh),...this.injector.get(QD,[])]));this.chain=o.reduceRight((i,s)=>UN(i,s,this.injector),jN);}let r=this.chain;if(this.contributeToStability){let o=this.pendingTasks.add();return Z$4(()=>r(n,i=>this.backend.handle(i))).pipe(ko(o))}else return Z$4(()=>r(n,o=>this.backend.handle(o)))}static \u0275fac=function(r){return new(r||e)(I$2(Vc),I$2(te$4))};static \u0275prov=S$4({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ph=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=S$4({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=I$2(Hc),o},providedIn:"root"})}return e})();function uh(e,t){return l$1({body:t},e)}var JD=(()=>{class e{handler;constructor(n){this.handler=n;}request(n,r,o={}){let i;if(n instanceof mo)i=n;else {let c;o.headers instanceof Bt$2?c=o.headers:c=new Bt$2(o.headers);let u;o.params&&(o.params instanceof fn$1?u=o.params:u=new fn$1({fromObject:o.params})),i=new mo(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,reportUploadProgress:o.reportUploadProgress,reportDownloadProgress:o.reportDownloadProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout});}let s=T$5(i).pipe(Dn(c=>this.handler.handle(c)));if(n instanceof mo||o.observe==="events")return s;let a=s.pipe(Ue$1(c=>c instanceof vo));switch(o.observe||"body"){case "body":switch(i.responseType){case "arraybuffer":return a.pipe(B$3(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new m$1(2806,false);return c.body}));case "blob":return a.pipe(B$3(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new m$1(2807,false);return c.body}));case "text":return a.pipe(B$3(c=>{if(c.body!==null&&typeof c.body!="string")throw new m$1(2808,false);return c.body}));default:return a.pipe(B$3(c=>c.body))}case "response":return a;default:throw new m$1(2809,false)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new fn$1().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,uh(o,r))}post(n,r,o={}){return this.request("POST",n,uh(o,r))}put(n,r,o={}){return this.request("PUT",n,uh(o,r))}static \u0275fac=function(r){return new(r||e)(I$2(ph))};static \u0275prov=S$4({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var BN=/^\)\]\}',?\n/;var fh=(()=>{class e{xhrFactory;tracingService=p$1(jt$2,{optional:true});constructor(n){this.xhrFactory=n;}maybePropagateTrace(n){return this.tracingService?.propagate?this.tracingService.propagate(n):n}handle(n){if(n.method==="JSONP")throw new m$1(-2800,false);let r=this.xhrFactory;return T$5(null).pipe(be$4(()=>new L$4(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=true),n.headers.forEac
5h((_,R)=>s.setRequestHeader(_,R.join(","))),n.headers.has(Uc)||s.setRequestHeader(Uc,WD),!n.headers.has(zi$1)){let _=n.detectContentTypeHeader();_!==null&&s.setRequestHeader(zi$1,_);}if(n.timeout&&(s.timeout=n.timeout),n.responseType){let _=n.responseType.toLowerCase();s.responseType=_!=="json"?_:"text";}let a=n.serializeBody(),c=null,u=()=>{if(c!==null)return c;let _=s.statusText||"OK",R=new Bt$2(s.getAllResponseHeaders()),de=s.responseURL||n.url;return c=new Gi$1({headers:R,status:s.status,statusText:_,url:de}),c},l=this.maybePropagateTrace(()=>{let{headers:_,status:R,statusText:de,url:lt}=u(),Q=null;R!==PN&&(Q=typeof s.response>"u"?s.responseText:s.response),R===0&&(R=Q?ZD:0);let mn=R>=200&&R<300;if(n.responseType==="json"&&typeof Q=="string"){let yn=Q;Q=Q.replace(BN,"");try{Q=Q!==""?JSON.parse(Q):null;}catch(zt){Q=yn,mn&&(mn=false,Q={error:zt,text:Q});}}mn?(i.next(new vo({body:Q,headers:_,status:R,statusText:de,url:lt||void 0})),i.complete()):i.error(new Ut$2({error:Q,headers:_,status:R,statusText:de,url:lt||void 0}));}),d=this.maybePropagateTrace(_=>{let{url:R}=u(),de=new Ut$2({error:_,status:s.status||0,statusText:s.statusText||"Unknown Error",url:R||void 0});i.error(de);}),f=d;n.timeout&&(f=this.maybePropagateTrace(_=>{let{url:R}=u(),de=new Ut$2({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:R||void 0});i.error(de);}));let h=false,g=this.maybePropagateTrace(_=>{h||(i.next(u()),h=true);let R={type:hn$1.DownloadProgress,loaded:_.loaded};_.lengthComputable&&(R.total=_.total),n.responseType==="text"&&s.responseText&&(R.partialText=s.responseText),i.next(R);}),D=this.maybePropagateTrace(_=>{let R={type:hn$1.UploadProgress,loaded:_.loaded};_.lengthComputable&&(R.total=_.total),i.next(R);});s.addEventListener("load",l),s.addEventListener("error",d),s.addEventListener("timeout",f),s.addEventListener("abort",d);let E=n.reportProgress||n.reportUploadProgress,N=n.reportProgress||n.reportDownloadProgress;return N&&s.addEventListener("progress",g),E&&a!==null&&s.upload&&s.upload.addEventListener("progress",D),s.send(a),i.next({type:hn$1.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",l),s.removeEventListener("timeout",f),N&&s.removeEventListener("progress",g),E&&a!==null&&s.upload&&s.upload.removeEventListener("progress",D),s.readyState!==s.DONE&&s.abort();}})))}static \u0275fac=function(r){return new(r||e)(I$2(Jf))};static \u0275prov=S$4({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),HN=new v$2("",{factory:()=>true}),VN="XSRF-TOKEN",$N=new v$2("",{factory:()=>VN}),zN="X-XSRF-TOKEN",GN=new v$2("",{factory:()=>zN}),qN=(()=>{class e{cookieName=p$1($N);doc=p$1(ee$3);lastCookieString="";lastToken=null;parseCount=0;getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Ui$1(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)};static \u0275prov=W$6({token:e,factory:e.\u0275fac})}return e})(),XD=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=S$4({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=I$2(qN),o},providedIn:"root"})}return e})();function WN(e,t){if(!p$1(HN)||e.method==="GET"||e.method==="HEAD")return t(e);try{let o=p$1(ln$1).href,{origin:i}=new URL(o),{origin:s}=new URL(e.url,i);if(i!==s)return t(e)}catch{return t(e)}let n=p$1(XD).getToken(),r=p$1(GN);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}var $c=(function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e[e.Xhr=7]="Xhr",e})($c||{});function eE(e,t){return {\u0275kind:e,\u0275providers:t}}function ZN(...e){let t=[JD,Bc,Hc,{provide:ph,useExisting:Hc},{provide:Vc,useFactory:()=>p$1(Bc)},{provide:hh,useValue:WN,multi:true}];for(let n of e)t.push(...n.\u0275providers);return Xt$1(t)}function YN(e){return eE($c.Interceptors,e.map(t=>({provide:hh,useValue:t,multi:true})))}function QN(){return eE($c.Xhr,[fh,{provide:Vc,useExisting:fh}])}var tE=(()=>{class e{_doc;constructor(n){this._doc=n;}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||"";}static \u0275fac=function(r){return new(r||e)(I$2(ee$3))};static \u0275prov=S$4({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var KN=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=S$4({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=I$2(JN),o},providedIn:"root"})}return e})(),JN=(()=>{class e extends KN{_doc=p$1(ee$3);sanitize(n,r){if(r==null)return null;switch(n){case at$3.NONE:return r;case at$3.HTML:return Ft$2(r,"HTML")?Pe$3(r):Ka(this._doc,String(r)).toString();case at$3.STYLE:return Ft$2(r,"Style")?Pe$3(r):r;case at$3.SCRIPT:if(Ft$2(r,"Script"))return Pe$3(r);throw new m$1(5200,false);case at$3.URL:return Ft$2(r,"URL")?Pe$3(r):bi$1(String(r));case at$3.RESOURCE_URL:if(Ft$2(r,"ResourceURL"))return Pe$3(r);throw new m$1(-5201,false);default:throw new m$1(5202,false)}}bypassSecurityTrustHtml(n){return Hd(n)}bypassSecurityTrustStyle(n){return Vd(n)}bypassSecurityTrustScript(n){return $d(n)}bypassSecurityTrustUrl(n){return zd(n)}bypassSecurityTrustResourceUrl(n){return Gd(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=W$6({token:e,factory:e.\u0275fac})}return e})();var A$3="primary",os$1=Symbol("RouteTitle"),Dh=class{params;constructor(t){this.params=t||{};}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return []}get keys(){return Object.keys(this.params)}};function Nr$1(e){return new Dh(e)}function gh(e,t,n){for(let r=0;r<e.length;r++){let o=e[r],i=t[r];
5if(o[0]===":")n[o.substring(1)]=i;else if(o!==i.path)return  false}return  true}function uE(e,t,n){let r=n.path.split("/"),o=r.indexOf("**");if(o===-1){if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.length<e.length))return null;let c={},u=e.slice(0,r.length);return gh(r,u,c)?{consumed:u,posParams:c}:null}if(o!==r.lastIndexOf("**"))return null;let i=r.slice(0,o),s=r.slice(o+1);if(i.length+s.length>e.length||n.pathMatch==="full"&&t.hasChildren()&&n.path!=="**")return null;let a={};return !gh(i,e.slice(0,i.length),a)||!gh(s,e.slice(e.length-s.length),a)?null:{consumed:e,posParams:a}}function Yc(e){return new Promise((t,n)=>{e.pipe(Zt$1()).subscribe({next:r=>t(r),error:r=>n(r)});})}function eA(e,t){if(e.length!==t.length)return  false;for(let n=0;n<e.length;++n)if(!Ht$2(e[n],t[n]))return  false;return  true}function Ht$2(e,t){let n=e?Eh(e):void 0,r=t?Eh(t):void 0;if(!n||!r||n.length!=r.length)return  false;let o;for(let i=0;i<n.length;i++)if(o=n[i],!lE(e[o],t[o]))return  false;return  true}function Eh(e){return [...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function lE(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return  false;let n=[...e].sort(),r=[...t].sort();return n.every((o,i)=>r[i]===o)}else return e===t}function tA(e){return e.length>0?e[e.length-1]:null}function Rr$1(e){return Ps$1(e)?e:Sr$1(e)?K$4(Promise.resolve(e)):T$5(e)}function dE(e){return Ps$1(e)?Yc(e):Promise.resolve(e)}var nA={exact:hE,subset:pE},fE={exact:rA,subset:oA,ignored:()=>true},kh={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Qi$1={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Ph(e,t,n){let r=e instanceof Fe$3?e:t.parseUrl(e);return Ri$1(()=>wh(t.lastSuccessfulNavigation()?.finalUrl??new Fe$3,r,l$1(l$1({},Qi$1),n)))}function wh(e,t,n){return nA[n.paths](e.root,t.root,n.matrixParams)&&fE[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function rA(e,t){return Ht$2(e,t)}function hE(e,t,n){if(!Mr$1(e.segments,t.segments)||!qc(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return  false;for(let r in t.children)if(!e.children[r]||!hE(e.children[r],t.children[r],n))return  false;return  true}function oA(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>lE(e[n],t[n]))}function pE(e,t,n){return gE(e,t,t.segments,n)}function gE(e,t,n,r){if(e.segments.length>n.length){let o=e.segments.slice(0,n.length);return !(!Mr$1(o,n)||t.hasChildren()||!qc(o,n,r))}else if(e.segments.length===n.length){if(!Mr$1(e.segments,n)||!qc(e.segments,n,r))return  false;for(let o in t.children)if(!e.children[o]||!pE(e.children[o],t.children[o],r))return  false;return  true}else {let o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return !Mr$1(e.segments,o)||!qc(e.segments,o,r)||!e.children[A$3]?false:gE(e.children[A$3],t,i,r)}}function qc(e,t,n){return t.every((r,o)=>fE[n](e[o].parameters,r.parameters))}var Fe$3=class Fe{root;queryParams;fragment;_queryParamMap;constructor(t=new U$6([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r;}get queryParamMap(){return this._queryParamMap??=Nr$1(this.queryParams),this._queryParamMap}toString(){return aA.serialize(this)}},U$6=class U{segments;children;parent=null;constructor(t,n){this.segments=t,this.children=n,Object.values(n).forEach(r=>r.parent=this);}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Wc(this)}},Un$1=class Un{path;parameters;_parameterMap;constructor(t,n){this.path=t,this.parameters=n;}get parameterMap(){return this._parameterMap??=Nr$1(this.parameters),this._parameterMap}toString(){return yE(this)}};function iA(e,t){return Mr$1(e,t)&&e.every((n,r)=>Ht$2(n.parameters,t[r].parameters))}function Mr$1(e,t){return e.length!==t.length?false:e.every((n,r)=>n.path===t[r].path)}function sA(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===A$3&&(n=n.concat(t(o,r)));}
5),Object.entries(e.children).forEach(([r,o])=>{r!==A$3&&(n=n.concat(t(o,r)));}),n}var Vn=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=W$6({token:e,factory:()=>new gn$1})}return e})(),gn$1=class gn{parse(t){let n=new Ch(t);return new Fe$3(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${qi$1(t.root,true)}`,r=lA(t.queryParams),o=typeof t.fragment=="string"?`#${cA(t.fragment)}`:"";return `${n}${r}${o}`}},aA=new gn$1;function Wc(e){return e.segments.map(t=>yE(t)).join("/")}function qi$1(e,t){if(!e.hasChildren())return Wc(e);if(t){let n=e.children[A$3]?qi$1(e.children[A$3],false):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==A$3&&r.push(`${o}:${qi$1(i,false)}`);}),r.length>0?`${n}(${r.join("//")})`:n}else {let n=sA(e,(r,o)=>o===A$3?[qi$1(e.children[A$3],false)]:[`${o}:${qi$1(r,false)}`]);return Object.keys(e.children).length===1&&e.children[A$3]!=null?`${Wc(e)}/${n[0]}`:`${Wc(e)}/(${n.join("//")})`}}function mE(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function zc(e){return mE(e).replace(/%3B/gi,";")}function cA(e){return encodeURI(e)}function Ih(e){return mE(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Zc(e){return decodeURIComponent(e)}function nE(e){return Zc(e.replace(/\+/g,"%20"))}function yE(e){return `${Ih(e.path)}${uA(e.parameters)}`}function uA(e){return Object.entries(e).map(([t,n])=>`;${Ih(t)}=${Ih(n)}`).join("")}function lA(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${zc(n)}=${zc(o)}`).join("&"):`${zc(n)}=${zc(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var dA=/^[^\/()?;#]+/;function mh(e){let t=e.match(dA);return t?t[0]:""}var fA=/^[^\/()?;=#]+/;function hA(e){let t=e.match(fA);return t?t[0]:""}var pA=/^[^=?&#]+/;function gA(e){let t=e.match(pA);return t?t[0]:""}var mA=/^[^&#]+/;function yA(e){let t=e.match(mA);return t?t[0]:""}var Ch=class{url;remaining;constructor(t){this.url=t,this.remaining=t;}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new U$6([],{}):new U$6([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(t=0){if(t>50)throw new m$1(4010,false);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 r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(true,t));let o={};return this.peekStartsWith("(")&&(o=this.parseParens(false,t)),(n.length>0||Object.keys(r).length>0)&&(o[A$3]=new U$6(n,r)),o}parseSegment(){let t=mh(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new m$1(4009,false);return this.capture(t),new Un$1(Zc(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=hA(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=mh(this.remaining);o&&(r=o,this.capture(r));}t[Zc(n)]=Zc(r);}parseQueryParam(t){let n=gA(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=yA(this.remaining);s&&(r=s,this.capture(r));}let o=nE(n),i=nE(r);if(Object.hasOwn(t,o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i);}else t[o]=i;}parseParens(t,n){let r=Object.create(null);for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let o=mh(this.remaining),i=this.remaining[o.length];if(i!=="/"&&i!==")"&&i!==";")throw new m$1(4010,false);let s;o.indexOf(":")>-1?(s=o.slice(0,o.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=A$3);let a=this.parseChildren(n+1);r[s??A$3]=Object.keys(a).length===1&&a[A$3]?a[A$3]:new U$6([],a),this.consumeOptional("//");}return r}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),true):false}capture(t){if(!this.consumeOptional(t))throw new m$1(4011,false)}};function vE(e){return e.segments.length>0?new U$6([],{[A$3]:e}):e}function DE(e){let t=Object.create(null);for(let[r,o]of Object.entries(e.children)){let i=DE(o);if(r===A$3&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))t[s]=a;else (i.segments.length>0||i.hasChildren())&&(t[r]=i);}let n=new U$6(e.segments,t);return vA(n)}function vA(e){if(e.numberOfChildren===1&&e.children[A$3]){let t=e.children[A$3];return new U$6(e.segments.concat(t.segments),t.children)}return e}function Bn$1(e){return e instanceof Fe$3}function EE(e,t,n=null,r=null,o=new gn$1){let i=wE(e);return IE(i,t,n,r,o)}function wE(e){let t;function n(i){let s={};for(let c of i.children){let u=n(c);s[c.outlet]=u;}let a=new U$6(i.url,s);return i===e&&(t=a),a}let r=n(e.root),o=vE(r);return t??o}function IE(e,t,n,r,o){let i=e;for(;i.parent;)i=i.parent;if(t.length===0)return yh(i,i,i,n,r,o);let s=DA(t);if(s.toRoot())return yh(i,i,new U$6([],{}),n,r,o);let a=EA(s,i,e),c=a.processChildren?Zi$1(a.segmentGroup,a.index,s.commands):bE(a.segmentGroup,a.index,s.commands);return yh(i,a.segmentGroup,c,n,r,o)}function Qc(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Ki$1(e){return typeof e=="object"&&e!=null&&e.outlets}function rE(e,t,n){e||="\u0275";let r=new Fe$3;return r.queryParams={[e]:t},n.parse(n.serialize(r)).queryParams[e]}function yh(e,t,n,r,o,i){let s={};for(let[u,l]of Object.entries(r??{}))s[u]=Array.isArray(l)?l.map(d=>rE(u,d,i)):rE(u,l,i);let a;e===t?a=n:a=CE(e,t,n);let c=vE(DE(a));return new Fe$3(c,s,o)}function CE(e,t,n){let r=Object.create(null);
5return Object.entries(e.children).forEach(([o,i])=>{i===t?r[o]=n:r[o]=CE(i,t,n);}),new U$6(e.segments,r)}var Kc=class{isAbsolute;numberOfDoubleDots;commands;constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Qc(r[0]))throw new m$1(4003,false);let o=r.find(Ki$1);if(o&&o!==tA(r))throw new m$1(4004,false)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function DA(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Kc(true,0,e);let t=0,n=false,r=e.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let a={};return Object.entries(i.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u;}),[...o,{outlets:a}]}if(i.segmentPath)return [...o,i.segmentPath]}return typeof i!="string"?[...o,i]:s===0?(i.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?n=true:a===".."?t++:a!=""&&o.push(a));}),o):[...o,i]},[]);return new Kc(n,t,r)}var Eo=class{segmentGroup;processChildren;index;constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r;}};function EA(e,t,n){if(e.isAbsolute)return new Eo(t,true,0);if(!n)return new Eo(t,false,NaN);if(n.parent===null)return new Eo(n,true,0);let r=Qc(e.commands[0])?0:1,o=n.segments.length-1+r;return wA(n,o,e.numberOfDoubleDots)}function wA(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new m$1(4005,false);o=r.segments.length;}return new Eo(r,false,o-i)}function IA(e){return Ki$1(e[0])?e[0].outlets:{[A$3]:e}}function bE(e,t,n){if(e??=new U$6([],{}),e.segments.length===0&&e.hasChildren())return Zi$1(e,t,n);let r=CA(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let i=new U$6(e.segments.slice(0,r.pathIndex),{});return i.children[A$3]=new U$6(e.segments.slice(r.pathIndex),e.children),Zi$1(i,0,o)}else return r.match&&o.length===0?new U$6(e.segments,{}):r.match&&!e.hasChildren()?bh(e,t,n):r.match?Zi$1(e,0,o):bh(e,t,n)}function Zi$1(e,t,n){if(n.length===0)return new U$6(e.segments,{});{let r=IA(n),o=Object.create(null);if(Object.keys(r).some(i=>i!==A$3)&&e.children[A$3]&&e.numberOfChildren===1&&e.children[A$3].segments.length===0){let i=Zi$1(e.children[A$3],t,n);return new U$6(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=bE(e.children[i],t,s));}),Object.entries(e.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s);}),new U$6(e.segments,o)}}function CA(e,t,n){let r=0,o=t,i={match:false,pathIndex:0,commandIndex:0};for(;o<e.segments.length;){if(r>=n.length)return i;let s=e.segments[o],a=n[r];if(Ki$1(a))break;let c=`${a}`,u=r<n.length-1?n[r+1]:null;if(o>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!iE(c,u,s))return i;r+=2;}else {if(!iE(c,{},s))return i;r++;}o++;}return {match:true,pathIndex:o,commandIndex:r}}function bh(e,t,n){let r=e.segments.slice(0,t),o=0;for(;o<n.length;){let i=n[o];if(Ki$1(i)){let c=bA(i.outlets);return new U$6(r,c)}if(o===0&&Qc(n[0])){let c=e.segments[t];r.push(new Un$1(c.path,oE(n[0]))),o++;continue}let s=Ki$1(i)?i.outlets[A$3]:`${i}`,a=o<n.length-1?n[o+1]:null;s&&a&&Qc(a)?(r.push(new Un$1(s,oE(a))),o+=2):(r.push(new Un$1(s,{})),o++);}return new U$6(r,{})}function bA(e){let t={};return Object.entries(e).forEach(([n,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=bh(new U$6([],{}),0,r));}),t}function oE(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function iE(e,t,n){return e==n.path&&Ht$2(t,n.parameters)}var wo="imperative",ye$4=(function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e})(ye$4||{}),Ze$3=class Ze{id;url;constructor(t,n){this.id=t,this.url=n;}},Hn$1=class Hn extends Ze$3{type=ye$4.NavigationStart;navigationTrigger;restoredState;constructor(t,n,r="imperative",o=null){super(t,n),this.navigationTrigger=r,this.restoredState=o;}toString(){return `NavigationStart(id: ${this.id}, url: '${this.url}')`}},Ye$1=class Ye extends Ze$3{urlAfterRedirects;type=ye$4.NavigationEnd;constructor(t,n,r){super(t,n),this.urlAfterRedirects=r;}toString(){return `NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Ne$3=(function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromRe
5solver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e[e.Aborted=4]="Aborted",e})(Ne$3||{}),Co=(function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e})(Co||{}),ut$3=class ut extends Ze$3{reason;code;type=ye$4.NavigationCancel;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o;}toString(){return `NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function SE(e){return e instanceof ut$3&&(e.code===Ne$3.Redirect||e.code===Ne$3.SupersededByNewNavigation)}var Vt$2=class Vt extends Ze$3{reason;code;type=ye$4.NavigationSkipped;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o;}},Ar$1=class Ar extends Ze$3{error;target;type=ye$4.NavigationError;constructor(t,n,r,o){super(t,n),this.error=r,this.target=o;}toString(){return `NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Ji$1=class Ji extends Ze$3{urlAfterRedirects;state;type=ye$4.RoutesRecognized;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o;}toString(){return `RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Jc=class extends Ze$3{urlAfterRedirects;state;type=ye$4.GuardsCheckStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o;}toString(){return `GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Xc=class extends Ze$3{urlAfterRedirects;state;shouldActivate;type=ye$4.GuardsCheckEnd;constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i;}toString(){return `GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},eu=class extends Ze$3{urlAfterRedirects;state;type=ye$4.ResolveStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o;}toString(){return `ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},tu=class extends Ze$3{urlAfterRedirects;state;type=ye$4.ResolveEnd;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o;}toString(){return `ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},nu=class{route;type=ye$4.RouteConfigLoadStart;constructor(t){this.route=t;}toString(){return `RouteConfigLoadStart(path: ${this.route.path})`}},ru=class{route;type=ye$4.RouteConfigLoadEnd;constructor(t){this.route=t;}toString(){return `RouteConfigLoadEnd(path: ${this.route.path})`}},ou=class{snapshot;type=ye$4.ChildActivationStart;constructor(t){this.snapshot=t;}toString(){return `ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},iu=class{snapshot;type=ye$4.ChildActivationEnd;constructor(t){this.snapshot=t;}toString(){return `ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},su=class{snapshot;type=ye$4.ActivationStart;constructor(t){this.snapshot=t;}toString(){return `ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},au=class{snapshot;type=ye$4.ActivationEnd;constructor(t){this.snapshot=t;}toString(){return `ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},bo=class{routerEvent;position;anchor;scrollBehavior;type=ye$4.Scroll;constructor(t,n,r,o){this.routerEvent=t,this.position=n,this.anchor=r,this.scrollBehavior=o;}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return `Scroll(anchor: '${this.anchor}', position: '${t}')`}},So=class{},Xi$1=class Xi{},To=class{url;navigationBehaviorOptions;constructor(t,n){this.url=t,this.navigationBehaviorOptions=n;}};function SA(e){return !(e instanceof So)&&!(e instanceof To)&&!(e instanceof Xi$1)}var cu=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(t){this.rootInjector=t,this.children=new xr$1(this.rootInjector);}},xr$1=(()=>{class e{rootInjector;contexts=new Map;constructor(n){this.rootInjector=n;}onChildOutletCreated(n,r){let o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o);}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null);}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n;}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new cu(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static \u0275fac=function(r){return new(r||e)(I$2(te$4))};static \u0275prov=S$4({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),uu=class{_root;constructor(t){this._root=t;}get root(){return this._root.value}
5parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=Sh(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=Sh(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=Th(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return Th(t,this._root).map(n=>n.value)}};function Sh(e,t){if(e===t.value)return t;for(let n of t.children){let r=Sh(e,n);if(r)return r}return null}function Th(e,t){if(e===t.value)return [t];for(let n of t.children){let r=Th(e,n);if(r.length)return r.unshift(t),r}return []}var We$2=class We{value;children;constructor(t,n){this.value=t,this.children=n;}toString(){return `TreeNode(${this.value})`}};function Do(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var es$1=class es extends uu{snapshot;constructor(t,n){super(t),this.snapshot=n,Fh(this,t);}toString(){return this.snapshot.toString()}};function TE(e,t){let n=TA(e,t),r=new Ee$2([new Un$1("",{})]),o=new Ee$2({}),i=new Ee$2({}),s=new Ee$2({}),a=new Ee$2(""),c=new $t$2(r,o,s,a,i,A$3,e,n.root);return c.snapshot=n.root,new es$1(new We$2(c,[]),n)}function TA(e,t){let n={},r={},o={},s=new _o([],n,o,"",r,A$3,e,null,{},t);return new ts$1("",new We$2(s,[]))}var $t$2=class $t{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;_localInjector;constructor(t,n,r,o,i,s,a,c){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(B$3(u=>u[os$1]))??T$5(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i;}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(B$3(t=>Nr$1(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(B$3(t=>Nr$1(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}},_A="always";function Lh(e,t,n){let r,{routeConfig:o}=e;return t!==null&&(n==="always"||o?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:l$1(l$1({},t.params),e.params),data:l$1(l$1({},t.data),e.data),resolve:l$1(l$1(l$1(l$1({},e.data),t.data),o?.data),e._resolvedData)}:r={params:l$1({},e.params),data:l$1({},e.data),resolve:l$1(l$1({},e.data),e._resolvedData??{})},o&&ME(o)&&(r.resolve[os$1]=o.title),r}var _o=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[os$1]}constructor(t,n,r,o,i,s,a,c,u,l){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u,this._environmentInjector=l;}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??=Nr$1(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Nr$1(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return `Route(url:'${t}', path:'${n}')`}},ts$1=class ts extends uu{url;constructor(t,n){super(n),this.url=t,Fh(this,n);}toString(){return _E(this._root)}};function Fh(e,t){t.value._routerState=e,t.children.forEach(n=>Fh(e,n));}function _E(e){let t=e.children.length>0?` { ${e.children.map(_E).join(", ")} } `:"";return `${e.value}${t}`}function vh(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Ht$2(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),Ht$2(t.params,n.params)||e.paramsSubject.next(n.params),eA(t.url,n.url)||e.urlSubject.next(n.url),Ht$2(t.data,n.data)||e.dataSubject.next(n.data);}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data);}function _h(e,t){let n=Ht$2(e.params,t.params)&&iA(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||_h(e.parent,t.parent))}
5function ME(e){return typeof e.title=="string"||e.title===null}var NE=new v$2(""),jh=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=A$3;activateEvents=new Se$4;deactivateEvents=new Se$4;attachEvents=new Se$4;detachEvents=new Se$4;routerOutletData=Dc();parentContexts=p$1(xr$1);location=p$1(Pn);changeDetector=p$1(Fn);inputBinder=p$1(is$1,{optional:true});supportsBindingToComponentInputs=true;ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName();}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this);}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName();}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector));}get isActivated(){return !!this.activated}get component(){if(!this.activated)throw new m$1(4012,false);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new m$1(4012,false);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new m$1(4012,false);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance);}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n);}}activateWith(n,r){if(this.isActivated)throw new m$1(4013,false);this._activatedRoute=n;let o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new Mh(n,a,o.injector,this.routerOutletData);this.activated=o.createComponent(s,{index:o.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance);}static \u0275fac=function(r){return new(r||e)};static \u0275dir=yt$2({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Lt$2]})}return e})(),Mh=class{route;childContexts;parent;outletData;constructor(t,n,r,o){this.route=t,this.childContexts=n,this.parent=r,this.outletData=o;}get(t,n){return t===$t$2?this.route:t===xr$1?this.childContexts:t===NE?this.outletData:this.parent.get(t,n)}},is$1=new v$2(""),AE=(()=>{class e{options;outletDataSubscriptions=new Map;outletSeenKeys=new Map;constructor(n){this.options=n,this.options.queryParams??=true;}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n);}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n),this.outletSeenKeys.delete(n);}subscribeToRouteData(n){let{activatedRoute:r}=n,o=Rs([this.options.queryParams?r.queryParams:T$5({}),r.params,r.data]).pipe(be$4(([i,s,a],c)=>(a=l$1(l$1(l$1({},i),s),a),c===0?T$5(a):Promise.resolve(a)))).subscribe(i=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(n);return}let s=Kv(r.component);if(!s){this.unsubscribeFromRouteData(n);return}let a=this.outletSeenKeys.get(n);a||(a=new Set,this.outletSeenKeys.set(n,a));for(let u of Object.keys(i))a.add(u);let c=this.options.unmatchedInputBehavior??"alwaysUndefined";for(let{templateName:u}of s.inputs){let l=i[u];(l!==void 0||c==="alwaysUndefined"||a.has(u))&&n.activatedComponentRef.setInput(u,l);}});this.outletDataSubscriptions.set(n,o);}static \u0275fac=function(r){Ni$1();};static \u0275prov=S$4({token:e,factory:e.\u0275fac})}return e})(),Uh=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=mf({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,o){r&1&&fc(0,"router-outlet");},dependencies:[jh],encapsulation:2,changeDetection:1})}return e})();function Bh(e){let t=e.children&&e.children.map(Bh),n=t?m$2(l$1({},e),{children:t}):l$1({},e);return !n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==A$3&&(n.component=Uh),n}function MA(e,t,n){let r=new Set,o=ns$1(e,t._root,n?n._root:void 0,r);return {newlyCreatedRoutes:r,state:new es$1(o,t)}}function ns$1(e,t,n,r){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let o=n.value;o._futureSnapshot=t.value;let i=NA(e,t,n,r);return new We$2(o,i)}else {if(e.shouldAttach(t.value)){let s=e.retrieve(t.value);if(s!==null){let a=s.route;return a.value._futureSnapshot=t.value,a.children=t.children.map(c=>ns$1(e,c,void 0,r)),a}}let o=AA(t.value);r.add(o);let i=t.children.map(s=>ns$1(e,s,void 0,r));return new We$2(o,i)}}function NA(e,t,n,r){return t.children.map(o=>{for(let i of n.children)if(e.shouldReuseRoute(o.value,i.value.snapshot))return ns$1(e,o,i,r);return ns$1(e,o,void 0,r)})}function AA(e){return new $t$2(new Ee$2(e.url),new Ee$2(e.params),new Ee$2(e.queryParams),new Ee$2(e.fragment),new Ee$2(e.data),e.outlet,e.component,e)}var Mo=class{redirectTo;navigationBehaviorOptions;constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n;}},RE="ngNavigationCancelingError";function lu(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=Bn$1(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=xE(false,Ne$3.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function xE(e,t){let n=new Error(`NavigationCancelingError: ${""}`);return n[RE]=true,n.cancellationCode=t,n}function RA(e){return OE(e)&&Bn$1(e.url)}function OE(e){return !!e&&e[RE]}var Nh=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i;}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),vh(this.futureState.root),this.activateChildRoutes(n,r,t);}deactivateChildRoutes(t,n,r){let o=Do(n);
5t.children.forEach(i=>{let s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s];}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r);});}deactivateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(o===i)if(o.component){let s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children);}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r);}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n);}detachAndStoreRouteSubtree(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=Do(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a});}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=Do(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null),t.value._localInjector?.destroy();}activateChildRoutes(t,n,r){let o=Do(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new au(i.value.snapshot));}),t.children.length&&this.forwardEvent(new iu(t.value.snapshot));}activateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(vh(o),o===i)if(o.component){let s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children);}else this.activateChildRoutes(t,n,r);else if(o.component){let s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.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),vh(a.route.value),this.activateChildRoutes(t,null,s.children);}else s.attachRef=null,s.route=o,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children);}else this.activateChildRoutes(t,null,r);}},du=class{path;route;constructor(t){this.path=t,this.route=this.path[this.path.length-1];}},Io=class{component;route;constructor(t,n){this.component=t,this.route=n;}};function xA(e,t,n){let r=e._root,o=t?t._root:null;return Wi$1(r,o,n,[r.value])}function OA(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return !t||t.length===0?null:{node:e,guards:t}}function Ao(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!nl(e)?e:t.get(e):r}function Wi$1(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=Do(t);return e.children.forEach(s=>{kA(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet];}),Object.entries(i).forEach(([s,a])=>Yi$1(a,n.getContext(s),o)),o}function kA(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let c=PA(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new du(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?Wi$1(e,t,a?a.children:null,r,o):Wi$1(e,t,n,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Io(a.outlet.component,s));}else s&&Yi$1(t,a,o),o.canActivateChecks.push(new du(r)),i.component?Wi$1(e,null,a?a.children:null,r,o):Wi$1(e,null,n,r,o);return o}function PA(e,t,n){if(typeof n=="function")return ge$2(t._environmentInjector,()=>n(e,t));switch(n){case "pathParamsChange":return !Mr$1(e.url,t.url);case "pathParamsOrQueryParamsChange":return !Mr$1(e.url,t.url)||!Ht$2(e.queryParams,t.queryParams);case "always":return  true;case "paramsOrQueryParamsChange":return !_h(e,t)||!Ht$2(e.queryParams,t.queryParams);default:return !_h(e,t)}}function Yi$1(e,t,n){let r=Do(e),o=e.value;Object.entries(r).forEach(([i,s])=>{o.component?t?Yi$1(s,t.children.getContext(i),n):Yi$1(s,null,n):Yi$1(s,t,n);}),o.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new Io(t.outlet.component,o)):n.canDeactivateChecks.push(new Io(null,o)):n.canDeactivateChecks.push(new Io(null,o));}function ss$1(e){return typeof e=="function"}function LA(e){return typeof e=="boolean"}function FA(e){return e&&ss$1(e.canLoad)}function jA(e){return e&&ss$1(e.canActivate)}function UA(e){return e&&ss$1(e.canActivateChild)}function BA(e){return e&&ss$1(e.canDeactivate)}function HA(e){return e&&ss$1(e.canMatch)}function kE(e){return e instanceof Gt$2||e?.name==="EmptyError"}var Gc=Symbol("INITIAL_VALUE");function No(){return be$4(e=>Rs(e.map(t=>t.pipe($e$2(1),Ru(Gc)))).pipe(B$3(t=>{for(let n of t)if(n!==true){if(n===Gc)return Gc;if(n===false||VA(n))return n}return  true}),Ue$1(t=>t!==Gc),$e$2(1)))}function VA(e){return Bn$1(e)||e instanceof Mo}function PE(e){return e.aborted?T$5(void 0).pipe($e$2(1)):new L$4(t=>{let n=()=>{t.next(),t.complete();};return e.addEventListener("abort",n),()=>e.removeEventListener("abort",n)})}function LE(e){return $r$1(PE(e))}function $A(e){return he$3(t=>{let{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:i}}=t;return i.length===0&&o.length===0?T$5(m$2(l$1({},t),{guardsResult:true})):zA(i,n,r).pipe(he$3(s=>s&&LA(s)?GA(n,o,e):T$5(s)),B$3(s=>m$2(l$1({},t),{guardsResult:s})))})}function zA(e,t,n){return K$4(e).pipe(he$3(r=>QA(r.component,r.route,n,t)),Zt$1(r=>r!==true,true))}function GA(e,t,n){return K$4(t).pipe(Dn(r=>vn$1(WA(r.route.parent,n),qA(r.route,n),YA(e,r.path),ZA(e,r.route))),Zt$1(r=>r!==true,true))}function qA(e,t){return e!==null&&t&&t(new su(e)),T$5(true)}function WA(e,t){return e!==null&&t&&t(new ou(e)),T$5(true)}function ZA(e,t){let n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||n.length===0)return T$5(true);let r=n.map(o=>Po(()=>{let i=t._environmentInjector,s=Ao(o,i),a=jA(s)?s.canActivate(t,e):ge$2(i,()=>s(t,e));return Rr$1(a).pipe(Zt$1())}));return T$5(r).pipe(No())}function YA(e,t){let n=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(i=>OA(i)).filter(i=>i!==null).map(i=>Po(()=>{let s=i.guards.map(a=>{let c=i.node._environmentInjector,u=Ao(a,c),l=UA(u)?u.canActivateChild(n,e):ge$2(c,()=>u(n,e));return Rr$1(l).pipe(Zt$1())});return T$5(s).pipe(No())}));return T$5(o).pipe(No())}function QA(e,t,n,r){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return T$5(true);let i=o.map(s=>{let a=t._environmentInjector,c=Ao(s,a),u=BA(c)?c.canDeactivate(e,t,n,r):ge$2(a,()=>c(e,t,n,r));return Rr$1(u).pipe(Zt$1())});return T$5(i).pipe(No())}function KA(e,t,n,r,o){let i=t.canLoad;if(i===void 0||i.length===0)return T$5(true);let s=i.map(a=>{let c=Ao(a,e),u=FA(c)?c.canLoad(t,n):ge$2(e,()=>c(t,n)),l=Rr$1(u);return o?l.pipe(LE(o)):l});return T$5(s).pipe(No(),FE(r))}function FE(e){return Tu(ze$3(t=>{if(typeof t!="boolean")throw lu(e,t)}),B$3(t=>t===true))}function JA(e,t,n,r,o,i){let s=t.canMatch;if(!s||s.length===0)return T$5(true);let a=s.map(c=>{let u=Ao(c,e),l=HA(u)?u.canMatch(t,n,o):ge$2(e,()=>u(t,n,o));return Rr$1(l).pipe(LE(i))});return T$5(a).pipe(No(),FE(r))}
5var pn$1=class e extends Error{segmentGroup;constructor(t){super(),this.segmentGroup=t||null,Object.setPrototypeOf(this,e.prototype);}},rs$1=class e extends Error{urlTree;constructor(t){super(),this.urlTree=t,Object.setPrototypeOf(this,e.prototype);}};function XA(e){throw new m$1(4e3,false)}function eR(e){throw xE(false,Ne$3.GuardRejected)}var Ah=class{urlSerializer;urlTree;constructor(t,n){this.urlSerializer=t,this.urlTree=n;}async lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),o.numberOfChildren===0)return r;if(o.numberOfChildren>1||!o.children[A$3])throw XA(`${t.redirectTo}`);o=o.children[A$3];}}async applyRedirectCommands(t,n,r,o,i){let s=await tR(n,o,i);if(s instanceof Fe$3)throw new rs$1(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),t,r);if(s[0]==="/")throw new rs$1(a);return a}applyRedirectCreateUrlTree(t,n,r,o){let i=this.createSegmentGroup(t,n.root,r,o);return new Fe$3(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let a=i.substring(1);r[o]=n[a];}else r[o]=i;}),r}createSegmentGroup(t,n,r,o){let i=this.createSegments(t,n.segments,r,o),s=Object.create(null);return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,r,o);}),new U$6(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path[0]===":"?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){let o=r[n.path.substring(1)];if(!o)throw new m$1(4001,false);return o}findOrReturn(t,n){let r=0;for(let o of n){if(o.path===t.path)return n.splice(r),o;r++;}return t}};function tR(e,t,n){if(typeof e=="string")return Promise.resolve(e);let r=e;return Yc(Rr$1(ge$2(n,()=>r(t))))}function nR(e,t){return e.providers&&!e._injector&&(e._injector=po(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Ct$2(e){return e.outlet||A$3}function rR(e,t){let n=e.filter(r=>Ct$2(r)===t);return n.push(...e.filter(r=>Ct$2(r)!==t)),n}var Rh={matched:false,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function jE(e){return {routeConfig:e.routeConfig,url:e.url,params:e.params,queryParams:e.queryParams,fragment:e.fragment,data:e.data,outlet:e.outlet,title:e.title,paramMap:e.paramMap,queryParamMap:e.queryParamMap}}function oR(e,t,n,r,o,i,s){let a=UE(e,t,n);if(!a.matched)return T$5(a);let c=jE(i(a));return r=nR(t,r),JA(r,t,n,o,c,s).pipe(B$3(u=>u===true?a:l$1({},Rh)))}function UE(e,t,n){if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?l$1({},Rh):{matched:true,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(t.matcher||uE)(n,e,t);if(!o)return l$1({},Rh);let i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path;});let s=o.consumed.length>0?l$1(l$1({},i),o.consumed[o.consumed.length-1].parameters):i;return {matched:true,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function sE(e,t,n,r,o){return n.length>0&&aR(e,n,r,o)?{segmentGroup:new U$6(t,sR(r,new U$6(n,e.children))),slicedSegments:[]}:n.length===0&&cR(e,n,r)?{segmentGroup:new U$6(e.segments,iR(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new U$6(e.segments,e.children),slicedSegments:n}}function iR(e,t,n,r){let o={};for(let i of n)if(hu(e,t,i)&&!r[Ct$2(i)]){let s=new U$6([],{});o[Ct$2(i)]=s;}return l$1(l$1({},r),o)}function sR(e,t){let n={};n[A$3]=t;for(let r of e)if(r.path===""&&Ct$2(r)!==A$3){let o=new U$6([],{});n[Ct$2(r)]=o;}return n}function aR(e,t,n,r){return n.some(o=>!hu(e,t,o)||!(Ct$2(o)!==A$3)?false:!(r!==void 0&&Ct$2(o)===r))}function cR(e,t,n){return n.some(r=>hu(e,t,r))}function hu(e,t,n){return (e.hasChildren()||t.length>0)&&n.pathMatch==="full"?false:n.path===""}function uR(e,t,n){return t.length===0&&!e.children[n]}var xh=class{};async function lR(e,t,n,r,o,i,s,a){return new Oh(e,t,n,r,o,s,i,a).recognize()}var dR=31,Oh=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=true;constructor(t,n,r,o,i,s,a,c){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer
5=a,this.abortSignal=c,this.applyRedirects=new Ah(this.urlSerializer,this.urlTree);}noMatchError(t){return new m$1(4002,`'${t.segmentGroup}'`)}async recognize(){let t=sE(this.urlTree.root,[],[],this.config).segmentGroup,{children:n,rootSnapshot:r}=await this.match(t),o=new We$2(r,n),i=new ts$1("",o),s=EE(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}}async match(t){let n=new _o([],Object.freeze({}),Object.freeze(l$1({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),A$3,this.rootComponentType,null,{},this.injector);try{return {children:await this.processSegmentGroup(this.injector,this.config,t,A$3,n),rootSnapshot:n}}catch(r){if(r instanceof rs$1)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof pn$1?this.noMatchError(r):r}}async processSegmentGroup(t,n,r,o,i){if(r.segments.length===0&&r.hasChildren())return this.processChildren(t,n,r,i);let s=await this.processSegment(t,n,r,r.segments,o,true,i);return s instanceof We$2?[s]:[]}async processChildren(t,n,r,o){let i=[];for(let c of Object.keys(r.children))c==="primary"?i.unshift(c):i.push(c);let s=[];for(let c of i){let u=r.children[c],l=rR(n,c),d=await this.processSegmentGroup(t,l,u,c,o);s.push(...d);}let a=BE(s);return fR(a),a}async processSegment(t,n,r,o,i,s,a){for(let c of n)try{return await this.processSegmentAgainstRoute(c._injector??t,n,c,r,o,i,s,a)}catch(u){if(u instanceof pn$1||kE(u))continue;throw u}if(uR(r,o,i))return new xh;throw new pn$1(r)}async processSegmentAgainstRoute(t,n,r,o,i,s,a,c){if(Ct$2(r)!==s&&(s===A$3||!hu(o,i,r)))throw new pn$1(o);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(t,o,r,i,s,c);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s,c);throw new pn$1(o)}async expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:f}=UE(n,o,i);if(!c)throw new pn$1(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>dR&&(this.allowRedirects=false));let h=this.createSnapshot(t,o,i,u,a);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let g=await this.applyRedirects.applyRedirectCommands(l,o.redirectTo,d,jE(h),t),D=await this.applyRedirects.lineralizeSegments(o,g);return this.processSegment(t,r,n,D.concat(f),s,false,a)}createSnapshot(t,n,r,o,i){let s=new _o(r,o,Object.freeze(l$1({},this.urlTree.queryParams)),this.urlTree.fragment,pR(n),Ct$2(n),n.component??n._loadedComponent??null,n,gR(n),t),a=Lh(s,i,this.paramsInheritanceStrategy);return s.params=Object.freeze(a.params),s.data=Object.freeze(a.data),s}async matchSegmentAgainstRoute(t,n,r,o,i,s){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let a=R=>this.createSnapshot(t,r,R.consumedSegments,R.parameters,s),c=await Yc(oR(n,r,o,t,this.urlSerializer,a,this.abortSignal));if(r.path==="**"&&(n.children={}),!c?.matched)throw new pn$1(n);t=r._injector??t;let{routes:u}=await this.getChildConfig(t,r,o),l=r._loadedInjector??t,{parameters:d,consumedSegments:f,remainingSegments:h}=c,g=this.createSnapshot(t,r,f,d,s),{segmentGroup:D,slicedSegments:E}=sE(n,f,h,u,i);if(E.length===0&&D.hasChildren()){let R=await this.processChildren(l,u,D,g);return new We$2(g,R)}if(u.length===0&&E.length===0)return new We$2(g,[]);let N=Ct$2(r)===i,_=await this.processSegment(l,u,D,E,N?A$3:i,true,g);return new We$2(g,_ instanceof We$2?[_]:[])}async getChildConfig(t,n,r){if(n.children)return {routes:n.children,injector:t};if(n.loadChildren){if(n._loadedRoutes!==void 0){let i=n._loadedNgModuleFactory;return i&&!n._loadedInjector&&(n._loadedInjector=i.create(t).injector),{routes:n._loadedRoutes,injector:n._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(await Yc(KA(t,n,r,this.urlSerializer,this.abortSignal))){let i=await this.configLoader.loadChildren(t,n);return n._loadedRoutes=i.routes,n._loadedInjector=i.injector,n._loadedNgModuleFactory=i.factory,i}throw eR()}return {routes:[],injector:t}}};function fR(e){e.sort((t,n)=>t.value.outlet===A$3?-1:n.value.outlet===A$3?1:t.value.outlet.localeCompare(n.value.outlet));}function hR(e){let t=e.value.routeConfig;return t&&t.path===""}function BE(e){let t=[],n=new Set;for(let r of e){if(!hR(r)){t.push(r);continue}let o=t.find(i=>r.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...r.children),n.add(o)):t.push(r);}for(let r of n){let o=BE(r.children);t.push(new We$2(r.value,o));}return t.filter(r=>!n.has(r))}function pR(e){return e.data||{}}function gR(e){return e.resolve||{}}function mR(e,t,n,r,o,i,s){return he$3(async a=>{let{state:c,tree:u}=await lR(e,t,n,r,a.extractedUrl,o,i,s);return m$2(l$1({},a),{targetSnapshot:c,urlAfterRedirects:u})})}function yR(e){return he$3(t=>{let{targetSnapshot:n,guards:{canActivateChecks:r}}=t;if(!r.length)return T$5(t);let o=new Set(r.map(a=>a.route)),i=new Set;for(let a of o)if(!i.has(a))for(let c of HE(a))i.add(c);let s=0;return K$4(i).pipe(Dn(a=>o.has(a)?vR(a,n,e):(a.data=Lh(a,a.parent,e).resolve,T$5(void 0))),ze$3(()=>s++),Ls(1),he$3(a=>s===i.size?T$5(t):fe$1))})}function HE(e){let t=e.children.map(n=>HE(n)).flat();return [e,...t]}function vR(e,t,n){let r=e.routeConfig,o=e._resolve;return r?.title!==void 0&&!ME(r)&&(o[os$1]=r.title),Po(()=>(e.data=Lh(e,e.parent,n).resolve,DR(o,e,t).pipe(B$3(i=>(e._resolvedData=i,e.data=l$1(l$1({},e.data),i),null)))))}
5function DR(e,t,n){let r=Eh(e);if(r.length===0)return T$5({});let o={};return K$4(r).pipe(he$3(i=>ER(e[i],t,n).pipe(Zt$1(),ze$3(s=>{if(s instanceof Mo)throw lu(new gn$1,s);o[i]=s;}))),Ls(1),B$3(()=>o),Yn(i=>kE(i)?fe$1:Ou(i)))}function ER(e,t,n){let r=t._environmentInjector,o=Ao(e,r),i=o.resolve?o.resolve(t,n):ge$2(r,()=>o(t,n));return Rr$1(i)}function aE(e){return be$4(t=>{let n=e(t);return n?K$4(n).pipe(B$3(()=>t)):T$5(t)})}var Hh=(()=>{class e{buildTitle(n){let r,o=n.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===A$3);return r}getResolvedTitleForRoute(n){return n.data[os$1]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=W$6({token:e,factory:()=>p$1(VE)})}return e})(),VE=(()=>{class e extends Hh{title;constructor(n){super(),this.title=n;}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r);}static \u0275fac=function(r){return new(r||e)(I$2(tE))};static \u0275prov=S$4({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),$n$1=new v$2("",{factory:()=>({})}),Or$1=new v$2(""),pu=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=p$1(kf);async loadComponent(n,r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let o=(async()=>{try{let i=await dE(ge$2(n,()=>r.loadComponent())),s=await zE(jf(i));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s,s}finally{this.componentLoaders.delete(r);}})();return this.componentLoaders.set(r,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=(async()=>{try{let i=await $E(r,this.compiler,n,this.onLoadEndListener);return r._loadedRoutes=i.routes,r._loadedInjector=i.injector,r._loadedNgModuleFactory=i.factory,i}finally{this.childrenLoaders.delete(r);}})();return this.childrenLoaders.set(r,o),o}static \u0275fac=function(r){return new(r||e)};static \u0275prov=W$6({token:e,factory:e.\u0275fac})}return e})();async function $E(e,t,n,r){let o=await dE(ge$2(n,()=>e.loadChildren())),i=await zE(jf(o)),s;i instanceof cc||Array.isArray(i)?s=i:s=await t.compileModuleAsync(i),r&&r(e);let a,c,l;return Array.isArray(s)?(c=s,true):(a=s.create(n).injector,l=s,c=a.get(Or$1,[],{optional:true,self:true}).flat()),{routes:c.map(Bh),injector:a,factory:l}}async function zE(e){return e}var gu=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=W$6({token:e,factory:()=>p$1(wR)})}return e})(),wR=(()=>{class e{shouldProcessUrl(n){return  true}extract(n){return n}merge(n,r){return n}static \u0275fac=function(r){return new(r||e)};static \u0275prov=W$6({token:e,factory:e.\u0275fac})}return e})(),Vh=new v$2(""),$h=new v$2("");function GE(e,t,n){let r=e.get($h),o=e.get(ee$3);if(!o.startViewTransition||r.skipNextTransition)return r.skipNextTransition=false,new Promise(u=>setTimeout(u));let i,s=new Promise(u=>{i=u;}),a=o.startViewTransition(()=>(i(),IR(e)));a.updateCallbackDone.catch(u=>{}),a.ready.catch(u=>{}),a.finished.catch(u=>{});let{onViewTransitionCreated:c}=r;return c&&ge$2(e,()=>c({transition:a,from:t,to:n})),s}function IR(e){return new Promise(t=>{Xa({read:()=>setTimeout(t)},{injector:e});})}var qE=new v$2(""),CR=()=>{},zh=new v$2(""),mu=(()=>{class e{currentNavigation=oe$2(null,{equal:()=>false});currentTransition=null;lastSuccessfulNavigation=oe$2(null);events=new ae$4;transitionAbortWithErrorSubject=new ae$4;configLoader=p$1(pu);environmentInjector=p$1(te$4);destroyRef=p$1(ke$2);urlSerializer=p$1(Vn);rootContexts=p$1(xr$1);location=p$1(jn$1);inputBindingEnabled=p$1(is$1,{optional:true})!==null;titleStrategy=p$1(Hh);options=p$1($n$1,{optional:true})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||_A;urlHandlingStrategy=p$1(gu);createViewTransition=p$1(Vh,{optional:true});navigationErrorHandler=p$1(zh,{optional:true});activatedRouteInjectorFeature=p$1(qE,{optional:true});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>T$5(void 0);rootComponentType=null;destroyed=false;constructor(){let n=o=>this.events.next(new nu(o)),r=o=>this.events.next(new ru(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n,this.destroyRef.onDestroy(()=>{this.destroyed=true;});}complete(){this.transitions?.complete();}handleNavigationRequest(n){let r=++this.navigationId;Z$4(()=>{this.transitions?.next(m$2(l$1({},n),{extractedUrl:this.urlHandlingStrategy.extract(n.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}));});}setupNavigations(n){return this.transitions=new Ee$2(null),this.transitions.pipe(Ue$1(r=>r!==null),be$4(r=>{let o=true,i=false,s=new AbortController,a=()=>!i&&this.currentTransition?.id===r.id;return T$5(r).pipe(be$4(c=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",Ne$3.SupersededByNewNavigation),fe$1;this.currentTransition=r;let u=this.lastSuccessfulNavigation();this.currentNavigation.set({id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,targetBrowserUrl:typeof c.extras.browserUrl=="string"?this.urlSerializer.parse(c.extras.browserUrl):c.extras.browserUrl,trigger:c.source,extras:c.extras,previousNavigation:u?m$2(l$1({},u),{previousNavigation:null}):null,abort:()=>s.abort(),routesRecognizeHandler:c.routesRecognizeHandler,beforeActivateHandler:c.beforeActivateHandler});let l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&d!=="reload")return this.events.next(new Vt$2(c.id,this.urlSerializer.serialize(c.rawUrl),"",Co.IgnoredSameUrlNavigation)),c.resolve(false),fe$1;if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return T$5(c).pipe(be$4(f=>(this.events.next(new Hn$1(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),f.id!==this.navigationId?fe$1:Promise.resolve(f))),mR(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy,s.signal),ze$3(f=>{r.targetSnapshot=f.targetSnapshot,r.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation.update(h=>(h.finalUrl=f.urlAfterRedirects,h)),this.events.next(new Xi$1);}),be$4(f=>K$4(r.routesRecognizeHandler.deferredHandle??T$5(void 0)).pipe(B$3(()=>f))),ze$3(()=>{let f=new Ji$1(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(f);}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:f,extractedUrl:h,source:g,restoredState:D,extras:E}=c,N=new Hn$1(f,this.urlSerializer.serialize(h),g,D);this.events.next(N);let _=TE(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=m$2(l$1({},c),{targetSnapshot:_,urlAfterRedirects:h,extras:m$2(l$1({},E),{skipLocationChange:false,replaceUrl:false})}),this.currentNavigation.update(R=>(R.finalUrl=h,R)),T$5(r)}else return this.events.next(new Vt$2(c.id,this.urlSerializer.serialize(c.extractedUrl),"",Co.IgnoredByUrlHandlingStrategy)),c.resolve(false),fe$1}),B$3(c=>{let u=new Jc(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);return this.events.next(u),this.currentTransition=r=m$2(l$1({},c),{guards:xA(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),r}),$A(c=>this.events.next(c)),be$4(c=>{if(r.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw lu(this.urlSerializer,c.guardsResult);let u=new Xc(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);if(this.events.next(u),!a())return fe$1;if(!c.guardsResult)return this.cancelNavigationTransition(c,"",Ne$3.GuardRejected),fe$1;if(c.guards.canActivateChecks.length===0)return T$5(c);let l=new eu(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);if(this.events.next(l),!a())return fe$1;let d=false;return T$5(c).pipe(yR(this.paramsInheritanceStrategy),ze$3({next:()=>{d=true;let f=new tu(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(f);},complete:()=>
5{d||this.cancelNavigationTransition(c,"",Ne$3.NoDataFromResolver);}}))}),aE(c=>{let u=d=>{let f=[];if(d.routeConfig?._loadedComponent)d.component=d.routeConfig?._loadedComponent;else if(d.routeConfig?.loadComponent){let h=d._environmentInjector;f.push(this.configLoader.loadComponent(h,d.routeConfig).then(g=>{d.component=g;}));}for(let h of d.children)f.push(...u(h));return f},l=u(c.targetSnapshot.root);return l.length===0?T$5(c):K$4(Promise.all(l).then(()=>c))}),be$4(c=>{let{newlyCreatedRoutes:u,state:l}=MA(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=r=c=m$2(l$1({},c),{targetRouterState:l,newlyCreatedRoutes:u}),this.currentNavigation.update(d=>(d.targetRouterState=l,d)),T$5(c)}),this.activatedRouteInjectorFeature?.operator()??(c=>c),aE(()=>this.afterPreactivation()),be$4(()=>{let{currentSnapshot:c,targetSnapshot:u}=r,l=this.createViewTransition?.(this.environmentInjector,c.root,u.root);return l?K$4(l).pipe(B$3(()=>r)):T$5(r)}),$e$2(1),be$4(c=>{o=false,this.events.next(new So);let u=r.beforeActivateHandler.deferredHandle;return u?K$4(u.then(()=>c)):T$5(c)}),ze$3(c=>{new Nh(n.routeReuseStrategy,r.targetRouterState,r.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),c.newlyCreatedRoutes?.clear(),a()&&(i=true,this.currentNavigation.update(u=>(u.abort=CR,u)),this.lastSuccessfulNavigation.set(Z$4(this.currentNavigation)),this.events.next(new Ye$1(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(true));}),$r$1(PE(s.signal).pipe(Ue$1(()=>!i&&o),ze$3(()=>{this.cancelNavigationTransition(r,s.signal.reason+"",Ne$3.Aborted);}))),ze$3({complete:()=>{i=true;}}),$r$1(this.transitionAbortWithErrorSubject.pipe(ze$3(c=>{throw c}))),ko(()=>{s.abort(),i||this.cancelNavigationTransition(r,"",Ne$3.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null);}),Yn(c=>{if(i=true,cE(r),this.destroyed)return r.resolve(false),fe$1;if(OE(c))this.events.next(new ut$3(r.id,this.urlSerializer.serialize(r.extractedUrl),c.message,c.cancellationCode)),RA(c)?this.events.next(new To(c.url,c.navigationBehaviorOptions)):r.resolve(false);else {let u=new Ar$1(r.id,this.urlSerializer.serialize(r.extractedUrl),c,r.targetSnapshot??void 0);try{let l=ge$2(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(l instanceof Mo){let{message:d,cancellationCode:f}=lu(this.urlSerializer,l);this.events.next(new ut$3(r.id,this.urlSerializer.serialize(r.extractedUrl),d,f)),this.events.next(new To(l.redirectTo,l.navigationBehaviorOptions));}else throw this.events.next(u),c}catch(l){this.options.resolveNavigationPromiseOnError?r.resolve(false):r.reject(l);}}return fe$1}))}))}cancelNavigationTransition(n,r,o){cE(n);let i=new ut$3(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(false);}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(true))),r=Z$4(this.currentNavigation),o=r?.targetBrowserUrl??r?.extractedUrl;return n.toString()!==o?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||e)};static \u0275prov=W$6({token:e,factory:e.\u0275fac})}return e})();function bR(e){return e!==wo}function cE(e){if(e.newlyCreatedRoutes)for(let t of e.newlyCreatedRoutes)t._localInjector?.destroy();}var WE=new v$2("");var ZE=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=W$6({token:e,factory:()=>p$1(SR)})}return e})(),fu=class{shouldDetach(t){return  false}store(t,n){}shouldAttach(t){return  false}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}shouldDestroyInjector(t){return  true}},SR=(()=>{class e extends fu{static \u0275fac=function(r){return new(r||e)};static \u0275prov=W$6({token:e,factory:e.\u0275fac})}return e})(),yu=(()=>
5{class e{urlSerializer=p$1(Vn);options=p$1($n$1,{optional:true})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=p$1(jn$1);urlHandlingStrategy=p$1(gu);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Fe$3;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:n,initialUrl:r,targetBrowserUrl:o}){let i=n!==void 0?this.urlHandlingStrategy.merge(n,r):r,s=o??i;return s instanceof Fe$3?this.urlSerializer.serialize(s):s}routerUrlState(n){return n?.targetBrowserUrl===void 0||n?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(n.finalUrl)}}commitTransition({targetRouterState:n,finalUrl:r,initialUrl:o}){r&&n?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,o),this.routerState=n):this.rawUrlTree=o;}routerState=TE(null,p$1(te$4));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento();}createStateMemento(){return {rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=W$6({token:e,factory:()=>p$1(TR)})}return e})(),TR=(()=>{class e extends yu{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{n(r.url,r.state,"popstate",{replaceUrl:true});});})}handleRouterEvent(n,r){n instanceof Hn$1?this.updateStateMemento():n instanceof Vt$2?this.commitTransition(r):n instanceof Ji$1?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof So?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof ut$3&&!SE(n)?this.restoreHistory(r):n instanceof Ar$1?this.restoreHistory(r,true):n instanceof Ye$1&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId);}setBrowserUrl(n,r){let{extras:o,id:i}=r,{replaceUrl:s,state:a}=o;if(this.location.isCurrentPathEqualTo(n)||s){let c=this.browserPageId,u=l$1(l$1({},a),this.generateNgRouterState(i,c,r));this.location.replaceState(n,"",u);}else {let c=l$1(l$1({},a),this.generateNgRouterState(i,this.browserPageId+1,r));this.location.go(n,"",c);}}restoreHistory(n,r=false){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,i=this.currentPageId-o;i!==0?this.location.historyGo(i):this.getCurrentUrlTree()===n.finalUrl&&i===0&&(this.resetInternalState(n),this.resetUrlToCurrentUrlTree());}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(n),this.resetUrlToCurrentUrlTree());}resetInternalState({finalUrl:n}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n??this.rawUrlTree);}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId));}generateNgRouterState(n,r,o){return this.canceledNavigationResolution==="computed"?l$1({navigationId:n,\u0275routerPageId:r},this.routerUrlState(o)):l$1({navigationId:n},this.routerUrlState(o))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=W$6({token:e,factory:e.\u0275fac})}return e})();function vu(e,t){e.events.pipe(Ue$1(n=>n instanceof Ye$1||n instanceof ut$3||n instanceof Ar$1||n instanceof Vt$2),B$3(n=>n instanceof Ye$1||n instanceof Vt$2?0:(n instanceof ut$3?n.code===Ne$3.Redirect||n.code===Ne$3.SupersededByNewNavigation:false)?2:1),Ue$1(n=>n!==2),$e$2(1)).subscribe(()=>{t();});}var bt$1=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=false;nonRouterCurrentEntryChangeSubscription;console=p$1(lc);stateManager=p$1(yu);options=p$1($n$1,{optional:true})||{};pendingTasks=p$1(rn$1);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=p$1(mu);
5urlSerializer=p$1(Vn);location=p$1(jn$1);urlHandlingStrategy=p$1(gu);injector=p$1(te$4);_events=new ae$4;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=false;routeReuseStrategy=p$1(ZE);injectorCleanup=p$1(WE,{optional:true});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=p$1(Or$1,{optional:true})?.flat()??[];componentInputBindingEnabled=!!p$1(is$1,{optional:true});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:n=>{}}),this.subscribeToNavigationEvents();}eventsSubscription=new ie$3;subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,i=Z$4(this.navigationTransitions.currentNavigation);if(o!==null&&i!==null){if(this.stateManager.handleRouterEvent(r,i),r instanceof ut$3&&r.code!==Ne$3.Redirect&&r.code!==Ne$3.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Ye$1)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof To){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),c=l$1({scroll:o.extras.scroll,browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||bR(o.source)},s);this.scheduleNavigation(a,wo,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise});}}SA(r)&&this._events.next(r);}catch(o){this.navigationTransitions.transitionAbortWithErrorSubject.next(o);}});this.eventsSubscription.add(n);}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n;}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(true),wo,this.stateManager.restoredState(),{replaceUrl:true});}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r,o,i)=>{this.navigateToSyncWithBrowser(n,o,r,i);});}navigateToSyncWithBrowser(n,r,o,i){let s=o?.navigationId?o:null,a=o?.\u0275routerUrl??n;if(o?.\u0275routerUrl&&(i=m$2(l$1({},i),{browserUrl:n})),o){let u=l$1({},o);delete u.navigationId,delete u.\u0275routerPageId,delete u.\u0275routerUrl,Object.keys(u).length!==0&&(i.state=u);}let c=this.parseUrl(a);this.scheduleNavigation(c,r,s,i).catch(u=>{this.disposed||this.injector.get(qe$3)(u);});}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Z$4(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Bh),this.navigated=false;}ngOnDestroy(){this.dispose();}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=true,this.eventsSubscription.unsubscribe();}createUrlTree(n,r={}){let{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:s,l=null;switch(a??this.options.defaultQueryParamsHandling){case "merge":l=l$1(l$1({},this.currentUrlTree.queryParams),i);break;case "preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null;}l!==null&&(l=this.removeEmptyProps(l));let d;try{let f=o?o.snapshot:this.routerState.snapshot.root;d=wE(f);}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root;}return IE(d,n,l,u??null,this.urlSerializer)}navigateByUrl(n,r={skipLocationChange:false}){let o=Bn$1(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,wo,null,r)}navigate(n,r={skipLocationChange:false}){return _R(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.console.warn(Ke$2(4018,false)),this.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===true?o=l$1({},kh):r===false?o=l$1({},Qi$1):o=l$1(l$1({},Qi$1),r),Bn$1(n))return wh(this.currentUrlTree,n,o);let i=this.parseUrl(n);return wh(this.currentUrlTree,i,o)}removeEmptyProps(n){return Object.entries(n).reduce((r,[o,i])=>(i!=null&&(r[o]=i),r),{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(false);let a,c,u;s?(a=s.resolve,c=s.reject,u=s.promise):u=new Promise((d,f)=>{a=d,c=f;});let l=this.pendingTasks.add();return vu(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l));}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}
5),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=W$6({token:e,factory:e.\u0275fac})}return e})();function _R(e){for(let t=0;t<e.length;t++)if(e[t]==null)throw new m$1(4008,false)}var MR=(()=>{class e{router=p$1(bt$1);stateManager=p$1(yu);fragment=oe$2("");queryParams=oe$2({});path=oe$2("");serializer=p$1(Vn);constructor(){this.updateState(),this.router.events?.subscribe(n=>{n instanceof Ye$1&&this.updateState();});}updateState(){let{fragment:n,root:r,queryParams:o}=this.stateManager.getCurrentUrlTree();this.fragment.set(n),this.queryParams.set(o),this.path.set(this.serializer.serialize(new Fe$3(r)));}static \u0275fac=function(r){return new(r||e)};static \u0275prov=W$6({token:e,factory:e.\u0275fac})}return e})(),Du=(()=>{class e{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=p$1(new vc("href"),{optional:true});reactiveHref=Lf(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return Z$4(this.reactiveHref)}set href(n){this.reactiveHref.set(n);}set target(n){this._target.set(n);}get target(){return Z$4(this._target)}
5_target=oe$2(void 0);set queryParams(n){this._queryParams.set(n);}get queryParams(){return Z$4(this._queryParams)}_queryParams=oe$2(void 0,{equal:()=>false});set fragment(n){this._fragment.set(n);}get fragment(){return Z$4(this._fragment)}_fragment=oe$2(void 0);set queryParamsHandling(n){this._queryParamsHandling.set(n);}get queryParamsHandling(){return Z$4(this._queryParamsHandling)}_queryParamsHandling=oe$2(void 0);set state(n){this._state.set(n);}get state(){return Z$4(this._state)}_state=oe$2(void 0,{equal:()=>false});set info(n){this._info.set(n);}get info(){return Z$4(this._info)}_info=oe$2(void 0,{equal:()=>false});set relativeTo(n){this._relativeTo.set(n);}get relativeTo(){return Z$4(this._relativeTo)}_relativeTo=oe$2(void 0);set preserveFragment(n){this._preserveFragment.set(n);}get preserveFragment(){return Z$4(this._preserveFragment)}_preserveFragment=oe$2(false);set skipLocationChange(n){this._skipLocationChange.set(n);}get skipLocationChange(){return Z$4(this._skipLocationChange)}_skipLocationChange=oe$2(false);set replaceUrl(n){this._replaceUrl.set(n);}get replaceUrl(){return Z$4(this._replaceUrl)}_replaceUrl=oe$2(false);browserUrl=Dc(void 0);isAnchorElement;onChanges=new ae$4;applicationErrorHandler=p$1(qe$3);options=p$1($n$1,{optional:true});reactiveRouterState=p$1(MR);constructor(n,r,o,i,s,a){this.router=n,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area"||!!(typeof customElements=="object"&&customElements.get(c)?.observedAttributes?.includes?.("href"));}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n);}ngOnChanges(n){this.onChanges.next(this);}routerLinkInput=oe$2(null);set routerLink(n){n==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(Bn$1(n)?this.routerLinkInput.set(n):this.routerLinkInput.set(Array.isArray(n)?n:[n]),this.setTabIndexIfNotOnNativeEl("0"));}onClick(n,r,o,i,s){let a=this._urlTree();if(a===null||this.isAnchorElement&&(n!==0||r||o||i||s||typeof this.target=="string"&&this.target!="_self"))return  true;let c=this.browserUrl(),u=l$1({skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info},c!==void 0&&{browserUrl:c});return this.router.navigateByUrl(a,u)?.catch(l=>{this.applicationErrorHandler(l);}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(n,r){let o=this.renderer,i=this.el.nativeElement;r!==null?o.setAttribute(i,n,r):o.removeAttribute(i,n);}_urlTree=Ri$1(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let n=o=>o==="preserve"||o==="merge";(n(this._queryParamsHandling())||n(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let r=this.routerLinkInput();return r===null||!this.router.createUrlTree?null:Bn$1(r)?r:this.router.createUrlTree(r,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(n,r)=>this.computeHref(n)===this.computeHref(r)});get urlTree(){return Z$4(this._urlTree)}computeHref(n){return n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n))??"":null}static \u0275fac=function(r){return new(r||e)(J$6(bt$1),J$6($t$2),Ci$1("tabindex"),J$6(kn),J$6(st$3),J$6(Et$1))};static \u0275dir=yt$2({type:e,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,o){r&1&&hc("click",function(s){return o.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&dc("href",o.reactiveHref(),qd)("target",o._target());},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",cn$1],skipLocationChange:[2,"skipLocationChange","skipLocationChange",cn$1],replaceUrl:[2,"replaceUrl","replaceUrl",cn$1],browserUrl:[1,"browserUrl"],routerLink:"routerLink"},features:[Lt$2]})}return e})(),NR=(()=>{class e{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=false;get isActive(){return this._isActive}routerLinkActiveOptions={exact:false};ariaCurrentWhenActive;isActiveChange=new Se$4;link=p$1(Du,{optional:true});constructor(n,r,o,i){this.router=n,this.element=r,this.renderer=o,this.cdr=i,this.routerEventsSubscription=n.events.subscribe(s=>{s instanceof Ye$1&&this.update();});}ngAfterContentInit(){T$5(this.links.changes,T$5(null)).pipe(Tt$2()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges();});}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=K$4(n).pipe(Tt$2()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update();});}set routerLinkActive(n){let r=Array.isArray(n)?n:n.split(" ");this.classes=r.filter(o=>!!o);}ngOnChanges(n){this.update();}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe();}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();
5this.classes.forEach(r=>{n?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r);}),n&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.isActiveChange.emit(n));});}isLinkActive(n){let r=AR(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact??false?l$1({},kh):l$1({},Qi$1);return o=>{let i=o.urlTree;return i?Z$4(Ph(i,n,r)):false}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}static \u0275fac=function(r){return new(r||e)(J$6(bt$1),J$6(st$3),J$6(kn),J$6(Fn))};static \u0275dir=yt$2({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(r,o,i){if(r&1&&pc(i,Du,5),r&2){let s;_f(s=Mf())&&(o.links=s);}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Lt$2]})}return e})();function AR(e){let t=e;return !!(t.paths||t.matrixParams||t.queryParams||t.fragment)}var as$1=class as{};var YE=(()=>{class e{router;injector;preloadingStrategy;loader;subscription;constructor(n,r,o,i){this.router=n,this.injector=r,this.preloadingStrategy=o,this.loader=i;}setUpPreloading(){this.subscription=this.router.events.pipe(Ue$1(n=>n instanceof Ye$1),Dn(()=>this.preload())).subscribe(()=>{});}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe();}processRoutes(n,r){let o=[];for(let i of r){i.providers&&!i._injector&&(i._injector=po(i.providers,n,""));let s=i._injector??n;i._loadedNgModuleFactory&&!i._loadedInjector&&(i._loadedInjector=i._loadedNgModuleFactory.create(s).injector);let a=i._loadedInjector??s;(i.loadChildren&&!i._loadedRoutes&&i.canLoad===void 0||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(s,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes));}return K$4(o).pipe(Tt$2())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{if(n.destroyed)return T$5(null);let o;r.loadChildren&&r.canLoad===void 0?o=K$4(this.loader.loadChildren(n,r)):o=T$5(null);let i=o.pipe(he$3(s=>s===null?T$5(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,r._loadedNgModuleFactory=s.factory,this.processRoutes(s.injector??n,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(n,r);return K$4([i,s]).pipe(Tt$2())}else return i})}static \u0275fac=function(r){return new(r||e)(I$2(bt$1),I$2(te$4),I$2(as$1),I$2(pu))};static \u0275prov=S$4({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),QE=new v$2(""),RR=(()=>{class e{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=wo;restoredId=0;store={};isHydrating=p$1(Ud,{optional:true})??false;urlSerializer=p$1(Vn);zone=p$1(ve$2);viewportScroller=p$1(th);transitions=p$1(mu);constructor(n){this.options=n,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&p$1(Ln$1).whenStable().then(()=>{this.isHydrating=false;});}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents();}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Hn$1?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Ye$1?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof Vt$2&&n.code===Co.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment));})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{if(!(n instanceof bo)||n.scrollBehavior==="manual")return;let r={behavior:"instant"};n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],r):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position,r):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]);})}scheduleScrollEvent(n,r){if(this.isHydrating)return;let o=Z$4(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(async()=>{await new Promise(i=>{setTimeout(i),typeof requestAnimationFrame<"u"&&requestAnimationFrame(i);}),this.zone.run(()=>{this.transitions.events.next(new bo(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,r,o));});});}
5ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe();}static \u0275fac=function(r){Ni$1();};static \u0275prov=S$4({token:e,factory:e.\u0275fac})}return e})();function xR(e,...t){return Xt$1([{provide:Or$1,multi:true,useValue:e},{provide:$t$2,useFactory:KE},{provide:go,multi:true,useFactory:JE},t.map(n=>n.\u0275providers)])}function KE(){return p$1(bt$1).routerState.root}function cs$1(e,t){return {\u0275kind:e,\u0275providers:t}}function JE(){let e=p$1(Ie$3);return t=>{let n=e.get(Ln$1);if(t!==n.components[0])return;let r=e.get(bt$1),o=e.get(XE);e.get(qh)===1&&r.initialNavigation(),e.get(nw,null,{optional:true})?.setUpPreloading(),e.get(QE,null,{optional:true})?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe());}}var XE=new v$2("",{factory:()=>new ae$4}),qh=new v$2("",{factory:()=>1});function ew(){let e=[{provide:Za,useValue:true},{provide:qh,useValue:0},uc(()=>{let t=p$1(Ie$3);return t.get(Hf,Promise.resolve()).then(()=>new Promise(r=>{let o=t.get(bt$1),i=t.get(XE);vu(o,()=>{r(true);}),t.get(mu).afterPreactivation=()=>(r(true),i.closed?T$5(void 0):i),o.initialNavigation();}))})];return cs$1(2,e)}function tw(){let e=[uc(()=>{p$1(bt$1).setUpLocationChangeListener();}),{provide:qh,useValue:2}];return cs$1(3,e)}var nw=new v$2("");function rw(e){return cs$1(0,[{provide:nw,useExisting:YE},{provide:as$1,useExisting:e}])}function ow(e={}){return cs$1(8,[{provide:is$1,useFactory:()=>new AE(e)}])}function iw(e){He$1("NgRouterViewTransitions");let t=[{provide:Vh,useValue:GE},{provide:$h,useValue:l$1({skipNextTransition:false},e)}];return cs$1(9,t)}var sw=[jn$1,{provide:Vn,useClass:gn$1},bt$1,xr$1,{provide:$t$2,useFactory:KE},pu],OR=(()=>{class e{constructor(){}static forRoot(n,r){return {ngModule:e,providers:[sw,[],{provide:Or$1,multi:true,useValue:n},[],r?.errorHandler?{provide:zh,useValue:r.errorHandler}:[],{provide:$n$1,useValue:r||{}},r?.useHash?PR():LR(),kR(),r?.preloadingStrategy?rw(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?FR(r):[],r?.bindToComponentInputs?ow(typeof r.bindToComponentInputs=="object"?r.bindToComponentInputs:{}).\u0275providers:[],r?.enableViewTransitions?iw().\u0275providers:[],jR()]}}static forChild(n){return {ngModule:e,providers:[{provide:Or$1,multi:true,useValue:n}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=Tr$1({type:e});static \u0275inj=bn({})}return e})();function kR(){return {provide:QE,useFactory:()=>{let e=p$1(th),t=p$1($n$1);return t.scrollOffset&&e.setOffset(t.scrollOffset),new RR(t)}}}function PR(){return {provide:Et$1,useClass:Qf}}function LR(){return {provide:Et$1,useClass:Ic}}function FR(e){return [e.initialNavigation==="disabled"?tw().\u0275providers:[],e.initialNavigation==="enabledBlocking"?ew().\u0275providers:[]]}var Gh=new v$2("");function jR(){return [{provide:Gh,useFactory:JE},{provide:go,multi:true,useExisting:Gh}]}
6function U$5(n){n||(n=p$1(ke$2));let e=new L$4(t=>{if(n.destroyed){t.next();return}return n.onDestroy(t.next.bind(t))});return t=>t.pipe($r$1(e))}function T$4(n,e){let t=p$1(Ie$3),o=new xu(1),c=Ag(()=>{let r;try{r=n();}catch(i){Z$4(()=>o.error(i));return}Z$4(()=>o.next(r));},{injector:t,manualCleanup:true});return t.get(ke$2).onDestroy(()=>{c.destroy(),o.complete();}),o.asObservable()}function F$2(n,e){let o=!e?.manualCleanup?e?.injector?.get(ke$2)??p$1(ke$2):null,c=h(e?.equal),r;e?.requireSync?r=oe$2({kind:0},{equal:c}):r=oe$2({kind:1,value:e?.initialValue},{equal:c});let i,v=n.subscribe({next:s=>r.set({kind:1,value:s}),error:s=>{r.set({kind:2,error:s}),i?.();},complete:()=>{i?.();}});if(e?.requireSync&&r().kind===0)throw new m$1(601,false);return i=o?.onDestroy(v.unsubscribe.bind(v)),Ri$1(()=>{let s=r();switch(s.kind){case 1:return s.value;case 2:throw s.error;case 0:throw new m$1(601,false)}},{equal:e?.equal})}function h(n=Object.is){return (e,t)=>e.kind===1&&t.kind===1&&n(e.value,t.value)}var b=(()=>{class r{toggleSidebar(){this.isSidebarCollapsed.update(t=>!t);}constructor(){this.platformId=p$1(oi),this.router=p$1(bt$1,{optional:true}),this.userData=oe$2(null),this.createAdData=oe$2(null),this.categoryAndSubCategory=oe$2(null),this.locations=oe$2(null),this.inputValue=oe$2(null),this.storeData=oe$2(null),this.defaultStore=oe$2(null),this.userStoreList=oe$2([]),this.adData=oe$2(null),this.reviews=oe$2([]),this.createStoreData=oe$2(null),this.selectedDay=oe$2(7),this.isSidebarCollapsed=oe$2(false),this.storageKey="app_state_seller",_8(this.platformId)&&(this.loadFromStorage(),Ag(()=>{let t={userData:this.userData(),createAdData:this.createAdData(),categoryAndSubCategory:this.categoryAndSubCategory(),locations:this.locations(),inputValue:this.inputValue(),storeData:this.storeData(),defaultStore:this.defaultStore(),userStoreList:this.userStoreList(),adData:this.adData(),reviews:this.reviews(),createStoreData:this.createStoreData(),selectedDay:this.selectedDay()};localStorage.setItem(this.storageKey,JSON.stringify(t));}));}loadFromStorage(){let t=localStorage.getItem(this.storageKey);if(t)try{let e=JSON.parse(t);if(e.userData&&this.userData.set(e.userData),e.createAdData&&this.createAdData.set(e.createAdData),e.categoryAndSubCategory&&this.categoryAndSubCategory.set(e.categoryAndSubCategory),e.locations&&this.locations.set(e.locations),e.inputValue&&this.inputValue.set(e.inputValue),e.storeData&&this.storeData.set(e.storeData),e.defaultStore&&this.defaultStore.set(e.defaultStore),e.userStoreList&&this.userStoreList.set(e.userStoreList),e.adData&&this.adData.set(e.adData),e.reviews&&this.reviews.set(e.reviews),e.createStoreData&&this.createStoreData.set(e.createStoreData),e.selectedDay){let a=Number(e.selectedDay);this.selectedDay.set(!isNaN(a)&&a>0?a:7);}}catch{}}setUserData(t){this.userData.set(t);}setCreateAdData(t){this.createAdData.set(t);}setCategoryAndSubcategory(t){this.categoryAndSubCategory.set(t);}setLocations(t){let e=Array.isArray(t)?t:Array.isArray(t?.data)?t.data:[];this.locations.set(e);}setInputValue(t){this.inputValue.set(t);}setStoreData(t){this.storeData.set(t);}setDefaultStore(t){let e=this.defaultStore(),a=e?.id||e?._id,u=t?.id||t?._id;this.defaultStore.set(t),a&&u&&String(a)!==String(u)&&(this.redirectIfInAdCreationOrEdit(),this.redirectIfInSubscriptionSubPage());}redirectIfInAdCreationOrEdit(){if(!this.router)return;let t=this.router.url||"";(t.includes("/ads/create")||t.includes("/ads/edit")||t.includes("/ads/v2/")||t.includes("/funnels/"))&&this.router.navigate(["/ads"]);}redirectIfInSubscriptionSubPage(){if(!this.router)return;let t=this.router.url||"";(t.startsWith("/subscription/")||t.includes("/subscription/plans")||t.includes("/subscription/checkout")||t.includes("/subscription/category-selection")||t.includes("/subscription/success"))&&this.router.navigate(["/subscription"]);}setUserStoreList(t){this.userStoreList.set(t);}setAdData(t){this.adData.set(t);}setReviews(t){this.reviews.set(t);}setCreateStoreData(t){this.createStoreData.set(t);}setSelectedDay(t){let e=Number(t);this.selectedDay.set(!isNaN(e)&&e>0?e:7);}resetState(){this.userData.set(null),this.createAdData.set(null),this.categoryAndSubCategory.set(null),this.locations.set(null),this.inputValue.set(null),this.storeData.set(null),this.defaultStore.set(null),this.userStoreList.set([]),this.adData.set(null),this.reviews.set([]),this.createStoreData.set(null),this.selectedDay.set(7),_8(this.platformId)&&localStorage.removeItem(this.storageKey);}static{this.\u0275fac=function(e){return new(e||r)};}static{this.\u0275prov=S$4({token:r,factory:r.\u0275fac,providedIn:"root"});}}return r})();var S$3=()=>{let n=p$1(b),i=p$1(bt$1);return T$4(n.userStoreList).pipe($e$2(1),B$3(m=>m?.length>0?true:(i.navigate(["/welcome-to-naiya-seller-portal"]).then(),false)))};var O$1=(()=>{class i{constructor(){this.router=p$1(bt$1),this.platformId=p$1(oi),this.STORAGE_KEY="naiya_attribution",this.isBrowser=_8(this.platformId),this.isBrowser&&(this.initTracking(),this.captureAttribution());}initTracking(){this.router.events.pipe(Ue$1(t=>t instanceof Ye$1)).subscribe(()=>{this.captureAttribution();});}captureAttribution(){if(!this.isBrowser)return;let t=new URLSearchParams(window.location.search),r=document.referrer,e=window.location.pathname,n=t.get("gclid")||void 0,o=t.get("fbclid")||void 0,c=t.get("msclkid")||void 0,m=t.get("ttclid")||void 0,d=t.get("campaignId")||t.get("campaign_id")||t.get("campaignid")||t.get("gad_campaignid")||void 0,g=this.inferPaidDefaults({gclid:n,fbclid:o,msclkid:c,ttclid:m}),a={utm_source:t.get("utm_source")?.toLowerCase()||g.utm_source,utm_medium:t.get("utm_medium")?.toLowerCase()||g.utm_medium,utm_campaign:t.get("utm_campaign")||t.get("campaign")||d||void 0,campaignId:d,adGroupId:t.get("adGroupId")||t.get("ad_group_id")||t.get("adgroupid")||void 0,utm_term:t.get("utm_term")||void 0,utm_c
6ontent:t.get("utm_content")||void 0,gclid:n,fbclid:o,msclkid:c,ttclid:m,referrer:r||void 0,landingPath:e,platform:this.getPlatform(),deviceInfo:this.getDeviceInfo(),timestamp:new Date().toISOString()};!Object.keys(a).some(s=>s!=="landingPath"&&s!=="timestamp"&&a[s])&&!r||this.saveAttribution(a);}getPlatform(){return (navigator.userAgentData?.platform||navigator.platform||"web").toLowerCase()}getDeviceInfo(){return {platform:this.getPlatform(),userAgent:navigator.userAgent,language:navigator.language}}inferPaidDefaults(t){return t.gclid?{utm_source:"google",utm_medium:"cpc"}:t.fbclid?{utm_source:"facebook",utm_medium:"paid_social"}:t.ttclid?{utm_source:"tiktok",utm_medium:"paid_social"}:t.msclkid?{utm_source:"bing",utm_medium:"cpc"}:{}}saveAttribution(t){if(!this.isBrowser)return;let e=this.getStoredAttribution()||{};e.firstTouch||(e.firstTouch=t),(Object.keys(t).some(o=>o.startsWith("utm_")||o.endsWith("clid"))||!e.lastTouch)&&(e.lastTouch=t),localStorage.setItem(this.STORAGE_KEY,JSON.stringify(e));}getStoredAttribution(){if(!this.isBrowser)return null;let t=localStorage.getItem(this.STORAGE_KEY);return t?JSON.parse(t):null}getAttributionPayload(){return this.getStoredAttribution()||void 0}clearAttribution(){this.isBrowser&&localStorage.removeItem(this.STORAGE_KEY);}static{this.\u0275fac=function(r){return new(r||i)};}static{this.\u0275prov=S$4({token:i,factory:i.\u0275fac,providedIn:"root"});}}return i})();var a$1={baseURL:"https://api.naiya.ng/",locationUrl:"https://api.naiya.ng/locations",webSocket:"wss://api.naiya.ng/",naiyaFrontend:"https://naiya.ng/",googleClientId:"27909395435-a8u2mv6fpo560ovdp69lv1fcchsv6icn.apps.googleusercontent.com",googleAdsId:"AW-17938380851",googleAdsSignupLabel:"PAuLCOS_2PQbELPw1-lC",googleAdsPurchaseLabel:"Np3qCOe_2PQbELPw1-IC",tiktokPixelCode:"",maxImagesPerAd:20,maxImageSize:15728640,maxVideoSize:104857600,supportedImageFormats:["image/jpeg","image/jpg","image/png"]};
7var T$3=(()=>{class s{constructor(){this.httpClient=p$1(JD),this.attributionService=p$1(O$1),this.platformId=p$1(oi),this.baseURL=a$1.baseURL,this.redirectUrl=null,this.accessToken=oe$2(null),this.refreshToken=oe$2(null),_8(this.platformId)&&(this.accessToken.set(localStorage.getItem("accessToken")),this.refreshToken.set(localStorage.getItem("refreshToken")));}setTokens(t,e){this.accessToken.set(t),this.refreshToken.set(e),_8(this.platformId)&&(localStorage.setItem("accessToken",t),localStorage.setItem("refreshToken",e));}clearTokens(){this.accessToken.set(null),this.refreshToken.set(null),_8(this.platformId)&&(localStorage.removeItem("accessToken"),localStorage.removeItem("refreshToken"));}loginService(t){let e={email:t.email,password:t.password};return this.httpClient.post(`${this.baseURL}auth/login`,e)}registerService(t){let e={name:t.name||t.fullName,email:t.email,password:t.password,phoneNumber:t.phoneNumber,attribution:this.attributionService.getAttributionPayload()};return this.httpClient.post(`${this.baseURL}auth/register`,e)}continueWithGoogle(t){return this.httpClient.post(`${this.baseURL}auth/continueWithGoogle`,{code:t,isFromSellerPortal:true,attribution:this.attributionService.getAttributionPayload()})}refreshTokenReq(t){let e={refreshToken:t};return this.httpClient.post(`${this.baseURL}auth/refresh`,e)}sendForgetPasswordEmail(t){let e=`${this.baseURL}auth/forgetPassword`,u={email:t,isFromSellerPortal:true};return this.httpClient.post(e,u)}resetPassword(t){let e=`${this.baseURL}auth/resetPassword`;return this.httpClient.post(e,t)}getUrl(t){return this.httpClient.get(`${this.baseURL}auth/getUrl/${t}`)}static{this.\u0275fac=function(e){return new(e||s)};}static{this.\u0275prov=S$4({token:s,factory:s.\u0275fac,providedIn:"root"});}}return s})();var N$3=(o,r)=>r.id;function B$2(o,r){o&1&&(Ig(),If(0,"svg",7),uv(1,"path",13),Cf());}function L$3(o,r){o&1&&(Ig(),If(0,"svg",8),uv(1,"path",14),Cf());}function $$2(o,r){o&1&&(Ig(),If(0,"svg",9),uv(1,"path",14),Cf());}function Y$3(o,r){o&1&&(Ig(),If(0,"svg",10),uv(1,"path",14),Cf());}function A$2(o,r){o&1&&(Ig(),If(0,"svg",11),uv(1,"path",15),Cf());}function Q$4(o,r){if(o&1&&(If(0,"div",4)(1,"div",5)(2,"span",6),bT(3,B$2,2,0,":svg:svg",7)(4,L$3,2,0,":svg:svg",8)(5,$$2,2,0,":svg:svg",9)(6,Y$3,2,0,":svg:svg",10)(7,A$2,2,0,":svg:svg",11),Cf(),If(8,"span",12),v_(9),Cf()()()),o&2){let t,n=r.$implicit;c_(n.type),Iv("leaving",n.leaving),Tb(3),ST((t=n.type)==="success"?3:t==="error"?4
7:t==="warning"?5:t==="info"?6:t==="loading"?7:-1),Tb(6),Rv(n.content);}}function q$2(o,r){o&1&&(Ig(),If(0,"svg",7),uv(1,"path",13),Cf());}function H$3(o,r){o&1&&(Ig(),If(0,"svg",8),uv(1,"path",14),Cf());}function J$5(o,r){o&1&&(Ig(),If(0,"svg",9),uv(1,"path",14),Cf());}function K$3(o,r){o&1&&(Ig(),If(0,"svg",10),uv(1,"path",14),Cf());}function U$4(o,r){if(o&1&&(If(0,"span",18),bT(1,q$2,2,0,":svg:svg",7)(2,H$3,2,0,":svg:svg",8)(3,J$5,2,0,":svg:svg",9)(4,K$3,2,0,":svg:svg",10),Cf()),o&2){let t,n=HT().$implicit;Tb(),ST((t=n.type)==="success"?1:t==="error"?2:t==="warning"?3:t==="info"?4:-1);}}function W$5(o,r){if(o&1){let t=PT();If(0,"div",16)(1,"div",17),bT(2,U$4,5,1,"span",18),Cf(),If(3,"div",19)(4,"div",20),v_(5),Cf(),If(6,"div",21),v_(7),Cf()(),If(8,"button",22),pv("click",function(){let e=lg(t).$implicit,i=HT();return dg(i.removeNotification(e.id))}),Ig(),If(9,"svg",23),uv(10,"path",24),Cf()()();}if(o&2){let t=r.$implicit;c_(t.type),Iv("leaving",t.leaving),Tb(2),ST(t.type!=="blank"?2:-1),Tb(3),Rv(t.title),Tb(2),Rv(t.content);}}var G$3=(()=>{class o{constructor(){this.messages=oe$2([]),this.notifications=oe$2([]);}addMessage(t){this.messages.update(n=>[...n,t]),t.duration>0&&setTimeout(()=>{this.removeMessage(t.id);},t.duration);}removeMessage(t){this.messages.update(n=>n.map(e=>e.id===t?m$2(l$1({},e),{leaving:true}):e)),setTimeout(()=>{this.messages.update(n=>n.filter(e=>e.id!==t));},250);}addNotification(t){this.notifications.update(n=>[...n,t]),t.duration>0&&setTimeout(()=>{this.removeNotification(t.id);},t.duration);}removeNotification(t){this.notifications.update(n=>n.map(e=>e.id===t?m$2(l$1({},e),{leaving:true}):e)),setTimeout(()=>{this.notifications.update(n=>n.filter(e=>e.id!==t));},250);}static{this.\u0275fac=function(n){return new(n||o)};}static{this.\u0275cmp=mf({type:o,selectors:[["app-custom-toast-container"]],decls:6,vars:0,consts:[[1,"custom-message-container"],[1,"custom-message-item",3,"leaving","class"],[1,"custom-notification-container"],[1,"custom-notification-item",3,"leaving","class"],[1,"custom-message-item"],[1,"custom-message-content"],[1,"custom-message-icon"],["viewBox","0 0 24 24",1,"svg-success"],["viewBox","0 0 24 24",1,"svg-error"],["viewBox","0 0 24 24",1,"svg-warning"],["viewBox","0 0 24 24",1,"svg-info"],["viewBox","0 0 24 24",1,"svg-loading","spin"],[1,"custom-message-text"],["fill","currentColor","d","M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"],["fill","currentColor","d","M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"],["fill","currentColor","d","M12 4V2C6.48 2 2 6.48 2 12h2c0-4.41 3.59-8 8-8z"],[1,"custom-notification-item"],[1,"custom-notification-left"],[1,"custom-notification-icon"],[1,"custom-notification-content-wrapper"],[1,"custom-notification-title"],[1,"custom-notification-content"],[1,"custom-notification-close",3,"click"],["viewBox","0 0 24 24"],["fill","currentColor","d","M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"]],template:function(n,e){n&1&&(If(0,"div",0),MT(1,Q$4,10,6,"div",1,N$3),Cf(),If(3,"div",2),MT(4,W$5,11,7,"div",3,N$3),Cf()),n&2&&(Tb(),NT(e.messages()),Tb(3),NT(e.notifications()));},styles:[".custom-message-container[_ngcontent-%COMP%]{position:fixed;top:20px;left:50%;transform:translate(-50%);z-index:10000000;display:flex;flex-direction:column;align-items:center;gap:10px;pointer-events:none;font-family:Quicksand,sans-serif}.custom-message-item[_ngcontent-%COMP%]{pointer-events:auto;background:#fff;padding:10px 16px;border-radius:8px;box-shadow:0 4px 12px #00000026;animation:_ngcontent-%COMP%_messageSlideIn .25s cubic-bezier(.215,.61,.355,1) forwards;display:flex;align-items:center;border-left:4px solid transparent}.custom-message-item.leaving[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_messageFadeOut .25s ease forwards}.custom-message-item.success[_ngcontent-%COMP%]{border-left-color:#f90047}.custom-message-item.error[_ngcontent-%COMP%]{border-left-color:#ff4d4f}.custom-message-item.warning[_ngcontent-%COMP%]{border-left-color:#faad14}.custom-message-item.info[_ngcontent-%COMP%]{border-left-color:#1890ff}.custom-message-item.loading[_ngcontent-%COMP%]{border-left-color:#f90047}.custom-message-content[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.custom-message-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;width:16px;height:16px}.custom-message-icon[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{width:100%;height:100%}.custom-message-text[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#1f1f1f}.svg-success[_ngcontent-%COMP%]{color:#f90047}.svg-error[_ngcontent-%COMP%]{color:#ff4d4f}.svg-warning[_ngcontent-%COMP%]{color:#faad14}.svg-info[_ngcontent-%COMP%]{color:#1890ff}.svg-loading[_ngcontent-%COMP%]{color:#f90047}.spin[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_spin 1s linear infinite}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}.custom-notification-container[_ngcontent-%COMP%]{position:fixed;top:24px;right:24px;z-index:10000000;display:flex;flex-direction:column;gap:16px;width:380px;max-width:calc(100vw - 48px);pointer-events:none;font-family:Quicksand,sans-serif}.custom-notification-item[_ngcontent-%COMP%]{pointer-events:auto;background:#fff;padding:16px;border-radius:8px;box-shadow:0 4px 12px #00000026;animation:_ngcontent-%COMP%_notificationSlideIn .25s cubic-bezier(.215,.61,.355,1) forwards;display:flex;position:relative;overflow:hidden;border-left:4px solid transparent}.custom-notification-item.leaving[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_notificationFadeOut .25s ease forwards}.custom-notification-item.success[_ngcontent-%COMP%]{border-left-color:#f90047}.custom-notification-item.error[_ngcontent-%COMP%]{border-left-color:#ff4d4f}.custom-notification-item.warning[_ngcontent-%COMP%]{border-left-color:#faad14}.custom-notification-item.info[_ngcontent-%COMP%]{border-left-color:#1890ff}.custom-notification-item.blank[_ngcontent-%COMP%]{border-left-color:#f90047}.custom-notification-left[_ngcontent-%COMP%]{margin-right:12px;display:flex;align-items:flex-start;margin-top:2px}.custom-notification-icon[_ngcontent-%COMP%]{display:inline-flex;width:22px;height:22px}.custom-notification-icon[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{width:100%;height:100%}.custom-notification-content-wrapper[_ngcontent-%COMP%]{flex:1;padding-right:16px}.custom-notification-title[_ngcontent-%COMP%]{font-size:15px;font-weight:600;color:#1f1f1f;margin-bottom:4px;line-height:1.4}.custom-notification-content[_ngcontent-%COMP%]{font-size:14px;color:#595959;line-height:1.5}.custom-notification-close[_ngcontent-%COMP%]{position:absolute;top:14px;right:14px;background:none;border:none;cursor:pointer;color:#bfbfbf;padding:4px;display:inline-flex;border-radius:4px;transition:color .2s,background-color .2s}.custom-notification-close[_ngcontent-%COMP%]:hover{color:#595959;background-color:#f5f5f5}.custom-notification-close[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{width:14px;
7height:14px}@keyframes _ngcontent-%COMP%_messageSlideIn{0%{transform:translateY(-20px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _ngcontent-%COMP%_messageFadeOut{0%{transform:translateY(0);opacity:1}to{transform:translateY(-20px);opacity:0}}@keyframes _ngcontent-%COMP%_notificationSlideIn{0%{transform:translate(100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes _ngcontent-%COMP%_notificationFadeOut{0%{transform:translate(0);opacity:1;max-height:150px;margin-bottom:16px;padding:16px}to{transform:translate(100%);opacity:0;max-height:0;margin-bottom:0;padding:0;overflow:hidden}}"]});}}return o})();var R$2=(()=>{class o{constructor(){this.appRef=p$1(Ln$1),this.injector=p$1(te$4),this.platformId=p$1(oi),this.containerRef=null;}getContainer(){if(!_8(this.platformId))return null;if(!this.containerRef)try{let t=l2(G$3,{environmentInjector:this.injector});this.appRef.attachView(t.hostView);let n=t.hostView.rootNodes[0];document.body.appendChild(n),this.containerRef=t;}catch{}return this.containerRef?this.containerRef.instance:null}static{this.\u0275fac=function(n){return new(n||o)};}static{this.\u0275prov=S$4({token:o,factory:o.\u0275fac,providedIn:"root"});}}return o})(),rt$3=(()=>{class o{constructor(){this.toastService=p$1(R$2);}generateId(){return Math.random().toString(36).substring(2,9)}success(t,n,e){let i=this.toastService.getContainer();i&&i.addNotification({id:this.generateId(),type:"success",title:t,content:n,duration:e?.nzDuration!==void 0?e.nzDuration:4500});}error(t,n,e){let i=this.toastService.getContainer();i&&i.addNotification({id:this.generateId(),type:"error",title:t,content:n,duration:e?.nzDuration!==void 0?e.nzDuration:4500});}blank(t,n,e){let i=this.toastService.getContainer();i&&i.addNotification({id:this.generateId(),type:"blank",title:t,content:n,duration:e?.nzDuration!==void 0?e.nzDuration:4500});}info(t,n,e){let i=this.toastService.getContainer();i&&i.addNotification({id:this.generateId(),type:"info",title:t,content:n,duration:e?.nzDuration!==void 0?e.nzDuration:4500});}warning(t,n,e){let i=this.toastService.getContainer();i&&i.addNotification({id:this.generateId(),type:"warning",title:t,content:n,duration:e?.nzDuration!==void 0?e.nzDuration:4500});}create(t,n,e,i){let y=this.toastService.getContainer();y&&y.addNotification({id:this.generateId(),type:t,title:n,content:e,duration:i?.nzDuration!==void 0?i.nzDuration:4500});}remove(t){let n=this.toastService.getContainer();n&&t&&n.removeNotification(t);}static{this.\u0275fac=function(n){return new(n||o)};}static{this.\u0275prov=S$4({token:o,factory:o.\u0275fac,providedIn:"root"});}}return o})(),ct$3=(()=>{class o{constructor(){this.toastService=p$1(R$2);}generateId(){return Math.random().toString(36).substring(2,9)}success(t,n){let e=this.toastService.getContainer();e&&e.addMessage({id:this.generateId(),type:"success",content:t,duration:n?.nzDuration!==void 0?n.nzDuration:3e3});}error(t,n){let e=this.toastService.getContainer();e&&e.addMessage({id:this.generateId(),type:"error",content:t,duration:n?.nzDuration!==void 0?n.nzDuration:3e3});}info(t,n){let e=this.toastService.getContainer();e&&e.addMessage({id:this.generateId(),type:"info",content:t,duration:n?.nzDuration!==void 0?n.nzDuration:3e3});}warning(t,n){let e=this.toastService.getContainer();e&&e.addMessage({id:this.generateId(),type:"warning",content:t,duration:n?.nzDuration!==void 0?n.nzDuration:3e3});}loading(t,n){let e=this.toastService.getContainer();e&&e.addMessage({id:this.generateId(),type:"loading",content:t,duration:n?.nzDuration!==void 0?n.nzDuration:3e3});}create(t,n,e){let i=this.toastService.getContainer();i&&i.addMessage({id:this.generateId(),type:t,content:n,duration:e?.nzDuration!==void 0?e.nzDuration:3e3});}remove(t){let n=this.toastService.getContainer();n&&t&&n.removeMessage(t);}static{this.\u0275fac=function(n){return new(n||o)};}static{this.\u0275prov=S$4({token:o,factory:o.\u0275fac,providedIn:"root"});}}return o})();var m=(()=>{class s{constructor(){this.httpClient=p$1(JD),this.attributionService=p$1(O$1),this.baseURL=a$1.baseURL,this.locationUrl=a$1.locationUrl;}createStore(e){let t=m$2(l$1({},e),{attribution:this.attributionService.getAttributionPayload()});return this.httpClient.post(`${this.baseURL}
7store/createStore`,t).pipe(B$3(i=>i.data))}getUsers(){return this.httpClient.get(`${this.baseURL}users/getUser`).pipe(B$3(e=>e.data))}getStore(e){return this.httpClient.get(`${this.baseURL}store/getStoreByIdOrSlug/${e}`).pipe(B$3(t=>t.data))}updateStore(e,t,i="store"){return i=="logo"?this.updateStoreLogo(t,e):i=="banner"?this.updateStoreBanner(t,e):this.httpClient.put(`${this.baseURL}store/updateStore/${t}`,e).pipe(B$3(c=>c.data))}updateStoreLogo(e,t){return this.httpClient.post(`${this.baseURL}store/uploadStoreLogo`,t).pipe(B$3(i=>i.data))}updateStoreBanner(e,t){return this.httpClient.post(`${this.baseURL}store/uploadStoreBanner`,t).pipe(B$3(i=>i.data))}getAllUserStoresByUserId(e){return this.httpClient.get(`${this.baseURL}store/getAllUserStoresByUserId/${e}`).pipe(B$3(t=>t.data))}getAllStatesAndCities(){return this.httpClient.get(`${this.locationUrl}`)}updateReturnPolicy(e,t){return this.httpClient.post(`${this.baseURL}store/${e}/return-policy`,t).pipe(B$3(i=>i.data))}getReturnPolicy(e){return this.httpClient.get(`${this.baseURL}store/${e}/return-policy`).pipe(B$3(t=>t.data))}getPromotionRestrictions(e){return this.httpClient.get(`${this.baseURL}store/${e}/promotion-restrictions`).pipe(B$3(t=>t.data))}getSubscriptionPlanRestrictions(e){return this.httpClient.get(`${this.baseURL}store/${e}/subscription-plan-restrictions`).pipe(B$3(t=>t.data))}static{this.\u0275fac=function(t){return new(t||s)};}static{this.\u0275prov=S$4({token:s,factory:s.\u0275fac,providedIn:"root"});}}return s})();var j$4=(()=>{class e{constructor(){this.appState=p$1(b),this.router=p$1(bt$1),this.notification=p$1(rt$3),this.storeService=p$1(m),this.authService=p$1(T$3);}async postLoginWithGoogleActivities(r,a){this.authService.setTokens(r.data.access_token,r.data.refresh_token);let l=this.appState.userData();this.appState.setUserData(m$2(l$1({},l),{avatar:r.data.avatar}));let i=await Ew(this.storeService.getAllUserStoresByUserId(a).pipe(Yn(v=>{throw v})));i&&i.length>0?(this.appState.setUserStoreList(i),this.appState.setDefaultStore(i[0]),await this.router.navigate(["/"])):(this.appState.setUserStoreList([]),this.appState.setDefaultStore(null),await this.router.navigate(["/create-store"])),this.notification.success("Login Successful","");}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=S$4({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var k$2=(()=>{class o{constructor(){this.platformId=p$1(oi),this.isBrowser=_8(this.platformId),this.pixelCode=a$1.tiktokPixelCode,this.initialized=false;}trackPageView(){if(!this.isBrowser||!this.pixelCode)return;let e=this.initialized;this.ensurePixel(),e&&typeof window.ttq?.page=="function"&&window.ttq.page();}trackCompleteRegistration(e=this.createEventId("signup")){return this.track("CompleteRegistration",{},e),e}trackPurchase(e,t){this.track("Purchase",{value:Number(e||0),currency:"NGN",contents:[{content_id:t,content_type:"product",quantity:1,price:Number(e||0)}]},t);}track(e,t,i){!this.isBrowser||!this.pixelCode||(this.ensurePixel(),typeof window.ttq?.track=="function"&&window.ttq.track(e,this.cleanObject(t),i?{event_id:i}:void 0));}ensurePixel(){if(this.initialized||!this.isBrowser||!this.pixelCode)return;if(document.querySelector(`script[data-tiktok-pixel="${this.pixelCode}"]`)){this.initialized=true;return}let t=window.ttq=window.ttq||[];if(!t.methods){t.methods=["page","track","identify","instances","debug","on","off","once","ready","alias","group","enableCookie","disableCookie"],t.setAndDefer=(i,r)=>{i[r]=(...l)=>{i.push([r,...l]);};};for(let i of t.methods)t.setAndDefer(t,i);}t.load=t.load||(i=>{let r=document.createElement("script");r.async=true,r.src=`https://analytics.tiktok.com/i18n/pixel/events.js?sdkid=${i}&lib=ttq`,r.setAttribute("data-tiktok-pixel",i),document.head.appendChild(r);}),t.load(this.pixelCode),t.page(),this.initialized=true;}createEventId(e){return typeof crypto<"u"&&"randomUUID"in crypto?`${e}_${crypto.randomUUID()}`:`${e}_${Date.now()}_${Math.floor(Math.random()*1e5)}`}cleanObject(e){return Object.entries(e).reduce((t,[i,r])=>(r!=null&&r!==""&&(t[i]=r),t),{})}static{this.\u0275fac=function(t){return new(t||o)};}static{this.\u0275prov=S$4({token:o,factory:o.\u0275fac,providedIn:"root"});}}return o}
7)();
8var Ke$1=(()=>{class n{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i;}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i);}registerOnTouched(e){this.onTouched=e;}registerOnChange(e){this.onChange=e;}setDisabledState(e){this.setProperty("disabled",e);}static \u0275fac=function(i){return new(i||n)(J$6(kn),J$6(st$3))};static \u0275dir=yt$2({type:n})}return n})(),z=(()=>{class n extends Ke$1{static \u0275fac=(()=>{let e;return function(r){return (e||(e=Pm(n)))(r||n)}})();static \u0275dir=yt$2({type:n,features:[ov]})}return n})(),M$1=new v$2("");var At$1={provide:M$1,useExisting:Qs(()=>Je$1),multi:true};function Mt$1(){let n=un$1()?un$1().getUserAgent():"";return /android (\d+)/.test(n.toLowerCase())}var Et=new v$2(""),Je$1=(()=>{class n extends Ke$1{_compositionMode;_composing=false;constructor(e,i,r){super(e,i),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!Mt$1());}writeValue(e){let i=e??"";this.setProperty("value",i);}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e);}_compositionStart(){this._composing=true;}_compositionEnd(e){this._composing=false,this._compositionMode&&this.onChange(e);}static \u0275fac=function(i){return new(i||n)(J$6(kn),J$6(st$3),J$6(Et,8))};static \u0275dir=yt$2({type:n,selectors:[["input","formControlName","",3,"type","checkbox",3,"ngNoCva",""],["textarea","formControlName","",3,"ngNoCva",""],["input","formControl","",3,"type","checkbox",3,"ngNoCva",""],["textarea","formControl","",3,"ngNoCva",""],["input","ngModel","",3,"type","checkbox",3,"ngNoCva",""],["textarea","ngModel","",3,"ngNoCva",""],["","ngDefaultControl",""]],hostBindings:function(i,r){i&1&&hc("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)});},standalone:false,features:[A_([At$1]),ov]})}return n})();function be$3(n){return n==null||Ae$2(n)===0}function Ae$2(n){return n==null?null:Array.isArray(n)||typeof n=="string"?n.length:n instanceof Set?n.size:null}var E$1=new v$2(""),S$2=new v$2(""),Ft$1=/^(?=.{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])?)*$/,_e$3=class _e{static min(t){return wt$1(t)}static max(t){return Nt$1(t)}static required(t){return Qe$1(t)}static requiredTrue(t){return St(t)}static email(t){return It$1(t)}static minLength(t){return Ot$1(t)}static maxLength(t){return xt$1(t)}static pattern(t){return Rt$1(t)}static nullValidator(t){return te$3()}static compose(t){return st$2(t)}static composeAsync(t){return ot$2(t)}};function wt$1(n){return t=>{if(t.value==null||n==null)return null;let e=parseFloat(t.value);return !isNaN(e)&&e<n?{min:{min:n,actual:t.value}}:null}}function Nt$1(n){return t=>{if(t.value==null||n==null)return null;let e=parseFloat(t.value);return !isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}function Qe$1(n){return be$3(n.value)?{required:true}:null}function St(n){return n.value===true?null:{required:true}}function It$1(n){return be$3(n.value)||Ft$1.test(n.value)?null:{email:true}}function Ot$1(n){return t=>{let e=t.value?.length??Ae$2(t.value);return e===null||e===0?null:e<n?{minlength:{requiredLength:n,actualLength:e}}:null}}function xt$1(n){return t=>{let e=t.value?.length??Ae$2(t.value);return e!==null&&e>n?{maxlength:{requiredLength:n,actualLength:e}}:null}}function Rt$1(n){if(!n)return te$3;let t,e;return typeof n=="string"?(e="",n.charAt(0)!=="^"&&(e+="^"),e+=n,n.charAt(n.length-1)!=="$"&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(be$3(i.value))return null;let r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function te$3(n){return null}function et$2(n){return n!=null}function tt$2(n){return Sr$1(n)?K$4(n):n}function nt$1(n){let t={};return n.forEach(e=>{t=e!=null?l$1(l$1({},t),e):t;}),Object.keys(t).length===0?null:t}function it$2(n,t){return t.map(e=>e(n))}function Pt$1(n){return !n.validate}function rt$2(n){return n.map(t=>Pt$1(t)?t:e=>t.validate(e))}function st$2(n){if(!n)return null;let t=n.filter(et$2);return t.length==0?null:function(e){return nt$1(it$2(e,t))}}function Me$3(n){return n!=null?st$2(rt$2(n)):null}function ot$2(n){if(!n)return null;let t=n.filter(et$2);return t.length==0?null:function(e){let i=it$2(e,t).map(tt$2);return Nw(i).pipe(B$3(nt$1))}}function Ee$1(n){return n!=null?ot$2(rt$2(n)):null}function Le$2(n,t){return n===null?[t]:Array.isArray(n)?[...n,t]:[n,t]}function at$2(n){return n._rawValidators}function lt$1(n){return n._rawAsyncValidators}function ye$3(n){return n?Array.isArray(n)?n:[n]:[]}function ne$2(n,t){return Array.isArray(n)?n.includes(t):n===t}function We$1(n,t){let e=ye$3(t);
8return ye$3(n).forEach(r=>{ne$2(e,r)||e.push(r);}),e}function qe$2(n,t){return ye$3(t).filter(e=>!ne$2(n,e))}var ie$2=class ie{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Me$3(this._rawValidators);}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Ee$1(this._rawAsyncValidators);}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t);}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[];}reset(t=void 0){this.control?.reset(t);}hasError(t,e){return this.control?this.control.hasError(t,e):false}getError(t,e){return this.control?this.control.getError(t,e):null}},d$1=class d extends ie$2{name;get formDirective(){return null}get path(){return null}};var U$3="VALID",ee$2="INVALID",P$1="PENDING",H$2="DISABLED",A$1=class A{},re$3=class re extends A$1{value;source;constructor(t,e){super(),this.value=t,this.source=e;}},W$4=class W extends A$1{pristine;source;constructor(t,e){super(),this.pristine=t,this.source=e;}},q$1=class q extends A$1{touched;source;constructor(t,e){super(),this.touched=t,this.source=e;}},k$1=class k extends A$1{status;source;constructor(t,e){super(),this.status=t,this.source=e;}},se$2=class se extends A$1{source;constructor(t){super(),this.source=t;}},N$2=class N extends A$1{source;constructor(t){super(),this.source=t;}};function Fe$2(n){return (ce$2(n)?n.validators:n)||null}function kt$1(n){return Array.isArray(n)?Me$3(n):n||null}function we$3(n,t){return (ce$2(t)?t.asyncValidators:n)||null}function Tt$1(n){return Array.isArray(n)?Ee$1(n):n||null}function ce$2(n){return n!=null&&!Array.isArray(n)&&typeof n=="object"}function ut$2(n,t,e){let i=n.controls;if(!(t?Object.keys(i):i).length)throw new m$1(1e3,"");if(!ct$2(i,e))throw new m$1(1001,"")}function dt$1(n,t,e){n._forEachChild((i,r)=>{if(e[r]===void 0)throw new m$1(-1002,"")});}var T$2=class T{_pendingDirty=false;_hasOwnPendingAsyncValidator=null;_pendingTouched=false;_onCollectionChange=()=>{};_updateOn;_hasRequired=oe$2(false);_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,e){this._assignValidators(t),this._assignAsyncValidators(e);}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t,this._updateHasRequiredValidator();}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t;}get parent(){return this._parent}get status(){return Z$4(this.statusReactive)}set status(t){Z$4(()=>this.statusReactive.set(t));}_status=Ri$1(()=>this.statusReactive());statusReactive=oe$2(void 0);get valid(){return this.status===U$3}get invalid(){return this.status===ee$2}get pending(){return this.status===P$1}get disabled(){return this.status===H$2}get enabled(){return this.status!==H$2}errors;get pristine(){return Z$4(this.pristineReactive)}set pristine(t){Z$4(()=>this.pristineReactive.set(t));}_pristine=Ri$1(()=>this.pristineReactive());pristineReactive=oe$2(true);get dirty(){return !this.pristine}get touched(){return Z$4(this.touchedReactive)}set touched(t){Z$4(()=>this.touchedReactive.set(t));}_touched=Ri$1(()=>this.touchedReactive());touchedReactive=oe$2(false);get untouched(){return !this.touched}_events=new ae$4;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t);}setAsyncValidators(t){this._assignAsyncValidators(t);}addValidators(t){this.setValidators(We$1(t,this._rawValidators));}addAsyncValidators(t){this.setAsyncValidators(We$1(t,this._rawAsyncValidators));}removeValidators(t){this.setValidators(qe$2(t,this._rawValidators));}removeAsyncValidators(t){this.setAsyncValidators(qe$2(t,this._rawAsyncValidators));}hasValidator(t){return ne$2(this._rawValidators,t)}hasAsyncValidator(t){return ne$2(this._rawAsyncValidators,t)}clearValidators(){this.validator=null;}clearAsyncValidators(){this.asyncValidator=null;}markAsTouched(t={}){let e=this.touched===false;this.touched=true;let i=t.sourceControl??this;t.onlySelf||this._parent?.markAsTouched(m$2(l$1({},t),{sourceControl:i})),e&&t.emitEvent!==false&&this._events.next(new q$1(true,i));}
8markAllAsDirty(t={}){this.markAsDirty({onlySelf:true,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(t));}markAllAsTouched(t={}){this.markAsTouched({onlySelf:true,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(t));}markAsUntouched(t={}){let e=this.touched===true;this.touched=false,this._pendingTouched=false;let i=t.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:true,emitEvent:t.emitEvent,sourceControl:i});}),t.onlySelf||this._parent?._updateTouched(t,i),e&&t.emitEvent!==false&&this._events.next(new q$1(false,i));}markAsDirty(t={}){let e=this.pristine===true;this.pristine=false;let i=t.sourceControl??this;t.onlySelf||this._parent?.markAsDirty(m$2(l$1({},t),{sourceControl:i})),e&&t.emitEvent!==false&&this._events.next(new W$4(false,i));}markAsPristine(t={}){let e=this.pristine===false;this.pristine=true,this._pendingDirty=false;let i=t.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:true,emitEvent:t.emitEvent});}),t.onlySelf||this._parent?._updatePristine(t,i),e&&t.emitEvent!==false&&this._events.next(new W$4(true,i));}markAsPending(t={}){this.status=P$1;let e=t.sourceControl??this;t.emitEvent!==false&&(this._events.next(new k$1(this.status,e)),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.markAsPending(m$2(l$1({},t),{sourceControl:e}));}disable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=H$2,this.errors=null,this._forEachChild(r=>{r.disable(m$2(l$1({},t),{onlySelf:true}));}),this._updateValue();let i=t.sourceControl??this;t.emitEvent!==false&&(this._events.next(new re$3(this.value,i)),this._events.next(new k$1(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(m$2(l$1({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(true));}enable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=U$3,this._forEachChild(i=>{i.enable(m$2(l$1({},t),{onlySelf:true}));}),this.updateValueAndValidity({onlySelf:true,emitEvent:t.emitEvent}),this._updateAncestors(m$2(l$1({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(false));}_updateAncestors(t,e){t.onlySelf||(this._parent?.updateValueAndValidity(t),t.skipPristineCheck||this._parent?._updatePristine({},e),this._parent?._updateTouched({},e));}setParent(t){this._parent=t;}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===U$3||this.status===P$1)&&this._runAsyncValidator(i,t.emitEvent);}let e=t.sourceControl??this;t.emitEvent!==false&&(this._events.next(new re$3(this.value,e)),this._events.next(new k$1(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.updateValueAndValidity(m$2(l$1({},t),{sourceControl:e}));}_updateTreeValidity(t={emitEvent:true}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:true,emitEvent:t.emitEvent});}_setInitialStatus(){this.status=this._allControlsDisabled()?H$2:U$3;}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,e){if(this.asyncValidator){this.status=P$1,this._hasOwnPendingAsyncValidator={emitEvent:e!==false,shouldHaveEmitted:t!==false};let i=tt$2(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:t});});}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??false;return this._hasOwnPendingAsyncValidator=null,t}return  false}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(e.emitEvent!==false,this,e.shouldHaveEmitted);}get(t){let e=t;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){let i=e?this.get(e):this;return i?.errors?i.errors[t]:null}hasError(t,e){return !!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,e,i){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||i)&&this._events.next(new k$1(this.status,e)),this._parent&&this._parent._updateControlsErrors(t,e,i);}_initObservables(){this.valueChanges=new Se$4,this.statusChanges=new Se$4;}_calculateStatus(){return this._allControlsDisabled()?H$2:this.errors?ee$2:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(P$1)?P$1:this._anyControlsHaveStatus(ee$2)?ee$2:U$3}
8_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,e){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,t.onlySelf||this._parent?._updatePristine(t,e),r&&this._events.next(new W$4(this.pristine,e));}_updateTouched(t={},e){this.touched=this._anyControlsTouched(),this._events.next(new q$1(this.touched,e)),t.onlySelf||this._parent?._updateTouched(t,e);}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t;}_setUpdateStrategy(t){ce$2(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn);}_parentMarkedDirty(t){return !t&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=kt$1(this._rawValidators),this._updateHasRequiredValidator();}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=Tt$1(this._rawAsyncValidators);}_updateHasRequiredValidator(){Z$4(()=>this._hasRequired.set(this.hasValidator(_e$3.required)));}};function ct$2(n,t){return Object.hasOwn(n,t)}function jt$1(n){return n.tagName==="INPUT"||n.tagName==="SELECT"||n.tagName==="TEXTAREA"}function Bt$1(n,t,e,i){switch(e){case "name":n.setAttribute(t,e,i);break;case "disabled":case "readonly":case "required":i?n.setAttribute(t,e,""):n.removeAttribute(t,e);break;case "max":case "min":case "minLength":case "maxLength":i!==void 0?n.setAttribute(t,e,i.toString()):n.removeAttribute(t,e);break}}var Ce$2=class Ce{kind;context;control;message;constructor({kind:t,context:e,control:i}){this.kind=t,this.context=e,this.control=i;}};var Gt$1=(()=>{class n{_validator=te$3;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):te$3,this._onChange?.();}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e;}enabled(e){return e!=null}static \u0275fac=function(i){return new(i||n)};static \u0275dir=yt$2({type:n,features:[Lt$2]})}return n})();var Ut$1={provide:E$1,useExisting:Qs(()=>ht$2),multi:true};var ht$2=(()=>{class n extends Gt$1{required;inputName="required";normalizeInput=cn$1;createValidator=e=>Qe$1;enabled(e){return e}static \u0275fac=(()=>{let e;return function(r){return (e||(e=Pm(n)))(r||n)}})();static \u0275dir=yt$2({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,r){i&2&&dc("required",r._enabled?"":null);},inputs:{required:"required"},standalone:false,features:[A_([Ut$1]),ov]})}return n})();var Ht$1=new v$2(""),I$1=new v$2("",{factory:()=>Z$3}),Z$3="always";function he$2(n,t){return [...t.path,n]}function oe$1(n,t,e=Z$3){Ne$2(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||e==="always")&&t.valueAccessor.setDisabledState?.(n.disabled),Wt$1(n,t),$t$1(n,t),qt$1(n,t),Lt$1(n,t);}function ae$3(n,t,e=true){let i=()=>{};t?.valueAccessor?.registerOnChange(i),t?.valueAccessor?.registerOnTouched(i),ue$1(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}));}function le$1(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t);});}function Lt$1(n,t){if(t.valueAccessor.setDisabledState){let e=i=>{t.valueAccessor.setDisabledState(i);};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e);});}}function Ne$2(n,t){let e=at$2(n);t.validator!==null?n.setValidators(Le$2(e,t.validator)):typeof e=="function"&&n.setValidators([e]);let i=lt$1(n);t.asyncValidator!==null?n.setAsyncValidators(Le$2(i,t.asyncValidator)):typeof i=="function"&&n.setAsyncValidators([i]);let r=()=>n.updateValueAndValidity();le$1(t._rawValidators,r),le$1(t._rawAsyncValidators,r);}function ue$1(n,t){let e=false;if(n!==null){if(t.validator!==null){let r=at$2(n);if(Array.isArray(r)&&r.length>0){let s=r.filter(a=>a!==t.validator);s.length!==r.length&&(e=true,n.setValidators(s));}}if(t.asyncValidator!==null){let r=lt$1(n);if(Array.isArray(r)&&r.length>0){let s=r.filter(a=>a!==t.asyncValidator);s.length!==r.length&&(e=true,n.setAsyncValidators(s));}}}let i=()=>{};return le$1(t._rawValidators,i),le$1(t._rawAsyncValidators,i),e}function Wt$1(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=true,n._pendingDirty=true,n.updateOn==="change"&&ft$2(n,t);});}function qt$1(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=true,n.updateOn==="blur"&&n._pendingChange&&ft$2(n,t),n.updateOn!=="submit"&&n.markAsTouched();});}function ft$2(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:false}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=false;}function $t$1(n,t){let e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i);};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e);});}function gt$1(n,t){Ne$2(n,t);}function zt$1(n,t){return ue$1(n,t)}function Se$3(n,t){if(!n.hasOwnProperty("model"))return  false;let e=n.model;return e.isFirstChange()?true:!Object.is(t,e.currentValue)}function Zt(n){return Object.getPrototypeOf(n.constructor)===z}
8function pt$1(n,t){n._syncPendingControls(),t.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=false);});}function Xt(n,t){if(!t)return null;let e,i,r;return t.forEach(s=>{s.constructor===Je$1?e=s:Zt(s)?i=s:r=s;}),r||i||e||null}function Yt$1(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1);}var Ie$2={provide:Ht$1,useFactory:()=>{let n=p$1(v$1,{self:true});return {setParseErrors:t=>{n.setParseErrorSource(t);},set onReset(t){n.onReset=t;}}}},v$1=class v extends ie$2{_parent=null;name=null;valueAccessor=null;isCustomControlBased=false;userOnReset;resetSubscription;set onReset(t){this.userOnReset=t,this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.control&&(this.resetSubscription=this.control.events.subscribe(e=>{e instanceof N$2&&this.control&&this.userOnReset?.(this.control.value);}),this.subscription?.add(this.resetSubscription));}isNativeFormElement=false;rawValueAccessors;_selectedValueAccessor=null;get selectedValueAccessor(){return this._selectedValueAccessor??=Xt(this,this.rawValueAccessors)}parseErrorsValidator=null;renderer;injector;requiredValidatorViaDi;subscription;customControlBindings=null;constructor(t,e,i){super(),this.injector=t,this.renderer=e,this.rawValueAccessors=i,this.injector?.get(ke$2)?.onDestroy(()=>{this.removeParseErrorsValidator(this.control),this.subscription?.unsubscribe();});}setupCustomControl(){this.subscription?.unsubscribe();let t=this.injector?.get(Fn);if(!this.control||!t)return;let e=t.markForCheck.bind(t);this.subscription=new ie$3,this.subscription.add(this.control.valueChanges.subscribe(e)),this.subscription.add(this.control.statusChanges.subscribe(e)),this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.userOnReset&&(this.resetSubscription=this.control.events.subscribe(i=>{i instanceof N$2&&this.control&&this.userOnReset?.(this.control.value);}),this.subscription.add(this.resetSubscription)),this.parseErrorsValidator&&this.control.addValidators(this.parseErrorsValidator);}ngControlCreate(t){!t.nativeElement.hasAttribute?.("ngNoCva")&&(this.rawValueAccessors&&this.rawValueAccessors.length>0||this.valueAccessor!==null)||!t.customControl||(this.isCustomControlBased=true,t.listenToCustomControlModel(r=>{this.control?.setValue(r,{emitModelToViewChange:false}),this.control?.markAsDirty(),this.viewToModelUpdate(r);}),t.listenToCustomControlOutput("touch",()=>{this.control?.markAsTouched();}),this.customControlBindings={},this.isNativeFormElement=jt$1(t.nativeElement),this.requiredValidatorViaDi=this._rawValidators.find(r=>r instanceof ht$2));}ngControlUpdate(t,e){if(!this.isCustomControlBased)return;let i=this.control,r=this.customControlBindings;Object.is(r.value,i.value)||(r.value=i.value,t.setCustomControlModelInput(i.value)),this.bindControlProperty(t,r,"touched",i.touched),this.bindControlProperty(t,r,"dirty",i.dirty),this.bindControlProperty(t,r,"valid",i.valid),this.bindControlProperty(t,r,"invalid",i.invalid),this.bindControlProperty(t,r,"pending",i.pending),this.bindControlProperty(t,r,"disabled",i.disabled),this.shouldBindRequired&&this.bindControlProperty(t,r,"required",this.isRequired);let s=i.errors;if(r.errors!==s){r.errors=s;let a=this._convertErrors(s);t.setInputOnDirectives("errors",a);}}get isRequired(){return (this.requiredValidatorViaDi?._enabled||this.control?._hasRequired())??false}get shouldBindRequired(){return  true}bindControlProperty(t,e,i,r){if(e[i]===r)return;e[i]=r;let s=t.setInputOnDirectives(i,r);this.isNativeFormElement&&!s&&(i==="disabled"||i==="required")&&this.renderer&&Bt$1(this.renderer,t.nativeElement,i,r);}_convertErrors(t){if(t===null)return [];let e=this.control;return Object.entries(t).map(([i,r])=>new Ce$2({context:r,kind:i,control:e}))}setParseErrorSource(t){if(t===void 0)return;let e=null,i=Ri$1(()=>{let r=t();return r.length===0?null:r.reduce((s,a)=>(s[a.kind]=a,s),{})});this.parseErrorsValidator=(()=>e).bind(this),Ag(()=>{e=i(),this.control?.updateValueAndValidity({emitEvent:false});},{injector:this.injector});}removeParseErrorsValidator(t){this.parseErrorsValidator&&(t?.removeValidators(this.parseErrorsValidator),t?.updateValueAndValidity({emitEvent:false}));}},de$1=class de{_cd;constructor(t){this._cd=t;}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return !!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return !!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}
8get isInvalid(){return !!this._cd?.control?.invalid}get isPending(){return !!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}};var jn=(()=>{class n extends de$1{constructor(e){super(e);}static \u0275fac=function(i){return new(i||n)(J$6(v$1,2))};static \u0275dir=yt$2({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&Iv("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending);},standalone:false,features:[ov]})}return n})(),Bn=(()=>{class n extends de$1{constructor(e){super(e);}static \u0275fac=function(i){return new(i||n)(J$6(d$1,10))};static \u0275dir=yt$2({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){i&2&&Iv("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted);},standalone:false,features:[ov]})}return n})(),j$3=class j extends T$2{constructor(t,e,i){super(Fe$2(e),we$3(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:true,emitEvent:!!this.asyncValidator});}controls;registerControl(t,e){let i=this._find(t);return i||(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange();}removeControl(t,e={}){let i=this._find(t);i&&i._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange();}setControl(t,e,i={}){let r=this._find(t);r&&r._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange();}contains(t){return this._find(t)?.enabled===true}setValue(t,e={}){Z$4(()=>{dt$1(this,true,t),Object.keys(t).forEach(i=>{ut$2(this,true,i),this.controls[i].setValue(t[i],{onlySelf:true,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e);});}patchValue(t,e={}){t!=null&&(Object.keys(t).forEach(i=>{let r=this._find(i);r&&r.patchValue(t[i],{onlySelf:true,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e));}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t?t[r]:null,m$2(l$1({},e),{onlySelf:true}));}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==false&&this._events.next(new N$2(this));}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(false,(e,i)=>i._syncPendingControls()?true:e);return t&&this.updateValueAndValidity({onlySelf:true}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&t(i,e);});}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange);});}_updateValue(){this.value=this._reduceValue();}_anyControls(t){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return  true;return  false}_reduceValue(){let t={};return this._reduceChildren(t,(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,s)=>{i=e(i,r,s);}),i}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return  false;return Object.keys(this.controls).length>0||this.disabled}_find(t){return ct$2(this.controls,t)?this.controls[t]:null}};var Ve$2=class Ve extends j$3{};var Kt$1={provide:d$1,useExisting:Qs(()=>Jt$1)},L$2=Promise.resolve(),Jt$1=(()=>{class n extends d$1{callSetDisabledState;get submitted(){return Z$4(this.submittedReactive)}_submitted=Ri$1(()=>this.submittedReactive());submittedReactive=oe$2(false);_directives=new Set;form;ngSubmit=new Se$4;options;constructor(e,i,r){super(),this.callSetDisabledState=r,this.form=new j$3({},Me$3(e),Ee$1(i));}ngAfterViewInit(){this._setUpdateStrategy();}get formDirective(){return this}get control(){return this.form}get path(){return []}get controls(){return this.form.controls}addControl(e){L$2.then(()=>{let i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),e._setupWithForm(this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:false}),this._directives.add(e);});}getControl(e){return this.form.get(e.path)}
8removeControl(e){L$2.then(()=>{this._findContainer(e.path)?.removeControl(e.name),this._directives.delete(e);});}addFormGroup(e){L$2.then(()=>{let i=this._findContainer(e.path),r=new j$3({});gt$1(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:false});});}removeFormGroup(e){L$2.then(()=>{this._findContainer(e.path)?.removeControl?.(e.name);});}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){L$2.then(()=>{this.form.get(e.path).setValue(i);});}setValue(e){this.control.setValue(e);}onSubmit(e){return this.submittedReactive.set(true),pt$1(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new se$2(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm();}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(false);}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn);}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(i){return new(i||n)(J$6(E$1,10),J$6(S$2,10),J$6(I$1,8))};static \u0275dir=yt$2({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,r){i&1&&hc("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()});},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:false,features:[A_([Kt$1]),ov]})}return n})();function $e$1(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1);}function ze$2(n){return typeof n=="object"&&n!==null&&Object.keys(n).length===2&&"value"in n&&"disabled"in n}var $$1=class $ extends T$2{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=false;constructor(t=null,e,i){super(Fe$2(e),we$3(i,e)),this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:true,emitEvent:!!this.asyncValidator}),ce$2(e)&&(e.nonNullable||e.initialValueIsDefault)&&(ze$2(t)?this.defaultValue=t.value:this.defaultValue=t);}setValue(t,e={}){Z$4(()=>{this.value=this._pendingValue=t,this._onChange.length&&e.emitModelToViewChange!==false&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==false)),this.updateValueAndValidity(e);});}patchValue(t,e={}){this.setValue(t,e);}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),e.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=false,e?.emitEvent!==false&&this._events.next(new N$2(this));}_updateValue(){}_anyControls(t){return  false}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t);}_unregisterOnChange(t){$e$1(this._onChange,t);}registerOnDisabledChange(t){this._onDisabledChange.push(t);}_unregisterOnDisabledChange(t){$e$1(this._onDisabledChange,t);}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:true,emitModelToViewChange:false}),true):false}_applyFormState(t){ze$2(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:true,emitEvent:false}):this.enable({onlySelf:true,emitEvent:false})):this.value=this._pendingValue=t;}};var Qt$1=n=>n instanceof $$1,en=(()=>{class n extends d$1{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this);}ngOnDestroy(){this.formDirective?.removeFormGroup(this);}get control(){return this.formDirective.getFormGroup(this)}get path(){return he$2(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let e;return function(r){return (e||(e=Pm(n)))(r||n)}})();static \u0275dir=yt$2({type:n,standalone:false,features:[ov]})}return n})();var tn={provide:v$1,useExisting:Qs(()=>nn)},Ze$2=Promise.resolve(),nn=(()=>{class n extends v$1{_changeDetectorRef;callSetDisabledState;control=new $$1;static ngAcceptInputType_isDisabled;_registered=false;viewModel;name="";isDisabled;model;options;update=new Se$4;constructor(e,i,r,s,a,g,_,B){super(_,B,s),this._changeDetectorRef=a,this.callSetDisabledState=g,this._parent=e,this._setValidators(i),this._setAsyncValidators(r);}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)});}this._setUpControl();}"isDisabled"in e&&this._updateDisabled(e),Se$3(e,this.viewModel)&&(this._updateV
8alue(this.model),this.viewModel=this.model);}ngOnDestroy(){this.formDirective?.removeControl(this);}\u0275ngControlCreate(e){super.ngControlCreate(e);}\u0275ngControlUpdate(e){super.ngControlUpdate(e,false);}get shouldBindRequired(){return  false}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=true;}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn);}_isStandalone(){return !this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,oe$1(this.control,this,this.callSetDisabledState)),this.control.updateValueAndValidity({emitEvent:false});}_setupWithForm(e){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,oe$1(this.control,this,e));}_checkForErrors(){this._checkName();}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name;}_updateValue(e){Ze$2.then(()=>{this.control.setValue(e,{emitViewToModelChange:false}),this._changeDetectorRef?.markForCheck();});}_updateDisabled(e){let i=e.isDisabled.currentValue,r=i!==0&&cn$1(i);Ze$2.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck();});}_getPath(e){return this._parent?he$2(e,this._parent):[e]}static \u0275fac=function(i){return new(i||n)(J$6(d$1,9),J$6(E$1,10),J$6(S$2,10),J$6(M$1,10),J$6(Fn,8),J$6(I$1,8),J$6(Ie$3,8),J$6(kn,8))};static \u0275dir=yt$2({type:n,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:false,features:[A_([tn,Ie$2]),ov,Lt$2,dT(null)]})}return n})();var Un=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275dir=yt$2({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:false})}return n})(),rn={provide:M$1,useExisting:Qs(()=>sn),multi:true},sn=(()=>{class n extends z{writeValue(e){let i=e??"";this.setProperty("value",i);}registerOnChange(e){this.onChange=i=>{e(i==""?null:parseFloat(i));};}static \u0275fac=(()=>{let e;return function(r){return (e||(e=Pm(n)))(r||n)}})();static \u0275dir=yt$2({type:n,selectors:[["input","type","number","formControlName","",3,"ngNoCva",""],["input","type","number","formControl","",3,"ngNoCva",""],["input","type","number","ngModel","",3,"ngNoCva",""]],hostBindings:function(i,r){i&1&&hc("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()});},standalone:false,features:[A_([rn]),ov]})}return n})(),on={provide:M$1,useExisting:Qs(()=>ln),multi:true};var an=(()=>{class n{_accessors=[];add(e,i){this._accessors.push([e,i]);}remove(e){for(let i=this._accessors.length-1;i>=0;--i)if(this._accessors[i][1]===e){this._accessors.splice(i,1);return}}select(e){this._accessors.forEach(i=>{this._isSameGroup(i,e)&&i[1]!==e&&i[1].fireUncheck(e.value);});}_isSameGroup(e,i){return e[0].control?e[0]._parent===i._control._parent&&e[1].name===i.name:false}static \u0275fac=function(i){return new(i||n)};static \u0275prov=W$6({token:n,factory:n.\u0275fac})}return n})(),ln=(()=>{class n extends z{_registry;_injector;_state;_control;_fn;setDisabledStateFired=false;onChange=()=>{};name;formControlName;value;callSetDisabledState=p$1(I$1,{optional:true})??Z$3;constructor(e,i,r,s){super(e,i),this._registry=r,this._injector=s;}ngOnInit(){this._control=this._injector.get(v$1),this._checkName(),this._registry.add(this._control,this);}ngOnDestroy(){this._registry.remove(this);}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state);}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this);};}setDisabledState(e){(this.setDisabledStateFired||e||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",e),this.setDisabledStateFired=true;}fireUncheck(e){this.writeValue(e);}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName);}static \u0275fac=function(i){return new(i||n)(J$6(kn),J$6(st$3),J$6(an),J$6(Ie$3))};static \u0275dir=yt$2({type:n,selectors:[["input","type","radio","formControlName","",3,"ngNoCva",""],["input","type","radio","formControl","",3,"ngNoCva",""],["input","type","radio","ngModel","",3,"ngNoCva",""]],hostBindings:function(i,r){i&1&&hc("change",function(){return r.onChange()})("blur",function(){return r.onTouched()});},inputs:{name:"name",formControlName:"formControlName",value:"value"},standalone:false,features:[A_([on]),ov]})}return n})();var De$2=class De extends T$2{constructor(t,e,i){super(Fe$2(e),we$3
8(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:true,emitEvent:!!this.asyncValidator});}controls;at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){Array.isArray(t)?t.forEach(i=>{this.controls.push(i),this._registerControl(i);}):(this.controls.push(t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange();}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent});}removeAt(t,e={}){let i=this._adjustIndex(t);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent});}setControl(t,e,i={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange();}get length(){return this.controls.length}setValue(t,e={}){Z$4(()=>{dt$1(this,false,t),t.forEach((i,r)=>{ut$2(this,false,r),this.at(r).setValue(i,{onlySelf:true,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e);});}patchValue(t,e={}){t!=null&&(t.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:true,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e));}reset(t=[],e={}){this._forEachChild((i,r)=>{i.reset(t[r],m$2(l$1({},e),{onlySelf:true}));}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==false&&this._events.next(new N$2(this));}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}));}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,i)=>i._syncPendingControls()?true:e,false);return t&&this.updateValueAndValidity({onlySelf:true}),t}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i);});}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value);}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t));}_allControlsDisabled(){for(let t of this.controls)if(t.enabled)return  false;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange);}_find(t){return this.at(t)??null}};var mt$1=(()=>{class n extends d$1{callSetDisabledState;get submitted(){return Z$4(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e);}_submitted=Ri$1(()=>this._submittedReactive());_submittedReactive=oe$2(false);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];constructor(e,i,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(i);}ngOnChanges(e){this.onChanges(e);}ngOnDestroy(){this.onDestroy();}onChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form);}onDestroy(){this.form&&(ue$1(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}));}get formDirective(){return this}get path(){return []}addControl(e){let i=this.form.get(e.path);return e._setupWithForm(i,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:false}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}
8removeControl(e){ae$3(e.control||null,e,false),Yt$1(this.directives,e);}addFormGroup(e){this._setUpFormContainer(e);}removeFormGroup(e){this._cleanUpFormContainer(e);}getFormGroup(e){return this.form.get(e.path)}getFormArray(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e);}removeFormArray(e){this._cleanUpFormContainer(e);}updateModel(e,i){this.form.get(e.path).setValue(i);}onReset(){this.resetForm();}resetForm(e=void 0,i={}){this.form.reset(e,i),this._submittedReactive.set(false);}onSubmit(e){return this.submitted=true,pt$1(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new se$2(this.control)),e?.target?.method==="dialog"}_updateDomValue(){this.directives.forEach(e=>{let i=e.control,r=this.form.get(e.path);i!==r&&(ae$3(i||null,e),Qt$1(r)&&e._setupWithForm(r,this.callSetDisabledState));}),this.form._updateTreeValidity({emitEvent:false});}_setUpFormContainer(e){let i=this.form.get(e.path);gt$1(i,e),i.updateValueAndValidity({emitEvent:false});}_cleanUpFormContainer(e){let i=this.form?.get(e.path);i&&zt$1(i,e)&&i.updateValueAndValidity({emitEvent:false});}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm?._registerOnCollectionChange(()=>{});}_updateValidators(){Ne$2(this.form,this),this._oldForm&&ue$1(this._oldForm,this);}_checkFormPresent(){this.form;}static \u0275fac=function(i){return new(i||n)(J$6(E$1,10),J$6(S$2,10),J$6(I$1,8))};static \u0275dir=yt$2({type:n,features:[ov,Lt$2]})}return n})();var Oe$3=new v$2(""),un={provide:v$1,useExisting:Qs(()=>dn)},dn=(()=>{class n extends v$1{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new Se$4;static _ngModelWarningSentOnce=false;_ngModelWarningSent=false;constructor(e,i,r,s,a,g,_){super(_,g,r),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(i);}ngOnChanges(e){if(this._isControlChanged(e)){let i=e.form.previousValue;i&&(ae$3(i,this,false),this.removeParseErrorsValidator(i)),this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,oe$1(this.form,this,this.callSetDisabledState)),this.form.updateValueAndValidity({emitEvent:false});}Se$3(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model);}ngOnDestroy(){this.form&&ae$3(this.form,this,false);}get path(){return []}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e);}_isControlChanged(e){return e.hasOwnProperty("form")}\u0275ngControlCreate(e){super.ngControlCreate(e);}\u0275ngControlUpdate(e){super.ngControlUpdate(e,true);}static \u0275fac=function(i){return new(i||n)(J$6(E$1,10),J$6(S$2,10),J$6(M$1,10),J$6(Oe$3,8),J$6(I$1,8),J$6(kn,8),J$6(Ie$3,8))};static \u0275dir=yt$2({type:n,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:false,features:[A_([un,Ie$2]),ov,Lt$2,dT(null)]})}return n})(),cn={provide:d$1,useExisting:Qs(()=>vt$1)},vt$1=(()=>{class n extends en{name=null;constructor(e,i,r){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(r);}_checkParentType(){yt$1(this._parent);}static \u0275fac=function(i){return new(i||n)(J$6(d$1,13),J$6(E$1,10),J$6(S$2,10))};static \u0275dir=yt$2({type:n,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:false,features:[A_([cn]),ov]})}return n})(),hn={provide:d$1,useExisting:Qs(()=>_t)},_t=(()=>{class n extends d$1{_parent;name=null;constructor(e,i,r){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(r);}ngOnInit(){yt$1(this._parent),this.formDirective.addFormArray(this);}ngOnDestroy(){this.formDirective?.removeFormArray(this);}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return he$2(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(i){return new(i||n)(J$6(d$1,13),J$6(E$1,10),J$6(S$2,10))};static \u0275dir=yt$2({type:n,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:false,features:[A_([hn]),ov]})}return n})();function yt$1(n){return !(n instanceof vt$1)&&!(n instanceof mt$1)&&!(n instanceof _t)}var fn={provide:v$1,useExisting:Qs(()=>gn)},gn=(()=>{class n extends v$1{_ngModelWarningConfig;_added=false;viewModel;control;name=null;set isDisabled(e){}model;update=new Se$4;static _ngModelWarningSentOnce=false;_ngModelWarningSent=false;constructor(e,i,r,s,a,g,_){super(_,g,s),this._ngModelWarningConfig=a,this._parent=e,this._setValidators(i),this._setAsyncValidators(r);}
8_setupWithForm(e,i){this.control=e,this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,oe$1(e,this,i));}ngOnChanges(e){this._added||this._setUpControl(),Se$3(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model));}ngOnDestroy(){this.formDirective?.removeControl(this);}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e);}get path(){return he$2(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=true;}\u0275ngControlCreate(e){super.ngControlCreate(e);}\u0275ngControlUpdate(e){this.isCustomControlBased&&(this._added||this._setUpControl(),super.ngControlUpdate(e,true));}static \u0275fac=function(i){return new(i||n)(J$6(d$1,13),J$6(E$1,10),J$6(S$2,10),J$6(M$1,10),J$6(Oe$3,8),J$6(kn,8),J$6(Ie$3,8))};static \u0275dir=yt$2({type:n,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:false,features:[A_([fn,Ie$2]),ov,Lt$2,dT(null)]})}return n})();var pn={provide:d$1,useExisting:Qs(()=>mn)},mn=(()=>{class n extends mt$1{form=null;ngSubmit=new Se$4;get control(){return this.form}static \u0275fac=(()=>{let e;return function(r){return (e||(e=Pm(n)))(r||n)}})();static \u0275dir=yt$2({type:n,selectors:[["","formGroup",""]],hostBindings:function(i,r){i&1&&hc("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()});},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:false,features:[A_([pn]),ov]})}return n})(),vn={provide:M$1,useExisting:Qs(()=>Vt$1),multi:true};function Ct$1(n,t){return n==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${n}: ${t}`.slice(0,50))}function _n(n){return n.split(":")[0]}var Vt$1=(()=>{class n extends z{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e;}_compareWith=Object.is;appRefInjector=p$1(Ln$1).injector;destroyRef=p$1(ke$2);cdr=p$1(Fn);_queuedWrite=false;_writeValueAfterRender(){this._queuedWrite||this.appRefInjector.destroyed||(this._queuedWrite=true,Xa({write:()=>{this.destroyRef.destroyed||(this._queuedWrite=false,this.writeValue(this.value));}},{injector:this.appRefInjector}));}writeValue(e){this.cdr.markForCheck(),this.value=e;let i=this._getOptionId(e),r=Ct$1(i,e);this.setProperty("value",r);}registerOnChange(e){this.onChange=i=>{this.value=this._getOptionValue(i),e(this.value);};}_registerOption(){return (this._idCounter++).toString()}_getOptionId(e){for(let i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i),e))return i;return null}_getOptionValue(e){let i=_n(e);return this._optionMap.has(i)?this._optionMap.get(i):e}static \u0275fac=(()=>{let e;return function(r){return (e||(e=Pm(n)))(r||n)}})();static \u0275dir=yt$2({type:n,selectors:[["select","formControlName","",3,"multiple","",3,"ngNoCva",""],["select","formControl","",3,"multiple","",3,"ngNoCva",""],["select","ngModel","",3,"multiple","",3,"ngNoCva",""]],hostBindings:function(i,r){i&1&&hc("change",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()});},inputs:{compareWith:"compareWith"},standalone:false,features:[A_([vn]),ov]})}return n})(),Hn=(()=>{class n{_element;_renderer;_select;id;constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption());}set ngValue(e){this._select!=null&&(this._select._optionMap.set(this.id,e),this._setElementValue(Ct$1(this.id,e)),this._select._writeValueAfterRender());}set value(e){this._setElementValue(e),this._select?._writeValueAfterRender();}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e);}ngOnDestroy(){this._select?._optionMap.delete(this.id),this._select?._writeValueAfterRender();}static \u0275fac=function(i){return new(i||n)(J$6(st$3),J$6(kn),J$6(Vt$1,9))};static \u0275dir=yt$2({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:false})}return n})(),yn={provide:M$1,useExisting:Qs(()=>Dt$1),multi:true};function Xe$2(n,t){return n==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${n}: ${t}`.slice(0,50))}function Cn(n){return n.split(":")[0]}var Dt$1=(()=>{class n extends z{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e;}_compareWith=Object.is;writeValue(e){this.value=e;let i;if(Array.isArray(e)){let r=e.map(s=>this._getOptionId(s));i=(s,a)=>{s._setSelected(r.indexOf(a)>-1);};}else i=r=>{r._setSelected(false);};
8this._optionMap.forEach(i);}registerOnChange(e){this.onChange=i=>{let r=[],s=i.selectedOptions;if(s!==void 0){let a=s;for(let g=0;g<a.length;g++){let _=a[g],B=this._getOptionValue(_.value);r.push(B);}}else {let a=i.options;for(let g=0;g<a.length;g++){let _=a[g];if(_.selected){let B=this._getOptionValue(_.value);r.push(B);}}}this.value=r,e(r);};}_registerOption(e){let i=(this._idCounter++).toString();return this._optionMap.set(i,e),i}_getOptionId(e){for(let i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i)._value,e))return i;return null}_getOptionValue(e){let i=Cn(e);return this._optionMap.has(i)?this._optionMap.get(i)._value:e}static \u0275fac=(()=>{let e;return function(r){return (e||(e=Pm(n)))(r||n)}})();static \u0275dir=yt$2({type:n,selectors:[["select","multiple","","formControlName","",3,"ngNoCva",""],["select","multiple","","formControl","",3,"ngNoCva",""],["select","multiple","","ngModel","",3,"ngNoCva",""]],hostBindings:function(i,r){i&1&&hc("change",function(a){return r.onChange(a.target)})("blur",function(){return r.onTouched()});},inputs:{compareWith:"compareWith"},standalone:false,features:[A_([yn]),ov]})}return n})(),Ln=(()=>{class n{_element;_renderer;_select;id;_value;constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption(this));}set ngValue(e){this._select!=null&&(this._value=e,this._setElementValue(Xe$2(this.id,e)),this._select.writeValue(this._select.value));}set value(e){this._select?(this._value=e,this._setElementValue(Xe$2(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e);}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e);}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e);}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value));}static \u0275fac=function(i){return new(i||n)(J$6(st$3),J$6(kn),J$6(Dt$1,9))};static \u0275dir=yt$2({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:false})}return n})();var bt=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=Tr$1({type:n});static \u0275inj=bn({})}return n})();function Ye(n){return !!n&&(n.asyncValidators!==void 0||n.validators!==void 0||n.updateOn!==void 0)}var Wn=(()=>{class n{useNonNullable=false;get nonNullable(){let e=new n;return e.useNonNullable=true,e}group(e,i=null){let r=this._reduceControls(e),s={};return Ye(i)?s=i:i!==null&&(s.validators=i.validator,s.asyncValidators=i.asyncValidator),new j$3(r,s)}record(e,i=null){let r=this._reduceControls(e);return new Ve$2(r,i)}control(e,i,r){let s={};return this.useNonNullable?(Ye(i)?s=i:(s.validators=i,s.asyncValidators=r),new $$1(e,m$2(l$1({},s),{nonNullable:true}))):new $$1(e,i,r)}array(e,i,r){let s=e.map(a=>this._createControl(a));return new De$2(s,i,r)}_reduceControls(e){let i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r]);}),i}_createControl(e){if(e instanceof $$1)return e;if(e instanceof T$2)return e;if(Array.isArray(e)){let i=e[0],r=e.length>1?e[1]:null,s=e.length>2?e[2]:null;return this.control(i,r,s)}else return this.control(e)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=W$6({token:n,factory:n.\u0275fac})}return n})();var qn=(()=>{class n{static withConfig(e){return {ngModule:n,providers:[{provide:I$1,useValue:e.callSetDisabledState??Z$3}]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=Tr$1({type:n});static \u0275inj=bn({imports:[bt]})}return n})(),$n=(()=>{class n{static withConfig(e){return {ngModule:n,providers:[{provide:Oe$3,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:I$1,useValue:e.callSetDisabledState??Z$3}]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=Tr$1({type:n});static \u0275inj=bn({imports:[bt]})}return n})();var W$3=["timePickerInput"],Q$3=["modalContent"];function U$2(i,m){i&1&&(If(0,"span",5),v_(1,"*"),Cf());}function K$2(i,m){if(i&1){let e=PT();If(0,"span",11),pv("click",function(n){lg(e);let c=HT();return dg(c.clearSelection(n))}),v_(1,"\u2715"),Cf();}}function X$3(i,m){if(i&1&&(If(0,"div",9),v_(1),Cf()),i&2){let e=HT();Tb(),Nf(" ",e.errorMessage()," ");}}function Y$2(i,m){if(i&1){let e=PT();If(0,"div",14)(1,"div",31)(2,"button",32),pv("click",function(){lg(e);let n=HT(2);return dg(n.closeTimePicker())}),v_(3,"Cancel"),Cf(),If(4,"h3",33),v_(5,"Select Time"),Cf(),If(6,"button",34),pv("click",function(){lg(e);let n=HT(2);return dg(n.doneSelecting())}),v_(7,"Done"),Cf()()();}}function G$2(i,m){if(i&1){let e=PT();If(0,"button",35),pv("click",function(){let n=lg(e).$implicit,c=HT(2);return dg(c.setHour(n))}),v_(1),Cf();}if(i&2){let e=m.$implicit,t=HT(2);Iv("selected",t.timeForm.value.hour===e),Tb(),Nf(" ",e," ");}}function J$4(i,m){if(i&1){let e=PT();If(0,"button",35),pv("click",function(){let n=lg(e).$implicit,c=HT(2);return dg(c.setMinute(n))}),v_(1),Cf();}if(i&2){let e=m.$implicit,t=HT(2);Iv("selected",t.timeForm.value.minute===e),Tb(),Nf(" ",e<10?"0"+e:e," ");}}function Z$2(i,m){if(i&1){let e=PT();If(0,"button",36),pv("click",function(){let n=lg(e).$implicit,c=HT(2);return dg(c.setPeriod(n))}),v_(1),Cf();}if(i&2){let e=m.$implicit,t=HT(2);Iv("selected",t.timeForm.value.period===e),Tb(),Nf(" ",e," ");}}function ee$1(i,m){if(i&1){let e=PT();If(0,"div",30)(1,"button",37),pv("click",function(){lg(e);let n=HT(2);return dg(n.doneSelecting())}),v_(2,"Done"),Cf()();}}function te$2(i,m){if(i&1){let e=PT();If(0,"div",12),pv("click",function(){lg(e);let n=HT();return dg(n.closeTimePicker())}),If(1,"div",13,1),pv("click",function(n){return n.stopPropagation()}),bT(3,Y$2,8,0,"div",14),If(4,"div",15)(5,"div",16)(6,"span",17),v_(7),Cf(),If(8,"span",18),v_(9,":"),Cf(),If(10,"span",19),v_(11),Cf(),If(12,"span",20),v_(13),Cf()()(),If(14,"div",21)(15,"div",22)(16,"div",23),v_(17,"Hour"),Cf(),If(18,"div",24),MT(19,G$2,2,3,"button",25,_T),Cf()(),If(21,"div",26)(22,"div",23),v_(23,"Minute"),Cf(),If(24,"div",24),MT(25,J$4,2,3,"button",25,_T),Cf()(),If(27,"div",27)(28,"div",23),v_(29,"Period"),Cf(),If(30,"div",28),MT(31,Z$2,2,3,"button",29,_T),Cf()()(),bT(33,ee$1,3,0,"div",30),Cf()();}if(i&2){let e=HT();Iv("desktop-mode",!e.isMobile)("mobile-mode",e.isMobile),Tb(),gc("top",e.isMobile?"":e.dropdownPosition.top)("left",e.isMobile?"":e.dropdownPosition.left)("width",e.isMobile?"":e.dropdownPosition.width)("bottom",!e.isMobile&&e.isDropdownFlipped?e.dropdownPosition.bottom:""),Iv("dropdown-content",!e.isMobile)("mobile-content",e.isMobile)("flip-position",!e.isMobile&&e.isDropdownFlipped),Tb(2),ST(e.isMobile?3:-1),Tb(4),Rv(e.timeForm.value.hour),Tb(4),Rv(e.timeForm.value.minute<10?"0"+e.timeForm.value.minute:e.timeForm.value.minute),Tb(2),Rv(e.timeForm.value.period),Tb(6),NT(e.hours),Tb(6),NT(e.minutes),Tb(6),NT(e.periods),Tb(2),ST(e.isMobile?-1:33);}}var ae$2=(()=>{class i{constructor(){this.fb=p$1(Wn),this.placeholder=Dc("Select time"),this.required=Dc(false),this.disabled=Dc(false),this._disabled=false,this.errorMessage=Dc("Time is required"),this.clearable=Dc(true),this.id=Dc(""),this.timeChange=a2(),this.timePickerInput=c2("timePickerInput"),this.modalContent=c2("modalContent"),this.isOpen=false,this.touched=false,this.isMobile=false,this.isDropdownFlipped=false,this.dropdownPosition={top:"0",left:"0",width:"100%"},this.mobileBreakpoint=450,this.hours=Array.from({length:12},(e,t)=>t+1),this.minutes=Array.from({length:60},(e,t)=>t),this.periods=["AM","PM"],this.destroy$=new ae$4,this.onChange=()=>{},this.onTouched=()=>{},this.onWindowResize=()=>{this.checkMobileView(),this.isOpen&&!this.isMobile&&this.calculateDropdownPosition();},this.timeForm=this.fb.group({hour:[12,[_e$3.required,_e$3.min(1),_e$3.max(12)]],minute:[0,[_e$3.required,_e$3.min(0),_e$3.max(59)]],period:["AM",[_e$3.required]]});}ngOnInit(){this.timeForm.valueChanges.subscribe(e=>{if(this.timeForm.valid){let t=this.convertToISOString(e);this.onChange(t),this.timeChange.emit(t);}}),this.checkMobileView(),window.addEventListener("resize",this.onWindowResize);}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),window.removeEventListener("resize",this.onWindowResize);}handleOutsideClick(e){let t=this.modalContent(),n=this.timePickerInput();if(!this.isOpen||!t||!n)return;let c=t.nativeElement.contains(e.target),s=n.nativeElement.contains(e.target);!c&&!s&&this.closeTimePicker();}handleEscapeKey(){this.isOpen&&this.closeTimePicker();}checkMobileView(){this.isMobile=window.innerWidth<this.mobileBreakpoint;}writeValue(e){if(!e){this.timeForm.reset({hour:12,minute:0,period:"AM"},{emitEvent:false});return}try{let t=new Date(e);if(isNaN(t.getTime()))throw new Error("Invalid date");let n=t.getHours(),c=t.getMinutes(),s=n>=12?"PM":"AM";n=n%12,n=n===0?12:n,this.timeForm.setValue({hour:n,minute:c,period:s},{emitEvent:!1});}catch{this.timeForm.reset({hour:12,minute:0,period:"AM"},{emitEvent:false});}}registerOnChange(e){this.onChange=e;}registerOnTouched(e){this.onTouched=e;}setDisabledState(e){this._disabled=e,e?this.timeForm.disable():this.timeForm.enable();}calculateDropdownPosition(){let e=this.timePickerInput();if(!e)return;let t=e.nativeElement.getBoundingClientRect(),n=window.innerHeight,c=350,s=n-t.bottom,P=t.top;if(this.isDropdownFlipped=s<c&&P>s,this.isDropdownFlipped){let j=window.innerHeight-t.top+window.scrollY;this.dropdownPosition={bottom:`${j}px`,left:`${t.left+window.scrollX}px`,width:`${t.width}px`};}else this.dropdownPosition={top:`${t.bottom+window.scrollY}px`,left:`${t.left+window.scrollX}px`,width:`${t.width}px`};}toggleTimePicker(){this.disabled()||(this.isMobile||this.calculateDropdownPosition(),this.isOpen=!this.isOpen,this.touched||(this.touched=true,this.onTouched()));}closeTimePicker(){this.isOpen=false;}setHour(e){this.disabled()||this.timeForm.patchValue({hour:e});}setMinute(e){this.disabled()||this.timeForm.patchValue({minute:e});}setPeriod(e){this.disabled()||this.timeForm.patchValue({period:e});}doneSelecting(){this.closeTimePicker();}clearSelection(e){this.disabled()||(e&&e.stopPropagation(),this.timeForm.reset({hour:12,minute:0,period:"AM"},{emitEvent:false}),this.onChange(null),this.onTouched(),this.timeChange.emit(null));}get isValid(){return this.timeForm.valid}get showError(){return this.required()&&!this.isValid&&this.touched}get displayValue(){if(!this.timeForm.valid)return this.placeholder();let{hour:e,minute:t,period:n}=this.timeForm.value,c=t<10?`0${t}`:t;return `${e}:${c} ${n}`}convertToISOString(e){if(!e||!this.timeForm.valid)return null;let{hour:t,minute:n,period:c}=e,s=t;c==="PM"&&t!==12?s=t+12:c==="AM"&&t===12&&(s=0);let P=new Date;return P.setHours(s),P.setMinutes(n),P.setSeconds(0),P.setMilliseconds(0),P.toISOString()}static{this.\u0275fac=function(t){return new(t||i)};}static{this.\u0275cmp=mf({type:i,selectors:[["app-time-picker"]],viewQuery:function(t,n){t&1&&yv(n.timePickerInput,W$3,5)(n.modalContent,Q$3,5),t&2&&qT(2);},hostBindings:function(t,n){t&1&&hc("click",function(s){return n.handleOutsideClick(s)},BC)("keydown.escape",function(){return n.handleEscapeKey()},BC);},inputs:{placeholder:[1,"placeholder"],required:[1,"required"],disabled:[1,"disabled"],errorMessage:[1,"errorMessage"],clearable:[1,"clearable"],id:[1,"id"]},outputs:{timeChange:"timeChange"},features:[A_([{provide:M$1,useExisting:Qs(()=>i),multi:true}])],decls:12,vars:14,consts:[["timePickerInput",""],["modalContent",""],[1,"time-picker-container",3,"id"],[1,"time-picker-display",3,"click"],[1,"time-value"],[1,"required-asterisk"],[1,"time-actions"],[1,"clear-icon"],[1,"arrow-icon"],[1,"error-message"],[1,"modal-overlay",3,"desktop-mode","mobile-mode"],[1,"clear-icon",3,"click"],[1,"modal-overlay",3,"click"],[1,"modal-content",3,"click"],[1,"modal-header"],[1,"time-display"],[1,"time-value-display"],[1,"hour-display"],[1,"separator"],[1,"minute-display"],[1,"period-display"],[1,"time-selector"],[1,"selector-column","hours-column"],[1,"column-header"],[1,"column-options"],[1,"time-option",3,"selected"],[1,"selector-column","minutes-column"],[1,"selector-column","period-column"],[1,"column-options","periods"],[1,"time-option","period-option",3,"selected"],[1,"action-buttons"],[1,"header-content"],[1,"close-button",3,"click"],[1,"modal-title"],[1,"done-button-header",3,"click"],[1,"time-option",3,"click"],[1,"time-option","period-option",3,"click"],[1,"done-button",3,"click"]],template:function(t,n){t&1&&(If(0,"div",2)(1,"div",3,0),pv("click",function(){return n.toggleTimePicker()}),If(3,"div",4),v_(4),bT(5,U$2,2,0,"span",5),Cf(),If(6,"div",6),bT(7,K$2,2,0,"span",7),If(8,"span",8),v_(9,"\u25BC"),Cf()()(),bT(10,X$3,2,1,"div",9),Cf(),bT
8(11,te$2,34,23,"div",10)),t&2&&(Iv("disabled",n.disabled())("invalid",n.showError)("focused",n.isOpen),fv("id",n.id()),Tb(3),Iv("placeholder",!n.timeForm.valid),Tb(),Nf(" ",n.displayValue," "),Tb(),ST(n.required()?5:-1),Tb(2),ST(!n.disabled()&&n.clearable()&&n.timeForm.valid?7:-1),Tb(3),ST(n.showError?10:-1),Tb(),ST(n.isOpen?11:-1));},dependencies:[qn,$n],styles:[".time-picker-container[_ngcontent-%COMP%]{position:relative;width:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;margin-bottom:5px}.time-picker-container.disabled[_ngcontent-%COMP%]{opacity:.7;cursor:not-allowed;pointer-events:none}.time-picker-container.disabled[_ngcontent-%COMP%]   .time-picker-display[_ngcontent-%COMP%]{background-color:var(--disabled-bg-color);border:1px solid var(--disabled-border-color)}.time-picker-container.invalid[_ngcontent-%COMP%]   .time-picker-display[_ngcontent-%COMP%]{border-color:var(--error-color)}.time-picker-container.focused[_ngcontent-%COMP%]   .time-picker-display[_ngcontent-%COMP%]{border-color:var(--primary-color);box-shadow:0 0 0 2px rgba(var(--primary-color-rgb),.2)}.time-picker-container[_ngcontent-%COMP%]   .error-message[_ngcontent-%COMP%]{color:#e6003e;font-size:12px;margin-top:4px}.time-picker-display[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:8px 16px;background-color:#fff;border:1px solid #e0e0e0;border-radius:8px;cursor:pointer;min-height:48px}.time-picker-display[_ngcontent-%COMP%]:focus-within{border-color:#f90047;box-shadow:0 0 0 2px #f9004733}.time-picker-display[_ngcontent-%COMP%]   .time-value[_ngcontent-%COMP%]{flex:1;color:#333}.time-picker-display[_ngcontent-%COMP%]   .time-value.placeholder[_ngcontent-%COMP%]{color:#999}.time-picker-display[_ngcontent-%COMP%]   .time-value[_ngcontent-%COMP%]   .required-asterisk[_ngcontent-%COMP%]{color:#f90047;margin-left:4px;font-weight:700}.time-picker-display[_ngcontent-%COMP%]   .time-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.time-picker-display[_ngcontent-%COMP%]   .time-actions[_ngcontent-%COMP%]   .clear-icon[_ngcontent-%COMP%]{font-size:14px;color:#999;cursor:pointer;padding:2px 4px}.time-picker-display[_ngcontent-%COMP%]   .time-actions[_ngcontent-%COMP%]   .clear-icon[_ngcontent-%COMP%]:hover{color:#e6003e}.time-picker-display[_ngcontent-%COMP%]   .time-actions[_ngcontent-%COMP%]   .arrow-icon[_ngcontent-%COMP%]{font-size:12px;color:#999}.modal-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;background-color:#00000080;z-index:1000;display:flex;justify-content:center;align-items:center;padding:20px}.modal-overlay.desktop-mode[_ngcontent-%COMP%]{background-color:transparent;pointer-events:none;padding:0}.modal-overlay.desktop-mode[_ngcontent-%COMP%]   .modal-content[_ngcontent-%COMP%]{pointer-events:auto}.modal-overlay.mobile-mode[_ngcontent-%COMP%]{padding:0;align-items:flex-end}.modal-overlay.mobile-mode[_ngcontent-%COMP%]   .modal-content[_ngcontent-%COMP%]{border-radius:16px 16px 0 0;padding-bottom:20px}@media(max-width:450px){.modal-overlay[_ngcontent-%COMP%]{padding:0}}.modal-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:70%;height:auto;max-width:350px;background-color:#fff;border-radius:8px;overflow:hidden;box-shadow:0 4px 12px #00000026}.modal-content.dropdown-content[_ngcontent-%COMP%]{position:absolute;width:100%;height:auto;box-shadow:0 2px 12px #00000026;border:1px solid #e0e0e0;border-radius:8px;margin-top:4px}.modal-content.dropdown-content.flip-position[_ngcontent-%COMP%]{margin-top:0;margin-bottom:4px}.modal-content.mobile-content[_ngcontent-%COMP%]{width:100%;max-width:100%;max-height:80vh;border-bottom-left-radius:0;border-bottom-right-radius:0}@media(max-width:450px){.modal-content[_ngcontent-%COMP%]{width:100%;height:auto;max-height:80vh;border-radius:0}}.modal-header[_ngcontent-%COMP%]{padding:10px 15px;border-bottom:1px solid #e0e0e0}.modal-header[_ngcontent-%COMP%]   .header-content[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.modal-header[_ngcontent-%COMP%]   .header-content[_ngcontent-%COMP%]   .modal
8-title[_ngcontent-%COMP%]{font-size:16px;font-weight:500;margin:0;text-align:center}.modal-header[_ngcontent-%COMP%]   .header-content[_ngcontent-%COMP%]   .close-button[_ngcontent-%COMP%], .modal-header[_ngcontent-%COMP%]   .header-content[_ngcontent-%COMP%]   .done-button-header[_ngcontent-%COMP%]{background:none;border:none;color:#f90047;font-size:15px;font-weight:500;padding:5px;cursor:pointer}.modal-header[_ngcontent-%COMP%]   .header-content[_ngcontent-%COMP%]   .close-button[_ngcontent-%COMP%]:active, .modal-header[_ngcontent-%COMP%]   .header-content[_ngcontent-%COMP%]   .done-button-header[_ngcontent-%COMP%]:active{opacity:.7}.time-display[_ngcontent-%COMP%]{padding:15px;text-align:center;background-color:#f90047;color:#fff}.time-display[_ngcontent-%COMP%]   .time-value-display[_ngcontent-%COMP%]{font-size:28px;font-weight:700;display:flex;justify-content:center;align-items:center;gap:5px}.time-display[_ngcontent-%COMP%]   .time-value-display[_ngcontent-%COMP%]   .hour-display[_ngcontent-%COMP%], .time-display[_ngcontent-%COMP%]   .time-value-display[_ngcontent-%COMP%]   .minute-display[_ngcontent-%COMP%]{min-width:35px;display:inline-block}.time-display[_ngcontent-%COMP%]   .time-value-display[_ngcontent-%COMP%]   .separator[_ng
8content-%COMP%]{display:inline-block;font-size:28px}.time-display[_ngcontent-%COMP%]   .time-value-display[_ngcontent-%COMP%]   .period-display[_ngcontent-%COMP%]{margin-left:10px;min-width:30px;display:inline-block}.time-selector[_ngcontent-%COMP%]{display:flex;padding:15px;overflow-y:auto;max-height:300px}.time-selector[_ngcontent-%COMP%]   .selector-column[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;align-items:center}.time-selector[_ngcontent-%COMP%]   .selector-column[_ngcontent-%COMP%]   .column-header[_ngcontent-%COMP%]{font-size:14px;font-weight:600;color:#666;margin-bottom:15px;text-align:center}.time-selector[_ngcontent-%COMP%]   .selector-column[_ngcontent-%COMP%]   .column-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;max-height:200px;overflow-y:auto;width:100%;padding:0 5px;-webkit-overflow-scrolling:touch}.time-selector[_ngcontent-%COMP%]   .selector-column[_ngcontent-%COMP%]   .column-options[_ngcontent-%COMP%]::-webkit-scrollbar{width:5px}.time-selector[_ngcontent-%COMP%]   .selector-column[_ngcontent-%COMP%]   .column-options[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#e0e0e0;border-radius:2.5px}.time-selector[_ngcontent-%COMP%]   .selector-column[_ngcontent-%COMP%]   .column-options[_ngcontent-%COMP%]   .time-option[_ngcontent-%COMP%]{width:100%;padding:10px 4px;margin:3px 0;background-color:transparent;border:none;border-radius:8px;font-size:16px;cursor:pointer;text-align:center}.time-selector[_ngcontent-%COMP%]   .selector-column[_ngcontent-%COMP%]   .column-options[_ngcontent-%COMP%]   .time-option.selected[_ngcontent-%COMP%]{background-color:#f900471a;border:1px solid #F90047;font-weight:700}.time-selector[_ngcontent-%COMP%]   .selector-column[_ngcontent-%COMP%]   .column-options[_ngcontent-%COMP%]   .time-option[_ngcontent-%COMP%]:hover:not(.selected){background-color:#f5f5f5}@media(max-width:450px){.time-selector[_ngcontent-%COMP%]   .selector-column[_ngcontent-%COMP%]   .column-options[_ngcontent-%COMP%]   .time-option[_ngcontent-%COMP%]{padding:12px 4px;font-size:18px;margin:4px 0}}.time-selector[_ngcontent-%COMP%]   .selector-column.period-column[_ngcontent-%COMP%]   .column-options[_ngcontent-%COMP%]   .period-option[_ngcontent-%COMP%]{padding:10px 4px}@media(max-width:450px){.time-selector[_ngcontent-%COMP%]   .selector-column.period-column[_ngcontent-%COMP%]   .column-options[_ngcontent-%COMP%]   .period-option[_ngcontent-%COMP%]{padding:14px 4px}}.action-buttons[_ngcontent-%COMP%]{padding:10px 15px;background-color:#fff;border-top:1px solid #e0e0e0;text-align:center}.action-buttons[_ngcontent-%COMP%]   .done-button[_ngcontent-%COMP%]{background-color:#f90047;color:#fff;border:none;border-radius:8px;padding:12px 20px;font-size:16px;cursor:pointer;width:100%}.action-buttons[_ngcontent-%COMP%]   .done-button[_ngcontent-%COMP%]:active{opacity:.9}"],changeDetection:1});}}return i})();var T$1=["phoneInputElement"];function R$1(o,W){if(o&1&&(qa(0,"div",4),v_(1),wf()),o&2){let e=HT();Tb(),Nf(" ",e.errorMessage()," ");}}var J$3=(()=>{class o{constructor(){this.placeholder=Dc("Enter phone number"),this.required=Dc(false),this.disabled=Dc(false),this._disabled=oe$2(false),this.errorMessage=Dc("Please enter a valid Nigerian phone number"),this.maxLength=Dc(14),this.id=Dc(""),this.size=Dc("large"),this.blur=a2(),this.phoneInputElement=c2.required("phoneInputElement"),this.phoneControl=new $$1(""),this.touched=false,this.validPrefixes=["70","80","81","90","91"],this.onChange=()=>{},this.onTouched=()=>{};}ngOnInit(){this.setupValidators(),this._disabled.set(this.disabled()),this._disabled()&&this.phoneControl.disable({emitEvent:false}),this.phoneControl.valueChanges.subscribe(e=>{this.onChange(e);});}setupValidators(){let e=[];this.required()&&e.push(_e$3.required),e.push(_e$3.pattern(/^(\+234[7-9][01]|0[7-9][01])[0-9]{7,8}$/)),e.push(_e$3.maxLength(this.maxLength())),this.phoneControl.setValidators(e),this.phoneControl.updateValueAndValidity();}formatNigerianPhoneNumber(e){if(!e)return "";let n=e.replace(/[^\d+]/g,"");return n.startsWith("+234")?this.validateAndFormatNumber(n):n.startsWith("234")?this.validateAndFormatNumber("+"+n):n.startsWith("0")?this.validateAndFormatNumber("+234"+n.substring(1)):this.validateAndFormatNumber("+234"+n)}validateAndFormatNumber(e){if(e.startsWith("+234")){let n=e.substring(4),t=false;for(let l of this.validPrefixes)if(n.startsWith(l)){t=true;break}return t&&e.length>this.maxLength()?e.substring(0,this.maxLength()):e}return e}onKeyPress(e){let n=String.fromCharCode(e.charCode);return e.key==="Backspace"||e.key==="Delete"||e.key==="ArrowLeft"||e.key==="ArrowRight"||e.key==="Tab"||n==="
8+"&&this.phoneControl.value===""?true:/^\d$/.test(n)?this.phoneControl.value&&this.phoneControl.value.length>=this.maxLength()?(e.preventDefault(),false):true:(e.preventDefault(),false)}writeValue(e){if(e==null){this.phoneControl.setValue("",{emitEvent:false});return}this.phoneControl.setValue(e,{emitEvent:false});}registerOnChange(e){this.onChange=e;}registerOnTouched(e){this.onTouched=e;}setDisabledState(e){this._disabled.set(e),e?this.phoneControl.disable():this.phoneControl.enable();}onBlur(){this.touched||(this.touched=true,this.onTouched());let e=this.phoneControl.value;if(e){let n=this.formatNigerianPhoneNumber(e);n!==e&&(this.phoneControl.setValue(n,{emitEvent:false}),this.onChange(n));}this.blur.emit();}get showError(){return this.phoneControl.invalid&&(this.phoneControl.touched||this.touched)}focus(){let e=this.phoneInputElement();e&&e.nativeElement&&e.nativeElement.focus();}static{this.\u0275fac=function(n){return new(n||o)};}static{this.\u0275cmp=mf({type:o,selectors:[["app-phone-number"]],viewQuery:function(n,t){n&1&&yv(t.phoneInputElement,T$1,5),n&2&&qT();},inputs:{placeholder:[1,"placeholder"],required:[1,"required"],disabled:[1,"disabled"],errorMessage:[1,"errorMessage"],maxLength:[1,"maxLength"],id:[1,"id"],size:[1,"size"]},outputs:{blur:"blur"},features:[A_([{provide:M$1,useExisting:Qs(()=>o),multi:true}])],decls:5,vars:11,consts:[["phoneInputElement",""],[1,"phone-number-container",3,"id","ngClass"],[1,"input-wrapper"],["type","tel","inputmode","tel",3,"blur","keypress","formControl","disabled"],[1,"error-message"]],template:function(n,t){n&1&&(qa(0,"div",1)(1,"div",2)(2,"input",3,0),hc("blur",function(){return t.onBlur()})("keypress",function(q){return t.onKeyPress(q)}),wf(),mS(),wf(),bT(4,R$1,2,1,"div",4),wf()),n&2&&(Iv("disabled",t._disabled())("invalid",t.showError),cv("id",t.id())("ngClass",t.size()),Tb(2),cv("formControl",t.phoneControl)("disabled",t._disabled()),dc("placeholder",t.placeholder())("maxlength",t.maxLength()),vS(),Tb(2),ST(t.showError?4:-1));},dependencies:[ND,BM,qn,Je$1,jn,$n,dn],styles:[".phone-number-container[_ngcontent-%COMP%]{position:relative;width:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;margin-bottom:5px}.phone-number-container.small[_ngcontent-%COMP%]   .input-wrapper[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{height:26px;font-size:13px;padding:2px 8px}.phone-number-container.medium[_ngcontent-%COMP%]   .input-wrapper[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{height:32px;font-size:14px;padding:4px 11px}.phone-number-container.large[_ngcontent-%COMP%]   .input-wrapper[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{height:40px;font-size:16px;padding:6px 11px}.phone-number-container.disabled[_ngcontent-%COMP%]   .input-wrapper[_ngcontent-%COMP%]{background-color:#e9e9e9}.phone-number-container.disabled[_ngcontent-%COMP%]   .input-wrapper[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{color:#aaa;background-color:transparent;cursor:not-allowed}.phone-number-container.disabled[_ngcontent-%COMP%]   .input-wrapper[_ngcontent-%COMP%]   .country-prefix[_ngcontent-%COMP%]{color:#aaa}.phone-number-container.invalid[_ngcontent-%COMP%]   .input-wrapper[_ngcontent-%COMP%]{border-color:#e6003e}.phone-number-container[_ngcontent-%COMP%]   .input-wrapper[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;background-color:#fff;border:1px solid #e0e0e0;border-radius:8px;overflow:hidden;transition:all .2s ease}.phone-number-container[_ngcontent-%COMP%]   .input-wrapper[_ngcontent-%COMP%]:focus-within{border-color:#f90047;box-shadow:0 0 0 2px #f9004733}.phone-number-container[_ngcontent-%COMP%]   .input-wrapper[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{flex:1;width:100%;border:none;background:transparent;color:#333;outline:none}.phone-number-container[_ngcontent-%COMP%]   .input-wrapper[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::placeholder{color:#999}.phone-number-container[_ngcontent-%COMP%]   .input-wrapper[_ngcontent-%COMP%]   .country-prefix[_ngcontent-%COMP%]{position:absolute;
8left:12px;color:#999;pointer-events:none}.phone-number-container[_ngcontent-%COMP%]   .error-message[_ngcontent-%COMP%]{color:#e6003e;font-size:12px;margin-top:4px}.phone-number-container[_ngcontent-%COMP%]   .required-indicator[_ngcontent-%COMP%]{color:#e6003e;font-size:12px;margin-top:4px;position:absolute;right:0;top:100%}"],changeDetection:1});}}return o})();var D$1=["textarea"];function N$1(a,L){if(a&1&&(If(0,"div",4),v_(1),Cf()),a&2){let e=HT();Tb(),xv(" ",e.currentLength,"/",e.maxLength()," ");}}function S$1(a,L){if(a&1&&(If(0,"div",5),v_(1),Cf()),a&2){let e=HT();Tb(),Nf(" ",e.errorMessage()," ");}}var F$1=(()=>{class a{constructor(){this.placeholder=Dc("Enter text"),this.minHeight=Dc(50),this.maxHeight=Dc(200),this.maxLength=Dc(200),this.showCounter=Dc(true),this.required=Dc(false),this.disabled=Dc(false),this._disabled=false,this.errorMessage=Dc("This field is required"),this.id=Dc(""),this.textarea=c2.required("textarea"),this.currentLength=0,this.touched=false,this.onChange=()=>{},this.onTouched=()=>{};}ngOnInit(){setTimeout(()=>{this.adjustTextareaHeight();});}onInput(){let e=this.textarea().nativeElement.value;this.currentLength=e.length,this.adjustTextareaHeight(),this.onChange(e);}adjustTextareaHeight(){let e=this.textarea();if(!e)return;let t=e.nativeElement;t.style.height="auto",t.style.height=Math.min(Math.max(t.scrollHeight,this.minHeight()),this.maxHeight())+"px";}writeValue(e){e==null&&(e="");let t=this.textarea();t?(t.nativeElement.value=e,this.currentLength=e.length,this.adjustTextareaHeight()):setTimeout(()=>{let n=this.textarea();n&&(n.nativeElement.value=e,this.currentLength=e.length,this.adjustTextareaHeight());});}registerOnChange(e){this.onChange=e;}registerOnTouched(e){this.onTouched=e;}setDisabledState(e){this._disabled=e;let t=this.textarea();t&&(t.nativeElement.disabled=e);}onBlur(){this.touched||(this.touched=true,this.onTouched());}get showError(){return this.required()&&this.touched&&this.currentLength===0}static{this.\u0275fac=function(t){return new(t||a)};}static{this.\u0275cmp=mf({type:a,selectors:[["app-textarea"]],viewQuery:function(t,n){t&1&&yv(n.textarea,D$1,5),t&2&&qT();},hostBindings:function(t,n){t&1&&hc("input",function(){return n.onInput()});},inputs:{placeholder:[1,"placeholder"],minHeight:[1,"minHeight"],maxHeight:[1,"maxHeight"],maxLength:[1,"maxLength"],showCounter:[1,"showCounter"],required:[1,"required"],disabled:[1,"disabled"],errorMessage:[1,"errorMessage"],id:[1,"id"]},features:[A_([{provide:M$1,useExisting:Qs(()=>a),multi:true}])],decls:7,vars:14,consts:[["textarea",""],[1,"textarea-container",3,"id"],[1,"textarea-wrapper"],[3,"input","blur","disabled"],[1,"char-counter"],[1,"error-message"]],template:function(t,n){t&1&&(If(0,"div",1)(1,"div",2)(2,"textarea",3,0),pv("input",function(){return n.onInput()})("blur",function(){return n.onBlur()}),v_(4,"    "),Cf()(),bT(5,N$1,2,2,"div",4),bT(6,S$1,2,1,"div",5),Cf()),t&2&&(Iv("disabled",n.disabled())("invalid",n.showError),fv("id",n.id()),Tb(2),gc("min-height",n.minHeight(),"px")("max-height",n.maxHeight(),"px"),fv("disabled",n.disabled()),dc("placeholder",n.placeholder())("maxLength",n.maxLength()),Tb(3),ST(n.showCounter()?5:-1),Tb(),ST(n.showError?6:-1));},dependencies:[qn,$n],styles:[".textarea-container[_ngcontent-%COMP%]{position:relative;width:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;margin-bottom:5px}.textarea-container.disabled[_ngcontent-%COMP%]   .textarea-wrapper[_ngcontent-%COMP%]{background-color:#00000040}.textarea-container.disabled[_ngcontent-%COMP%]   .textarea-wrapper[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{color:#aaa;background-color:transparent;cursor:not-allowed}.textarea-container.invalid[_ngcontent-%COMP%]   .textarea-wrapper[_ngcontent-%COMP%]{border-color:#e6003e}.textarea-container[_ngcontent-%COMP%]   .textarea-wrapper[_ngcontent-%COMP%]{position:relative;border:1px solid #d9d9d9;background-color:#fff;border-radius:8px;overflow:hidden;transition:all .2s ease}.textarea-container[_ngcontent-%COMP%]   .textarea-wrapper[_ngcontent-%COMP%]:focus-within{border-color:#f90047;box-shadow:0 0 0 2px #f9004733}.textarea-container[_ngcontent-%COMP%]   .textarea-wrapper[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{width:100%;padding:12px 16px;border:none;font-size:16px;resize:none;overflow-y:auto;min-height:100px;max-height:300px;box-sizing:border-box;background:transparent;color:#333;outline:none}.textarea-container[_ngcontent-%COMP%]   .textarea-wrapper[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]::placeholder{color:#999}.textarea-container[_ngcontent-%COMP%]   .char-counter[_ngcontent-%COMP%]{text-align:right;font-size:12px;color:#999;margin-top:4px}.textarea-container[_ngcontent-%COMP%]   .error-message[_ngcontent-%COMP%]{color:#e6003e;font-size:12px;margin-top:4px}"],changeDetection:1});}}return a})();var j$2=["inputElement"];function G$1(n,d){n&1&&(qa(0,"span",9),v_(1,"*"),wf());}function Q$2(n,d){if(n&1&&(qa(0,"label",2)(1,"span"),v_(2),wf(),bT(3,G$1,2,0,"span",9),wf()),n&2){let e=HT();Tb(2),Rv(e.label()),Tb(),ST(e.required()?3:-1);}}function Z$1(n,d){n&1&&(Ig(),qa(0,"svg",11),fc(1,"path",12)(2,"line",13),wf());}function H$1(n,d){n&1&&(Ig(),qa(0,"svg",11),fc(1,"path",14)(2,"circle",15),wf());}function J$2(n,d){if(n&1){let e=PT();qa(0,"span",10),hc("click",function(){lg(e);let t=HT();return dg(t.togglePasswordVisibility())}),bT(1,Z$1,3,0,":svg:svg",11)(2,H$1,3,0,":svg:svg",11),wf();}if(n&2){let e=HT();dc("aria-label",e.showPassword()?"Hide password":"Show password"),Tb(),ST(e.showPassword()?1:2);}}function K$1(n,d){if(n&1){let e=PT();qa(0,"span",16),hc("click",function(t){lg(e);let P=HT();return dg(P.clearSelection(t))}),v_(1,"\u2715"),wf();}}function W$2(n,d){if(n&1&&(qa(0,"div",7),v_(1),wf()),n&2){let e=HT();Tb(),Nf(" ",e.hint()," ");}}function X$2(n,d){if(n&1&&(qa(0,"div",8),v_(1),wf()),n&2){let e=HT();Tb(),Nf(" ",e.getErrorMessage()," ");}}var re$2=(()=>{class n{constructor(){this.label=Dc(""),this.hint=Dc(""),this.type=Dc("text"),this.placeholder=Dc(""),this.minLength=Dc(0),this.maxLength=Dc(100),this.required=Dc(false),this.disabled=Dc(false),this._disabled=oe$2(false),this.errorMessage=Dc("This field is required"),this.clearable=Dc(true),this.id=Dc(""),this.size=Dc("large"),this.blurEvent=a2(),this.inputElement=c2.required("inputElement"),this.inputControl=new $$1(""),this.touched=false,this.showPassword=oe$2(false),this.onChange=()=>{},this.onTouched=()=>{};}ngOnInit(){this.setupValidators(),this.inputControl.valueChanges.subscribe(e=>{this.onChange(e);}),this._disabled.set(this.disabled()),this._disabled()&&this.inputControl.disable({emitEvent:false});}togglePasswordVisibility(){this._disabled()||this.showPassword.update(e=>!e);}setupValidators(){let e=[];this.required()&&e.push(_e$3.required),this.minLength()>0&&e.push(_e$3.minLength(this.minLength())),this.maxLength()>0&&e.push(_e$3.maxLength(this.maxLength()));let i=this.type();i==="email"&&e.push(_e$3.pattern(/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/)),i==="url"&&e.push(_e$3.pattern(/^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,})([\/\w .-]*)*\/?$/)),this.inputControl.setValidators(e),this.inputControl.updateValueAndValidity();}clearSelection(e){this.disabled()||(e&&e.stopPropagation(),this.inputControl.setValue(""),this.onChange(""),this.onTouched());}writeValue(e){this.inputControl.setValue(e||"",{emitEvent:false});}registerOnChange(e){this.onChange=e;}registerOnTouched(e){this.onTouched=e;}setDisabledState(e){this._disabled.set(e),e?this.inputControl.disable({emitEvent:false}):this.inputControl.enable({emitEvent:false});let i=this.inputElement();i?.nativeElement&&(i.nativeElement.disabled=e);}onBlur(){this.touched||(this.touched=true,this.onTouched()),this.blurEvent.emit();}get showError(){return this.inputControl.invalid&&(this.inputControl.touched||this.touched)}getErrorMessage(){if(this.inputControl.hasError("required"))return this.errorMessage()||"This field is required";if(this.inputControl.hasError("minlength"))return `Minimum length is ${this.minLength()} characters`;if(this.inputControl.hasError("maxlength"))return `Maximum length is ${this.maxLength()} characters`;if(this.inputControl.hasError("pattern")){let e=this.type();return e==="email"?"Please enter a valid email address":e==="url"?"Please enter a valid URL":"Invalid format"}return "Invalid input"}ngOnChanges(e){e.disabled&&this._disabled.set(e.disabled.currentValue);}focus(){let e=this.inputElement();e&&e.nativeElement&&e.nativeElement.focus();}static{this.\u0275fac=function(i){return new(i||n)};}static{this.\u0275cmp=mf({type:n,selectors:[["app-input"]],viewQuery:function(i,t){i&1&&yv(t.inputElement,j$2,5),i&2&&qT();},inputs:{label:[1,"label"],hint:[1,"hint"],type:[1,"type"],placeholder:[1,"placeholder"],minLength:[1,"minLength"],maxLength:[1,"maxLength"],required:[1,"required"],disabled:[1,"disabled"],errorMessage:[1,"errorMessage"],clearable:[1,"clearable"],id:[1,"id"],size:[1,"size"]},outputs:{blurEvent:"blurEvent"},features:[A_([{provide:M$1,useExisting:Qs(()=>n),multi:true}]),Lt$2],decls:9,vars:23,consts:[["inputElement",""],[1,"input-container",3,"id"],[1,"input-label","mb-1.5","font-medium","text-xs","text-gray-700","block","flex","items-center","gap-1"],[1,"input-wrapper"],[3,"blur","type","formControl","disabled"],[1,"eye-icon"],[1,"clear-icon"],[1,"input-hint","text-xs","text-gray-400","mt-1"],[1,"error-message"],[1,"text-red-500","font-bold"],[1,"eye-icon",3,"click"],["width","18","height","18","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"],["x1","1","y1","1","x2","23","y2","23"],["d","M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"],["cx","12","cy","12","r","3"],[1,"clear-icon",3,"click"]],template:function(i,t){i&1&&(qa(0,"div",1),bT(1,Q$2,4,2,"label",2),qa(2,"div",3)(3,"input",4,0),hc("blur",function(){return t.onBlur()}),wf(),mS(),bT(5,J$2,3,2,"span",5),bT(6,K$1,2,0,"span",6),wf(),bT(7,W$2,2,1,"div",7),bT(8,X$2,2,1,"div",8),wf()),i&2&&(Iv("disabled",t._disabled())("invalid",t.showError)("small",t.size()==="small")("medium",t.size()==="medium")("large",t.size()==="large"),cv("id",t.id()),Tb(),ST(t.label()?1:-1),Tb(2),cv("type",t.type()==="password"?t.showPassword()?"text":"password":t.type())("formControl",t.inputControl)("disabled",t._disabled()),dc("placeholder",t.placeholder())("minLength",t.minLength())("maxLength",t.maxLength())("inputmode",t.type()==="email"?"email":t.type()==="url"?"url":"text"),vS(),Tb(2),ST(t.type()==="password"&&!t._disabled()?5:-1),Tb(),ST(t.type()!=="password"&&!t._disabled()&&t.clearable()&&t.inputControl.value?6:-1),Tb(),ST(t.hint()&&!t.showError?7:-1),Tb(),ST(t.showError?8:-1));},dependencies:[qn,Je$1,jn,$n,dn],styles:[".input-container[_ngcontent-%COMP%]{position:relative;width:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}.input-container.small[_ngcontent-%COMP%]   .input-wrapper[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{height:26px;font-size:13px;padding:2px 8px}
8.input-container.medium[_ngcontent-%COMP%]   .input-wrapper[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{height:32px;font-size:14px;padding:4px 11px}.input-container.large[_ngcontent-%COMP%]   .input-wrapper[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{height:40px;font-size:16px;padding:6px 11px}.input-container.disabled[_ngcontent-%COMP%]{opacity:.6}.input-container.disabled[_ngcontent-%COMP%]   .input-wrapper[_ngcontent-%COMP%]{background-color:#00000040}.input-container.disabled[_ngcontent-%COMP%]   .input-wrapper[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{color:#aaa;background-color:transparent;cursor:not-allowed}.input-container.disabled[_ngcontent-%COMP%]   .input-wrapper[_ngcontent-%COMP%]   .clear-icon[_ngcontent-%COMP%]{color:#aaa}.input-container.invalid[_ngcontent-%COMP%]   .input-wrapper[_ngcontent-%COMP%]{border-color:#e6003e}.input-container.invalid[_ngcontent-%COMP%]   .input-wrapper[_ngcontent-%COMP%]:hover, .input-container.invalid[_ngcontent-%COMP%]   .input-wrapper[_ngcontent-%COMP%]:focus-within{border-color:#e6003e;box-shadow:0 0 0 2px #f5222d33}.input-container[_ngcontent-%COMP%]   .input-wrapper[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;background-color:#fff;border:1px solid #d9d9d9;border-radius:8px;overflow:hidden;transition:all .2s ease}.input-container[_ngcontent-%COMP%]   .input-wrapper[_ngcontent-%COMP%]:focus-within{border-color:#f90047;box-shadow:0 0 0 2px #f9004733}.input-container[_ngcontent-%COMP%]   .input-wrapper[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{flex:1;border:none;outline:none;width:100%;background:transparent}.input-container[_ngcontent-%COMP%]   .input-wrapper[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::placeholder{color:#999}.input-container[_ngcontent-%COMP%]   .input-wrapper[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:disabled{cursor:not-allowed;background-color:#f5f5f5;color:#00000040}.input-container[_ngcontent-%COMP%]   .input-wrapper[_ngcontent-%COMP%]   .clear-icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:16px;height:16px;margin-right:8px;color:#999;cursor:pointer;padding:0 12px}.input-container[_ngcontent-%COMP%]   .input-wrapper[_ngcontent-%COMP%]   .clear-icon[_ngcontent-%COMP%]:hover{color:#e6003e}.input-container[_ngcontent-%COMP%]   .input-wrapper[_ngcontent-%COMP%]   .eye-icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:0 12px;color:#777;cursor:pointer;font-size:16px;-webkit-user-select:none;user-select:none;transition:color .2s ease}.input-container[_ngcontent-%COMP%]   .input-wrapper[_ngcontent-%COMP%]   .eye-icon[_ngcontent-%COMP%]:hover{color:#333}.input-container[_ngcontent-%COMP%]   .error-message[_ngcontent-%COMP%]{margin-top:6px;color:#e6003e;font-size:12px;line-height:1.5}"],changeDetection:1});}}return n})();var d=Object.create(null);d.open="0";d.close="1";d.ping="2";d.pong="3";d.message="4";d.upgrade="5";d.noop="6";var C=Object.create(null);Object.keys(d).forEach(r=>{C[d[r]]=r;});var O={type:"error",data:"parser error"};var _e$2=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",be$2=typeof ArrayBuffer=="function",we$2=r=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(r):r&&r.buffer instanceof ArrayBuffer,N=({type:r,data:e},t,s)=>_e$2&&e instanceof Blob?t?s(e):ye$2(e,s):be$2&&(e instanceof ArrayBuffer||we$2(e))?t?s(e):ye$2(new Blob([e]),s):s(d[r]+(e||"")),ye$2=(r,e)=>{let t=new FileReader;return t.onload=function(){let s=t.result.split(",")[1];e("b"+(s||""));},t.readAsDataURL(r)};function ge$1(r){return r instanceof Uint8Array?r:r instanceof ArrayBuffer?new Uint8Array(r):new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}var $;function Ee(r,e){if(_e$2&&r.data instanceof Blob)return r.data.arrayBuffer().then(ge$1).then(e);if(be$2&&(r.data instanceof ArrayBuffer||we$2(r.data)))return e(ge$1(r.data));N(r,false,t=>{$||($=new TextEncoder),e($.encode(t));});}var ke$1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",B$1=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let r=0;r<ke$1.length;
vendor: 4,875 bytes, line 8
8r++)B$1[ke$1.charCodeAt(r)]=r;var ve$1=r=>{let e=r.length*.75,t=r.length,s,i=0,n,o,a,h;r[r.length-1]==="="&&(e--,r[r.length-2]==="="&&e--);let m=new ArrayBuffer(e),p=new Uint8Array(m);for(s=0;s<t;s+=4)n=B$1[r.charCodeAt(s)],o=B$1[r.charCodeAt(s+1)],a=B$1[r.charCodeAt(s+2)],h=B$1[r.charCodeAt(s+3)],p[i++]=n<<2|o>>4,p[i++]=(o&15)<<4|a>>2,p[i++]=(a&3)<<6|h&63;return m};var Xe$1=typeof ArrayBuffer=="function",L$1=(r,e)=>{if(typeof r!="string")return {type:"message",data:Te$1(r,e)};let t=r.charAt(0);return t==="b"?{type:"message",data:Je(r.substring(1),e)}:C[t]?r.length>1?{type:C[t],data:r.substring(1)}:{type:C[t]}:O},Je=(r,e)=>{if(Xe$1){let t=ve$1(r);return Te$1(t,e)}else return {base64:true,data:r}},Te$1=(r,e)=>e==="blob"?r instanceof Blob?r:new Blob([r]):r instanceof ArrayBuffer?r:r.buffer;var xe$2="�",Ae$1=(r,e)=>{let t=r.length,s=new Array(t),i=0;r.forEach((n,o)=>{N(n,false,a=>{s[o]=a,++i===t&&e(s.join(xe$2));});});},Re$1=(r,e)=>{let t=r.split(xe$2),s=[];for(let i=0;i<t.length;i++){let n=L$1(t[i],e);if(s.push(n),n.type==="error")break}return s};function Se$2(){return new TransformStream({transform(r,e){Ee(r,t=>{let s=t.length,i;if(s<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,s);else if(s<65536){i=new Uint8Array(3);let n=new DataView(i.buffer);n.setUint8(0,126),n.setUint16(1,s);}else {i=new Uint8Array(9);let n=new DataView(i.buffer);n.setUint8(0,127),n.setBigUint64(1,BigInt(s));}r.data&&typeof r.data!="string"&&(i[0]|=128),e.enqueue(i),e.enqueue(t);});}})}var Q$1;function U$1(r){return r.reduce((e,t)=>e+t.length,0)}function V(r,e){if(r[0].length===e)return r.shift();let t=new Uint8Array(e),s=0;for(let i=0;i<e;i++)t[i]=r[0][s++],s===r[0].length&&(r.shift(),s=0);return r.length&&s<r[0].length&&(r[0]=r[0].slice(s)),t}function Ce$1(r,e){Q$1||(Q$1=new TextDecoder);let t=[],s=0,i=-1,n=false;return new TransformStream({transform(o,a){for(t.push(o);;){if(s===0){if(U$1(t)<1)break;let h=V(t,1);n=(h[0]&128)===128,i=h[0]&127,i<126?s=3:i===126?s=1:s=2;}else if(s===1){if(U$1(t)<2)break;let h=V(t,2);i=new DataView(h.buffer,h.byteOffset,h.length).getUint16(0),s=3;}else if(s===2){if(U$1(t)<8)break;let h=V(t,8),m=new DataView(h.buffer,h.byteOffset,h.length),p=m.getUint32(0);if(p>Math.pow(2,21)-1){a.enqueue(O);break}i=p*Math.pow(2,32)+m.getUint32(4),s=3;}else {if(U$1(t)<i)break;let h=V(t,i);a.enqueue(L$1(n?h:Q$1.decode(h),e)),s=0;}if(i===0||i>r){a.enqueue(O);break}}}})}var j$1=4;function f(r){if(r)return ze$1(r)}function ze$1(r){for(var e in f.prototype)r[e]=f.prototype[e];return r}f.prototype.on=f.prototype.addEventListener=function(r,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+r]=this._callbacks["$"+r]||[]).push(e),this};f.prototype.once=function(r,e){function t(){this.off(r,t),e.apply(this,arguments);}return t.fn=e,this.on(r,t),this};f.prototype.off=f.prototype.removeListener=f.prototype.removeAllListeners=f.prototype.removeEventListener=function(r,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+r];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+r],this;for(var s,i=0;i<t.length;i++)if(s=t[i],s===e||s.fn===e){t.splice(i,1);break}return t.length===0&&delete this._callbacks["$"+r],this};f.prototype.emit=function(r){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),t=this._callbacks["$"+r],s=1;s<arguments.length;s++)e[s-1]=arguments[s];if(t){t=t.slice(0);for(var s=0,i=t.length;s<i;++s)t[s].apply(this,e);}return this};f.prototype.emitReserved=f.prototype.emit;f.prototype.listeners=function(r){return this._callbacks=this._callbacks||{},this._callbacks["$"+r]||[]};f.prototype.hasListeners=function(r){return !!this.listeners(r).length};var y=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),u=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Oe$2="arraybuffer";function M(r,...e){return e.reduce((t,s)=>(r.hasOwnProperty(s)&&(t[s]=r[s]),t),{})}var $e=u.setTimeout,Qe=u.clearTimeout;function g(r,e){e.useNativeTimers?(r.setTimeoutFn=$e.bind(u),r.clearTimeoutFn=Qe.bind(u)):(r.setTimeoutFn=u.setTimeout.bind(u),r.clearTimeoutFn=u.clearTimeout.bind(u));}var je=1.33;function Ne$1(r){return typeof r=="string"?Ge(r):Math.ceil((r.byteLength||r.size)*je)}function Ge(r){let e=0,t=0;for(let s=0,i=r.length;s<i;s++)e=r.charCodeAt(s),e<128?t+=1:e<2048?t+=2:e<55296||e>=57344?t+=3:(s++,t+=4);return t}function H(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Be(r){let e="";for(let t in r)r.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(r[t]));return e}function Le$1(r){let e={},t=r.split("&");for(let s=0,i=t.length;s<i;s++){let n=t[s].split("=");e[decodeURIComponent(n[0])]=decodeURIComponent(n[1]);}return e}
8var W$1=class W extends Error{constructor(e,t,s){super(e),this.description=t,this.context=s,this.type="TransportError";}},_=class extends f{constructor(e){super(),this.writable=false,g(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64;}onError(e,t,s){return super.emitReserved("error",new W$1(e,t,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return (this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e);}onOpen(){this.readyState="open",this.writable=true,super.emitReserved("open");}onData(e){let t=L$1(e,this.socket.binaryType);this.onPacket(t);}onPacket(e){super.emitReserved("packet",e);}onClose(e){this.readyState="closed",super.emitReserved("close",e);}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){let t=Be(e);return t.length?"?"+t:""}};var P=class extends _{constructor(){super(...arguments),this._polling=false;}get name(){return "polling"}doOpen(){this._poll();}pause(e){this.readyState="pausing";let t=()=>{this.readyState="paused",e();};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||t();})),this.writable||(s++,this.once("drain",function(){--s||t();}));}else t();}_poll(){this._polling=true,this.doPoll(),this.emitReserved("poll");}onData(e){let t=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),false;this.onPacket(s);};Re$1(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=false,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll());}doClose(){let e=()=>{this.write([{type:"close"}]);};this.readyState==="open"?e():this.once("open",e);}write(e){this.writable=false,Ae$1(e,t=>{this.doWrite(t,()=>{this.writable=true,this.emitReserved("drain");});});}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==false&&(t[this.opts.timestampParam]=H()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}};var Pe$2=false;try{Pe$2=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest;}catch{}var qe$1=Pe$2;function Ze$1(){}var G=class extends P{constructor(e){if(super(e),typeof location<"u"){let t=location.protocol==="https:",s=location.port;s||(s=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||s!==e.port;}}doWrite(e,t){let s=this.request({method:"POST",data:e});s.on("success",t),s.on("error",(i,n)=>{this.onError("xhr post error",i,n);});}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,s)=>{this.onError("xhr poll error",t,s);}),this.pollXhr=e;}},K=(()=>{class r extends f{constructor(t,s,i){super(),this.createRequest=t,g(this,i),this._opts=i,this._method=i.method||"GET",this._uri=s,this._data=i.data!==void 0?i.data:null,this._create();}_create(){var t;let s=M(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");s.xdomain=!!this._opts.xd;let i=this._xhr=this.createRequest(s);try{i.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0);for(let n in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(n)&&i.setRequestHeader(n,this._opts.extraHeaders[n]);}}catch{}if(this._method==="POST")try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8");}catch{}try{i.setRequestHeader("Accept","*/*");}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(i),"withCredentials"in i&&(i.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(i.timeout=this._opts.requestTimeout),i.onreadystatechange=()=>{var n;i.readyState===3&&((n=this._opts.cookieJar)===null||n===void 0||n.parseCookies(i.getResponseHeader("set-cookie"))),i.readyState===4&&(i.status===200||i.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof i.status=="number"?i.status:0);},0));},i.send(this._data);}catch(n){this.setTimeoutFn(()=>{this._onError(n);},0);return}typeof document<"u"&&(this._index=r.requestsCount++,r.requests[this._index]=this);}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(true);}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Ze$1,t)try{this._xhr.abort();}catch{}typeof document<"u"&&delete r.requests[this._index],this._xhr=null;}}_onLoad(){let t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup());}abort(){this._cleanup();}}return r.requestsCount=0,r.requests={},r})();if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",De$1);else if(typeof addEventListener=="function"){let r="onpagehide"in u?"pagehide":"unload";addEventListener(r,De$1,false);}}function De$1(){for(let r in K.requests)K.requests.hasOwnProperty(r)&&K.requests[r].abort();}var et$1=(function(){let r=Ie$1({xdomain:false});return r&&r.responseType!==null})(),w=class extends G{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=et$1&&!t;}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new K(Ie$1,this.uri(),e)}};function Ie$1(r){let e=r.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||qe$1))return new XMLHttpRequest}catch{}if(!e)try{return new u[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var Fe$1=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",ee=class extends _{get name(){return "websocket"}doOpen(){let e=this.uri(),t=this.opts.protocols,s=Fe$1?{}:M(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,s);}catch(i){return this.emitReserved("error",i)}
8this.ws.binaryType=this.socket.binaryType,this.addEventListeners();}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen();},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e);}write(e){this.writable=false;for(let t=0;t<e.length;t++){let s=e[t],i=t===e.length-1;N(s,this.supportsBinary,n=>{try{this.doWrite(s,n);}catch{}i&&y(()=>{this.writable=true,this.emitReserved("drain");},this.setTimeoutFn);});}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null);}uri(){let e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=H()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}},Z=u.WebSocket||u.MozWebSocket,E=class extends ee{createSocket(e,t,s){return Fe$1?new Z(e,t,s):t?new Z(e,t):new Z(e)}doWrite(e,t){this.ws.send(t);}};var v=class extends _{get name(){return "webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]);}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose();}).catch(e=>{this.onError("webtransport error",e);}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let t=Ce$1(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(t).getReader(),i=Se$2();i.readable.pipeTo(e.writable),this._writer=i.writable.getWriter();let n=()=>{s.read().then(({done:a,value:h})=>{a||(this.onPacket(h),n());}).catch(a=>{});};n();let o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen());});});}write(e){this.writable=false;for(let t=0;t<e.length;t++){let s=e[t],i=t===e.length-1;this._writer.write(s).then(()=>{i&&y(()=>{this.writable=true,this.emitReserved("drain");},this.setTimeoutFn);});}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close();}};var te$1={websocket:E,webtransport:v,polling:w};var tt$1=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,st$1=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function T(r){if(r.length>8e3)throw "URI too long";let e=r,t=r.indexOf("["),s=r.indexOf("]");t!=-1&&s!=-1&&(r=r.substring(0,t)+r.substring(t,s).replace(/:/g,";")+r.substring(s,r.length));let i=tt$1.exec(r||""),n={},o=14;for(;o--;)n[st$1[o]]=i[o]||"";return t!=-1&&s!=-1&&(n.source=e,n.host=n.host.substring(1,n.host.length-1).replace(/;/g,":"),n.authority=n.authority.replace("[","").replace("]","").replace(/;/g,":"),n.ipv6uri=true),n.pathNames=rt$1(n,n.path),n.queryKey=it$1(n,n.query),n}function rt$1(r,e){let t=/\/{2,9}/g,s=e.replace(t,"/").split("/");return (e.slice(0,1)=="/"||e.length===0)&&s.splice(0,1),e.slice(-1)=="/"&&s.splice(s.length-1,1),s}function it$1(r,e){let t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,i,n){i&&(t[i]=n);}),t}var se$1=typeof addEventListener=="function"&&typeof removeEventListener=="function",Y$1=[];se$1&&addEventListener("offline",()=>{Y$1.forEach(r=>r());},false);var X$1=(()=>{class r extends f{constructor(t,s){if(super(),this.binaryType=Oe$2,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(s=t,t=null),t){let i=T(t);s.hostname=i.host,s.secure=i.protocol==="https"||i.protocol==="wss",s.port=i.port,i.query&&(s.query=i.query);}else s.host&&(s.hostname=T(s.host).host);g(this,s),this.secure=s.secure!=null?s.secure:typeof location<"u"&&location.protocol==="https:",s.hostname&&!s.port&&(s.port=this.secure?"443":"80"),this.hostname=s.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=s.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={}
8,s.transports.forEach(i=>{let n=i.prototype.name;this.transports.push(n),this._transportsByName[n]=i;}),this.opts=Object.assign({path:"/engine.io",agent:false,withCredentials:false,upgrade:true,timestampParam:"t",rememberUpgrade:false,addTrailingSlash:true,rejectUnauthorized:true,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:false},s),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Le$1(this.opts.query)),se$1&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close());},addEventListener("beforeunload",this._beforeunloadEventListener,false)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"});},Y$1.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open();}createTransport(t){let s=Object.assign({},this.opts.query);s.EIO=j$1,s.transport=t,this.id&&(s.sid=this.id);let i=Object.assign({},this.opts,{query:s,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](i)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available");},0);return}let t=this.opts.rememberUpgrade&&r.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let s=this.createTransport(t);s.open(),this.setTransport(s);}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",s=>
8this._onClose("transport close",s));}onOpen(){this.readyState="open",r.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush();}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case "open":this.onHandshake(JSON.parse(t.data));break;case "ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case "error":let s=new Error("server error");s.code=t.data,this._onError(s);break;case "message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout();}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout");},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref();}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush();}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush");}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let s=1;for(let i=0;i<this.writeBuffer.length;i++){let n=this.writeBuffer[i].data;if(n&&(s+=Ne$1(n)),i>0&&s>this._maxPayload)return this.writeBuffer.slice(0,i);s+=2;}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return  true;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,y(()=>{this._onClose("ping timeout");},this.setTimeoutFn)),t}write(t,s,i){return this._sendPacket("message",t,s,i),this}send(t,s,i){return this._sendPacket("message",t,s,i),this}_sendPacket(t,s,i,n){if(typeof s=="function"&&(n=s,s=void 0),typeof i=="function"&&(n=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==false;let o={type:t,data:s,options:i};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),n&&this.once("flush",n),this.flush();}close(){let t=()=>{this._onClose("forced close"),this.transport.close();},s=()=>{this.off("upgrade",s),this.off("upgradeError",s),t();},i=()=>{this.once("upgrade",s),this.once("upgradeError",s);};return (this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():t();}):this.upgrading?i():t()),this}_onError(t){if(r.priorWebsocketSuccess=false,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t);}_onClose(t,s){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),se$1&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,false),this._offlineEventListener)){let i=Y$1.indexOf(this._offlineEventListener);i!==-1&&Y$1.splice(i,1);}this.readyState="closed",this.id=null,this.emitReserved("close",t,s),this.writeBuffer=[],this._prevBufferLen=0;}}}return r.protocol=j$1,r})(),J$1=class J extends X$1{constructor(){super(...arguments),this._upgrades=[];}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e]);}_probe(e){let t=this.createTransport(e),s=false;X$1.priorWebsocketSuccess=false;let i=()=>{s||(t.send([{type:"ping",data:"probe"}]),t.once("packet",b=>{if(!s)if(b.type==="pong"&&b.data==="probe"){if(this.upgrading=true,this.emitReserved("upgrading",t),!t)return;X$1.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(p(),this.setTransport(t),t.send([{type:"upgrade"}
8]),this.emitReserved("upgrade",t),t=null,this.upgrading=false,this.flush());});}else {let S=new Error("probe error");S.transport=t.name,this.emitReserved("upgradeError",S);}}));};function n(){s||(s=true,p(),t.close(),t=null);}let o=b=>{let S=new Error("probe error: "+b);S.transport=t.name,n(),this.emitReserved("upgradeError",S);};function a(){o("transport closed");}function h(){o("socket closed");}function m(b){t&&b.name!==t.name&&n();}let p=()=>{t.removeListener("open",i),t.removeListener("error",o),t.removeListener("close",a),this.off("close",h),this.off("upgrading",m);};t.once("open",i),t.once("error",o),t.once("close",a),this.once("close",h),this.once("upgrading",m),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{s||t.open();},200):t.open();}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e);}_filterUpgrades(e){let t=[];for(let s=0;s<e.length;s++)~this.transports.indexOf(e[s])&&t.push(e[s]);return t}},x=class extends J$1{constructor(e,t={}){let s=typeof e=="object"?e:t;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(i=>te$1[i]).filter(i=>!!i)),super(e,s);}};function Ue(r,e="",t){let s=r;t=t||typeof location<"u"&&location,r==null&&(r=t.protocol+"//"+t.host),typeof r=="string"&&(r.charAt(0)==="/"&&(r.charAt(1)==="/"?r=t.protocol+r:r=t.host+r),/^(https?|wss?):\/\//.test(r)||(typeof t<"u"?r=t.protocol+"//"+r:r="https://"+r),s=T(r)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";let n=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+n+":"+s.port+e,s.href=s.protocol+"://"+n+(t&&t.port===s.port?"":":"+s.port),s}var ae$1={};o(ae$1,{Decoder:()=>oe,Encoder:()=>ne$1,PacketType:()=>c,protocol:()=>Ke});var ot$1=typeof ArrayBuffer=="function",ct$1=r=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(r):r.buffer instanceof ArrayBuffer,Ve$1=Object.prototype.toString,at$1=typeof Blob=="function"||typeof Blob<"u"&&Ve$1.call(Blob)==="[object BlobConstructor]",ht$1=typeof File=="function"||typeof File<"u"&&Ve$1.call(File)==="[object FileConstructor]";function D(r){return ot$1&&(r instanceof ArrayBuffer||ct$1(r))||at$1&&r instanceof Blob||ht$1&&r instanceof File}function q(r,e){if(!r||typeof r!="object")return  false;if(Array.isArray(r)){for(let t=0,s=r.length;t<s;t++)if(q(r[t]))return  true;return  false}if(D(r))return  true;if(r.toJSON&&typeof r.toJSON=="function"&&arguments.length===1)return q(r.toJSON(),true);for(let t in r)if(Object.prototype.hasOwnProperty.call(r,t)&&q(r[t]))return  true;return  false}function Me$2(r){let e=[],t=r.data,s=r;return s.data=re$1(t,e),s.attachments=e.length,{packet:s,buffers:e}}function re$1(r,e){if(!r)return r;if(D(r)){let t={_placeholder:true,num:e.length};return e.push(r),t}else if(Array.isArray(r)){let t=new Array(r.length);for(let s=0;s<r.length;s++)t[s]=re$1(r[s],e);return t}else if(typeof r=="object"&&!(r instanceof Date)){let t={};
vendor: 14,151 bytes, line 8
8for(let s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=re$1(r[s],e));return t}return r}function He(r,e){return r.data=ie$1(r.data,e),delete r.attachments,r}function ie$1(r,e){if(!r)return r;if(r&&r._placeholder===true){if(typeof r.num=="number"&&r.num>=0&&r.num<e.length)return e[r.num];throw new Error("illegal attachments")}else if(Array.isArray(r))for(let t=0;t<r.length;t++)r[t]=ie$1(r[t],e);else if(typeof r=="object")for(let t in r)Object.prototype.hasOwnProperty.call(r,t)&&(r[t]=ie$1(r[t],e));return r}var ft$1=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Ke=5,c=(function(r){return r[r.CONNECT=0]="CONNECT",r[r.DISCONNECT=1]="DISCONNECT",r[r.EVENT=2]="EVENT",r[r.ACK=3]="ACK",r[r.CONNECT_ERROR=4]="CONNECT_ERROR",r[r.BINARY_EVENT=5]="BINARY_EVENT",r[r.BINARY_ACK=6]="BINARY_ACK",r})(c||{}),ne$1=class ne{constructor(e){this.replacer=e;}encode(e){return (e.type===c.EVENT||e.type===c.ACK)&&q(e)?this.encodeAsBinary({type:e.type===c.EVENT?c.BINARY_EVENT:c.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return (e.type===c.BINARY_EVENT||e.type===c.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t=Me$2(e),s=this.encodeAsString(t.packet),i=t.buffers;return i.unshift(s),i}};function We(r){return Object.prototype.toString.call(r)==="[object Object]"}var oe=class r extends f{constructor(e){super(),this.reviver=e;}add(e){let t;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);let s=t.type===c.BINARY_EVENT;s||t.type===c.BINARY_ACK?(t.type=s?c.EVENT:c.ACK,this.reconstructor=new ce$1(t),t.attachments===0&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t);}else if(D(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let t=0,s={type:Number(e.charAt(0))};if(c[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===c.BINARY_EVENT||s.type===c.BINARY_ACK){let n=t+1;for(;e.charAt(++t)!=="-"&&t!=e.length;);let o=e.substring(n,t);if(o!=Number(o)||e.charAt(t)!=="-")throw new Error("Illegal attachments");s.attachments=Number(o);}if(e.charAt(t+1)==="/"){let n=t+1;for(;++t&&!(e.charAt(t)===","||t===e.length););s.nsp=e.substring(n,t);}else s.nsp="/";let i=e.charAt(t+1);if(i!==""&&Number(i)==i){let n=t+1;for(;++t;){let o=e.charAt(t);if(o==null||Number(o)!=o){--t;break}if(t===e.length)break}s.id=Number(e.substring(n,t+1));}if(e.charAt(++t)){let n=this.tryParse(e.substr(t));if(r.isPayloadValid(s.type,n))s.data=n;else throw new Error("invalid payload")}return s}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return  false}}static isPayloadValid(e,t){switch(e){case c.CONNECT:return We(t);case c.DISCONNECT:return t===void 0;case c.CONNECT_ERROR:return typeof t=="string"||We(t);case c.EVENT:case c.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&ft$1.indexOf(t[0])===-1);case c.ACK:case c.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null);}},ce$1=class ce{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e;}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let t=He(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[];}};function l(r,e,t){return r.on(e,t),function(){r.off(e,t);}}var ut$1=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),A=class extends f{constructor(e,t,s){super(),this.connected=false,this.recovered=false,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open();}get disconnected(){return !this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[l(e,"open",this.onopen.bind(this)),l(e,"packet",this.onpacket.bind(this)),l(e,"error",this.onerror.bind(this)),l(e,"close",this.onclose.bind(this))];}get active(){return !!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var s,i,n;if(ut$1.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let o={type:c.EVENT,data:t};if(o.options={},o.options.compress=this.flags.compress!==false,typeof t[t.length-1]=="function"){let p=this.ids++,b=t.pop();this._registerAckCallback(p,b),o.id=p;}let a=(i=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||i===void 0?void 0:i.writable,h=this.connected&&!(!((n=this.io.engine)===null||n===void 0)&&n._hasPingExpired());return this.flags.volatile&&!a||(h?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(e,t){var s;let i=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(i===void 0){this.acks[e]=t;return}let n=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===e&&this.sendBuffer.splice(a,1);t.call(this,new Error("operation has timed out"));},i),o=(...a)=>{this.io.clearTimeoutFn(n),t.apply(this,a);};o.withError=true,this.acks[e]=o;}emitWithAck(e,...t){return new Promise((s,i)=>{let n=(o,a)=>o?i(o):s(a);n.withError=true,t.push(n),this.emit(e,...t);})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());let s={id:this._queueSeq++,tryCount:0,pending:false,args:e,flags:Object.assign({fromQueue:true},this.flags)};e.push((i,...n)=>s!==this._queue[0]?void 0:(i!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(i)):(this._queue.shift(),t&&t(null,...n)),s.pending=false,this._drainQueue())),this._queue.push(s),this._drainQueue();}_drainQueue(e=false){if(!this.connected||this._queue.length===0)return;let t=this._queue[0];t.pending&&!e||(t.pending=true,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args));}packet(e){e.nsp=this.nsp,this.io._packet(e);}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e);}):this._sendConnectPacket(this.auth);}_sendConnectPacket(e){this.packet({type:c.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e});}onerror(e){this.connected||this.emitReserved("connect_error",e);}onclose(e,t){this.connected=false,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks();}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(s=>String(s.id)===e)){let s=this.acks[e];delete this.acks[e],s.withError&&s.call(this,new Error("socket has been disconnected"));}});}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case c.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case c.EVENT:case c.BINARY_EVENT:this.onevent(e);break;case c.ACK:case c.BINARY_ACK:this.onack(e);break;case c.DISCONNECT:this.ondisconnect();break;case c.CONNECT_ERROR:this.destroy();let s=new Error(e.data.message);s.data=e.data.data,this.emitReserved("connect_error",s);break}}onevent(e){let t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t));}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let t=this._anyListeners.slice();for(let s of t)s.apply(this,e);}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1]);}ack(e){let t=this,s=false;return function(...i){s||(s=true,t.packet({type:c.ACK,id:e,data:i}));}}onack(e){let t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data));}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=true,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(true);}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e);}),this.sendBuffer=[];}ondisconnect(){this.destroy(),this.onclose("io server disconnect");}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this);}disconnect(){return this.connected&&this.packet({type:c.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=true,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let s=0;s<t.length;s++)if(e===t[s])return t.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let s=0;s<t.length;s++)if(e===t[s])return t.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let t=this._anyOutgoingListeners.slice();for(let s of t)s.apply(this,e.data);}}};function k(r){r=r||{},this.ms=r.min||100,this.max=r.max||1e4,this.factor=r.factor||2,this.jitter=r.jitter>0&&r.jitter<=1?r.jitter:0,this.attempts=0;}k.prototype.duration=function(){var r=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*r);r=(Math.floor(e*10)&1)==0?r-t:r+t;}return Math.min(r,this.max)|0};k.prototype.reset=function(){this.attempts=0;};k.prototype.setMin=function(r){this.ms=r;};k.prototype.setMax=function(r){this.max=r;};k.prototype.setJitter=function(r){this.jitter=r;};var R=class extends f{constructor(e,t){var s;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,g(this,t),this.reconnection(t.reconnection!==false),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((s=t.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new k({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;let i=t.parser||ae$1;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=t.autoConnect!==false,this._autoConnect&&this.open();}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=true),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect();}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new x(this.uri,this.opts);let t=this.engine,s=this;this._readyState="opening",this.skipReconnect=false;let i=l(t,"open",function(){s.onopen(),e&&e();}),n=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen();},o=l(t,"error",n);if(this._timeout!==false){let a=this._timeout,h=this.setTimeoutFn(()=>{i(),n(new Error("timeout")),t.close();},a);this.opts.autoUnref&&h.unref(),this.subs.push(()=>{this.clearTimeoutFn(h);});}return this.subs.push(i),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(l(e,"ping",this.onping.bind(this)),l(e,"data",this.ondata.bind(this)),l(e,"error",this.onerror.bind(this)),l(e,"close",this.onclose.bind(this)),l(this.decoder,"decoded",this.ondecoded.bind(this)));}onping(){this.emitReserved("ping");}ondata(e){try{this.decoder.add(e);}catch(t){this.onclose("parse error",t);}}ondecoded(e){y(()=>{this.emitReserved("packet",e);},this.setTimeoutFn);}onerror(e){this.emitReserved("error",e);}socket(e,t){let s=this.nsps[e];return s?this._autoConnect&&!s.active&&s.connect():(s=new A(this,e,t),this.nsps[e]=s),s}_destroy(e){let t=Object.keys(this.nsps);for(let s of t)if(this.nsps[s].active)return;this._close();}_packet(e){let t=this.encoder.encode(e);for(let s=0;s<t.length;
8s++)this.engine.write(t[s],e.options);}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy();}_close(){this.skipReconnect=true,this._reconnecting=false,this.onclose("forced close");}disconnect(){return this._close()}onclose(e,t){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect();}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=false;else {let t=this.backoff.duration();this._reconnecting=true;let s=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(i=>{i?(e._reconnecting=false,e.reconnect(),this.emitReserved("reconnect_error",i)):e.onreconnect();}));},t);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s);});}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=false,this.backoff.reset(),this.emitReserved("reconnect",e);}};var I={};function F(r,e){typeof r=="object"&&(e=r,r=void 0),e=e||{};let t=Ue(r,e.path||"/socket.io"),s=t.source,i=t.id,n=t.path,o=I[i]&&n in I[i].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===false||o,h;return a?h=new R(s,e):(I[i]||(I[i]=new R(s,e)),h=I[i]),t.query&&!e.query&&(e.query=t.queryKey),h.socket(t.path,e)}Object.assign(F,{Manager:R,Socket:A,io:F,connect:F});var ar$1=(()=>{class r{constructor(){this.appState=p$1(b),this.socketIn=oe$2(null),this.socket=Ri$1(()=>this.socketIn()),this.isConnected=oe$2(false),this.MAX_RECONNECT_ATTEMPTS=3,this.RECONNECT_DELAY=2e3,this.connectionAttempts=0,this.currentStoreId=null,Ag(()=>{let t=this.appState.defaultStore();Z$4(()=>{t?.id?this.connect(t.id):this.disconnect();});});}connect(t){if(this.currentStoreId===t&&this.socketIn())return;this.disconnect(),this.currentStoreId=t;let s=F(a$1.webSocket+"chat",{query:{storeId:t},transports:["websocket","polling"],reconnection:true,reconnectionAttempts:this.MAX_RECONNECT_ATTEMPTS,reconnectionDelay:this.RECONNECT_DELAY,timeout:1e4,forceNew:true,withCredentials:true});s.on("connect",()=>{this.isConnected.set(true),this.connectionAttempts=0,s.emit("join",t);}),s.on("disconnect",i=>{this.isConnected.set(false),i==="io server disconnect"&&this.connect(t);}),s.on("connect_error",i=>{this.isConnected.set(false);}),this.socketIn.set(s);}ngOnDestroy(){this.disconnect();}disconnect(){this.socketIn()&&(this.socketIn()?.disconnect(),this.socketIn.set(null)),this.currentStoreId=null,this.isConnected.set(false);}static{this.\u0275fac=function(s){return new(s||r)};}static{this.\u0275prov=S$4({token:r,factory:r.\u0275fac,providedIn:"root"});}}return r})();
9var U=(()=>{class a{getCurrentStoreId(){return this.currentStoreId()}constructor(){this.http=p$1(JD),this.socketService=p$1(ar$1),this.appState=p$1(b),this.notificationsSignal=oe$2([]),this.notifications=Ri$1(()=>this.notificationsSignal()),this.dropdownNotifications=Ri$1(()=>{let t=this.notificationsSignal()||[],e=new Date;return e.setDate(e.getDate()-1),t.filter(i=>!i.isRead||new Date(i.createdAt)>=e)}),this.currentPage=oe$2(1),this.hasMore=oe$2(true),this.totalCount=oe$2(0),this.loading=oe$2(false),this.unreadCountSignal=oe$2(0),this.unreadCount=Ri$1(()=>this.unreadCountSignal()),this.currentStoreId=oe$2(null),this.API_URL=a$1.baseURL+"notification",T$4(this.appState.defaultStore).subscribe(t=>{t?.id?(this.currentStoreId.set(t.id),this.loadNotifications(t.id),this.loadUnreadCount(t.id)):(this.currentStoreId.set(null),this.notificationsSignal.set([]),this.unreadCountSignal.set(0));}),Ag(()=>{let t=this.socketService.socket();t&&this.socketService.isConnected()&&this.setupListeners(t);});}setupListeners(t){t.off("notification:new"),t.on("notification:new",e=>{let i=this.currentStoreId();i&&e.storeId===i&&this.handleNewNotification(e);});}handleNewNotification(t){this.notificationsSignal.update(e=>[t,...e]),this.unreadCountSignal.update(e=>e+1);}loadNotifications(t,e=1,i=false){this.loading()||(this.loading.set(true),this.http.get(`${this.API_URL}
9/store/${t}`,{params:{page:e.toString(),limit:"20"}}).subscribe({next:n=>{let s=n?.data||n,l=s?.items||[];i?this.notificationsSignal.update(v=>[...v||[],...l]):this.notificationsSignal.set(l),this.totalCount.set(s?.total??0),this.currentPage.set(s?.page??1),this.hasMore.set((this.notificationsSignal()?.length??0)<(s?.total??0)),this.loading.set(false);},error:n=>{this.loading.set(false);}}));}loadMore(){this.hasMore()&&!this.loading()&&this.currentStoreId()&&this.loadNotifications(this.currentStoreId(),this.currentPage()+1,true);}loadUnreadCount(t){this.http.get(`${this.API_URL}/store/unread-count/${t}`).subscribe({next:e=>{let i=e?.data?.count??e?.count??0;this.unreadCountSignal.set(i);}});}markAsRead(t){return this.http.patch(`${this.API_URL}/markAsRead/${t}`,{}).pipe(ze$3(()=>{this.notificationsSignal.update(i=>i.map(n=>n.id===t&&!n.isRead?m$2(l$1({},n),{isRead:true}):n));let e=this.currentStoreId();e&&this.loadUnreadCount(e);}))}markAllAsRead(){let t=this.currentStoreId();if(t)return this.http.patch(`${this.API_URL}/store/markAllAsRead/${t}`,{}).pipe(ze$3(()=>{this.notificationsSignal.update(e=>e.map(i=>m$2(l$1({},i),{isRead:true}))),this.unreadCountSignal.set(0);}))}static{this.\u0275fac=function(e){return new(e||a)};}static{this.\u0275prov=S$4({token:a,factory:a.\u0275fac,providedIn:"root"});}}return a})();var L=(()=>{class d{constructor(){this.httpClient=p$1(JD),this.baseURL=a$1.baseURL,this.locationUrl=a$1.locationUrl,this.bastURL="https://api.naiya.ng/";}getAllCategoriesAndSubCategories(){return this.httpClient.get(`${this.baseURL}categories/allCategoriesAndSubCategories`).pipe(B$3(t=>{let e=t?.data||t||[];if(Array.isArray(e)){let a=e.map(r=>m$2(l$1({},r),{subCategories:Array.isArray(r.subCategories)?[...r.subCategories].sort((s,n)=>(s.name||"").localeCompare(n.name||"",void 0,{sensitivity:"base"})):[]})).sort((r,s)=>(r.name||"").localeCompare(s.name||"",void 0,{sensitivity:"base"}));return t?.data?m$2(l$1({},t),{data:a}):a}return t}))}getCategoriesAndSubCategoriesWithoutFields(){return this.httpClient.get(`${this.baseURL}categories/categoriesAndSubCategoriesWithoutFields`).pipe(B$3(t=>{let e=t?.data||t||[];if(Array.isArray(e)){let a=e.map(r=>m$2(l$1({},r),{subCategories:Array.isArray(r.subCategories)?[...r.subCategories].sort((s,n)=>(s.name||"").localeCompare(n.name||"",void 0,{sensitivity:"base"})):[]})).sort((r,s)=>(r.name||"").localeCompare(s.name||"",void 0,{sensitivity:"base"}));return t?.data?m$2(l$1({},t),{data:a}):a}return t}))}getCategoryById(t,e=false){return this.httpClient.get(`${this.baseURL}categories/getCategoriesById/${t}?includeSubcategory=${e}`)}getLocations(){return this.httpClient.get(`${this.locationUrl}`)}getGroupedLocations(){return this.httpClient.get(`${this.locationUrl}/grouped`)}getLocationById(t){return this.httpClient.get(`${this.locationUrl}/${t}`).pipe(B$3(e=>e.data??e))}getNearestLocation(t,e){return this.httpClient.get(`${this.locationUrl}/nearest?lat=${t}&lng=${e}`).pipe(B$3(a=>a.data??a))}getLocationChildren(t){return this.httpClient.get(`${this.locationUrl}/${t}/children`).pipe(B$3(e=>e.data||e))}createAd(t){return this.httpClient.post(`${this.baseURL}ad/createAd`,t).pipe(B$3(e=>e.data))}createOrReuseDraftAd(t){return this.httpClient.post(`${this.baseURL}ad/createDraft`,{storeId:t}).pipe(B$3(e=>e.data??e))}createSimpleAd(t,e){let a=new FormData;return t.forEach(r=>{a.append("images",r.file);}),a.append("storeId",e.storeId),a.append("subCategorySlug",e.subCategorySlug),this.httpClient.post(`${this.baseURL}ad/createSimpleAd`,a,{reportProgress:true,observe:"events"})}publishAd(t){return this.httpClient.put(`${this.baseURL}ad/publishAndUnPublishAd`,t).pipe(B$3(e=>e.data))}getAdDetailsById(t){return this.httpClient.get(`${this.baseURL}ad/getAd/${t}`).pipe(B$3(e=>e.data))}updateImageDetails(t){return this.httpClient.post(`${this.baseURL}ad/updateImageDetails`,t).pipe(B$3(e=>e.data))}deleteAdImage(t){return this.httpClient.delete(`${this.baseURL}ad/deleteAdImage`,{body:t}).pipe(B$3(e=>e.data))}deleteAdVideo(t){return this.httpClient.delete(`${this.baseURL}ad/deleteAdVideo`,{body:t}).pipe(B$3(e=>e.data))}
9generateAdDetailsFromImages(t){return this.httpClient.post(`${this.baseURL}ad/generate-from-images`,t).pipe(B$3(e=>e.data))}updateImage(t,e){let a=new FormData;return a.append("adId",e),t.forEach(r=>{a.append("images",r,r.name);}),this.httpClient.post(`${this.baseURL}ad/uploadAdImage`,a).pipe(B$3(r=>r.data))}getAllAds(){return this.httpClient.get(`${this.baseURL}ad/getAllAds`).pipe(B$3(t=>t.data))}getAllStoreAds(t,e=1,a=12,r="",s=""){let n=`?page=${e}&limit=${a}`;return r&&(n+=`&status=${r}`),s&&(n+=`&title=${s}`),this.httpClient.get(`${this.baseURL}store/getAllStoreAds/${t}${n}`).pipe(B$3(b=>b))}getAdById(t){return this.httpClient.get(`${this.baseURL}ad/getAd/${t}`).pipe(B$3(e=>e.data))}updateAds(t,e){return this.httpClient.put(`${this.baseURL}ad/update/${e}`,t).pipe(B$3(a=>a.data))}updateAdsImages(t,e){return this.httpClient.put(`${this.baseURL}ad/${e}/images`,t).pipe(B$3(a=>a.data))}deleteAd(t){return this.httpClient.delete(`${this.baseURL}ad/delete/${t}`).pipe(B$3(e=>e.data))}uploadAdImage(t,e,a=false){return e.append("adId",t),a?this.httpClient.post(`${this.baseURL}ad/uploadAdImage`,e,{reportProgress:true,observe:"events"}):this.httpClient.post(`${this.baseURL}ad/uploadAdImage`,e).pipe(B$3(r=>r))}uploadAdVideo(t,e){return this.httpClient.post(`${this.baseURL}ad/uploadAdVideo/${t}`,e,{reportProgress:true,observe:"events"}).pipe(B$3(a=>a))}getCustomerViewedAds(t,e){return this.httpClient.get(`${this.baseURL}ad/customer-viewed?userId=${t}&storeId=${e}`).pipe(B$3(a=>a.data))}static{this.\u0275fac=function(e){return new(e||d)};}static{this.\u0275prov=S$4({token:d,factory:d.\u0275fac,providedIn:"root"});}}return d})();
10var le=["searchInput"],se=["selectDisplay"],ce=["modalContent"];function ae(i,a){if(i&1&&(qa(0,"span",12),v_(1),wf()),i&2){let e=a.$implicit;Tb(),Rv(e);}}function re(i,a){if(i&1&&(qa(0,"div",6),MT(1,ae,2,1,"span",12,_T),wf()),i&2){let e=HT();Tb(),NT(e.getSelectedLabels());}}function de(i,a){i&1&&(qa(0,"span",13),v_(1,"*"),wf());}function pe(i,a){if(i&1&&(qa(0,"span"),v_(1),bT(2,de,2,0,"span",13),wf()),i&2){let e=HT();Tb(),Nf(" ",e.getDisplayValue()," "),Tb(),ST(e.required()?2:-1);}}function he$1(i,a){if(i&1){let e=PT();qa(0,"span",14),hc("click",function(n){lg(e);let c=HT();return dg(c.clearSelection(n))}),v_(1,"\u2715"),wf();}}function ue(i,a){if(i&1&&(qa(0,"div",10),v_(1),wf()),i&2){let e=HT();Tb(),Nf(" ",e.errorMessage()," ");}}function ge(i,a){if(i&1){let e=PT();qa(0,"button",29),hc("click",function(){lg(e);let n=HT(2);return dg(n.closeModal())}),qa(1,"span",30),v_(2,"\u2190"),wf()();}}function _e$1(i,a){if(i&1&&(qa(0,"div",19),fc(1,"input",31,2),mS(),qa(3,"span",32),v_(4,"\u{1F50D}"),wf()()),i&2){let e=HT(2);Tb(),cv("formControl",e.searchControl),vS();}}function me(i,a){i&1&&(qa(0,"div",20)(1,"h3",33),v_(2,"Select an option"),wf()());}function Ce(i,a){if(i&1&&(qa(0,"span",39),fc(1,"img",41),wf()),i&2){let e=HT().$implicit,t=HT(3);Tb(),cv("src",e.imageUrl,sy),dc("title",typeof e=="string"?e:e[t.displayKey()]);}}function fe(i,a){i&1&&(qa(0,"span",42),v_(1,"\u2713"),wf());}function Oe$1(i,a){if(i&1&&(qa(0,"span",40),bT(1,fe,2,0,"span",42),wf()),i&2){let e=HT().$implicit,t=HT(3);Tb(),ST(t.isOptionSelected(e)?1:-1);}}function be$1(i,a){if(i&1){let e=PT();qa(0,"button",38),hc("click",function(){let n=lg(e).$implicit,c=HT(3);return dg(c.selectOption(n))}),bT(1,Ce,2,2,"span",39),bT(2,Oe$1,2,1,"span",40),v_(3),wf();}if(i&2){let e=a.$implicit,t=HT(3);Iv("selected",t.isOptionSelected(e)),Tb(),ST(e.imageUrl?1:-1),Tb(),ST(t.type()==="multiple"?2:-1),Tb(),Nf(" ",typeof e=="string"?e:e[t.displayKey()]," ");}}function xe$1(i,a){if(i&1&&(qa(0,"div",22)(1,"h3",34),v_(2,"Popular"),wf(),qa(3,"div",35)(4,"div",36),MT(5,be$1,4,5,"button",37,_T),wf()()()),i&2){let e=HT(2);Tb(5),NT(e.popularOptions());}}function Me$1(i,a){i&1&&(qa(0,"span",42),v_(1,"\u2713"),wf());}function ye$1(i,a){if(i&1){let e=PT();qa(0,"button",43),hc("click",function(){lg(e);let n=HT(2);return dg(n.toggleSelectAll())}),qa(1,"span",40),bT(2,Me$1,2,0,"span",42),wf(),v_(3," Select All "),wf();}if(i&2){let e=HT(2);Iv("selected",e.areAllOptionsSelected()),Tb(2),ST(e.areAllOptionsSelected()?2:-1);}}function Pe$1(i,a){i&1&&(qa(0,"span",42),v_(1,"\u2713"),wf());}function we$1(i,a){if(i&1&&(qa(0,"span",40),bT(1,Pe$1,2,0,"span",42),wf()),i&2){let e=HT().$implicit,t=HT(2);Tb(),ST(t.isOptionSelected(e)?1:-1);}}function ve(i,a){if(i&1){let e=PT();qa(0,"button",44),hc("click",function(){let n=lg(e).$implicit,c=HT(2);return dg(c.selectOption(n))}),bT(1,we$1,2,1,"span",40),v_(2),wf();}if(i&2){let e=a.$implicit,t=HT(2);Iv("selected",t.isOptionSelected(e)),Tb(),ST(t.type()==="multiple"?1:-1),Tb(),Nf(" ",typeof e=="string"?e:e[t.displayKey()]," ");}}
10function Se$1(i,a){i&1&&(qa(0,"div",27),v_(1," No options found "),wf());}function ke(i,a){if(i&1){let e=PT();qa(0,"div",28)(1,"button",45),hc("click",function(){lg(e);let n=HT(2);return dg(n.doneSelectingMultiple())}),v_(2),wf()();}if(i&2){let e=HT(2);Tb(2),Nf(" Done (",e.selectedOptions.length," selected) ");}}function Te(i,a){if(i&1){let e=PT();qa(0,"div",15),hc("click",function(){lg(e);let n=HT();return dg(n.closeModal())}),qa(1,"div",16,1),hc("click",function(n){return n.stopPropagation()}),qa(3,"div",17),bT(4,ge,3,0,"button",18),bT(5,_e$1,5,1,"div",19),bT(6,me,3,0,"div",20),wf(),qa(7,"div",21),bT(8,xe$1,7,0,"div",22),qa(9,"div",23)(10,"div",24),bT(11,ye$1,4,3,"button",25),MT(12,ve,3,4,"button",26,_T),bT(14,Se$1,2,0,"div",27),wf()()(),bT(15,ke,3,1,"div",28),wf()();}if(i&2){let e=HT();Iv("desktop-mode",!e.isMobile)("mobile-mode",e.isMobile)("bottom-sheet",e.showAsBottomSheet),Tb(),gc("top",e.isMobile?"":e.dropdownPosition.top)("left",e.isMobile?"":e.dropdownPosition.left)("width",e.isMobile?"":e.dropdownPosition.width)("bottom",!e.isMobile&&e.isDropdownFlipped?e.dropdownPosition.bottom:""),Iv("dropdown-content",!e.isMobile)("mobile-content",e.isMobile)("bottom-sheet-content",e.showAsBottomSheet)("flip-position",!e.isMobile&&e.isDropdownFlipped),Tb(3),ST(e.isMobile?4:-1),Tb(),ST(e.showSearch?5:-1),Tb(),ST(e.showAsBottomSheet?6:-1),Tb(2),ST(e.popularOptions()&&e.popularOptions().length>0?8:-1),Tb(3),ST(e.type()==="multiple"&&e.showSelectAll()&&e.filteredOptions.length>0?11:-1),Tb(),NT(e.filteredOptions),Tb(2),ST(e.filteredOptions.length===0?14:-1),Tb(),ST(e.type()==="multiple"?15:-1);}}var ze=(()=>{class i{constructor(){this.document=p$1(ee$3),this.platformId=p$1(oi),this.options=Dc([]),this.popularOptions=Dc([]),this.displayKey=Dc("label"),this.valueKey=Dc("value"),this.placeholder=Dc("Select an option"),this.required=Dc(false),this.disabled=Dc(false),this._disabled=oe$2(false),this.formControl=Dc(null),this.errorMessage=Dc("This field is required"),this.type=Dc("single"),this.clearable=Dc(true),this.id=Dc(""),this.showSelectAll=Dc(false),this.searchable=Dc(true),this.selectionChange=a2(),this.searchInput=c2("searchInput"),this.selectDisplay=c2("selectDisplay"),this.modalContent=c2("modalContent"),this.isOpen=false,this.selectedOption=null,this.selectedOptions=[],this.searchTerm="",this.searchControl=new $$1(""),this.filteredOptions=[],this.touched=false,this.isMobile=false,this.isDropdownFlipped=false,this.dropdownPosition={top:"0",left:"0",width:"100%"},this.destroy$=new ae$4,this.onChange=()=>{},this.onTouched=()=>{},this.backButtonListener=null,this.mobileBreakpoint=450,this.fullPageModalThreshold=9,this.onWindowResize=()=>{_8(this.platformId)&&(this.checkMobileView(),this.isOpen&&!this.isMobile&&this.calculateDropdownPosition());};}ngOnInit(){this.filteredOptions=[...this.options()],this._disabled.set(this.disabled());let e=this.formControl();this.required()&&e&&(e.addValidators(_e$3.required),e.updateValueAndValidity()),this.searchControl.valueChanges.pipe($r$1(this.destroy$),mp(300),wp()).subscribe(t=>{this.searchTerm=t||"",this.filterOptions();}),_8(this.platformId)&&(this.checkMobileView(),window.addEventListener("resize",this.onWindowResize));}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.cleanupBackButtonListener(),_8(this.platformId)&&window.removeEventListener("resize",this.onWindowResize);}checkMobileView(){_8(this.platformId)&&(this.isMobile=window.innerWidth<this.mobileBreakpoint);}handleEscapeKey(){this.isOpen&&this.closeModal();}handleScroll(){_8(this.platformId)&&this.isOpen&&!this.isMobile&&this.calculateDropdownPosition();}handleOutsideClick(e){let t=this.modalContent(),n=this.selectDisplay();if(!this.isOpen||!t||!n)return;let c=t.nativeElement.contains(e.target),b=n.nativeElement.contains(e.target);!c&&!b&&this.closeModal();}writeValue(e){if(e==null){this.selectedOption=null,this.selectedOptions=[];return}this.type()==="multiple"?Array.isArray(e)?this.selectedOptions=e.map(t=>typeof t=="string"&&this.options().includes(t)?t:this.findOptionByValue(t)||t).filter(Boolean):this.selectedOptions=[]:typeof e=="string"&&this.options().some(t=>typeof t=="string"&&t===e)?this.selectedOption=e:this.selectedOption=this.findOptionByValue(e);}registerOnChange(e){this.onChange=e;}registerOnTouched(e){this.onTouched=e;}setDisabledState(e){this._disabled.set(e);}calculateDropdownPosition(){let e=this.selectDisplay();if(!e||!_8(this.platformId))return;let t=e.nativeElement.getBoundingClientRect(),n=window.innerHeight,c=350,b=n-t.bottom,ie=t.top;if(this.isDropdownFlipped=b<c&&ie>b,this.isDropdownFlipped){let oe=window.innerHeight-t.top;this.dropdownPosition={bottom:`${oe}px`,left:`${t.left}px`,width:`${t.width}px`};}else this.dropdownPosition={top:`${t.bottom}px`,left:`${t.left}px`,width:`${t.width}px`};}openModal(){this.disabled()||(this.isOpen=true,this.setupBackButtonListener(),this.searchTerm="",this.searchControl.setValue(""),this.filterOptions(),this.touched||(this.touched=true,this.onTouched()),this.isMobile||this.calculateDropdownPosition(),setTimeout(()=>{if(_8(this.platformId)){let e=this.searchInput();e&&this.showSearch&&(e.nativeElement.focus(),this.isMobile&&!this.showAsBottomSheet&&e.nativeElement.scrollIntoView({behavior:"smooth",block:"center"})),this.isMobile||this.calculateDropdownPosition();}},100));}closeModal(){this.isOpen=false,this.cleanupBackButtonListener();}
10selectOption(e){if(!this.disabled()){if(this.type()==="multiple")this.toggleMultipleOption(e);else {this.selectedOption=e;let t=typeof e=="string"?e:e[this.valueKey()];this.onChange(t),this.selectionChange.emit(t),this.closeModal();}this.touched=true,this.onTouched();}}toggleMultipleOption(e){if(this.disabled())return;this.isOptionSelected(e)?typeof e=="string"?this.selectedOptions=this.selectedOptions.filter(c=>typeof c=="string"?c!==e:c[this.valueKey()]!==e):this.selectedOptions=this.selectedOptions.filter(c=>typeof c=="string"?c!==e[this.valueKey()]:c[this.valueKey()]!==e[this.valueKey()]):this.selectedOptions=[...this.selectedOptions,e];let n;this.selectedOptions.length>0&&typeof this.selectedOptions[0]=="string"?n=this.selectedOptions:n=this.selectedOptions.map(c=>typeof c=="string"?c:c[this.valueKey()]),this.onChange(n),this.selectionChange.emit(n);}clearSelection(e){if(this.disabled())return;e&&e.stopPropagation();let t=this.type();t==="multiple"?this.selectedOptions=[]:this.selectedOption=null,this.onChange(t==="multiple"?[]:null),this.onTouched(),this.selectionChange.emit(t==="multiple"?[]:null);let n=this.formControl();n&&(n.setValue(t==="multiple"?[]:null),n.markAsTouched());}isOptionSelected(e){return this.type()==="single"?typeof e=="string"&&typeof this.selectedOption=="str
10ing"?e===this.selectedOption:!this.selectedOption||!e?false:this.selectedOption[this.valueKey()]===e[this.valueKey()]:typeof e=="string"?this.selectedOptions.some(t=>typeof t=="string"?t===e:t[this.valueKey()]===e):this.selectedOptions.some(t=>typeof t=="string"?t===e[this.valueKey()]:t[this.valueKey()]===e[this.valueKey()])}doneSelectingMultiple(){this.closeModal();}get isValid(){let e=this.formControl();return e?e.valid||!e.touched&&!this.touched:this.type()==="multiple"?!this.required()||this.selectedOptions.length>0:!this.required()||!!this.selectedOption}get showError(){let e=this.formControl();return !!(!this.isValid&&(this.touched||e&&e.touched))}getSelectedLabels(){return this.selectedOptions.map(e=>typeof e=="string"?e:e[this.displayKey()])}filterOptions(){if(!this.searchTerm||this.searchTerm.trim()===""){this.filteredOptions=[...this.options()];return}let e=this.searchTerm.toLowerCase();this.filteredOptions=this.options().filter(t=>typeof t=="string"?t.toLowerCase().includes(e):t[this.displayKey()].toLowerCase().includes(e));}findOptionByValue(e){return typeof e=="string"?this.options().find(n=>typeof n=="string"?n===e:n[this.valueKey()]===e):typeof e=="object"&&e!==null?e:this.options().find(t=>t[this.valueKey()]===e)}getDisplayValue(){return this.type()==="multiple"&&this.selectedOptions.length>0?this.getSelectedLabels().join(", "):this.selectedOption?typeof this.selectedOption=="str
10ing"?this.selectedOption:this.selectedOption[this.displayKey()]:this.placeholder()}get showSearch(){return this.searchable()?this.isMobile?this.options().length>this.fullPageModalThreshold:true:false}get showAsBottomSheet(){return this.isMobile&&this.options().length<=this.fullPageModalThreshold}selectAllOptions(){if(this.disabled()||this.type()!=="multiple")return;this.selectedOptions=[...this.filteredOptions];let e=this.selectedOptions.map(t=>typeof t=="string"?t:t[this.valueKey()]);this.onChange(e),this.selectionChange.emit(e),this.touched=true,this.onTouched();}deselectAllOptions(){this.disabled()||this.type()!=="multiple"||(this.selectedOptions=[],this.onChange([]),this.selectionChange.emit([]),this.touched=true,this.onTouched());}toggleSelectAll(){this.areAllOptionsSelected()?this.deselectAllOptions():this.selectAllOptions();}areAllOptionsSelected(){return this.selectedOptions.length===0||this.filteredOptions.length===0?false:typeof this.filteredOptions[0]=="string"?this.filteredOptions.every(e=>this.selectedOptions.some(t=>typeof t=="string"&&t===e)):this.filteredOptions.every(e=>this.selectedOptions.some(t=>t[this.valueKey()]===e[this.valueKey()]))}setupBackButtonListener(){if(!this.isMobile||!_8(this.platformId))return;this.backButtonListener=()=>{this.isOpen&&(this.closeModal(),window.history.pushState(null,"",window.location.pathname+(window.location.search||"?")+(window.location.search?"&":"")+"_selectModal=open"));};let e=window.location.href,t=e.includes("?")?"&":"?";window.history.pushState(null,"",e+t+"_selectModal=open"),window.addEventListener("popstate",this.backButtonListener);}cleanupBackButtonListener(){if(this.backButtonListener&&_8(this.platformId)){window.removeEventListener("popstate",this.backButtonListener),this.backButtonListener=null;let e=new URL(window.location.href);e.searchParams.has("_selectModal")&&(e.searchParams.delete("_selectModal"),window.history.replaceState(null,"",e.toString()));}}static{this.\u0275fac=function(t){return new(t||i)};}static{this.\u0275cmp=mf({type:i,selectors:[["app-select"]],viewQuery:function(t,n){t&1&&yv(n.searchInput,le,5)(n.selectDisplay,se,5)(n.modalContent,ce,5),t&2&&qT(3);},hostBindings:function(t,n){t&1&&hc("keydown.escape",function(){return n.handleEscapeKey()},BC)("scroll",function(){return n.handleScroll()},UC)("click",function(b){return n.handleOutsideClick(b)},BC);},inputs:{options:[1,"options"],popularOptions:[1,"popularOptions"],displayKey:[1,"displayKey"],valueKey:[1,"valueKey"],placeholder:[1,"placeholder"],required:[1,"required"],disabled:[1,"disabled"],formControl:[1,"formControl"],errorMessage:[1,"errorMessage"],type:[1,"type"],clearable:[1,"clearable"],id:[1,"id"],showSelectAll:[1,"showSelectAll"],searchable:[1,"searchable"]},outputs:{selectionChange:"selectionChange"},features:[A_([{provide:M$1,multi:true,useExisting:i}])],decls:12,vars:16,consts:[["selectDisplay",""],["modalContent",""],["searchInput",""],[1,"select-container",3,"id"],[1,"select-display",3,"click"],[1,"selected-values-container"],[1,"scrollable-values"],[1,"select-actions"],[1,"clear-icon"],[1,"arrow-icon"],[1,"error-message"],[1,"modal-overlay",3,"desktop-mode","mobile-mode","bottom-sheet"],[1,"selected-tag"],[1,"required-asterisk"],[1,"clear-icon",3,"click"],[1,"modal-overlay",3,"click"],[1,"modal-content",3,"click"],[1,"modal-header"],[1,"back-button"],[1,"search-container"],[1,"title-container"],[1,"content-container"],[1,"popular-options-section"],[1,"options-list-section"],[1,"options-list"],[1,"option-item",3,"selected"],["type","button",1,"option-item",3,"selected"],[1,"no-results"],[1,"done-button-section"],[1,"back-button",3,"click"],[1,"back-icon"],["type","text","placeholder","Search",1,"search-input",3,"formControl"],[1,"search-icon"],[1,"modal-title"],[1,"section-title"],[1,"popular-options-container"],[1,"popular-options-grid"],[1,"popular-option-btn",3,"selected"],[1,"popular-option-btn",3,"click"],[1,"option-image"],[1,"checkbox"],["alt","",3,"src"],[1,"checkmark"],[1,"option-item",3,"click"],["type","button",1,"option-item",3,"click"],[1,"done-button",3,"click"]],template:function(t,n){t&1&&(qa(0,"div",3)(1,"div",4,0),hc("click",function(){return !n._disabled()&&n.openModal()}),qa(3,"div",5),bT(4,re,3,0,"div",6),bT(5,pe,3,2,"span"),wf(),qa(6,"div",7),bT(7,he$1,2,0,"span",8),qa(8,"span",9),v_(9,"\u25BC"),wf()()(),bT(10,ue,2,1,"div",10),wf(),bT(11,Te,16,29,"div",11)),t&2&&(Iv("disabled",n._disabled())("invalid",n.showError)("focused",n.isOpen),cv("id",n.id()),Tb(3),Iv("placeholder",!n.selectedOption&&(n.type()!=="multiple"||n.selectedOptions.length===0))("centered-placeholder",!n.selectedOption&&(n.type()!=="multiple"||n.selectedOptions.length===0)),Tb(),ST(n.type()==="multiple"&&n.selectedOptions.length>0?4:-1),Tb(),ST(n.type()==="multiple"&&n.selectedOptions.length>0?-1:5),Tb(2),ST(!n._disabled()&&n.clearable()&&(n.selectedOption||n.selectedOptions.length>0)?7:-1),Tb(3),ST(n.showError?10:-1),Tb(),ST(n.isOpen?11:-1));},dependencies:[qn,Je$1,jn,$n,dn],styles:[".select-container[_ngcontent-%COMP%]{position:relative;width:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;margin-bottom:5px}.select-container.disabled[_ngcontent-%COMP%]   .select-display[_ngcontent-%COMP%]{background-color:#00000040;color:#aaa;border-color:#d9d9d9;cursor:not-allowed}.select-container.disabled[_ngcontent-%COMP%]   .select-display[_ngcontent-%COMP%]   .selected-values-container[_ngcontent-%COMP%], .select-container.disabled[_ngcontent-%COMP%]   .select-display[_ngcontent-%COMP%]   .selected-values-container.placeholder[_ngcontent-%COMP%]{color:#aaa}.select-container.disabled[_ngcontent-%COMP%]   .select-display[_ngcontent-%COMP%]   .selected-values-container[_ngcontent-%COMP%]   .scrollable-values[_ngcontent-%COMP%]   .selected-tag[_ngcontent-%COMP%]{background-color:#0000000d;border-color:#aaa;color:#aaa}.select-container.disabled[_ngcontent-%COMP%]   .select-display[_ngcontent-%COMP%]   .select-actions[_ngcontent-%COMP%]   .arrow-icon[_ngcontent-%COMP%], .select-container.disabled[_ngcontent-%COMP%]   .select-display[_ngcontent-%COMP%]   .select-actions[_ngcontent-%COMP%]   .clear-icon[_ngcontent-%COMP%]{color:#aaa}.select-container.invalid[_ngcontent-%COMP%]   .select-display[_ngcontent-%COMP%]{border-color:#e6003e}.select-container.focused[_ngcontent-%COMP%]   .select-display[_ngcontent-%COMP%]{border-color:#f90047;box-shadow:0 0 0 2px #f9004733}.select-container[_ngcontent-%COMP%]   .error-message[_ngcontent-%COMP%]{color:#e6003e;font-size:12px;margin-top:4px}.select-display[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:8px 16px;background-color:#fff;border:1px solid #d9d9d9;border-radius:8px;
10cursor:pointer;min-height:48px}.select-display[_ngcontent-%COMP%]:focus-within{border-color:#f90047;box-shadow:0 0 0 2px #f9004733}.select-display[_ngcontent-%COMP%]   .selected-values-container[_ngcontent-%COMP%]{flex:1;overflow:hidden;color:#333}.select-display[_ngcontent-%COMP%]   .selected-values-container.placeholder[_ngcontent-%COMP%]{color:#999}.select-display[_ngcontent-%COMP%]   .selected-values-container.centered-placeholder[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;text-align:left;width:100%}.select-display[_ngcontent-%COMP%]   .selected-values-container[_ngcontent-%COMP%]   .scrollable-values[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:4px;scrollbar-width:thin}.select-display[_ngcontent-%COMP%]   .selected-values-container[_ngcontent-%COMP%]   .scrollable-values[_ngcontent-%COMP%]::-webkit-scrollbar{height:4px}.select-display[_ngcontent-%COMP%]   .selected-values-container[_ngcontent-%COMP%]   .scrollable-values[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#d9d9d9;border-radius:4px}.select-display[_ngcontent-%COMP%]   .selected-values-container[_ngcontent-%COMP%]   .scrollable-values[_ngcontent-%COMP%]   .selected-tag[_ngcontent-%COMP%]{display:inline-block;background-color:#f900471a;border:1px solid #F90047;border-radius:16px;padding:2px 8px;font-size:14px;white-space:nowrap}.select-display[_ngcontent-%COMP%]   .selected-values-container[_ngcontent-%COMP%]   .required-asterisk[_ngcontent-%COMP%]{color:#f90047;margin-left:4px;font-weight:700}.select-display[_ngcontent-%COMP%]   .select-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;min-width:24px}.select-display[_ngcontent-%COMP%]   .select-actions[_ngcontent-%COMP%]   .clear-icon[_ngcontent-%COMP%]{font-size:14px;color:#999;cursor:pointer;padding:2px 4px}.select-display[_ngcontent-%COMP%]   .select-actions[_ngcontent-%COMP%]   .clear-icon[_ngcontent-%COMP%]:hover{color:#e6003e}.select-display[_ngcontent-%COMP%]   .select-actions[_ngcontent-%COMP%]   .arrow-icon[_ngcontent-%COMP%]{font-size:12px;color:#999}.modal-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;background-color:#00000080;z-index:1000;display:flex;justify-content:center;align-items:center;padding:20px}.modal-overlay.desktop-mode[_ngcontent-%COMP%]{background-color:transparent;pointer-events:none;padding:0}.modal-overlay.desktop-mode[_ngcontent-%COMP%]   .modal-content[_ngcontent-%COMP%]{pointer-events:auto}.modal-overlay.mobile-mode[_ngcontent-%COMP%]{padding:0}.modal-overlay.bottom-sheet[_ngcontent-%COMP%]{align-items:flex-end}@media(max-width:450px){.modal-overlay[_ngcontent-%COMP%]{padding:0}}.modal-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:70%;height:80%;max-width:800px;background-color:#fff;border-radius:8px;overflow:hidden;box-shadow:0 4px 12px #00000026;max-height:450px}.modal-content.dropdown-content[_ngcontent-%COMP%]{position:absolute;width:100%;height:auto;max-height:350px;box-shadow:0 2px 12px #00000026;border:1px solid #d9d9d9;border-radius:8px;margin-top:4px}.modal-content.dropdown-content.flip-position[_ngcontent-%COMP%]{margin-top:0;margin-bottom:4px}.modal-content.mobile-content[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:0;max-height:none;display:flex;flex-direction:column}.modal-content.mobile-content[_ngcontent-%COMP%]   .modal-header[_ngcontent-%COMP%]{flex-shrink:0}.modal-content.mobile-content[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0}.modal-content.mobile-content[_ngcontent-%COMP%]   .done-button-section[_ngcontent-%COMP%]{flex-shrink:0}.modal-content.bottom-sheet-content[_ngcontent-%COMP%]{height:auto;max-height:80vh;width:100%;border-radius:16px 16px 0 0}@media(max-width:450px){.modal-content[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:0;max-height:none}}.content-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch}.modal-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;padding:6px 16px;border-bottom:1px solid #d9d9d9;position:sticky;top:0;background-color:#fff;z-index:1}.modal-header[_ngcontent-%COMP%]   .back-button[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;padding:8px;display:flex;align-items:center;justify-content:center;font-size:18px;color:#333}.modal-header[_ngcontent-%COMP%]   .search-container[_ngcontent-%COMP%]{flex:1;position:relative;display:flex;align-items:center}.modal-header[_ngcontent-%COMP%]   .search-container[_ngcontent-%COMP%]   .search-input[_ngcontent-%COMP%]{width:100%;padding:12px 16px 12px 40px;border-radius:20px;border:none;background-color:#f5f5f5;font-size:16px;outline:none}.modal-header[_ngcontent-%COMP%]   .search-container[_ngcontent-%COMP%]   .search-input[_ngcontent-%COMP%]::placeholder{color:#999}.modal-header[_ngcontent-%COMP%]   .search-container[_ngcontent-%COMP%]   .search-icon[_ngcontent-%COMP%]{position:absolute;
10left:12px;color:#999;font-size:18px}.modal-header[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none}.modal-header[_ngcontent-%COMP%]   .modal-title[_ngcontent-%COMP%]{font-size:16px;font-weight:500;margin:0;text-align:center;pointer-events:none}.section-title[_ngcontent-%COMP%]{font-size:14px;font-weight:600;color:#666;margin:8px 16px}.popular-options-section[_ngcontent-%COMP%]{padding:8px 0}.popular-options-section[_ngcontent-%COMP%]   .popular-options-container[_ngcontent-%COMP%]{padding:0 16px;overflow-x:auto;white-space:nowrap;scrollbar-width:thin}.popular-options-section[_ngcontent-%COMP%]   .popular-options-container[_ngcontent-%COMP%]::-webkit-scrollbar{height:4px}.popular-options-section[_ngcontent-%COMP%]   .popular-options-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#d9d9d9;border-radius:4px}.popular-options-section[_ngcontent-%COMP%]   .popular-options-grid[_ngcontent-%COMP%]{display:inline-flex;gap:8px}.popular-options-section[_ngcontent-%COMP%]   .popular-options-grid[_ngcontent-%COMP%]   .popular-option-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;background-color:#f5f5f5;border:none;border-radius:16px;padding:8px 12px;font-size:14px;color:#333;cursor:pointer;white-space:nowrap}.popular-options-section[_ngcontent-%COMP%]   .popular-options-grid[_ngcontent-%COMP%]   .popular-option-btn.selected[_ngcontent-%COMP%]{background-color:#f900471a;border:1px solid #F90047}.popular-options-section[_ngcontent-%COMP%]   .popular-options-grid[_ngcontent-%COMP%]   .popular-option-btn[_ngcontent-%COMP%]:active{opacity:.7}.popular-options-section[_ngcontent-%COMP%]   .popular-options-grid[_ngcontent-%COMP%]   .popular-option-btn[_ngcontent-%COMP%]   .option-image[_ngcontent-%COMP%]{width:24px;height:24px;border-radius:4px;margin-right:8px;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;background-color:#0000000d}.popular-options-section[_ngcontent-%COMP%]   .popular-options-grid[_ngcontent-%COMP%]   .popular-option-btn[_ngcontent-%COMP%]   .option-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.popular-options-section[_ngcontent-%COMP%]   .popular-options-grid[_ngcontent-%COMP%]   .popular-option-btn[_ngcontent-%COMP%]   .checkbox[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin-right:8px;border:1px solid #d9d9d9;border-radius:3px}.popular-options-section[_ngcontent-%COMP%]   .popular-options-grid[_ngcontent-%COMP%]   .popular-option-btn[_ngcontent-%COMP%]   .checkbox[_ngcontent-%COMP%]   .checkmark[_ngcontent-%COMP%]{color:#f90047;font-size:12px;font-weight:700}.options-list-section[_ngcontent-%COMP%]{flex:1}.options-list-section[_ngcontent-%COMP%]   .select-all-option[_ngcontent-%COMP%]{background-color:transparent;font-weight:400}.options-list-section[_ngcontent-%COMP%]   .select-all-option[_ngcontent-%COMP%]   .option-item.select-all-item[_ngcontent-%COMP%]{background-color:transparent}.options-list-section[_ngcontent-%COMP%]   .select-all-option[_ngcontent-%COMP%]   .option-item.selected[_ngcontent-%COMP%]{background-color:#f900471a}.options-list-section[_ngcontent-%COMP%]   .options-list[_ngcontent-%COMP%]{display:flex;flex-direction:column}.options-list-section[_ngcontent-%COMP%]   .options-list[_ngcontent-%COMP%]   .option-item[_ngcontent-%COMP%]{display:flex;align-items:center;text-align:left;padding:16px;background-color:transparent;border:none;border-bottom:1px solid #d9d9d9;font-size:16px;color:#333;cursor:pointer}.options-list-section[_ngcontent-%COMP%]   .options-list[_ngcontent-%COMP%]   .option-item.selected[_ngcontent-%COMP%]{background-color:#f900471a}.options-list-section[_ngcontent-%COMP%]   .options-list[_ngcontent-%COMP%]   .option-item[_ngcontent-%COMP%]:active{background-color:#f900470d}.options-list-section[_ngcontent-%COMP%]   .options-list[_ngcontent-%COMP%]   .option-item[_ngcontent-%COMP%]   .checkbox[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;margin-right:10px;border:1px solid #d9d9d9;border-radius:3px}.options-list-section[_ngcontent-%COMP%]   .options-list[_ngcontent-%COMP%]   .option-item[_ngcontent-%COMP%]   .checkbox[_ngcontent-%COMP%]   .checkmark[_ngcontent-%COMP%]{color:#f90047;font-size:12px;font-weight:700}.options-list-section[_ngcontent-%COMP%]   .options-list[_ngcontent-%COMP%]   .no-results[_ngcontent-%COMP%]{padding:16px;text-align:center;color:#999}.done-button-section[_ngcontent-%COMP%]{padding:8px 16px;background-color:#fff;position:sticky;bottom:0;z-index:2;border-top:1px solid #d9d9d9;text-align:center}.done-button-section[_ngcontent-%COMP%]   .done-button[_ngcontent-%COMP%]{background-color:#f90047;color:#fff;border:none;border-radius:4px;padding:12px 24px;font-size:16px;cursor:pointer;width:100%}.done-button-section[_ngcontent-%COMP%]   .done-button[_ngcontent-%COMP%]:active{opacity:.9}"],changeDetection:1});}}return i})();var ai=(r,e)=>{let t=p$1(bt$1),n=p$1(T$3);return n.accessToken()?true:(n.redirectUrl=e.url,t.navigate(["/login"]).then(()=>{}),false)};var j=()=>p$1(T$3).accessToken()?(p$1(rt$3).success("You are already logged in",""),p$1(bt$1).navigate(["/"]).then(),false):true;var Sr=["numberInput"];function br(r,e){if(r&1){let t=PT();qa(0,"span",7),hc("click",function(i){lg(t);let s=HT();return dg(s.clearSelection(i))}),v_(1,"\u2715"),wf();}}function Er(r,e){if(r&1&&(qa(0,"span",5),v_(1),wf()),r&2){let t=HT();Tb(),Rv(t.suffix());}}function vr(r,e){if(r&1&&(qa(0,"div",6),v_(1),wf()),r&2){let t=HT();Tb(),Nf(" ",t.getErrorMessage()," ");}}var li=(()=>
10{class r{constructor(){this.placeholder=Dc("Enter a number"),this.min=Dc(null),this.max=Dc(null),this.required=Dc(false),this.disabled=Dc(false),this._disabled=oe$2(false),this.errorMessage=Dc("This field is required"),this.clearable=Dc(true),this.decimals=Dc(0),this.prefix=Dc(""),this.suffix=Dc(""),this.id=Dc(""),this.useCommas=Dc(true),this.numberInput=c2.required("numberInput"),this.displayValue="",this.rawValue=null,this.numberControl=new $$1(""),this.touched=false,this.isInternalValueChange=false,this.onChange=()=>{},this.onTouched=()=>{},this.destroy$=new ae$4;}ngOnInit(){this.setupValidators(),this._disabled.set(this.disabled()),this._disabled()&&this.numberControl.disable({emitEvent:false}),this.numberControl.valueChanges.pipe($r$1(this.destroy$)).subscribe(t=>{this.isInternalValueChange||this.handleNumberInput(t);}),setTimeout(()=>{let t=this.numberInput();if(this.rawValue!==null&&t&&t.nativeElement){let n=this.formatNumberWithCommas(this.rawValue.toString());this.displayValue=this.prefix()+n+this.suffix(),t.nativeElement.value=this.displayValue;}});}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete();}setupValidators(){let t=[];this.required()&&t.push(_e$3.required);let n=this.min();n!==null&&t.push(_e$3.min(n));let i=this.max();i!==null&&t.push(_e$3.max(i)),this.numberControl.setValidators(t),this.numberControl.updateValueAndValidity();}onInput(t){let n=t.target,i=n.value,s=n.selectionStart||0,o=this.processInput(i);if(o.formatted!==i){let l=(i.substring(0,s).match(/,/g)||[]).length,m=(o.formatted.substring(0,s+(o.formatted.length-i.length)).match(/,/g)||[]).length-l;n.value=o.formatted,this.displayValue=o.formatted,n.setSelectionRange(s+m,s+m),this.rawValue=o.raw,this.isInternalValueChange=true,this.numberControl.setValue(o.raw!==null?o.raw.toString():"",{emitEvent:false}),this.isInternalValueChange=false,this.onChange(o.raw),t.preventDefault();}}processInput(t){let n=t.toString().replace(/,/g,"").replace(new RegExp(`^${this.escapeRegExp(this.prefix())}`),"").replace(new RegExp(`${this.escapeRegExp(this.suffix())}$`),"").trim(),i=n.split(".");i.length>2&&(n=i[0]+"."+i.slice(1).join("")),n=n.replace(/[^\d.-]/g,"");let s=null;if(n!==""&&n!=="-"&&n!==".")if(s=parseFloat(n),isNaN(s))s=null;else {let u=this.min();u!==null&&s<u&&(s=u);let c=this.max();c!==null&&s>c&&(s=c);}let o="";n===""||n==="-"||n==="."?o=n:s!==null&&(o=this.formatNumberWithCommas(s.toString()));let a=this.prefix();o&&a&&(o=a+o);let l=this.suffix();return o&&l&&(o=o+l),{raw:s,formatted:o}}escapeRegExp(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}handleNumberInput(t){if(t==null||t===""){this.displayValue="",this.rawValue=null,this.onChange(null);return}let n=this.processInput(t.toString());this.displayValue=n.formatted,this.rawValue=n.raw,this.onChange(n.raw);}formatNumberWithCommas(t){if(!t)return "";let n=t.split("."),i=n[0],s=n.length>1?n[1]:"";return this.useCommas()&&(i=i.replace(/\B(?=(\d{3})+(?!\d))/g,",")),s?`${i}.${s}`:i}onKeyPress(t){let n=String.fromCharCode(t.charCode),i=this.numberInput().nativeElement.value,s=this.numberInput().nativeElement.selectionStart;if(t.key==="Backspace"||t.key==="Delete"||t.key==="ArrowLeft"||t.key==="ArrowRight"||t.key==="Tab"||t.key==="Enter")return  true;if(/^\d$/.test(n)){if(i.includes(".")){let o=i.split(".");if(o[1]&&o[1].length>=this.decimals()&&s>i.indexOf(".")&&s>=i.length)return t.preventDefault(),false}return  true}return n==="."&&this.decimals()>0&&!i.includes(".")||n==="-"&&s===0&&!i.includes("-")?true:(t.preventDefault(),false)}clearSelection(t){this.disabled()||(t&&t.stopPropagation(),this.displayValue="",this.rawValue=null,this.numberControl.setValue(null,{emitEvent:false}),this.onChange(null),this.onTouched());}writeValue(t){if(this.isInternalValueChange=true,t==null){this.numberControl.setValue("",{emitEvent:false}),this.displayValue="",this.rawValue=null,this.isInternalValueChange=false;return}let n=this.processInput(t.toString());this.displayValue=n.formatted,this.rawValue=n.raw,this.numberControl.setValue(this.rawValue!==null?this.rawValue.toString():"",{emitEvent:false});let i=this.numberInput();i&&i.nativeElement&&(i.nativeElement.value=this.displayValue),this.isInternalValueChange=false;}registerOnChange(t){this.onChange=t;}registerOnTouched(t){this.onTouched=t;}setDisabledState(t){this._disabled.set(t),t?this.numberControl.disable({emitEvent:false}):this.numberControl.enable({emitEvent:false});}onBlur(){if(this.touched||(this.touched=true,this.onTouched()),this.rawValue!==null){let t=this.decimals()>0?parseFloat(this.rawValue.toString()).toFixed(this.decimals()):this.rawValue.toString(),n=parseFloat(t);this.rawValue=isNaN(n)?null:n;let i=this.processInput(this.rawValue?.toString()||"");this.displayValue=i.formatted,this.onChange(this.rawValue);}}get showError(){return this.numberControl.invalid&&(this.numberControl.touched||this.touched)}getErrorMessage(){return this.numberControl.hasError("required")?this.errorMessage()||"This field is required":this.numberControl.hasError("min")?`Minimum value is ${this.min()}`:this.numberControl.hasError("max")?`Maximum value is ${this.max()}`:"Invalid input"}static{this.\u0275fac=function(n){return new(n||r)};}static{this.\u0275cmp=mf({type:r,selectors:[["app-number"]],viewQuery:function(n,i){n&1&&yv(i.numberInput,Sr,5),n&2&&qT();},inputs:{placeholder:[1,"placeholder"],min:[1,"min"],max:[1,"max"],required:[1,"required"],disabled:[1,"disabled"],errorMessage:[1,"errorMessage"],clearable:[1,"clearable"],decimals:[1,"decimals"],prefix:[1,"prefix"],suffix:[1,"suffix"],id:[1,"id"],useCommas:[1,"useCommas"]},features:[A_([{provide:M$1,useExisting:Qs(()=>r),multi:true}])],decls:7,vars:12,consts:[["numberInput",""],[1,"number-container",3,"id"],[1,"number-wrapper"],["type","text","inputmode","decimal",3,"input","keypress","blur","formControl","value","disabled"],[1,"clear-icon"],[1,"suffix"],[1,"error-message"],[1,"clear-icon",3,"click"]],template:function(n,i){n&1&&(qa(0,"div",1)(1,"div",2)(2,"input",3,0),hc("input",function(o){return i.onInput(o)})("keypress",function(o){return i.onKeyPress(o)})("blur",function(){return i.onBlur()}),wf(),mS(),bT(4,br,2,0,"span",4),bT(5,Er,2,1,"span",5),wf(),bT(6,vr,2,1,"div",6),wf()),n&2&&(Iv("disabled",i._disabled())("invalid",i.showError),cv("id",i.id()),Tb(2),cv("formControl",i.numberControl)("value",i.displayValue)("disabled",i._disabled()),dc("placeholder",i.placeholder()),vS(),Tb(2),ST(!i._disabled()&&i.clearable()&&i.rawValue!==null?4:-1),Tb(),ST(i.suffix()&&i.displayValue?5:-1),Tb(),ST(i.showError?6:-1));},dependencies:[qn,Je$1,jn,$n,dn],styles:[".number-container[_ngcontent-%COMP%]{position:relative;width:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;margin-bottom:5px}.number-container.disabled[_ngcontent-%COMP%]   .number-wrapper[_ngcontent-%COMP%]{background-color:#e9e9e9}.number-container.disabled[_ngcontent-%COMP%]   .number-wrapper[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{color:#aaa;background-color:transparent;cursor:not-allowed}.number-container.disabled[_ngcontent-%COMP%]   .number-wrapper[_ngcontent-%COMP%]   .clear-icon[_ngcontent-%COMP%], .number-container.disabled[_ngcontent-%COMP%]   .number-wrapper[_ngcontent-%COMP%]   .suffix[_ngcontent-%COMP%]{color:#aaa}.number-container.invalid[_ngcontent-%COMP%]   .number-wrapper[_ngcontent-%COMP%]{border-color:#e6003e}.number-container[_ngcontent-%COMP%]   .number-wrapper[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;background-color:#fff;border:1px solid #e0e0e0;border-radius:8px;overflow:hidden;transition:all .2s ease}.number-container[_ngcontent-%COMP%]   .number-wrapper[_ngcontent-%COMP%]:focus-within{border-color:#f90047;box-shadow:0 0 0 2px #f9004733}.number-container[_ngcontent-%COMP%]   .number-wrapper[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{flex:1;width:100%;padding:12px 0 12px 12px;border:none;font-size:16px;background:transparent;color:#333;outline:none}.number-container[_ngcontent-%COMP%]   .number-wrapper[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::placeholder{color:#999}.number-container[_ngcontent-%COMP%]   .number-wrapper[_ngcontent-%COMP%]   .clear-icon[_ngcontent-%COMP%]{font-size:14px;color:#999;cursor:pointer;padding:0 12px}.number-container[_ngcontent-%COMP%]   .number-wrapper[_ngcontent-%COMP%]   .clear-icon[_ngcontent-%COMP%]:hover{color:#e6003e}.number-container[_ngcontent-%COMP%]   .number-wrapper[_ngcontent-%COMP%]   .suffix[_ngcontent-%COMP%]{padding-right:12px;color:#333;font-size:16px}.number-container[_ngcontent-%COMP%]   .error-message[_ngcontent-%COMP%]{color:#e6003e;font-size:12px;margin-top:4px}"],changeDetection:1});}}return r})();function Cr(r,e){if(r&1&&(qa(0,"div",37)(1,"h3"),v_(2,"Form Values:"),wf(),qa(3,"pre"),v_(4),P_(5,"json"),wf()()),r&2){let t=HT();Tb(4),Rv(F_(5,1,t.formValues));}}var ui=(()=>
10{class r{constructor(){this.fb=p$1(Wn),this.formValues=null,this.isDisabled=false,this.fruits=["Apple","Banana","Orange","Mango","Strawberry","Pineapple","Grapes","Watermelon"],this.colors=["Red","Blue","Green","Yellow","Purple","Orange","Pink","Black","White","Brown"],this.countries=[{name:"United States",code:"US"},{name:"Canada",code:"CA"},{name:"United Kingdom",code:"UK"},{name:"Australia",code:"AU"},{name:"Germany",code:"DE"},{name:"France",code:"FR"},{name:"Japan",code:"JP"},{name:"Brazil",code:"BR"},{name:"India",code:"IN"},{name:"China",code:"CN"}],this.popularCountries=[{name:"United States",code:"US"},{name:"Canada",code:"CA"},{name:"United Kingdom",code:"UK"},{name:"Australia",code:"AU"}],this.categories=[{label:"Electronics",id:1},{label:"Clothing",id:2},{label:"Books",id:3},{label:"Home & Kitchen",id:4},{label:"Sports",id:5}],this.interests=[{label:"Technology",id:1},{label:"Travel",id:2},{label:"Food",id:3},{label:"Music",id:4},{label:"Movies",id:5},{label:"Art",id:6},{label:"Sports",id:7},{label:"Photography",id:8},{label:"Gaming",id:9},{label:"Reading",id:10}],this.languages=[{name:"English",code:"en"},{name:"Spanish",code:"es"},{name:"French",code:"fr"},{name:"German",code:"de"},{name:"Italian",code:"it"},{name:"Portuguese",code:"pt"},{name:"Chinese",code:"zh"},{name:"Japanese",code:"ja"},{name:"Russian",code:"ru"},{name:"Arabic",code:"ar"}];}ngOnInit(){this.exampleForm=this.fb.group({country:["",_e$3.required],category:[""],interests:[[]],languages:[[],_e$3.required],fruit:["",_e$3.required],colors:[[]],fullName:["",[_e$3.required,_e$3.minLength(3)]],email:["",[_e$3.required,_e$3.email]],website:[""],searchTerm:[""],price:[null,[_e$3.required,_e$3.min(0),_e$3.max(1e6)]],quantity:[null,[_e$3.required,_e$3.min(1),_e$3.max(100)]],time:[null,_e$3.required],description:["",_e$3.maxLength(200)],phone:["",_e$3.required]});}toggleDisabled(){this.isDisabled=!this.isDisabled;let t=this.exampleForm.get("category");t&&(this.isDisabled?t.disable():t.enable());}onCountryChange(t){}onInterestsChange(t){}onSubmit(){this.exampleForm.valid?this.formValues=this.exampleForm.value:this.exampleForm.markAllAsTouched();}static{this.\u0275fac=function(n){return new(n||r)};}static{this.\u0275cmp=mf({type:r,selectors:[["app-select-example"]],decls:88,vars:36,consts:[[1,"example-container"],[3,"ngSubmit","formGroup"],[1,"form-group"],["for","country"],["formControlName","country","displayKey","name","valueKey","code","placeholder","Select a country","errorMessage","Please select a country to continue",3,"selectionChange","options","popularOptions","required"],["for","fruit"],["formControlName","fruit","placeholder","Select a fruit","errorMessage","Please select a fruit",3,"options","required"],["for","colors"],["formControlName","colors","placeholder","Select colors","type","multiple",3,"options","clearable","showSelectAll"],["for","category"],["formControlName","category","displayKey","label","valueKey","id","placeholder","Select a category",3,"options","disabled"],["for","interests"],["formControlName","interests","displayKey","label","valueKey","id","placeholder","Select your interests","type","multiple",3,"selectionChange","options","clearable","showSelectAll"],["for","languages"],["formControlName","languages","displayKey","name","valueKey","code","placeholder","Select languages you speak","type","multiple","errorMessage","At least one language is required",3,"options","required"],["for","fullName"],["type","text","formControlName","fullName","placeholder","Enter your full name","errorMessage","Full name is required",3,"required","minLength"],["for","email"],["type","email","formControlName","email","placeholder","Enter your email","errorMessage","Please enter a valid email address",3,"required"],["for","website"],["type","url","formControlName","website","placeholder","Enter your website"],["for","searchTerm"],["type","search","formControlName","searchTerm","placeholder","Search for something"],["for","price"],["formControlName","price","placeholder","Enter price","prefix","\u20A6",3,"min","max","decimals","required"],[1,"helper-text"],["for","quantity"],["formControlName","quantity","placeholder","Enter quantity",3,"min","max","decimals","required"],["for","time"],["formControlName","time","placeholder","Select time","errorMessage","Time is required",3,"required"],["for","description"],["formControlName","description","placeholder","Enter description",3,"minHeight","maxHeight","maxLength","showCounter"],["for","phone"],["formControlName","phone","placeholder","Enter phone number",3,"required"],[1,"form-actions"],["type","submit",3,"disabled"],["type","button",3,"click"],[1,"form-values"]],template:function(n,i){n&1&&(qa(0,"div",0)(1,"h2"),v_(2,"Custom Input Components Example"),wf(),qa(3,"form",1),hc("ngSubmit",function(){return i.onSubmit()}),qa(4,"h3"),v_(5,"Select Components"),wf(),qa(6,"div",2)(7,"label",3),v_(8,"Select a Country:"),wf(),qa(9,"app-select",4),hc("selectionChange",function(o){return i.onCountryChange(o)}),wf(),mS(),wf(),qa(10,"div",2)(11,"label",5),v_(12,"Select a Fruit (String Array):"),wf(),fc(13,"app-select",6),mS(),wf(),qa(14,"div",2)(15,"label",7),v_(16,"Select Colors (String Array - Multiple):"),wf(),fc(17,"app-select",8),mS(),wf(),qa(18,"div",2)(19,"label",9),v_(20,"Select a Category:"),wf(),fc(21,"app-select",10),mS(),wf(),qa(22,"div",2)(23,"label",11),v_(24,"Select Multiple Interests:"),wf(),qa(25,"app-select",12),hc("selectionChange",function(o){return i.onInterestsChange(o)}),wf(),mS(),wf(),qa(26,"div",2)(27,"label",13),v_(28,"Select Multiple Languages:"),wf(),fc(29,"app-select",14),mS(),wf(),qa(30,"h3"),v_(31,"Basic Input Components"),wf(),qa(32,"div",2)(33,"label",15),v_(34,"Text Input:"),wf(),fc(35,"app-input",16),mS(),wf(),qa(36,"div",2)(37,"label",17),v_(38,"Email Input:"),wf(),fc(39,"app-input",18),mS(),wf(),qa(40,"div",2)(41,"label",19),v_(42,"URL Input:"),wf(),fc(43,"app-input",20),mS(),wf(),qa(44,"div",2)(45,"label",21),v_(46,"Search Input:"),wf(),fc(47,"app-input",22),mS(),wf(),qa(48,"h3"),v_(49,"Number Input"),wf(),qa(50,"div",2)(51,"label",23),v_(52,"Price:"),wf(),fc(53,"app-number",24),mS(),qa(54,"small",25),v_(55,"Number input with comma formatting (e.g., \u20A61,234.56)"),wf()(),qa(56,"div",2)(57,"label",26),v_(58,"Quantity:"),wf(),fc(59,"app-number",27),mS(),qa(60,"small",25),v_(61,"Whole number input (e.g., 1,234)"),wf()(),qa(62,"h3"),v_(63,"Time Picker"),wf(),qa(64,"div",2)(65,"label",28),v_(66,"Select Time:"),wf(),fc(67,"app-time-picker",29),mS(),wf(),qa(68,"h3"),v_(69,"Textarea"),wf(),qa(70,"div",2)(71,"label",30),v_(72,"Description:"),wf(),fc(73,"app-textarea",31),mS(),wf(),qa(74,"h3"),v_(75,"Phone Number"),wf(),qa(76,"div",2)(77,"label",32),v_(78,"Nigerian Phone Number:"),wf(),fc(79,"a
10pp-phone-number",33),mS(),qa(80,"small",25),v_(81,"Nigerian phone number with +234 format on blur"),wf()(),qa(82,"div",34)(83,"button",35),v_(84,"Submit"),wf(),qa(85,"button",36),hc("click",function(){return i.toggleDisabled()}),v_(86),wf()()(),bT(87,Cr,6,3,"div",37),wf()),n&2&&(Tb(3),cv("formGroup",i.exampleForm),Tb(6),cv("options",i.countries)("popularOptions",i.popularCountries)("required",true),vS(),Tb(4),cv("options",i.fruits)("required",true),vS(),Tb(4),cv("options",i.colors)("clearable",true)("showSelectAll",true),vS(),Tb(4),cv("options",i.categories)("disabled",i.isDisabled),vS(),Tb(4),cv("options",i.interests)("clearable",true)("showSelectAll",true),vS(),Tb(4),cv("options",i.languages)("required",true),vS(),Tb(6),cv("required",true)("minLength",3),vS(),Tb(4),cv("required",true),vS(),Tb(4),vS(),Tb(4),vS(),Tb(6),cv("min",0)("max",9e21)("decimals",2)("required",true),vS(),Tb(6),cv("min",1)("max",100)("decimals",0)("required",true),vS(),Tb(8),cv("required",true),vS(),Tb(6),cv("minHeight",50)("maxHeight",200)("maxLength",200)("showCounter",true),vS(),Tb(6),cv("required",true),vS(),Tb(4),cv("disabled",i.exampleForm.invalid),Tb(3),Nf(" ",i.isDisabled?"Enable":"Disable"," Category Select "),Tb(),ST(i.formValues?87:-1));},dependencies:[ND,$n,Un,jn,Bn,ht$2,mn,gn,ze,ae$2,F$1,J$3,li,re$2,QM],styles:[".example-container[_ngcontent-%COMP%]{max-width:500px;margin:0 auto;padding:20px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}h2[_ngcontent-%COMP%]{margin-bottom:20px;color:#333}h3[_ngcontent-%COMP%]{margin-top:30px;margin-bottom:15px;color:#555;border-bottom:1px solid #eee;padding-bottom:8px}.form-group[_ngcontent-%COMP%]{margin-bottom:20px}label[_ngcontent-%COMP%]{display:block;margin-bottom:8px;font-weight:500;color:#444}.form-actions[_ngcontent-%COMP%]{display:flex;gap:10px;margin:30px 0 20px}button[_ngcontent-%COMP%]{background-color:#f90047;color:#fff;border:none;border-radius:4px;padding:10px 16px;font-size:16px;cursor:pointer;transition:background-color .3s}button[_ngcontent-%COMP%]:hover{background-color:#e6003e}button[_ngcontent-%COMP%]:disabled{background-color:#ccc;cursor:not-allowed}.form-values[_ngcontent-%COMP%]{margin-top:30px;padding:15px;background-color:#f8f9fa;border-radius:4px;border:1px solid #eee}pre[_ngcontent-%COMP%]{white-space:pre-wrap;margin:0;font-size:14px}.helper-text[_ngcontent-%COMP%]{display:block;color:#666;font-size:12px;margin-top:4px}"],changeDetection:1});}}return r})();var ci=[{path:"",loadComponent:()=>import('./chunk-Ddt_gAOF.js').then(r=>r.MainComponent),canActivate:[ai],children:[{path:"",loadComponent:()=>import('./chunk-fRV3hAgL.js').then(r=>r.DashboardComponent),title:"Dashboard",canActivate:[S$3]},{path:"select",component:ui},{path:"analytics",loadComponent:()=>import('./chunk-daO8yiHi.js').then(r=>r.AnalyticsComponent),title:"Analytics",canActivate:[S$3],children:[{path:"",loadComponent:()=>import('./chunk-Bms2WUvj.js').then(r=>r.OverviewComponent)},{path:"overview",redirectTo:"",pathMatch:"full"}]},{path:"analytics/ad-performance/:slug",loadComponent:()=>import('./chunk-4_h4vKpg.js').then(r=>r.AdsPerformanceComponent),title:"Ad Performance",canActivate:[S$3]},{path:"store",loadComponent:()=>import('./chunk-Bm8fg3Ug.js').then(r=>r.UserStoreComponent),canActivate:[S$3]},{path:"review",loadComponent:()=>import('./chunk-Gi_YyBNP.js').then(r=>r.ReviewsComponent),title:"Review",canActivate:[S$3]},{path:"notification",loadComponent:()=>import('./chunk-Dl8OcztV.js').then(r=>r.NotificationComponent),title:"Notifications",canActivate:[S$3],children:[{path:"all",loadComponent:()=>import('./chunk-Dl8OcztV.js').then(r=>r.NotificationComponent)}]},{path:"promotion",redirectTo:"subscription",pathMatch:"full"},{path:"subscription",loadComponent:()=>import('./chunk-DBrgQFT6.js').then(r=>r.SubscriptionComponent),canActivate:[S$3],title:"Subscription",loadChildren:()=>import('./chunk-DgLsrltW.js').then(r=>r.subscriptionRoutes)},{path:"chat",loadComponent:()=>import('./chunk-Diw_lYJI.js').then(function(n){return n.c}).then(r=>r.MessagesComponent),title:"Chat",canActivate:[S$3],children:[{path:":conversationId",loadComponent:()=>import('./chunk-CyHy1E1j.js').then(r=>r.ConversationComponent)}]},{path:"create-store",loadComponent:()=>import('./chunk-BWf0r11d.js').then(r=>r.CreateStoreComponent),title:"Create Store"},{path:"welcome-to-naiya-seller-portal",loadComponent:()=>import('./chunk-BJ8Tcbjx.js').then(r=>r.WelcomeToNaiyaComponent),title:"Welcome to Naiya Seller Portal"},{path:"settings",loadChildren:()=>import('./chunk-BiLD1Q9e.js').then(r=>r.routes),canActivate:[S$3]},{path:"ads",loadChildren:()=>import('./chunk-qM1_emXI.js').then(r=>r.adRoutes),canActivate:[S$3]}]},{path:"login",canActivate:[j],loadComponent:()=>import('./chunk-CmiPL4x3.js').then(r=>r.LoginComponent)},{path:"login/:refreshToken",canActivate:[j],loadComponent:()=>import('./chunk-CmiPL4x3.js').then(r=>r.LoginComponent)},{path:"register",canActivate:[j],loadComponent:()=>import('./chunk-CqLXRVvF.js').then(r=>r.RegisterComponent)},{path:"forgot-password",canActivate:[j],loadComponent:()=>import('./chunk-CFR3-UT1.js').then(r=>r.ForgotPasswordComponent)},{path:"reset-password",loadComponent:()=>import('./chunk-B6boE7GA.js').then(r=>r.ResetPasswordComponent)},{path:"reset-password/:id",loadComponent:()=>import('./chunk-B6boE7GA.js').then(r=>r.ResetPasswordComponent)},{path:"start-selling",canActivate:[j],loadComponent:()=>import('./chunk-uRn6wlUi.js').then(r=>
10r.GeneralFunnelComponent)},{path:"sell-on-naiya",canActivate:[j],loadComponent:()=>import('./chunk-BFyOCUiW.js').then(r=>r.SellerConversionFunnelComponent)},{path:"vehicles",canActivate:[j],loadComponent:()=>import('./chunk-BDDg2EOA.js').then(r=>r.CarFunnelComponent)},{path:"real-estate",canActivate:[j],loadComponent:()=>import('./chunk-BTcHtVSE.js').then(r=>r.RealEstateFunnelComponent)},{path:"gadgets-computers",canActivate:[j],data:{funnelGroup:"gadgets-computers"},loadComponent:()=>import('./chunk-DYUWMvIb.js').then(r=>r.GadgetsElectronicsFunnelComponent)},{path:"home-appliances",canActivate:[j],data:{funnelGroup:"home-appliances"},loadComponent:()=>import('./chunk-DYUWMvIb.js').then(r=>r.GadgetsElectronicsFunnelComponent)},{path:"general-electronics",canActivate:[j],data:{funnelGroup:"general-electronics"},loadComponent:()=>import('./chunk-DYUWMvIb.js').then(r=>r.GadgetsElectronicsFunnelComponent)}];function Tr(r){let t=Math.floor(Math.abs(r)),n=r.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var mi=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],void 0,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],void 0,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm\u202Fa","h:mm:ss\u202Fa","h:mm:ss\u202Fa z","h:mm:ss\u202Fa zzzz"],["{1}, {0}",void 0,void 0,void 0],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",Tr];var S=(function(r){return r[r.State=0]="State",r[r.Transition=1]="Transition",r[r.Sequence=2]="Sequence",r[r.Group=3]="Group",r[r.Animate=4]="Animate",r[r.Keyframes=5]="Keyframes",r[r.Style=6]="Style",r[r.Trigger=7]="Trigger",r[r.Reference=8]="Reference",r[r.AnimateChild=9]="AnimateChild",r[r.AnimateRef=10]="AnimateRef",r[r.Query=11]="Query",r[r.Stagger=12]="Stagger",r})(S||{}),Y="*";function hi(r,e=null){return {type:S.Sequence,steps:r,options:e}}function vt(r){return {type:S.Style,styles:r,offset:null}}var ne=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=false;_destroyed=false;_finished=false;_position=0;parentPlayer=null;totalTime;constructor(e=0,t=0){this.totalTime=e+t;}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e);}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e);}onDestroy(e){this._onDestroyFns.push(e);}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=true;}triggerMicrotask(){queueMicrotask(()=>this._onFinish());}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[];}pause(){}restart(){}finish(){this._onFinish();}destroy(){this._destroyed||(this._destroyed=true,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}reset(){this._started=false,this._finished=false,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns;}setPosition(e){this._position=this.totalTime?e*this.totalTime:1;}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0;}},we=class{_onDoneFns=[];_onStartFns=[];_finished=false;_started=false;_destroyed=false;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(e){this.players=e;let t=0,n=0,i=0,s=this.players.length;s==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==s&&this._onFinish();}),o.onDestroy(()=>{++n==s&&this._onDestroy();}),o.onStart(()=>{++i==s&&this._onStart();});}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0);}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e
10=>e()),this._onDoneFns=[]);}init(){this.players.forEach(e=>e.init());}onStart(e){this._onStartFns.push(e);}_onStart(){this.hasStarted()||(this._started=true,this._onStartFns.forEach(e=>e()),this._onStartFns=[]);}onDone(e){this._onDoneFns.push(e);}onDestroy(e){this._onDestroyFns.push(e);}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play());}pause(){this.players.forEach(e=>e.pause());}restart(){this.players.forEach(e=>e.restart());}finish(){this._onFinish(),this.players.forEach(e=>e.finish());}destroy(){this._onDestroy();}_onDestroy(){this._destroyed||(this._destroyed=true,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}reset(){this.players.forEach(e=>e.reset()),this._destroyed=false,this._finished=false,this._started=false;}setPosition(e){let t=e*this.totalTime;this.players.forEach(n=>{let i=n.totalTime?Math.min(1,t/n.totalTime):1;n.setPosition(i);});}getPosition(){let e=this.players.reduce((t,n)=>t===null||n.totalTime>t.totalTime?n:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy();});}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0;}},Oe="!";function di(r){return new m$1(3e3,false)}function wr(){return new m$1(3100,false)}function Ar(){return new m$1(3101,false)}function Pr(r){return new m$1(3001,false)}function Mr(r){return new m$1(3003,false)}function Nr(r){return new m$1(3004,false)}function fi(r,e){return new m$1(3005,false)}function gi(){return new m$1(3006,false)}function yi(){return new m$1(3007,false)}function _i(r,e){return new m$1(3008,false)}function Si(r){return new m$1(3002,false)}function bi(r,e,t,n,i){return new m$1(3010,false)}function Ei(){return new m$1(3011,false)}function vi(){return new m$1(3012,false)}function Ci(){return new m$1(3200,false)}function Ti(){return new m$1(3202,false)}function wi(){return new m$1(3013,false)}function Ai(r){return new m$1(3014,false)}function Pi(r){return new m$1(3015,false)}function Mi(r){return new m$1(3016,false)}function Ni(r,e){return new m$1(3404,false)}function Dr(r){return new m$1(3502,false)}function Di(r){return new m$1(3503,false)}function ki(){return new m$1(3300,false)}function Oi(r){return new m$1(3504,false)}function Fi(r){return new m$1(3301,false)}function Ri(r,e){return new m$1(3302,false)}function Ii(r){return new m$1(3303,false)}function Li(r,e){return new m$1(3400,false)}function xi(r){return new m$1(3401,false)}function Vi(r){return new m$1(3402,false)}function qi(r,e){return new m$1(3505,false)}function ie(r){switch(r.length){case 0:return new ne;case 1:return r[0];default:return new we(r)}}function At(r,e,t=new Map,n=new Map){let i=[],s=[],o=-1,a=null;if(e.forEach(l=>{let u=l.get("offset"),c=u==o,m=c&&a||new Map;l.forEach((E,_)=>{let d=_,y=E;if(_!=="offset")switch(d=r.normalizePropertyName(d,i),y){case Oe:y=t.get(_);break;case Y:y=n.get(_);break;default:y=r.normalizeStyleValue(_,d,y,i);break}m.set(d,y);}),c||s.push(m),a=m,o=u;}),i.length)throw Dr();return s}function Xe(r,e,t,n){switch(e){case "start":r.onStart(()=>n(t&&Ct(t,"start",r)));break;case "done":r.onDone(()=>n(t&&Ct(t,"done",r)));break;case "destroy":r.onDestroy(()=>n(t&&Ct(t,"destroy",r)));break}}function Ct(r,e,t){let n=t.totalTime,i=!!t.disabled,s=Ze(r.element,r.triggerName,r.fromState,r.toState,e||r.phaseName,n??r.totalTime,i),o=r._data;return o!=null&&(s._data=o),s}function Ze(r,e,t,n,i="",s=0,o){return {element:r,triggerName:e,fromState:t,toState:n,phaseName:i,totalTime:s,disabled:!!o}}function B(r,e,t){let n=r.get(e);return n||r.set(e,n=t),n}function Pt(r){let e=r.indexOf(":"),t=r.substring(1,e),n=r.slice(e+1);return [t,n]}var kr=typeof document>"u"?null:document.documentElement;function et(r){let e=r.parentNode||r.host||null;return e===kr?null:e}function Or(r){return r.substring(1,6)=="ebkit"}var ye=null,pi=false;function zi(r){ye||(ye=Fr()||{},pi=ye.style?"WebkitAppearance"in ye.style:false);let e=true;return ye.style&&!Or(r)&&(e=r in ye.style,!e&&pi&&(e="Webkit"+r.charAt(0).toUpperCase()+r.slice(1)in ye.style)),e}function Fr(){return typeof document<"u"?document.body:null}function Mt(r,e){for(;e;){if(e===r)return  true;e=et(e);}return  false}function Nt(r,e,t){if(t)return Array.from(r.querySelectorAll(e));let n=r.querySelector(e);return n?[n]:[]}var Rr=1e3,Dt="{{",Ir="}}",kt="ng-enter",tt="ng-leave",Fe="ng-trigger",Re=".ng-trigger",Ot="ng-animating",nt=".ng-animating";function te(r){if(typeof r=="number")return r;let e=r.match(/^(-?[\.\d]+)(m?s)/);return !e||e.length<2?0:Tt(parseFloat(e[1]),e[2])}function Tt(r,e){return e==="s"?r*Rr:r}function Ie(r,e,t){return r.hasOwnProperty("duration")?r:xr(r,e,t)}var Lr=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function xr(r,e,t){let n,i=0,s="";if(typeof r=="string"){let o=r.match(Lr);if(o===null)return e.push(di()),{duration:0,delay:0,easing:""};n=Tt(parseFloat(o[1]),o[2]);let a=o[3];a!=null&&(i=Tt(parseFloat(a),o[4]));let l=o[5];l&&(s=l);}else n=r;if(!t){let o=false,a=e.length;n<0&&(e.push(wr()),o=true),i<0&&(e.push(Ar()),o=true),o&&e.splice(a,0,di());}return {duration:n,delay:i,easing:s}}function Ki(r){return r.length?r[0]instanceof Map?r:r.map(e=>new Map(Object.entries(e))):[]}function J(r,e,t){e.forEach((n,i)=>{let s=it(i);t&&!t.has(i)&&t.set(i,r.style[s]),r.style[s]=n;});}function he(r,e){e.forEach((t,n)=>{let i=it(n);r.style[i]="";});}function Ae(r){return Array.isArray(r)?r.length==1?r[0]:hi(r):r}function Bi(r,e,t){let n=e.params||{},i=Ft(r);
10i.length&&i.forEach(s=>{n.hasOwnProperty(s)||t.push(Pr());});}var wt=new RegExp(`${Dt}\\s*(.+?)\\s*${Ir}`,"g");function Ft(r){let e=[];if(typeof r=="string"){let t;for(;t=wt.exec(r);)e.push(t[1]);wt.lastIndex=0;}return e}function Pe(r,e,t){let n=`${r}`,i=n.replace(wt,(s,o)=>{let a=e[o];return a==null&&(t.push(Mr()),a=""),a.toString()});return i==n?r:i}var Vr=/-+([a-z0-9])/g;function it(r){return r.replace(Vr,(...e)=>e[1].toUpperCase())}function Qi(r,e){return r===0||e===0}function Ui(r,e,t){if(t.size&&e.length){let n=e[0],i=[];if(t.forEach((s,o)=>{n.has(o)||i.push(o),n.set(o,s);}),i.length)for(let s=1;s<e.length;s++){let o=e[s];i.forEach(a=>o.set(a,rt(r,a)));}}return e}function Q(r,e,t){switch(e.type){case S.Trigger:return r.visitTrigger(e,t);case S.State:return r.visitState(e,t);case S.Transition:return r.visitTransition(e,t);case S.Sequence:return r.visitSequence(e,t);case S.Group:return r.visitGroup(e,t);case S.Animate:return r.visitAnimate(e,t);case S.Keyframes:return r.visitKeyframes(e,t);case S.Style:return r.visitStyle(e,t);case S.Reference:return r.visitReference(e,t);case S.AnimateChild:return r.visitAnimateChild(e,t);case S.AnimateRef:return r.visitAnimateRef(e,t);case S.Query:return r.visitQuery(e,t);case S.Stagger:return r.visitStagger(e,t);default:throw Nr(e.type)}}function rt(r,e){return window.getComputedStyle(r)[e]}var Yt=(()=>{class r{validateStyleProperty(t){return zi(t)}containsElement(t,n){return Mt(t,n)}getParentElement(t){return et(t)}query(t,n,i){return Nt(t,n,i)}computeStyle(t,n,i){return i||""}animate(t,n,i,s,o,a=[],l){return new ne(i,s)}static \u0275fac=function(n){return new(n||r)};static \u0275prov=S$4({token:r,factory:r.\u0275fac})}return r})(),Se=class{static NOOP=new Yt},be=class{};var qr=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"]),ut=class extends be{normalizePropertyName(e,t){return it(e)}normalizeStyleValue(e,t,n,i){let s="",o=n.toString().trim();if(qr.has(t)&&n!==0&&n!=="0")if(typeof n=="number")s="px";else {let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&i.push(fi());}return o+s}};var ct="*";function zr(r,e){let t=[];return typeof r=="string"?r.split(/\s*,\s*/).forEach(n=>Kr(n,t,e)):t.push(r),t}function Kr(r,e,t){if(r[0]==":"){let l=Br(r,t);if(typeof l=="function"){e.push(l);return}r=l;}let n=r.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return t.push(Pi()),e;let i=n[1],s=n[2],o=n[3];e.push($i(i,o));let a=i==ct&&o==ct;s[0]=="<"&&!a&&e.push($i(o,i));}function Br(r,e){switch(r){case ":enter":return "void => *";case ":leave":return "* => void";case ":increment":return (t,n)=>parseFloat(n)>parseFloat(t);case ":decrement":return (t,n)=>parseFloat(n)<parseFloat(t);default:return e.push(Mi()),"* => *"}}var st=new Set(["true","1"]),ot=new Set(["false","0"]);function $i(r,e){let t=st.has(r)||ot.has(r),n=st.has(e)||ot.has(e);return (i,s)=>{let o=r==ct||r==i,a=e==ct||e==s;return !o&&t&&typeof i=="boolean"&&(o=i?st.has(r):ot.has(r)),!a&&n&&typeof s=="boolean"&&(a=s?st.has(e):ot.has(e)),o&&a}}var tr=":self",Qr=new RegExp(`s*${tr}s*,?`,"g");function nr(r,e,t,n){return new qt(r).build(e,t,n)}var Gi="",qt=class{_driver;constructor(e){this._driver=e;}build(e,t,n){let i=new zt(t);return this._resetContextStyleTimingState(i),Q(this,Ae(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=Gi,e.collectedStyles=new Map,e.collectedStyles.set(Gi,new Map),e.currentTime=0;}visitTrigger(e,t){let n=t.queryCount=0,i=t.depCount=0,s=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(gi()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==S.State){let l=a,u=l.name;u.toString().split(/\s*,\s*/).forEach(c=>{l.name=c,s.push(this.visitState(l,t));}),l.name=u;}else if(a.type==S.Transition){let l=this.visitTransition(a,t);n+=l.queryCount,i+=l.depCount,o.push(l);}else t.errors.push(yi());}),{type:S.Trigger,name:e.name,states:s,transitions:o,queryCount:n,depCount:i,options:null}}visitState(e,t){let n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){let s=new Set,o=i||{};
10n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Ft(l).forEach(u=>{o.hasOwnProperty(u)||s.add(u);});});}),s.size&&t.errors.push(_i(e.name,[...s.values()]));}return {type:S.State,name:e.name,style:n,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let n=Q(this,Ae(e.animation),t),i=zr(e.expr,t.errors);return {type:S.Transition,matchers:i,animation:n,queryCount:t.queryCount,depCount:t.depCount,options:_e(e.options)}}visitSequence(e,t){return {type:S.Sequence,steps:e.steps.map(n=>Q(this,n,t)),options:_e(e.options)}}visitGroup(e,t){let n=t.currentTime,i=0,s=e.steps.map(o=>{t.currentTime=n;let a=Q(this,o,t);return i=Math.max(i,t.currentTime),a});return t.currentTime=i,{type:S.Group,steps:s,options:_e(e.options)}}visitAnimate(e,t){let n=jr(e.timings,t.errors);t.currentAnimateTimings=n;let i,s=e.styles?e.styles:vt({});if(s.type==S.Keyframes)i=this.visitKeyframes(s,t);else {let o=e.styles,a=false;if(!o){a=true;let u={};n.easing&&(u.easing=n.easing),o=vt(u);}t.currentTime+=n.duration+n.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,i=l;}return t.currentAnimateTimings=null,{type:S.Animate,timings:n,style:i,options:null}}visitStyle(e,t){let n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){let n=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of i)typeof a=="string"?a===Y?n.push(a):t.errors.push(Si()):n.push(new Map(Object.entries(a)));let s=false,o=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!s)){for(let l of a.values())if(l.toString().indexOf(Dt)>=0){s=true;break}}}),{type:S.Style,styles:n,easing:o,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,t){let n=t.currentAnimateTimings,i=t.currentTime,s=t.currentTime;n&&s>0&&(s-=n.duration+n.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let u=t.collectedStyles.get(t.currentQuerySelector),c=u.get(l),m=true;c&&(s!=i&&s>=c.startTime&&i<=c.endTime&&(t.errors.push(bi(l,c.startTime,c.endTime)),m=false),s=c.startTime),m&&u.set(l,{startTime:s,endTime:i}),t.options&&Bi(a,t.options,t.errors);});});}visitKeyframes(e,t){let n={type:S.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Ei()),n;let i=1,s=0,o=[],a=false,l=false,u=0,c=e.steps.map(D=>{let O=this._makeStyleAst(D,t),q=O.offset!=null?O.offset:Gr(O.styles),x=0;return q!=null&&(s++,x=O.offset=q),l=l||x<0||x>1,a=a||x<u,u=x,o.push(x),O});l&&t.errors.push(vi()),a&&t.errors.push(Ci());let m=e.steps.length,E=0;s>0&&s<m?t.errors.push(Ti()):s==0&&(E=i/(m-1));let _=m-1,d=t.currentTime,y=t.currentAnimateTimings,P=y.duration;return c.forEach((D,O)=>{let q=E>0?O==_?1:E*O:o[O],x=q*P;t.currentTime=d+y.delay+x,y.duration=x,this._validateStyleAst(D,t),D.offset=q,n.styles.push(D);}),n}visitReference(e,t){return {type:S.Reference,animation:Q(this,Ae(e.animation),t),options:_e(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:S.AnimateChild,options:_e(e.options)}}visitAnimateRef(e,t){return {type:S.AnimateRef,animation:this.visitReference(e.animation,t),options:_e(e.options)}}visitQuery(e,t){let n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;let[s,o]=Ur(e.selector);t.currentQuerySelector=n.length?n+" "+s:s,B(t.collectedStyles,t.currentQuerySelector,new Map);let a=Q(this,Ae(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:S.Query,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:_e(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(wi());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Ie(e.timings,t.errors,true);return {type:S.Stagger,animation:Q(this,Ae(e.animation),t),timings:n,options:null}}};function Ur(r){let e=!!r.split(/\s*,\s*/).find(t=>t==tr);return e&&(r=r.replace(Qr,"")),r=r.replace(/@\*/g,Re).replace(/@\w+/g,t=>Re+"-"+t.slice(1)).replace(/:animating/g,nt),[r,e]}function $r(r){return r?l$1({},r):null}var zt=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(e){this.errors=e;}};function Gr(r){if(typeof r=="string")return null;let e=null;if(Array.isArray(r))r.forEach(t=>{if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset");}});else if(r instanceof Map&&r.has("offset")){let t=r;e=parseFloat(t.get("offset")),t.delete("offset");}return e}function jr(r,e){if(r.hasOwnProperty("duration"))return r;if(typeof r=="number"){let s=Ie(r,e).duration;return Rt(s,0,"")}let t=r;if(t.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=Rt(0,0,"");return s.dynamic=true,s.strValue=t,s}let i=Ie(t,e);return Rt(i.duration,i.delay,i.easing)}function _e(r){return r?(r=l$1({},r),r.params&&(r.params=$r(r.params))):r={},r}function Rt(r,e,t){return {duration:r,delay:e,easing:t}}function Jt(r,e,t,n,i,s,o=null,a=false){return {type:1,element:r,keyframes:e,preStyleProps:t,postStyleProps:n,duration:i,delay:s,totalTime:i+s,easing:o,subTimeline:a}}var xe=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t);}has(e){return this._map.has(e)}clear(){this._map.clear();}},Wr=1,Hr=":enter",Yr=new RegExp(Hr,"g"),Jr=":leave",Xr=new RegExp(Jr,"g");function ir(r,e,t,n,i,s=new Map,o=new Map,a,l,u=[]){return new Kt().buildKeyframes(r,e,t,n,i,s,o,a,l,u)}var Kt=class{buildKeyframes(e,t,n,i,s,o,a,l,u,c=[]){u=u||new xe;let m=new Bt(e,t,u,i,s,c,[]);m.options=l;let E=l.delay?te(l.delay):0;m.currentTimeline.delayNextStep(E),m.currentTimeline.setStyles([o],null,m.errors,l),Q(this,n,m);let _=m.timelines.filter(d=>d.containsAnimation());if(_.length&&a.size){let d;for(let y=_.length-1;y>=0;y--){let P=_[y];if(P.element===t){d=P;break}}d&&!d.allowOnlyTimelineStyles()&&d.setStyles([a],null,m.errors,l);}return _.length?_.map(d=>d.buildKeyframes()):[Jt(t,[],[],[],0,E,"",false)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}
10visitAnimateChild(e,t){let n=t.subInstructions.get(t.element);if(n){let i=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);s!=o&&t.transformIntoNewTimeline(o);}t.previousNode=e;}visitAnimateRef(e,t){let n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,n),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e;}_applyAnimationRefDelays(e,t,n){for(let i of e){let s=i?.delay;if(s){let o=typeof s=="number"?s:te(Pe(s,i?.params??{},t.errors));n.delayNextStep(o);}}}_visitSubInstructions(e,t,n){let s=t.currentTimeline.currentTime,o=n.duration!=null?te(n.duration):null,a=n.delay!=null?te(n.delay):null;return o!==0&&e.forEach(l=>{let u=t.appendInstructionToTimeline(l,o,a);s=Math.max(s,u.duration+u.delay);}),s}visitReference(e,t){t.updateOptions(e.options,true),Q(this,e.animation,t),t.previousNode=e;}visitSequence(e,t){let n=t.subContextCount,i=t,s=e.options;if(s&&(s.params||s.delay)&&(i=t.createSubContext(s),i.transformIntoNewTimeline(),s.delay!=null)){i.previousNode.type==S.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=mt);let o=te(s.delay);i.delayNextStep(o);}e.steps.length&&(e.steps.forEach(o=>Q(this,o,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),t.previousNode=e;}visitGroup(e,t){let n=[],i=t.currentTimeline.currentTime,s=e.options&&e.options.delay?te(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);s&&a.delayNextStep(s),Q(this,o,a),i=Math.max(i,a.currentTimeline.currentTime),n.push(a.currentTimeline);}),n.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(i),t.previousNode=e;}_visitTiming(e,t){if(e.dynamic){let n=e.strValue,i=t.params?Pe(n,t.params,t.errors):n;return Ie(i,t.errors)}else return {duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());let s=e.style;s.type==S.Keyframes?this.visitKeyframes(s,t):(t.incrementTime(n.duration),this.visitStyle(s,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e;}visitStyle(e,t){let n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.hasCurrentStyleProperties()&&n.forwardFrame();let s=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(s):n.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e;}visitKeyframes(e,t){let n=t.currentAnimateTimings,i=t.currentTimeline.duration,s=n.duration,a=t.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(l=>{let u=l.offset||0;a.forwardTime(u*s),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe();}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(i+s),t.previousNode=e;}visitQuery(e,t){let n=t.currentTimeline.currentTime,i=e.options||{},s=i.delay?te(i.delay):0;s&&(t.previousNode.type===S.Style||n==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=mt);let o=n,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((u,c)=>{t.currentQueryIndex=c;let m=t.createSubContext(e.options,u);s&&m.delayNextStep(s),u===t.element&&(l=m.currentTimeline),Q(this,e.animation,m),m.currentTimeline.applyStylesToKeyframe();let E=m.currentTimeline.currentTime;o=Math.max(o,E);}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e;}visitStagger(e,t){let n=t.parentContext,i=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case "reverse":l=a-l;break;case "full":l=n.currentStaggerTime;break}let c=t.currentTimeline;l&&c.delayNextStep(l);let m=c.currentTime;Q(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-m+(i.startTime-n.currentTimeline.startTime);}},mt={},Bt=class r{_driver;element;
10subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=mt;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,n,i,s,o,a,l){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=o,this.timelines=a,this.currentTimeline=l||new ht(this._driver,t,0),a.push(this.currentTimeline);}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let n=e,i=this.options;n.duration!=null&&(i.duration=te(n.duration)),n.delay!=null&&(i.delay=te(n.delay));let s=n.params;if(s){let o=i.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=Pe(s[a],o,this.errors));});}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let n=e.params={};Object.keys(t).forEach(i=>{n[i]=t[i];});}}return e}createSubContext(e=null,t,n){let i=t||this.element,s=new r(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=mt,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){let i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},s=new Qt(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e);}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e);}invokeQuery(e,t,n,i,s,o){let a=[];if(i&&a.push(this.element),e.length>0){e=e.replace(Yr,"."+this._enterClassName),e=e.replace(Xr,"."+this._leaveClassName);let l=n!=1,u=this._driver.query(this.element,e,l);n!==0&&(u=n<0?u.slice(u.length+n,u.length):u.slice(0,n)),a.push(...u);}return !s&&a.length==0&&o.push(Ai()),a}},ht=class r{_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(e,t,n,i){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=i,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe();}containsAnimation(){switch(this._keyframes.size){case 0:return  false;case 1:return this.hasCurrentStyleProperties();default:return  true}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e;}fork(e,t){return this.applyStylesToKeyframe(),new r(this._driver,e,t||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+=Wr,this._loadKeyframe();}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe();}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t});}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}
10applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,n]of this._globalTimelineStyles)this._backFill.set(t,n||Y),this._currentKeyframe.set(t,Y);this._currentEmptyStepKeyframe=this._currentKeyframe;}setStyles(e,t,n,i){t&&this._previousKeyframe.set("easing",t);let s=i&&i.params||{},o=Zr(e,this._globalTimelineStyles);for(let[a,l]of o){let u=Pe(l,s,n);this._pendingStyles.set(a,u),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Y),this._updateStyle(a,u);}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e);}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e);}));}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t);}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}
10mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,n)=>{let i=this._styleSummary.get(n);(!i||t.time>i.time)&&this._updateStyle(n,t.value);});}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,n=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((a,l)=>{let u=new Map([...this._backFill,...a]);u.forEach((c,m)=>{c===Oe?e.add(m):c===Y&&t.add(m);}),n||u.set("offset",l/this.duration),i.push(u);});let s=[...e.values()],o=[...t.values()];if(n){let a=i[0],l=new Map(a);a.set("offset",0),l.set("offset",1),i=[a,l];}return Jt(this.element,i,s,o,this.duration,this.startTime,this.easing,false)}},Qt=class extends ht{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,n,i,s,o,a=false){super(e,t,o.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing};}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){let s=[],o=n+t,a=t/o,l=new Map(e[0]);l.set("offset",0),s.push(l);let u=new Map(e[0]);u.set("offset",ji(a)),s.push(u);let c=e.length-1;for(let m=1;m<=c;m++){let E=new Map(e[m]),_=E.get("offset"),d=t+_*n;E.set("offset",ji(d/o)),s.push(E);}n=o,t=0,i="",e=s;}return Jt(this.element,e,this.preStyleProps,this.postStyleProps,n,t,i,true)}};function ji(r,e=3){let t=Math.pow(10,e-1);return Math.round(r*t)/t}function Zr(r,e){let t=new Map,n;return r.forEach(i=>{if(i==="*"){n??=e.keys();for(let s of n)t.set(s,Y);}else for(let[s,o]of i)t.set(s,o);}),t}function Wi(r,e,t,n,i,s,o,a,l,u,c,m,E){return {type:0,element:r,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:s,toState:n,toStyles:o,timelines:a,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:m,errors:E}}var It={},dt=class{_triggerName;ast;_stateStyles;constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n;}match(e,t,n,i){return es(this.ast.matchers,e,t,n,i)}buildStyles(e,t,n){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,n):new Map}build(e,t,n,i,s,o,a,l,u,c){let m=[],E=this.ast.options&&this.ast.options.params||It,_=a&&a.params||It,d=this.buildStyles(n,_,m),y=l&&l.params||It,P=this.buildStyles(i,y,m),D=new Set,O=new Map,q=new Map,x=i==="void",Ee={params:rr(y,E),delay:this.ast.options?.delay},Z=c?[]:ir(e,t,this.ast.animation,s,o,d,P,Ee,u,m),z=0;return Z.forEach(K=>{z=Math.max(K.duration+K.delay,z);}),m.length?Wi(t,this._triggerName,n,i,x,d,P,[],[],O,q,z,m):(Z.forEach(K=>{let de=K.element,ve=B(O,de,new Set);K.preStyleProps.forEach(pe=>ve.add(pe));let Xt=B(q,de,new Set);K.postStyleProps.forEach(pe=>Xt.add(pe)),de!==t&&D.add(de);}),Wi(t,this._triggerName,n,i,x,d,P,Z,[...D.values()],O,q,z))}};function es(r,e,t,n,i){return r.some(s=>s(e,t,n,i))}function rr(r,e){let t=l$1({},e);return Object.entries(r).forEach(([n,i])=>{i!=null&&(t[n]=i);}),t}var Ut=class{styles;defaultParams;normalizer;constructor(e,t,n){this.styles=e,this.defaultParams=t,this.normalizer=n;}buildStyles(e,t){let n=new Map,i=rr(e,this.defaultParams);return this.styles.styles.forEach(s=>
10{typeof s!="string"&&s.forEach((o,a)=>{o&&(o=Pe(o,i,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),n.set(a,o);});}),n}};function ts(r,e,t){return new $t(r,e,t)}var $t=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,n){this.name=e,this.ast=t,this._normalizer=n,t.states.forEach(i=>{let s=i.options&&i.options.params||{};this.states.set(i.name,new Ut(i.style,s,n));}),Hi(this.states,"true","1"),Hi(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new dt(e,i,this.states));}),this.fallbackTransition=ns(e,this.states);}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,i){return this.transitionFactories.find(o=>o.match(e,t,n,i))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}};function ns(r,e,t){let n=[(o,a)=>true],i={type:S.Sequence,steps:[],options:null},s={type:S.Transition,animation:i,matchers:n,options:null,queryCount:0,depCount:0};return new dt(r,s,e)}function Hi(r,e,t){r.has(e)?r.has(t)||r.set(t,r.get(e)):r.has(t)&&r.set(e,r.get(t));}var is=new xe,Gt=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n;}register(e,t){let n=[],i=[],s=nr(this._driver,t,n,i);if(n.length)throw Di();this._animations.set(e,s);}_buildPlayer(e,t,n){let i=e.element,s=At(this._normalizer,e.keyframes,t,n);return this._driver.animate(i,s,e.duration,e.delay,e.easing,[],true)}create(e,t,n={}){let i=[],s=this._animations.get(e),o,a=new Map;if(s?(o=ir(this._driver,t,s,kt,tt,new Map,new Map,n,is,i),o.forEach(c=>{let m=B(a,c.element,new Map);c.postStyleProps.forEach(E=>m.set(E,null));})):(i.push(ki()),o=[]),i.length)throw Oi();a.forEach((c,m)=>{c.forEach((E,_)=>{c.set(_,this._driver.computeStyle(m,_,Y));});});let l=o.map(c=>{let m=a.get(c.element);return this._buildPlayer(c,new Map,m)}),u=ie(l);return this._playersById.set(e,u),u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let n=this.players.indexOf(t);n>=0&&this.players.splice(n,1);}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Fi();return t}listen(e,t,n,i){let s=Ze(t,"","","");return Xe(this._getPlayer(e),n,s,i),()=>{}}command(e,t,n,i){if(n=="register"){this.register(e,i[0]);return}if(n=="create"){let o=i[0]||{};this.create(e,t,o);return}let s=this._getPlayer(e);switch(n){case "play":s.play();break;case "pause":s.pause();break;case "reset":s.reset();break;case "restart":s.restart();break;case "finish":s.finish();break;case "init":s.init();break;case "setPosition":s.setPosition(parseFloat(i[0]));break;case "destroy":this.destroy(e);break}}},Yi="ng-animate-queued",rs=".ng-animate-queued",Lt="ng-animate-disabled",ss=".ng-animate-disabled",os="ng-star-inserted",as=".ng-star-inserted",ls=[],sr={namespaceId:"",setForRemoval:false,setForMove:false,hasAnimation:false,removedBeforeQueried:false},us={namespaceId:"",setForMove:false,setForRemoval:false,hasAnimation:false,removedBeforeQueried:true},X="__ng_removed",Ve=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let n$1=e&&e.hasOwnProperty("value"),i=n$1?e.value:e;if(this.value=ms(i),n$1){let s=e,{value:o}=s,a=n(s,["value"]);this.options=a;}else this.options={};this.options.params||(this.options.params={});}absorbOptions(e){let t=e.params;if(t){let n=this.options.params;Object.keys(t).forEach(i=>{n[i]==null&&(n[i]=t[i]);});}}},Le="void",xt=new Ve(Le),jt=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this._hostClassName="ng-tns-"
10+e,W(t,this._hostClassName);}listen(e,t,n,i){if(!this._triggers.has(t))throw Ri();if(n==null||n.length==0)throw Ii();if(!hs(n))throw Li();let s=B(this._elementListeners,e,[]),o={name:t,phase:n,callback:i};s.push(o);let a=B(this._engine.statesByElement,e,new Map);return a.has(t)||(W(e,Fe),W(e,Fe+"-"+t),a.set(t,xt)),()=>{this._engine.afterFlush(()=>{let l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers.has(t)||a.delete(t);});}}register(e,t){return this._triggers.has(e)?false:(this._triggers.set(e,t),true)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw xi();return t}trigger(e,t,n,i=true){let s=this._getTrigger(t),o=new qe(this.id,t,e),a=this._engine.statesByElement.get(e);a||(W(e,Fe),W(e,Fe+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),u=new Ve(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),a.set(t,u),l||(l=xt),!(u.value===Le)&&l.value===u.value){if(!fs(l.params,u.params)){let y=[],P=s.matchStyles(l.value,l.params,y),D=s.matchStyles(u.value,u.params,y);y.length?this._engine.reportError(y):this._engine.afterFlush(()=>{he(e,P),J(e,D);});}return}let E=B(this._engine.playersByElement,e,[]);E.forEach(y=>{y.namespaceId==this.id&&y.triggerName==t&&y.queued&&y.destroy();});let _=s.matchTransition(l.value,u.value,e,u.params),d=false;if(!_){if(!i)return;_=s.fallbackTransition,d=true;}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:_,fromState:l,toState:u,player:o,isFallbackTransition:d}),d||(W(e,Yi),o.onStart(()=>{Me(e,Yi);})),o.onDone(()=>{let y=this.players.indexOf(o);y>=0&&this.players.splice(y,1);let P=this._engine.playersByElement.get(e);if(P){let D=P.indexOf(o);D>=0&&P.splice(D,1);}}),this.players.push(o),E.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(i=>i.name!=e));});}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e));}_signalRemovalForInnerTriggers(e,t){let n=this._engine.driver.query(e,Re,true);n.forEach(i=>{if(i[X])return;let s=this._engine.fetchNamespacesByElement(i);s.size?s.forEach(o=>o.triggerLeaveAnimation(i,t,false,true)):this.clearElementCache(i);}),this._engine.afterFlushAnimationsDone(()=>n.forEach(i=>this.clearElementCache(i)));}triggerLeaveAnimation(e,t,n,i){let s=this._engine.statesByElement.get(e),o=new Map;if(s){let a=[];if(s.forEach((l,u)=>{if(o.set(u,l.value),this._triggers.has(u)){let c=this.trigger(e,u,Le,i);c&&a.push(c);}}),a.length)return this._engine.markElementAsRemoved(this.id,e,true,t,o),n&&ie(a).onDone(()=>this._engine.processLeaveNode(e)),true}return  false}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){let i=new Set;t.forEach(s=>{let o=s.name;if(i.has(o))return;i.add(o);let l=this._triggers.get(o).fallbackTransition,u=n.get(o)||xt,c=new Ve(Le),m=new qe(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:u,toState:c,player:m,isFallbackTransition:true});});}}removeNode(e,t){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,true))return;let i=false;if(n.totalAnimations){let s=n.players.length?n.playersByQueriedElement.get(e):[];if(s&&s.length)i=true;else {let o=e;for(;o=o.parentNode;)if(n.statesByElement.get(o)){i=true;break}}}if(this.prepareLeaveAnimationListeners(e),i)n.markElementAsRemoved(this.id,e,false,t);else {let s=e[X];(!s||s===sr)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t));}}insertNode(e,t){W(e,this._hostClassName);}drainQueuedTransitions(e){let t=[];return this._queue.forEach(n=>{let i=n.player;if(i.destroyed)return;let s=n.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==n.triggerName){let l=Ze(s,n.triggerName,n.fromState.value,n.toState.value);l._data=e,Xe(n.player,a.phase,l,a.callback);}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy();}):t.push(n);}),this._queue=[],t.sort((n,i)=>{let s=n.transition.ast.depCount,o=i.transition.ast.depCount;return s==0||o==0?s-o:this._engine.driver.containsElement(n.element,i.element)?1:-1})}
10destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e);}},Wt=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=(e,t)=>{};_onRemovalComplete(e,t){this.onRemovalComplete(e,t);}constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n;}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(n=>{n.queued&&e.push(n);});}),e}createNamespace(e,t){let n=new jt(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){let n=this._namespaceList,i=this.namespacesByHostElement;if(n.length-1>=0){let o=false,a=this.driver.getParentElement(t);for(;a;){let l=i.get(a);if(l){let u=n.indexOf(l);n.splice(u+1,0,e),o=true;break}a=this.driver.getParentElement(a);}o||n.unshift(e);}else n.push(e);return i.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++;}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let i=this._namespaceList.indexOf(n);i>=0&&this._namespaceList.splice(i,1),n.destroy(t),delete this._namespaceLookup[e];}));}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,n=this.statesByElement.get(e);if(n){for(let i of n.values())if(i.namespaceId){let s=this._fetchNamespace(i.namespaceId);s&&t.add(s);}}return t}trigger(e,t,n,i){if(at(t)){let s=this._fetchNamespace(e);if(s)return s.trigger(t,n,i),true}return  false}insertNode(e,t,n,i){if(!at(t))return;let s=t[X];if(s&&s.setForRemoval){s.setForRemoval=false,s.setForMove=true;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1);}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,n);}i&&this.collectEnterElement(t);}collectEnterElement(e){this.collectedEnterElements.push(e);}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),W(e,Lt)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Me(e,Lt));}removeNode(e,t,n){if(at(t)){let i=e?this._fetchNamespace(e):null;i?i.removeNode(t,n):this.markElementAsRemoved(e,t,false,n);let s=this.namespacesByHostElement.get(t);s&&s.id!==e&&s.removeNode(t,n);}else this._onRemovalComplete(t,n);}markElementAsRemoved(e,t,n,i,s){this.collectedLeaveElements.push(t),t[X]={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:false,previousTriggersValues:s};}listen(e,t,n,i,s){return at(t)?this._fetchNamespace(e).listen(t,n,i,s):()=>{}}_buildInstruction(e,t,n,i,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,Re,true);t.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,nt,true),t.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)));}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(n=>{n.queued?n.markedForDestroy=true:n.destroy();});}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(n=>n.finish());}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return ie(this.players).onDone(()=>e());e();})}processLeaveNode(e){let t=e[X];if(t&&t.setForRemoval){if(e[X]=sr,t.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e);}this._onRemovalComplete(e,t.setForRemoval);}e.classList?.contains(Lt)&&this.markElementAsDisabled(e,false),this.driver.query(e,ss,true).forEach(n=>{this.markElementAsDisabled(n,false);});}flush(e=-1){let t=[];
10if(this.newHostElements.size&&(this.newHostElements.forEach((n,i)=>this._balanceNamespaceList(n,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++){let i=this.collectedEnterElements[n];W(i,os);}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let n=[];try{t=this._flushAnimations(n,e);}finally{for(let i=0;i<n.length;i++)n[i]();}}else for(let n=0;n<this.collectedLeaveElements.length;n++){let i=this.collectedLeaveElements[n];this.processLeaveNode(i);}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],t.length?ie(t).onDone(()=>{n.forEach(i=>i());}):n.forEach(i=>i());}}reportError(e){throw Vi()}_flushAnimations(e,t){let n=new xe,i=[],s=new Map,o=[],a=new Map,l=new Map,u=new Map,c=new Set;this.disabledNodes.forEach(h=>{c.add(h);let p=this.driver.query(h,rs,true);for(let g=0;g<p.length;g++)c.add(p[g]);});let m=this.bodyNode,E=Array.from(this.statesByElement.keys()),_=Zi(E,this.collectedEnterElements),d=new Map,y=0;_.forEach((h,p)=>{let g=kt+y++;d.set(p,g),h.forEach(C=>W(C,g));});let P=[],D=new Set,O=new Set;for(let h=0;h<this.collectedLeaveElements.length;h++){let p=this.collectedLeaveElements[h],g=p[X];g&&g.setForRemoval&&(P.push(p),D.add(p),g.hasAnimation?this.driver.query(p,as,true).forEach(C=>D.add(C)):O.add(p));}let q=new Map,x=Zi(E,Array.from(D));x.forEach((h,p)=>{let g=tt+y++;q.set(p,g),h.forEach(C=>W(C,g));}),e.push(()=>{_.forEach((h,p)=>{let g=d.get(p);h.forEach(C=>Me(C,g));}),x.forEach((h,p)=>{let g=q.get(p);h.forEach(C=>Me(C,g));}),P.forEach(h=>{this.processLeaveNode(h);});});let Ee=[],Z=[];for(let h=this._namespaceList.length-1;h>=0;h--)this._namespaceList[h].drainQueuedTransitions(t).forEach(g=>{let C=g.player,F=g.element;if(Ee.push(C),this.collectedEnterElements.length){let V=F[X];if(V&&V.setForMove){if(V.previousTriggersValues&&V.previousTriggersValues.has(g.triggerName)){let fe=V.previousTriggersValues.get(g.triggerName),G=this.statesByElement.get(g.element);if(G&&G.has(g.triggerName)){let ze=G.get(g.triggerName);ze.value=fe,G.set(g.triggerName,ze);}}C.destroy();return}}let ee=!m||!this.driver.containsElement(m,F),U=q.get(F),re=d.get(F),M=this._buildInstruction(g,n,re,U,ee);if(M.errors&&M.errors.length){Z.push(M);return}if(ee){C.onStart(()=>he(F,M.fromStyles)),C.onDestroy(()=>J(F,M.toStyles)),i.push(C);return}if(g.isFallbackTransition){C.onStart(()=>he(F,M.fromStyles)),C.onDestroy(()=>J(F,M.toStyles)),i.push(C);return}let tn=[];M.timelines.forEach(V=>{V.stretchStartingKeyframe=true,this.disabledNodes.has(V.element)||tn.push(V);}),M.timelines=tn,n.append(F,M.timelines);let yr={instruction:M,player:C,element:F};o.push(yr),M.queriedElements.forEach(V=>B(a,V,[]).push(C)),M.preStyleProps.forEach((V,fe)=>{if(V.size){let G=l.get(fe);G||l.set(fe,G=new Set),V.forEach((ze,St)=>G.add(St));}}),M.postStyleProps.forEach((V,fe)=>{let G=u.get(fe);G||u.set(fe,G=new Set),V.forEach((ze,St)=>G.add(St));});});if(Z.length){let h=[];Z.forEach(p=>{h.push(qi(p.triggerName,p.errors));}),Ee.forEach(p=>p.destroy()),this.reportError(h);}let z=new Map,K=new Map;o.forEach(h=>{let p=h.element;n.has(p)&&(K.set(p,p),this._beforeAnimationBuild(h.player.namespaceId,h.instruction,z));}),i.forEach(h=>{let p=h.element;this._getPreviousPlayers(p,false,h.namespaceId,h.triggerName,null).forEach(C=>{B(z,p,[]).push(C),C.destroy();});});let de=P.filter(h=>er(h,l,u)),ve=new Map;Xi(ve,this.driver,O,u,Y).forEach(h=>{er(h,l,u)&&de.push(h);});let pe=new Map;_.forEach((h,p)=>{Xi(pe,this.driver,new Set(h),l,Oe);}),de.forEach(h=>{let p=ve.get(h),g=pe.get(h);ve.set(h,new Map([...p?.entries()??[],...g?.entries()??[]]));});let _t=[],Zt=[],en={};o.forEach(h=>{let{element:p,player:g,instruction:C}=h;if(n.has(p)){if(c.has(p)){g.onDestroy(()=>J(p,C.toStyles)),g.disabled=true,g.overrideTotalTime(C.totalTime),i.push(g);return}let F=en;if(K.size>1){let U=p,re=[];for(;
10U=U.parentNode;){let M=K.get(U);if(M){F=M;break}re.push(U);}re.forEach(M=>K.set(M,F));}let ee=this._buildAnimation(g.namespaceId,C,z,s,pe,ve);if(g.setRealPlayer(ee),F===en)_t.push(g);else {let U=this.playersByElement.get(F);U&&U.length&&(g.parentPlayer=ie(U)),i.push(g);}}else he(p,C.fromStyles),g.onDestroy(()=>J(p,C.toStyles)),Zt.push(g),c.has(p)&&i.push(g);}),Zt.forEach(h=>{let p=s.get(h.element);if(p&&p.length){let g=ie(p);h.setRealPlayer(g);}}),i.forEach(h=>{h.parentPlayer?h.syncPlayerEvents(h.parentPlayer):h.destroy();});for(let h=0;h<P.length;h++){let p=P[h],g=p[X];if(Me(p,tt),g&&g.hasAnimation)continue;let C=[];if(a.size){let ee=a.get(p);ee&&ee.length&&C.push(...ee);let U=this.driver.query(p,nt,true);for(let re=0;re<U.length;re++){let M=a.get(U[re]);M&&M.length&&C.push(...M);}}let F=C.filter(ee=>!ee.destroyed);F.length?ds(this,p,F):this.processLeaveNode(p);}return P.length=0,_t.forEach(h=>{this.players.push(h),h.onDone(()=>{h.destroy();let p=this.players.indexOf(h);this.players.splice(p,1);}),h.play();}),_t}afterFlush(e){this._flushFns.push(e);}afterFlushAnimationsDone(e){this._whenQuietFns.push(e);}_getPreviousPlayers(e,t,n,i,s){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a);}else {let a=this.playersByElement.get(e);if(a){let l=!s||s==Le;a.forEach(u=>{u.queued||!l&&u.triggerName!=i||o.push(u);});}}return (n||i)&&(o=o.filter(a=>!(n&&n!=a.namespaceId||i&&i!=a.triggerName))),o}_beforeAnimationBuild(e,t,n){let i=t.triggerName,s=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:i;for(let l of t.timelines){let u=l.element,c=u!==s,m=B(n,u,[]);this._getPreviousPlayers(u,c,o,a,t.toState).forEach(_=>{let d=_.getRealPlayer();d.beforeDestroy&&d.beforeDestroy(),_.destroy(),m.push(_);});}he(s,t.fromStyles);}_buildAnimation(e,t,n,i,s,o){let a=t.triggerName,l=t.element,u=[],c=new Set,m=new Set,E=t.timelines.map(d=>{let y=d.element;c.add(y);let P=y[X];if(P&&P.removedBeforeQueried)return new ne(d.duration,d.delay);let D=y!==l,O=ps((n.get(y)||ls).map(z=>z.getRealPlayer())).filter(z=>{let K=z;return K.element?K.element===y:false}),q=s.get(y),x=o.get(y),Ee=At(this._normalizer,d.keyframes,q,x),Z=this._buildPlayer(d,Ee,O);if(d.subTimeline&&i&&m.add(y),D){let z=new qe(e,a,y);z.setRealPlayer(Z),u.push(z);}return Z});u.forEach(d=>{B(this.playersByQueriedElement,d.element,[]).push(d),d.onDone(()=>cs(this.playersByQueriedElement,d.element,d));}),c.forEach(d=>W(d,Ot));let _=ie(E);return _.onDestroy(()=>{c.forEach(d=>Me(d,Ot)),J(l,t.toStyles);}),m.forEach(d=>{B(i,d,[]).push(_);}),_}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new ne(e.duration,e.delay)}},qe=class{namespaceId;triggerName;element;_player=new ne;_containsRealPlayer=false;_queuedCallbacks=new Map;destroyed=false;parentPlayer=null;markedForDestroy=false;disabled=false;queued=true;totalTime=0;constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n;}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,n)=>{t.forEach(i=>Xe(e,n,void 0,i));}),this._queuedCallbacks.clear(),this._containsRealPlayer=true,this.overrideTotalTime(e.totalTime),this.queued=false);}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e;}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy());}_queueEvent(e,t){B(this._queuedCallbacks,e,[]).push(t);}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e);}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e);}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e);}init(){this._player.init();}hasStarted(){return this.queued?false: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=true,this._player.destroy();}reset(){!this.queued&&this._player.reset();}setPosition(e){this.queued||this._player.setPosition(e);}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e);}};function cs(r,e,t){let n=r.get(e);if(n){if(n.length){let i=n.indexOf(t);n.splice(i,1);}n.length==0&&r.delete(e);}return n}function ms(r){return r??null}function at(r){return r&&r.nodeType===1}function hs(r){return r=="start"||r=="done"}function Ji(r,e){let t=r.style.display;return r.style.display=e??"none",t}function Xi(r,e,t,n,i){let s=[];t.forEach(l=>s.push(Ji(l)));let o=[];
10n.forEach((l,u)=>{let c=new Map;l.forEach(m=>{let E=e.computeStyle(u,m,i);c.set(m,E),(!E||E.length==0)&&(u[X]=us,o.push(u));}),r.set(u,c);});let a=0;return t.forEach(l=>Ji(l,s[a++])),o}function Zi(r,e){let t=new Map;if(r.forEach(a=>t.set(a,[])),e.length==0)return t;let n=1,i=new Set(e),s=new Map;function o(a){if(!a)return n;let l=s.get(a);if(l)return l;let u=a.parentNode;return t.has(u)?l=u:i.has(u)?l=n:l=o(u),s.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==n&&t.get(l).push(a);}),t}function W(r,e){r.classList?.add(e);}function Me(r,e){r.classList?.remove(e);}function ds(r,e,t){ie(t).onDone(()=>r.processLeaveNode(e));}function ps(r){let e=[];return or(r,e),e}function or(r,e){for(let t=0;t<r.length;t++){let n=r[t];n instanceof we?or(n.players,e):e.push(n);}}function fs(r,e){let t=Object.keys(r),n=Object.keys(e);if(t.length!=n.length)return  false;for(let i=0;i<t.length;i++){let s=t[i];if(!e.hasOwnProperty(s)||r[s]!==e[s])return  false}return  true}function er(r,e,t){let n=t.get(r);if(!n)return  false;let i=e.get(r);return i?n.forEach(s=>i.add(s)):e.set(r,n),t.delete(r),true}var Ne=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,n){this._driver=t,this._normalizer=n,this._transitionEngine=new Wt(e.body,t,n),this._timelineEngine=new Gt(e.body,t,n),this._transitionEngine.onRemovalComplete=(i,s)=>this.onRemovalComplete(i,s);}registerTrigger(e,t,n,i,s){let o=e+"-"+i,a=this._triggerCache[o];if(!a){let l=[],u=[],c=nr(this._driver,s,l,u);if(l.length)throw Ni();a=ts(i,c,this._normalizer),this._triggerCache[o]=a;}this._transitionEngine.registerTrigger(t,i,a);}register(e,t){this._transitionEngine.register(e,t);}destroy(e,t){this._transitionEngine.destroy(e,t);}onInsert(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i);}onRemove(e,t,n){this._transitionEngine.removeNode(e,t,n);}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t);}process(e,t,n,i){if(n.charAt(0)=="@"){let[s,o]=Pt(n),a=i;this._timelineEngine.command(s,t,o,a);}else this._transitionEngine.trigger(e,t,n,i);}listen(e,t,n,i,s){if(n.charAt(0)=="@"){let[o,a]=Pt(n);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,n,i,s)}flush(e=-1){this._transitionEngine.flush(e);}get players(){return [...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e);}};function gs(r,e){let t=null,n=null;return Array.isArray(e)&&e.length?(t=Vt(e[0]),e.length>1&&(n=Vt(e[e.length-1]))):e instanceof Map&&(t=Vt(e)),t||n?new ys(r,t,n):null}var ys=(()=>{class r{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,n,i){this._element=t,this._startStyles=n,this._endStyles=i;let s=r.initialStylesByElement.get(t);s||r.initialStylesByElement.set(t,s=new Map),this._initialStyles=s;}start(){this._state<1&&(this._startStyles&&J(this._element,this._startStyles,this._initialStyles),this._state=1);}finish(){this.start(),this._state<2&&(J(this._element,this._initialStyles),this._endStyles&&(J(this._element,this._endStyles),this._endStyles=null),this._state=1);}destroy(){this.finish(),this._state<3&&(r.initialStylesByElement.delete(this._element),this._startStyles&&(he(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(he(this._element,this._endStyles),this._endStyles=null),J(this._element,this._initialStyles),this._state=3);}}return r})();function Vt(r){let e=null;return r.forEach((t,n)=>{_s(n)&&(e=e||new Map,e.set(n,t));}),e}function _s(r){return r==="display"||r==="position"}var pt=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=false;_finished=false;_started=false;_destroyed=false;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,t,n,i){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=i,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay;}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e
10=>e()),this._onDoneFns=[]);}init(){this._buildPlayer()&&this._preparePlayerBeforeStart();}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=true;let e=this.keyframes,t=this._triggerWebAnimation(this.element,e,this.options);if(!t)return this._onFinish(),null;this.domPlayer=t,this._finalKeyframe=e.length?e[e.length-1]:new Map;let n=()=>this._onFinish();return t.addEventListener("finish",n),this.onDestroy(()=>{t.removeEventListener("finish",n);}),t}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause();}_convertKeyframesToObject(e){let t=[];return e.forEach(n=>{t.push(Object.fromEntries(n));}),t}_triggerWebAnimation(e,t,n){let i=this._convertKeyframesToObject(t);try{return e.animate(i,n)}catch{return null}}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e);}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e);}onDestroy(e){this._onDestroyFns.push(e);}play(){let e=this._buildPlayer();e&&(this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=true,this._specialStyles&&this._specialStyles.start()),e.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=false,this._finished=false,this._started=false,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=true,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}setPosition(e){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=e*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 e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,i)=>{i!=="offset"&&e.set(i,this._finished?n:rt(this.element,i));}),this.currentSnapshot=e;}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0;}},ft=class{validateStyleProperty(e){return  true}validateAnimatableStyleProperty(e){return  true}containsElement(e,t){return Mt(e,t)}getParentElement(e){return et(e)}query(e,t,n){return Nt(e,t,n)}computeStyle(e,t,n){return rt(e,t)}animate(e,t,n,i,s,o=[]){let a=i==0?"both":"forwards",l={duration:n,delay:i,fill:a};s&&(l.easing=s);let u=new Map,c=o.filter(_=>_ instanceof pt);Qi(n,i)&&c.forEach(_=>{_.currentSnapshot.forEach((d,y)=>u.set(y,d));});let m=Ki(t).map(_=>new Map(_));m=Ui(e,m,u);let E=gs(e,m);return new pt(e,m,l,E)}};var lt="@",ar="@.disabled",gt=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,n,i){this.namespaceId=e,this.delegate=t,this.engine=n,this._onDestroy=i;}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e);}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy();});}),this._onDestroy?.();}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,false);}insertBefore(e,t,n,i=true){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i);}removeChild(e,t,n,i){if(i){this.delegate.removeChild(e,t,n,i);return}this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate);}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,i){this.delegate.setAttribute(e,t,n,i);}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n);}addClass(e,t){this.delegate.addClass(e,t);}removeClass(e,t){this.delegate.removeClass(e,t);}setStyle(e,t,n,i){this.delegate.setStyle(e,t,n,i);}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n);}setProperty(e,t,n){t.charAt(0)==lt&&t==ar?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n);}setValue(e,t){this.delegate.setValue(e,t);}listen(e,t,n,i){return this.delegate.listen(e,t,n,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t);}},Ht=class extends gt{factory;constructor(e,t,n,i,s){super(t,n,i,s),this.factory=e,this.namespaceId=t;}setProperty(e,t,n){t.charAt(0)==lt?t.charAt(1)=="."&&t==ar?(n=n===void 0?true:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,t.slice(1),n):this.delegate.setProperty(e,t,n);}listen(e,t,n,i){if(t.charAt(0)==lt){let s=Ss(e),o=t.slice(1),a="";return o.charAt(0)!=lt&&([o,a]=bs(o)),this.engine.listen(this.namespaceId,s,o,a,l=>{let u=l._data||-1;this.factory.scheduleListenerCallback(u,n,l);})}return this.delegate.listen(e,t,n,i)}};function Ss(r){switch(r){case "body":return document.body;case "document":return document;case "window":return window;default:return r}}function bs(r){let e=r.indexOf("."),t=r.substring(0,e),n=r.slice(e+1);return [t,n]}var yt=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,t.onRemovalComplete=(i,s)=>{s?.removeChild(null,i);};}createRenderer(e,t){let i=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let u=this._rendererCache,c=u.get(i);if(!c){let m=()=>u.delete(i);c=new gt("",i,this.engine,m),u.set(i,c);}return c}let s=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=u=>{Array.isArray(u)?u.forEach(a):this.engine.registerTrigger(s,o,e,u.name,u);};return t.data.animation.forEach(a),new Ht(this,o,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin();}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++;});}scheduleListenerCallback(e,t,n){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(n));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>
10{i.forEach(s=>{let[o,a]=s;o(a);}),this._animationCallbacksBuffer=[];});}),i.push([t,n]);}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(e){this.engine.flush(),this.delegate.componentReplaced?.(e);}};var vs=(()=>{class r extends Ne{constructor(t,n,i){super(t,n,i);}ngOnDestroy(){this.flush();}static \u0275fac=function(n){return new(n||r)(I$2(ee$3),I$2(Se),I$2(be))};static \u0275prov=S$4({token:r,factory:r.\u0275fac})}return r})();function Cs(){return new ut}function Ts(){return new yt(p$1(ch),p$1(Ne),p$1(ve$2))}var lr=[{provide:be,useFactory:Cs},{provide:Ne,useClass:vs},{provide:Dr$1,useFactory:Ts}],ws=[{provide:Se,useFactory:()=>new ft},{provide:II,useFactory:()=>"BrowserAnimations"},...lr];function ur(){return He$1("NgEagerAnimations"),[...ws]}var cr,mr,hr,De;function dr(r,e){cr=p$1(bt$1),mr=p$1(b),hr=p$1(rt$3),De=p$1(T$3);let t=De.accessToken(),n=De.refreshToken();return t&&(r=pr(r,t)),e(r).pipe(Yn(i=>As(r,e,i,n)))}function As(r,e,t,n){return !r.url.includes("auth/token")&&t instanceof Ut$2&&t.status===401?Ps(r,e,n):Ou(()=>t)}function Ps(r,e,t){return t?De.refreshTokenReq(t).pipe(be$4(n=>(De.setTokens(n.data.access_token,n.data.refresh_token),e(pr(r,n.data.access_token)))),Yn(n=>(De.clearTokens(),mr.setUserData(null),hr.success("You need to login first",""),localStorage.clear(),cr.navigate(["/login"]).then(),Ou(()=>n)))):Ou(()=>new Error("No refresh token available"))}function pr(r,e){return r.clone({setHeaders:{Authorization:`Bearer ${e}`}})}T8(mi);var fr={providers:[{provide:nN,useValue:r=>r.src},H_(),xR(ci),Qp(qn,$n),ZN(QN(),YN([dr])),ur(),rt$3,ct$3]};function Ms(r,e){if(r&1&&fc(0,"div",0),r&2){let t=HT();dc("data-client_id",t.googleClientId());}}var gr=(()=>{class r{constructor(){this.adsService=p$1(L),this.appState=p$1(b),this.authenticationBusinessService=p$1(j$4),this.authService=p$1(T$3),this.accessToken=this.authService.accessToken,this.showGoogleOneTap=oe$2(false),this.baseURL=oe$2(a$1.baseURL),this.googleClientId=oe$2(a$1.googleClientId),this.notification=p$1(rt$3),this.isLoading=oe$2(false),this.socketService=p$1(ar$1),this.inAppNotificationService=p$1(U),this.attributionService=p$1(O$1),this.tiktokPixel=p$1(k$2),this.router=p$1(bt$1),this.handleCredentialResponse=t=>{let n=t.credential;this.notification.success("Logging you in...",""),fetch(`${this.baseURL()}auth/loginWithGoogleOneTap`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({googleJWTToken:n,attribution:this.attributionService.getAttributionPayload()})}).then(i=>i.json()).then(i=>{i.error?i.error.statusCode===403?this.notification.error(i.error.message,""):this.notification.error("An error occurred",""):this.authenticationBusinessService.postLoginWithGoogleActivities(i,i.data.userId).then(()=>{this.isLoading.set(false);});}).catch(()=>{this.notification.error("An error occurred","");});},this.tiktokPixel.trackPageView(),this.router.events.pipe(Ue$1(t=>t instanceof Ye$1)).subscribe(()=>this.tiktokPixel.trackPageView()),this.getAllCategoriesAndSubCategories(),this.accessToken()||(window.handleCredentialResponse=t=>{this.handleCredentialResponse(t);},this.showGoogleOneTap.set(true));}getAllCategoriesAndSubCategories(){this.adsService.getAllCategoriesAndSubCategories().subscribe(t=>{this.appState.setCategoryAndSubcategory(t.data);});}static{this.\u0275fac=function(n){return new(n||r)};}static{this.\u0275cmp=mf({type:r,selectors:[["app-root"]],decls:3,vars:1,consts:[["id","g_id_onload","data-auto_select","false","data-callback","handleCredentialResponse"]],template:function(n,i){n&1&&(fc(0,"app-custom-toast-container"),bT(1,Ms,1,1,"div",0),fc(2,"router-outlet")),n&2&&(Tb(),ST(i.showGoogleOneTap()?1:-1));},dependencies:[jh,G$3],encapsulation:2});}}return r})();(typeof window<"u"&&(window.console.log=()=>{},window.console.debug=()=>{},window.console.info=()=>{},window.console.warn=()=>{}));CN(gr,fr).catch(()=>{});export{$r$1 as $,qn as A,$n as B,Cg as C,Du as D,Ee$2 as E,F_ as F,NT as G,PT as H,Iv as I,HT as J,c_ as K,L,MT as M,NR as N,OR as O,P_ as P,O_ as Q,Rv as R,ST as S,Tb as T,U,gc as V,Wt$2 as W,Nf as X,Ye$1 as Y,_T as Z,_e$3 as _,m as a,fv as a$,lg as a0,dg as a1,BC as a2,sy as a3,a$1 as a4,Ri$1 as a5,T$4 as a6,F$2 as a7,be$4 as a8,m$2 as a9,qT as aA,x_ as aB,$t$2 as aC,pv as aD,rt$3 as aE,Un as aF,Hn as aG,Ln as aH,Je$1 as aI,Vt$1 as aJ,Bn as aK,mn as aL,gn as aM,oi as aN,_8 as aO,nn as aP,T_ as aQ,Pv as aR,kv as aS,I_ as aT,ke$2 as aU,te$4 as aV,Pn as aW,U$5 as aX,Hn$1 as aY,ge$2 as aZ,F as a_,l$1 as aa,ND as ab,JM as ac,YM as ad,j_ as ae,JD as af,B$3 as ag,Ag as ah,S_ as ai,If as aj,uv as ak,Cf as al,xv as am,$$1 as an,jn as ao,dn as ap,ze as aq,mS as ar,vS as as,c2 as at,Rs as au,Ru as av,Yn as aw,T$5 as ax,KM as ay,yv as az,b,uo as b$,mv as b0,_f as b1,Mf as b2,KN as b3,an$1 as b4,LC as b5,ht$2 as b6,re$2 as b7,J$3 as b8,sn as b9,ae$2 as bA,F$1 as bB,s_ as bC,qM as bD,Ov as bE,k_ as bF,WT as bG,$T as bH,zT as bI,HM as bJ,sv as bK,UC as bL,dv as bM,B_ as bN,kw as bO,BM as bP,v$2 as bQ,Se$4 as bR,Ie$3 as bS,Pw as bT,yt$2 as bU,cn$1 as bV,ve$2 as bW,L$4 as bX,ze$3 as bY,Lt$2 as bZ,Uf as b_,ln as ba,TT as bb,n as bc,S$3 as bd,j$4 as be,j$3 as bf,Xa as bg,Ew as bh,M8 as bi,Fn as b
10j,A_ as bk,M$1 as bl,Qs as bm,Jt$1 as bn,k$2 as bo,ko as bp,O$1 as bq,Nw as br,WM as bs,U_ as bt,Fv as bu,C_ as bv,b_ as bw,hn$1 as bx,$e$2 as by,vt$1 as bz,bt$1 as c,Tr$1 as c0,bn as c1,Dr$1 as c2,Lw as c3,W$6 as c4,ri as c5,ee$3 as c6,kn as c7,ie$3 as c8,Ow as c9,Ln$1 as ca,l2 as cb,ar$1 as cc,mp as cd,wp as ce,xw as cf,Aw as cg,tE as ch,ae$4 as d,Ue$1 as e,fc as f,Ig as g,hc as h,bT as i,jh as j,T$3 as k,dc as l,mf as m,cv as n,oe$2 as o,p$1 as p,qa as q,R_ as r,st$3 as s,S$4 as t,Wn as u,v_ as v,wf as w,Dc as x,a2 as y,zM as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.