=0;se--){var B=localStorage.key(se);0===B.indexOf(H)&&localStorage.removeItem(B)}}):V.reject("Invalid arguments"),ve),z}},Dr=function(ve,C){return ve===C||"number"==typeof ve&&"number"==typeof C&&isNaN(ve)&&isNaN(C)},jn=function(ve,C){for(var P=ve.length,z=0;z{"use strict";R.d(Ne,{X:()=>me});var i=R(7709),A=R(7971);class me extends i.xQ{constructor(ae){super(),this._value=ae}get value(){return this.getValue()}_subscribe(ae){const ie=super._subscribe(ae);return ie&&!ie.closed&&ae.next(this._value),ie}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new A.N;return this._value}next(ae){super.next(this._value=ae)}}},7574:(Ze,Ne,R)=>{"use strict";R.d(Ne,{y:()=>V});var i=R(7393),me=R(9181),de=R(6490),ie=R(6554),$=R(4487);var j=R(2494);let V=(()=>{class q{constructor(he){this._isScalar=!1,he&&(this._subscribe=he)}lift(he){const te=new q;return te.source=this,te.operator=he,te}subscribe(he,te,ce){const{operator:re}=this,Fe=function(q,oe,he){if(q){if(q instanceof i.L)return q;if(q[me.b])return q[me.b]()}return q||oe||he?new i.L(q,oe,he):new i.L(de.c)}(he,te,ce);if(Fe.add(re?re.call(Fe,this.source):this.source||j.v.useDeprecatedSynchronousErrorHandling&&!Fe.syncErrorThrowable?this._subscribe(Fe):this._trySubscribe(Fe)),j.v.useDeprecatedSynchronousErrorHandling&&Fe.syncErrorThrowable&&(Fe.syncErrorThrowable=!1,Fe.syncErrorThrown))throw Fe.syncErrorValue;return Fe}_trySubscribe(he){try{return this._subscribe(he)}catch(te){j.v.useDeprecatedSynchronousErrorHandling&&(he.syncErrorThrown=!0,he.syncErrorValue=te),function(q){for(;q;){const{closed:oe,destination:he,isStopped:te}=q;if(oe||te)return!1;q=he&&he instanceof i.L?he:null}return!0}(he)?he.error(te):console.warn(te)}}forEach(he,te){return new(te=L(te))((ce,re)=>{let Fe;Fe=this.subscribe(Oe=>{try{he(Oe)}catch(ge){re(ge),Fe&&Fe.unsubscribe()}},re,ce)})}_subscribe(he){const{source:te}=this;return te&&te.subscribe(he)}[ie.L](){return this}pipe(...he){return 0===he.length?this:function(q){return 0===q.length?$.y:1===q.length?q[0]:function(he){return q.reduce((te,ce)=>ce(te),he)}}(he)(this)}toPromise(he){return new(he=L(he))((te,ce)=>{let re;this.subscribe(Fe=>re=Fe,Fe=>ce(Fe),()=>te(re))})}}return q.create=oe=>new q(oe),q})();function L(q){if(q||(q=j.v.Promise||Promise),!q)throw new Error("no Promise impl found");return q}},6490:(Ze,Ne,R)=>{"use strict";R.d(Ne,{c:()=>me});var i=R(2494),A=R(4449);const me={closed:!0,next(de){},error(de){if(i.v.useDeprecatedSynchronousErrorHandling)throw de;(0,A.z)(de)},complete(){}}},7709:(Ze,Ne,R)=>{"use strict";R.d(Ne,{xQ:()=>K,Yc:()=>$});var i=R(7574),A=R(7393),me=R(5319),de=R(7971);class ae extends me.w{constructor(V,L){super(),this.subject=V,this.subscriber=L,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const V=this.subject,L=V.observers;if(this.subject=null,!L||0===L.length||V.isStopped||V.closed)return;const q=L.indexOf(this.subscriber);-1!==q&&L.splice(q,1)}}var ie=R(9181);class $ extends A.L{constructor(V){super(V),this.destination=V}}let K=(()=>{class j extends i.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[ie.b](){return new $(this)}lift(L){const q=new Y(this,this);return q.operator=L,q}next(L){if(this.closed)throw new de.N;if(!this.isStopped){const{observers:q}=this,oe=q.length,he=q.slice();for(let te=0;tenew Y(V,L),j})();class Y extends K{constructor(V,L){super(),this.destination=V,this.source=L}next(V){const{destination:L}=this;L&&L.next&&L.next(V)}error(V){const{destination:L}=this;L&&L.error&&this.destination.error(V)}complete(){const{destination:V}=this;V&&V.complete&&this.destination.complete()}_subscribe(V){const{source:L}=this;return L?this.source.subscribe(V):me.w.EMPTY}}},7393:(Ze,Ne,R)=>{"use strict";R.d(Ne,{L:()=>$});var i=R(9105),A=R(6490),me=R(5319),de=R(9181),ae=R(2494),ie=R(4449);class $ extends me.w{constructor(j,V,L){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=A.c;break;case 1:if(!j){this.destination=A.c;break}if("object"==typeof j){j instanceof $?(this.syncErrorThrowable=j.syncErrorThrowable,this.destination=j,j.add(this)):(this.syncErrorThrowable=!0,this.destination=new K(this,j));break}default:this.syncErrorThrowable=!0,this.destination=new K(this,j,V,L)}}[de.b](){return this}static create(j,V,L){const q=new $(j,V,L);return q.syncErrorThrowable=!1,q}next(j){this.isStopped||this._next(j)}error(j){this.isStopped||(this.isStopped=!0,this._error(j))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(j){this.destination.next(j)}_error(j){this.destination.error(j),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:j}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=j,this}}class K extends ${constructor(j,V,L,q){super(),this._parentSubscriber=j;let oe,he=this;(0,i.m)(V)?oe=V:V&&(oe=V.next,L=V.error,q=V.complete,V!==A.c&&(he=Object.create(V),(0,i.m)(he.unsubscribe)&&this.add(he.unsubscribe.bind(he)),he.unsubscribe=this.unsubscribe.bind(this))),this._context=he,this._next=oe,this._error=L,this._complete=q}next(j){if(!this.isStopped&&this._next){const{_parentSubscriber:V}=this;ae.v.useDeprecatedSynchronousErrorHandling&&V.syncErrorThrowable?this.__tryOrSetError(V,this._next,j)&&this.unsubscribe():this.__tryOrUnsub(this._next,j)}}error(j){if(!this.isStopped){const{_parentSubscriber:V}=this,{useDeprecatedSynchronousErrorHandling:L}=ae.v;if(this._error)L&&V.syncErrorThrowable?(this.__tryOrSetError(V,this._error,j),this.unsubscribe()):(this.__tryOrUnsub(this._error,j),this.unsubscribe());else if(V.syncErrorThrowable)L?(V.syncErrorValue=j,V.syncErrorThrown=!0):(0,ie.z)(j),this.unsubscribe();else{if(this.unsubscribe(),L)throw j;(0,ie.z)(j)}}}complete(){if(!this.isStopped){const{_parentSubscriber:j}=this;if(this._complete){const V=()=>this._complete.call(this._context);ae.v.useDeprecatedSynchronousErrorHandling&&j.syncErrorThrowable?(this.__tryOrSetError(j,V),this.unsubscribe()):(this.__tryOrUnsub(V),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(j,V){try{j.call(this._context,V)}catch(L){if(this.unsubscribe(),ae.v.useDeprecatedSynchronousErrorHandling)throw L;(0,ie.z)(L)}}__tryOrSetError(j,V,L){if(!ae.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{V.call(this._context,L)}catch(q){return ae.v.useDeprecatedSynchronousErrorHandling?(j.syncErrorValue=q,j.syncErrorThrown=!0,!0):((0,ie.z)(q),!0)}return!1}_unsubscribe(){const{_parentSubscriber:j}=this;this._context=null,this._parentSubscriber=null,j.unsubscribe()}}},5319:(Ze,Ne,R)=>{"use strict";R.d(Ne,{w:()=>ie});var i=R(9796),A=R(1555),me=R(9105);const ae=(()=>{function K(Y){return Error.call(this),this.message=Y?`${Y.length} errors occurred during unsubscription:\n${Y.map((j,V)=>`${V+1}) ${j.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=Y,this}return K.prototype=Object.create(Error.prototype),K})();class ie{constructor(Y){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,Y&&(this._ctorUnsubscribe=!0,this._unsubscribe=Y)}unsubscribe(){let Y;if(this.closed)return;let{_parentOrParents:j,_ctorUnsubscribe:V,_unsubscribe:L,_subscriptions:q}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,j instanceof ie)j.remove(this);else if(null!==j)for(let oe=0;oeY.concat(j instanceof ae?j.errors:j),[])}ie.EMPTY=((K=new ie).closed=!0,K)},2494:(Ze,Ne,R)=>{"use strict";R.d(Ne,{v:()=>A});let i=!1;const A={Promise:void 0,set useDeprecatedSynchronousErrorHandling(me){if(me){const de=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+de.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=me},get useDeprecatedSynchronousErrorHandling(){return i}}},5345:(Ze,Ne,R)=>{"use strict";R.d(Ne,{IY:()=>de,Ds:()=>ie,ft:()=>K});var i=R(7393),A=R(7574),me=R(7444);class de extends i.L{constructor(j){super(),this.parent=j}_next(j){this.parent.notifyNext(j)}_error(j){this.parent.notifyError(j),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class ie extends i.L{notifyNext(j){this.destination.next(j)}notifyError(j){this.destination.error(j)}notifyComplete(){this.destination.complete()}}function K(Y,j){if(j.closed)return;if(Y instanceof A.y)return Y.subscribe(j);let V;try{V=(0,me.s)(Y)(j)}catch(L){j.error(L)}return V}},2441:(Ze,Ne,R)=>{"use strict";R.d(Ne,{c:()=>ae,N:()=>ie});var i=R(7709),A=R(7574),me=R(5319),de=R(1307);class ae extends A.y{constructor(V,L){super(),this.source=V,this.subjectFactory=L,this._refCount=0,this._isComplete=!1}_subscribe(V){return this.getSubject().subscribe(V)}getSubject(){const V=this._subject;return(!V||V.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let V=this._connection;return V||(this._isComplete=!1,V=this._connection=new me.w,V.add(this.source.subscribe(new $(this.getSubject(),this))),V.closed&&(this._connection=null,V=me.w.EMPTY)),V}refCount(){return(0,de.x)()(this)}}const ie=(()=>{const j=ae.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:j._subscribe},_isComplete:{value:j._isComplete,writable:!0},getSubject:{value:j.getSubject},connect:{value:j.connect},refCount:{value:j.refCount}}})();class $ extends i.Yc{constructor(V,L){super(V),this.connectable=L}_error(V){this._unsubscribe(),super._error(V)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const V=this.connectable;if(V){this.connectable=null;const L=V._connection;V._refCount=0,V._subject=null,V._connection=null,L&&L.unsubscribe()}}}},4402:(Ze,Ne,R)=>{"use strict";R.d(Ne,{D:()=>he});var i=R(7574),A=R(7444),me=R(5319),de=R(6554),$=R(4087),K=R(377),V=R(4072),L=R(9489);function he(te,ce){return ce?function(te,ce){if(null!=te){if(function(te){return te&&"function"==typeof te[de.L]}(te))return function(te,ce){return new i.y(re=>{const Fe=new me.w;return Fe.add(ce.schedule(()=>{const Oe=te[de.L]();Fe.add(Oe.subscribe({next(ge){Fe.add(ce.schedule(()=>re.next(ge)))},error(ge){Fe.add(ce.schedule(()=>re.error(ge)))},complete(){Fe.add(ce.schedule(()=>re.complete()))}}))})),Fe})}(te,ce);if((0,V.t)(te))return function(te,ce){return new i.y(re=>{const Fe=new me.w;return Fe.add(ce.schedule(()=>te.then(Oe=>{Fe.add(ce.schedule(()=>{re.next(Oe),Fe.add(ce.schedule(()=>re.complete()))}))},Oe=>{Fe.add(ce.schedule(()=>re.error(Oe)))}))),Fe})}(te,ce);if((0,L.z)(te))return(0,$.r)(te,ce);if(function(te){return te&&"function"==typeof te[K.hZ]}(te)||"string"==typeof te)return function(te,ce){if(!te)throw new Error("Iterable cannot be null");return new i.y(re=>{const Fe=new me.w;let Oe;return Fe.add(()=>{Oe&&"function"==typeof Oe.return&&Oe.return()}),Fe.add(ce.schedule(()=>{Oe=te[K.hZ](),Fe.add(ce.schedule(function(){if(re.closed)return;let ge,ze;try{const Je=Oe.next();ge=Je.value,ze=Je.done}catch(Je){return void re.error(Je)}ze?re.complete():(re.next(ge),this.schedule())}))})),Fe})}(te,ce)}throw new TypeError((null!==te&&typeof te||te)+" is not observable")}(te,ce):te instanceof i.y?te:new i.y((0,A.s)(te))}},6693:(Ze,Ne,R)=>{"use strict";R.d(Ne,{n:()=>de});var i=R(7574),A=R(5015),me=R(4087);function de(ae,ie){return ie?(0,me.r)(ae,ie):new i.y((0,A.V)(ae))}},5917:(Ze,Ne,R)=>{"use strict";R.d(Ne,{of:()=>de});var i=R(4869),A=R(6693),me=R(4087);function de(...ae){let ie=ae[ae.length-1];return(0,i.K)(ie)?(ae.pop(),(0,me.r)(ae,ie)):(0,A.n)(ae)}},4612:(Ze,Ne,R)=>{"use strict";R.d(Ne,{b:()=>A});var i=R(9773);function A(me,de){return(0,i.zg)(me,de,1)}},5435:(Ze,Ne,R)=>{"use strict";R.d(Ne,{h:()=>A});var i=R(7393);function A(ae,ie){return function(K){return K.lift(new me(ae,ie))}}class me{constructor(ie,$){this.predicate=ie,this.thisArg=$}call(ie,$){return $.subscribe(new de(ie,this.predicate,this.thisArg))}}class de extends i.L{constructor(ie,$,K){super(ie),this.predicate=$,this.thisArg=K,this.count=0}_next(ie){let $;try{$=this.predicate.call(this.thisArg,ie,this.count++)}catch(K){return void this.destination.error(K)}$&&this.destination.next(ie)}}},8002:(Ze,Ne,R)=>{"use strict";R.d(Ne,{U:()=>A});var i=R(7393);function A(ae,ie){return function(K){if("function"!=typeof ae)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return K.lift(new me(ae,ie))}}class me{constructor(ie,$){this.project=ie,this.thisArg=$}call(ie,$){return $.subscribe(new de(ie,this.project,this.thisArg))}}class de extends i.L{constructor(ie,$,K){super(ie),this.project=$,this.count=0,this.thisArg=K||this}_next(ie){let $;try{$=this.project.call(this.thisArg,ie,this.count++)}catch(K){return void this.destination.error(K)}this.destination.next($)}}},3282:(Ze,Ne,R)=>{"use strict";R.d(Ne,{J:()=>me});var i=R(9773),A=R(4487);function me(de=Number.POSITIVE_INFINITY){return(0,i.zg)(A.y,de)}},9773:(Ze,Ne,R)=>{"use strict";R.d(Ne,{zg:()=>de});var i=R(8002),A=R(4402),me=R(5345);function de(K,Y,j=Number.POSITIVE_INFINITY){return"function"==typeof Y?V=>V.pipe(de((L,q)=>(0,A.D)(K(L,q)).pipe((0,i.U)((oe,he)=>Y(L,oe,q,he))),j)):("number"==typeof Y&&(j=Y),V=>V.lift(new ae(K,j)))}class ae{constructor(Y,j=Number.POSITIVE_INFINITY){this.project=Y,this.concurrent=j}call(Y,j){return j.subscribe(new ie(Y,this.project,this.concurrent))}}class ie extends me.Ds{constructor(Y,j,V=Number.POSITIVE_INFINITY){super(Y),this.project=j,this.concurrent=V,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(Y){this.active0?this._next(Y.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},1307:(Ze,Ne,R)=>{"use strict";R.d(Ne,{x:()=>A});var i=R(7393);function A(){return function(ie){return ie.lift(new me(ie))}}class me{constructor(ie){this.connectable=ie}call(ie,$){const{connectable:K}=this;K._refCount++;const Y=new de(ie,K),j=$.subscribe(Y);return Y.closed||(Y.connection=K.connect()),j}}class de extends i.L{constructor(ie,$){super(ie),this.connectable=$}_unsubscribe(){const{connectable:ie}=this;if(!ie)return void(this.connection=null);this.connectable=null;const $=ie._refCount;if($<=0)return void(this.connection=null);if(ie._refCount=$-1,$>1)return void(this.connection=null);const{connection:K}=this,Y=ie._connection;this.connection=null,Y&&(!K||Y===K)&&Y.unsubscribe()}}},3190:(Ze,Ne,R)=>{"use strict";R.d(Ne,{w:()=>de});var i=R(8002),A=R(4402),me=R(5345);function de($,K){return"function"==typeof K?Y=>Y.pipe(de((j,V)=>(0,A.D)($(j,V)).pipe((0,i.U)((L,q)=>K(j,L,V,q))))):Y=>Y.lift(new ae($))}class ae{constructor(K){this.project=K}call(K,Y){return Y.subscribe(new ie(K,this.project))}}class ie extends me.Ds{constructor(K,Y){super(K),this.project=Y,this.index=0}_next(K){let Y;const j=this.index++;try{Y=this.project(K,j)}catch(V){return void this.destination.error(V)}this._innerSub(Y)}_innerSub(K){const Y=this.innerSubscription;Y&&Y.unsubscribe();const j=new me.IY(this),V=this.destination;V.add(j),this.innerSubscription=(0,me.ft)(K,j),this.innerSubscription!==j&&V.add(this.innerSubscription)}_complete(){const{innerSubscription:K}=this;(!K||K.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(K){this.destination.next(K)}}},3342:(Ze,Ne,R)=>{"use strict";R.d(Ne,{b:()=>de});var i=R(7393);function A(){}var me=R(9105);function de($,K,Y){return function(V){return V.lift(new ae($,K,Y))}}class ae{constructor(K,Y,j){this.nextOrObserver=K,this.error=Y,this.complete=j}call(K,Y){return Y.subscribe(new ie(K,this.nextOrObserver,this.error,this.complete))}}class ie extends i.L{constructor(K,Y,j,V){super(K),this._tapNext=A,this._tapError=A,this._tapComplete=A,this._tapError=j||A,this._tapComplete=V||A,(0,me.m)(Y)?(this._context=this,this._tapNext=Y):Y&&(this._context=Y,this._tapNext=Y.next||A,this._tapError=Y.error||A,this._tapComplete=Y.complete||A)}_next(K){try{this._tapNext.call(this._context,K)}catch(Y){return void this.destination.error(Y)}this.destination.next(K)}_error(K){try{this._tapError.call(this._context,K)}catch(Y){return void this.destination.error(Y)}this.destination.error(K)}_complete(){try{this._tapComplete.call(this._context)}catch(K){return void this.destination.error(K)}return this.destination.complete()}}},4087:(Ze,Ne,R)=>{"use strict";R.d(Ne,{r:()=>me});var i=R(7574),A=R(5319);function me(de,ae){return new i.y(ie=>{const $=new A.w;let K=0;return $.add(ae.schedule(function(){K!==de.length?(ie.next(de[K++]),ie.closed||$.add(this.schedule())):ie.complete()})),$})}},377:(Ze,Ne,R)=>{"use strict";R.d(Ne,{hZ:()=>A});const A="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},6554:(Ze,Ne,R)=>{"use strict";R.d(Ne,{L:()=>i});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},9181:(Ze,Ne,R)=>{"use strict";R.d(Ne,{b:()=>i});const i="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},7971:(Ze,Ne,R)=>{"use strict";R.d(Ne,{N:()=>A});const A=(()=>{function me(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return me.prototype=Object.create(Error.prototype),me})()},4449:(Ze,Ne,R)=>{"use strict";function i(A){setTimeout(()=>{throw A},0)}R.d(Ne,{z:()=>i})},4487:(Ze,Ne,R)=>{"use strict";function i(A){return A}R.d(Ne,{y:()=>i})},9796:(Ze,Ne,R)=>{"use strict";R.d(Ne,{k:()=>i});const i=Array.isArray||(A=>A&&"number"==typeof A.length)},9489:(Ze,Ne,R)=>{"use strict";R.d(Ne,{z:()=>i});const i=A=>A&&"number"==typeof A.length&&"function"!=typeof A},9105:(Ze,Ne,R)=>{"use strict";function i(A){return"function"==typeof A}R.d(Ne,{m:()=>i})},1555:(Ze,Ne,R)=>{"use strict";function i(A){return null!==A&&"object"==typeof A}R.d(Ne,{K:()=>i})},4072:(Ze,Ne,R)=>{"use strict";function i(A){return!!A&&"function"!=typeof A.subscribe&&"function"==typeof A.then}R.d(Ne,{t:()=>i})},4869:(Ze,Ne,R)=>{"use strict";function i(A){return A&&"function"==typeof A.schedule}R.d(Ne,{K:()=>i})},7444:(Ze,Ne,R)=>{"use strict";R.d(Ne,{s:()=>V});var i=R(5015),A=R(4449),de=R(377),ie=R(6554),K=R(9489),Y=R(4072),j=R(1555);const V=L=>{if(L&&"function"==typeof L[ie.L])return(L=>q=>{const oe=L[ie.L]();if("function"!=typeof oe.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return oe.subscribe(q)})(L);if((0,K.z)(L))return(0,i.V)(L);if((0,Y.t)(L))return(L=>q=>(L.then(oe=>{q.closed||(q.next(oe),q.complete())},oe=>q.error(oe)).then(null,A.z),q))(L);if(L&&"function"==typeof L[de.hZ])return(L=>q=>{const oe=L[de.hZ]();for(;;){let he;try{he=oe.next()}catch(te){return q.error(te),q}if(he.done){q.complete();break}if(q.next(he.value),q.closed)break}return"function"==typeof oe.return&&q.add(()=>{oe.return&&oe.return()}),q})(L);{const oe=`You provided ${(0,j.K)(L)?"an invalid object":`'${L}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(oe)}}},5015:(Ze,Ne,R)=>{"use strict";R.d(Ne,{V:()=>i});const i=A=>me=>{for(let de=0,ae=A.length;de{"use strict";R.d(Ne,{U:()=>A});const i={env:"production",development:{version:"0.9.0",baseURL:"https://localhost:2399",managerURL:"https://192.168.1.187:4000/",frontUrl:"https://192.168.1.187:4000/",iosstoreid:"id0123456",androidstoreid:"snapp.cl",phoneSupport:"56944770416",fintoc:{public_key:"pk_test_H5mt65eZ828ipAs2nx8GAncVA-rakCmD",secret_key:"sk_test_U-kZoPfyB2Yp5d2Sz9JiomEMKq7obTyy"},google:{public_key:"354895794882-hoobmhq9cqjkr6nu1ld400jnltg3s6sm.apps.googleusercontent.com",script:"https://accounts.google.com/gsi/client"},facebook:{app_id:"1121797189948476",script:"https://connect.facebook.net/en_US/sdk.js",config_id:"1072027508373021"}},test:{version:"0.9.0",baseURL:"https://services.snapp.cl:2398",managerURL:"https://snapp.cl/",frontUrl:"https://snapp.cl/",iosstoreid:"id0123456",androidstoreid:"cl.snapp.payments",phoneSupport:"56944770416",fintoc:{public_key:"pk_test_H5mt65eZ828ipAs2nx8GAncVA-rakCmD",secret_key:"sk_test_U-kZoPfyB2Yp5d2Sz9JiomEMKq7obTyy"},google:{public_key:"354895794882-hoobmhq9cqjkr6nu1ld400jnltg3s6sm.apps.googleusercontent.com",script:"https://accounts.google.com/gsi/client"},facebook:{app_id:"1121797189948476",script:"https://connect.facebook.net/en_US/sdk.js",config_id:"1072027508373021"}},production:{version:"0.9.0",baseURL:"https://services.snapp.cl:2399",managerURL:"https://snapp.cl/",frontUrl:"https://snapp.cl/",iosstoreid:"id0123456",androidstoreid:"cl.snapp.payments",phoneSupport:"56944770416",fintoc:{public_key:"pk_live_rdzjkaje4hhM5Eaf3Uj5NRtjG1NsCCtE",secret_key:"sk_live_An1ZzXj9yi39TFcTW-g7BXUz1NGgHPxH"},google:{public_key:"354895794882-hoobmhq9cqjkr6nu1ld400jnltg3s6sm.apps.googleusercontent.com",script:"https://accounts.google.com/gsi/client"},facebook:{app_id:"1121797189948476",script:"https://connect.facebook.net/en_US/sdk.js",config_id:"1072027508373021"}},localcloud:{version:"0.9.0",baseURL:"https://services.snapp.cl:2398",managerURL:"https://192.168.1.187:4000/",frontUrl:"https://192.168.1.187:4000/",iosstoreid:"id0123456",androidstoreid:"snapp.cl",phoneSupport:"56944770416",fintoc:{public_key:"pk_test_H5mt65eZ828ipAs2nx8GAncVA-rakCmD",secret_key:"sk_test_U-kZoPfyB2Yp5d2Sz9JiomEMKq7obTyy"},google:{public_key:"354895794882-hoobmhq9cqjkr6nu1ld400jnltg3s6sm.apps.googleusercontent.com",script:"https://accounts.google.com/gsi/client"},facebook:{app_id:"1121797189948476",script:"https://connect.facebook.net/en_US/sdk.js",config_id:"1072027508373021"}}},A=me=>{if(!i[i.env])throw new Error("Bad configuration");return me?i[i.env][me]:i[i.env]}},470:(Ze,Ne,R)=>{"use strict";R.d(Ne,{Y:()=>i});const i={service:{code:"01",description:"Error en servicio",modules:{http:{code:"01",child:{errorHandler:"001"}},user:{code:"02",child:{requireCode2FA:"001",validateCode2FA:"002",assignUserDevice:"003",me:"004"}},equipment:{code:"03",child:{infoEquipment:"001"}},auth:{code:"04",child:{loginWithGoogle:"001",loginWithChangePassword:"002",login:"003",registerUser:"004",loginWithFacebook:"005"}},wallet:{code:"05",child:{cashback:"001"}}}}}},1228:(Ze,Ne,R)=>{"use strict";R.d(Ne,{e:()=>$});var i=R(8239),A=R(470),me=R(639),de=R(7119),ae=R(2300),ie=R(3755);let $=(()=>{class K{constructor(j,V,L){this.methods=j,this.memory=V,this.http=L,this.schematicError=A.Y.service,this.moduleError=this.schematicError.modules.auth}registerUser(j){var V=this;return(0,i.Z)(function*(){var L;try{const q=yield V.http.put("/user",j).toPromise();return null!==(L=null==q?void 0:q.data)&&void 0!==L?L:q}catch(q){return{msg:"No pudimos completar la solicitud, favor de contactar a soporte.",status:-1,errCode:`SNP-F${V.schematicError.code}${V.moduleError.code}${V.moduleError.child.registerUser}`,transactionId:Date.now()}}})()}login(j){var V=this;return(0,i.Z)(function*(){var L;try{const q=yield V.http.get("/user/login",{headers:Object.assign({},j)}).toPromise();return null!==(L=null==q?void 0:q.data)&&void 0!==L?L:q}catch(q){return{msg:"No pudimos completar la solicitud, favor de contactar a soporte.",status:-1,errCode:`SNP-F${V.schematicError.code}${V.moduleError.code}${V.moduleError.child.login}`,transactionId:Date.now()}}})()}getUserSessionFromLocalStorage(){var j=this;return new Promise(function(){var V=(0,i.Z)(function*(L,q){try{const oe=yield j.memory.loadAuthorizationToken();if(oe){let te,he=yield j.memory.loadDeviceKey();he||(he=((yield j.methods.get("/user/device",{},{},0))||{deviceKey:null}).deviceKey,yield j.memory.saveDeviceKey(he)),te=yield j.methods.get("/user",{},{},0).catch(ce=>console.error(ce)),(null==te?void 0:te.error)||"object"!=typeof te?(j.memory.saveAuthorizationToken(void 0),L({token:void 0,loged:!1,userAttributes:{},requireMFA:!1})):(j.memory.saveAuthorizationToken(oe),j.memory.userAttr=Object.assign({},te),he=((yield j.methods.get("/user/device/assig",{},{},0))||{deviceKey:null}).deviceKey,yield j.memory.saveDeviceKey(he),L({token:oe,loged:!0,userAttributes:Object.assign({},te),requireMFA:!1}))}else L({token:void 0,loged:!1,userAttributes:{},requireMFA:!1})}catch(oe){L({token:void 0,loged:!1,userAttributes:{},requireMFA:!1})}});return function(L,q){return V.apply(this,arguments)}}())}snappLogout(){var j=this;return(0,i.Z)(function*(){yield j.memory.removeSession()})()}loginWithChangePassword(j){var V=this;return(0,i.Z)(function*(){var L;try{const q=yield V.http.post("/user/login/password",j,{headers:{authorization:j.token}}).toPromise();return null!==(L=null==q?void 0:q.data)&&void 0!==L?L:q}catch(q){return{msg:"No pudimos completar la solicitud, favor de contactar a soporte.",status:-1,errCode:`SNP-F${V.schematicError.code}${V.moduleError.code}${V.moduleError.child.loginWithChangePassword}`,transactionId:Date.now()}}})()}loginWithGoogle(j){var V=this;return(0,i.Z)(function*(){var L;try{const q=yield V.http.post("/auth/google/sign-in",{token:j.credential}).toPromise();return null!==(L=null==q?void 0:q.data)&&void 0!==L?L:q}catch(q){return{msg:"No pudimos completar la solicitud, favor de contactar a soporte.",status:-1,errCode:`SNP-F${V.schematicError.code}${V.moduleError.code}${V.moduleError.child.loginWithGoogle}`,transactionId:Date.now()}}})()}loginWithFacebook(j){var V=this;return(0,i.Z)(function*(){var L;try{const q=yield V.http.post("/auth/facebook/sign-in",{token:j.credential}).toPromise();return null!==(L=null==q?void 0:q.data)&&void 0!==L?L:q}catch(q){return{msg:"No pudimos completar la solicitud, favor de contactar a soporte.",status:-1,errCode:`SNP-F${V.schematicError.code}${V.moduleError.code}${V.moduleError.child.loginWithFacebook}`,transactionId:Date.now()}}})()}registerWithGoogle(j){var V=this;return(0,i.Z)(function*(){try{const L=yield V.methods.post("/auth/google/sign-up",{token:j},void 0,void 0,0);return Object.assign({status:200},L)}catch(L){return Object.assign(Object.assign({status:L.status},0===L.status?{message:"No se ha podido conectar con nuestros servicios. Intente de nuevo mas tarde o contacte con su administrador"}:500===L.status?{message:"Ocurri\xf3 un error al cargar la informaci\xf3n, Si el error persiste contacte con su administrador"}:void 0),L.error)}})()}registerWithFacebook(j){var V=this;return(0,i.Z)(function*(){try{const L=yield V.methods.post("/auth/facebook/sign-up",{token:j},void 0,void 0,0);return Object.assign({status:200},L)}catch(L){return Object.assign(Object.assign({status:L.status},0===L.status?{message:"No se ha podido conectar con nuestros servicios. Intente de nuevo mas tarde o contacte con su administrador"}:500===L.status?{message:"Ocurri\xf3 un error al cargar la informaci\xf3n, Si el error persiste contacte con su administrador"}:void 0),L.error)}})()}}return K.\u0275fac=function(j){return new(j||K)(me.LFG(de.O),me.LFG(ae.S),me.LFG(ie.O))},K.\u0275prov=me.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"}),K})()},3755:(Ze,Ne,R)=>{"use strict";R.d(Ne,{O:()=>j});var i=R(8239),A=R(8686),me=R.n(A),de=R(7574),ae=R(9698),ie=R(470),$=R(639),K=R(2300);const Y={0:"No hay conexi\xf3n a internet. Comprueba tu red.",400:"Datos incorrectos. Revisa la informaci\xf3n enviada.",401:"Sesi\xf3n expirada. Inicia sesi\xf3n nuevamente.",403:"No tienes permiso para realizar esta acci\xf3n.",404:"No encontramos lo que buscas.",409:"La informaci\xf3n ya existe o est\xe1 en conflicto.",413:"El archivo es demasiado grande para subir.",422:"No se pudo procesar la solicitud. Revisa los datos.",429:"Demasiadas solicitudes. Espera un momento e intenta de nuevo.",500:"Error del servidor. Intenta nuevamente m\xe1s tarde.",502:"Servicio temporalmente indisponible. Intenta m\xe1s tarde.",503:"Servicio no disponible. Intenta de nuevo en unos minutos.",504:"Tiempo de espera agotado. La solicitud tard\xf3 demasiado."};let j=(()=>{class V{constructor(q){this.memory=q,this.schematicError=ie.Y.service,this.moduleError=this.schematicError.modules.http,this.baseURL=ae.U("baseURL"),this.axiosClient=me().create({baseURL:this.baseURL,headers:{"Content-Type":"application/json"}}),this.setupInterceptors()}setupInterceptors(){var q=this;this.axiosClient.interceptors.request.use(function(){var oe=(0,i.Z)(function*(he){const te=yield q.memory.loadAuthorizationToken(),ce=yield q.memory.loadDeviceKey();return"string"==typeof te&&te.length>0&&"string"==typeof ce&&ce.length>0&&(he.headers=Object.assign(Object.assign({},he.headers),{userKey:`Bearer ${te}`,devKey:ce})),he});return function(he){return oe.apply(this,arguments)}}(),oe=>Promise.reject(oe)),this.axiosClient.interceptors.response.use(oe=>oe,oe=>Promise.reject(oe))}handleError(q){var oe,he,te;const{response:ce}=q;return null==ce?Object.assign({msg:Y[0],errCode:`SNP-F${this.schematicError.code}${this.moduleError.code}${this.moduleError.child.errorHandler}`},null==ce?void 0:ce.data):void 0===(null===(oe=null==ce?void 0:ce.data)||void 0===oe?void 0:oe.msg)||null===(null===(he=null==ce?void 0:ce.data)||void 0===he?void 0:he.msg)?Object.assign({msg:Y[null!==(te=null==ce?void 0:ce.status)&&void 0!==te?te:0]},null==ce?void 0:ce.data):null==ce?void 0:ce.data}post(q,oe,he){return new de.y(te=>{this.axiosClient.post(q,oe,he).then(ce=>{te.next(ce),te.complete()}).catch(ce=>{const re=this.handleError(ce);te.next(re),te.complete()})})}get(q,oe){return new de.y(he=>{this.axiosClient.get(q,oe).then(te=>{he.next(te),he.complete()}).catch(te=>{const ce=this.handleError(te);he.next(ce),he.complete()})})}downloadFile(q,oe,he){return new de.y(te=>{this.axiosClient.get(q,oe).then(ce=>{const re=new Blob([ce.data],{type:ce.headers["content-type"]}),Fe=window.URL.createObjectURL(re),Oe=document.createElement("a");Oe.href=Fe;const ge=ce.headers["content-disposition"],ze="string"==typeof ge?ge.split("filename=")[1].replace(/"/g,""):null!=he?he:"download";Oe.download=ze,document.body.appendChild(Oe),Oe.click(),document.body.removeChild(Oe),window.URL.revokeObjectURL(Fe),te.next(),te.complete()}).catch(ce=>{const re=this.handleError(ce);console.error("Error downloading file:",re),te.error(re)})})}put(q,oe,he){return new de.y(te=>{this.axiosClient.put(q,oe,he).then(ce=>{te.next(ce),te.complete()}).catch(ce=>{const re=this.handleError(ce);te.next(re),te.complete()})})}delete(q,oe){return new de.y(he=>{this.axiosClient.delete(q,oe).then(te=>{he.next(te),he.complete()}).catch(te=>{const ce=this.handleError(te);he.next(ce),he.complete()})})}}return V.\u0275fac=function(q){return new(q||V)($.LFG(K.S))},V.\u0275prov=$.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})()},2300:(Ze,Ne,R)=>{"use strict";R.d(Ne,{S:()=>ae});var i=R(8239),A=R(639),me=R(1628),de=R(169);let ae=(()=>{class ie{constructor(K,Y){this.storage=K,this.toastService=Y,this.eqList=[],this.startScan=!1,this.newVerAvailable=!1,this.loggedIn=!1,this.previousUrl=null,this.ngOnInit()}ngOnInit(){var K=this;return(0,i.Z)(function*(){yield K.storage.create()})()}get eqsList(){return this.eqList.filter((K,Y)=>Y==this.eqList.findIndex(j=>K.serial==j.serial))}get isLogged(){return this.loggedIn}get sessionToken(){return this.authToken}saveEqList(K){var Y=this;return(0,i.Z)(function*(){if(!K.hasOwnProperty("qr"))return;let j=yield Y.loadEqList();if(j.some(V=>V.qr===K.qr))return Y.toastService.presentToast("Ocurrio un error","El equipo ingresado ya existe en el carro de compras.",3e3);j.push(K),yield Y.storage.set("eqList",JSON.stringify(j||[]))})()}cleanEqList(){var K=this;return(0,i.Z)(function*(){yield K.storage.set("eqList",JSON.stringify([]))})()}loadEqList(){var K=this;return(0,i.Z)(function*(){var Y;try{return JSON.parse(null!==(Y=yield K.storage.get("eqList"))&&void 0!==Y?Y:"[]")}catch(j){return yield K.storage.set("eqList",JSON.stringify([])),[]}})()}loadAuthorizationToken(){var K=this;return(0,i.Z)(function*(){if(K.loggedIn&&K.authToken)return K.authToken;const Y=(yield K.storage.get("authorization_token"))||!1;return Y&&(K.authToken=Y),Y})()}loadDeviceKey(){var K=this;return(0,i.Z)(function*(){if(K.deviceKey)return K.deviceKey;const Y=yield K.storage.get("device_key");return Y&&(K.deviceKey=Y),Y})()}removeEqFromList(K){var Y=this;return(0,i.Z)(function*(){let j=yield Y.loadEqList();j.splice(K,1),yield Y.storage.set("eqList",JSON.stringify(j||[]))})()}notificationsPermisionRes(){var K=this;return(0,i.Z)(function*(){return(yield K.storage.get("notificationsPermisionRes"))||!1})()}setNotificationPermisionRes(K){var Y=this;return(0,i.Z)(function*(){yield Y.storage.set("notificationsPermisionRes",K||!1)})()}saveAuthorizationToken(K){var Y=this;return(0,i.Z)(function*(){return!!K&&(Y.authToken=K,Y.loggedIn=!!Y.authToken,yield Y.storage.set("authorization_token",K),Y.authToken)})()}saveDeviceKey(K){var Y=this;return(0,i.Z)(function*(){return Y.deviceKey=K,yield Y.storage.set("device_key",K),Y.deviceKey})()}removeSession(){var K=this;return(0,i.Z)(function*(){K.storage.set("authorization_token",void 0),K.userInfo={},K.loggedIn=!1,K.authToken=void 0})()}}return ie.\u0275fac=function(K){return new(K||ie)(A.LFG(me.K),A.LFG(de.i))},ie.\u0275prov=A.Yz7({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})()},7119:(Ze,Ne,R)=>{"use strict";R.d(Ne,{O:()=>de});var i=R(1841),A=R(9698),me=R(639);let de=(()=>{class ae{constructor($){this.http=$,this.baseURL=A.U("baseURL")}get baseUrl(){return this.baseURL}post($,K,Y={},j={},V=0,L="json"){return new Promise((q,oe)=>{const he={};for(const re in Y)he[re]=Y[re].toString();let te;te="arraybuffer"===L?{responseType:"arraybuffer"}:{responseType:"json"};let ce=new i.LE;Object.keys(j).forEach(re=>{ce=ce.append(re,j[re].toString())}),this.http.post(`${this.baseURL}${$}`,K,Object.assign(Object.assign({},te),{headers:new i.WM(he),params:ce})).subscribe(re=>{q(re)},re=>{oe(re)})})}get($,K,Y,j=0,V=!0){return new Promise((L,q)=>{const oe={};for(const te in K)oe[te]=K[te].toString();let he=new i.LE;for(const te in Y)null!=Y[te]&&(he=he.append(te,Y[te].toString()));this.http.get(`${this.baseURL}${$}`,{headers:new i.WM(oe),params:he}).subscribe(te=>{L(te)},te=>{q(te)})})}delete($,K,Y,j=0,V=!0){return new Promise((L,q)=>{const oe={};for(const te in K)oe[te]=K[te].toString();let he=new i.LE;for(const te in Y)null!=Y[te]&&(he=he.append(te,Y[te].toString()));this.http.delete(`${this.baseURL}${$}`,{headers:new i.WM(oe),params:he}).subscribe(te=>{L(te)},te=>{q(te)})})}put($,K,Y,j,V=0,L="json"){return new Promise((q,oe)=>{const he={};for(const re in Y)he[re]=Y[re].toString();const te={responseType:L};let ce=new i.LE;for(const re in j)null!=j[re]&&(ce=ce.append(re,j[re].toString()));this.http.put(`${this.baseURL}${$}`,K,Object.assign(Object.assign({},te),{headers:new i.WM(he),params:ce})).subscribe(re=>{q(re)},re=>{oe(re)})})}}return ae.\u0275fac=function($){return new($||ae)(me.LFG(i.eN))},ae.\u0275prov=me.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})()},4156:(Ze,Ne,R)=>{"use strict";R.d(Ne,{V:()=>me});var i=R(6215),A=R(639);let me=(()=>{class de{constructor(){this.loadingSubject=new i.X(!1),this.messageSubject=new i.X(void 0),this.loading$=this.loadingSubject.asObservable(),this.message$=this.messageSubject.asObservable(),this.loading=!1}show(ie){this.loadingSubject.value||this.loadingSubject.next(!0),this.messageSubject.value!==ie&&this.messageSubject.next(ie)}hide(){this.loadingSubject.value&&this.loadingSubject.next(!1),this.messageSubject.next(void 0)}setLoading(ie,$){this.loading=ie,this.message=$}getLoading(){return this.loading}getMessage(){return this.message}}return de.\u0275fac=function(ie){return new(ie||de)},de.\u0275prov=A.Yz7({token:de,factory:de.\u0275fac,providedIn:"root"}),de})()},169:(Ze,Ne,R)=>{"use strict";R.d(Ne,{i:()=>de});var i=R(8239),A=R(639),me=R(700);let de=(()=>{class ae{constructor($){this.toastCtrl=$}presentToast($,K,Y){var j=this;return(0,i.Z)(function*(){(yield j.toastCtrl.create({header:$,message:K,position:"bottom",duration:Y,cssClass:"toast-notification",color:"dark",buttons:[{text:"Cerrar",role:"cancel",handler:()=>{}}]})).present()})()}}return ae.\u0275fac=function($){return new($||ae)(A.LFG(me.yF))},ae.\u0275prov=A.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})()},8149:(Ze,Ne,R)=>{"use strict";var i=R(8583),A=R(639);class me extends i.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class de extends me{static makeCurrent(){(0,i.HT)(new de)}onAndCancel(a,l,p){return a.addEventListener(l,p,!1),()=>{a.removeEventListener(l,p,!1)}}dispatchEvent(a,l){a.dispatchEvent(l)}remove(a){a.parentNode&&a.parentNode.removeChild(a)}createElement(a,l){return(l=l||this.getDefaultDocument()).createElement(a)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(a){return a.nodeType===Node.ELEMENT_NODE}isShadowRoot(a){return a instanceof DocumentFragment}getGlobalEventTarget(a,l){return"window"===l?window:"document"===l?a:"body"===l?a.body:null}getBaseHref(a){const l=(ae=ae||document.querySelector("base"),ae?ae.getAttribute("href"):null);return null==l?null:function(m){$=$||document.createElement("a"),$.setAttribute("href",m);const a=$.pathname;return"/"===a.charAt(0)?a:`/${a}`}(l)}resetBaseElement(){ae=null}getUserAgent(){return window.navigator.userAgent}getCookie(a){return(0,i.Mx)(document.cookie,a)}}let $,ae=null;const Y=new A.OlP("TRANSITION_ID"),V=[{provide:A.ip1,useFactory:function(m,a,l){return()=>{l.get(A.CZH).donePromise.then(()=>{const p=(0,i.q)(),I=a.querySelectorAll(`style[ng-transition="${m}"]`);for(let k=0;k{const k=a.findTestabilityInTree(p,I);if(null==k)throw new Error("Could not find testability for element.");return k},A.dqk.getAllAngularTestabilities=()=>a.getAllTestabilities(),A.dqk.getAllAngularRootElements=()=>a.getAllRootElements(),A.dqk.frameworkStabilizers||(A.dqk.frameworkStabilizers=[]),A.dqk.frameworkStabilizers.push(p=>{const I=A.dqk.getAllAngularTestabilities();let k=I.length,Z=!1;const le=function(Te){Z=Z||Te,k--,0==k&&p(Z)};I.forEach(function(Te){Te.whenStable(le)})})}findTestabilityInTree(a,l,p){if(null==l)return null;const I=a.getTestability(l);return null!=I?I:p?(0,i.q)().isShadowRoot(l)?this.findTestabilityInTree(a,l.host,!0):this.findTestabilityInTree(a,l.parentElement,!0):null}}let q=(()=>{class m{build(){return new XMLHttpRequest}}return m.\u0275fac=function(l){return new(l||m)},m.\u0275prov=A.Yz7({token:m,factory:m.\u0275fac}),m})();const Ae=new A.OlP("EventManagerPlugins");let xe=(()=>{class m{constructor(l,p){this._zone=p,this._eventNameToPlugin=new Map,l.forEach(I=>I.manager=this),this._plugins=l.slice().reverse()}addEventListener(l,p,I){return this._findPluginFor(p).addEventListener(l,p,I)}addGlobalEventListener(l,p,I){return this._findPluginFor(p).addGlobalEventListener(l,p,I)}getZone(){return this._zone}_findPluginFor(l){const p=this._eventNameToPlugin.get(l);if(p)return p;const I=this._plugins;for(let k=0;k{class m{constructor(){this._stylesSet=new Set}addStyles(l){const p=new Set;l.forEach(I=>{this._stylesSet.has(I)||(this._stylesSet.add(I),p.add(I))}),this.onStylesAdded(p)}onStylesAdded(l){}getAllStyles(){return Array.from(this._stylesSet)}}return m.\u0275fac=function(l){return new(l||m)},m.\u0275prov=A.Yz7({token:m,factory:m.\u0275fac}),m})(),Ot=(()=>{class m extends Xe{constructor(l){super(),this._doc=l,this._hostNodes=new Map,this._hostNodes.set(l.head,[])}_addStylesToHost(l,p,I){l.forEach(k=>{const Z=this._doc.createElement("style");Z.textContent=k,I.push(p.appendChild(Z))})}addHost(l){const p=[];this._addStylesToHost(this._stylesSet,l,p),this._hostNodes.set(l,p)}removeHost(l){const p=this._hostNodes.get(l);p&&p.forEach(jt),this._hostNodes.delete(l)}onStylesAdded(l){this._hostNodes.forEach((p,I)=>{this._addStylesToHost(l,I,p)})}ngOnDestroy(){this._hostNodes.forEach(l=>l.forEach(jt))}}return m.\u0275fac=function(l){return new(l||m)(A.LFG(i.K0))},m.\u0275prov=A.Yz7({token:m,factory:m.\u0275fac}),m})();function jt(m){(0,i.q)().remove(m)}const et={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/"},$e=/%COMP%/g;function Ct(m,a,l){for(let p=0;p{if("__ngUnwrap__"===a)return m;!1===m(a)&&(a.preventDefault(),a.returnValue=!1)}}let Tt=(()=>{class m{constructor(l,p,I){this.eventManager=l,this.sharedStylesHost=p,this.appId=I,this.rendererByCompId=new Map,this.defaultRenderer=new an(l)}createRenderer(l,p){if(!l||!p)return this.defaultRenderer;switch(p.encapsulation){case A.ifc.Emulated:{let I=this.rendererByCompId.get(p.id);return I||(I=new Fn(this.eventManager,this.sharedStylesHost,p,this.appId),this.rendererByCompId.set(p.id,I)),I.applyToHost(l),I}case 1:case A.ifc.ShadowDom:return new Yt(this.eventManager,this.sharedStylesHost,l,p);default:if(!this.rendererByCompId.has(p.id)){const I=Ct(p.id,p.styles,[]);this.sharedStylesHost.addStyles(I),this.rendererByCompId.set(p.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return m.\u0275fac=function(l){return new(l||m)(A.LFG(xe),A.LFG(Ot),A.LFG(A.AFp))},m.\u0275prov=A.Yz7({token:m,factory:m.\u0275fac}),m})();class an{constructor(a){this.eventManager=a,this.data=Object.create(null)}destroy(){}createElement(a,l){return l?document.createElementNS(et[l]||l,a):document.createElement(a)}createComment(a){return document.createComment(a)}createText(a){return document.createTextNode(a)}appendChild(a,l){a.appendChild(l)}insertBefore(a,l,p){a&&a.insertBefore(l,p)}removeChild(a,l){a&&a.removeChild(l)}selectRootElement(a,l){let p="string"==typeof a?document.querySelector(a):a;if(!p)throw new Error(`The selector "${a}" did not match any elements`);return l||(p.textContent=""),p}parentNode(a){return a.parentNode}nextSibling(a){return a.nextSibling}setAttribute(a,l,p,I){if(I){l=I+":"+l;const k=et[I];k?a.setAttributeNS(k,l,p):a.setAttribute(l,p)}else a.setAttribute(l,p)}removeAttribute(a,l,p){if(p){const I=et[p];I?a.removeAttributeNS(I,l):a.removeAttribute(`${p}:${l}`)}else a.removeAttribute(l)}addClass(a,l){a.classList.add(l)}removeClass(a,l){a.classList.remove(l)}setStyle(a,l,p,I){I&(A.JOm.DashCase|A.JOm.Important)?a.style.setProperty(l,p,I&A.JOm.Important?"important":""):a.style[l]=p}removeStyle(a,l,p){p&A.JOm.DashCase?a.style.removeProperty(l):a.style[l]=""}setProperty(a,l,p){a[l]=p}setValue(a,l){a.nodeValue=l}listen(a,l,p){return"string"==typeof a?this.eventManager.addGlobalEventListener(a,l,ht(p)):this.eventManager.addEventListener(a,l,ht(p))}}class Fn extends an{constructor(a,l,p,I){super(a),this.component=p;const k=Ct(I+"-"+p.id,p.styles,[]);l.addStyles(k),this.contentAttr="_ngcontent-%COMP%".replace($e,I+"-"+p.id),this.hostAttr="_nghost-%COMP%".replace($e,I+"-"+p.id)}applyToHost(a){super.setAttribute(a,this.hostAttr,"")}createElement(a,l){const p=super.createElement(a,l);return super.setAttribute(p,this.contentAttr,""),p}}class Yt extends an{constructor(a,l,p,I){super(a),this.sharedStylesHost=l,this.hostEl=p,this.shadowRoot=p.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const k=Ct(I.id,I.styles,[]);for(let Z=0;Z{class m extends je{constructor(l){super(l)}supports(l){return!0}addEventListener(l,p,I){return l.addEventListener(p,I,!1),()=>this.removeEventListener(l,p,I)}removeEventListener(l,p,I){return l.removeEventListener(p,I)}}return m.\u0275fac=function(l){return new(l||m)(A.LFG(i.K0))},m.\u0275prov=A.Yz7({token:m,factory:m.\u0275fac}),m})();const bt=["alt","control","meta","shift"],gt={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},zt={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},en={alt:m=>m.altKey,control:m=>m.ctrlKey,meta:m=>m.metaKey,shift:m=>m.shiftKey};let St=(()=>{class m extends je{constructor(l){super(l)}supports(l){return null!=m.parseEventName(l)}addEventListener(l,p,I){const k=m.parseEventName(p),Z=m.eventCallback(k.fullKey,I,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,i.q)().onAndCancel(l,k.domEventName,Z))}static parseEventName(l){const p=l.toLowerCase().split("."),I=p.shift();if(0===p.length||"keydown"!==I&&"keyup"!==I)return null;const k=m._normalizeKey(p.pop());let Z="";if(bt.forEach(Te=>{const Le=p.indexOf(Te);Le>-1&&(p.splice(Le,1),Z+=Te+".")}),Z+=k,0!=p.length||0===k.length)return null;const le={};return le.domEventName=I,le.fullKey=Z,le}static getEventFullKey(l){let p="",I=function(m){let a=m.key;if(null==a){if(a=m.keyIdentifier,null==a)return"Unidentified";a.startsWith("U+")&&(a=String.fromCharCode(parseInt(a.substring(2),16)),3===m.location&&zt.hasOwnProperty(a)&&(a=zt[a]))}return gt[a]||a}(l);return I=I.toLowerCase()," "===I?I="space":"."===I&&(I="dot"),bt.forEach(k=>{k!=I&&en[k](l)&&(p+=k+".")}),p+=I,p}static eventCallback(l,p,I){return k=>{m.getEventFullKey(k)===l&&I.runGuarded(()=>p(k))}}static _normalizeKey(l){return"esc"===l?"escape":l}}return m.\u0275fac=function(l){return new(l||m)(A.LFG(i.K0))},m.\u0275prov=A.Yz7({token:m,factory:m.\u0275fac}),m})();const dr=(0,A.eFA)(A._c5,"browser",[{provide:A.Lbi,useValue:i.bD},{provide:A.g9A,useValue:function(){de.makeCurrent(),L.init()},multi:!0},{provide:i.K0,useFactory:function(){return(0,A.RDi)(document),document},deps:[]}]),er=[[],{provide:A.zSh,useValue:"root"},{provide:A.qLn,useFactory:function(){return new A.qLn},deps:[]},{provide:Ae,useClass:xn,multi:!0,deps:[i.K0,A.R0b,A.Lbi]},{provide:Ae,useClass:St,multi:!0,deps:[i.K0]},[],{provide:Tt,useClass:Tt,deps:[xe,Ot,A.AFp]},{provide:A.FYo,useExisting:Tt},{provide:Xe,useExisting:Ot},{provide:Ot,useClass:Ot,deps:[i.K0]},{provide:A.dDg,useClass:A.dDg,deps:[A.R0b]},{provide:xe,useClass:xe,deps:[Ae,A.R0b]},{provide:i.JF,useClass:q,deps:[]},[]];let nr=(()=>{class m{constructor(l){if(l)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(l){return{ngModule:m,providers:[{provide:A.AFp,useValue:l.appId},{provide:Y,useExisting:A.AFp},V]}}}return m.\u0275fac=function(l){return new(l||m)(A.LFG(m,12))},m.\u0275mod=A.oAB({type:m}),m.\u0275inj=A.cJS({providers:er,imports:[i.ez,A.hGG]}),m})();"undefined"!=typeof window&&window;var Jt=R(8739),Vt=R(8239),Sn=R(2300);let zn=(()=>{class m{constructor(l,p){this.memory=l,this.router=p}canActivate(l,p){var I=this;return new Promise(function(){var k=(0,Vt.Z)(function*(Z,le){var Te,Le;const pt=null===(Le=null===(Te=I.router.getCurrentNavigation())||void 0===Te?void 0:Te.extras)||void 0===Le?void 0:Le.state,Rt=null==pt?void 0:pt.fromNotFound,Pt=window.location.href.replace(window.location.origin,"");return I.memory.isLogged&&I.memory.userAttr?Z(!0):(I.memory.previousUrl=Rt?"home":Pt,I.router.navigateByUrl("/reload"),Z(!1))});return function(Z,le){return k.apply(this,arguments)}}())}}return m.\u0275fac=function(l){return new(l||m)(A.LFG(Sn.S),A.LFG(Jt.F0))},m.\u0275prov=A.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})();const bn=[{path:"",redirectTo:"/login",pathMatch:"full"},{path:"login",loadChildren:()=>Promise.all([R.e(3743),R.e(8592),R.e(6158)]).then(R.bind(R,6158)).then(m=>m.LoginModule)},{path:"register",loadChildren:()=>Promise.all([R.e(3743),R.e(8592),R.e(4174)]).then(R.bind(R,4174)).then(m=>m.RegisterModule)},{path:"restore",loadChildren:()=>Promise.all([R.e(3743),R.e(8592),R.e(5970)]).then(R.bind(R,5970)).then(m=>m.RestoreModule)},{path:"home",loadChildren:()=>Promise.all([R.e(9179),R.e(126),R.e(8592),R.e(7054)]).then(R.bind(R,7054)).then(m=>m.HomeModule),canActivate:[zn]},{path:"menu",loadChildren:()=>R.e(4909).then(R.bind(R,4909)).then(m=>m.MenuModule),canActivate:[zn]},{path:"edit-user",loadChildren:()=>Promise.all([R.e(8592),R.e(6173)]).then(R.bind(R,6173)).then(m=>m.EditUserModule),canActivate:[zn]},{path:"payment-methods",loadChildren:()=>Promise.all([R.e(9179),R.e(6890)]).then(R.bind(R,6890)).then(m=>m.PaymentMethodsModule),canActivate:[zn]},{path:"payment-history",loadChildren:()=>Promise.all([R.e(8592),R.e(2986)]).then(R.bind(R,2986)).then(m=>m.PaymentHistoryModule),canActivate:[zn]},{path:"wallet-history",loadChildren:()=>Promise.all([R.e(8592),R.e(3134)]).then(R.bind(R,3134)).then(m=>m.WalletHistoryModule),canActivate:[zn]},{path:"reload",loadChildren:()=>R.e(4591).then(R.bind(R,4591)).then(m=>m.ReloadModule)},{path:"list",loadChildren:()=>Promise.all([R.e(9179),R.e(341)]).then(R.bind(R,341)).then(m=>m.ListModule),canActivate:[zn]},{path:"code",loadChildren:()=>Promise.all([R.e(126),R.e(6215)]).then(R.bind(R,7488)).then(m=>m.CodeModule),canActivate:[zn]},{path:"payresult",loadChildren:()=>R.e(1348).then(R.bind(R,1348)).then(m=>m.PayresultModule)},{path:"device",loadChildren:()=>R.e(1348).then(R.bind(R,1348)).then(m=>m.PayresultModule)},{path:"registerresult",loadChildren:()=>R.e(1348).then(R.bind(R,1348)).then(m=>m.PayresultModule)},{path:"**",loadChildren:()=>R.e(8822).then(R.bind(R,8822)).then(m=>m.NotFoundModule)}];let Fr=(()=>{class m{}return m.\u0275fac=function(l){return new(l||m)},m.\u0275mod=A.oAB({type:m}),m.\u0275inj=A.cJS({imports:[[Jt.Bz.forRoot(bn,{preloadingStrategy:Jt.wm})],Jt.Bz]}),m})();var qn=R(4156);class Bt{}const X="*";function ve(m,a){return{type:7,name:m,definitions:a,options:{}}}function C(m,a=null){return{type:4,styles:a,timings:m}}function z(m,a=null){return{type:2,steps:m,options:a}}function H(m){return{type:6,styles:m,offset:null}}function ne(m,a,l=null){return{type:1,expr:m,animation:a,options:l}}function wt(m){Promise.resolve(null).then(m)}class Dt{constructor(a=0,l=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=a+l}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}onStart(a){this._onStartFns.push(a)}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){wt(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(a=>a()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(a){this._position=this.totalTime?a*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(a){const l="start"==a?this._onStartFns:this._onDoneFns;l.forEach(p=>p()),l.length=0}}class mn{constructor(a){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=a;let l=0,p=0,I=0;const k=this.players.length;0==k?wt(()=>this._onFinish()):this.players.forEach(Z=>{Z.onDone(()=>{++l==k&&this._onFinish()}),Z.onDestroy(()=>{++p==k&&this._onDestroy()}),Z.onStart(()=>{++I==k&&this._onStart()})}),this.totalTime=this.players.reduce((Z,le)=>Math.max(Z,le.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}init(){this.players.forEach(a=>a.init())}onStart(a){this._onStartFns.push(a)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(a=>a()),this._onStartFns=[])}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(a=>a.play())}pause(){this.players.forEach(a=>a.pause())}restart(){this.players.forEach(a=>a.restart())}finish(){this._onFinish(),this.players.forEach(a=>a.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(a=>a.destroy()),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this.players.forEach(a=>a.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(a){const l=a*this.totalTime;this.players.forEach(p=>{const I=p.totalTime?Math.min(1,l/p.totalTime):1;p.setPosition(I)})}getPosition(){const a=this.players.reduce((l,p)=>null===l||p.totalTime>l.totalTime?p:l,null);return null!=a?a.getPosition():0}beforeDestroy(){this.players.forEach(a=>{a.beforeDestroy&&a.beforeDestroy()})}triggerCallback(a){const l="start"==a?this._onStartFns:this._onDoneFns;l.forEach(p=>p()),l.length=0}}function An(m,a){if(1&m&&(A.TgZ(0,"span",3),A._uU(1),A.qZA()),2&m){const l=A.oxw();A.xp6(1),A.Oqu(l.spinnerMessage)}}let yr=(()=>{class m{constructor(l){this.spinner=l,this.spinner.message$.subscribe(p=>{this.spinnerMessage=p})}ngOnInit(){}}return m.\u0275fac=function(l){return new(l||m)(A.Y36(qn.V))},m.\u0275cmp=A.Xpm({type:m,selectors:[["app-loader-page"]],decls:4,vars:1,consts:[[1,"box-loader"],[1,"loader"],["class","text-span",4,"ngIf"],[1,"text-span"]],template:function(l,p){1&l&&(A.TgZ(0,"main"),A.TgZ(1,"div",0),A._UZ(2,"div",1),A.YNc(3,An,2,1,"span",2),A.qZA(),A.qZA()),2&l&&(A.xp6(3),A.Q6J("ngIf",p.spinnerMessage))},directives:[i.O5],styles:['@charset "UTF-8";main[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;z-index:9999;display:flex;align-items:center;justify-content:center;background-color:#fff}.box-loader[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100%}span[_ngcontent-%COMP%]{margin-top:1rem;font-family:"Roboto";font-size:1.25rem;font-weight:400;line-height:1.25rem;text-align:center}.loader[_ngcontent-%COMP%]{width:50px;aspect-ratio:1;border-radius:50%;border:8px solid;border-color:#000 #0000;animation:l1 1s infinite}@keyframes l1{to{transform:rotate(.5turn)}}'],data:{animation:[ve("fadeInOut",[ne(":enter",[H({opacity:0}),C("3000ms ease-in",H({opacity:1}))]),ne(":leave",[C("3000ms ease-out",H({opacity:0}))])])]}}),m})();function Hr(m,a){1&m&&A._UZ(0,"app-loader-page")}let Yn=(()=>{class m{constructor(l,p){this.spinner=l,this.cdr=p,this.canViewSpinner=!1}ngOnInit(){this.spinner.loading$.subscribe(l=>{this.canViewSpinner=l,this.cdr.detectChanges()})}ngAfterViewInit(){}}return m.\u0275fac=function(l){return new(l||m)(A.Y36(qn.V),A.Y36(A.sBO))},m.\u0275cmp=A.Xpm({type:m,selectors:[["app-root"]],decls:2,vars:1,consts:[[4,"ngIf"]],template:function(l,p){1&l&&(A._UZ(0,"router-outlet"),A.YNc(1,Hr,1,0,"app-loader-page",0)),2&l&&(A.xp6(1),A.Q6J("ngIf",p.canViewSpinner))},directives:[Jt.lC,i.O5,yr],styles:[""]}),m})();var fr=R(700);function Io(){return"undefined"!=typeof window&&void 0!==window.document}function co(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Nr(m){switch(m.length){case 0:return new Dt;case 1:return m[0];default:return new mn(m)}}function Kr(m,a,l,p,I={},k={}){const Z=[],le=[];let Te=-1,Le=null;if(p.forEach(pt=>{const Rt=pt.offset,Pt=Rt==Te,Cn=Pt&&Le||{};Object.keys(pt).forEach(Kt=>{let dn=Kt,On=pt[Kt];if("offset"!==Kt)switch(dn=a.normalizePropertyName(dn,Z),On){case"!":On=I[Kt];break;case X:On=k[Kt];break;default:On=a.normalizeStyleValue(Kt,dn,On,Z)}Cn[dn]=On}),Pt||le.push(Cn),Le=Cn,Te=Rt}),Z.length){const pt="\n - ";throw new Error(`Unable to animate due to the following errors:${pt}${Z.join(pt)}`)}return le}function Xo(m,a,l,p){switch(a){case"start":m.onStart(()=>p(l&&ko(l,"start",m)));break;case"done":m.onDone(()=>p(l&&ko(l,"done",m)));break;case"destroy":m.onDestroy(()=>p(l&&ko(l,"destroy",m)))}}function ko(m,a,l){const p=l.totalTime,k=To(m.element,m.triggerName,m.fromState,m.toState,a||m.phaseName,null==p?m.totalTime:p,!!l.disabled),Z=m._data;return null!=Z&&(k._data=Z),k}function To(m,a,l,p,I="",k=0,Z){return{element:m,triggerName:a,fromState:l,toState:p,phaseName:I,totalTime:k,disabled:!!Z}}function xr(m,a,l){let p;return m instanceof Map?(p=m.get(a),p||m.set(a,p=l)):(p=m[a],p||(p=m[a]=l)),p}function Lo(m){const a=m.indexOf(":");return[m.substring(1,a),m.substr(a+1)]}let Bo=(m,a)=>!1,po=(m,a)=>!1,uo=(m,a,l)=>[];const bi=co();(bi||"undefined"!=typeof Element)&&(Bo=Io()?(m,a)=>{for(;a&&a!==document.documentElement;){if(a===m)return!0;a=a.parentNode||a.host}return!1}:(m,a)=>m.contains(a),po=(()=>{if(bi||Element.prototype.matches)return(m,a)=>m.matches(a);{const m=Element.prototype,a=m.matchesSelector||m.mozMatchesSelector||m.msMatchesSelector||m.oMatchesSelector||m.webkitMatchesSelector;return a?(l,p)=>a.apply(l,[p]):po}})(),uo=(m,a,l)=>{let p=[];if(l){const I=m.querySelectorAll(a);for(let k=0;k{const p=l.replace(/([a-z])([A-Z])/g,"$1-$2");a[p]=m[l]}),a}let Zo=(()=>{class m{validateStyleProperty(l){return qr(l)}matchesElement(l,p){return Ao(l,p)}containsElement(l,p){return Jo(l,p)}query(l,p,I){return Xr(l,p,I)}computeStyle(l,p,I){return I||""}animate(l,p,I,k,Z,le=[],Te){return new Dt(I,k)}}return m.\u0275fac=function(l){return new(l||m)},m.\u0275prov=A.Yz7({token:m,factory:m.\u0275fac}),m})(),$o=(()=>{class m{}return m.NOOP=new Zo,m})();const yo="ng-enter",jo="ng-leave",G="ng-trigger",x=".ng-trigger",J="ng-animating",Ee=".ng-animating";function Qe(m){if("number"==typeof m)return m;const a=m.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:st(parseFloat(a[1]),a[2])}function st(m,a){return"s"===a?1e3*m:m}function T(m,a,l){return m.hasOwnProperty("duration")?m:function(m,a,l){let I,k=0,Z="";if("string"==typeof m){const le=m.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===le)return a.push(`The provided timing value "${m}" is invalid.`),{duration:0,delay:0,easing:""};I=st(parseFloat(le[1]),le[2]);const Te=le[3];null!=Te&&(k=st(parseFloat(Te),le[4]));const Le=le[5];Le&&(Z=Le)}else I=m;if(!l){let le=!1,Te=a.length;I<0&&(a.push("Duration values below 0 are not allowed for this animation step."),le=!0),k<0&&(a.push("Delay values below 0 are not allowed for this animation step."),le=!0),le&&a.splice(Te,0,`The provided timing value "${m}" is invalid.`)}return{duration:I,delay:k,easing:Z}}(m,a,l)}function E(m,a={}){return Object.keys(m).forEach(l=>{a[l]=m[l]}),a}function Pe(m,a,l={}){if(a)for(let p in m)l[p]=m[p];else E(m,l);return l}function ut(m,a,l){return l?a+":"+l+";":""}function Wt(m){let a="";for(let l=0;l{const I=Qi(p);l&&!l.hasOwnProperty(p)&&(l[p]=m.style[I]),m.style[I]=a[p]}),co()&&Wt(m))}function Wn(m,a){m.style&&(Object.keys(a).forEach(l=>{const p=Qi(l);m.style[p]=""}),co()&&Wt(m))}function kn(m){return Array.isArray(m)?1==m.length?m[0]:z(m):m}const kr=new RegExp("{{\\s*(.+?)\\s*}}","g");function eo(m){let a=[];if("string"==typeof m){let l;for(;l=kr.exec(m);)a.push(l[1]);kr.lastIndex=0}return a}function lr(m,a,l){const p=m.toString(),I=p.replace(kr,(k,Z)=>{let le=a[Z];return a.hasOwnProperty(Z)||(l.push(`Please provide a value for the animation param ${Z}`),le=""),le.toString()});return I==p?m:I}function vr(m){const a=[];let l=m.next();for(;!l.done;)a.push(l.value),l=m.next();return a}const wi=/-+([a-z0-9])/g;function Qi(m){return m.replace(wi,(...a)=>a[1].toUpperCase())}function fo(m){return m.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ei(m,a){return 0===m||0===a}function Si(m,a,l){const p=Object.keys(l);if(p.length&&a.length){let k=a[0],Z=[];if(p.forEach(le=>{k.hasOwnProperty(le)||Z.push(le),k[le]=l[le]}),Z.length)for(var I=1;Ifunction(m,a,l){if(":"==m[0]){const Te=function(m,a){switch(m){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(l,p)=>parseFloat(p)>parseFloat(l);case":decrement":return(l,p)=>parseFloat(p) *"}}(m,l);if("function"==typeof Te)return void a.push(Te);m=Te}const p=m.match(/^(\*|[-\w]+)\s*([=-]>)\s*(\*|[-\w]+)$/);if(null==p||p.length<4)return l.push(`The provided transition expression "${m}" is not supported`),a;const I=p[1],k=p[2],Z=p[3];a.push(at(I,Z));"<"==k[0]&&!("*"==I&&"*"==Z)&&a.push(at(Z,I))}(p,l,a)):l.push(m),l}const Ho=new Set(["true","1"]),ci=new Set(["false","0"]);function at(m,a){const l=Ho.has(m)||ci.has(m),p=Ho.has(a)||ci.has(a);return(I,k)=>{let Z="*"==m||m==I,le="*"==a||a==k;return!Z&&l&&"boolean"==typeof I&&(Z=I?Ho.has(m):ci.has(m)),!le&&p&&"boolean"==typeof k&&(le=k?Ho.has(a):ci.has(a)),Z&&le}}const $s=new RegExp("s*:selfs*,?","g");function hr(m,a,l){return new Ii(m).build(a,l)}class Ii{constructor(a){this._driver=a}build(a,l){const p=new ts(l);return this._resetContextStyleTimingState(p),Ft(this,kn(a),p)}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles={},a.collectedStyles[""]={},a.currentTime=0}visitTrigger(a,l){let p=l.queryCount=0,I=l.depCount=0;const k=[],Z=[];return"@"==a.name.charAt(0)&&l.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),a.definitions.forEach(le=>{if(this._resetContextStyleTimingState(l),0==le.type){const Te=le,Le=Te.name;Le.toString().split(/\s*,\s*/).forEach(pt=>{Te.name=pt,k.push(this.visitState(Te,l))}),Te.name=Le}else if(1==le.type){const Te=this.visitTransition(le,l);p+=Te.queryCount,I+=Te.depCount,Z.push(Te)}else l.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:a.name,states:k,transitions:Z,queryCount:p,depCount:I,options:null}}visitState(a,l){const p=this.visitStyle(a.styles,l),I=a.options&&a.options.params||null;if(p.containsDynamicStyles){const k=new Set,Z=I||{};if(p.styles.forEach(le=>{if(Go(le)){const Te=le;Object.keys(Te).forEach(Le=>{eo(Te[Le]).forEach(pt=>{Z.hasOwnProperty(pt)||k.add(pt)})})}}),k.size){const le=vr(k.values());l.errors.push(`state("${a.name}", ...) must define default values for all the following style substitutions: ${le.join(", ")}`)}}return{type:0,name:a.name,style:p,options:I?{params:I}:null}}visitTransition(a,l){l.queryCount=0,l.depCount=0;const p=Ft(this,kn(a.animation),l);return{type:1,matchers:es(a.expr,l.errors),animation:p,queryCount:l.queryCount,depCount:l.depCount,options:_o(a.options)}}visitSequence(a,l){return{type:2,steps:a.steps.map(p=>Ft(this,p,l)),options:_o(a.options)}}visitGroup(a,l){const p=l.currentTime;let I=0;const k=a.steps.map(Z=>{l.currentTime=p;const le=Ft(this,Z,l);return I=Math.max(I,l.currentTime),le});return l.currentTime=I,{type:3,steps:k,options:_o(a.options)}}visitAnimate(a,l){const p=function(m,a){let l=null;if(m.hasOwnProperty("duration"))l=m;else if("number"==typeof m)return pr(T(m,a).duration,0,"");const p=m;if(p.split(/\s+/).some(k=>"{"==k.charAt(0)&&"{"==k.charAt(1))){const k=pr(0,0,"");return k.dynamic=!0,k.strValue=p,k}return l=l||T(p,a),pr(l.duration,l.delay,l.easing)}(a.timings,l.errors);l.currentAnimateTimings=p;let I,k=a.styles?a.styles:H({});if(5==k.type)I=this.visitKeyframes(k,l);else{let Z=a.styles,le=!1;if(!Z){le=!0;const Le={};p.easing&&(Le.easing=p.easing),Z=H(Le)}l.currentTime+=p.duration+p.delay;const Te=this.visitStyle(Z,l);Te.isEmptyStep=le,I=Te}return l.currentAnimateTimings=null,{type:4,timings:p,style:I,options:null}}visitStyle(a,l){const p=this._makeStyleAst(a,l);return this._validateStyleAst(p,l),p}_makeStyleAst(a,l){const p=[];Array.isArray(a.styles)?a.styles.forEach(Z=>{"string"==typeof Z?Z==X?p.push(Z):l.errors.push(`The provided style string value ${Z} is not allowed.`):p.push(Z)}):p.push(a.styles);let I=!1,k=null;return p.forEach(Z=>{if(Go(Z)){const le=Z,Te=le.easing;if(Te&&(k=Te,delete le.easing),!I)for(let Le in le)if(le[Le].toString().indexOf("{{")>=0){I=!0;break}}}),{type:6,styles:p,easing:k,offset:a.offset,containsDynamicStyles:I,options:null}}_validateStyleAst(a,l){const p=l.currentAnimateTimings;let I=l.currentTime,k=l.currentTime;p&&k>0&&(k-=p.duration+p.delay),a.styles.forEach(Z=>{"string"!=typeof Z&&Object.keys(Z).forEach(le=>{if(!this._driver.validateStyleProperty(le))return void l.errors.push(`The provided animation property "${le}" is not a supported CSS property for animations`);const Te=l.collectedStyles[l.currentQuerySelector],Le=Te[le];let pt=!0;Le&&(k!=I&&k>=Le.startTime&&I<=Le.endTime&&(l.errors.push(`The CSS property "${le}" that exists between the times of "${Le.startTime}ms" and "${Le.endTime}ms" is also being animated in a parallel animation between the times of "${k}ms" and "${I}ms"`),pt=!1),k=Le.startTime),pt&&(Te[le]={startTime:k,endTime:I}),l.options&&function(m,a,l){const p=a.params||{},I=eo(m);I.length&&I.forEach(k=>{p.hasOwnProperty(k)||l.push(`Unable to resolve the local animation param ${k} in the given list of values`)})}(Z[le],l.options,l.errors)})})}visitKeyframes(a,l){const p={type:5,styles:[],options:null};if(!l.currentAnimateTimings)return l.errors.push("keyframes() must be placed inside of a call to animate()"),p;let k=0;const Z=[];let le=!1,Te=!1,Le=0;const pt=a.steps.map(Sr=>{const Rr=this._makeStyleAst(Sr,l);let bo=null!=Rr.offset?Rr.offset:function(m){if("string"==typeof m)return null;let a=null;if(Array.isArray(m))m.forEach(l=>{if(Go(l)&&l.hasOwnProperty("offset")){const p=l;a=parseFloat(p.offset),delete p.offset}});else if(Go(m)&&m.hasOwnProperty("offset")){const l=m;a=parseFloat(l.offset),delete l.offset}return a}(Rr.styles),ur=0;return null!=bo&&(k++,ur=Rr.offset=bo),Te=Te||ur<0||ur>1,le=le||ur0&&k