1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/idlegame-creature-card-idle

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
В этом репозитории не указан файл с открытой лицензией (LICENSE). При использовании обратитесь к конкретному описанию проекта и его зависимостям в коде.
Клонировать/Скачать
main-es2015.877c3e63d484c7138f3d.js 860 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
zhaolinxu Отправлено 29.05.2020 07:02 bbf6fd6
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,t,n){e.exports=n("zUnb")},"0EUg":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("bHdf");function i(){return Object(r.a)(1)}},"1uah":function(e,t,n){"use strict";n.d(t,"b",function(){return u}),n.d(t,"a",function(){return c});var r=n("yCtX"),i=n("DH7j"),l=n("7o/Q"),s=n("l7GE"),o=n("ZUHj"),a=n("Lhse");function u(...e){const t=e[e.length-1];return"function"==typeof t&&e.pop(),Object(r.a)(e,void 0).lift(new c(t))}class c{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new d(e,this.resultSelector))}}class d extends l.a{constructor(e,t,n=Object.create(null)){super(e),this.iterators=[],this.active=0,this.resultSelector="function"==typeof t?t:null,this.values=n}_next(e){const t=this.iterators;Object(i.a)(e)?t.push(new f(e)):t.push("function"==typeof e[a.a]?new h(e[a.a]()):new p(this.destination,this,e))}_complete(){const e=this.iterators,t=e.length;if(this.unsubscribe(),0!==t){this.active=t;for(let n=0;n<t;n++){let t=e[n];t.stillUnsubscribed?this.destination.add(t.subscribe(t,n)):this.active--}}else this.destination.complete()}notifyInactive(){this.active--,0===this.active&&this.destination.complete()}checkIterators(){const e=this.iterators,t=e.length,n=this.destination;for(let l=0;l<t;l++){let t=e[l];if("function"==typeof t.hasValue&&!t.hasValue())return}let r=!1;const i=[];for(let l=0;l<t;l++){let t=e[l],s=t.next();if(t.hasCompleted()&&(r=!0),s.done)return void n.complete();i.push(s.value)}this.resultSelector?this._tryresultSelector(i):n.next(i),r&&n.complete()}_tryresultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}class h{constructor(e){this.iterator=e,this.nextResult=e.next()}hasValue(){return!0}next(){const e=this.nextResult;return this.nextResult=this.iterator.next(),e}hasCompleted(){const e=this.nextResult;return e&&e.done}}class f{constructor(e){this.array=e,this.index=0,this.length=0,this.length=e.length}[a.a](){return this}next(e){const t=this.index++;return t<this.length?{value:this.array[t],done:!1}:{value:null,done:!0}}hasValue(){return this.array.length>this.index}hasCompleted(){return this.array.length===this.index}}class p extends s.a{constructor(e,t,n){super(e),this.parent=t,this.observable=n,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[a.a](){return this}next(){const e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(e,t,n,r,i){this.buffer.push(t),this.parent.checkIterators()}subscribe(e,t){return Object(o.a)(this,this.observable,this,t)}}},"1uat":function(e,t,n){var r;e.exports=(r=n("Ib8C"),n("MlIO"),function(){var e=r,t=e.lib.Hasher,n=e.x64,i=n.Word,l=n.WordArray,s=e.algo;function o(){return i.create.apply(i,arguments)}var a=[o(1116352408,3609767458),o(1899447441,602891725),o(3049323471,3964484399),o(3921009573,2173295548),o(961987163,4081628472),o(1508970993,3053834265),o(2453635748,2937671579),o(2870763221,3664609560),o(3624381080,2734883394),o(310598401,1164996542),o(607225278,1323610764),o(1426881987,3590304994),o(1925078388,4068182383),o(2162078206,991336113),o(2614888103,633803317),o(3248222580,3479774868),o(3835390401,2666613458),o(4022224774,944711139),o(264347078,2341262773),o(604807628,2007800933),o(770255983,1495990901),o(1249150122,1856431235),o(1555081692,3175218132),o(1996064986,2198950837),o(2554220882,3999719339),o(2821834349,766784016),o(2952996808,2566594879),o(3210313671,3203337956),o(3336571891,1034457026),o(3584528711,2466948901),o(113926993,3758326383),o(338241895,168717936),o(666307205,1188179964),o(773529912,1546045734),o(1294757372,1522805485),o(1396182291,2643833823),o(1695183700,2343527390),o(1986661051,1014477480),o(2177026350,1206759142),o(2456956037,344077627),o(2730485921,1290863460),o(2820302411,3158454273),o(3259730800,3505952657),o(3345764771,106217008),o(3516065817,3606008344),o(3600352804,1432725776),o(4094571909,1467031594),o(275423344,851169720),o(430227734,3100823752),o(506948616,1363258195),o(659060556,3750685593),o(883997877,3785050280),o(958139571,3318307427),o(1322822218,3812723403),o(1537002063,2003034995),o(1747873779,3602036899),o(1955562222,1575990012),o(2024104815,1125592928),o(2227730452,2716904306),o(2361852424,442776044),o(2428436474,593698344),o(2756734187,3733110249),o(3204031479,2999351573),o(3329325298,3815920427),o(3391569614,3928383900),o(3515267271,566280711),o(3940187606,3454069534),o(4118630271,4000239992),o(116418474,1914138554),o(174292421,2731055270),o(289380356,3203993006),o(460393269,320620315),o(685471733,587496836),o(852142971,1086792851),o(1017036298,365543100),o(1126000580,2618297676),o(1288033470,3409855158),o(1501505948,4234509866),o(1607167915,987167468),o(1816402316,1246189591)],u=[];!function(){for(var e=0;e<80;e++)u[e]=o()}();var c=s.SHA512=t.extend({_doReset:function(){this._hash=new l.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],l=n[2],s=n[3],o=n[4],c=n[5],d=n[6],h=n[7],f=r.high,p=r.low,m=i.high,g=i.low,y=l.high,b=l.low,v=s.high,w=s.low,C=o.high,_=o.low,S=c.high,k=c.low,x=d.high,I=d.low,A=h.high,E=h.low,T=f,M=p,R=m,P=g,O=y,N=b,D=v,F=w,V=C,j=_,B=S,L=k,H=x,U=I,z=A,G=E,W=0;W<80;W++){var $=u[W];if(W<16)var q=$.high=0|e[t+2*W],K=$.low=0|e[t+2*W+1];else{var Y=u[W-15],Q=Y.high,Z=Y.low,X=(Z>>>1|Q<<31)^(Z>>>8|Q<<24)^(Z>>>7|Q<<25),J=u[W-2],ee=J.high,te=J.low,ne=(te>>>19|ee<<13)^(te<<3|ee>>>29)^(te>>>6|ee<<26),re=u[W-7],ie=u[W-16],le=ie.low;$.high=q=(q=(q=((Q>>>1|Z<<31)^(Q>>>8|Z<<24)^Q>>>7)+re.high+((K=X+re.low)>>>0<X>>>0?1:0))+((ee>>>19|te<<13)^(ee<<3|te>>>29)^ee>>>6)+((K+=ne)>>>0<ne>>>0?1:0))+ie.high+((K+=le)>>>0<le>>>0?1:0),$.low=K}var se,oe=V&B^~V&H,ae=j&L^~j&U,ue=T&R^T&O^R&O,ce=(M>>>28|T<<4)^(M<<30|T>>>2)^(M<<25|T>>>7),de=a[W],he=de.low,fe=z+((V>>>14|j<<18)^(V>>>18|j<<14)^(V<<23|j>>>9))+((se=G+((j>>>14|V<<18)^(j>>>18|V<<14)^(j<<23|V>>>9)))>>>0<G>>>0?1:0),pe=ce+(M&P^M&N^P&N);z=H,G=U,H=B,U=L,B=V,L=j,V=D+(fe=(fe=(fe=fe+oe+((se+=ae)>>>0<ae>>>0?1:0))+de.high+((se+=he)>>>0<he>>>0?1:0))+q+((se+=K)>>>0<K>>>0?1:0))+((j=F+se|0)>>>0<F>>>0?1:0)|0,D=O,F=N,O=R,N=P,R=T,P=M,T=fe+(((T>>>28|M<<4)^(T<<30|M>>>2)^(T<<25|M>>>7))+ue+(pe>>>0<ce>>>0?1:0))+((M=se+pe|0)>>>0<se>>>0?1:0)|0}p=r.low=p+M,r.high=f+T+(p>>>0<M>>>0?1:0),g=i.low=g+P,i.high=m+R+(g>>>0<P>>>0?1:0),b=l.low=b+N,l.high=y+O+(b>>>0<N>>>0?1:0),w=s.low=w+F,s.high=v+D+(w>>>0<F>>>0?1:0),_=o.low=_+j,o.high=C+V+(_>>>0<j>>>0?1:0),k=c.low=k+L,c.high=S+B+(k>>>0<L>>>0?1:0),I=d.low=I+U,d.high=x+H+(I>>>0<U>>>0?1:0),E=h.low=E+G,h.high=A+z+(E>>>0<G>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(c),e.HmacSHA512=t._createHmacHelper(c)}(),r.SHA512)},"2QA8":function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},"2Vo4":function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("XNiG"),i=n("9ppp");class l extends r.a{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new i.a;return this._value}next(e){super.next(this._value=e)}}},"2fFW":function(e,t,n){"use strict";n.d(t,"a",function(){return i});let r=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){r=e},get useDeprecatedSynchronousErrorHandling(){return r}}},"3N8a":function(e,t,n){"use strict";var r=n("quSY");class i extends r.a{constructor(e,t){super()}schedule(e,t=0){return this}}n.d(t,"a",function(){return l});class l extends i{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n=!1,r=void 0;try{this.work(e)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}},"3y9D":function(e,t,n){var r,i,l,s,o,a,u;e.exports=(r=n("Ib8C"),s=(l=(i=r).lib).WordArray,a=[],u=i.algo.SHA1=(o=l.Hasher).extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],l=n[2],s=n[3],o=n[4],u=0;u<80;u++){if(u<16)a[u]=0|e[t+u];else{var c=a[u-3]^a[u-8]^a[u-14]^a[u-16];a[u]=c<<1|c>>>31}var d=(r<<5|r>>>27)+o+a[u];d+=u<20?1518500249+(i&l|~i&s):u<40?1859775393+(i^l^s):u<60?(i&l|i&s|l&s)-1894007588:(i^l^s)-899497514,o=s,s=l,l=i<<30|i>>>2,i=r,r=d}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+l|0,n[3]=n[3]+s|0,n[4]=n[4]+o|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}}),i.SHA1=o._createHelper(u),i.HmacSHA1=o._createHmacHelper(u),r.SHA1)},"4I5i":function(e,t,n){"use strict";function r(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}n.d(t,"a",function(){return i}),r.prototype=Object.create(Error.prototype);const i=r},"4P0q":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("8Y7J");t.DomHelper=function(){function e(){}return e.matches=function(e,t){var n=Element.prototype;return(n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1}).call(e,t)},e.addClass=function(e,t){var n=this.getElementWithValidClassList(e);n&&n.classList.add(t)},e.removeClass=function(e,t){var n=this.getElementWithValidClassList(e);n&&n.classList.remove(t)},e.getElementWithValidClassList=function(e){var t=e instanceof r.ElementRef?e.nativeElement:e;return null!=t.classList?t:null},e}()},"5+tZ":function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("ZUHj"),i=n("l7GE"),l=n("51Dv"),s=n("lJxs"),o=n("Cfvw");function a(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?r=>r.pipe(a((n,r)=>Object(o.a)(e(n,r)).pipe(Object(s.a)((e,i)=>t(n,e,r,i))),n)):("number"==typeof t&&(n=t),t=>t.lift(new u(e,n)))}class u{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new c(e,this.project,this.concurrent))}}class c extends i.a{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t,e,n)}_innerSub(e,t,n){const i=new l.a(this,void 0,void 0);this.destination.add(i),Object(r.a)(this,e,t,n,i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e,t,n,r,i){this.destination.next(t)}notifyComplete(e){const t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},"51Dv":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");class i extends r.a{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},"5hvy":function(e,t,n){var r;e.exports=(r=n("Ib8C"),n("MlIO"),function(e){var t=r,n=t.lib,i=n.WordArray,l=n.Hasher,s=t.x64.Word,o=t.algo,a=[],u=[],c=[];!function(){for(var e=1,t=0,n=0;n<24;n++){a[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)%5;e=t%5,t=r}for(e=0;e<5;e++)for(t=0;t<5;t++)u[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,l=0;l<24;l++){for(var o=0,d=0,h=0;h<7;h++){if(1&i){var f=(1<<h)-1;f<32?d^=1<<f:o^=1<<f-32}128&i?i=i<<1^113:i<<=1}c[l]=s.create(o,d)}}();var d=[];!function(){for(var e=0;e<25;e++)d[e]=s.create()}();var h=o.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,r=this.blockSize/2,i=0;i<r;i++){var l=e[t+2*i],s=e[t+2*i+1];l=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),(R=n[i]).high^=s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),R.low^=l}for(var o=0;o<24;o++){for(var h=0;h<5;h++){for(var f=0,p=0,m=0;m<5;m++)f^=(R=n[h+5*m]).high,p^=R.low;var g=d[h];g.high=f,g.low=p}for(h=0;h<5;h++){var y=d[(h+4)%5],b=d[(h+1)%5],v=b.high,w=b.low;for(f=y.high^(v<<1|w>>>31),p=y.low^(w<<1|v>>>31),m=0;m<5;m++)(R=n[h+5*m]).high^=f,R.low^=p}for(var C=1;C<25;C++){var _=(R=n[C]).high,S=R.low,k=a[C];k<32?(f=_<<k|S>>>32-k,p=S<<k|_>>>32-k):(f=S<<k-32|_>>>64-k,p=_<<k-32|S>>>64-k);var x=d[u[C]];x.high=f,x.low=p}var I=d[0],A=n[0];for(I.high=A.high,I.low=A.low,h=0;h<5;h++)for(m=0;m<5;m++){var E=d[C=h+5*m],T=d[(h+1)%5+5*m],M=d[(h+2)%5+5*m];(R=n[C]).high=E.high^~T.high&M.high,R.low=E.low^~T.low&M.low}var R,P=c[o];(R=n[0]).high^=P.high,R.low^=P.low}},_doFinalize:function(){var t=this._data,n=t.words,r=8*t.sigBytes,l=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(e.ceil((r+1)/l)*l>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var s=this._state,o=this.cfg.outputLength/8,a=o/8,u=[],c=0;c<a;c++){var d=s[c],h=d.high,f=d.low;h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),u.push(f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8)),u.push(h)}return new i.init(u,o)},clone:function(){for(var e=l.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});t.SHA3=l._createHelper(h),t.HmacSHA3=l._createHmacHelper(h)}(Math),r.SHA3)},"7Hc7":function(e,t,n){"use strict";let r=1;const i={},l={setImmediate(e){const t=r++;return i[t]=e,Promise.resolve().then(()=>(function(e){const t=i[e];t&&t()})(t)),t},clearImmediate(e){delete i[e]}};var s=n("3N8a");class o extends s.a{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=l.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(e,t,n);0===e.actions.length&&(l.clearImmediate(t),e.scheduled=void 0)}}var a=n("IjjT");class u extends a.a{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let n,r=-1,i=t.length;e=e||t.shift();do{if(n=e.execute(e.state,e.delay))break}while(++r<i&&(e=t.shift()));if(this.active=!1,n){for(;++r<i&&(e=t.shift());)e.unsubscribe();throw n}}}n.d(t,"a",function(){return c});const c=new u(o)},"7o/Q":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("n6bG"),i=n("gRHU"),l=n("quSY"),s=n("2QA8"),o=n("2fFW"),a=n("NJ4a");class u extends l.a{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=i.a;break;case 1:if(!e){this.destination=i.a;break}if("object"==typeof e){e instanceof u?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new c(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new c(this,e,t,n)}}[s.a](){return this}static create(e,t,n){const r=new u(e,t,n);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parent:e,_parents:t}=this;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this}}class c extends u{constructor(e,t,n,l){let s;super(),this._parentSubscriber=e;let o=this;Object(r.a)(t)?s=t:t&&(s=t.next,n=t.error,l=t.complete,t!==i.a&&(o=Object.create(t),Object(r.a)(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=n,this._complete=l}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;o.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=o.a;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Object(a.a)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Object(a.a)(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);o.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),o.a.useDeprecatedSynchronousErrorHandling)throw n;Object(a.a)(n)}}__tryOrSetError(e,t,n){if(!o.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return o.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(Object(a.a)(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}},"8Qeq":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");function i(e){for(;e;){const{closed:t,destination:n,isStopped:i}=e;if(t||i)return!1;e=n&&n instanceof r.a?n:null}return!0}},"8Y7J":function(e,t,n){"use strict";n.r(t),n.d(t,"\u0275angular_packages_core_core_r",function(){return $b}),n.d(t,"\u0275angular_packages_core_core_o",function(){return zb}),n.d(t,"\u0275angular_packages_core_core_p",function(){return Gb}),n.d(t,"\u0275angular_packages_core_core_q",function(){return Wb}),n.d(t,"\u0275angular_packages_core_core_s",function(){return qb}),n.d(t,"\u0275angular_packages_core_core_f",function(){return sy}),n.d(t,"\u0275angular_packages_core_core_m",function(){return Gd}),n.d(t,"\u0275angular_packages_core_core_n",function(){return Zd}),n.d(t,"\u0275angular_packages_core_core_l",function(){return kb}),n.d(t,"\u0275angular_packages_core_core_k",function(){return Sb}),n.d(t,"\u0275angular_packages_core_core_a",function(){return ke}),n.d(t,"\u0275angular_packages_core_core_b",function(){return U}),n.d(t,"\u0275angular_packages_core_core_c",function(){return ct}),n.d(t,"\u0275angular_packages_core_core_d",function(){return Xe}),n.d(t,"\u0275angular_packages_core_core_e",function(){return it}),n.d(t,"\u0275angular_packages_core_core_j",function(){return ag}),n.d(t,"\u0275angular_packages_core_core_t",function(){return Ny}),n.d(t,"\u0275angular_packages_core_core_v",function(){return My}),n.d(t,"\u0275angular_packages_core_core_u",function(){return Ty}),n.d(t,"\u0275angular_packages_core_core_y",function(){return Oy}),n.d(t,"\u0275angular_packages_core_core_w",function(){return Ry}),n.d(t,"\u0275angular_packages_core_core_x",function(){return Py}),n.d(t,"\u0275angular_packages_core_core_bb",function(){return mp}),n.d(t,"\u0275angular_packages_core_core_bc",function(){return ji}),n.d(t,"\u0275angular_packages_core_core_bd",function(){return hr}),n.d(t,"\u0275angular_packages_core_core_be",function(){return kr}),n.d(t,"\u0275angular_packages_core_core_bf",function(){return Hr}),n.d(t,"\u0275angular_packages_core_core_bj",function(){return is}),n.d(t,"\u0275angular_packages_core_core_bp",function(){return Ei}),n.d(t,"\u0275angular_packages_core_core_bo",function(){return Bn}),n.d(t,"\u0275angular_packages_core_core_g",function(){return Id}),n.d(t,"\u0275angular_packages_core_core_h",function(){return Ad}),n.d(t,"\u0275angular_packages_core_core_i",function(){return Ed}),n.d(t,"\u0275angular_packages_core_core_bh",function(){return $l}),n.d(t,"\u0275angular_packages_core_core_bn",function(){return At}),n.d(t,"\u0275angular_packages_core_core_bk",function(){return f}),n.d(t,"\u0275angular_packages_core_core_bl",function(){return p}),n.d(t,"\u0275angular_packages_core_core_bq",function(){return _}),n.d(t,"\u0275angular_packages_core_core_z",function(){return Jf}),n.d(t,"\u0275angular_packages_core_core_ba",function(){return kh}),n.d(t,"createPlatform",function(){return lb}),n.d(t,"assertPlatform",function(){return ob}),n.d(t,"destroyPlatform",function(){return ab}),n.d(t,"getPlatform",function(){return ub}),n.d(t,"PlatformRef",function(){return cb}),n.d(t,"ApplicationRef",function(){return hb}),n.d(t,"createPlatformFactory",function(){return sb}),n.d(t,"NgProbeToken",function(){return ib}),n.d(t,"enableProdMode",function(){return hl}),n.d(t,"isDevMode",function(){return dl}),n.d(t,"APP_ID",function(){return ly}),n.d(t,"PACKAGE_ROOT_URL",function(){return hy}),n.d(t,"PLATFORM_INITIALIZER",function(){return uy}),n.d(t,"PLATFORM_ID",function(){return cy}),n.d(t,"APP_BOOTSTRAP_LISTENER",function(){return dy}),n.d(t,"APP_INITIALIZER",function(){return ry}),n.d(t,"ApplicationInitStatus",function(){return iy}),n.d(t,"DebugElement",function(){return Vb}),n.d(t,"DebugEventListener",function(){return _b}),n.d(t,"DebugNode",function(){return Fb}),n.d(t,"asNativeElements",function(){return xb}),n.d(t,"getDebugNode",function(){return Nb}),n.d(t,"Testability",function(){return Ky}),n.d(t,"TestabilityRegistry",function(){return Yy}),n.d(t,"setTestabilityGetter",function(){return Zy}),n.d(t,"TRANSLATIONS",function(){return Lb}),n.d(t,"TRANSLATIONS_FORMAT",function(){return Hb}),n.d(t,"LOCALE_ID",function(){return Bb}),n.d(t,"MissingTranslationStrategy",function(){return Ub}),n.d(t,"ApplicationModule",function(){return Kb}),n.d(t,"wtfCreateScope",function(){return Dy}),n.d(t,"wtfLeave",function(){return Fy}),n.d(t,"wtfStartTimeRange",function(){return Vy}),n.d(t,"wtfEndTimeRange",function(){return jy}),n.d(t,"Type",function(){return K}),n.d(t,"EventEmitter",function(){return Om}),n.d(t,"ErrorHandler",function(){return Xi}),n.d(t,"Sanitizer",function(){return Vl}),n.d(t,"SecurityContext",function(){return Fl}),n.d(t,"Attribute",function(){return w}),n.d(t,"ANALYZE_FOR_ENTRY_COMPONENTS",function(){return dt}),n.d(t,"ContentChild",function(){return pt}),n.d(t,"ContentChildren",function(){return ft}),n.d(t,"Query",function(){return ht}),n.d(t,"ViewChild",function(){return gt}),n.d(t,"ViewChildren",function(){return mt}),n.d(t,"Component",function(){return Ug}),n.d(t,"Directive",function(){return Hg}),n.d(t,"HostBinding",function(){return $g}),n.d(t,"HostListener",function(){return qg}),n.d(t,"Input",function(){return Gg}),n.d(t,"Output",function(){return Wg}),n.d(t,"Pipe",function(){return zg}),n.d(t,"NgModule",function(){return ey}),n.d(t,"CUSTOM_ELEMENTS_SCHEMA",function(){return Ji}),n.d(t,"NO_ERRORS_SCHEMA",function(){return el}),n.d(t,"ViewEncapsulation",function(){return It}),n.d(t,"Version",function(){return Ud}),n.d(t,"VERSION",function(){return zd}),n.d(t,"InjectFlags",function(){return C}),n.d(t,"\u0275\u0275defineInjectable",function(){return k}),n.d(t,"defineInjectable",function(){return x}),n.d(t,"\u0275\u0275defineInjector",function(){return I}),n.d(t,"forwardRef",function(){return O}),n.d(t,"resolveForwardRef",function(){return N}),n.d(t,"Injectable",function(){return ge}),n.d(t,"INJECTOR",function(){return Se}),n.d(t,"Injector",function(){return xe}),n.d(t,"\u0275\u0275inject",function(){return z}),n.d(t,"inject",function(){return G}),n.d(t,"ReflectiveInjector",function(){return ut}),n.d(t,"ResolvedReflectiveFactory",function(){return tt}),n.d(t,"ReflectiveKey",function(){return qe}),n.d(t,"InjectionToken",function(){return ve}),n.d(t,"Inject",function(){return m}),n.d(t,"Optional",function(){return g}),n.d(t,"Self",function(){return y}),n.d(t,"SkipSelf",function(){return b}),n.d(t,"Host",function(){return v}),n.d(t,"NgZone",function(){return Hy}),n.d(t,"\u0275NoopNgZone",function(){return qy}),n.d(t,"RenderComponentType",function(){return Od}),n.d(t,"Renderer",function(){return Dd}),n.d(t,"Renderer2",function(){return Bd}),n.d(t,"RendererFactory2",function(){return Vd}),n.d(t,"RendererStyleFlags2",function(){return jd}),n.d(t,"RootRenderer",function(){return Fd}),n.d(t,"COMPILER_OPTIONS",function(){return xy}),n.d(t,"Compiler",function(){return ky}),n.d(t,"CompilerFactory",function(){return Iy}),n.d(t,"ModuleWithComponentFactories",function(){return py}),n.d(t,"ComponentFactory",function(){return hd}),n.d(t,"\u0275ComponentFactory",function(){return hd}),n.d(t,"ComponentRef",function(){return dd}),n.d(t,"ComponentFactoryResolver",function(){return gd}),n.d(t,"ElementRef",function(){return Md}),n.d(t,"NgModuleFactory",function(){return wd}),n.d(t,"NgModuleRef",function(){return vd}),n.d(t,"NgModuleFactoryLoader",function(){return rg}),n.d(t,"getModuleFactory",function(){return cg}),n.d(t,"QueryList",function(){return Nm}),n.d(t,"SystemJsNgModuleLoader",function(){return bb}),n.d(t,"SystemJsNgModuleLoaderConfig",function(){return gb}),n.d(t,"TemplateRef",function(){return ah}),n.d(t,"ViewContainerRef",function(){return dh}),n.d(t,"EmbeddedViewRef",function(){return Cb}),n.d(t,"ViewRef",function(){return wb}),n.d(t,"ChangeDetectionStrategy",function(){return yt}),n.d(t,"ChangeDetectorRef",function(){return nh}),n.d(t,"DefaultIterableDiffer",function(){return $d}),n.d(t,"IterableDiffers",function(){return eh}),n.d(t,"KeyValueDiffers",function(){return th}),n.d(t,"SimpleChange",function(){return Nc}),n.d(t,"WrappedValue",function(){return Tu}),n.d(t,"platformCore",function(){return jb}),n.d(t,"\u0275ALLOW_MULTIPLE_PLATFORMS",function(){return rb}),n.d(t,"\u0275APP_ID_RANDOM_PROVIDER",function(){return oy}),n.d(t,"\u0275defaultIterableDiffers",function(){return sh}),n.d(t,"\u0275defaultKeyValueDiffers",function(){return oh}),n.d(t,"\u0275devModeEqual",function(){return Eu}),n.d(t,"\u0275isListLikeIterable",function(){return Mu}),n.d(t,"\u0275ChangeDetectorStatus",function(){return bt}),n.d(t,"\u0275isDefaultChangeDetectionStrategy",function(){return vt}),n.d(t,"\u0275Console",function(){return fy}),n.d(t,"\u0275setCurrentInjector",function(){return L}),n.d(t,"\u0275getInjectableDef",function(){return A}),n.d(t,"\u0275APP_ROOT",function(){return Gc}),n.d(t,"\u0275ivyEnabled",function(){return mb}),n.d(t,"\u0275CodegenComponentFactoryResolver",function(){return yd}),n.d(t,"\u0275clearResolutionOfComponentResourcesQueue",function(){return kt}),n.d(t,"\u0275resolveComponentResources",function(){return wt}),n.d(t,"\u0275ReflectionCapabilities",function(){return ee}),n.d(t,"\u0275RenderDebugInfo",function(){return Nd}),n.d(t,"\u0275_sanitizeHtml",function(){return Nl}),n.d(t,"\u0275_sanitizeStyle",function(){return Ll}),n.d(t,"\u0275_sanitizeUrl",function(){return gl}),n.d(t,"\u0275global",function(){return F}),n.d(t,"\u0275looseIdentical",function(){return Au}),n.d(t,"\u0275stringify",function(){return R}),n.d(t,"\u0275makeDecorator",function(){return d}),n.d(t,"\u0275isObservable",function(){return mu}),n.d(t,"\u0275isPromise",function(){return pu}),n.d(t,"\u0275clearOverrides",function(){return Sw}),n.d(t,"\u0275initServicesIfNeeded",function(){return jv}),n.d(t,"\u0275overrideComponentView",function(){return _w}),n.d(t,"\u0275overrideProvider",function(){return Cw}),n.d(t,"\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR",function(){return sp}),n.d(t,"\u0275\u0275defineBase",function(){return Gt}),n.d(t,"\u0275\u0275defineComponent",function(){return Vt}),n.d(t,"\u0275\u0275defineDirective",function(){return Wt}),n.d(t,"\u0275\u0275definePipe",function(){return $t}),n.d(t,"\u0275\u0275defineNgModule",function(){return Ht}),n.d(t,"\u0275detectChanges",function(){return ua}),n.d(t,"\u0275renderComponent",function(){return Ec}),n.d(t,"\u0275Render3ComponentFactory",function(){return gp}),n.d(t,"\u0275Render3ComponentRef",function(){return yp}),n.d(t,"\u0275\u0275directiveInject",function(){return La}),n.d(t,"\u0275\u0275injectAttribute",function(){return Ha}),n.d(t,"\u0275\u0275getFactoryOf",function(){return qi}),n.d(t,"\u0275\u0275getInheritedFactory",function(){return Ki}),n.d(t,"\u0275\u0275setComponentScope",function(){return jt}),n.d(t,"\u0275\u0275setNgModuleScope",function(){return Ut}),n.d(t,"\u0275\u0275templateRefExtractor",function(){return ng}),n.d(t,"\u0275\u0275ProvidersFeature",function(){return cd}),n.d(t,"\u0275\u0275InheritDefinitionFeature",function(){return Lc}),n.d(t,"\u0275\u0275NgOnChangesFeature",function(){return Dc}),n.d(t,"\u0275LifecycleHooksFeature",function(){return Pc}),n.d(t,"\u0275Render3NgModuleRef",function(){return hm}),n.d(t,"\u0275markDirty",function(){return ca}),n.d(t,"\u0275NgModuleFactory",function(){return fm}),n.d(t,"\u0275NO_CHANGE",function(){return ts}),n.d(t,"\u0275\u0275container",function(){return Ra}),n.d(t,"\u0275\u0275nextContext",function(){return Cu}),n.d(t,"\u0275\u0275elementStart",function(){return iu}),n.d(t,"\u0275\u0275namespaceHTML",function(){return Yr}),n.d(t,"\u0275\u0275namespaceMathML",function(){return Kr}),n.d(t,"\u0275\u0275namespaceSVG",function(){return qr}),n.d(t,"\u0275\u0275element",function(){return su}),n.d(t,"\u0275\u0275listener",function(){return gu}),n.d(t,"\u0275\u0275text",function(){return ac}),n.d(t,"\u0275\u0275embeddedViewStart",function(){return du}),n.d(t,"\u0275\u0275projection",function(){return ku}),n.d(t,"\u0275\u0275bind",function(){return Bu}),n.d(t,"\u0275\u0275interpolation1",function(){return zu}),n.d(t,"\u0275\u0275interpolation2",function(){return Gu}),n.d(t,"\u0275\u0275interpolation3",function(){return Wu}),n.d(t,"\u0275\u0275interpolation4",function(){return $u}),n.d(t,"\u0275\u0275interpolation5",function(){return qu}),n.d(t,"\u0275\u0275interpolation6",function(){return Ku}),n.d(t,"\u0275\u0275interpolation7",function(){return Yu}),n.d(t,"\u0275\u0275interpolation8",function(){return Qu}),n.d(t,"\u0275\u0275interpolationV",function(){return Uu}),n.d(t,"\u0275\u0275pipeBind1",function(){return Im}),n.d(t,"\u0275\u0275pipeBind2",function(){return Am}),n.d(t,"\u0275\u0275pipeBind3",function(){return Em}),n.d(t,"\u0275\u0275pipeBind4",function(){return Tm}),n.d(t,"\u0275\u0275pipeBindV",function(){return Mm}),n.d(t,"\u0275\u0275pureFunction0",function(){return mm}),n.d(t,"\u0275\u0275pureFunction1",function(){return gm}),n.d(t,"\u0275\u0275pureFunction2",function(){return ym}),n.d(t,"\u0275\u0275pureFunction3",function(){return bm}),n.d(t,"\u0275\u0275pureFunction4",function(){return vm}),n.d(t,"\u0275\u0275pureFunction5",function(){return wm}),n.d(t,"\u0275\u0275pureFunction6",function(){return Cm}),n.d(t,"\u0275\u0275pureFunction7",function(){return _m}),n.d(t,"\u0275\u0275pureFunction8",function(){return Sm}),n.d(t,"\u0275\u0275pureFunctionV",function(){return km}),n.d(t,"\u0275\u0275getCurrentView",function(){return fu}),n.d(t,"\u0275getDirectives",function(){return yc}),n.d(t,"\u0275getHostElement",function(){return vc}),n.d(t,"\u0275\u0275restoreView",function(){return Sr}),n.d(t,"\u0275\u0275containerRefreshStart",function(){return Oa}),n.d(t,"\u0275\u0275containerRefreshEnd",function(){return Na}),n.d(t,"\u0275\u0275queryRefresh",function(){return Ym}),n.d(t,"\u0275\u0275viewQuery",function(){return Zm}),n.d(t,"\u0275\u0275staticViewQuery",function(){return Qm}),n.d(t,"\u0275\u0275staticContentQuery",function(){return eg}),n.d(t,"\u0275\u0275loadViewQuery",function(){return Xm}),n.d(t,"\u0275\u0275contentQuery",function(){return Jm}),n.d(t,"\u0275\u0275loadContentQuery",function(){return tg}),n.d(t,"\u0275\u0275elementEnd",function(){return lu}),n.d(t,"\u0275\u0275elementProperty",function(){return Lu}),n.d(t,"\u0275\u0275property",function(){return ju}),n.d(t,"\u0275\u0275propertyInterpolate",function(){return Zu}),n.d(t,"\u0275\u0275propertyInterpolate1",function(){return Xu}),n.d(t,"\u0275\u0275propertyInterpolate2",function(){return Ju}),n.d(t,"\u0275\u0275propertyInterpolate3",function(){return ec}),n.d(t,"\u0275\u0275propertyInterpolate4",function(){return tc}),n.d(t,"\u0275\u0275propertyInterpolate5",function(){return nc}),n.d(t,"\u0275\u0275propertyInterpolate6",function(){return rc}),n.d(t,"\u0275\u0275propertyInterpolate7",function(){return ic}),n.d(t,"\u0275\u0275propertyInterpolate8",function(){return lc}),n.d(t,"\u0275\u0275propertyInterpolateV",function(){return sc}),n.d(t,"\u0275\u0275componentHostSyntheticProperty",function(){return Hu}),n.d(t,"\u0275\u0275componentHostSyntheticListener",function(){return yu}),n.d(t,"\u0275\u0275projectionDef",function(){return Su}),n.d(t,"\u0275\u0275reference",function(){return ja}),n.d(t,"\u0275\u0275enableBindings",function(){return cr}),n.d(t,"\u0275\u0275disableBindings",function(){return dr}),n.d(t,"\u0275\u0275allocHostVars",function(){return aa}),n.d(t,"\u0275\u0275elementAttribute",function(){return ou}),n.d(t,"\u0275\u0275elementContainerStart",function(){return uu}),n.d(t,"\u0275\u0275elementContainerEnd",function(){return cu}),n.d(t,"\u0275\u0275elementStyling",function(){return Ua}),n.d(t,"\u0275\u0275elementStylingMap",function(){return Za}),n.d(t,"\u0275\u0275elementStyleProp",function(){return Wa}),n.d(t,"\u0275\u0275elementStylingApply",function(){return Ja}),n.d(t,"\u0275\u0275elementClassProp",function(){return Ka}),n.d(t,"\u0275\u0275elementHostAttrs",function(){return au}),n.d(t,"\u0275\u0275elementHostStyling",function(){return za}),n.d(t,"\u0275\u0275elementHostStylingMap",function(){return Xa}),n.d(t,"\u0275\u0275elementHostStyleProp",function(){return $a}),n.d(t,"\u0275\u0275elementHostClassProp",function(){return Ya}),n.d(t,"\u0275\u0275elementHostStylingApply",function(){return eu}),n.d(t,"\u0275\u0275select",function(){return oc}),n.d(t,"\u0275\u0275textBinding",function(){return uc}),n.d(t,"\u0275\u0275template",function(){return Pa}),n.d(t,"\u0275\u0275embeddedViewEnd",function(){return hu}),n.d(t,"\u0275store",function(){return Va}),n.d(t,"\u0275\u0275load",function(){return Ba}),n.d(t,"\u0275\u0275pipe",function(){return xm}),n.d(t,"\u0275whenRendered",function(){return Oc}),n.d(t,"\u0275\u0275i18n",function(){return Qp}),n.d(t,"\u0275\u0275i18nAttributes",function(){return Zp}),n.d(t,"\u0275\u0275i18nExp",function(){return em}),n.d(t,"\u0275\u0275i18nStart",function(){return Up}),n.d(t,"\u0275\u0275i18nEnd",function(){return $p}),n.d(t,"\u0275\u0275i18nApply",function(){return tm}),n.d(t,"\u0275\u0275i18nPostprocess",function(){return Wp}),n.d(t,"\u0275i18nConfigureLocalize",function(){return am}),n.d(t,"\u0275\u0275i18nLocalize",function(){return cm}),n.d(t,"\u0275setClassMetadata",function(){return pm}),n.d(t,"\u0275\u0275resolveWindow",function(){return tn}),n.d(t,"\u0275\u0275resolveDocument",function(){return nn}),n.d(t,"\u0275\u0275resolveBody",function(){return rn}),n.d(t,"\u0275compileComponent",function(){return Eg}),n.d(t,"\u0275compileDirective",function(){return Tg}),n.d(t,"\u0275compileNgModule",function(){return bg}),n.d(t,"\u0275compileNgModuleDefs",function(){return vg}),n.d(t,"\u0275patchComponentDefWithScope",function(){return kg}),n.d(t,"\u0275resetCompiledComponents",function(){return _g}),n.d(t,"\u0275flushModuleScopingQueueAsMuchAsPossible",function(){return gg}),n.d(t,"\u0275transitiveScopesFor",function(){return xg}),n.d(t,"\u0275compilePipe",function(){return Lg}),n.d(t,"\u0275\u0275sanitizeHtml",function(){return Hl}),n.d(t,"\u0275\u0275sanitizeStyle",function(){return Ul}),n.d(t,"\u0275\u0275defaultStyleSanitizer",function(){return Kl}),n.d(t,"\u0275\u0275sanitizeScript",function(){return Wl}),n.d(t,"\u0275\u0275sanitizeUrl",function(){return zl}),n.d(t,"\u0275\u0275sanitizeResourceUrl",function(){return Gl}),n.d(t,"\u0275\u0275sanitizeUrlOrResourceUrl",function(){return ql}),n.d(t,"\u0275bypassSanitizationTrustHtml",function(){return rl}),n.d(t,"\u0275bypassSanitizationTrustStyle",function(){return il}),n.d(t,"\u0275bypassSanitizationTrustScript",function(){return ll}),n.d(t,"\u0275bypassSanitizationTrustUrl",function(){return sl}),n.d(t,"\u0275bypassSanitizationTrustResourceUrl",function(){return ol}),n.d(t,"\u0275getLContext",function(){return Jr}),n.d(t,"\u0275NG_ELEMENT_ID",function(){return Dt}),n.d(t,"\u0275NG_COMPONENT_DEF",function(){return Mt}),n.d(t,"\u0275NG_DIRECTIVE_DEF",function(){return Rt}),n.d(t,"\u0275NG_PIPE_DEF",function(){return Pt}),n.d(t,"\u0275NG_MODULE_DEF",function(){return Ot}),n.d(t,"\u0275NG_BASE_DEF",function(){return Nt}),n.d(t,"\u0275NG_INJECTABLE_DEF",function(){return T}),n.d(t,"\u0275NG_INJECTOR_DEF",function(){return M}),n.d(t,"\u0275bindPlayerFactory",function(){return rs}),n.d(t,"\u0275addPlayer",function(){return cc}),n.d(t,"\u0275getPlayers",function(){return dc}),n.d(t,"\u0275compileNgModuleFactory__POST_R3__",function(){return eb}),n.d(t,"\u0275isBoundToModule__POST_R3__",function(){return nb}),n.d(t,"\u0275SWITCH_COMPILE_COMPONENT__POST_R3__",function(){return Kg}),n.d(t,"\u0275SWITCH_COMPILE_DIRECTIVE__POST_R3__",function(){return Yg}),n.d(t,"\u0275SWITCH_COMPILE_PIPE__POST_R3__",function(){return Qg}),n.d(t,"\u0275SWITCH_COMPILE_NGMODULE__POST_R3__",function(){return ty}),n.d(t,"\u0275getDebugNode__POST_R3__",function(){return Ob}),n.d(t,"\u0275SWITCH_COMPILE_INJECTABLE__POST_R3__",function(){return ye}),n.d(t,"\u0275SWITCH_IVY_ENABLED__POST_R3__",function(){return pb}),n.d(t,"\u0275SWITCH_CHANGE_DETECTOR_REF_FACTORY__POST_R3__",function(){return rh}),n.d(t,"\u0275Compiler_compileModuleSync__POST_R3__",function(){return gy}),n.d(t,"\u0275Compiler_compileModuleAsync__POST_R3__",function(){return by}),n.d(t,"\u0275Compiler_compileModuleAndAllComponentsSync__POST_R3__",function(){return wy}),n.d(t,"\u0275Compiler_compileModuleAndAllComponentsAsync__POST_R3__",function(){return _y}),n.d(t,"\u0275SWITCH_ELEMENT_REF_FACTORY__POST_R3__",function(){return Rd}),n.d(t,"\u0275SWITCH_TEMPLATE_REF_FACTORY__POST_R3__",function(){return uh}),n.d(t,"\u0275SWITCH_VIEW_CONTAINER_REF_FACTORY__POST_R3__",function(){return hh}),n.d(t,"\u0275SWITCH_RENDERER2_FACTORY__POST_R3__",function(){return Ld}),n.d(t,"\u0275getModuleFactory__POST_R3__",function(){return ug}),n.d(t,"\u0275registerNgModuleType",function(){return og}),n.d(t,"\u0275publishGlobalUtil",function(){return Ac}),n.d(t,"\u0275publishDefaultGlobalUtils",function(){return Ic}),n.d(t,"\u0275createInjector",function(){return Qc}),n.d(t,"\u0275registerModuleFactory",function(){return lg}),n.d(t,"\u0275EMPTY_ARRAY",function(){return uf}),n.d(t,"\u0275EMPTY_MAP",function(){return cf}),n.d(t,"\u0275and",function(){return Yb}),n.d(t,"\u0275ccf",function(){return xf}),n.d(t,"\u0275cmf",function(){return kw}),n.d(t,"\u0275crt",function(){return Ph}),n.d(t,"\u0275did",function(){return Qf}),n.d(t,"\u0275eld",function(){return Qb}),n.d(t,"\u0275getComponentViewDefinitionFactory",function(){return If}),n.d(t,"\u0275inlineInterpolate",function(){return of}),n.d(t,"\u0275interpolate",function(){return sf}),n.d(t,"\u0275mod",function(){return gf}),n.d(t,"\u0275mpd",function(){return mf}),n.d(t,"\u0275ncd",function(){return sv}),n.d(t,"\u0275nov",function(){return Vf}),n.d(t,"\u0275pid",function(){return Zf}),n.d(t,"\u0275prd",function(){return Xf}),n.d(t,"\u0275pad",function(){return uv}),n.d(t,"\u0275pod",function(){return cv}),n.d(t,"\u0275ppd",function(){return av}),n.d(t,"\u0275qud",function(){return tv}),n.d(t,"\u0275ted",function(){return hv}),n.d(t,"\u0275unv",function(){return Th}),n.d(t,"\u0275vid",function(){return mv});var r=n("XNiG"),i=n("quSY"),l=n("HDdC"),s=n("VRyK"),o=n("w1tV");const a="__annotations__",u="__parameters__",c="__prop__metadata__";function d(e,t,n,r,i){const l=h(t);function s(...e){if(this instanceof s)return l.call(this,...e),this;const t=new s(...e);return function(n){return i&&i(n,...e),(n.hasOwnProperty(a)?n[a]:Object.defineProperty(n,a,{value:[]})[a]).push(t),r&&r(n),n}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s}function h(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}function f(e,t,n){const r=h(t);function i(...e){if(this instanceof i)return r.apply(this,e),this;const t=new i(...e);return n.annotation=t,n;function n(e,n,r){const i=e.hasOwnProperty(u)?e[u]:Object.defineProperty(e,u,{value:[]})[u];for(;i.length<=r;)i.push(null);return(i[r]=i[r]||[]).push(t),e}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i}function p(e,t,n,r){const i=h(t);function l(...e){if(this instanceof l)return i.apply(this,e),this;const t=new l(...e);return function(n,i){const l=n.constructor,s=l.hasOwnProperty(c)?l[c]:Object.defineProperty(l,c,{value:{}})[c];s[i]=s.hasOwnProperty(i)&&s[i]||[],s[i].unshift(t),r&&r(n,i,...e)}}return n&&(l.prototype=Object.create(n.prototype)),l.prototype.ngMetadataName=e,l.annotationCls=l,l}const m=f("Inject",e=>({token:e})),g=f("Optional"),y=f("Self"),b=f("SkipSelf"),v=f("Host"),w=f("Attribute",e=>({attributeName:e}));var C=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function _(e){for(let t in e)if(e[t]===_)return t;throw Error("Could not find renamed property on target object.")}function S(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function k(e){return{providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const x=k;function I(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function A(e){return e&&e.hasOwnProperty(T)?e[T]:null}function E(e){return e&&e.hasOwnProperty(M)?e[M]:null}const T=_({ngInjectableDef:_}),M=_({ngInjectorDef:_});function R(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(R).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}const P=_({__forward_ref__:_});function O(e){return e.__forward_ref__=O,e.toString=function(){return R(this())},e}function N(e){const t=e;return"function"==typeof t&&t.hasOwnProperty(P)&&t.__forward_ref__===O?t():e}function D(){const e="undefined"!=typeof globalThis&&globalThis,t="undefined"!=typeof window&&window,n="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,r="undefined"!=typeof global&&global;return e||r||t||n}const F=D();function V(){const e=F.ng;if(!e||!e.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return e.\u0275compilerFacade}let j,B=void 0;function L(e){const t=B;return B=e,t}function H(e){const t=j;return j=e,t}function U(e,t=C.Default){if(void 0===B)throw new Error("inject() must be called from an injection context");return null===B?W(e,void 0,t):B.get(e,t&C.Optional?null:void 0,t)}function z(e,t=C.Default){return(j||U)(e,t)}const G=z;function W(e,t,n){const r=A(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&C.Optional)return null;if(void 0!==t)return t;throw new Error(`Injector: NOT_FOUND [${R(e)}]`)}function $(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let e=void 0,n=C.Default;for(let t=0;t<r.length;t++){const i=r[t];i instanceof g||"Optional"===i.ngMetadataName?n|=C.Optional:i instanceof b||"SkipSelf"===i.ngMetadataName?n|=C.SkipSelf:i instanceof y||"Self"===i.ngMetadataName?n|=C.Self:e=i instanceof m?i.token:i}t.push(z(e,n))}else t.push(z(r))}return t}const q={"\u0275\u0275defineInjectable":k,"\u0275\u0275defineInjector":I,"\u0275\u0275inject":z,"\u0275\u0275getFactoryOf":function(e){const t=e,n=A(t)||E(t);return n&&void 0!==n.factory?n.factory:null}},K=Function;function Y(e){return"function"==typeof e}const Q=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,Z=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,X=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,J=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s+super\(\.\.\.arguments\)/;class ee{constructor(e){this._reflect=e||F.Reflect}isReflectionEnabled(){return!0}factory(e){return(...t)=>new e(...t)}_zipTypesAndAnnotations(e,t){let n;n=void 0===e?new Array(t.length):new Array(e.length);for(let r=0;r<n.length;r++)n[r]=void 0===e?[]:e[r]!=Object?[e[r]]:[],t&&null!=t[r]&&(n[r]=n[r].concat(t[r]));return n}_ownParameters(e,t){const n=e.toString();if(Q.exec(n)||J.exec(n)||Z.exec(n)&&!X.exec(n))return null;if(e.parameters&&e.parameters!==t.parameters)return e.parameters;const r=e.ctorParameters;if(r&&r!==t.ctorParameters){const e="function"==typeof r?r():r,t=e.map(e=>e&&e.type),n=e.map(e=>e&&te(e.decorators));return this._zipTypesAndAnnotations(t,n)}const i=e.hasOwnProperty(u)&&e[u],l=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",e);return l||i?this._zipTypesAndAnnotations(l,i):new Array(e.length).fill(void 0)}parameters(e){if(!Y(e))return[];const t=ne(e);let n=this._ownParameters(e,t);return n||t===Object||(n=this.parameters(t)),n||[]}_ownAnnotations(e,t){if(e.annotations&&e.annotations!==t.annotations){let t=e.annotations;return"function"==typeof t&&t.annotations&&(t=t.annotations),t}return e.decorators&&e.decorators!==t.decorators?te(e.decorators):e.hasOwnProperty(a)?e[a]:null}annotations(e){if(!Y(e))return[];const t=ne(e),n=this._ownAnnotations(e,t)||[];return(t!==Object?this.annotations(t):[]).concat(n)}_ownPropMetadata(e,t){if(e.propMetadata&&e.propMetadata!==t.propMetadata){let t=e.propMetadata;return"function"==typeof t&&t.propMetadata&&(t=t.propMetadata),t}if(e.propDecorators&&e.propDecorators!==t.propDecorators){const t=e.propDecorators,n={};return Object.keys(t).forEach(e=>{n[e]=te(t[e])}),n}return e.hasOwnProperty(c)?e[c]:null}propMetadata(e){if(!Y(e))return{};const t=ne(e),n={};if(t!==Object){const e=this.propMetadata(t);Object.keys(e).forEach(t=>{n[t]=e[t]})}const r=this._ownPropMetadata(e,t);return r&&Object.keys(r).forEach(e=>{const t=[];n.hasOwnProperty(e)&&t.push(...n[e]),t.push(...r[e]),n[e]=t}),n}ownPropMetadata(e){return Y(e)&&this._ownPropMetadata(e,ne(e))||{}}hasLifecycleHook(e,t){return e instanceof K&&t in e.prototype}guards(e){return{}}getter(e){return new Function("o","return o."+e+";")}setter(e){return new Function("o","v","return o."+e+" = v;")}method(e){return new Function("o","args",`if (!o.${e}) throw new Error('"${e}" is undefined');\n return o.${e}.apply(o, args);`)}importUri(e){return"object"==typeof e&&e.filePath?e.filePath:`./${R(e)}`}resourceUri(e){return`./${R(e)}`}resolveIdentifier(e,t,n,r){return r}resolveEnum(e,t){return e[t]}}function te(e){return e?e.map(e=>new(0,e.type.annotationCls)(...e.args?e.args:[])):[]}function ne(e){const t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}let re=null;function ie(){return re=re||new ee}function le(e){return se(ie().parameters(e))}function se(e){const t=V();return e.map(e=>(function(e,t){const n={token:null,host:!1,optional:!1,resolved:e.R3ResolvedDependencyType.Token,self:!1,skipSelf:!1};function r(t){n.resolved=e.R3ResolvedDependencyType.Token,n.token=t}if(Array.isArray(t)){if(0===t.length)throw new Error("Dependency array must have arguments.");for(let i=0;i<t.length;i++){const l=t[i];if(void 0!==l)if(l instanceof g||"Optional"===l.__proto__.ngMetadataName)n.optional=!0;else if(l instanceof b||"SkipSelf"===l.__proto__.ngMetadataName)n.skipSelf=!0;else if(l instanceof y||"Self"===l.__proto__.ngMetadataName)n.self=!0;else if(l instanceof v||"Host"===l.__proto__.ngMetadataName)n.host=!0;else if(l instanceof m)n.token=l.token;else if(l instanceof w){if(void 0===l.attributeName)throw new Error("Attribute name must be defined.");n.token=l.attributeName,n.resolved=e.R3ResolvedDependencyType.Attribute}else r(l)}}else r(t);return n})(t,e))}function oe(e,t){let n=null;e.hasOwnProperty(T)||Object.defineProperty(e,T,{get:()=>{if(null===n){const r=t||{providedIn:null},i=ue(r)||de(r)||ce(r)||he(r),l={name:e.name,type:e,typeArgumentCount:0,providedIn:r.providedIn,ctorDeps:le(e),userDeps:void 0};if((ue(r)||de(r))&&void 0!==r.deps&&(l.userDeps=se(r.deps)),i)if(ue(r))l.useClass=r.useClass;else if(ce(r))l.useValue=r.useValue;else if(de(r))l.useFactory=r.useFactory;else{if(!he(r))throw new Error("Unreachable state.");l.useExisting=r.useExisting}else l.useClass=e;n=V().compileInjectable(q,`ng:///${e.name}/ngInjectableDef.js`,l)}return n}})}const ae=_({provide:String,useValue:_});function ue(e){return void 0!==e.useClass}function ce(e){return ae in e}function de(e){return void 0!==e.useFactory}function he(e){return void 0!==e.useExisting}const fe=_({provide:String,useValue:_}),pe=[];function me(e,t){if(!t){const t=(new ee).parameters(e);return()=>new e(...$(t))}if(fe in t){const e=t;return()=>e.useValue}if(t.useExisting){const e=t;return()=>z(e.useExisting)}if(t.useFactory){const e=t;return()=>e.useFactory(...$(e.deps||pe))}if(t.useClass){const n=t;let r=t.deps;if(!r){const t=new ee;r=t.parameters(e)}return()=>new n.useClass(...$(r))}{let n=t.deps;if(!n){const t=new ee;n=t.parameters(e)}return()=>new e(...$(n))}}const ge=d("Injectable",void 0,void 0,void 0,(e,t)=>be(e,t)),ye=oe,be=function(e,t){t&&void 0!==t.providedIn&&!A(e)&&(e.ngInjectableDef=k({providedIn:t.providedIn,factory:me(e,t)}))};class ve{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.ngInjectableDef=k({providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const we="__source",Ce=new Object,_e=Ce,Se=new ve("INJECTOR",-1);class ke{get(e,t=Ce){if(t===Ce){const t=new Error(`NullInjectorError: No provider for ${R(e)}!`);throw t.name="NullInjectorError",t}return t}}const xe=(()=>{class e{static create(e,t){return Array.isArray(e)?new De(e,t):new De(e.providers,e.parent,e.name||null)}}return e.THROW_IF_NOT_FOUND=Ce,e.NULL=new ke,e.ngInjectableDef=k({providedIn:"any",factory:()=>z(Se)}),e.__NG_ELEMENT_ID__=-1,e})(),Ie=function(e){return e},Ae=[],Ee=Ie,Te=function(){return Array.prototype.slice.call(arguments)},Me=_({provide:String,useValue:_}),Re="ngTokenPath",Pe="ngTempTokenPath",Oe=/\n/gm,Ne="\u0275";class De{constructor(e,t=xe.NULL,n=null){this.parent=t,this.source=n;const r=this._records=new Map;r.set(xe,{token:xe,fn:Ie,deps:Ae,value:this,useNew:!1}),r.set(Se,{token:Se,fn:Ie,deps:Ae,value:this,useNew:!1}),function e(t,n){if(n)if((n=N(n))instanceof Array)for(let r=0;r<n.length;r++)e(t,n[r]);else{if("function"==typeof n)throw Be("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw Be("Unexpected provider",n);{let e=N(n.provide);const r=function(e){const t=function(e){let t=Ae;const n=e.deps;if(n&&n.length){t=[];for(let e=0;e<n.length;e++){let r=6,i=N(n[e]);if(i instanceof Array)for(let e=0,t=i;e<t.length;e++){const n=t[e];n instanceof g||n==g?r|=1:n instanceof b||n==b?r&=-3:n instanceof y||n==y?r&=-5:i=n instanceof m?n.token:N(n)}t.push({token:i,options:r})}}else if(e.useExisting)t=[{token:N(e.useExisting),options:6}];else if(!(n||Me in e))throw Be("'deps' required",e);return t}(e);let n=Ie,r=Ae,i=!1,l=N(e.provide);if(Me in e)r=e.useValue;else if(e.useFactory)n=e.useFactory;else if(e.useExisting);else if(e.useClass)i=!0,n=N(e.useClass);else{if("function"!=typeof l)throw Be("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",e);i=!0,n=l}return{deps:t,fn:n,useNew:i,value:r}}(n);if(!0===n.multi){let r=t.get(e);if(r){if(r.fn!==Te)throw Fe(e)}else t.set(e,r={token:n.provide,deps:[],useNew:!1,fn:Te,value:Ae});r.deps.push({token:e=n,options:6})}const i=t.get(e);if(i&&i.fn==Te)throw Fe(e);t.set(e,r)}}}(r,e)}get(e,t,n=C.Default){const r=this._records.get(e);try{return function e(t,n,r,i,l,s){try{return function(t,n,r,i,l,s){let o;if(!n||s&C.SkipSelf)s&C.Self||(o=i.get(t,l,C.Default));else{if((o=n.value)==Ee)throw Error(Ne+"Circular dependency");if(o===Ae){n.value=Ee;let t=void 0,l=n.useNew,s=n.fn,a=n.deps,u=Ae;if(a.length){u=[];for(let t=0;t<a.length;t++){const n=a[t],l=n.options,s=2&l?r.get(n.token):void 0;u.push(e(n.token,s,r,s||4&l?i:xe.NULL,1&l?null:xe.THROW_IF_NOT_FOUND,C.Default))}}n.value=o=l?new s(...u):s.apply(t,u)}}return o}(t,n,r,i,l,s)}catch(o){throw o instanceof Error||(o=new Error(o)),(o[Pe]=o[Pe]||[]).unshift(t),n&&n.value==Ee&&(n.value=Ae),o}}(e,r,this._records,this.parent,t,n)}catch(i){return Ve(i,e,"StaticInjectorError",this.source)}}toString(){const e=[];return this._records.forEach((t,n)=>e.push(R(n))),`StaticInjector[${e.join(", ")}]`}}function Fe(e){return Be("Cannot mix multi providers and regular providers",e)}function Ve(e,t,n,r){const i=e[Pe];throw t[we]&&i.unshift(t[we]),e.message=je("\n"+e.message,i,n,r),e[Re]=i,e[Pe]=null,e}function je(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&e.charAt(1)==Ne?e.substr(2):e;let i=R(t);if(t instanceof Array)i=t.map(R).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];e.push(n+":"+("string"==typeof r?JSON.stringify(r):R(r)))}i=`{${e.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(Oe,"\n ")}`}function Be(e,t){return new Error(je(e,t,"StaticInjectorError"))}const Le="ngDebugContext",He="ngOriginalError",Ue="ngErrorLogger";function ze(e){return e.length>1?" ("+function(e){const t=[];for(let n=0;n<e.length;++n){if(t.indexOf(e[n])>-1)return t.push(e[n]),t;t.push(e[n])}return t}(e.slice().reverse()).map(e=>R(e.token)).join(" -> ")+")":""}function Ge(e,t,n,r){const i=[t],l=n(i),s=r?function(e,t){const n=`${l} caused by: ${t instanceof Error?t.message:t}`,r=Error(n);return r[He]=t,r}(0,r):Error(l);return s.addKey=We,s.keys=i,s.injectors=[e],s.constructResolvingMessage=n,s[He]=r,s}function We(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function $e(e,t){const n=[];for(let r=0,i=t.length;r<i;r++){const e=t[r];n.push(e&&0!=e.length?e.map(R).join(" "):"?")}return Error("Cannot resolve all parameters for '"+R(e)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+R(e)+"' is decorated with Injectable.")}class qe{constructor(e,t){if(this.token=e,this.id=t,!e)throw new Error("Token must be defined!");this.displayName=R(this.token)}static get(e){return Ye.get(N(e))}static get numberOfKeys(){return Ye.numberOfKeys}}class Ke{constructor(){this._allKeys=new Map}get(e){if(e instanceof qe)return e;if(this._allKeys.has(e))return this._allKeys.get(e);const t=new qe(e,qe.numberOfKeys);return this._allKeys.set(e,t),t}get numberOfKeys(){return this._allKeys.size}}const Ye=new Ke;class Qe{constructor(e){this.reflectionCapabilities=e}updateCapabilities(e){this.reflectionCapabilities=e}factory(e){return this.reflectionCapabilities.factory(e)}parameters(e){return this.reflectionCapabilities.parameters(e)}annotations(e){return this.reflectionCapabilities.annotations(e)}propMetadata(e){return this.reflectionCapabilities.propMetadata(e)}hasLifecycleHook(e,t){return this.reflectionCapabilities.hasLifecycleHook(e,t)}getter(e){return this.reflectionCapabilities.getter(e)}setter(e){return this.reflectionCapabilities.setter(e)}method(e){return this.reflectionCapabilities.method(e)}importUri(e){return this.reflectionCapabilities.importUri(e)}resourceUri(e){return this.reflectionCapabilities.resourceUri(e)}resolveIdentifier(e,t,n,r){return this.reflectionCapabilities.resolveIdentifier(e,t,n,r)}resolveEnum(e,t){return this.reflectionCapabilities.resolveEnum(e,t)}}const Ze=new Qe(new ee);class Xe{constructor(e,t,n){this.key=e,this.optional=t,this.visibility=n}static fromKey(e){return new Xe(e,!1,null)}}const Je=[];class et{constructor(e,t,n){this.key=e,this.resolvedFactories=t,this.multiProvider=n,this.resolvedFactory=this.resolvedFactories[0]}}class tt{constructor(e,t){this.factory=e,this.dependencies=t}}function nt(e){let t,n;if(e.useClass){const r=N(e.useClass);t=Ze.factory(r),n=lt(r)}else e.useExisting?(t=(e=>e),n=[Xe.fromKey(qe.get(e.useExisting))]):e.useFactory?(t=e.useFactory,n=function(e,t){if(t){const n=t.map(e=>[e]);return t.map(t=>st(e,t,n))}return lt(e)}(e.useFactory,e.deps)):(t=(()=>e.useValue),n=Je);return new tt(t,n)}function rt(e){return new et(qe.get(e.provide),[nt(e)],e.multi||!1)}function it(e){const t=function(e,t){for(let n=0;n<e.length;n++){const r=e[n],i=t.get(r.key.id);if(i){if(r.multiProvider!==i.multiProvider)throw Error(`Cannot mix multi providers and regular providers, got: ${i} ${r}`);if(r.multiProvider)for(let e=0;e<r.resolvedFactories.length;e++)i.resolvedFactories.push(r.resolvedFactories[e]);else t.set(r.key.id,r)}else{let e;e=r.multiProvider?new et(r.key,r.resolvedFactories.slice(),r.multiProvider):r,t.set(r.key.id,e)}}return t}(function e(t,n){return t.forEach(t=>{if(t instanceof K)n.push({provide:t,useClass:t});else if(t&&"object"==typeof t&&void 0!==t.provide)n.push(t);else{if(!(t instanceof Array))throw function(e){return Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${t}`)}();e(t,n)}}),n}(e,[]).map(rt),new Map);return Array.from(t.values())}function lt(e){const t=Ze.parameters(e);if(!t)return[];if(t.some(e=>null==e))throw $e(e,t);return t.map(n=>st(e,n,t))}function st(e,t,n){let r=null,i=!1;if(!Array.isArray(t))return ot(t instanceof m?t.token:t,i,null);let l=null;for(let s=0;s<t.length;++s){const e=t[s];e instanceof K?r=e:e instanceof m?r=e.token:e instanceof g?i=!0:e instanceof y||e instanceof b?l=e:e instanceof ve&&(r=e)}if(null!=(r=N(r)))return ot(r,i,l);throw $e(e,n)}function ot(e,t,n){return new Xe(qe.get(e),t,n)}const at=new Object;class ut{static resolve(e){return it(e)}static resolveAndCreate(e,t){const n=ut.resolve(e);return ut.fromResolvedProviders(n,t)}static fromResolvedProviders(e,t){return new ct(e,t)}}const ct=(()=>{class e{constructor(e,t){this._constructionCounter=0,this._providers=e,this.parent=t||null;const n=e.length;this.keyIds=new Array(n),this.objs=new Array(n);for(let r=0;r<n;r++)this.keyIds[r]=e[r].key.id,this.objs[r]=at}get(e,t=_e){return this._getByKey(qe.get(e),null,t)}resolveAndCreateChild(e){const t=ut.resolve(e);return this.createChildFromResolved(t)}createChildFromResolved(t){const n=new e(t);return n.parent=this,n}resolveAndInstantiate(e){return this.instantiateResolved(ut.resolve([e])[0])}instantiateResolved(e){return this._instantiateProvider(e)}getProviderAtIndex(e){if(e<0||e>=this._providers.length)throw function(e){return Error(`Index ${e} is out-of-bounds.`)}(e);return this._providers[e]}_new(e){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw Ge(this,e.key,function(e){return`Cannot instantiate cyclic dependency!${ze(e)}`});return this._instantiateProvider(e)}_getMaxNumberOfObjects(){return this.objs.length}_instantiateProvider(e){if(e.multiProvider){const t=new Array(e.resolvedFactories.length);for(let n=0;n<e.resolvedFactories.length;++n)t[n]=this._instantiate(e,e.resolvedFactories[n]);return t}return this._instantiate(e,e.resolvedFactories[0])}_instantiate(e,t){const n=t.factory;let r,i;try{r=t.dependencies.map(e=>this._getByReflectiveDependency(e))}catch(s){throw s.addKey&&s.addKey(this,e.key),s}try{i=n(...r)}catch(s){throw Ge(this,e.key,function(e){const t=R(e[0].token);return`${l.message}: Error during instantiation of ${t}!${ze(e)}.`},l=s)}var l;return i}_getByReflectiveDependency(e){return this._getByKey(e.key,e.visibility,e.optional?null:_e)}_getByKey(t,n,r){return t===e.INJECTOR_KEY?this:n instanceof y?this._getByKeySelf(t,r):this._getByKeyDefault(t,r,n)}_getObjByKeyId(e){for(let t=0;t<this.keyIds.length;t++)if(this.keyIds[t]===e)return this.objs[t]===at&&(this.objs[t]=this._new(this._providers[t])),this.objs[t];return at}_throwOrNull(e,t){if(t!==_e)return t;throw function(e,t){return Ge(e,t,function(e){return`No provider for ${R(e[0].token)}!${ze(e)}`})}(this,e)}_getByKeySelf(e,t){const n=this._getObjByKeyId(e.id);return n!==at?n:this._throwOrNull(e,t)}_getByKeyDefault(t,n,r){let i;for(i=r instanceof b?this.parent:this;i instanceof e;){const e=i,n=e._getObjByKeyId(t.id);if(n!==at)return n;i=e.parent}return null!==i?i.get(t.token,n):this._throwOrNull(t,n)}get displayName(){return`ReflectiveInjector(providers: [${function(e,t){const n=new Array(e._providers.length);for(let r=0;r<e._providers.length;++r)n[r]=t(e.getProviderAtIndex(r));return n}(this,e=>' "'+e.key.displayName+'" ').join(", ")}])`}toString(){return this.displayName}}return e.INJECTOR_KEY=qe.get(xe),e})(),dt=new ve("AnalyzeForEntryComponents");class ht{}const ft=p("ContentChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!1,descendants:!1},t),ht),pt=p("ContentChild",(e,t={})=>Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t),ht),mt=p("ViewChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!0,descendants:!0},t),ht),gt=p("ViewChild",(e,t)=>Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t),ht),yt=function(){var e={OnPush:0,Default:1};return e[e.OnPush]="OnPush",e[e.Default]="Default",e}(),bt=function(){var e={CheckOnce:0,Checked:1,CheckAlways:2,Detached:3,Errored:4,Destroyed:5};return e[e.CheckOnce]="CheckOnce",e[e.Checked]="Checked",e[e.CheckAlways]="CheckAlways",e[e.Detached]="Detached",e[e.Errored]="Errored",e[e.Destroyed]="Destroyed",e}();function vt(e){return null==e||e===yt.Default}function wt(e){const t=[],n=new Map;function r(t){let r=n.get(t);if(!r){const i=e(t);n.set(t,r=i.then(xt))}return r}return Ct.forEach((e,n)=>{const i=[];e.templateUrl&&i.push(r(e.templateUrl).then(t=>{e.template=t}));const l=e.styleUrls,s=e.styles||(e.styles=[]),o=e.styles.length;l&&l.forEach((t,n)=>{s.push(""),i.push(r(t).then(r=>{s[o+n]=r,l.splice(l.indexOf(t),1),0==l.length&&(e.styleUrls=void 0)}))});const a=Promise.all(i).then(()=>(function(e){_t.delete(e)})(n));t.push(a)}),kt(),Promise.all(t).then(()=>void 0)}let Ct=new Map;const _t=new Set;function St(e){return!!(e.templateUrl&&!e.template||e.styleUrls&&e.styleUrls.length)}function kt(){const e=Ct;return Ct=new Map,e}function xt(e){return"string"==typeof e?e:e.text()}const It=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}();function At(e){return""+{toString:e}}const Et={},Tt=[],Mt=_({ngComponentDef:_}),Rt=_({ngDirectiveDef:_}),Pt=_({ngPipeDef:_}),Ot=_({ngModuleDef:_}),Nt=_({ngBaseDef:_}),Dt=_({__NG_ELEMENT_ID__:_});let Ft=0;function Vt(e){const t=e.type,n=t.prototype,r={},i={type:t,providersResolver:null,consts:e.consts,vars:e.vars,factory:e.factory,template:e.template||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:e.changeDetection===yt.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||It.Emulated,id:"c",styles:e.styles||Tt,_:null,setInput:null,schemas:e.schemas||null};return i._=At(()=>{const n=e.directives,l=e.features,s=e.pipes;i.id+=Ft++,i.inputs=zt(e.inputs,r),i.outputs=zt(e.outputs),l&&l.forEach(e=>e(i)),i.directiveDefs=n?()=>("function"==typeof n?n():n).map(Bt):null,i.pipeDefs=s?()=>("function"==typeof s?s():s).map(Lt):null,t.hasOwnProperty(T)||(t[T]=k({factory:e.factory}))}),i}function jt(e,t,n){const r=e.ngComponentDef;r.directiveDefs=(()=>t.map(Bt)),r.pipeDefs=(()=>n.map(Lt))}function Bt(e){return qt(e)||Kt(e)}function Lt(e){return Yt(e)}function Ht(e){return{type:e.type,bootstrap:e.bootstrap||Tt,declarations:e.declarations||Tt,imports:e.imports||Tt,exports:e.exports||Tt,transitiveCompileScopes:null,schemas:e.schemas||null}}function Ut(e,t){return At(()=>{const n=Zt(e,!0);n.declarations=t.declarations||Tt,n.imports=t.imports||Tt,n.exports=t.exports||Tt})}function zt(e,t){if(null==e)return Et;const n={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],l=i;Array.isArray(i)&&(l=i[1],i=i[0]),n[i]=r,t&&(t[i]=l)}return n}function Gt(e){const t={};return{inputs:zt(e.inputs,t),declaredInputs:t,outputs:zt(e.outputs),viewQuery:e.viewQuery||null,contentQueries:e.contentQueries||null}}const Wt=Vt;function $t(e){return{name:e.name,factory:e.factory,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function qt(e){return e[Mt]||null}function Kt(e){return e[Rt]||null}function Yt(e){return e[Pt]||null}function Qt(e){return e[Nt]||null}function Zt(e,t){const n=e[Ot]||null;if(!n&&!0===t)throw new Error(`Type ${R(e)} does not have 'ngModuleDef' property.`);return n}function Xt(e){return"function"==typeof e?e.name||e:"string"==typeof e?e:null==e?"":""+e}function Jt(e){return"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type:Xt(e)}const en=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(F))();function tn(e){return{name:"window",target:e.ownerDocument.defaultView}}function nn(e){return{name:"document",target:e.ownerDocument}}function rn(e){return{name:"body",target:e.ownerDocument.body}}const ln="\ufffd";function sn(e){return e.indexOf(ln)>=0}function on(e){return e instanceof Function?e():e}const an=0,un=1,cn=2,dn=3,hn=4,fn=5,pn=6,mn=7,gn=8,yn=9,bn=10,vn=11,wn=12,Cn=13,_n=14,Sn=15,kn=16,xn=17,In=18,An=20,En=1,Tn=2,Mn=7,Rn=8,Pn="__ngContext__";function On(e){for(;Array.isArray(e);)e=e[an];return e}function Nn(e){return Array.isArray(e)&&"object"==typeof e[En]}function Dn(e){return Array.isArray(e)&&!0===e[En]}function Fn(e,t){return On(t[e+An])}function Vn(e,t){return On(t[e.index])}function jn(e,t){return t[un].data[e+An]}function Bn(e,t){return e[t+An]}function Ln(e,t){const n=t[e];return Nn(n)?n:n[an]}function Hn(e){return 1==(1&e.flags)}function Un(e){return null!==e.template}function zn(e){return 0!=(512&e[cn])}function Gn(e){return e[Pn]}function Wn(e){const t=Gn(e);return t?Array.isArray(t)?t:t.lView:null}function $n(e){return Dn(e[dn])}function qn(e){e[In]=0}const Kn=8,Yn=8,Qn=9,Zn=-1;class Xn{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function Jn(e,t,n,r,i,l){const{onChanges:s,onInit:o,doCheck:a}=t;i>=0&&(!n.preOrderHooks||i===n.preOrderHooks.length)&&(s||o||a)&&(n.preOrderHooks||(n.preOrderHooks=[])).push(r),l>=0&&(!n.preOrderCheckHooks||l===n.preOrderCheckHooks.length)&&(s||a)&&(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(r),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)),o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-e,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}function er(e,t){if(e.firstTemplatePass)for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const t=e.data[n];t.afterContentInit&&(e.contentHooks||(e.contentHooks=[])).push(-n,t.afterContentInit),t.afterContentChecked&&((e.contentHooks||(e.contentHooks=[])).push(n,t.afterContentChecked),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,t.afterContentChecked)),t.afterViewInit&&(e.viewHooks||(e.viewHooks=[])).push(-n,t.afterViewInit),t.afterViewChecked&&((e.viewHooks||(e.viewHooks=[])).push(n,t.afterViewChecked),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,t.afterViewChecked)),null!=t.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(n,t.onDestroy)}}function tr(e,t,n,r){n||nr(e,t.preOrderHooks,t.preOrderCheckHooks,n,0,void 0!==r?r:null)}function nr(e,t,n,r,i,l){if(r)return;const s=(3&e[cn])===i?t:n;s&&function(e,t,n,r){const i=null!=r?r:-1;let l=0;for(let s=void 0!==r?65535&e[In]:0;s<t.length;s++)if("number"==typeof t[s+1]){if(l=t[s],null!=r&&l>=r)break}else t[s]<0&&(e[In]+=65536),(l<i||-1==i)&&(rr(e,n,t,s),e[In]=(4294901760&e[In])+s+2),s++}(e,s,i,l),null==l&&(3&e[cn])===i&&3!==i&&(e[cn]&=1023,e[cn]+=1)}function rr(e,t,n,r){const i=n[r]<0,l=n[r+1],s=e[i?-n[r]:n[r]];i?e[cn]>>10<e[In]>>16&&(3&e[cn])===t&&(e[cn]+=1024,l.call(s)):l.call(s)}let ir,lr=null;function sr(e){lr=e}let or,ar=null;function ur(e){ar=e}function cr(){or=!0}function dr(){or=!1}function hr(){return gr}const fr=1;let pr,mr,gr,yr=fr,br=0,vr=0;function wr(e=null){zr!==e&&(Wr(null==e?-1:e),yr=fr,br=0,vr=0)}function Cr(){yr+=1+vr,br=0,vr=0}function _r(e){br+=e,vr=Math.max(vr,br)}function Sr(e){Mr=e}function kr(){return pr}function xr(e){pr=e}function Ir(e,t){pr=e,gr=t}function Ar(){return mr}function Er(e){mr=e}function Tr(e=gr){return 4==(4&e[cn])}let Mr=null,Rr=!1;function Pr(){return Rr}function Or(e){Rr=e}let Nr=-1;function Dr(){return Nr}function Fr(e){Nr=e}let Vr=0;function jr(){return Vr}function Br(e){Vr=e}function Lr(e,t){const n=gr;return e&&(Nr=e[un].bindingStartIndex),pr=t,mr=!0,gr=Mr=e,n}function Hr(e=1){return(Mr=function(e,t){for(;e>0;)t=t[xn],e--;return t}(e,Mr))[yn]}function Ur(e){const t=gr[un];if(Tr(gr))gr[cn]&=-5;else try{qn(gr),nr(gr,t.viewHooks,t.viewCheckHooks,Rr,2,void 0)}finally{gr[cn]&=-73,gr[mn]=t.bindingStartIndex}sr(null),Lr(e,null)}let zr=-1;function Gr(){return zr}function Wr(e){zr=e,sr(null)}let $r=null;function qr(){$r="http://www.w3.org/2000/svg"}function Kr(){$r="http://www.w3.org/1998/MathML/"}function Yr(){$r=null}const Qr=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}();function Zr(e){return!!e.listen}const Xr={createRenderer:(e,t)=>document};function Jr(e){let t=Gn(e);if(t){if(Array.isArray(t)){const r=t;let i,l=void 0,s=void 0;if((n=e)&&n.constructor&&n.constructor.ngComponentDef){if(-1==(i=li(r,e)))throw new Error("The provided component was not found in the application");l=e}else if(e&&e.constructor&&e.constructor.ngDirectiveDef){if(-1==(i=function(e,t){let n=e[un].firstChild;for(;n;){const r=n.directiveEnd;for(let i=n.directiveStart;i<r;i++)if(e[i]===t)return n.index;n=ii(n)}return-1}(r,e)))throw new Error("The provided directive was not found in the application");s=si(i,r,!1)}else if(-1==(i=ri(r,e)))return null;const o=On(r[i]),a=Gn(o),u=a&&!Array.isArray(a)?a:ei(r,i,o);if(l&&void 0===u.component&&(u.component=l,ni(u.component,u)),s&&void 0===u.directives){u.directives=s;for(let e=0;e<s.length;e++)ni(s[e],u)}ni(u.native,u),t=u}}else{const n=e;let r=n;for(;r=r.parentNode;){const e=Gn(r);if(e){let r;if(!(r=Array.isArray(e)?e:e.lView))return null;const i=ri(r,n);if(i>=0){const e=On(r[i]),n=ei(r,i,e);ni(e,n),t=n;break}}}}var n;return t||null}function ei(e,t,n){return{lView:e,nodeIndex:t,native:n,component:void 0,directives:void 0,localRefs:void 0}}function ti(e){let t,n=Gn(e);if(Array.isArray(n)){const r=li(n,e),i=ei(n,r,(t=Ln(r,n))[an]);i.component=e,ni(e,i),ni(i.native,i)}else t=Ln(n.nodeIndex,n.lView);return t}function ni(e,t){e[Pn]=t}function ri(e,t){let n=e[un].firstChild;for(;n;){if(Vn(n,e)===t)return n.index;n=ii(n)}return-1}function ii(e){if(e.child)return e.child;if(e.next)return e.next;for(;e.parent&&!e.parent.next;)e=e.parent;return e.parent&&e.parent.next}function li(e,t){const n=e[un].components;if(n)for(let r=0;r<n.length;r++){const i=n[r];if(Ln(i,e)[yn]===t)return i}else if(Ln(An,e)[yn]===t)return An;return-1}function si(e,t,n){const r=t[un].data[e];let i=r.directiveStart;return 0==i?Tt:(!n&&1&r.flags&&i++,t.slice(i,r.directiveEnd))}class oi{constructor(){this._players=[]}flushPlayers(){for(let e=0;e<this._players.length;e++){const t=this._players[e];t.parent||0!==t.state||t.play()}this._players.length=0}queuePlayer(e){this._players.push(e)}}const ai=0,ui="@";function ci(e,t,n,r){const i=[e||null,0,[],n||[null,null],r||[null,null],[0,0],[0],[0],null,null];return di(i,ai),i}function di(e,t,n=-1,r){const i=e[2],l=2*t,s=l+2;for(let a=i.length;a<s;a+=2)i.push(-1,null);const o=l+0;n>=0&&-1===i[o]&&(i[o]=n,i[l+1]=r||null)}function hi(e,t){let n=e,r=t[n],i=t;for(;Array.isArray(r);)i=r,r=r[an];if(l=i,Array.isArray(l)&&"number"==typeof l[En])return i;{const l=jn(e-An,t).stylingTemplate;return i!==t&&(n=an),i[n]=l?function(e,t){const n=t.slice();for(let r=0;r<10;r++){const e=t[r];Array.isArray(e)&&(n[r]=e.slice())}return n[0]=e,n[1]|=16,n}(r,l):ci(r)}var l}function fi(e){return e[0]===ui}function pi(e){return 0!=(8&e.flags)}function mi(e){return 0!=(16&e.flags)}function gi(e,t,n,r,i,l){return l=l||n,i?e[i]=r:e.push(r),!!r&&(r.addEventListener(200,()=>{const t=e.indexOf(r);t&&(t<e[0]?e[t]=null:e.splice(t,1)),r.destroy()}),(t.playerHandler||(t.playerHandler=new oi)).queuePlayer(r,l),!0)}function yi(e){return e[9]}function bi(e){return e[9]=[5,null,null,null,null]}function vi(e,t){const n=hr()[wn],r=Zr(n);let i=0;for(;i<t.length;){const l=t[i];if("number"==typeof l){if(0!==l)break;i++;const s=t[i++],o=t[i++],a=t[i++];r?n.setAttribute(e,o,a,s):e.setAttributeNS(s,o,a)}else{const s=l,o=t[++i];fi(s)?r&&n.setProperty(e,s,o):r?n.setAttribute(e,s,o):e.setAttribute(s,o),i++}}return i}function wi(e,t){for(let n=t;n<e.length;n++){const t=e[n];if(1===t||2===t)return n}return-1}function Ci(e){return 3===e||4===e}function _i(e){return e!==Zn}function Si(e){return 32767&e}function ki(e){return e>>16}function xi(e,t){let n=ki(e),r=t;for(;n>0;)r=r[xn],n--;return r}function Ii(e){const t=e[dn];return Dn(t)?t[dn]:t}function Ai(e){let t=e[pn];for(;t&&2===t.type;)t=(e=e[xn])[pn];return e}function Ei(e){return function(e){let t=Nn(e)?e:Wn(e);for(;t&&!(512&t[cn]);)t=Ii(t);return t}(e)[yn]}let Ti=!0;function Mi(e){const t=Ti;return Ti=e,t}const Ri=255;let Pi=0;function Oi(e,t){const n=Di(e,t);if(-1!==n)return n;const r=t[un];r.firstTemplatePass&&(e.injectorIndex=t.length,Ni(r.data,e),Ni(t,null),Ni(r.blueprint,null));const i=Fi(e,t),l=Si(i),s=xi(i,t),o=e.injectorIndex;if(_i(i)){const e=s[un].data;for(let n=0;n<8;n++)t[o+n]=s[l+n]|e[l+n]}return t[o+Yn]=i,o}function Ni(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Di(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+Yn]?-1:e.injectorIndex}function Fi(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=t[pn],r=1;for(;n&&-1===n.injectorIndex;)n=(t=t[xn])?t[pn]:null,r++;return n?n.injectorIndex|r<<16:-1}function Vi(e,t,n){!function(e,t,n){let r="string"!=typeof n?n[Dt]:n.charCodeAt(0)||0;null==r&&(r=n[Dt]=Pi++);const i=r&Ri,l=1<<i,s=64&i,o=32&i,a=t.data;128&i?s?o?a[e+7]|=l:a[e+6]|=l:o?a[e+5]|=l:a[e+4]|=l:s?o?a[e+3]|=l:a[e+2]|=l:o?a[e+1]|=l:a[e]|=l}(e,t[un],n)}function ji(e,t){const n=e.attrs;if(n){const e=n.length;let r=0;for(;r<e;){const i=n[r];if(Ci(i))break;if(0===i)r+=2;else if("number"==typeof i){if(r++,1===i&&"class"===t){let t="";for(;r<e&&"string"==typeof n[r];)t+=" "+n[r++];return t.trim()}if(2===i&&"style"===t){let t="";for(;r<e&&"string"==typeof n[r];)t+=`${n[r++]}: ${n[r++]}; `;return t.trim()}for(;r<e&&"string"==typeof n[r];)r++}else{if(i===t)return n[r+1];r+=2}}}return null}function Bi(e,t,n,r=C.Default,i){if(e){const i=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e[Dt];return"number"==typeof t&&t>0?t&Ri:t}(n);if("function"==typeof i){const l=kr(),s=hr();Ir(e,t);try{const e=i();if(null!=e||r&C.Optional)return e;throw new Error(`No provider for ${Jt(n)}!`)}finally{Ir(l,s)}}else if("number"==typeof i){if(-1===i)return new $i(e,t);let l=null,s=Di(e,t),o=Zn,a=r&C.Host?Ai(t)[pn]:null;for((-1===s||r&C.SkipSelf)&&(o=-1===s?Fi(e,t):t[s+Yn],Wi(r,!1)?(l=t[un],s=Si(o),t=xi(o,t)):s=-1);-1!==s;){o=t[s+Yn];const e=t[un];if(Gi(i,s,e.data)){const e=Hi(s,t,n,l,r,a);if(e!==Li)return e}Wi(r,t[un].data[s+Kn]===a)&&Gi(i,s,t)?(l=e,s=Si(o),t=xi(o,t)):s=-1}}}if(r&C.Optional&&void 0===i&&(i=null),0==(r&(C.Self|C.Host))){const e=t[bn],l=H(void 0);try{return e?e.get(n,i,r&C.Optional):W(n,i,r&C.Optional)}finally{H(l)}}if(r&C.Optional)return i;throw new Error(`NodeInjector: NOT_FOUND [${Jt(n)}]`)}const Li={};function Hi(e,t,n,r,i,l){const s=t[un],o=s.data[e+Kn],a=Ui(o,t,n,null==r?Hn(o)&&Ti:r!=s&&3===o.type,i&C.Host&&l===o);return null!==a?zi(s.data,t,a,o):Li}function Ui(e,t,n,r,i){const l=e.providerIndexes,s=t[un].data,o=65535&l,a=e.directiveStart,u=l>>16,c=i?o+u:e.directiveEnd;for(let d=r?o:o+u;d<c;d++){const e=s[d];if(d<a&&n===e||d>=a&&e.type===n)return d}if(i){const e=s[a];if(e&&Un(e)&&e.type===n)return a}return null}function zi(e,t,n,r){let i=t[n];if(null!==(l=i)&&"object"==typeof l&&Object.getPrototypeOf(l)==Xn.prototype){const l=i;if(l.resolving)throw new Error(`Circular dep for ${Jt(e[n])}`);const s=Mi(l.canSeeViewProviders);let o;l.resolving=!0,l.injectImpl&&(o=H(l.injectImpl));const a=kr(),u=hr();Ir(r,t);try{i=t[n]=l.factory(null,e,t,r)}finally{l.injectImpl&&H(o),Mi(s),l.resolving=!1,Ir(a,u)}}var l;return i}function Gi(e,t,n){const r=64&e,i=32&e;let l;return!!((l=128&e?r?i?n[t+7]:n[t+6]:i?n[t+5]:n[t+4]:r?i?n[t+3]:n[t+2]:i?n[t+1]:n[t])&1<<e)}function Wi(e,t){return!(e&C.Self||e&C.Host&&t)}class $i{constructor(e,t){this._tNode=e,this._lView=t}get(e,t){return Bi(this._tNode,this._lView,e,void 0,t)}}function qi(e){const t=e,n=qt(t)||Kt(t)||Yt(t)||A(t)||E(t);return n&&void 0!==n.factory?n.factory:null}function Ki(e){const t=qi(Object.getPrototypeOf(e.prototype).constructor);return null!==t?t:e=>new e}function Yi(e){return e[Le]}function Qi(e){return e[He]}function Zi(e,...t){e.error(...t)}class Xi{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e[Ue]||Zi}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?Yi(e)?Yi(e):this._findContext(Qi(e)):null}_findOriginalError(e){let t=Qi(e);for(;t&&Qi(t);)t=Qi(t);return t}}const Ji={name:"custom-elements"},el={name:"no-errors-schema"},tl="__SANITIZER_TRUSTED_BRAND__";function nl(e,t){return e instanceof String&&e[tl]===t}function rl(e){return al(e,"Html")}function il(e){return al(e,"Style")}function ll(e){return al(e,"Script")}function sl(e){return al(e,"Url")}function ol(e){return al(e,"ResourceUrl")}function al(e,t){const n=new String(e);return n[tl]=t,n}let ul=!0,cl=!1;function dl(){return cl=!0,ul}function hl(){if(cl)throw new Error("Cannot enable prod mode after platform setup.");ul=!1}class fl{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),this.inertBodyElement=this.inertDocument.body,null==this.inertBodyElement){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e),this.inertBodyElement=this.inertDocument.createElement("body"),e.appendChild(this.inertBodyElement)}this.inertBodyElement.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(e){e="<body><remove></remove>"+e+"</body>";try{e=encodeURI(e)}catch(r){return null}const t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);const n=t.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(e){e="<body><remove></remove>"+e+"</body>";try{const n=(new window.DOMParser).parseFromString(e,"text/html").body;return n.removeChild(n.firstChild),n}catch(t){return null}}getInertBodyElement_InertDocument(e){const t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0<r;r--){const n=t.item(r).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||e.removeAttribute(n)}let n=e.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const pl=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,ml=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function gl(e){return(e=String(e)).match(pl)||e.match(ml)?e:(dl()&&console.warn(`WARNING: sanitizing unsafe URL value ${e} (see http://g.co/ng/security#xss)`),"unsafe:"+e)}function yl(e){return(e=String(e)).split(",").map(e=>gl(e.trim())).join(", ")}function bl(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function vl(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const wl=bl("area,br,col,hr,img,wbr"),Cl=bl("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),_l=bl("rp,rt"),Sl=vl(_l,Cl),kl=vl(wl,vl(Cl,bl("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")),vl(_l,bl("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")),Sl),xl=bl("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Il=bl("srcset"),Al=vl(xl,Il,bl("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),bl("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")),El=bl("script,style,template");class Tl{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,n=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let e=this.checkClobberedElement(t,t.nextSibling);if(e){t=e;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!kl.hasOwnProperty(t))return this.sanitizedSomething=!0,!El.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const n=e.attributes;for(let r=0;r<n.length;r++){const e=n.item(r),t=e.name,i=t.toLowerCase();if(!Al.hasOwnProperty(i)){this.sanitizedSomething=!0;continue}let l=e.value;xl[i]&&(l=gl(l)),Il[i]&&(l=yl(l)),this.buf.push(" ",t,'="',Pl(l),'"')}return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();kl.hasOwnProperty(t)&&!wl.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(Pl(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const Ml=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Rl=/([^\#-~ |!])/g;function Pl(e){return e.replace(/&/g,"&amp;").replace(Ml,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Rl,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Ol;function Nl(e,t){let n=null;try{Ol=Ol||new fl(e);let r=t?String(t):"";n=Ol.getInertBodyElement(r);let i=5,l=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=l,l=n.innerHTML,n=Ol.getInertBodyElement(r)}while(r!==l);const s=new Tl,o=s.sanitizeChildren(Dl(n)||n);return dl()&&s.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),o}finally{if(n){const e=Dl(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}function Dl(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}const Fl=function(){var e={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return e[e.NONE]="NONE",e[e.HTML]="HTML",e[e.STYLE]="STYLE",e[e.SCRIPT]="SCRIPT",e[e.URL]="URL",e[e.RESOURCE_URL]="RESOURCE_URL",e}();class Vl{}const jl=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Bl=/^url\(([^)]+)\)$/;function Ll(e){if(!(e=String(e).trim()))return"";const t=e.match(Bl);return t&&gl(t[1])===t[1]||e.match(jl)&&function(e){let t=!0,n=!0;for(let r=0;r<e.length;r++){const i=e.charAt(r);"'"===i&&n?t=!t:'"'===i&&t&&(n=!n)}return t&&n}(e)?e:(dl()&&console.warn(`WARNING: sanitizing unsafe style value ${e} (see http://g.co/ng/security#xss).`),"unsafe")}function Hl(e){const t=Yl();return t?t.sanitize(Fl.HTML,e)||"":nl(e,"Html")?e.toString():Nl(document,Xt(e))}function Ul(e){const t=Yl();return t?t.sanitize(Fl.STYLE,e)||"":nl(e,"Style")?e.toString():Ll(Xt(e))}function zl(e){const t=Yl();return t?t.sanitize(Fl.URL,e)||"":nl(e,"Url")?e.toString():gl(Xt(e))}function Gl(e){const t=Yl();if(t)return t.sanitize(Fl.RESOURCE_URL,e)||"";if(nl(e,"ResourceUrl"))return e.toString();throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)")}function Wl(e){const t=Yl();if(t)return t.sanitize(Fl.SCRIPT,e)||"";if(nl(e,"Script"))return e.toString();throw new Error("unsafe value used in a script context")}function $l(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Gl:zl}function ql(e,t,n){return $l(t,n)(e)}const Kl=function(e,t){return void 0===t?"background-image"===e||"background"===e||"border-image"===e||"filter"===e||"list-style"===e||"list-style-image"===e:Ul(t)};function Yl(){const e=hr();return e&&e[Cn]}const Ql=/([A-Z])/g;function Zl(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}const Xl={marker:"element"},Jl={marker:"comment"};function es(e){throw new Error(`Multiple components match node with tagname ${e.tagName}`)}const ts={};function ns(e,t,n,r){const i=e[8],l=function(e,t){for(let n=1;n<e.length;n+=3)if(e[n+0]>t)return n;return e.length}(i,t);i.splice(l,0,t,n,r)}function rs(e,t){return new is(e,t)}class is{constructor(e,t){this.fn=e,this.value=t}}function ls(e,t,n=0){const r=ci();return ss(r,e,t,n),r}function ss(e,t,n,r){if(16&e[1])return;di(e,r);let i=null,l=null,s=-1;for(let o=n;o<t.length;o++){const n=t[o];"number"==typeof n?s=n:1==s?os(i=i||e[4],n,!0,r):2==s&&os(l=l||e[3],n,t[++o],r)}}function os(e,t,n,r){for(let i=2;i<e.length;i+=3)if(e[i+0]===t)return void(Qs(e[i+1],n,e[i+2],r)&&no(i,e,t,n,r));no(null,e,t,n,r)}function as(e,t,n,r){const i=t[4];let l=r||2;for(;l<i.length;)i[l+1]&&ys(e,i[l+0],!0,n,null),l+=3;return l}function us(e,t,n,r){const i=t[3];let l=r||2;for(;l<i.length;){const t=i[l+1];t&&gs(e,i[l+0],t,n,null),l+=3}return l}function cs(e,t,n,r){for(let i=n;i<r;i+=4)if(Vs(e,i)===t)return i;return-1}function ds(e,t,n,r=0){n=n||null;const i=Js(e,!0,r,t=t||null),l=Js(e,!1,r,n);if(i&&l)return;t=t===ts?Xs(e,!0,r):t,n=n===ts?Xs(e,!1,r):n;const s=e[0],o=t instanceof is?new $s(t,s,1):null,a=n instanceof is?new $s(n,s,2):null,u=o?t.value:t,c=a?n.value:n;let d=Tt,h=!1,f=!1;const p=o?1:0;Ts(e,o,1)&&(Ms(e,o,1),f=!0);const m=a?3:0;Ts(e,a,3)&&(Ms(e,a,3),f=!0),i||("string"==typeof u?(d=u.split(/\s+/),h=!0):d=u?Object.keys(u):Tt);const g=Is(e);let y=function(e){return e[6][2]}(e),b=e.length;if(!l){const t=hs(e,r,m,g,y,c?Object.keys(c):Tt,c||Et,n,!1);t&&(y+=4*t,b+=4*t)}if(!i){const n=u||Et;hs(e,r,p,y,b,d,h||n,t,!0)}f&&Bs(e,!0)}function hs(e,t,n,r,i,l,s,o,a){let u=!1;const c=1+4*t,d=e[a?6:7],h=d[c+1],f=d[c+3];let p=1===d[c+0]||!(d[c+2]||!o),m=0,g=0;const y=!0===s;let b=r,v=l.length;for(;b<h;){const r=Vs(e,b);if(v)for(let i=0;i<l.length;i++){const o=l[i],c=o?a?o:eo(o):null;if(c&&r===c){const r=Fs(e,b),o=qs(e,b),a=!!y||s[c],d=Ds(e,b);Ws(d,r,a)&&Qs(r,a,o,t)&&(Es(e,b,a),Rs(e,b,n,t),Gs(e,d,a)&&(bs(e,b,!0),u=!0)),l[i]=null,v--;break}}b+=4}if(v){const r=a?null:Ys(e,t);e:for(let o=0;o<l.length;o++){const c=l[o];if(!c)continue;const d=!!y||s[c],f=a?c:eo(c),v=b>=h;for(let r=b;r<i;r+=4)if(Vs(e,r)===f){const i=qs(e,r),l=Ps(e,r),s=Fs(e,r),o=Ds(e,r);Qs(s,d,i,t)&&(v&&(Ls(e,b,r),m++),Ws(o,s,d)&&((null===d||void 0===d&&d!==s)&&(p=!0),Es(e,b,d),(null!==s||Gs(e,o,d))&&(bs(e,b,!0),u=!0)),i===t&&n===l||Rs(e,b,n,t)),b+=4;continue e}null!=d&&(p=!0,m++,Hs(e,v?b:h+4*g,a,f,1|zs(e,f,a,r),d,t,n),g++,i+=4,b+=4,u=!0)}}for(;b<i;){p=!0;const r=Fs(e,b),i=Ds(e,b);qs(e,b),null!=r&&(p=!0),Ws(i,r,null)&&(Es(e,b,null),Gs(e,i,r)&&(bs(e,b,!0),u=!0),Rs(e,b,n,t)),b+=4}return function(e,t,n,r,i,l,s,o){const a=e[n?6:7],u=1+4*t;if(o){const e=i+4*s;for(let t=u+4;t<a.length;t+=4)a[t+1]=e,a[t+0]=1}a[u+0]=0,a[u+1]=i,a[u+2]=r,a[u+3]=s;let c=s;for(let d=1;d<u;d+=4)c+=a[d+3];if(!n){const t=e[6],n=l-t[2];for(let e=1;e<t.length;e+=4)t[e+1]+=n}a[0]=c}(e,t,a,o,h,i,m,p=p||f!==m),u&&js(e,!0),g}function fs(e,t,n,r=0,i){ms(e,t,n,!0,r,i)}function ps(e,t,n,r=0,i){ms(e,t,n,!1,r,i)}function ms(e,t,n,r,i,l){const s=function(e,t,n,r){const i=e[2][2*t+0],l=e[5];return l[i+2+(r?l[i+0]:0)+n]}(e,i,t,r),o=Fs(e,s),a=Ds(e,s),u=qs(e,s),c=n instanceof is?n.value:n;if(Ws(a,o,c)&&(l||Qs(o,c,u,i))){const t=2==(2&a),r=e[0],l=n instanceof is?new $s(n,r,t?1:2):null,o=l?n.value:n,c=Ps(e,s);let d=!1,h=l?c:0;if(Ts(e,l,c)){const t=Ms(e,l,c);h=l?t:0,d=!0}if((d||u!==i)&&Rs(e,s,h,i),u!==i){const t=Vs(e,s),n=Ys(e,i);!function(e,r,i){n&&n(t)?e[r]|=4:e[r]&=-5}(e,s)}Es(e,s,o);const f=xs(a),p=Fs(e,f);if(!p||Ws(a,p,o)){let t=!1,n=!0;!Us(o)&&Us(p)&&(t=!0,n=!1),bs(e,f,t),bs(e,s,n),js(e,!0)}d&&Bs(e,!0)}}function gs(e,t,n,r,i,l,s){n=i&&n?i(t,n):n,l||s?(l&&l.setValue(t,n),s&&s.setValue(t,n)):n?(n=n.toString(),Zr(r)?r.setStyle(e,t,n,Qr.DashCase):e.style.setProperty(t,n)):Zr(r)?r.removeStyle(e,t,Qr.DashCase):e.style.removeProperty(t)}function ys(e,t,n,r,i,l){i||l?(i&&i.setValue(t,n),l&&l.setValue(t,n)):""!==t&&(n?Zr(r)?r.addClass(e,t):e.classList.add(t):Zr(r)?r.removeClass(e,t):e.classList.remove(t))}function bs(e,t,n){const r=t>=10?t+0:t;n?e[r]|=1:e[r]&=-2}function vs(e,t){return 1==(1&e[t>=10?t+0:t])}function ws(e,t){return 2==(2&e[t>=10?t+0:t])}function Cs(e,t){return 4==(4&e[t>=10?t+0:t])}function _s(e,t,n){return 31&e|t<<5|n<<19}function Ss(e,t){const n=ks(t);return(2&t?e[4]:e[3])[n]}function ks(e){return e>>5&16383}function xs(e){const t=e>>19&16383;return t>=10?t:-1}function Is(e){return e[7][2]}function As(e,t,n){e[t+1]=n}function Es(e,t,n){e[t+2]=n}function Ts(e,t,n){const r=e[9];if(t){if(!r||0===n)return!0}else if(!r)return!1;return r[n]!==t}function Ms(e,t,n){let r=e[9]||bi(e);return n>0?r[n]=t:(r.splice(n=r[0],0,t,null),r[0]+=2),n}function Rs(e,t,n,r){const i=function(e,t){return n<<16|e}(r);e[t+3]=i}function Ps(e,t){return e[t+3]>>16&65535}function Os(e,t){const n=Ps(e,t);if(n){const t=e[9];if(t)return t[n]}return null}function Ns(e,t,n){e[1===t?t:t+0]=n}function Ds(e,t){return e[1===t?t:t+0]}function Fs(e,t){return e[t+2]}function Vs(e,t){return e[t+1]}function js(e,t){bs(e,1,t)}function Bs(e,t){t?e[1]|=8:e[1]&=-9}function Ls(e,t,n){if(t===n)return;const r=Fs(e,t),i=Vs(e,t),l=Ds(e,t),s=Ps(e,t),o=qs(e,t);let a=l,u=Ds(e,n);const c=xs(a);if(c>=0){const t=Ds(e,c);Ns(e,c,_s(t,ks(t),n))}const d=xs(u);if(d>=0){const n=Ds(e,d);Ns(e,d,_s(n,ks(n),t))}Es(e,t,Fs(e,n)),As(e,t,Vs(e,n)),Ns(e,t,Ds(e,n)),Rs(e,t,Ps(e,n),qs(e,n)),Es(e,n,r),As(e,n,i),Ns(e,n,l),Rs(e,n,s,o)}function Hs(e,t,n,r,i,l,s,o){const a=t<e.length;e.splice(t,0,1|i|(n?2:0),r,l,0),Rs(e,t,o,s),a&&function(e,n){for(let r=t+4;r<e.length;r+=4){const t=xs(Ds(e,r));if(t>0){const n=ks(Ds(e,t));Ns(e,t,_s((vs(e,t)?1:0)|(ws(e,t)?2:0)|(Cs(e,t)?4:0),n,r))}}}(e)}function Us(e,t){return null!==e}function zs(e,t,n,r){let i,l=r&&r(t)?4:0;return n?(l|=2,i=Ks(e[4],t)):i=Ks(e[3],t),_s(l,i=i>0?i+1:0,0)}function Gs(e,t,n){const r=Ss(e,t);return!r||Ws(t,r,n)}function Ws(e,t,n){return!(2&e)&&t&&n&&4&e?t.toString()!==n.toString():t!==n}class $s{constructor(e,t,n){this._element=t,this._type=n,this._values={},this._dirty=!1,this._factory=e}setValue(e,t){this._values[e]!==t&&(this._values[e]=t,this._dirty=!0)}buildPlayer(e,t){if(this._dirty){const n=this._factory.fn(this._element,this._type,this._values,t,e||null);return this._values={},this._dirty=!1,n}}}function qs(e,t){return 65535&e[t+3]}function Ks(e,t){for(let n=2;n<e.length;n+=3)if(e[n]===t)return n;return-1}function Ys(e,t){const n=e[2];return n[2*t+1]||n[1]||null}function Qs(e,t,n,r){return null==e||(null!=t?r<=n:n===r)}function Zs(e){const t=e[4];let n=t[1];if(null===n){n="";for(let e=2;e<t.length;e+=3)t[e+1]&&(n+=(n.length?" ":"")+t[e]);t[1]=n}return n}function Xs(e,t,n){return e[t?6:7][1+4*n+2]||null}function Js(e,t,n,r){return!e[t?6:7][1+4*n+0]&&(r===ts||Xs(e,t,n)===r)}function eo(e){return e.replace(/[a-z][A-Z]/g,e=>`${e.charAt(0)}-${e.charAt(1).toLowerCase()}`)}function to(e,t,n,r,i=0){const l=e[n?6:7];if(t>0){const e=1+4*t;for(;l.length<e;)l.push(0,r,null,0)}l.push(0,r,null,i)}function no(e,t,n,r,i){return null===e&&(e=t.length,t.push(null,null,null),t[e+0]=n),t[e+1]=r,t[e+2]=i,e}const ro="ng-template";function io(e,t){const n=e.length,r=e.indexOf(t),i=r+t.length;return!(-1===r||r>0&&" "!==e[r-1]||i<n&&" "!==e[i])}function lo(e,t,n){return t===(0!==e.type||n?e.tagName:ro)}function so(e,t,n){let r=4;const i=e.attrs||[],l=function(e){for(let t=0;t<e.length;t++)if(Ci(e[t]))return t;return e.length}(i);let s=!1;for(let o=0;o<t.length;o++){const a=t[o];if("number"!=typeof a){if(!s)if(4&r){if(r=2|1&r,""!==a&&!lo(e,a,n)||""===a&&1===t.length){if(oo(r))return!1;s=!0}}else{const u=8&r?a:t[++o];if(8&r&&e.stylingTemplate){if(!io(ao(e),u)){if(oo(r))return!1;s=!0}continue}const c=uo(8&r?"class":a,i,0==e.type&&e.tagName!==ro,n);if(-1===c){if(oo(r))return!1;s=!0;continue}if(""!==u){let e;e=c>l?"":i[c+1];const t=8&r?e:null;if(t&&!io(t,u)||2&r&&u!==e){if(oo(r))return!1;s=!0}}}}else{if(!s&&!oo(r)&&!oo(a))return!1;if(s&&oo(a))continue;s=!1,r=a|1&r}}return oo(r)||s}function oo(e){return 0==(1&e)}function ao(e){return e.stylingTemplate?Zs(e.stylingTemplate):""}function uo(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let n=!1;for(;i<t.length;){const r=t[i];if(r===e)return i;if(3===r)n=!0;else{if(1===r){let e=t[++i];for(;"string"==typeof e;)e=t[++i];continue}if(4===r)break;if(0===r){i+=4;continue}}i+=n?1:2}return-1}return function(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){if(e[n]===t)return n;n++}return-1}(t,e)}function co(e,t,n=!1){for(let r=0;r<t.length;r++)if(so(e,t[r],n))return!0;return!1}function ho(e,t){e:for(let n=0;n<t.length;n++){const r=t[n];if(e.length===r.length){for(let t=0;t<e.length;t++)if(e[t]!==r[t])continue e;return!0}}return!1}const fo=(()=>Promise.resolve(null))();function po(e){const t=e[un],n=Tr(e);if(t.firstTemplatePass=!1,e[mn]=t.bindingStartIndex,!n){const n=Pr();tr(e,t,n,void 0),function(e){for(let t=e[_n];null!==t;t=t[hn])if(t.length<An&&-1===t[Tn]){const e=t;for(let t=0;t<e[Rn].length;t++){const n=e[Rn][t];wo(n,n[un],n[yn])}}}(e),mo(t,e),qn(e),nr(e,t.contentHooks,t.contentCheckHooks,n,1,void 0),function(e,t){const n=Gr();try{if(e.expandoInstructions){let n=t[mn]=e.expandoStartIndex;Fr(n);let r=-1,i=-1;for(let l=0;l<e.expandoInstructions.length;l++){const s=e.expandoInstructions[l];if("number"==typeof s){if(s<=0){wr(i=-s);const t=e.expandoInstructions[++l];r=n+=Qn+t}else n+=s;Fr(n)}else null!==s&&(t[mn]=n,s(2,On(t[r]),i),Cr()),r++}}}finally{wr(n)}}(t,e)}n&&t.staticContentQueries&&mo(t,e),function(e){if(null!=e)for(let t=0;t<e.length;t++)Go(e[t])}(t.components)}function mo(e,t){if(null!=e.contentQueries){Br(0);for(let n=0;n<e.contentQueries.length;n++){const r=e.contentQueries[n];e.data[r].contentQueries(2,t[r],r)}}}function go(e,t){const n=t||hr()[wn],r=$r;return Zr(n)?n.createElement(e,r):null===r?n.createElement(e):n.createElementNS(r,e)}function yo(e,t,n,r,i,l,s,o,a,u){const c=t.blueprint.slice();return c[an]=i,c[cn]=140|r,qn(c),c[dn]=c[xn]=e,c[yn]=n,c[vn]=s||e&&e[vn],c[wn]=o||e&&e[wn],c[Cn]=a||e&&e[Cn]||null,c[bn]=u||e&&e[bn]||null,c[pn]=l,c}function bo(e,t,n,r,i){const l=hr(),s=l[un],o=e+An;l[o]=n;const a=kr(),u=Ar();let c=s.data[o];if(null==c){const e=u?a:a&&a.parent;c=s.data[o]=Mo(e&&e!==l[pn]?e:null,t,o,r,i)}return a&&(!u||null!=a.child||null===c.parent&&2!==a.type?u||(a.next=c):a.child=c),null==s.firstChild&&(s.firstChild=c),xr(c),Er(!0),c}function vo(e,t,n,r){let i=e.node;return null==i&&(e.node=i=Mo(t,2,n,null,null)),r[pn]=i}function wo(e,t,n){const r=Ar(),i=kr();let l;if(512&e[cn])Ko(Ei(e));else try{Er(!0),xr(null),l=Lr(e,e[pn]),qn(e),_o(t.template,So(e),n),e[un].firstTemplatePass=!1,po(e)}finally{Ur(l),Er(r),xr(i)}}function Co(e,t,n){const r=e[vn],i=Lr(e,e[pn]),l=!Pr(),s=Tr(e);try{l&&!s&&r.begin&&r.begin(),s&&(n&&_o(n,1,t),po(e),e[cn]&=-5),qn(e),n&&_o(n,2,t),po(e)}finally{l&&!s&&r.end&&r.end(),Ur(i)}}function _o(e,t,n){Yr();const r=Gr();try{wr(null),e(t,n)}finally{Wr(r)}}function So(e){return Tr(e)?1:2}function ko(e,t,n,r){if(e.firstTemplatePass&&!t.stylingTemplate){const e=wi(n,r);e>=0&&(t.stylingTemplate=ls(n,e))}}function xo(e,t,n){if(function(e){return 0!=(4&e.flags)}(t)){const r=t.directiveEnd;for(let i=t.directiveStart;i<r;i++){const t=e.data[i];t.contentQueries&&t.contentQueries(1,n[i],i)}}}function Io(e,t,n,r=Vn){if(!or)return;const i=kr();e.firstTemplatePass&&function(e,t,n,r,i){const l=i?{"":-1}:null;if(n){Lo(r,e.data.length,n.length);for(let e=0;e<n.length;e++){const t=n[e];t.providersResolver&&t.providersResolver(t)}Do(e,r,n.length);const i=e.preOrderHooks&&e.preOrderHooks.length||0,s=e.preOrderCheckHooks&&e.preOrderCheckHooks.length||0,o=r.index-An;for(let r=0;r<n.length;r++){const a=n[r],u=e.data.length;Ho(e,t,a,a.factory),Bo(e.data.length-1,a,l),Jn(u,a,e,o,i,s)}}l&&function(e,t,n){if(t){const r=e.localNames=[];for(let e=0;e<t.length;e+=2){const i=n[t[e+1]];if(null==i)throw new Error(`Export of name '${t[e+1]}' not found!`);r.push(t[e],i)}}}(r,i,l)}(e,t,function(e,t,n){const r=e.directiveRegistry;let i=null;if(r)for(let l=0;l<r.length;l++){const e=r[l];co(n,e.selectors,!1)&&(i||(i=[]),Vi(Oi(kr(),t),t,e.type),Un(e)?(1&n.flags&&es(n),n.flags=1,i.unshift(e)):i.push(e))}return i}(e,t,i),i,n||null),function(e,t,n){const r=n.directiveStart,i=n.directiveEnd;!e.firstTemplatePass&&r<i&&Oi(n,t);for(let l=r;l<i;l++){const r=e.data[l];Un(r)&&Uo(t,n,r),Fo(t,zi(e.data,t,l,n),r,l)}}(e,t,i),function(e,t,n){const r=n.directiveStart,i=n.directiveEnd,l=e.expandoInstructions,s=e.firstTemplatePass,o=n.index-An,a=Gr();try{wr(o);for(let o=r;o<i;o++){const r=e.data[o],i=t[o];r.hostBindings?(No(r,l,i,n,s),Cr()):s&&l.push(null)}}finally{wr(a)}}(e,t,i),function(e,t,n){const r=t.localNames;if(r){let i=t.index+1;for(let l=0;l<r.length;l+=2){const s=r[l+1],o=-1===s?n(t,e):e[s];e[i++]=o}}}(t,i,r)}function Ao(e,t,n,r,i,l,s){return e.ngPrivateData||(e.ngPrivateData=Eo(-1,e,t,n,r,i,l,s))}function Eo(e,t,n,r,i,l,s,o){const a=An+n,u=a+r,c=function(e,t){const n=new Array(t).fill(null,0,e).fill(ts,e);return n[mn]=e,n}(a,u);return c[un]={id:e,blueprint:c,template:t,viewQuery:s,node:null,data:c.slice().fill(null,a),bindingStartIndex:a,viewQueryStartIndex:u,expandoStartIndex:u,expandoInstructions:null,firstTemplatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof i?i():i,pipeRegistry:"function"==typeof l?l():l,firstChild:null,schemas:o}}function To(e,t){const n=e.createRenderer(null,null);return"string"==typeof t?Zr(n)?n.selectRootElement(t):n.querySelector(t):t}function Mo(e,t,n,r,i){return{type:t,index:n,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,propertyMetadataStartIndex:-1,propertyMetadataEndIndex:-1,flags:0,providerIndexes:0,tagName:r,attrs:i,localNames:null,initialInputs:void 0,inputs:void 0,outputs:void 0,tViews:null,next:null,projectionNext:null,child:null,parent:e,stylingTemplate:null,projection:null,onElementCreationFns:null}}function Ro(e,t){const n=hr()[un];let r=null;const i=e.directiveStart,l=e.directiveEnd;if(l>i){const e=0===t,s=n.data;for(let t=i;t<l;t++){const n=s[t],i=e?n.inputs:n.outputs;for(let e in i)if(i.hasOwnProperty(e)){const n=i[e];(r=r||{}).hasOwnProperty(e)?r[e].push(t,e,n):r[e]=[t,e,n]}}}return r}const Po={class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"};function Oo(e,t,n,r,i,l){if(n===ts)return;const s=hr(),o=Fn(e,s),a=jn(e,s);let u,c;if(!i&&(u=ta(a))&&(c=u[t]))sa(s,c,n),Hn(a)&&function(t,n){const r=Ln(e+An,t);16&r[cn]||(r[cn]|=64)}(s);else if(3===a.type){!function(e,t,n,r,i){const l=t[mn]-1,s=r[l];s[0]==ln&&(r[l]=n+s,i||(-1==e.propertyMetadataStartIndex&&(e.propertyMetadataStartIndex=l),e.propertyMetadataEndIndex=l+1))}(a,s,t=Po[t]||t,s[un].data,i);const e=l?l(a,s):s[wn];n=null!=r?r(n,a.tagName||"",t):n,Zr(e)?e.setProperty(o,t,n):fi(t)||(o.setProperty?o.setProperty(t,n):o[t]=n)}}function No(e,t,n,r,i){const l=t.length;ur(e),e.hostBindings(1,n,r.index-An),ur(null),l===t.length&&i&&t.push(e.hostBindings)}function Do(e,t,n){const r=-(t.index-An),i=e.data.length-(65535&t.providerIndexes);(e.expandoInstructions||(e.expandoInstructions=[])).push(r,i,n)}function Fo(e,t,n,r){const i=kr();Vo(e,i,t),i&&i.attrs&&function(e,t,n,r){let l=i.initialInputs;(void 0===l||e>=l.length)&&(l=function(e,t,n){const r=n.initialInputs||(n.initialInputs=[]);r[e]=null;const i=n.attrs;let l=0;for(;l<i.length;){const n=i[l];if(0===n){l+=4;continue}if(5===n){l+=2;continue}if("number"==typeof n)break;const s=t[n],o=i[l+1];void 0!==s&&(r[e]||(r[e]=[])).push(n,s,o),l+=2}return r}(e,n.inputs,i));const s=l[e];if(s){const e=n.setInput;for(let r=0;r<s.length;){const i=s[r++],l=s[r++],o=s[r++];e?n.setInput(t,o,i,l):t[l]=o}}}(r,t,n),e[un].firstTemplatePass&&n.contentQueries&&(i.flags|=4),Un(n)&&(Ln(i.index,e)[yn]=t)}function Vo(e,t,n){const r=Vn(t,e);ni(n,e),r&&ni(r,e)}function jo(e){const t=hr()[un];(t.components||(t.components=[])).push(e.index)}function Bo(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;t.template&&(n[""]=e)}}function Lo(e,t,n){e.flags=1&e.flags,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Ho(e,t,n,r){e.data.push(n);const i=new Xn(r,Un(n),null);e.blueprint.push(i),t.push(i)}function Uo(e,t,n){const r=Vn(t,e),i=Wo(e,yo(e,Ao(n.template,n.consts,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas),null,n.onPush?64:16,e[t.index],t,e[vn],e[vn].createRenderer(r,n)));i[pn]=t,e[t.index]=i,e[un].firstTemplatePass&&jo(t)}function zo(e,t,n,r,i){return[e,!0,i?-1:0,t,null,null,r,n,[]]}function Go(e){const t=hr(),n=Ln(e,t);(128==(128&n[cn])||Tr(t))&&80&n[cn]&&(function(e){const t=e[un];for(let n=e.length;n<t.blueprint.length;n++)e[n]=t.blueprint[n]}(n),Zo(n,n[yn]))}function Wo(e,t){return e[_n]?e[Sn][hn]=t:e[_n]=t,e[Sn]=t,t}function $o(e){for(;e;){e[cn]|=64;const t=Ii(e);if(zn(e)&&!t)return e;e=t}return null}function qo(e,t){const n=0===e.flags;if(e.flags|=t,n&&e.clean==fo){let t;e.clean=new Promise(e=>t=e),e.scheduler(()=>{if(1&e.flags&&(e.flags&=-2,Ko(e)),2&e.flags){e.flags&=-3;const t=e.playerHandler;t&&t.flushPlayers()}e.clean=fo,t(null)})}}function Ko(e){for(let t=0;t<e.components.length;t++){const n=e.components[t];Co(Wn(n),n)}}function Yo(e,t){const n=e[vn];n.begin&&n.begin();try{Tr(e)&&Zo(e,t),Zo(e,t)}catch(r){throw la(e,r),r}finally{n.end&&n.end()}}function Qo(e){Ko(e[yn])}function Zo(e,t){const n=e[un],r=Lr(e,e[pn]),i=n.template,l=Tr(e);try{qn(e),l&&Xo(1,n,t),_o(i,So(e),t),po(e),l&&!n.staticViewQueries||Xo(2,n,t)}finally{Ur(r)}}function Xo(e,t,n){const r=t.viewQuery;r&&(Br(t.viewQueryStartIndex),r(e,n))}function Jo(e,t="",n=""){const r=e[un].data,i=e[mn]-1;return null==r[i]?r[i]=ln+t+ln+n:null}const ea=fo;function ta(e){return e?(void 0===e.inputs&&(e.inputs=Ro(e,0)),e.inputs):null}function na(e){return e[gn]||(e[gn]=[])}function ra(e){return e[un].cleanup||(e[un].cleanup=[])}function ia(e,t){return t[e.index][wn]}function la(e,t){const n=e[bn],r=n?n.get(Xi,null):null;r&&r.handleError(t)}function sa(e,t,n){const r=e[un];for(let i=0;i<t.length;){const l=t[i++],s=t[i++],o=t[i++],a=e[l],u=r.data[l];u.setInput?u.setInput(a,n,s,o):a[o]=n}}function oa(e){let t;if(t=e.onElementCreationFns){for(let e=0;e<t.length;e++)t[e]();e.onElementCreationFns=null}}function aa(e){const t=hr(),n=t[un];n.firstTemplatePass&&(function(e,t,n){const r=e.expandoInstructions,i=r.length;i>=2&&r[i-2]===t.hostBindings?r[i-1]=r[i-1]+n:r.push(t.hostBindings,n)}(n,ar,e),function(e,t,n){for(let r=0;r<n;r++)t.push(ts),e.blueprint.push(ts),e.data.push(null)}(n,t,e))}function ua(e){Yo(ti(e),e)}function ca(e){qo($o(ti(e))[yn],1)}function da(e,t){const n=t[dn];return-1===e.index?Dn(n)?n:null:n}function ha(e,t){const n=da(e,t);return n?Ia(t[wn],n[Mn]):null}const fa=[];function pa(e,t,n,r,i){const l=e[un].node;let s=-1,o=e,a=l.child;for(;a;){let e=null;if(3===a.type||4===a.type){ma(t,n,r,Vn(a,o),a,i);const l=o[a.index];Dn(l)&&(ma(t,n,r,l[Mn],a,i),l[Rn].length&&(e=(o=l[Rn][0])[un].node,i=l[Mn]))}else if(0===a.type){const l=o[a.index];ma(t,n,r,l[Mn],a,i),l[Rn].length&&(e=(o=l[Rn][0])[un].node,i=l[Mn])}else if(1===a.type){const l=Ai(o),u=l[pn].projection[a.projection];if(Array.isArray(u))for(let e of u)ma(t,n,r,e,a,i);else fa[++s]=a,fa[++s]=o,u&&(e=(o=l[dn])[un].data[u.index])}else e=a.child;if(null===e)for(null===a.projectionNext&&2&a.flags&&(o=fa[s--],a=fa[s--]),e=2&a.flags?a.projectionNext:4===a.type&&a.child||a.next;!e;){if(null===(a=a.parent||o[pn])||a===l)return;if(0===a.type&&(i=(o=Ii(o))[a.index][Mn]),2===a.type){for(;!o[hn]&&o[dn]&&(!a.parent||!a.parent.next);){if(a===l)return;if(Dn(o=o[dn])){a=o[pn],i=(o=o[dn])[a.index][Mn];break}a=o[pn]}e=o[hn]?(o=o[hn])[pn]:4===a.type&&a.child||a.next}else e=a.next}a=e}}function ma(e,t,n,r,i,l){0===e?ka(t,n,r,l||null):1===e?Ta(t,r,Hn(i)):2===e&&t.destroyNode(r)}function ga(e,t){return Zr(t)?t.createText(Xt(e)):t.createTextNode(Xt(e))}function ya(e,t,n){const r=ha(e[un].node,e);r&&pa(e,t?0:1,e[wn],r,n)}function ba(e,t,n){const r=t[Rn];n>0&&(r[n-1][hn]=e),n<r.length?(e[hn]=r[n],r.splice(n,0,e)):(r.push(e),e[hn]=null),e[dn]=t,e[fn]&&e[fn].insertView(n),e[cn]|=128}function va(e,t){const n=e[Rn],r=n[t];return r&&(t>0&&(n[t-1][hn]=r[hn]),n.splice(t,1),ya(r,!1),128&r[cn]&&!(256&r[cn])&&r[fn]&&r[fn].removeView(),r[dn]=null,r[hn]=null,r[cn]&=-129),r}function wa(e,t){const n=e[Rn][t];n&&(va(e,t),Ca(n))}function Ca(e){if(!(256&e[cn])){const t=e[wn];Zr(t)&&t.destroyNode&&pa(e,2,t,null),function(e){let t=e[_n];if(!t)return Sa(e);for(;t;){let n=null;if(Nn(t))n=t[_n];else{const e=t[Rn];e.length>0&&(n=e[0])}if(!n){for(;t&&!t[hn]&&t!==e;)Sa(t),t=_a(t,e);Sa(t||e),n=t&&t[hn]}t=n}}(e)}}function _a(e,t){let n;return Nn(e)&&(n=e[pn])&&2===n.type?da(n,e):e[dn]===t?null:e[dn]}function Sa(e){if(Nn(e)&&!(256&e[cn])){e[cn]&=-129,e[cn]|=256,function(e){const t=e[un];let n;if(null!=t&&null!=(n=t.destroyHooks))for(let r=0;r<n.length;r+=2){const t=e[n[r]];t instanceof Xn||n[r+1].call(t)}}(e),function(e){const t=e[un].cleanup;if(null!=t){const n=e[gn];for(let r=0;r<t.length-1;r+=2)if("string"==typeof t[r]){const i=t[r+1],l="function"==typeof i?i(e):On(e[i]),s=n[t[r+2]],o=t[r+3];"boolean"==typeof o?l.removeEventListener(t[r],s,o):o>=0?n[o]():n[-o].unsubscribe(),r+=2}else t[r].call(n[t[r+1]]);e[gn]=null}}(e);const t=e[pn];t&&3===t.type&&Zr(e[wn])&&e[wn].destroy(),$n(e)&&e[fn]&&e[fn].removeView()}}function ka(e,t,n,r){Zr(e)?e.insertBefore(t,n,r):t.insertBefore(n,r,!0)}function xa(e,t,n,r){r?ka(e,t,n,r):function(e,t,n){Zr(e)?e.appendChild(t,n):t.appendChild(n)}(e,t,n)}function Ia(e,t){return Zr(e)?e.parentNode(t):t.parentNode}function Aa(e,t,n){const r=function(e,t){if(zn(t))return Ia(t[wn],Vn(e,t));const n=function(e){for(;null!=e.parent&&(4===e.parent.type||5===e.parent.type);)e=e.parent;return e}(e).parent;if(null==n){const e=t[pn];return 2===e.type?ha(e,t):function(e){const t=e[pn];return t&&3===t.type?Vn(t,Ii(e)):null}(t)}if(1&n.flags){const e=t[un].data,r=e[e[n.index].directiveStart].encapsulation;if(r!==It.ShadowDom&&r!==It.Native)return null}return Vn(n,t)}(t,n);if(null!=r){const i=n[wn],l=function(e,t){if(2===e.type){const n=da(e,t),r=n[Rn];return Ea(r.indexOf(t),r,n[Mn])}return 4===e.type||5===e.type?Vn(e,t):null}(t.parent||n[pn],n);if(Array.isArray(e))for(let t of e)xa(i,r,t,l);else xa(i,r,e,l)}}function Ea(e,t,n){if(e+1<t.length){const r=t[e+1],i=r[pn];return i.child?Vn(i.child,r):n}return n}function Ta(e,t,n){const r=Ia(e,t);r&&function(e,t,n,r){Zr(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}function Ma(e,t,n,r){const i=Vn(e,r);Aa(i,t,n),ni(i,r);const l=r[e.index];if(0===e.type){const e=l[Rn];for(let t=0;t<e.length;t++)ya(e[t],!0,l[Mn])}else{if(4===e.type){let i=e.child;for(;i;)Ma(i,t,n,r),i=i.next}Dn(l)&&Aa(l[Mn],t,n)}}function Ra(e){const t=Fa(e,null,null),n=hr();n[un].firstTemplatePass&&(t.tViews=[]),Da(n,t),Er(!1)}function Pa(e,t,n,r,i,l,s,o){const a=hr(),u=a[un],c=Fa(e,i||null,l||null);u.firstTemplatePass&&(c.tViews=Eo(-1,t,n,r,u.directiveRegistry,u.pipeRegistry,null,null)),Io(u,a,s,o),Da(a,c),ni(Vn(c,a),a),er(u,c),Er(!1)}function Oa(e){const t=hr(),n=t[un];xr(Bn(n.data,e)),Er(!0),t[e+An][Tn]=0,tr(t,n,Pr(),void 0)}function Na(){let e=kr();Ar()?Er(!1):xr(e=e.parent);const t=hr()[e.index],n=t[Tn];for(;n<t[Rn].length;)wa(t,n)}function Da(e,t){const n=e[fn];if(n){const r=e[t.index];r[fn]?n.insertNodeBeforeViews(t):(n.addNode(t),r[fn]=n.container())}}function Fa(e,t,n){const r=hr(),i=e+An,l=r[wn].createComment(""),s=bo(e,0,l,t,n),o=r[i]=zo(r[i],r,l,s);return Aa(l,s,r),Wo(r,o),s}function Va(e,t){const n=hr(),r=n[un],i=e+An;i>=r.data.length&&(r.data[i]=null,r.blueprint[i]=null),n[i]=t}function ja(e){return Bn(Mr,e)}function Ba(e){return Bn(hr(),e)}function La(e,t=C.Default){e=N(e);const n=hr();return null==n?z(e,t):Bi(kr(),n,e,t)}function Ha(e){return ji(kr(),e)}function Ua(e,t,n){const r=kr();r.stylingTemplate||(r.stylingTemplate=ci()),Ga(r,e,t,n,ai)}function za(e,t,n){const r=kr();r.stylingTemplate||(r.stylingTemplate=ci());const i=nu();di(r.stylingTemplate,i),(r.onElementCreationFns=r.onElementCreationFns||[]).push(()=>{Ga(r,e,t,n,i),function(e,t){let n=e[8];n||(n=e[8]=[ai]),n[0]=t}(r.stylingTemplate,i)})}function Ga(e,t,n,r,i){!function(e,t,n,r,i){if(16&e[1])return;if(!function(e,t,n,r){const i=e[2],l=2*t;return!(l<i.length&&i[l+0]>=0||(di(e,t,e[5].length,r),0))}(e,t,0,i))return;r&&(r=function(e){const t=[];for(let n=0;n<e.length;n++)t.push(eo(e[n]));return t}(r));const l=e[5],s=l[1],o=l[0],a=e[6],u=e[7],c=4*o;let d=10+c,h=d+4*s,f=h+c;const p=l.length;l.push(r?r.length:0,n?n.length:0);let m=0;const g=[];if(r&&r.length)for(let I=0;I<r.length;I++){const t=r[I];let n=cs(e,t,10,d);-1==n&&(n=d+m,m+=4,g.push(t)),l.push(n)}const y=[];if(n&&n.length)for(let I=0;I<n.length;I++){const t=n[I];let r=cs(e,t,d,h);-1==r?(r=h+m,m+=4,y.push(t)):r+=4*g.length,l.push(r)}let b=2;if(g.length)for(;b<p;){const e=l[b+0],t=l[b+1];if(t){const n=b+2+e;for(let e=n;e<n+t;e++)l[e]+=4*g.length}b+=2+(e+t)}const v=y.length+g.length;for(let I=10;I<e.length;I+=4){const t=I>=h,n=I>=(t?f:d),r=Ds(e,I),i=ks(r);let l=xs(r);Ns(e,I,_s(r,i,l+=t?n?4*g.length:0:4*v+4*(n?g.length:0)))}for(let I=0;I<4*g.length;I++)e.splice(f,0,null),e.splice(d,0,null),d++,h++,f+=2;for(let I=0;I<4*y.length;I++)e.splice(h,0,null),e.push(null),h++,f++;const w=e[4],C=e[3];for(let I=0;I<v;I++){const n=I>=g.length,r=n?I-g.length:I,l=n?y[r]:g[r];let a,u;n?(a=f+4*(s+r),u=d+4*(s+r)):(a=h+4*(o+r),u=10+4*(o+r));let c=n?w:C,p=Ks(c,l);-1===p?p=no(null,c,l,!n&&null,t)+1:p+=1;const m=zs(e,l,n,i||null);Ns(e,u,_s(m,p,a)),As(e,u,l),Es(e,u,null),Rs(e,u,0,t),Ns(e,a,_s(m,p,u)),As(e,a,l),Es(e,a,null),Rs(e,a,0,t)}l[1]=s+y.length,l[0]=o+g.length,a[0]+=y.length,u[0]+=g.length;const _=4*g.length,S=4*y.length,k=u.length;to(e,t,!1,h+4*o,g.length);for(let I=1;I<k;I+=4)u[I+1]+=S+_;const x=a.length;to(e,t,!0,f+4*s,y.length);for(let I=1;I<x;I+=4)a[I+1]+=2*_+S;Ns(e,1,_s(0,0,h))}(e.stylingTemplate,i,t,n,r)}function Wa(e,t,n,r,i){const l=qa(n,r);ps(ru(e,hr()),t,l,ai,i)}function $a(e,t,n,r){const i=nu(),l=ru(Gr(),hr());ns(l,i,ps,[l,e,qa(t,n),i,r])}function qa(e,t){let n=null;return null!==e&&(n=t?Xt(e)+t:e),n}function Ka(e,t,n,r){const i=n instanceof is?n:Qa(n);fs(ru(e,hr()),t,i,ai,r)}function Ya(e,t,n){const r=nu(),i=ru(Gr(),hr());ns(i,r,fs,[i,e,t instanceof is?t:Qa(t),r,n])}function Qa(e){return"boolean"==typeof e?e:!!e||null}function Za(e,t,n){const r=hr(),i=ru(e,r),l=jn(e,r);if(pi(l)&&t!==ts){const e=Zs(i),n=(e.length?e+" ":"")+function(e){return e&&"string"!=typeof e&&(e=Object.keys(e).join(" ")),e||""}(t);sa(r,l.inputs.class,n),t=ts}if(mi(l)&&n!==ts){const e=Zs(i),t=(e.length?e+" ":"")+function(e){let t="";if(e){const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=n[r];t+=(r?";":"")+`${i}:${e[i]}`}}return t}(n);sa(r,l.inputs.style,t),n=ts}ds(i,t,n)}function Xa(e,t){const n=nu(),r=ru(Gr(),hr());ns(r,n,ds,[r,e,t,n])}function Ja(e){tu(ai,e)}function eu(){tu(nu(),Gr())}function tu(e,t){const n=hr(),r=3===jn(t,n).type?n[wn]:null,i=0!=(8&n[cn]);(function(e,t,n,r,i,l,s=0){let o=0;if(function(e,t){const n=e[8];return!n||n[0]===t}(e,s)&&(function(e){const t=e[8];if(t){for(let e=1;e<t.length;e+=3)t[e+1].apply(this,t[e+2]);t.length=1}}(e),function(e){return vs(e,1)}(e))){const i=e[0],l=8&e[1],s=Is(e);for(let n=10;n<e.length;n+=4)if(vs(e,n)){const l=Ds(e,n),o=qs(e,n),a=Vs(e,n),u=Fs(e,n),c=4&l?Ys(e,o):null,d=Os(e,n),h=!!(2&l);let f=u;n<s&&!Us(f)&&(f=Fs(e,xs(l))),Us(f)||(f=Ss(e,l)),t&&(!r||f)&&(h?ys(i,a,!!f,t,null,d):gs(i,a,f,t,c,null,d)),bs(e,n,!1)}if(l){const t=Array.isArray(n)?Ei(n):n,l=yi(e),s=l[0];for(let e=1;e<s;e+=2){const n=l[e],s=e+1,a=l[s];if(n){const e=n.buildPlayer(a,r);void 0!==e&&(null!=e&&gi(l,t,i,e,s)&&o++,a&&a.destroy())}else a&&a.destroy()}Bs(e,!1)}js(e,!1)}return o})(ru(t,n),r,n,i,0,0,e)>0&&qo(Ei(n),2),sr(null)}function nu(){return yr+br}function ru(e,t){let n=lr;return n||sr(n=hi(e+An,t)),n}function iu(e,t,n,r){const i=hr(),l=i[un],s=go(t),o=i[wn],a=bo(e,3,s,t,n||null);let u=0,c=0;if(n&&(ko(l,a,n,vi(s,n)),a.stylingTemplate&&(u=us(s,a.stylingTemplate,o),c=as(s,a.stylingTemplate,o))),Aa(s,a,i),Io(l,i,r),0===ir&&ni(s,i),ir++,l.firstTemplatePass){const e=ta(a);e&&e.hasOwnProperty("class")&&(a.flags|=8),e&&e.hasOwnProperty("style")&&(a.flags|=16)}a.stylingTemplate&&(as(s,a.stylingTemplate,o,c),us(s,a.stylingTemplate,o,u));const d=i[fn];d&&(d.addNode(a),i[fn]=d.clone()),xo(l,a,i)}function lu(){let e=kr();Ar()?Er(!1):xr(e=e.parent),e.onElementCreationFns&&oa(e);const t=hr(),n=t[fn];n&&(t[fn]=n.parent),er(hr()[un],e),ir--;let r=null;pi(e)&&(r=hi(e.index,t),sa(t,e.inputs.class,Zs(r))),mi(e)&&(r=r||hi(e.index,t),sa(t,e.inputs.style,function(e){const t=r[3];let n=t[1];if(null===n){n="";for(let e=2;e<t.length;e+=3){const r=t[e+1];null!==r&&(n+=(n.length?";":"")+`${t[e]}:${r}`)}t[1]=n}return n}()))}function su(e,t,n,r){iu(e,t,n,r),lu()}function ou(e,t,n,r,i){if(n!==ts){const l=hr(),s=l[wn],o=Fn(e,l);if(null==n)Zr(s)?s.removeAttribute(o,t,i):o.removeAttribute(t);else{const a=jn(e,l),u=null==r?Xt(n):r(n,a.tagName||"",t);Zr(s)?s.setAttribute(o,t,u,i):i?o.setAttributeNS(i,t,u):o.setAttribute(t,u)}}}function au(e){const t=Gr(),n=hr(),r=jn(t,n);if(3===r.type){const t=wi(e,vi(Vn(r,n),e));if(t>=0){const n=nu();r.stylingTemplate?ss(r.stylingTemplate,e,t,n):r.stylingTemplate=ls(e,t,n)}}}function uu(e,t,n){const r=hr(),i=r[un],l=r[wn].createComment(""),s=bo(e,4,l,"ng-container",t||null);t&&ko(i,s,t,0),Aa(l,s,r),Io(i,r,n),ni(l,r);const o=r[fn];o&&(o.addNode(s),r[fn]=o.clone()),xo(i,s,r)}function cu(){let e=kr();const t=hr(),n=t[un];Ar()?Er(!1):xr(e=e.parent);const r=t[fn];r&&(t[fn]=r.parent),e.onElementCreationFns&&oa(e),er(n,e)}function du(e,t,n){const r=hr(),i=kr(),l=2===i.type?i.parent:i,s=r[l.index];let o=function(e,t,n){const r=e[Rn];for(let i=t;i<r.length;i++){const t=r[i][un].id;if(t===n)return r[i];if(!(t<n))break;wa(e,i)}return null}(s,s[Tn],e);if(o)Er(!0),Lr(o,o[un].node);else{o=yo(r,function(e,t,n,r){const i=hr()[un],l=r.tViews;return(e>=l.length||null==l[e])&&(l[e]=Eo(e,null,t,n,i.directiveRegistry,i.pipeRegistry,null,null)),l[e]}(e,t,n,l),null,16,null,null),s[fn]&&(o[fn]=s[fn].createView());const a=Ar()?i:i&&i.parent;vo(o[un],a,e,o),Lr(o,o[un].node)}return s&&(Tr(o)&&ba(o,s,s[Tn]),s[Tn]++),Tr(o)?3:2}function hu(){const e=hr(),t=e[pn];Tr(e)&&(po(e),e[cn]&=-5),qn(e),po(e),Ur(e[dn][dn]),xr(t),Er(!1)}function fu(){return hr()}function pu(e){return!!e&&"function"==typeof e.then}function mu(e){return!!e&&"function"==typeof e.subscribe}function gu(e,t,n=!1,r){bu(e,t,n,r)}function yu(e,t,n=!1,r){bu(e,t,n,r,ia)}function bu(e,t,n=!1,r,i){const l=hr(),s=kr(),o=l[un],a=o.firstTemplatePass&&(o.cleanup||(o.cleanup=[]));let u=!0;if(3===s.type){const o=Vn(s,l),c=r?r(o):{},d=c.target||o,h=i?i(s,l):l[wn],f=na(l),p=f.length,m=r?e=>r(On(e[s.index])).target:s.index;if(Zr(h)){let n=null;if(!r&&function(e){return e.directiveEnd>e.directiveStart}(s)&&(n=function(e,t,n){const r=e[un].cleanup;if(null!=r)for(let i=0;i<r.length-1;i+=2){const l=r[i];if(l===t&&r[i+1]===n){const t=e[gn],n=r[i+2];return t.length>n?t[n]:null}"string"==typeof l&&(i+=2)}return null}(l,e,s.index)),null!==n)t.__ngNextListenerFn__=n.__ngNextListenerFn__,n.__ngNextListenerFn__=t,u=!1;else{t=wu(s,l,t,!1);const n=h.listen(c.name||d,e,t);f.push(t,n),a&&a.push(e,m,p,p+1)}}else t=wu(s,l,t,!0),d.addEventListener(e,t,n),f.push(t),a&&a.push(e,m,p,n)}void 0===s.outputs&&(s.outputs=Ro(s,1));const c=s.outputs;let d;if(u&&c&&(d=c[e])){const n=d.length;if(n){const r=na(l);for(let i=0;i<n;i+=3){const n=l[d[i]][d[i+2]].subscribe(t),o=r.length;r.push(t,n),a&&a.push(e,s.index,o,-(o+1))}}}}function vu(e,t,n){try{return!1!==t(n)}catch(r){return la(e,r),!1}}function wu(e,t,n,r){return function i(l){const s=1&e.flags?Ln(e.index,t):t;0==(32&t[cn])&&$o(s);let o=vu(t,n,l),a=i.__ngNextListenerFn__;for(;a;)o=vu(t,a,l)&&o,a=a.__ngNextListenerFn__;return r&&!1===o&&(l.preventDefault(),l.returnValue=!1),o}}function Cu(e=1){return Hr(e)}function _u(e,t){let n=null;const r=function(e){const t=e.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(e);for(let i=0;i<t.length;i++){const l=t[i];if("*"!==l){if(null===r?co(e,l,!0):ho(r,l))return i}else n=i}return n}function Su(e){const t=Ai(hr())[pn];if(!t.projection){const n=t.projection=new Array(e?e.length:1).fill(null),r=n.slice();let i=t.child;for(;null!==i;){const t=e?_u(i,e):0;null!==t&&(r[t]?r[t].projectionNext=i:n[t]=i,r[t]=i),i=i.next}}}function ku(e,t=0,n){const r=hr(),i=bo(e,1,null,null,n||null);null===i.projection&&(i.projection=t),Er(!1),function e(t,n,r,i){const l=i[dn];let s=i[pn].projection[r];if(Array.isArray(s))Aa(s,n,t);else for(;s;)1===s.type?e(t,n,s.projection,Ai(l)):(s.flags|=2,Ma(s,n,t,l)),s=s.projectionNext}(r,i,t,Ai(r))}let xu=null;function Iu(){if(!xu){const e=F.Symbol;if(e&&e.iterator)xu=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const n=e[t];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(xu=n)}}}return xu}function Au(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function Eu(e,t){const n=Mu(e),r=Mu(t);if(n&&r)return function(e,t,n){const r=e[Iu()](),i=t[Iu()]();for(;;){const e=r.next(),t=i.next();if(e.done&&t.done)return!0;if(e.done||t.done)return!1;if(!n(e.value,t.value))return!1}}(e,t,Eu);{const i=e&&("object"==typeof e||"function"==typeof e),l=t&&("object"==typeof t||"function"==typeof t);return!(n||!i||r||!l)||Au(e,t)}}class Tu{constructor(e){this.wrapped=e}static wrap(e){return new Tu(e)}static unwrap(e){return Tu.isWrapped(e)?e.wrapped:e}static isWrapped(e){return e instanceof Tu}}function Mu(e){return!!Ru(e)&&(Array.isArray(e)||!(e instanceof Map)&&Iu()in e)}function Ru(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Pu(e,t,n){return e[t]=n}function Ou(e,t){return e[t]}function Nu(e,t,n){return i=n,((r=e[t])==r||i==i)&&r!==i&&(e[t]=n,!0);var r,i}function Du(e,t,n,r){const i=Nu(e,t,n);return Nu(e,t+1,r)||i}function Fu(e,t,n,r,i){const l=Du(e,t,n,r);return Nu(e,t+2,i)||l}function Vu(e,t,n,r,i,l){const s=Du(e,t,n,r);return Du(e,t+2,i,l)||s}function ju(e,t,n,r){return Oo(Gr(),e,Bu(t),n,r),ju}function Bu(e){const t=hr(),n=t[mn]++;return Jo(t),Nu(t,n,e)?e:ts}function Lu(e,t,n,r,i){Oo(e,t,n,r,i)}function Hu(e,t,n,r,i){Oo(e,t,n,r,i,ia)}function Uu(e){let t=!1;const n=hr(),r=n[un].data;let i=n[mn];if(null==r[i]){for(let t=2;t<e.length;t+=2)r[i++]=e[t];i=n[mn]}for(let s=1;s<e.length;s+=2)Nu(n,i++,e[s])&&(t=!0);if(n[mn]=i,Jo(n,e[0],e[e.length-1]),!t)return ts;let l=e[0];for(let s=1;s<e.length;s+=2)l+=Xt(e[s])+e[s+1];return l}function zu(e,t,n){const r=hr(),i=Nu(r,r[mn]++,t);return Jo(r,e,n),i?e+Xt(t)+n:ts}function Gu(e,t,n,r,i){const l=hr(),s=l[mn],o=Du(l,s,t,r);return l[mn]+=2,Jo(l,e,i)&&(l[un].data[s]=n),o?e+Xt(t)+n+Xt(r)+i:ts}function Wu(e,t,n,r,i,l,s){const o=hr(),a=o[mn],u=Fu(o,a,t,r,l);if(o[mn]+=3,Jo(o,e,s)){const e=o[un].data;e[a]=n,e[a+1]=i}return u?e+Xt(t)+n+Xt(r)+i+Xt(l)+s:ts}function $u(e,t,n,r,i,l,s,o,a){const u=hr(),c=u[mn],d=Vu(u,c,t,r,l,o);if(u[mn]+=4,Jo(u,e,a)){const e=u[un].data;e[c]=n,e[c+1]=i,e[c+2]=s}return d?e+Xt(t)+n+Xt(r)+i+Xt(l)+s+Xt(o)+a:ts}function qu(e,t,n,r,i,l,s,o,a,u,c){const d=hr(),h=d[mn];let f=Vu(d,h,t,r,l,o);if(f=Nu(d,h+4,u)||f,d[mn]+=5,Jo(d,e,c)){const e=d[un].data;e[h]=n,e[h+1]=i,e[h+2]=s,e[h+3]=a}return f?e+Xt(t)+n+Xt(r)+i+Xt(l)+s+Xt(o)+a+Xt(u)+c:ts}function Ku(e,t,n,r,i,l,s,o,a,u,c,d,h){const f=hr(),p=f[mn];let m=Vu(f,p,t,r,l,o);if(m=Du(f,p+4,u,d)||m,f[mn]+=6,Jo(f,e,h)){const e=f[un].data;e[p]=n,e[p+1]=i,e[p+2]=s,e[p+3]=a,e[p+4]=c}return m?e+Xt(t)+n+Xt(r)+i+Xt(l)+s+Xt(o)+a+Xt(u)+c+Xt(d)+h:ts}function Yu(e,t,n,r,i,l,s,o,a,u,c,d,h,f,p){const m=hr(),g=m[mn];let y=Vu(m,g,t,r,l,o);if(y=Fu(m,g+4,u,d,f)||y,m[mn]+=7,Jo(m,e,p)){const e=m[un].data;e[g]=n,e[g+1]=i,e[g+2]=s,e[g+3]=a,e[g+4]=c,e[g+5]=h}return y?e+Xt(t)+n+Xt(r)+i+Xt(l)+s+Xt(o)+a+Xt(u)+c+Xt(d)+h+Xt(f)+p:ts}function Qu(e,t,n,r,i,l,s,o,a,u,c,d,h,f,p,m,g){const y=hr(),b=y[mn];let v=Vu(y,b,t,r,l,o);if(v=Vu(y,b+4,u,d,f,m)||v,y[mn]+=8,Jo(y,e,g)){const e=y[un].data;e[b]=n,e[b+1]=i,e[b+2]=s,e[b+3]=a,e[b+4]=c,e[b+5]=h,e[b+6]=p}return v?e+Xt(t)+n+Xt(r)+i+Xt(l)+s+Xt(o)+a+Xt(u)+c+Xt(d)+h+Xt(f)+p+Xt(m)+g:ts}function Zu(e,t,n){return Xu(e,"",t,"",n),Zu}function Xu(e,t,n,r,i){return Oo(Gr(),e,zu(t,n,r),i),Xu}function Ju(e,t,n,r,i,l,s){return Oo(Gr(),e,Gu(t,n,r,i,l),s),Ju}function ec(e,t,n,r,i,l,s,o,a){return Oo(Gr(),e,Wu(t,n,r,i,l,s,o),a),ec}function tc(e,t,n,r,i,l,s,o,a,u,c){return Oo(Gr(),e,$u(t,n,r,i,l,s,o,a,u),c),tc}function nc(e,t,n,r,i,l,s,o,a,u,c,d,h){return Oo(Gr(),e,qu(t,n,r,i,l,s,o,a,u,c,d),h),nc}function rc(e,t,n,r,i,l,s,o,a,u,c,d,h,f,p){return Oo(Gr(),e,Ku(t,n,r,i,l,s,o,a,u,c,d,h,f),p),rc}function ic(e,t,n,r,i,l,s,o,a,u,c,d,h,f,p,m,g){return Oo(Gr(),e,Yu(t,n,r,i,l,s,o,a,u,c,d,h,f,p,m),g),ic}function lc(e,t,n,r,i,l,s,o,a,u,c,d,h,f,p,m,g,y,b){return Oo(Gr(),e,Qu(t,n,r,i,l,s,o,a,u,c,d,h,f,p,m,g,y),b),lc}function sc(e,t,n){return Oo(Gr(),e,Uu(t),n),sc}function oc(e){const t=hr();tr(t,t[un],Pr(),e),Wr(e)}function ac(e,t){const n=hr(),r=ga(t,n[wn]),i=bo(e,3,r,null,null);Er(!1),Aa(r,i,n)}function uc(e,t){if(t!==ts){const n=hr(),r=Fn(e,n),i=n[wn];Zr(i)?i.setValue(r,Xt(t)):r.textContent=Xt(t)}}function cc(e,t){const n=Jr(e);if(!n)return;const r=n.native,i=n.lView,l=function(e,t){if(!(t=t||Jr(r)))return null;const{lView:n,nodeIndex:i}=t,l=hi(i,n);return yi(l)||bi(l)}(0,n),s=Ei(i);gi(l,s,r,t,0,e),qo(s,2)}function dc(e){const t=Jr(e);if(!t)return[];const n=hi(t.nodeIndex,t.lView),r=n?yi(n):null;return r?function(e){const t=[],n=e[0];for(let r=2;r<n;r+=2){const n=e[r];n&&t.push(n)}for(let r=n;r<e.length;r++)t.push(e[r]);return t}(r):[]}function hc(e){const t=wc(e);return void 0===t.component&&(t.component=function(e,n){const r=n[un].data[t.nodeIndex];return 1&r.flags?n[r.directiveStart]:null}(0,t.lView)),t.component}function fc(e){return wc(e).lView[yn]}function pc(e){let t,n=bc(e).lView;for(;null===n[an]&&(t=Ii(n));)n=t;return 512&n[cn]?null:n[yn]}function mc(e){return[...Ei(e).components]}function gc(e){const t=bc(e);return new $i(t.lView[un].data[t.nodeIndex],t.lView)}function yc(e){const t=bc(e);return void 0===t.directives&&(t.directives=si(t.nodeIndex,t.lView,!1)),t.directives||[]}function bc(e,t=!0){const n=Jr(e);if(!n&&t)throw new Error("Invalid ng target");return n}function vc(e){return Jr(e).native}function wc(e){if(!(e instanceof Node))throw new Error("Expecting instance of DOM Node");return bc(e)}function Cc(e){return"boolean"==typeof e.useCapture}function _c(e){const t=wc(e).lView,n=t[gn],r=t[un].cleanup,i=[];if(r&&n)for(let l=0;l<r.length;){const s=r[l++],o=r[l++];if("string"==typeof s){const a=s,u=On(t[o]),c=n[r[l++]],d=r[l++],h="boolean"==typeof d?d:!(d>=0)&&null;e==u&&i.push({element:e,name:a,callback:c,useCapture:h})}}return i.sort(Sc),i}function Sc(e,t){return e.name==t.name?0:e.name<t.name?-1:1}const kc="ng";let xc=!1;function Ic(){xc||(xc=!0,Ac("getComponent",hc),Ac("getContext",fc),Ac("getListeners",_c),Ac("getViewComponent",pc),Ac("getHostElement",vc),Ac("getInjector",gc),Ac("getRootComponents",mc),Ac("getDirectives",yc),Ac("getPlayers",dc),Ac("markDirty",ca))}function Ac(e,t){if(F){let n=F[kc];n||(n=F[kc]={}),n[e]=t}}function Ec(e,t={}){const n=t.rendererFactory||Xr,r=t.sanitizer||null,i=qt(e);i.type!=e&&(i.type=e);const l=To(n,t.host||i.selectors[0][0]),s=i.onPush?576:528,o=Rc(t.scheduler,t.playerHandler),a=n.createRenderer(l,i),u=yo(null,Eo(-1,null,1,0,null,null,null,null),o,s,null,null,n,a,void 0,t.injector||null),c=Lr(u,null);let d;try{n.begin&&n.begin();const e=Tc(l,i,u,n,a,r);d=Mc(e,i,u,o,t.hostFeatures||null),Wo(u,e),po(u),u[cn]&=-5,qn(u),po(u)}finally{Ur(c),n.end&&n.end()}return d}function Tc(e,t,n,r,i,l){mr=!1,pr=null,ir=0,or=!0;const s=n[un],o=bo(0,3,e,null,null),a=yo(n,Ao(t.template,t.consts,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas),null,t.onPush?64:16,n[An],o,r,i,l);return s.firstTemplatePass&&(Vi(Oi(o,n),n,t.type),o.flags=1,Lo(o,n.length,1),jo(o)),n[An]=a}function Mc(e,t,n,r,i){const l=n[un],s=function(e,t,n){const r=kr();e.firstTemplatePass&&(n.providersResolver&&n.providersResolver(n),Do(e,r,1),Ho(e,t,n,n.factory));const i=zi(e.data,t,t.length-1,r);return Vo(t,r,i),i}(l,n,t);r.components.push(s),e[yn]=s,i&&i.forEach(e=>e(s,t)),t.contentQueries&&t.contentQueries(1,s,n.length-1);const o=kr();if(l.firstTemplatePass&&t.hostBindings&&(wr(o.index-An),No(t,l.expandoInstructions,s,o,l.firstTemplatePass),o.onElementCreationFns&&oa(o),wr(null)),o.stylingTemplate){const t=e[an];as(t,o.stylingTemplate,e[wn]),us(t,o.stylingTemplate,e[wn])}return s}function Rc(e,t){return{components:[],scheduler:e||en,clean:ea,playerHandler:t||null,flags:0}}function Pc(e,t){const n=Wn(e)[un],r=n.data.length-1;Jn(r,t,n,-1,-1,-1),er(n,{directiveStart:r,directiveEnd:r+1})}function Oc(e){return Ei(e).clean}class Nc{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function Dc(){return Fc.ngInherit=!0,Fc}function Fc(e){e.type.prototype.ngOnChanges&&(e.setInput=Vc,e.onChanges=function(){const e=Bc(this),t=e&&e.current;if(t){const n=e.previous;if(n===Et)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}})}function Vc(e,t,n,r){const i=Bc(e)||function(e,t){return e[jc]={previous:Et,current:null}}(e),l=i.current||(i.current={}),s=i.previous,o=this.declaredInputs[n],a=s[o];l[o]=new Nc(a&&a.currentValue,t,s===Et),e[r]=t}const jc="__ngSimpleChanges__";function Bc(e){return e[jc]||null}function Lc(e){let t=Object.getPrototypeOf(e.type.prototype).constructor;for(;t;){let n=void 0;if(Un(e))n=t.ngComponentDef||t.ngDirectiveDef;else{if(t.ngComponentDef)throw new Error("Directives cannot inherit Components");n=t.ngDirectiveDef}const r=t.ngBaseDef;if(r||n){const t=e;t.inputs=Hc(e.inputs),t.declaredInputs=Hc(e.declaredInputs),t.outputs=Hc(e.outputs)}if(r){const t=r.viewQuery,n=r.contentQueries;t&&Uc(e,t),n&&zc(e,n),S(e.inputs,r.inputs),S(e.declaredInputs,r.declaredInputs),S(e.outputs,r.outputs)}if(n){const t=e.hostBindings,r=n.hostBindings;r&&(e.hostBindings=t?(e,n,i)=>{_r(1);try{r(e,n,i)}finally{_r(-1)}t(e,n,i)}:r);const i=n.viewQuery,l=n.contentQueries;i&&Uc(e,i),l&&zc(e,l),S(e.inputs,n.inputs),S(e.declaredInputs,n.declaredInputs),S(e.outputs,n.outputs),e.afterContentChecked=e.afterContentChecked||n.afterContentChecked,e.afterContentInit=e.afterContentInit||n.afterContentInit,e.afterViewChecked=e.afterViewChecked||n.afterViewChecked,e.afterViewInit=e.afterViewInit||n.afterViewInit,e.doCheck=e.doCheck||n.doCheck,e.onDestroy=e.onDestroy||n.onDestroy,e.onInit=e.onInit||n.onInit;const s=n.features;if(s)for(const n of s)n&&n.ngInherit&&n(e)}else{const n=t.prototype;n&&(e.afterContentChecked=e.afterContentChecked||n.ngAfterContentChecked,e.afterContentInit=e.afterContentInit||n.ngAfterContentInit,e.afterViewChecked=e.afterViewChecked||n.ngAfterViewChecked,e.afterViewInit=e.afterViewInit||n.ngAfterViewInit,e.doCheck=e.doCheck||n.ngDoCheck,e.onDestroy=e.onDestroy||n.ngOnDestroy,e.onInit=e.onInit||n.ngOnInit,n.ngOnChanges&&Dc()(e))}t=Object.getPrototypeOf(t)}}function Hc(e){return e===Et?{}:e===Tt?[]:e}function Uc(e,t){const n=e.viewQuery;e.viewQuery=n?(e,r)=>{t(e,r),n(e,r)}:t}function zc(e,t){const n=e.contentQueries;e.contentQueries=n?(e,r,i)=>{t(e,r,i),n(e,r,i)}:t}const Gc=new ve("The presence of this token marks an injector as being the root injector."),Wc={},$c={},qc=[];let Kc=void 0;function Yc(){return void 0===Kc&&(Kc=new ke),Kc}function Qc(e,t=null,n=null,r){return t=t||Yc(),new Zc(e,n,t,r)}class Zc{constructor(e,t,n,r=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const i=[];td([e],e=>this.processInjectorType(e,[],i)),t&&td(t,n=>this.processProvider(n,e,t)),this.records.set(Se,ed(void 0,this)),this.isRootInjector=this.records.has(Gc),this.injectorDefTypes.forEach(e=>this.get(e)),this.source=r||(e instanceof Array?null:R(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=xe.THROW_IF_NOT_FOUND,n=C.Default){this.assertNotDestroyed();const r=L(this);try{if(!(n&C.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(i=e)||"object"==typeof i&&i instanceof ve)&&A(e);n&&this.injectableDefInScope(n)&&(t=ed(Xc(e),Wc),this.records.set(e,t))}if(void 0!==t)return this.hydrate(e,t)}return(n&C.Self?Yc():this.parent).get(e,n&C.Optional?null:t)}catch(l){if("NullInjectorError"===l.name){if((l[Pe]=l[Pe]||[]).unshift(R(e)),r)throw l;return Ve(l,e,"R3InjectorError",this.source)}throw l}finally{L(r)}var i}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=N(e)))return;let r=E(e);const i=null==r&&e.ngModule||void 0,l=void 0===i?e:i,s=-1!==n.indexOf(l),o=void 0!==i&&e.providers||qc;if(void 0!==i&&(r=E(i)),null==r)return;if(this.injectorDefTypes.add(l),this.records.set(l,ed(r.factory,Wc)),null!=r.imports&&!s){n.push(l);try{td(r.imports,e=>this.processInjectorType(e,t,n))}finally{}}const a=r.providers;if(null!=a&&!s){const t=e;td(a,e=>this.processProvider(e,t,a))}const u=e.ngModule;td(o,e=>this.processProvider(e,u,o))}processProvider(e,t,n){let r=rd(e=N(e))?e:N(e&&e.provide);const i=function(e,t,n){let r=Jc(e,t,n);return nd(e)?ed(void 0,e.useValue):ed(r,Wc)}(e,t,n);if(rd(e)||!0!==e.multi){const e=this.records.get(r);if(e&&void 0!==e.multi)throw new Error(`Mixed multi-provider for ${R(r)}`)}else{let t=this.records.get(r);if(t){if(void 0===t.multi)throw new Error(`Mixed multi-provider for ${r}.`)}else(t=ed(void 0,Wc,!0)).factory=(()=>$(t.multi)),this.records.set(r,t);r=e,t.multi.push(e)}this.records.set(r,i)}hydrate(e,t){if(t.value===$c)throw new Error(`Cannot instantiate cyclic dependency! ${R(e)}`);var n;return t.value===Wc&&(t.value=$c,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||"root"===e.providedIn&&this.isRootInjector:this.injectorDefTypes.has(e.providedIn))}}function Xc(e){const t=A(e);if(null===t){const t=E(e);if(null!==t)return t.factory;if(e instanceof ve)throw new Error(`Token ${R(e)} is missing an ngInjectableDef definition.`);if(e instanceof Function){const t=e.length;if(t>0){const n=new Array(t).fill("?");throw new Error(`Can't resolve all parameters for ${R(e)}: (${n.join(", ")}).`)}return()=>new e}throw new Error("unreachable")}return t.factory}function Jc(e,t,n){let r=void 0;if(rd(e))return Xc(N(e));if(nd(e))r=(()=>N(e.useValue));else if((i=e)&&i.useExisting)r=(()=>z(N(e.useExisting)));else if(e&&e.useFactory)r=(()=>e.useFactory(...$(e.deps||[])));else{const i=N(e&&(e.useClass||e.provide));if(!i){let r="";throw t&&n&&(r=` - only instances of Provider and Type are allowed, got: [${n.map(t=>t==e?"?"+e+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${R(t)}'`+r)}if(!e.deps)return Xc(i);r=(()=>new i(...$(e.deps)))}var i;return r}function ed(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function td(e,t){e.forEach(e=>Array.isArray(e)?td(e,t):t(e))}function nd(e){return null!==e&&"object"==typeof e&&Me in e}function rd(e){return"function"==typeof e}function id(e,t,n,r,i){if(e=N(e),Array.isArray(e))for(let l=0;l<e.length;l++)id(e[l],t,n,r,i);else{const l=hr();let s=rd(e)?e:N(e.provide),o=Jc(e);const a=kr(),u=65535&a.providerIndexes,c=a.directiveStart,d=a.providerIndexes>>16;if(e.useClass||rd(e)){const n=(e.useClass||e).prototype.ngOnDestroy;if(n){const e=l[un];(e.destroyHooks||(e.destroyHooks=[])).push(t.length,n)}}if(rd(e)||!e.multi){const e=new Xn(o,i,La),r=sd(s,t,i?u:u+d,c);-1==r?(Vi(Oi(a,l),l,s),t.push(s),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=65536),n.push(e),l.push(e)):(n[r]=e,l[r]=e)}else{const e=sd(s,t,u+d,c),h=sd(s,t,u,u+d),f=e>=0&&n[e],p=h>=0&&n[h];if(i&&!p||!i&&!f){Vi(Oi(a,l),l,s);const e=function(e,t,n,r,i){const l=new Xn(e,n,La);return l.multi=[],l.index=t,l.componentProviders=0,ld(l,i,r&&!n),l}(i?ad:od,n.length,i,r,o);!i&&p&&(n[h].providerFactory=e),t.push(s),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=65536),n.push(e),l.push(e)}else ld(n[i?h:e],o,!i&&r);!i&&r&&p&&n[h].componentProviders++}}}function ld(e,t,n){e.multi.push(t),n&&e.componentProviders++}function sd(e,t,n,r){for(let i=n;i<r;i++)if(t[i]===e)return i;return-1}function od(e,t,n,r){return ud(this.multi,[])}function ad(e,t,n,r){const i=this.multi;let l;if(this.providerFactory){const e=this.providerFactory.componentProviders,s=zi(t,n,this.providerFactory.index,r);ud(i,l=s.slice(0,e));for(let t=e;t<s.length;t++)l.push(s[t])}else ud(i,l=[]);return l}function ud(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function cd(e,t=[]){return n=>{n.providersResolver=((n,r)=>(function(e,t,n){const r=hr()[un];if(r.firstTemplatePass){const i=Un(e);id(n,r.data,r.blueprint,i,!0),id(t,r.data,r.blueprint,i,!1)}})(n,r?r(e):e,t))}}class dd{}class hd{}function fd(e){const t=Error(`No component factory found for ${R(e)}. Did you add it to @NgModule.entryComponents?`);return t[pd]=e,t}const pd="ngComponent";class md{resolveComponentFactory(e){throw fd(e)}}const gd=(()=>{class e{}return e.NULL=new md,e})();class yd{constructor(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(let r=0;r<e.length;r++){const t=e[r];this._factories.set(t.componentType,t)}}resolveComponentFactory(e){let t=this._factories.get(e);if(!t&&this._parent&&(t=this._parent.resolveComponentFactory(e)),!t)throw fd(e);return new bd(t,this._ngModule)}}class bd extends hd{constructor(e,t){super(),this.factory=e,this.ngModule=t,this.selector=e.selector,this.componentType=e.componentType,this.ngContentSelectors=e.ngContentSelectors,this.inputs=e.inputs,this.outputs=e.outputs}create(e,t,n,r){return this.factory.create(e,t,n,r||this.ngModule)}}class vd{}class wd{}class Cd{constructor(e,t,n){this._context=t,this._componentIndex=n,this._appRef=null,this._viewContainerRef=null,this._tViewNode=null,this._lView=e}get rootNodes(){return null==this._lView[an]?function e(t,n,r){let i=n.child;for(;i;){const n=Vn(i,t);if(n&&r.push(n),4===i.type)e(t,i,r);else if(1===i.type){const e=Ai(t),n=e[pn],l=Ii(e);let s=n.projection[i.projection];for(;s&&l;)r.push(Vn(s,l)),s=s.next}i=i.next}return r}(this._lView,this._lView[pn],[]):[]}get context(){return this._context?this._context:this._lookUpContext()}get destroyed(){return 256==(256&this._lView[cn])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){const e=this._viewContainerRef.indexOf(this);e>-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}Ca(this._lView)}onDestroy(e){var t,n;n=e,na(t=this._lView).push(n),t[un].firstTemplatePass&&ra(t).push(t[gn].length-1,null)}markForCheck(){$o(this._lView)}detach(){this._lView[cn]&=-129}reattach(){this._lView[cn]|=128}detectChanges(){Yo(this._lView,this.context)}checkNoChanges(){!function(e,t){Or(!0);try{Yo(e,t)}finally{Or(!1)}}(this._lView,this.context)}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}detachFromAppRef(){var e;this._appRef=null,pa(e=this._lView,1,e[wn],null)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}_lookUpContext(){return this._context=Ii(this._lView)[this._componentIndex]}}class _d extends Cd{constructor(e){super(e,null,-1),this._view=e}detectChanges(){Qo(this._view)}checkNoChanges(){!function(e){Or(!0);try{Qo(e)}finally{Or(!1)}}(this._view)}get context(){return null}}let Sd,kd,xd;function Id(e,t,n){return Sd||(Sd=class extends e{}),new Sd(Vn(t,n))}function Ad(e,t,n,r){if(kd||(kd=class extends e{constructor(e,t,n,r,i){super(),this._declarationParentView=e,this.elementRef=t,this._tView=n,this._hostLContainer=r,this._injectorIndex=i}createEmbeddedView(e,t,n){const r=this._declarationParentView[fn];r&&null==this._hostLContainer[fn]&&(this._hostLContainer[fn]=r.container());const i=function(e,t,n,r,i){const l=Ar(),s=kr();Er(!0),xr(null);const o=yo(n,e,t,16,null,null);return o[xn]=n,r&&(o[fn]=r.createView()),vo(e,null,-1,o),e.firstTemplatePass&&(e.node.injectorIndex=i),Er(l),xr(s),o}(this._tView,e,this._declarationParentView,this._hostLContainer[fn],this._injectorIndex);t&&ba(i,t,n),wo(i,this._tView,e);const l=new Cd(i,e,-1);return l._tViewNode=i[pn],l}}),0===n.type){const e=r[n.index];return new kd(r,Id(t,n,r),n.tViews,e,n.injectorIndex)}return null}function Ed(e,t,n){if(Hn(e)){const r=e.directiveStart,i=Ln(e.index,t);return new Cd(i,n,r)}if(3===e.type||0===e.type||4===e.type){const e=Ai(t);return new Cd(e,e[yn],-1)}return null}function Td(...e){}const Md=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=(()=>Pd(e)),e})(),Rd=function(e){return Id(e,kr(),hr())},Pd=Td;class Od{constructor(e,t,n,r,i,l){this.id=e,this.templateUrl=t,this.slotCount=n,this.encapsulation=r,this.styles=i,this.animations=l}}class Nd{}class Dd{}class Fd{}class Vd{}const jd=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}(),Bd=(()=>{class e{}return e.__NG_ELEMENT_ID__=(()=>Hd()),e})(),Ld=function(){return function(e){const t=hr()[wn];if(Zr(t))return t;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}()},Hd=Td;class Ud{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const zd=new Ud("8.0.3");class Gd{constructor(){}supports(e){return Mu(e)}create(e){return new $d(e)}}const Wd=(e,t)=>t;class $d{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Wd}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,i=null;for(;t||n;){const l=!n||t&&t.currentIndex<Qd(n,r,i)?t:n,s=Qd(l,r,i),o=l.currentIndex;if(l===n)r--,n=n._nextRemoved;else if(t=t._next,null==l.previousIndex)r++;else{i||(i=[]);const e=s-r,t=o-r;if(e!=t){for(let n=0;n<e;n++){const r=n<i.length?i[n]:i[n]=0,l=r+n;t<=l&&l<e&&(i[n]=r+1)}i[l.previousIndex]=t-e}}s!==o&&e(l,s,o)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!Mu(e))throw new Error(`Error trying to diff '${R(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t,n,r,i=this._itHead,l=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)r=this._trackByFn(t,n=e[t]),null!==i&&Au(i.trackById,r)?(l&&(i=this._verifyReinsertion(i,n,r,t)),Au(i.item,n)||this._addIdentityChange(i,n)):(i=this._mismatch(i,n,r,t),l=!0),i=i._next}else t=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Iu()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(e,e=>{r=this._trackByFn(t,e),null!==i&&Au(i.trackById,r)?(l&&(i=this._verifyReinsertion(i,e,r,t)),Au(i.item,e)||this._addIdentityChange(i,e)):(i=this._mismatch(i,e,r,t),l=!0),i=i._next,t++}),this.length=t;return this._truncate(i),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e,t;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,r){let i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Au(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Au(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,r)):e=this._addAfter(new qd(t,n),i,r),e}_verifyReinsertion(e,t,n,r){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?e=this._reinsertAfter(i,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,i=e._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Yd),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t?e:(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e,e)}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Yd),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class qd{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Kd{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Au(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class Yd{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new Kd,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Qd(e,t,n){const r=e.previousIndex;if(null===r)return r;let i=0;return n&&r<n.length&&(i=n[r]),r+t+i}class Zd{constructor(){}supports(e){return e instanceof Map||Ru(e)}create(){return new Xd}}class Xd{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||Ru(e)))throw new Error(`Error trying to diff '${R(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(e,n)=>{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const r=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,r)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}const n=new Jd(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Au(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class Jd{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}const eh=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new b,new g]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.ngInjectableDef=k({providedIn:"root",factory:()=>new e([new Gd])}),e})(),th=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new b,new g]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.ngInjectableDef=k({providedIn:"root",factory:()=>new e([new Zd])}),e})(),nh=(()=>{class e{}return e.__NG_ELEMENT_ID__=(()=>ih()),e})(),rh=function(){return Ed(kr(),hr(),null)},ih=(...e)=>{},lh=[new Zd],sh=new eh([new Gd]),oh=new th(lh),ah=(()=>{class e{}return e.__NG_ELEMENT_ID__=(()=>ch(e,Md)),e})(),uh=function(e,t){return Ad(e,t,kr(),hr())},ch=Td,dh=(()=>{class e{}return e.__NG_ELEMENT_ID__=(()=>fh(e,Md)),e})(),hh=function(e,t){return function(e,t,n,r){let i;xd||(xd=class extends e{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostView=n,this._viewRefs=[]}get element(){return Id(t,this._hostTNode,this._hostView)}get injector(){return new $i(this._hostTNode,this._hostView)}get parentInjector(){const e=Fi(this._hostTNode,this._hostView),t=xi(e,this._hostView),n=function(e,t,n){if(n.parent&&-1!==n.parent.injectorIndex){const e=n.parent.injectorIndex;let t=n.parent;for(;null!=t.parent&&e==t.injectorIndex;)t=t.parent;return t}let r=ki(e),i=t,l=t[pn];for(;r>1;)l=(i=i[xn])[pn],r--;return l}(e,this._hostView,this._hostTNode);return _i(e)&&null!=n?new $i(n,t):new $i(null,this._hostView)}clear(){for(;this._lContainer[Rn].length;)this.remove(0)}get(e){return this._viewRefs[e]||null}get length(){return this._lContainer[Rn].length}createEmbeddedView(e,t,n){const r=this._adjustIndex(n),i=e.createEmbeddedView(t||{},this._lContainer,r);return i.attachToViewContainerRef(this),this._viewRefs.splice(r,0,i),i}createComponent(e,t,n,r,i){const l=n||this.parentInjector;!i&&null==e.ngModule&&l&&(i=l.get(vd,null));const s=e.create(l,r,void 0,i);return this.insert(s.hostView,t),s}insert(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");const n=e._lView,r=this._adjustIndex(t);return $n(n)?this.move(e,r):(ba(n,this._lContainer,r),ya(n,!0,Ea(r,this._lContainer[Rn],this._lContainer[Mn])),e.attachToViewContainerRef(this),this._viewRefs.splice(r,0,e),e)}move(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");const n=this.indexOf(e);return-1!==n&&this.detach(n),this.insert(e,t),e}indexOf(e){return this._viewRefs.indexOf(e)}remove(e){const t=this._adjustIndex(e,-1);wa(this._lContainer,t),this._viewRefs.splice(t,1)}detach(e){const t=this._adjustIndex(e,-1),n=va(this._lContainer,t);return n&&null!=this._viewRefs.splice(t,1)[0]?new Cd(n,n[yn],-1):null}_adjustIndex(e,t=0){return null==e?this._lContainer[Rn].length+t:e}});const l=r[n.index];if(Dn(l))(i=l)[Tn]=-1;else{const e=r[wn].createComment("");if(zn(r)){const t=r[wn],i=Vn(n,r);ka(t,Ia(t,i),e,function(e,t){return Zr(e)?e.nextSibling(t):t.nextSibling}(t,i))}else Aa(e,n,r);r[n.index]=i=zo(l,r,e,n,!0),Wo(r,i)}return new xd(i,n,r)}(e,t,kr(),hr())},fh=Td;function ph(e,t,n,r){let i=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '${t}'. Current value: '${n}'.`;return r&&(i+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){const n=new Error(e);return mh(n,t),n}(i,e)}function mh(e,t){e[Le]=t,e[Ue]=t.logError.bind(t)}function gh(e){return new Error(`ViewDestroyedError: Attempt to use a destroyed view: ${e}`)}function yh(e,t,n){const r=e.state,i=1792&r;return i===t?(e.state=-1793&r|n,e.initIndex=-1,!0):i===n}function bh(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function vh(e,t){return e.nodes[t]}function wh(e,t){return e.nodes[t]}function Ch(e,t){return e.nodes[t]}function _h(e,t){return e.nodes[t]}function Sh(e,t){return e.nodes[t]}class kh{}const xh={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},Ih=()=>{},Ah=new Map;function Eh(e){let t=Ah.get(e);return t||(t=R(e)+"_"+Ah.size,Ah.set(e,t)),t}function Th(e,t,n,r){if(Tu.isWrapped(r)){r=Tu.unwrap(r);const i=e.def.nodes[t].bindingIndex+n,l=Tu.unwrap(e.oldValues[i]);e.oldValues[i]=new Tu(l)}return r}const Mh="$$undefined",Rh="$$empty";function Ph(e){return{id:Mh,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}let Oh=0;function Nh(e,t,n,r){return!(!(2&e.state)&&Au(e.oldValues[t.bindingIndex+n],r))}function Dh(e,t,n,r){return!!Nh(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function Fh(e,t,n,r){const i=e.oldValues[t.bindingIndex+n];if(1&e.state||!Eu(i,r)){const l=t.bindings[n].name;throw ph(xh.createDebugContext(e,t.nodeIndex),`${l}: ${i}`,`${l}: ${r}`,0!=(1&e.state))}}function Vh(e){let t=e;for(;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function jh(e,t){let n=e;for(;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function Bh(e,t,n,r){try{return Vh(33554432&e.def.nodes[t].flags?wh(e,t).componentView:e),xh.handleEvent(e,t,n,r)}catch(i){e.root.errorHandler.handleError(i)}}function Lh(e){return e.parent?wh(e.parent,e.parentNodeDef.nodeIndex):null}function Hh(e){return e.parent?e.parentNodeDef.parent:null}function Uh(e,t){switch(201347067&t.flags){case 1:return wh(e,t.nodeIndex).renderElement;case 2:return vh(e,t.nodeIndex).renderText}}function zh(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function Gh(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function Wh(e){return 1<<e%32}function $h(e){const t={};let n=0;const r={};return e&&e.forEach(([e,i])=>{"number"==typeof e?(t[e]=i,n|=Wh(e)):r[e]=i}),{matchedQueries:t,references:r,matchedQueryIds:n}}function qh(e,t){return e.map(e=>{let n,r;return Array.isArray(e)?[r,n]=e:(r=0,n=e),n&&("function"==typeof n||"object"==typeof n)&&t&&Object.defineProperty(n,we,{value:t,configurable:!0}),{flags:r,token:n,tokenKey:Eh(n)}})}function Kh(e,t,n){let r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===It.Native?wh(e,n.renderParent.nodeIndex).renderElement:void 0:t}const Yh=new WeakMap;function Qh(e){let t=Yh.get(e);return t||((t=e(()=>Ih)).factory=e,Yh.set(e,t)),t}function Zh(e,t,n,r,i){3===t&&(n=e.renderer.parentNode(Uh(e,e.def.lastRenderRootNode))),Xh(e,t,0,e.def.nodes.length-1,n,r,i)}function Xh(e,t,n,r,i,l,s){for(let o=n;o<=r;o++){const n=e.def.nodes[o];11&n.flags&&ef(e,n,t,i,l,s),o+=n.childCount}}function Jh(e,t,n,r,i,l){let s=e;for(;s&&!zh(s);)s=s.parent;const o=s.parent,a=Hh(s),u=a.nodeIndex+a.childCount;for(let c=a.nodeIndex+1;c<=u;c++){const e=o.def.nodes[c];e.ngContentIndex===t&&ef(o,e,n,r,i,l),c+=e.childCount}if(!o.parent){const s=e.root.projectableNodes[t];if(s)for(let t=0;t<s.length;t++)tf(e,s[t],n,r,i,l)}}function ef(e,t,n,r,i,l){if(8&t.flags)Jh(e,t.ngContent.index,n,r,i,l);else{const s=Uh(e,t);if(3===n&&33554432&t.flags&&48&t.bindingFlags?(16&t.bindingFlags&&tf(e,s,n,r,i,l),32&t.bindingFlags&&tf(wh(e,t.nodeIndex).componentView,s,n,r,i,l)):tf(e,s,n,r,i,l),16777216&t.flags){const s=wh(e,t.nodeIndex).viewContainer._embeddedViews;for(let e=0;e<s.length;e++)Zh(s[e],n,r,i,l)}1&t.flags&&!t.element.name&&Xh(e,n,t.nodeIndex+1,t.nodeIndex+t.childCount,r,i,l)}}function tf(e,t,n,r,i,l){const s=e.renderer;switch(n){case 1:s.appendChild(r,t);break;case 2:s.insertBefore(r,t,i);break;case 3:s.removeChild(r,t);break;case 0:l.push(t)}}const nf=/^:([^:]+):(.+)$/;function rf(e){if(":"===e[0]){const t=e.match(nf);return[t[1],t[2]]}return["",e]}function lf(e){let t=0;for(let n=0;n<e.length;n++)t|=e[n].flags;return t}function sf(e,t){let n="";for(let r=0;r<2*e;r+=2)n=n+t[r]+af(t[r+1]);return n+t[2*e]}function of(e,t,n,r,i,l,s,o,a,u,c,d,h,f,p,m,g,y,b,v){switch(e){case 1:return t+af(n)+r;case 2:return t+af(n)+r+af(i)+l;case 3:return t+af(n)+r+af(i)+l+af(s)+o;case 4:return t+af(n)+r+af(i)+l+af(s)+o+af(a)+u;case 5:return t+af(n)+r+af(i)+l+af(s)+o+af(a)+u+af(c)+d;case 6:return t+af(n)+r+af(i)+l+af(s)+o+af(a)+u+af(c)+d+af(h)+f;case 7:return t+af(n)+r+af(i)+l+af(s)+o+af(a)+u+af(c)+d+af(h)+f+af(p)+m;case 8:return t+af(n)+r+af(i)+l+af(s)+o+af(a)+u+af(c)+d+af(h)+f+af(p)+m+af(g)+y;case 9:return t+af(n)+r+af(i)+l+af(s)+o+af(a)+u+af(c)+d+af(h)+f+af(p)+m+af(g)+y+af(b)+v;default:throw new Error("Does not support more than 9 expressions")}}function af(e){return null!=e?e.toString():""}const uf=[],cf={},df=new Object,hf=Eh(xe),ff=Eh(Se),pf=Eh(vd);function mf(e,t,n,r){return n=N(n),{index:-1,deps:qh(r,R(t)),flags:e,token:t,value:n}}function gf(e){const t={},n=[];let r=!1;for(let i=0;i<e.length;i++){const l=e[i];l.token===Gc&&!0===l.value&&(r=!0),1073741824&l.flags&&n.push(l.token),l.index=i,t[Eh(l.token)]=l}return{factory:null,providersByKey:t,providers:e,modules:n,isRoot:r}}function yf(e,t,n=xe.THROW_IF_NOT_FOUND){const r=L(e);try{if(8&t.flags)return t.token;if(2&t.flags&&(n=null),1&t.flags)return e._parent.get(t.token,n);const s=t.tokenKey;switch(s){case hf:case ff:case pf:return e}const o=e._def.providersByKey[s];let a;if(o){let t=e._providers[o.index];return void 0===t&&(t=e._providers[o.index]=bf(e,o)),t===df?void 0:t}if((a=A(t.token))&&(i=e,null!=(l=a).providedIn&&(function(e,t){return e._def.modules.indexOf(l.providedIn)>-1}(i)||"root"===l.providedIn&&i._def.isRoot))){const n=e._providers.length;return e._def.providers[n]=e._def.providersByKey[t.tokenKey]={flags:5120,value:a.factory,deps:[],index:n,token:t.token},e._providers[n]=df,e._providers[n]=bf(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{L(r)}var i,l}function bf(e,t){let n;switch(201347067&t.flags){case 512:n=function(e,t,n){const r=n.length;switch(r){case 0:return new t;case 1:return new t(yf(e,n[0]));case 2:return new t(yf(e,n[0]),yf(e,n[1]));case 3:return new t(yf(e,n[0]),yf(e,n[1]),yf(e,n[2]));default:const i=new Array(r);for(let t=0;t<r;t++)i[t]=yf(e,n[t]);return new t(...i)}}(e,t.value,t.deps);break;case 1024:n=function(e,t,n){const r=n.length;switch(r){case 0:return t();case 1:return t(yf(e,n[0]));case 2:return t(yf(e,n[0]),yf(e,n[1]));case 3:return t(yf(e,n[0]),yf(e,n[1]),yf(e,n[2]));default:const i=Array(r);for(let t=0;t<r;t++)i[t]=yf(e,n[t]);return t(...i)}}(e,t.value,t.deps);break;case 2048:n=yf(e,t.deps[0]);break;case 256:n=t.value}return n===df||null===n||"object"!=typeof n||131072&t.flags||"function"!=typeof n.ngOnDestroy||(t.flags|=131072),void 0===n?df:n}function vf(e,t){const n=e.viewContainer._embeddedViews;if((null==t||t>=n.length)&&(t=n.length-1),t<0)return null;const r=n[t];return r.viewContainerParent=null,Sf(n,t),xh.dirtyParentQueries(r),Cf(r),r}function wf(e,t,n){const r=t?Uh(t,t.def.lastRenderRootNode):e.renderElement,i=n.renderer.parentNode(r),l=n.renderer.nextSibling(r);Zh(n,2,i,l,void 0)}function Cf(e){Zh(e,3,null,null,void 0)}function _f(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Sf(e,t){t>=e.length-1?e.pop():e.splice(t,1)}const kf=new Object;function xf(e,t,n,r,i,l){return new Af(e,t,n,r,i,l)}function If(e){return e.viewDefFactory}class Af extends hd{constructor(e,t,n,r,i,l){super(),this.selector=e,this.componentType=t,this._inputs=r,this._outputs=i,this.ngContentSelectors=l,this.viewDefFactory=n}get inputs(){const e=[],t=this._inputs;for(let n in t)e.push({propName:n,templateName:t[n]});return e}get outputs(){const e=[];for(let t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e}create(e,t,n,r){if(!r)throw new Error("ngModule should be provided");const i=Qh(this.viewDefFactory),l=i.nodes[0].element.componentProvider.nodeIndex,s=xh.createRootView(e,t||[],n,i,r,kf),o=Ch(s,l).instance;return n&&s.renderer.setAttribute(wh(s,0).renderElement,"ng-version",zd.full),new Ef(s,new Pf(s),o)}}class Ef extends dd{constructor(e,t,n){super(),this._view=e,this._viewRef=t,this._component=n,this._elDef=this._view.def.nodes[0],this.hostView=t,this.changeDetectorRef=t,this.instance=n}get location(){return new Md(wh(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new Ff(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(e){this._viewRef.onDestroy(e)}}function Tf(e,t,n){return new Mf(e,t,n)}class Mf{constructor(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}get element(){return new Md(this._data.renderElement)}get injector(){return new Ff(this._view,this._elDef)}get parentInjector(){let e=this._view,t=this._elDef.parent;for(;!t&&e;)t=Hh(e),e=e.parent;return e?new Ff(e,t):new Ff(this._view,null)}clear(){for(let e=this._embeddedViews.length-1;e>=0;e--){const t=vf(this._data,e);xh.destroyView(t)}}get(e){const t=this._embeddedViews[e];if(t){const e=new Pf(t);return e.attachToViewContainerRef(this),e}return null}get length(){return this._embeddedViews.length}createEmbeddedView(e,t,n){const r=e.createEmbeddedView(t||{});return this.insert(r,n),r}createComponent(e,t,n,r,i){const l=n||this.parentInjector;i||e instanceof bd||(i=l.get(vd));const s=e.create(l,r,void 0,i);return this.insert(s.hostView,t),s}insert(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");const n=e;return function(e,t,n,r){let i=t.viewContainer._embeddedViews;null==n&&(n=i.length),r.viewContainerParent=e,_f(i,n,r),function(e,t){const n=Lh(t);if(!n||n===e||16&t.state)return;t.state|=16;let r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,n){if(4&n.flags)return;t.parent.def.nodeFlags|=4,n.flags|=4;let r=n.parent;for(;r;)r.childFlags|=4,r=r.parent}(0,t.parentNodeDef)}(t,r),xh.dirtyParentQueries(r),wf(t,n>0?i[n-1]:null,r)}(this._view,this._data,t,n._view),n.attachToViewContainerRef(this),e}move(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");const n=this._embeddedViews.indexOf(e._view);return function(e,t,r){const i=e.viewContainer._embeddedViews,l=i[n];Sf(i,n),null==r&&(r=i.length),_f(i,r,l),xh.dirtyParentQueries(l),Cf(l),wf(e,r>0?i[r-1]:null,l)}(this._data,0,t),e}indexOf(e){return this._embeddedViews.indexOf(e._view)}remove(e){const t=vf(this._data,e);t&&xh.destroyView(t)}detach(e){const t=vf(this._data,e);return t?new Pf(t):null}}function Rf(e){return new Pf(e)}class Pf{constructor(e){this._view=e,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(e){const t=[];return Zh(e,0,void 0,void 0,t),t}(this._view)}get context(){return this._view.context}get destroyed(){return 0!=(128&this._view.state)}markForCheck(){Vh(this._view)}detach(){this._view.state&=-5}detectChanges(){const e=this._view.root.rendererFactory;e.begin&&e.begin();try{xh.checkAndUpdateView(this._view)}finally{e.end&&e.end()}}checkNoChanges(){xh.checkNoChangesView(this._view)}reattach(){this._view.state|=4}onDestroy(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)}destroy(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),xh.destroyView(this._view)}detachFromAppRef(){this._appRef=null,Cf(this._view),xh.dirtyParentQueries(this._view)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}}function Of(e,t){return new Nf(e,t)}class Nf extends ah{constructor(e,t){super(),this._parentView=e,this._def=t}createEmbeddedView(e){return new Pf(xh.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}get elementRef(){return new Md(wh(this._parentView,this._def.nodeIndex).renderElement)}}function Df(e,t){return new Ff(e,t)}class Ff{constructor(e,t){this.view=e,this.elDef=t}get(e,t=xe.THROW_IF_NOT_FOUND){return xh.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Eh(e)},t)}}function Vf(e,t){const n=e.def.nodes[t];if(1&n.flags){const t=wh(e,n.nodeIndex);return n.element.template?t.template:t.renderElement}if(2&n.flags)return vh(e,n.nodeIndex).renderText;if(20240&n.flags)return Ch(e,n.nodeIndex).instance;throw new Error(`Illegal state: read nodeValue for node index ${t}`)}function jf(e){return new Bf(e.renderer)}class Bf{constructor(e){this.delegate=e}selectRootElement(e){return this.delegate.selectRootElement(e)}createElement(e,t){const[n,r]=rf(t),i=this.delegate.createElement(r,n);return e&&this.delegate.appendChild(e,i),i}createViewRoot(e){return e}createTemplateAnchor(e){const t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t}createText(e,t){const n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n}projectNodes(e,t){for(let n=0;n<t.length;n++)this.delegate.appendChild(e,t[n])}attachViewAfter(e,t){const n=this.delegate.parentNode(e),r=this.delegate.nextSibling(e);for(let i=0;i<t.length;i++)this.delegate.insertBefore(n,t[i],r)}detachView(e){for(let t=0;t<e.length;t++){const n=e[t],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}}destroyView(e,t){for(let n=0;n<t.length;n++)this.delegate.destroyNode(t[n])}listen(e,t,n){return this.delegate.listen(e,t,n)}listenGlobal(e,t,n){return this.delegate.listen(e,t,n)}setElementProperty(e,t,n){this.delegate.setProperty(e,t,n)}setElementAttribute(e,t,n){const[r,i]=rf(t);null!=n?this.delegate.setAttribute(e,i,n,r):this.delegate.removeAttribute(e,i,r)}setBindingDebugInfo(e,t,n){}setElementClass(e,t,n){n?this.delegate.addClass(e,t):this.delegate.removeClass(e,t)}setElementStyle(e,t,n){null!=n?this.delegate.setStyle(e,t,n):this.delegate.removeStyle(e,t)}invokeElementMethod(e,t,n){e[t].apply(e,n)}setText(e,t){this.delegate.setValue(e,t)}animate(){throw new Error("Renderer.animate is no longer supported!")}}function Lf(e,t,n,r){return new Hf(e,t,n,r)}class Hf{constructor(e,t,n,r){this._moduleType=e,this._parent=t,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){const t=e._def,n=e._providers=new Array(t.providers.length);for(let r=0;r<t.providers.length;r++){const i=t.providers[r];4096&i.flags||void 0===n[r]&&(n[r]=bf(e,i))}}(this)}get(e,t=xe.THROW_IF_NOT_FOUND,n=C.Default){let r=0;return n&C.SkipSelf?r|=1:n&C.Self&&(r|=4),yf(this,{token:e,tokenKey:Eh(e),flags:r},t)}get instance(){return this.get(this._moduleType)}get componentFactoryResolver(){return this.get(gd)}destroy(){if(this._destroyed)throw new Error(`The ng module ${R(this.instance.constructor)} has already been destroyed.`);this._destroyed=!0,function(e,t){const n=e._def,r=new Set;for(let i=0;i<n.providers.length;i++)if(131072&n.providers[i].flags){const t=e._providers[i];if(t&&t!==df){const e=t.ngOnDestroy;"function"!=typeof e||r.has(t)||(e.apply(t),r.add(t))}}}(this),this._destroyListeners.forEach(e=>e())}onDestroy(e){this._destroyListeners.push(e)}}const Uf=Eh(Dd),zf=Eh(Bd),Gf=Eh(Md),Wf=Eh(dh),$f=Eh(ah),qf=Eh(nh),Kf=Eh(xe),Yf=Eh(Se);function Qf(e,t,n,r,i,l,s,o){const a=[];if(s)for(let c in s){const[e,t]=s[c];a[e]={flags:8,name:c,nonMinifiedName:t,ns:null,securityContext:null,suffix:null}}const u=[];if(o)for(let c in o)u.push({type:1,propName:c,target:null,eventName:o[c]});return Jf(e,t|=16384,n,r,i,i,l,a,u)}function Zf(e,t,n){return Jf(-1,e|=16,null,0,t,t,n)}function Xf(e,t,n,r,i){return Jf(-1,e,t,0,n,r,i)}function Jf(e,t,n,r,i,l,s,o,a){const{matchedQueries:u,references:c,matchedQueryIds:d}=$h(n);a||(a=[]),o||(o=[]),l=N(l);const h=qh(s,R(i));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:u,matchedQueryIds:d,references:c,ngContentIndex:-1,childCount:r,bindings:o,bindingFlags:lf(o),outputs:a,element:null,provider:{token:i,value:l,deps:h},text:null,query:null,ngContent:null}}function ep(e,t){return ip(e,t)}function tp(e,t){let n=e;for(;n.parent&&!zh(n);)n=n.parent;return lp(n.parent,Hh(n),!0,t.provider.value,t.provider.deps)}function np(e,t){const n=lp(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(let r=0;r<t.outputs.length;r++){const i=t.outputs[r],l=n[i.propName];if(!mu(l))throw new Error(`@Output ${i.propName} not initialized in '${n.constructor.name}'.`);{const n=l.subscribe(rp(e,t.parent.nodeIndex,i.eventName));e.disposables[t.outputIndex+r]=n.unsubscribe.bind(n)}}return n}function rp(e,t,n){return r=>Bh(e,t,n,r)}function ip(e,t){const n=(8192&t.flags)>0,r=t.provider;switch(201347067&t.flags){case 512:return lp(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,i){const l=i.length;switch(l){case 0:return r();case 1:return r(op(e,t,n,i[0]));case 2:return r(op(e,t,n,i[0]),op(e,t,n,i[1]));case 3:return r(op(e,t,n,i[0]),op(e,t,n,i[1]),op(e,t,n,i[2]));default:const s=Array(l);for(let r=0;r<l;r++)s[r]=op(e,t,n,i[r]);return r(...s)}}(e,t.parent,n,r.value,r.deps);case 2048:return op(e,t.parent,n,r.deps[0]);case 256:return r.value}}function lp(e,t,n,r,i){const l=i.length;switch(l){case 0:return new r;case 1:return new r(op(e,t,n,i[0]));case 2:return new r(op(e,t,n,i[0]),op(e,t,n,i[1]));case 3:return new r(op(e,t,n,i[0]),op(e,t,n,i[1]),op(e,t,n,i[2]));default:const s=new Array(l);for(let r=0;r<l;r++)s[r]=op(e,t,n,i[r]);return new r(...s)}}const sp={};function op(e,t,n,r,i=xe.THROW_IF_NOT_FOUND){if(8&r.flags)return r.token;const l=e;2&r.flags&&(i=null);const s=r.tokenKey;s===qf&&(n=!(!t||!t.element.componentView)),t&&1&r.flags&&(n=!1,t=t.parent);let o=e;for(;o;){if(t)switch(s){case Uf:return jf(ap(o,t,n));case zf:return ap(o,t,n).renderer;case Gf:return new Md(wh(o,t.nodeIndex).renderElement);case Wf:return wh(o,t.nodeIndex).viewContainer;case $f:if(t.element.template)return wh(o,t.nodeIndex).template;break;case qf:return Rf(ap(o,t,n));case Kf:case Yf:return Df(o,t);default:const e=(n?t.element.allProviders:t.element.publicProviders)[s];if(e){let t=Ch(o,e.nodeIndex);return t||(t={instance:ip(o,e)},o.nodes[e.nodeIndex]=t),t.instance}}n=zh(o),t=Hh(o),o=o.parent,4&r.flags&&(o=null)}const a=l.root.injector.get(r.token,sp);return a!==sp||i===sp?a:l.root.ngModule.injector.get(r.token,i)}function ap(e,t,n){let r;if(n)r=wh(e,t.nodeIndex).componentView;else for(r=e;r.parent&&!zh(r);)r=r.parent;return r}function up(e,t,n,r,i,l){if(32768&n.flags){const t=wh(e,n.parent.nodeIndex).componentView;2&t.def.flags&&(t.state|=8)}if(t.instance[n.bindings[r].name]=i,524288&n.flags){l=l||{};const t=Tu.unwrap(e.oldValues[n.bindingIndex+r]);l[n.bindings[r].nonMinifiedName]=new Nc(t,i,0!=(2&e.state))}return e.oldValues[n.bindingIndex+r]=i,l}function cp(e,t){if(!(e.def.nodeFlags&t))return;const n=e.def.nodes;let r=0;for(let i=0;i<n.length;i++){const l=n[i];let s=l.parent;for(!s&&l.flags&t&&hp(e,i,l.flags&t,r++),0==(l.childFlags&t)&&(i+=l.childCount);s&&1&s.flags&&i===s.nodeIndex+s.childCount;)s.directChildFlags&t&&(r=dp(e,s,t,r)),s=s.parent}}function dp(e,t,n,r){for(let i=t.nodeIndex+1;i<=t.nodeIndex+t.childCount;i++){const t=e.def.nodes[i];t.flags&n&&hp(e,i,t.flags&n,r++),i+=t.childCount}return r}function hp(e,t,n,r){const i=Ch(e,t);if(!i)return;const l=i.instance;l&&(xh.setCurrentNode(e,t),1048576&n&&bh(e,512,r)&&l.ngAfterContentInit(),2097152&n&&l.ngAfterContentChecked(),4194304&n&&bh(e,768,r)&&l.ngAfterViewInit(),8388608&n&&l.ngAfterViewChecked(),131072&n&&l.ngOnDestroy())}function fp(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const pp=new ve("ROOT_CONTEXT_TOKEN",{providedIn:"root",factory:()=>Rc(z(mp))}),mp=new ve("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>en});class gp extends hd{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors[0][0],this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return fp(this.componentDef.inputs)}get outputs(){return fp(this.componentDef.outputs)}create(e,t,n,r){const i=void 0===n,l=(r=r||this.ngModule)?function(e,t){return{get:(n,r,i)=>{const l=e.get(n,sp,i);return l!==sp||r===sp?l:t.get(n,r,i)}}}(e,r.injector):e,s=l.get(Vd,Xr),o=l.get(Vl,null),a=i?go(this.selector,s.createRenderer(null,this.componentDef)):To(s,n),u=this.componentDef.onPush?576:528,c="string"==typeof n&&/^#root-ng-internal-isolated-\d+/.test(n),d=i||c?Rc():l.get(pp),h=s.createRenderer(a,this.componentDef);n&&a&&(Zr(h)?h.setAttribute(a,"ng-version",zd.full):a.setAttribute("ng-version",zd.full));const f=yo(null,Eo(-1,null,1,0,null,null,null,null),d,u,null,null,s,h,o,l),p=Lr(f,null);let m,g;try{const e=Tc(a,this.componentDef,f,s,h);g=jn(0,f),t&&(g.projection=t.map(e=>Array.from(e))),m=Mc(e,this.componentDef,f,d,[Pc]),Wo(f,e),po(f)}finally{Ur(p)}const y=new yp(this.componentType,m,Id(Md,g,f),f,g);return i&&(y.hostView._tViewNode.child=g),y}}class yp extends dd{constructor(e,t,n,r,i){super(),this.location=n,this._rootLView=r,this._tNode=i,this.destroyCbs=[],this.instance=t,this.hostView=this.changeDetectorRef=new _d(r),this.hostView._tViewNode=vo(r[un],null,-1,r),this.componentType=e}get injector(){return new $i(this._tNode,this._rootLView)}destroy(){this.destroyCbs.forEach(e=>e()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy()}onDestroy(e){this.destroyCbs.push(e)}}function bp(e,t){for(let n=0;n<e.length;n++)t.push(e[n])}function vp(e,t){void 0===t&&(t=e);for(let n=0;n<e.length;n++){let r=e[n];Array.isArray(r)?(t===e&&(t=e.slice(0,n)),vp(r,t)):t!==e&&t.push(r)}return t}const wp="\ufffd",Cp=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,_p=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Sp=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,kp=/\ufffd(\d+):?\d*\ufffd/gi,xp=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,Ip=0,Ap=/\[(\ufffd.+?\ufffd?)\]/,Ep=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,Tp=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,Mp=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,Rp=/\/\*/,Pp=/\d+\:(\d+)/;function Op(e){if(!e)return[];let t=0;const n=[],r=[],i=/[{}]/g;let l;for(i.lastIndex=0;l=i.exec(e);){const i=l.index;if("}"==l[0]){if(n.pop(),0==n.length){const n=e.substring(t,i);Cp.test(n)?r.push(Np(n)):n&&r.push(n),t=i+1}}else{if(0==n.length){const n=e.substring(t,i);r.push(n),t=i+1}n.push("{")}}const s=e.substring(t);return""!=s&&r.push(s),r}function Np(e){const t=[],n=[];let r=1,i=0;const l=Op(e=e.replace(Cp,function(e,t,n){return r="select"===n?0:1,i=parseInt(t.substr(1),10),""}));for(let a=0;a<l.length;){let e=l[a++].trim();1===r&&(e=e.replace(/\s*(?:=)?(\w+)\s*/,"$1")),e.length&&t.push(e);const i=Op(l[a++]);i.length&&n.push(i)}return s=t.indexOf("other"),o='Missing key "other" in ICU statement.',s<=-1&&function(e){throw new Error(`ASSERTION ERROR: ${e}`)}(o),{type:r,mainBinding:i,cases:t,values:n};var s,o}function Dp(e){let t,n,r="",i=0,l=!1;for(;null!==(t=_p.exec(e));)l?t[0]===`${wp}/*${n}${wp}`&&(i=t.index,l=!1):(r+=e.substring(i,t.index+t[0].length),n=t[1],l=!0);return r+e.substr(i)}function Fp(e,t,n,r=null){const i=[null,null],l=e.split(kp);let s=0;for(let o=0;o<l.length;o++){const e=l[o];if(1&o){const t=parseInt(e,10);i.push(-1-t),s|=Lp(t)}else""!==e&&i.push(e)}return i.push(t<<2|(n?1:0)),n&&i.push(n,r),i[0]=s,i[1]=i.length-2,i}function Vp(e,t=0){let n;t|=Lp(e.mainBinding);for(let r=0;r<e.values.length;r++){const i=e.values[r];for(let e=0;e<i.length;e++){const r=i[e];if("string"==typeof r)for(;n=kp.exec(r);)t|=Lp(parseInt(n[1],10));else t=Vp(r,t)}}return t}const jp=[];let Bp=-1;function Lp(e){return 1<<Math.min(e,31)}const Hp=[];function Up(e,t,n){const r=hr()[un];jp[++Bp]=e,r.firstTemplatePass&&null===r.data[e+An]&&function(e,t,n,r){const i=hr(),l=e.blueprint.length-An;zp=0;const s=kr(),o=Ar()?kr():s&&s.parent;let a=o&&o!==i[pn]?o.index-An:t,u=0;Hp[u]=a;const c=[];t>0&&s!==o&&c.push(s.index<<3|0);const d=[],h=[],f=function(e,t){if("number"!=typeof t)return Dp(e);{const n=e.indexOf(`:${t}${wp}`)+2+t.toString().length,r=e.search(new RegExp(`${wp}\\/\\*\\d+:${t}${wp}`));return Dp(e.substring(n,r))}}(n,r).split(Sp);for(let p=0;p<f.length;p++){let e=f[p];if(1&p)if("/"===e.charAt(0)){if("#"===e.charAt(1)){const t=parseInt(e.substr(2),10);a=Hp[--u],c.push(t<<3|5)}}else{const t=parseInt(e.substr(1),10);c.push(t<<3|0,a<<17|1),"#"===e.charAt(0)&&(Hp[++u]=a=t)}else{const t=Op(e);for(let e=0;e<t.length;e++)if(1&e){const n=l+zp++;c.push(Jl,"",n,a<<17|1);const r=t[e],i=Vp(r);im(h,r,n,n);const s=h.length-1;d.push(Lp(r.mainBinding),3,-1-r.mainBinding,n<<2|2,s,i,2,n<<2|3,s)}else if(""!==t[e]){const n=t[e],r=n.match(kp),i=l+zp++;c.push(r?"":n,i,a<<17|1),r&&bp(Fp(n,i),d)}}}(function(e,t){const n=e[un];if(n.firstTemplatePass){for(let r=0;r<t;r++)n.blueprint.push(null),n.data.push(null),e.push(null);n.expandoInstructions?n.expandoInstructions.push(t):n.expandoStartIndex+=t}})(i,zp),e.data[t+An]={vars:zp,create:c,update:d,icus:h.length?h:null}}(r,e,t,n)}let zp;function Gp(e,t,n){const r=e.next,i=hr();n||(n=t),n===t&&e!==t.child?(e.next=t.child,t.child=e):n!==t&&e!==n.next?(e.next=n.next,n.next=e):e.next=null,t!==i[pn]&&(e.parent=t);let l=e.next;for(;l;)l.next===e&&(l.next=r),l=l.next;Aa(Vn(e,i),e,i);const s=i[e.index];return 0!==e.type&&Dn(s)&&Aa(s[Mn],e,i),e}function Wp(e,t={}){let n=e;if(Ap.test(e)){const e={},t=[Ip];if(n=n.replace(Ep,(n,r,i)=>{const l=r||i;if(!e[l]){const t=[];l.split("|").forEach(e=>{const n=e.match(Pp),r=n?parseInt(n[1],10):Ip,i=Rp.test(e);t.push([r,i,e])}),e[l]=t}if(!e[l].length)throw new Error(`i18n postprocess: unmatched placeholder - ${l}`);const s=t[t.length-1],o=e[l];let a=0;for(let e=0;e<o.length;e++)if(o[e][0]===s){a=e;break}const[u,c,d]=o[a];return c?t.pop():s!==u&&t.push(u),o.splice(a,1),d}),Object.keys(e).some(t=>!!e[t].length))throw new Error(`i18n postprocess: unmatched values - ${JSON.stringify(e)}`)}return Object.keys(t).length?n=(n=n.replace(Tp,(e,n,r,i,l,s)=>t.hasOwnProperty(r)?`${n}${t[r]}${s}`:e)).replace(Mp,(e,n)=>{if(t.hasOwnProperty(n)){const r=t[n];if(!r.length)throw new Error(`i18n postprocess: unmatched ICU - ${e} with key: ${n}`);return r.shift()}return e}):n}function $p(){!function(e){const t=hr(),n=jp[Bp--],r=e.data[n+An];let i=kr();const l=Kp(n,r.create,0,t);for(let s=n+1;s<=i.index-An;s++)-1===l.indexOf(s)&&Yp(s,t)}(hr()[un])}function qp(e,t,n,r){const i=kr(),l=bo(e,t,n,r,null);return i.next===l&&(i.next=null),l}function Kp(e,t,n,r){const i=hr()[wn];let l=null,s=null;const o=[];for(let a=0;a<t.length;a++){const n=t[a];if("string"==typeof n){const e=ga(n,i),r=t[++a];s=l,l=qp(r,3,e,null),o.push(r),Er(!1)}else if("number"==typeof n)switch(7&n){case 1:const i=n>>>17;let u;s=Gp(l,u=i===e?r[pn]:jn(i,r),s);break;case 0:const c=n>>>3;o.push(c),s=l,(l=jn(c,r))&&(xr(l),3===l.type&&Er(!0));break;case 5:s=l=jn(n>>>3,r),xr(l),Er(!1);break;case 4:ou(n>>>3,t[++a],t[++a]);break;default:throw new Error(`Unable to determine the type of mutate operation for "${n}"`)}else switch(n){case Jl:const e=t[++a],u=t[++a],c=i.createComment(e);s=l,l=qp(u,5,c,null),o.push(u),ni(c,r),l.activeCaseIndex=null,Er(!1);break;case Xl:const d=t[++a],h=t[++a];s=l,l=qp(h,3,i.createElement(d),d),o.push(h);break;default:throw new Error(`Unable to determine the type of mutate operation for "${n}"`)}}return Er(!1),o}function Yp(e,t){const n=jn(e,t),r=Fn(e,t);r&&Ta(t[wn],r);const i=Ba(e);if(Dn(i)){const e=i;0!==n.type&&Ta(t[wn],e[Mn])}}function Qp(e,t,n){Up(e,t,n),$p()}function Zp(e,t){const n=hr()[un];n.firstTemplatePass&&null===n.data[e+An]&&function(e,t,n){const r=kr().index-An,i=[];for(let l=0;l<n.length;l+=2){const e=n[l],t=n[l+1].split(xp);for(let n=0;n<t.length;n++){const l=t[n];1&n||""!==l&&(l.match(kp)?bp(Fp(l,r,e),i):ou(r,e,l))}}e.data[t+An]=i}(n,e,t)}let Xp=0,Jp=0;function em(e){e!==ts&&(Xp|=1<<Jp),Jp++}function tm(e){if(Jp){const t=hr(),n=t[un].data[e+An];let r,i=null;Array.isArray(n)?r=n:(r=n.update,i=n.icus),function e(t,n,r,i,l,s=!1){let o=!1;for(let a=0;a<t.length;a++){const u=t[a],c=t[++a];if(s||u&i){let s="";for(let u=a+1;u<=a+c;u++){const a=t[u];if("string"==typeof a)s+=a;else if("number"==typeof a)if(a<0)s+=Xt(l[r-a]);else{const c=a>>>2;let d,h,f;switch(3&a){case 1:ou(c,t[++u],s,t[++u]);break;case 0:uc(c,s);break;case 2:if(h=n[d=t[++u]],null!==(f=jn(c,l)).activeCaseIndex){const e=h.remove[f.activeCaseIndex];for(let t=0;t<e.length;t++){const r=e[t];switch(7&r){case 3:Yp(r>>>3,l);break;case 6:const i=jn(e[t+1]>>>3,l).activeCaseIndex;null!==i&&bp(n[r>>>3].remove[i],e)}}}const p=rm(h,s);f.activeCaseIndex=-1!==p?p:null,Kp(-1,h.create[p],0,l),o=!0;break;case 3:h=n[d=t[++u]],f=jn(c,l),e(h.update[f.activeCaseIndex],n,r,i,l,o)}}}}a+=c}}(r,i,t[mn]-Jp-1,Xp,t),Xp=0,Jp=0}}const nm=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}();function rm(e,t){let n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:{const r=function(e,n){switch(function(e,t){"string"==typeof t&&(t=parseInt(t,10));const n=t,r=n.toString().replace(/^[^.]*\.?/,""),i=Math.floor(Math.abs(n)),l=r.length,s=parseInt(r,10),o=parseInt(n.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0;switch(e.split("-")[0].toLowerCase()){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===n?nm.One:nm.Other;case"ak":case"ln":case"mg":case"pa":case"ti":return n===Math.floor(n)&&n>=0&&n<=1?nm.One:nm.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===i||1===n?nm.One:nm.Other;case"ar":return 0===n?nm.Zero:1===n?nm.One:2===n?nm.Two:n%100===Math.floor(n%100)&&n%100>=3&&n%100<=10?nm.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=99?nm.Many:nm.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===i&&0===l?nm.One:nm.Other;case"be":return n%10==1&&n%100!=11?nm.One:n%10===Math.floor(n%10)&&n%10>=2&&n%10<=4&&!(n%100>=12&&n%100<=14)?nm.Few:n%10==0||n%10===Math.floor(n%10)&&n%10>=5&&n%10<=9||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=14?nm.Many:nm.Other;case"br":return n%10==1&&n%100!=11&&n%100!=71&&n%100!=91?nm.One:n%10==2&&n%100!=12&&n%100!=72&&n%100!=92?nm.Two:n%10===Math.floor(n%10)&&(n%10>=3&&n%10<=4||n%10==9)&&!(n%100>=10&&n%100<=19||n%100>=70&&n%100<=79||n%100>=90&&n%100<=99)?nm.Few:0!==n&&n%1e6==0?nm.Many:nm.Other;case"bs":case"hr":case"sr":return 0===l&&i%10==1&&i%100!=11||s%10==1&&s%100!=11?nm.One:0===l&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)||s%10===Math.floor(s%10)&&s%10>=2&&s%10<=4&&!(s%100>=12&&s%100<=14)?nm.Few:nm.Other;case"cs":case"sk":return 1===i&&0===l?nm.One:i===Math.floor(i)&&i>=2&&i<=4&&0===l?nm.Few:0!==l?nm.Many:nm.Other;case"cy":return 0===n?nm.Zero:1===n?nm.One:2===n?nm.Two:3===n?nm.Few:6===n?nm.Many:nm.Other;case"da":return 1===n||0!==o&&(0===i||1===i)?nm.One:nm.Other;case"dsb":case"hsb":return 0===l&&i%100==1||s%100==1?nm.One:0===l&&i%100==2||s%100==2?nm.Two:0===l&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||s%100===Math.floor(s%100)&&s%100>=3&&s%100<=4?nm.Few:nm.Other;case"ff":case"fr":case"hy":case"kab":return 0===i||1===i?nm.One:nm.Other;case"fil":return 0===l&&(1===i||2===i||3===i)||0===l&&i%10!=4&&i%10!=6&&i%10!=9||0!==l&&s%10!=4&&s%10!=6&&s%10!=9?nm.One:nm.Other;case"ga":return 1===n?nm.One:2===n?nm.Two:n===Math.floor(n)&&n>=3&&n<=6?nm.Few:n===Math.floor(n)&&n>=7&&n<=10?nm.Many:nm.Other;case"gd":return 1===n||11===n?nm.One:2===n||12===n?nm.Two:n===Math.floor(n)&&(n>=3&&n<=10||n>=13&&n<=19)?nm.Few:nm.Other;case"gv":return 0===l&&i%10==1?nm.One:0===l&&i%10==2?nm.Two:0!==l||i%100!=0&&i%100!=20&&i%100!=40&&i%100!=60&&i%100!=80?0!==l?nm.Many:nm.Other:nm.Few;case"he":return 1===i&&0===l?nm.One:2===i&&0===l?nm.Two:0!==l||n>=0&&n<=10||n%10!=0?nm.Other:nm.Many;case"is":return 0===o&&i%10==1&&i%100!=11||0!==o?nm.One:nm.Other;case"ksh":return 0===n?nm.Zero:1===n?nm.One:nm.Other;case"kw":case"naq":case"se":case"smn":return 1===n?nm.One:2===n?nm.Two:nm.Other;case"lag":return 0===n?nm.Zero:0!==i&&1!==i||0===n?nm.Other:nm.One;case"lt":return n%10!=1||n%100>=11&&n%100<=19?n%10===Math.floor(n%10)&&n%10>=2&&n%10<=9&&!(n%100>=11&&n%100<=19)?nm.Few:0!==s?nm.Many:nm.Other:nm.One;case"lv":case"prg":return n%10==0||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19||2===l&&s%100===Math.floor(s%100)&&s%100>=11&&s%100<=19?nm.Zero:n%10==1&&n%100!=11||2===l&&s%10==1&&s%100!=11||2!==l&&s%10==1?nm.One:nm.Other;case"mk":return 0===l&&i%10==1||s%10==1?nm.One:nm.Other;case"mt":return 1===n?nm.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&n%100<=10?nm.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?nm.Many:nm.Other;case"pl":return 1===i&&0===l?nm.One:0===l&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?nm.Few:0===l&&1!==i&&i%10===Math.floor(i%10)&&i%10>=0&&i%10<=1||0===l&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===l&&i%100===Math.floor(i%100)&&i%100>=12&&i%100<=14?nm.Many:nm.Other;case"pt":return n===Math.floor(n)&&n>=0&&n<=2&&2!==n?nm.One:nm.Other;case"ro":return 1===i&&0===l?nm.One:0!==l||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&n%100<=19?nm.Few:nm.Other;case"ru":case"uk":return 0===l&&i%10==1&&i%100!=11?nm.One:0===l&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?nm.Few:0===l&&i%10==0||0===l&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===l&&i%100===Math.floor(i%100)&&i%100>=11&&i%100<=14?nm.Many:nm.Other;case"shi":return 0===i||1===n?nm.One:n===Math.floor(n)&&n>=2&&n<=10?nm.Few:nm.Other;case"si":return 0===n||1===n||0===i&&1===s?nm.One:nm.Other;case"sl":return 0===l&&i%100==1?nm.One:0===l&&i%100==2?nm.Two:0===l&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||0!==l?nm.Few:nm.Other;case"tzm":return n===Math.floor(n)&&n>=0&&n<=1||n===Math.floor(n)&&n>=11&&n<=99?nm.One:nm.Other;default:return nm.Other}}("en-US",t)){case nm.Zero:return"zero";case nm.One:return"one";case nm.Two:return"two";case nm.Few:return"few";case nm.Many:return"many";default:return"other"}}();-1===(n=e.cases.indexOf(r))&&"other"!==r&&(n=e.cases.indexOf("other"));break}case 0:n=e.cases.indexOf("other")}return n}function im(e,t,n,r){const i=[],l=[],s=[],o=[],a=[];for(let u=0;u<t.values.length;u++){const c=t.values[u],d=[];for(let e=0;e<c.length;e++){const t=c[e];if("string"!=typeof t){const n=d.push(t)-1;c[e]=`\x3c!--\ufffd${n}\ufffd--\x3e`}}const h=lm(c.join(""),n,d,e,r);i.push(h.create),l.push(h.remove),s.push(h.update),o.push(h.vars),a.push(h.childIcus)}e.push({type:t.type,vars:o,childIcus:a,cases:t.cases,create:i,remove:l,update:s}),zp+=Math.max(...o)}function lm(e,t,n,r,i){const l=new fl(document).getInertBodyElement(e);if(!l)throw new Error("Unable to generate inert body element");const s={vars:0,childIcus:[],create:[],remove:[],update:[]};return function e(t,n,r,i,l,s){if(t){const o=[];for(;t;){const a=t.nextSibling,u=s+ ++n.vars;switch(t.nodeType){case Node.ELEMENT_NODE:const a=t,c=a.tagName.toLowerCase();if(kl.hasOwnProperty(c)){n.create.push(Xl,c,u,r<<17|1);const o=a.attributes;for(let e=0;e<o.length;e++){const t=o.item(e),r=t.name.toLowerCase();t.value.match(kp)?Al.hasOwnProperty(r)&&bp(xl[r]?Fp(t.value,u,t.name,gl):Il[r]?Fp(t.value,u,t.name,yl):Fp(t.value,u,t.name),n.update):n.create.push(u<<3|4,t.name,t.value)}e(t.firstChild,n,u,i,l,s),n.remove.push(u<<3|3)}else n.vars--;break;case Node.TEXT_NODE:const d=t.textContent||"",h=d.match(kp);n.create.push(h?"":d,u,r<<17|1),n.remove.push(u<<3|3),h&&bp(Fp(d,u),n.update);break;case Node.COMMENT_NODE:const f=sm.exec(t.textContent||"");if(f){const e=parseInt(f[1],10);n.create.push(Jl,"",u,r<<17|1),o.push([i[e],u])}else n.vars--;break;default:n.vars--}t=a}for(let e=0;e<o.length;e++){const t=o[e][0],r=o[e][1];im(l,t,r,s+n.vars);const i=l.length-1;n.vars+=Math.max(...l[i].vars),n.childIcus.push(i);const a=Vp(t);n.update.push(Lp(t.mainBinding),3,-1-t.mainBinding,r<<2|2,i,a,2,r<<2|3,i),n.remove.push(i<<3|6,r<<3|3)}}}((Dl(l)||l).firstChild,s,t,n,r,i),s}const sm=/\ufffd(\d+)\ufffd/;let om={};function am(e={translations:{}}){om=e.translations}const um=/\{\$(.*?)\}/g;function cm(e,t={}){return void 0!==om[e]&&(e=om[e]),Object.keys(t).length?e.replace(um,(e,n)=>t[n]||""):e}const dm={provide:gd,useClass:class extends gd{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=qt(e);return new gp(t,this.ngModule)}},deps:[vd]};class hm extends vd{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[];const n=Zt(e);this._bootstrapComponents=on(n.bootstrap),this._r3Injector=Qc(e,t,[{provide:vd,useValue:this},dm],R(e)),this.instance=this.get(e)}get(e,t=xe.THROW_IF_NOT_FOUND,n=C.Default){return e===xe||e===vd||e===Se?this:this._r3Injector.get(e,t,n)}get componentFactoryResolver(){return this.get(gd)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class fm extends wd{constructor(e){super(),this.moduleType=e}create(e){return new hm(this.moduleType,e)}}function pm(e,t,n,r){return At(()=>{const i=e,l=i.prototype?Object.getPrototypeOf(i.prototype):null,s=l&&l.constructor;null!==t&&(void 0===i.decorators||s&&s.decorators===i.decorators?i.decorators=t:i.decorators.push(...t)),null!==n&&(i.ctorParameters=n),null!==r&&(i.propDecorators=void 0===i.propDecorators||s&&s.propDecorators===i.propDecorators?r:Object.assign({},i.propDecorators,r))})}function mm(e,t,n){const r=Dr()+e,i=hr();return Tr()?Pu(i,r,n?t.call(n):t()):Ou(i,r)}function gm(e,t,n,r){const i=hr(),l=Dr()+e;return Nu(i,l,n)?Pu(i,l+1,r?t.call(r,n):t(n)):Ou(i,l+1)}function ym(e,t,n,r,i){const l=Dr()+e,s=hr();return Du(s,l,n,r)?Pu(s,l+2,i?t.call(i,n,r):t(n,r)):Ou(s,l+2)}function bm(e,t,n,r,i,l){const s=Dr()+e,o=hr();return Fu(o,s,n,r,i)?Pu(o,s+3,l?t.call(l,n,r,i):t(n,r,i)):Ou(o,s+3)}function vm(e,t,n,r,i,l,s){const o=Dr()+e,a=hr();return Vu(a,o,n,r,i,l)?Pu(a,o+4,s?t.call(s,n,r,i,l):t(n,r,i,l)):Ou(a,o+4)}function wm(e,t,n,r,i,l,s,o){const a=Dr()+e,u=hr(),c=Vu(u,a,n,r,i,l);return Nu(u,a+4,s)||c?Pu(u,a+5,o?t.call(o,n,r,i,l,s):t(n,r,i,l,s)):Ou(u,a+5)}function Cm(e,t,n,r,i,l,s,o,a){const u=Dr()+e,c=hr(),d=Vu(c,u,n,r,i,l);return Du(c,u+4,s,o)||d?Pu(c,u+6,a?t.call(a,n,r,i,l,s,o):t(n,r,i,l,s,o)):Ou(c,u+6)}function _m(e,t,n,r,i,l,s,o,a,u){const c=Dr()+e,d=hr();let h=Vu(d,c,n,r,i,l);return Fu(d,c+4,s,o,a)||h?Pu(d,c+7,u?t.call(u,n,r,i,l,s,o,a):t(n,r,i,l,s,o,a)):Ou(d,c+7)}function Sm(e,t,n,r,i,l,s,o,a,u,c){const d=Dr()+e,h=hr(),f=Vu(h,d,n,r,i,l);return Vu(h,d+4,s,o,a,u)||f?Pu(h,d+8,c?t.call(c,n,r,i,l,s,o,a,u):t(n,r,i,l,s,o,a,u)):Ou(h,d+8)}function km(e,t,n,r){let i=Dr()+e,l=!1;const s=hr();for(let o=0;o<n.length;o++)Nu(s,i++,n[o])&&(l=!0);return l?Pu(s,i,t.apply(r,n)):Ou(s,i)}function xm(e,t){const n=hr()[un];let r;const i=e+An;n.firstTemplatePass?(r=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}throw new Error(`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(i,r.onDestroy)):r=n.data[i];const l=r.factory(null);return Va(e,l),l}function Im(e,t,n){const r=Ba(e);return Pm(Rm(e)?gm(t,r.transform,n,r):r.transform(n))}function Am(e,t,n,r){const i=Ba(e);return Pm(Rm(e)?ym(t,i.transform,n,r,i):i.transform(n,r))}function Em(e,t,n,r,i){const l=Ba(e);return Pm(Rm(e)?bm(t,l.transform,n,r,i,l):l.transform(n,r,i))}function Tm(e,t,n,r,i,l){const s=Ba(e);return Pm(Rm(e)?vm(t,s.transform,n,r,i,l,s):s.transform(n,r,i,l))}function Mm(e,t,n){const r=Ba(e);return Pm(Rm(e)?km(t,r.transform,n,r):r.transform.apply(r,n))}function Rm(e){return hr()[un].data[e+An].pure}function Pm(e){if(Tu.isWrapped(e)){e=Tu.unwrap(e);const t=hr();t[t[mn]]=ts}return e}class Om extends r.a{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let r,l=e=>null,s=()=>null;e&&"object"==typeof e?(r=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(l=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(s=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(l=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(s=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(r,l,s);return e instanceof i.a&&e.add(o),o}}class Nm{constructor(){this.dirty=!0,this._results=[],this.changes=new Om,this.length=0}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}[Iu()](){return this._results[Iu()]()}toString(){return this._results.toString()}reset(e){this._results=vp(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class Dm{constructor(e,t,n){this.parent=e,this.shallow=t,this.deep=n}track(e,t,n,r){n?this.deep=qm(this.deep,e,t,null!=r?r:null):this.shallow=qm(this.shallow,e,t,null!=r?r:null)}clone(){return new Dm(this,null,this.deep)}container(){const e=Fm(this.shallow),t=Fm(this.deep);return e||t?new Dm(this,e,t):null}createView(){const e=Vm(this.shallow),t=Vm(this.deep);return e||t?new Dm(this,e,t):null}insertView(e){jm(e,this.shallow),jm(e,this.deep)}addNode(e){Gm(this.deep,e,!1),Gm(this.shallow,e,!1)}insertNodeBeforeViews(e){Gm(this.deep,e,!0),Gm(this.shallow,e,!0)}removeView(){Bm(this.shallow),Bm(this.deep)}}function Fm(e){let t=null;for(;e;){const n=[];e.values.push(n),t={next:t,list:e.list,predicate:e.predicate,values:n,containerValues:null},e=e.next}return t}function Vm(e){let t=null;for(;e;)t={next:t,list:e.list,predicate:e.predicate,values:[],containerValues:e.values},e=e.next;return t}function jm(e,t){for(;t;)t.containerValues.splice(e,0,t.values),t.values.length&&t.list.setDirty(),t=t.next}function Bm(e){for(;e;){const t=e.containerValues,n=t.indexOf(e.values);t.splice(n,1)[0].length&&e.list.setDirty(),e=e.next}}function Lm(e,t){const n=e.localNames;if(n)for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function Hm(e,t,n){const r=e[Dt];if("function"==typeof r)return r();{const r=Ui(t,n,e,!1,!1);if(null!==r)return zi(n[un].data,n,r,t)}return null}function Um(e,t,n,r){const i=e[Dt]();return r?i?Hm(r,t,n):null:i}function zm(e,t,n,r){return n?Hm(n,e,t):r>-1?zi(t[un].data,t,r,e):function(e,t){return 3===e.type||4===e.type?Id(Md,e,t):0===e.type?Ad(ah,Md,e,t):null}(e,t)}function Gm(e,t,n){const r=hr();for(;e;){const i=e.predicate,l=i.type;if(l){let s=null;if(l===ah)s=Um(l,t,r,i.read);else{const e=Ui(t,r,l,!1,!1);null!==e&&(s=zm(t,r,i.read,e))}null!==s&&Wm(e,s,n)}else{const l=i.selector;for(let s=0;s<l.length;s++){const o=Lm(t,l[s]);if(null!==o){const l=zm(t,r,i.read,o);null!==l&&Wm(e,l,n)}}}e=e.next}}function Wm(e,t,n){n?e.values.splice(-1,0,t):e.values.push(t),e.list.setDirty()}function $m(e,t){const n=Array.isArray(e);return{type:n?null:e,selector:n?e:null,read:t}}function qm(e,t,n,r){return{next:e,list:t,predicate:$m(n,r),values:t._valuesTree,containerValues:null}}function Km(e,t,n){const r=hr(),i=new Nm,l=r[fn]||(r[fn]=new Dm(null,null,null));return i._valuesTree=[],i._static=!1,l.track(i,e,t,n),function(e,t,n){const r=na(e);r.push(t),e[un].firstTemplatePass&&ra(e).push(n,r.length-1)}(r,i,i.destroy),i}function Ym(e){const t=e,n=Tr();return!(!e.dirty||n!==t._static||(e.reset(t._valuesTree||[]),e.notifyOnChanges(),0))}function Qm(e,t,n){const r=Zm(e,t,n),i=hr()[un];r._static=!0,i.staticViewQueries||(i.staticViewQueries=!0)}function Zm(e,t,n){const r=hr()[un];r.firstTemplatePass&&r.expandoStartIndex++;const i=jr(),l=Km(e,t,n);return Va(i-An,l),Br(i+1),l}function Xm(){const e=jr();return Br(e+1),Ba(e-An)}function Jm(e,t,n,r){const i=hr(),l=i[un],s=Km(t,n,r);if((i[kn]||(i[kn]=[])).push(s),l.firstTemplatePass){const t=l.contentQueries||(l.contentQueries=[]);e!==(l.contentQueries.length?l.contentQueries[l.contentQueries.length-1]:-1)&&t.push(e)}return s}function eg(e,t,n,r){const i=Jm(e,t,n,r),l=hr()[un];i._static=!0,l.staticContentQueries||(l.staticContentQueries=!0)}function tg(){const e=hr(),t=jr();return Br(t+1),e[kn][t]}function ng(e,t){return Ad(ah,Md,e,t)}class rg{}const ig=new Map;function lg(e,t){const n=ig.get(e);sg(e,n&&n.moduleType,t.moduleType),ig.set(e,t)}function sg(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${R(t)} vs ${R(t.name)}`)}function og(e,t){sg(e,ig.get(e),t),ig.set(e,t)}function ag(e){const t=ig.get(e);if(!t)throw dg(e);return t}function ug(e){const t=ig.get(e);if(!t)throw dg(e);return new fm(t)}const cg=ag;function dg(e){return new Error(`No module with ID ${e} loaded`)}const hg=(()=>({"\u0275\u0275defineBase":Gt,"\u0275\u0275defineComponent":Vt,"\u0275\u0275defineDirective":Wt,"\u0275\u0275defineInjectable":k,"\u0275\u0275defineInjector":I,"\u0275\u0275defineNgModule":Ht,"\u0275\u0275definePipe":$t,"\u0275\u0275directiveInject":La,"\u0275\u0275getFactoryOf":qi,"\u0275\u0275getInheritedFactory":Ki,"\u0275\u0275inject":z,"\u0275\u0275injectAttribute":Ha,"\u0275\u0275templateRefExtractor":ng,"\u0275\u0275NgOnChangesFeature":Dc,"\u0275\u0275ProvidersFeature":cd,"\u0275\u0275InheritDefinitionFeature":Lc,"\u0275\u0275elementAttribute":ou,"\u0275\u0275bind":Bu,"\u0275\u0275container":Ra,"\u0275\u0275nextContext":Cu,"\u0275\u0275containerRefreshStart":Oa,"\u0275\u0275containerRefreshEnd":Na,"\u0275\u0275namespaceHTML":Yr,"\u0275\u0275namespaceMathML":Kr,"\u0275\u0275namespaceSVG":qr,"\u0275\u0275enableBindings":cr,"\u0275\u0275disableBindings":dr,"\u0275\u0275allocHostVars":aa,"\u0275\u0275elementStart":iu,"\u0275\u0275elementEnd":lu,"\u0275\u0275element":su,"\u0275\u0275elementContainerStart":uu,"\u0275\u0275elementContainerEnd":cu,"\u0275\u0275pureFunction0":mm,"\u0275\u0275pureFunction1":gm,"\u0275\u0275pureFunction2":ym,"\u0275\u0275pureFunction3":bm,"\u0275\u0275pureFunction4":vm,"\u0275\u0275pureFunction5":wm,"\u0275\u0275pureFunction6":Cm,"\u0275\u0275pureFunction7":_m,"\u0275\u0275pureFunction8":Sm,"\u0275\u0275pureFunctionV":km,"\u0275\u0275getCurrentView":fu,"\u0275\u0275restoreView":Sr,"\u0275\u0275interpolation1":zu,"\u0275\u0275interpolation2":Gu,"\u0275\u0275interpolation3":Wu,"\u0275\u0275interpolation4":$u,"\u0275\u0275interpolation5":qu,"\u0275\u0275interpolation6":Ku,"\u0275\u0275interpolation7":Yu,"\u0275\u0275interpolation8":Qu,"\u0275\u0275interpolationV":Uu,"\u0275\u0275listener":gu,"\u0275\u0275load":Ba,"\u0275\u0275projection":ku,"\u0275\u0275elementProperty":Lu,"\u0275\u0275componentHostSyntheticProperty":Hu,"\u0275\u0275componentHostSyntheticListener":yu,"\u0275\u0275pipeBind1":Im,"\u0275\u0275pipeBind2":Am,"\u0275\u0275pipeBind3":Em,"\u0275\u0275pipeBind4":Tm,"\u0275\u0275pipeBindV":Mm,"\u0275\u0275projectionDef":Su,"\u0275\u0275property":ju,"\u0275\u0275propertyInterpolate":Zu,"\u0275\u0275propertyInterpolate1":Xu,"\u0275\u0275propertyInterpolate2":Ju,"\u0275\u0275propertyInterpolate3":ec,"\u0275\u0275propertyInterpolate4":tc,"\u0275\u0275propertyInterpolate5":nc,"\u0275\u0275propertyInterpolate6":rc,"\u0275\u0275propertyInterpolate7":ic,"\u0275\u0275propertyInterpolate8":lc,"\u0275\u0275propertyInterpolateV":sc,"\u0275\u0275pipe":xm,"\u0275\u0275queryRefresh":Ym,"\u0275\u0275viewQuery":Zm,"\u0275\u0275staticViewQuery":Qm,"\u0275\u0275staticContentQuery":eg,"\u0275\u0275loadViewQuery":Xm,"\u0275\u0275contentQuery":Jm,"\u0275\u0275loadContentQuery":tg,"\u0275\u0275reference":ja,"\u0275\u0275elementHostAttrs":au,"\u0275\u0275elementStyling":Ua,"\u0275\u0275elementStylingMap":Za,"\u0275\u0275elementStyleProp":Wa,"\u0275\u0275elementStylingApply":Ja,"\u0275\u0275elementClassProp":Ka,"\u0275\u0275elementHostStyling":za,"\u0275\u0275elementHostStylingMap":Xa,"\u0275\u0275elementHostStyleProp":$a,"\u0275\u0275elementHostStylingApply":eu,"\u0275\u0275elementHostClassProp":Ya,"\u0275\u0275select":oc,"\u0275\u0275template":Pa,"\u0275\u0275text":ac,"\u0275\u0275textBinding":uc,"\u0275\u0275embeddedViewStart":du,"\u0275\u0275embeddedViewEnd":hu,"\u0275\u0275i18n":Qp,"\u0275\u0275i18nAttributes":Zp,"\u0275\u0275i18nExp":em,"\u0275\u0275i18nStart":Up,"\u0275\u0275i18nEnd":$p,"\u0275\u0275i18nApply":tm,"\u0275\u0275i18nPostprocess":Wp,"\u0275\u0275i18nLocalize":cm,"\u0275\u0275resolveWindow":tn,"\u0275\u0275resolveDocument":nn,"\u0275\u0275resolveBody":rn,"\u0275\u0275setComponentScope":jt,"\u0275\u0275setNgModuleScope":Ut,"\u0275\u0275sanitizeHtml":Hl,"\u0275\u0275sanitizeStyle":Ul,"\u0275\u0275defaultStyleSanitizer":Kl,"\u0275\u0275sanitizeResourceUrl":Gl,"\u0275\u0275sanitizeScript":Wl,"\u0275\u0275sanitizeUrl":zl,"\u0275\u0275sanitizeUrlOrResourceUrl":ql,"\u0275registerNgModuleType":og}))(),fg=[],pg=[];let mg=!1;function gg(){if(!mg){mg=!0;try{for(let e=pg.length-1;e>=0;e--){const{moduleType:t,ngModule:n}=pg[e];n.declarations&&n.declarations.every(yg)&&(pg.splice(e,1),Sg(t,n))}}finally{mg=!1}}}function yg(e){return Array.isArray(e)?e.every(yg):!!N(e)}function bg(e,t={}){vg(e,t),function(e,t){pg.push({moduleType:e,ngModule:t})}(e,t)}function vg(e,t){const n=vp(t.declarations||fg);let r=null;Object.defineProperty(e,Ot,{configurable:!0,get:()=>(null===r&&(r=V().compileNgModule(hg,`ng:///${e.name}/ngModuleDef.js`,{type:e,bootstrap:vp(t.bootstrap||fg).map(N),declarations:n.map(N),imports:vp(t.imports||fg).map(N).map(Ig),exports:vp(t.exports||fg).map(N).map(Ig),emitInline:!0,schemas:t.schemas?vp(t.schemas):null})),r)}),t.id&&og(t.id,e);let i=null;Object.defineProperty(e,M,{get:()=>{if(null===i){const n={name:e.name,type:e,deps:le(e),providers:t.providers||fg,imports:[(t.imports||fg).map(N),(t.exports||fg).map(N)]};i=V().compileInjector(hg,`ng:///${e.name}/ngInjectorDef.js`,n)}return i},configurable:!1})}let wg=new Map,Cg=new Map;function _g(){wg=new Map,Cg=new Map,pg.length=0}function Sg(e,t){const n=vp(t.declarations||fg),r=xg(e);n.forEach(t=>{t.hasOwnProperty(Mt)?kg(qt(t),r):t.hasOwnProperty(Rt)||t.hasOwnProperty(Pt)||(t.ngSelectorScope=e)})}function kg(e,t){e.directiveDefs=(()=>Array.from(t.compilation.directives).map(e=>e.hasOwnProperty(Mt)?qt(e):Kt(e)).filter(e=>!!e)),e.pipeDefs=(()=>Array.from(t.compilation.pipes).map(e=>Yt(e))),e.schemas=t.schemas,e.template.ngPrivateData=void 0}function xg(e,t){if(!Ag(e))throw new Error(`${e.name} does not have an ngModuleDef`);const n=Zt(e);if(null!==n.transitiveCompileScopes)return n.transitiveCompileScopes;const r={schemas:n.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return on(n.declarations).forEach(e=>{Yt(e)?r.compilation.pipes.add(e):r.compilation.directives.add(e)}),on(n.imports).forEach(e=>{const n=e;if(!Ag(n))throw new Error(`Importing ${n.name} which does not have an ngModuleDef`);t&&t(n);const i=xg(n,t);i.exported.directives.forEach(e=>r.compilation.directives.add(e)),i.exported.pipes.forEach(e=>r.compilation.pipes.add(e))}),on(n.exports).forEach(e=>{const n=e;if(Ag(n)){const e=xg(n,t);e.exported.directives.forEach(e=>{r.compilation.directives.add(e),r.exported.directives.add(e)}),e.exported.pipes.forEach(e=>{r.compilation.pipes.add(e),r.exported.pipes.add(e)})}else Yt(n)?r.exported.pipes.add(n):r.exported.directives.add(n)}),n.transitiveCompileScopes=r,r}function Ig(e){return function(e){return void 0!==e.ngModule}(e)?e.ngModule:e}function Ag(e){return!!Zt(e)}function Eg(e,t){let n=null;!function(e,t){St(t)&&(Ct.set(e,t),_t.add(e))}(e,t),Object.defineProperty(e,Mt,{get:()=>{const r=V();if(null===n){if(St(t)){const n=[`Component '${e.name}' is not resolved:`];throw t.templateUrl&&n.push(` - templateUrl: ${t.templateUrl}`),t.styleUrls&&t.styleUrls.length&&n.push(` - styleUrls: ${JSON.stringify(t.styleUrls)}`),n.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(n.join("\n"))}const i=t.templateUrl||`ng:///${e.name}/template.html`,l=Object.assign({},Rg(e,t),{typeSourceSpan:r.createParseSourceSpan("Component",e.name,i),template:t.template||"",preserveWhitespaces:t.preserveWhitespaces||!1,styles:t.styles||Tt,animations:t.animations,directives:[],changeDetection:t.changeDetection,pipes:new Map,encapsulation:t.encapsulation||It.Emulated,interpolation:t.interpolation,viewProviders:t.viewProviders||null});if(l.usesInheritance&&Pg(e),n=r.compileComponent(hg,i,l),gg(),function(t){return void 0!==e.ngSelectorScope}()){const t=xg(e.ngSelectorScope);kg(n,t)}}return n},configurable:!1}),oe(e)}function Tg(e,t){let n=null;Object.defineProperty(e,Rt,{get:()=>{if(null===n){const r=e&&e.name,i=`ng:///${r}/ngDirectiveDef.js`,l=V(),s=Rg(e,t);s.typeSourceSpan=l.createParseSourceSpan("Directive",r,i),s.usesInheritance&&Pg(e),n=l.compileDirective(hg,i,s)}return n},configurable:!1}),oe(e)}function Mg(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function Rg(e,t){const n=ie().ownPropMetadata(e);return{name:e.name,type:e,typeArgumentCount:0,selector:t.selector,deps:le(e),host:t.host||Et,propMetadata:n,inputs:t.inputs||Tt,outputs:t.outputs||Tt,queries:Fg(e,n,Vg),lifecycle:{usesOnChanges:e.prototype.hasOwnProperty("ngOnChanges")},typeSourceSpan:null,usesInheritance:!Mg(e),exportAs:(r=t.exportAs,void 0===r?null:r.split(",").map(e=>e.trim())),providers:t.providers||null,viewQueries:Fg(e,n,jg)};var r}function Pg(e){const t=Object.prototype;let n=Object.getPrototypeOf(e);for(;n&&n!==t;){if(!Kt(n)&&!qt(n)&&!Qt(n)){const e=Ng(n);e&&Og(n,e)}n=Object.getPrototypeOf(n)}}function Og(e,t){let n=null;Object.defineProperty(e,Nt,{get:()=>{if(null===n){const r=`ng://${e&&e.name}/ngBaseDef.js`,i=V();n=i.compileBase(hg,r,t)}return n},configurable:!1})}function Ng(e){const t=ie().ownPropMetadata(e),n=Fg(e,t,jg),r=Fg(e,t,Vg);let i,l;for(const s in t)t[s].forEach(e=>{"Input"===e.ngMetadataName?(i=i||{})[s]=e.bindingPropertyName?[e.bindingPropertyName,s]:s:"Output"===e.ngMetadataName&&((l=l||{})[s]=e.bindingPropertyName||s)});return i||l||n.length||r.length?{inputs:i,outputs:l,viewQueries:n,queries:r}:null}function Dg(e,t){return{propertyName:e,predicate:(n=t.selector,"string"==typeof n?n.split(",").map(e=>e.trim()):N(n)),descendants:t.descendants,first:t.first,read:t.read?t.read:null,static:!!t.static};var n}function Fg(e,t,n){const r=[];for(const i in t)if(t.hasOwnProperty(i)){const l=t[i];l.forEach(t=>{if(n(t)){if(!t.selector)throw new Error(`Can't construct a query for the property "${i}" of `+`"${Jt(e)}" since the query selector wasn't defined.`);if(l.some(Bg))throw new Error("Cannot combine @Input decorators with query decorators");r.push(Dg(i,t))}})}return r}function Vg(e){const t=e.ngMetadataName;return"ContentChild"===t||"ContentChildren"===t}function jg(e){const t=e.ngMetadataName;return"ViewChild"===t||"ViewChildren"===t}function Bg(e){return"Input"===e.ngMetadataName}function Lg(e,t){let n=null;Object.defineProperty(e,Pt,{get:()=>{if(null===n){const r=e.name;n=V().compilePipe(hg,`ng:///${r}/ngPipeDef.js`,{type:e,typeArgumentCount:0,name:r,deps:le(e),pipeName:t.name,pure:void 0===t.pure||t.pure})}return n},configurable:!1})}const Hg=d("Directive",(e={})=>e,void 0,void 0,(e,t)=>Xg(e,t)),Ug=d("Component",(e={})=>Object.assign({changeDetection:yt.Default},e),Hg,void 0,(e,t)=>Zg(e,t)),zg=d("Pipe",e=>Object.assign({pure:!0},e),void 0,void 0,(e,t)=>Jg(e,t)),Gg=p("Input",e=>({bindingPropertyName:e})),Wg=p("Output",e=>({bindingPropertyName:e})),$g=p("HostBinding",e=>({hostPropertyName:e})),qg=p("HostListener",(e,t)=>({eventName:e,args:t})),Kg=Eg,Yg=Tg,Qg=Lg,Zg=Td,Xg=Td,Jg=Td,ey=d("NgModule",e=>e,void 0,void 0,(e,t)=>ny(e,t)),ty=bg,ny=function(e,t){let n=t&&t.imports||[];t&&t.exports&&(n=[...n,t.exports]),e.ngInjectorDef=I({factory:me(e,{useClass:e}),providers:t&&t.providers,imports:n})},ry=new ve("Application Initializer"),iy=(()=>(class{constructor(e){this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const t=this.appInits[n]();pu(t)&&e.push(t)}Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}))(),ly=new ve("AppId");function sy(){return`${ay()}${ay()}${ay()}`}const oy={provide:ly,useFactory:sy,deps:[]};function ay(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const uy=new ve("Platform Initializer"),cy=new ve("Platform ID"),dy=new ve("appBootstrapListener"),hy=new ve("Application Packages Root URL"),fy=(()=>(class{log(e){console.log(e)}warn(e){console.warn(e)}}))();class py{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}function my(){throw new Error("Runtime compiler is not loaded")}const gy=function(e){return new fm(e)},yy=my,by=function(e){return Promise.resolve(gy(e))},vy=my,wy=function(e){const t=gy(e),n=on(Zt(e).declarations).reduce((e,t)=>{const n=qt(t);return n&&e.push(new gp(n)),e},[]);return new py(t,n)},Cy=my,_y=function(e){return Promise.resolve(wy(e))},Sy=my,ky=(()=>(class{constructor(){this.compileModuleSync=yy,this.compileModuleAsync=vy,this.compileModuleAndAllComponentsSync=Cy,this.compileModuleAndAllComponentsAsync=Sy}clearCache(){}clearCacheFor(e){}getModuleId(e){}}))(),xy=new ve("compilerOptions");class Iy{}let Ay,Ey;function Ty(){const e=F.wtf;return!(!e||!(Ay=e.trace)||(Ey=Ay.events,0))}function My(e,t=null){return Ey.createScope(e,t)}function Ry(e,t){return Ay.leaveScope(e,t),t}function Py(e,t){return Ay.beginTimeRange(e,t)}function Oy(e){Ay.endTimeRange(e)}const Ny=Ty(),Dy=Ny?My:(e,t)=>(function(e,t){return null}),Fy=Ny?Ry:(e,t)=>t,Vy=Ny?Py:(e,t)=>null,jy=Ny?Oy:e=>null,By=(()=>Promise.resolve(0))();function Ly(e){"undefined"==typeof Zone?By.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Hy{constructor({enableLongStackTrace:e=!1}){if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Om(!1),this.onMicrotaskEmpty=new Om(!1),this.onStable=new Om(!1),this.onError=new Om(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");var t;Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(t=this)._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,r,i,l,s)=>{try{return Wy(t),e.invokeTask(r,i,l,s)}finally{$y(t)}},onInvoke:(e,n,r,i,l,s,o)=>{try{return Wy(t),e.invoke(r,i,l,s,o)}finally{$y(t)}},onHasTask:(e,n,r,i)=>{e.hasTask(r,i),n===r&&("microTask"==i.change?(t.hasPendingMicrotasks=i.microTask,Gy(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(e,n,r,i)=>(e.handleError(r,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Hy.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Hy.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,r){const i=this._inner,l=i.scheduleEventTask("NgZoneEvent: "+r,e,zy,Uy,Uy);try{return i.runTask(l,t,n)}finally{i.cancelTask(l)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}function Uy(){}const zy={};function Gy(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Wy(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function $y(e){e._nesting--,Gy(e)}class qy{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Om,this.onMicrotaskEmpty=new Om,this.onStable=new Om,this.onError=new Om}run(e){return e()}runGuarded(e){return e()}runOutsideAngular(e){return e()}runTask(e){return e()}}const Ky=(()=>(class{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Hy.assertNotInAngularZone(),Ly(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Ly(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let r=-1;t&&t>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==r),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}whenStable(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}))(),Yy=(()=>{class e{constructor(){this._applications=new Map,Jy.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return Jy.findTestabilityInTree(this,e,t)}}return e.ctorParameters=(()=>[]),e})();class Qy{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}function Zy(e){Jy=e}let Xy,Jy=new Qy;function eb(e,t,n){const r=new fm(n);if(0===Ct.size)return Promise.resolve(r);const i=function(e){const t=[];return e.forEach(e=>e&&t.push(...e)),t}(e.get(xy,[]).concat(t).map(e=>e.providers));if(0===i.length)return Promise.resolve(r);const l=V(),s=xe.create({providers:i}).get(l.ResourceLoader);return wt(e=>Promise.resolve(s.get(e))).then(()=>r)}let tb=function(e){return e instanceof bd};function nb(e){return e.isBoundToModule}const rb=new ve("AllowMultipleToken");class ib{constructor(e,t){this.name=e,this.token=t}}function lb(e){if(Xy&&!Xy.destroyed&&!Xy.injector.get(rb,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Xy=e.get(cb);const t=e.get(uy,null);return t&&t.forEach(e=>e()),Xy}function sb(e,t,n=[]){const r=`Platform: ${t}`,i=new ve(r);return(t=[])=>{let l=ub();if(!l||l.injector.get(rb,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{const e=n.concat(t).concat({provide:i,useValue:!0});lb(xe.create({providers:e,name:r}))}return ob(i)}}function ob(e){const t=ub();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}function ab(){Xy&&!Xy.destroyed&&Xy.destroy()}function ub(){return Xy&&!Xy.destroyed?Xy:null}const cb=(()=>(class{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n="noop"===(i=t?t.ngZone:void 0)?new qy:("zone.js"===i?void 0:i)||new Hy({enableLongStackTrace:dl()}),r=[{provide:Hy,useValue:n}];var i;return n.run(()=>{const t=xe.create({providers:r,parent:this.injector,name:e.moduleType.name}),i=e.create(t),l=i.injector.get(Xi,null);if(!l)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(()=>fb(this._modules,i)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{l.handleError(e)}})),function(e,t,n){try{const i=n();return pu(i)?i.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):i}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(l,n,()=>{const e=i.injector.get(iy);return e.runInitializers(),e.donePromise.then(()=>(this._moduleDoBootstrap(i),i))})})}bootstrapModule(e,t=[]){const n=db({},t);return function(e,t,n){return e.get(Iy).createCompiler([t]).compileModuleAsync(n)}(this.injector,n,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(hb);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${R(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. `+"Please define one of these.");e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}))();function db(e,t){return Array.isArray(t)?t.reduce(db,e):Object.assign({},e,t)}const hb=(()=>{class e{constructor(e,t,n,r,i,a){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=dl(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const u=new l.a(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),c=new l.a(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{Hy.assertNotInAngularZone(),Ly(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Hy.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(s.a)(u,c.pipe(Object(o.a)()))}bootstrap(e,t){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=e instanceof hd?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const r=tb(n)?null:this._injector.get(vd),i=n.create(xe.NULL,[],t||n.selector,r);i.onDestroy(()=>{this._unloadComponent(i)});const l=i.injector.get(Ky,null);return l&&i.injector.get(Yy).registerApplication(i.location.nativeElement,l),this._loadComponent(i),dl()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");const t=e._tickScope();try{this._runningTick=!0;for(let e of this._views)e.detectChanges();if(this._enforceNoNewChanges)for(let e of this._views)e.checkNoChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1,Fy(t)}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;fb(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(dy,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),fb(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e._tickScope=Dy("ApplicationRef#tick()"),e})();function fb(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const pb=!0,mb=!1;class gb{}const yb={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},bb=(()=>(class{constructor(e,t){this._compiler=e,this._config=t||yb}load(e){return!mb&&this._compiler instanceof ky?this.loadFactory(e):this.loadAndCompile(e)}loadAndCompile(e){let[t,r]=e.split("#");return void 0===r&&(r="default"),n("zn8P")(t).then(e=>e[r]).then(e=>vb(e,t,r)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,r]=e.split("#"),i="NgFactory";return void 0===r&&(r="default",i=""),n("zn8P")(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[r+i]).then(e=>vb(e,t,r))}}))();function vb(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}class wb extends nh{}class Cb extends wb{}class _b{constructor(e,t){this.name=e,this.callback=t}}class Sb{constructor(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof kb&&t.addChild(this)}get injector(){return this._debugContext.injector}get componentInstance(){return this._debugContext.component}get context(){return this._debugContext.context}get references(){return this._debugContext.references}get providerTokens(){return this._debugContext.providerTokens}}class kb extends Sb{constructor(e,t,n){super(e,t,n),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=e}addChild(e){e&&(this.childNodes.push(e),e.parent=this)}removeChild(e){const t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))}insertChildrenAfter(e,t){const n=this.childNodes.indexOf(e);-1!==n&&(this.childNodes.splice(n+1,0,...t),t.forEach(t=>{t.parent&&t.parent.removeChild(t),e.parent=this}))}insertBefore(e,t){const n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))}query(e){return this.queryAll(e)[0]||null}queryAll(e){const t=[];return function e(t,n,r){t.childNodes.forEach(t=>{t instanceof kb&&(n(t)&&r.push(t),e(t,n,r))})}(this,e,t),t}queryAllNodes(e){const t=[];return function e(t,n,r){t instanceof kb&&t.childNodes.forEach(t=>{n(t)&&r.push(t),t instanceof kb&&e(t,n,r)})}(this,e,t),t}get children(){return this.childNodes.filter(e=>e instanceof kb)}triggerEventHandler(e,t){this.listeners.forEach(n=>{n.name==e&&n.callback(t)})}}function xb(e){return e.map(e=>e.nativeElement)}class Ib{constructor(e){this.nativeNode=e}get parent(){const e=this.nativeNode.parentNode;return e?new Ab(e):null}get injector(){return gc(this.nativeNode)}get componentInstance(){const e=this.nativeNode;return e&&(hc(e)||pc(e))}get context(){return fc(this.nativeNode)}get listeners(){return _c(this.nativeNode).filter(Cc)}get references(){return function(e){const t=bc(e);return void 0===t.localRefs&&(t.localRefs=function(e,n){const r=e[un].data[t.nodeIndex];if(r&&r.localNames){const t={};let n=r.index+1;for(let i=0;i<r.localNames.length;i+=2)t[r.localNames[i]]=e[n],n++;return t}return null}(t.lView)),t.localRefs||{}}(this.nativeNode)}get providerTokens(){return function(e){const t=bc(e,!1);if(!t)return[];const n=t.lView[un],r=n.data[t.nodeIndex],i=[],l=r.directiveEnd;for(let o=65535&r.providerIndexes;o<l;o++){let e=n.data[o];void 0!==(s=e).type&&void 0!==s.template&&void 0!==s.declaredInputs&&(e=e.type),i.push(e)}var s;return i}(this.nativeNode)}}class Ab extends Ib{constructor(e){super(e)}get nativeElement(){return this.nativeNode.nodeType==Node.ELEMENT_NODE?this.nativeNode:null}get name(){return this.nativeElement.nodeName}get properties(){const e=bc(this.nativeNode),t=e.lView,n=t[un].data,r=n[e.nodeIndex],i=function(e,t,n){const r={};let i=function(t,n){let r=e.propertyMetadataStartIndex-1,i=n[r];for(;"string"==typeof i&&!sn(i);)i=n[--r];return r+1}(0,n);for(;i<e.propertyMetadataEndIndex;){let e,l=n[i];for(;!sn(l);)e=(e||"")+Xt(t[i])+n[i],l=n[++i];e=void 0===e?t[i]:e+=t[i];const s=l.split(ln),o=s[0];o&&(r[o]=s[1]&&s[2]?s[1]+e+s[2]:e),i++}return r}(r,t,n),l=function(e,t,n){const r={};let i=e.directiveEnd,l=n[i];for(;"string"==typeof l;)r[l.split(ln)[0]]=t[i],l=n[++i];return r}(r,t,n),s=function(e){const t=e.classes;let n="";for(const r of Object.keys(t))t[r]&&(n=n?n+` ${r}`:r);return n}(this),o=Object.assign({},i,l);return s&&(o.className=o.className?o.className+` ${s}`:s),o}get attributes(){const e={},t=this.nativeElement;if(t){const n=t.attributes;for(let t=0;t<n.length;t++){const r=n[t];e[r.name]=r.value}}return e}get classes(){const e={},t=this.nativeElement;if(t){const n=wc(t),r=hi(n.nodeIndex,n.lView);if(r){for(let t=10;t<r.length;t+=4)if(ws(r,t)){const n=Vs(r,t),i=Fs(r,t);"boolean"==typeof i&&(e[n]=i)}}else{const n=t.classList;for(let t=0;t<n.length;t++)e[n[t]]=!0}}return e}get styles(){const e={},t=this.nativeElement;if(t){const n=wc(t),r=hi(n.nodeIndex,n.lView);if(r){for(let t=10;t<r.length;t+=4)if(!ws(r,t)){const n=Vs(r,t),i=Fs(r,t);null!==i&&(e[n]=i)}}else{const n=t.style;for(let t=0;t<n.length;t++){const r=n.item(t);e[r]=n.getPropertyValue(r)}}}return e}get childNodes(){const e=this.nativeNode.childNodes,t=[];for(let n=0;n<e.length;n++)t.push(Ob(e[n]));return t}get children(){const e=this.nativeElement;if(!e)return[];const t=e.children,n=[];for(let r=0;r<t.length;r++)n.push(Ob(t[r]));return n}query(e){return this.queryAll(e)[0]||null}queryAll(e){const t=[];return Eb(this,e,t,!0),t}queryAllNodes(e){const t=[];return Eb(this,e,t,!1),t}triggerEventHandler(e,t){this.listeners.forEach(n=>{n.name===e&&n.callback(t)})}}function Eb(e,t,n,r){const i=bc(e.nativeNode);Tb(i.lView[un].data[i.nodeIndex],i.lView,t,n,r,e.nativeNode)}function Tb(e,t,n,r,i,l){if(3===e.type||4===e.type){if(Rb(Vn(e,t),n,r,i,l),Hn(e)){const s=Ln(e.index,t);s&&s[un].firstChild&&Tb(s[un].firstChild,s,n,r,i,l)}else e.child&&Tb(e.child,t,n,r,i,l);const s=t[e.index];Dn(s)&&Mb(s,n,r,i,l)}else if(0===e.type){const s=t[e.index];Rb(s[Mn],n,r,i,l),Mb(s,n,r,i,l)}else if(1===e.type){const s=Ai(t),o=s[pn].projection[e.projection];if(Array.isArray(o))for(let e of o)Rb(e,n,r,i,l);else if(o){const e=s[dn];Tb(e[un].data[o.index],e,n,r,i,l)}}else e.child&&Tb(e.child,t,n,r,i,l);const s=2&e.flags?e.projectionNext:e.next;s&&Tb(s,t,n,r,i,l)}function Mb(e,t,n,r,i){for(let l=0;l<e[Rn].length;l++){const s=e[Rn][l];Tb(s[un].node,s,t,n,r,i)}}function Rb(e,t,n,r,i){if(i!==e){const i=Nb(e);i&&(!r||i instanceof Ab)&&t(i)&&n.push(i)}}const Pb=new Map;function Ob(e){return e instanceof Node?e.nodeType==Node.ELEMENT_NODE?new Ab(e):new Ib(e):null}const Nb=function(e){return Pb.get(e)||null};function Db(e){Pb.set(e.nativeNode,e)}const Fb=Sb,Vb=kb,jb=sb(null,"core",[{provide:cy,useValue:"unknown"},{provide:cb,deps:[xe]},{provide:Yy,deps:[]},{provide:fy,deps:[]}]),Bb=new ve("LocaleId"),Lb=new ve("Translations"),Hb=new ve("TranslationsFormat"),Ub=function(){var e={Error:0,Warning:1,Ignore:2};return e[e.Error]="Error",e[e.Warning]="Warning",e[e.Ignore]="Ignore",e}();function zb(){return sh}function Gb(){return oh}function Wb(e){return e||"en-US"}const $b=[{provide:hb,useClass:hb,deps:[Hy,fy,xe,Xi,gd,iy]},{provide:mp,deps:[Hy],useFactory:qb},{provide:iy,useClass:iy,deps:[[new g,ry]]},{provide:ky,useClass:ky,deps:[]},oy,{provide:eh,useFactory:zb,deps:[]},{provide:th,useFactory:Gb,deps:[]},{provide:Bb,useFactory:Wb,deps:[[new m(Bb),new g,new b]]}];function qb(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}const Kb=(()=>(class{constructor(e){}}))();function Yb(e,t,n,r,i,l){e|=1;const{matchedQueries:s,references:o,matchedQueryIds:a}=$h(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:s,matchedQueryIds:a,references:o,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:l?Qh(l):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:i||Ih},provider:null,text:null,query:null,ngContent:null}}function Qb(e,t,n,r,i,l,s=[],o,a,u,c,d){u||(u=Ih);const{matchedQueries:h,references:f,matchedQueryIds:p}=$h(n);let m=null,g=null;l&&([m,g]=rf(l)),o=o||[];const y=new Array(o.length);for(let w=0;w<o.length;w++){const[e,t,n]=o[w],[r,i]=rf(t);let l=void 0,s=void 0;switch(15&e){case 4:s=n;break;case 1:case 8:l=n}y[w]={flags:e,ns:r,name:i,nonMinifiedName:i,securityContext:l,suffix:s}}a=a||[];const b=new Array(a.length);for(let w=0;w<a.length;w++){const[e,t]=a[w];b[w]={type:0,target:e,eventName:t,propName:null}}const v=(s=s||[]).map(([e,t])=>{const[n,r]=rf(e);return[n,r,t]});return d=function(e){if(e&&e.id===Mh){const t=null!=e.encapsulation&&e.encapsulation!==It.None||e.styles.length||Object.keys(e.data).length;e.id=t?`c${Oh++}`:Rh}return e&&e.id===Rh&&(e=null),e||null}(d),c&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:h,matchedQueryIds:p,references:f,ngContentIndex:r,childCount:i,bindings:y,bindingFlags:lf(y),outputs:b,element:{ns:m,name:g,attrs:v,template:null,componentProvider:null,componentView:c||null,componentRendererType:d,publicProviders:null,allProviders:null,handleEvent:u||Ih},provider:null,text:null,query:null,ngContent:null}}function Zb(e,t,n){const r=n.element,i=e.root.selectorOrNode,l=e.renderer;let s;if(e.parent||!i){s=r.name?l.createElement(r.name,r.ns):l.createComment("");const i=Kh(e,t,n);i&&l.appendChild(i,s)}else s=l.selectRootElement(i,!!r.componentRendererType&&r.componentRendererType.encapsulation===It.ShadowDom);if(r.attrs)for(let o=0;o<r.attrs.length;o++){const[e,t,n]=r.attrs[o];l.setAttribute(s,t,n,e)}return s}function Xb(e,t,n,r){for(let s=0;s<n.outputs.length;s++){const o=n.outputs[s],a=Jb(e,n.nodeIndex,(l=o.eventName,(i=o.target)?`${i}:${l}`:l));let u=o.target,c=e;"component"===o.target&&(u=null,c=t);const d=c.renderer.listen(u||r,o.eventName,a);e.disposables[n.outputIndex+s]=d}var i,l}function Jb(e,t,n){return r=>Bh(e,t,n,r)}function ev(e,t,n,r){if(!Dh(e,t,n,r))return!1;const i=t.bindings[n],l=wh(e,t.nodeIndex),s=l.renderElement,o=i.name;switch(15&i.flags){case 1:!function(e,t,n,r,i,l){const s=t.securityContext;let o=s?e.root.sanitizer.sanitize(s,l):l;o=null!=o?o.toString():null;const a=e.renderer;null!=l?a.setAttribute(n,i,o,r):a.removeAttribute(n,i,r)}(e,i,s,i.ns,o,r);break;case 2:!function(e,t,n,r){const i=e.renderer;r?i.addClass(t,n):i.removeClass(t,n)}(e,s,o,r);break;case 4:!function(e,t,n,r,i){let l=e.root.sanitizer.sanitize(Fl.STYLE,i);if(null!=l){l=l.toString();const e=t.suffix;null!=e&&(l+=e)}else l=null;const s=e.renderer;null!=l?s.setStyle(n,r,l):s.removeStyle(n,r)}(e,i,s,o,r);break;case 8:!function(e,t,n,r,i){const l=t.securityContext;let s=l?e.root.sanitizer.sanitize(l,i):i;e.renderer.setProperty(n,r,s)}(33554432&t.flags&&32&i.flags?l.componentView:e,i,s,o,r)}return!0}function tv(e,t,n){let r=[];for(let i in n)r.push({propName:i,bindingType:n[i]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:t,filterId:Wh(t),bindings:r},ngContent:null}}function nv(e){const t=e.def.nodeMatchedQueries;for(;e.parent&&Gh(e);){let n=e.parentNodeDef;e=e.parent;const r=n.nodeIndex+n.childCount;for(let i=0;i<=r;i++){const r=e.def.nodes[i];67108864&r.flags&&536870912&r.flags&&(r.query.filterId&t)===r.query.filterId&&Sh(e,i).setDirty(),!(1&r.flags&&i+r.childCount<n.nodeIndex)&&67108864&r.childFlags&&536870912&r.childFlags||(i+=r.childCount)}}if(134217728&e.def.nodeFlags)for(let n=0;n<e.def.nodes.length;n++){const t=e.def.nodes[n];134217728&t.flags&&536870912&t.flags&&Sh(e,n).setDirty(),n+=t.childCount}}function rv(e,t){const n=Sh(e,t.nodeIndex);if(!n.dirty)return;let r,i=void 0;if(67108864&t.flags){const n=t.parent.parent;i=iv(e,n.nodeIndex,n.nodeIndex+n.childCount,t.query,[]),r=Ch(e,t.parent.nodeIndex).instance}else 134217728&t.flags&&(i=iv(e,0,e.def.nodes.length-1,t.query,[]),r=e.component);n.reset(i);const l=t.query.bindings;let s=!1;for(let o=0;o<l.length;o++){const e=l[o];let t;switch(e.bindingType){case 0:t=n.first;break;case 1:t=n,s=!0}r[e.propName]=t}s&&n.notifyOnChanges()}function iv(e,t,n,r,i){for(let l=t;l<=n;l++){const t=e.def.nodes[l],n=t.matchedQueries[r.id];if(null!=n&&i.push(lv(e,t,n)),1&t.flags&&t.element.template&&(t.element.template.nodeMatchedQueries&r.filterId)===r.filterId){const n=wh(e,l);if((t.childMatchedQueries&r.filterId)===r.filterId&&(iv(e,l+1,l+t.childCount,r,i),l+=t.childCount),16777216&t.flags){const e=n.viewContainer._embeddedViews;for(let t=0;t<e.length;t++){const l=e[t],s=Lh(l);s&&s===n&&iv(l,0,l.def.nodes.length-1,r,i)}}const s=n.template._projectedViews;if(s)for(let e=0;e<s.length;e++){const t=s[e];iv(t,0,t.def.nodes.length-1,r,i)}}(t.childMatchedQueries&r.filterId)!==r.filterId&&(l+=t.childCount)}return i}function lv(e,t,n){if(null!=n)switch(n){case 1:return wh(e,t.nodeIndex).renderElement;case 0:return new Md(wh(e,t.nodeIndex).renderElement);case 2:return wh(e,t.nodeIndex).template;case 3:return wh(e,t.nodeIndex).viewContainer;case 4:return Ch(e,t.nodeIndex).instance}}function sv(e,t){return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:t}}}function ov(e,t,n){const r=Kh(e,t,n);r&&Jh(e,n.ngContent.index,1,r,null,void 0)}function av(e,t){return dv(128,e,new Array(t+1))}function uv(e,t){return dv(32,e,new Array(t))}function cv(e,t){const n=Object.keys(t),r=n.length,i=new Array(r);for(let l=0;l<r;l++){const e=n[l];i[t[e]]=e}return dv(64,e,i)}function dv(e,t,n){const r=new Array(n.length);for(let i=0;i<n.length;i++){const e=n[i];r[i]={flags:8,name:e,ns:null,nonMinifiedName:e,securityContext:null,suffix:null}}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:r,bindingFlags:lf(r),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function hv(e,t,n){const r=new Array(n.length-1);for(let i=1;i<n.length;i++)r[i-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[i]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:r,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function fv(e,t,n){let r;const i=e.renderer;r=i.createText(n.text.prefix);const l=Kh(e,t,n);return l&&i.appendChild(l,r),{renderText:r}}function pv(e,t){return(null!=e?e.toString():"")+t.suffix}function mv(e,t,n,r){let i=0,l=0,s=0,o=0,a=0,u=null,c=null,d=!1,h=!1,f=null;for(let p=0;p<t.length;p++){const e=t[p];if(e.nodeIndex=p,e.parent=u,e.bindingIndex=i,e.outputIndex=l,e.renderParent=c,s|=e.flags,a|=e.matchedQueryIds,e.element){const t=e.element;t.publicProviders=u?u.element.publicProviders:Object.create(null),t.allProviders=t.publicProviders,d=!1,h=!1,e.element.template&&(a|=e.element.template.nodeMatchedQueries)}if(yv(u,e,t.length),i+=e.bindings.length,l+=e.outputs.length,!c&&3&e.flags&&(f=e),20224&e.flags){d||(d=!0,u.element.publicProviders=Object.create(u.element.publicProviders),u.element.allProviders=u.element.publicProviders);const t=0!=(32768&e.flags);0==(8192&e.flags)||t?u.element.publicProviders[Eh(e.provider.token)]=e:(h||(h=!0,u.element.allProviders=Object.create(u.element.publicProviders)),u.element.allProviders[Eh(e.provider.token)]=e),t&&(u.element.componentProvider=e)}if(u?(u.childFlags|=e.flags,u.directChildFlags|=e.flags,u.childMatchedQueries|=e.matchedQueryIds,e.element&&e.element.template&&(u.childMatchedQueries|=e.element.template.nodeMatchedQueries)):o|=e.flags,e.childCount>0)u=e,gv(e)||(c=e);else for(;u&&p===u.nodeIndex+u.childCount;){const e=u.parent;e&&(e.childFlags|=u.childFlags,e.childMatchedQueries|=u.childMatchedQueries),c=(u=e)&&gv(u)?u.renderParent:u}}return{factory:null,nodeFlags:s,rootNodeFlags:o,nodeMatchedQueries:a,flags:e,nodes:t,updateDirectives:n||Ih,updateRenderer:r||Ih,handleEvent:(e,n,r,i)=>t[n].element.handleEvent(e,r,i),bindingCount:i,outputCount:l,lastRenderRootNode:f}}function gv(e){return 0!=(1&e.flags)&&null===e.element.name}function yv(e,t,n){const r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error(`Illegal State: Last root node of a template can't have embedded views, at index ${t.nodeIndex}!`)}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error(`Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ${t.nodeIndex}!`);if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error(`Illegal State: Content Query nodes need to be children of directives, at index ${t.nodeIndex}!`);if(134217728&t.flags&&e)throw new Error(`Illegal State: View Query nodes have to be top level nodes, at index ${t.nodeIndex}!`)}if(t.childCount){const r=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=r&&t.nodeIndex+t.childCount>r)throw new Error(`Illegal State: childCount of node leads outside of parent, at index ${t.nodeIndex}!`)}}function bv(e,t,n,r){const i=Cv(e.root,e.renderer,e,t,n);return _v(i,e.component,r),Sv(i),i}function vv(e,t,n){const r=Cv(e,e.renderer,null,null,t);return _v(r,n,n),Sv(r),r}function wv(e,t,n,r){const i=t.element.componentRendererType;let l;return l=i?e.root.rendererFactory.createRenderer(r,i):e.root.renderer,Cv(e.root,l,e,t.element.componentProvider,n)}function Cv(e,t,n,r,i){const l=new Array(i.nodes.length),s=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:l,state:13,root:e,renderer:t,oldValues:new Array(i.bindingCount),disposables:s,initIndex:-1}}function _v(e,t,n){e.component=t,e.context=n}function Sv(e){let t;zh(e)&&(t=wh(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);const n=e.def,r=e.nodes;for(let i=0;i<n.nodes.length;i++){const l=n.nodes[i];let s;switch(xh.setCurrentNode(e,i),201347067&l.flags){case 1:const n=Zb(e,t,l);let o=void 0;if(33554432&l.flags){const t=Qh(l.element.componentView);o=xh.createComponentView(e,l,t,n)}Xb(e,o,l,n),s={renderElement:n,componentView:o,viewContainer:null,template:l.element.template?Of(e,l):void 0},16777216&l.flags&&(s.viewContainer=Tf(e,l,s));break;case 2:s=fv(e,t,l);break;case 512:case 1024:case 2048:case 256:(s=r[i])||4096&l.flags||(s={instance:ep(e,l)});break;case 16:s={instance:tp(e,l)};break;case 16384:(s=r[i])||(s={instance:np(e,l)}),32768&l.flags&&_v(wh(e,l.parent.nodeIndex).componentView,s.instance,s.instance);break;case 32:case 64:case 128:s={value:void 0};break;case 67108864:case 134217728:s=new Nm;break;case 8:ov(e,t,l),s=void 0}r[i]=s}Pv(e,Rv.CreateViewNodes),Fv(e,201326592,268435456,0)}function kv(e){Av(e),xh.updateDirectives(e,1),Ov(e,Rv.CheckNoChanges),xh.updateRenderer(e,1),Pv(e,Rv.CheckNoChanges),e.state&=-97}function xv(e){1&e.state?(e.state&=-2,e.state|=2):e.state&=-3,yh(e,0,256),Av(e),xh.updateDirectives(e,0),Ov(e,Rv.CheckAndUpdate),Fv(e,67108864,536870912,0);let t=yh(e,256,512);cp(e,2097152|(t?1048576:0)),xh.updateRenderer(e,0),Pv(e,Rv.CheckAndUpdate),Fv(e,134217728,536870912,0),cp(e,8388608|((t=yh(e,512,768))?4194304:0)),2&e.def.flags&&(e.state&=-9),e.state&=-97,yh(e,768,1024)}function Iv(e,t,n,r,i,l,s,o,a,u,c,d,h){return 0===n?function(e,t,n,r,i,l,s,o,a,u,c,d){switch(201347067&t.flags){case 1:return function(e,t,n,r,i,l,s,o,a,u,c,d){const h=t.bindings.length;let f=!1;return h>0&&ev(e,t,0,n)&&(f=!0),h>1&&ev(e,t,1,r)&&(f=!0),h>2&&ev(e,t,2,i)&&(f=!0),h>3&&ev(e,t,3,l)&&(f=!0),h>4&&ev(e,t,4,s)&&(f=!0),h>5&&ev(e,t,5,o)&&(f=!0),h>6&&ev(e,t,6,a)&&(f=!0),h>7&&ev(e,t,7,u)&&(f=!0),h>8&&ev(e,t,8,c)&&(f=!0),h>9&&ev(e,t,9,d)&&(f=!0),f}(e,t,n,r,i,l,s,o,a,u,c,d);case 2:return function(e,t,n,r,i,l,s,o,a,u,c,d){let h=!1;const f=t.bindings,p=f.length;if(p>0&&Dh(e,t,0,n)&&(h=!0),p>1&&Dh(e,t,1,r)&&(h=!0),p>2&&Dh(e,t,2,i)&&(h=!0),p>3&&Dh(e,t,3,l)&&(h=!0),p>4&&Dh(e,t,4,s)&&(h=!0),p>5&&Dh(e,t,5,o)&&(h=!0),p>6&&Dh(e,t,6,a)&&(h=!0),p>7&&Dh(e,t,7,u)&&(h=!0),p>8&&Dh(e,t,8,c)&&(h=!0),p>9&&Dh(e,t,9,d)&&(h=!0),h){let h=t.text.prefix;p>0&&(h+=pv(n,f[0])),p>1&&(h+=pv(r,f[1])),p>2&&(h+=pv(i,f[2])),p>3&&(h+=pv(l,f[3])),p>4&&(h+=pv(s,f[4])),p>5&&(h+=pv(o,f[5])),p>6&&(h+=pv(a,f[6])),p>7&&(h+=pv(u,f[7])),p>8&&(h+=pv(c,f[8])),p>9&&(h+=pv(d,f[9]));const m=vh(e,t.nodeIndex).renderText;e.renderer.setValue(m,h)}return h}(e,t,n,r,i,l,s,o,a,u,c,d);case 16384:return function(e,t,n,r,i,l,s,o,a,u,c,d){const h=Ch(e,t.nodeIndex),f=h.instance;let p=!1,m=void 0;const g=t.bindings.length;return g>0&&Nh(e,t,0,n)&&(p=!0,m=up(e,h,t,0,n,m)),g>1&&Nh(e,t,1,r)&&(p=!0,m=up(e,h,t,1,r,m)),g>2&&Nh(e,t,2,i)&&(p=!0,m=up(e,h,t,2,i,m)),g>3&&Nh(e,t,3,l)&&(p=!0,m=up(e,h,t,3,l,m)),g>4&&Nh(e,t,4,s)&&(p=!0,m=up(e,h,t,4,s,m)),g>5&&Nh(e,t,5,o)&&(p=!0,m=up(e,h,t,5,o,m)),g>6&&Nh(e,t,6,a)&&(p=!0,m=up(e,h,t,6,a,m)),g>7&&Nh(e,t,7,u)&&(p=!0,m=up(e,h,t,7,u,m)),g>8&&Nh(e,t,8,c)&&(p=!0,m=up(e,h,t,8,c,m)),g>9&&Nh(e,t,9,d)&&(p=!0,m=up(e,h,t,9,d,m)),m&&f.ngOnChanges(m),65536&t.flags&&bh(e,256,t.nodeIndex)&&f.ngOnInit(),262144&t.flags&&f.ngDoCheck(),p}(e,t,n,r,i,l,s,o,a,u,c,d);case 32:case 64:case 128:return function(e,t,n,r,i,l,s,o,a,u,c,d){const h=t.bindings;let f=!1;const p=h.length;if(p>0&&Dh(e,t,0,n)&&(f=!0),p>1&&Dh(e,t,1,r)&&(f=!0),p>2&&Dh(e,t,2,i)&&(f=!0),p>3&&Dh(e,t,3,l)&&(f=!0),p>4&&Dh(e,t,4,s)&&(f=!0),p>5&&Dh(e,t,5,o)&&(f=!0),p>6&&Dh(e,t,6,a)&&(f=!0),p>7&&Dh(e,t,7,u)&&(f=!0),p>8&&Dh(e,t,8,c)&&(f=!0),p>9&&Dh(e,t,9,d)&&(f=!0),f){const f=_h(e,t.nodeIndex);let m;switch(201347067&t.flags){case 32:m=new Array(h.length),p>0&&(m[0]=n),p>1&&(m[1]=r),p>2&&(m[2]=i),p>3&&(m[3]=l),p>4&&(m[4]=s),p>5&&(m[5]=o),p>6&&(m[6]=a),p>7&&(m[7]=u),p>8&&(m[8]=c),p>9&&(m[9]=d);break;case 64:m={},p>0&&(m[h[0].name]=n),p>1&&(m[h[1].name]=r),p>2&&(m[h[2].name]=i),p>3&&(m[h[3].name]=l),p>4&&(m[h[4].name]=s),p>5&&(m[h[5].name]=o),p>6&&(m[h[6].name]=a),p>7&&(m[h[7].name]=u),p>8&&(m[h[8].name]=c),p>9&&(m[h[9].name]=d);break;case 128:const e=n;switch(p){case 1:m=e.transform(n);break;case 2:m=e.transform(r);break;case 3:m=e.transform(r,i);break;case 4:m=e.transform(r,i,l);break;case 5:m=e.transform(r,i,l,s);break;case 6:m=e.transform(r,i,l,s,o);break;case 7:m=e.transform(r,i,l,s,o,a);break;case 8:m=e.transform(r,i,l,s,o,a,u);break;case 9:m=e.transform(r,i,l,s,o,a,u,c);break;case 10:m=e.transform(r,i,l,s,o,a,u,c,d)}}f.value=m}return f}(e,t,n,r,i,l,s,o,a,u,c,d);default:throw"unreachable"}}(e,t,r,i,l,s,o,a,u,c,d,h):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){let r=!1;for(let i=0;i<n.length;i++)ev(e,t,i,n[i])&&(r=!0);return r}(e,t,n);case 2:return function(e,t,n){const r=t.bindings;let i=!1;for(let l=0;l<n.length;l++)Dh(e,t,l,n[l])&&(i=!0);if(i){let i="";for(let e=0;e<n.length;e++)i+=pv(n[e],r[e]);i=t.text.prefix+i;const l=vh(e,t.nodeIndex).renderText;e.renderer.setValue(l,i)}return i}(e,t,n);case 16384:return function(e,t,n){const r=Ch(e,t.nodeIndex),i=r.instance;let l=!1,s=void 0;for(let o=0;o<n.length;o++)Nh(e,t,o,n[o])&&(l=!0,s=up(e,r,t,o,n[o],s));return s&&i.ngOnChanges(s),65536&t.flags&&bh(e,256,t.nodeIndex)&&i.ngOnInit(),262144&t.flags&&i.ngDoCheck(),l}(e,t,n);case 32:case 64:case 128:return function(e,t,n){const r=t.bindings;let i=!1;for(let l=0;l<n.length;l++)Dh(e,t,l,n[l])&&(i=!0);if(i){const i=_h(e,t.nodeIndex);let l;switch(201347067&t.flags){case 32:l=n;break;case 64:l={};for(let t=0;t<n.length;t++)l[r[t].name]=n[t];break;case 128:const e=n[0],i=n.slice(1);l=e.transform(...i)}i.value=l}return i}(e,t,n);default:throw"unreachable"}}(e,t,r)}function Av(e){const t=e.def;if(4&t.nodeFlags)for(let n=0;n<t.nodes.length;n++){const r=t.nodes[n];if(4&r.flags){const t=wh(e,n).template._projectedViews;if(t)for(let n=0;n<t.length;n++){const r=t[n];r.state|=32,jh(r,e)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function Ev(e,t,n,r,i,l,s,o,a,u,c,d,h){return 0===n?function(e,t,n,r,i,l,s,o,a,u,c,d){const h=t.bindings.length;h>0&&Fh(e,t,0,n),h>1&&Fh(e,t,1,r),h>2&&Fh(e,t,2,i),h>3&&Fh(e,t,3,l),h>4&&Fh(e,t,4,s),h>5&&Fh(e,t,5,o),h>6&&Fh(e,t,6,a),h>7&&Fh(e,t,7,u),h>8&&Fh(e,t,8,c),h>9&&Fh(e,t,9,d)}(e,t,r,i,l,s,o,a,u,c,d,h):function(e,t,n){for(let r=0;r<n.length;r++)Fh(e,t,r,n[r])}(e,t,r),!1}function Tv(e,t){if(Sh(e,t.nodeIndex).dirty)throw ph(xh.createDebugContext(e,t.nodeIndex),`Query ${t.query.id} not dirty`,`Query ${t.query.id} dirty`,0!=(1&e.state))}function Mv(e){if(!(128&e.state)){if(Ov(e,Rv.Destroy),Pv(e,Rv.Destroy),cp(e,131072),e.disposables)for(let t=0;t<e.disposables.length;t++)e.disposables[t]();!function(e){if(!(16&e.state))return;const t=Lh(e);if(t){const n=t.template._projectedViews;n&&(Sf(n,n.indexOf(e)),xh.dirtyParentQueries(e))}}(e),e.renderer.destroyNode&&function(e){const t=e.def.nodes.length;for(let n=0;n<t;n++){const t=e.def.nodes[n];1&t.flags?e.renderer.destroyNode(wh(e,n).renderElement):2&t.flags?e.renderer.destroyNode(vh(e,n).renderText):(67108864&t.flags||134217728&t.flags)&&Sh(e,n).destroy()}}(e),zh(e)&&e.renderer.destroy(),e.state|=128}}const Rv=function(){var e={CreateViewNodes:0,CheckNoChanges:1,CheckNoChangesProjectedViews:2,CheckAndUpdate:3,CheckAndUpdateProjectedViews:4,Destroy:5};return e[e.CreateViewNodes]="CreateViewNodes",e[e.CheckNoChanges]="CheckNoChanges",e[e.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",e[e.CheckAndUpdate]="CheckAndUpdate",e[e.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",e[e.Destroy]="Destroy",e}();function Pv(e,t){const n=e.def;if(33554432&n.nodeFlags)for(let r=0;r<n.nodes.length;r++){const i=n.nodes[r];33554432&i.flags?Nv(wh(e,r).componentView,t):0==(33554432&i.childFlags)&&(r+=i.childCount)}}function Ov(e,t){const n=e.def;if(16777216&n.nodeFlags)for(let r=0;r<n.nodes.length;r++){const i=n.nodes[r];if(16777216&i.flags){const n=wh(e,r).viewContainer._embeddedViews;for(let e=0;e<n.length;e++)Nv(n[e],t)}else 0==(16777216&i.childFlags)&&(r+=i.childCount)}}function Nv(e,t){const n=e.state;switch(t){case Rv.CheckNoChanges:0==(128&n)&&(12==(12&n)?kv(e):64&n&&Dv(e,Rv.CheckNoChangesProjectedViews));break;case Rv.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?kv(e):64&n&&Dv(e,t));break;case Rv.CheckAndUpdate:0==(128&n)&&(12==(12&n)?xv(e):64&n&&Dv(e,Rv.CheckAndUpdateProjectedViews));break;case Rv.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?xv(e):64&n&&Dv(e,t));break;case Rv.Destroy:Mv(e);break;case Rv.CreateViewNodes:Sv(e)}}function Dv(e,t){Ov(e,t),Pv(e,t)}function Fv(e,t,n,r){if(!(e.def.nodeFlags&t&&e.def.nodeFlags&n))return;const i=e.def.nodes.length;for(let l=0;l<i;l++){const i=e.def.nodes[l];if(i.flags&t&&i.flags&n)switch(xh.setCurrentNode(e,i.nodeIndex),r){case 0:rv(e,i);break;case 1:Tv(e,i)}i.childFlags&t&&i.childFlags&n||(l+=i.childCount)}}let Vv=!1;function jv(){if(Vv)return;Vv=!0;const e=dl()?{setCurrentNode:ow,createRootView:Lv,createEmbeddedView:Uv,createComponentView:zv,createNgModuleRef:Gv,overrideProvider:Kv,overrideComponentView:Yv,clearOverrides:Qv,checkAndUpdateView:ew,checkNoChangesView:tw,destroyView:nw,createDebugContext:(e,t)=>new mw(e,t),handleEvent:aw,updateDirectives:uw,updateRenderer:cw}:{setCurrentNode:()=>{},createRootView:Bv,createEmbeddedView:bv,createComponentView:wv,createNgModuleRef:Lf,overrideProvider:Ih,overrideComponentView:Ih,clearOverrides:Ih,checkAndUpdateView:xv,checkNoChangesView:kv,destroyView:Mv,createDebugContext:(e,t)=>new mw(e,t),handleEvent:(e,t,n,r)=>e.def.handleEvent(e,t,n,r),updateDirectives:(e,t)=>e.def.updateDirectives(0===t?Xv:Jv,e),updateRenderer:(e,t)=>e.def.updateRenderer(0===t?Xv:Jv,e)};xh.setCurrentNode=e.setCurrentNode,xh.createRootView=e.createRootView,xh.createEmbeddedView=e.createEmbeddedView,xh.createComponentView=e.createComponentView,xh.createNgModuleRef=e.createNgModuleRef,xh.overrideProvider=e.overrideProvider,xh.overrideComponentView=e.overrideComponentView,xh.clearOverrides=e.clearOverrides,xh.checkAndUpdateView=e.checkAndUpdateView,xh.checkNoChangesView=e.checkNoChangesView,xh.destroyView=e.destroyView,xh.resolveDep=op,xh.createDebugContext=e.createDebugContext,xh.handleEvent=e.handleEvent,xh.updateDirectives=e.updateDirectives,xh.updateRenderer=e.updateRenderer,xh.dirtyParentQueries=nv}function Bv(e,t,n,r,i,l){const s=i.injector.get(Vd);return vv(Hv(e,i,s,t,n),r,l)}function Lv(e,t,n,r,i,l){const s=i.injector.get(Vd),o=Hv(e,i,new vw(s),t,n),a=Zv(r);return yw(rw.create,vv,null,[o,a,l])}function Hv(e,t,n,r,i){const l=t.injector.get(Vl),s=t.injector.get(Xi),o=n.createRenderer(null,null);return{ngModule:t,injector:e,projectableNodes:r,selectorOrNode:i,sanitizer:l,rendererFactory:n,renderer:o,errorHandler:s}}function Uv(e,t,n,r){const i=Zv(n);return yw(rw.create,bv,null,[e,t,i,r])}function zv(e,t,n,r){return n=qv.get(t.element.componentProvider.provider.token)||Zv(n),yw(rw.create,wv,null,[e,t,n,r])}function Gv(e,t,n,r){return Lf(e,t,n,function(e){const{hasOverrides:t,hasDeprecatedOverrides:n}=function(e){let t=!1,n=!1;return 0===Wv.size?{hasOverrides:t,hasDeprecatedOverrides:n}:(e.providers.forEach(e=>{const r=Wv.get(e.token);3840&e.flags&&r&&(t=!0,n=n||r.deprecatedBehavior)}),e.modules.forEach(e=>{$v.forEach((r,i)=>{A(i).providedIn===e&&(t=!0,n=n||r.deprecatedBehavior)})}),{hasOverrides:t,hasDeprecatedOverrides:n})}(e);return t?(function(e){for(let t=0;t<e.providers.length;t++){const r=e.providers[t];n&&(r.flags|=4096);const i=Wv.get(r.token);i&&(r.flags=-3841&r.flags|i.flags,r.deps=qh(i.deps),r.value=i.value)}if($v.size>0){let t=new Set(e.modules);$v.forEach((r,i)=>{if(t.has(A(i).providedIn)){let t={token:i,flags:r.flags|(n?4096:0),deps:qh(r.deps),value:r.value,index:e.providers.length};e.providers.push(t),e.providersByKey[Eh(i)]=t}})}}(e=e.factory(()=>Ih)),e):e}(r))}const Wv=new Map,$v=new Map,qv=new Map;function Kv(e){let t;Wv.set(e.token,e),"function"==typeof e.token&&(t=A(e.token))&&"function"==typeof t.providedIn&&$v.set(e.token,e)}function Yv(e,t){const n=Qh(If(t)),r=Qh(n.nodes[0].element.componentView);qv.set(e,r)}function Qv(){Wv.clear(),$v.clear(),qv.clear()}function Zv(e){if(0===Wv.size)return e;const t=function(e){const t=[];let n=null;for(let r=0;r<e.nodes.length;r++){const i=e.nodes[r];1&i.flags&&(n=i),n&&3840&i.flags&&Wv.has(i.provider.token)&&(t.push(n.nodeIndex),n=null)}return t}(e);if(0===t.length)return e;e=e.factory(()=>Ih);for(let r=0;r<t.length;r++)n(e,t[r]);return e;function n(e,t){for(let n=t+1;n<e.nodes.length;n++){const t=e.nodes[n];if(1&t.flags)return;if(3840&t.flags){const e=t.provider,n=Wv.get(e.token);n&&(t.flags=-3841&t.flags|n.flags,e.deps=qh(n.deps),e.value=n.value)}}}}function Xv(e,t,n,r,i,l,s,o,a,u,c,d,h){const f=e.def.nodes[t];return Iv(e,f,n,r,i,l,s,o,a,u,c,d,h),224&f.flags?_h(e,t).value:void 0}function Jv(e,t,n,r,i,l,s,o,a,u,c,d,h){const f=e.def.nodes[t];return Ev(e,f,n,r,i,l,s,o,a,u,c,d,h),224&f.flags?_h(e,t).value:void 0}function ew(e){return yw(rw.detectChanges,xv,null,[e])}function tw(e){return yw(rw.checkNoChanges,kv,null,[e])}function nw(e){return yw(rw.destroy,Mv,null,[e])}const rw=function(){var e={create:0,detectChanges:1,checkNoChanges:2,destroy:3,handleEvent:4};return e[e.create]="create",e[e.detectChanges]="detectChanges",e[e.checkNoChanges]="checkNoChanges",e[e.destroy]="destroy",e[e.handleEvent]="handleEvent",e}();let iw,lw,sw;function ow(e,t){lw=e,sw=t}function aw(e,t,n,r){return ow(e,t),yw(rw.handleEvent,e.def.handleEvent,null,[e,t,n,r])}function uw(e,t){if(128&e.state)throw gh(rw[iw]);return ow(e,fw(e,0)),e.def.updateDirectives(function(e,n,r,...i){const l=e.def.nodes[n];return 0===t?dw(e,l,r,i):hw(e,l,r,i),16384&l.flags&&ow(e,fw(e,n)),224&l.flags?_h(e,l.nodeIndex).value:void 0},e)}function cw(e,t){if(128&e.state)throw gh(rw[iw]);return ow(e,pw(e,0)),e.def.updateRenderer(function(e,n,r,...i){const l=e.def.nodes[n];return 0===t?dw(e,l,r,i):hw(e,l,r,i),3&l.flags&&ow(e,pw(e,n)),224&l.flags?_h(e,l.nodeIndex).value:void 0},e)}function dw(e,t,n,r){if(Iv(e,t,n,...r)){const s=1===n?r[0]:r;if(16384&t.flags){const n={};for(let e=0;e<t.bindings.length;e++){const r=t.bindings[e],o=s[e];8&r.flags&&(n[(i=r.nonMinifiedName,l=void 0,l=i.replace(/[$@]/g,"_"),`ng-reflect-${i=l.replace(Ql,(...e)=>"-"+e[1].toLowerCase())}`)]=Zl(o))}const r=t.parent,o=wh(e,r.nodeIndex).renderElement;if(r.element.name)for(let t in n){const r=n[t];null!=r?e.renderer.setAttribute(o,t,r):e.renderer.removeAttribute(o,t)}else e.renderer.setValue(o,`bindings=${JSON.stringify(n,null,2)}`)}}var i,l}function hw(e,t,n,r){Ev(e,t,n,...r)}function fw(e,t){for(let n=t;n<e.def.nodes.length;n++){const t=e.def.nodes[n];if(16384&t.flags&&t.bindings&&t.bindings.length)return n}return null}function pw(e,t){for(let n=t;n<e.def.nodes.length;n++){const t=e.def.nodes[n];if(3&t.flags&&t.bindings&&t.bindings.length)return n}return null}class mw{constructor(e,t){this.view=e,this.nodeIndex=t,null==t&&(this.nodeIndex=t=0),this.nodeDef=e.def.nodes[t];let n=this.nodeDef,r=e;for(;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=Hh(r),r=r.parent;this.elDef=n,this.elView=r}get elOrCompView(){return wh(this.elView,this.elDef.nodeIndex).componentView||this.view}get injector(){return Df(this.elView,this.elDef)}get component(){return this.elOrCompView.component}get context(){return this.elOrCompView.context}get providerTokens(){const e=[];if(this.elDef)for(let t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){const n=this.elView.def.nodes[t];20224&n.flags&&e.push(n.provider.token),t+=n.childCount}return e}get references(){const e={};if(this.elDef){gw(this.elView,this.elDef,e);for(let t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){const n=this.elView.def.nodes[t];20224&n.flags&&gw(this.elView,n,e),t+=n.childCount}}return e}get componentRenderElement(){const e=function(e){for(;e&&!zh(e);)e=e.parent;return e.parent?wh(e.parent,Hh(e).nodeIndex):null}(this.elOrCompView);return e?e.renderElement:void 0}get renderNode(){return 2&this.nodeDef.flags?Uh(this.view,this.nodeDef):Uh(this.elView,this.elDef)}logError(e,...t){let n,r;2&this.nodeDef.flags?(n=this.view.def,r=this.nodeDef.nodeIndex):(n=this.elView.def,r=this.elDef.nodeIndex);const i=function(e,t){let n=-1;for(let r=0;r<=t;r++)3&e.nodes[r].flags&&n++;return n}(n,r);let l=-1;n.factory(()=>++l===i?e.error.bind(e,...t):Ih),l<i&&(e.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),e.error(...t))}}function gw(e,t,n){for(let r in t.references)n[r]=lv(e,t,t.references[r])}function yw(e,t,n,r){const i=iw,l=lw,s=sw;try{iw=e;const a=t.apply(n,r);return lw=l,sw=s,iw=i,a}catch(o){if(Yi(o)||!lw)throw o;throw function(e,t){return e instanceof Error||(e=new Error(e.toString())),mh(e,t),e}(o,bw())}}function bw(){return lw?new mw(lw,sw):null}class vw{constructor(e){this.delegate=e}createRenderer(e,t){return new ww(this.delegate.createRenderer(e,t))}begin(){this.delegate.begin&&this.delegate.begin()}end(){this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)}}class ww{constructor(e){this.delegate=e,this.debugContextFactory=bw,this.data=this.delegate.data}createDebugContext(e){return this.debugContextFactory(e)}destroyNode(e){!function(e){Pb.delete(e.nativeNode)}(Nb(e)),this.delegate.destroyNode&&this.delegate.destroyNode(e)}destroy(){this.delegate.destroy()}createElement(e,t){const n=this.delegate.createElement(e,t),r=this.createDebugContext(n);if(r){const t=new kb(n,null,r);t.name=e,Db(t)}return n}createComment(e){const t=this.delegate.createComment(e),n=this.createDebugContext(t);return n&&Db(new Sb(t,null,n)),t}createText(e){const t=this.delegate.createText(e),n=this.createDebugContext(t);return n&&Db(new Sb(t,null,n)),t}appendChild(e,t){const n=Nb(e),r=Nb(t);n&&r&&n instanceof kb&&n.addChild(r),this.delegate.appendChild(e,t)}insertBefore(e,t,n){const r=Nb(e),i=Nb(t),l=Nb(n);r&&i&&r instanceof kb&&r.insertBefore(l,i),this.delegate.insertBefore(e,t,n)}removeChild(e,t){const n=Nb(e),r=Nb(t);n&&r&&n instanceof kb&&n.removeChild(r),this.delegate.removeChild(e,t)}selectRootElement(e,t){const n=this.delegate.selectRootElement(e,t),r=bw();return r&&Db(new kb(n,null,r)),n}setAttribute(e,t,n,r){const i=Nb(e);i&&i instanceof kb&&(i.attributes[r?r+":"+t:t]=n),this.delegate.setAttribute(e,t,n,r)}removeAttribute(e,t,n){const r=Nb(e);r&&r instanceof kb&&(r.attributes[n?n+":"+t:t]=null),this.delegate.removeAttribute(e,t,n)}addClass(e,t){const n=Nb(e);n&&n instanceof kb&&(n.classes[t]=!0),this.delegate.addClass(e,t)}removeClass(e,t){const n=Nb(e);n&&n instanceof kb&&(n.classes[t]=!1),this.delegate.removeClass(e,t)}setStyle(e,t,n,r){const i=Nb(e);i&&i instanceof kb&&(i.styles[t]=n),this.delegate.setStyle(e,t,n,r)}removeStyle(e,t,n){const r=Nb(e);r&&r instanceof kb&&(r.styles[t]=null),this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){const r=Nb(e);r&&r instanceof kb&&(r.properties[t]=n),this.delegate.setProperty(e,t,n)}listen(e,t,n){if("string"!=typeof e){const r=Nb(e);r&&r.listeners.push(new _b(t,n))}return this.delegate.listen(e,t,n)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setValue(e,t){return this.delegate.setValue(e,t)}}function Cw(e){return jv(),xh.overrideProvider(e)}function _w(e,t){return jv(),xh.overrideComponentView(e,t)}function Sw(){return jv(),xh.clearOverrides()}function kw(e,t,n){return new xw(e,t,n)}class xw extends wd{constructor(e,t,n){super(),this.moduleType=e,this._bootstrapComponents=t,this._ngModuleDefFactory=n}create(e){jv();const t=function(e){const t=Array.from(e.providers),n=Array.from(e.modules),r={};for(const i in e.providersByKey)r[i]=e.providersByKey[i];return{factory:e.factory,isRoot:e.isRoot,providers:t,modules:n,providersByKey:r}}(Qh(this._ngModuleDefFactory));return xh.createNgModuleRef(this.moduleType,e||xe.NULL,this._bootstrapComponents,t)}}},"9OqN":function(e,t,n){var r,i,l;e.exports=(r=n("Ib8C"),n("OLod"),r.mode.CTR=(l=(i=r.lib.BlockCipherMode.extend()).Encryptor=i.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,i=this._iv,l=this._counter;i&&(l=this._counter=i.slice(0),this._iv=void 0);var s=l.slice(0);n.encryptBlock(s,0),l[r-1]=l[r-1]+1|0;for(var o=0;o<r;o++)e[t+o]^=s[o]}}),i.Decryptor=l,i),r.mode.CTR)},"9ppp":function(e,t,n){"use strict";function r(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}n.d(t,"a",function(){return i}),r.prototype=Object.create(Error.prototype);const i=r},ALsQ:function(e,t,n){var r;e.exports=(r=n("Ib8C"),n("OLod"),r.mode.CFB=function(){var e=r.lib.BlockCipherMode.extend();function t(e,t,n,r){var i=this._iv;if(i){var l=i.slice(0);this._iv=void 0}else l=this._prevBlock;r.encryptBlock(l,0);for(var s=0;s<n;s++)e[t+s]^=l[s]}return e.Encryptor=e.extend({processBlock:function(e,n){var r=this._cipher,i=r.blockSize;t.call(this,e,n,i,r),this._prevBlock=e.slice(n,n+i)}}),e.Decryptor=e.extend({processBlock:function(e,n){var r=this._cipher,i=r.blockSize,l=e.slice(n,n+i);t.call(this,e,n,i,r),this._prevBlock=l}}),e}(),r.mode.CFB)},CRDf:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("kJWO");const i=e=>t=>{const n=e[r.a]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)}},Cfvw:function(e,t,n){"use strict";var r=n("HDdC"),i=n("c2HN"),l=n("I55L"),s=n("kJWO"),o=n("Lhse"),a=n("yCtX"),u=n("quSY"),c=n("a7t3"),d=n("pLzU"),h=n("CRDf"),f=n("SeVD");function p(e,t){if(!t)return e instanceof r.a?e:new r.a(Object(f.a)(e));if(null!=e){if(function(e){return e&&"function"==typeof e[s.a]}(e))return function(e,t){return new r.a(t?n=>{const r=new u.a;return r.add(t.schedule(()=>{const i=e[s.a]();r.add(i.subscribe({next(e){r.add(t.schedule(()=>n.next(e)))},error(e){r.add(t.schedule(()=>n.error(e)))},complete(){r.add(t.schedule(()=>n.complete()))}}))})),r}:Object(h.a)(e))}(e,t);if(Object(i.a)(e))return function(e,t){return new r.a(t?n=>{const r=new u.a;return r.add(t.schedule(()=>e.then(e=>{r.add(t.schedule(()=>{n.next(e),r.add(t.schedule(()=>n.complete()))}))},e=>{r.add(t.schedule(()=>n.error(e)))}))),r}:Object(c.a)(e))}(e,t);if(Object(l.a)(e))return Object(a.a)(e,t);if(function(e){return e&&"function"==typeof e[o.a]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.a(t?n=>{const r=new u.a;let i;return r.add(()=>{i&&"function"==typeof i.return&&i.return()}),r.add(t.schedule(()=>{i=e[o.a](),r.add(t.schedule(function(){if(n.closed)return;let e,t;try{const l=i.next();e=l.value,t=l.done}catch(r){return void n.error(r)}t?n.complete():(n.next(e),this.schedule())}))})),r}:Object(d.a)(e))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}n.d(t,"a",function(){return p})},D0XW:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("3N8a");const i=new(n("IjjT").a)(r.a)},DH7j:function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=Array.isArray||(e=>e&&"number"==typeof e.length)},E4JC:function(e,t,n){var r;e.exports=(r=n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"),function(){var e=r,t=e.lib.StreamCipher,n=[],i=[],l=[],s=e.algo.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)o.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(t){var l=t.words,s=l[0],a=l[1],u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),d=u>>>16|4294901760&c,h=c<<16|65535&u;for(i[0]^=u,i[1]^=d,i[2]^=c,i[3]^=h,i[4]^=u,i[5]^=d,i[6]^=c,i[7]^=h,n=0;n<4;n++)o.call(this)}},_doProcessBlock:function(e,t){var r=this._X;o.call(this),n[0]=r[0]^r[5]>>>16^r[3]<<16,n[1]=r[2]^r[7]>>>16^r[5]<<16,n[2]=r[4]^r[1]>>>16^r[7]<<16,n[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)n[i]=16711935&(n[i]<<8|n[i]>>>24)|4278255360&(n[i]<<24|n[i]>>>8),e[t+i]^=n[i]},blockSize:4,ivSize:2});function o(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],s=65535&r,o=r>>>16;l[n]=((s*s>>>17)+s*o>>>15)+o*o^((4294901760&r)*r|0)+((65535&r)*r|0)}e[0]=l[0]+(l[7]<<16|l[7]>>>16)+(l[6]<<16|l[6]>>>16)|0,e[1]=l[1]+(l[0]<<8|l[0]>>>24)+l[7]|0,e[2]=l[2]+(l[1]<<16|l[1]>>>16)+(l[0]<<16|l[0]>>>16)|0,e[3]=l[3]+(l[2]<<8|l[2]>>>24)+l[1]|0,e[4]=l[4]+(l[3]<<16|l[3]>>>16)+(l[2]<<16|l[2]>>>16)|0,e[5]=l[5]+(l[4]<<8|l[4]>>>24)+l[3]|0,e[6]=l[6]+(l[5]<<16|l[5]>>>16)+(l[4]<<16|l[4]>>>16)|0,e[7]=l[7]+(l[6]<<8|l[6]>>>24)+l[5]|0}e.Rabbit=t._createHelper(s)}(),r.Rabbit)},ELcG:function(e,t,n){var r;e.exports=(r=n("Ib8C"),function(e){var t=r,n=t.lib,i=n.WordArray,l=n.Hasher,s=t.algo,o=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),a=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=i.create([0,1518500249,1859775393,2400959708,2840853838]),h=i.create([1352829926,1548603684,1836072691,2053994217,0]),f=s.RIPEMD160=l.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var l,s,f,w,C,_,S,k,x,I,A,E=this._hash.words,T=d.words,M=h.words,R=o.words,P=a.words,O=u.words,N=c.words;for(_=l=E[0],S=s=E[1],k=f=E[2],x=w=E[3],I=C=E[4],n=0;n<80;n+=1)A=l+e[t+R[n]]|0,A+=n<16?p(s,f,w)+T[0]:n<32?m(s,f,w)+T[1]:n<48?g(s,f,w)+T[2]:n<64?y(s,f,w)+T[3]:b(s,f,w)+T[4],A=(A=v(A|=0,O[n]))+C|0,l=C,C=w,w=v(f,10),f=s,s=A,A=_+e[t+P[n]]|0,A+=n<16?b(S,k,x)+M[0]:n<32?y(S,k,x)+M[1]:n<48?g(S,k,x)+M[2]:n<64?m(S,k,x)+M[3]:p(S,k,x)+M[4],A=(A=v(A|=0,N[n]))+I|0,_=I,I=x,x=v(k,10),k=S,S=A;A=E[1]+f+x|0,E[1]=E[2]+w+I|0,E[2]=E[3]+C+_|0,E[3]=E[4]+l+S|0,E[4]=E[0]+s+k|0,E[0]=A},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,l=i.words,s=0;s<5;s++){var o=l[s];l[s]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}return i},clone:function(){var e=l.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,n){return e^t^n}function m(e,t,n){return e&t|~e&n}function g(e,t,n){return(e|~t)^n}function y(e,t,n){return e&n|t&~n}function b(e,t,n){return e^(t|~n)}function v(e,t){return e<<t|e>>>32-t}t.RIPEMD160=l._createHelper(f),t.HmacRIPEMD160=l._createHmacHelper(f)}(Math),r.RIPEMD160)},EQ5u:function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return u});var r=n("XNiG"),i=n("HDdC"),l=(n("7o/Q"),n("quSY")),s=n("x+ZX");class o extends i.a{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new l.a).add(this.source.subscribe(new c(this.getSubject(),this))),e.closed?(this._connection=null,e=l.a.EMPTY):this._connection=e),e}refCount(){return Object(s.a)()(this)}}const a=o.prototype,u={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:a._subscribe},_isComplete:{value:a._isComplete,writable:!0},getSubject:{value:a.getSubject},connect:{value:a.connect},refCount:{value:a.refCount}};class c extends r.b{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}},ETIr:function(e,t,n){var r,i;e.exports=(r=n("Ib8C"),i=r.lib.WordArray,r.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],l=0;l<n;l+=3)for(var s=(t[l>>>2]>>>24-l%4*8&255)<<16|(t[l+1>>>2]>>>24-(l+1)%4*8&255)<<8|t[l+2>>>2]>>>24-(l+2)%4*8&255,o=0;o<4&&l+.75*o<n;o++)i.push(r.charAt(s>>>6*(3-o)&63));var a=r.charAt(64);if(a)for(;i.length%4;)i.push(a);return i.join("")},parse:function(e){var t=e.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var l=0;l<n.length;l++)r[n.charCodeAt(l)]=l}var s=n.charAt(64);if(s){var o=e.indexOf(s);-1!==o&&(t=o)}return function(e,t,n){for(var r=[],l=0,s=0;s<t;s++)if(s%4){var o=n[e.charCodeAt(s-1)]<<s%4*2,a=n[e.charCodeAt(s)]>>>6-s%4*2;r[l>>>2]|=(o|a)<<24-l%4*8,l++}return i.create(r,l)}(e,t,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},r.enc.Base64)},EY2u:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return l});var r=n("HDdC");const i=new r.a(e=>e.complete());function l(e){return e?function(e){return new r.a(t=>e.schedule(()=>t.complete()))}(e):i}},"F+F2":function(e,t,n){var r;e.exports=(r=n("Ib8C"),function(){if("function"==typeof ArrayBuffer){var e=r.lib.WordArray,t=e.init;(e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var n=e.byteLength,r=[],i=0;i<n;i++)r[i>>>2]|=e[i]<<24-i%4*8;t.call(this,r,n)}else t.apply(this,arguments)}).prototype=e}}(),r.lib.WordArray)},GRuw:function(e,t,n){var r,i,l,s,o,a;e.exports=(r=n("Ib8C"),n("lPiR"),l=(i=r).lib.WordArray,a=(s=i.algo).SHA224=(o=s.SHA256).extend({_doReset:function(){this._hash=new l.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=o._doFinalize.call(this);return e.sigBytes-=4,e}}),i.SHA224=o._createHelper(a),i.HmacSHA224=o._createHmacHelper(a),r.SHA224)},GyhO:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("LRne"),i=n("0EUg");function l(...e){return Object(i.a)()(Object(r.a)(...e))}},HDdC:function(e,t,n){"use strict";var r=n("8Qeq"),i=n("7o/Q"),l=n("2QA8"),s=n("gRHU"),o=n("kJWO"),a=n("mCNh"),u=n("2fFW");n.d(t,"a",function(){return c});const c=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:r}=this,o=function(e,t,n){if(e){if(e instanceof i.a)return e;if(e[l.a])return e[l.a]()}return e||t||n?new i.a(e,t,n):new i.a(s.a)}(e,t,n);if(o.add(r?r.call(o,this.source):this.source||u.a.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),u.a.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(e){try{return this._subscribe(e)}catch(t){u.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),Object(r.a)(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=d(t))((t,n)=>{let r;r=this.subscribe(t=>{try{e(t)}catch(i){n(i),r&&r.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[o.a](){return this}pipe(...e){return 0===e.length?this:Object(a.b)(e)(this)}toPromise(e){return new(e=d(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=(t=>new e(t)),e})();function d(e){if(e||(e=u.a.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},I55L:function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=e=>e&&"number"==typeof e.length&&"function"!=typeof e},Iab2:function(e,t,n){var r,i;void 0===(i="function"==typeof(r=function(){"use strict";function t(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){l(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function n(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function r(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}var i="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,l=i.saveAs||("object"!=typeof window||window!==i?function(){}:"download"in HTMLAnchorElement.prototype?function(e,l,s){var o=i.URL||i.webkitURL,a=document.createElement("a");a.download=l=l||e.name||"download",a.rel="noopener","string"==typeof e?(a.href=e,a.origin===location.origin?r(a):n(a.href)?t(e,l,s):r(a,a.target="_blank")):(a.href=o.createObjectURL(e),setTimeout(function(){o.revokeObjectURL(a.href)},4e4),setTimeout(function(){r(a)},0))}:"msSaveOrOpenBlob"in navigator?function(e,i,l){if(i=i||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,l),i);else if(n(e))t(e,i,l);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout(function(){r(s)})}}:function(e,n,r,l){if((l=l||open("","_blank"))&&(l.document.title=l.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,r);var s="application/octet-stream"===e.type,o=/constructor/i.test(i.HTMLElement)||i.safari,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||s&&o)&&"object"==typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=a?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),l?l.location.href=e:location=e,l=null},u.readAsDataURL(e)}else{var c=i.URL||i.webkitURL,d=c.createObjectURL(e);l?l.location=d:location.href=d,l=null,setTimeout(function(){c.revokeObjectURL(d)},4e4)}});i.saveAs=l.saveAs=l,e.exports=l})?r.apply(t,[]):r)||(e.exports=i)},Ib8C:function(e,t,n){var r;e.exports=r=r||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},i=r.lib={},l=i.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},s=i.WordArray=l.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||a).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var l=0;l<i;l++)t[r+l>>>2]|=(n[l>>>2]>>>24-l%4*8&255)<<24-(r+l)%4*8;else for(l=0;l<i;l+=4)t[r+l>>>2]=n[l>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],i=function(t){t=t;var n=987654321,r=4294967295;return function(){var i=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},l=0;l<t;l+=4){var o=i(4294967296*(n||e.random()));n=987654071*o(),r.push(4294967296*o()|0)}return new s.init(r,t)}}),o=r.enc={},a=o.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var l=t[i>>>2]>>>24-i%4*8&255;r.push((l>>>4).toString(16)),r.push((15&l).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new s.init(n,t/2)}},u=o.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++)r.push(String.fromCharCode(t[i>>>2]>>>24-i%4*8&255));return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new s.init(n,t)}},c=o.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},d=i.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,i=n.sigBytes,l=this.blockSize,o=i/(4*l),a=(o=t?e.ceil(o):e.max((0|o)-this._minBufferSize,0))*l,u=e.min(4*a,i);if(a){for(var c=0;c<a;c+=l)this._doProcessBlock(r,c);var d=r.splice(0,a);n.sigBytes-=u}return new s.init(d,u)},clone:function(){var e=l.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),h=(i.Hasher=d.extend({cfg:l.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new h.HMAC.init(e,n).finalize(t)}}}),r.algo={});return r}(Math)},IjjT:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("Y/cZ");class i extends r.a{constructor(e,t=r.a.now){super(e,()=>i.delegate&&i.delegate!==this?i.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return i.delegate&&i.delegate!==this?i.delegate.schedule(e,t,n):super.schedule(e,t,n)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}},K3mO:function(e,t,n){var r,i,l,s,o,a,u;e.exports=(r=n("Ib8C"),n("3y9D"),n("WYAk"),o=(l=(i=r).lib).WordArray,u=(a=i.algo).EvpKDF=(s=l.Base).extend({cfg:s.extend({keySize:4,hasher:a.MD5,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=n.hasher.create(),i=o.create(),l=i.words,s=n.keySize,a=n.iterations;l.length<s;){u&&r.update(u);var u=r.update(e).finalize(t);r.reset();for(var c=1;c<a;c++)u=r.finalize(u),r.reset();i.concat(u)}return i.sigBytes=4*s,i}}),i.EvpKDF=function(e,t,n){return u.create(n).compute(e,t)},r.EvpKDF)},KmYQ:function(e,t,n){var r;e.exports=(r=n("Ib8C"),n("OLod"),r.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){for(var t=e.words,n=e.sigBytes-1;!(t[n>>>2]>>>24-n%4*8&255);)n--;e.sigBytes=n+1}},r.pad.ZeroPadding)},KqfI:function(e,t,n){"use strict";function r(){}n.d(t,"a",function(){return r})},LRne:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("z+Ro"),i=n("yCtX"),l=n("EY2u"),s=n("XUOw");function o(...e){let t=e[e.length-1];switch(Object(r.a)(t)?e.pop():t=void 0,e.length){case 0:return Object(l.b)(t);case 1:return t?Object(i.a)(e,t):Object(s.a)(e[0]);default:return Object(i.a)(e,t)}}},Lhse:function(e,t,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(t,"a",function(){return i});const i=r()},MlIO:function(e,t,n){var r,i,l,s,o;e.exports=(r=n("Ib8C"),l=(i=r.lib).Base,s=i.WordArray,(o=r.x64={}).Word=l.extend({init:function(e,t){this.high=e,this.low=t}}),o.WordArray=l.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var i=e[r];n.push(i.high),n.push(i.low)}return s.create(n,this.sigBytes)},clone:function(){for(var e=l.clone.call(this),t=e.words=this.words.slice(0),n=t.length,r=0;r<n;r++)t[r]=t[r].clone();return e}}),r)},NFKh:function(e,t,n){var r;e.exports=(r=n("Ib8C"),n("MlIO"),n("F+F2"),n("qM6L"),n("ETIr"),n("cv67"),n("3y9D"),n("lPiR"),n("GRuw"),n("1uat"),n("uGsb"),n("5hvy"),n("ELcG"),n("WYAk"),n("e7zE"),n("K3mO"),n("OLod"),n("ALsQ"),n("9OqN"),n("qu8F"),n("S6kV"),n("gb/T"),n("qBft"),n("oRuE"),n("jO9C"),n("KmYQ"),n("uGxW"),n("bQjk"),n("wZgz"),n("pA7S"),n("w7YG"),n("E4JC"),n("PVpz"),r)},"NHP+":function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("XNiG"),i=n("quSY");class l extends r.a{constructor(){super(...arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}_subscribe(e){return this.hasError?(e.error(this.thrownError),i.a.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),i.a.EMPTY):super._subscribe(e)}next(e){this.hasCompleted||(this.value=e,this.hasNext=!0)}error(e){this.hasCompleted||super.error(e)}complete(){this.hasCompleted=!0,this.hasNext&&super.next(this.value),super.complete()}}},NJ4a:function(e,t,n){"use strict";function r(e){setTimeout(()=>{throw e})}n.d(t,"a",function(){return r})},NXyV:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("HDdC"),i=n("Cfvw"),l=n("EY2u");function s(e){return new r.a(t=>{let n;try{n=e()}catch(r){return void t.error(r)}return(n?Object(i.a)(n):Object(l.b)()).subscribe(t)})}},Nv8m:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("DH7j"),i=n("yCtX"),l=n("l7GE"),s=n("ZUHj");function o(...e){if(1===e.length){if(!Object(r.a)(e[0]))return e[0];e=e[0]}return Object(i.a)(e,void 0).lift(new a)}class a{call(e,t){return t.subscribe(new u(e))}}class u extends l.a{constructor(e){super(e),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(e){this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{for(let n=0;n<t&&!this.hasFirst;n++){let t=e[n],r=Object(s.a)(this,t,t,n);this.subscriptions&&this.subscriptions.push(r),this.add(r)}this.observables=null}}notifyNext(e,t,n,r,i){if(!this.hasFirst){this.hasFirst=!0;for(let e=0;e<this.subscriptions.length;e++)if(e!==n){let t=this.subscriptions[e];t.unsubscribe(),this.remove(t)}this.subscriptions=null}this.destination.next(t)}}},OLod:function(e,t,n){var r;e.exports=(r=n("Ib8C"),n("K3mO"),void(r.lib.Cipher||function(e){var t=r,n=t.lib,i=n.Base,l=n.WordArray,s=n.BufferedBlockAlgorithm,o=t.enc.Base64,a=t.algo.EvpKDF,u=n.Cipher=s.extend({cfg:i.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?b:g}return function(t){return{encrypt:function(n,r,i){return e(r).encrypt(t,n,r,i)},decrypt:function(n,r,i){return e(r).decrypt(t,n,r,i)}}}}()}),c=(n.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),t.mode={}),d=n.BlockCipherMode=i.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),h=c.CBC=function(){var t=d.extend();function n(t,n,r){var i=this._iv;if(i){var l=i;this._iv=e}else l=this._prevBlock;for(var s=0;s<r;s++)t[n+s]^=l[s]}return t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize;n.call(this,e,t,i),r.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),t.Decryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,l=e.slice(t,t+i);r.decryptBlock(e,t),n.call(this,e,t,i),this._prevBlock=l}}),t}(),f=(t.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,i=r<<24|r<<16|r<<8|r,s=[],o=0;o<r;o+=4)s.push(i);var a=l.create(s,r);e.concat(a)},unpad:function(e){e.sigBytes-=255&e.words[e.sigBytes-1>>>2]}},p=(n.BlockCipher=u.extend({cfg:u.cfg.extend({mode:h,padding:f}),reset:function(){u.reset.call(this);var e=this.cfg,t=e.iv,n=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var r=n.createEncryptor;else r=n.createDecryptor,this._minBufferSize=1;this._mode&&this._mode.__creator==r?this._mode.init(this,t&&t.words):(this._mode=r.call(n,this,t&&t.words),this._mode.__creator=r)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else t=this._process(!0),e.unpad(t);return t},blockSize:4}),n.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),m=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;if(n)var r=l.create([1398893684,1701076831]).concat(n).concat(t);else r=t;return r.toString(o)},parse:function(e){var t=o.parse(e),n=t.words;if(1398893684==n[0]&&1701076831==n[1]){var r=l.create(n.slice(2,4));n.splice(0,4),t.sigBytes-=16}return p.create({ciphertext:t,salt:r})}},g=n.SerializableCipher=i.extend({cfg:i.extend({format:m}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r),l=i.finalize(t),s=i.cfg;return p.create({ciphertext:l,key:n,iv:s.iv,algorithm:e,mode:s.mode,padding:s.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),y=(t.kdf={}).OpenSSL={execute:function(e,t,n,r){r||(r=l.random(8));var i=a.create({keySize:t+n}).compute(e,r),s=l.create(i.words.slice(t),4*n);return i.sigBytes=4*t,p.create({key:i,iv:s,salt:r})}},b=n.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:y}),encrypt:function(e,t,n,r){var i=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize);r.iv=i.iv;var l=g.encrypt.call(this,e,t,i.key,r);return l.mixIn(i),l},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=r.kdf.execute(n,e.keySize,e.ivSize,t.salt);return r.iv=i.iv,g.decrypt.call(this,e,t,i.key,r)}})}()))},OQgR:function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"a",function(){return d});var r=n("7o/Q"),i=n("quSY"),l=n("HDdC"),s=n("XNiG");function o(e,t,n,r){return i=>i.lift(new a(e,t,n,r))}class a{constructor(e,t,n,r){this.keySelector=e,this.elementSelector=t,this.durationSelector=n,this.subjectSelector=r}call(e,t){return t.subscribe(new u(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}class u extends r.a{constructor(e,t,n,r,i){super(e),this.keySelector=t,this.elementSelector=n,this.durationSelector=r,this.subjectSelector=i,this.groups=null,this.attemptedToUnsubscribe=!1,this.count=0}_next(e){let t;try{t=this.keySelector(e)}catch(n){return void this.error(n)}this._group(e,t)}_group(e,t){let n=this.groups;n||(n=this.groups=new Map);let r,i=n.get(t);if(this.elementSelector)try{r=this.elementSelector(e)}catch(l){this.error(l)}else r=e;if(!i){i=this.subjectSelector?this.subjectSelector():new s.a,n.set(t,i);const e=new d(t,i,this);if(this.destination.next(e),this.durationSelector){let e;try{e=this.durationSelector(new d(t,i))}catch(l){return void this.error(l)}this.add(e.subscribe(new c(t,i,this)))}}i.closed||i.next(r)}_error(e){const t=this.groups;t&&(t.forEach((t,n)=>{t.error(e)}),t.clear()),this.destination.error(e)}_complete(){const e=this.groups;e&&(e.forEach((e,t)=>{e.complete()}),e.clear()),this.destination.complete()}removeGroup(e){this.groups.delete(e)}unsubscribe(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&super.unsubscribe())}}class c extends r.a{constructor(e,t,n){super(t),this.key=e,this.group=t,this.parent=n}_next(e){this.complete()}_unsubscribe(){const{parent:e,key:t}=this;this.key=this.parent=null,e&&e.removeGroup(t)}}class d extends l.a{constructor(e,t,n){super(),this.key=e,this.groupSubject=t,this.refCountSubscription=n}_subscribe(e){const t=new i.a,{refCountSubscription:n,groupSubject:r}=this;return n&&!n.closed&&t.add(new h(n)),t.add(r.subscribe(e)),t}}class h extends i.a{constructor(e){super(),this.parent=e,e.count++}unsubscribe(){const e=this.parent;e.closed||this.closed||(super.unsubscribe(),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())}}},PVpz:function(e,t,n){var r;e.exports=(r=n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"),function(){var e=r,t=e.lib.StreamCipher,n=[],i=[],l=[],s=e.algo.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)o.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(t){var l=t.words,s=l[0],a=l[1],u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),d=u>>>16|4294901760&c,h=c<<16|65535&u;for(r[0]^=u,r[1]^=d,r[2]^=c,r[3]^=h,r[4]^=u,r[5]^=d,r[6]^=c,r[7]^=h,i=0;i<4;i++)o.call(this)}},_doProcessBlock:function(e,t){var r=this._X;o.call(this),n[0]=r[0]^r[5]>>>16^r[3]<<16,n[1]=r[2]^r[7]>>>16^r[5]<<16,n[2]=r[4]^r[1]>>>16^r[7]<<16,n[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)n[i]=16711935&(n[i]<<8|n[i]>>>24)|4278255360&(n[i]<<24|n[i]>>>8),e[t+i]^=n[i]},blockSize:4,ivSize:2});function o(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],s=65535&r,o=r>>>16;l[n]=((s*s>>>17)+s*o>>>15)+o*o^((4294901760&r)*r|0)+((65535&r)*r|0)}e[0]=l[0]+(l[7]<<16|l[7]>>>16)+(l[6]<<16|l[6]>>>16)|0,e[1]=l[1]+(l[0]<<8|l[0]>>>24)+l[7]|0,e[2]=l[2]+(l[1]<<16|l[1]>>>16)+(l[0]<<16|l[0]>>>16)|0,e[3]=l[3]+(l[2]<<8|l[2]>>>24)+l[1]|0,e[4]=l[4]+(l[3]<<16|l[3]>>>16)+(l[2]<<16|l[2]>>>16)|0,e[5]=l[5]+(l[4]<<8|l[4]>>>24)+l[3]|0,e[6]=l[6]+(l[5]<<16|l[5]>>>16)+(l[4]<<16|l[4]>>>16)|0,e[7]=l[7]+(l[6]<<8|l[6]>>>24)+l[5]|0}e.RabbitLegacy=t._createHelper(s)}(),r.RabbitLegacy)},PqYM:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("HDdC"),i=n("D0XW"),l=n("Y7HM"),s=n("z+Ro");function o(e=0,t,n){let o=-1;return Object(l.a)(t)?o=Number(t)<1?1:Number(t):Object(s.a)(t)&&(n=t),Object(s.a)(n)||(n=i.a),new r.a(t=>{const r=Object(l.a)(e)?e:+e-n.now();return n.schedule(a,r,{index:0,period:o,subscriber:t})})}function a(e){const{index:t,period:n,subscriber:r}=e;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}},S6kV:function(e,t,n){var r,i,l;e.exports=(r=n("Ib8C"),n("OLod"),r.mode.OFB=(l=(i=r.lib.BlockCipherMode.extend()).Encryptor=i.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,i=this._iv,l=this._keystream;i&&(l=this._keystream=i.slice(0),this._iv=void 0),n.encryptBlock(l,0);for(var s=0;s<r;s++)e[t+s]^=l[s]}}),i.Decryptor=l,i),r.mode.OFB)},SeVD:function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n("HDdC"),i=n("ngJS"),l=n("a7t3"),s=n("pLzU"),o=n("CRDf"),a=n("I55L"),u=n("c2HN"),c=n("XoHu"),d=n("Lhse"),h=n("kJWO");const f=e=>{if(e instanceof r.a)return t=>e._isScalar?(t.next(e.value),void t.complete()):e.subscribe(t);if(e&&"function"==typeof e[h.a])return Object(o.a)(e);if(Object(a.a)(e))return Object(i.a)(e);if(Object(u.a)(e))return Object(l.a)(e);if(e&&"function"==typeof e[d.a])return Object(s.a)(e);{const t=Object(c.a)(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected.`+" You can provide an Observable, Promise, Array, or Iterable.")}}},SpAZ:function(e,t,n){"use strict";function r(e){return e}n.d(t,"a",function(){return r})},UmOi:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("8Y7J"),i=(n("ZbGM"),n("4P0q"));t.Draggable=function(){function e(e,t,n,i){this.el=e,this.renderer=t,this.ng2DragDropService=n,this.zone=i,this.dragEffect="move",this.dragScope="default",this.dragHandleClass="drag-handle",this.dragClass="drag-border",this.dragTransitClass="drag-transit",this.onDragStart=new r.EventEmitter,this.onDrag=new r.EventEmitter,this.onDragEnd=new r.EventEmitter,this._dragEnabled=!0}return Object.defineProperty(e.prototype,"dragImage",{get:function(){return this._dragImage},set:function(e){this._dragImage=e,this.dragImageElement=new Image,this.dragImageElement.src=this.dragImage},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dragEnabled",{get:function(){return this._dragEnabled},set:function(e){this._dragEnabled=e,this.applyDragHandleClass()},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.applyDragHandleClass()},e.prototype.ngOnDestroy=function(){this.unbindDragListeners()},e.prototype.dragStart=function(e){var t=this;this.allowDrag()?(i.DomHelper.addClass(this.el,this.dragTransitClass),setTimeout(function(){i.DomHelper.addClass(t.el,t.dragClass),i.DomHelper.removeClass(t.el,t.dragTransitClass)},10),this.ng2DragDropService.dragData=this.dragData,this.ng2DragDropService.scope=this.dragScope,null!=e.dataTransfer&&e.dataTransfer.setData("text",""),this.dragImage&&e.dataTransfer.setDragImage(this.dragImageElement,0,0),e.stopPropagation(),this.onDragStart.emit(e),this.ng2DragDropService.onDragStart.next(),this.zone.runOutsideAngular(function(){t.unbindDragListener=t.renderer.listen(t.el.nativeElement,"drag",function(e){t.drag(e)})})):e.preventDefault()},e.prototype.drag=function(e){this.onDrag.emit(e)},e.prototype.dragEnd=function(e){this.unbindDragListeners(),i.DomHelper.removeClass(this.el,this.dragClass),this.ng2DragDropService.onDragEnd.next(),this.onDragEnd.emit(e),e.stopPropagation(),e.preventDefault()},e.prototype.mousedown=function(e){this.mouseDownElement=e.target},e.prototype.allowDrag=function(){return this.dragHandle?i.DomHelper.matches(this.mouseDownElement,this.dragHandle)&&this.dragEnabled:this.dragEnabled},e.prototype.applyDragHandleClass=function(){var e=this.getDragHandleElement();e&&(this.dragEnabled?i.DomHelper.addClass(e,this.dragHandleClass):i.DomHelper.removeClass(this.el,this.dragHandleClass))},e.prototype.getDragHandleElement=function(){var e=this.el;return this.dragHandle&&(e=this.el.nativeElement.querySelector(this.dragHandle)),e},e.prototype.unbindDragListeners=function(){this.unbindDragListener&&this.unbindDragListener()},e.decorators=[{type:r.Directive,args:[{selector:"[draggable]"}]}],e.propDecorators={dragData:[{type:r.Input}],dragHandle:[{type:r.Input}],dragEffect:[{type:r.Input}],dragScope:[{type:r.Input}],dragHandleClass:[{type:r.Input}],dragClass:[{type:r.Input}],dragTransitClass:[{type:r.Input}],dragImage:[{type:r.Input}],dragEnabled:[{type:r.HostBinding,args:["draggable"]},{type:r.Input}],onDragStart:[{type:r.Output}],onDrag:[{type:r.Output}],onDragEnd:[{type:r.Output}],dragStart:[{type:r.HostListener,args:["dragstart",["$event"]]}],dragEnd:[{type:r.HostListener,args:["dragend",["$event"]]}],mousedown:[{type:r.HostListener,args:["mousedown",["$event"]]},{type:r.HostListener,args:["touchstart",["$event"]]}]},e}()},VRyK:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("HDdC"),i=n("z+Ro"),l=n("bHdf"),s=n("yCtX");function o(...e){let t=Number.POSITIVE_INFINITY,n=null,o=e[e.length-1];return Object(i.a)(o)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof o&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof r.a?e[0]:Object(l.a)(t)(Object(s.a)(e,n))}},WMd4:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("EY2u"),i=n("LRne"),l=n("z6cu");const s=(()=>{class e{constructor(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}accept(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}toObservable(){switch(this.kind){case"N":return Object(i.a)(this.value);case"E":return Object(l.a)(this.error);case"C":return Object(r.b)()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}static createError(t){return new e("E",void 0,t)}static createComplete(){return e.completeNotification}}return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e})()},WYAk:function(e,t,n){var r,i,l;e.exports=(r=n("Ib8C"),l=(i=r).enc.Utf8,void(i.algo.HMAC=i.lib.Base.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=l.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),s=this._iKey=t.clone(),o=i.words,a=s.words,u=0;u<n;u++)o[u]^=1549556828,a[u]^=909522486;i.sigBytes=s.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))},XNiG:function(e,t,n){"use strict";n.d(t,"b",function(){return u}),n.d(t,"a",function(){return c});var r=n("HDdC"),i=n("7o/Q"),l=n("quSY"),s=n("9ppp"),o=n("Ylt2"),a=n("2QA8");class u extends i.a{constructor(e){super(e),this.destination=e}}const c=(()=>{class e extends r.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[a.a](){return new u(this)}lift(e){const t=new d(this,this);return t.operator=e,t}next(e){if(this.closed)throw new s.a;if(!this.isStopped){const{observers:t}=this,n=t.length,r=t.slice();for(let i=0;i<n;i++)r[i].next(e)}}error(e){if(this.closed)throw new s.a;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,n=t.length,r=t.slice();for(let i=0;i<n;i++)r[i].error(e);this.observers.length=0}complete(){if(this.closed)throw new s.a;this.isStopped=!0;const{observers:e}=this,t=e.length,n=e.slice();for(let r=0;r<t;r++)n[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new s.a;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new s.a;return this.hasError?(e.error(this.thrownError),l.a.EMPTY):this.isStopped?(e.complete(),l.a.EMPTY):(this.observers.push(e),new o.a(this,e))}asObservable(){const e=new r.a;return e.source=this,e}}return e.create=((e,t)=>new d(e,t)),e})();class d extends c{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):l.a.EMPTY}}},XUOw:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("HDdC");function i(e){const t=new r.a(t=>{t.next(e),t.complete()});return t._isScalar=!0,t.value=e,t}},XoHu:function(e,t,n){"use strict";function r(e){return null!==e&&"object"==typeof e}n.d(t,"a",function(){return r})},"Y/cZ":function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=(()=>{class e{constructor(t,n=e.now){this.SchedulerAction=t,this.now=n}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}return e.now=(()=>Date.now()),e})()},Y6u4:function(e,t,n){"use strict";function r(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}n.d(t,"a",function(){return i}),r.prototype=Object.create(Error.prototype);const i=r},Y7HM:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("DH7j");function i(e){return!Object(r.a)(e)&&e-parseFloat(e)+1>=0}},Ylt2:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("quSY");class i extends r.a{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},ZUHj:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("51Dv"),i=n("SeVD");function l(e,t,n,l,s=new r.a(e,n,l)){if(!s.closed)return Object(i.a)(t)(s)}},ZbGM:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("8Y7J"),i=n("qCKp");t.NgDragDropService=function(){function e(){this.onDragStart=new i.Subject,this.onDragEnd=new i.Subject}return e.decorators=[{type:r.Injectable}],e}()},a7t3:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("NJ4a");const i=e=>t=>(e.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,r.a),t)},bHdf:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("5+tZ"),i=n("SpAZ");function l(e=Number.POSITIVE_INFINITY){return Object(r.a)(i.a,e)}},bQjk:function(e,t,n){var r,i,l;e.exports=(r=n("Ib8C"),n("OLod"),i=r.lib.CipherParams,l=r.enc.Hex,r.format.Hex={stringify:function(e){return e.ciphertext.toString(l)},parse:function(e){var t=l.parse(e);return i.create({ciphertext:t})}},r.format.Hex)},c2HN:function(e,t,n){"use strict";function r(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,"a",function(){return r})},cp0P:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("HDdC"),i=n("DH7j"),l=n("EY2u"),s=n("ZUHj"),o=n("l7GE"),a=n("lJxs");function u(...e){let t;return"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&Object(i.a)(e[0])&&(e=e[0]),0===e.length?l.a:t?u(e).pipe(Object(a.a)(e=>t(...e))):new r.a(t=>new c(t,e))}class c extends o.a{constructor(e,t){super(e),this.sources=t,this.completed=0,this.haveValues=0;const n=t.length;this.values=new Array(n);for(let r=0;r<n;r++){const e=t[r],n=Object(s.a)(this,e,null,r);n&&this.add(n)}}notifyNext(e,t,n,r,i){this.values[n]=t,i._hasValue||(i._hasValue=!0,this.haveValues++)}notifyComplete(e){const{destination:t,haveValues:n,values:r}=this,i=r.length;e._hasValue?(this.completed++,this.completed===i&&(n===i&&t.next(r),t.complete())):t.complete()}}},cv67:function(e,t,n){var r;e.exports=(r=n("Ib8C"),function(e){var t=r,n=t.lib,i=n.WordArray,l=n.Hasher,s=t.algo,o=[];!function(){for(var t=0;t<64;t++)o[t]=4294967296*e.abs(e.sin(t+1))|0}();var a=s.MD5=l.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var l=this._hash.words,s=e[t+0],a=e[t+1],f=e[t+2],p=e[t+3],m=e[t+4],g=e[t+5],y=e[t+6],b=e[t+7],v=e[t+8],w=e[t+9],C=e[t+10],_=e[t+11],S=e[t+12],k=e[t+13],x=e[t+14],I=e[t+15],A=l[0],E=l[1],T=l[2],M=l[3];A=u(A,E,T,M,s,7,o[0]),M=u(M,A,E,T,a,12,o[1]),T=u(T,M,A,E,f,17,o[2]),E=u(E,T,M,A,p,22,o[3]),A=u(A,E,T,M,m,7,o[4]),M=u(M,A,E,T,g,12,o[5]),T=u(T,M,A,E,y,17,o[6]),E=u(E,T,M,A,b,22,o[7]),A=u(A,E,T,M,v,7,o[8]),M=u(M,A,E,T,w,12,o[9]),T=u(T,M,A,E,C,17,o[10]),E=u(E,T,M,A,_,22,o[11]),A=u(A,E,T,M,S,7,o[12]),M=u(M,A,E,T,k,12,o[13]),T=u(T,M,A,E,x,17,o[14]),A=c(A,E=u(E,T,M,A,I,22,o[15]),T,M,a,5,o[16]),M=c(M,A,E,T,y,9,o[17]),T=c(T,M,A,E,_,14,o[18]),E=c(E,T,M,A,s,20,o[19]),A=c(A,E,T,M,g,5,o[20]),M=c(M,A,E,T,C,9,o[21]),T=c(T,M,A,E,I,14,o[22]),E=c(E,T,M,A,m,20,o[23]),A=c(A,E,T,M,w,5,o[24]),M=c(M,A,E,T,x,9,o[25]),T=c(T,M,A,E,p,14,o[26]),E=c(E,T,M,A,v,20,o[27]),A=c(A,E,T,M,k,5,o[28]),M=c(M,A,E,T,f,9,o[29]),T=c(T,M,A,E,b,14,o[30]),A=d(A,E=c(E,T,M,A,S,20,o[31]),T,M,g,4,o[32]),M=d(M,A,E,T,v,11,o[33]),T=d(T,M,A,E,_,16,o[34]),E=d(E,T,M,A,x,23,o[35]),A=d(A,E,T,M,a,4,o[36]),M=d(M,A,E,T,m,11,o[37]),T=d(T,M,A,E,b,16,o[38]),E=d(E,T,M,A,C,23,o[39]),A=d(A,E,T,M,k,4,o[40]),M=d(M,A,E,T,s,11,o[41]),T=d(T,M,A,E,p,16,o[42]),E=d(E,T,M,A,y,23,o[43]),A=d(A,E,T,M,w,4,o[44]),M=d(M,A,E,T,S,11,o[45]),T=d(T,M,A,E,I,16,o[46]),A=h(A,E=d(E,T,M,A,f,23,o[47]),T,M,s,6,o[48]),M=h(M,A,E,T,b,10,o[49]),T=h(T,M,A,E,x,15,o[50]),E=h(E,T,M,A,g,21,o[51]),A=h(A,E,T,M,S,6,o[52]),M=h(M,A,E,T,p,10,o[53]),T=h(T,M,A,E,C,15,o[54]),E=h(E,T,M,A,a,21,o[55]),A=h(A,E,T,M,v,6,o[56]),M=h(M,A,E,T,I,10,o[57]),T=h(T,M,A,E,y,15,o[58]),E=h(E,T,M,A,k,21,o[59]),A=h(A,E,T,M,m,6,o[60]),M=h(M,A,E,T,_,10,o[61]),T=h(T,M,A,E,f,15,o[62]),E=h(E,T,M,A,w,21,o[63]),l[0]=l[0]+A|0,l[1]=l[1]+E|0,l[2]=l[2]+T|0,l[3]=l[3]+M|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var l=e.floor(r/4294967296),s=r;n[15+(i+64>>>9<<4)]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),n[14+(i+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),t.sigBytes=4*(n.length+1),this._process();for(var o=this._hash,a=o.words,u=0;u<4;u++){var c=a[u];a[u]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return o},clone:function(){var e=l.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,n,r,i,l,s){var o=e+(t&n|~t&r)+i+s;return(o<<l|o>>>32-l)+t}function c(e,t,n,r,i,l,s){var o=e+(t&r|n&~r)+i+s;return(o<<l|o>>>32-l)+t}function d(e,t,n,r,i,l,s){var o=e+(t^n^r)+i+s;return(o<<l|o>>>32-l)+t}function h(e,t,n,r,i,l,s){var o=e+(n^(t|~r))+i+s;return(o<<l|o>>>32-l)+t}t.MD5=l._createHelper(a),t.HmacMD5=l._createHmacHelper(a)}(Math),r.MD5)},e7zE:function(e,t,n){var r,i,l,s,o,a,u,c;e.exports=(r=n("Ib8C"),n("3y9D"),n("WYAk"),o=(l=(i=r).lib).WordArray,u=(a=i.algo).HMAC,c=a.PBKDF2=(s=l.Base).extend({cfg:s.extend({keySize:4,hasher:a.SHA1,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=u.create(n.hasher,e),i=o.create(),l=o.create([1]),s=i.words,a=l.words,c=n.keySize,d=n.iterations;s.length<c;){var h=r.update(t).finalize(l);r.reset();for(var f=h.words,p=f.length,m=h,g=1;g<d;g++){m=r.finalize(m),r.reset();for(var y=m.words,b=0;b<p;b++)f[b]^=y[b]}i.concat(h),a[0]++}return i.sigBytes=4*c,i}}),i.PBKDF2=function(e,t,n){return c.create(n).compute(e,t)},r.PBKDF2)},gRHU:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("2fFW"),i=n("NJ4a");const l={closed:!0,next(e){},error(e){if(r.a.useDeprecatedSynchronousErrorHandling)throw e;Object(i.a)(e)},complete(){}}},"gb/T":function(e,t,n){var r,i;e.exports=(r=n("Ib8C"),n("OLod"),r.mode.ECB=((i=r.lib.BlockCipherMode.extend()).Encryptor=i.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),i.Decryptor=i.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),i),r.mode.ECB)},itXk:function(e,t,n){"use strict";n.d(t,"b",function(){return u}),n.d(t,"a",function(){return c});var r=n("z+Ro"),i=n("DH7j"),l=n("l7GE"),s=n("ZUHj"),o=n("yCtX");const a={};function u(...e){let t=null,n=null;return Object(r.a)(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&Object(i.a)(e[0])&&(e=e[0]),Object(o.a)(e,n).lift(new c(t))}class c{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new d(e,this.resultSelector))}}class d extends l.a{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(a),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let n=0;n<t;n++){const t=e[n];this.add(Object(s.a)(this,t,t,n))}}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,n,r,i){const l=this.values,s=this.toRespond?l[n]===a?--this.toRespond:this.toRespond:0;l[n]=t,0===s&&(this.resultSelector?this._tryResultSelector(l):this.destination.next(l.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}},jO9C:function(e,t,n){var r;e.exports=(r=n("Ib8C"),n("OLod"),r.pad.Iso97971={pad:function(e,t){e.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(e,t)},unpad:function(e){r.pad.ZeroPadding.unpad(e),e.sigBytes--}},r.pad.Iso97971)},jtHE:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("XNiG"),i=n("qgXg"),l=n("quSY"),s=n("pxpQ"),o=n("9ppp"),a=n("Ylt2");class u extends r.a{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift(),super.next(e)}nextTimeWindow(e){this._events.push(new c(this._getNow(),e)),this._trimBufferThenGetEvents(),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,n=t?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,i=n.length;let u;if(this.closed)throw new o.a;if(this.isStopped||this.hasError?u=l.a.EMPTY:(this.observers.push(e),u=new a.a(this,e)),r&&e.add(e=new s.a(e,r)),t)for(let l=0;l<i&&!e.closed;l++)e.next(n[l]);else for(let l=0;l<i&&!e.closed;l++)e.next(n[l].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),u}_getNow(){return(this.scheduler||i.a).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,n=this._windowTime,r=this._events,i=r.length;let l=0;for(;l<i&&!(e-r[l].time<n);)l++;return i>t&&(l=Math.max(l,i-t)),l>0&&r.splice(0,l),r}}class c{constructor(e,t){this.time=e,this.value=t}}},kJWO:function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r="function"==typeof Symbol&&Symbol.observable||"@@observable"},kU1M:function(e,t,n){"use strict";n.r(t);var r=n("l7GE"),i=n("ZUHj");function l(e){return function(t){return t.lift(new s(e))}}class s{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new o(e,this.durationSelector))}}class o extends r.a{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:r}=this;n=r(e)}catch(t){return this.destination.error(t)}const r=Object(i.a)(this,n);!r||r.closed?this.clearThrottle():this.add(this.throttled=r)}}clearThrottle(){const{value:e,hasValue:t,throttled:n}=this;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),t&&(this.value=null,this.hasValue=!1,this.destination.next(e))}notifyNext(e,t,n,r){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var a=n("D0XW"),u=n("PqYM");function c(e,t=a.a){return l(()=>Object(u.a)(e,t))}function d(e){return function(t){return t.lift(new h(e))}}class h{constructor(e){this.closingNotifier=e}call(e,t){return t.subscribe(new f(e,this.closingNotifier))}}class f extends r.a{constructor(e,t){super(e),this.buffer=[],this.add(Object(i.a)(this,t))}_next(e){this.buffer.push(e)}notifyNext(e,t,n,r,i){const l=this.buffer;this.buffer=[],this.destination.next(l)}}var p=n("7o/Q");function m(e,t=null){return function(n){return n.lift(new g(e,t))}}class g{constructor(e,t){this.bufferSize=e,this.startBufferEvery=t,this.subscriberClass=t&&e!==t?b:y}call(e,t){return t.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))}}class y extends p.a{constructor(e,t){super(e),this.bufferSize=t,this.buffer=[]}_next(e){const t=this.buffer;t.push(e),t.length==this.bufferSize&&(this.destination.next(t),this.buffer=[])}_complete(){const e=this.buffer;e.length>0&&this.destination.next(e),super._complete()}}class b extends p.a{constructor(e,t,n){super(e),this.bufferSize=t,this.startBufferEvery=n,this.buffers=[],this.count=0}_next(e){const{bufferSize:t,startBufferEvery:n,buffers:r,count:i}=this;this.count++,i%n==0&&r.push([]);for(let l=r.length;l--;){const n=r[l];n.push(e),n.length===t&&(r.splice(l,1),this.destination.next(n))}}_complete(){const{buffers:e,destination:t}=this;for(;e.length>0;){let n=e.shift();n.length>0&&t.next(n)}super._complete()}}var v=n("z+Ro");function w(e){let t=arguments.length,n=a.a;Object(v.a)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],t--);let r=null;t>=2&&(r=arguments[1]);let i=Number.POSITIVE_INFINITY;return t>=3&&(i=arguments[2]),function(t){return t.lift(new C(e,r,i,n))}}class C{constructor(e,t,n,r){this.bufferTimeSpan=e,this.bufferCreationInterval=t,this.maxBufferSize=n,this.scheduler=r}call(e,t){return t.subscribe(new S(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}class _{constructor(){this.buffer=[]}}class S extends p.a{constructor(e,t,n,r,i){super(e),this.bufferTimeSpan=t,this.bufferCreationInterval=n,this.maxBufferSize=r,this.scheduler=i,this.contexts=[];const l=this.openContext();if(this.timespanOnly=null==n||n<0,this.timespanOnly)this.add(l.closeAction=i.schedule(k,t,{subscriber:this,context:l,bufferTimeSpan:t}));else{const e={bufferTimeSpan:t,bufferCreationInterval:n,subscriber:this,scheduler:i};this.add(l.closeAction=i.schedule(I,t,{subscriber:this,context:l})),this.add(i.schedule(x,n,e))}}_next(e){const t=this.contexts,n=t.length;let r;for(let i=0;i<n;i++){const n=t[i],l=n.buffer;l.push(e),l.length==this.maxBufferSize&&(r=n)}r&&this.onBufferFull(r)}_error(e){this.contexts.length=0,super._error(e)}_complete(){const{contexts:e,destination:t}=this;for(;e.length>0;){const n=e.shift();t.next(n.buffer)}super._complete()}_unsubscribe(){this.contexts=null}onBufferFull(e){this.closeContext(e);const t=e.closeAction;if(t.unsubscribe(),this.remove(t),!this.closed&&this.timespanOnly){e=this.openContext();const t=this.bufferTimeSpan;this.add(e.closeAction=this.scheduler.schedule(k,t,{subscriber:this,context:e,bufferTimeSpan:t}))}}openContext(){const e=new _;return this.contexts.push(e),e}closeContext(e){this.destination.next(e.buffer);const t=this.contexts;(t?t.indexOf(e):-1)>=0&&t.splice(t.indexOf(e),1)}}function k(e){const t=e.subscriber,n=e.context;n&&t.closeContext(n),t.closed||(e.context=t.openContext(),e.context.closeAction=this.schedule(e,e.bufferTimeSpan))}function x(e){const{bufferCreationInterval:t,bufferTimeSpan:n,subscriber:r,scheduler:i}=e,l=r.openContext();r.closed||(r.add(l.closeAction=i.schedule(I,n,{subscriber:r,context:l})),this.schedule(e,t))}function I(e){const{subscriber:t,context:n}=e;t.closeContext(n)}var A=n("quSY");function E(e,t){return function(n){return n.lift(new T(e,t))}}class T{constructor(e,t){this.openings=e,this.closingSelector=t}call(e,t){return t.subscribe(new M(e,this.openings,this.closingSelector))}}class M extends r.a{constructor(e,t,n){super(e),this.openings=t,this.closingSelector=n,this.contexts=[],this.add(Object(i.a)(this,t))}_next(e){const t=this.contexts,n=t.length;for(let r=0;r<n;r++)t[r].buffer.push(e)}_error(e){const t=this.contexts;for(;t.length>0;){const e=t.shift();e.subscription.unsubscribe(),e.buffer=null,e.subscription=null}this.contexts=null,super._error(e)}_complete(){const e=this.contexts;for(;e.length>0;){const t=e.shift();this.destination.next(t.buffer),t.subscription.unsubscribe(),t.buffer=null,t.subscription=null}this.contexts=null,super._complete()}notifyNext(e,t,n,r,i){e?this.closeBuffer(e):this.openBuffer(t)}notifyComplete(e){this.closeBuffer(e.context)}openBuffer(e){try{const n=this.closingSelector.call(this,e);n&&this.trySubscribe(n)}catch(t){this._error(t)}}closeBuffer(e){const t=this.contexts;if(t&&e){const{buffer:n,subscription:r}=e;this.destination.next(n),t.splice(t.indexOf(e),1),this.remove(r),r.unsubscribe()}}trySubscribe(e){const t=this.contexts,n=new A.a,r={buffer:[],subscription:n};t.push(r);const l=Object(i.a)(this,e,r);!l||l.closed?this.closeBuffer(r):(l.context=r,this.add(l),n.add(l))}}function R(e){return function(t){return t.lift(new P(e))}}class P{constructor(e){this.closingSelector=e}call(e,t){return t.subscribe(new O(e,this.closingSelector))}}class O extends r.a{constructor(e,t){super(e),this.closingSelector=t,this.subscribing=!1,this.openBuffer()}_next(e){this.buffer.push(e)}_complete(){const e=this.buffer;e&&this.destination.next(e),super._complete()}_unsubscribe(){this.buffer=null,this.subscribing=!1}notifyNext(e,t,n,r,i){this.openBuffer()}notifyComplete(){this.subscribing?this.complete():this.openBuffer()}openBuffer(){let e,{closingSubscription:t}=this;t&&(this.remove(t),t.unsubscribe()),this.buffer&&this.destination.next(this.buffer),this.buffer=[];try{const{closingSelector:t}=this;e=t()}catch(n){return this.error(n)}t=new A.a,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(Object(i.a)(this,e)),this.subscribing=!1}}var N=n("51Dv");function D(e){return function(t){const n=new F(e),r=t.lift(n);return n.caught=r}}class F{constructor(e){this.selector=e}call(e,t){return t.subscribe(new V(e,this.selector,this.caught))}}class V extends r.a{constructor(e,t,n){super(e),this.selector=t,this.caught=n}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(t){return void super.error(t)}this._unsubscribeAndRecycle();const r=new N.a(this,void 0,void 0);this.add(r),Object(i.a)(this,n,void 0,void 0,r)}}}var j=n("itXk");function B(e){return t=>t.lift(new j.a(e))}var L=n("DH7j"),H=n("Cfvw");function U(...e){let t=null;return"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&Object(L.a)(e[0])&&(e=e[0].slice()),n=>n.lift.call(Object(H.a)([n,...e]),new j.a(t))}var z=n("GyhO");function G(...e){return t=>t.lift.call(Object(z.a)(t,...e))}var W=n("0EUg"),$=n("5+tZ");function q(e,t){return Object($.a)(e,t,1)}function K(e,t){return q(()=>e,t)}function Y(e){return t=>t.lift(new Q(e,t))}class Q{constructor(e,t){this.predicate=e,this.source=t}call(e,t){return t.subscribe(new Z(e,this.predicate,this.source))}}class Z extends p.a{constructor(e,t,n){super(e),this.predicate=t,this.source=n,this.count=0,this.index=0}_next(e){this.predicate?this._tryPredicate(e):this.count++}_tryPredicate(e){let t;try{t=this.predicate(e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t&&this.count++}_complete(){this.destination.next(this.count),this.destination.complete()}}function X(e){return t=>t.lift(new J(e))}class J{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new ee(e,this.durationSelector))}}class ee extends r.a{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1,this.durationSubscription=null}_next(e){try{const n=this.durationSelector.call(this,e);n&&this._tryNext(e,n)}catch(t){this.destination.error(t)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(e,t){let n=this.durationSubscription;this.value=e,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=Object(i.a)(this,t))&&!n.closed&&this.add(this.durationSubscription=n)}notifyNext(e,t,n,r,i){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const e=this.value,t=this.durationSubscription;t&&(this.durationSubscription=null,t.unsubscribe(),this.remove(t)),this.value=null,this.hasValue=!1,super._next(e)}}}function te(e,t=a.a){return n=>n.lift(new ne(e,t))}class ne{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new re(e,this.dueTime,this.scheduler))}}class re extends p.a{constructor(e,t,n){super(e),this.dueTime=t,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(ie,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function ie(e){e.debouncedNext()}function le(e=null){return t=>t.lift(new se(e))}class se{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new oe(e,this.defaultValue))}}class oe extends p.a{constructor(e,t){super(e),this.defaultValue=t,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function ae(e){return e instanceof Date&&!isNaN(+e)}var ue=n("WMd4");function ce(e,t=a.a){const n=ae(e)?+e-t.now():Math.abs(e);return e=>e.lift(new de(n,t))}class de{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new he(e,this.delay,this.scheduler))}}class he extends p.a{constructor(e,t,n){super(e),this.delay=t,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(e){const t=e.source,n=t.queue,r=e.scheduler,i=e.destination;for(;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){const t=Math.max(0,n[0].time-r.now());this.schedule(e,t)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(he.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,n=new fe(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(ue.a.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(ue.a.createComplete()),this.unsubscribe()}}class fe{constructor(e,t){this.time=e,this.notification=t}}var pe=n("HDdC");function me(e,t){return t?n=>new be(n,t).lift(new ge(e)):t=>t.lift(new ge(e))}class ge{constructor(e){this.delayDurationSelector=e}call(e,t){return t.subscribe(new ye(e,this.delayDurationSelector))}}class ye extends r.a{constructor(e,t){super(e),this.delayDurationSelector=t,this.completed=!1,this.delayNotifierSubscriptions=[],this.index=0}notifyNext(e,t,n,r,i){this.destination.next(e),this.removeSubscription(i),this.tryComplete()}notifyError(e,t){this._error(e)}notifyComplete(e){const t=this.removeSubscription(e);t&&this.destination.next(t),this.tryComplete()}_next(e){const t=this.index++;try{const r=this.delayDurationSelector(e,t);r&&this.tryDelay(r,e)}catch(n){this.destination.error(n)}}_complete(){this.completed=!0,this.tryComplete(),this.unsubscribe()}removeSubscription(e){e.unsubscribe();const t=this.delayNotifierSubscriptions.indexOf(e);return-1!==t&&this.delayNotifierSubscriptions.splice(t,1),e.outerValue}tryDelay(e,t){const n=Object(i.a)(this,e,t);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))}tryComplete(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()}}class be extends pe.a{constructor(e,t){super(),this.source=e,this.subscriptionDelay=t}_subscribe(e){this.subscriptionDelay.subscribe(new ve(e,this.source))}}class ve extends p.a{constructor(e,t){super(),this.parent=e,this.source=t,this.sourceSubscribed=!1}_next(e){this.subscribeToSource()}_error(e){this.unsubscribe(),this.parent.error(e)}_complete(){this.unsubscribe(),this.subscribeToSource()}subscribeToSource(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))}}function we(){return function(e){return e.lift(new Ce)}}class Ce{call(e,t){return t.subscribe(new _e(e))}}class _e extends p.a{constructor(e){super(e)}_next(e){e.observe(this.destination)}}function Se(e,t){return n=>n.lift(new ke(e,t))}class ke{constructor(e,t){this.keySelector=e,this.flushes=t}call(e,t){return t.subscribe(new xe(e,this.keySelector,this.flushes))}}class xe extends r.a{constructor(e,t,n){super(e),this.keySelector=t,this.values=new Set,n&&this.add(Object(i.a)(this,n))}notifyNext(e,t,n,r,i){this.values.clear()}notifyError(e,t){this._error(e)}_next(e){this.keySelector?this._useKeySelector(e):this._finalizeNext(e,e)}_useKeySelector(e){let t;const{destination:n}=this;try{t=this.keySelector(e)}catch(r){return void n.error(r)}this._finalizeNext(t,e)}_finalizeNext(e,t){const{values:n}=this;n.has(e)||(n.add(e),this.destination.next(t))}}function Ie(e,t){return n=>n.lift(new Ae(e,t))}class Ae{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new Ee(e,this.compare,this.keySelector))}}class Ee extends p.a{constructor(e,t,n){super(e),this.keySelector=n,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:n}=this;t=n?n(e):e}catch(r){return this.destination.error(r)}let n=!1;if(this.hasKey)try{const{compare:e}=this;n=e(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;n||(this.key=t,this.destination.next(e))}}function Te(e,t){return Ie((n,r)=>t?t(n[e],r[e]):n[e]===r[e])}var Me=n("4I5i");function Re(e,t){return function(n){return n.lift(new Pe(e,t))}}class Pe{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new Oe(e,this.predicate,this.thisArg))}}class Oe extends p.a{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}var Ne=n("KqfI"),De=n("n6bG");function Fe(e,t,n){return function(r){return r.lift(new Ve(e,t,n))}}class Ve{constructor(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}call(e,t){return t.subscribe(new je(e,this.nextOrObserver,this.error,this.complete))}}class je extends p.a{constructor(e,t,n,r){super(e),this._tapNext=Ne.a,this._tapError=Ne.a,this._tapComplete=Ne.a,this._tapError=n||Ne.a,this._tapComplete=r||Ne.a,Object(De.a)(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||Ne.a,this._tapError=t.error||Ne.a,this._tapComplete=t.complete||Ne.a)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}var Be=n("sVev");const Le=(e=function(){return new Be.a})=>Fe({hasValue:!1,next(){this.hasValue=!0},complete(){if(!this.hasValue)throw e()}});var He=n("EY2u");function Ue(e){return t=>0===e?Object(He.b)():t.lift(new ze(e))}class ze{constructor(e){if(this.total=e,this.total<0)throw new Me.a}call(e,t){return t.subscribe(new Ge(e,this.total))}}class Ge extends p.a{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}function We(e,t){if(e<0)throw new Me.a;const n=arguments.length>=2;return r=>r.pipe(Re((t,n)=>n===e),Ue(1),n?le(t):Le(()=>new Me.a))}var $e=n("yCtX"),qe=n("XUOw");function Ke(...e){return t=>{let n=e[e.length-1];Object(v.a)(n)?e.pop():n=null;const r=e.length;return 1!==r||n?r>0?Object(z.a)(t,Object($e.a)(e,n)):Object(z.a)(t,Object(He.b)(n)):Object(z.a)(t,Object(qe.a)(e[0]))}}function Ye(e,t){return n=>n.lift(new Qe(e,t,n))}class Qe{constructor(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}call(e,t){return t.subscribe(new Ze(e,this.predicate,this.thisArg,this.source))}}class Ze extends p.a{constructor(e,t,n,r){super(e),this.predicate=t,this.thisArg=n,this.source=r,this.index=0,this.thisArg=n||this}notifyComplete(e){this.destination.next(e),this.destination.complete()}_next(e){let t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function Xe(){return e=>e.lift(new Je)}class Je{call(e,t){return t.subscribe(new et(e))}}class et extends r.a{constructor(e){super(e),this.hasCompleted=!1,this.hasSubscription=!1}_next(e){this.hasSubscription||(this.hasSubscription=!0,this.add(Object(i.a)(this,e)))}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()}notifyComplete(e){this.remove(e),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}var tt=n("lJxs");function nt(e,t){return t?n=>n.pipe(nt((n,r)=>Object(H.a)(e(n,r)).pipe(Object(tt.a)((e,i)=>t(n,e,r,i))))):t=>t.lift(new rt(e))}class rt{constructor(e){this.project=e}call(e,t){return t.subscribe(new it(e,this.project))}}class it extends r.a{constructor(e,t){super(e),this.project=t,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}_next(e){this.hasSubscription||this.tryNext(e)}tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this.hasSubscription=!0,this._innerSub(t,e,n)}_innerSub(e,t,n){const r=new N.a(this,void 0,void 0);this.destination.add(r),Object(i.a)(this,e,t,n,r)}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}notifyNext(e,t,n,r,i){this.destination.next(t)}notifyError(e){this.destination.error(e)}notifyComplete(e){this.destination.remove(e),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}function lt(e,t=Number.POSITIVE_INFINITY,n){return t=(t||0)<1?Number.POSITIVE_INFINITY:t,r=>r.lift(new st(e,t,n))}class st{constructor(e,t,n){this.project=e,this.concurrent=t,this.scheduler=n}call(e,t){return t.subscribe(new ot(e,this.project,this.concurrent,this.scheduler))}}class ot extends r.a{constructor(e,t,n,r){super(e),this.project=t,this.concurrent=n,this.scheduler=r,this.index=0,this.active=0,this.hasCompleted=!1,n<Number.POSITIVE_INFINITY&&(this.buffer=[])}static dispatch(e){const{subscriber:t,result:n,value:r,index:i}=e;t.subscribeToProjection(n,r,i)}_next(e){const t=this.destination;if(t.closed)return void this._complete();const n=this.index++;if(this.active<this.concurrent){t.next(e);try{const{project:i}=this,l=i(e,n);this.scheduler?this.destination.add(this.scheduler.schedule(ot.dispatch,0,{subscriber:this,result:l,value:e,index:n})):this.subscribeToProjection(l,e,n)}catch(r){t.error(r)}}else this.buffer.push(e)}subscribeToProjection(e,t,n){this.active++,this.destination.add(Object(i.a)(this,e,t,n))}_complete(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()}notifyNext(e,t,n,r,i){this._next(t)}notifyComplete(e){const t=this.buffer;this.destination.remove(e),this.active--,t&&t.length>0&&this._next(t.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}function at(e){return t=>t.lift(new ut(e))}class ut{constructor(e){this.callback=e}call(e,t){return t.subscribe(new ct(e,this.callback))}}class ct extends p.a{constructor(e,t){super(e),this.add(new A.a(t))}}function dt(e,t){if("function"!=typeof e)throw new TypeError("predicate is not a function");return n=>n.lift(new ht(e,n,!1,t))}class ht{constructor(e,t,n,r){this.predicate=e,this.source=t,this.yieldIndex=n,this.thisArg=r}call(e,t){return t.subscribe(new ft(e,this.predicate,this.source,this.yieldIndex,this.thisArg))}}class ft extends p.a{constructor(e,t,n,r,i){super(e),this.predicate=t,this.source=n,this.yieldIndex=r,this.thisArg=i,this.index=0}notifyComplete(e){const t=this.destination;t.next(e),t.complete(),this.unsubscribe()}_next(e){const{predicate:t,thisArg:n}=this,r=this.index++;try{t.call(n||this,e,r,this.source)&&this.notifyComplete(this.yieldIndex?r:e)}catch(i){this.destination.error(i)}}_complete(){this.notifyComplete(this.yieldIndex?-1:void 0)}}function pt(e,t){return n=>n.lift(new ht(e,n,!0,t))}var mt=n("SpAZ");function gt(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Re((t,n)=>e(t,n,r)):mt.a,Ue(1),n?le(t):Le(()=>new Be.a))}var yt=n("OQgR");function bt(){return function(e){return e.lift(new vt)}}class vt{call(e,t){return t.subscribe(new wt(e))}}class wt extends p.a{_next(e){}}function Ct(){return e=>e.lift(new _t)}class _t{call(e,t){return t.subscribe(new St(e))}}class St extends p.a{constructor(e){super(e)}notifyComplete(e){const t=this.destination;t.next(e),t.complete()}_next(e){this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function kt(e){return function(t){return 0===e?Object(He.b)():t.lift(new xt(e))}}class xt{constructor(e){if(this.total=e,this.total<0)throw new Me.a}call(e,t){return t.subscribe(new It(e,this.total))}}class It extends p.a{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,n=this.total,r=this.count++;t.length<n?t.push(e):t[r%n]=e}_complete(){const e=this.destination;let t=this.count;if(t>0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let i=0;i<n;i++){const i=t++%n;e.next(r[i])}}e.complete()}}function At(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Re((t,n)=>e(t,n,r)):mt.a,kt(1),n?le(t):Le(()=>new Be.a))}function Et(e){return t=>t.lift(new Tt(e))}class Tt{constructor(e){this.value=e}call(e,t){return t.subscribe(new Mt(e,this.value))}}class Mt extends p.a{constructor(e,t){super(e),this.value=t}_next(e){this.destination.next(this.value)}}function Rt(){return function(e){return e.lift(new Pt)}}class Pt{call(e,t){return t.subscribe(new Ot(e))}}class Ot extends p.a{constructor(e){super(e)}_next(e){this.destination.next(ue.a.createNext(e))}_error(e){const t=this.destination;t.next(ue.a.createError(e)),t.complete()}_complete(){const e=this.destination;e.next(ue.a.createComplete()),e.complete()}}function Nt(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Dt(e,t,n))}}class Dt{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new Ft(e,this.accumulator,this.seed,this.hasSeed))}}class Ft extends p.a{constructor(e,t,n,r){super(e),this.accumulator=t,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let n;try{n=this.accumulator(this.seed,e,t)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}var Vt=n("mCNh");function jt(e,t){return arguments.length>=2?function(n){return Object(Vt.a)(Nt(e,t),kt(1),le(t))(n)}:function(t){return Object(Vt.a)(Nt((t,n,r)=>e(t,n,r+1)),kt(1))(t)}}function Bt(e){return jt("function"==typeof e?(t,n)=>e(t,n)>0?t:n:(e,t)=>e>t?e:t)}var Lt=n("VRyK");function Ht(...e){return t=>t.lift.call(Object(Lt.a)(t,...e))}var Ut=n("bHdf");function zt(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?Object($.a)(()=>e,t,n):("number"==typeof t&&(n=t),Object($.a)(()=>e,n))}function Gt(e,t,n=Number.POSITIVE_INFINITY){return r=>r.lift(new Wt(e,t,n))}class Wt{constructor(e,t,n){this.accumulator=e,this.seed=t,this.concurrent=n}call(e,t){return t.subscribe(new $t(e,this.accumulator,this.seed,this.concurrent))}}class $t extends r.a{constructor(e,t,n,r){super(e),this.accumulator=t,this.acc=n,this.concurrent=r,this.hasValue=!1,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){if(this.active<this.concurrent){const n=this.index++,r=this.destination;let i;try{const{accumulator:l}=this;i=l(this.acc,e,n)}catch(t){return r.error(t)}this.active++,this._innerSub(i,e,n)}else this.buffer.push(e)}_innerSub(e,t,n){const r=new N.a(this,void 0,void 0);this.destination.add(r),Object(i.a)(this,e,t,n,r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()}notifyNext(e,t,n,r,i){const{destination:l}=this;this.acc=t,this.hasValue=!0,l.next(t)}notifyComplete(e){const t=this.buffer;this.destination.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())}}function qt(e){return jt("function"==typeof e?(t,n)=>e(t,n)<0?t:n:(e,t)=>e<t?e:t)}var Kt=n("oB13"),Yt=n("pxpQ");function Qt(...e){return 1===e.length&&Object(L.a)(e[0])&&(e=e[0]),t=>t.lift(new Zt(e))}class Zt{constructor(e){this.nextSources=e}call(e,t){return t.subscribe(new Xt(e,this.nextSources))}}class Xt extends r.a{constructor(e,t){super(e),this.destination=e,this.nextSources=t}notifyError(e,t){this.subscribeToNextSource()}notifyComplete(e){this.subscribeToNextSource()}_error(e){this.subscribeToNextSource(),this.unsubscribe()}_complete(){this.subscribeToNextSource(),this.unsubscribe()}subscribeToNextSource(){const e=this.nextSources.shift();if(e){const t=new N.a(this,void 0,void 0);this.destination.add(t),Object(i.a)(this,e,void 0,void 0,t)}else this.destination.complete()}}function Jt(){return e=>e.lift(new en)}class en{call(e,t){return t.subscribe(new tn(e))}}class tn extends p.a{constructor(e){super(e),this.hasPrev=!1}_next(e){this.hasPrev?this.destination.next([this.prev,e]):this.hasPrev=!0,this.prev=e}}function nn(e,t){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=e,n.thisArg=t,n}function rn(e,t){return n=>[Re(e,t)(n),Re(nn(e,t))(n)]}function ln(...e){const t=e.length;if(0===t)throw new Error("list of properties cannot be empty.");return n=>Object(tt.a)(function(e,t){return n=>{let r=n;for(let i=0;i<t;i++){const t=r[e[i]];if(void 0===t)return;r=t}return r}}(e,t))(n)}var sn=n("XNiG");function on(e){return e?Object(Kt.a)(()=>new sn.a,e):Object(Kt.a)(new sn.a)}var an=n("2Vo4");function un(e){return t=>Object(Kt.a)(new an.a(e))(t)}var cn=n("NHP+");function dn(){return e=>Object(Kt.a)(new cn.a)(e)}var hn=n("jtHE");function fn(e,t,n,r){n&&"function"!=typeof n&&(r=n);const i="function"==typeof n?n:void 0,l=new hn.a(e,t,r);return e=>Object(Kt.a)(()=>l,i)(e)}var pn=n("Nv8m");function mn(...e){return function(t){return 1===e.length&&Object(L.a)(e[0])&&(e=e[0]),t.lift.call(Object(pn.a)(t,...e))}}function gn(e=-1){return t=>0===e?Object(He.b)():t.lift(new yn(e<0?-1:e-1,t))}class yn{constructor(e,t){this.count=e,this.source=t}call(e,t){return t.subscribe(new bn(e,this.count,this.source))}}class bn extends p.a{constructor(e,t,n){super(e),this.count=t,this.source=n}complete(){if(!this.isStopped){const{source:e,count:t}=this;if(0===t)return super.complete();t>-1&&(this.count=t-1),e.subscribe(this._unsubscribeAndRecycle())}}}function vn(e){return t=>t.lift(new wn(e))}class wn{constructor(e){this.notifier=e}call(e,t){return t.subscribe(new Cn(e,this.notifier,t))}}class Cn extends r.a{constructor(e,t,n){super(e),this.notifier=t,this.source=n,this.sourceIsBeingSubscribedTo=!0}notifyNext(e,t,n,r,i){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)}notifyComplete(e){if(!1===this.sourceIsBeingSubscribedTo)return super.complete()}complete(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return super.complete();this._unsubscribeAndRecycle(),this.notifications.next()}}_unsubscribe(){const{notifications:e,retriesSubscription:t}=this;e&&(e.unsubscribe(),this.notifications=null),t&&(t.unsubscribe(),this.retriesSubscription=null),this.retries=null}_unsubscribeAndRecycle(){const{_unsubscribe:e}=this;return this._unsubscribe=null,super._unsubscribeAndRecycle(),this._unsubscribe=e,this}subscribeToRetries(){let e;this.notifications=new sn.a;try{const{notifier:n}=this;e=n(this.notifications)}catch(t){return super.complete()}this.retries=e,this.retriesSubscription=Object(i.a)(this,e)}}function _n(e=-1){return t=>t.lift(new Sn(e,t))}class Sn{constructor(e,t){this.count=e,this.source=t}call(e,t){return t.subscribe(new kn(e,this.count,this.source))}}class kn extends p.a{constructor(e,t,n){super(e),this.count=t,this.source=n}error(e){if(!this.isStopped){const{source:t,count:n}=this;if(0===n)return super.error(e);n>-1&&(this.count=n-1),t.subscribe(this._unsubscribeAndRecycle())}}}function xn(e){return t=>t.lift(new In(e,t))}class In{constructor(e,t){this.notifier=e,this.source=t}call(e,t){return t.subscribe(new An(e,this.notifier,this.source))}}class An extends r.a{constructor(e,t,n){super(e),this.notifier=t,this.source=n}error(e){if(!this.isStopped){let n=this.errors,r=this.retries,l=this.retriesSubscription;if(r)this.errors=null,this.retriesSubscription=null;else{n=new sn.a;try{const{notifier:e}=this;r=e(n)}catch(t){return super.error(t)}l=Object(i.a)(this,r)}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=l,n.next(e)}}_unsubscribe(){const{errors:e,retriesSubscription:t}=this;e&&(e.unsubscribe(),this.errors=null),t&&(t.unsubscribe(),this.retriesSubscription=null),this.retries=null}notifyNext(e,t,n,r,i){const{_unsubscribe:l}=this;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=l,this.source.subscribe(this)}}var En=n("x+ZX");function Tn(e){return t=>t.lift(new Mn(e))}class Mn{constructor(e){this.notifier=e}call(e,t){const n=new Rn(e),r=t.subscribe(n);return r.add(Object(i.a)(n,this.notifier)),r}}class Rn extends r.a{constructor(){super(...arguments),this.hasValue=!1}_next(e){this.value=e,this.hasValue=!0}notifyNext(e,t,n,r,i){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))}}function Pn(e,t=a.a){return n=>n.lift(new On(e,t))}class On{constructor(e,t){this.period=e,this.scheduler=t}call(e,t){return t.subscribe(new Nn(e,this.period,this.scheduler))}}class Nn extends p.a{constructor(e,t,n){super(e),this.period=t,this.scheduler=n,this.hasValue=!1,this.add(n.schedule(Dn,t,{subscriber:this,period:t}))}_next(e){this.lastValue=e,this.hasValue=!0}notifyNext(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}function Dn(e){let{subscriber:t,period:n}=e;t.notifyNext(),this.schedule(e,n)}function Fn(e,t){return n=>n.lift(new Vn(e,t))}class Vn{constructor(e,t){this.compareTo=e,this.comparator=t}call(e,t){return t.subscribe(new jn(e,this.compareTo,this.comparator))}}class jn extends p.a{constructor(e,t,n){super(e),this.compareTo=t,this.comparator=n,this._a=[],this._b=[],this._oneComplete=!1,this.destination.add(t.subscribe(new Bn(e,this)))}_next(e){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(e),this.checkValues())}_complete(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()}checkValues(){const{_a:e,_b:t,comparator:n}=this;for(;e.length>0&&t.length>0;){let i=e.shift(),l=t.shift(),s=!1;try{s=n?n(i,l):i===l}catch(r){this.destination.error(r)}s||this.emit(!1)}}emit(e){const{destination:t}=this;t.next(e),t.complete()}nextB(e){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(e),this.checkValues())}completeB(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0}}class Bn extends p.a{constructor(e,t){super(e),this.parent=t}_next(e){this.parent.nextB(e)}_error(e){this.parent.error(e),this.unsubscribe()}_complete(){this.parent.completeB(),this.unsubscribe()}}var Ln=n("w1tV");function Hn(e,t,n){let r;return r=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},e=>e.lift(function({bufferSize:e=Number.POSITIVE_INFINITY,windowTime:t=Number.POSITIVE_INFINITY,refCount:n,scheduler:r}){let i,l,s=0,o=!1,a=!1;return function(u){s++,i&&!o||(o=!1,i=new hn.a(e,t,r),l=u.subscribe({next(e){i.next(e)},error(e){o=!0,i.error(e)},complete(){a=!0,i.complete()}}));const c=i.subscribe(this);this.add(()=>{s--,c.unsubscribe(),l&&!a&&n&&0===s&&(l.unsubscribe(),l=void 0,i=void 0)})}}(r))}function Un(e){return t=>t.lift(new zn(e,t))}class zn{constructor(e,t){this.predicate=e,this.source=t}call(e,t){return t.subscribe(new Gn(e,this.predicate,this.source))}}class Gn extends p.a{constructor(e,t,n){super(e),this.predicate=t,this.source=n,this.seenValue=!1,this.index=0}applySingleValue(e){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=e)}_next(e){const t=this.index++;this.predicate?this.tryNext(e,t):this.applySingleValue(e)}tryNext(e,t){try{this.predicate(e,t,this.source)&&this.applySingleValue(e)}catch(n){this.destination.error(n)}}_complete(){const e=this.destination;this.index>0?(e.next(this.seenValue?this.singleValue:void 0),e.complete()):e.error(new Be.a)}}function Wn(e){return t=>t.lift(new $n(e))}class $n{constructor(e){this.total=e}call(e,t){return t.subscribe(new qn(e,this.total))}}class qn extends p.a{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}}function Kn(e){return t=>t.lift(new Yn(e))}class Yn{constructor(e){if(this._skipCount=e,this._skipCount<0)throw new Me.a}call(e,t){return t.subscribe(0===this._skipCount?new p.a(e):new Qn(e,this._skipCount))}}class Qn extends p.a{constructor(e,t){super(e),this._skipCount=t,this._count=0,this._ring=new Array(t)}_next(e){const t=this._skipCount,n=this._count++;if(n<t)this._ring[n]=e;else{const r=n%t,i=this._ring,l=i[r];i[r]=e,this.destination.next(l)}}}function Zn(e){return t=>t.lift(new Xn(e))}class Xn{constructor(e){this.notifier=e}call(e,t){return t.subscribe(new Jn(e,this.notifier))}}class Jn extends r.a{constructor(e,t){super(e),this.hasValue=!1;const n=new N.a(this,void 0,void 0);this.add(n),this.innerSubscription=n,Object(i.a)(this,t,void 0,void 0,n)}_next(e){this.hasValue&&super._next(e)}notifyNext(e,t,n,r,i){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()}notifyComplete(){}}function er(e){return t=>t.lift(new tr(e))}class tr{constructor(e){this.predicate=e}call(e,t){return t.subscribe(new nr(e,this.predicate))}}class nr extends p.a{constructor(e,t){super(e),this.predicate=t,this.skipping=!0,this.index=0}_next(e){const t=this.destination;this.skipping&&this.tryCallPredicate(e),this.skipping||t.next(e)}tryCallPredicate(e){try{const n=this.predicate(e,this.index++);this.skipping=Boolean(n)}catch(t){this.destination.error(t)}}}function rr(...e){return t=>{let n=e[e.length-1];Object(v.a)(n)?e.pop():n=null;const r=e.length;return 1!==r||n?r>0?Object(z.a)(Object($e.a)(e,n),t):Object(z.a)(Object(He.b)(n),t):Object(z.a)(Object(qe.a)(e[0]),t)}}var ir=n("7Hc7"),lr=n("Y7HM");class sr extends pe.a{constructor(e,t=0,n=ir.a){super(),this.source=e,this.delayTime=t,this.scheduler=n,(!Object(lr.a)(t)||t<0)&&(this.delayTime=0),n&&"function"==typeof n.schedule||(this.scheduler=ir.a)}static create(e,t=0,n=ir.a){return new sr(e,t,n)}static dispatch(e){const{source:t,subscriber:n}=e;return this.add(t.subscribe(n))}_subscribe(e){return this.scheduler.schedule(sr.dispatch,this.delayTime,{source:this.source,subscriber:e})}}function or(e,t=0){return function(n){return n.lift(new ar(e,t))}}class ar{constructor(e,t){this.scheduler=e,this.delay=t}call(e,t){return new sr(t,this.delay,this.scheduler).subscribe(e)}}function ur(e,t){return"function"==typeof t?n=>n.pipe(ur((n,r)=>Object(H.a)(e(n,r)).pipe(Object(tt.a)((e,i)=>t(n,e,r,i))))):t=>t.lift(new cr(e))}class cr{constructor(e){this.project=e}call(e,t){return t.subscribe(new dr(e,this.project))}}class dr extends r.a{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(t,e,n)}_innerSub(e,t,n){const r=this.innerSubscription;r&&r.unsubscribe();const l=new N.a(this,void 0,void 0);this.destination.add(l),this.innerSubscription=Object(i.a)(this,e,t,n,l)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(e,t,n,r,i){this.destination.next(t)}}function hr(){return ur(mt.a)}function fr(e,t){return t?ur(()=>e,t):ur(()=>e)}function pr(e){return t=>t.lift(new mr(e))}class mr{constructor(e){this.notifier=e}call(e,t){const n=new gr(e),r=Object(i.a)(n,this.notifier);return r&&!n.seenValue?(n.add(r),t.subscribe(n)):n}}class gr extends r.a{constructor(e){super(e),this.seenValue=!1}notifyNext(e,t,n,r,i){this.seenValue=!0,this.complete()}notifyComplete(){}}function yr(e,t=!1){return n=>n.lift(new br(e,t))}class br{constructor(e,t){this.predicate=e,this.inclusive=t}call(e,t){return t.subscribe(new vr(e,this.predicate,this.inclusive))}}class vr extends p.a{constructor(e,t,n){super(e),this.predicate=t,this.inclusive=n,this.index=0}_next(e){const t=this.destination;let n;try{n=this.predicate(e,this.index++)}catch(r){return void t.error(r)}this.nextOrComplete(e,n)}nextOrComplete(e,t){const n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())}}const wr={leading:!0,trailing:!1};function Cr(e,t=wr){return n=>n.lift(new _r(e,t.leading,t.trailing))}class _r{constructor(e,t,n){this.durationSelector=e,this.leading=t,this.trailing=n}call(e,t){return t.subscribe(new Sr(e,this.durationSelector,this.leading,this.trailing))}}class Sr extends r.a{constructor(e,t,n,r){super(e),this.destination=e,this.durationSelector=t,this._leading=n,this._trailing=r,this._hasValue=!1}_next(e){this._hasValue=!0,this._sendValue=e,this._throttled||(this._leading?this.send():this.throttle(e))}send(){const{_hasValue:e,_sendValue:t}=this;e&&(this.destination.next(t),this.throttle(t)),this._hasValue=!1,this._sendValue=null}throttle(e){const t=this.tryDurationSelector(e);t&&this.add(this._throttled=Object(i.a)(this,t))}tryDurationSelector(e){try{return this.durationSelector(e)}catch(t){return this.destination.error(t),null}}throttlingDone(){const{_throttled:e,_trailing:t}=this;e&&e.unsubscribe(),this._throttled=null,t&&this.send()}notifyNext(e,t,n,r,i){this.throttlingDone()}notifyComplete(){this.throttlingDone()}}function kr(e,t=a.a,n=wr){return r=>r.lift(new xr(e,t,n.leading,n.trailing))}class xr{constructor(e,t,n,r){this.duration=e,this.scheduler=t,this.leading=n,this.trailing=r}call(e,t){return t.subscribe(new Ir(e,this.duration,this.scheduler,this.leading,this.trailing))}}class Ir extends p.a{constructor(e,t,n,r,i){super(e),this.duration=t,this.scheduler=n,this.leading=r,this.trailing=i,this._hasTrailingValue=!1,this._trailingValue=null}_next(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Ar,this.duration,{subscriber:this})),this.leading&&this.destination.next(e))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)}}function Ar(e){const{subscriber:t}=e;t.clearThrottle()}var Er=n("NXyV");function Tr(e=a.a){return t=>Object(Er.a)(()=>t.pipe(Nt(({current:t},n)=>({value:n,current:e.now(),last:t}),{current:e.now(),value:void 0,last:void 0}),Object(tt.a)(({current:e,last:t,value:n})=>new Mr(n,e-t))))}class Mr{constructor(e,t){this.value=e,this.interval=t}}var Rr=n("Y6u4");function Pr(e,t,n=a.a){return r=>{let i=ae(e),l=i?+e-n.now():Math.abs(e);return r.lift(new Or(l,i,t,n))}}class Or{constructor(e,t,n,r){this.waitFor=e,this.absoluteTimeout=t,this.withObservable=n,this.scheduler=r}call(e,t){return t.subscribe(new Nr(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class Nr extends r.a{constructor(e,t,n,r,i){super(e),this.absoluteTimeout=t,this.waitFor=n,this.withObservable=r,this.scheduler=i,this.action=null,this.scheduleTimeout()}static dispatchTimeout(e){const{withObservable:t}=e;e._unsubscribeAndRecycle(),e.add(Object(i.a)(e,t))}scheduleTimeout(){const{action:e}=this;e?this.action=e.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(Nr.dispatchTimeout,this.waitFor,this))}_next(e){this.absoluteTimeout||this.scheduleTimeout(),super._next(e)}_unsubscribe(){this.action=null,this.scheduler=null,this.withObservable=null}}var Dr=n("z6cu");function Fr(e,t=a.a){return Pr(e,Object(Dr.a)(new Rr.a),t)}function Vr(e=a.a){return Object(tt.a)(t=>new jr(t,e.now()))}class jr{constructor(e,t){this.value=e,this.timestamp=t}}function Br(e,t,n){return 0===n?[t]:(e.push(t),e)}function Lr(){return jt(Br,[])}function Hr(e){return function(t){return t.lift(new Ur(e))}}class Ur{constructor(e){this.windowBoundaries=e}call(e,t){const n=new zr(e),r=t.subscribe(n);return r.closed||n.add(Object(i.a)(n,this.windowBoundaries)),r}}class zr extends r.a{constructor(e){super(e),this.window=new sn.a,e.next(this.window)}notifyNext(e,t,n,r,i){this.openWindow()}notifyError(e,t){this._error(e)}notifyComplete(e){this._complete()}_next(e){this.window.next(e)}_error(e){this.window.error(e),this.destination.error(e)}_complete(){this.window.complete(),this.destination.complete()}_unsubscribe(){this.window=null}openWindow(){const e=this.window;e&&e.complete();const t=this.destination,n=this.window=new sn.a;t.next(n)}}function Gr(e,t=0){return function(n){return n.lift(new Wr(e,t))}}class Wr{constructor(e,t){this.windowSize=e,this.startWindowEvery=t}call(e,t){return t.subscribe(new $r(e,this.windowSize,this.startWindowEvery))}}class $r extends p.a{constructor(e,t,n){super(e),this.destination=e,this.windowSize=t,this.startWindowEvery=n,this.windows=[new sn.a],this.count=0,e.next(this.windows[0])}_next(e){const t=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,i=this.windows,l=i.length;for(let o=0;o<l&&!this.closed;o++)i[o].next(e);const s=this.count-r+1;if(s>=0&&s%t==0&&!this.closed&&i.shift().complete(),++this.count%t==0&&!this.closed){const e=new sn.a;i.push(e),n.next(e)}}_error(e){const t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().error(e);this.destination.error(e)}_complete(){const e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().complete();this.destination.complete()}_unsubscribe(){this.count=0,this.windows=null}}function qr(e){let t=a.a,n=null,r=Number.POSITIVE_INFINITY;return Object(v.a)(arguments[3])&&(t=arguments[3]),Object(v.a)(arguments[2])?t=arguments[2]:Object(lr.a)(arguments[2])&&(r=arguments[2]),Object(v.a)(arguments[1])?t=arguments[1]:Object(lr.a)(arguments[1])&&(n=arguments[1]),function(i){return i.lift(new Kr(e,n,r,t))}}class Kr{constructor(e,t,n,r){this.windowTimeSpan=e,this.windowCreationInterval=t,this.maxWindowSize=n,this.scheduler=r}call(e,t){return t.subscribe(new Qr(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))}}class Yr extends sn.a{constructor(){super(...arguments),this._numberOfNextedValues=0}next(e){this._numberOfNextedValues++,super.next(e)}get numberOfNextedValues(){return this._numberOfNextedValues}}class Qr extends p.a{constructor(e,t,n,r,i){super(e),this.destination=e,this.windowTimeSpan=t,this.windowCreationInterval=n,this.maxWindowSize=r,this.scheduler=i,this.windows=[];const l=this.openWindow();if(null!==n&&n>=0){const e={windowTimeSpan:t,windowCreationInterval:n,subscriber:this,scheduler:i};this.add(i.schedule(Jr,t,{subscriber:this,window:l,context:null})),this.add(i.schedule(Xr,n,e))}else this.add(i.schedule(Zr,t,{subscriber:this,window:l,windowTimeSpan:t}))}_next(e){const t=this.windows,n=t.length;for(let r=0;r<n;r++){const n=t[r];n.closed||(n.next(e),n.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(n))}}_error(e){const t=this.windows;for(;t.length>0;)t.shift().error(e);this.destination.error(e)}_complete(){const e=this.windows;for(;e.length>0;){const t=e.shift();t.closed||t.complete()}this.destination.complete()}openWindow(){const e=new Yr;return this.windows.push(e),this.destination.next(e),e}closeWindow(e){e.complete();const t=this.windows;t.splice(t.indexOf(e),1)}}function Zr(e){const{subscriber:t,windowTimeSpan:n,window:r}=e;r&&t.closeWindow(r),e.window=t.openWindow(),this.schedule(e,n)}function Xr(e){const{windowTimeSpan:t,subscriber:n,scheduler:r,windowCreationInterval:i}=e,l=n.openWindow();let s={action:this,subscription:null};s.subscription=r.schedule(Jr,t,{subscriber:n,window:l,context:s}),this.add(s.subscription),this.schedule(e,i)}function Jr(e){const{subscriber:t,window:n,context:r}=e;r&&r.action&&r.subscription&&r.action.remove(r.subscription),t.closeWindow(n)}function ei(e,t){return n=>n.lift(new ti(e,t))}class ti{constructor(e,t){this.openings=e,this.closingSelector=t}call(e,t){return t.subscribe(new ni(e,this.openings,this.closingSelector))}}class ni extends r.a{constructor(e,t,n){super(e),this.openings=t,this.closingSelector=n,this.contexts=[],this.add(this.openSubscription=Object(i.a)(this,t,t))}_next(e){const{contexts:t}=this;if(t){const n=t.length;for(let r=0;r<n;r++)t[r].window.next(e)}}_error(e){const{contexts:t}=this;if(this.contexts=null,t){const n=t.length;let r=-1;for(;++r<n;){const n=t[r];n.window.error(e),n.subscription.unsubscribe()}}super._error(e)}_complete(){const{contexts:e}=this;if(this.contexts=null,e){const t=e.length;let n=-1;for(;++n<t;){const t=e[n];t.window.complete(),t.subscription.unsubscribe()}}super._complete()}_unsubscribe(){const{contexts:e}=this;if(this.contexts=null,e){const t=e.length;let n=-1;for(;++n<t;){const t=e[n];t.window.unsubscribe(),t.subscription.unsubscribe()}}}notifyNext(e,t,n,r,l){if(e===this.openings){let e;try{const{closingSelector:n}=this;e=n(t)}catch(s){return this.error(s)}const n=new sn.a,r=new A.a,l={window:n,subscription:r};this.contexts.push(l);const o=Object(i.a)(this,e,l);o.closed?this.closeWindow(this.contexts.length-1):(o.context=l,r.add(o)),this.destination.next(n)}else this.closeWindow(this.contexts.indexOf(e))}notifyError(e){this.error(e)}notifyComplete(e){e!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(e.context))}closeWindow(e){if(-1===e)return;const{contexts:t}=this,n=t[e],{window:r,subscription:i}=n;t.splice(e,1),r.complete(),i.unsubscribe()}}function ri(e){return function(t){return t.lift(new ii(e))}}class ii{constructor(e){this.closingSelector=e}call(e,t){return t.subscribe(new li(e,this.closingSelector))}}class li extends r.a{constructor(e,t){super(e),this.destination=e,this.closingSelector=t,this.openWindow()}notifyNext(e,t,n,r,i){this.openWindow(i)}notifyError(e,t){this._error(e)}notifyComplete(e){this.openWindow(e)}_next(e){this.window.next(e)}_error(e){this.window.error(e),this.destination.error(e),this.unsubscribeClosingNotification()}_complete(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()}unsubscribeClosingNotification(){this.closingNotification&&this.closingNotification.unsubscribe()}openWindow(e=null){e&&(this.remove(e),e.unsubscribe());const t=this.window;t&&t.complete();const n=this.window=new sn.a;let r;this.destination.next(n);try{const{closingSelector:e}=this;r=e()}catch(l){return this.destination.error(l),void this.window.error(l)}this.add(this.closingNotification=Object(i.a)(this,r))}}function si(...e){return t=>{let n;return"function"==typeof e[e.length-1]&&(n=e.pop()),t.lift(new oi(e,n))}}class oi{constructor(e,t){this.observables=e,this.project=t}call(e,t){return t.subscribe(new ai(e,this.observables,this.project))}}class ai extends r.a{constructor(e,t,n){super(e),this.observables=t,this.project=n,this.toRespond=[];const r=t.length;this.values=new Array(r);for(let i=0;i<r;i++)this.toRespond.push(i);for(let l=0;l<r;l++){let e=t[l];this.add(Object(i.a)(this,e,e,l))}}notifyNext(e,t,n,r,i){this.values[n]=t;const l=this.toRespond;if(l.length>0){const e=l.indexOf(n);-1!==e&&l.splice(e,1)}}notifyComplete(){}_next(e){if(0===this.toRespond.length){const t=[e,...this.values];this.project?this._tryProject(t):this.destination.next(t)}}_tryProject(e){let t;try{t=this.project.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}var ui=n("1uah");function ci(...e){return function(t){return t.lift.call(Object(ui.b)(t,...e))}}function di(e){return t=>t.lift(new ui.a(e))}n.d(t,"audit",function(){return l}),n.d(t,"auditTime",function(){return c}),n.d(t,"buffer",function(){return d}),n.d(t,"bufferCount",function(){return m}),n.d(t,"bufferTime",function(){return w}),n.d(t,"bufferToggle",function(){return E}),n.d(t,"bufferWhen",function(){return R}),n.d(t,"catchError",function(){return D}),n.d(t,"combineAll",function(){return B}),n.d(t,"combineLatest",function(){return U}),n.d(t,"concat",function(){return G}),n.d(t,"concatAll",function(){return W.a}),n.d(t,"concatMap",function(){return q}),n.d(t,"concatMapTo",function(){return K}),n.d(t,"count",function(){return Y}),n.d(t,"debounce",function(){return X}),n.d(t,"debounceTime",function(){return te}),n.d(t,"defaultIfEmpty",function(){return le}),n.d(t,"delay",function(){return ce}),n.d(t,"delayWhen",function(){return me}),n.d(t,"dematerialize",function(){return we}),n.d(t,"distinct",function(){return Se}),n.d(t,"distinctUntilChanged",function(){return Ie}),n.d(t,"distinctUntilKeyChanged",function(){return Te}),n.d(t,"elementAt",function(){return We}),n.d(t,"endWith",function(){return Ke}),n.d(t,"every",function(){return Ye}),n.d(t,"exhaust",function(){return Xe}),n.d(t,"exhaustMap",function(){return nt}),n.d(t,"expand",function(){return lt}),n.d(t,"filter",function(){return Re}),n.d(t,"finalize",function(){return at}),n.d(t,"find",function(){return dt}),n.d(t,"findIndex",function(){return pt}),n.d(t,"first",function(){return gt}),n.d(t,"groupBy",function(){return yt.b}),n.d(t,"ignoreElements",function(){return bt}),n.d(t,"isEmpty",function(){return Ct}),n.d(t,"last",function(){return At}),n.d(t,"map",function(){return tt.a}),n.d(t,"mapTo",function(){return Et}),n.d(t,"materialize",function(){return Rt}),n.d(t,"max",function(){return Bt}),n.d(t,"merge",function(){return Ht}),n.d(t,"mergeAll",function(){return Ut.a}),n.d(t,"mergeMap",function(){return $.a}),n.d(t,"flatMap",function(){return $.a}),n.d(t,"mergeMapTo",function(){return zt}),n.d(t,"mergeScan",function(){return Gt}),n.d(t,"min",function(){return qt}),n.d(t,"multicast",function(){return Kt.a}),n.d(t,"observeOn",function(){return Yt.b}),n.d(t,"onErrorResumeNext",function(){return Qt}),n.d(t,"pairwise",function(){return Jt}),n.d(t,"partition",function(){return rn}),n.d(t,"pluck",function(){return ln}),n.d(t,"publish",function(){return on}),n.d(t,"publishBehavior",function(){return un}),n.d(t,"publishLast",function(){return dn}),n.d(t,"publishReplay",function(){return fn}),n.d(t,"race",function(){return mn}),n.d(t,"reduce",function(){return jt}),n.d(t,"repeat",function(){return gn}),n.d(t,"repeatWhen",function(){return vn}),n.d(t,"retry",function(){return _n}),n.d(t,"retryWhen",function(){return xn}),n.d(t,"refCount",function(){return En.a}),n.d(t,"sample",function(){return Tn}),n.d(t,"sampleTime",function(){return Pn}),n.d(t,"scan",function(){return Nt}),n.d(t,"sequenceEqual",function(){return Fn}),n.d(t,"share",function(){return Ln.a}),n.d(t,"shareReplay",function(){return Hn}),n.d(t,"single",function(){return Un}),n.d(t,"skip",function(){return Wn}),n.d(t,"skipLast",function(){return Kn}),n.d(t,"skipUntil",function(){return Zn}),n.d(t,"skipWhile",function(){return er}),n.d(t,"startWith",function(){return rr}),n.d(t,"subscribeOn",function(){return or}),n.d(t,"switchAll",function(){return hr}),n.d(t,"switchMap",function(){return ur}),n.d(t,"switchMapTo",function(){return fr}),n.d(t,"take",function(){return Ue}),n.d(t,"takeLast",function(){return kt}),n.d(t,"takeUntil",function(){return pr}),n.d(t,"takeWhile",function(){return yr}),n.d(t,"tap",function(){return Fe}),n.d(t,"throttle",function(){return Cr}),n.d(t,"throttleTime",function(){return kr}),n.d(t,"throwIfEmpty",function(){return Le}),n.d(t,"timeInterval",function(){return Tr}),n.d(t,"timeout",function(){return Fr}),n.d(t,"timeoutWith",function(){return Pr}),n.d(t,"timestamp",function(){return Vr}),n.d(t,"toArray",function(){return Lr}),n.d(t,"window",function(){return Hr}),n.d(t,"windowCount",function(){return Gr}),n.d(t,"windowTime",function(){return qr}),n.d(t,"windowToggle",function(){return ei}),n.d(t,"windowWhen",function(){return ri}),n.d(t,"withLatestFrom",function(){return si}),n.d(t,"zip",function(){return ci}),n.d(t,"zipAll",function(){return di})},l7GE:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");class i extends r.a{notifyNext(e,t,n,r,i){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}},lJxs:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");function i(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new l(e,t))}}class l{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new s(e,this.project,this.thisArg))}}class s extends r.a{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}},lPiR:function(e,t,n){var r;e.exports=(r=n("Ib8C"),function(e){var t=r,n=t.lib,i=n.WordArray,l=n.Hasher,s=t.algo,o=[],a=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,i=0;i<64;)t(r)&&(i<8&&(o[i]=n(e.pow(r,.5))),a[i]=n(e.pow(r,1/3)),i++),r++}();var u=[],c=s.SHA256=l.extend({_doReset:function(){this._hash=new i.init(o.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],l=n[2],s=n[3],o=n[4],c=n[5],d=n[6],h=n[7],f=0;f<64;f++){if(f<16)u[f]=0|e[t+f];else{var p=u[f-15],m=u[f-2];u[f]=((p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3)+u[f-7]+((m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10)+u[f-16]}var g=r&i^r&l^i&l,y=h+((o<<26|o>>>6)^(o<<21|o>>>11)^(o<<7|o>>>25))+(o&c^~o&d)+a[f]+u[f];h=d,d=c,c=o,o=s+y|0,s=l,l=i,i=r,r=y+(((r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22))+g)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+l|0,n[3]=n[3]+s|0,n[4]=n[4]+o|0,n[5]=n[5]+c|0,n[6]=n[6]+d|0,n[7]=n[7]+h|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=l.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=l._createHelper(c),t.HmacSHA256=l._createHmacHelper(c)}(Math),r.SHA256)},mCNh:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return l});var r=n("KqfI");function i(...e){return l(e)}function l(e){return e?1===e.length?e[0]:function(t){return e.reduce((e,t)=>t(e),t)}:r.a}},n6bG:function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.d(t,"a",function(){return r})},ngJS:function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=e=>t=>{for(let n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.closed||t.complete()}},oB13:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("EQ5u");function i(e,t){return function(n){let i;if(i="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new l(i,t));const s=Object.create(n,r.b);return s.source=n,s.subjectFactory=i,s}}class l{constructor(e,t){this.subjectFactory=e,this.selector=t}call(e,t){const{selector:n}=this,r=this.subjectFactory(),i=n(r).subscribe(e);return i.add(t.subscribe(r)),i}}},oRuE:function(e,t,n){var r;e.exports=(r=n("Ib8C"),n("OLod"),r.pad.Iso10126={pad:function(e,t){var n=4*t,i=n-e.sigBytes%n;e.concat(r.lib.WordArray.random(i-1)).concat(r.lib.WordArray.create([i<<24],1))},unpad:function(e){e.sigBytes-=255&e.words[e.sigBytes-1>>>2]}},r.pad.Iso10126)},pA7S:function(e,t,n){var r;e.exports=(r=n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"),function(){var e=r,t=e.lib,n=t.WordArray,i=t.BlockCipher,l=e.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],o=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],a=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=l.DES=i.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var r=s[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(var i=this._subKeys=[],l=0;l<16;l++){var u=i[l]=[],c=a[l];for(n=0;n<24;n++)u[n/6|0]|=t[(o[n]-1+c)%28]<<31-n%6,u[4+(n/6|0)]|=t[28+(o[n+24]-1+c)%28]<<31-n%6;for(u[0]=u[0]<<1|u[0]>>>31,n=1;n<7;n++)u[n]=u[n]>>>4*(n-1)+3;u[7]=u[7]<<5|u[7]>>>27}var d=this._invSubKeys=[];for(n=0;n<16;n++)d[n]=i[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],h.call(this,4,252645135),h.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),h.call(this,1,1431655765);for(var r=0;r<16;r++){for(var i=n[r],l=this._lBlock,s=this._rBlock,o=0,a=0;a<8;a++)o|=u[a][((s^i[a])&c[a])>>>0];this._lBlock=s,this._rBlock=l^o}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,h.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function f(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}e.DES=i._createHelper(d);var p=l.TripleDES=i.extend({_doReset:function(){var e=this._key.words;this._des1=d.createEncryptor(n.create(e.slice(0,2))),this._des2=d.createEncryptor(n.create(e.slice(2,4))),this._des3=d.createEncryptor(n.create(e.slice(4,6)))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=i._createHelper(p)}(),r.TripleDES)},pLzU:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("Lhse");const i=e=>t=>{const n=e[r.a]();for(;;){const e=n.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t}},pjAE:function(e,t,n){"use strict";function r(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}n.d(t,"a",function(){return i}),r.prototype=Object.create(Error.prototype);const i=r},pxpQ:function(e,t,n){"use strict";n.d(t,"b",function(){return l}),n.d(t,"a",function(){return o});var r=n("7o/Q"),i=n("WMd4");function l(e,t=0){return function(n){return n.lift(new s(e,t))}}class s{constructor(e,t=0){this.scheduler=e,this.delay=t}call(e,t){return t.subscribe(new o(e,this.scheduler,this.delay))}}class o extends r.a{constructor(e,t,n=0){super(e),this.scheduler=t,this.delay=n}static dispatch(e){const{notification:t,destination:n}=e;t.observe(n),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(o.dispatch,this.delay,new a(e,this.destination)))}_next(e){this.scheduleMessage(i.a.createNext(e))}_error(e){this.scheduleMessage(i.a.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(i.a.createComplete()),this.unsubscribe()}}class a{constructor(e,t){this.notification=e,this.destination=t}}},q6c6:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("kU1M"),l=n("8Y7J"),s=n("sj+f"),o=(n("ZbGM"),n("4P0q"));t.Droppable=function(){function e(e,t,n,r){this.el=e,this.renderer=t,this.ng2DragDropService=n,this.zone=r,this.onDragEnter=new l.EventEmitter,this.onDragOver=new l.EventEmitter,this.onDragLeave=new l.EventEmitter,this.onDrop=new l.EventEmitter,this.dragOverClass="drag-over-border",this.dragHintClass="drag-hint-border",this.dropScope="default",this._dropEnabled=!0,this._isDragActive=!1,this._isServiceActive=!1}return Object.defineProperty(e.prototype,"dropEnabled",{get:function(){return this._dropEnabled},set:function(e){this._dropEnabled=e,!0===this._dropEnabled?this.subscribeService():this.unsubscribeService()},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){!0===this.dropEnabled&&this.subscribeService()},e.prototype.ngOnDestroy=function(){this.unsubscribeService(),this.unbindDragListeners()},e.prototype.dragEnter=function(e){e.preventDefault(),e.stopPropagation(),this.onDragEnter.emit(e)},e.prototype.dragOver=function(e,t){t&&(o.DomHelper.addClass(this.el,this.dragOverClass),e.preventDefault(),this.onDragOver.emit(e))},e.prototype.dragLeave=function(e){o.DomHelper.removeClass(this.el,this.dragOverClass),e.preventDefault(),this.onDragLeave.emit(e)},e.prototype.drop=function(e){var t=this;this.allowDrop().subscribe(function(n){n&&t._isDragActive&&(o.DomHelper.removeClass(t.el,t.dragOverClass),e.preventDefault(),e.stopPropagation(),t.ng2DragDropService.onDragEnd.next(),t.onDrop.emit(new s.DropEvent(e,t.ng2DragDropService.dragData)),t.ng2DragDropService.dragData=null,t.ng2DragDropService.scope=null)})},e.prototype.allowDrop=function(){var e=this,t=!1;if("string"==typeof this.dropScope)"string"==typeof this.ng2DragDropService.scope?t=this.ng2DragDropService.scope===this.dropScope:this.ng2DragDropService.scope instanceof Array&&(t=this.ng2DragDropService.scope.indexOf(this.dropScope)>-1);else if(this.dropScope instanceof Array)"string"==typeof this.ng2DragDropService.scope?t=this.dropScope.indexOf(this.ng2DragDropService.scope)>-1:this.ng2DragDropService.scope instanceof Array&&(t=this.dropScope.filter(function(t){return-1!==e.ng2DragDropService.scope.indexOf(t)}).length>0);else if("function"==typeof this.dropScope&&(t=this.dropScope(this.ng2DragDropService.dragData))instanceof r.Observable)return t.pipe(i.map(function(t){return t&&e.dropEnabled}));return r.of(t&&this.dropEnabled)},e.prototype.subscribeService=function(){var e=this;!0!==this._isServiceActive&&(this._isServiceActive=!0,this.dragStartSubscription=this.ng2DragDropService.onDragStart.subscribe(function(){e._isDragActive=!0,e.allowDrop().subscribe(function(t){t&&e._isDragActive&&(o.DomHelper.addClass(e.el,e.dragHintClass),e.zone.runOutsideAngular(function(){e.unbindDragEnterListener=e.renderer.listen(e.el.nativeElement,"dragenter",function(t){e.dragEnter(t)}),e.unbindDragOverListener=e.renderer.listen(e.el.nativeElement,"dragover",function(n){e.dragOver(n,t)}),e.unbindDragLeaveListener=e.renderer.listen(e.el.nativeElement,"dragleave",function(t){e.dragLeave(t)})}))})}),this.dragEndSubscription=this.ng2DragDropService.onDragEnd.subscribe(function(){e._isDragActive=!1,o.DomHelper.removeClass(e.el,e.dragHintClass),e.unbindDragListeners()}))},e.prototype.unsubscribeService=function(){this._isServiceActive=!1,this.dragStartSubscription&&this.dragStartSubscription.unsubscribe(),this.dragEndSubscription&&this.dragEndSubscription.unsubscribe()},e.prototype.unbindDragListeners=function(){this.unbindDragEnterListener&&this.unbindDragEnterListener(),this.unbindDragOverListener&&this.unbindDragOverListener(),this.unbindDragLeaveListener&&this.unbindDragLeaveListener()},e.decorators=[{type:l.Directive,args:[{selector:"[droppable]"}]}],e.propDecorators={onDragEnter:[{type:l.Output}],onDragOver:[{type:l.Output}],onDragLeave:[{type:l.Output}],onDrop:[{type:l.Output}],dragOverClass:[{type:l.Input}],dragHintClass:[{type:l.Input}],dropScope:[{type:l.Input}],dropEnabled:[{type:l.Input}],drop:[{type:l.HostListener,args:["drop",["$event"]]}]},e}()},qBft:function(e,t,n){var r;e.exports=(r=n("Ib8C"),n("OLod"),r.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,r=4*t,i=r-n%r,l=n+i-1;e.clamp(),e.words[l>>>2]|=i<<24-l%4*8,e.sigBytes+=i},unpad:function(e){e.sigBytes-=255&e.words[e.sigBytes-1>>>2]}},r.pad.Ansix923)},qCKp:function(e,t,n){"use strict";n.r(t);var r=n("HDdC"),i=n("EQ5u"),l=n("OQgR"),s=n("kJWO"),o=n("XNiG"),a=n("2Vo4"),u=n("jtHE"),c=n("NHP+"),d=n("7Hc7"),h=n("D0XW"),f=n("qgXg"),p=n("3N8a");class m extends p.a{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(e,t,n);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}var g=n("IjjT");class y extends g.a{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let n,r=-1,i=t.length;e=e||t.shift();do{if(n=e.execute(e.state,e.delay))break}while(++r<i&&(e=t.shift()));if(this.active=!1,n){for(;++r<i&&(e=t.shift());)e.unsubscribe();throw n}}}const b=new y(m),v=(()=>{class e extends g.a{constructor(e=w,t=Number.POSITIVE_INFINITY){super(e,()=>this.frame),this.maxFrames=t,this.frame=0,this.index=-1}flush(){const{actions:e,maxFrames:t}=this;let n,r;for(;(r=e[0])&&r.delay<=t&&(e.shift(),this.frame=r.delay,!(n=r.execute(r.state,r.delay))););if(n){for(;r=e.shift();)r.unsubscribe();throw n}}}return e.frameTimeFactor=10,e})();class w extends p.a{constructor(e,t,n=(e.index+=1)){super(e,t),this.scheduler=e,this.work=t,this.index=n,this.active=!0,this.index=e.index=n}schedule(e,t=0){if(!this.id)return super.schedule(e,t);this.active=!1;const n=new w(this.scheduler,this.work);return this.add(n),n.schedule(e,t)}requestAsyncId(e,t,n=0){this.delay=e.frame+n;const{actions:r}=e;return r.push(this),r.sort(w.sortActions),!0}recycleAsyncId(e,t,n=0){}_execute(e,t){if(!0===this.active)return super._execute(e,t)}static sortActions(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1}}var C=n("Y/cZ"),_=n("quSY"),S=n("7o/Q"),k=n("WMd4"),x=n("mCNh"),I=n("KqfI"),A=n("SpAZ");function E(e){return!!e&&(e instanceof r.a||"function"==typeof e.lift&&"function"==typeof e.subscribe)}var T=n("4I5i"),M=n("sVev"),R=n("9ppp"),P=n("pjAE"),O=n("Y6u4"),N=n("lJxs"),D=n("8Qeq"),F=n("DH7j"),V=n("z+Ro");function j(e,t,n){if(t){if(!Object(V.a)(t))return(...r)=>j(e,n)(...r).pipe(Object(N.a)(e=>Object(F.a)(e)?t(...e):t(e)));n=t}return function(...t){const i=this;let l;const s={context:i,subject:l,callbackFunc:e,scheduler:n};return new r.a(r=>{if(n)return n.schedule(B,0,{args:t,subscriber:r,params:s});if(!l){l=new c.a;const n=(...e)=>{l.next(e.length<=1?e[0]:e),l.complete()};try{e.apply(i,[...t,n])}catch(o){Object(D.a)(l)?l.error(o):console.warn(o)}}return l.subscribe(r)})}}function B(e){const{args:t,subscriber:n,params:r}=e,{callbackFunc:i,context:l,scheduler:s}=r;let{subject:o}=r;if(!o){o=r.subject=new c.a;const e=(...e)=>{this.add(s.schedule(L,0,{value:e.length<=1?e[0]:e,subject:o}))};try{i.apply(l,[...t,e])}catch(a){o.error(a)}}this.add(o.subscribe(n))}function L(e){const{value:t,subject:n}=e;n.next(t),n.complete()}function H(e,t,n){if(t){if(!Object(V.a)(t))return(...r)=>H(e,n)(...r).pipe(Object(N.a)(e=>Object(F.a)(e)?t(...e):t(e)));n=t}return function(...t){const i={subject:void 0,args:t,callbackFunc:e,scheduler:n,context:this};return new r.a(r=>{const{context:l}=i;let{subject:s}=i;if(n)return n.schedule(U,0,{params:i,subscriber:r,context:l});if(!s){s=i.subject=new c.a;const n=(...e)=>{const t=e.shift();t?s.error(t):(s.next(e.length<=1?e[0]:e),s.complete())};try{e.apply(l,[...t,n])}catch(o){Object(D.a)(s)?s.error(o):console.warn(o)}}return s.subscribe(r)})}}function U(e){const{params:t,subscriber:n,context:r}=e,{callbackFunc:i,args:l,scheduler:s}=t;let o=t.subject;if(!o){o=t.subject=new c.a;const e=(...e)=>{const t=e.shift();this.add(t?s.schedule(G,0,{err:t,subject:o}):s.schedule(z,0,{value:e.length<=1?e[0]:e,subject:o}))};try{i.apply(r,[...l,e])}catch(a){this.add(s.schedule(G,0,{err:a,subject:o}))}}this.add(o.subscribe(n))}function z(e){const{value:t,subject:n}=e;n.next(t),n.complete()}function G(e){const{err:t,subject:n}=e;n.error(t)}var W=n("itXk"),$=n("GyhO"),q=n("NXyV"),K=n("EY2u"),Y=n("cp0P"),Q=n("Cfvw"),Z=n("n6bG");function X(e,t,n,i){return Object(Z.a)(n)&&(i=n,n=void 0),i?X(e,t,n).pipe(Object(N.a)(e=>Object(F.a)(e)?i(...e):i(e))):new r.a(r=>{!function e(t,n,r,i,l){let s;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(t)){const e=t;t.addEventListener(n,r,l),s=(()=>e.removeEventListener(n,r,l))}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(t)){const e=t;t.on(n,r),s=(()=>e.off(n,r))}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(t)){const e=t;t.addListener(n,r),s=(()=>e.removeListener(n,r))}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let s=0,o=t.length;s<o;s++)e(t[s],n,r,i,l)}i.add(s)}(e,t,function(e){r.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},r,n)})}function J(e,t,n){return n?J(e,t).pipe(Object(N.a)(e=>Object(F.a)(e)?n(...e):n(e))):new r.a(n=>{const r=(...e)=>n.next(1===e.length?e[0]:e);let i;try{i=e(r)}catch(l){return void n.error(l)}if(Object(Z.a)(t))return()=>t(r,i)})}function ee(e,t,n,i,l){let s,o;return 1==arguments.length?(o=e.initialState,t=e.condition,n=e.iterate,s=e.resultSelector||A.a,l=e.scheduler):void 0===i||Object(V.a)(i)?(o=e,s=A.a,l=i):(o=e,s=i),new r.a(e=>{let r=o;if(l)return l.schedule(te,0,{subscriber:e,iterate:n,condition:t,resultSelector:s,state:r});for(;;){if(t){let n;try{n=t(r)}catch(i){return void e.error(i)}if(!n){e.complete();break}}let l;try{l=s(r)}catch(i){return void e.error(i)}if(e.next(l),e.closed)break;try{r=n(r)}catch(i){return void e.error(i)}}})}function te(e){const{subscriber:t,condition:n}=e;if(t.closed)return;if(e.needIterate)try{e.state=e.iterate(e.state)}catch(i){return void t.error(i)}else e.needIterate=!0;if(n){let r;try{r=n(e.state)}catch(i){return void t.error(i)}if(!r)return void t.complete();if(t.closed)return}let r;try{r=e.resultSelector(e.state)}catch(i){return void t.error(i)}return t.closed||(t.next(r),t.closed)?void 0:this.schedule(e)}function ne(e,t=K.a,n=K.a){return Object(q.a)(()=>e()?t:n)}var re=n("Y7HM");function ie(e=0,t=h.a){return(!Object(re.a)(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=h.a),new r.a(n=>(n.add(t.schedule(le,e,{subscriber:n,counter:0,period:e})),n))}function le(e){const{subscriber:t,counter:n,period:r}=e;t.next(n),this.schedule({subscriber:t,counter:n+1,period:r},r)}var se=n("VRyK");const oe=new r.a(I.a);function ae(){return oe}var ue=n("LRne");function ce(...e){if(0===e.length)return K.a;const[t,...n]=e;return 1===e.length&&Object(F.a)(t)?ce(...t):new r.a(e=>{const r=()=>e.add(ce(...n).subscribe(e));return Object(Q.a)(t).subscribe({next(t){e.next(t)},error:r,complete:r})})}function de(e,t){return new r.a(t?n=>{const r=Object.keys(e),i=new _.a;return i.add(t.schedule(he,0,{keys:r,index:0,subscriber:n,subscription:i,obj:e})),i}:t=>{const n=Object.keys(e);for(let r=0;r<n.length&&!t.closed;r++){const i=n[r];e.hasOwnProperty(i)&&t.next([i,e[i]])}t.complete()})}function he(e){const{keys:t,index:n,subscriber:r,subscription:i,obj:l}=e;if(!r.closed)if(n<t.length){const e=t[n];r.next([e,l[e]]),i.add(this.schedule({keys:t,index:n+1,subscriber:r,subscription:i,obj:l}))}else r.complete()}var fe=n("Nv8m");function pe(e=0,t,n){return new r.a(r=>{void 0===t&&(t=e,e=0);let i=0,l=e;if(n)return n.schedule(me,0,{index:i,count:t,start:e,subscriber:r});for(;;){if(i++>=t){r.complete();break}if(r.next(l++),r.closed)break}})}function me(e){const{start:t,index:n,count:r,subscriber:i}=e;n>=r?i.complete():(i.next(t),i.closed||(e.index=n+1,e.start=t+1,this.schedule(e)))}var ge=n("z6cu"),ye=n("PqYM");function be(e,t){return new r.a(n=>{let r,i;try{r=e()}catch(s){return void n.error(s)}try{i=t(r)}catch(s){return void n.error(s)}const l=(i?Object(Q.a)(i):K.a).subscribe(n);return()=>{l.unsubscribe(),r&&r.unsubscribe()}})}var ve=n("1uah"),we=n("2fFW");n.d(t,"Observable",function(){return r.a}),n.d(t,"ConnectableObservable",function(){return i.a}),n.d(t,"GroupedObservable",function(){return l.a}),n.d(t,"observable",function(){return s.a}),n.d(t,"Subject",function(){return o.a}),n.d(t,"BehaviorSubject",function(){return a.a}),n.d(t,"ReplaySubject",function(){return u.a}),n.d(t,"AsyncSubject",function(){return c.a}),n.d(t,"asapScheduler",function(){return d.a}),n.d(t,"asyncScheduler",function(){return h.a}),n.d(t,"queueScheduler",function(){return f.a}),n.d(t,"animationFrameScheduler",function(){return b}),n.d(t,"VirtualTimeScheduler",function(){return v}),n.d(t,"VirtualAction",function(){return w}),n.d(t,"Scheduler",function(){return C.a}),n.d(t,"Subscription",function(){return _.a}),n.d(t,"Subscriber",function(){return S.a}),n.d(t,"Notification",function(){return k.a}),n.d(t,"pipe",function(){return x.a}),n.d(t,"noop",function(){return I.a}),n.d(t,"identity",function(){return A.a}),n.d(t,"isObservable",function(){return E}),n.d(t,"ArgumentOutOfRangeError",function(){return T.a}),n.d(t,"EmptyError",function(){return M.a}),n.d(t,"ObjectUnsubscribedError",function(){return R.a}),n.d(t,"UnsubscriptionError",function(){return P.a}),n.d(t,"TimeoutError",function(){return O.a}),n.d(t,"bindCallback",function(){return j}),n.d(t,"bindNodeCallback",function(){return H}),n.d(t,"combineLatest",function(){return W.b}),n.d(t,"concat",function(){return $.a}),n.d(t,"defer",function(){return q.a}),n.d(t,"empty",function(){return K.b}),n.d(t,"forkJoin",function(){return Y.a}),n.d(t,"from",function(){return Q.a}),n.d(t,"fromEvent",function(){return X}),n.d(t,"fromEventPattern",function(){return J}),n.d(t,"generate",function(){return ee}),n.d(t,"iif",function(){return ne}),n.d(t,"interval",function(){return ie}),n.d(t,"merge",function(){return se.a}),n.d(t,"never",function(){return ae}),n.d(t,"of",function(){return ue.a}),n.d(t,"onErrorResumeNext",function(){return ce}),n.d(t,"pairs",function(){return de}),n.d(t,"race",function(){return fe.a}),n.d(t,"range",function(){return pe}),n.d(t,"throwError",function(){return ge.a}),n.d(t,"timer",function(){return ye.a}),n.d(t,"using",function(){return be}),n.d(t,"zip",function(){return ve.b}),n.d(t,"EMPTY",function(){return K.a}),n.d(t,"NEVER",function(){return oe}),n.d(t,"config",function(){return we.a})},qM6L:function(e,t,n){var r;e.exports=(r=n("Ib8C"),function(){var e=r.lib.WordArray,t=r.enc;function n(e){return e<<8&4278255360|e>>>8&16711935}t.Utf16=t.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i+=2)r.push(String.fromCharCode(t[i>>>2]>>>16-i%4*8&65535));return r.join("")},parse:function(t){for(var n=t.length,r=[],i=0;i<n;i++)r[i>>>1]|=t.charCodeAt(i)<<16-i%2*16;return e.create(r,2*n)}},t.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],l=0;l<r;l+=2){var s=n(t[l>>>2]>>>16-l%4*8&65535);i.push(String.fromCharCode(s))}return i.join("")},parse:function(t){for(var r=t.length,i=[],l=0;l<r;l++)i[l>>>1]|=n(t.charCodeAt(l)<<16-l%2*16);return e.create(i,2*r)}}}(),r.enc.Utf16)},qgXg:function(e,t,n){"use strict";var r=n("3N8a");class i extends r.a{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(e,t,n):e.flush(this)}}var l=n("IjjT");class s extends l.a{}n.d(t,"a",function(){return o});const o=new s(i)},qu8F:function(e,t,n){var r;e.exports=(r=n("Ib8C"),n("OLod"),r.mode.CTRGladman=function(){var e=r.lib.BlockCipherMode.extend();function t(e){if(255==(e>>24&255)){var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}var n=e.Encryptor=e.extend({processBlock:function(e,n){var r=this._cipher,i=r.blockSize,l=this._iv,s=this._counter;l&&(s=this._counter=l.slice(0),this._iv=void 0),function(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}(s);var o=s.slice(0);r.encryptBlock(o,0);for(var a=0;a<i;a++)e[n+a]^=o[a]}});return e.Decryptor=n,e}(),r.mode.CTRGladman)},quSY:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("DH7j"),i=n("XoHu"),l=n("n6bG"),s=n("pjAE");const o=(()=>{class e{constructor(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}unsubscribe(){let e,t=!1;if(this.closed)return;let{_parent:n,_parents:o,_unsubscribe:u,_subscriptions:c}=this;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;let d=-1,h=o?o.length:0;for(;n;)n.remove(this),n=++d<h&&o[d]||null;if(Object(l.a)(u))try{u.call(this)}catch(f){t=!0,e=f instanceof s.a?a(f.errors):[f]}if(Object(r.a)(c))for(d=-1,h=c.length;++d<h;){const n=c[d];if(Object(i.a)(n))try{n.unsubscribe()}catch(f){t=!0,e=e||[],f instanceof s.a?e=e.concat(a(f.errors)):e.push(f)}}if(t)throw new s.a(e)}add(t){let n=t;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){const t=n;(n=new e)._subscriptions=[t]}break;default:if(!t)return e.EMPTY;throw new Error("unrecognized teardown "+t+" added to Subscription.")}if(n._addParent(this)){const e=this._subscriptions;e?e.push(n):this._subscriptions=[n]}return n}remove(e){const t=this._subscriptions;if(t){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}_addParent(e){let{_parent:t,_parents:n}=this;return t!==e&&(t?n?-1===n.indexOf(e)&&(n.push(e),!0):(this._parents=[e],!0):(this._parent=e,!0))}}return e.EMPTY=function(e){return e.closed=!0,e}(new e),e})();function a(e){return e.reduce((e,t)=>e.concat(t instanceof s.a?t.errors:t),[])}},sVev:function(e,t,n){"use strict";function r(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}n.d(t,"a",function(){return i}),r.prototype=Object.create(Error.prototype);const i=r},"sj+f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DropEvent=function(){return function(e,t){this.nativeEvent=e,this.dragData=t}}()},uGsb:function(e,t,n){var r,i,l,s,o,a,u,c;e.exports=(r=n("Ib8C"),n("MlIO"),n("1uat"),s=(l=(i=r).x64).Word,o=l.WordArray,c=(a=i.algo).SHA384=(u=a.SHA512).extend({_doReset:function(){this._hash=new o.init([new s.init(3418070365,3238371032),new s.init(1654270250,914150663),new s.init(2438529370,812702999),new s.init(355462360,4144912697),new s.init(1731405415,4290775857),new s.init(2394180231,1750603025),new s.init(3675008525,1694076839),new s.init(1203062813,3204075428)])},_doFinalize:function(){var e=u._doFinalize.call(this);return e.sigBytes-=16,e}}),i.SHA384=u._createHelper(c),i.HmacSHA384=u._createHmacHelper(c),r.SHA384)},uGxW:function(e,t,n){var r;e.exports=(r=n("Ib8C"),n("OLod"),r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding)},w1tV:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("oB13"),i=n("x+ZX"),l=n("XNiG");function s(){return new l.a}function o(){return e=>Object(i.a)()(Object(r.a)(s)(e))}},w7YG:function(e,t,n){var r;e.exports=(r=n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"),function(){var e=r,t=e.lib.StreamCipher,n=e.algo,i=n.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],i=0;i<256;i++)r[i]=i;i=0;for(var l=0;i<256;i++){var s=i%n,o=r[i];r[i]=r[l=(l+r[i]+(t[s>>>2]>>>24-s%4*8&255))%256],r[l]=o}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=l.call(this)},keySize:8,ivSize:0});function l(){for(var e=this._S,t=this._i,n=this._j,r=0,i=0;i<4;i++){var l=e[t=(t+1)%256];e[t]=e[n=(n+e[t])%256],e[n]=l,r|=e[(e[t]+e[n])%256]<<24-8*i}return this._i=t,this._j=n,r}e.RC4=t._createHelper(i);var s=n.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)l.call(this)}});e.RC4Drop=t._createHelper(s)}(),r.RC4)},wZgz:function(e,t,n){var r;e.exports=(r=n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"),function(){var e=r,t=e.lib.BlockCipher,n=e.algo,i=[],l=[],s=[],o=[],a=[],u=[],c=[],d=[],h=[],f=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var p=r^r<<1^r<<2^r<<3^r<<4;i[n]=p=p>>>8^255&p^99,l[p]=n;var m,g=e[n],y=e[g],b=e[y];s[n]=(m=257*e[p]^16843008*p)<<24|m>>>8,o[n]=m<<16|m>>>16,a[n]=m<<8|m>>>24,u[n]=m,c[p]=(m=16843009*b^65537*y^257*g^16843008*n)<<24|m>>>8,d[p]=m<<16|m>>>16,h[p]=m<<8|m>>>24,f[p]=m,n?(n=g^e[e[e[b^g]]],r^=e[e[r]]):n=r=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],m=n.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=4*((this._nRounds=n+6)+1),l=this._keySchedule=[],s=0;s<r;s++)if(s<n)l[s]=t[s];else{var o=l[s-1];s%n?n>6&&s%n==4&&(o=i[o>>>24]<<24|i[o>>>16&255]<<16|i[o>>>8&255]<<8|i[255&o]):(o=i[(o=o<<8|o>>>24)>>>24]<<24|i[o>>>16&255]<<16|i[o>>>8&255]<<8|i[255&o],o^=p[s/n|0]<<24),l[s]=l[s-n]^o}for(var a=this._invKeySchedule=[],u=0;u<r;u++)s=r-u,o=u%4?l[s]:l[s-4],a[u]=u<4||s<=4?o:c[i[o>>>24]]^d[i[o>>>16&255]]^h[i[o>>>8&255]]^f[i[255&o]]}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,o,a,u,i)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,c,d,h,f,l),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,l,s,o){for(var a=this._nRounds,u=e[t]^n[0],c=e[t+1]^n[1],d=e[t+2]^n[2],h=e[t+3]^n[3],f=4,p=1;p<a;p++){var m=r[u>>>24]^i[c>>>16&255]^l[d>>>8&255]^s[255&h]^n[f++],g=r[c>>>24]^i[d>>>16&255]^l[h>>>8&255]^s[255&u]^n[f++],y=r[d>>>24]^i[h>>>16&255]^l[u>>>8&255]^s[255&c]^n[f++],b=r[h>>>24]^i[u>>>16&255]^l[c>>>8&255]^s[255&d]^n[f++];u=m,c=g,d=y,h=b}m=(o[u>>>24]<<24|o[c>>>16&255]<<16|o[d>>>8&255]<<8|o[255&h])^n[f++],g=(o[c>>>24]<<24|o[d>>>16&255]<<16|o[h>>>8&255]<<8|o[255&u])^n[f++],y=(o[d>>>24]<<24|o[h>>>16&255]<<16|o[u>>>8&255]<<8|o[255&c])^n[f++],b=(o[h>>>24]<<24|o[u>>>16&255]<<16|o[c>>>8&255]<<8|o[255&d])^n[f++],e[t]=m,e[t+1]=g,e[t+2]=y,e[t+3]=b},keySize:8});e.AES=t._createHelper(m)}(),r.AES)},"x+ZX":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");function i(){return function(e){return e.lift(new l(e))}}class l{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const r=new s(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}class s extends r.a{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}},xHUD:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("8Y7J"),i=n("UmOi"),l=n("q6c6"),s=n("ZbGM");t.NgDragDropModule=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[s.NgDragDropService]}},e.decorators=[{type:r.NgModule,args:[{imports:[],declarations:[i.Draggable,l.Droppable],exports:[i.Draggable,l.Droppable]}]}],e}()},yCtX:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("HDdC"),i=n("quSY"),l=n("ngJS");function s(e,t){return new r.a(t?n=>{const r=new i.a;let l=0;return r.add(t.schedule(function(){l!==e.length?(n.next(e[l++]),n.closed||r.add(this.schedule())):n.complete()})),r}:Object(l.a)(e))}},"z+Ro":function(e,t,n){"use strict";function r(e){return e&&"function"==typeof e.schedule}n.d(t,"a",function(){return r})},z6cu:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("HDdC");function i(e,t){return new r.a(t?n=>t.schedule(l,0,{error:e,subscriber:n}):t=>t.error(e))}function l({error:e,subscriber:t}){t.error(e)}},zUnb:function(e,t,n){"use strict";n.r(t);var r=n("8Y7J");const i={production:!0,steam:!0,steamDemo:!1};class l{}const s=[{id:1,name:"Ghoul",tier:1,arena:1,description:"+{modifier0} gold/sec",imageFilename:"assets/images/cards/ghoul.png",rarity:1,isProducer:!0,isEffect:!1,relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[1]},{id:2,name:"Crab",tier:1,arena:1,description:"+{modifier0} gold/sec. Extra +{modifier1} gold/sec if a Mushroom is in play",imageFilename:"assets/images/cards/crab.png",rarity:1,isProducer:!0,isEffect:!1,relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[1,2]},{id:3,name:"Gold Mine",tier:1,arena:1,description:"+{modifier0} gold/sec. +{modifier1%}% gold production for cards above and below this",imageFilename:"assets/images/cards/gold_mine.png",rarity:3,isProducer:!0,isEffect:!0,relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[1.5,.25]},{id:4,name:"Mushroom",tier:1,arena:1,description:"+{modifier0} gold/sec",imageFilename:"assets/images/cards/mushroom.png",rarity:2,isProducer:!0,isEffect:!1,relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[1.5]},{id:5,name:"Mace",tier:1,arena:1,description:"+{modifier0%}% gold production for the card to the right",imageFilename:"assets/images/cards/mace.png",rarity:2,isProducer:!1,isEffect:!0,relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[1]},{id:6,name:"Gem",tier:1,arena:1,description:"+{modifier0%}% gold production for the cards above and below this",imageFilename:"assets/images/cards/gem.png",rarity:1,isProducer:!1,isEffect:!0,relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[.5]},{id:7,name:"Beer",tier:1,arena:1,description:"+{modifier0} gold/sec. Disable gold production for other cards in this row",imageFilename:"assets/images/cards/beer.png",rarity:2,isProducer:!0,isEffect:!0,relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[3]},{id:8,name:"Greedy Bird",tier:1,arena:1,description:"+{modifier0} gold/sec. Extra +{modifier1} gold/sec if this is the only card in play",imageFilename:"assets/images/cards/bird.png",rarity:1,isProducer:!0,isEffect:!1,relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[1,5]},{id:9,name:"Windmill",tier:1,arena:1,description:"+{modifier0%}% gold production for all other cards",imageFilename:"assets/images/cards/city/mill.png",rarity:5,isProducer:!1,isEffect:!0,relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[.25]},{id:10,name:"Scaredy Cat",tier:1,arena:1,description:"+{modifier0} gold/sec, but only if this is the only card in its row",imageFilename:"assets/images/cards/girl.png",rarity:1,isProducer:!0,isEffect:!1,relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[3.5]},{id:11,name:"Ice Sword",tier:1,arena:1,description:"+{modifier0%}% gold production for the card above this",imageFilename:"assets/images/cards/icesword.png",rarity:1,isProducer:!1,isEffect:!0,relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[1]},{id:12,name:"Coin",tier:1,arena:1,description:"+{modifier0} gold/sec",imageFilename:"assets/images/cards/coin.png",rarity:1,isProducer:!0,isEffect:!1,relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[1.5]},{id:13,name:"Ghost",tier:1,arena:1,description:"+{modifier0} gold/sec",imageFilename:"assets/images/cards/ghost.png",rarity:4,isProducer:!0,isEffect:!1,relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[3]},{id:14,name:"Adventuring Fox",tier:1,arena:1,description:"+{modifier0} gold/sec",imageFilename:"assets/images/cards/adventurer.png",rarity:2,isProducer:!0,isEffect:!1,relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[2]},{id:15,name:"Cultist",tier:2,arena:1,description:"+{modifier0} gold/sec",imageFilename:"assets/images/cards/cultist.png",rarity:2,isProducer:!0,isEffect:!1,relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[8]},{id:16,name:"Skeleton",tier:2,arena:1,description:"+{modifier0} gold/sec",imageFilename:"assets/images/cards/skeleton.png",rarity:1,isProducer:!0,isEffect:!1,relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[6]},{id:17,name:"Sheep",tier:2,arena:1,description:"+{modifier0} gold/sec. +{modifier1%}% gold production for the card left of this",imageFilename:"assets/images/cards/sheep.png",rarity:1,isProducer:!0,isEffect:!0,relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[4,1.25]},{id:18,name:"Carrot",tier:2,arena:1,description:"+{modifier0} gold/sec, but only if no cards are above or below it",imageFilename:"assets/images/cards/carrot.png",rarity:2,isProducer:!0,isEffect:!1,relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[12]},{id:19,name:"Golem",tier:2,arena:1,description:"+{modifier0} gold/sec. Not affected by any bonuses, nor by any disables/penalties",imageFilename:"assets/images/cards/golem.png",rarity:3,isProducer:!0,isEffect:!1,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[13]},{id:20,name:"Naga",tier:2,arena:1,description:"+{modifier0} gold/sec. Disable gold production for the card below this",imageFilename:"assets/images/cards/naga.png",rarity:1,isProducer:!0,isEffect:!1,relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[8]},{id:21,name:"Meteor",tier:2,arena:1,description:"+{modifier0} gold/sec. Disable gold production for all other cards.",imageFilename:"assets/images/cards/meteor.png",rarity:4,isProducer:!0,isEffect:!1,relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[22]},{id:22,name:"Inn",tier:2,arena:1,description:"+{modifier0%}% gold production for all other cards",imageFilename:"assets/images/cards/lodge.png",rarity:5,isProducer:!1,isEffect:!0,relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[.5]},{id:23,name:"Honey",tier:2,arena:1,description:"+{modifier0%}% gold production for the card below this",imageFilename:"assets/images/cards/honey.png",rarity:3,isProducer:!1,isEffect:!0,relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[1.5]},{id:24,name:"Lil' Lumberjack",tier:1,arena:1,description:"+{modifier0} wood/sec",imageFilename:"assets/images/cards/lil_lumberjack.png",rarity:1,isProducer:!0,isEffect:!1,relevantResource:"wood",resourcesAffectedByMultipliers:"wood",modifiers:[1]},{id:25,name:"Miner",tier:1,arena:1,description:"+{modifier0} iron/sec, {modifier1} wood/sec",imageFilename:"assets/images/cards/miner.png",rarity:1,isProducer:!0,isEffect:!1,relevantResource:"iron",resourcesAffectedByMultipliers:"iron",modifiers:[.5,-2]},{id:26,name:"Sickle",tier:1,arena:1,description:"+{modifier0} iron/sec, {modifier1} wood/sec",imageFilename:"assets/images/cards/sickle.png",rarity:2,isProducer:!0,isEffect:!1,relevantResource:"iron",resourcesAffectedByMultipliers:"iron",modifiers:[1,-4]},{id:27,name:"Knight",tier:1,arena:1,description:"+{modifier0} wood/sec. Extra +{modifier1} wood/sec for every other Knight in play",imageFilename:"assets/images/cards/knight.png",rarity:2,isProducer:!0,isEffect:!1,relevantResource:"wood",resourcesAffectedByMultipliers:"wood",modifiers:[.5,.5]},{id:28,name:"Scarecrow",tier:1,arena:1,description:"+{modifier0} wood/sec",imageFilename:"assets/images/cards/scarecrow.png",rarity:1,isProducer:!0,isEffect:!1,relevantResource:"wood",resourcesAffectedByMultipliers:"wood",modifiers:[2]},{id:29,name:"Bubba",tier:1,arena:2,description:"+{modifier0} wood/sec",imageFilename:"assets/images/cards/bubba.png",rarity:4,isProducer:!0,isEffect:!1,relevantResource:"wood",resourcesAffectedByMultipliers:"wood",modifiers:[3]},{id:30,name:"Hades",tier:1,arena:2,description:"+{modifier0} iron/sec, {modifier1} wood/sec",imageFilename:"assets/images/cards/hades.png",rarity:5,isProducer:!0,isEffect:!1,relevantResource:"iron",resourcesAffectedByMultipliers:"iron",modifiers:[5,-20]},{id:31,name:"Crossbow",tier:1,arena:2,description:"+{modifier0%}% wood production for adjacent cards",imageFilename:"assets/images/cards/crossbow.png",rarity:1,isProducer:!1,isEffect:!0,relevantResource:"wood",resourcesAffectedByMultipliers:"wood",modifiers:[.5]},{id:32,name:"Gargoyle",tier:1,arena:2,description:"+{modifier0} wood/sec. Disable wood production for other cards in row",imageFilename:"assets/images/cards/gargoyle.png",rarity:2,isProducer:!0,isEffect:!1,relevantResource:"wood",resourcesAffectedByMultipliers:"wood",modifiers:[4]},{id:33,name:"Hatchet",tier:1,arena:2,description:"+{modifier0%}% wood production for adjacent Lil' Lumberjacks",imageFilename:"assets/images/cards/hatchet.png",rarity:3,isProducer:!1,isEffect:!0,relevantResource:"wood",resourcesAffectedByMultipliers:"wood",modifiers:[3]},{id:34,name:"Iron Golem",tier:1,arena:2,description:"+{modifier0} iron/sec, {modifier1} wood/sec",imageFilename:"assets/images/cards/iron_golem.png",rarity:4,isProducer:!0,isEffect:!1,relevantResource:"iron",resourcesAffectedByMultipliers:"iron",modifiers:[2.5,-10]},{id:35,name:"Gauntlet",tier:1,arena:2,description:"+{modifier0%}% iron production for adjacent cards",imageFilename:"assets/images/cards/gauntlet.png",rarity:3,isProducer:!1,isEffect:!0,relevantResource:"iron",resourcesAffectedByMultipliers:"iron",modifiers:[1]},{id:36,name:"Iron Mine",tier:2,arena:2,description:"Adjacent cards consume no wood, and have +{modifier0%}% iron production",imageFilename:"assets/images/cards/cavern.png",rarity:5,isProducer:!1,isEffect:!0,relevantResource:"iron",resourcesAffectedByMultipliers:"iron",modifiers:[.1]},{id:37,name:"The Risen",tier:1,arena:2,description:"+{modifier0} wood/sec",imageFilename:"assets/images/cards/therisen.png",rarity:4,isProducer:!0,isEffect:!1,relevantResource:"wood",resourcesAffectedByMultipliers:"wood",modifiers:[4]},{id:38,name:"Valkyrie",tier:1,arena:2,description:"+{modifier0} iron/sec. Doesn't consume wood.",imageFilename:"assets/images/cards/valkyrie.png",rarity:3,isProducer:!0,isEffect:!1,relevantResource:"iron",resourcesAffectedByMultipliers:"iron",modifiers:[.5]},{id:39,name:"Pipe",tier:1,arena:2,description:"+{modifier0%}% wood production for adjacent cards",imageFilename:"assets/images/cards/pipe.png",rarity:3,isProducer:!1,isEffect:!0,relevantResource:"wood",resourcesAffectedByMultipliers:"wood",modifiers:[.75]},{id:40,name:"Armor",tier:1,arena:2,description:"+{modifier0%}% wood production for cards in this column",imageFilename:"assets/images/cards/armor.png",rarity:1,isProducer:!1,isEffect:!0,relevantResource:"wood",resourcesAffectedByMultipliers:"wood",modifiers:[.75]},{id:41,name:"Watchtower",tier:1,arena:2,description:"+{modifier0%}% wood production for cards in this row",imageFilename:"assets/images/cards/tower.png",rarity:1,isProducer:!1,isEffect:!0,relevantResource:"wood",resourcesAffectedByMultipliers:"wood",modifiers:[.75]},{id:42,name:"Potion",tier:1,arena:2,description:"+{modifier0%}% iron production for cards in this row",imageFilename:"assets/images/cards/potion.png",rarity:1,isProducer:!1,isEffect:!0,relevantResource:"iron",resourcesAffectedByMultipliers:"iron",modifiers:[1]},{id:43,name:"Starfire",tier:1,arena:2,description:"+{modifier0%}% wood production for all cards",imageFilename:"assets/images/cards/starfire.png",rarity:5,isProducer:!1,isEffect:!0,relevantResource:"wood",resourcesAffectedByMultipliers:"wood",modifiers:[.25]},{id:44,name:"Pancakes",tier:1,arena:2,description:"+{modifier0%}% iron production for the card below",imageFilename:"assets/images/cards/pancakes.png",rarity:2,isProducer:!1,isEffect:!0,relevantResource:"iron",resourcesAffectedByMultipliers:"iron",modifiers:[2]},{id:45,name:"Warpstone",tier:1,arena:2,description:"+{modifier0%}% iron production for the card to the left",imageFilename:"assets/images/cards/warpstone.png",rarity:2,isProducer:!1,isEffect:!0,relevantResource:"iron",resourcesAffectedByMultipliers:"iron",modifiers:[2]},{id:46,name:"Petrify",tier:1,arena:2,description:"+{modifier0%}% iron production for the card above",imageFilename:"assets/images/cards/petrify.png",rarity:2,isProducer:!1,isEffect:!0,relevantResource:"iron",resourcesAffectedByMultipliers:"iron",modifiers:[2]},{id:47,name:"Sushi",tier:1,arena:2,description:"+{modifier0%}% iron production for the card to the right",imageFilename:"assets/images/cards/sushi.png",rarity:2,isProducer:!1,isEffect:!0,relevantResource:"iron",resourcesAffectedByMultipliers:"iron",modifiers:[2]},{id:48,name:"Forest Inn",tier:1,arena:2,description:"+{modifier0%}% iron production for all cards",imageFilename:"assets/images/cards/forestinn.png",rarity:5,isProducer:!1,isEffect:!0,relevantResource:"iron",resourcesAffectedByMultipliers:"iron",modifiers:[.25]},{id:49,name:"Iron Robot",tier:1,arena:2,description:"+{modifier0} iron/sec, {modifier1} wood/sec. Not affected by bonuses/penalties",imageFilename:"assets/images/cards/iron_robot.png",rarity:3,isProducer:!0,isEffect:!1,relevantResource:"iron|wood",resourcesAffectedByMultipliers:"",modifiers:[2,-5]},{id:50,name:"Investor Dog",tier:2,arena:2,description:"+{modifier0} wood/sec for every 1k wood held (min +1/sec, max +{modifier2}/sec)",imageFilename:"assets/images/cards/investor_dog.png",rarity:5,isProducer:!0,isEffect:!1,relevantResource:"wood",resourcesAffectedByMultipliers:"wood",modifiers:[1,1e3,30]},{id:51,name:"Meat",tier:1,arena:2,description:"+{modifier0%}% wood production for card below",imageFilename:"assets/images/cards/meat.png",rarity:2,isProducer:!1,isEffect:!0,relevantResource:"wood",resourcesAffectedByMultipliers:"wood",modifiers:[2.5]},{id:52,name:"Viking",tier:1,arena:2,description:"+{modifier0} wood/sec",imageFilename:"assets/images/cards/viking.png",rarity:5,isProducer:!0,isEffect:!1,relevantResource:"wood",resourcesAffectedByMultipliers:"wood",modifiers:[5]},{id:53,name:"Investor Imp",tier:1,arena:2,description:"+{modifier0} wood/sec for every 3k wood held (min +1/sec, max +{modifier2}/sec)",imageFilename:"assets/images/cards/imp.png",rarity:5,isProducer:!0,isEffect:!1,relevantResource:"wood",resourcesAffectedByMultipliers:"wood",modifiers:[1,3e3,20]},{id:54,name:"Treant",tier:2,arena:2,description:"+{modifier0} wood/sec",imageFilename:"assets/images/cards/treant.png",rarity:1,isProducer:!0,isEffect:!1,relevantResource:"wood",resourcesAffectedByMultipliers:"wood",modifiers:[12]},{id:55,name:"Big Crab",tier:2,arena:2,description:"+{modifier0} wood/sec. Extra +{modifier1} wood/sec if a Forest Shroom is in play",imageFilename:"assets/images/cards/big_crab.png",rarity:1,isProducer:!0,isEffect:!1,relevantResource:"wood",resourcesAffectedByMultipliers:"wood",modifiers:[8,7]},{id:56,name:"Heart",tier:2,arena:2,description:"+{modifier0%}% iron production for the card below",imageFilename:"assets/images/cards/heart.png",rarity:3,isProducer:!1,isEffect:!0,relevantResource:"iron",resourcesAffectedByMultipliers:"iron",modifiers:[3]},{id:57,name:"Orc",tier:2,arena:2,description:"+{modifier0} wood/sec. +{modifier1%}% iron production for the card to the left",imageFilename:"assets/images/cards/orc.png",rarity:1,isProducer:!0,isEffect:!0,relevantResource:"wood",resourcesAffectedByMultipliers:"wood",modifiers:[10,2]},{id:58,name:"Safe Refuge",tier:2,arena:2,description:"+{modifier0%}% iron production and +{modifier1%}% wood production for all cards",imageFilename:"assets/images/cards/safe_refuge.png",rarity:5,isProducer:!1,isEffect:!0,relevantResource:"iron",resourcesAffectedByMultipliers:"iron",modifiers:[.4,.4]},{id:59,name:"Forest Shroom",tier:2,arena:2,description:"+{modifier0} wood/sec",imageFilename:"assets/images/cards/forestshroom.png",rarity:1,isProducer:!0,isEffect:!1,relevantResource:"wood",resourcesAffectedByMultipliers:"wood",modifiers:[11]},{id:60,name:"Skull Helm",tier:2,arena:2,description:"+{modifier0%}% wood or iron production for card to the right",imageFilename:"assets/images/cards/skullhelm.png",rarity:2,isProducer:!1,isEffect:!0,relevantResource:"iron",resourcesAffectedByMultipliers:"iron",modifiers:[3]},{id:61,name:"Cataclysm",tier:2,arena:2,description:"+{modifier0%}% iron production for all cards. Disable all wood production",imageFilename:"assets/images/cards/cataclysm.png",rarity:4,isProducer:!1,isEffect:!0,relevantResource:"iron|wood",resourcesAffectedByMultipliers:"iron|wood",modifiers:[1]},{id:62,name:"Mining Beast",tier:2,arena:2,description:"+{modifier0} iron/sec, {modifier1} wood/sec",imageFilename:"assets/images/cards/mining_beast.png",rarity:3,isProducer:!0,isEffect:!1,relevantResource:"iron",resourcesAffectedByMultipliers:"iron",modifiers:[20,-80]},{id:63,name:"Roo",tier:2,arena:2,description:"+{modifier0} wood/sec. +{modifier1%}% wood production for card to the right",imageFilename:"assets/images/cards/roo.png",rarity:2,isProducer:!0,isEffect:!0,relevantResource:"wood",resourcesAffectedByMultipliers:"wood",modifiers:[10,2]},{id:64,name:"Noclops",tier:2,arena:2,description:"+{modifier0} iron/sec, {modifier1} wood/sec. +{modifier2%}% iron production for card above",imageFilename:"assets/images/cards/noclops.png",rarity:1,isProducer:!0,isEffect:!0,relevantResource:"iron",resourcesAffectedByMultipliers:"iron",modifiers:[10,-40,2]},{id:65,name:"Spider King",tier:2,arena:2,description:"+{modifier0} iron/sec, {modifier1} wood/sec. +{modifier2%}% iron production for all other cards",imageFilename:"assets/images/cards/spider_king.png",rarity:5,isProducer:!0,isEffect:!0,relevantResource:"iron",resourcesAffectedByMultipliers:"iron",modifiers:[8,-30,1]},{id:66,name:"Death Knight",tier:2,arena:2,description:"+{modifier0} iron/sec, {modifier1} wood/sec",imageFilename:"assets/images/cards/deathknight.png",rarity:5,isProducer:!0,isEffect:!1,relevantResource:"iron",resourcesAffectedByMultipliers:"iron",modifiers:[30,-120]},{id:67,name:"Warrior",tier:2,arena:2,description:"+{modifier0} wood/sec. Disable wood production for other cards in row",imageFilename:"assets/images/cards/warrior.png",rarity:3,isProducer:!0,isEffect:!1,relevantResource:"wood",resourcesAffectedByMultipliers:"wood",modifiers:[25]},{id:68,name:"Hood",tier:2,arena:2,description:"+{modifier0%}% iron production and disable wood production for adjacent cards",imageFilename:"assets/images/cards/hood.png",rarity:2,isProducer:!1,isEffect:!0,relevantResource:"iron|wood",resourcesAffectedByMultipliers:"iron|wood",modifiers:[3]},{id:69,name:"Priestess",tier:1,arena:3,description:"+{modifier0} ether/sec, +{modifier1} skulls/sec, +{modifier2} feathers/sec",imageFilename:"assets/images/cards/priestess.png",rarity:1,isProducer:!0,isEffect:!1,relevantResource:"ether|skulls|feathers",resourcesAffectedByMultipliers:"ether|skulls|feathers",modifiers:[.25,.25,.25]},{id:70,name:"Jar of Death",tier:1,arena:3,description:"+{modifier0%}% skulls production for adjacent cards",imageFilename:"assets/images/cards/jarofdeath.png",rarity:3,isProducer:!1,isEffect:!0,relevantResource:"skulls",resourcesAffectedByMultipliers:"skulls",modifiers:[1.25]},{id:71,name:"Hellspider",tier:1,arena:3,description:"+{modifier0} feathers/sec",imageFilename:"assets/images/cards/hellspider.png",rarity:1,isProducer:!0,isEffect:!1,relevantResource:"feathers",resourcesAffectedByMultipliers:"feathers",modifiers:[1]},{id:72,name:"Necromancer",tier:1,arena:3,description:"+{modifier0} ether/sec, {modifier1} skulls/sec",imageFilename:"assets/images/cards/necromancer.png",rarity:2,isProducer:!0,isEffect:!1,relevantResource:"ether|skulls",resourcesAffectedByMultipliers:"ether|skulls",modifiers:[2.25,-1]},{id:73,name:"Possessed",tier:1,arena:3,description:"+{modifier0} ether/sec",imageFilename:"assets/images/cards/possessed.png",rarity:1,isProducer:!0,isEffect:!1,relevantResource:"ether",resourcesAffectedByMultipliers:"ether",modifiers:[1]},{id:74,name:"Devourer",tier:1,arena:3,description:"+{modifier0} skulls/sec",imageFilename:"assets/images/cards/devourer.png",rarity:1,isProducer:!0,isEffect:!1,relevantResource:"skulls",resourcesAffectedByMultipliers:"skulls",modifiers:[1]},{id:75,name:"Timid Giant",tier:1,arena:3,description:"+{modifier0} feathers/sec",imageFilename:"assets/images/cards/timid_giant.png",rarity:2,isProducer:!0,isEffect:!1,relevantResource:"feathers",resourcesAffectedByMultipliers:"feathers",modifiers:[1.25]},{id:76,name:"Scimitar",tier:1,arena:3,description:"+{modifier0%}% skulls production for card above",imageFilename:"assets/images/cards/scimitar.png",rarity:2,isProducer:!1,isEffect:!0,relevantResource:"ether",resourcesAffectedByMultipliers:"ether",modifiers:[2.5]},{id:77,name:"Lizard",tier:1,arena:3,description:"+{modifier0} feathers/sec",imageFilename:"assets/images/cards/lizard.png",rarity:3,isProducer:!0,isEffect:!1,relevantResource:"feathers",resourcesAffectedByMultipliers:"feathers",modifiers:[1.5]},{id:78,name:"Undertaker",tier:1,arena:3,description:"+{modifier0} skulls/sec",imageFilename:"assets/images/cards/undertaker.png",rarity:2,isProducer:!0,isEffect:!1,relevantResource:"skulls",resourcesAffectedByMultipliers:"skulls",modifiers:[1.25]},{id:79,name:"Rabbid",tier:1,arena:3,description:"+{modifier0} skulls/sec",imageFilename:"assets/images/cards/rabbid.png",rarity:3,isProducer:!0,isEffect:!1,relevantResource:"skulls",resourcesAffectedByMultipliers:"skulls",modifiers:[1.5]},{id:80,name:"Death Imp",tier:1,arena:3,description:"+{modifier0} ether/sec, +{modifier1} skulls/sec, +{modifier2} feathers/sec",imageFilename:"assets/images/cards/deathimp.png",rarity:5,isProducer:!0,isEffect:!1,relevantResource:"ether|skulls|feathers",resourcesAffectedByMultipliers:"ether|skulls|feathers",modifiers:[.75,.75,.75]},{id:81,name:"Frog",tier:1,arena:3,description:"+{modifier0} ether/sec",imageFilename:"assets/images/cards/frog.png",rarity:2,isProducer:!0,isEffect:!1,relevantResource:"ether",resourcesAffectedByMultipliers:"ether",modifiers:[1.25]},{id:82,name:"Sailor",tier:1,arena:3,description:"+{modifier0} skulls/sec, +{modifier1} feathers/sec",imageFilename:"assets/images/cards/sailor.png",rarity:3,isProducer:!0,isEffect:!1,relevantResource:"skulls|feathers",resourcesAffectedByMultipliers:"skulls|feathers",modifiers:[.75,.75]},{id:83,name:"Icy Outpost",tier:1,arena:3,description:"+{modifier0%}% feathers production for adjacent cards",imageFilename:"assets/images/cards/icy_outpost.png",rarity:4,isProducer:!1,isEffect:!0,relevantResource:"ether",resourcesAffectedByMultipliers:"ether",modifiers:[1.5]},{id:84,name:"Obelisk",tier:1,arena:3,description:"+{modifier0%}% ether production and disable skulls production for adjacent cards",imageFilename:"assets/images/cards/obelisk.png",rarity:5,isProducer:!1,isEffect:!0,relevantResource:"ether|skulls",resourcesAffectedByMultipliers:"ether|skulls",modifiers:[1.5]},{id:85,name:"Shield",tier:1,arena:3,description:"{modifier0%}% feathers production for cards above and below",imageFilename:"assets/images/cards/shield.png",rarity:3,isProducer:!1,isEffect:!0,relevantResource:"feathers",resourcesAffectedByMultipliers:"feathers",modifiers:[2.5]},{id:86,name:"Shaman",tier:1,arena:3,description:"+{modifier0} skulls/sec, +{modifier1%}% ether production cards in this row",imageFilename:"assets/images/cards/shaman.png",rarity:4,isProducer:!1,isEffect:!0,relevantResource:"skulls|ether",resourcesAffectedByMultipliers:"skulls",modifiers:[.5,3]},{id:87,name:"Mana Potion",tier:1,arena:3,description:"{modifier0%}% ether production for cards above and below",imageFilename:"assets/images/cards/mana.png",rarity:2,isProducer:!1,isEffect:!0,relevantResource:"ether",resourcesAffectedByMultipliers:"ether",modifiers:[2]},{id:88,name:"Sneaky Barrel",tier:2,arena:3,description:"+{modifier0} ether/sec",imageFilename:"assets/images/cards/barrel.png",rarity:1,isProducer:!0,isEffect:!1,relevantResource:"ether",resourcesAffectedByMultipliers:"ether",modifiers:[5]},{id:89,name:"Demon",tier:2,arena:3,description:"+{modifier0} skulls/sec",imageFilename:"assets/images/cards/demon.png",rarity:1,isProducer:!0,isEffect:!1,relevantResource:"skulls",resourcesAffectedByMultipliers:"skulls",modifiers:[5]},{id:90,name:"Hideaway",tier:2,arena:3,description:"+{modifier0%}% feathers production for cards in this column",imageFilename:"assets/images/cards/hideaway.png",rarity:2,isProducer:!1,isEffect:!0,relevantResource:"feathers",resourcesAffectedByMultipliers:"feathers",modifiers:[4]},{id:91,name:"Dead Fish",tier:2,arena:3,description:"+{modifier0%}% feathers production for card above",imageFilename:"assets/images/cards/fish.png",rarity:2,isProducer:!1,isEffect:!0,relevantResource:"feathers",resourcesAffectedByMultipliers:"feathers",modifiers:[4]},{id:92,name:"Ice Fish",tier:2,arena:3,description:"+{modifier0%}% ether/sec for card to the left",imageFilename:"assets/images/cards/ice_fish.png",rarity:4,isProducer:!0,isEffect:!1,relevantResource:"ether",resourcesAffectedByMultipliers:"ether",modifiers:[4.5]},{id:93,name:"Fisherman",tier:2,arena:3,description:"+{modifier0} ether/sec. +{modifier1} more ether/sec if an Ice Fish is below",imageFilename:"assets/images/cards/fisher.png",rarity:4,isProducer:!0,isEffect:!1,relevantResource:"ether",resourcesAffectedByMultipliers:"ether",modifiers:[4,6]},{id:94,name:"Bigmouth",tier:2,arena:3,description:"+{modifier0} feathers/sec",imageFilename:"assets/images/cards/bigmouth.png",rarity:3,isProducer:!0,isEffect:!1,relevantResource:"feathers",resourcesAffectedByMultipliers:"feathers",modifiers:[6]},{id:95,name:"Werewolf",tier:2,arena:3,description:"+{modifier0} feathers/sec. +{modifier1%}% skulls for card to the right",imageFilename:"assets/images/cards/werewolf.png",rarity:1,isProducer:!0,isEffect:!0,relevantResource:"feathers|skulls",resourcesAffectedByMultipliers:"feathers|skulls",modifiers:[2,3.5]},{id:96,name:"Wagon",tier:2,arena:3,description:"+{modifier0%}% ether/sec for cards in this row",imageFilename:"assets/images/cards/wagon.png",rarity:2,isProducer:!1,isEffect:!0,relevantResource:"ether",resourcesAffectedByMultipliers:"ether",modifiers:[4]},{id:97,name:"Warlock",tier:2,arena:3,description:"+{modifier0} feathers/sec",imageFilename:"assets/images/cards/warlock.png",rarity:1,isProducer:!0,isEffect:!1,relevantResource:"feathers",resourcesAffectedByMultipliers:"feathers",modifiers:[5]},{id:98,name:"Fort",tier:2,arena:3,description:"+{modifier0%}% ether for cards above and below",imageFilename:"assets/images/cards/fort.png",rarity:3,isProducer:!1,isEffect:!0,relevantResource:"ether",resourcesAffectedByMultipliers:"ether",modifiers:[3.5]},{id:99,name:"Crawler",tier:2,arena:3,description:"+{modifier0} ether/sec. +{modifier1%}% skulls for adjacent cards",imageFilename:"assets/images/cards/crawler.png",rarity:5,isProducer:!0,isEffect:!0,relevantResource:"ether|skulls",resourcesAffectedByMultipliers:"ether|skulls",modifiers:[4,2.5]},{id:100,name:"Slug",tier:2,arena:3,description:"+{modifier0} ether/sec. +{modifier1%}% feathers for card above",imageFilename:"assets/images/cards/slug.png",rarity:2,isProducer:!0,isEffect:!0,relevantResource:"ether|feathers",resourcesAffectedByMultipliers:"ether|feathers",modifiers:[3,4]},{id:101,name:"Sign",tier:2,arena:3,description:"+{modifier0%}% skulls for cards in this row",imageFilename:"assets/images/cards/sign.png",rarity:3,isProducer:!1,isEffect:!0,relevantResource:"ether",resourcesAffectedByMultipliers:"ether",modifiers:[3.5]},{id:102,name:"Winged Imp",tier:2,arena:3,description:"+{modifier0} ether/sec. +{modifier1%}% skulls for card below",imageFilename:"assets/images/cards/winged_imp.png",rarity:4,isProducer:!0,isEffect:!0,relevantResource:"ether|skulls",resourcesAffectedByMultipliers:"ether|skulls",modifiers:[3,4]},{id:103,name:"Kobold",tier:2,arena:3,description:"+{modifier0} skulls/sec",imageFilename:"assets/images/cards/kobold.png",rarity:3,isProducer:!0,isEffect:!1,relevantResource:"skulls",resourcesAffectedByMultipliers:"skulls",modifiers:[6]},{id:104,name:"Baby Dragon",tier:2,arena:3,description:"+{modifier0} ether/sec",imageFilename:"assets/images/cards/baby_dragon.png",rarity:3,isProducer:!0,isEffect:!1,relevantResource:"ether",resourcesAffectedByMultipliers:"ether",modifiers:[6]},{id:105,name:"Knight Capt",tier:2,arena:3,description:"+{modifier0} skulls/sec, +{modifier1%}% feathers for card to the right",imageFilename:"assets/images/cards/knight_capt.png",rarity:4,isProducer:!0,isEffect:!1,relevantResource:"skulls|feathers",resourcesAffectedByMultipliers:"skulls|feathers",modifiers:[3,4]},{id:106,name:"Horror",tier:2,arena:3,description:"+{modifier0} skulls/sec",imageFilename:"assets/images/cards/horror.png",rarity:5,isProducer:!0,isEffect:!1,relevantResource:"skulls",resourcesAffectedByMultipliers:"skulls",modifiers:[9]},{id:107,name:"Ruins",tier:2,arena:3,description:"+{modifier0%}% ether, skulls, and feathers for adjacent cards",imageFilename:"assets/images/cards/ruins.png",rarity:5,isProducer:!1,isEffect:!0,relevantResource:"ether|skulls|feathers",resourcesAffectedByMultipliers:"ether|skulls|feathers",modifiers:[2.5]},{id:108,name:"Lucy",tier:3,arena:3,description:"+{modifier0} ether/sec",imageFilename:"assets/images/cards/lucy.png",rarity:5,isProducer:!0,isEffect:!1,relevantResource:"ether",resourcesAffectedByMultipliers:"ether",modifiers:[40]},{id:109,name:"Missionary",tier:3,arena:3,description:"+{modifier0} feathers/sec, {modifier1} skulls/sec",imageFilename:"assets/images/cards/missionary.png",rarity:1,isProducer:!0,isEffect:!1,relevantResource:"skulls|feathers",resourcesAffectedByMultipliers:"skulls|feathers",modifiers:[30,-6]},{id:110,name:"Nightwatch",tier:3,arena:3,description:"+{modifier0} skulls/sec, +{modifier1} feathers/sec",imageFilename:"assets/images/cards/nightwatch.png",rarity:2,isProducer:!0,isEffect:!1,relevantResource:"skulls|feathers",resourcesAffectedByMultipliers:"skulls|feathers",modifiers:[24,24]},{id:111,name:"Yeti",tier:3,arena:3,description:"+{modifier0} skulls/sec",imageFilename:"assets/images/cards/yeti.png",rarity:1,isProducer:!0,isEffect:!1,relevantResource:"skulls",resourcesAffectedByMultipliers:"skulls",modifiers:[30]},{id:112,name:"Oasis",tier:3,arena:3,description:"+{modifier0%}% ether, {modifier1%}% feathers for adjacent cards",imageFilename:"assets/images/cards/oasis.png",rarity:3,isProducer:!1,isEffect:!0,relevantResource:"ether|feathers",resourcesAffectedByMultipliers:"ether|feathers",modifiers:[4,3]},{id:113,name:"Igloo",tier:3,arena:3,description:"+{modifier0%}% ether for card to the right",imageFilename:"assets/images/cards/igloo.png",rarity:4,isProducer:!1,isEffect:!0,relevantResource:"ether",resourcesAffectedByMultipliers:"ether",modifiers:[10]},{id:114,name:"Sharky",tier:3,arena:3,description:"+{modifier0} skulls/sec, +{modifier1} ether/sec",imageFilename:"assets/images/cards/sharky.png",rarity:2,isProducer:!0,isEffect:!1,relevantResource:"skulls|ether",resourcesAffectedByMultipliers:"skulls|ether",modifiers:[24,24]},{id:115,name:"Gwen",tier:3,arena:3,description:"+{modifier0} ether/sec, +{modifier1} feathers/sec",imageFilename:"assets/images/cards/gwen.png",rarity:2,isProducer:!0,isEffect:!1,relevantResource:"ether|feathers",resourcesAffectedByMultipliers:"ether|feathers",modifiers:[24,24]},{id:116,name:"Trampler",tier:3,arena:3,description:"+{modifier0} skulls/sec, +{modifier1%}% ether for cards in this row",imageFilename:"assets/images/cards/trampler.png",rarity:3,isProducer:!0,isEffect:!0,relevantResource:"skulls|ether",resourcesAffectedByMultipliers:"skulls|ether",modifiers:[20,5]},{id:117,name:"Spearfisher",tier:3,arena:3,description:"+{modifier0} skulls/sec. +{modifier1} more skulls/sec if a Dead Fish is in play",imageFilename:"assets/images/cards/spearfisher.png",rarity:3,isProducer:!0,isEffect:!1,relevantResource:"skulls",resourcesAffectedByMultipliers:"skulls",modifiers:[24,24]},{id:118,name:"Shellhouse",tier:3,arena:3,description:"+{modifier0%}% skulls for all cards in this column",imageFilename:"assets/images/cards/shellhouse.png",rarity:4,isProducer:!1,isEffect:!0,relevantResource:"skulls",resourcesAffectedByMultipliers:"skulls",modifiers:[5]},{id:119,name:"Icestalker",tier:3,arena:3,description:"+{modifier0} ether/sec",imageFilename:"assets/images/cards/icestalker.png",rarity:3,isProducer:!0,isEffect:!1,relevantResource:"ether",resourcesAffectedByMultipliers:"ether",modifiers:[34]},{id:120,name:"Turtle",tier:3,arena:3,description:"+{modifier0%}% ether/sec for card above",imageFilename:"assets/images/cards/turtle.png",rarity:3,isProducer:!1,isEffect:!0,relevantResource:"ether",resourcesAffectedByMultipliers:"ether",modifiers:[6]},{id:121,name:"Iron Cat",tier:3,arena:3,description:"+{modifier0} skulls/sec, but only if an Ice Fish or Dead Fish is in play",imageFilename:"assets/images/cards/ironcat.png",rarity:3,isProducer:!1,isEffect:!0,relevantResource:"skulls",resourcesAffectedByMultipliers:"skulls",modifiers:[32]},{id:122,name:"Fishery",tier:3,arena:3,description:"+{modifier0%}% skulls for all Iron Cats",imageFilename:"assets/images/cards/fishery.png",rarity:3,isProducer:!1,isEffect:!0,relevantResource:"skulls",resourcesAffectedByMultipliers:"skulls",modifiers:[2]},{id:123,name:"Swordsman",tier:1,arena:4,description:"[Hero] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG",imageFilename:"assets/images/cards/swordsman.png",rarity:1,isProducer:!1,isEffect:!1,cardType:"hero",relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[10,4,1,2]},{id:124,name:"Goblin",tier:1,arena:4,description:"[Monster] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG&nbsp;&nbsp; Drops {modifier4} gold",imageFilename:"assets/images/cards/goblin.png",rarity:1,isProducer:!1,isEffect:!1,cardType:"monster",relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[8,4,1,2,10,0]},{id:125,name:"Toad",tier:1,arena:4,description:"[Monster] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG&nbsp;&nbsp; Drops {modifier4} gold",imageFilename:"assets/images/cards/toad.png",rarity:2,isProducer:!1,isEffect:!1,cardType:"monster",relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[10,6,1,2,15,0]},{id:126,name:"Parrot",tier:1,arena:4,description:"[Monster] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG&nbsp;&nbsp; Drops {modifier4} gold",imageFilename:"assets/images/cards/parrot.png",rarity:4,isProducer:!1,isEffect:!1,cardType:"monster",relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[12,6,2,2,20,0]},{id:127,name:"Roo",tier:1,arena:4,description:"[Monster] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG&nbsp;&nbsp; Drops {modifier4} gold",imageFilename:"assets/images/cards/roo.png",rarity:5,isProducer:!1,isEffect:!1,cardType:"monster",relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[14,8,3,4,25,0]},{id:128,name:"Greedy Bird",tier:1,arena:4,description:"[Monster] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG&nbsp;&nbsp; Drops {modifier4} gold",imageFilename:"assets/images/cards/bird.png",rarity:3,isProducer:!1,isEffect:!1,cardType:"monster",relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[40,4,4,4,35,0]},{id:129,name:"Arachnid",tier:1,arena:4,description:"[Monster] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG&nbsp;&nbsp; Drops {modifier4} gold",imageFilename:"assets/images/cards/arachnid.png",rarity:3,isProducer:!1,isEffect:!1,cardType:"monster",relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[20,10,3,4,30,0]},{id:130,name:"Dingo",tier:1,arena:4,description:"[Monster] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG&nbsp;&nbsp; Drops {modifier5} wood",imageFilename:"assets/images/cards/dingo.png",rarity:4,isProducer:!1,isEffect:!1,cardType:"monster",relevantResource:"wood",resourcesAffectedByMultipliers:"wood",modifiers:[20,10,4,8,0,10]},{id:131,name:"Scarecrow",tier:1,arena:4,description:"[Monster] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG&nbsp;&nbsp; Drops {modifier5} wood",imageFilename:"assets/images/cards/scarecrow.png",rarity:5,isProducer:!1,isEffect:!1,cardType:"monster",relevantResource:"wood",resourcesAffectedByMultipliers:"wood",modifiers:[24,14,2,8,0,15]},{id:132,name:"Valkyrie",tier:1,arena:4,description:"[Hero] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG",imageFilename:"assets/images/cards/valkyrie.png",rarity:2,isProducer:!1,isEffect:!1,cardType:"hero",relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[12,4,3,4,0,0]},{id:133,name:"Rogue",tier:1,arena:4,description:"[Hero] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG",imageFilename:"assets/images/cards/rogue.png",rarity:5,isProducer:!1,isEffect:!1,cardType:"hero",relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[8,14,2,6,0,0]},{id:134,name:"Viking",tier:1,arena:4,description:"[Hero] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG",imageFilename:"assets/images/cards/viking.png",rarity:4,isProducer:!1,isEffect:!1,cardType:"hero",relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[24,8,4,3,0,0]},{id:135,name:"Dwarf",tier:1,arena:4,description:"[Hero] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG",imageFilename:"assets/images/cards/dwarf.png",rarity:3,isProducer:!1,isEffect:!1,cardType:"hero",relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[16,6,10,1,0,0]},{id:136,name:"Potion",tier:1,arena:4,description:"[Boost] +{modifier0} HEALTH. The boosted Hero resurrects if it dies.",imageFilename:"assets/images/cards/potion.png",rarity:5,isProducer:!1,isEffect:!1,cardType:"boost",relevantResource:"",resourcesAffectedByMultipliers:"",modifiers:[1,0,0,0,0,0],boostPotionEffect:!0},{id:137,name:"Heart",tier:1,arena:4,description:"[Boost] +{modifier0} HEALTH. If used on a monster, +{modifier4%}% loot drops.",imageFilename:"assets/images/cards/heart.png",rarity:3,isProducer:!1,isEffect:!1,cardType:"boost",relevantResource:"",resourcesAffectedByMultipliers:"",modifiers:[7,0,0,0,.25,.25]},{id:138,name:"Well",tier:1,arena:4,description:"[Boost] +{modifier3} MAG. If used on a monster, +{modifier4%}% loot drops.",imageFilename:"assets/images/cards/well.png",rarity:2,isProducer:!1,isEffect:!1,cardType:"boost",relevantResource:"",resourcesAffectedByMultipliers:"",modifiers:[0,0,0,4,.15,.15]},{id:139,name:"Mana Potion",tier:1,arena:4,description:"[Boost] +{modifier3} MAG. If used on a monster, +{modifier4%}% loot drops.",imageFilename:"assets/images/cards/mana.png",rarity:3,isProducer:!1,isEffect:!1,cardType:"boost",relevantResource:"",resourcesAffectedByMultipliers:"",modifiers:[0,0,0,5,.2,.2]},{id:140,name:"Shield",tier:1,arena:4,description:"[Boost] +{modifier2} DEF. If used on a monster, +{modifier4%}% loot drops.",imageFilename:"assets/images/cards/shield.png",rarity:3,isProducer:!1,isEffect:!1,cardType:"boost",relevantResource:"",resourcesAffectedByMultipliers:"",modifiers:[0,0,4,0,.25,.25]},{id:141,name:"Beer",tier:1,arena:4,description:"[Boost] +{modifier1} ATK, {modifier2} DEF, {modifier3} MAG.",imageFilename:"assets/images/cards/beer.png",rarity:2,isProducer:!1,isEffect:!1,cardType:"boost",relevantResource:"",resourcesAffectedByMultipliers:"",modifiers:[0,5,-2,-2,0,0]},{id:142,name:"Chest",tier:1,arena:4,description:"[Boost] +{modifier1} ATK. If used on a monster, +{modifier4%}% loot drops.",imageFilename:"assets/images/cards/chest.png",rarity:2,isProducer:!1,isEffect:!1,cardType:"boost",relevantResource:"",resourcesAffectedByMultipliers:"",modifiers:[0,2,0,0,.3,.3]},{id:143,name:"Jar of Death",tier:1,arena:4,description:"[Boost] +{modifier1} ATK, critical hit chance x2. If used on monster, +{modifier4%}% loot drops.",imageFilename:"assets/images/cards/jarofdeath.png",rarity:4,isProducer:!1,isEffect:!1,cardType:"boost",relevantResource:"",resourcesAffectedByMultipliers:"",modifiers:[0,1,0,0,.3,.3],doubleCriticalRateEffect:!0},{id:144,name:"Dead Fish",tier:1,arena:4,description:"[Monster] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG&nbsp;&nbsp; Drops {modifier4} gold",imageFilename:"assets/images/cards/fish.png",rarity:1,isProducer:!1,isEffect:!1,cardType:"monster",relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[5,1,1,1,1,0]},{id:145,name:"Assassin",tier:2,arena:4,description:"[Hero] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG",imageFilename:"assets/images/cards/assassin.png",rarity:2,isProducer:!1,isEffect:!1,cardType:"hero",relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[15,22,6,8,0,0]},{id:146,name:"Girl",tier:2,arena:4,description:"[Hero] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG",imageFilename:"assets/images/cards/girl2.png",rarity:1,isProducer:!1,isEffect:!1,cardType:"hero",relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[24,15,12,9,0,0]},{id:147,name:"Necromancer",tier:2,arena:4,description:"[Hero] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG",imageFilename:"assets/images/cards/necromancer.png",rarity:5,isProducer:!1,isEffect:!1,cardType:"hero",relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[19,6,11,21,0,0]},{id:148,name:"Pikeman",tier:2,arena:4,description:"[Hero] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG",imageFilename:"assets/images/cards/pikeman.png",rarity:5,isProducer:!1,isEffect:!1,cardType:"hero",relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[26,19,10,7,0,0]},{id:149,name:"Telepath",tier:2,arena:4,description:"[Hero] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG",imageFilename:"assets/images/cards/telepath.png",rarity:3,isProducer:!1,isEffect:!1,cardType:"hero",relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[20,10,10,14,0,0]},{id:150,name:"Nightwatch",tier:2,arena:4,description:"[Hero] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG",imageFilename:"assets/images/cards/nightwatch.png",rarity:4,isProducer:!1,isEffect:!1,cardType:"hero",relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[22,17,11,8,0,0]},{id:151,name:"Windmill",tier:2,arena:4,description:"[Boost] +{modifier0} HEALTH, +{modifier1} ATK, +{modifier2} DEF. If used on a monster, +{modifier4%}% loot drops.",imageFilename:"assets/images/cards/mill.png",rarity:1,isProducer:!1,isEffect:!1,cardType:"boost",relevantResource:"",resourcesAffectedByMultipliers:"",modifiers:[7,5,5,0,.35,.35]},{id:152,name:"Helmet",tier:2,arena:4,description:"[Boost] +{modifier2} DEF, {modifier3} MAG. If used on a monster, +{modifier4%}% loot drops.",imageFilename:"assets/images/cards/helmet.png",rarity:3,isProducer:!1,isEffect:!1,cardType:"boost",relevantResource:"",resourcesAffectedByMultipliers:"",modifiers:[0,0,8,-2,.35,.35]},{id:153,name:"Gem",tier:2,arena:4,description:"[Boost] {modifier0} HEALTH, +{modifier3} MAG. If used on a monster, +{modifier4%}% loot drops.",imageFilename:"assets/images/cards/gem.png",rarity:5,isProducer:!1,isEffect:!1,cardType:"boost",relevantResource:"",resourcesAffectedByMultipliers:"",modifiers:[-5,0,0,6,.35,.35]},{id:154,name:"Meteor",tier:2,arena:4,description:"[Boost] +{modifier1} ATK, {modifier2} DEF",imageFilename:"assets/images/cards/meteor.png",rarity:5,isProducer:!1,isEffect:!1,cardType:"boost",relevantResource:"",resourcesAffectedByMultipliers:"",modifiers:[0,8,-6,0,0,0]},{id:155,name:"Tavern",tier:2,arena:4,description:"[Boost] +{modifier0} HEALTH, +{modifier1} ATK, +{modifier2} DEF, +{modifier3} MAG. Monster: +{modifier4%}% loot.",imageFilename:"assets/images/cards/tavern.png",rarity:2,isProducer:!1,isEffect:!1,cardType:"boost",relevantResource:"",resourcesAffectedByMultipliers:"",modifiers:[5,2,2,2,.35,.35]},{id:156,name:"Egg",tier:2,arena:4,description:"[Boost] {modifier0} HEALTH. If used on a monster, +{modifier4%}% loot drops.",imageFilename:"assets/images/cards/egg.png",rarity:4,isProducer:!1,isEffect:!1,cardType:"boost",relevantResource:"",resourcesAffectedByMultipliers:"",modifiers:[30,0,0,0,1.25,1.25]},{id:157,name:"Swamper",tier:2,arena:4,description:"[Monster] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG&nbsp;&nbsp; Drops {modifier4} gold",imageFilename:"assets/images/cards/swamper.png",rarity:1,isProducer:!1,isEffect:!1,cardType:"monster",relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[18,16,13,8,100,0]},{id:158,name:"Marauder",tier:2,arena:4,description:"[Monster] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG&nbsp;&nbsp; Drops {modifier5} wood",imageFilename:"assets/images/cards/marauder.png",rarity:1,isProducer:!1,isEffect:!1,cardType:"monster",relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[22,8,8,22,0,100]},{id:159,name:"Flying Pig",tier:2,arena:4,description:"[Monster] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG&nbsp;&nbsp; Drops {modifier4} gold",imageFilename:"assets/images/cards/boar.png",rarity:2,isProducer:!1,isEffect:!1,cardType:"monster",relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[18,12,10,6,200,0]},{id:160,name:"Reptile",tier:2,arena:4,description:"[Monster] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG&nbsp;&nbsp; Drops {modifier4} gold",imageFilename:"assets/images/cards/reptile.png",rarity:3,isProducer:!1,isEffect:!1,cardType:"monster",relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[30,11,11,12,400,0]},{id:161,name:"Skeleton",tier:2,arena:4,description:"[Monster] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG&nbsp;&nbsp; Drops {modifier4} gold, {modifier5} wood",imageFilename:"assets/images/cards/skeleton.png",rarity:3,isProducer:!1,isEffect:!1,cardType:"monster",relevantResource:"wood",resourcesAffectedByMultipliers:"wood",modifiers:[26,13,13,12,100,100]},{id:162,name:"Kobold",tier:2,arena:4,description:"[Monster] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG&nbsp;&nbsp; Drops {modifier5} wood",imageFilename:"assets/images/cards/kobold.png",rarity:3,isProducer:!1,isEffect:!1,cardType:"monster",relevantResource:"wood",resourcesAffectedByMultipliers:"wood",modifiers:[30,22,10,10,0,150]},{id:163,name:"Spider King",tier:2,arena:4,description:"[Monster] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG&nbsp;&nbsp; Drops {modifier4} gold",imageFilename:"assets/images/cards/spider_king.png",rarity:4,isProducer:!1,isEffect:!1,cardType:"monster",relevantResource:"wood",resourcesAffectedByMultipliers:"wood",modifiers:[27,24,9,16,600,0]},{id:164,name:"Werewolf",tier:2,arena:4,description:"[Monster] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG&nbsp;&nbsp; Drops {modifier5} wood",imageFilename:"assets/images/cards/werewolf.png",rarity:4,isProducer:!1,isEffect:!1,cardType:"monster",relevantResource:"wood",resourcesAffectedByMultipliers:"wood",modifiers:[32,23,11,17,0,250]},{id:165,name:"Heathen",tier:2,arena:4,description:"[Monster] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG&nbsp;&nbsp; Drops {modifier5} wood",imageFilename:"assets/images/cards/heathen.png",rarity:5,isProducer:!1,isEffect:!1,cardType:"monster",relevantResource:"wood",resourcesAffectedByMultipliers:"wood",modifiers:[44,33,16,14,0,600]},{id:166,name:"Sailor",tier:3,arena:4,description:"[Hero] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG",imageFilename:"assets/images/cards/sailor.png",rarity:1,isProducer:!1,isEffect:!1,cardType:"hero",relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[30,21,17,14,0,0]},{id:167,name:"Phalanx",tier:3,arena:4,description:"[Hero] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG",imageFilename:"assets/images/cards/phalanx.png",rarity:5,isProducer:!1,isEffect:!1,cardType:"hero",relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[20,29,11,13,0,0]},{id:168,name:"Knight",tier:3,arena:4,description:"[Hero] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG",imageFilename:"assets/images/cards/knight.png",rarity:2,isProducer:!1,isEffect:!1,cardType:"hero",relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[27,23,15,11,0,0]},{id:169,name:"Shaman",tier:3,arena:4,description:"[Hero] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG",imageFilename:"assets/images/cards/shaman.png",rarity:3,isProducer:!1,isEffect:!1,cardType:"hero",relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[19,6,7,30,0,0]},{id:170,name:"Mushroom",tier:3,arena:4,description:"[Monster] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG&nbsp;&nbsp; Drops {modifier4} gold",imageFilename:"assets/images/cards/mushroom.png",rarity:1,isProducer:!1,isEffect:!1,cardType:"monster",relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[31,17,15,15,600,0]},{id:171,name:"Golem",tier:3,arena:4,description:"[Monster] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG&nbsp;&nbsp; Drops {modifier4} gold, {modifier5} wood",imageFilename:"assets/images/cards/golem.png",rarity:1,isProducer:!1,isEffect:!1,cardType:"monster",relevantResource:"gold|wood",resourcesAffectedByMultipliers:"gold",modifiers:[38,25,12,13,400,400]},{id:172,name:"Sneaky Barrel",tier:3,arena:4,description:"[Monster] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG&nbsp;&nbsp; Drops {modifier5} wood",imageFilename:"assets/images/cards/marauder.png",rarity:2,isProducer:!1,isEffect:!1,cardType:"monster",relevantResource:"wood",resourcesAffectedByMultipliers:"wood",modifiers:[36,27,11,19,0,600]},{id:173,name:"Beast",tier:3,arena:4,description:"[Monster] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG&nbsp;&nbsp; Drops {modifier4} gold",imageFilename:"assets/images/cards/beast.png",rarity:3,isProducer:!1,isEffect:!1,cardType:"monster",relevantResource:"wood",resourcesAffectedByMultipliers:"wood",modifiers:[40,27,14,20,2400,0]},{id:174,name:"Demon",tier:3,arena:4,description:"[Monster] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG&nbsp;&nbsp; Drops {modifier5} wood",imageFilename:"assets/images/cards/demon.png",rarity:4,isProducer:!1,isEffect:!1,cardType:"monster",relevantResource:"wood",resourcesAffectedByMultipliers:"wood",modifiers:[55,36,19,17,0,1e3]},{id:175,name:"Ghoul",tier:3,arena:4,description:"[Monster] {modifier0} HEALTH {modifier1} ATK {modifier2} DEF {modifier3} MAG&nbsp;&nbsp; Drops {modifier5} wood",imageFilename:"assets/images/cards/ghoul.png",rarity:5,isProducer:!1,isEffect:!1,cardType:"monster",relevantResource:"wood",resourcesAffectedByMultipliers:"wood",modifiers:[60,37,24,19,0,2400]},{id:176,name:"Hatchet",tier:3,arena:4,description:"[Boost] +{modifier1} ATK. Monster: +{modifier4%}% loot.",imageFilename:"assets/images/cards/hatchet.png",rarity:2,isProducer:!1,isEffect:!1,cardType:"boost",relevantResource:"",resourcesAffectedByMultipliers:"",modifiers:[0,10,0,0,.5,.5]},{id:177,name:"Gauntlet",tier:3,arena:4,description:"[Boost] +{modifier2} DEF. Monster: +{modifier4%}% loot.",imageFilename:"assets/images/cards/gauntlet.png",rarity:1,isProducer:!1,isEffect:!1,cardType:"boost",relevantResource:"",resourcesAffectedByMultipliers:"",modifiers:[0,0,9,0,.5,.5]},{id:178,name:"Hood",tier:3,arena:4,description:"[Boost] +{modifier1} ATK, +{modifier3} MAG. Monster: +{modifier4%}% loot.",imageFilename:"assets/images/cards/hood.png",rarity:1,isProducer:!1,isEffect:!1,cardType:"boost",relevantResource:"",resourcesAffectedByMultipliers:"",modifiers:[0,4,0,5,.5,.5]},{id:179,name:"Starfire",tier:3,arena:4,description:"[Boost] {modifier2} DEF, +{modifier3} MAG. Monster: +{modifier4%}% loot.",imageFilename:"assets/images/cards/starfire.png",rarity:5,isProducer:!1,isEffect:!1,cardType:"boost",relevantResource:"",resourcesAffectedByMultipliers:"",modifiers:[0,0,-7,10,.5,.5]},{id:180,name:"Desert",tier:3,arena:4,description:"[Boost] +{modifier0} HEALTH, +{modifier1} ATK, +{modifier2} DEF, +{modifier3} MAG. Monster: +{modifier4%}% loot.",imageFilename:"assets/images/cards/desert.png",rarity:3,isProducer:!1,isEffect:!1,cardType:"boost",relevantResource:"",resourcesAffectedByMultipliers:"",modifiers:[10,5,5,5,.5,.5]},{id:181,name:"Barracks",tier:3,arena:4,description:"[Boost] +{modifier0} HEALTH, +{modifier1} ATK, +{modifier2} DEF. Monster: +{modifier4%}% loot.",imageFilename:"assets/images/cards/barracks.png",rarity:4,isProducer:!1,isEffect:!1,cardType:"boost",relevantResource:"",resourcesAffectedByMultipliers:"",modifiers:[8,7,7,0,.5,.5]},{id:182,name:"Cardboard House",tier:1,arena:5,description:"+{modifier0} gold/sec. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/cardboardboxhouse.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[1],productionModifiers:{gold:0},boostModifiers:{}},{id:183,name:"Ranch House",tier:1,arena:5,description:"+{modifier0} gold/sec",imageFilename:"assets/images/cards/city/house1.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[1],productionModifiers:{gold:0},boostModifiers:{}},{id:184,name:"Grandma's House",tier:1,arena:5,description:"+{modifier0} gold/sec",imageFilename:"assets/images/cards/city/house2.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[1],productionModifiers:{gold:0},boostModifiers:{}},{id:185,name:"Fancy House",tier:1,arena:5,description:"+{modifier0} gold/sec",imageFilename:"assets/images/cards/city/house3.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[1],productionModifiers:{gold:0},boostModifiers:{}},{id:186,name:"Small Apartment",tier:1,arena:5,description:"+{modifier0} gold/sec",imageFilename:"assets/images/cards/city/apartment1.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[1],productionModifiers:{gold:0},boostModifiers:{}},{id:187,name:"Big Apartment",tier:1,arena:5,description:"+{modifier0} gold/sec",imageFilename:"assets/images/cards/city/apartment2.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[1],productionModifiers:{gold:0},boostModifiers:{}},{id:188,name:"Red Mansion",tier:1,arena:5,description:"+{modifier0} gold/sec",imageFilename:"assets/images/cards/city/hugehouse1.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[1],productionModifiers:{gold:0},boostModifiers:{}},{id:189,name:"Blue Mansion",tier:1,arena:5,description:"+{modifier0} gold/sec",imageFilename:"assets/images/cards/city/hugehouse2.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[1],productionModifiers:{gold:0},boostModifiers:{}},{id:190,name:"Green Mansion",tier:1,arena:5,description:"+{modifier0} gold/sec",imageFilename:"assets/images/cards/city/hugehouse3.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[1],productionModifiers:{gold:0},boostModifiers:{}},{id:191,name:"Blue Cottage",tier:1,arena:5,description:"+{modifier0} gold/sec",imageFilename:"assets/images/cards/city/bighouse1.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[1],productionModifiers:{gold:0},boostModifiers:{}},{id:192,name:"Bed and Breakfast",tier:1,arena:5,description:"+{modifier0} gold/sec",imageFilename:"assets/images/cards/city/bighouse2.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[1],productionModifiers:{gold:0},boostModifiers:{}},{id:193,name:"Huge Apartment",tier:1,arena:5,description:"+{modifier0} gold/sec",imageFilename:"assets/images/cards/city/apartment3.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[1],productionModifiers:{gold:0},boostModifiers:{}},{id:194,name:"DX Apartment",tier:1,arena:5,description:"+{modifier0} gold/sec",imageFilename:"assets/images/cards/city/apartment4.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[1],productionModifiers:{gold:0},boostModifiers:{}},{id:195,name:"Bar",tier:1,arena:5,description:"+{modifier0} gold/sec",imageFilename:"assets/images/cards/city/bar.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[1],productionModifiers:{gold:0},boostModifiers:{}},{id:196,name:"Gym",tier:1,arena:5,description:"+{modifier0} gold/sec",imageFilename:"assets/images/cards/city/gym.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"gold",modifiers:[1],productionModifiers:{gold:0},boostModifiers:{}},{id:197,name:"Hotdog Stand",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 1 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/hotdogstand.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}}},{id:198,name:"Dumpster Park",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/dumpsterpark.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:199,name:"todo: replace this",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/apartment1.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:200,name:"todo: replace this",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/apartment2.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:201,name:"todo: remove this",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/apartment3.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:202,name:"todo: replace this",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/apartment4.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:203,name:"autorepair",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/autorepair.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:204,name:"bar",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/bar.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:205,name:"barbershop",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/barbershop.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:206,name:"Beach",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/beach.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"water",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:207,name:"todo: replace this",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/bighouse1.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:208,name:"todo: replace this",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/bighouse2.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:209,name:"boatshop",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/boatshop.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:210,name:"bridge",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/bridge.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:211,name:"bridge2",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/bridge2.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:212,name:"todo: replace this one too",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/cardboardboxhouse.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:213,name:"cardealership",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/cardealership.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:214,name:"chineserestaurant",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/chineserestaurant.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:215,name:"cinema",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/cinema.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:216,name:"cityhall",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/cityhall.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:217,name:"coffeeshop",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/coffeeshop.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:218,name:"donutshop",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/donutshop.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:219,name:"drugstore",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/drugstore.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:220,name:"dumpster",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/dumpster.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:221,name:"todo: replace this",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/dumpsterpark.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:222,name:"firehydrant",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/firehydrant.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:223,name:"garage1",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/garage1.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:224,name:"garage2",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/garage2.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:225,name:"gym",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/gym.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:226,name:"hospital",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/hospital.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:227,name:"hotdogstand",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/hotdogstand.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:228,name:"todo replace this",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/house1.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:229,name:"todo replace this",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/house2.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:230,name:"todo replace this",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/house3.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:231,name:"todo replace this",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/house4.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:232,name:"todo replace this",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/hugehouse1.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:233,name:"todo replace this",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/hugehouse2.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:234,name:"todo replace this",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/hugehouse3.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:235,name:"museum",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/museum.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:236,name:"newsstand",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/newsstand.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:237,name:"office1",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/office1.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:238,name:"office2",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/office2.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:239,name:"office3",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/office3.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:240,name:"park",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/park.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:241,name:"pawnshop",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/pawnshop.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:242,name:"policestation",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/policestation.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:243,name:"powerpanel",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/powerpanel.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:244,name:"powerplant",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/powerplant.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:245,name:"powerplant2",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/powerplant2.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:246,name:"skyscraper1",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/skyscraper1.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:247,name:"store1",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/store1.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:248,name:"store2",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/store2.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:249,name:"store3",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/store3.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:250,name:"stripmall",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/stripmall.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:251,name:"taxiservice",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/taxiservice.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:252,name:"tradecenter",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/tradecenter.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:253,name:"trafficlight",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/trafficlight.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:254,name:"videostore",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/videostore.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:255,name:"wastebin",tier:1,arena:5,description:"Increase adjacent plots' APPRAISAL by +{modifier0}/sec.",imageFilename:"assets/images/cards/city/wastebin.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{},appraisalModifier:{direction:"adjacent",modifierIndex:0}},{id:256,name:"watertower",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/watertower.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null},{id:257,name:"watertower2",tier:1,arena:5,description:"+{modifier0%}% gold/sec for adjacent. Plot rqmt: 0 POWER 0 WATER 0 APPRAISAL",imageFilename:"assets/images/cards/city/watertower2.png",rarity:1,isProducer:!0,isEffect:!1,cardType:"land",requiredLandValue:0,relevantResource:"gold",resourcesAffectedByMultipliers:"",modifiers:[1],productionModifiers:{},boostModifiers:{gold:{direction:"adjacent",modifierIndex:0}},appraisalModifier:null}];function o(e){return s[e-1]}const a=(()=>{class e{constructor(t){this.sanitizer=t,this.isVisible=!1,this.message="",e.instance=this}show(e){this.message=e,this.isVisible=!0}pressedOk(){this.isVisible=!1}getMessage(){return this.sanitizer.bypassSecurityTrustHtml(this.message)}}return e.instance=null,e})(),u=(()=>{class e{constructor(){this.isVisible=!1,this.isMonsterCard=!1,this.isAwaitingKredPurchaseResponse=!1,this.objectKeys=Object.keys,e.instance=this}ngOnInit(){this.appComponent=re.instance}show(e,t){this.isAwaitingKredPurchaseResponse||(this.arenaNumber=e,this.cardId=t,this.isMonsterCard="monster"==o(this.cardId).cardType,this.isVisible=!0)}pressedOk(){this.isAwaitingKredPurchaseResponse||(this.isVisible=!1)}hide(){this.isAwaitingKredPurchaseResponse||(this.isVisible=!1)}upgradeWithQty(){re.instance.tryToRankUpCard(this.arenaNumber,this.cardId)}upgradeWithGems(){this.isAwaitingKredPurchaseResponse||re.instance.tryToRankUpCardWithGems(this.arenaNumber,this.cardId)}combineCards(){this.isAwaitingKredPurchaseResponse||re.instance.tryToRankUpCard(this.arenaNumber,this.cardId)}massCombineCards(){this.isAwaitingKredPurchaseResponse||re.instance.tryToRankUpAllCards(this.arenaNumber)}gemCount(){return re.instance.gameState.gems}upgradeWithKreds(){this.isAwaitingKredPurchaseResponse=!0,c.instance.buyMicrotransaction("upgradecardlevel",{arenaNumber:this.arenaNumber,cardId:this.cardId})}kredUpgradeCallback(e){let t=parseInt(""+e.cardId),n=parseInt(""+e.arenaNumber);re.instance.forceToRankUpCard(n,t)}reduceLevel(){re.instance.rankDownCard(this.arenaNumber,this.cardId)}}return e.instance=null,e})();class c{constructor(){this.isReady=!1,this.kongregate=null,this.itemIdentifierBeingPurchased=null,c.instance=this}ngOnInit(){kongregateAPI.loadAPI((function(){this.kongregate=kongregateAPI.getAPI(),this.isReady=!0,re.instance.isOnKongregate=!0,c.instance.submitStat("realmsunlocked",re.instance.gameState.highestUnlockedArena-1),this.kongregate.mtx.requestItemList([],this.microtransactionListCallback.bind(this))}).bind(this))}submitStat(e,t){this.isReady&&this.kongregate.stats.submit(e,t)}buyMicrotransaction(e,t){return!!this.isReady&&null==this.itemIdentifierBeingPurchased&&(this.itemIdentifierBeingPurchased=e,this.kongregate.mtx.purchaseItems([e],(function(e){this.microtransactionPurchaseCallback(e,t)}).bind(this)),!0)}microtransactionPurchaseCallback(e,t){if(console.log("Kongregate item purchase result:"),console.log(e),e.success)switch(this.itemIdentifierBeingPurchased){case"2xspeed1hour":case"2xspeed1hours":break;case"upgradecard":u.instance.kredUpgradeCallback(t)}else console.error("Couldn't purchase!"),console.error(e),a.instance.show("Your purchase did not go through successfully. Please try again.");this.itemIdentifierBeingPurchased=null}microtransactionListCallback(e){e.success&&(re.instance.kongregateMicrotransactionList=e.data)}getUsername(){return Object(r.isDevMode)()?"Katzenfraumann":this.isReady?this.kongregate.services.getUsername():null}}function d(e,t){const n=t["arena"+e].cardSlots;for(var r=0;r<n.length;r++){let e=Object.keys(n[r].multipliers);for(let t of e)n[r].multipliers[t]=[]}for(var i=0;i<n.length;i++){const t=n[i].cardInSlot;if(null!=t){let p=t.id;var l=o(p);switch(p){case 3:{let t=re.instance.getCardSlotNumberAtXYOffset(e,i,0,-1);null!=t&&re.instance.pushMultiplier(e,i,t,"gold",h(p,e,1));let n=re.instance.getCardSlotNumberAtXYOffset(e,i,0,1);null!=n&&re.instance.pushMultiplier(e,i,n,"gold",h(p,e,1));break}case 5:{let t=re.instance.getCardSlotNumberAtXYOffset(e,i,1,0);null!=t&&re.instance.pushMultiplier(e,i,t,"gold",h(p,e,0));break}case 6:{let t=re.instance.getCardSlotNumberAtXYOffset(e,i,0,-1);null!=t&&re.instance.pushMultiplier(e,i,t,"gold",h(p,e,0));let n=re.instance.getCardSlotNumberAtXYOffset(e,i,0,1);null!=n&&re.instance.pushMultiplier(e,i,n,"gold",h(p,e,0));break}case 7:{let t=re.instance.getSlotNumbersOfCardsInRow(e,n[i].y,i);for(r=0;r<t.length;r++)re.instance.pushMultiplier(e,i,t[r],"gold",0);break}case 9:{let t=re.instance.getSlotNumbersOfCardsInPlay(e,i);for(r=0;r<t.length;r++)re.instance.pushMultiplier(e,i,t[r],"gold",h(p,e,0));break}case 11:{let t=re.instance.getCardSlotNumberAtXYOffset(e,i,0,-1);null!=t&&re.instance.pushMultiplier(e,i,t,"gold",h(p,e,0));break}case 17:{let t=re.instance.getCardSlotNumberAtXYOffset(e,i,-1,0);null!=t&&re.instance.pushMultiplier(e,i,t,"gold",h(p,e,1));break}case 20:{let t=re.instance.getCardSlotNumberAtXYOffset(e,i,0,1);null!=t&&re.instance.pushMultiplier(e,i,t,"gold",0);break}case 21:var s=re.instance.getSlotNumbersOfCardsInPlay(e,i);for(r=0;r<s.length;r++)re.instance.pushMultiplier(e,i,s[r],"gold",0);break;case 22:for(s=re.instance.getSlotNumbersOfCardsInPlay(e,i),r=0;r<s.length;r++)re.instance.pushMultiplier(e,i,s[r],"gold",h(p,e,0));break;case 23:{let t=re.instance.getCardSlotNumberAtXYOffset(e,i,0,1);null!=t&&re.instance.pushMultiplier(e,i,t,"gold",h(p,e,0));break}case 31:for(var a=-1;a<=1;a++)for(var u=-1;u<=1;u++){let t=re.instance.getCardSlotNumberAtXYOffset(e,i,a,u);null!=t&&re.instance.pushMultiplier(e,i,t,"wood",h(p,e,0))}break;case 32:{let t=re.instance.getSlotNumbersOfCardsInRow(e,n[i].y,i);for(r=0;r<t.length;r++)re.instance.pushMultiplier(e,i,t[r],"wood",0);break}case 33:for(a=-1;a<=1;a++)for(u=-1;u<=1;u++){let t=re.instance.getCardSlotNumberAtXYOffset(e,i,a,u);null!=t&&24==re.instance.GetCardIdAtSlot(e,t)&&re.instance.pushMultiplier(e,i,t,"wood",h(p,e,0))}break;case 36:case 35:for(a=-1;a<=1;a++)for(u=-1;u<=1;u++){let t=re.instance.getCardSlotNumberAtXYOffset(e,i,a,u);null!=t&&re.instance.pushMultiplier(e,i,t,"iron",h(p,e,0))}break;case 39:for(a=-1;a<=1;a++)for(u=-1;u<=1;u++){let t=re.instance.getCardSlotNumberAtXYOffset(e,i,a,u);null!=t&&re.instance.pushMultiplier(e,i,t,"wood",h(p,e,0))}break;case 40:{let t=re.instance.getSlotNumbersOfCardsInColumn(e,n[i].x,i);for(r=0;r<t.length;r++)re.instance.pushMultiplier(e,i,t[r],"wood",h(p,e,0));break}case 41:{let t=re.instance.getSlotNumbersOfCardsInRow(e,n[i].y,i);for(r=0;r<t.length;r++)re.instance.pushMultiplier(e,i,t[r],"wood",h(p,e,0));break}case 42:{let t=re.instance.getSlotNumbersOfCardsInRow(e,n[i].y,i);for(r=0;r<t.length;r++)re.instance.pushMultiplier(e,i,t[r],"iron",h(p,e,0));break}case 43:{let t=re.instance.getSlotNumbersOfCardsInPlay(e,i);for(r=0;r<t.length;r++)re.instance.pushMultiplier(e,i,t[r],"wood",h(p,e,0));break}case 44:{let t=re.instance.getCardSlotNumberAtXYOffset(e,i,0,1);null!=t&&re.instance.pushMultiplier(e,i,t,"iron",h(p,e,0));break}case 45:{let t=re.instance.getCardSlotNumberAtXYOffset(e,i,-1,0);null!=t&&re.instance.pushMultiplier(e,i,t,"iron",h(p,e,0));break}case 46:{let t=re.instance.getCardSlotNumberAtXYOffset(e,i,0,-1);null!=t&&re.instance.pushMultiplier(e,i,t,"iron",h(p,e,0));break}case 47:{let t=re.instance.getCardSlotNumberAtXYOffset(e,i,1,0);null!=t&&re.instance.pushMultiplier(e,i,t,"iron",h(p,e,0));break}case 48:{let t=re.instance.getSlotNumbersOfCardsInPlay(e,i);for(r=0;r<t.length;r++)re.instance.pushMultiplier(e,i,t[r],"iron",h(p,e,0));break}case 51:{let t=re.instance.getCardSlotNumberAtXYOffset(e,i,0,1);null!=t&&re.instance.pushMultiplier(e,i,t,"wood",h(p,e,0));break}case 56:{let t=re.instance.getCardSlotNumberAtXYOffset(e,i,0,1);null!=t&&re.instance.pushMultiplier(e,i,t,"iron",h(p,e,0));break}case 57:{let t=re.instance.getCardSlotNumberAtXYOffset(e,i,-1,0);null!=t&&re.instance.pushMultiplier(e,i,t,"iron",h(p,e,1));break}case 58:{let t=re.instance.getSlotNumbersOfCardsInPlay(e,i);for(r=0;r<t.length;r++)re.instance.pushMultiplier(e,i,t[r],"iron",h(p,e,0)),re.instance.pushMultiplier(e,i,t[r],"wood",h(p,e,0));break}case 60:{let t=re.instance.getCardSlotNumberAtXYOffset(e,i,1,0);null!=t&&(re.instance.pushMultiplier(e,i,t,"wood",h(p,e,0)),re.instance.pushMultiplier(e,i,t,"iron",h(p,e,0)));break}case 61:{let t=re.instance.getSlotNumbersOfCardsInPlay(e,i);for(r=0;r<t.length;r++)re.instance.pushMultiplier(e,i,t[r],"iron",h(p,e,0)),re.instance.pushMultiplier(e,i,t[r],"wood",0);break}case 63:{let t=re.instance.getCardSlotNumberAtXYOffset(e,i,1,0);null!=t&&re.instance.pushMultiplier(e,i,t,"wood",h(p,e,1));break}case 64:{let t=re.instance.getCardSlotNumberAtXYOffset(e,i,0,-1);null!=t&&re.instance.pushMultiplier(e,i,t,"iron",h(p,e,2));break}case 65:{let t=re.instance.getSlotNumbersOfCardsInPlay(e,i);for(r=0;r<t.length;r++)re.instance.pushMultiplier(e,i,t[r],"iron",h(p,e,2));break}case 67:{let t=re.instance.getSlotNumbersOfCardsInRow(e,n[i].y,i);for(r=0;r<t.length;r++)re.instance.pushMultiplier(e,i,t[r],"wood",0);break}case 68:for(a=-1;a<=1;a++)for(u=-1;u<=1;u++){let t=re.instance.getCardSlotNumberAtXYOffset(e,i,a,u);null!=t&&(re.instance.pushMultiplier(e,i,t,"iron",h(p,e,0)),re.instance.pushMultiplier(e,i,t,"wood",0))}break;case 70:for(a=-1;a<=1;a++)for(u=-1;u<=1;u++){let t=re.instance.getCardSlotNumberAtXYOffset(e,i,a,u);null!=t&&re.instance.pushMultiplier(e,i,t,"skulls",h(p,e,0))}break;case 76:{let t=re.instance.getCardSlotNumberAtXYOffset(e,i,0,-1);null!=t&&re.instance.pushMultiplier(e,i,t,"skulls",h(p,e,0));break}case 83:for(a=-1;a<=1;a++)for(u=-1;u<=1;u++){let t=re.instance.getCardSlotNumberAtXYOffset(e,i,a,u);null!=t&&re.instance.pushMultiplier(e,i,t,"feathers",h(p,e,0))}break;case 84:for(a=-1;a<=1;a++)for(u=-1;u<=1;u++){let t=re.instance.getCardSlotNumberAtXYOffset(e,i,a,u);null!=t&&(re.instance.pushMultiplier(e,i,t,"ether",h(p,e,0)),re.instance.pushMultiplier(e,i,t,"skulls",0))}break;case 85:{let t=re.instance.getCardSlotNumberAtXYOffset(e,i,0,-1);null!=t&&re.instance.pushMultiplier(e,i,t,"feathers",h(p,e,0));let n=re.instance.getCardSlotNumberAtXYOffset(e,i,0,1);null!=n&&re.instance.pushMultiplier(e,i,n,"feathers",h(p,e,0));break}case 86:{let t=re.instance.getSlotNumbersOfCardsInRow(e,n[i].y,i);for(r=0;r<t.length;r++)re.instance.pushMultiplier(e,i,t[r],"ether",h(p,e,1));break}case 87:{let t=re.instance.getCardSlotNumberAtXYOffset(e,i,0,-1);null!=t&&re.instance.pushMultiplier(e,i,t,"ether",h(p,e,0));let n=re.instance.getCardSlotNumberAtXYOffset(e,i,0,1);null!=n&&re.instance.pushMultiplier(e,i,n,"ether",h(p,e,0));break}case 90:{let t=re.instance.getSlotNumbersOfCardsInColumn(e,n[i].x,i);for(r=0;r<t.length;r++)re.instance.pushMultiplier(e,i,t[r],"feathers",h(p,e,0));break}case 91:{let t=re.instance.getCardSlotNumberAtXYOffset(e,i,0,-1);null!=t&&re.instance.pushMultiplier(e,i,t,"feathers",h(p,e,0));break}case 92:{let t=re.instance.getCardSlotNumberAtXYOffset(e,i,-1,0);null!=t&&re.instance.pushMultiplier(e,i,t,"ether",h(p,e,0));break}case 95:{let t=re.instance.getCardSlotNumberAtXYOffset(e,i,1,0);null!=t&&re.instance.pushMultiplier(e,i,t,"skulls",h(p,e,1));break}case 96:{let t=re.instance.getSlotNumbersOfCardsInRow(e,n[i].y,i);for(r=0;r<t.length;r++)re.instance.pushMultiplier(e,i,t[r],"ether",h(p,e,0));break}case 98:{let t=re.instance.getCardSlotNumberAtXYOffset(e,i,0,-1);null!=t&&re.instance.pushMultiplier(e,i,t,"ether",h(p,e,0));let n=re.instance.getCardSlotNumberAtXYOffset(e,i,0,1);null!=n&&re.instance.pushMultiplier(e,i,n,"ether",h(p,e,0));break}case 99:for(a=-1;a<=1;a++)for(u=-1;u<=1;u++){let t=re.instance.getCardSlotNumberAtXYOffset(e,i,a,u);null!=t&&re.instance.pushMultiplier(e,i,t,"skulls",h(p,e,1))}break;case 100:{let t=re.instance.getCardSlotNumberAtXYOffset(e,i,0,-1);null!=t&&re.instance.pushMultiplier(e,i,t,"feathers",h(p,e,1));break}case 101:{let t=re.instance.getSlotNumbersOfCardsInRow(e,n[i].y,i);for(r=0;r<t.length;r++)re.instance.pushMultiplier(e,i,t[r],"skulls",h(p,e,0));break}case 102:{let t=re.instance.getCardSlotNumberAtXYOffset(e,i,0,1);null!=t&&re.instance.pushMultiplier(e,i,t,"skulls",h(p,e,1));break}case 105:{let t=re.instance.getCardSlotNumberAtXYOffset(e,i,1,0);null!=t&&re.instance.pushMultiplier(e,i,t,"feathers",h(p,e,1));break}case 107:for(a=-1;a<=1;a++)for(u=-1;u<=1;u++){let t=re.instance.getCardSlotNumberAtXYOffset(e,i,a,u);null!=t&&(re.instance.pushMultiplier(e,i,t,"ether",h(p,e,0)),re.instance.pushMultiplier(e,i,t,"skulls",h(p,e,0)),re.instance.pushMultiplier(e,i,t,"feathers",h(p,e,0)))}break;case 112:for(a=-1;a<=1;a++)for(u=-1;u<=1;u++){let t=re.instance.getCardSlotNumberAtXYOffset(e,i,a,u);null!=t&&(re.instance.pushMultiplier(e,i,t,"ether",h(p,e,0)),re.instance.pushMultiplier(e,i,t,"feathers",h(p,e,1)))}break;case 113:{let t=re.instance.getCardSlotNumberAtXYOffset(e,i,1,0);null!=t&&re.instance.pushMultiplier(e,i,t,"ether",h(p,e,0));break}case 116:{let t=re.instance.getSlotNumbersOfCardsInRow(e,n[i].y,i);for(r=0;r<t.length;r++)re.instance.pushMultiplier(e,i,t[r],"ether",h(p,e,1));break}case 118:{let t=re.instance.getSlotNumbersOfCardsInColumn(e,n[i].x,i);for(r=0;r<t.length;r++)re.instance.pushMultiplier(e,i,t[r],"skulls",h(p,e,0));break}case 120:{let t=re.instance.getCardSlotNumberAtXYOffset(e,i,0,-1);null!=t&&re.instance.pushMultiplier(e,i,t,"ether",h(p,e,0));break}case 122:{let t=re.instance.getSlotNumbersOfCardsInPlay(e,i);for(var c=0;c<t.length;c++){let n=t[c];121==re.instance.GetCardIdAtSlot(e,n)&&re.instance.pushMultiplier(e,i,n,"skulls",h(p,e,0))}break}default:if(void 0!==l.boostModifiers){let t=Object.keys(l.boostModifiers);for(var d=0;d<t.length;d++){let r=t[d],s=l.boostModifiers[r].modifierIndex,o=[];switch(l.boostModifiers[r].direction){case"adjacent":o=f(e,i);break;case"everything":o=re.instance.getSlotNumbersOfCardsInPlay(e,i);break;case"column":o=re.instance.getSlotNumbersOfCardsInColumn(e,n[i].x,i);break;case"row":o=re.instance.getSlotNumbersOfCardsInRow(e,n[i].y,i)}for(c=0;c<o.length;c++)re.instance.pushMultiplier(e,i,o[c],r,h(p,e,s))}}}}}}function h(e,t,n){return re.instance.rankAdjustedModifier(e,t,n)}function f(e,t){let n=[];for(var r=-1;r<=1;r++)for(var i=-1;i<=1;i++){let l=re.instance.getCardSlotNumberAtXYOffset(e,t,r,i);null!=l&&n.push(l)}return n}function p(e,t){let n=[];for(var r=-1;r<=1;r++)for(var i=-1;i<=1;i++){let l=re.instance.getCardSlotNumberAtXYOffset(e,t,r,i);null!=l&&n.push(l)}return n}const m={cardSlots:[{x:0,y:0,slotIsUnlocked:!1,unlockCurrency:"gold",unlockPrice:10,cardInSlot:null,multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:1,y:0,slotIsUnlocked:!1,unlockCurrency:"gold",unlockPrice:50,cardInSlot:null,multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:2,y:0,slotIsUnlocked:!1,unlockCurrency:"gold",unlockPrice:100,cardInSlot:null,multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:0,y:1,slotIsUnlocked:!1,unlockCurrency:"gold",unlockPrice:750,cardInSlot:null,multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:1,y:1,slotIsUnlocked:!0,unlockCurrency:"gold",unlockPrice:0,cardInSlot:null,multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:2,y:1,slotIsUnlocked:!1,unlockCurrency:"gold",unlockPrice:800,cardInSlot:null,multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:0,y:2,slotIsUnlocked:!1,unlockCurrency:"gold",unlockPrice:500,cardInSlot:null,multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:1,y:2,slotIsUnlocked:!1,unlockCurrency:"gold",unlockPrice:200,cardInSlot:null,multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:2,y:2,slotIsUnlocked:!1,unlockCurrency:"gold",unlockPrice:1250,cardInSlot:null,multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}}]},g={cardSlots:[{x:0,y:0,slotIsUnlocked:!1,unlockCurrency:"wood",unlockPrice:10,cardInSlot:null,multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:1,y:0,slotIsUnlocked:!1,unlockCurrency:"wood",unlockPrice:50,cardInSlot:null,multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:2,y:0,slotIsUnlocked:!1,unlockCurrency:"wood",unlockPrice:100,cardInSlot:null,multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:3,y:0,slotIsUnlocked:!1,unlockCurrency:"iron",unlockPrice:1e3,cardInSlot:null,multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:0,y:1,slotIsUnlocked:!1,unlockCurrency:"wood",unlockPrice:750,cardInSlot:null,multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:1,y:1,slotIsUnlocked:!0,unlockCurrency:"wood",unlockPrice:0,cardInSlot:null,multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:2,y:1,slotIsUnlocked:!1,unlockCurrency:"wood",unlockPrice:200,cardInSlot:null,multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:3,y:1,slotIsUnlocked:!1,unlockCurrency:"wood",unlockPrice:750,cardInSlot:null,multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:0,y:2,slotIsUnlocked:!1,unlockCurrency:"iron",unlockPrice:10,cardInSlot:null,multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:1,y:2,slotIsUnlocked:!1,unlockCurrency:"wood",unlockPrice:200,cardInSlot:null,multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:2,y:2,slotIsUnlocked:!1,unlockCurrency:"iron",unlockPrice:50,cardInSlot:null,multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:3,y:2,slotIsUnlocked:!1,unlockCurrency:"iron",unlockPrice:125,cardInSlot:null,multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:0,y:3,slotIsUnlocked:!1,unlockCurrency:"iron",unlockPrice:200,cardInSlot:null,multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:1,y:3,slotIsUnlocked:!1,unlockCurrency:"iron",unlockPrice:100,cardInSlot:null,multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:2,y:3,slotIsUnlocked:!1,unlockCurrency:"wood",unlockPrice:1250,cardInSlot:null,multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:3,y:3,slotIsUnlocked:!1,unlockCurrency:"wood",unlockPrice:500,cardInSlot:null,multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}}]},y={cardSlots:[{x:0,y:0,slotIsUnlocked:!1,unlockCurrency:"feathers",unlockPrice:10,cardInSlot:null,multipliers:{ether:[],skulls:[],feathers:[]}},{x:1,y:0,slotIsUnlocked:!1,unlockCurrency:"skulls",unlockPrice:50,cardInSlot:null,multipliers:{ether:[],skulls:[],feathers:[]}},{x:2,y:0,slotIsUnlocked:!1,unlockCurrency:"skulls",unlockPrice:1e3,cardInSlot:null,multipliers:{ether:[],skulls:[],feathers:[]}},{x:3,y:0,slotIsUnlocked:!1,unlockCurrency:"ether",unlockPrice:2500,cardInSlot:null,multipliers:{ether:[],skulls:[],feathers:[]}},{x:4,y:0,slotIsUnlocked:!1,unlockCurrency:"feathers",unlockPrice:2e3,cardInSlot:null,multipliers:{ether:[],skulls:[],feathers:[]}},{x:0,y:1,slotIsUnlocked:!1,unlockCurrency:"skulls",unlockPrice:750,cardInSlot:null,multipliers:{ether:[],skulls:[],feathers:[]}},{x:1,y:1,slotIsUnlocked:!0,unlockCurrency:"skulls",unlockPrice:0,cardInSlot:null,multipliers:{ether:[],skulls:[],feathers:[]}},{x:2,y:1,slotIsUnlocked:!1,unlockCurrency:"skulls",unlockPrice:200,cardInSlot:null,multipliers:{ether:[],skulls:[],feathers:[]}},{x:3,y:1,slotIsUnlocked:!1,unlockCurrency:"skulls",unlockPrice:500,cardInSlot:null,multipliers:{ether:[],skulls:[],feathers:[]}},{x:4,y:1,slotIsUnlocked:!1,unlockCurrency:"feathers",unlockPrice:750,cardInSlot:null,multipliers:{ether:[],skulls:[],feathers:[]}},{x:0,y:2,slotIsUnlocked:!1,unlockCurrency:"ether",unlockPrice:100,cardInSlot:null,multipliers:{ether:[],skulls:[],feathers:[]}},{x:1,y:2,slotIsUnlocked:!1,unlockCurrency:"feathers",unlockPrice:200,cardInSlot:null,multipliers:{ether:[],skulls:[],feathers:[]}},{x:2,y:2,slotIsUnlocked:!1,unlockCurrency:"ether",unlockPrice:500,cardInSlot:null,multipliers:{ether:[],skulls:[],feathers:[]}},{x:3,y:2,slotIsUnlocked:!1,unlockCurrency:"ether",unlockPrice:1250,cardInSlot:null,multipliers:{ether:[],skulls:[],feathers:[]}},{x:4,y:2,slotIsUnlocked:!1,unlockCurrency:"ether",unlockPrice:2500,cardInSlot:null,multipliers:{ether:[],skulls:[],feathers:[]}},{x:0,y:3,slotIsUnlocked:!1,unlockCurrency:"ether",unlockPrice:5e3,cardInSlot:null,multipliers:{ether:[],skulls:[],feathers:[]}},{x:1,y:3,slotIsUnlocked:!1,unlockCurrency:"feathers",unlockPrice:3500,cardInSlot:null,multipliers:{ether:[],skulls:[],feathers:[]}},{x:2,y:3,slotIsUnlocked:!1,unlockCurrency:"skulls",unlockPrice:7500,cardInSlot:null,multipliers:{ether:[],skulls:[],feathers:[]}},{x:3,y:3,slotIsUnlocked:!1,unlockCurrency:"skulls",unlockPrice:5e3,cardInSlot:null,multipliers:{ether:[],skulls:[],feathers:[]}},{x:4,y:3,slotIsUnlocked:!1,unlockCurrency:"skulls",unlockPrice:15e3,cardInSlot:null,multipliers:{ether:[],skulls:[],feathers:[]}},{x:0,y:4,slotIsUnlocked:!1,unlockCurrency:"ether",unlockPrice:2e4,cardInSlot:null,multipliers:{ether:[],skulls:[],feathers:[]}},{x:1,y:4,slotIsUnlocked:!1,unlockCurrency:"ether",unlockPrice:25e3,cardInSlot:null,multipliers:{ether:[],skulls:[],feathers:[]}},{x:2,y:4,slotIsUnlocked:!1,unlockCurrency:"skulls",unlockPrice:12500,cardInSlot:null,multipliers:{ether:[],skulls:[],feathers:[]}},{x:3,y:4,slotIsUnlocked:!1,unlockCurrency:"feathers",unlockPrice:3e4,cardInSlot:null,multipliers:{ether:[],skulls:[],feathers:[]}},{x:4,y:4,slotIsUnlocked:!1,unlockCurrency:"skulls",unlockPrice:1e4,cardInSlot:null,multipliers:{ether:[],skulls:[],feathers:[]}}]},b={cardSlots:[{x:0,y:0,slotIsUnlocked:!1,slotType:"boost",unlockCurrency:"gold",unlockPrice:1e4,cardInSlot:null,statBonuses:{},roundsSoFar:0,estimatedLootPerSecond:{gold:0,wood:0},multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:1,y:0,slotIsUnlocked:!1,slotType:"boost",unlockCurrency:"gold",unlockPrice:50,cardInSlot:null,statBonuses:{},roundsSoFar:0,estimatedLootPerSecond:{gold:0,wood:0},multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:2,y:0,slotIsUnlocked:!1,slotType:"boost",unlockCurrency:"wood",unlockPrice:100,cardInSlot:null,statBonuses:{},roundsSoFar:0,estimatedLootPerSecond:{gold:0,wood:0},multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:3,y:0,slotIsUnlocked:!1,slotType:"boost",unlockCurrency:"wood",unlockPrice:1e3,cardInSlot:null,statBonuses:{},roundsSoFar:0,estimatedLootPerSecond:{gold:0,wood:0},multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:0,y:1,slotIsUnlocked:!1,slotType:"monster",currentHP:0,maxHP:0,unlockCurrency:"wood",unlockPrice:50,cardInSlot:null,statBonuses:{},roundsSoFar:0,estimatedLootPerSecond:{gold:0,wood:0},multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:1,y:1,slotIsUnlocked:!0,slotType:"monster",currentHP:0,maxHP:0,unlockCurrency:"gold",unlockPrice:0,cardInSlot:null,statBonuses:{},roundsSoFar:0,estimatedLootPerSecond:{gold:0,wood:0},multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:2,y:1,slotIsUnlocked:!1,slotType:"monster",currentHP:0,maxHP:0,unlockCurrency:"gold",unlockPrice:3e3,cardInSlot:null,statBonuses:{},roundsSoFar:0,estimatedLootPerSecond:{gold:0,wood:0},multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:3,y:1,slotIsUnlocked:!1,slotType:"monster",currentHP:0,maxHP:0,unlockCurrency:"gold",unlockPrice:5e3,cardInSlot:null,statBonuses:{},roundsSoFar:0,estimatedLootPerSecond:{gold:0,wood:0},multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:0,y:2,slotIsUnlocked:!1,slotType:"hero",currentHP:0,maxHP:0,unlockCurrency:"wood",unlockPrice:50,cardInSlot:null,statBonuses:{},roundsSoFar:0,estimatedLootPerSecond:{gold:0,wood:0},multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:1,y:2,slotIsUnlocked:!0,slotType:"hero",currentHP:0,maxHP:0,unlockCurrency:"gold",unlockPrice:200,cardInSlot:null,statBonuses:{},roundsSoFar:0,estimatedLootPerSecond:{gold:0,wood:0},multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:2,y:2,slotIsUnlocked:!1,slotType:"hero",currentHP:0,maxHP:0,unlockCurrency:"gold",unlockPrice:3e3,cardInSlot:null,statBonuses:{},roundsSoFar:0,estimatedLootPerSecond:{gold:0,wood:0},multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:3,y:2,slotIsUnlocked:!1,slotType:"hero",currentHP:0,maxHP:0,unlockCurrency:"gold",unlockPrice:5e3,cardInSlot:null,statBonuses:{},roundsSoFar:0,estimatedLootPerSecond:{gold:0,wood:0},multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:0,y:3,slotIsUnlocked:!1,slotType:"boost",unlockCurrency:"gold",unlockPrice:1e4,cardInSlot:null,statBonuses:{},roundsSoFar:0,estimatedLootPerSecond:{gold:0,wood:0},multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:1,y:3,slotIsUnlocked:!1,slotType:"boost",unlockCurrency:"gold",unlockPrice:50,cardInSlot:null,statBonuses:{},roundsSoFar:0,estimatedLootPerSecond:{gold:0,wood:0},multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:2,y:3,slotIsUnlocked:!1,slotType:"boost",unlockCurrency:"wood",unlockPrice:100,cardInSlot:null,statBonuses:{},roundsSoFar:0,estimatedLootPerSecond:{gold:0,wood:0},multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}},{x:3,y:3,slotIsUnlocked:!1,slotType:"boost",unlockCurrency:"wood",unlockPrice:1e3,cardInSlot:null,statBonuses:{},roundsSoFar:0,estimatedLootPerSecond:{gold:0,wood:0},multipliers:{gold:[],iron:[],wood:[],ether:[],blood:[]}}]};function v(e){for(var t=0,n=re.instance.gameState["arena"+e].cardSlots,r=0;r<n.length;r++)if(null!=n[r].cardInSlot){var i=n[r].cardInSlot.id,l=o(i),s=0;switch(i){case 1:s=w(i,e,0)*re.instance.getTotalMultiplierForSlot(e,r,"gold");break;case 2:s=w(i,e,0),re.instance.cardExistsInArena(e,4)&&(s+=w(i,e,1)),s*=re.instance.getTotalMultiplierForSlot(e,r,"gold");break;case 3:s=w(i,e,0)*re.instance.getTotalMultiplierForSlot(e,r,"gold");break;case 4:s=w(i,e,0),s*=re.instance.getTotalMultiplierForSlot(e,r,"gold");break;case 5:case 6:s=0;break;case 7:s=w(i,e,0)*re.instance.getTotalMultiplierForSlot(e,r,"gold");break;case 8:s=w(i,e,0),1==re.instance.getNumberOfCardsInPlay(e)&&(s+=w(i,e,1)),s*=re.instance.getTotalMultiplierForSlot(e,r,"gold");break;case 9:s=0;break;case 10:s=w(i,e,0),0!=re.instance.getSlotNumbersOfCardsInRow(e,n[r].y,r).length&&(s=0),s*=re.instance.getTotalMultiplierForSlot(e,r,"gold");break;case 11:s=0;break;case 12:case 13:case 14:case 15:case 16:case 17:s=w(i,e,0),s*=re.instance.getTotalMultiplierForSlot(e,r,"gold");break;case 18:s=w(i,e,0),null!=re.instance.getCardSlotNumberAtXYOffset(e,r,0,-1)&&(s=0),null!=re.instance.getCardSlotNumberAtXYOffset(e,r,0,1)&&(s=0),s*=re.instance.getTotalMultiplierForSlot(e,r,"gold");break;case 19:s=w(i,e,0);break;case 20:case 21:s=w(i,e,0),s*=re.instance.getTotalMultiplierForSlot(e,r,"gold");break;default:void 0!==l.productionModifiers&&void 0!==l.productionModifiers.gold&&((s=w(i,e,l.productionModifiers.gold))<0&&re.instance.cardIsImmuneFromConsumingResource(e,r,"gold"),s*=re.instance.getTotalMultiplierForSlot(e,r,"gold"))}(s*=re.instance.UniversalAura(e))<0&&(re.instance.cardIsImmuneFromConsumingResource(e,r,"gold")?s=0:re.instance.gameState.resources["arena"+e].gold>=Math.abs(s)||(re.instance.removeCardFromArena(e,r,i),t=0)),t+=s}return t}function w(e,t,n){return re.instance.rankAdjustedModifier(e,t,n)}function C(e){for(var t=0,n=re.instance.gameState["arena"+e].cardSlots,r=0;r<n.length;r++)if(null!=n[r].cardInSlot){var i=n[r].cardInSlot.id,l=o(i),s=0;switch(i){case 24:s=S(i,e,0)*re.instance.getTotalMultiplierForSlot(e,r,"wood");break;case 25:case 26:s=S(i,e,1);break;case 27:{let t=re.instance.cardCountInArena(e,27);s=(S(i,e,0)+(t-1)*S(i,e,1))*re.instance.getTotalMultiplierForSlot(e,r,"wood");break}case 28:case 29:s=S(i,e,0)*re.instance.getTotalMultiplierForSlot(e,r,"wood");break;case 30:s=S(i,e,1);break;case 32:s=S(i,e,0)*re.instance.getTotalMultiplierForSlot(e,r,"wood");break;case 34:s=S(i,e,1);break;case 37:s=S(i,e,0)*re.instance.getTotalMultiplierForSlot(e,r,"wood");break;case 49:s=S(i,e,1);break;case 52:s=S(i,e,0)*re.instance.getTotalMultiplierForSlot(e,r,"wood");break;case 53:{let t=re.instance.gameState.resources["arena"+e].wood,n=S(i,e,0)*Math.floor(t/3e3);n>S(i,e,2)&&(n=S(i,e,2)),n<=0&&(n=1),s=n*re.instance.getTotalMultiplierForSlot(e,r,"wood");break}case 50:{let t=re.instance.gameState.resources["arena"+e].wood,n=S(i,e,0)*Math.floor(t/1e3);n>S(i,e,2)&&(n=S(i,e,2)),n<=0&&(n=1),s=n*re.instance.getTotalMultiplierForSlot(e,r,"wood");break}case 54:s=S(i,e,0)*re.instance.getTotalMultiplierForSlot(e,r,"wood");break;case 55:s=S(i,e,0),re.instance.cardExistsInArena(e,59)&&(s+=S(i,e,1)),s*=re.instance.getTotalMultiplierForSlot(e,r,"wood");break;case 57:case 59:s=S(i,e,0)*re.instance.getTotalMultiplierForSlot(e,r,"wood");break;case 62:s=S(i,e,1);break;case 63:s=S(i,e,0)*re.instance.getTotalMultiplierForSlot(e,r,"wood");break;case 64:case 65:case 66:s=S(i,e,1);break;case 67:s=S(i,e,0)*re.instance.getTotalMultiplierForSlot(e,r,"wood");break;default:void 0!==l.productionModifiers&&void 0!==l.productionModifiers.wood&&((s=S(i,e,l.productionModifiers.wood))<0&&re.instance.cardIsImmuneFromConsumingResource(e,r,"wood"),s*=re.instance.getTotalMultiplierForSlot(e,r,"wood"))}(s*=re.instance.UniversalAura(e))<0&&(re.instance.cardIsImmuneFromConsumingResource(e,r,"wood")?s=0:re.instance.gameState.resources["arena"+e].wood>=Math.abs(s)||(re.instance.removeCardFromArena(e,r,i),t=0)),s<0&&_(e,r)&&(s=0),t+=s}return t}function _(e,t){return re.instance.cardIsImmuneFromConsumingResource(e,t,"wood")}function S(e,t,n){return re.instance.rankAdjustedModifier(e,t,n)}function k(e){for(var t=0,n=re.instance.gameState["arena"+e].cardSlots,r=0;r<n.length;r++)if(null!=n[r].cardInSlot){var i=n[r].cardInSlot.id,l=o(i),s=0;switch(i){case 25:case 26:case 30:case 34:s=A(i,e,0)*re.instance.getTotalMultiplierForSlot(e,r,"iron"),x(e,r,Math.abs(A(i,e,1)))||(I(e,r,i),s=0);break;case 38:s=A(i,e,0)*re.instance.getTotalMultiplierForSlot(e,r,"iron");break;case 49:s=A(i,e,0),x(e,r,Math.abs(A(i,e,1)))||(I(e,r,i),s=0);break;case 62:case 64:case 65:case 66:s=A(i,e,0)*re.instance.getTotalMultiplierForSlot(e,r,"iron"),x(e,r,Math.abs(A(i,e,1)))||(I(e,r,i),s=0);break;default:void 0!==l.productionModifiers&&void 0!==l.productionModifiers.iron&&((s=A(i,e,l.productionModifiers.iron))<0&&re.instance.cardIsImmuneFromConsumingResource(e,r,"iron"),s*=re.instance.getTotalMultiplierForSlot(e,r,"iron"))}(s*=re.instance.UniversalAura(e))<0&&(re.instance.cardIsImmuneFromConsumingResource(e,r,"iron")?s=0:re.instance.gameState.resources["arena"+e].iron>=Math.abs(s)||(re.instance.removeCardFromArena(e,r,i),t=0)),t+=s}return t}function x(e,t,n){return!!function(e,t){return re.instance.cardIsImmuneFromConsumingResource(e,t,"wood")}(e,t)||re.instance.gameState.resources["arena"+e].wood>=n}function I(e,t,n){re.instance.removeCardFromArena(e,t,n)}function A(e,t,n){return re.instance.rankAdjustedModifier(e,t,n)}function E(e){for(var t=0,n=re.instance.gameState["arena"+e].cardSlots,r=0;r<n.length;r++)if(null!=n[r].cardInSlot){var i=n[r].cardInSlot.id,l=0;switch(i){case 69:l=T(i,e,0)*re.instance.getTotalMultiplierForSlot(e,r,"ether");break;case 72:l=T(i,e,0)*re.instance.getTotalMultiplierForSlot(e,r,"ether"),M(e,r,Math.abs(T(i,e,1)))||(R(e,r,i),l=0);break;case 73:case 80:l=T(i,e,0)*re.instance.getTotalMultiplierForSlot(e,r,"ether");break;case 81:case 88:case 99:case 100:case 102:case 104:case 108:case 115:case 119:l=T(i,e,0)*re.instance.getTotalMultiplierForSlot(e,r,"ether");break;case 93:l=T(i,e,0);let t=re.instance.getCardSlotNumberAtXYOffset(e,r,0,1);null!=t&&92==re.instance.GetCardIdAtSlot(e,t)&&(l+=T(i,e,1)),l*=re.instance.getTotalMultiplierForSlot(e,r,"ether");break;case 114:l=T(i,e,1)*re.instance.getTotalMultiplierForSlot(e,r,"ether")}t+=l*=re.instance.UniversalAura(e)}return t}function T(e,t,n){return re.instance.rankAdjustedModifier(e,t,n)}function M(e,t,n){return!!function(e,t){return re.instance.cardIsImmuneFromConsumingResource(e,t,"skulls")}(e,t)||re.instance.gameState.resources["arena"+e].skulls>=n}function R(e,t,n){re.instance.removeCardFromArena(e,t,n)}function P(e){for(var t=0,n=re.instance.gameState["arena"+e].cardSlots,r=0;r<n.length;r++)if(null!=n[r].cardInSlot){var i=n[r].cardInSlot.id,l=0;switch(i){case 69:l=O(i,e,1)*re.instance.getTotalMultiplierForSlot(e,r,"skulls");break;case 72:l=O(i,e,1);break;case 74:case 78:case 79:case 82:case 86:case 89:case 103:case 105:case 106:case 110:case 111:case 114:case 116:l=O(i,e,0),l*=re.instance.getTotalMultiplierForSlot(e,r,"skulls");break;case 80:l=O(i,e,1),l*=re.instance.getTotalMultiplierForSlot(e,r,"skulls");break;case 109:l=O(i,e,1);break;case 117:l=O(i,e,0),re.instance.cardExistsInArena(e,91)&&(l+=O(i,e,1)),l*=re.instance.getTotalMultiplierForSlot(e,r,"skulls");break;case 121:l=O(i,e,0),re.instance.cardExistsInArena(e,91)||re.instance.cardExistsInArena(e,92)||(l=0,l=0),l*=re.instance.getTotalMultiplierForSlot(e,r,"skulls")}t+=l*=re.instance.UniversalAura(e)}return t}function O(e,t,n){return re.instance.rankAdjustedModifier(e,t,n)}function N(e){for(var t=0,n=re.instance.gameState["arena"+e].cardSlots,r=0;r<n.length;r++)if(null!=n[r].cardInSlot){var i=n[r].cardInSlot.id,l=0;switch(i){case 69:l=V(i,e,2)*re.instance.getTotalMultiplierForSlot(e,r,"feathers");break;case 71:case 75:case 77:case 94:case 95:case 97:l=V(i,e,0)*re.instance.getTotalMultiplierForSlot(e,r,"feathers");break;case 80:l=V(i,e,2)*re.instance.getTotalMultiplierForSlot(e,r,"feathers");break;case 82:l=V(i,e,1)*re.instance.getTotalMultiplierForSlot(e,r,"feathers");break;case 109:l=V(i,e,0)*re.instance.getTotalMultiplierForSlot(e,r,"feathers"),D(e,r,Math.abs(V(i,e,1)))||(F(e,r,i),l=0);break;case 110:case 115:l=V(i,e,1)*re.instance.getTotalMultiplierForSlot(e,r,"feathers")}t+=l*=re.instance.UniversalAura(e)}return t}function D(e,t,n){return!!function(e,t){return re.instance.cardIsImmuneFromConsumingResource(e,t,"skulls")}(e,t)||re.instance.gameState.resources["arena"+e].skulls>=n}function F(e,t,n){re.instance.removeCardFromArena(e,t,n)}function V(e,t,n){return re.instance.rankAdjustedModifier(e,t,n)}const j=(()=>{class e{constructor(t){this.sanitizer=t,this.replaceAllInString=function(e,t,n){return e.split(t).join(n)},e.instance=this}showTooltip(e){e=this.replaceAllInString(e,"gold","<img src='assets/images/resources/gold.png' alt='Gold' title='Gold' class='resource-icon-in-tooltip'>"),e=this.replaceAllInString(e,"wood","<img src='assets/images/resources/wood.png' alt='Wood' title='Wood' class='resource-icon-in-tooltip'>"),e=this.replaceAllInString(e,"iron","<img src='assets/images/resources/iron.png' alt='Iron' title='Iron' class='resource-icon-in-tooltip'>"),e=this.replaceAllInString(e,"ether","<img src='assets/images/resources/ether.png' alt='Ether' title='Ether' class='resource-icon-in-tooltip'>"),e=this.replaceAllInString(e,"skulls","<img src='assets/images/resources/skulls.png' alt='Skulls' title='Skulls' class='resource-icon-in-tooltip'>"),e=this.replaceAllInString(e,"feathers","<img src='assets/images/resources/feathers.png' alt='Feathers' title='Feathers' class='resource-icon-in-tooltip'>"),e=this.replaceAllInString(e,"ATK","<img src='assets/images/icons/attack.png' alt='Attack' title='Attack' class='resource-icon-in-tooltip'>"),e=this.replaceAllInString(e,"DEF","<img src='assets/images/icons/armor.png' alt='Defense' title='Defense' class='resource-icon-in-tooltip'>"),e=this.replaceAllInString(e,"HEALTH","<img src='assets/images/icons/health.png' alt='Health' title='Health' class='resource-icon-in-tooltip'>"),e=this.replaceAllInString(e,"MAG","<img src='assets/images/icons/magic.png' alt='Magic' title='Magic' class='resource-icon-in-tooltip'>"),e=this.replaceAllInString(e,"APPRAISAL","<i class='fa fa-money' style='color: green;'></i>&nbsp;&nbsp;"),e=this.replaceAllInString(e,"POWER","<i class='fa fa-bolt' style='color: yellow;'></i>&nbsp;&nbsp;"),e=this.replaceAllInString(e,"WATER","<i class='fa fa-tint' style='color: blue;'></i>&nbsp;&nbsp;"),this.currentString=this.sanitizer.bypassSecurityTrustHtml(e)}hideTooltip(){this.currentString=""}}return e.instance=null,e})(),B=(()=>{class e{constructor(){this.isVisible=!1,this.objectKeys=Object.keys,e.instance=this}show(e,t,n){this.timePassedString="";let r=Math.floor(e/3600);e-=3600*r;let i=Math.floor(e/60),l=e-=60*i;r>0&&(this.timePassedString+=r+" hours, "),(i>0||r>0)&&(this.timePassedString+=i+" minutes, "),this.timePassedString+=l+" seconds",this.hitMaximumTime=t,this.resourcesEarned=n,this.isVisible=!0}pressedOk(){this.isVisible=!1}}return e.instance=null,e})(),L=(()=>{class e{constructor(){this.isVisible=!1,this.existingLayouts=[],this.selectedLayoutIndex=null,this.newLayoutName="",e.instance=this}show(e,t){this.selectedLayoutIndex=null,this.newLayoutName="",this.arenaNumber=t,this.existingLayouts=e,this.isVisible=!0}hide(){this.isVisible=!1}pressedOk(){this.newLayoutName=this.newLayoutName.substring(0,50),re.instance.saveLayout(this.arenaNumber,this.selectedLayoutIndex,this.newLayoutName),this.isVisible=!1}pressedCancel(){this.isVisible=!1}selectedLayoutChanged(){console.log(this.selectedLayoutIndex),this.newLayoutName=null==this.selectedLayoutIndex?"":this.existingLayouts[this.selectedLayoutIndex]?this.existingLayouts[this.selectedLayoutIndex].name:""}deleteSelectedLayout(){re.instance.deleteSavedLayout(this.arenaNumber,this.selectedLayoutIndex),this.selectedLayoutIndex=null}}return e.instance=null,e})();class H{transform(e,t){return e>=1e12||e<=-1e12?(e/1e12).toFixed(2).replace(/\.0+$/,"")+"T":e>=1e9||e<=-1e9?(e/1e9).toFixed(2).replace(/\.0+$/,"")+"B":e>=1e6||e<=-1e6?(e/1e6).toFixed(2).replace(/\.0+$/,"")+"M":e>=1e3||e<=-1e3?(e/1e3).toFixed(2).replace(/\.0+$/,"")+"K":e.toFixed(2).replace(/\.0+$/,"")}}var U=n("Iab2"),z=n("NFKh");const G=(()=>{class e{constructor(){this.soundEffectNames=["cantdothat","placecard","removecard"],this.musicNames=["arena1","arena2","arena3","arena4","arena5"],this.soundFiles=[],this.musicFiles=[],e.instance=this}ngOnInit(){this.loadSounds(),this.loadMusic(),this.turnOnMusic()}loadSounds(){for(var e=0;e<this.soundEffectNames.length;e++){let t=this.soundEffectNames[e];this.soundFiles[t]=new Audio,this.soundFiles[t].src="assets/sounds/"+t+".wav",this.soundFiles[t].load()}}loadMusic(){let e="";re.instance.gameState.enableMusic&&(e=this.getMusicNameForArenaNumber(re.instance.gameState.selectedArenaNumber));for(var t=0;t<this.musicNames.length;t++){let n=this.musicNames[t];this.musicFiles[n]=new Audio,this.musicFiles[n].src="assets/music/"+n+".mp3",this.musicFiles[n].loop=!0,this.musicFiles[n].volume=.2,e.length>0&&e==n&&(this.musicFiles[n].autoplay=!0),this.musicFiles[n].load()}}playSound(e){re.instance.gameState.enableSoundEffects&&(-1!=this.soundEffectNames.indexOf(e)?this.soundFiles[e].play():console.error("Tried to play sound with name '"+e+"', but that doesn't exist in SoundEffectManager."))}playMusic(e){-1!=this.musicNames.indexOf(e)?this.musicFiles[e].play():console.error("Tried to play music with name '"+e+"', but that doesn't exist in SoundEffectManager.")}turnOnMusic(){if(this.turnOffMusic(),!re.instance.gameState.enableMusic)return;let e=this.getMusicNameForArenaNumber(re.instance.gameState.selectedArenaNumber);this.playMusic(e)}turnOffMusic(){for(var e=0;e<this.musicNames.length;e++)this.musicFiles[this.musicNames[e]].pause()}getMusicNameForArenaNumber(e){switch(e=parseInt(""+e)){case 1:return"arena1";case 2:return"arena2";case 3:return"arena3";case 4:return"arena4";case 5:return"arena5";default:return"arena"+e}return"unknown"}arenaChanged(){re.instance.gameState.enableMusic&&this.turnOnMusic()}}return e.instance=null,e})(),W=(()=>{class e{constructor(e){this.sanitizer=e,this.timer=0,this.currentAchievement=null,this.queuedAchievements=[],this.processingInterval=null}ngOnInit(){e.instance=this}show(e){this.queuedAchievements.push(e),null==this.currentAchievement&&this.showNextAchievement()}showNextAchievement(){this.currentAchievement=this.queuedAchievements[0],this.queuedAchievements.splice(0,1),null==this.processingInterval&&(this.processingInterval=setInterval(this.perTick.bind(this),16))}perTick(){this.timer+=.016,this.timer>5&&(this.timer=0,this.currentAchievement=null,clearInterval(this.processingInterval),this.processingInterval=null,this.queuedAchievements.length>0&&this.showNextAchievement())}getStyle(){let e=0;return e=this.timer>1&&this.timer<4?1:this.timer<1?Math.sin(1.57*this.timer):Math.sin(1.57*(1-this.timer)),this.sanitizer.bypassSecurityTrustStyle("opacity: "+e)}}return e.instance=null,e})(),$="cci_cloud_save";class q{constructor(){this.isReady=!1,this.cloudLoadAttemptFinished=!1,this.steam=null,this.itemIdentifierBeingPurchased=null,this.queuedAchievementUnlocks=[],this.greenworks=null,q.instance=this}ngOnInit(){if(i.steam)if(nw)if(this.greenworks=nw.require("./greenworks.js"),this.greenworks.init()){console.log("Steam initialized successfully."),this.isReady=!0,re.instance.isOnSteam=!0,this.sendAllQueuedAchievementsToSteam(),this.greenworks.enableCloud(!0),this.loadFromCloud();let t=X();for(var e=0;e<t.length;e++)q.instance.unlockAchievement(t[e])}else console.error("Error on initializing steam API.");else console.log("nw not found, Steam won't be initialized.");else console.log("This is the non-Steam build. Exiting Steam initialization.")}getUsername(){return Object(r.isDevMode)()?"Fordesoft":this.isReady?this.steam.services.getUsername():null}unlockAchievement(e){re.instance.isOnSteam?this.sendAchievementUnlockRequestToSteam(e):-1==this.queuedAchievementUnlocks.indexOf(e)&&this.queuedAchievementUnlocks.push(e)}sendAllQueuedAchievementsToSteam(){for(var e=0;e<this.queuedAchievementUnlocks.length;e++)this.sendAchievementUnlockRequestToSteam(this.queuedAchievementUnlocks[e])}sendAchievementUnlockRequestToSteam(e){this.greenworks.activateAchievement("ACH_"+e,function(){console.log("Activating achievement successfully")},function(e){console.error("Failed on activating achievement."),console.error(e)})}saveToCloud(){if(!this.greenworks.isCloudEnabled()||!this.greenworks.isCloudEnabledForUser())return void console.log("Cloud is not enabled. Save data won't be saved to cloud.");let e=JSON.stringify(re.instance.gameState);this.greenworks.saveTextToFile($,e,function(){console.log("Saved to cloud successfully.")},function(e){console.error("Error saving to cloud because:"),console.error(e),-1!=JSON.stringify(e).indexOf("File doesn't exist")&&a.instance.show("Error saving save data to cloud because: "+JSON.stringify(e))})}loadFromCloud(){this.greenworks.isCloudEnabled()&&this.greenworks.isCloudEnabledForUser()?this.greenworks.readTextFromFile($,(function(e){console.log("Read data from cloud successfully.");let t=JSON.parse(e);t.lastSaveTimeInSeconds>re.instance.gameState.lastSaveTimeInSeconds?(console.log("Cloud save was newer. Importing."),B.instance&&B.instance.pressedOk(),re.instance.gameState=t,re.instance.migrateDataAndHandleOfflineProgress(),this.cloudLoadAttemptFinished=!0):(console.log("Cloud save was older than local data. Not importing."),this.cloudLoadAttemptFinished=!0)}).bind(this),(function(e){console.error("Error loading from cloud because:"),console.error(e),this.cloudLoadAttemptFinished=!0,a.instance.show("Error loading save data from cloud because: "+JSON.stringify(e))}).bind(this)):console.log("Cloud is not enabled. Save data won't be loaded from cloud.")}}const K=[{id:1,title:"Road to riches",description:"Earn 1K gold in Intro Realm",imageFilename:"1.png"},{id:2,title:"Mr. Moneybags",description:"Earn 100K gold in Intro Realm",imageFilename:"2.png"},{id:3,title:"Elon",description:"Earn 10M gold in Intro Realm",imageFilename:"3.png"},{id:4,title:"Feeding Time",description:"Empower a Crab in Intro Realm",imageFilename:"4.png"},{id:5,title:"Abahcolypse Now",description:"Have a sheep call a Meteor to the center of the earth",imageFilename:"5.png"},{id:6,title:"Raiding The Hobby Shop",description:"Buy 100,000 5-card packs in one go",imageFilename:"6.png"},{id:7,title:"You Always Doubted Me",description:"Earn 25+ gold/sec with only Ghouls",imageFilename:"7.png"},{id:8,title:"Ascension!",description:"Ascend, earning at least one gem, for the first time",imageFilename:"8.png"},{id:11,title:"Lil Jack, Big Axe",description:"Earn +500 wood/sec with only Lil' Lumberjacks and Hatchets",imageFilename:"11.png"},{id:9,title:"Haunted Woods",description:"Unlock the Haunted Woods expansion",imageFilename:"9.png"},{id:10,title:"Underworld",description:"Unlock the Underworld expansion",imageFilename:"10.png"},{id:12,title:"Plains of War",description:"Unlock the Plains of War expansion",imageFilename:"12.png"},{id:15,title:"Cityscape",description:"Unlock the Cityscape expansion",imageFilename:"15.png"},{id:13,title:"Mascot Slayer",description:"In Plains of War, kill the Scarecrow in one hit",imageFilename:"13.png"},{id:14,title:"Harder Than It Looks",description:"Kill a Dead Fish in 4 or more rounds",imageFilename:"14.png"}];function Y(e){re.instance.gameState.achievementsUnlocked[e]=!0,W.instance&&W.instance.show(function(e){for(var t=0;t<K.length;t++)if(K[t].id==e)return K[t];return null}(e)),q.instance&&q.instance.unlockAchievement(e)}function Q(e){return void 0!==re.instance.gameState.achievementsUnlocked[e]&&re.instance.gameState.achievementsUnlocked[e]}function Z(){let e=0;for(var t=1;t<=K.length;t++)Q(t)&&e++;return e}function X(){let e=[];for(var t=0;t<K.length;t++)Q(K[t].id)&&e.push(K[t].id);return e}const J=(()=>{class e{constructor(){this.isVisible=!1,this.showResetConfirmation1=!1,this.showResetConfirmation2=!1,this.kongregateUsername="",e.instance=this}show(){this.isVisible=!0,this.showResetConfirmation1=!1,this.showResetConfirmation2=!1}pressedOk(){this.isVisible=!1}exportSave(){re.instance.exportSaveData()}importSave(e){let t="Steam";if(i.steam||(console.log("Environment isn't steam"),null!=(t=c.instance.getUsername())&&"Guest"!=t)){var n=e.target.files[0],r=new FileReader;r.readAsText(n,"UTF-8"),r.onload=(e=>{var n=e.target.result.toString();re.instance.importSaveData(n,t),this.isVisible=!1})}else a.instance.show("Error importing data. Please ensure you're logged into Kongregate and connected to the internet. If the problem persists, please try again in a minute.")}resetGame(){re.instance.resetGame()}getAppComponent(){return re.instance}musicSettingChanged(){re.instance.gameState.enableMusic?G.instance.turnOnMusic():G.instance.turnOffMusic()}isOnSteamFullVersion(){return i.steam&&!i.steamDemo}importKongregateSave(e){let t=this.kongregateUsername;var n=e.target.files[0],r=new FileReader;r.readAsText(n,"UTF-8"),r.onload=(e=>{var n=e.target.result.toString();re.instance.importSaveData(n,t),this.isVisible=!1;let r=X();for(var i=0;i<r.length;i++)q.instance.unlockAchievement(r[i]);re.instance.gameState.purchasedSteamPremiumVersion=!0})}}return e.instance=null,e})();function ee(e,t){let n=re.instance.getCardSlotNumberAtXYLocation(e,t.x,t.y-1);return re.instance.gameState["arena"+e].cardSlots[n]}function te(e,t){let n=re.instance.getCardSlotNumberAtXYLocation(e,t.x,t.y+1);return re.instance.gameState["arena"+e].cardSlots[n]}function ne(e,t){let n=t.y-1;if(n<0)return null;let r=re.instance.getCardSlotNumberAtXYLocation(e,t.x,n);return re.instance.gameState["arena"+e].cardSlots[r]}const re=(()=>{class e{constructor(t,n){this.sanitizer=t,this.niceNumber=n,this.showPremiumShop=!1,this.showDebugTools=!1,this.thisSessionStartedAtInSeconds=0,this.objectKeys=Object.keys,this.GetCardById=o,this.cardModels=s,this.currentTab="arena",this.keyIsPressed={},this.hoveredCardSlot=null,this.isSelectingEmptySlot=!1,this.cardIdToPutInEmptySlot=null,this.selectedLayoutSlotToLoad=null,this.purchaseMultiplier=1,this.buyMaxChecked=!1,this.isProcessingOfflineProgress=!1,this.resourcesBeforeOfflineProgress={},this.offlineProgressSecondsLeftToProcess=0,this.offlineProgressSecondsTotal=0,this.hitMaximumOfflineTime=!1,this.cardNameFilter="",this.unlockedArenas=[],this.LatestSaveDataVersion=37,this.AmountOfGoldPerSecond=v,this.AmountOfWoodPerSecond=C,this.AmountOfIronPerSecond=k,this.AmountOfEtherPerSecond=E,this.AmountOfSkullsPerSecond=P,this.AmountOfFeathersPerSecond=N,this.collectionSortOptions=["Tier (ascending)","Tier (descending)","Producers first","Effects first","Rarity (ascending)","Rarity (descending)","Quantity","Name","Type","Level (descending)","Resource (ascending)","Resource (descending)"],this.isOnKongregate=!1,this.isOnSteam=!1,this.kongregateMicrotransactionList=[],this.steamMicrotransactionList=[],this.recentResourcesEarned={},this.lastTickTimeInMilliseconds=0,this.gameState={secondsPlayed:0,gems:0,enableSoundEffects:!0,enableBattleSoundEffects:!0,enableMusic:!0,enableAnimations:!0,highestUnlockedArena:1,hasPurchasedCardsBefore:!1,saveDataVersion:this.LatestSaveDataVersion,lastSaveTimeInSeconds:0,maxOfflineTime:14400,selectedArenaNumber:1,achievementsUnlocked:{},savedLayouts:{arena1:[],arena2:[],arena3:[],arena4:[],arena5:[]},cardRanks:{arena1:{},arena2:{},arena3:{},arena4:{},arena5:{}},selectedSortOption:"Producers first",filters:{showTier:{tier1:!0,tier2:!0,tier3:!0,tier4:!0,tier5:!0}},resources:{arena1:{gold:0},arena2:{iron:0,wood:0},arena3:{ether:0,skulls:0,feathers:0},arena4:{gold:0,wood:0},arena5:{gold:0,iron:0}},lifetimeResourcesEarned:{arena1:{gold:0},arena2:{iron:0,wood:0},arena3:{ether:0,skulls:0,feathers:0},arena4:{gold:0,wood:0},arena5:{gold:0,iron:0}},lifetimeGemsReceived:{1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},arena1:m,arena2:g,arena3:y,arena4:b,cardCollection:{arena1:{1:1},arena2:{24:1},arena3:{69:1},arena4:{123:1,124:1},arena5:{182:1}},cardCollectionOrders:{arena1:[1],arena2:[24],arena3:[69],arena4:[123,124],arena5:[182]},cardRateModifiers:{1:0,2:0,3:0,4:0,5:0},cardRateModifiersUnlocked:{1:!1,2:!1,3:!1,4:!1,5:!1}},this.ARENA1_MAX_SLOTS=10,this.gameTickInterval=null,this.offlineProgressProcessingInterval=null,this.thisSessionStartedAtInSeconds=Math.floor((new Date).getTime()/1e3),this.showDebugTools=Object(r.isDevMode)(),e.instance=this}closeUpgradeWindow(){u.instance.hide()}openUpgradeWindow(){u.instance.show(this.gameState.selectedArenaNumber,this.cardIdToPutInEmptySlot)}cardExistsInArena(e,t){for(var n=this.gameState["arena"+e].cardSlots,r=0;r<n.length;r++)if(null!=n[r].cardInSlot&&n[r].cardInSlot.id==t)return!0;return!1}cardCountInArena(e,t){let n=0;for(var r=this.gameState["arena"+e].cardSlots,i=0;i<r.length;i++)null!=r[i].cardInSlot&&(null!=t&&r[i].cardInSlot.id!=t||n++);return n}indexOfNextCardSlotToUnlock(e){return 1}numberOfSlotsUnlocked(e){let t=0;for(var n=this.gameState["arena"+e].cardSlots,r=0;r<n.length;r++)n[r].slotIsUnlocked&&t++;return t}cardCollectionIsEmpty(){for(let e of Object.keys(this.gameState.cardCollection["arena"+this.gameState.selectedArenaNumber]))if(this.gameState.cardCollection["arena"+this.gameState.selectedArenaNumber][e]>0)return!1;return!0}everyTick(e=1){this.gameState.secondsPlayed++,this.lastTickTimeInMilliseconds=(new Date).getTime(),d(1,this.gameState);let t=v(1)*e;if(this.gameState.resources.arena1.gold+=t,t>0&&(this.gameState.lifetimeResourcesEarned.arena1.gold+=t),this.gameState.highestUnlockedArena>=2){d(2,this.gameState);let t=C(2)*e,n=k(2)*e;this.gameState.resources.arena2.wood+=t,this.gameState.resources.arena2.iron+=n,t>0&&(this.gameState.lifetimeResourcesEarned.arena2.wood+=t),n>0&&(this.gameState.lifetimeResourcesEarned.arena2.iron+=n)}if(this.gameState.highestUnlockedArena>=3){d(3,this.gameState);let t=E(3)*e,n=P(3)*e,r=N(3)*e;this.gameState.resources.arena3.ether+=t,this.gameState.resources.arena3.skulls+=n,this.gameState.resources.arena3.feathers+=r,t>0&&(this.gameState.lifetimeResourcesEarned.arena3.ether+=t),n>0&&(this.gameState.lifetimeResourcesEarned.arena3.skulls+=n),r>0&&(this.gameState.lifetimeResourcesEarned.arena3.feathers+=r)}if(this.gameState.highestUnlockedArena>=4){d(4,this.gameState);let e=function(e){let t={},n=[],r=[];n=[8,9,10,11],r=[8,9,10,11],t.gold=0,t.wood=0;for(var i=0;i<n.length;i++){let e=re.instance.gameState.arena4.cardSlots[n[i]],r=ee(4,e),l=te(4,e),s=ne(4,r),a=null!=l.cardInSlot?o(l.cardInSlot.id):null,u=null!=s.cardInSlot?o(s.cardInSlot.id):null,c=null!=a&&a.boostPotionEffect,d=null!=a&&a.doubleCriticalRateEffect,h=null!=u&&u.doubleCriticalRateEffect;if(e&&(e.foughtInLastTick=!1),r&&(r.foughtInLastTick=!1,r.droppedLootLastTick=!1),null!=e.cardInSlot&&null==r.cardInSlot&&(e.roundsSoFar=0,e.estimatedLootPerSecond={gold:0,wood:0}),null!=e.cardInSlot&&null!=r.cardInSlot)if(e.roundsSoFar++,e.currentHP<=0||r.currentHP<=0){if(r.currentHP<=0&&(e.currentHP>0||c)){Q(13)||2==e.roundsSoFar&&131==r.cardInSlot.id&&Y(13),Q(14)||e.roundsSoFar>=5&&144==r.cardInSlot.id&&Y(14);let n=re.instance.rankAdjustedModifier(r.cardInSlot.id,4,4),i=re.instance.rankAdjustedModifier(r.cardInSlot.id,4,5);n*=re.instance.UniversalAura(4),i*=re.instance.UniversalAura(4),null!=u&&(n*=1+re.instance.rankAdjustedModifier(u.id,4,4),i*=1+re.instance.rankAdjustedModifier(u.id,4,5)),t.gold+=n,t.wood+=i,e.estimatedLootPerSecond={gold:n/e.roundsSoFar,wood:i/e.roundsSoFar},e.roundsSoFar=0,r.droppedLootLastTick=!0}else e.currentHP<=0&&!c&&(e.estimatedLootPerSecond={gold:0,wood:0},e.roundsSoFar=0);e.currentHP=re.instance.rankAdjustedModifier(e.cardInSlot.id,4,0)*re.instance.UniversalAura(4),a&&(e.currentHP+=re.instance.rankAdjustedModifier(a.id,4,0)*re.instance.UniversalAura(4)),(r.currentHP<=0||!c)&&(r.currentHP=re.instance.rankAdjustedModifier(r.cardInSlot.id,4,0)*re.instance.UniversalAura(4),u&&(r.currentHP+=re.instance.rankAdjustedModifier(u.id,4,0)*re.instance.UniversalAura(4)))}else if(e.cardInSlot&&r&&null!=r.cardInSlot){let t=re.instance.rankAdjustedModifier(e.cardInSlot.id,4,1)*re.instance.UniversalAura(4),n=re.instance.rankAdjustedModifier(r.cardInSlot.id,4,1)*re.instance.UniversalAura(4),i=re.instance.rankAdjustedModifier(e.cardInSlot.id,4,2)*re.instance.UniversalAura(4),l=re.instance.rankAdjustedModifier(r.cardInSlot.id,4,2)*re.instance.UniversalAura(4),s=re.instance.rankAdjustedModifier(e.cardInSlot.id,4,3)*re.instance.UniversalAura(4),o=re.instance.rankAdjustedModifier(r.cardInSlot.id,4,3)*re.instance.UniversalAura(4);null!=a&&(t+=re.instance.rankAdjustedModifier(a.id,4,1)*re.instance.UniversalAura(4),i+=re.instance.rankAdjustedModifier(a.id,4,2)*re.instance.UniversalAura(4),s+=re.instance.rankAdjustedModifier(a.id,4,3)*re.instance.UniversalAura(4)),null!=u&&(n+=re.instance.rankAdjustedModifier(u.id,4,1)*re.instance.UniversalAura(4),l+=re.instance.rankAdjustedModifier(u.id,4,2)*re.instance.UniversalAura(4),o+=re.instance.rankAdjustedModifier(u.id,4,3)*re.instance.UniversalAura(4));let c=!1,f=!1;0==Math.floor(Math.random()*(d?5:10))&&(c=!0),0==Math.floor(Math.random()*(h?5:10))&&(f=!0);let p=(c?2:1)*Math.max(0,t-l),m=(f?2:1)*Math.max(0,n-i);s>o?p+=s-o:m+=o-s,e.currentHP-=m,r.currentHP-=p,e.currentHP<0&&(e.currentHP=0),r.currentHP<0&&(r.currentHP=0),e.damageTakenThisRound=m,r.damageTakenThisRound=p,e.foughtInLastTick=!0,r.foughtInLastTick=!0}}return t}();this.gameState.resources.gold+=e.gold,this.gameState.resources.wood+=e.wood,e.gold&&(this.gameState.lifetimeResourcesEarned.arena4.gold+=e.gold),e.wood&&(this.gameState.lifetimeResourcesEarned.arena4.wood+=e.wood),this.gameState.resources.arena4.gold+=e.gold,this.gameState.resources.arena4.wood+=e.wood,this.recordRecentResourcesEarned(4,e)}if(this.gameState.highestUnlockedArena>=5){!function(e,t){const n=t.arena5.cardSlots;for(var r=0;r<n.length;r++)n[r].waterAvailable=0,n[r].electricityAvailable=0;for(var i=0;i<n.length;i++){const e=n[i].cardInSlot;if(null!=e){var l=o(e.id);if(void 0!==l.appraisalModifier&&null!=l.appraisalModifier){let e=[];switch(l.appraisalModifier.direction){case"adjacent":e=p(5,i);break;case"everything":e=re.instance.getSlotNumbersOfCardsInPlay(5,i);break;case"column":e=re.instance.getSlotNumbersOfCardsInColumn(5,n[i].x,i);break;case"row":e=re.instance.getSlotNumbersOfCardsInRow(5,n[i].y,i)}for(var s=0;s<e.length;s++);}}}}(0,this.gameState),d(5,this.gameState);let t=v(5)*e,n=k(5)*e;this.gameState.resources.arena5.gold+=t,this.gameState.resources.arena5.iron+=n,t>0&&(this.gameState.lifetimeResourcesEarned.arena5.gold+=t),n>0&&(this.gameState.lifetimeResourcesEarned.arena5.iron+=n)}this.isProcessingOfflineProgress||this.gameState.secondsPlayed%10!=0||(this.saveGame(),c.instance&&(c.instance.submitStat("gold",this.gameState.lifetimeResourcesEarned.arena1.gold),c.instance.submitStat("wood",this.gameState.lifetimeResourcesEarned.arena2.wood),c.instance.submitStat("iron",this.gameState.lifetimeResourcesEarned.arena2.iron),c.instance.submitStat("ether",this.gameState.lifetimeResourcesEarned.arena3.ether),c.instance.submitStat("skulls",this.gameState.lifetimeResourcesEarned.arena3.skulls),c.instance.submitStat("feathers",this.gameState.lifetimeResourcesEarned.arena3.feathers))),this.CheckForAchievements()}saveGame(){if(!i.steam||q.instance&&q.instance.cloudLoadAttemptFinished||!(Math.floor((new Date).getTime()/1e3)-this.thisSessionStartedAtInSeconds<60)){this.gameState.lastSaveTimeInSeconds=Math.floor((new Date).getTime()/1e3);var e=JSON.stringify(this.gameState);window.localStorage.setItem("gameData",e),this.isOnSteam&&q.instance.saveToCloud()}}loadGame(){var e=window.localStorage.getItem("gameData");null!=e&&e.length>0&&(this.gameState=JSON.parse(e),this.unlockedArenas=this.getUnlockedArenas(),this.migrateDataAndHandleOfflineProgress())}deleteSaveData(){window.localStorage.setItem("gameData",""),window.location.reload()}init(){this.loadGame(),this.unlockedArenas=this.getUnlockedArenas(),this.isProcessingOfflineProgress||null!=this.gameTickInterval||(this.gameTickInterval=setInterval(this.everyTick.bind(this),1e3)),window.onkeyup=(function(e){this.keyIsPressed[e.keyCode]=!1}).bind(this),window.onkeydown=(function(e){this.keyIsPressed[e.keyCode]=!0}).bind(this),window.addEventListener("focus",(function(e){this.keyIsPressed[17]=!1}).bind(this),!1)}ngOnInit(){this.init(),i.steam&&!i.steamDemo&&(this.gameState.purchasedSteamPremiumVersion=!0),this.gameState.arena5=function(){var e=[],t=[];for(n=0;n<50;n++)t.push({unlockCurrency:n<=25?"gold":"iron",unlockPrice:100*(1+Math.floor(n/2))*(n>45?100:n>30?10:1)});t.sort(()=>Math.random()-.5);for(var n=0;n<50;n++){var r=n%5,i=Math.floor(n/5);e.push({x:r,y:i,slotIsUnlocked:17==n,unlockCurrency:t[n].unlockCurrency,unlockPrice:t[n].unlockPrice,cardInSlot:null,slotType:"land",appraisalValue:0,appraisalPlusPerSecond:0,appraisalMultipliers:[],multipliers:{gold:[],iron:[]},waterAvailable:0,electricityAvailable:0})}let l=[];for(n=0;n<50;n++)17!=n&&l.push(n);for(l.sort(()=>Math.random()-.5),n=0;n<15;n++)e[l.pop()].slotType="water";return{cardSlots:e}}(),this.gameState.cardCollection.arena5={},this.gameState.cardCollectionOrders.arena5=[];for(var e=182;e<=257;e++)this.gameState.cardCollection.arena5[""+e]=3,this.gameState.cardCollectionOrders.arena5.push(e)}addCardsToCollection(e,t){for(var n=0;n<e.length;n++){let r=e[n].data.id,i=e[n].quantity;this.gameState.cardCollection["arena"+t][r]?this.gameState.cardCollection["arena"+t][r]+=i:this.gameState.cardCollection["arena"+t][r]=i}this.sortCardCollection(t)}removeCardFromCollection(e,t){this.gameState.cardCollection["arena"+t][e]&&(this.gameState.cardCollection["arena"+t][e]--,this.gameState.cardCollection["arena"+t][e]<=0&&delete this.gameState.cardCollection["arena"+t][e]),this.sortCardCollection(t)}startChoosingEmptySlotForCard(e){this.isSelectingEmptySlot=!0,this.cardIdToPutInEmptySlot=e}stopChoosingEmptySlotForCard(){this.isSelectingEmptySlot=!1,this.cardIdToPutInEmptySlot=null}tryToPlaceCardInEmptySlot(e,t,n,r){let i=this.gameState.cardCollection["arena"+this.gameState.selectedArenaNumber][n.id];i<1||((this.gameState["arena"+e].cardSlots[t].slotType||"normal")===(n.cardType||"normal")?(this.removeCardFromCollection(n.id,this.gameState.selectedArenaNumber),this.gameState["arena"+e].cardSlots[t].cardInSlot=o(n.id),"hero"!=n.cardType&&"monster"!=n.cardType||(this.gameState["arena"+e].cardSlots[t].currentHP=this.rankAdjustedModifier(n.id,e,0),"hero"==n.cardType&&(this.gameState["arena"+e].cardSlots[t].roundsSoFar=0,this.gameState["arena"+e].cardSlots[t].estimatedLootPerSecond={gold:0,wood:0})),r&&G.instance.playSound("placecard"),(null==(i=this.gameState.cardCollection["arena"+this.gameState.selectedArenaNumber][n.id])||i<=0||!this.keyIsPressed[17])&&this.isSelectingEmptySlot&&n.id==this.cardIdToPutInEmptySlot&&(this.isSelectingEmptySlot=!1,this.cardIdToPutInEmptySlot=null),d(e,this.gameState)):G.instance.playSound("cantdothat"))}tryToBuyEmptySlot(e,t){var n=this.gameState["arena"+e].cardSlots[t];this.gameState.resources["arena"+e][n.unlockCurrency]>=n.unlockPrice&&(this.gameState.resources["arena"+e][n.unlockCurrency]-=n.unlockPrice,n.slotIsUnlocked=!0)}unlockSlot(e,t){var n=this.gameState["arena"+e].cardSlots;for(t=0;t<n.length;t++)if(!n[t].slotIsUnlocked)return void(n[t].slotIsUnlocked=!0)}removeCardFromArena(e,t,n){if(null!=e&&null!=t&&null!=n&&null!=this.gameState["arena"+e].cardSlots[t].cardInSlot){if("hero"==this.gameState["arena"+e].cardSlots[t].cardInSlot.cardType){let n=ee(e,this.gameState["arena"+e].cardSlots[t]);null!=n.cardInSlot&&(n.currentHP=this.rankAdjustedModifier(n.cardInSlot.id,e,0))}if("monster"==this.gameState["arena"+e].cardSlots[t].cardInSlot.cardType){let n=function(e,t){let n=re.instance.getCardSlotNumberAtXYLocation(e,t.x,t.y+1);return re.instance.gameState["arena"+e].cardSlots[n]}(e,this.gameState["arena"+e].cardSlots[t]);null!=n.cardInSlot&&(n.currentHP=this.rankAdjustedModifier(n.cardInSlot.id,e,0))}this.gameState["arena"+e].cardSlots[t].cardInSlot=null,this.addCardsToCollection([{data:o(n),quantity:1}],e),d(e,this.gameState)}}getSlotNumbersOfCardsInRow(e,t,n){let r=[];const i=this.gameState["arena"+e].cardSlots;for(var l=0;l<i.length;l++)null!=i[l].cardInSlot&&i[l].y==t&&l!=n&&r.push(l);return r}getSlotNumbersOfCardsInColumn(e,t,n){let r=[];const i=this.gameState["arena"+e].cardSlots;for(var l=0;l<i.length;l++)null!=i[l].cardInSlot&&i[l].x==t&&l!=n&&r.push(l);return r}getSlotNumbersOfCardsInPlay(e,t){let n=[];const r=this.gameState["arena"+e].cardSlots;for(var i=0;i<r.length;i++)null!=r[i].cardInSlot&&i!=t&&n.push(i);return n}getCardSlotNumberAtXYOffset(e,t,n,r){const i=this.gameState["arena"+e].cardSlots;for(var l=this.gameState["arena"+e].cardSlots[t],s=0;s<i.length;s++)if(null!=i[s].cardInSlot&&i[s].x==l.x+n&&i[s].y==l.y+r)return s;return null}getCardSlotNumberAtXYLocation(e,t,n){const r=this.gameState["arena"+e].cardSlots;for(var i=0;i<r.length;i++)if(r[i].x==t&&r[i].y==n)return i;return null}getTotalMultiplierForSlot(e,t,n,r=!1){var i=1,l=this.gameState["arena"+e].cardSlots[t].multipliers[n];for(let s=0;s<l.length;s++){if(0==l[s].amount)return 0;r||(i+=l[s].amount)}return i}pushMultiplier(e,t,n,r,i){this.gameState["arena"+e].cardSlots[n].multipliers[r].push({amount:i,fromSlot:t})}pushStatBonus(e,t,n,r,i){let l=this.gameState["arena"+e].cardSlots[n].statBonuses[r]||{};this.gameState["arena"+e].cardSlots[n].statBonuses[r]=l={amount:i,fromSlot:t}}getNumberOfCardsInPlay(e){var t=0;const n=this.gameState["arena"+e].cardSlots;for(var r=0;r<n.length;r++)null!=n[r].cardInSlot&&t++;return t}migrateSaveData(e){switch(e){case 2:this.gameState.selectedArenaNumber=1,this.gameState.arena2=g;let t=this.cloneJSObject(this.gameState.cardCollection);this.gameState.cardCollection={},this.gameState.cardCollection.arena1=t,this.gameState.cardCollection.arena2={24:1};break;case 3:this.gameState.lastSaveTimeInSeconds=0;break;case 4:this.gameState.savedLayouts={},this.gameState.cardRanks={};break;case 5:this.gameState.resources={arena1:{gold:this.gameState.resources.gold},arena2:{wood:0,iron:0},arena3:{blood:0,ether:0}};break;case 6:this.gameState.selectedSortOption="Producers first";break;case 7:this.gameState.cardCollectionOrders={arena1:[],arena2:[]};break;case 8:this.gameState.filters={showTier:{tier1:!0,tier2:!0,tier3:!0,tier4:!0,tier5:!0}},this.sortCardCollection(1),this.sortCardCollection(2);break;case 9:this.gameState.savedLayouts={arena1:[],arena2:[],arena3:[],arena4:[],arena5:[]};break;case 10:this.gameState.cardRanks={arena1:{},arena2:{},arena3:{},arena4:{},arena5:{}};break;case 11:this.gameState.resources.arena2.wood<-10&&(this.gameState.resources.arena2.wood=0);break;case 12:this.gameState.cardCollection.arena3={69:1};break;case 13:this.gameState.arena3=y;break;case 14:this.gameState.resources.arena3={ether:0,skulls:0,feathers:0};break;case 15:this.gameState.arena3=y;break;case 16:void 0===this.gameState.cardCollectionOrders.arena3&&(this.gameState.cardCollectionOrders.arena3=[69]);break;case 17:this.gameState.lifetimeResourcesEarned={arena1:{gold:this.gameState.resources.arena1.gold},arena2:{iron:this.gameState.resources.arena2.iron,wood:this.gameState.resources.arena2.wood},arena3:{ether:this.gameState.resources.arena3.ether,skulls:this.gameState.resources.arena3.skulls,feathers:this.gameState.resources.arena3.feathers}};break;case 18:break;case 19:this.gameState.lifetimeGemsReceived={1:0,2:0,3:0};break;case 20:this.gameState.gems=0;break;case 21:this.gameState.maxOfflineTime=3600;break;case 22:this.gameState.maxOfflineTime*=4;break;case 23:this.gameState.maxOfflineTime>86400&&(this.gameState.gems+=(this.gameState.maxOfflineTime-86400)/14400,this.gameState.maxOfflineTime=86400);break;case 24:this.gameState.achievementsUnlocked={};break;case 25:break;case 26:this.gameState.enableSoundEffects=!0,this.gameState.enableMusic=!1;break;case 27:this.gameState.resources.arena4={gold:0,wood:0},this.gameState.lifetimeResourcesEarned.arena4={gold:0,wood:0},this.gameState.lifetimeGemsReceived[4]=0,this.gameState.arena4=b;break;case 28:this.gameState.cardCollection.arena4={123:1,124:1},this.gameState.cardCollectionOrders.arena4=[123,124];break;case 29:this.gameState.enableAnimations=!0;break;case 30:this.gameState.lifetimeGemsReceived[4]=0,this.gameState.lifetimeGemsReceived[5]=0,this.gameState.lifetimeGemsReceived[6]=0,this.gameState.lifetimeGemsReceived[7]=0,this.gameState.lifetimeGemsReceived[8]=0,this.gameState.lifetimeGemsReceived[9]=0,this.gameState.lifetimeGemsReceived[10]=0;break;case 31:this.gameState.savedLayouts.arena4=[],this.gameState.savedLayouts.arena5=[],this.gameState.arena4=b,this.gameState.enableBattleSoundEffects=!0;break;case 32:this.gameState.arena4=b;break;case 33:this.gameState.cardRateModifiers={1:0,2:0,3:0,4:0,5:0},this.gameState.cardRateModifiersUnlocked={1:!1,2:!1,3:!1,4:!1,5:!1};break;case 34:this.gameState.resources.arena5={gold:0},this.gameState.lifetimeResourcesEarned.arena5={gold:0},this.gameState.lifetimeGemsReceived[5]=0;break;case 35:this.gameState.cardCollection.arena5={181:1},this.gameState.cardCollectionOrders.arena5=[181];break;case 36:this.gameState.cardCollection.arena5={182:1},this.gameState.cardCollectionOrders.arena5=[182];break;case 37:this.gameState.resources.arena5={gold:0,iron:0},this.gameState.lifetimeResourcesEarned.arena5={gold:0,iron:0}}this.gameState.saveDataVersion=e}cloneJSObject(e){if(null==e||"object"!=typeof e)return e;var t=e.constructor();for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}deepCloneJSObject(e){return JSON.parse(JSON.stringify(e))}unlockArena(e){if(e=parseInt(""+e),this.gameState.highestUnlockedArena>e)console.error("Trying to unlockArena() with an arena number ("+e+") lower than what's already the highest unlocked ("+this.gameState.highestUnlockedArena+")");else{switch(2==e&&(Q(9)||Y(9)),3==e&&(Q(10)||Y(10)),4==e&&(Q(12)||Y(12)),5==e&&(Q(15)||Y(15)),e){case 2:this.gameState.resources.iron=0,this.gameState.resources.wood=0}this.isSelectingEmptySlot=!1,this.cardIdToPutInEmptySlot=null,this.gameState.highestUnlockedArena=e,this.currentTab="arena",this.gameState.selectedArenaNumber=e;for(var t=1;t<=5;t++)this.gameState.filters.showTier["tier"+t]=!0;this.unlockedArenas=this.getUnlockedArenas(),c.instance.submitStat("realmsunlocked",e-1)}}getUnlockedArenas(){let e=[{num:1,name:"Intro Realm"}];return this.gameState.highestUnlockedArena>=2&&e.push({num:2,name:"Haunted Woods"}),this.gameState.highestUnlockedArena>=3&&e.push({num:3,name:"Underworld"}),this.gameState.highestUnlockedArena>=4&&e.push({num:4,name:"Plains of War"}),this.gameState.highestUnlockedArena>=5&&e.push({num:5,name:"Cityscape"}),e}arenaHasDarkBackground(){return 2==this.gameState.selectedArenaNumber||3==this.gameState.selectedArenaNumber||5==this.gameState.selectedArenaNumber}showTooltipForRankUp(){if(!this.isSelectingEmptySlot||null==this.cardIdToPutInEmptySlot)return;let e=this.getCardUpgradeCost(this.gameState.selectedArenaNumber,this.cardIdToPutInEmptySlot),t="Combine "+this.niceNumber.transform(e)+" cards to increase power";j.instance.showTooltip(t)}hideTooltip(){j.instance.hideTooltip()}tryToRankUpCard(e,t,n=!0,r=!1){let i=this.getCurrentCardRank(e,t),l=this.getCardUpgradeCost(e,t),s=this.gameState.cardCollection["arena"+e][t];if(s<l)n&&a.instance.show("You don't have enough of that card to combine. You need "+l+", but you only have "+s);else{let o=s-l+1;this.gameState.cardCollection["arena"+e][t]=o,o<=0&&(delete this.gameState.cardCollection["arena"+e][t],this.sortCardCollection(e),this.isSelectingEmptySlot=!1,this.cardIdToPutInEmptySlot=null),this.gameState.cardRanks["arena"+e][t]=i+1,r&&this.tryToRankUpCard(e,t,n,r)}d(e,this.gameState)}rankDownCard(e,t){let n=this.gameState.cardRanks["arena"+e][t];if(n<2)return;this.gameState.cardRanks["arena"+e][t]=n-1;let r=this.gameState.cardCollection["arena"+e][t],i=this.getCardUpgradeCost(e,t);this.gameState.cardCollection["arena"+e][t]=r+i-1,d(e,this.gameState)}tryToRankUpAllCards(e){let t=Object.keys(this.gameState.cardCollection["arena"+e]);for(var n=0;n<t.length;n++)this.tryToRankUpCard(e,parseInt(""+t[n]),!1,!0)}tryToRankUpCardWithGems(t,n){let r=this.getCurrentCardRank(t,n),i=this.getCardGemUpgradeCost(t,n);this.gameState.gems<i?a.instance.show("You don't have enough gems. You need "+i+", but you only have "+this.gameState.gems):(e.instance.gameState.gems-=i,this.gameState.cardRanks["arena"+t][n]=r+1)}forceToRankUpCard(e,t){let n=this.getCurrentCardRank(e,t);this.gameState.cardRanks["arena"+e][t]=n+1}shouldShowCardCollectionControls(){return"arena"==this.currentTab&&this.isSelectingEmptySlot&&null!=this.cardIdToPutInEmptySlot}GetCardIdAtSlot(e,t){return null==t?null:null!=this.gameState["arena"+e].cardSlots[t].cardInSlot?this.gameState["arena"+e].cardSlots[t].cardInSlot.id:null}cardIsImmuneFromConsumingResource(t,n,r){switch(r){case"wood":for(var i=-1;i<=1;i++)for(var l=-1;l<=1;l++){let r=e.instance.getCardSlotNumberAtXYOffset(t,n,i,l);if(null!=r&&36==this.GetCardIdAtSlot(t,r))return!0}return!1;case"skulls":default:return!1}}getResourceDifference(e,t){let n={};for(var r=1;r<=this.gameState.highestUnlockedArena;r++){n["arena"+r]={};for(let i of Object.keys(e["arena"+r]))n["arena"+r][i]=t["arena"+r][i]-e["arena"+r][i]}return n}sortCardCollection(e){this.gameState.cardCollectionOrders["arena"+e]=Object.keys(this.gameState.cardCollection["arena"+e]);for(var t=0;t<this.gameState.cardCollectionOrders["arena"+e].length;t++){var n=this.GetCardById(this.gameState.cardCollectionOrders["arena"+e][t]),r=!this.gameState.filters.showTier["tier"+n.tier];if(!r&&this.cardNameFilter.length>0){var i=this.cardNameFilter.toLowerCase();r=-1==n.name.toLowerCase().indexOf(i)}r&&(this.gameState.cardCollectionOrders["arena"+e].splice(t,1),t--)}switch(this.gameState.selectedSortOption){case"Producers first":this.gameState.cardCollectionOrders["arena"+e].sort((function(e,t){let n=this.GetCardById(e),r=this.GetCardById(t);return n.isProducer==r.isProducer?0:n.isProducer?-1:1}).bind(this));break;case"Effects first":this.gameState.cardCollectionOrders["arena"+e].sort((function(e,t){let n=this.GetCardById(e),r=this.GetCardById(t);return n.isEffect==r.isEffect?0:n.isEffect?-1:1}).bind(this));break;case"Rarity (ascending)":this.gameState.cardCollectionOrders["arena"+e].sort((function(e,t){return this.GetCardById(e).rarity-this.GetCardById(t).rarity}).bind(this));break;case"Rarity (descending)":this.gameState.cardCollectionOrders["arena"+e].sort((function(e,t){return this.GetCardById(t).rarity-this.GetCardById(e).rarity}).bind(this));break;case"Resource (ascending)":this.gameState.cardCollectionOrders["arena"+e].sort((function(e,t){return this.GetCardById(e).relevantResource.localeCompare(this.GetCardById(t).relevantResource)}).bind(this));break;case"Resource (descending)":this.gameState.cardCollectionOrders["arena"+e].sort((function(e,t){return this.GetCardById(t).relevantResource.localeCompare(this.GetCardById(e).relevantResource)}).bind(this));break;case"Tier (descending)":this.gameState.cardCollectionOrders["arena"+e].sort((function(e,t){return this.GetCardById(t).tier-this.GetCardById(e).tier}).bind(this));break;case"Tier (ascending)":this.gameState.cardCollectionOrders["arena"+e].sort((function(e,t){return this.GetCardById(e).tier-this.GetCardById(t).tier}).bind(this));break;case"Level (descending)":this.gameState.cardCollectionOrders["arena"+e].sort((function(t,n){return this.getCurrentCardRank(e,n)-this.getCurrentCardRank(e,t)}).bind(this));break;case"Quantity":this.gameState.cardCollectionOrders["arena"+e].sort((function(t,n){return this.gameState.cardCollection["arena"+e][n]-this.gameState.cardCollection["arena"+e][t]}).bind(this));break;case"Name":this.gameState.cardCollectionOrders["arena"+e].sort((function(e,t){return this.GetCardById(e).name.localeCompare(this.GetCardById(t).name)}).bind(this));break;case"Type":this.gameState.cardCollectionOrders["arena"+e].sort((function(e,t){return this.GetCardById(e).cardType&&this.GetCardById(t).cardType?this.GetCardById(e).cardType.localeCompare(this.GetCardById(t).cardType):0}).bind(this));break;default:console.error("Unknown sort order requested in sortCardCollection(): "+this.gameState.selectedSortOption)}}openSaveLayoutDialog(){L.instance.show(this.gameState.savedLayouts["arena"+this.gameState.selectedArenaNumber],this.gameState.selectedArenaNumber)}closeSaveLayoutDialog(){L.instance.hide()}saveLayout(e,t,n){let r=[],i=this.gameState["arena"+e].cardSlots;for(var l=0;l<i.length;l++)r.push(null!=i[l].cardInSlot?i[l].cardInSlot.id:null);let s={name:n,cards:r};null==t?this.gameState.savedLayouts["arena"+e].push(s):this.gameState.savedLayouts["arena"+e][t]=s}loadLayout(){if(null==this.selectedLayoutSlotToLoad||null==this.selectedLayoutSlotToLoad||this.selectedLayoutSlotToLoad<0)return;let e=this.gameState.selectedArenaNumber;this.removeAllCardsFromGrid();var t=this.gameState.savedLayouts["arena"+e][this.selectedLayoutSlotToLoad].cards;if(t)for(var n=0;n<t.length;n++)if(this.gameState["arena"+e].cardSlots[n].slotIsUnlocked){let r=t[n];null!=r&&this.cardExistsInCollection(e,r)&&(this.removeCardFromCollection(r,this.gameState.selectedArenaNumber),this.gameState["arena"+e].cardSlots[n].cardInSlot=o(r))}}deleteSavedLayout(e,t){null!=t&&(t<0||t>this.gameState.savedLayouts["arena"+e].length||this.gameState.savedLayouts["arena"+e].splice(t,1))}removeAllCardsFromGrid(){let e=this.gameState.selectedArenaNumber,t=this.gameState["arena"+e].cardSlots;for(var n=0;n<t.length;n++)null!=t[n].cardInSlot&&this.removeCardFromArena(e,n,t[n].cardInSlot.id)}cardExistsInCollection(e,t){return!!this.gameState.cardCollection["arena"+e][t]&&this.gameState.cardCollection["arena"+e][t]>=1}getCurrentCardRank(e,t){return this.gameState.cardRanks["arena"+e][t]?this.gameState.cardRanks["arena"+e][t]:1}getCardUpgradeCost(e,t){return Math.pow(10,this.getCurrentCardRank(e,t))}getCardGemUpgradeCost(e,t){return this.getCurrentCardRank(e,t)}rankAdjustedModifier(t,n,r){let i=e.instance.GetCardById(t),l=e.instance.getCurrentCardRank(n,t),s=l;return l>1&&(s=1+.5*(l-1)),i.modifiers[r]*s}debugCommand(e){if(this.showDebugTools)switch(e){case"forward1minute":for(var t=0;t<60;t++)this.everyTick(1);break;case"forward2minutes":for(t=0;t<120;t++)this.everyTick(1);break;case"forward5minutes":for(t=0;t<300;t++)this.everyTick(1);break;case"forward10minutes":for(t=0;t<600;t++)this.everyTick(1);break;case"forward30minutes":for(t=0;t<1800;t++)this.everyTick(1);break;case"forward60minutes":for(t=0;t<3600;t++)this.everyTick(1);break;case"forward5days":this.everyTick(432e3);break;case"resetgame":this.resetGame();break;case"unlocknextrealm":this.unlockArena(parseInt(""+this.gameState.selectedArenaNumber)+1)}}exportSaveData(){let e="Steam";if(!i.steam&&(null==(e=c.instance.getUsername())||"Guest"==e))return void a.instance.show("Error exporting data. Please ensure you're logged into Kongregate and connected to the internet. If the problem persists, please try again in a minute.");let t=this.encrypt(JSON.stringify(this.gameState),e),n=this.decrypt(t,e);if(JSON.stringify(this.gameState)!=n)return void a.instance.show("Exporter encountered an unexpected error");const r=new Blob([t],{type:"text/plain"});Object(U.saveAs)(r,"creaturecardidlesave.txt")}importSaveData(e,t){let n=this.decrypt(e,t);try{let e=JSON.parse(n);this.gameState=e,this.migrateDataAndHandleOfflineProgress(),this.unlockedArenas=this.getUnlockedArenas()}catch(r){console.error(r),a.instance.show("The file seems to be corrupt. Please try again.")}}showOptionsPanel(){J.instance.show()}encrypt(e,t){return z.AES.encrypt(e,t).toString()}decrypt(e,t){return z.AES.decrypt(e,t).toString(z.enc.Utf8)}migrateDataAndHandleOfflineProgress(){for(;this.gameState.saveDataVersion<this.LatestSaveDataVersion;)console.log("Migrating save data from version "+this.gameState.saveDataVersion),this.migrateSaveData(this.gameState.saveDataVersion+1);this.reloadCardDataInSlots(),this.gameState.lastSaveTimeInSeconds>0&&(this.hitMaximumOfflineTime=!1,this.resourcesBeforeOfflineProgress=JSON.parse(JSON.stringify(this.gameState.resources)),this.offlineProgressSecondsTotal=Math.floor((new Date).getTime()/1e3)-this.gameState.lastSaveTimeInSeconds,this.offlineProgressSecondsTotal>=this.gameState.maxOfflineTime&&(this.offlineProgressSecondsTotal=this.gameState.maxOfflineTime,this.hitMaximumOfflineTime=!0),this.isProcessingOfflineProgress=!0,this.offlineProgressSecondsLeftToProcess=this.offlineProgressSecondsTotal,this.offlineProgressProcessingInterval=setInterval(this.processOfflineProgressTick.bind(this),10))}resetRealm(e){switch(e=parseInt(""+e)){case 1:this.gameState.arena1=this.deepCloneJSObject(m),console.log(m),this.gameState.resources.arena1={gold:0},this.gameState.cardCollection.arena1={1:1},this.gameState.cardCollectionOrders.arena1=[1];break;case 2:this.gameState.arena2=this.deepCloneJSObject(g),this.gameState.resources.arena2={wood:0,iron:0},this.gameState.cardCollection.arena2={24:1},this.gameState.cardCollectionOrders.arena2=[24];break;case 3:this.gameState.arena3=this.deepCloneJSObject(y),this.gameState.resources.arena3={ether:0,skulls:0,feathers:0},this.gameState.cardCollection.arena3={69:1},this.gameState.cardCollectionOrders.arena3=[69];break;case 4:this.gameState.arena4=this.deepCloneJSObject(b),this.gameState.resources.arena4={gold:0,wood:0},this.gameState.cardCollection.arena4={123:1,124:1},this.gameState.cardCollectionOrders.arena4=[123,124]}for(var t=1;t<=5;t++)this.gameState.filters.showTier["tier"+t]=!0;this.currentTab="arena"}resetGame(){window.localStorage.setItem("gameData",""),window.location.reload()}UniversalAura(e){return 1+.05*this.gameState.lifetimeGemsReceived[e]}droppedCardOntoCollection(t){let n=t.dragData.slotNumber,r=t.dragData.arenaNumber;null!=r&&null!=n&&(e.instance.removeCardFromArena(r,n,t.dragData.cardData.id),G.instance.playSound("removecard"))}CheckForAchievements(){if(null!=W.instance){if(Q(1)||this.gameState.lifetimeResourcesEarned.arena1.gold>=1e3&&Y(1),Q(2)||this.gameState.lifetimeResourcesEarned.arena1.gold>=1e5&&Y(2),Q(3)||this.gameState.lifetimeResourcesEarned.arena1.gold>=1e7&&Y(3),Q(4)||this.cardExistsInArena(1,2)&&this.cardExistsInArena(1,4)&&Y(4),Q(5)||21==this.GetCardIdAtSlot(1,this.getCardSlotNumberAtXYLocation(1,1,1))&&17==this.GetCardIdAtSlot(1,this.getCardSlotNumberAtXYLocation(1,2,1))&&Y(5),!Q(7)&&v(1)>=25){let t=!0;for(var e=0;e<9;e++)if(1!=this.GetCardIdAtSlot(1,e)&&null!=this.GetCardIdAtSlot(1,e)){t=!1;break}t&&Y(7)}if(!Q(11)&&this.gameState.highestUnlockedArena>=2&&C(2)>=500){let t=!0;for(e=0;e<9;e++)if(24!=this.GetCardIdAtSlot(2,e)&&33!=this.GetCardIdAtSlot(2,e)&&null!=this.GetCardIdAtSlot(2,e)){t=!1;break}t&&Y(11)}this.gameState.highestUnlockedArena>=2&&(Q(9)||Y(9)),this.gameState.highestUnlockedArena>=3&&(Q(10)||Y(10))}}arenaSelectionChanged(){this.closeSaveLayoutDialog(),this.closeUpgradeWindow(),this.sortCardCollection(this.gameState.selectedArenaNumber),this.isSelectingEmptySlot=!1,G.instance.arenaChanged()}getCurrentCardHP(e,t){let n=this.GetCardIdAtSlot(e,t);if(null==n)return 0;let r=o(n);return null==r?0:"hero"!=r.cardType&&"monster"!=r.cardType?0:this.gameState["arena"+e].cardSlots[t].currentHP}recordRecentResourcesEarned(e,t){this.recentResourcesEarned[e]||(this.recentResourcesEarned[e]={});for(let n of Object.keys(t)){this.recentResourcesEarned[e][n]||(this.recentResourcesEarned[e][n]=[]);let r=this.recentResourcesEarned[e][n];for(r.unshift(t[n]);r.length>30;)r.pop()}}getEstimatedResourcePerSecondForBattleArena(e,t){let n=0,r=this.getSlotNumbersOfCardsInPlay(e,null);for(var i=0;i<r.length;i++){let l=r[i];"hero"==this.gameState["arena"+e].cardSlots[l].slotType&&null!=this.gameState["arena"+e].cardSlots[l].cardInSlot&&(n+=this.gameState["arena"+e].cardSlots[l].estimatedLootPerSecond[t])}return"(est. "+(n>=0?"+":"")+this.niceNumber.transform(n)+"/sec)"}getAppContainerCssStyle(){let e="background-image: url(assets/images/backgrounds/"+this.gameState.selectedArenaNumber+".png);";if(!i.steam&&!i.steamDemo)return this.sanitizer.bypassSecurityTrustStyle(e);Math.floor((new Date).getTime()/1e3);let t=window.innerWidth-60,n=window.innerHeight-60,r=0,l=0;return t/n>=1.1?r=1.1*(l=n/580):l=(r=t/640)*(1/1.1),Math.abs(r-1)>.1&&Math.abs(l-1)>.1&&(e+=" transform: scaleX("+r+") scaleY("+l+");"),this.sanitizer.bypassSecurityTrustStyle(e)}reloadCardDataInSlots(){for(var e=1;e<=this.gameState.highestUnlockedArena;e++)for(var t=this.gameState["arena"+e].cardSlots.length,n=0;n<t;n++)this.gameState["arena"+e].cardSlots[n].cardInSlot&&(this.gameState["arena"+e].cardSlots[n].cardInSlot=o(this.gameState["arena"+e].cardSlots[n].cardInSlot.id))}processOfflineProgressTick(){for(var e=0;this.offlineProgressSecondsLeftToProcess>0&&e<3600;)e++,this.offlineProgressSecondsLeftToProcess--,this.everyTick(1);if(this.offlineProgressSecondsLeftToProcess<=0){this.isProcessingOfflineProgress=!1,clearInterval(this.offlineProgressProcessingInterval),null==this.gameTickInterval&&(this.gameTickInterval=setInterval(this.everyTick.bind(this),1e3));let e=this.getResourceDifference(this.resourcesBeforeOfflineProgress,this.gameState.resources);setTimeout(()=>{B.instance.show(this.offlineProgressSecondsTotal,this.hitMaximumOfflineTime,e)},500)}}}return e.instance=null,e})();class ie{}const le=void 0;var se=["en",[["a","p"],["AM","PM"],le],[["AM","PM"],le,le],[["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"]],le,[["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"]],le,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",le,"{1} 'at' {0}",le],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];const oe={},ae=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),ue=new r.InjectionToken("UseV4Plurals");class ce{}const de=(()=>(class extends ce{constructor(e,t){super(),this.locale=e,this.deprecatedPluralFn=t}getPluralCategory(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):function(e){return function(e){const t=e.toLowerCase().replace(/_/g,"-");let n=oe[t];if(n)return n;const r=t.split("-")[0];if(n=oe[r])return n;if("en"===r)return se;throw new Error(`Missing locale data for the locale "${e}".`)}(e)[18]}(t||this.locale)(e)){case ae.Zero:return"zero";case ae.One:return"one";case ae.Two:return"two";case ae.Few:return"few";case ae.Many:return"many";default:return"other"}}}))();class he{}const fe=(()=>(class{constructor(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._initialClasses=[]}getValue(){return null}setClass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}setNgClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Object(r["\u0275isListLikeIterable"])(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}applyChanges(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachChangedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachRemovedItem(e=>{e.previousValue&&this._toggleClass(e.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(e=>{if("string"!=typeof e.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Object(r["\u0275stringify"])(e.item)}`);this._toggleClass(e.item,!0)}),e.forEachRemovedItem(e=>this._toggleClass(e.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!0)):Object.keys(e).forEach(t=>this._toggleClass(t,!!e[t])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!1)):Object.keys(e).forEach(e=>this._toggleClass(e,!1)))}_toggleClass(e,t){(e=e.trim())&&e.split(/\s+/g).forEach(e=>{t?this._renderer.addClass(this._ngEl.nativeElement,e):this._renderer.removeClass(this._ngEl.nativeElement,e)})}}))(),pe=(()=>{class e{constructor(e){this._delegate=e}getValue(){return this._delegate.getValue()}}return e.ngDirectiveDef=void 0,e})(),me=(()=>(class extends pe{constructor(e){super(e)}set klass(e){this._delegate.setClass(e)}set ngClass(e){this._delegate.setNgClass(e)}ngDoCheck(){this._delegate.applyChanges()}}))();class ge{constructor(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}const ye=(()=>(class{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){Object(r.isDevMode)()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(e)}. `+"See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${n}' of type '${e=n,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,n,r)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new ge(null,this._ngForOf,-1,-1),r),i=new be(e,n);t.push(i)}else if(null==r)this._viewContainer.remove(n);else{const i=this._viewContainer.get(n);this._viewContainer.move(i,r);const l=new be(e,i);t.push(l)}});for(let n=0;n<t.length;n++)this._perViewChange(t[n].view,t[n].record);for(let n=0,r=this._viewContainer.length;n<r;n++){const e=this._viewContainer.get(n);e.context.index=n,e.context.count=r,e.context.ngForOf=this._ngForOf}e.forEachIdentityChange(e=>{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}))();class be{constructor(e,t){this.record=e,this.view=t}}const ve=(()=>(class{constructor(e,t){this._viewContainer=e,this._context=new we,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Ce("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Ce("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateGuard_ngIf(e,t){return!0}}))();class we{constructor(){this.$implicit=null,this.ngIf=null}}function Ce(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Object(r["\u0275stringify"])(t)}'.`)}const _e=(()=>(class{}))(),Se=new r.InjectionToken("DocumentToken");let ke=null;function xe(){return ke}class Ie{constructor(){this.resourceLoaderType=null}get attrToPropMap(){return this._attrToPropMap}set attrToPropMap(e){this._attrToPropMap=e}}class Ae extends Ie{constructor(){super(),this._animationPrefix=null,this._transitionEnd=null;try{const t=this.createElement("div",document);if(null!=this.getStyle(t,"animationName"))this._animationPrefix="";else{const e=["Webkit","Moz","O","ms"];for(let n=0;n<e.length;n++)if(null!=this.getStyle(t,e[n]+"AnimationName")){this._animationPrefix="-"+e[n].toLowerCase()+"-";break}}const n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(n).forEach(e=>{null!=this.getStyle(t,e)&&(this._transitionEnd=n[e])})}catch(e){this._animationPrefix=null,this._transitionEnd=null}}getDistributedNodes(e){return e.getDistributedNodes()}resolveAndSetHref(e,t,n){e.href=null==n?t:t+"/../"+n}supportsDOMEvents(){return!0}supportsNativeShadowDOM(){return"function"==typeof document.body.createShadowRoot}getAnimationPrefix(){return this._animationPrefix?this._animationPrefix:""}getTransitionEnd(){return this._transitionEnd?this._transitionEnd:""}supportsAnimation(){return null!=this._animationPrefix&&null!=this._transitionEnd}}const Ee={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Te=3,Me={"\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"},Re={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"},Pe=(()=>{if(r["\u0275global"].Node)return r["\u0275global"].Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))}})();class Oe extends Ae{parse(e){throw new Error("parse not implemented")}static makeCurrent(){var e;e=new Oe,ke||(ke=e)}hasProperty(e,t){return t in e}setProperty(e,t,n){e[t]=n}getProperty(e,t){return e[t]}invoke(e,t,n){e[t](...n)}logError(e){window.console&&(console.error?console.error(e):console.log(e))}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}get attrToPropMap(){return Ee}contains(e,t){return Pe.call(e,t)}querySelector(e,t){return e.querySelector(t)}querySelectorAll(e,t){return e.querySelectorAll(t)}on(e,t,n){e.addEventListener(t,n,!1)}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}createMouseEvent(e){const t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t}createEvent(e){const t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t}preventDefault(e){e.preventDefault(),e.returnValue=!1}isPrevented(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue}getInnerHTML(e){return e.innerHTML}getTemplateContent(e){return"content"in e&&this.isTemplateElement(e)?e.content:null}getOuterHTML(e){return e.outerHTML}nodeName(e){return e.nodeName}nodeValue(e){return e.nodeValue}type(e){return e.type}content(e){return this.hasProperty(e,"content")?e.content:e}firstChild(e){return e.firstChild}nextSibling(e){return e.nextSibling}parentElement(e){return e.parentNode}childNodes(e){return e.childNodes}childNodesAsList(e){const t=e.childNodes,n=new Array(t.length);for(let r=0;r<t.length;r++)n[r]=t[r];return n}clearNodes(e){for(;e.firstChild;)e.removeChild(e.firstChild)}appendChild(e,t){e.appendChild(t)}removeChild(e,t){e.removeChild(t)}replaceChild(e,t,n){e.replaceChild(t,n)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}insertBefore(e,t,n){e.insertBefore(n,t)}insertAllBefore(e,t,n){n.forEach(n=>e.insertBefore(n,t))}insertAfter(e,t,n){e.insertBefore(n,t.nextSibling)}setInnerHTML(e,t){e.innerHTML=t}getText(e){return e.textContent}setText(e,t){e.textContent=t}getValue(e){return e.value}setValue(e,t){e.value=t}getChecked(e){return e.checked}setChecked(e,t){e.checked=t}createComment(e){return this.getDefaultDocument().createComment(e)}createTemplate(e){const t=this.getDefaultDocument().createElement("template");return t.innerHTML=e,t}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createElementNS(e,t,n){return(n=n||this.getDefaultDocument()).createElementNS(e,t)}createTextNode(e,t){return(t=t||this.getDefaultDocument()).createTextNode(e)}createScriptTag(e,t,n){const r=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return r.setAttribute(e,t),r}createStyleElement(e,t){const n=(t=t||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(e,t)),n}createShadowRoot(e){return e.createShadowRoot()}getShadowRoot(e){return e.shadowRoot}getHost(e){return e.host}clone(e){return e.cloneNode(!0)}getElementsByClassName(e,t){return e.getElementsByClassName(t)}getElementsByTagName(e,t){return e.getElementsByTagName(t)}classList(e){return Array.prototype.slice.call(e.classList,0)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}hasClass(e,t){return e.classList.contains(t)}setStyle(e,t,n){e.style[t]=n}removeStyle(e,t){e.style[t]=""}getStyle(e,t){return e.style[t]}hasStyle(e,t,n){const r=this.getStyle(e,t)||"";return n?r==n:r.length>0}tagName(e){return e.tagName}attributeMap(e){const t=new Map,n=e.attributes;for(let r=0;r<n.length;r++){const e=n.item(r);t.set(e.name,e.value)}return t}hasAttribute(e,t){return e.hasAttribute(t)}hasAttributeNS(e,t,n){return e.hasAttributeNS(t,n)}getAttribute(e,t){return e.getAttribute(t)}getAttributeNS(e,t,n){return e.getAttributeNS(t,n)}setAttribute(e,t,n){e.setAttribute(t,n)}setAttributeNS(e,t,n,r){e.setAttributeNS(t,n,r)}removeAttribute(e,t){e.removeAttribute(t)}removeAttributeNS(e,t,n){e.removeAttributeNS(t,n)}templateAwareRoot(e){return this.isTemplateElement(e)?this.content(e):e}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}getBoundingClientRect(e){try{return e.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}}getTitle(e){return e.title}setTitle(e,t){e.title=t||""}elementMatches(e,t){return!!this.isElementNode(e)&&(e.matches&&e.matches(t)||e.msMatchesSelector&&e.msMatchesSelector(t)||e.webkitMatchesSelector&&e.webkitMatchesSelector(t))}isTemplateElement(e){return this.isElementNode(e)&&"TEMPLATE"===e.nodeName}isTextNode(e){return e.nodeType===Node.TEXT_NODE}isCommentNode(e){return e.nodeType===Node.COMMENT_NODE}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}hasShadowRoot(e){return null!=e.shadowRoot&&e instanceof HTMLElement}isShadowRoot(e){return e instanceof DocumentFragment}importIntoDoc(e){return document.importNode(this.templateAwareRoot(e),!0)}adoptNode(e){return document.adoptNode(e)}getHref(e){return e.getAttribute("href")}getEventKey(e){let t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),e.location===Te&&Re.hasOwnProperty(t)&&(t=Re[t]))}return Me[t]||t}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=De||(De=document.querySelector("base"))?De.getAttribute("href"):null;return null==t?null:(n=t,Ne||(Ne=document.createElement("a")),Ne.setAttribute("href",n),"/"===Ne.pathname.charAt(0)?Ne.pathname:"/"+Ne.pathname);var n}resetBaseElement(){De=null}getUserAgent(){return window.navigator.userAgent}setData(e,t,n){this.setAttribute(e,"data-"+t,n)}getData(e,t){return this.getAttribute(e,"data-"+t)}getComputedStyle(e){return getComputedStyle(e)}supportsWebAnimation(){return"function"==typeof Element.prototype.animate}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return function(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[r,i]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(r.trim()===t)return decodeURIComponent(i)}return null}(document.cookie,e)}setCookie(e,t){document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)}}let Ne,De=null;function Fe(){return!!window.history.pushState}const Ve=(()=>{class e extends ie{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=xe().getLocation(),this._history=xe().getHistory()}getBaseHrefFromDOM(){return xe().getBaseHref(this._doc)}onPopState(e){xe().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){xe().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,t,n){Fe()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){Fe()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return e.ctorParameters=(()=>[{type:void 0,decorators:[{type:r.Inject,args:[Se]}]}]),e})(),je=new r.InjectionToken("TRANSITION_ID"),Be=[{provide:r.APP_INITIALIZER,useFactory:function(e,t,n){return()=>{n.get(r.ApplicationInitStatus).donePromise.then(()=>{const n=xe();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter(t=>n.getAttribute(t,"ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[je,Se,r.Injector],multi:!0}];class Le{static init(){Object(r.setTestabilityGetter)(new Le)}addToWindow(e){r["\u0275global"].getAngularTestability=((t,n=!0)=>{const r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r}),r["\u0275global"].getAllAngularTestabilities=(()=>e.getAllTestabilities()),r["\u0275global"].getAllAngularRootElements=(()=>e.getAllRootElements()),r["\u0275global"].frameworkStabilizers||(r["\u0275global"].frameworkStabilizers=[]),r["\u0275global"].frameworkStabilizers.push(e=>{const t=r["\u0275global"].getAllAngularTestabilities();let n=t.length,i=!1;const l=function(t){i=i||t,0==--n&&e(i)};t.forEach(function(e){e.whenStable(l)})})}findTestabilityInTree(e,t,n){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:n?xe().isShadowRoot(t)?this.findTestabilityInTree(e,xe().getHost(t),!0):this.findTestabilityInTree(e,xe().parentElement(t),!0):null}}function He(e,t){"undefined"!=typeof COMPILED&&COMPILED||((r["\u0275global"].ng=r["\u0275global"].ng||{})[e]=t)}const Ue=(()=>({ApplicationRef:r.ApplicationRef,NgZone:r.NgZone}))();function ze(e){return Object(r.getDebugNode)(e)}const Ge=new r.InjectionToken("EventManagerPlugins"),We=(()=>(class{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let r=0;r<n.length;r++){const t=n[r];if(t.supports(e))return this._eventNameToPlugin.set(e,t),t}throw new Error(`No event manager plugin found for event ${e}`)}}))();class $e{constructor(e){this._doc=e}addGlobalEventListener(e,t,n){const r=xe().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,n)}}const qe=(()=>(class{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}))(),Ke=(()=>(class extends qe{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>xe().remove(e))}}))(),Ye={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/"},Qe=/%COMP%/g,Ze="_nghost-%COMP%",Xe="_ngcontent-%COMP%";function Je(e,t,n){for(let r=0;r<t.length;r++){let i=t[r];Array.isArray(i)?Je(e,i,n):(i=i.replace(Qe,e),n.push(i))}return n}function et(e){return t=>{!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}const tt=(()=>(class{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new nt(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case r.ViewEncapsulation.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new lt(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case r.ViewEncapsulation.Native:case r.ViewEncapsulation.ShadowDom:return new st(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=Je(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}))();class nt{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(Ye[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=`${r}:${t}`;const i=Ye[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=Ye[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,i){i&r.RendererStyleFlags2.DashCase?e.style.setProperty(t,n,i&r.RendererStyleFlags2.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&r.RendererStyleFlags2.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){it(t,"property"),e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return it(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,et(n)):this.eventManager.addEventListener(e,t,et(n))}}const rt=(()=>"@".charCodeAt(0))();function it(e,t){if(e.charCodeAt(0)===rt)throw new Error(`Found the synthetic ${t} ${e}. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.`)}class lt extends nt{constructor(e,t,n,r){super(e),this.component=n;const i=Je(r+"-"+n.id,n.styles,[]);t.addStyles(i),this.contentAttr=Xe.replace(Qe,r+"-"+n.id),this.hostAttr=Ze.replace(Qe,r+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class st extends nt{constructor(e,t,n,i){super(e),this.sharedStylesHost=t,this.hostEl=n,this.component=i,this.shadowRoot=i.encapsulation===r.ViewEncapsulation.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const l=Je(i.id,i.styles,[]);for(let r=0;r<l.length;r++){const e=document.createElement("style");e.textContent=l[r],this.shadowRoot.appendChild(e)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}const ot=(()=>"undefined"!=typeof Zone&&Zone.__symbol__||function(e){return"__zone_symbol__"+e})(),at=ot("addEventListener"),ut=ot("removeEventListener"),ct={},dt="__zone_symbol__propagationStopped",ht=(()=>{const e="undefined"!=typeof Zone&&Zone[ot("BLACK_LISTED_EVENTS")];if(e){const t={};return e.forEach(e=>{t[e]=e}),t}})(),ft=function(e){return!!ht&&ht.hasOwnProperty(e)},pt=function(e){const t=ct[e.type];if(!t)return;const n=this[t];if(!n)return;const r=[e];if(1===n.length){const e=n[0];return e.zone!==Zone.current?e.zone.run(e.handler,this,r):e.handler.apply(this,r)}{const t=n.slice();for(let n=0;n<t.length&&!0!==e[dt];n++){const e=t[n];e.zone!==Zone.current?e.zone.run(e.handler,this,r):e.handler.apply(this,r)}}},mt=(()=>(class extends $e{constructor(e,t,n){super(e),this.ngZone=t,n&&function(e){return"server"===e}(n)||this.patchEvent()}patchEvent(){if("undefined"==typeof Event||!Event||!Event.prototype)return;if(Event.prototype.__zone_symbol__stopImmediatePropagation)return;const e=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[dt]=!0),e&&e.apply(this,arguments)}}supports(e){return!0}addEventListener(e,t,n){let i=n;if(!e[at]||r.NgZone.isInAngularZone()&&!ft(t))e.addEventListener(t,i,!1);else{let n=ct[t];n||(n=ct[t]=ot("ANGULAR"+t+"FALSE"));let r=e[n];const l=r&&r.length>0;r||(r=e[n]=[]);const s=ft(t)?Zone.root:Zone.current;if(0===r.length)r.push({zone:s,handler:i});else{let e=!1;for(let t=0;t<r.length;t++)if(r[t].handler===i){e=!0;break}e||r.push({zone:s,handler:i})}l||e[at](t,pt,!1)}return()=>this.removeEventListener(e,t,i)}removeEventListener(e,t,n){let r=e[ut];if(!r)return e.removeEventListener.apply(e,[t,n,!1]);let i=ct[t],l=i&&e[i];if(!l)return e.removeEventListener.apply(e,[t,n,!1]);let s=!1;for(let o=0;o<l.length;o++)if(l[o].handler===n){s=!0,l.splice(o,1);break}s?0===l.length&&r.apply(e,[t,pt,!1]):e.removeEventListener.apply(e,[t,n,!1])}}))(),gt={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},yt=new r.InjectionToken("HammerGestureConfig"),bt=new r.InjectionToken("HammerLoader"),vt=(()=>(class{constructor(){this.events=[],this.overrides={}}buildHammer(e){const t=new Hammer(e,this.options);t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0});for(const n in this.overrides)t.get(n).set(this.overrides[n]);return t}}))(),wt=(()=>(class extends $e{constructor(e,t,n,r){super(e),this._config=t,this.console=n,this.loader=r}supports(e){return!(!gt.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader&&(this.console.warn(`The "${e}" event cannot be bound because Hammer.JS is not `+"loaded and no custom loader has been specified."),1))}addEventListener(e,t,n){const r=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){let r=!1,i=()=>{r=!0};return this.loader().then(()=>{if(!window.Hammer)return this.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(i=(()=>{}));r||(i=this.addEventListener(e,t,n))}).catch(()=>{this.console.warn(`The "${t}" event cannot be bound because the custom `+"Hammer.JS loader failed."),i=(()=>{})}),()=>{i()}}return r.runOutsideAngular(()=>{const i=this._config.buildHammer(e),l=function(e){r.runGuarded(function(){n(e)})};return i.on(t,l),()=>{i.off(t,l),"function"==typeof i.destroy&&i.destroy()}})}isCustomEvent(e){return this._config.events.indexOf(e)>-1}}))(),Ct=["alt","control","meta","shift"],_t={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},St=(()=>{class e extends $e{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,r){const i=e.parseEventName(n),l=e.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>xe().onAndCancel(t,i.domEventName,l))}static parseEventName(t){const n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const i=e._normalizeKey(n.pop());let l="";if(Ct.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),l+=e+".")}),l+=i,0!=n.length||0===i.length)return null;const s={};return s.domEventName=r,s.fullKey=l,s}static getEventFullKey(e){let t="",n=xe().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Ct.forEach(r=>{r!=n&&(0,_t[r])(e)&&(t+=r+".")}),t+=n}static eventCallback(t,n,r){return i=>{e.getEventFullKey(i)===t&&r.runGuarded(()=>n(i))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e})();class kt{}const xt=(()=>(class extends kt{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case r.SecurityContext.NONE:return t;case r.SecurityContext.HTML:return t instanceof At?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),Object(r["\u0275_sanitizeHtml"])(this._doc,String(t)));case r.SecurityContext.STYLE:return t instanceof Et?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),Object(r["\u0275_sanitizeStyle"])(t));case r.SecurityContext.SCRIPT:if(t instanceof Tt)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"Script"),new Error("unsafe value used in a script context");case r.SecurityContext.URL:return t instanceof Rt||t instanceof Mt?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"URL"),Object(r["\u0275_sanitizeUrl"])(String(t)));case r.SecurityContext.RESOURCE_URL:if(t instanceof Rt)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see http://g.co/ng/security#xss)`)}}checkNotSafeValue(e,t){if(e instanceof It)throw new Error(`Required a safe ${t}, got a ${e.getTypeName()} `+"(see http://g.co/ng/security#xss)")}bypassSecurityTrustHtml(e){return new At(e)}bypassSecurityTrustStyle(e){return new Et(e)}bypassSecurityTrustScript(e){return new Tt(e)}bypassSecurityTrustUrl(e){return new Mt(e)}bypassSecurityTrustResourceUrl(e){return new Rt(e)}}))();class It{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}`+" (see http://g.co/ng/security#xss)"}}class At extends It{getTypeName(){return"HTML"}}class Et extends It{getTypeName(){return"Style"}}class Tt extends It{getTypeName(){return"Script"}}class Mt extends It{getTypeName(){return"URL"}}class Rt extends It{getTypeName(){return"ResourceURL"}}const Pt=[{provide:r.PLATFORM_ID,useValue:"browser"},{provide:r.PLATFORM_INITIALIZER,useValue:function(){Oe.makeCurrent(),Le.init()},multi:!0},{provide:ie,useClass:Ve,deps:[Se]},{provide:Se,useFactory:function(){return document},deps:[]}],Ot=Object(r.createPlatformFactory)(r.platformCore,"browser",Pt);function Nt(){return new r.ErrorHandler}const Dt=(()=>{class e{constructor(e){if(e)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(t){return{ngModule:e,providers:[{provide:r.APP_ID,useValue:t.appId},{provide:je,useExisting:r.APP_ID},Be]}}}return e})();"undefined"!=typeof window&&window;var Ft=n("cp0P"),Vt=n("Cfvw"),jt=n("lJxs");const Bt=new r.InjectionToken("NgValueAccessor"),Lt=(()=>(class{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=(e=>{}),this.onTouched=(()=>{})}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}))(),Ht=new r.InjectionToken("CompositionEventMode"),Ut=(()=>(class{constructor(e,t,n){this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=(e=>{}),this.onTouched=(()=>{}),this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=xe()?xe().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}))();class zt{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}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}class Gt extends zt{get formDirective(){return null}get path(){return null}}function Wt(){throw new Error("unimplemented")}class $t extends zt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return Wt()}get asyncValidator(){return Wt()}}const qt=(()=>(class extends class{constructor(e){this._cd=e}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}{constructor(e){super(e)}}))();function Kt(e){return null==e||0===e.length}const Yt=new r.InjectionToken("NgValidators"),Qt=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[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])?)*$/;class Zt{static min(e){return t=>{if(Kt(t.value)||Kt(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}static max(e){return t=>{if(Kt(t.value)||Kt(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}static required(e){return Kt(e.value)?{required:!0}:null}static requiredTrue(e){return!0===e.value?null:{required:!0}}static email(e){return Kt(e.value)?null:Qt.test(e.value)?null:{email:!0}}static minLength(e){return t=>{if(Kt(t.value))return null;const n=t.value?t.value.length:0;return n<e?{minlength:{requiredLength:e,actualLength:n}}:null}}static maxLength(e){return t=>{const n=t.value?t.value.length:0;return n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}static pattern(e){if(!e)return Zt.nullValidator;let t,n;return"string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),e=>{if(Kt(e.value))return null;const r=e.value;return t.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}static nullValidator(e){return null}static compose(e){if(!e)return null;const t=e.filter(Xt);return 0==t.length?null:function(e){return en(function(e,n){return t.map(t=>t(e))}(e))}}static composeAsync(e){if(!e)return null;const t=e.filter(Xt);return 0==t.length?null:function(e){const n=function(e,n){return t.map(t=>t(e))}(e).map(Jt);return Object(Ft.a)(n).pipe(Object(jt.a)(en))}}}function Xt(e){return null!=e}function Jt(e){const t=Object(r["\u0275isPromise"])(e)?Object(Vt.a)(e):e;if(!Object(r["\u0275isObservable"])(t))throw new Error("Expected validator to return Promise or Observable.");return t}function en(e){const t=e.reduce((e,t)=>null!=t?Object.assign({},e,t):e,{});return 0===Object.keys(t).length?null:t}function tn(e){return e.validate?t=>e.validate(t):e}function nn(e){return e.validate?t=>e.validate(t):e}const rn=(()=>(class{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=(e=>{}),this.onTouched=(()=>{})}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=(t=>{e(""==t?null:parseFloat(t))})}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}))(),ln=(()=>(class{constructor(){this._accessors=[]}add(e,t){this._accessors.push([e,t])}remove(e){for(let t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}select(e){this._accessors.forEach(t=>{this._isSameGroup(t,e)&&t[1]!==e&&t[1].fireUncheck(e.value)})}_isSameGroup(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}))(),sn=(()=>(class{constructor(e,t,n,r){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=r,this.onChange=(()=>{}),this.onTouched=(()=>{})}ngOnInit(){this._control=this._injector.get($t),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=(()=>{e(this.value),this._registry.select(this)})}fireUncheck(e){this.writeValue(e)}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}_throwNameError(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: <input type="radio" formControlName="food" name="food">\n ')}}))(),on=(()=>(class{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=(e=>{}),this.onTouched=(()=>{})}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}registerOnChange(e){this.onChange=(t=>{e(""==t?null:parseFloat(t))})}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}))(),an={formControlName:'\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',formGroupName:'\n <div [formGroup]="myGroup">\n <div formGroupName="person">\n <input formControlName="firstName">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',formArrayName:'\n <div [formGroup]="myGroup">\n <div formArrayName="cities">\n <div *ngFor="let city of cityArray.controls; index as i">\n <input [formControlName]="i">\n </div>\n </div>\n </div>\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });',ngModelGroup:'\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>',ngModelWithFormGroup:'\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n </div>\n '};function un(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}const cn=(()=>(class{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=(e=>{}),this.onTouched=(()=>{}),this._compareWith=r["\u0275looseIdentical"]}set compareWith(e){if("function"!=typeof e)throw new Error(`compareWith must be a function, but received ${JSON.stringify(e)}`);this._compareWith=e}writeValue(e){this.value=e;const t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=un(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(e){this.onChange=(t=>{this.value=this._getOptionValue(t),e(this.value)})}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t),e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}}))(),dn=(()=>(class{constructor(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(un(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}))();function hn(e,t){return null==e?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}const fn=(()=>(class{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=(e=>{}),this.onTouched=(()=>{}),this._compareWith=r["\u0275looseIdentical"]}set compareWith(e){if("function"!=typeof e)throw new Error(`compareWith must be a function, but received ${JSON.stringify(e)}`);this._compareWith=e}writeValue(e){let t;if(this.value=e,Array.isArray(e)){const n=e.map(e=>this._getOptionId(e));t=((e,t)=>{e._setSelected(n.indexOf(t.toString())>-1)})}else t=((e,t)=>{e._setSelected(!1)});this._optionMap.forEach(t)}registerOnChange(e){this.onChange=(t=>{const n=[];if(t.hasOwnProperty("selectedOptions")){const e=t.selectedOptions;for(let t=0;t<e.length;t++){const r=e.item(t),i=this._getOptionValue(r.value);n.push(i)}}else{const e=t.options;for(let t=0;t<e.length;t++){const r=e.item(t);if(r.selected){const e=this._getOptionValue(r.value);n.push(e)}}}this.value=n,e(n)})}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(e){const t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t)._value,e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}}))(),pn=(()=>(class{constructor(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(hn(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(hn(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))}}))();function mn(e,t){return[...t.path,e]}function gn(e,t){e||bn(t,"Cannot find control with"),t.valueAccessor||bn(t,"No value accessor for form control with"),e.validator=Zt.compose([e.validator,t.validator]),e.asyncValidator=Zt.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&yn(e,t)})}(e,t),function(e,t){e.registerOnChange((e,n)=>{t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&yn(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange(e=>{t.valueAccessor.setDisabledState(e)}),t._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>e.updateValueAndValidity())}),t._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>e.updateValueAndValidity())})}function yn(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function bn(e,t){let n;throw n=e.path.length>1?`path: '${e.path.join(" -> ")}'`:e.path[0]?`name: '${e.path}'`:"unspecified name attribute",new Error(`${t} ${n}`)}function vn(e){return null!=e?Zt.compose(e.map(tn)):null}function wn(e){return null!=e?Zt.composeAsync(e.map(nn)):null}const Cn=[Lt,on,rn,cn,fn,sn],_n="VALID",Sn="INVALID",kn="PENDING",xn="DISABLED";function In(e){const t=En(e)?e.validators:e;return Array.isArray(t)?vn(t):t||null}function An(e,t){const n=En(t)?t.asyncValidators:e;return Array.isArray(n)?wn(n):n||null}function En(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class Tn{constructor(e,t){this.validator=e,this.asyncValidator=t,this._onCollectionChange=(()=>{}),this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}get parent(){return this._parent}get valid(){return this.status===_n}get invalid(){return this.status===Sn}get pending(){return this.status==kn}get disabled(){return this.status===xn}get enabled(){return this.status!==xn}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this.validator=In(e)}setAsyncValidators(e){this.asyncValidator=An(e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=kn,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=xn,this.errors=null,this._forEachChild(t=>{t.disable(Object.assign({},e,{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=_n,this._forEachChild(t=>{t.enable(Object.assign({},e,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==_n&&this.status!==kn||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?xn:_n}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=kn;const t=Jt(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(t=>this.setErrors(t,{emitEvent:e}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function(e,t,n){return null==t?null:(t instanceof Array||(t=t.split(".")),t instanceof Array&&0===t.length?null:t.reduce((e,t)=>e instanceof Rn?e.controls.hasOwnProperty(t)?e.controls[t]:null:e instanceof Pn&&e.at(t)||null,e))}(this,e)}getError(e,t){const n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new r.EventEmitter,this.statusChanges=new r.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?xn:this.errors?Sn:this._anyControlsHaveStatus(kn)?kn:this._anyControlsHaveStatus(Sn)?Sn:_n}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){En(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class Mn extends Tn{constructor(e=null,t,n){super(In(t),An(n,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(e=>e(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=null,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=(()=>{})}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class Rn extends Tn{constructor(e,t,n){super(In(t),An(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){Object.keys(e).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e={},t={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t instanceof Mn?t.value:t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(t=>e(this.controls[t],t))}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){let t=!1;return this._forEachChild((n,r)=>{t=t||this.contains(r)&&e(n)}),t}_reduceValue(){return this._reduceChildren({},(e,t,n)=>((t.enabled||this.disabled)&&(e[n]=t.value),e))}_reduceChildren(e,t){let n=e;return this._forEachChild((e,r)=>{n=t(n,e,r)}),n}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class Pn extends Tn{constructor(e,t,n){super(In(t),An(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(e){return this.controls[e]}push(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}insert(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}removeAt(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){this._checkAllValuesPresent(e),e.forEach((e,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e.forEach((e,n)=>{this.at(n)&&this.at(n).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e=[],t={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof Mn?e.value:e.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let e=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error(`Cannot find form control at index ${e}`)}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const On=(()=>Promise.resolve(null))(),Nn=(()=>(class extends Gt{constructor(e,t){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new r.EventEmitter,this.form=new Rn({},vn(e),wn(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){On.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),gn(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){On.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),function(t,n){const r=t.indexOf(e);r>-1&&t.splice(r,1)}(this._directives)})}addFormGroup(e){On.then(()=>{const t=this._findContainer(e.path),n=new Rn({});(function(e,t){null==e&&bn(t,"Cannot find control with"),e.validator=Zt.compose([e.validator,t.validator]),e.asyncValidator=Zt.composeAsync([e.asyncValidator,t.asyncValidator])})(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){On.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){On.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,t=this._directives,this.form._syncPendingControls(),t.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)}),this.ngSubmit.emit(e),!1;var t}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}))();class Dn{static modelParentException(){throw new Error(`\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup's partner directive "formControlName" instead. Example:\n\n ${an.formControlName}\n\n Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n Example:\n\n ${an.ngModelWithFormGroup}`)}static formGroupNameException(){throw new Error(`\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n ${an.formGroupName}\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ${an.ngModelGroup}`)}static missingNameException(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: <input [(ngModel)]="person.firstName" name="first">\n Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')}static modelGroupParentException(){throw new Error(`\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n ${an.formGroupName}\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ${an.ngModelGroup}`)}static ngFormWarning(){console.warn("\n It looks like you're using 'ngForm'.\n\n Support for using the 'ngForm' element selector has been deprecated in Angular v6 and will be removed\n in Angular v9.\n\n Use 'ng-form' instead.\n\n Before:\n <ngForm #myForm=\"ngForm\">\n\n After:\n <ng-form #myForm=\"ngForm\">\n ")}}const Fn=new r.InjectionToken("NgFormSelectorWarning");class Vn extends Gt{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return mn(this.name,this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return vn(this._validators)}get asyncValidator(){return wn(this._asyncValidators)}_checkParentType(){}}const jn=(()=>{class e extends Vn{constructor(e,t,n){super(),this._parent=e,this._validators=t,this._asyncValidators=n}_checkParentType(){this._parent instanceof e||this._parent instanceof Nn||Dn.modelGroupParentException()}}return e})(),Bn=(()=>Promise.resolve(null))(),Ln=(()=>(class extends $t{constructor(e,t,n,i){super(),this.control=new Mn,this._registered=!1,this.update=new r.EventEmitter,this._parent=e,this._rawValidators=t||[],this._rawAsyncValidators=n||[],this.valueAccessor=function(e,t){if(!t)return null;Array.isArray(t)||bn(e,"Value accessor was not provided as an array for form control with");let n=void 0,r=void 0,i=void 0;return t.forEach(t=>{t.constructor===Ut?n=t:function(e){return Cn.some(t=>e.constructor===t)}(t)?(r&&bn(e,"More than one built-in value accessor matches form control with"),r=t):(i&&bn(e,"More than one custom value accessor matches form control with"),i=t)}),i||r||n||(bn(e,"No valid value accessor for form control with"),null)}(this,i)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object(r["\u0275looseIdentical"])(t,n.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?mn(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return vn(this._rawValidators)}get asyncValidator(){return wn(this._rawAsyncValidators)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){gn(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof jn)&&this._parent instanceof Vn?Dn.formGroupNameException():this._parent instanceof jn||this._parent instanceof Nn||Dn.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Dn.missingNameException()}_updateValue(e){Bn.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const t=e.isDisabled.currentValue,n=""===t||t&&"false"!==t;Bn.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}))(),Hn=(()=>(class{ngOnChanges(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}validate(e){return null!=this.maxlength?this._validator(e):null}registerOnValidatorChange(e){this._onChange=e}_createValidator(){this._validator=Zt.maxLength(parseInt(this.maxlength,10))}}))(),Un=(()=>(class{}))(),zn=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Fn,useValue:t.warnOnDeprecatedNgFormSelector}]}}}return e})();var Gn=n("q6c6"),Wn=n("ZbGM");class $n{constructor(){this.cardsPerRow=3,this.slotType="normal"}showTooltip(){}hideTooltip(){j.instance.hideTooltip()}cardDroppedHere(e){let t=e.dragData.cardData;this.isUnlocked&&(e.dragData.isCollectionCard||re.instance.removeCardFromArena(e.dragData.arenaNumber,e.dragData.slotNumber,t.id),re.instance.tryToPlaceCardInEmptySlot(this.arenaNumber,this.slotNumber,t,!0))}clicked(){this.isUnlocked?re.instance.isSelectingEmptySlot&&null!=re.instance.cardIdToPutInEmptySlot&&re.instance.tryToPlaceCardInEmptySlot(this.arenaNumber,this.slotNumber,o(re.instance.cardIdToPutInEmptySlot),!0):re.instance.tryToBuyEmptySlot(this.arenaNumber,this.slotNumber)}}var qn=r["\u0275crt"]({encapsulation:0,styles:[[""]],data:{}});function Kn(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"div",[["class","empty-card-slot left-float"],["droppable",""]],[[2,"hero",null],[2,"monster",null],[2,"boost",null],[2,"normal",null],[2,"land",null],[2,"water",null],[2,"clickable",null]],[[null,"click"],[null,"onDrop"],[null,"drop"]],function(e,t,n){var i=!0,l=e.component;return"drop"===t&&(i=!1!==r["\u0275nov"](e,1).drop(n)&&i),"click"===t&&(i=!1!==l.clicked()&&i),"onDrop"===t&&(i=!1!==l.cardDroppedHere(n)&&i),i},null,null)),r["\u0275did"](1,212992,null,0,Gn.Droppable,[r.ElementRef,r.Renderer2,Wn.NgDragDropService,r.NgZone],{dragOverClass:[0,"dragOverClass"]},{onDrop:"onDrop"})],function(e,t){e(t,1,0,"drag-target-border")},function(e,t){var n=t.component;e(t,0,0,"hero"==n.slotType,"monster"==n.slotType,"boost"==n.slotType,"normal"==n.slotType,"land"==n.slotType,"water"==n.slotType,n.clickable)})}function Yn(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,8,"div",[["class","empty-card-slot left-float"]],[[2,"hero",null],[2,"monster",null],[2,"boost",null],[2,"normal",null],[2,"land",null],[2,"water",null],[2,"clickable",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.clicked()&&r),r},null,null)),(e()(),r["\u0275eld"](1,0,null,null,7,"div",[["style","padding: 10px;"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" Unlock slot: "])),(e()(),r["\u0275eld"](3,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](4,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](5,0,null,null,3,"div",[["style","display: flex;"]],null,null,null,null,null)),(e()(),r["\u0275eld"](6,0,null,null,0,"img",[["class","resource-icon"]],[[8,"src",4],[8,"alt",0],[8,"title",0]],null,null,null,null)),(e()(),r["\u0275ted"](7,null,["\xa0\xa0",""])),r["\u0275ppd"](8,1)],null,function(e,t){var n=t.component;e(t,0,0,"hero"==n.slotType,"monster"==n.slotType,"boost"==n.slotType,"normal"==n.slotType,"land"==n.slotType,"water"==n.slotType,n.clickable),e(t,6,0,r["\u0275inlineInterpolate"](1,"assets/images/resources/",n.unlockCurrency,".png"),r["\u0275inlineInterpolate"](1,"",n.unlockCurrency,""),r["\u0275inlineInterpolate"](1,"",n.unlockCurrency,""));var i=r["\u0275unv"](t,7,0,e(t,8,0,r["\u0275nov"](t.parent,0),n.unlockPrice));e(t,7,0,i)})}function Qn(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,0,"div",[["class","break-float"]],null,null,null,null,null))],null,null)}function Zn(e){return r["\u0275vid"](0,[r["\u0275pid"](0,H,[]),(e()(),r["\u0275and"](16777216,null,null,1,null,Kn)),r["\u0275did"](2,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Yn)),r["\u0275did"](4,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Qn)),r["\u0275did"](6,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,2,0,n.isUnlocked),e(t,4,0,!n.isUnlocked),e(t,6,0,n.x==n.cardsPerRow-1)},null)}const Xn=(()=>(class{constructor(){this._optionalClasses=[]}ngOnInit(){if(!this.name)throw new Error('Missing "name" property for Angular2 Font Awesome component');this.size&&this.addToOptionalClasses(`fa-${this.size}`),this.fixed&&this.addToOptionalClasses("fa-fw"),this.animation&&this.addToOptionalClasses(`fa-${this.animation}`),this.rotate&&this.addToOptionalClasses("number"==typeof this.rotate?`fa-rotate-${this.rotate}`:`fa-flip-${this.rotate}`),this.inverse&&this.addToOptionalClasses("fa-inverse")}get optionalClasses(){return this._optionalClasses}addToOptionalClasses(e){this._optionalClasses.push(e)}}))(),Jn=(()=>(class{constructor(){}}))();new r.InjectionToken("Location Initialized"),new r.InjectionToken("appBaseHref");var er=function(){function e(){}return e.prototype.createSubscription=function(e,t){return e.subscribe({next:t,error:function(e){throw e}})},e.prototype.dispose=function(e){e.unsubscribe()},e.prototype.onDestroy=function(e){e.unsubscribe()},e}();new(function(){function e(){}return e.prototype.createSubscription=function(e,t){return e.then(t,function(e){throw e})},e.prototype.dispose=function(e){},e.prototype.onDestroy=function(e){},e}()),new er;var tr,nr=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,rr={yMMMdjms:fr(hr([cr("year",1),dr("month",3),cr("day",1),cr("hour",1),cr("minute",1),cr("second",1)])),yMdjm:fr(hr([cr("year",1),cr("month",1),cr("day",1),cr("hour",1),cr("minute",1)])),yMMMMEEEEd:fr(hr([cr("year",1),dr("month",4),dr("weekday",4),cr("day",1)])),yMMMMd:fr(hr([cr("year",1),dr("month",4),cr("day",1)])),yMMMd:fr(hr([cr("year",1),dr("month",3),cr("day",1)])),yMd:fr(hr([cr("year",1),cr("month",1),cr("day",1)])),jms:fr(hr([cr("hour",1),cr("second",1),cr("minute",1)])),jm:fr(hr([cr("hour",1),cr("minute",1)]))},ir={yyyy:fr(cr("year",4)),yy:fr(cr("year",2)),y:fr(cr("year",1)),MMMM:fr(dr("month",4)),MMM:fr(dr("month",3)),MM:fr(cr("month",2)),M:fr(cr("month",1)),LLLL:fr(dr("month",4)),L:fr(dr("month",1)),dd:fr(cr("day",2)),d:fr(cr("day",1)),HH:lr(sr(fr(ur(cr("hour",2),!1)))),H:sr(fr(ur(cr("hour",1),!1))),hh:lr(sr(fr(ur(cr("hour",2),!0)))),h:sr(fr(ur(cr("hour",1),!0))),jj:fr(cr("hour",2)),j:fr(cr("hour",1)),mm:lr(fr(cr("minute",2))),m:fr(cr("minute",1)),ss:lr(fr(cr("second",2))),s:fr(cr("second",1)),sss:fr(cr("second",3)),EEEE:fr(dr("weekday",4)),EEE:fr(dr("weekday",3)),EE:fr(dr("weekday",2)),E:fr(dr("weekday",1)),a:(tr=fr(ur(cr("hour",1),!0)),function(e,t){return tr(e,t).split(" ")[1]}),Z:ar("short"),z:ar("long"),ww:fr({}),w:fr({}),G:fr(dr("era",1)),GG:fr(dr("era",2)),GGG:fr(dr("era",3)),GGGG:fr(dr("era",4))};function lr(e){return function(t,n){var r=e(t,n);return 1==r.length?"0"+r:r}}function sr(e){return function(t,n){return e(t,n).split(" ")[0]}}function or(e,t,n){return new Intl.DateTimeFormat(t,n).format(e).replace(/[\u200e\u200f]/g,"")}function ar(e){var t={hour:"2-digit",hour12:!1,timeZoneName:e};return function(e,n){var r=or(e,n,t);return r?r.substring(3):""}}function ur(e,t){return e.hour12=t,e}function cr(e,t){var n={};return n[e]=2===t?"2-digit":"numeric",n}function dr(e,t){var n={};return n[e]=t<4?t>1?"short":"narrow":"long",n}function hr(e){return Object.assign.apply(Object,[{}].concat(e))}function fr(e){return function(t,n){return or(t,n,e)}}var pr=new Map,mr=function(){function e(){}return e.format=function(e,t,n){return function(e,t,n){var r=rr[e];if(r)return r(t,n);var i=e,l=pr.get(i);if(!l){l=[];var s=void 0;nr.exec(e);for(var o=e;o;)(s=nr.exec(o))?o=(l=l.concat(s.slice(1))).pop():(l.push(o),o=null);pr.set(i,l)}return l.reduce(function(e,r){var i=ir[r];return e+(i?i(t,n):function(e){return"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}(r))},"")}(n,e,t)},e}(),gr=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;function yr(e){return e instanceof Date&&!isNaN(e.valueOf())}function br(e){return parseInt(e,10)}(function(){function e(e){this._locale=e}return e.prototype.transform=function(t,n){var i,l;if(void 0===n&&(n="mediumDate"),null==(l=t)||""===l||t!=t)return null;if("string"==typeof t&&(t=t.trim()),yr(t))i=t;else if(function(e){return!isNaN(e-parseFloat(e))}(t))i=new Date(parseFloat(t));else if("string"==typeof t&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){var s=t.split("-").map(function(e){return parseInt(e,10)});i=new Date(s[0],s[1]-1,s[2])}else i=new Date(t);if(!yr(i)){var o=void 0;if("string"!=typeof t||!(o=t.match(gr)))throw function(e,t){return Error("InvalidPipeArgument: '"+t+"' for pipe '"+Object(r["\u0275stringify"])(e)+"'")}(e,t);i=function(e){var t=new Date(0),n=0,r=0,i=e[8]?t.setUTCFullYear:t.setFullYear,l=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=br(e[9]+e[10]),r=br(e[9]+e[11])),i.call(t,br(e[1]),br(e[2])-1,br(e[3]));var s=br(e[4]||"0")-n,o=br(e[5]||"0")-r,a=br(e[6]||"0"),u=Math.round(1e3*parseFloat("0."+(e[7]||0)));return l.call(t,s,o,a,u),t}(o)}return mr.format(i,this._locale,e._ALIASES[n]||n)},e}())._ALIASES={medium:"yMMMdjms",short:"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},new r.Version("4.1.3");const vr=(()=>(class{}))();var wr=r["\u0275crt"]({encapsulation:0,styles:[""],data:{}});function Cr(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,2,"i",[["aria-hidden","true"]],null,null,null,null,null)),r["\u0275prd"](512,null,he,fe,[r.IterableDiffers,r.KeyValueDiffers,r.ElementRef,r.Renderer2]),r["\u0275did"](2,278528,null,0,me,[he],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null)],function(e,t){var n=t.component;e(t,2,0,r["\u0275inlineInterpolate"](1,"fa fa-",n.name,""),n.optionalClasses)},null)}class _r{constructor(e,t){this.sanitizer=e,this.niceNumber=t,this.monsterBoostCard=null}getStyle(){let e=0,t=0;e=-300*Math.sin(.785*(1-this.secondsRemainingInAnimation)),t=-20*Math.sin(.785*(1-this.secondsRemainingInAnimation));let n=Math.min(1,.5+this.secondsRemainingInAnimation);return this.sanitizer.bypassSecurityTrustStyle("position: absolute; top: "+e+"px; left: "+t+"px; opacity: "+n)}getHtml(){let e="";switch(this.arenaNumber){case 4:let t=re.instance.rankAdjustedModifier(this.cardData.id,this.arenaNumber,4),n=re.instance.rankAdjustedModifier(this.cardData.id,this.arenaNumber,5);t*=re.instance.UniversalAura(this.arenaNumber),n*=re.instance.UniversalAura(this.arenaNumber),this.monsterBoostCard&&(t*=1+re.instance.rankAdjustedModifier(this.monsterBoostCard.id,this.arenaNumber,4)*re.instance.UniversalAura(this.arenaNumber),n*=1+re.instance.rankAdjustedModifier(this.monsterBoostCard.id,this.arenaNumber,5)*re.instance.UniversalAura(this.arenaNumber)),t>0&&(e+="<div>"+this.niceNumber.transform(t)+"</div><img src='assets/images/resources/gold.png' alt='gold' class='loot-drop-animation-resource-icon'><br>"),n>0&&(e+="<div>"+this.niceNumber.transform(n)+"</div><img src='assets/images/resources/wood.png' alt='wood' class='loot-drop-animation-resource-icon'>")}return e}}var Sr=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function kr(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,0,"div",[["class","loot-drop-animation"]],[[8,"style",2],[8,"innerHTML",1]],null,null,null,null))],null,function(e,t){var n=t.component;e(t,0,0,n.getStyle(),n.getHtml())})}var xr=n("UmOi");class Ir{constructor(e,t){this.sanitizer=e,this.niceNumber=t,this.clickable=!0,this.isBoosterResultCard=!1,this.cardsPerRow=3,this.displaySize=3,this.rank=1,this.currentHP=0,this.maxHP=0,this.damageTakenThisRound=0,this.foughtInLastTick=!1,this.droppedLootLastTick=!1,this.damageOpacityVal=1,this.updateDamageOpacityInterval=null,this.isAbleToDrop=(e=>!this.isCollectionCard&&!this.isBoosterResultCard)}ngOnInit(){this.updateDamageOpacityInterval=setInterval(this.updateDamageOpacityVal.bind(this),16)}ngOnDestroy(){null!=this.updateDamageOpacityInterval&&(clearInterval(this.updateDamageOpacityInterval),this.updateDamageOpacityInterval=null)}showTooltip(){j.instance.showTooltip(this.prepareDescription())}hideTooltip(){j.instance.hideTooltip()}backgroundImageVal(){let e="assets/images/card_foreground.png";return"hero"==this.cardData.cardType?e="assets/images/card_foreground_hero.png":"monster"==this.cardData.cardType?e="assets/images/card_foreground_monster.png":"boost"==this.cardData.cardType&&(e="assets/images/card_foreground_boost.png"),this.sanitizer.bypassSecurityTrustStyle("url("+e+"), url("+this.cardData.imageFilename+")")}clicked(){this.clickable&&(this.isCollectionCard?re.instance.isSelectingEmptySlot&&re.instance.cardIdToPutInEmptySlot==this.cardData.id?re.instance.stopChoosingEmptySlotForCard():re.instance.startChoosingEmptySlotForCard(this.cardData.id):(re.instance.removeCardFromArena(this.arenaNumber,this.slotNumber,this.cardData.id),re.instance.isSelectingEmptySlot?re.instance.tryToPlaceCardInEmptySlot(this.arenaNumber,this.slotNumber,o(re.instance.cardIdToPutInEmptySlot),!0):G.instance.playSound("removecard")))}prepareDescription(){let e=this.cardData.description;if(-1!=e.indexOf("{modifier0%}")&&(e=e.replace("{modifier0%}",this.niceNumber.transform(100*re.instance.rankAdjustedModifier(this.cardData.id,re.instance.gameState.selectedArenaNumber,0)))),-1!=e.indexOf("{modifier1%}")&&(e=e.replace("{modifier1%}",this.niceNumber.transform(100*re.instance.rankAdjustedModifier(this.cardData.id,re.instance.gameState.selectedArenaNumber,1)))),-1!=e.indexOf("{modifier2%}")&&(e=e.replace("{modifier2%}",this.niceNumber.transform(100*re.instance.rankAdjustedModifier(this.cardData.id,re.instance.gameState.selectedArenaNumber,2)))),-1!=e.indexOf("{modifier3%}")&&(e=e.replace("{modifier3%}",this.niceNumber.transform(100*re.instance.rankAdjustedModifier(this.cardData.id,re.instance.gameState.selectedArenaNumber,3)))),-1!=e.indexOf("{modifier4%}")&&(e=e.replace("{modifier4%}",this.niceNumber.transform(100*re.instance.rankAdjustedModifier(this.cardData.id,re.instance.gameState.selectedArenaNumber,4)))),-1!=e.indexOf("{modifier5%}")&&(e=e.replace("{modifier5%}",this.niceNumber.transform(100*re.instance.rankAdjustedModifier(this.cardData.id,re.instance.gameState.selectedArenaNumber,5)))),-1!=e.indexOf("{modifier0}")&&(e=e.replace("{modifier0}",this.niceNumber.transform(re.instance.UniversalAura(re.instance.gameState.selectedArenaNumber)*re.instance.rankAdjustedModifier(this.cardData.id,re.instance.gameState.selectedArenaNumber,0)))),-1!=e.indexOf("{modifier1}")&&(e=e.replace("{modifier1}",this.niceNumber.transform(re.instance.UniversalAura(re.instance.gameState.selectedArenaNumber)*re.instance.rankAdjustedModifier(this.cardData.id,re.instance.gameState.selectedArenaNumber,1)))),-1!=e.indexOf("{modifier2}")&&(e=e.replace("{modifier2}",this.niceNumber.transform(re.instance.UniversalAura(re.instance.gameState.selectedArenaNumber)*re.instance.rankAdjustedModifier(this.cardData.id,re.instance.gameState.selectedArenaNumber,2)))),-1!=e.indexOf("{modifier3}")&&(e=e.replace("{modifier3}",this.niceNumber.transform(re.instance.UniversalAura(re.instance.gameState.selectedArenaNumber)*re.instance.rankAdjustedModifier(this.cardData.id,re.instance.gameState.selectedArenaNumber,3)))),-1!=e.indexOf("{modifier4}")&&(e=e.replace("{modifier4}",this.niceNumber.transform(re.instance.UniversalAura(re.instance.gameState.selectedArenaNumber)*re.instance.rankAdjustedModifier(this.cardData.id,re.instance.gameState.selectedArenaNumber,4)))),-1!=e.indexOf("{modifier5}")&&(e=e.replace("{modifier5}",this.niceNumber.transform(re.instance.UniversalAura(re.instance.gameState.selectedArenaNumber)*re.instance.rankAdjustedModifier(this.cardData.id,re.instance.gameState.selectedArenaNumber,5)))),!this.isCollectionCard&&!this.isBoosterResultCard&&"hero"==this.cardData.cardType&&null!=this.slotNumber){let t=re.instance.gameState["arena"+this.arenaNumber].cardSlots[this.slotNumber].estimatedLootPerSecond;(t.gold>0||t.wood>0)&&(e+="&nbsp;&nbsp;(est. +"+this.niceNumber.transform(t.gold)+" gold, +"+this.niceNumber.transform(t.wood)+" wood/sec)")}return e}mouseOver(){this.isCollectionCard||this.isBoosterResultCard||(re.instance.hoveredCardSlot=this.slotNumber),this.showTooltip()}mouseOut(){re.instance.hoveredCardSlot==this.slotNumber&&(re.instance.hoveredCardSlot=null),this.hideTooltip()}shouldShowYellowEffectBorder(){return this.shouldShowGreenEffectBorder()&&this.shouldShowRedEffectBorder()}shouldShowGreenEffectBorder(){if(this.isCollectionCard||this.isBoosterResultCard||!this.cardData.isProducer&&"hero"!=this.cardData.cardType&&"monster"!=this.cardData.cardType)return!1;if("hero"==this.cardData.cardType){if(null==re.instance.hoveredCardSlot)return!1;let e=te(this.arenaNumber,re.instance.gameState["arena"+this.arenaNumber].cardSlots[this.slotNumber]);if(e)return re.instance.gameState["arena"+this.arenaNumber].cardSlots[re.instance.hoveredCardSlot]==e}else if("monster"==this.cardData.cardType){if(null==re.instance.hoveredCardSlot)return!1;let e=ne(this.arenaNumber,re.instance.gameState["arena"+this.arenaNumber].cardSlots[this.slotNumber]);if(e)return re.instance.gameState["arena"+this.arenaNumber].cardSlots[re.instance.hoveredCardSlot]==e}let e=this.cardData.resourcesAffectedByMultipliers.split("|");if(e.length>0)for(var t of e)if(t.length>0&&re.instance.gameState["arena"+this.arenaNumber].cardSlots[this.slotNumber].multipliers[t].filter(e=>e.fromSlot==re.instance.hoveredCardSlot&&e.amount>0).length>0)return!0;return!1}shouldShowRedEffectBorder(){if(this.isCollectionCard||this.isBoosterResultCard||!this.cardData.isProducer)return!1;let e=this.cardData.resourcesAffectedByMultipliers.split("|");if(e.length>0)for(var t of e)if(t.length>0&&re.instance.gameState["arena"+this.arenaNumber].cardSlots[this.slotNumber].multipliers[t].filter(e=>e.fromSlot==re.instance.hoveredCardSlot&&e.amount<=0).length>0)return!0;return!1}getDragData(){return{isCollectionCard:this.isCollectionCard,arenaNumber:this.arenaNumber,slotNumber:this.slotNumber,cardData:this.cardData}}droppedAnotherCardOntoHere(e){let t=e.dragData.isCollectionCard,n=e.dragData.slotNumber,r=e.dragData.arenaNumber,i=e.dragData.cardData;if(this.isCollectionCard&&null!=r&&null!=n)re.instance.removeCardFromArena(r,n,i.id),G.instance.playSound("removecard");else if(!this.isCollectionCard&&null!=this.slotNumber&&null!=this.arenaNumber){if(!t){if(n==this.slotNumber&&r==this.arenaNumber)return;re.instance.removeCardFromArena(r,n,i.id)}let e=this.slotNumber,l=this.arenaNumber,s=this.cardData;re.instance.removeCardFromArena(l,e,this.cardData.id),re.instance.tryToPlaceCardInEmptySlot(l,e,i,!0),t||re.instance.tryToPlaceCardInEmptySlot(r,n,s,!1)}}getMaxHP(){return re.instance.rankAdjustedModifier(this.cardData.cardId,this.arenaNumber,0)}updateDamageOpacityVal(){if(re.instance.lastTickTimeInMilliseconds>0){let e=(new Date).getTime()-re.instance.lastTickTimeInMilliseconds;this.damageOpacityVal=1-e/1e3}}damageTakenStyle(){return this.sanitizer.bypassSecurityTrustStyle("opacity: "+(this.foughtInLastTick?this.damageOpacityVal:0))}getMonsterBoostCard(){let e=ne(this.arenaNumber,re.instance.gameState["arena"+this.arenaNumber].cardSlots[this.slotNumber]);return e&&e.cardInSlot?o(e.cardInSlot.id):null}}var Ar=r["\u0275crt"]({encapsulation:0,styles:[[""]],data:{}});function Er(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,5,"div",[["class","card-hp"]],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,2,"div",[],null,null,null,null,null)),(e()(),r["\u0275ted"](2,null,["",""])),r["\u0275ppd"](3,1),(e()(),r["\u0275ted"](-1,null,["\xa0"])),(e()(),r["\u0275eld"](5,0,null,null,0,"img",[["alt","Health"],["class","card-hp-icon"],["src","assets/images/icons/health.png"],["title","Health"]],null,null,null,null,null))],null,function(e,t){var n=t.component,i=r["\u0275unv"](t,2,0,e(t,3,0,r["\u0275nov"](t.parent,0),n.currentHP));e(t,2,0,i)})}function Tr(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,2,"div",[["class","card-damage-taken"]],[[8,"style",2]],null,null,null,null)),(e()(),r["\u0275ted"](1,null,[" -"," "])),r["\u0275ppd"](2,1)],null,function(e,t){var n=t.component;e(t,0,0,n.damageTakenStyle());var i=r["\u0275unv"](t,1,0,e(t,2,0,r["\u0275nov"](t.parent,0),n.damageTakenThisRound));e(t,1,0,i)})}function Mr(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"fa",[["name","star"],["style","color: white; filter: drop-shadow(1px 1px 1px black); margin-left: 2px;"]],null,null,null,Cr,wr)),r["\u0275did"](1,114688,null,0,Xn,[],{name:[0,"name"]},null)],function(e,t){e(t,1,0,"star")},null)}function Rr(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"fa",[["name","star"],["style","color: white; filter: drop-shadow(1px 1px 1px black); margin-left: 2px;"]],null,null,null,Cr,wr)),r["\u0275did"](1,114688,null,0,Xn,[],{name:[0,"name"]},null)],function(e,t){e(t,1,0,"star")},null)}function Pr(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"fa",[["name","star"],["style","color: white; filter: drop-shadow(1px 1px 1px black); margin-left: 2px;"]],null,null,null,Cr,wr)),r["\u0275did"](1,114688,null,0,Xn,[],{name:[0,"name"]},null)],function(e,t){e(t,1,0,"star")},null)}function Or(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"fa",[["name","star"],["style","color: white; filter: drop-shadow(1px 1px 1px black); margin-left: 2px;"]],null,null,null,Cr,wr)),r["\u0275did"](1,114688,null,0,Xn,[],{name:[0,"name"]},null)],function(e,t){e(t,1,0,"star")},null)}function Nr(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"loot-drop-animation",[],null,null,null,kr,Sr)),r["\u0275did"](1,49152,null,0,_r,[kt,H],{cardData:[0,"cardData"],secondsRemainingInAnimation:[1,"secondsRemainingInAnimation"],arenaNumber:[2,"arenaNumber"],monsterBoostCard:[3,"monsterBoostCard"]},null)],function(e,t){var n=t.component;e(t,1,0,n.cardData,n.damageOpacityVal,n.arenaNumber,n.getMonsterBoostCard())},null)}function Dr(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,0,"div",[["class","break-float"]],null,null,null,null,null))],null,null)}function Fr(e){return r["\u0275vid"](0,[r["\u0275pid"](0,H,[]),(e()(),r["\u0275eld"](1,0,null,null,26,"div",[["class","card left-float"],["draggable",""],["droppable",""],["style","position: relative;"]],[[4,"backgroundImage",null],[2,"clickable",null],[2,"card-being-placed",null],[2,"in-collection",null],[2,"green-effect-border",null],[2,"yellow-effect-border",null],[2,"red-effect-border",null],[8,"draggable",0]],[[null,"onDrop"],[null,"click"],[null,"mouseover"],[null,"mouseout"],[null,"dragstart"],[null,"dragend"],[null,"mousedown"],[null,"touchstart"],[null,"drop"]],function(e,t,n){var i=!0,l=e.component;return"dragstart"===t&&(i=!1!==r["\u0275nov"](e,2).dragStart(n)&&i),"dragend"===t&&(i=!1!==r["\u0275nov"](e,2).dragEnd(n)&&i),"mousedown"===t&&(i=!1!==r["\u0275nov"](e,2).mousedown(n)&&i),"touchstart"===t&&(i=!1!==r["\u0275nov"](e,2).mousedown(n)&&i),"drop"===t&&(i=!1!==r["\u0275nov"](e,3).drop(n)&&i),"onDrop"===t&&(i=!1!==l.droppedAnotherCardOntoHere(n)&&i),"click"===t&&(i=!1!==l.clicked()&&i),"mouseover"===t&&(i=!1!==l.mouseOver()&&i),"mouseout"===t&&(i=!1!==l.mouseOut()&&i),i},null,null)),r["\u0275did"](2,212992,null,0,xr.Draggable,[r.ElementRef,r.Renderer2,Wn.NgDragDropService,r.NgZone],{dragData:[0,"dragData"],dragTransitClass:[1,"dragTransitClass"]},null),r["\u0275did"](3,212992,null,0,Gn.Droppable,[r.ElementRef,r.Renderer2,Wn.NgDragDropService,r.NgZone],{dragOverClass:[0,"dragOverClass"]},{onDrop:"onDrop"}),(e()(),r["\u0275eld"](4,0,null,null,1,"div",[["class","card-name"]],null,null,null,null,null)),(e()(),r["\u0275ted"](5,null,["",""])),(e()(),r["\u0275and"](16777216,null,null,1,null,Er)),r["\u0275did"](7,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275eld"](8,0,null,null,1,"div",[["class","card-rank"]],null,null,null,null,null)),(e()(),r["\u0275ted"](9,null,["",""])),(e()(),r["\u0275and"](16777216,null,null,1,null,Tr)),r["\u0275did"](11,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275eld"](12,0,null,null,10,"div",[["class","card-rarity"]],null,null,null,null,null)),(e()(),r["\u0275eld"](13,0,null,null,1,"fa",[["name","star"],["style","color: white; filter: drop-shadow(1px 1px 1px black);"]],null,null,null,Cr,wr)),r["\u0275did"](14,114688,null,0,Xn,[],{name:[0,"name"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Mr)),r["\u0275did"](16,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Rr)),r["\u0275did"](18,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Pr)),r["\u0275did"](20,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Or)),r["\u0275did"](22,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275eld"](23,0,null,null,2,"div",[["class","card-quantity"]],null,null,null,null,null)),(e()(),r["\u0275ted"](24,null,["",""])),r["\u0275ppd"](25,1),(e()(),r["\u0275and"](16777216,null,null,1,null,Nr)),r["\u0275did"](27,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Dr)),r["\u0275did"](29,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,2,0,n.getDragData(),"card-being-dragged"),e(t,3,0,"drag-target-border"),e(t,7,0,!(n.isCollectionCard||n.isBoosterResultCard||"hero"!=n.cardData.cardType&&"monster"!=n.cardData.cardType)),e(t,11,0,n.damageTakenThisRound),e(t,14,0,"star"),e(t,16,0,n.cardData.rarity>1),e(t,18,0,n.cardData.rarity>2),e(t,20,0,n.cardData.rarity>3),e(t,22,0,n.cardData.rarity>4),e(t,27,0,n.droppedLootLastTick),e(t,29,0,n.x==n.cardsPerRow-1)},function(e,t){var n=t.component;e(t,1,0,n.backgroundImageVal(),n.clickable&&!n.isBeingPlaced,n.isBeingPlaced,n.isCollectionCard,n.shouldShowGreenEffectBorder(),n.shouldShowYellowEffectBorder(),n.shouldShowRedEffectBorder(),r["\u0275nov"](t,2).dragEnabled),e(t,5,0,n.cardData.name),e(t,9,0,n.rank>1?"Lv. "+n.rank:"\xa0");var i=n.isCollectionCard||n.quantity>1?"Qty: "+r["\u0275unv"](t,24,0,e(t,25,0,r["\u0275nov"](t,0),n.quantity)):"";e(t,24,0,i)})}var Vr={arena1:[],arena2:[],arena3:[],arena4:[],arena5:[]};class jr{constructor(e){this.sanitizer=e,this.subtab="ascend",this.showConfirmationScreen=!1,Vr.arena1[0]={gold:1e6};for(var t=1;t<50;t++)Vr.arena1[t]={gold:Vr.arena1[0].gold*Math.pow(t+1,2.5)};for(Vr.arena2[0]={wood:1e6,iron:2e6},t=1;t<50;t++)Vr.arena2[t]={wood:Vr.arena2[0].wood*Math.pow(t+1,2.5),iron:Vr.arena2[0].iron*Math.pow(t+1,2.5)};for(Vr.arena3[0]={ether:3e6,skulls:3e6,feathers:3e6},t=1;t<50;t++)Vr.arena3[t]={ether:Vr.arena3[0].ether*Math.pow(t+1,2.5),skulls:Vr.arena3[0].skulls*Math.pow(t+1,2.5),feathers:Vr.arena3[0].feathers*Math.pow(t+1,2.5)};for(Vr.arena4[0]={gold:1e6,wood:1e6},t=1;t<50;t++)Vr.arena4[t]={gold:Vr.arena4[0].gold*Math.pow(t+1,2.5),wood:Vr.arena4[0].wood*Math.pow(t+1,2.5)};for(Vr.arena5[0]={gold:1e6,iron:2e6},t=1;t<50;t++)Vr.arena5[t]={wood:Vr.arena5[0].gold*Math.pow(t+1,2.5),iron:Vr.arena5[0].iron*Math.pow(t+1,2.5)}}ngOnInit(){this.appComponent=re.instance}resourceTypesInArena(){return Object.keys(this.appComponent.gameState.lifetimeResourcesEarned["arena"+this.arenaNumber])}percentageToNextGem(){if(this.hasReceivedAllGemsFromArena())return 0;const e=this.amountsNeededForNextGem();if(null==e)return 1;var t=1;for(const[n,r]of Object.entries(e)){let e=re.instance.gameState.lifetimeGemsReceived[this.arenaNumber],i=0;e>=1&&(i=Vr["arena"+this.arenaNumber][e-1][n]);let l=(this.lifetimeResourcesEarnedPlusAchievementBoost(n)-i)/(r-i);l<t&&(t=l)}return t}amountsNeededForNextGem(){if(this.hasReceivedAllGemsFromArena())return 0;let e=re.instance.gameState.lifetimeGemsReceived[this.arenaNumber];return e+this.amountOfGemsThatWouldBeEarnedViaAscension()+1>=Vr["arena"+this.arenaNumber].length?null:Vr["arena"+this.arenaNumber][e+this.amountOfGemsThatWouldBeEarnedViaAscension()+1]}hasReceivedAllGemsFromArena(){return re.instance.gameState.lifetimeGemsReceived[this.arenaNumber]>=Vr.arena1.length}baseLifetimeAmountEarned(e){return this.appComponent.gameState.lifetimeResourcesEarned["arena"+this.arenaNumber][e]}amountOfGemsThatWouldBeEarnedViaAscension(){let e=0;for(var t=re.instance.gameState.lifetimeGemsReceived[this.arenaNumber];t<Vr["arena"+this.arenaNumber].length;t++){let n=this.resourceTypesInArena(),r=!0;for(let e of n)Vr["arena"+this.arenaNumber][t][e]>this.lifetimeResourcesEarnedPlusAchievementBoost(e)&&(r=!1);if(!r)break;e++}return e}lifetimeResourcesEarnedPlusAchievementBoost(e){return this.baseLifetimeAmountEarned(e)*(1+Z()/50)}achievementMultiplierPercentageDisplay(){return(Z()/50*100).toFixed(0)+"%"}progressBarForegroundStyle(){return this.sanitizer.bypassSecurityTrustStyle("width: "+Math.floor(200*this.percentageToNextGem())+"px")}resourcesInThisArena(){return Object.keys(Vr["arena"+this.arenaNumber][0])}ascendConfirmed(){let e=this.amountOfGemsThatWouldBeEarnedViaAscension();re.instance.gameState.gems+=e,re.instance.gameState.lifetimeGemsReceived[this.arenaNumber]+=e,this.showConfirmationScreen=!1,Q(8)||e>=1&&Y(8),re.instance.stopChoosingEmptySlotForCard(),re.instance.removeAllCardsFromGrid(),re.instance.tryToRankUpAllCards(this.arenaNumber),re.instance.resetRealm(this.arenaNumber)}priceForOfflineUpgrade(){return 1}buyOfflineUpgrade(){if(re.instance.gameState.gems<this.priceForOfflineUpgrade())a.instance.show("You don't have enough <img src='assets/images/resources/gem.png' title='Gem' alt='Gem'>");else if(re.instance.gameState.maxOfflineTime>=86400)a.instance.show("You've already reached the maximum cap of 24 hours.");else{re.instance.gameState.gems--,re.instance.gameState.maxOfflineTime+=14400;let e=this.secondsToTimeString(re.instance.gameState.maxOfflineTime);a.instance.show("Offline cap increased to "+e)}}currentOfflineCap(){return this.secondsToTimeString(re.instance.gameState.maxOfflineTime)}secondsToTimeString(e){let t=e,n=Math.floor(t/3600);t-=3600*n;let r=Math.floor(t/60),i="";return n>0&&(i+=n+" hours, "),(r>0||n>0)&&(i+=r+" minutes, "),i+((t-=60*r)+" seconds")}lifetimeGemsReceived(){return re.instance.gameState.lifetimeGemsReceived[this.arenaNumber]}boughtStarIncrease(e){return re.instance.gameState.cardRateModifiersUnlocked[e]}toggleStarIncrease(e){re.instance.gameState.cardRateModifiers[e]=this.theStarIncreaseIsOn(e)?0:1}theStarIncreaseIsOn(e){return re.instance.gameState.cardRateModifiers[e]}buyStarIncrease(e){let t=0;switch(e){case"5":t=50;break;case"4":t=40;break;case"3":t=30;break;case"2":t=20;break;case"1":t=10;break;default:return void console.error("Unknown rarity passed to buyStarIncrease(): "+e)}re.instance.gameState.gems<t?a.instance.show("You don't have enough <img src='assets/images/resources/gem.png' title='Gem' alt='Gem'>"):(re.instance.gameState.gems-=t,re.instance.gameState.cardRateModifiersUnlocked[e]=!0)}}var Br=r["\u0275crt"]({encapsulation:0,styles:[[".progress-bar[_ngcontent-%COMP%]{background:red;width:200px;z-index:5;border:1px solid #000}.progress-bar-foreground[_ngcontent-%COMP%]{background:green;z-index:6}.progress-bar-text[_ngcontent-%COMP%]{color:#fff}"]],data:{}});function Lr(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,2,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["You have mastered this arena and received all of its ascension gems."]))],null,null)}function Hr(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,2,"span",[],null,null,null,null,null)),(e()(),r["\u0275ted"](1,null,[" "," "])),r["\u0275ppd"](2,1)],null,function(e,t){var n=t.component,i=r["\u0275unv"](t,1,0,e(t,2,0,r["\u0275nov"](t.parent.parent.parent.parent,0),n.amountsNeededForNextGem()[t.parent.context.$implicit]));e(t,1,0,i)})}function Ur(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" N/A "]))],null,null)}function zr(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,10,"div",[["style","display: flex;"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" Earnings: \xa0 "])),(e()(),r["\u0275eld"](2,0,null,null,0,"img",[["class","resource-icon"]],[[8,"src",4],[8,"alt",0],[8,"title",0]],null,null,null,null)),(e()(),r["\u0275ted"](3,null,[" "," ("," + "," achievement boost) \xa0\xa0 Goal: \xa0 "])),r["\u0275ppd"](4,1),r["\u0275ppd"](5,1),(e()(),r["\u0275eld"](6,0,null,null,0,"img",[["class","resource-icon"]],[[8,"src",4],[8,"alt",0],[8,"title",0]],null,null,null,null)),(e()(),r["\u0275and"](16777216,null,null,1,null,Hr)),r["\u0275did"](8,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Ur)),r["\u0275did"](10,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,8,0,null!=n.amountsNeededForNextGem()),e(t,10,0,null==n.amountsNeededForNextGem)},function(e,t){var n=t.component;e(t,2,0,r["\u0275inlineInterpolate"](1,"assets/images/resources/",t.context.$implicit,".png"),r["\u0275inlineInterpolate"](1,"",t.context.$implicit,""),r["\u0275inlineInterpolate"](1,"",t.context.$implicit,""));var i=r["\u0275unv"](t,3,0,e(t,4,0,r["\u0275nov"](t.parent.parent.parent,0),n.lifetimeResourcesEarnedPlusAchievementBoost(t.context.$implicit))),l=r["\u0275unv"](t,3,1,e(t,5,0,r["\u0275nov"](t.parent.parent.parent,0),n.baseLifetimeAmountEarned(t.context.$implicit)));e(t,3,0,i,l,n.achievementMultiplierPercentageDisplay()),e(t,6,0,r["\u0275inlineInterpolate"](1,"assets/images/resources/",t.context.$implicit,".png"),r["\u0275inlineInterpolate"](1,"",t.context.$implicit,""),r["\u0275inlineInterpolate"](1,"",t.context.$implicit,""))})}function Gr(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,22,"div",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" Ascension resets the current realm (except card levels), but you gain "])),(e()(),r["\u0275eld"](2,0,null,null,0,"img",[["alt","Gem"],["src","assets/images/resources/gem.png"],["title","Gem"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" based on your lifetime earnings across all ascensions. "])),(e()(),r["\u0275eld"](4,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](5,0,null,null,0,"img",[["alt","Gem"],["src","assets/images/resources/gem.png"],["title","Gem"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" can be spent on upgrades. They also increase the production/consumption numbers on all producer cards by +5% per gem in this realm, even if you spend the gems."])),(e()(),r["\u0275eld"](7,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" Current bonus: "])),(e()(),r["\u0275eld"](9,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),r["\u0275ted"](10,null,["+","%"])),(e()(),r["\u0275ted"](-1,null,[". "])),(e()(),r["\u0275eld"](12,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](13,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" Progress to next gem:"])),(e()(),r["\u0275eld"](15,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](16,0,null,null,4,"div",[["class","progress-bar"]],null,null,null,null,null)),(e()(),r["\u0275eld"](17,0,null,null,3,"div",[["class","progress-bar-foreground"]],[[8,"style",2]],null,null,null,null)),(e()(),r["\u0275eld"](18,0,null,null,2,"div",[["class","progress-bar-text"]],null,null,null,null,null)),(e()(),r["\u0275ted"](19,null,["","%"])),r["\u0275ppd"](20,1),(e()(),r["\u0275and"](16777216,null,null,1,null,zr)),r["\u0275did"](22,278528,null,0,ye,[r.ViewContainerRef,r.TemplateRef,r.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),r["\u0275eld"](23,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](24,0,null,null,9,"div",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" Ascend for "])),(e()(),r["\u0275eld"](26,0,null,null,0,"img",[["alt","Gem"],["src","assets/images/resources/gem.png"],["title","Gem"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["\xa0"])),(e()(),r["\u0275eld"](28,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),r["\u0275ted"](29,null,["",""])),(e()(),r["\u0275eld"](30,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](31,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](32,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=0!=(e.component.showConfirmationScreen=!0)&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Ascend"]))],function(e,t){e(t,22,0,t.component.resourcesInThisArena())},function(e,t){var n=t.component;e(t,10,0,5*n.lifetimeGemsReceived()),e(t,17,0,n.progressBarForegroundStyle());var i=r["\u0275unv"](t,19,0,e(t,20,0,r["\u0275nov"](t.parent.parent,0),100*n.percentageToNextGem()));e(t,19,0,i),e(t,29,0,n.amountOfGemsThatWouldBeEarnedViaAscension())})}function Wr(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,5,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Ascend"])),(e()(),r["\u0275and"](16777216,null,null,1,null,Lr)),r["\u0275did"](4,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(e()(),r["\u0275and"](0,[["ascension_form",2]],null,0,null,Gr))],function(e,t){e(t,4,0,t.component.hasReceivedAllGemsFromArena(),r["\u0275nov"](t,5))},null)}function $r(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,4,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Price"])),(e()(),r["\u0275eld"](3,0,null,null,0,"img",[["alt","Gem"],["src","assets/images/resources/gem.png"],["title","Gem"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" 50"]))],null,null)}function qr(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.buyStarIncrease("5")&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Buy"]))],null,null)}function Kr(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,3,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Status:"])),(e()(),r["\u0275ted"](3,null,[" ",""]))],null,function(e,t){e(t,3,0,t.component.theStarIncreaseIsOn("5")?"on":"off")})}function Yr(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleStarIncrease("5")&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Turn on"]))],null,null)}function Qr(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleStarIncrease("5")&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Turn off"]))],null,null)}function Zr(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,4,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Price"])),(e()(),r["\u0275eld"](3,0,null,null,0,"img",[["alt","Gem"],["src","assets/images/resources/gem.png"],["title","Gem"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" 40"]))],null,null)}function Xr(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.buyStarIncrease("4")&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Buy"]))],null,null)}function Jr(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,3,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Status:"])),(e()(),r["\u0275ted"](3,null,[" ",""]))],null,function(e,t){e(t,3,0,t.component.theStarIncreaseIsOn("4")?"on":"off")})}function ei(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleStarIncrease("4")&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Turn on"]))],null,null)}function ti(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleStarIncrease("4")&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Turn off"]))],null,null)}function ni(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,4,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Price"])),(e()(),r["\u0275eld"](3,0,null,null,0,"img",[["alt","Gem"],["src","assets/images/resources/gem.png"],["title","Gem"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" 30"]))],null,null)}function ri(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.buyStarIncrease("3")&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Buy"]))],null,null)}function ii(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,3,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Status:"])),(e()(),r["\u0275ted"](3,null,[" ",""]))],null,function(e,t){e(t,3,0,t.component.theStarIncreaseIsOn("3")?"on":"off")})}function li(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleStarIncrease("3")&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Turn on"]))],null,null)}function si(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleStarIncrease("3")&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Turn off"]))],null,null)}function oi(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,4,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Price"])),(e()(),r["\u0275eld"](3,0,null,null,0,"img",[["alt","Gem"],["src","assets/images/resources/gem.png"],["title","Gem"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" 20"]))],null,null)}function ai(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.buyStarIncrease("2")&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Buy"]))],null,null)}function ui(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,3,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Status:"])),(e()(),r["\u0275ted"](3,null,[" ",""]))],null,function(e,t){e(t,3,0,t.component.theStarIncreaseIsOn("2")?"on":"off")})}function ci(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleStarIncrease("2")&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Turn on"]))],null,null)}function di(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleStarIncrease("2")&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Turn off"]))],null,null)}function hi(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,4,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Price"])),(e()(),r["\u0275eld"](3,0,null,null,0,"img",[["alt","Gem"],["src","assets/images/resources/gem.png"],["title","Gem"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" 10"]))],null,null)}function fi(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.buyStarIncrease("1")&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Buy"]))],null,null)}function pi(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,3,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Status:"])),(e()(),r["\u0275ted"](3,null,[" ",""]))],null,function(e,t){e(t,3,0,t.component.theStarIncreaseIsOn("1")?"on":"off")})}function mi(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleStarIncrease("1")&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Turn on"]))],null,null)}function gi(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleStarIncrease("1")&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Turn off"]))],null,null)}function yi(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,113,"div",[["style","max-height: 430px; overflow: auto;"]],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Ascension shop"])),(e()(),r["\u0275eld"](3,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["You have:"])),(e()(),r["\u0275ted"](-1,null,[" \xa0 "])),(e()(),r["\u0275eld"](6,0,null,null,0,"img",[["alt","Gem"],["src","assets/images/resources/gem.png"],["title","Gem"]],null,null,null,null,null)),(e()(),r["\u0275ted"](7,null,[" ",""])),(e()(),r["\u0275eld"](8,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](9,0,null,null,0,"hr",[],null,null,null,null,null)),(e()(),r["\u0275eld"](10,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Offline cap increase"])),(e()(),r["\u0275eld"](12,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Description: "])),(e()(),r["\u0275ted"](-1,null,["Increases the time limit you can be offline and still gain resources by 4 hours (up to a maximum of 24). This bonus affects "])),(e()(),r["\u0275eld"](15,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["all"])),(e()(),r["\u0275ted"](-1,null,[" realms, not just the currently selected one. Current cap: "])),(e()(),r["\u0275eld"](18,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),r["\u0275ted"](19,null,["",""])),(e()(),r["\u0275eld"](20,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](21,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Price:"])),(e()(),r["\u0275ted"](-1,null,[" \xa0 "])),(e()(),r["\u0275eld"](24,0,null,null,0,"img",[["alt","Gem"],["src","assets/images/resources/gem.png"],["title","Gem"]],null,null,null,null,null)),(e()(),r["\u0275ted"](25,null,[" ",""])),(e()(),r["\u0275eld"](26,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](27,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](28,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.buyOfflineUpgrade()&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Buy"])),(e()(),r["\u0275eld"](30,0,null,null,0,"hr",[],null,null,null,null,null)),(e()(),r["\u0275eld"](31,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["5-star odds increase"])),(e()(),r["\u0275eld"](33,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Description: "])),(e()(),r["\u0275ted"](-1,null,["Slightly increases the odds of 5-star cards dropping. Can be toggled on/off."])),(e()(),r["\u0275eld"](36,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275and"](16777216,null,null,1,null,$r)),r["\u0275did"](38,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,qr)),r["\u0275did"](40,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Kr)),r["\u0275did"](42,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Yr)),r["\u0275did"](44,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Qr)),r["\u0275did"](46,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275eld"](47,0,null,null,0,"hr",[],null,null,null,null,null)),(e()(),r["\u0275eld"](48,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["4-star odds increase"])),(e()(),r["\u0275eld"](50,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Description: "])),(e()(),r["\u0275ted"](-1,null,["Slightly increases the odds of 4-star cards dropping. Can be toggled on/off."])),(e()(),r["\u0275eld"](53,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275and"](16777216,null,null,1,null,Zr)),r["\u0275did"](55,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Xr)),r["\u0275did"](57,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Jr)),r["\u0275did"](59,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,ei)),r["\u0275did"](61,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,ti)),r["\u0275did"](63,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275eld"](64,0,null,null,0,"hr",[],null,null,null,null,null)),(e()(),r["\u0275eld"](65,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["3-star odds increase"])),(e()(),r["\u0275eld"](67,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Description: "])),(e()(),r["\u0275ted"](-1,null,["Slightly increases the odds of 3-star cards dropping. Can be toggled on/off."])),(e()(),r["\u0275eld"](70,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275and"](16777216,null,null,1,null,ni)),r["\u0275did"](72,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,ri)),r["\u0275did"](74,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,ii)),r["\u0275did"](76,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,li)),r["\u0275did"](78,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,si)),r["\u0275did"](80,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275eld"](81,0,null,null,0,"hr",[],null,null,null,null,null)),(e()(),r["\u0275eld"](82,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["2-star odds increase"])),(e()(),r["\u0275eld"](84,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Description: "])),(e()(),r["\u0275ted"](-1,null,["Slightly increases the odds of 2-star cards dropping. Can be toggled on/off."])),(e()(),r["\u0275eld"](87,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275and"](16777216,null,null,1,null,oi)),r["\u0275did"](89,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,ai)),r["\u0275did"](91,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,ui)),r["\u0275did"](93,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,ci)),r["\u0275did"](95,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,di)),r["\u0275did"](97,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275eld"](98,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["1-star odds increase"])),(e()(),r["\u0275eld"](100,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Description: "])),(e()(),r["\u0275ted"](-1,null,["Slightly increases the odds of 1-star cards dropping. Can be toggled on/off."])),(e()(),r["\u0275eld"](103,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275and"](16777216,null,null,1,null,hi)),r["\u0275did"](105,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,fi)),r["\u0275did"](107,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,pi)),r["\u0275did"](109,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,mi)),r["\u0275did"](111,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,gi)),r["\u0275did"](113,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,38,0,!n.boughtStarIncrease("5")),e(t,40,0,!n.boughtStarIncrease("5")),e(t,42,0,n.boughtStarIncrease("5")),e(t,44,0,n.boughtStarIncrease("5")&&!n.theStarIncreaseIsOn("5")),e(t,46,0,n.boughtStarIncrease("5")&&n.theStarIncreaseIsOn("5")),e(t,55,0,!n.boughtStarIncrease("4")),e(t,57,0,!n.boughtStarIncrease("4")),e(t,59,0,n.boughtStarIncrease("4")),e(t,61,0,n.boughtStarIncrease("4")&&!n.theStarIncreaseIsOn("4")),e(t,63,0,n.boughtStarIncrease("4")&&n.theStarIncreaseIsOn("4")),e(t,72,0,!n.boughtStarIncrease("3")),e(t,74,0,!n.boughtStarIncrease("3")),e(t,76,0,n.boughtStarIncrease("3")),e(t,78,0,n.boughtStarIncrease("3")&&!n.theStarIncreaseIsOn("3")),e(t,80,0,n.boughtStarIncrease("3")&&n.theStarIncreaseIsOn("3")),e(t,89,0,!n.boughtStarIncrease("2")),e(t,91,0,!n.boughtStarIncrease("2")),e(t,93,0,n.boughtStarIncrease("2")),e(t,95,0,n.boughtStarIncrease("2")&&!n.theStarIncreaseIsOn("2")),e(t,97,0,n.boughtStarIncrease("2")&&n.theStarIncreaseIsOn("2")),e(t,105,0,!n.boughtStarIncrease("1")),e(t,107,0,!n.boughtStarIncrease("1")),e(t,109,0,n.boughtStarIncrease("1")),e(t,111,0,n.boughtStarIncrease("1")&&!n.theStarIncreaseIsOn("1")),e(t,113,0,n.boughtStarIncrease("1")&&n.theStarIncreaseIsOn("1"))},function(e,t){var n=t.component;e(t,7,0,n.appComponent.gameState.gems),e(t,19,0,n.currentOfflineCap()),e(t,25,0,n.priceForOfflineUpgrade())})}function bi(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,23,"div",[["class","ascend-confirmation-screen"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" Are you sure? "])),(e()(),r["\u0275eld"](2,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](3,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](4,0,null,null,12,"ul",[],null,null,null,null,null)),(e()(),r["\u0275eld"](5,0,null,null,5,"li",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" You'll receive "])),(e()(),r["\u0275eld"](7,0,null,null,0,"img",[["alt","Gem"],["src","assets/images/resources/gem.png"],["title","Gem"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["\xa0"])),(e()(),r["\u0275eld"](9,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),r["\u0275ted"](10,null,["",""])),(e()(),r["\u0275eld"](11,0,null,null,1,"li",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" You will lose all of your cards "])),(e()(),r["\u0275eld"](13,0,null,null,1,"li",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" You will have to unlock the grid slots again like you did in the beginning "])),(e()(),r["\u0275eld"](15,0,null,null,1,"li",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" Your card levels will NOT be reset "])),(e()(),r["\u0275eld"](17,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](18,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](19,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.ascendConfirmed()&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Ascend!"])),(e()(),r["\u0275ted"](-1,null,[" \xa0 "])),(e()(),r["\u0275eld"](22,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=0!=(e.component.showConfirmationScreen=!1)&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Cancel"]))],null,function(e,t){e(t,10,0,t.component.amountOfGemsThatWouldBeEarnedViaAscension())})}function vi(e){return r["\u0275vid"](0,[r["\u0275pid"](0,H,[]),(e()(),r["\u0275eld"](1,0,null,null,4,"div",[["class","sub-tab-bar"]],null,null,null,null,null)),(e()(),r["\u0275eld"](2,0,null,null,1,"div",[["class","sub-tab"]],[[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==(e.component.subtab="ascend")&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Ascend"])),(e()(),r["\u0275eld"](4,0,null,null,1,"div",[["class","sub-tab"]],[[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==(e.component.subtab="ascensionshop")&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Ascension Shop"])),(e()(),r["\u0275eld"](6,0,null,null,4,"div",[["style","padding: 10px;"]],[[2,"white-text",null]],null,null,null,null)),(e()(),r["\u0275and"](16777216,null,null,1,null,Wr)),r["\u0275did"](8,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,yi)),r["\u0275did"](10,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,bi)),r["\u0275did"](12,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,8,0,"ascend"==n.subtab),e(t,10,0,"ascensionshop"==n.subtab),e(t,12,0,n.showConfirmationScreen)},function(e,t){var n=t.component;e(t,2,0,"ascend"==n.subtab),e(t,4,0,"ascensionshop"==n.subtab),e(t,6,0,n.appComponent.arenaHasDarkBackground())})}const wi=(()=>{class e{constructor(t){this.sanitizer=t,this.timer=0,this.isActive=!1,this.skipAnimations=!1,this.timerInterval=null,this.startTime=null,this.hasPurchasedCardsBefore=!0,e.instance=this}start(e,t){this.hasPurchasedCardsBefore=1==re.instance.gameState.hasPurchasedCardsBefore,re.instance.gameState.hasPurchasedCardsBefore=!0,this.skipAnimations=!re.instance.gameState.enableAnimations,this.imageFilename=e,this.cardsReceived=t,this.isActive=!0,this.timer=0,this.startTime=new Date,null!=this.timerInterval&&clearInterval(this.timerInterval),this.timerInterval=setInterval(this.intervalFunction.bind(this),10)}intervalFunction(){this.timer=(new Date).getTime()-this.startTime.getTime(),this.timer>2e3&&(clearInterval(this.timerInterval),this.timerInterval=null)}backgroundImageVal(){return"url("+this.imageFilename+")"}transformStyle(){return this.sanitizer.bypassSecurityTrustStyle(this.scaleValue()+" "+this.rotationValue())}scaleValue(){return this.timer<1e3?" scale("+2*Math.abs(Math.sin(this.timer/300/3.14))+")":" scale("+(2-(this.timer-1e3)/1e3)+")"}rotationValue(){return this.timer<1e3?"rotate("+10*Math.abs(Math.sin(this.timer/50/3.14))*2+"deg)":""}opacityVal(){return this.skipAnimations?0:this.timer<1e3?1:this.timer<2e3?1-Math.abs(Math.sin((this.timer-1e3)/300/3.14)):0}cardsReceivedOpacityVal(){return this.skipAnimations?1:this.timer<1500?0:this.timer>=2e3?1:(this.timer-1500)/500}}return e.instance=null,e})();class Ci{constructor(e,t){this.sanitizer=e,this.niceNumber=t,this.textColor="black",this.purchaseMultiplier=1,this.displaySize=3}clicked(){wi.instance.isActive||this.canAfford()&&this.purchase()}purchase(){var e=1;null!=this.purchaseMultiplier&&Math.floor(this.purchaseMultiplier)>1?e=Math.floor(this.purchaseMultiplier):null==this.purchaseMultiplier&&(e=this.maxAmountAffordable());let t=[];for(var n=0;n<this.possibleCardIds.length;n++){let e=o(this.possibleCardIds[n]);if(null==e)return void console.error("Error: shop has a booster pack ("+this.name+") containing a card id that doesn't exist. Card id: "+this.possibleCardIds[n]);t[e.id]={data:e,quantity:0}}let r=[];if(1==this.possibleCardIds.length)r=[this.possibleCardIds[0]];else{for(n=0;n<this.possibleCardIds.length;n++){let e=o(this.possibleCardIds[n]);if(null==e)return void console.error("Error: shop has a booster pack ("+this.name+") containing a card id that doesn't exist. Card id: "+this.possibleCardIds[n]);let t=e.rarity,l=2;1==t?l=10:2==t?l=7:3==t?l=5:4==t?l=3:5==t&&(l=2),l+=re.instance.gameState.cardRateModifiers[""+t];for(var i=0;i<l;i++)r.push(this.possibleCardIds[n])}r=this.shuffleArray(r)}for(var l=0;l<e;l++){for(n=0;n<this.cardCount;n++){let e=null;t[e=1==r.length?r[0]:r[Math.floor(Math.random()*r.length)]].quantity++}re.instance.gameState.resources["arena"+this.arenaNumber][this.currency]-=this.price,this.price2>0&&(re.instance.gameState.resources["arena"+this.arenaNumber][this.currency2]-=this.price2),this.price3>0&&(re.instance.gameState.resources["arena"+this.arenaNumber][this.currency3]-=this.price3)}t=t.filter(e=>e.quantity>0),5==this.cardCount&&e>=1e5&&(Q(6)||Y(6)),re.instance.addCardsToCollection(t,re.instance.gameState.selectedArenaNumber),wi.instance.start(this.imageFilename,t)}getCardFromArray(e,t){for(var n=0;n<e.length;n++)if(e[n].data.id==t)return e[n];return null}maxAmountAffordable(){let e=Math.floor(re.instance.gameState.resources["arena"+this.arenaNumber][this.currency]/this.price);return this.price2>0&&(e=Math.min(e,Math.floor(re.instance.gameState.resources["arena"+this.arenaNumber][this.currency2]/this.price2))),this.price3>0&&(e=Math.min(e,Math.floor(re.instance.gameState.resources["arena"+this.arenaNumber][this.currency3]/this.price3))),e}canAfford(){let e=1;return null!=this.purchaseMultiplier&&Math.floor(this.purchaseMultiplier)>1&&(e=Math.floor(this.purchaseMultiplier)),this.maxAmountAffordable()>=e}backgroundImageVal(){return"url("+this.imageFilename+")"}mouseOver(){j.instance.showTooltip(this.description)}mouseOut(){j.instance.hideTooltip()}shuffleArray(e){for(let t=e.length-1;t>0;t--){const n=Math.floor(Math.random()*(t+1));[e[t],e[n]]=[e[n],e[t]]}return e}useWhiteText(){return re.instance.arenaHasDarkBackground()}getMargin(){switch(this.displaySize){case 3:return"10px";case 2:return"5px";case 1:return"1px"}return"10px"}getPriceDisplay(){let e="<div style='display: flex;'><img src='assets/images/resources/"+this.currency+".png' class='resource-icon' title='"+this.currency+"' alt='"+this.currency+"'>&nbsp;"+this.niceNumber.transform(parseFloat(this.price+""))+"</div>";return this.price2>0&&(e+="<div style='display: flex;'><img src='assets/images/resources/"+this.currency2+".png' class='resource-icon' title='"+this.currency2+"' alt='"+this.currency2+"'>&nbsp;"+this.niceNumber.transform(parseFloat(this.price2+""))+"</div>"),this.price3>0&&(e+="<div style='display: flex;'><img src='assets/images/resources/"+this.currency3+".png' class='resource-icon' title='"+this.currency3+"' alt='"+this.currency3+"'>&nbsp;"+this.niceNumber.transform(parseFloat(this.price3+""))+"</div>"),this.sanitizer.bypassSecurityTrustHtml(e)}}var _i=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Si(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,4,"div",[["style","text-align: center;"]],[[4,"margin",null],[2,"white-text",null]],null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,0,"div",[["class","booster-pack-purchaser"]],[[4,"backgroundImage",null],[2,"booster-pack-purchaser-small",null],[2,"booster-pack-purchaser-smallest",null]],[[null,"click"],[null,"mouseover"],[null,"mouseout"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.clicked()&&r),"mouseover"===t&&(r=!1!==i.mouseOver()&&r),"mouseout"===t&&(r=!1!==i.mouseOut()&&r),r},null,null)),(e()(),r["\u0275eld"](2,0,null,null,1,"p",[],[[2,"text-small",null],[2,"text-smallest",null]],null,null,null,null)),(e()(),r["\u0275ted"](3,null,["",""])),(e()(),r["\u0275eld"](4,0,null,null,0,"p",[],[[2,"text-small",null],[2,"text-smallest",null],[8,"innerHTML",1]],null,null,null,null))],null,function(e,t){var n=t.component;e(t,0,0,n.getMargin(),n.useWhiteText()),e(t,1,0,n.backgroundImageVal(),2==n.displaySize,1==n.displaySize),e(t,2,0,2==n.displaySize,1==n.displaySize),e(t,3,0,n.name),e(t,4,0,2==n.displaySize,1==n.displaySize,n.getPriceDisplay())})}var ki=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function xi(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"card",[],null,null,null,Fr,Ar)),r["\u0275did"](1,245760,null,0,Ir,[kt,H],{clickable:[0,"clickable"],isBoosterResultCard:[1,"isBoosterResultCard"],cardData:[2,"cardData"],slotNumber:[3,"slotNumber"],quantity:[4,"quantity"]},null)],function(e,t){e(t,1,0,!1,!0,t.context.$implicit.data,0,t.context.$implicit.quantity)},null)}function Ii(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,14,"div",[["style","margin-left: 150px; font-size: 0.8em"]],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"fa",[["name","star"],["style","color: white; filter: drop-shadow(1px 1px 1px black); margin-left: 20px;"]],null,null,null,Cr,wr)),r["\u0275did"](2,114688,null,0,Xn,[],{name:[0,"name"]},null),(e()(),r["\u0275ted"](-1,null,[" = common \xa0\xa0\xa0 "])),(e()(),r["\u0275eld"](4,0,null,null,1,"fa",[["name","star"],["style","color: white; filter: drop-shadow(1px 1px 1px black); margin-left: 2px;"]],null,null,null,Cr,wr)),r["\u0275did"](5,114688,null,0,Xn,[],{name:[0,"name"]},null),(e()(),r["\u0275eld"](6,0,null,null,1,"fa",[["name","star"],["style","color: white; filter: drop-shadow(1px 1px 1px black); margin-left: 2px;"]],null,null,null,Cr,wr)),r["\u0275did"](7,114688,null,0,Xn,[],{name:[0,"name"]},null),(e()(),r["\u0275eld"](8,0,null,null,1,"fa",[["name","star"],["style","color: white; filter: drop-shadow(1px 1px 1px black); margin-left: 2px;"]],null,null,null,Cr,wr)),r["\u0275did"](9,114688,null,0,Xn,[],{name:[0,"name"]},null),(e()(),r["\u0275eld"](10,0,null,null,1,"fa",[["name","star"],["style","color: white; filter: drop-shadow(1px 1px 1px black); margin-left: 2px;"]],null,null,null,Cr,wr)),r["\u0275did"](11,114688,null,0,Xn,[],{name:[0,"name"]},null),(e()(),r["\u0275eld"](12,0,null,null,1,"fa",[["name","star"],["style","color: white; filter: drop-shadow(1px 1px 1px black); margin-left: 2px;"]],null,null,null,Cr,wr)),r["\u0275did"](13,114688,null,0,Xn,[],{name:[0,"name"]},null),(e()(),r["\u0275ted"](-1,null,[" = rare "]))],function(e,t){e(t,2,0,"star"),e(t,5,0,"star"),e(t,7,0,"star"),e(t,9,0,"star"),e(t,11,0,"star"),e(t,13,0,"star")},null)}function Ai(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,0,"div",[["class","booster-pack-opening"]],[[4,"transform",null],[4,"backgroundImage",null],[4,"opacity",null]],null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,10,"div",[["class","booster-pack-cards-received"]],[[4,"display",null],[4,"opacity",null]],null,null,null,null)),(e()(),r["\u0275eld"](2,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Cards received:"])),(e()(),r["\u0275eld"](4,0,null,null,2,"div",[["style","display: flex; height: 150px; overflow-y: auto;"]],null,null,null,null,null)),(e()(),r["\u0275and"](16777216,null,null,1,null,xi)),r["\u0275did"](6,278528,null,0,ye,[r.ViewContainerRef,r.TemplateRef,r.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),r["\u0275eld"](7,0,null,null,2,"div",[["style","margin-top: 5px;"]],null,null,null,null,null)),(e()(),r["\u0275eld"](8,0,null,null,1,"button",[["style","width: 100px; height: 40px; margin-left: auto; margin-right: auto;"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=0!=(e.component.isActive=!1)&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["OK"])),(e()(),r["\u0275and"](16777216,null,null,1,null,Ii)),r["\u0275did"](11,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,6,0,n.cardsReceived),e(t,11,0,!n.hasPurchasedCardsBefore)},function(e,t){var n=t.component;e(t,0,0,n.transformStyle(),n.backgroundImageVal(),n.opacityVal()),e(t,1,0,n.isActive&&(n.timer>1500||n.skipAnimations)?"block":"none",n.cardsReceivedOpacityVal())})}class Ei{getAppComponent(){return re.instance}showTooltipForNextRealm(){j.instance.showTooltip("Coming in a future update...")}hideTooltip(){j.instance.hideTooltip()}tryToUnlockNextExpansion(){this.isSteamDemo()?a.instance.show("Not available in demo. Haunted Woods, Underworld, Plains of War, and more are unlockable in the full version of the game."):re.instance.gameState.resources.arena1.gold<1e5||(re.instance.gameState.resources.arena1.gold-=1e5,re.instance.unlockArena(2))}purchaseMultiplierUpdated(){if(this.getAppComponent().buyMaxChecked)this.getAppComponent().purchaseMultiplier=null;else{try{this.getAppComponent().purchaseMultiplier=parseInt(this.getAppComponent().purchaseMultiplier+"")}catch(e){this.getAppComponent().purchaseMultiplier=1}this.getAppComponent().purchaseMultiplier<1&&(this.getAppComponent().purchaseMultiplier=1)}}isSteamDemo(){return i.steam&&i.steamDemo}}var Ti=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Mi(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"button",[["style","margin-left: 120px; margin-top: -30px"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.tryToUnlockNextExpansion()&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,[' Unlock "Haunted Woods" expansion (100k gold)\n']))],null,function(e,t){e(t,0,0,t.component.getAppComponent().gameState.resources.arena1.gold<1e5)})}function Ri(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,16,"div",[["class","purchase-multiplier"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" Buy x "])),(e()(),r["\u0275eld"](2,0,null,null,6,"input",[["class","black-text"],["max","100000"],["min","1"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var i=!0,l=e.component;return"input"===t&&(i=!1!==r["\u0275nov"](e,3)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,3).onTouched()&&i),"compositionstart"===t&&(i=!1!==r["\u0275nov"](e,3)._compositionStart()&&i),"compositionend"===t&&(i=!1!==r["\u0275nov"](e,3)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==r["\u0275nov"](e,4).onChange(n.target.value)&&i),"input"===t&&(i=!1!==r["\u0275nov"](e,4).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,4).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(l.getAppComponent().purchaseMultiplier=n)&&i),"change"===t&&(i=!1!==l.purchaseMultiplierUpdated()&&i),i},null,null)),r["\u0275did"](3,16384,null,0,Ut,[r.Renderer2,r.ElementRef,[2,Ht]],null,null),r["\u0275did"](4,16384,null,0,rn,[r.Renderer2,r.ElementRef],null,null),r["\u0275prd"](1024,null,Bt,function(e,t){return[e,t]},[Ut,rn]),r["\u0275did"](6,671744,null,0,Ln,[[8,null],[8,null],[8,null],[6,Bt]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),r["\u0275prd"](2048,null,$t,null,[Ln]),r["\u0275did"](8,16384,null,0,qt,[[4,$t]],null,null),(e()(),r["\u0275eld"](9,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](10,0,null,null,5,"input",[["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(e,t,n){var i=!0,l=e.component;return"change"===t&&(i=!1!==r["\u0275nov"](e,11).onChange(n.target.checked)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,11).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(l.getAppComponent().buyMaxChecked=n)&&i),"change"===t&&(i=!1!==l.purchaseMultiplierUpdated()&&i),i},null,null)),r["\u0275did"](11,16384,null,0,Lt,[r.Renderer2,r.ElementRef],null,null),r["\u0275prd"](1024,null,Bt,function(e){return[e]},[Lt]),r["\u0275did"](13,671744,null,0,Ln,[[8,null],[8,null],[8,null],[6,Bt]],{model:[0,"model"]},{update:"ngModelChange"}),r["\u0275prd"](2048,null,$t,null,[Ln]),r["\u0275did"](15,16384,null,0,qt,[[4,$t]],null,null),(e()(),r["\u0275ted"](-1,null,[" Buy max\n"])),(e()(),r["\u0275eld"](17,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](18,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](19,0,null,null,18,"div",[["style","display: flex; padding: 50px;"]],null,null,null,null,null)),(e()(),r["\u0275eld"](20,0,null,null,2,"booster-pack-purchaser",[["arenaNumber","1"],["cardCount","1"],["currency","gold"],["description","The worst card of all time. Gives +1 Gold/sec."],["imageFilename","assets/images/cards/ghoul.png"],["name","Ghoul card"],["price","10"]],null,null,null,Si,_i)),r["\u0275did"](21,49152,null,0,Ci,[kt,H],{currency:[0,"currency"],price:[1,"price"],name:[2,"name"],description:[3,"description"],imageFilename:[4,"imageFilename"],cardCount:[5,"cardCount"],possibleCardIds:[6,"possibleCardIds"],purchaseMultiplier:[7,"purchaseMultiplier"],arenaNumber:[8,"arenaNumber"]},null),r["\u0275pad"](22,1),(e()(),r["\u0275eld"](23,0,null,null,2,"booster-pack-purchaser",[["arenaNumber","1"],["cardCount","1"],["currency","gold"],["description","Contains a random Tier 1 card. Hopefully not a Ghoul."],["imageFilename","assets/images/packs/1.png"],["name","Mini Pack"],["price","50"]],null,null,null,Si,_i)),r["\u0275did"](24,49152,null,0,Ci,[kt,H],{currency:[0,"currency"],price:[1,"price"],name:[2,"name"],description:[3,"description"],imageFilename:[4,"imageFilename"],cardCount:[5,"cardCount"],possibleCardIds:[6,"possibleCardIds"],purchaseMultiplier:[7,"purchaseMultiplier"],arenaNumber:[8,"arenaNumber"]},null),r["\u0275pad"](25,14),(e()(),r["\u0275eld"](26,0,null,null,2,"booster-pack-purchaser",[["arenaNumber","1"],["cardCount","3"],["currency","gold"],["description","Contains 3 random Tier 1 cards. There are 14 card possibilities in Tier 1."],["imageFilename","assets/images/packs/2.png"],["name","Regular Pack"],["price","125"]],null,null,null,Si,_i)),r["\u0275did"](27,49152,null,0,Ci,[kt,H],{currency:[0,"currency"],price:[1,"price"],name:[2,"name"],description:[3,"description"],imageFilename:[4,"imageFilename"],cardCount:[5,"cardCount"],possibleCardIds:[6,"possibleCardIds"],purchaseMultiplier:[7,"purchaseMultiplier"],arenaNumber:[8,"arenaNumber"]},null),r["\u0275pad"](28,14),(e()(),r["\u0275eld"](29,0,null,null,2,"booster-pack-purchaser",[["arenaNumber","1"],["cardCount","5"],["currency","gold"],["description","Contains 5 random Tier 1 cards. There are 14 card possibilities in Tier 1."],["imageFilename","assets/images/packs/2-big.png"],["name","Big Pack"],["price","200"]],null,null,null,Si,_i)),r["\u0275did"](30,49152,null,0,Ci,[kt,H],{currency:[0,"currency"],price:[1,"price"],name:[2,"name"],description:[3,"description"],imageFilename:[4,"imageFilename"],cardCount:[5,"cardCount"],possibleCardIds:[6,"possibleCardIds"],purchaseMultiplier:[7,"purchaseMultiplier"],arenaNumber:[8,"arenaNumber"]},null),r["\u0275pad"](31,14),(e()(),r["\u0275eld"](32,0,null,null,2,"booster-pack-purchaser",[["arenaNumber","1"],["cardCount","3"],["currency","gold"],["description","Contains 3 random Tier 2 cards. There are 9 card possibilities in Tier 2."],["imageFilename","assets/images/packs/3.png"],["name","Super Pack"],["price","10000"]],null,null,null,Si,_i)),r["\u0275did"](33,49152,null,0,Ci,[kt,H],{currency:[0,"currency"],price:[1,"price"],name:[2,"name"],description:[3,"description"],imageFilename:[4,"imageFilename"],cardCount:[5,"cardCount"],possibleCardIds:[6,"possibleCardIds"],purchaseMultiplier:[7,"purchaseMultiplier"],arenaNumber:[8,"arenaNumber"]},null),r["\u0275pad"](34,9),(e()(),r["\u0275eld"](35,0,null,null,2,"booster-pack-purchaser",[["arenaNumber","1"],["cardCount","5"],["currency","gold"],["description","Contains 5 random Tier 2 cards. There are 9 card possibilities in Tier 2."],["imageFilename","assets/images/packs/4.png"],["name","Super Pack+"],["price","15000"]],null,null,null,Si,_i)),r["\u0275did"](36,49152,null,0,Ci,[kt,H],{currency:[0,"currency"],price:[1,"price"],name:[2,"name"],description:[3,"description"],imageFilename:[4,"imageFilename"],cardCount:[5,"cardCount"],possibleCardIds:[6,"possibleCardIds"],purchaseMultiplier:[7,"purchaseMultiplier"],arenaNumber:[8,"arenaNumber"]},null),r["\u0275pad"](37,9),(e()(),r["\u0275and"](16777216,null,null,1,null,Mi)),r["\u0275did"](39,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275eld"](40,0,null,null,1,"booster-pack-opening",[],null,null,null,Ai,ki)),r["\u0275did"](41,49152,null,0,wi,[kt],null,null)],function(e,t){var n=t.component;e(t,6,0,n.getAppComponent().buyMaxChecked,n.getAppComponent().purchaseMultiplier),e(t,13,0,n.getAppComponent().buyMaxChecked);var r=e(t,22,0,1);e(t,21,0,"gold","10","Ghoul card","The worst card of all time. Gives +1 Gold/sec.","assets/images/cards/ghoul.png","1",r,n.getAppComponent().purchaseMultiplier,"1");var i=e(t,25,1,[1,2,3,4,5,6,7,8,9,10,11,12,13,14]);e(t,24,0,"gold","50","Mini Pack","Contains a random Tier 1 card. Hopefully not a Ghoul.","assets/images/packs/1.png","1",i,n.getAppComponent().purchaseMultiplier,"1");var l=e(t,28,1,[1,2,3,4,5,6,7,8,9,10,11,12,13,14]);e(t,27,0,"gold","125","Regular Pack","Contains 3 random Tier 1 cards. There are 14 card possibilities in Tier 1.","assets/images/packs/2.png","3",l,n.getAppComponent().purchaseMultiplier,"1");var s=e(t,31,1,[1,2,3,4,5,6,7,8,9,10,11,12,13,14]);e(t,30,0,"gold","200","Big Pack","Contains 5 random Tier 1 cards. There are 14 card possibilities in Tier 1.","assets/images/packs/2-big.png","5",s,n.getAppComponent().purchaseMultiplier,"1");var o=e(t,34,0,15,16,17,18,19,20,21,22,23);e(t,33,0,"gold","10000","Super Pack","Contains 3 random Tier 2 cards. There are 9 card possibilities in Tier 2.","assets/images/packs/3.png","3",o,n.getAppComponent().purchaseMultiplier,"1");var a=e(t,37,0,15,16,17,18,19,20,21,22,23);e(t,36,0,"gold","15000","Super Pack+","Contains 5 random Tier 2 cards. There are 9 card possibilities in Tier 2.","assets/images/packs/4.png","5",a,n.getAppComponent().purchaseMultiplier,"1"),e(t,39,0,n.getAppComponent().gameState.highestUnlockedArena<2)},function(e,t){e(t,2,0,r["\u0275nov"](t,8).ngClassUntouched,r["\u0275nov"](t,8).ngClassTouched,r["\u0275nov"](t,8).ngClassPristine,r["\u0275nov"](t,8).ngClassDirty,r["\u0275nov"](t,8).ngClassValid,r["\u0275nov"](t,8).ngClassInvalid,r["\u0275nov"](t,8).ngClassPending),e(t,10,0,r["\u0275nov"](t,15).ngClassUntouched,r["\u0275nov"](t,15).ngClassTouched,r["\u0275nov"](t,15).ngClassPristine,r["\u0275nov"](t,15).ngClassDirty,r["\u0275nov"](t,15).ngClassValid,r["\u0275nov"](t,15).ngClassInvalid,r["\u0275nov"](t,15).ngClassPending)})}class Pi{getAppComponent(){return re.instance}showTooltipForNextRealm(){j.instance.showTooltip("Coming in a future update...")}hideTooltip(){j.instance.hideTooltip()}shouldDisableNextExpansionUnlockButton(){return console.log("Wood: "+this.getAppComponent().gameState.resources.arena2.wood),console.log("Iron: "+this.getAppComponent().gameState.resources.arena2.iron),this.getAppComponent().gameState.resources.arena2.wood<25e6||this.getAppComponent().gameState.resources.arena2.iron<1e8}tryToUnlockNextExpansion(){this.getAppComponent().gameState.resources.arena2.wood<25e6||this.getAppComponent().gameState.resources.arena2.iron<1e8||(re.instance.gameState.resources.arena2.iron-=1e8,re.instance.gameState.resources.arena2.wood-=25e6,re.instance.unlockArena(3))}purchaseMultiplierUpdated(){if(this.getAppComponent().buyMaxChecked)this.getAppComponent().purchaseMultiplier=null;else{try{this.getAppComponent().purchaseMultiplier=parseInt(this.getAppComponent().purchaseMultiplier+"")}catch(e){this.getAppComponent().purchaseMultiplier=1}this.getAppComponent().purchaseMultiplier<1&&(this.getAppComponent().purchaseMultiplier=1)}}}var Oi=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Ni(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"button",[["style","margin-left: 215px; margin-top: -30px"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.tryToUnlockNextExpansion()&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,[" Unlock next expansion "]))],null,null)}function Di(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"span",[["class","white-text"],["style","margin-left: 220px"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["(25M wood, 100M iron)"]))],null,null)}function Fi(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,16,"div",[["class","purchase-multiplier white-text"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" Buy x "])),(e()(),r["\u0275eld"](2,0,null,null,6,"input",[["class","black-text"],["max","100000"],["min","1"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var i=!0,l=e.component;return"input"===t&&(i=!1!==r["\u0275nov"](e,3)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,3).onTouched()&&i),"compositionstart"===t&&(i=!1!==r["\u0275nov"](e,3)._compositionStart()&&i),"compositionend"===t&&(i=!1!==r["\u0275nov"](e,3)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==r["\u0275nov"](e,4).onChange(n.target.value)&&i),"input"===t&&(i=!1!==r["\u0275nov"](e,4).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,4).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(l.getAppComponent().purchaseMultiplier=n)&&i),"change"===t&&(i=!1!==l.purchaseMultiplierUpdated()&&i),i},null,null)),r["\u0275did"](3,16384,null,0,Ut,[r.Renderer2,r.ElementRef,[2,Ht]],null,null),r["\u0275did"](4,16384,null,0,rn,[r.Renderer2,r.ElementRef],null,null),r["\u0275prd"](1024,null,Bt,function(e,t){return[e,t]},[Ut,rn]),r["\u0275did"](6,671744,null,0,Ln,[[8,null],[8,null],[8,null],[6,Bt]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),r["\u0275prd"](2048,null,$t,null,[Ln]),r["\u0275did"](8,16384,null,0,qt,[[4,$t]],null,null),(e()(),r["\u0275eld"](9,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](10,0,null,null,5,"input",[["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(e,t,n){var i=!0,l=e.component;return"change"===t&&(i=!1!==r["\u0275nov"](e,11).onChange(n.target.checked)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,11).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(l.getAppComponent().buyMaxChecked=n)&&i),"change"===t&&(i=!1!==l.purchaseMultiplierUpdated()&&i),i},null,null)),r["\u0275did"](11,16384,null,0,Lt,[r.Renderer2,r.ElementRef],null,null),r["\u0275prd"](1024,null,Bt,function(e){return[e]},[Lt]),r["\u0275did"](13,671744,null,0,Ln,[[8,null],[8,null],[8,null],[6,Bt]],{model:[0,"model"]},{update:"ngModelChange"}),r["\u0275prd"](2048,null,$t,null,[Ln]),r["\u0275did"](15,16384,null,0,qt,[[4,$t]],null,null),(e()(),r["\u0275ted"](-1,null,[" Buy max\n"])),(e()(),r["\u0275eld"](17,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](18,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](19,0,null,null,21,"div",[["style","display: flex; padding: 50px;"]],null,null,null,null,null)),(e()(),r["\u0275eld"](20,0,null,null,2,"booster-pack-purchaser",[["arenaNumber","2"],["cardCount","1"],["currency","wood"],["description","Can barely chop a twig. But he tries. +1 wood/sec"],["displaySize","2"],["imageFilename","assets/images/cards/lil_lumberjack.png"],["name","Lil' Lumberjack"],["price","10"],["textColor","white"]],null,null,null,Si,_i)),r["\u0275did"](21,49152,null,0,Ci,[kt,H],{currency:[0,"currency"],price:[1,"price"],name:[2,"name"],description:[3,"description"],imageFilename:[4,"imageFilename"],cardCount:[5,"cardCount"],possibleCardIds:[6,"possibleCardIds"],textColor:[7,"textColor"],purchaseMultiplier:[8,"purchaseMultiplier"],displaySize:[9,"displaySize"],arenaNumber:[10,"arenaNumber"]},null),r["\u0275pad"](22,1),(e()(),r["\u0275eld"](23,0,null,null,2,"booster-pack-purchaser",[["arenaNumber","2"],["cardCount","1"],["currency","wood"],["description","Contains a random Tier 1 card. There are 28 card possibilities in Tier 1."],["displaySize","2"],["imageFilename","assets/images/packs/forest1.png"],["name","Mini Pack"],["price","75"],["textColor","white"]],null,null,null,Si,_i)),r["\u0275did"](24,49152,null,0,Ci,[kt,H],{currency:[0,"currency"],price:[1,"price"],name:[2,"name"],description:[3,"description"],imageFilename:[4,"imageFilename"],cardCount:[5,"cardCount"],possibleCardIds:[6,"possibleCardIds"],textColor:[7,"textColor"],purchaseMultiplier:[8,"purchaseMultiplier"],displaySize:[9,"displaySize"],arenaNumber:[10,"arenaNumber"]},null),r["\u0275pad"](25,28),(e()(),r["\u0275eld"](26,0,null,null,2,"booster-pack-purchaser",[["arenaNumber","2"],["cardCount","3"],["currency","wood"],["description","Contains 3 random Tier 1 cards. There are 28 card possibilities in Tier 1."],["displaySize","2"],["imageFilename","assets/images/packs/forest2.png"],["name","Regular Pack"],["price","200"],["textColor","white"]],null,null,null,Si,_i)),r["\u0275did"](27,49152,null,0,Ci,[kt,H],{currency:[0,"currency"],price:[1,"price"],name:[2,"name"],description:[3,"description"],imageFilename:[4,"imageFilename"],cardCount:[5,"cardCount"],possibleCardIds:[6,"possibleCardIds"],textColor:[7,"textColor"],purchaseMultiplier:[8,"purchaseMultiplier"],displaySize:[9,"displaySize"],arenaNumber:[10,"arenaNumber"]},null),r["\u0275pad"](28,28),(e()(),r["\u0275eld"](29,0,null,null,2,"booster-pack-purchaser",[["arenaNumber","2"],["cardCount","5"],["currency","wood"],["description","Contains 5 random Tier 1 cards. There are 28 card possibilities in Tier 1."],["displaySize","2"],["imageFilename","assets/images/packs/forest4.png"],["name","Regular Pack XL"],["price","300"],["textColor","white"]],null,null,null,Si,_i)),r["\u0275did"](30,49152,null,0,Ci,[kt,H],{currency:[0,"currency"],price:[1,"price"],name:[2,"name"],description:[3,"description"],imageFilename:[4,"imageFilename"],cardCount:[5,"cardCount"],possibleCardIds:[6,"possibleCardIds"],textColor:[7,"textColor"],purchaseMultiplier:[8,"purchaseMultiplier"],displaySize:[9,"displaySize"],arenaNumber:[10,"arenaNumber"]},null),r["\u0275pad"](31,28),(e()(),r["\u0275eld"](32,0,null,null,2,"booster-pack-purchaser",[["arenaNumber","2"],["cardCount","1"],["currency","wood"],["currency2","iron"],["description","Contains 1 random Tier 2 card. There are 17 card possibilities in Tier 2."],["displaySize","2"],["imageFilename","assets/images/packs/forest3.png"],["name","Mini Metal Pack"],["price","5000"],["price2","75000"],["textColor","white"]],null,null,null,Si,_i)),r["\u0275did"](33,49152,null,0,Ci,[kt,H],{currency:[0,"currency"],price:[1,"price"],currency2:[2,"currency2"],price2:[3,"price2"],name:[4,"name"],description:[5,"description"],imageFilename:[6,"imageFilename"],cardCount:[7,"cardCount"],possibleCardIds:[8,"possibleCardIds"],textColor:[9,"textColor"],purchaseMultiplier:[10,"purchaseMultiplier"],displaySize:[11,"displaySize"],arenaNumber:[12,"arenaNumber"]},null),r["\u0275pad"](34,17),(e()(),r["\u0275eld"](35,0,null,null,2,"booster-pack-purchaser",[["arenaNumber","2"],["cardCount","3"],["currency","wood"],["currency2","iron"],["description","Contains 3 random Tier 2 cards. There are 17 card possibilities in Tier 2."],["displaySize","2"],["imageFilename","assets/images/packs/forest3.png"],["name","Metal Pack"],["price","7000"],["price2","125000"],["textColor","white"]],null,null,null,Si,_i)),r["\u0275did"](36,49152,null,0,Ci,[kt,H],{currency:[0,"currency"],price:[1,"price"],currency2:[2,"currency2"],price2:[3,"price2"],name:[4,"name"],description:[5,"description"],imageFilename:[6,"imageFilename"],cardCount:[7,"cardCount"],possibleCardIds:[8,"possibleCardIds"],textColor:[9,"textColor"],purchaseMultiplier:[10,"purchaseMultiplier"],displaySize:[11,"displaySize"],arenaNumber:[12,"arenaNumber"]},null),r["\u0275pad"](37,17),(e()(),r["\u0275eld"](38,0,null,null,2,"booster-pack-purchaser",[["arenaNumber","2"],["cardCount","5"],["currency","wood"],["currency2","iron"],["description","Contains 5 random Tier 2 cards. There are 17 card possibilities in Tier 2."],["displaySize","2"],["imageFilename","assets/images/packs/forest3.png"],["name","Metal Pack XL"],["price","11000"],["price2","200000"],["textColor","white"]],null,null,null,Si,_i)),r["\u0275did"](39,49152,null,0,Ci,[kt,H],{currency:[0,"currency"],price:[1,"price"],currency2:[2,"currency2"],price2:[3,"price2"],name:[4,"name"],description:[5,"description"],imageFilename:[6,"imageFilename"],cardCount:[7,"cardCount"],possibleCardIds:[8,"possibleCardIds"],textColor:[9,"textColor"],purchaseMultiplier:[10,"purchaseMultiplier"],displaySize:[11,"displaySize"],arenaNumber:[12,"arenaNumber"]},null),r["\u0275pad"](40,17),(e()(),r["\u0275and"](16777216,null,null,1,null,Ni)),r["\u0275did"](42,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275eld"](43,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275and"](16777216,null,null,1,null,Di)),r["\u0275did"](45,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275eld"](46,0,null,null,1,"booster-pack-opening",[],null,null,null,Ai,ki)),r["\u0275did"](47,49152,null,0,wi,[kt],null,null)],function(e,t){var n=t.component;e(t,6,0,n.getAppComponent().buyMaxChecked,n.getAppComponent().purchaseMultiplier),e(t,13,0,n.getAppComponent().buyMaxChecked);var r=e(t,22,0,24);e(t,21,1,["wood","10","Lil' Lumberjack","Can barely chop a twig. But he tries. +1 wood/sec","assets/images/cards/lil_lumberjack.png","1",r,"white",n.getAppComponent().purchaseMultiplier,"2","2"]);var i=e(t,25,1,[24,25,26,27,28,29,30,31,32,33,34,35,37,38,39,40,41,42,43,44,45,46,47,48,49,51,52,53]);e(t,24,1,["wood","75","Mini Pack","Contains a random Tier 1 card. There are 28 card possibilities in Tier 1.","assets/images/packs/forest1.png","1",i,"white",n.getAppComponent().purchaseMultiplier,"2","2"]);var l=e(t,28,1,[24,25,26,27,28,29,30,31,32,33,34,35,37,38,39,40,41,42,43,44,45,46,47,48,49,51,52,53]);e(t,27,1,["wood","200","Regular Pack","Contains 3 random Tier 1 cards. There are 28 card possibilities in Tier 1.","assets/images/packs/forest2.png","3",l,"white",n.getAppComponent().purchaseMultiplier,"2","2"]);var s=e(t,31,1,[24,25,26,27,28,29,30,31,32,33,34,35,37,38,39,40,41,42,43,44,45,46,47,48,49,51,52,53]);e(t,30,1,["wood","300","Regular Pack XL","Contains 5 random Tier 1 cards. There are 28 card possibilities in Tier 1.","assets/images/packs/forest4.png","5",s,"white",n.getAppComponent().purchaseMultiplier,"2","2"]);var o=e(t,34,1,[36,50,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68]);e(t,33,1,["wood","5000","iron","75000","Mini Metal Pack","Contains 1 random Tier 2 card. There are 17 card possibilities in Tier 2.","assets/images/packs/forest3.png","1",o,"white",n.getAppComponent().purchaseMultiplier,"2","2"]);var a=e(t,37,1,[36,50,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68]);e(t,36,1,["wood","7000","iron","125000","Metal Pack","Contains 3 random Tier 2 cards. There are 17 card possibilities in Tier 2.","assets/images/packs/forest3.png","3",a,"white",n.getAppComponent().purchaseMultiplier,"2","2"]);var u=e(t,40,1,[36,50,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68]);e(t,39,1,["wood","11000","iron","200000","Metal Pack XL","Contains 5 random Tier 2 cards. There are 17 card possibilities in Tier 2.","assets/images/packs/forest3.png","5",u,"white",n.getAppComponent().purchaseMultiplier,"2","2"]),e(t,42,0,n.getAppComponent().gameState.highestUnlockedArena<3),e(t,45,0,n.getAppComponent().gameState.highestUnlockedArena<3)},function(e,t){e(t,2,0,r["\u0275nov"](t,8).ngClassUntouched,r["\u0275nov"](t,8).ngClassTouched,r["\u0275nov"](t,8).ngClassPristine,r["\u0275nov"](t,8).ngClassDirty,r["\u0275nov"](t,8).ngClassValid,r["\u0275nov"](t,8).ngClassInvalid,r["\u0275nov"](t,8).ngClassPending),e(t,10,0,r["\u0275nov"](t,15).ngClassUntouched,r["\u0275nov"](t,15).ngClassTouched,r["\u0275nov"](t,15).ngClassPristine,r["\u0275nov"](t,15).ngClassDirty,r["\u0275nov"](t,15).ngClassValid,r["\u0275nov"](t,15).ngClassInvalid,r["\u0275nov"](t,15).ngClassPending)})}class Vi{getAppComponent(){return re.instance}showTooltipForNextRealm(){j.instance.showTooltip("Coming in a future update...")}hideTooltip(){j.instance.hideTooltip()}shouldDisableNextExpansionUnlockButton(){return!1}tryToUnlockNextExpansion(){this.getAppComponent().gameState.resources.arena3.ether<1e9||this.getAppComponent().gameState.resources.arena3.skulls<1e9||this.getAppComponent().gameState.resources.arena3.feathers<1e9||(re.instance.gameState.resources.arena3.ether-=1e9,re.instance.gameState.resources.arena3.feathers-=1e9,re.instance.gameState.resources.arena3.skulls-=1e9,re.instance.unlockArena(4))}purchaseMultiplierUpdated(){if(this.getAppComponent().buyMaxChecked)this.getAppComponent().purchaseMultiplier=null;else{try{this.getAppComponent().purchaseMultiplier=parseInt(this.getAppComponent().purchaseMultiplier+"")}catch(e){this.getAppComponent().purchaseMultiplier=1}this.getAppComponent().purchaseMultiplier<1&&(this.getAppComponent().purchaseMultiplier=1)}}}var ji=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Bi(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.tryToUnlockNextExpansion()&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,[" Unlock next expansion "]))],null,null)}function Li(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,16,"div",[["class","purchase-multiplier white-text"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" Buy x "])),(e()(),r["\u0275eld"](2,0,null,null,6,"input",[["class","black-text"],["max","100000"],["min","1"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var i=!0,l=e.component;return"input"===t&&(i=!1!==r["\u0275nov"](e,3)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,3).onTouched()&&i),"compositionstart"===t&&(i=!1!==r["\u0275nov"](e,3)._compositionStart()&&i),"compositionend"===t&&(i=!1!==r["\u0275nov"](e,3)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==r["\u0275nov"](e,4).onChange(n.target.value)&&i),"input"===t&&(i=!1!==r["\u0275nov"](e,4).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,4).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(l.getAppComponent().purchaseMultiplier=n)&&i),"change"===t&&(i=!1!==l.purchaseMultiplierUpdated()&&i),i},null,null)),r["\u0275did"](3,16384,null,0,Ut,[r.Renderer2,r.ElementRef,[2,Ht]],null,null),r["\u0275did"](4,16384,null,0,rn,[r.Renderer2,r.ElementRef],null,null),r["\u0275prd"](1024,null,Bt,function(e,t){return[e,t]},[Ut,rn]),r["\u0275did"](6,671744,null,0,Ln,[[8,null],[8,null],[8,null],[6,Bt]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),r["\u0275prd"](2048,null,$t,null,[Ln]),r["\u0275did"](8,16384,null,0,qt,[[4,$t]],null,null),(e()(),r["\u0275eld"](9,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](10,0,null,null,5,"input",[["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(e,t,n){var i=!0,l=e.component;return"change"===t&&(i=!1!==r["\u0275nov"](e,11).onChange(n.target.checked)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,11).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(l.getAppComponent().buyMaxChecked=n)&&i),"change"===t&&(i=!1!==l.purchaseMultiplierUpdated()&&i),i},null,null)),r["\u0275did"](11,16384,null,0,Lt,[r.Renderer2,r.ElementRef],null,null),r["\u0275prd"](1024,null,Bt,function(e){return[e]},[Lt]),r["\u0275did"](13,671744,null,0,Ln,[[8,null],[8,null],[8,null],[6,Bt]],{model:[0,"model"]},{update:"ngModelChange"}),r["\u0275prd"](2048,null,$t,null,[Ln]),r["\u0275did"](15,16384,null,0,qt,[[4,$t]],null,null),(e()(),r["\u0275ted"](-1,null,[" Buy max\n"])),(e()(),r["\u0275eld"](17,0,null,null,21,"div",[["style","display: flex; padding: 50px;"]],null,null,null,null,null)),(e()(),r["\u0275eld"](18,0,null,null,2,"booster-pack-purchaser",[["arenaNumber","3"],["cardCount","1"],["currency","ether"],["currency2","skulls"],["currency3","feathers"],["description","Hosts ceremonies for you. The result: ether, skulls, and feathers."],["displaySize","2"],["imageFilename","assets/images/cards/priestess.png"],["name","Priestess"],["price","10"],["price2","10"],["price3","10"],["textColor","white"]],null,null,null,Si,_i)),r["\u0275did"](19,49152,null,0,Ci,[kt,H],{currency:[0,"currency"],price:[1,"price"],currency2:[2,"currency2"],price2:[3,"price2"],currency3:[4,"currency3"],price3:[5,"price3"],name:[6,"name"],description:[7,"description"],imageFilename:[8,"imageFilename"],cardCount:[9,"cardCount"],possibleCardIds:[10,"possibleCardIds"],textColor:[11,"textColor"],purchaseMultiplier:[12,"purchaseMultiplier"],displaySize:[13,"displaySize"],arenaNumber:[14,"arenaNumber"]},null),r["\u0275pad"](20,1),(e()(),r["\u0275eld"](21,0,null,null,2,"booster-pack-purchaser",[["arenaNumber","3"],["cardCount","1"],["currency","ether"],["currency2","skulls"],["currency3","feathers"],["description","Contains a random Tier 1 card. There are 19 card possibilities in Tier 1."],["displaySize","2"],["imageFilename","assets/images/packs/underworld1.png"],["name","Mini Pack"],["price","100"],["price2","100"],["price3","100"],["textColor","white"]],null,null,null,Si,_i)),r["\u0275did"](22,49152,null,0,Ci,[kt,H],{currency:[0,"currency"],price:[1,"price"],currency2:[2,"currency2"],price2:[3,"price2"],currency3:[4,"currency3"],price3:[5,"price3"],name:[6,"name"],description:[7,"description"],imageFilename:[8,"imageFilename"],cardCount:[9,"cardCount"],possibleCardIds:[10,"possibleCardIds"],textColor:[11,"textColor"],purchaseMultiplier:[12,"purchaseMultiplier"],displaySize:[13,"displaySize"],arenaNumber:[14,"arenaNumber"]},null),r["\u0275pad"](23,19),(e()(),r["\u0275eld"](24,0,null,null,2,"booster-pack-purchaser",[["arenaNumber","3"],["cardCount","3"],["currency","ether"],["currency2","skulls"],["currency3","feathers"],["description","Contains 3 random Tier 1 cards. There are 19 card possibilities in Tier 1."],["displaySize","2"],["imageFilename","assets/images/packs/underworld2.png"],["name","Regular Pack"],["price","250"],["price2","250"],["price3","250"],["textColor","white"]],null,null,null,Si,_i)),r["\u0275did"](25,49152,null,0,Ci,[kt,H],{currency:[0,"currency"],price:[1,"price"],currency2:[2,"currency2"],price2:[3,"price2"],currency3:[4,"currency3"],price3:[5,"price3"],name:[6,"name"],description:[7,"description"],imageFilename:[8,"imageFilename"],cardCount:[9,"cardCount"],possibleCardIds:[10,"possibleCardIds"],textColor:[11,"textColor"],purchaseMultiplier:[12,"purchaseMultiplier"],displaySize:[13,"displaySize"],arenaNumber:[14,"arenaNumber"]},null),r["\u0275pad"](26,19),(e()(),r["\u0275eld"](27,0,null,null,2,"booster-pack-purchaser",[["arenaNumber","3"],["cardCount","5"],["currency","ether"],["currency2","skulls"],["currency3","feathers"],["description","Contains 5 random Tier 1 cards. There are 19 card possibilities in Tier 1."],["displaySize","2"],["imageFilename","assets/images/packs/underworld3.png"],["name","Regular Pack XL"],["price","400"],["price2","400"],["price3","400"],["textColor","white"]],null,null,null,Si,_i)),r["\u0275did"](28,49152,null,0,Ci,[kt,H],{currency:[0,"currency"],price:[1,"price"],currency2:[2,"currency2"],price2:[3,"price2"],currency3:[4,"currency3"],price3:[5,"price3"],name:[6,"name"],description:[7,"description"],imageFilename:[8,"imageFilename"],cardCount:[9,"cardCount"],possibleCardIds:[10,"possibleCardIds"],textColor:[11,"textColor"],purchaseMultiplier:[12,"purchaseMultiplier"],displaySize:[13,"displaySize"],arenaNumber:[14,"arenaNumber"]},null),r["\u0275pad"](29,19),(e()(),r["\u0275eld"](30,0,null,null,2,"booster-pack-purchaser",[["arenaNumber","3"],["cardCount","1"],["currency","ether"],["currency2","skulls"],["currency3","feathers"],["description","Contains 1 random Tier 2 card. There are 20 card possibilities in Tier 2."],["displaySize","2"],["imageFilename","assets/images/packs/underworld4.png"],["name","Mini Hell Pack"],["price","10000"],["price2","10000"],["price3","10000"],["textColor","white"]],null,null,null,Si,_i)),r["\u0275did"](31,49152,null,0,Ci,[kt,H],{currency:[0,"currency"],price:[1,"price"],currency2:[2,"currency2"],price2:[3,"price2"],currency3:[4,"currency3"],price3:[5,"price3"],name:[6,"name"],description:[7,"description"],imageFilename:[8,"imageFilename"],cardCount:[9,"cardCount"],possibleCardIds:[10,"possibleCardIds"],textColor:[11,"textColor"],purchaseMultiplier:[12,"purchaseMultiplier"],displaySize:[13,"displaySize"],arenaNumber:[14,"arenaNumber"]},null),r["\u0275pad"](32,20),(e()(),r["\u0275eld"](33,0,null,null,2,"booster-pack-purchaser",[["arenaNumber","3"],["cardCount","3"],["currency","ether"],["currency2","skulls"],["currency3","feathers"],["description","Contains 3 random Tier 2 cards. There are 20 card possibilities in Tier 2."],["displaySize","2"],["imageFilename","assets/images/packs/underworld5.png"],["name","Hell Pack"],["price","25000"],["price2","25000"],["price3","25000"],["textColor","white"]],null,null,null,Si,_i)),r["\u0275did"](34,49152,null,0,Ci,[kt,H],{currency:[0,"currency"],price:[1,"price"],currency2:[2,"currency2"],price2:[3,"price2"],currency3:[4,"currency3"],price3:[5,"price3"],name:[6,"name"],description:[7,"description"],imageFilename:[8,"imageFilename"],cardCount:[9,"cardCount"],possibleCardIds:[10,"possibleCardIds"],textColor:[11,"textColor"],purchaseMultiplier:[12,"purchaseMultiplier"],displaySize:[13,"displaySize"],arenaNumber:[14,"arenaNumber"]},null),r["\u0275pad"](35,20),(e()(),r["\u0275eld"](36,0,null,null,2,"booster-pack-purchaser",[["arenaNumber","3"],["cardCount","5"],["currency","ether"],["currency2","skulls"],["currency3","feathers"],["description","Contains 5 random Tier 2 cards. There are 20 card possibilities in Tier 2."],["displaySize","2"],["imageFilename","assets/images/packs/underworld6.png"],["name","Hell Pack XL"],["price","40000"],["price2","40000"],["price3","40000"],["textColor","white"]],null,null,null,Si,_i)),r["\u0275did"](37,49152,null,0,Ci,[kt,H],{currency:[0,"currency"],price:[1,"price"],currency2:[2,"currency2"],price2:[3,"price2"],currency3:[4,"currency3"],price3:[5,"price3"],name:[6,"name"],description:[7,"description"],imageFilename:[8,"imageFilename"],cardCount:[9,"cardCount"],possibleCardIds:[10,"possibleCardIds"],textColor:[11,"textColor"],purchaseMultiplier:[12,"purchaseMultiplier"],displaySize:[13,"displaySize"],arenaNumber:[14,"arenaNumber"]},null),r["\u0275pad"](38,20),(e()(),r["\u0275eld"](39,0,null,null,15,"div",[["style","display: flex; padding: 50px; margin-top: -100px"]],null,null,null,null,null)),(e()(),r["\u0275eld"](40,0,null,null,2,"booster-pack-purchaser",[["arenaNumber","3"],["cardCount","1"],["currency","ether"],["currency2","skulls"],["currency3","feathers"],["description","Contains a random Tier 3 card. There are 15 card possibilities in Tier 3."],["displaySize","2"],["imageFilename","assets/images/packs/underworld7.png"],["name","Mini Nightmare Pack"],["price","500000"],["price2","500000"],["price3","500000"],["textColor","white"]],null,null,null,Si,_i)),r["\u0275did"](41,49152,null,0,Ci,[kt,H],{currency:[0,"currency"],price:[1,"price"],currency2:[2,"currency2"],price2:[3,"price2"],currency3:[4,"currency3"],price3:[5,"price3"],name:[6,"name"],description:[7,"description"],imageFilename:[8,"imageFilename"],cardCount:[9,"cardCount"],possibleCardIds:[10,"possibleCardIds"],textColor:[11,"textColor"],purchaseMultiplier:[12,"purchaseMultiplier"],displaySize:[13,"displaySize"],arenaNumber:[14,"arenaNumber"]},null),r["\u0275pad"](42,15),(e()(),r["\u0275eld"](43,0,null,null,2,"booster-pack-purchaser",[["arenaNumber","3"],["cardCount","3"],["currency","ether"],["currency2","skulls"],["currency3","feathers"],["description","Contains 3 random Tier 3 cards. There are 15 card possibilities in Tier 3."],["displaySize","2"],["imageFilename","assets/images/packs/underworld8.png"],["name","Nightmare Pack"],["price","1250000"],["price2","1250000"],["price3","1250000"],["textColor","white"]],null,null,null,Si,_i)),r["\u0275did"](44,49152,null,0,Ci,[kt,H],{currency:[0,"currency"],price:[1,"price"],currency2:[2,"currency2"],price2:[3,"price2"],currency3:[4,"currency3"],price3:[5,"price3"],name:[6,"name"],description:[7,"description"],imageFilename:[8,"imageFilename"],cardCount:[9,"cardCount"],possibleCardIds:[10,"possibleCardIds"],textColor:[11,"textColor"],purchaseMultiplier:[12,"purchaseMultiplier"],displaySize:[13,"displaySize"],arenaNumber:[14,"arenaNumber"]},null),r["\u0275pad"](45,15),(e()(),r["\u0275eld"](46,0,null,null,2,"booster-pack-purchaser",[["arenaNumber","3"],["cardCount","5"],["currency","ether"],["currency2","skulls"],["currency3","feathers"],["description","Contains 5 random Tier 3 cards. There are 15 card possibilities in Tier 3."],["displaySize","2"],["imageFilename","assets/images/packs/underworld9.png"],["name","Nightmare Pack XL"],["price","2000000"],["price2","2000000"],["price3","2000000"],["textColor","white"]],null,null,null,Si,_i)),r["\u0275did"](47,49152,null,0,Ci,[kt,H],{currency:[0,"currency"],price:[1,"price"],currency2:[2,"currency2"],price2:[3,"price2"],currency3:[4,"currency3"],price3:[5,"price3"],name:[6,"name"],description:[7,"description"],imageFilename:[8,"imageFilename"],cardCount:[9,"cardCount"],possibleCardIds:[10,"possibleCardIds"],textColor:[11,"textColor"],purchaseMultiplier:[12,"purchaseMultiplier"],displaySize:[13,"displaySize"],arenaNumber:[14,"arenaNumber"]},null),r["\u0275pad"](48,15),(e()(),r["\u0275eld"](49,0,null,null,5,"div",[["style","margin-left: 200px; margin-top: 40px;"]],null,null,null,null,null)),(e()(),r["\u0275and"](16777216,null,null,1,null,Bi)),r["\u0275did"](51,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275eld"](52,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](53,0,null,null,1,"span",[["class","white-text"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["(1B ether, 1B skulls, 1B feathers)"])),(e()(),r["\u0275eld"](55,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](56,0,null,null,1,"booster-pack-opening",[],null,null,null,Ai,ki)),r["\u0275did"](57,49152,null,0,wi,[kt],null,null)],function(e,t){var n=t.component;e(t,6,0,n.getAppComponent().buyMaxChecked,n.getAppComponent().purchaseMultiplier),e(t,13,0,n.getAppComponent().buyMaxChecked);var r=e(t,20,0,69);e(t,19,1,["ether","10","skulls","10","feathers","10","Priestess","Hosts ceremonies for you. The result: ether, skulls, and feathers.","assets/images/cards/priestess.png","1",r,"white",n.getAppComponent().purchaseMultiplier,"2","3"]);var i=e(t,23,1,[69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87]);e(t,22,1,["ether","100","skulls","100","feathers","100","Mini Pack","Contains a random Tier 1 card. There are 19 card possibilities in Tier 1.","assets/images/packs/underworld1.png","1",i,"white",n.getAppComponent().purchaseMultiplier,"2","3"]);var l=e(t,26,1,[69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87]);e(t,25,1,["ether","250","skulls","250","feathers","250","Regular Pack","Contains 3 random Tier 1 cards. There are 19 card possibilities in Tier 1.","assets/images/packs/underworld2.png","3",l,"white",n.getAppComponent().purchaseMultiplier,"2","3"]);var s=e(t,29,1,[69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87]);e(t,28,1,["ether","400","skulls","400","feathers","400","Regular Pack XL","Contains 5 random Tier 1 cards. There are 19 card possibilities in Tier 1.","assets/images/packs/underworld3.png","5",s,"white",n.getAppComponent().purchaseMultiplier,"2","3"]);var o=e(t,32,1,[88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107]);e(t,31,1,["ether","10000","skulls","10000","feathers","10000","Mini Hell Pack","Contains 1 random Tier 2 card. There are 20 card possibilities in Tier 2.","assets/images/packs/underworld4.png","1",o,"white",n.getAppComponent().purchaseMultiplier,"2","3"]);var a=e(t,35,1,[88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107]);e(t,34,1,["ether","25000","skulls","25000","feathers","25000","Hell Pack","Contains 3 random Tier 2 cards. There are 20 card possibilities in Tier 2.","assets/images/packs/underworld5.png","3",a,"white",n.getAppComponent().purchaseMultiplier,"2","3"]);var u=e(t,38,1,[88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107]);e(t,37,1,["ether","40000","skulls","40000","feathers","40000","Hell Pack XL","Contains 5 random Tier 2 cards. There are 20 card possibilities in Tier 2.","assets/images/packs/underworld6.png","5",u,"white",n.getAppComponent().purchaseMultiplier,"2","3"]);var c=e(t,42,1,[108,109,110,111,112,113,114,115,116,117,118,119,120,121,122]);e(t,41,1,["ether","500000","skulls","500000","feathers","500000","Mini Nightmare Pack","Contains a random Tier 3 card. There are 15 card possibilities in Tier 3.","assets/images/packs/underworld7.png","1",c,"white",n.getAppComponent().purchaseMultiplier,"2","3"]);var d=e(t,45,1,[108,109,110,111,112,113,114,115,116,117,118,119,120,121,122]);e(t,44,1,["ether","1250000","skulls","1250000","feathers","1250000","Nightmare Pack","Contains 3 random Tier 3 cards. There are 15 card possibilities in Tier 3.","assets/images/packs/underworld8.png","3",d,"white",n.getAppComponent().purchaseMultiplier,"2","3"]);var h=e(t,48,1,[108,109,110,111,112,113,114,115,116,117,118,119,120,121,122]);e(t,47,1,["ether","2000000","skulls","2000000","feathers","2000000","Nightmare Pack XL","Contains 5 random Tier 3 cards. There are 15 card possibilities in Tier 3.","assets/images/packs/underworld9.png","5",h,"white",n.getAppComponent().purchaseMultiplier,"2","3"]),e(t,51,0,n.getAppComponent().gameState.highestUnlockedArena<4)},function(e,t){e(t,2,0,r["\u0275nov"](t,8).ngClassUntouched,r["\u0275nov"](t,8).ngClassTouched,r["\u0275nov"](t,8).ngClassPristine,r["\u0275nov"](t,8).ngClassDirty,r["\u0275nov"](t,8).ngClassValid,r["\u0275nov"](t,8).ngClassInvalid,r["\u0275nov"](t,8).ngClassPending),e(t,10,0,r["\u0275nov"](t,15).ngClassUntouched,r["\u0275nov"](t,15).ngClassTouched,r["\u0275nov"](t,15).ngClassPristine,r["\u0275nov"](t,15).ngClassDirty,r["\u0275nov"](t,15).ngClassValid,r["\u0275nov"](t,15).ngClassInvalid,r["\u0275nov"](t,15).ngClassPending)})}class Hi{getAppComponent(){return re.instance}showTooltipForNextRealm(){j.instance.showTooltip("Coming in a future update...")}hideTooltip(){j.instance.hideTooltip()}shouldDisableNextExpansionUnlockButton(){return console.log("Wood: "+this.getAppComponent().gameState.resources.arena2.wood),console.log("Iron: "+this.getAppComponent().gameState.resources.arena2.iron),this.getAppComponent().gameState.resources.arena2.wood<25e6||this.getAppComponent().gameState.resources.arena2.iron<1e8}tryToUnlockNextExpansion(){}purchaseMultiplierUpdated(){if(this.getAppComponent().buyMaxChecked)this.getAppComponent().purchaseMultiplier=null;else{try{this.getAppComponent().purchaseMultiplier=parseInt(this.getAppComponent().purchaseMultiplier+"")}catch(e){this.getAppComponent().purchaseMultiplier=1}this.getAppComponent().purchaseMultiplier<1&&(this.getAppComponent().purchaseMultiplier=1)}}}var Ui=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function zi(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.tryToUnlockNextExpansion()&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,[" Unlock next expansion "]))],null,null)}function Gi(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,16,"div",[["class","purchase-multiplier"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" Buy x "])),(e()(),r["\u0275eld"](2,0,null,null,6,"input",[["class","black-text"],["max","100000"],["min","1"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var i=!0,l=e.component;return"input"===t&&(i=!1!==r["\u0275nov"](e,3)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,3).onTouched()&&i),"compositionstart"===t&&(i=!1!==r["\u0275nov"](e,3)._compositionStart()&&i),"compositionend"===t&&(i=!1!==r["\u0275nov"](e,3)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==r["\u0275nov"](e,4).onChange(n.target.value)&&i),"input"===t&&(i=!1!==r["\u0275nov"](e,4).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,4).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(l.getAppComponent().purchaseMultiplier=n)&&i),"change"===t&&(i=!1!==l.purchaseMultiplierUpdated()&&i),i},null,null)),r["\u0275did"](3,16384,null,0,Ut,[r.Renderer2,r.ElementRef,[2,Ht]],null,null),r["\u0275did"](4,16384,null,0,rn,[r.Renderer2,r.ElementRef],null,null),r["\u0275prd"](1024,null,Bt,function(e,t){return[e,t]},[Ut,rn]),r["\u0275did"](6,671744,null,0,Ln,[[8,null],[8,null],[8,null],[6,Bt]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),r["\u0275prd"](2048,null,$t,null,[Ln]),r["\u0275did"](8,16384,null,0,qt,[[4,$t]],null,null),(e()(),r["\u0275eld"](9,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](10,0,null,null,5,"input",[["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(e,t,n){var i=!0,l=e.component;return"change"===t&&(i=!1!==r["\u0275nov"](e,11).onChange(n.target.checked)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,11).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(l.getAppComponent().buyMaxChecked=n)&&i),"change"===t&&(i=!1!==l.purchaseMultiplierUpdated()&&i),i},null,null)),r["\u0275did"](11,16384,null,0,Lt,[r.Renderer2,r.ElementRef],null,null),r["\u0275prd"](1024,null,Bt,function(e){return[e]},[Lt]),r["\u0275did"](13,671744,null,0,Ln,[[8,null],[8,null],[8,null],[6,Bt]],{model:[0,"model"]},{update:"ngModelChange"}),r["\u0275prd"](2048,null,$t,null,[Ln]),r["\u0275did"](15,16384,null,0,qt,[[4,$t]],null,null),(e()(),r["\u0275ted"](-1,null,[" Buy max\n"])),(e()(),r["\u0275eld"](17,0,null,null,18,"div",[["style","display: flex; padding: 50px;"]],null,null,null,null,null)),(e()(),r["\u0275eld"](18,0,null,null,2,"booster-pack-purchaser",[["arenaNumber","4"],["cardCount","1"],["currency","gold"],["description","Contains either a Swordsman or a Goblin."],["displaySize","2"],["imageFilename","assets/images/packs/underworld1.png"],["name","Noob Pack"],["price","25"],["textColor","white"]],null,null,null,Si,_i)),r["\u0275did"](19,49152,null,0,Ci,[kt,H],{currency:[0,"currency"],price:[1,"price"],name:[2,"name"],description:[3,"description"],imageFilename:[4,"imageFilename"],cardCount:[5,"cardCount"],possibleCardIds:[6,"possibleCardIds"],textColor:[7,"textColor"],purchaseMultiplier:[8,"purchaseMultiplier"],displaySize:[9,"displaySize"],arenaNumber:[10,"arenaNumber"]},null),r["\u0275pad"](20,2),(e()(),r["\u0275eld"](21,0,null,null,2,"booster-pack-purchaser",[["arenaNumber","4"],["cardCount","3"],["currency","gold"],["description","Contains 3 random Tier 1 cards. There are 22 card possibilities in Tier 1."],["displaySize","2"],["imageFilename","assets/images/packs/underworld1.png"],["name","Regular Pack"],["price","600"],["textColor","white"]],null,null,null,Si,_i)),r["\u0275did"](22,49152,null,0,Ci,[kt,H],{currency:[0,"currency"],price:[1,"price"],name:[2,"name"],description:[3,"description"],imageFilename:[4,"imageFilename"],cardCount:[5,"cardCount"],possibleCardIds:[6,"possibleCardIds"],textColor:[7,"textColor"],purchaseMultiplier:[8,"purchaseMultiplier"],displaySize:[9,"displaySize"],arenaNumber:[10,"arenaNumber"]},null),r["\u0275pad"](23,22),(e()(),r["\u0275eld"](24,0,null,null,2,"booster-pack-purchaser",[["arenaNumber","4"],["cardCount","5"],["currency","gold"],["description","Contains 5 random Tier 1 cards. There are 22 card possibilities in Tier 1."],["displaySize","2"],["imageFilename","assets/images/packs/underworld1.png"],["name","Big Pack"],["price","1000"],["textColor","white"]],null,null,null,Si,_i)),r["\u0275did"](25,49152,null,0,Ci,[kt,H],{currency:[0,"currency"],price:[1,"price"],name:[2,"name"],description:[3,"description"],imageFilename:[4,"imageFilename"],cardCount:[5,"cardCount"],possibleCardIds:[6,"possibleCardIds"],textColor:[7,"textColor"],purchaseMultiplier:[8,"purchaseMultiplier"],displaySize:[9,"displaySize"],arenaNumber:[10,"arenaNumber"]},null),r["\u0275pad"](26,22),(e()(),r["\u0275eld"](27,0,null,null,2,"booster-pack-purchaser",[["arenaNumber","4"],["cardCount","1"],["currency","gold"],["currency2","wood"],["description","Contains a random Tier 2 card. There are 21 card possibilities in Tier 2."],["displaySize","2"],["imageFilename","assets/images/packs/underworld2.png"],["name","Mini War Pack"],["price","100000"],["price2","200000"],["textColor","white"]],null,null,null,Si,_i)),r["\u0275did"](28,49152,null,0,Ci,[kt,H],{currency:[0,"currency"],price:[1,"price"],currency2:[2,"currency2"],price2:[3,"price2"],name:[4,"name"],description:[5,"description"],imageFilename:[6,"imageFilename"],cardCount:[7,"cardCount"],possibleCardIds:[8,"possibleCardIds"],textColor:[9,"textColor"],purchaseMultiplier:[10,"purchaseMultiplier"],displaySize:[11,"displaySize"],arenaNumber:[12,"arenaNumber"]},null),r["\u0275pad"](29,21),(e()(),r["\u0275eld"](30,0,null,null,2,"booster-pack-purchaser",[["arenaNumber","4"],["cardCount","3"],["currency","gold"],["currency2","wood"],["description","Contains 3 random Tier 2 cards. There are 21 card possibilities in Tier 2."],["displaySize","2"],["imageFilename","assets/images/packs/underworld2.png"],["name","War Pack"],["price","200000"],["price2","400000"],["textColor","white"]],null,null,null,Si,_i)),r["\u0275did"](31,49152,null,0,Ci,[kt,H],{currency:[0,"currency"],price:[1,"price"],currency2:[2,"currency2"],price2:[3,"price2"],name:[4,"name"],description:[5,"description"],imageFilename:[6,"imageFilename"],cardCount:[7,"cardCount"],possibleCardIds:[8,"possibleCardIds"],textColor:[9,"textColor"],purchaseMultiplier:[10,"purchaseMultiplier"],displaySize:[11,"displaySize"],arenaNumber:[12,"arenaNumber"]},null),r["\u0275pad"](32,21),(e()(),r["\u0275eld"](33,0,null,null,2,"booster-pack-purchaser",[["arenaNumber","4"],["cardCount","5"],["currency","gold"],["currency2","wood"],["description","Contains 5 random Tier 2 cards. There are 21 card possibilities in Tier 2."],["displaySize","2"],["imageFilename","assets/images/packs/underworld2.png"],["name","War Pack XL"],["price","300000"],["price2","500000"],["textColor","white"]],null,null,null,Si,_i)),r["\u0275did"](34,49152,null,0,Ci,[kt,H],{currency:[0,"currency"],price:[1,"price"],currency2:[2,"currency2"],price2:[3,"price2"],name:[4,"name"],description:[5,"description"],imageFilename:[6,"imageFilename"],cardCount:[7,"cardCount"],possibleCardIds:[8,"possibleCardIds"],textColor:[9,"textColor"],purchaseMultiplier:[10,"purchaseMultiplier"],displaySize:[11,"displaySize"],arenaNumber:[12,"arenaNumber"]},null),r["\u0275pad"](35,21),(e()(),r["\u0275eld"](36,0,null,null,15,"div",[["style","display: flex; padding: 50px; margin-top: -100px"]],null,null,null,null,null)),(e()(),r["\u0275eld"](37,0,null,null,2,"booster-pack-purchaser",[["arenaNumber","4"],["cardCount","1"],["currency","gold"],["currency2","wood"],["description","Contains a random Tier 3 card. There are 16 card possibilities in Tier 3."],["displaySize","2"],["imageFilename","assets/images/packs/underworld3.png"],["name","Mini Power Pack"],["price","5000000"],["price2","1000000"],["textColor","white"]],null,null,null,Si,_i)),r["\u0275did"](38,49152,null,0,Ci,[kt,H],{currency:[0,"currency"],price:[1,"price"],currency2:[2,"currency2"],price2:[3,"price2"],name:[4,"name"],description:[5,"description"],imageFilename:[6,"imageFilename"],cardCount:[7,"cardCount"],possibleCardIds:[8,"possibleCardIds"],textColor:[9,"textColor"],purchaseMultiplier:[10,"purchaseMultiplier"],displaySize:[11,"displaySize"],arenaNumber:[12,"arenaNumber"]},null),r["\u0275pad"](39,16),(e()(),r["\u0275eld"](40,0,null,null,2,"booster-pack-purchaser",[["arenaNumber","4"],["cardCount","3"],["currency","gold"],["currency2","wood"],["description","Contains 3 random Tier 3 cards. There are 16 card possibilities in Tier 3."],["displaySize","2"],["imageFilename","assets/images/packs/underworld3.png"],["name","Power Pack"],["price","12500000"],["price2","2500000"],["textColor","white"]],null,null,null,Si,_i)),r["\u0275did"](41,49152,null,0,Ci,[kt,H],{currency:[0,"currency"],price:[1,"price"],currency2:[2,"currency2"],price2:[3,"price2"],name:[4,"name"],description:[5,"description"],imageFilename:[6,"imageFilename"],cardCount:[7,"cardCount"],possibleCardIds:[8,"possibleCardIds"],textColor:[9,"textColor"],purchaseMultiplier:[10,"purchaseMultiplier"],displaySize:[11,"displaySize"],arenaNumber:[12,"arenaNumber"]},null),r["\u0275pad"](42,16),(e()(),r["\u0275eld"](43,0,null,null,2,"booster-pack-purchaser",[["arenaNumber","4"],["cardCount","5"],["currency","gold"],["currency2","wood"],["description","Contains 5 random Tier 3 cards. There are 16 card possibilities in Tier 3."],["displaySize","2"],["imageFilename","assets/images/packs/underworld3.png"],["name","Power Pack"],["price","17500000"],["price2","3500000"],["textColor","white"]],null,null,null,Si,_i)),r["\u0275did"](44,49152,null,0,Ci,[kt,H],{currency:[0,"currency"],price:[1,"price"],currency2:[2,"currency2"],price2:[3,"price2"],name:[4,"name"],description:[5,"description"],imageFilename:[6,"imageFilename"],cardCount:[7,"cardCount"],possibleCardIds:[8,"possibleCardIds"],textColor:[9,"textColor"],purchaseMultiplier:[10,"purchaseMultiplier"],displaySize:[11,"displaySize"],arenaNumber:[12,"arenaNumber"]},null),r["\u0275pad"](45,16),(e()(),r["\u0275eld"](46,0,null,null,5,"div",[["style","margin-left: 200px; margin-top: 40px;"]],null,null,null,null,null)),(e()(),r["\u0275and"](16777216,null,null,1,null,zi)),r["\u0275did"](48,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275eld"](49,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](50,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["(coming in January 2020)"])),(e()(),r["\u0275eld"](52,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](53,0,null,null,1,"booster-pack-opening",[],null,null,null,Ai,ki)),r["\u0275did"](54,49152,null,0,wi,[kt],null,null)],function(e,t){var n=t.component;e(t,6,0,n.getAppComponent().buyMaxChecked,n.getAppComponent().purchaseMultiplier),e(t,13,0,n.getAppComponent().buyMaxChecked);var r=e(t,20,0,123,124);e(t,19,1,["gold","25","Noob Pack","Contains either a Swordsman or a Goblin.","assets/images/packs/underworld1.png","1",r,"white",n.getAppComponent().purchaseMultiplier,"2","4"]);var i=e(t,23,1,[123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144]);e(t,22,1,["gold","600","Regular Pack","Contains 3 random Tier 1 cards. There are 22 card possibilities in Tier 1.","assets/images/packs/underworld1.png","3",i,"white",n.getAppComponent().purchaseMultiplier,"2","4"]);var l=e(t,26,1,[123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144]);e(t,25,1,["gold","1000","Big Pack","Contains 5 random Tier 1 cards. There are 22 card possibilities in Tier 1.","assets/images/packs/underworld1.png","5",l,"white",n.getAppComponent().purchaseMultiplier,"2","4"]);var s=e(t,29,1,[145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165]);e(t,28,1,["gold","100000","wood","200000","Mini War Pack","Contains a random Tier 2 card. There are 21 card possibilities in Tier 2.","assets/images/packs/underworld2.png","1",s,"white",n.getAppComponent().purchaseMultiplier,"2","4"]);var o=e(t,32,1,[145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165]);e(t,31,1,["gold","200000","wood","400000","War Pack","Contains 3 random Tier 2 cards. There are 21 card possibilities in Tier 2.","assets/images/packs/underworld2.png","3",o,"white",n.getAppComponent().purchaseMultiplier,"2","4"]);var a=e(t,35,1,[145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165]);e(t,34,1,["gold","300000","wood","500000","War Pack XL","Contains 5 random Tier 2 cards. There are 21 card possibilities in Tier 2.","assets/images/packs/underworld2.png","5",a,"white",n.getAppComponent().purchaseMultiplier,"2","4"]);var u=e(t,39,1,[166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181]);e(t,38,1,["gold","5000000","wood","1000000","Mini Power Pack","Contains a random Tier 3 card. There are 16 card possibilities in Tier 3.","assets/images/packs/underworld3.png","1",u,"white",n.getAppComponent().purchaseMultiplier,"2","4"]);var c=e(t,42,1,[166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181]);e(t,41,1,["gold","12500000","wood","2500000","Power Pack","Contains 3 random Tier 3 cards. There are 16 card possibilities in Tier 3.","assets/images/packs/underworld3.png","3",c,"white",n.getAppComponent().purchaseMultiplier,"2","4"]);var d=e(t,45,1,[166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181]);e(t,44,1,["gold","17500000","wood","3500000","Power Pack","Contains 5 random Tier 3 cards. There are 16 card possibilities in Tier 3.","assets/images/packs/underworld3.png","5",d,"white",n.getAppComponent().purchaseMultiplier,"2","4"]),e(t,48,0,n.getAppComponent().gameState.highestUnlockedArena<5)},function(e,t){e(t,2,0,r["\u0275nov"](t,8).ngClassUntouched,r["\u0275nov"](t,8).ngClassTouched,r["\u0275nov"](t,8).ngClassPristine,r["\u0275nov"](t,8).ngClassDirty,r["\u0275nov"](t,8).ngClassValid,r["\u0275nov"](t,8).ngClassInvalid,r["\u0275nov"](t,8).ngClassPending),e(t,10,0,r["\u0275nov"](t,15).ngClassUntouched,r["\u0275nov"](t,15).ngClassTouched,r["\u0275nov"](t,15).ngClassPristine,r["\u0275nov"](t,15).ngClassDirty,r["\u0275nov"](t,15).ngClassValid,r["\u0275nov"](t,15).ngClassInvalid,r["\u0275nov"](t,15).ngClassPending)})}class Wi{mouseOver(){j.instance.showTooltip((this.isUnlocked?"[X] ":"[ ] ")+this.achievementData.title+": "+this.achievementData.description)}mouseOut(){j.instance.hideTooltip()}}var $i=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function qi(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"div",[["class","achievement-icon"],["style","width: 100px; height: 100px;"]],[[2,"locked",null]],[[null,"mouseover"],[null,"mouseout"]],function(e,t,n){var r=!0,i=e.component;return"mouseover"===t&&(r=!1!==i.mouseOver()&&r),"mouseout"===t&&(r=!1!==i.mouseOut()&&r),r},null,null)),(e()(),r["\u0275eld"](1,0,null,null,0,"img",[],[[8,"src",4],[8,"alt",0],[8,"title",0]],null,null,null,null))],null,function(e,t){var n=t.component;e(t,0,0,!n.isUnlocked),e(t,1,0,r["\u0275inlineInterpolate"](1,"assets/images/achievements/",n.achievementData.imageFilename,""),n.achievementData.title,n.achievementData.title)})}class Ki{constructor(){this.subtab="achievements"}ngOnInit(){this.appComponent=re.instance}getAllAchievements(){return K}achievementIsUnlocked(e){return Q(e)}}var Yi=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Qi(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,2,"div",[["class","left-float"]],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"achievement-icon",[],null,null,null,qi,$i)),r["\u0275did"](2,49152,null,0,Wi,[],{isUnlocked:[0,"isUnlocked"],achievementData:[1,"achievementData"]},null)],function(e,t){e(t,2,0,t.component.achievementIsUnlocked(t.context.$implicit.id),t.context.$implicit)},null)}function Zi(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,9,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Achievements"])),(e()(),r["\u0275eld"](3,0,null,null,3,"div",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" For each achievement earned, you earn ascension gems 2% faster."])),(e()(),r["\u0275eld"](5,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](6,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](7,0,null,null,2,"div",[["style","width: 500px; height: 370px; overflow: auto;"]],null,null,null,null,null)),(e()(),r["\u0275and"](16777216,null,null,1,null,Qi)),r["\u0275did"](9,278528,null,0,ye,[r.ViewContainerRef,r.TemplateRef,r.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(e,t){e(t,9,0,t.component.getAllAchievements())},null)}function Xi(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"a",[["style","cursor: pointer; color: blue"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==(e.component.subtab="eternalexodus")&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Eternal Exodus"]))],null,null)}function Ji(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Eternal Exodus"]))],null,null)}function el(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"a",[["style","cursor: pointer; color: blue"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==(e.component.subtab="emeraldshores")&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Emerald Shores"]))],null,null)}function tl(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Emerald Shores"]))],null,null)}function nl(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"a",[["style","cursor: pointer; color: blue"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==(e.component.subtab="superblackout")&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Super Blackout"]))],null,null)}function rl(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Super Blackout"]))],null,null)}function il(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,17,"div",[["style","position: absolute; top: 70px; left: 20px;"]],[[2,"white-text",null]],null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"a",[["href","http://fordesoft.com"],["target","_blank"]],null,null,null,null,null)),(e()(),r["\u0275eld"](2,0,null,null,0,"img",[["alt","Fordesoft"],["src","assets/images/fordesoft.png"],["title","Fordesoft"],["width","150"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["\xa0\xa0\xa0\xa0 "])),(e()(),r["\u0275and"](16777216,null,null,1,null,Xi)),r["\u0275did"](5,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Ji)),r["\u0275did"](7,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](-1,null,[" | "])),(e()(),r["\u0275and"](16777216,null,null,1,null,el)),r["\u0275did"](10,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,tl)),r["\u0275did"](12,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](-1,null,[" | "])),(e()(),r["\u0275and"](16777216,null,null,1,null,nl)),r["\u0275did"](15,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,rl)),r["\u0275did"](17,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,5,0,"eternalexodus"!=n.subtab),e(t,7,0,"eternalexodus"==n.subtab),e(t,10,0,"emeraldshores"!=n.subtab),e(t,12,0,"emeraldshores"==n.subtab),e(t,15,0,"superblackout"!=n.subtab),e(t,17,0,"superblackout"==n.subtab)},function(e,t){e(t,0,0,t.component.appComponent.arenaHasDarkBackground())})}function ll(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,14,"div",[["style","padding: 30px;"]],[[2,"white-text",null]],null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"a",[["href","http://www.eternalexodus.com/"],["target","_blank"]],null,null,null,null,null)),(e()(),r["\u0275eld"](2,0,null,null,0,"img",[["src","assets/images/eternalexodus.png"],["width","300"]],null,null,null,null,null)),(e()(),r["\u0275eld"](3,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" A monster-catching RPG set in the afterlife. Catch and fuse 150 unique demons as you journey to conquer Hell itself. "])),(e()(),r["\u0275eld"](5,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Coming to PC and consoles in 2020. Some art still placeholders."])),(e()(),r["\u0275eld"](7,0,null,null,3,"p",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Trailer & wishlist at "])),(e()(),r["\u0275eld"](9,0,null,null,1,"a",[["href","http://www.eternalexodus.com/"],["target","_blank"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["EternalExodus.com"])),(e()(),r["\u0275eld"](11,0,null,null,3,"div",[["style","display: flex;"]],null,null,null,null,null)),(e()(),r["\u0275eld"](12,0,null,null,0,"img",[["src","assets/images/eternalexodus_screen1.jpg"],["style","width: 25%; height: 25%"]],null,null,null,null,null)),(e()(),r["\u0275eld"](13,0,null,null,0,"img",[["src","assets/images/eternalexodus_screen3.jpg"],["style","width: 25%; height: 25%"]],null,null,null,null,null)),(e()(),r["\u0275eld"](14,0,null,null,0,"img",[["src","assets/images/eternalexodus_screen2.jpg"],["style","width: 25%; height: 25%"]],null,null,null,null,null))],null,function(e,t){e(t,0,0,t.component.appComponent.arenaHasDarkBackground())})}function sl(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,15,"div",[["style","padding: 30px;"]],[[2,"white-text",null]],null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"a",[["href","http://www.fordesoft.com/games"],["target","_blank"]],null,null,null,null,null)),(e()(),r["\u0275eld"](2,0,null,null,0,"img",[["src","assets/images/emeraldshores.jpg"],["width","300"]],null,null,null,null,null)),(e()(),r["\u0275eld"](3,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" A 2D platformer with RPG elements. Jump on enemies to deal damage. Level up to deal more! Many sidequests and minigames. "])),(e()(),r["\u0275eld"](5,0,null,null,6,"p",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Out now on Steam, PlayStation 4, and PS Vita (Americas and EU) for $9.99. "])),(e()(),r["\u0275eld"](7,0,null,null,1,"a",[["href","https://store.playstation.com/en-us/grid/search-game/1?query=emerald%20shores"],["target","_blank"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["PSN"])),(e()(),r["\u0275ted"](-1,null,[" / "])),(e()(),r["\u0275eld"](10,0,null,null,1,"a",[["href","https://store.steampowered.com/app/970470/Emerald_Shores/"],["target","_blank"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Steam"])),(e()(),r["\u0275eld"](12,0,null,null,3,"div",[["style","display: flex;"]],null,null,null,null,null)),(e()(),r["\u0275eld"](13,0,null,null,0,"img",[["src","assets/images/emeraldshores_screen1.jpg"],["style","width: 25%; height: 25%"]],null,null,null,null,null)),(e()(),r["\u0275eld"](14,0,null,null,0,"img",[["src","assets/images/emeraldshores_screen3.jpg"],["style","width: 25%; height: 25%"]],null,null,null,null,null)),(e()(),r["\u0275eld"](15,0,null,null,0,"img",[["src","assets/images/emeraldshores_screen2.jpg"],["style","width: 25%; height: 25%"]],null,null,null,null,null))],null,function(e,t){e(t,0,0,t.component.appComponent.arenaHasDarkBackground())})}function ol(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,18,"div",[["style","padding: 30px;"]],[[2,"white-text",null]],null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"a",[["href","http://www.fordesoft.com/games"],["target","_blank"]],null,null,null,null,null)),(e()(),r["\u0275eld"](2,0,null,null,0,"img",[["src","assets/images/superblackout.jpg"],["width","300"]],null,null,null,null,null)),(e()(),r["\u0275eld"](3,0,null,null,4,"p",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" Can you 'black out' all of the lit-up tiles in this addictive puzzle game? "])),(e()(),r["\u0275eld"](5,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](6,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" Super Blackout is packed with 90 puzzles, a random puzzle generator, and even the ability to design your own puzzles! "])),(e()(),r["\u0275eld"](8,0,null,null,6,"p",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Out now on Steam and PS Vita for $4.99. "])),(e()(),r["\u0275eld"](10,0,null,null,1,"a",[["href","https://store.playstation.com/en-us/product/UP0770-PCSE00784_00-SUPERBLACKOUT001"],["target","_blank"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["PS Vita"])),(e()(),r["\u0275ted"](-1,null,[" / "])),(e()(),r["\u0275eld"](13,0,null,null,1,"a",[["href","https://store.steampowered.com/app/992970/Super_Blackout/"],["target","_blank"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Steam"])),(e()(),r["\u0275eld"](15,0,null,null,3,"div",[["style","display: flex;"]],null,null,null,null,null)),(e()(),r["\u0275eld"](16,0,null,null,0,"img",[["src","assets/images/superblackout1.jpg"],["style","width: 25%; height: 25%"]],null,null,null,null,null)),(e()(),r["\u0275eld"](17,0,null,null,0,"img",[["src","assets/images/superblackout2.jpg"],["style","width: 25%; height: 25%"]],null,null,null,null,null)),(e()(),r["\u0275eld"](18,0,null,null,0,"img",[["src","assets/images/superblackout3.jpg"],["style","width: 25%; height: 25%"]],null,null,null,null,null))],null,function(e,t){e(t,0,0,t.component.appComponent.arenaHasDarkBackground())})}function al(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,4,"div",[["class","sub-tab-bar"]],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"div",[["class","sub-tab"]],[[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==(e.component.subtab="achievements")&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Achievements"])),(e()(),r["\u0275eld"](3,0,null,null,1,"div",[["class","sub-tab"]],[[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==(e.component.subtab="eternalexodus")&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["More games by Josh Forde"])),(e()(),r["\u0275eld"](5,0,null,null,10,"div",[["style","padding: 10px;"]],[[2,"white-text",null]],null,null,null,null)),(e()(),r["\u0275and"](16777216,null,null,1,null,Zi)),r["\u0275did"](7,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,il)),r["\u0275did"](9,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,ll)),r["\u0275did"](11,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,sl)),r["\u0275did"](13,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,ol)),r["\u0275did"](15,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,7,0,"achievements"==n.subtab),e(t,9,0,"eternalexodus"==n.subtab||"emeraldshores"==n.subtab||"superblackout"==n.subtab),e(t,11,0,"eternalexodus"==n.subtab),e(t,13,0,"emeraldshores"==n.subtab),e(t,15,0,"superblackout"==n.subtab)},function(e,t){var n=t.component;e(t,1,0,"achievements"==n.subtab),e(t,3,0,"eternalexodus"==n.subtab||"emeraldshores"==n.subtab||"superblackout"==n.subtab),e(t,5,0,n.appComponent.arenaHasDarkBackground())})}class ul{constructor(){this.purchaseMultiplier=1}getAppComponent(){return re.instance}getPurchasableKongregateItems(){return re.instance.kongregateMicrotransactionList}getIsOnKongregate(){return re.instance.isOnKongregate}purchaseKongregateItem(e){c.instance.buyMicrotransaction(e,null)}}var cl=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function dl(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,9,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"div",[["class","kongregate-item-name"]],null,null,null,null,null)),(e()(),r["\u0275ted"](2,null,["",""])),(e()(),r["\u0275eld"](3,0,null,null,1,"div",[["class","kongregate-item-description"]],null,null,null,null,null)),(e()(),r["\u0275ted"](4,null,["",""])),(e()(),r["\u0275eld"](5,0,null,null,1,"div",[["class","kongregate-item-price"]],null,null,null,null,null)),(e()(),r["\u0275ted"](6,null,[""," Kreds"])),(e()(),r["\u0275eld"](7,0,null,null,2,"div",[["class","kongregate-item-button-container"]],null,null,null,null,null)),(e()(),r["\u0275eld"](8,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.purchaseKongregateItem(e.context.$implicit.identifier)&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Buy"]))],null,function(e,t){e(t,2,0,t.context.$implicit.name),e(t,4,0,t.context.$implicit.description),e(t,6,0,t.context.$implicit.price)})}function hl(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,4,"div",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" Kongregate shop: "])),(e()(),r["\u0275eld"](2,0,null,null,2,"div",[["style","display: flex;"]],null,null,null,null,null)),(e()(),r["\u0275and"](16777216,null,null,1,null,dl)),r["\u0275did"](4,278528,null,0,ye,[r.ViewContainerRef,r.TemplateRef,r.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(e,t){e(t,4,0,t.component.getPurchasableKongregateItems())},null)}function fl(e){return r["\u0275vid"](0,[(e()(),r["\u0275and"](16777216,null,null,1,null,hl)),r["\u0275did"](1,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){e(t,1,0,t.component.getIsOnKongregate())},null)}const pl=(()=>{class e{constructor(){this.secondsProcessed=0,this.totalSecondsToProcess=1,this.hitMaximumOfflineTime=!1,this.objectKeys=Object.keys,e.instance=this}timePassedString(){var e="",t=this.totalSecondsToProcess;let n=Math.floor(t/3600);t-=3600*n;let r=Math.floor(t/60);return n>0&&(e+=n+" hours, "),(r>0||n>0)&&(e+=r+" minutes, "),e+((t-=60*r)+" seconds")}completionPercentage(){return(this.secondsProcessed/this.totalSecondsToProcess*100).toFixed(2)+"%"}}return e.instance=null,e})();var ml=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function gl(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,13,"div",[["class","offline-processing"]],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"h1",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Calculating offline rewards"])),(e()(),r["\u0275eld"](3,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](4,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](5,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),r["\u0275ted"](6,null,["Total offline time: "," ",""])),(e()(),r["\u0275eld"](7,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](8,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](9,0,null,null,4,"div",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Processing is "])),(e()(),r["\u0275eld"](11,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),r["\u0275ted"](12,null,["",""])),(e()(),r["\u0275ted"](-1,null,[" complete, please wait..."]))],null,function(e,t){var n=t.component;e(t,6,0,n.timePassedString(),n.hitMaximumOfflineTime?"(maximum away time reached!)":""),e(t,12,0,n.completionPercentage())})}var yl=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function bl(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,0,"span",[],[[8,"innerHTML",1]],null,null,null,null))],null,function(e,t){e(t,0,0,t.component.currentString)})}var vl=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function wl(e){return r["\u0275vid"](0,[],null,null)}var Cl=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function _l(e){return r["\u0275vid"](0,[],null,null)}var Sl=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function kl(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,3,"div",[["style","display: flex"]],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,0,"img",[["class","resource-icon"]],[[8,"src",4]],null,null,null,null)),(e()(),r["\u0275ted"](2,null,[" "," "])),r["\u0275ppd"](3,1)],null,function(e,t){var n=t.component;e(t,1,0,r["\u0275inlineInterpolate"](1,"assets/images/resources/",t.context.$implicit,".png"));var i=r["\u0275unv"](t,2,0,e(t,3,0,r["\u0275nov"](t.parent.parent.parent,0),n.resourcesEarned.arena1[t.context.$implicit]));e(t,2,0,i)})}function xl(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,4,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Intro Realm:"])),(e()(),r["\u0275and"](16777216,null,null,1,null,kl)),r["\u0275did"](4,278528,null,0,ye,[r.ViewContainerRef,r.TemplateRef,r.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(e,t){var n=t.component;e(t,4,0,n.objectKeys(n.resourcesEarned.arena1))},null)}function Il(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,3,"div",[["style","display: flex;"]],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,0,"img",[["class","resource-icon"]],[[8,"src",4]],null,null,null,null)),(e()(),r["\u0275ted"](2,null,[" "," "])),r["\u0275ppd"](3,1)],null,function(e,t){var n=t.component;e(t,1,0,r["\u0275inlineInterpolate"](1,"assets/images/resources/",t.context.$implicit,".png"));var i=r["\u0275unv"](t,2,0,e(t,3,0,r["\u0275nov"](t.parent.parent.parent,0),n.resourcesEarned.arena2[t.context.$implicit]));e(t,2,0,i)})}function Al(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,4,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Haunted Woods:"])),(e()(),r["\u0275and"](16777216,null,null,1,null,Il)),r["\u0275did"](4,278528,null,0,ye,[r.ViewContainerRef,r.TemplateRef,r.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(e,t){var n=t.component;e(t,4,0,n.objectKeys(n.resourcesEarned.arena2))},null)}function El(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,3,"div",[["style","display: flex;"]],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,0,"img",[["class","resource-icon"]],[[8,"src",4]],null,null,null,null)),(e()(),r["\u0275ted"](2,null,[" "," "])),r["\u0275ppd"](3,1)],null,function(e,t){var n=t.component;e(t,1,0,r["\u0275inlineInterpolate"](1,"assets/images/resources/",t.context.$implicit,".png"));var i=r["\u0275unv"](t,2,0,e(t,3,0,r["\u0275nov"](t.parent.parent.parent,0),n.resourcesEarned.arena3[t.context.$implicit]));e(t,2,0,i)})}function Tl(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,4,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Underworld:"])),(e()(),r["\u0275and"](16777216,null,null,1,null,El)),r["\u0275did"](4,278528,null,0,ye,[r.ViewContainerRef,r.TemplateRef,r.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(e,t){var n=t.component;e(t,4,0,n.objectKeys(n.resourcesEarned.arena3))},null)}function Ml(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,3,"div",[["style","display: flex;"]],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,0,"img",[["class","resource-icon"]],[[8,"src",4]],null,null,null,null)),(e()(),r["\u0275ted"](2,null,[" "," "])),r["\u0275ppd"](3,1)],null,function(e,t){var n=t.component;e(t,1,0,r["\u0275inlineInterpolate"](1,"assets/images/resources/",t.context.$implicit,".png"));var i=r["\u0275unv"](t,2,0,e(t,3,0,r["\u0275nov"](t.parent.parent.parent,0),n.resourcesEarned.arena4[t.context.$implicit]));e(t,2,0,i)})}function Rl(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,4,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Plains of War:"])),(e()(),r["\u0275and"](16777216,null,null,1,null,Ml)),r["\u0275did"](4,278528,null,0,ye,[r.ViewContainerRef,r.TemplateRef,r.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(e,t){var n=t.component;e(t,4,0,n.objectKeys(n.resourcesEarned.arena4))},null)}function Pl(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,18,"div",[["class","offline-progress"]],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,4,"div",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["You were away for "])),(e()(),r["\u0275eld"](3,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),r["\u0275ted"](4,null,["",""])),(e()(),r["\u0275ted"](5,null,[" ",""])),(e()(),r["\u0275eld"](6,0,null,null,1,"div",[["style","margin-top: 30px; margin-bottom: 30px;"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["While you were away, you earned..."])),(e()(),r["\u0275and"](16777216,null,null,1,null,xl)),r["\u0275did"](9,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Al)),r["\u0275did"](11,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Tl)),r["\u0275did"](13,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Rl)),r["\u0275did"](15,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275eld"](16,0,null,null,2,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](17,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.pressedOk()&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["OK"]))],function(e,t){var n=t.component;e(t,9,0,n.resourcesEarned.arena1),e(t,11,0,n.resourcesEarned.arena2),e(t,13,0,n.resourcesEarned.arena3),e(t,15,0,n.resourcesEarned.arena4)},function(e,t){var n=t.component;e(t,4,0,n.timePassedString),e(t,5,0,n.hitMaximumTime?" (maximum away time reached!)":"")})}function Ol(e){return r["\u0275vid"](0,[r["\u0275pid"](0,H,[]),(e()(),r["\u0275and"](16777216,null,null,1,null,Pl)),r["\u0275did"](2,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){e(t,2,0,t.component.isVisible)},null)}var Nl=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Dl(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,3,"option",[],null,null,null,null,null)),r["\u0275did"](1,147456,null,0,dn,[r.ElementRef,r.Renderer2,[2,cn]],{value:[0,"value"]},null),r["\u0275did"](2,147456,null,0,pn,[r.ElementRef,r.Renderer2,[8,null]],{value:[0,"value"]},null),(e()(),r["\u0275ted"](3,null,[" "," "]))],function(e,t){e(t,1,0,t.context.index),e(t,2,0,t.context.index)},function(e,t){e(t,3,0,t.context.$implicit.name)})}function Fl(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.deleteSelectedLayout()&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Delete selected layout"]))],null,null)}function Vl(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,15,"div",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" Slot to save in: "])),(e()(),r["\u0275eld"](2,0,null,null,11,"select",[],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(e,t,n){var i=!0,l=e.component;return"change"===t&&(i=!1!==r["\u0275nov"](e,3).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,3).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(l.selectedLayoutIndex=n)&&i),"change"===t&&(i=!1!==l.selectedLayoutChanged()&&i),i},null,null)),r["\u0275did"](3,16384,null,0,cn,[r.Renderer2,r.ElementRef],null,null),r["\u0275prd"](1024,null,Bt,function(e){return[e]},[cn]),r["\u0275did"](5,671744,null,0,Ln,[[8,null],[8,null],[8,null],[6,Bt]],{model:[0,"model"]},{update:"ngModelChange"}),r["\u0275prd"](2048,null,$t,null,[Ln]),r["\u0275did"](7,16384,null,0,qt,[[4,$t]],null,null),(e()(),r["\u0275eld"](8,0,null,null,3,"option",[],null,null,null,null,null)),r["\u0275did"](9,147456,null,0,dn,[r.ElementRef,r.Renderer2,[2,cn]],{value:[0,"value"]},null),r["\u0275did"](10,147456,null,0,pn,[r.ElementRef,r.Renderer2,[8,null]],{value:[0,"value"]},null),(e()(),r["\u0275ted"](-1,null,["(Save as new layout)"])),(e()(),r["\u0275and"](16777216,null,null,1,null,Dl)),r["\u0275did"](13,278528,null,0,ye,[r.ViewContainerRef,r.TemplateRef,r.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Fl)),r["\u0275did"](15,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,5,0,n.selectedLayoutIndex),e(t,9,0,null),e(t,10,0,null),e(t,13,0,n.existingLayouts),e(t,15,0,null!=n.selectedLayoutIndex)},function(e,t){e(t,2,0,r["\u0275nov"](t,7).ngClassUntouched,r["\u0275nov"](t,7).ngClassTouched,r["\u0275nov"](t,7).ngClassPristine,r["\u0275nov"](t,7).ngClassDirty,r["\u0275nov"](t,7).ngClassValid,r["\u0275nov"](t,7).ngClassInvalid,r["\u0275nov"](t,7).ngClassPending)})}function jl(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,21,"div",[["class","save-layout-dialog"]],null,null,null,null,null)),(e()(),r["\u0275and"](16777216,null,null,1,null,Vl)),r["\u0275did"](2,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275eld"](3,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](4,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" Name: "])),(e()(),r["\u0275eld"](6,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](7,0,null,null,7,"input",[["maxlength","50"],["type","text"]],[[1,"maxlength",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var i=!0,l=e.component;return"input"===t&&(i=!1!==r["\u0275nov"](e,8)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,8).onTouched()&&i),"compositionstart"===t&&(i=!1!==r["\u0275nov"](e,8)._compositionStart()&&i),"compositionend"===t&&(i=!1!==r["\u0275nov"](e,8)._compositionEnd(n.target.value)&&i),"ngModelChange"===t&&(i=!1!==(l.newLayoutName=n)&&i),i},null,null)),r["\u0275did"](8,16384,null,0,Ut,[r.Renderer2,r.ElementRef,[2,Ht]],null,null),r["\u0275did"](9,540672,null,0,Hn,[],{maxlength:[0,"maxlength"]},null),r["\u0275prd"](1024,null,Yt,function(e){return[e]},[Hn]),r["\u0275prd"](1024,null,Bt,function(e){return[e]},[Ut]),r["\u0275did"](12,671744,null,0,Ln,[[8,null],[6,Yt],[8,null],[6,Bt]],{model:[0,"model"]},{update:"ngModelChange"}),r["\u0275prd"](2048,null,$t,null,[Ln]),r["\u0275did"](14,16384,null,0,qt,[[4,$t]],null,null),(e()(),r["\u0275eld"](15,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](16,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](17,0,null,null,1,"button",[],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.pressedOk()&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Save"])),(e()(),r["\u0275ted"](-1,null,[" \xa0 "])),(e()(),r["\u0275eld"](20,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.pressedCancel()&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Cancel"]))],function(e,t){var n=t.component;e(t,2,0,n.existingLayouts.length>0),e(t,9,0,"50"),e(t,12,0,n.newLayoutName)},function(e,t){var n=t.component;e(t,7,0,r["\u0275nov"](t,9).maxlength?r["\u0275nov"](t,9).maxlength:null,r["\u0275nov"](t,14).ngClassUntouched,r["\u0275nov"](t,14).ngClassTouched,r["\u0275nov"](t,14).ngClassPristine,r["\u0275nov"](t,14).ngClassDirty,r["\u0275nov"](t,14).ngClassValid,r["\u0275nov"](t,14).ngClassInvalid,r["\u0275nov"](t,14).ngClassPending),e(t,17,0,0==n.newLayoutName.length)})}function Bl(e){return r["\u0275vid"](0,[(e()(),r["\u0275and"](16777216,null,null,1,null,jl)),r["\u0275did"](1,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){e(t,1,0,t.component.isVisible)},null)}var Ll=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Hl(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,4,"div",[["class","error-message"]],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,0,"div",[],[[8,"innerHTML",1]],null,null,null,null)),(e()(),r["\u0275eld"](2,0,null,null,2,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](3,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.pressedOk()&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["OK"]))],null,function(e,t){e(t,1,0,t.component.getMessage())})}function Ul(e){return r["\u0275vid"](0,[(e()(),r["\u0275and"](16777216,null,null,1,null,Hl)),r["\u0275did"](1,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){e(t,1,0,t.component.isVisible)},null)}var zl=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Gl(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,11,"div",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" Import from Kongregate:"])),(e()(),r["\u0275eld"](2,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" Kongregate username: "])),(e()(),r["\u0275eld"](4,0,null,null,5,"input",[["placeholder","Kongregate username"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var i=!0,l=e.component;return"input"===t&&(i=!1!==r["\u0275nov"](e,5)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,5).onTouched()&&i),"compositionstart"===t&&(i=!1!==r["\u0275nov"](e,5)._compositionStart()&&i),"compositionend"===t&&(i=!1!==r["\u0275nov"](e,5)._compositionEnd(n.target.value)&&i),"ngModelChange"===t&&(i=!1!==(l.kongregateUsername=n)&&i),i},null,null)),r["\u0275did"](5,16384,null,0,Ut,[r.Renderer2,r.ElementRef,[2,Ht]],null,null),r["\u0275prd"](1024,null,Bt,function(e){return[e]},[Ut]),r["\u0275did"](7,671744,null,0,Ln,[[8,null],[8,null],[8,null],[6,Bt]],{model:[0,"model"]},{update:"ngModelChange"}),r["\u0275prd"](2048,null,$t,null,[Ln]),r["\u0275did"](9,16384,null,0,qt,[[4,$t]],null,null),(e()(),r["\u0275eld"](10,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](11,0,null,null,0,"input",[["type","file"]],null,[[null,"change"]],function(e,t,n){var r=!0;return"change"===t&&(r=!1!==e.component.importKongregateSave(n)&&r),r},null,null))],function(e,t){e(t,7,0,t.component.kongregateUsername)},function(e,t){e(t,4,0,r["\u0275nov"](t,9).ngClassUntouched,r["\u0275nov"](t,9).ngClassTouched,r["\u0275nov"](t,9).ngClassPristine,r["\u0275nov"](t,9).ngClassDirty,r["\u0275nov"](t,9).ngClassValid,r["\u0275nov"](t,9).ngClassInvalid,r["\u0275nov"](t,9).ngClassPending)})}function Wl(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,4,"div",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" Last chance to change your mind..."])),(e()(),r["\u0275eld"](2,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](3,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.resetGame()&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Permanently reset game"]))],null,null)}function $l(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,8,"div",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" Are you sure? EVERYTHING will be lost, and the game will return to its starting position."])),(e()(),r["\u0275eld"](2,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" This is NOT the same as Ascension. You will gain no rewards."])),(e()(),r["\u0275eld"](4,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](5,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=0!=(e.component.showResetConfirmation2=!0)&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Yes"])),(e()(),r["\u0275and"](16777216,null,null,1,null,Wl)),r["\u0275did"](8,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){e(t,8,0,t.component.showResetConfirmation2)},null)}function ql(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,62,"div",[["class","options-panel"]],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,6,"div",[["style","margin-left: 400px; display: flex;"]],null,null,null,null,null)),(e()(),r["\u0275eld"](2,0,null,null,1,"a",[["href","https://www.facebook.com/fordesoft"],["target","_blank"]],null,null,null,null,null)),(e()(),r["\u0275eld"](3,0,null,null,0,"img",[["alt","Facebook"],["src","assets/images/facebook.png"],["style","width: 24px; height: 24px"],["title","Fordesoft on Facebook"]],null,null,null,null,null)),(e()(),r["\u0275eld"](4,0,null,null,1,"a",[["href","https://www.twitter.com/fordesoft"],["target","_blank"]],null,null,null,null,null)),(e()(),r["\u0275eld"](5,0,null,null,0,"img",[["alt","Twitter"],["src","assets/images/twitter.png"],["style","width: 24px; height: 24px"],["title","Fordesoft on Twitter"]],null,null,null,null,null)),(e()(),r["\u0275eld"](6,0,null,null,1,"a",[["href","https://discord.gg/M3xxsB4"],["target","_blank"]],null,null,null,null,null)),(e()(),r["\u0275eld"](7,0,null,null,0,"img",[["alt","Discord"],["src","assets/images/discord.png"],["style","width: 25px; height: 24px"],["title","Creature Card Idle on Discord"]],null,null,null,null,null)),(e()(),r["\u0275eld"](8,0,null,null,5,"input",[["name","enablesound"],["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(e,t,n){var i=!0,l=e.component;return"change"===t&&(i=!1!==r["\u0275nov"](e,9).onChange(n.target.checked)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,9).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(l.getAppComponent().gameState.enableSoundEffects=n)&&i),i},null,null)),r["\u0275did"](9,16384,null,0,Lt,[r.Renderer2,r.ElementRef],null,null),r["\u0275prd"](1024,null,Bt,function(e){return[e]},[Lt]),r["\u0275did"](11,671744,null,0,Ln,[[8,null],[8,null],[8,null],[6,Bt]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),r["\u0275prd"](2048,null,$t,null,[Ln]),r["\u0275did"](13,16384,null,0,qt,[[4,$t]],null,null),(e()(),r["\u0275eld"](14,0,null,null,1,"label",[["for","enablesound"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Enable sound effects"])),(e()(),r["\u0275eld"](16,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](17,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](18,0,null,null,5,"input",[["name","enablemusic"],["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(e,t,n){var i=!0,l=e.component;return"change"===t&&(i=!1!==r["\u0275nov"](e,19).onChange(n.target.checked)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,19).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(l.getAppComponent().gameState.enableMusic=n)&&i),"change"===t&&(i=!1!==l.musicSettingChanged()&&i),i},null,null)),r["\u0275did"](19,16384,null,0,Lt,[r.Renderer2,r.ElementRef],null,null),r["\u0275prd"](1024,null,Bt,function(e){return[e]},[Lt]),r["\u0275did"](21,671744,null,0,Ln,[[8,null],[8,null],[8,null],[6,Bt]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),r["\u0275prd"](2048,null,$t,null,[Ln]),r["\u0275did"](23,16384,null,0,qt,[[4,$t]],null,null),(e()(),r["\u0275eld"](24,0,null,null,1,"label",[["for","enablemusic"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Enable music"])),(e()(),r["\u0275eld"](26,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](27,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](28,0,null,null,5,"input",[["name","enableanimations"],["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(e,t,n){var i=!0,l=e.component;return"change"===t&&(i=!1!==r["\u0275nov"](e,29).onChange(n.target.checked)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,29).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(l.getAppComponent().gameState.enableAnimations=n)&&i),i},null,null)),r["\u0275did"](29,16384,null,0,Lt,[r.Renderer2,r.ElementRef],null,null),r["\u0275prd"](1024,null,Bt,function(e){return[e]},[Lt]),r["\u0275did"](31,671744,null,0,Ln,[[8,null],[8,null],[8,null],[6,Bt]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),r["\u0275prd"](2048,null,$t,null,[Ln]),r["\u0275did"](33,16384,null,0,qt,[[4,$t]],null,null),(e()(),r["\u0275eld"](34,0,null,null,1,"label",[["for","enableanimations"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Enable animations"])),(e()(),r["\u0275eld"](36,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](37,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" Export save data:"])),(e()(),r["\u0275eld"](39,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](40,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.exportSave()&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Export"])),(e()(),r["\u0275eld"](42,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](43,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" Import save data:"])),(e()(),r["\u0275eld"](45,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](46,0,null,null,0,"input",[["type","file"]],null,[[null,"change"]],function(e,t,n){var r=!0;return"change"===t&&(r=!1!==e.component.importSave(n)&&r),r},null,null)),(e()(),r["\u0275eld"](47,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](48,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275and"](16777216,null,null,1,null,Gl)),r["\u0275did"](50,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275eld"](51,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](52,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](53,0,null,null,4,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](54,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=0!=(e.component.showResetConfirmation1=!0)&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Reset game"])),(e()(),r["\u0275and"](16777216,null,null,1,null,$l)),r["\u0275did"](57,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275eld"](58,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](59,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](60,0,null,null,2,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](61,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.pressedOk()&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Close window"]))],function(e,t){var n=t.component;e(t,11,0,"enablesound",n.getAppComponent().gameState.enableSoundEffects),e(t,21,0,"enablemusic",n.getAppComponent().gameState.enableMusic),e(t,31,0,"enableanimations",n.getAppComponent().gameState.enableAnimations),e(t,50,0,n.isOnSteamFullVersion()),e(t,57,0,n.showResetConfirmation1)},function(e,t){e(t,8,0,r["\u0275nov"](t,13).ngClassUntouched,r["\u0275nov"](t,13).ngClassTouched,r["\u0275nov"](t,13).ngClassPristine,r["\u0275nov"](t,13).ngClassDirty,r["\u0275nov"](t,13).ngClassValid,r["\u0275nov"](t,13).ngClassInvalid,r["\u0275nov"](t,13).ngClassPending),e(t,18,0,r["\u0275nov"](t,23).ngClassUntouched,r["\u0275nov"](t,23).ngClassTouched,r["\u0275nov"](t,23).ngClassPristine,r["\u0275nov"](t,23).ngClassDirty,r["\u0275nov"](t,23).ngClassValid,r["\u0275nov"](t,23).ngClassInvalid,r["\u0275nov"](t,23).ngClassPending),e(t,28,0,r["\u0275nov"](t,33).ngClassUntouched,r["\u0275nov"](t,33).ngClassTouched,r["\u0275nov"](t,33).ngClassPristine,r["\u0275nov"](t,33).ngClassDirty,r["\u0275nov"](t,33).ngClassValid,r["\u0275nov"](t,33).ngClassInvalid,r["\u0275nov"](t,33).ngClassPending)})}function Kl(e){return r["\u0275vid"](0,[(e()(),r["\u0275and"](16777216,null,null,1,null,ql)),r["\u0275did"](1,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){e(t,1,0,t.component.isVisible)},null)}var Yl=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Ql(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,5,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Upgrade with Kreds:"])),(e()(),r["\u0275eld"](3,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.upgradeWithKreds()&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Upgrade with 5 Kreds"])),(e()(),r["\u0275eld"](5,0,null,null,0,"br",[],null,null,null,null,null))],null,null)}function Zl(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,2,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.reduceLevel()&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Downgrade"]))],null,null)}function Xl(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,37,"div",[["class","upgrade-window"]],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Current level"])),(e()(),r["\u0275ted"](3,null,[" Lv. "," "])),(e()(),r["\u0275eld"](4,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Upgrade by combining cards:"])),(e()(),r["\u0275ted"](6,null,[" Qty needed: "," "])),r["\u0275ppd"](7,1),(e()(),r["\u0275eld"](8,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](9,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.combineCards()&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Upgrade by combining"])),(e()(),r["\u0275eld"](11,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Mass upgrade by combining cards:"])),(e()(),r["\u0275ted"](-1,null,[" Upgrade all kinds of cards (in this realm) where you have enough copies to combine. "])),(e()(),r["\u0275eld"](14,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](15,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.massCombineCards()&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Mass upgrade by combining"])),(e()(),r["\u0275eld"](17,0,null,null,3,"h3",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Upgrade for "])),(e()(),r["\u0275eld"](19,0,null,null,0,"img",[["alt","Gem"],["class","resource-icon"],["src","assets/images/resources/gem.png"],["title","Gem"]],null,null,null,null,null)),(e()(),r["\u0275ted"](20,null,[" ",":"])),(e()(),r["\u0275eld"](21,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.upgradeWithGems()&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Upgrade with gems"])),(e()(),r["\u0275eld"](23,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" You currently have "])),(e()(),r["\u0275eld"](25,0,null,null,0,"img",[["alt","Gem"],["class","resource-icon"],["src","assets/images/resources/gem.png"],["title","Gem"]],null,null,null,null,null)),(e()(),r["\u0275ted"](26,null,[" ",". "])),(e()(),r["\u0275and"](16777216,null,null,1,null,Ql)),r["\u0275did"](28,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275eld"](29,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](30,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275and"](16777216,null,null,1,null,Zl)),r["\u0275did"](32,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275eld"](33,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](34,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](35,0,null,null,2,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](36,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.pressedOk()&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Close"]))],function(e,t){var n=t.component;e(t,28,0,n.appComponent.showPremiumShop),e(t,32,0,n.appComponent.getCurrentCardRank(n.arenaNumber,n.cardId)>1)},function(e,t){var n=t.component;e(t,3,0,n.appComponent.getCurrentCardRank(n.arenaNumber,n.cardId));var i=r["\u0275unv"](t,6,0,e(t,7,0,r["\u0275nov"](t.parent,0),n.appComponent.getCardUpgradeCost(n.arenaNumber,n.cardId)));e(t,6,0,i),e(t,20,0,n.appComponent.getCardGemUpgradeCost(n.arenaNumber,n.cardId)),e(t,26,0,n.gemCount())})}function Jl(e){return r["\u0275vid"](0,[r["\u0275pid"](0,H,[]),(e()(),r["\u0275and"](16777216,null,null,1,null,Xl)),r["\u0275did"](2,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){e(t,2,0,t.component.isVisible)},null)}var es=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function ts(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,10,"div",[["class","achievement-shower"]],[[8,"style",2]],null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"div",[["style","float: right; font-size: 10px; padding-left: 80px;"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Achievement unlocked!"])),(e()(),r["\u0275eld"](3,0,null,null,0,"div",[["style","clear: both;"]],null,null,null,null,null)),(e()(),r["\u0275eld"](4,0,null,null,6,"div",[["style","display: flex;"]],null,null,null,null,null)),(e()(),r["\u0275eld"](5,0,null,null,0,"img",[["alt","achievmeent image"]],[[8,"src",4]],null,null,null,null)),(e()(),r["\u0275eld"](6,0,null,null,4,"div",[["style","padding-left: 20px;"]],null,null,null,null,null)),(e()(),r["\u0275eld"](7,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),r["\u0275ted"](8,null,["",""])),(e()(),r["\u0275eld"](9,0,null,null,1,"div",[["style","font-size: 12px; margin-top: 10px;"]],null,null,null,null,null)),(e()(),r["\u0275ted"](10,null,["",""]))],null,function(e,t){var n=t.component;e(t,0,0,n.getStyle()),e(t,5,0,r["\u0275inlineInterpolate"](1,"assets/images/achievements/",n.currentAchievement.imageFilename,"")),e(t,8,0,n.currentAchievement.title),e(t,10,0,n.currentAchievement.description)})}function ns(e){return r["\u0275vid"](0,[(e()(),r["\u0275and"](16777216,null,null,1,null,ts)),r["\u0275did"](1,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){e(t,1,0,null!=t.component.currentAchievement)},null)}var rs=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function is(e){return r["\u0275vid"](0,[],null,null)}var ls=r["\u0275crt"]({encapsulation:0,styles:[[".header[_ngcontent-%COMP%]{width:100%;margin:0 0 10px;border:2px solid #000;position:absolute;display:flex;top:0;left:0;background:#5b3723;color:#fff}.header-resource[_ngcontent-%COMP%]{min-width:250px;display:flex}.header-resource-small[_ngcontent-%COMP%]{min-width:170px}.header-arena-selector[_ngcontent-%COMP%]{width:200px}.main-container[_ngcontent-%COMP%]{width:100%;margin:0;position:absolute;top:30px;left:0;-ms-user-select:none;user-select:none;-moz-user-select:none;-webkit-user-select:none}.card[_ngcontent-%COMP%]{width:100px;height:140px}.tooltip-container[_ngcontent-%COMP%]{text-align:center;width:100%;height:20px;border:2px solid #000;position:absolute;top:559px;left:0;background:#5b3723;color:#fff}.collection-controls-container[_ngcontent-%COMP%], .playmat-controls-container[_ngcontent-%COMP%]{position:absolute;top:452px;height:55px;padding:5px;background:#5b3723;border:2px solid #3f271a;border-radius:2px}.playmat-controls-container[_ngcontent-%COMP%]{left:10px;width:270px}.cards-in-play-container[_ngcontent-%COMP%]{display:flex}.card-collection-container[_ngcontent-%COMP%]{position:absolute;top:35px;left:410px;width:430px;height:410px;display:block;overflow-y:auto}.collection-controls-container[_ngcontent-%COMP%]{left:410px;width:400px}.card-collection-controls[_ngcontent-%COMP%]{display:flex;position:absolute;top:367px;left:303px;width:268px;height:40px;z-index:1000;background:#5b3723;border:3px solid #2b2016;border-radius:1px;padding:5px}"]],data:{}});function ss(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,6,"div",[["class","header-resource"]],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](2,0,null,null,0,"img",[["alt","Gold"],["class","resource-icon"],["src","assets/images/resources/gold.png"],["title","Gold"]],null,null,null,null,null)),(e()(),r["\u0275eld"](3,0,null,null,3,"div",[["class","resource-text"]],null,null,null,null,null)),(e()(),r["\u0275ted"](4,null,[""," (+","/sec)"])),r["\u0275ppd"](5,1),r["\u0275ppd"](6,1)],null,function(e,t){var n=t.component,i=r["\u0275unv"](t,4,0,e(t,5,0,r["\u0275nov"](t.parent,0),n.gameState.resources.arena1.gold)),l=r["\u0275unv"](t,4,1,e(t,6,0,r["\u0275nov"](t.parent,0),n.AmountOfGoldPerSecond(1)));e(t,4,0,i,l)})}function os(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"div",[["class","header-resource"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" \xa0 "]))],null,null)}function as(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,6,"div",[["class","header-resource"]],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](2,0,null,null,0,"img",[["alt","Wood"],["class","resource-icon"],["src","assets/images/resources/wood.png"],["title","Wood"]],null,null,null,null,null)),(e()(),r["\u0275eld"](3,0,null,null,3,"div",[["class","resource-text"]],null,null,null,null,null)),(e()(),r["\u0275ted"](4,null,[""," (","","/sec)"])),r["\u0275ppd"](5,1),r["\u0275ppd"](6,1)],null,function(e,t){var n=t.component,i=r["\u0275unv"](t,4,0,e(t,5,0,r["\u0275nov"](t.parent,0),n.gameState.resources.arena2.wood)),l=n.AmountOfWoodPerSecond(2)>=0?"+":"",s=r["\u0275unv"](t,4,2,e(t,6,0,r["\u0275nov"](t.parent,0),n.AmountOfWoodPerSecond(2)));e(t,4,0,i,l,s)})}function us(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,6,"div",[["class","header-resource"]],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](2,0,null,null,0,"img",[["alt","Iron"],["class","resource-icon"],["src","assets/images/resources/iron.png"],["title","Iron"]],null,null,null,null,null)),(e()(),r["\u0275eld"](3,0,null,null,3,"div",[["class","resource-text"]],null,null,null,null,null)),(e()(),r["\u0275ted"](4,null,[""," (+","/sec)"])),r["\u0275ppd"](5,1),r["\u0275ppd"](6,1)],null,function(e,t){var n=t.component,i=r["\u0275unv"](t,4,0,e(t,5,0,r["\u0275nov"](t.parent,0),n.gameState.resources.arena2.iron)),l=r["\u0275unv"](t,4,1,e(t,6,0,r["\u0275nov"](t.parent,0),n.AmountOfIronPerSecond(2)));e(t,4,0,i,l)})}function cs(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,6,"div",[["class","header-resource header-resource-small"]],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](2,0,null,null,0,"img",[["alt","Ether"],["class","resource-icon"],["src","assets/images/resources/ether.png"],["title","Ether"]],null,null,null,null,null)),(e()(),r["\u0275eld"](3,0,null,null,3,"div",[["class","resource-text resource-text-small"]],null,null,null,null,null)),(e()(),r["\u0275ted"](4,null,[""," (","","/sec)"])),r["\u0275ppd"](5,1),r["\u0275ppd"](6,1)],null,function(e,t){var n=t.component,i=r["\u0275unv"](t,4,0,e(t,5,0,r["\u0275nov"](t.parent,0),n.gameState.resources.arena3.ether)),l=n.AmountOfEtherPerSecond(3)>=0?"+":"",s=r["\u0275unv"](t,4,2,e(t,6,0,r["\u0275nov"](t.parent,0),n.AmountOfEtherPerSecond(3)));e(t,4,0,i,l,s)})}function ds(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,6,"div",[["class","header-resource header-resource-small"]],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](2,0,null,null,0,"img",[["alt","Skulls"],["class","resource-icon"],["src","assets/images/resources/skulls.png"],["title","Skulls"]],null,null,null,null,null)),(e()(),r["\u0275eld"](3,0,null,null,3,"div",[["class","resource-text resource-text-small"]],null,null,null,null,null)),(e()(),r["\u0275ted"](4,null,[""," (","","/sec)"])),r["\u0275ppd"](5,1),r["\u0275ppd"](6,1)],null,function(e,t){var n=t.component,i=r["\u0275unv"](t,4,0,e(t,5,0,r["\u0275nov"](t.parent,0),n.gameState.resources.arena3.skulls)),l=n.AmountOfSkullsPerSecond(3)>=0?"+":"",s=r["\u0275unv"](t,4,2,e(t,6,0,r["\u0275nov"](t.parent,0),n.AmountOfSkullsPerSecond(3)));e(t,4,0,i,l,s)})}function hs(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,6,"div",[["class","header-resource header-resource-small"]],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](2,0,null,null,0,"img",[["alt","Feathers"],["class","resource-icon"],["src","assets/images/resources/feathers.png"],["title","Feathers"]],null,null,null,null,null)),(e()(),r["\u0275eld"](3,0,null,null,3,"div",[["class","resource-text resource-text-small"]],null,null,null,null,null)),(e()(),r["\u0275ted"](4,null,[""," (","","/sec)"])),r["\u0275ppd"](5,1),r["\u0275ppd"](6,1)],null,function(e,t){var n=t.component,i=r["\u0275unv"](t,4,0,e(t,5,0,r["\u0275nov"](t.parent,0),n.gameState.resources.arena3.feathers)),l=n.AmountOfFeathersPerSecond(3)>=0?"+":"",s=r["\u0275unv"](t,4,2,e(t,6,0,r["\u0275nov"](t.parent,0),n.AmountOfFeathersPerSecond(3)));e(t,4,0,i,l,s)})}function fs(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,5,"div",[["class","header-resource"]],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](2,0,null,null,0,"img",[["alt","Gold"],["class","resource-icon"],["src","assets/images/resources/gold.png"],["title","Gold"]],null,null,null,null,null)),(e()(),r["\u0275eld"](3,0,null,null,2,"div",[["class","resource-text"]],null,null,null,null,null)),(e()(),r["\u0275ted"](4,null,[""," ",""])),r["\u0275ppd"](5,1)],null,function(e,t){var n=t.component,i=r["\u0275unv"](t,4,0,e(t,5,0,r["\u0275nov"](t.parent,0),n.gameState.resources.arena4.gold));e(t,4,0,i,n.getEstimatedResourcePerSecondForBattleArena(4,"gold"))})}function ps(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,5,"div",[["class","header-resource"]],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](2,0,null,null,0,"img",[["alt","Wood"],["class","resource-icon"],["src","assets/images/resources/wood.png"],["title","Wood"]],null,null,null,null,null)),(e()(),r["\u0275eld"](3,0,null,null,2,"div",[["class","resource-text"]],null,null,null,null,null)),(e()(),r["\u0275ted"](4,null,[""," ",""])),r["\u0275ppd"](5,1)],null,function(e,t){var n=t.component,i=r["\u0275unv"](t,4,0,e(t,5,0,r["\u0275nov"](t.parent,0),n.gameState.resources.arena4.wood));e(t,4,0,i,n.getEstimatedResourcePerSecondForBattleArena(4,"wood"))})}function ms(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,6,"div",[["class","header-resource"]],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](2,0,null,null,0,"img",[["alt","Gold"],["class","resource-icon"],["src","assets/images/resources/gold.png"],["title","Gold"]],null,null,null,null,null)),(e()(),r["\u0275eld"](3,0,null,null,3,"div",[["class","resource-text"]],null,null,null,null,null)),(e()(),r["\u0275ted"](4,null,[""," (+","/sec)"])),r["\u0275ppd"](5,1),r["\u0275ppd"](6,1)],null,function(e,t){var n=t.component,i=r["\u0275unv"](t,4,0,e(t,5,0,r["\u0275nov"](t.parent,0),n.gameState.resources.arena5.gold)),l=r["\u0275unv"](t,4,1,e(t,6,0,r["\u0275nov"](t.parent,0),n.AmountOfGoldPerSecond(5)));e(t,4,0,i,l)})}function gs(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,6,"div",[["class","header-resource"]],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](2,0,null,null,0,"img",[["alt","Iron"],["class","resource-icon"],["src","assets/images/resources/iron.png"],["title","Iron"]],null,null,null,null,null)),(e()(),r["\u0275eld"](3,0,null,null,3,"div",[["class","resource-text"]],null,null,null,null,null)),(e()(),r["\u0275ted"](4,null,[""," (+","/sec)"])),r["\u0275ppd"](5,1),r["\u0275ppd"](6,1)],null,function(e,t){var n=t.component,i=r["\u0275unv"](t,4,0,e(t,5,0,r["\u0275nov"](t.parent,0),n.gameState.resources.arena5.iron)),l=r["\u0275unv"](t,4,1,e(t,6,0,r["\u0275nov"](t.parent,0),n.AmountOfIronPerSecond(5)));e(t,4,0,i,l)})}function ys(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,3,"option",[],null,null,null,null,null)),r["\u0275did"](1,147456,null,0,dn,[r.ElementRef,r.Renderer2,[2,cn]],{value:[0,"value"]},null),r["\u0275did"](2,147456,null,0,pn,[r.ElementRef,r.Renderer2,[8,null]],{value:[0,"value"]},null),(e()(),r["\u0275ted"](3,null,["",""]))],function(e,t){e(t,1,0,t.context.$implicit.num),e(t,2,0,t.context.$implicit.num)},function(e,t){e(t,3,0,t.context.$implicit.name)})}function bs(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,8,"div",[["class","header-arena-selector"]],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,7,"select",[],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(e,t,n){var i=!0,l=e.component;return"change"===t&&(i=!1!==r["\u0275nov"](e,2).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,2).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(l.gameState.selectedArenaNumber=n)&&i),"change"===t&&(i=!1!==l.arenaSelectionChanged()&&i),i},null,null)),r["\u0275did"](2,16384,null,0,cn,[r.Renderer2,r.ElementRef],null,null),r["\u0275prd"](1024,null,Bt,function(e){return[e]},[cn]),r["\u0275did"](4,671744,null,0,Ln,[[8,null],[8,null],[8,null],[6,Bt]],{model:[0,"model"]},{update:"ngModelChange"}),r["\u0275prd"](2048,null,$t,null,[Ln]),r["\u0275did"](6,16384,null,0,qt,[[4,$t]],null,null),(e()(),r["\u0275and"](16777216,null,null,1,null,ys)),r["\u0275did"](8,278528,null,0,ye,[r.ViewContainerRef,r.TemplateRef,r.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(e,t){var n=t.component;e(t,4,0,n.gameState.selectedArenaNumber),e(t,8,0,n.unlockedArenas)},function(e,t){e(t,1,0,r["\u0275nov"](t,6).ngClassUntouched,r["\u0275nov"](t,6).ngClassTouched,r["\u0275nov"](t,6).ngClassPristine,r["\u0275nov"](t,6).ngClassDirty,r["\u0275nov"](t,6).ngClassValid,r["\u0275nov"](t,6).ngClassInvalid,r["\u0275nov"](t,6).ngClassPending)})}function vs(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"div",[["class","tab"]],[[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(i.currentTab="premium",r=!1!==i.closeSaveLayoutDialog()&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Upgrades"]))],null,function(e,t){e(t,0,0,"premium"==t.component.currentTab)})}function ws(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"div",[["class","tab"]],[[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(i.currentTab="debug",r=!1!==i.closeSaveLayoutDialog()&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Debug"]))],null,function(e,t){e(t,0,0,"debug"==t.component.currentTab)})}function Cs(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,2,"div",[["style","margin-left: 90px; margin-top: 3px;"]],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"button",[],null,[[null,"click"],[null,"mouseover"],[null,"mouseout"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.openUpgradeWindow()&&r),"mouseover"===t&&(r=!1!==i.showTooltipForRankUp()&&r),"mouseout"===t&&(r=!1!==i.hideTooltip()&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Upgrade"]))],null,null)}function _s(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"empty-card-slot",[],null,null,null,Zn,qn)),r["\u0275did"](1,49152,null,0,$n,[],{arenaNumber:[0,"arenaNumber"],slotNumber:[1,"slotNumber"],isUnlocked:[2,"isUnlocked"],clickable:[3,"clickable"],x:[4,"x"],y:[5,"y"]},null)],function(e,t){e(t,1,0,1,t.parent.context.index,!0,t.component.isSelectingEmptySlot,t.parent.context.$implicit.x,t.parent.context.$implicit.y)},null)}function Ss(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"empty-card-slot",[],null,null,null,Zn,qn)),r["\u0275did"](1,49152,null,0,$n,[],{arenaNumber:[0,"arenaNumber"],slotNumber:[1,"slotNumber"],isUnlocked:[2,"isUnlocked"],unlockCurrency:[3,"unlockCurrency"],unlockPrice:[4,"unlockPrice"],clickable:[5,"clickable"],x:[6,"x"],y:[7,"y"]},null)],function(e,t){e(t,1,0,1,t.parent.context.index,!1,t.parent.context.$implicit.unlockCurrency,t.parent.context.$implicit.unlockPrice,!0,t.parent.context.$implicit.x,t.parent.context.$implicit.y)},null)}function ks(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"card",[],null,null,null,Fr,Ar)),r["\u0275did"](1,245760,null,0,Ir,[kt,H],{clickable:[0,"clickable"],cardData:[1,"cardData"],slotNumber:[2,"slotNumber"],arenaNumber:[3,"arenaNumber"],x:[4,"x"],y:[5,"y"],rank:[6,"rank"]},null)],function(e,t){var n=t.component;e(t,1,0,!0,t.parent.context.$implicit.cardInSlot,t.parent.context.index,1,t.parent.context.$implicit.x,t.parent.context.$implicit.y,n.getCurrentCardRank(n.gameState.selectedArenaNumber,t.parent.context.$implicit.cardInSlot.id))},null)}function xs(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,6,"div",[],null,null,null,null,null)),(e()(),r["\u0275and"](16777216,null,null,1,null,_s)),r["\u0275did"](2,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Ss)),r["\u0275did"](4,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,ks)),r["\u0275did"](6,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){e(t,2,0,t.context.$implicit.slotIsUnlocked&&null==t.context.$implicit.cardInSlot),e(t,4,0,!t.context.$implicit.slotIsUnlocked),e(t,6,0,null!=t.context.$implicit.cardInSlot)},null)}function Is(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,2,"div",[["class","cards-in-play-container"],["style","display: block;"]],null,null,null,null,null)),(e()(),r["\u0275and"](16777216,null,null,1,null,xs)),r["\u0275did"](2,278528,null,0,ye,[r.ViewContainerRef,r.TemplateRef,r.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(e,t){e(t,2,0,t.component.gameState.arena1.cardSlots)},null)}function As(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"empty-card-slot",[],null,null,null,Zn,qn)),r["\u0275did"](1,49152,null,0,$n,[],{arenaNumber:[0,"arenaNumber"],slotNumber:[1,"slotNumber"],isUnlocked:[2,"isUnlocked"],clickable:[3,"clickable"],x:[4,"x"],y:[5,"y"],cardsPerRow:[6,"cardsPerRow"]},null)],function(e,t){e(t,1,0,2,t.parent.context.index,!0,t.component.isSelectingEmptySlot,t.parent.context.$implicit.x,t.parent.context.$implicit.y,4)},null)}function Es(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"empty-card-slot",[],null,null,null,Zn,qn)),r["\u0275did"](1,49152,null,0,$n,[],{arenaNumber:[0,"arenaNumber"],slotNumber:[1,"slotNumber"],isUnlocked:[2,"isUnlocked"],unlockCurrency:[3,"unlockCurrency"],unlockPrice:[4,"unlockPrice"],clickable:[5,"clickable"],x:[6,"x"],y:[7,"y"],cardsPerRow:[8,"cardsPerRow"]},null)],function(e,t){e(t,1,0,2,t.parent.context.index,!1,t.parent.context.$implicit.unlockCurrency,t.parent.context.$implicit.unlockPrice,!0,t.parent.context.$implicit.x,t.parent.context.$implicit.y,4)},null)}function Ts(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"card",[],null,null,null,Fr,Ar)),r["\u0275did"](1,245760,null,0,Ir,[kt,H],{clickable:[0,"clickable"],cardData:[1,"cardData"],slotNumber:[2,"slotNumber"],arenaNumber:[3,"arenaNumber"],x:[4,"x"],y:[5,"y"],cardsPerRow:[6,"cardsPerRow"],rank:[7,"rank"]},null)],function(e,t){var n=t.component;e(t,1,0,!0,t.parent.context.$implicit.cardInSlot,t.parent.context.index,2,t.parent.context.$implicit.x,t.parent.context.$implicit.y,4,n.getCurrentCardRank(n.gameState.selectedArenaNumber,t.parent.context.$implicit.cardInSlot.id))},null)}function Ms(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,6,"div",[],null,null,null,null,null)),(e()(),r["\u0275and"](16777216,null,null,1,null,As)),r["\u0275did"](2,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Es)),r["\u0275did"](4,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Ts)),r["\u0275did"](6,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){e(t,2,0,t.context.$implicit.slotIsUnlocked&&null==t.context.$implicit.cardInSlot),e(t,4,0,!t.context.$implicit.slotIsUnlocked),e(t,6,0,null!=t.context.$implicit.cardInSlot)},null)}function Rs(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,2,"div",[["class","cards-in-play-container card-scale-small"],["style","display: block;"]],null,null,null,null,null)),(e()(),r["\u0275and"](16777216,null,null,1,null,Ms)),r["\u0275did"](2,278528,null,0,ye,[r.ViewContainerRef,r.TemplateRef,r.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(e,t){e(t,2,0,t.component.gameState.arena2.cardSlots)},null)}function Ps(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"empty-card-slot",[],null,null,null,Zn,qn)),r["\u0275did"](1,49152,null,0,$n,[],{arenaNumber:[0,"arenaNumber"],slotNumber:[1,"slotNumber"],isUnlocked:[2,"isUnlocked"],clickable:[3,"clickable"],x:[4,"x"],y:[5,"y"],cardsPerRow:[6,"cardsPerRow"]},null)],function(e,t){e(t,1,0,3,t.parent.context.index,!0,t.component.isSelectingEmptySlot,t.parent.context.$implicit.x,t.parent.context.$implicit.y,5)},null)}function Os(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"empty-card-slot",[],null,null,null,Zn,qn)),r["\u0275did"](1,49152,null,0,$n,[],{arenaNumber:[0,"arenaNumber"],slotNumber:[1,"slotNumber"],isUnlocked:[2,"isUnlocked"],unlockCurrency:[3,"unlockCurrency"],unlockPrice:[4,"unlockPrice"],clickable:[5,"clickable"],x:[6,"x"],y:[7,"y"],cardsPerRow:[8,"cardsPerRow"]},null)],function(e,t){e(t,1,0,3,t.parent.context.index,!1,t.parent.context.$implicit.unlockCurrency,t.parent.context.$implicit.unlockPrice,!0,t.parent.context.$implicit.x,t.parent.context.$implicit.y,5)},null)}function Ns(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"card",[],null,null,null,Fr,Ar)),r["\u0275did"](1,245760,null,0,Ir,[kt,H],{clickable:[0,"clickable"],cardData:[1,"cardData"],slotNumber:[2,"slotNumber"],arenaNumber:[3,"arenaNumber"],x:[4,"x"],y:[5,"y"],cardsPerRow:[6,"cardsPerRow"],rank:[7,"rank"]},null)],function(e,t){var n=t.component;e(t,1,0,!0,t.parent.context.$implicit.cardInSlot,t.parent.context.index,3,t.parent.context.$implicit.x,t.parent.context.$implicit.y,5,n.getCurrentCardRank(n.gameState.selectedArenaNumber,t.parent.context.$implicit.cardInSlot.id))},null)}function Ds(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,6,"div",[],null,null,null,null,null)),(e()(),r["\u0275and"](16777216,null,null,1,null,Ps)),r["\u0275did"](2,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Os)),r["\u0275did"](4,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Ns)),r["\u0275did"](6,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){e(t,2,0,t.context.$implicit.slotIsUnlocked&&null==t.context.$implicit.cardInSlot),e(t,4,0,!t.context.$implicit.slotIsUnlocked),e(t,6,0,null!=t.context.$implicit.cardInSlot)},null)}function Fs(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,2,"div",[["class","cards-in-play-container card-scale-smallest"],["style","display: block;"]],null,null,null,null,null)),(e()(),r["\u0275and"](16777216,null,null,1,null,Ds)),r["\u0275did"](2,278528,null,0,ye,[r.ViewContainerRef,r.TemplateRef,r.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(e,t){e(t,2,0,t.component.gameState.arena3.cardSlots)},null)}function Vs(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"empty-card-slot",[],null,null,null,Zn,qn)),r["\u0275did"](1,49152,null,0,$n,[],{arenaNumber:[0,"arenaNumber"],slotNumber:[1,"slotNumber"],isUnlocked:[2,"isUnlocked"],clickable:[3,"clickable"],x:[4,"x"],y:[5,"y"],cardsPerRow:[6,"cardsPerRow"],slotType:[7,"slotType"]},null)],function(e,t){e(t,1,0,4,t.parent.context.index,!0,t.component.isSelectingEmptySlot,t.parent.context.$implicit.x,t.parent.context.$implicit.y,4,t.parent.context.$implicit.slotType)},null)}function js(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"empty-card-slot",[],null,null,null,Zn,qn)),r["\u0275did"](1,49152,null,0,$n,[],{arenaNumber:[0,"arenaNumber"],slotNumber:[1,"slotNumber"],isUnlocked:[2,"isUnlocked"],unlockCurrency:[3,"unlockCurrency"],unlockPrice:[4,"unlockPrice"],clickable:[5,"clickable"],x:[6,"x"],y:[7,"y"],cardsPerRow:[8,"cardsPerRow"],slotType:[9,"slotType"]},null)],function(e,t){e(t,1,0,4,t.parent.context.index,!1,t.parent.context.$implicit.unlockCurrency,t.parent.context.$implicit.unlockPrice,!0,t.parent.context.$implicit.x,t.parent.context.$implicit.y,4,t.parent.context.$implicit.slotType)},null)}function Bs(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"card",[],null,null,null,Fr,Ar)),r["\u0275did"](1,245760,null,0,Ir,[kt,H],{clickable:[0,"clickable"],cardData:[1,"cardData"],slotNumber:[2,"slotNumber"],arenaNumber:[3,"arenaNumber"],x:[4,"x"],y:[5,"y"],cardsPerRow:[6,"cardsPerRow"],rank:[7,"rank"],currentHP:[8,"currentHP"],damageTakenThisRound:[9,"damageTakenThisRound"],foughtInLastTick:[10,"foughtInLastTick"],droppedLootLastTick:[11,"droppedLootLastTick"]},null)],function(e,t){var n=t.component;e(t,1,1,[!0,t.parent.context.$implicit.cardInSlot,t.parent.context.index,4,t.parent.context.$implicit.x,t.parent.context.$implicit.y,4,n.getCurrentCardRank(n.gameState.selectedArenaNumber,t.parent.context.$implicit.cardInSlot.id),n.getCurrentCardHP(n.gameState.selectedArenaNumber,t.parent.context.index),t.parent.context.$implicit.damageTakenThisRound,t.parent.context.$implicit.foughtInLastTick,t.parent.context.$implicit.droppedLootLastTick])},null)}function Ls(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,6,"div",[],null,null,null,null,null)),(e()(),r["\u0275and"](16777216,null,null,1,null,Vs)),r["\u0275did"](2,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,js)),r["\u0275did"](4,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Bs)),r["\u0275did"](6,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){e(t,2,0,t.context.$implicit.slotIsUnlocked&&null==t.context.$implicit.cardInSlot),e(t,4,0,!t.context.$implicit.slotIsUnlocked),e(t,6,0,null!=t.context.$implicit.cardInSlot)},null)}function Hs(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,2,"div",[["class","cards-in-play-container card-scale-small"],["style","display: block;"]],null,null,null,null,null)),(e()(),r["\u0275and"](16777216,null,null,1,null,Ls)),r["\u0275did"](2,278528,null,0,ye,[r.ViewContainerRef,r.TemplateRef,r.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(e,t){e(t,2,0,t.component.gameState.arena4.cardSlots)},null)}function Us(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"empty-card-slot",[],null,null,null,Zn,qn)),r["\u0275did"](1,49152,null,0,$n,[],{arenaNumber:[0,"arenaNumber"],slotNumber:[1,"slotNumber"],isUnlocked:[2,"isUnlocked"],clickable:[3,"clickable"],x:[4,"x"],y:[5,"y"],cardsPerRow:[6,"cardsPerRow"],slotType:[7,"slotType"]},null)],function(e,t){e(t,1,0,5,t.parent.context.index,!0,t.component.isSelectingEmptySlot,t.parent.context.$implicit.x,t.parent.context.$implicit.y,5,t.parent.context.$implicit.slotType)},null)}function zs(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"empty-card-slot",[],null,null,null,Zn,qn)),r["\u0275did"](1,49152,null,0,$n,[],{arenaNumber:[0,"arenaNumber"],slotNumber:[1,"slotNumber"],isUnlocked:[2,"isUnlocked"],unlockCurrency:[3,"unlockCurrency"],unlockPrice:[4,"unlockPrice"],clickable:[5,"clickable"],x:[6,"x"],y:[7,"y"],cardsPerRow:[8,"cardsPerRow"],slotType:[9,"slotType"]},null)],function(e,t){e(t,1,0,5,t.parent.context.index,!1,t.parent.context.$implicit.unlockCurrency,t.parent.context.$implicit.unlockPrice,!0,t.parent.context.$implicit.x,t.parent.context.$implicit.y,5,t.parent.context.$implicit.slotType)},null)}function Gs(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"card",[],null,null,null,Fr,Ar)),r["\u0275did"](1,245760,null,0,Ir,[kt,H],{clickable:[0,"clickable"],cardData:[1,"cardData"],slotNumber:[2,"slotNumber"],arenaNumber:[3,"arenaNumber"],x:[4,"x"],y:[5,"y"],cardsPerRow:[6,"cardsPerRow"],rank:[7,"rank"]},null)],function(e,t){var n=t.component;e(t,1,0,!0,t.parent.context.$implicit.cardInSlot,t.parent.context.index,5,t.parent.context.$implicit.x,t.parent.context.$implicit.y,5,n.getCurrentCardRank(n.gameState.selectedArenaNumber,t.parent.context.$implicit.cardInSlot.id))},null)}function Ws(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,6,"div",[],null,null,null,null,null)),(e()(),r["\u0275and"](16777216,null,null,1,null,Us)),r["\u0275did"](2,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,zs)),r["\u0275did"](4,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Gs)),r["\u0275did"](6,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){e(t,2,0,t.context.$implicit.slotIsUnlocked&&null==t.context.$implicit.cardInSlot),e(t,4,0,!t.context.$implicit.slotIsUnlocked),e(t,6,0,null!=t.context.$implicit.cardInSlot)},null)}function $s(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,2,"div",[["class","cards-in-play-container card-scale-small"],["style","display: block; width: 400px; height: 400px; overflow-y: scroll;"]],null,null,null,null,null)),(e()(),r["\u0275and"](16777216,null,null,1,null,Ws)),r["\u0275did"](2,278528,null,0,ye,[r.ViewContainerRef,r.TemplateRef,r.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(e,t){e(t,2,0,t.component.gameState.arena5.cardSlots)},null)}function qs(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,3,"option",[],null,null,null,null,null)),r["\u0275did"](1,147456,null,0,dn,[r.ElementRef,r.Renderer2,[2,cn]],{value:[0,"value"]},null),r["\u0275did"](2,147456,null,0,pn,[r.ElementRef,r.Renderer2,[8,null]],{value:[0,"value"]},null),(e()(),r["\u0275ted"](3,null,[" "," "]))],function(e,t){e(t,1,0,t.context.index),e(t,2,0,t.context.index)},function(e,t){e(t,3,0,t.context.$implicit.name)})}function Ks(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,17,"div",[["style","display: flex; margin-top: 5px;"]],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Load layout:"])),(e()(),r["\u0275eld"](3,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["\xa0\xa0"])),(e()(),r["\u0275eld"](5,0,null,null,12,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](6,0,null,null,11,"select",[["style","width: 150px;"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(e,t,n){var i=!0,l=e.component;return"change"===t&&(i=!1!==r["\u0275nov"](e,7).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,7).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(l.selectedLayoutSlotToLoad=n)&&i),"change"===t&&(i=!1!==l.loadLayout()&&i),i},null,null)),r["\u0275did"](7,16384,null,0,cn,[r.Renderer2,r.ElementRef],null,null),r["\u0275prd"](1024,null,Bt,function(e){return[e]},[cn]),r["\u0275did"](9,671744,null,0,Ln,[[8,null],[8,null],[8,null],[6,Bt]],{model:[0,"model"]},{update:"ngModelChange"}),r["\u0275prd"](2048,null,$t,null,[Ln]),r["\u0275did"](11,16384,null,0,qt,[[4,$t]],null,null),(e()(),r["\u0275eld"](12,0,null,null,3,"option",[["value","-1"]],null,null,null,null,null)),r["\u0275did"](13,147456,null,0,dn,[r.ElementRef,r.Renderer2,[2,cn]],{value:[0,"value"]},null),r["\u0275did"](14,147456,null,0,pn,[r.ElementRef,r.Renderer2,[8,null]],{value:[0,"value"]},null),(e()(),r["\u0275ted"](-1,null,["---"])),(e()(),r["\u0275and"](16777216,null,null,1,null,qs)),r["\u0275did"](17,278528,null,0,ye,[r.ViewContainerRef,r.TemplateRef,r.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(e,t){var n=t.component;e(t,9,0,n.selectedLayoutSlotToLoad),e(t,13,0,"-1"),e(t,14,0,"-1"),e(t,17,0,n.gameState.savedLayouts["arena"+n.gameState.selectedArenaNumber])},function(e,t){e(t,6,0,r["\u0275nov"](t,11).ngClassUntouched,r["\u0275nov"](t,11).ngClassTouched,r["\u0275nov"](t,11).ngClassPristine,r["\u0275nov"](t,11).ngClassDirty,r["\u0275nov"](t,11).ngClassValid,r["\u0275nov"](t,11).ngClassInvalid,r["\u0275nov"](t,11).ngClassPending)})}function Ys(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,20,"div",[],null,null,null,null,null)),(e()(),r["\u0275and"](16777216,null,null,1,null,Is)),r["\u0275did"](2,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Rs)),r["\u0275did"](4,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Fs)),r["\u0275did"](6,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Hs)),r["\u0275did"](8,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,$s)),r["\u0275did"](10,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275eld"](11,0,null,null,9,"div",[["class","playmat-controls-container white-text"]],null,null,null,null,null)),(e()(),r["\u0275eld"](12,0,null,null,6,"div",[["style","display: flex;"]],null,null,null,null,null)),(e()(),r["\u0275eld"](13,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.openSaveLayoutDialog()&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Save layout"])),(e()(),r["\u0275eld"](15,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["\xa0"])),(e()(),r["\u0275eld"](17,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.removeAllCardsFromGrid()&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Clear board"])),(e()(),r["\u0275and"](16777216,null,null,1,null,Ks)),r["\u0275did"](20,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,2,0,1==n.gameState.selectedArenaNumber),e(t,4,0,2==n.gameState.selectedArenaNumber),e(t,6,0,3==n.gameState.selectedArenaNumber),e(t,8,0,4==n.gameState.selectedArenaNumber),e(t,10,0,5==n.gameState.selectedArenaNumber),e(t,20,0,n.gameState.savedLayouts["arena"+n.gameState.selectedArenaNumber].length>0)},null)}function Qs(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,12,"div",[],[[2,"white-text",null]],null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](2,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](3,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["No unused cards left."])),(e()(),r["\u0275eld"](5,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Visit the "])),(e()(),r["\u0275eld"](7,0,null,null,1,"a",[["class","clickable"],["style","color: blue;"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==(e.component.currentTab="shop")&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Shop"])),(e()(),r["\u0275ted"](-1,null,[" to buy more. "])),(e()(),r["\u0275eld"](10,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](11,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" Or click a card to the left to remove it. "]))],null,function(e,t){e(t,0,0,t.component.arenaHasDarkBackground())})}function Zs(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,7,"div",[],[[2,"white-text",null]],null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](2,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](3,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["No cards match your selected filters. "])),(e()(),r["\u0275eld"](5,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275eld"](6,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" Adjust filters below. "]))],null,function(e,t){e(t,0,0,t.component.arenaHasDarkBackground())})}function Xs(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,3,"span",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" To play a card: click it, or drag it to an open slot on the left."])),(e()(),r["\u0275eld"](2,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" Clicking also shows more options. "]))],null,null)}function Js(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,[" Click a slot to the left. "]))],null,null)}function eo(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,4,"div",[],null,null,null,null,null)),(e()(),r["\u0275and"](16777216,null,null,1,null,Xs)),r["\u0275did"](2,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Js)),r["\u0275did"](4,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,2,0,!n.isSelectingEmptySlot),e(t,4,0,n.isSelectingEmptySlot)},null)}function to(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"card",[],null,null,null,Fr,Ar)),r["\u0275did"](1,245760,null,0,Ir,[kt,H],{clickable:[0,"clickable"],isCollectionCard:[1,"isCollectionCard"],cardData:[2,"cardData"],slotNumber:[3,"slotNumber"],quantity:[4,"quantity"],cardsPerRow:[5,"cardsPerRow"],isBeingPlaced:[6,"isBeingPlaced"],displaySize:[7,"displaySize"],rank:[8,"rank"]},null)],function(e,t){var n=t.component;e(t,1,0,!0,!0,n.GetCardById(t.context.$implicit),t.context.index,n.gameState.cardCollection["arena"+n.gameState.selectedArenaNumber][t.context.$implicit],1==n.gameState.selectedArenaNumber?3:4,n.isSelectingEmptySlot&&n.cardIdToPutInEmptySlot==t.context.$implicit,1==n.gameState.selectedArenaNumber?3:2,n.getCurrentCardRank(n.gameState.selectedArenaNumber,t.context.$implicit))},null)}function no(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,10,"div",[["class","card-collection-container"],["droppable",""]],null,[[null,"onDrop"],[null,"drop"]],function(e,t,n){var i=!0,l=e.component;return"drop"===t&&(i=!1!==r["\u0275nov"](e,1).drop(n)&&i),"onDrop"===t&&(i=!1!==l.droppedCardOntoCollection(n)&&i),i},null,null)),r["\u0275did"](1,212992,null,0,Gn.Droppable,[r.ElementRef,r.Renderer2,Wn.NgDragDropService,r.NgZone],null,{onDrop:"onDrop"}),(e()(),r["\u0275and"](16777216,null,null,1,null,Qs)),r["\u0275did"](3,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Zs)),r["\u0275did"](5,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,eo)),r["\u0275did"](7,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275eld"](8,0,null,null,2,"div",[["class","card-collection"]],null,null,null,null,null)),(e()(),r["\u0275and"](16777216,null,null,1,null,to)),r["\u0275did"](10,278528,null,0,ye,[r.ViewContainerRef,r.TemplateRef,r.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(e,t){var n=t.component;e(t,1,0),e(t,3,0,n.cardCollectionIsEmpty()),e(t,5,0,!n.cardCollectionIsEmpty()&&0==n.gameState.cardCollectionOrders["arena"+n.gameState.selectedArenaNumber].length),e(t,7,0,!n.cardCollectionIsEmpty()&&0==n.gameState.resources.arena1.gold&&1==n.gameState.highestUnlockedArena),e(t,10,0,n.gameState.cardCollectionOrders["arena"+n.gameState.selectedArenaNumber])},null)}function ro(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,3,"option",[],null,null,null,null,null)),r["\u0275did"](1,147456,null,0,dn,[r.ElementRef,r.Renderer2,[2,cn]],{value:[0,"value"]},null),r["\u0275did"](2,147456,null,0,pn,[r.ElementRef,r.Renderer2,[8,null]],{value:[0,"value"]},null),(e()(),r["\u0275ted"](3,null,[" "," "]))],function(e,t){e(t,1,0,r["\u0275inlineInterpolate"](1,"",t.context.$implicit,"")),e(t,2,0,r["\u0275inlineInterpolate"](1,"",t.context.$implicit,""))},function(e,t){e(t,3,0,t.context.$implicit)})}function io(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,5,"input",[["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(e,t,n){var i=!0,l=e.component;return"change"===t&&(i=!1!==r["\u0275nov"](e,1).onChange(n.target.checked)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,1).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(l.gameState.filters.showTier.tier3=n)&&i),"change"===t&&(i=!1!==l.sortCardCollection(l.gameState.selectedArenaNumber)&&i),i},null,null)),r["\u0275did"](1,16384,null,0,Lt,[r.Renderer2,r.ElementRef],null,null),r["\u0275prd"](1024,null,Bt,function(e){return[e]},[Lt]),r["\u0275did"](3,671744,null,0,Ln,[[8,null],[8,null],[8,null],[6,Bt]],{model:[0,"model"]},{update:"ngModelChange"}),r["\u0275prd"](2048,null,$t,null,[Ln]),r["\u0275did"](5,16384,null,0,qt,[[4,$t]],null,null)],function(e,t){e(t,3,0,t.component.gameState.filters.showTier.tier3)},function(e,t){e(t,0,0,r["\u0275nov"](t,5).ngClassUntouched,r["\u0275nov"](t,5).ngClassTouched,r["\u0275nov"](t,5).ngClassPristine,r["\u0275nov"](t,5).ngClassDirty,r["\u0275nov"](t,5).ngClassValid,r["\u0275nov"](t,5).ngClassInvalid,r["\u0275nov"](t,5).ngClassPending)})}function lo(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Tier 3"]))],null,null)}function so(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,42,"div",[["class","collection-controls-container white-text"]],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,17,"div",[["style","display: flex"]],null,null,null,null,null)),(e()(),r["\u0275eld"](2,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Sort by: "])),(e()(),r["\u0275eld"](4,0,null,null,7,"select",[["style","margin-left: 20px;"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(e,t,n){var i=!0,l=e.component;return"change"===t&&(i=!1!==r["\u0275nov"](e,5).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,5).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(l.gameState.selectedSortOption=n)&&i),"change"===t&&(i=!1!==l.sortCardCollection(l.gameState.selectedArenaNumber)&&i),i},null,null)),r["\u0275did"](5,16384,null,0,cn,[r.Renderer2,r.ElementRef],null,null),r["\u0275prd"](1024,null,Bt,function(e){return[e]},[cn]),r["\u0275did"](7,671744,null,0,Ln,[[8,null],[8,null],[8,null],[6,Bt]],{model:[0,"model"]},{update:"ngModelChange"}),r["\u0275prd"](2048,null,$t,null,[Ln]),r["\u0275did"](9,16384,null,0,qt,[[4,$t]],null,null),(e()(),r["\u0275and"](16777216,null,null,1,null,ro)),r["\u0275did"](11,278528,null,0,ye,[r.ViewContainerRef,r.TemplateRef,r.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),r["\u0275eld"](12,0,null,null,6,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](13,0,null,null,5,"input",[["class","card-name-filter"],["placeholder","Type to filter by name"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var i=!0,l=e.component;return"input"===t&&(i=!1!==r["\u0275nov"](e,14)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,14).onTouched()&&i),"compositionstart"===t&&(i=!1!==r["\u0275nov"](e,14)._compositionStart()&&i),"compositionend"===t&&(i=!1!==r["\u0275nov"](e,14)._compositionEnd(n.target.value)&&i),"ngModelChange"===t&&(i=!1!==(l.cardNameFilter=n)&&i),"keyup"===t&&(i=!1!==l.sortCardCollection(l.gameState.selectedArenaNumber)&&i),i},null,null)),r["\u0275did"](14,16384,null,0,Ut,[r.Renderer2,r.ElementRef,[2,Ht]],null,null),r["\u0275prd"](1024,null,Bt,function(e){return[e]},[Ut]),r["\u0275did"](16,671744,null,0,Ln,[[8,null],[8,null],[8,null],[6,Bt]],{model:[0,"model"]},{update:"ngModelChange"}),r["\u0275prd"](2048,null,$t,null,[Ln]),r["\u0275did"](18,16384,null,0,qt,[[4,$t]],null,null),(e()(),r["\u0275eld"](19,0,null,null,23,"div",[["style","display: flex; margin-top: 10px;"]],null,null,null,null,null)),(e()(),r["\u0275eld"](20,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Filter by: "])),(e()(),r["\u0275eld"](22,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["\xa0\xa0"])),(e()(),r["\u0275eld"](24,0,null,null,18,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](25,0,null,null,5,"input",[["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(e,t,n){var i=!0,l=e.component;return"change"===t&&(i=!1!==r["\u0275nov"](e,26).onChange(n.target.checked)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,26).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(l.gameState.filters.showTier.tier1=n)&&i),"change"===t&&(i=!1!==l.sortCardCollection(l.gameState.selectedArenaNumber)&&i),i},null,null)),r["\u0275did"](26,16384,null,0,Lt,[r.Renderer2,r.ElementRef],null,null),r["\u0275prd"](1024,null,Bt,function(e){return[e]},[Lt]),r["\u0275did"](28,671744,null,0,Ln,[[8,null],[8,null],[8,null],[6,Bt]],{model:[0,"model"]},{update:"ngModelChange"}),r["\u0275prd"](2048,null,$t,null,[Ln]),r["\u0275did"](30,16384,null,0,qt,[[4,$t]],null,null),(e()(),r["\u0275ted"](-1,null,["Tier 1 "])),(e()(),r["\u0275eld"](32,0,null,null,5,"input",[["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(e,t,n){var i=!0,l=e.component;return"change"===t&&(i=!1!==r["\u0275nov"](e,33).onChange(n.target.checked)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,33).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(l.gameState.filters.showTier.tier2=n)&&i),"change"===t&&(i=!1!==l.sortCardCollection(l.gameState.selectedArenaNumber)&&i),i},null,null)),r["\u0275did"](33,16384,null,0,Lt,[r.Renderer2,r.ElementRef],null,null),r["\u0275prd"](1024,null,Bt,function(e){return[e]},[Lt]),r["\u0275did"](35,671744,null,0,Ln,[[8,null],[8,null],[8,null],[6,Bt]],{model:[0,"model"]},{update:"ngModelChange"}),r["\u0275prd"](2048,null,$t,null,[Ln]),r["\u0275did"](37,16384,null,0,qt,[[4,$t]],null,null),(e()(),r["\u0275ted"](-1,null,["Tier 2 "])),(e()(),r["\u0275and"](16777216,null,null,1,null,io)),r["\u0275did"](40,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,lo)),r["\u0275did"](42,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,7,0,n.gameState.selectedSortOption),e(t,11,0,n.collectionSortOptions),e(t,16,0,n.cardNameFilter),e(t,28,0,n.gameState.filters.showTier.tier1),e(t,35,0,n.gameState.filters.showTier.tier2),e(t,40,0,3==n.gameState.selectedArenaNumber||4==n.gameState.selectedArenaNumber||5==n.gameState.selectedArenaNumber),e(t,42,0,3==n.gameState.selectedArenaNumber||4==n.gameState.selectedArenaNumber||5==n.gameState.selectedArenaNumber)},function(e,t){e(t,4,0,r["\u0275nov"](t,9).ngClassUntouched,r["\u0275nov"](t,9).ngClassTouched,r["\u0275nov"](t,9).ngClassPristine,r["\u0275nov"](t,9).ngClassDirty,r["\u0275nov"](t,9).ngClassValid,r["\u0275nov"](t,9).ngClassInvalid,r["\u0275nov"](t,9).ngClassPending),e(t,13,0,r["\u0275nov"](t,18).ngClassUntouched,r["\u0275nov"](t,18).ngClassTouched,r["\u0275nov"](t,18).ngClassPristine,r["\u0275nov"](t,18).ngClassDirty,r["\u0275nov"](t,18).ngClassValid,r["\u0275nov"](t,18).ngClassInvalid,r["\u0275nov"](t,18).ngClassPending),e(t,25,0,r["\u0275nov"](t,30).ngClassUntouched,r["\u0275nov"](t,30).ngClassTouched,r["\u0275nov"](t,30).ngClassPristine,r["\u0275nov"](t,30).ngClassDirty,r["\u0275nov"](t,30).ngClassValid,r["\u0275nov"](t,30).ngClassInvalid,r["\u0275nov"](t,30).ngClassPending),e(t,32,0,r["\u0275nov"](t,37).ngClassUntouched,r["\u0275nov"](t,37).ngClassTouched,r["\u0275nov"](t,37).ngClassPristine,r["\u0275nov"](t,37).ngClassDirty,r["\u0275nov"](t,37).ngClassValid,r["\u0275nov"](t,37).ngClassInvalid,r["\u0275nov"](t,37).ngClassPending)})}function oo(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,0,"div",[["class","card-collection-controls"]],null,null,null,null,null))],null,null)}function ao(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"ascend-tab",[],null,null,null,vi,Br)),r["\u0275did"](1,114688,null,0,jr,[kt],{arenaNumber:[0,"arenaNumber"]},null)],function(e,t){e(t,1,0,t.component.gameState.selectedArenaNumber)},null)}function uo(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"shop-arena1",[],null,null,null,Ri,Ti)),r["\u0275did"](1,49152,null,0,Ei,[],null,null)],null,null)}function co(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"shop-arena2",[],null,null,null,Fi,Oi)),r["\u0275did"](1,49152,null,0,Pi,[],null,null)],null,null)}function ho(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"shop-arena3",[],null,null,null,Li,ji)),r["\u0275did"](1,49152,null,0,Vi,[],null,null)],null,null)}function fo(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"shop-arena4",[],null,null,null,Gi,Ui)),r["\u0275did"](1,49152,null,0,Hi,[],null,null)],null,null)}function po(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"other-tab",[],null,null,null,al,Yi)),r["\u0275did"](1,114688,null,0,Ki,[],null,null)],function(e,t){e(t,1,0)},null)}function mo(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"premium-shop",[],null,null,null,fl,cl)),r["\u0275did"](1,49152,null,0,ul,[],null,null)],null,null)}function go(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,18,"div",[],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.debugCommand("forward1minute")&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["FF 1 minute"])),(e()(),r["\u0275eld"](3,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.debugCommand("forward2minutes")&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["FF 2 minute"])),(e()(),r["\u0275eld"](5,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.debugCommand("forward5minutes")&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["FF 5 minutes"])),(e()(),r["\u0275eld"](7,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.debugCommand("forward10minutes")&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["FF 10 minutes"])),(e()(),r["\u0275eld"](9,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.debugCommand("forward30minutes")&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["FF 30 minutes"])),(e()(),r["\u0275eld"](11,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.debugCommand("forward60minutes")&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["FF 60 minutes"])),(e()(),r["\u0275eld"](13,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.debugCommand("forward5days")&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["FF 5 days (hacky, not 100% accurate)"])),(e()(),r["\u0275eld"](15,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.debugCommand("unlocknextrealm")&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Unlock next realm"])),(e()(),r["\u0275eld"](17,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.debugCommand("resetgame")&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Reset game"]))],null,null)}function yo(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"offline-processing",[],null,null,null,gl,ml)),r["\u0275did"](1,49152,null,0,pl,[],{secondsProcessed:[0,"secondsProcessed"],totalSecondsToProcess:[1,"totalSecondsToProcess"],hitMaximumOfflineTime:[2,"hitMaximumOfflineTime"]},null)],function(e,t){var n=t.component;e(t,1,0,n.offlineProgressSecondsTotal-n.offlineProgressSecondsLeftToProcess,n.offlineProgressSecondsTotal,n.hitMaximumOfflineTime)},null)}function bo(e){return r["\u0275vid"](0,[r["\u0275pid"](0,H,[]),(e()(),r["\u0275eld"](1,0,null,null,91,"div",[["class","app-container"]],[[8,"style",2]],null,null,null,null)),(e()(),r["\u0275eld"](2,0,null,null,27,"div",[["class","header"]],null,null,null,null,null)),(e()(),r["\u0275and"](16777216,null,null,1,null,ss)),r["\u0275did"](4,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,os)),r["\u0275did"](6,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,as)),r["\u0275did"](8,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,us)),r["\u0275did"](10,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,cs)),r["\u0275did"](12,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,ds)),r["\u0275did"](14,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,hs)),r["\u0275did"](16,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,fs)),r["\u0275did"](18,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,ps)),r["\u0275did"](20,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,ms)),r["\u0275did"](22,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,gs)),r["\u0275did"](24,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275eld"](25,0,null,null,2,"div",[["class","header-options"]],null,null,null,null,null)),(e()(),r["\u0275eld"](26,0,null,null,1,"fa",[["name","gear"],["style","color: white; filter: drop-shadow(1px 1px 1px black); width: 16px; height: 16px; margin-right: 5px; cursor: pointer"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.showOptionsPanel()&&r),r},Cr,wr)),r["\u0275did"](27,114688,null,0,Xn,[],{name:[0,"name"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,bs)),r["\u0275did"](29,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275eld"](30,0,null,null,39,"div",[["class","main-container"]],null,null,null,null,null)),(e()(),r["\u0275eld"](31,0,null,null,14,"div",[["class","tab-bar"]],null,null,null,null,null)),(e()(),r["\u0275eld"](32,0,null,null,1,"div",[["class","tab"]],[[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(i.currentTab="arena",r=!1!==i.closeSaveLayoutDialog()&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Cards"])),(e()(),r["\u0275eld"](34,0,null,null,1,"div",[["class","tab"]],[[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(i.currentTab="shop",r=!1!==i.closeSaveLayoutDialog()&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Shop"])),(e()(),r["\u0275eld"](36,0,null,null,1,"div",[["class","tab"]],[[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(i.currentTab="ascend",r=!1!==i.closeSaveLayoutDialog()&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Ascension"])),(e()(),r["\u0275and"](16777216,null,null,1,null,vs)),r["\u0275did"](39,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275eld"](40,0,null,null,1,"div",[["class","tab"]],[[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(i.currentTab="other",r=!1!==i.closeSaveLayoutDialog()&&r),r},null,null)),(e()(),r["\u0275ted"](-1,null,["Other"])),(e()(),r["\u0275and"](16777216,null,null,1,null,ws)),r["\u0275did"](43,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Cs)),r["\u0275did"](45,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Ys)),r["\u0275did"](47,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,no)),r["\u0275did"](49,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,so)),r["\u0275did"](51,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,oo)),r["\u0275did"](53,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,ao)),r["\u0275did"](55,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,uo)),r["\u0275did"](57,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,co)),r["\u0275did"](59,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,ho)),r["\u0275did"](61,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,fo)),r["\u0275did"](63,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,po)),r["\u0275did"](65,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,mo)),r["\u0275did"](67,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,go)),r["\u0275did"](69,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275eld"](70,0,null,null,2,"div",[["class","tooltip-container"]],null,null,null,null,null)),(e()(),r["\u0275eld"](71,0,null,null,1,"tooltip",[],null,null,null,bl,yl)),r["\u0275did"](72,49152,null,0,j,[kt],null,null),(e()(),r["\u0275eld"](73,0,null,null,1,"kongregate",[],null,null,null,wl,vl)),r["\u0275did"](74,114688,null,0,c,[],null,null),(e()(),r["\u0275eld"](75,0,null,null,1,"steam",[],null,null,null,_l,Cl)),r["\u0275did"](76,114688,null,0,q,[],null,null),(e()(),r["\u0275eld"](77,0,null,null,1,"offline-progress",[],null,null,null,Ol,Sl)),r["\u0275did"](78,49152,null,0,B,[],null,null),(e()(),r["\u0275and"](16777216,null,null,1,null,yo)),r["\u0275did"](80,16384,null,0,ve,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275eld"](81,0,null,null,1,"save-layout-dialog",[],null,null,null,Bl,Nl)),r["\u0275did"](82,49152,null,0,L,[],null,null),(e()(),r["\u0275eld"](83,0,null,null,1,"error-message",[],null,null,null,Ul,Ll)),r["\u0275did"](84,49152,null,0,a,[kt],null,null),(e()(),r["\u0275eld"](85,0,null,null,1,"options-panel",[],null,null,null,Kl,zl)),r["\u0275did"](86,49152,null,0,J,[],null,null),(e()(),r["\u0275eld"](87,0,null,null,1,"upgrade-window",[],null,null,null,Jl,Yl)),r["\u0275did"](88,114688,null,0,u,[],null,null),(e()(),r["\u0275eld"](89,0,null,null,1,"achievement-shower",[],null,null,null,ns,es)),r["\u0275did"](90,114688,null,0,W,[kt],null,null),(e()(),r["\u0275eld"](91,0,null,null,1,"sound-effect-manager",[],null,null,null,is,rs)),r["\u0275did"](92,114688,null,0,G,[],null,null)],function(e,t){var n=t.component;e(t,4,0,1==n.gameState.selectedArenaNumber),e(t,6,0,1==n.gameState.selectedArenaNumber),e(t,8,0,2==n.gameState.selectedArenaNumber),e(t,10,0,2==n.gameState.selectedArenaNumber),e(t,12,0,3==n.gameState.selectedArenaNumber),e(t,14,0,3==n.gameState.selectedArenaNumber),e(t,16,0,3==n.gameState.selectedArenaNumber),e(t,18,0,4==n.gameState.selectedArenaNumber),e(t,20,0,4==n.gameState.selectedArenaNumber),e(t,22,0,5==n.gameState.selectedArenaNumber),e(t,24,0,5==n.gameState.selectedArenaNumber),e(t,27,0,"gear"),e(t,29,0,n.gameState.highestUnlockedArena>1),e(t,39,0,n.showPremiumShop),e(t,43,0,n.showDebugTools),e(t,45,0,n.shouldShowCardCollectionControls()),e(t,47,0,"arena"==n.currentTab),e(t,49,0,"arena"==n.currentTab),e(t,51,0,"arena"==n.currentTab),e(t,53,0,!1),e(t,55,0,"ascend"==n.currentTab),e(t,57,0,"shop"==n.currentTab&&1==n.gameState.selectedArenaNumber),e(t,59,0,"shop"==n.currentTab&&2==n.gameState.selectedArenaNumber),e(t,61,0,"shop"==n.currentTab&&3==n.gameState.selectedArenaNumber),e(t,63,0,"shop"==n.currentTab&&4==n.gameState.selectedArenaNumber),e(t,65,0,"other"==n.currentTab),e(t,67,0,"premium"==n.currentTab),e(t,69,0,"debug"==n.currentTab),e(t,74,0),e(t,76,0),e(t,80,0,n.isProcessingOfflineProgress),e(t,88,0),e(t,90,0),e(t,92,0)},function(e,t){var n=t.component;e(t,1,0,n.getAppContainerCssStyle()),e(t,32,0,"arena"==n.currentTab),e(t,34,0,"shop"==n.currentTab),e(t,36,0,"ascend"==n.currentTab),e(t,40,0,"other"==n.currentTab)})}function vo(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"app-root",[],null,null,null,bo,ls)),r["\u0275did"](1,114688,null,0,re,[kt,H],null,null)],function(e,t){e(t,1,0)},null)}var wo=r["\u0275ccf"]("app-root",re,vo,{},{},[]),Co=n("xHUD"),_o=r["\u0275cmf"](l,[re],function(e){return r["\u0275mod"]([r["\u0275mpd"](512,r.ComponentFactoryResolver,r["\u0275CodegenComponentFactoryResolver"],[[8,[wo]],[3,r.ComponentFactoryResolver],r.NgModuleRef]),r["\u0275mpd"](5120,r.LOCALE_ID,r["\u0275angular_packages_core_core_q"],[[3,r.LOCALE_ID]]),r["\u0275mpd"](4608,ce,de,[r.LOCALE_ID,[2,ue]]),r["\u0275mpd"](5120,r["\u0275angular_packages_core_core_bb"],r["\u0275angular_packages_core_core_s"],[r.NgZone]),r["\u0275mpd"](4608,r.Compiler,r.Compiler,[]),r["\u0275mpd"](5120,r.APP_ID,r["\u0275angular_packages_core_core_f"],[]),r["\u0275mpd"](5120,r.IterableDiffers,r["\u0275angular_packages_core_core_o"],[]),r["\u0275mpd"](5120,r.KeyValueDiffers,r["\u0275angular_packages_core_core_p"],[]),r["\u0275mpd"](4608,kt,xt,[Se]),r["\u0275mpd"](6144,r.Sanitizer,null,[kt]),r["\u0275mpd"](4608,yt,vt,[]),r["\u0275mpd"](5120,Ge,function(e,t,n,r,i,l,s,o){return[new mt(e,t,n),new St(r),new wt(i,l,s,o)]},[Se,r.NgZone,r.PLATFORM_ID,Se,Se,yt,r["\u0275Console"],[2,bt]]),r["\u0275mpd"](4608,We,We,[Ge,r.NgZone]),r["\u0275mpd"](135680,Ke,Ke,[Se]),r["\u0275mpd"](4608,tt,tt,[We,Ke,r.APP_ID]),r["\u0275mpd"](6144,r.RendererFactory2,null,[tt]),r["\u0275mpd"](6144,qe,null,[Ke]),r["\u0275mpd"](4608,r.Testability,r.Testability,[r.NgZone]),r["\u0275mpd"](4608,Jn,Jn,[]),r["\u0275mpd"](4608,ln,ln,[]),r["\u0275mpd"](4608,Wn.NgDragDropService,Wn.NgDragDropService,[]),r["\u0275mpd"](4608,H,H,[]),r["\u0275mpd"](1073742336,_e,_e,[]),r["\u0275mpd"](1024,r.ErrorHandler,Nt,[]),r["\u0275mpd"](1024,r.APP_INITIALIZER,function(e){return[(t=e,He("probe",ze),He("coreTokens",Object.assign({},Ue,(t||[]).reduce((e,t)=>(e[t.name]=t.token,e),{}))),()=>ze)];var t},[[2,r.NgProbeToken]]),r["\u0275mpd"](512,r.ApplicationInitStatus,r.ApplicationInitStatus,[[2,r.APP_INITIALIZER]]),r["\u0275mpd"](131584,r.ApplicationRef,r.ApplicationRef,[r.NgZone,r["\u0275Console"],r.Injector,r.ErrorHandler,r.ComponentFactoryResolver,r.ApplicationInitStatus]),r["\u0275mpd"](1073742336,r.ApplicationModule,r.ApplicationModule,[r.ApplicationRef]),r["\u0275mpd"](1073742336,Dt,Dt,[[3,Dt]]),r["\u0275mpd"](1073742336,vr,vr,[]),r["\u0275mpd"](1073742336,Un,Un,[]),r["\u0275mpd"](1073742336,zn,zn,[]),r["\u0275mpd"](1073742336,Co.NgDragDropModule,Co.NgDragDropModule,[]),r["\u0275mpd"](1073742336,l,l,[]),r["\u0275mpd"](256,r["\u0275APP_ROOT"],!0,[])])});i.production&&Object(r.enableProdMode)(),Ot().bootstrapModuleFactory(_o).catch(e=>console.error(e))},zn8P:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,0]]]);

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/idlegame-creature-card-idle.git
git@api.gitlife.ru:oschina-mirror/idlegame-creature-card-idle.git
oschina-mirror
idlegame-creature-card-idle
idlegame-creature-card-idle
master