@motopays/pay-form 2.5.0-rc.1 → 2.5.1-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +330 -330
- package/README.md +652 -652
- package/index.js +1 -1
- package/package.json +27 -24
package/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
(()=>{"use strict";var e,v={},p={};function n(e){var a=p[e];if(void 0!==a)return a.exports;var r=p[e]={exports:{}};return v[e].call(r.exports,r,r.exports,n),r.exports}n.m=v,e=[],n.O=(a,r,l,o)=>{if(!r){var u=1/0;for(f=0;f<e.length;f++){for(var[r,l,o]=e[f],_=!0,t=0;t<r.length;t++)(!1&o||u>=o)&&Object.keys(n.O).every(h=>n.O[h](r[t]))?r.splice(t--,1):(_=!1,o<u&&(u=o));if(_){e.splice(f--,1);var s=l();void 0!==s&&(a=s)}}return a}o=o||0;for(var f=e.length;f>0&&e[f-1][2]>o;f--)e[f]=e[f-1];e[f]=[r,l,o]},n.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return n.d(a,{a}),a},n.d=(e,a)=>{for(var r in a)n.o(a,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:a[r]})},n.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),(()=>{var e={121:0};n.O.j=l=>0===e[l];var a=(l,o)=>{var t,s,[f,u,_]=o,c=0;if(f.some(d=>0!==e[d])){for(t in u)n.o(u,t)&&(n.m[t]=u[t]);if(_)var b=_(n)}for(l&&l(o);c<f.length;c++)n.o(e,s=f[c])&&e[s]&&e[s][0](),e[s]=0;return n.O(b)},r=self.webpackChunk_motopays_pay_form=self.webpackChunk_motopays_pay_form||[];r.forEach(a.bind(null,0)),r.push=a.bind(null,r.push.bind(r))})()})();
|
|
2
2
|
"use strict";(self.webpackChunk_motopays_pay_form=self.webpackChunk_motopays_pay_form||[]).push([[461],{935:()=>{const te=globalThis;function ee(e){return(te.__Zone_symbol_prefix||"__zone_symbol__")+e}const ke=Object.getOwnPropertyDescriptor,Ne=Object.defineProperty,Le=Object.getPrototypeOf,_t=Object.create,Et=Array.prototype.slice,Ie="addEventListener",Me="removeEventListener",Ze=ee(Ie),Ae=ee(Me),ae="true",le="false",ve=ee("");function je(e,r){return Zone.current.wrap(e,r)}function He(e,r,c,t,i){return Zone.current.scheduleMacroTask(e,r,c,t,i)}const j=ee,we=typeof window<"u",Te=we?window:void 0,$=we&&Te||globalThis,Tt="removeAttribute";function xe(e,r){for(let c=e.length-1;c>=0;c--)"function"==typeof e[c]&&(e[c]=je(e[c],r+"_"+c));return e}function We(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&typeof e.set>"u")}const qe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Re=!("nw"in $)&&typeof $.process<"u"&&"[object process]"===$.process.toString(),Ve=!Re&&!qe&&!(!we||!Te.HTMLElement),Xe=typeof $.process<"u"&&"[object process]"===$.process.toString()&&!qe&&!(!we||!Te.HTMLElement),Ce={},yt=j("enable_beforeunload"),Ye=function(e){if(!(e=e||$.event))return;let r=Ce[e.type];r||(r=Ce[e.type]=j("ON_PROPERTY"+e.type));const c=this||e.target||$,t=c[r];let i;return Ve&&c===Te&&"error"===e.type?(i=t&&t.call(this,e.message,e.filename,e.lineno,e.colno,e.error),!0===i&&e.preventDefault()):(i=t&&t.apply(this,arguments),"beforeunload"===e.type&&$[yt]&&"string"==typeof i?e.returnValue=i:null!=i&&!i&&e.preventDefault()),i};function $e(e,r,c){let t=ke(e,r);if(!t&&c&&ke(c,r)&&(t={enumerable:!0,configurable:!0}),!t||!t.configurable)return;const i=j("on"+r+"patched");if(e.hasOwnProperty(i)&&e[i])return;delete t.writable,delete t.value;const u=t.get,E=t.set,T=r.slice(2);let m=Ce[T];m||(m=Ce[T]=j("ON_PROPERTY"+T)),t.set=function(D){let d=this;!d&&e===$&&(d=$),d&&("function"==typeof d[m]&&d.removeEventListener(T,Ye),E&&E.call(d,null),d[m]=D,"function"==typeof D&&d.addEventListener(T,Ye,!1))},t.get=function(){let D=this;if(!D&&e===$&&(D=$),!D)return null;const d=D[m];if(d)return d;if(u){let w=u.call(this);if(w)return t.set.call(this,w),"function"==typeof D[Tt]&&D.removeAttribute(r),w}return null},Ne(e,r,t),e[i]=!0}function Je(e,r,c){if(r)for(let t=0;t<r.length;t++)$e(e,"on"+r[t],c);else{const t=[];for(const i in e)"on"==i.slice(0,2)&&t.push(i);for(let i=0;i<t.length;i++)$e(e,t[i],c)}}const re=j("originalInstance");function be(e){const r=$[e];if(!r)return;$[j(e)]=r,$[e]=function(){const i=xe(arguments,e);switch(i.length){case 0:this[re]=new r;break;case 1:this[re]=new r(i[0]);break;case 2:this[re]=new r(i[0],i[1]);break;case 3:this[re]=new r(i[0],i[1],i[2]);break;case 4:this[re]=new r(i[0],i[1],i[2],i[3]);break;default:throw new Error("Arg list too long.")}},fe($[e],r);const c=new r(function(){});let t;for(t in c)"XMLHttpRequest"===e&&"responseBlob"===t||function(i){"function"==typeof c[i]?$[e].prototype[i]=function(){return this[re][i].apply(this[re],arguments)}:Ne($[e].prototype,i,{set:function(u){"function"==typeof u?(this[re][i]=je(u,e+"."+i),fe(this[re][i],u)):this[re][i]=u},get:function(){return this[re][i]}})}(t);for(t in r)"prototype"!==t&&r.hasOwnProperty(t)&&($[e][t]=r[t])}function ue(e,r,c){let t=e;for(;t&&!t.hasOwnProperty(r);)t=Le(t);!t&&e[r]&&(t=e);const i=j(r);let u=null;if(t&&(!(u=t[i])||!t.hasOwnProperty(i))&&(u=t[i]=t[r],We(t&&ke(t,r)))){const T=c(u,i,r);t[r]=function(){return T(this,arguments)},fe(t[r],u)}return u}function mt(e,r,c){let t=null;function i(u){const E=u.data;return E.args[E.cbIdx]=function(){u.invoke.apply(this,arguments)},t.apply(E.target,E.args),u}t=ue(e,r,u=>function(E,T){const m=c(E,T);return m.cbIdx>=0&&"function"==typeof T[m.cbIdx]?He(m.name,T[m.cbIdx],m,i):u.apply(E,T)})}function fe(e,r){e[j("OriginalDelegate")]=r}let Ke=!1,Ge=!1;function kt(){if(Ke)return Ge;Ke=!0;try{const e=Te.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Ge=!0)}catch{}return Ge}function Qe(e){return"function"==typeof e}function et(e){return"number"==typeof e}let ge=!1;if(typeof window<"u")try{const e=Object.defineProperty({},"passive",{get:function(){ge=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{ge=!1}const vt={useG:!0},ne={},tt={},nt=new RegExp("^"+ve+"(\\w+)(true|false)$"),rt=j("propagationStopped");function ot(e,r){const c=(r?r(e):e)+le,t=(r?r(e):e)+ae,i=ve+c,u=ve+t;ne[e]={},ne[e][le]=i,ne[e][ae]=u}function bt(e,r,c,t){const i=t&&t.add||Ie,u=t&&t.rm||Me,E=t&&t.listeners||"eventListeners",T=t&&t.rmAll||"removeAllListeners",m=j(i),D="."+i+":",d="prependListener",w="."+d+":",Z=function(k,h,H){if(k.isRemoved)return;const V=k.callback;let Y;"object"==typeof V&&V.handleEvent&&(k.callback=g=>V.handleEvent(g),k.originalDelegate=V);try{k.invoke(k,h,[H])}catch(g){Y=g}const G=k.options;return G&&"object"==typeof G&&G.once&&h[u].call(h,H.type,k.originalDelegate?k.originalDelegate:k.callback,G),Y};function x(k,h,H){if(!(h=h||e.event))return;const V=k||h.target||e,Y=V[ne[h.type][H?ae:le]];if(Y){const G=[];if(1===Y.length){const g=Z(Y[0],V,h);g&&G.push(g)}else{const g=Y.slice();for(let z=0;z<g.length&&(!h||!0!==h[rt]);z++){const O=Z(g[z],V,h);O&&G.push(O)}}if(1===G.length)throw G[0];for(let g=0;g<G.length;g++){const z=G[g];r.nativeScheduleMicroTask(()=>{throw z})}}}const U=function(k){return x(this,k,!1)},J=function(k){return x(this,k,!0)};function K(k,h){if(!k)return!1;let H=!0;h&&void 0!==h.useG&&(H=h.useG);const V=h&&h.vh;let Y=!0;h&&void 0!==h.chkDup&&(Y=h.chkDup);let G=!1;h&&void 0!==h.rt&&(G=h.rt);let g=k;for(;g&&!g.hasOwnProperty(i);)g=Le(g);if(!g&&k[i]&&(g=k),!g||g[m])return!1;const z=h&&h.eventNameToString,O={},R=g[m]=g[i],b=g[j(u)]=g[u],S=g[j(E)]=g[E],Q=g[j(T)]=g[T];let W;h&&h.prepend&&(W=g[j(h.prepend)]=g[h.prepend]);const q=H?function(s){if(!O.isExisting)return R.call(O.target,O.eventName,O.capture?J:U,O.options)}:function(s){return R.call(O.target,O.eventName,s.invoke,O.options)},A=H?function(s){if(!s.isRemoved){const l=ne[s.eventName];let v;l&&(v=l[s.capture?ae:le]);const C=v&&s.target[v];if(C)for(let y=0;y<C.length;y++)if(C[y]===s){C.splice(y,1),s.isRemoved=!0,s.removeAbortListener&&(s.removeAbortListener(),s.removeAbortListener=null),0===C.length&&(s.allRemoved=!0,s.target[v]=null);break}}if(s.allRemoved)return b.call(s.target,s.eventName,s.capture?J:U,s.options)}:function(s){return b.call(s.target,s.eventName,s.invoke,s.options)},he=h&&h.diff?h.diff:function(s,l){const v=typeof l;return"function"===v&&s.callback===l||"object"===v&&s.originalDelegate===l},de=Zone[j("UNPATCHED_EVENTS")],oe=e[j("PASSIVE_EVENTS")],a=function(s,l,v,C,y=!1,L=!1){return function(){const I=this||e;let M=arguments[0];h&&h.transferEventName&&(M=h.transferEventName(M));let F=arguments[1];if(!F)return s.apply(this,arguments);if(Re&&"uncaughtException"===M)return s.apply(this,arguments);let B=!1;if("function"!=typeof F){if(!F.handleEvent)return s.apply(this,arguments);B=!0}if(V&&!V(s,F,I,arguments))return;const Ee=ge&&!!oe&&-1!==oe.indexOf(M),ie=function f(s){if("object"==typeof s&&null!==s){const l={...s};return s.signal&&(l.signal=s.signal),l}return s}(function N(s,l){return!ge&&"object"==typeof s&&s?!!s.capture:ge&&l?"boolean"==typeof s?{capture:s,passive:!0}:s?"object"==typeof s&&!1!==s.passive?{...s,passive:!0}:s:{passive:!0}:s}(arguments[2],Ee)),me=ie?.signal;if(me?.aborted)return;if(de)for(let ce=0;ce<de.length;ce++)if(M===de[ce])return Ee?s.call(I,M,F,ie):s.apply(this,arguments);const Be=!!ie&&("boolean"==typeof ie||ie.capture),lt=!(!ie||"object"!=typeof ie)&&ie.once,At=Zone.current;let Ue=ne[M];Ue||(ot(M,z),Ue=ne[M]);const ut=Ue[Be?ae:le];let Se,pe=I[ut],ft=!1;if(pe){if(ft=!0,Y)for(let ce=0;ce<pe.length;ce++)if(he(pe[ce],F))return}else pe=I[ut]=[];const ht=I.constructor.name,dt=tt[ht];dt&&(Se=dt[M]),Se||(Se=ht+l+(z?z(M):M)),O.options=ie,lt&&(O.options.once=!1),O.target=I,O.capture=Be,O.eventName=M,O.isExisting=ft;const Pe=H?vt:void 0;Pe&&(Pe.taskData=O),me&&(O.options.signal=void 0);const se=At.scheduleEventTask(Se,F,Pe,v,C);if(me){O.options.signal=me;const ce=()=>se.zone.cancelTask(se);s.call(me,"abort",ce,{once:!0}),se.removeAbortListener=()=>me.removeEventListener("abort",ce)}return O.target=null,Pe&&(Pe.taskData=null),lt&&(O.options.once=!0),!ge&&"boolean"==typeof se.options||(se.options=ie),se.target=I,se.capture=Be,se.eventName=M,B&&(se.originalDelegate=F),L?pe.unshift(se):pe.push(se),y?I:void 0}};return g[i]=a(R,D,q,A,G),W&&(g[d]=a(W,w,function(s){return W.call(O.target,O.eventName,s.invoke,O.options)},A,G,!0)),g[u]=function(){const s=this||e;let l=arguments[0];h&&h.transferEventName&&(l=h.transferEventName(l));const v=arguments[2],C=!!v&&("boolean"==typeof v||v.capture),y=arguments[1];if(!y)return b.apply(this,arguments);if(V&&!V(b,y,s,arguments))return;const L=ne[l];let I;L&&(I=L[C?ae:le]);const M=I&&s[I];if(M)for(let F=0;F<M.length;F++){const B=M[F];if(he(B,y))return M.splice(F,1),B.isRemoved=!0,0!==M.length||(B.allRemoved=!0,s[I]=null,C||"string"!=typeof l)||(s[ve+"ON_PROPERTY"+l]=null),B.zone.cancelTask(B),G?s:void 0}return b.apply(this,arguments)},g[E]=function(){const s=this||e;let l=arguments[0];h&&h.transferEventName&&(l=h.transferEventName(l));const v=[],C=st(s,z?z(l):l);for(let y=0;y<C.length;y++){const L=C[y];v.push(L.originalDelegate?L.originalDelegate:L.callback)}return v},g[T]=function(){const s=this||e;let l=arguments[0];if(l){h&&h.transferEventName&&(l=h.transferEventName(l));const v=ne[l];if(v){const L=s[v[le]],I=s[v[ae]];if(L){const M=L.slice();for(let F=0;F<M.length;F++){const B=M[F];this[u].call(this,l,B.originalDelegate?B.originalDelegate:B.callback,B.options)}}if(I){const M=I.slice();for(let F=0;F<M.length;F++){const B=M[F];this[u].call(this,l,B.originalDelegate?B.originalDelegate:B.callback,B.options)}}}}else{const v=Object.keys(s);for(let C=0;C<v.length;C++){const L=nt.exec(v[C]);let I=L&&L[1];I&&"removeListener"!==I&&this[T].call(this,I)}this[T].call(this,"removeListener")}if(G)return this},fe(g[i],R),fe(g[u],b),Q&&fe(g[T],Q),S&&fe(g[E],S),!0}let X=[];for(let k=0;k<c.length;k++)X[k]=K(c[k],t);return X}function st(e,r){if(!r){const u=[];for(let E in e){const T=nt.exec(E);let m=T&&T[1];if(m&&(!r||m===r)){const D=e[E];if(D)for(let d=0;d<D.length;d++)u.push(D[d])}}return u}let c=ne[r];c||(ot(r),c=ne[r]);const t=e[c[le]],i=e[c[ae]];return t?i?t.concat(i):t.slice():i?i.slice():[]}function Pt(e,r){const c=e.Event;c&&c.prototype&&r.patchMethod(c.prototype,"stopImmediatePropagation",t=>function(i,u){i[rt]=!0,t&&t.apply(i,u)})}const De=j("zoneTask");function ye(e,r,c,t){let i=null,u=null;c+=t;const E={};function T(D){const d=D.data;d.args[0]=function(){return D.invoke.apply(this,arguments)};const w=i.apply(e,d.args);return et(w)?d.handleId=w:(d.handle=w,d.isRefreshable=Qe(w.refresh)),D}function m(D){const{handle:d,handleId:w}=D.data;return u.call(e,d??w)}i=ue(e,r+=t,D=>function(d,w){if(Qe(w[0])){const Z={isRefreshable:!1,isPeriodic:"Interval"===t,delay:"Timeout"===t||"Interval"===t?w[1]||0:void 0,args:w},x=w[0];w[0]=function(){try{return x.apply(this,arguments)}finally{const{handle:H,handleId:V,isPeriodic:Y,isRefreshable:G}=Z;!Y&&!G&&(V?delete E[V]:H&&(H[De]=null))}};const U=He(r,w[0],Z,T,m);if(!U)return U;const{handleId:J,handle:K,isRefreshable:X,isPeriodic:k}=U.data;if(J)E[J]=U;else if(K&&(K[De]=U,X&&!k)){const h=K.refresh;K.refresh=function(){const{zone:H,state:V}=U;return"notScheduled"===V?(U._state="scheduled",H._updateTaskCount(U,1)):"running"===V&&(U._state="scheduling"),h.call(this)}}return K??J??U}return D.apply(e,w)}),u=ue(e,c,D=>function(d,w){const Z=w[0];let x;et(Z)?(x=E[Z],delete E[Z]):(x=Z?.[De],x?Z[De]=null:x=Z),x?.type?x.cancelFn&&x.zone.cancelTask(x):D.apply(e,w)})}function it(e,r,c){if(!c||0===c.length)return r;const t=c.filter(u=>u.target===e);if(!t||0===t.length)return r;const i=t[0].ignoreProperties;return r.filter(u=>-1===i.indexOf(u))}function ct(e,r,c,t){e&&Je(e,it(e,r,c),t)}function Fe(e){return Object.getOwnPropertyNames(e).filter(r=>r.startsWith("on")&&r.length>2).map(r=>r.substring(2))}function It(e,r,c,t,i){const u=Zone.__symbol__(t);if(r[u])return;const E=r[u]=r[t];r[t]=function(T,m,D){return m&&m.prototype&&i.forEach(function(d){const w=`${c}.${t}::`+d,Z=m.prototype;try{if(Z.hasOwnProperty(d)){const x=e.ObjectGetOwnPropertyDescriptor(Z,d);x&&x.value?(x.value=e.wrapWithCurrentZone(x.value,w),e._redefineProperty(m.prototype,d,x)):Z[d]&&(Z[d]=e.wrapWithCurrentZone(Z[d],w))}else Z[d]&&(Z[d]=e.wrapWithCurrentZone(Z[d],w))}catch{}}),E.call(r,T,m,D)},e.attachOriginToPatched(r[t],E)}const at=function Oe(){const e=globalThis,r=!0===e[ee("forceDuplicateZoneCheck")];if(e.Zone&&(r||"function"!=typeof e.Zone.__symbol__))throw new Error("Zone already loaded.");return e.Zone??=function ze(){const e=te.performance;function r(N){e&&e.mark&&e.mark(N)}function c(N,_){e&&e.measure&&e.measure(N,_)}r("Zone");let t=(()=>{class N{static#e=this.__symbol__=ee;static assertZonePatched(){if(te.Promise!==O.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let n=N.current;for(;n.parent;)n=n.parent;return n}static get current(){return b.zone}static get currentTask(){return S}static __load_patch(n,o,p=!1){if(O.hasOwnProperty(n)){const P=!0===te[ee("forceDuplicateZoneCheck")];if(!p&&P)throw Error("Already loaded patch: "+n)}else if(!te["__Zone_disable_"+n]){const P="Zone:"+n;r(P),O[n]=o(te,N,R),c(P,P)}}get parent(){return this._parent}get name(){return this._name}constructor(n,o){this._parent=n,this._name=o?o.name||"unnamed":"<root>",this._properties=o&&o.properties||{},this._zoneDelegate=new u(this,this._parent&&this._parent._zoneDelegate,o)}get(n){const o=this.getZoneWith(n);if(o)return o._properties[n]}getZoneWith(n){let o=this;for(;o;){if(o._properties.hasOwnProperty(n))return o;o=o._parent}return null}fork(n){if(!n)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,n)}wrap(n,o){if("function"!=typeof n)throw new Error("Expecting function got: "+n);const p=this._zoneDelegate.intercept(this,n,o),P=this;return function(){return P.runGuarded(p,this,arguments,o)}}run(n,o,p,P){b={parent:b,zone:this};try{return this._zoneDelegate.invoke(this,n,o,p,P)}finally{b=b.parent}}runGuarded(n,o=null,p,P){b={parent:b,zone:this};try{try{return this._zoneDelegate.invoke(this,n,o,p,P)}catch(q){if(this._zoneDelegate.handleError(this,q))throw q}}finally{b=b.parent}}runTask(n,o,p){if(n.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(n.zone||K).name+"; Execution: "+this.name+")");const P=n,{type:q,data:{isPeriodic:A=!1,isRefreshable:_e=!1}={}}=n;if(n.state===X&&(q===z||q===g))return;const he=n.state!=H;he&&P._transitionTo(H,h);const de=S;S=P,b={parent:b,zone:this};try{q==g&&n.data&&!A&&!_e&&(n.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,P,o,p)}catch(oe){if(this._zoneDelegate.handleError(this,oe))throw oe}}finally{const oe=n.state;if(oe!==X&&oe!==Y)if(q==z||A||_e&&oe===k)he&&P._transitionTo(h,H,k);else{const f=P._zoneDelegates;this._updateTaskCount(P,-1),he&&P._transitionTo(X,H,X),_e&&(P._zoneDelegates=f)}b=b.parent,S=de}}scheduleTask(n){if(n.zone&&n.zone!==this){let p=this;for(;p;){if(p===n.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${n.zone.name}`);p=p.parent}}n._transitionTo(k,X);const o=[];n._zoneDelegates=o,n._zone=this;try{n=this._zoneDelegate.scheduleTask(this,n)}catch(p){throw n._transitionTo(Y,k,X),this._zoneDelegate.handleError(this,p),p}return n._zoneDelegates===o&&this._updateTaskCount(n,1),n.state==k&&n._transitionTo(h,k),n}scheduleMicroTask(n,o,p,P){return this.scheduleTask(new E(G,n,o,p,P,void 0))}scheduleMacroTask(n,o,p,P,q){return this.scheduleTask(new E(g,n,o,p,P,q))}scheduleEventTask(n,o,p,P,q){return this.scheduleTask(new E(z,n,o,p,P,q))}cancelTask(n){if(n.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(n.zone||K).name+"; Execution: "+this.name+")");if(n.state===h||n.state===H){n._transitionTo(V,h,H);try{this._zoneDelegate.cancelTask(this,n)}catch(o){throw n._transitionTo(Y,V),this._zoneDelegate.handleError(this,o),o}return this._updateTaskCount(n,-1),n._transitionTo(X,V),n.runCount=-1,n}}_updateTaskCount(n,o){const p=n._zoneDelegates;-1==o&&(n._zoneDelegates=null);for(let P=0;P<p.length;P++)p[P]._updateTaskCount(n.type,o)}}return N})();const i={name:"",onHasTask:(N,_,n,o)=>N.hasTask(n,o),onScheduleTask:(N,_,n,o)=>N.scheduleTask(n,o),onInvokeTask:(N,_,n,o,p,P)=>N.invokeTask(n,o,p,P),onCancelTask:(N,_,n,o)=>N.cancelTask(n,o)};class u{get zone(){return this._zone}constructor(_,n,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=_,this._parentDelegate=n,this._forkZS=o&&(o&&o.onFork?o:n._forkZS),this._forkDlgt=o&&(o.onFork?n:n._forkDlgt),this._forkCurrZone=o&&(o.onFork?this._zone:n._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:n._interceptZS),this._interceptDlgt=o&&(o.onIntercept?n:n._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this._zone:n._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:n._invokeZS),this._invokeDlgt=o&&(o.onInvoke?n:n._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this._zone:n._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:n._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?n:n._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this._zone:n._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:n._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?n:n._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this._zone:n._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:n._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?n:n._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this._zone:n._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:n._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?n:n._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this._zone:n._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const p=o&&o.onHasTask;(p||n&&n._hasTaskZS)&&(this._hasTaskZS=p?o:i,this._hasTaskDlgt=n,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,o.onScheduleTask||(this._scheduleTaskZS=i,this._scheduleTaskDlgt=n,this._scheduleTaskCurrZone=this._zone),o.onInvokeTask||(this._invokeTaskZS=i,this._invokeTaskDlgt=n,this._invokeTaskCurrZone=this._zone),o.onCancelTask||(this._cancelTaskZS=i,this._cancelTaskDlgt=n,this._cancelTaskCurrZone=this._zone))}fork(_,n){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,_,n):new t(_,n)}intercept(_,n,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,_,n,o):n}invoke(_,n,o,p,P){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,_,n,o,p,P):n.apply(o,p)}handleError(_,n){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,_,n)}scheduleTask(_,n){let o=n;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,_,n),o||(o=n);else if(n.scheduleFn)n.scheduleFn(n);else{if(n.type!=G)throw new Error("Task is missing scheduleFn.");U(n)}return o}invokeTask(_,n,o,p){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,_,n,o,p):n.callback.apply(o,p)}cancelTask(_,n){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,_,n);else{if(!n.cancelFn)throw Error("Task is not cancelable");o=n.cancelFn(n)}return o}hasTask(_,n){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,_,n)}catch(o){this.handleError(_,o)}}_updateTaskCount(_,n){const o=this._taskCounts,p=o[_],P=o[_]=p+n;if(P<0)throw new Error("More tasks executed then were scheduled.");0!=p&&0!=P||this.hasTask(this._zone,{microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:_})}}class E{constructor(_,n,o,p,P,q){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=_,this.source=n,this.data=p,this.scheduleFn=P,this.cancelFn=q,!o)throw new Error("callback is not defined");this.callback=o;const A=this;this.invoke=_===z&&p&&p.useG?E.invokeTask:function(){return E.invokeTask.call(te,A,this,arguments)}}static invokeTask(_,n,o){_||(_=this),Q++;try{return _.runCount++,_.zone.runTask(_,n,o)}finally{1==Q&&J(),Q--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(X,k)}_transitionTo(_,n,o){if(this._state!==n&&this._state!==o)throw new Error(`${this.type} '${this.source}': can not transition to '${_}', expecting state '${n}'${o?" or '"+o+"'":""}, was '${this._state}'.`);this._state=_,_==X&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const T=ee("setTimeout"),m=ee("Promise"),D=ee("then");let Z,d=[],w=!1;function x(N){if(Z||te[m]&&(Z=te[m].resolve(0)),Z){let _=Z[D];_||(_=Z.then),_.call(Z,N)}else te[T](N,0)}function U(N){0===Q&&0===d.length&&x(J),N&&d.push(N)}function J(){if(!w){for(w=!0;d.length;){const N=d;d=[];for(let _=0;_<N.length;_++){const n=N[_];try{n.zone.runTask(n,null,null)}catch(o){R.onUnhandledError(o)}}}R.microtaskDrainDone(),w=!1}}const K={name:"NO ZONE"},X="notScheduled",k="scheduling",h="scheduled",H="running",V="canceling",Y="unknown",G="microTask",g="macroTask",z="eventTask",O={},R={symbol:ee,currentZoneFrame:()=>b,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:U,showUncaughtError:()=>!t[ee("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:x};let b={parent:null,zone:new t(null,null)},S=null,Q=0;function W(){}return c("Zone","Zone"),t}(),e.Zone}();(function Zt(e){(function Nt(e){e.__load_patch("ZoneAwarePromise",(r,c,t)=>{const i=Object.getOwnPropertyDescriptor,u=Object.defineProperty,T=t.symbol,m=[],D=!1!==r[T("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],d=T("Promise"),w=T("then"),Z="__creationTrace__";t.onUnhandledError=f=>{if(t.showUncaughtError()){const a=f&&f.rejection;a?console.error("Unhandled Promise rejection:",a instanceof Error?a.message:a,"; Zone:",f.zone.name,"; Task:",f.task&&f.task.source,"; Value:",a,a instanceof Error?a.stack:void 0):console.error(f)}},t.microtaskDrainDone=()=>{for(;m.length;){const f=m.shift();try{f.zone.runGuarded(()=>{throw f.throwOriginal?f.rejection:f})}catch(a){U(a)}}};const x=T("unhandledPromiseRejectionHandler");function U(f){t.onUnhandledError(f);try{const a=c[x];"function"==typeof a&&a.call(this,f)}catch{}}function J(f){return f&&f.then}function K(f){return f}function X(f){return A.reject(f)}const k=T("state"),h=T("value"),H=T("finally"),V=T("parentPromiseValue"),Y=T("parentPromiseState"),G="Promise.then",g=null,z=!0,O=!1,R=0;function b(f,a){return s=>{try{N(f,a,s)}catch(l){N(f,!1,l)}}}const S=function(){let f=!1;return function(s){return function(){f||(f=!0,s.apply(null,arguments))}}},Q="Promise resolved with itself",W=T("currentTaskTrace");function N(f,a,s){const l=S();if(f===s)throw new TypeError(Q);if(f[k]===g){let v=null;try{("object"==typeof s||"function"==typeof s)&&(v=s&&s.then)}catch(C){return l(()=>{N(f,!1,C)})(),f}if(a!==O&&s instanceof A&&s.hasOwnProperty(k)&&s.hasOwnProperty(h)&&s[k]!==g)n(s),N(f,s[k],s[h]);else if(a!==O&&"function"==typeof v)try{v.call(s,l(b(f,a)),l(b(f,!1)))}catch(C){l(()=>{N(f,!1,C)})()}else{f[k]=a;const C=f[h];if(f[h]=s,f[H]===H&&a===z&&(f[k]=f[Y],f[h]=f[V]),a===O&&s instanceof Error){const y=c.currentTask&&c.currentTask.data&&c.currentTask.data[Z];y&&u(s,W,{configurable:!0,enumerable:!1,writable:!0,value:y})}for(let y=0;y<C.length;)o(f,C[y++],C[y++],C[y++],C[y++]);if(0==C.length&&a==O){f[k]=R;let y=s;try{throw new Error("Uncaught (in promise): "+function E(f){return f&&f.toString===Object.prototype.toString?(f.constructor&&f.constructor.name||"")+": "+JSON.stringify(f):f?f.toString():Object.prototype.toString.call(f)}(s)+(s&&s.stack?"\n"+s.stack:""))}catch(L){y=L}D&&(y.throwOriginal=!0),y.rejection=s,y.promise=f,y.zone=c.current,y.task=c.currentTask,m.push(y),t.scheduleMicroTask()}}}return f}const _=T("rejectionHandledHandler");function n(f){if(f[k]===R){try{const a=c[_];a&&"function"==typeof a&&a.call(this,{rejection:f[h],promise:f})}catch{}f[k]=O;for(let a=0;a<m.length;a++)f===m[a].promise&&m.splice(a,1)}}function o(f,a,s,l,v){n(f);const C=f[k],y=C?"function"==typeof l?l:K:"function"==typeof v?v:X;a.scheduleMicroTask(G,()=>{try{const L=f[h],I=!!s&&H===s[H];I&&(s[V]=L,s[Y]=C);const M=a.run(y,void 0,I&&y!==X&&y!==K?[]:[L]);N(s,!0,M)}catch(L){N(s,!1,L)}},s)}const P=function(){},q=r.AggregateError;class A{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(a){return a instanceof A?a:N(new this(null),z,a)}static reject(a){return N(new this(null),O,a)}static withResolvers(){const a={};return a.promise=new A((s,l)=>{a.resolve=s,a.reject=l}),a}static any(a){if(!a||"function"!=typeof a[Symbol.iterator])return Promise.reject(new q([],"All promises were rejected"));const s=[];let l=0;try{for(let y of a)l++,s.push(A.resolve(y))}catch{return Promise.reject(new q([],"All promises were rejected"))}if(0===l)return Promise.reject(new q([],"All promises were rejected"));let v=!1;const C=[];return new A((y,L)=>{for(let I=0;I<s.length;I++)s[I].then(M=>{v||(v=!0,y(M))},M=>{C.push(M),l--,0===l&&(v=!0,L(new q(C,"All promises were rejected")))})})}static race(a){let s,l,v=new this((L,I)=>{s=L,l=I});function C(L){s(L)}function y(L){l(L)}for(let L of a)J(L)||(L=this.resolve(L)),L.then(C,y);return v}static all(a){return A.allWithCallback(a)}static allSettled(a){return(this&&this.prototype instanceof A?this:A).allWithCallback(a,{thenCallback:l=>({status:"fulfilled",value:l}),errorCallback:l=>({status:"rejected",reason:l})})}static allWithCallback(a,s){let l,v,C=new this((M,F)=>{l=M,v=F}),y=2,L=0;const I=[];for(let M of a){J(M)||(M=this.resolve(M));const F=L;try{M.then(B=>{I[F]=s?s.thenCallback(B):B,y--,0===y&&l(I)},B=>{s?(I[F]=s.errorCallback(B),y--,0===y&&l(I)):v(B)})}catch(B){v(B)}y++,L++}return y-=2,0===y&&l(I),C}constructor(a){const s=this;if(!(s instanceof A))throw new Error("Must be an instanceof Promise.");s[k]=g,s[h]=[];try{const l=S();a&&a(l(b(s,z)),l(b(s,O)))}catch(l){N(s,!1,l)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return A}then(a,s){let l=this.constructor?.[Symbol.species];(!l||"function"!=typeof l)&&(l=this.constructor||A);const v=new l(P),C=c.current;return this[k]==g?this[h].push(C,v,a,s):o(this,C,v,a,s),v}catch(a){return this.then(null,a)}finally(a){let s=this.constructor?.[Symbol.species];(!s||"function"!=typeof s)&&(s=A);const l=new s(P);l[H]=H;const v=c.current;return this[k]==g?this[h].push(v,l,a,a):o(this,v,l,a,a),l}}A.resolve=A.resolve,A.reject=A.reject,A.race=A.race,A.all=A.all;const _e=r[d]=r.Promise;r.Promise=A;const he=T("thenPatched");function de(f){const a=f.prototype,s=i(a,"then");if(s&&(!1===s.writable||!s.configurable))return;const l=a.then;a[w]=l,f.prototype.then=function(v,C){return new A((L,I)=>{l.call(this,L,I)}).then(v,C)},f[he]=!0}return t.patchThen=de,_e&&(de(_e),ue(r,"fetch",f=>function oe(f){return function(a,s){let l=f.apply(a,s);if(l instanceof A)return l;let v=l.constructor;return v[he]||de(v),l}}(f))),Promise[c.__symbol__("uncaughtPromiseErrors")]=m,A})})(e),function Lt(e){e.__load_patch("toString",r=>{const c=Function.prototype.toString,t=j("OriginalDelegate"),i=j("Promise"),u=j("Error"),E=function(){if("function"==typeof this){const d=this[t];if(d)return"function"==typeof d?c.call(d):Object.prototype.toString.call(d);if(this===Promise){const w=r[i];if(w)return c.call(w)}if(this===Error){const w=r[u];if(w)return c.call(w)}}return c.call(this)};E[t]=c,Function.prototype.toString=E;const T=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":T.call(this)}})}(e),function Mt(e){e.__load_patch("util",(r,c,t)=>{const i=Fe(r);t.patchOnProperties=Je,t.patchMethod=ue,t.bindArguments=xe,t.patchMacroTask=mt;const u=c.__symbol__("BLACK_LISTED_EVENTS"),E=c.__symbol__("UNPATCHED_EVENTS");r[E]&&(r[u]=r[E]),r[u]&&(c[u]=c[E]=r[u]),t.patchEventPrototype=Pt,t.patchEventTarget=bt,t.isIEOrEdge=kt,t.ObjectDefineProperty=Ne,t.ObjectGetOwnPropertyDescriptor=ke,t.ObjectCreate=_t,t.ArraySlice=Et,t.patchClass=be,t.wrapWithCurrentZone=je,t.filterProperties=it,t.attachOriginToPatched=fe,t._redefineProperty=Object.defineProperty,t.patchCallbacks=It,t.getGlobalObjects=()=>({globalSources:tt,zoneSymbolEventNames:ne,eventNames:i,isBrowser:Ve,isMix:Xe,isNode:Re,TRUE_STR:ae,FALSE_STR:le,ZONE_SYMBOL_PREFIX:ve,ADD_EVENT_LISTENER_STR:Ie,REMOVE_EVENT_LISTENER_STR:Me})})}(e)})(at),function Ot(e){e.__load_patch("legacy",r=>{const c=r[e.__symbol__("legacyPatch")];c&&c()}),e.__load_patch("timers",r=>{const c="set",t="clear";ye(r,c,t,"Timeout"),ye(r,c,t,"Interval"),ye(r,c,t,"Immediate")}),e.__load_patch("requestAnimationFrame",r=>{ye(r,"request","cancel","AnimationFrame"),ye(r,"mozRequest","mozCancel","AnimationFrame"),ye(r,"webkitRequest","webkitCancel","AnimationFrame")}),e.__load_patch("blocking",(r,c)=>{const t=["alert","prompt","confirm"];for(let i=0;i<t.length;i++)ue(r,t[i],(E,T,m)=>function(D,d){return c.current.run(E,r,d,m)})}),e.__load_patch("EventTarget",(r,c,t)=>{(function Dt(e,r){r.patchEventPrototype(e,r)})(r,t),function Ct(e,r){if(Zone[r.symbol("patchEventTarget")])return;const{eventNames:c,zoneSymbolEventNames:t,TRUE_STR:i,FALSE_STR:u,ZONE_SYMBOL_PREFIX:E}=r.getGlobalObjects();for(let m=0;m<c.length;m++){const D=c[m],Z=E+(D+u),x=E+(D+i);t[D]={},t[D][u]=Z,t[D][i]=x}const T=e.EventTarget;T&&T.prototype&&r.patchEventTarget(e,r,[T&&T.prototype])}(r,t);const i=r.XMLHttpRequestEventTarget;i&&i.prototype&&t.patchEventTarget(r,t,[i.prototype])}),e.__load_patch("MutationObserver",(r,c,t)=>{be("MutationObserver"),be("WebKitMutationObserver")}),e.__load_patch("IntersectionObserver",(r,c,t)=>{be("IntersectionObserver")}),e.__load_patch("FileReader",(r,c,t)=>{be("FileReader")}),e.__load_patch("on_property",(r,c,t)=>{!function St(e,r){if(Re&&!Xe||Zone[e.symbol("patchEvents")])return;const c=r.__Zone_ignore_on_properties;let t=[];if(Ve){const i=window;t=t.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const u=function pt(){try{const e=Te.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:i,ignoreProperties:["error"]}]:[];ct(i,Fe(i),c&&c.concat(u),Le(i))}t=t.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let i=0;i<t.length;i++){const u=r[t[i]];u&&u.prototype&&ct(u.prototype,Fe(u.prototype),c)}}(t,r)}),e.__load_patch("customElements",(r,c,t)=>{!function Rt(e,r){const{isBrowser:c,isMix:t}=r.getGlobalObjects();(c||t)&&e.customElements&&"customElements"in e&&r.patchCallbacks(r,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"])}(r,t)}),e.__load_patch("XHR",(r,c)=>{!function D(d){const w=d.XMLHttpRequest;if(!w)return;const Z=w.prototype;let U=Z[Ze],J=Z[Ae];if(!U){const R=d.XMLHttpRequestEventTarget;if(R){const b=R.prototype;U=b[Ze],J=b[Ae]}}const K="readystatechange",X="scheduled";function k(R){const b=R.data,S=b.target;S[E]=!1,S[m]=!1;const Q=S[u];U||(U=S[Ze],J=S[Ae]),Q&&J.call(S,K,Q);const W=S[u]=()=>{if(S.readyState===S.DONE)if(!b.aborted&&S[E]&&R.state===X){const _=S[c.__symbol__("loadfalse")];if(0!==S.status&&_&&_.length>0){const n=R.invoke;R.invoke=function(){const o=S[c.__symbol__("loadfalse")];for(let p=0;p<o.length;p++)o[p]===R&&o.splice(p,1);!b.aborted&&R.state===X&&n.call(R)},_.push(R)}else R.invoke()}else!b.aborted&&!1===S[E]&&(S[m]=!0)};return U.call(S,K,W),S[t]||(S[t]=R),z.apply(S,b.args),S[E]=!0,R}function h(){}function H(R){const b=R.data;return b.aborted=!0,O.apply(b.target,b.args)}const V=ue(Z,"open",()=>function(R,b){return R[i]=0==b[2],R[T]=b[1],V.apply(R,b)}),G=j("fetchTaskAborting"),g=j("fetchTaskScheduling"),z=ue(Z,"send",()=>function(R,b){if(!0===c.current[g]||R[i])return z.apply(R,b);{const S={target:R,url:R[T],isPeriodic:!1,args:b,aborted:!1},Q=He("XMLHttpRequest.send",h,S,k,H);R&&!0===R[m]&&!S.aborted&&Q.state===X&&Q.invoke()}}),O=ue(Z,"abort",()=>function(R,b){const S=function x(R){return R[t]}(R);if(S&&"string"==typeof S.type){if(null==S.cancelFn||S.data&&S.data.aborted)return;S.zone.cancelTask(S)}else if(!0===c.current[G])return O.apply(R,b)})}(r);const t=j("xhrTask"),i=j("xhrSync"),u=j("xhrListener"),E=j("xhrScheduled"),T=j("xhrURL"),m=j("xhrErrorBeforeScheduled")}),e.__load_patch("geolocation",r=>{r.navigator&&r.navigator.geolocation&&function gt(e,r){const c=e.constructor.name;for(let t=0;t<r.length;t++){const i=r[t],u=e[i];if(u){if(!We(ke(e,i)))continue;e[i]=(T=>{const m=function(){return T.apply(this,xe(arguments,c+"."+i))};return fe(m,T),m})(u)}}}(r.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(r,c)=>{function t(i){return function(u){st(r,i).forEach(T=>{const m=r.PromiseRejectionEvent;if(m){const D=new m(i,{promise:u.promise,reason:u.rejection});T.invoke(D)}})}}r.PromiseRejectionEvent&&(c[j("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),c[j("rejectionHandledHandler")]=t("rejectionhandled"))}),e.__load_patch("queueMicrotask",(r,c,t)=>{!function wt(e,r){r.patchMethod(e,"queueMicrotask",c=>function(t,i){Zone.current.scheduleMicroTask("queueMicrotask",i[0])})}(r,t)})}(at)}},te=>{te(te.s=935)}]);
|
|
3
|
-
(self.webpackChunk_motopays_pay_form=self.webpackChunk_motopays_pay_form||[]).push([[792],{528:(F,A,M)=>{"use strict";function D(e,n){return Object.is(e,n)}let ke=null,Ae=!1,xe=1;const $=Symbol("SIGNAL");function ie(e){const n=ke;return ke=e,n}const Bt={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function lr(e){if(Ae)throw new Error("");if(null===ke)return;ke.consumerOnSignalRead(e);const n=ke.nextProducerIndex++;Ys(ke),n<ke.producerNode.length&&ke.producerNode[n]!==e&&xi(ke)&&oo(ke.producerNode[n],ke.producerIndexOfThis[n]),ke.producerNode[n]!==e&&(ke.producerNode[n]=e,ke.producerIndexOfThis[n]=xi(ke)?Zs(e,ke,n):0),ke.producerLastReadVersion[n]=e.version}function ro(e){if((!xi(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==xe)){if(!e.producerMustRecompute(e)&&!Pr(e))return e.dirty=!1,void(e.lastCleanEpoch=xe);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=xe}}function xn(e){if(void 0===e.liveConsumerNode)return;const n=Ae;Ae=!0;try{for(const t of e.liveConsumerNode)t.dirty||Te(t)}finally{Ae=n}}function Ie(){return!1!==ke?.consumerAllowSignalWrites}function Te(e){e.dirty=!0,xn(e),e.consumerMarkedDirty?.(e)}function et(e){return e&&(e.nextProducerIndex=0),ie(e)}function ht(e,n){if(ie(n),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(xi(e))for(let t=e.nextProducerIndex;t<e.producerNode.length;t++)oo(e.producerNode[t],e.producerIndexOfThis[t]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Pr(e){Ys(e);for(let n=0;n<e.producerNode.length;n++){const t=e.producerNode[n],r=e.producerLastReadVersion[n];if(r!==t.version||(ro(t),r!==t.version))return!0}return!1}function io(e){if(Ys(e),xi(e))for(let n=0;n<e.producerNode.length;n++)oo(e.producerNode[n],e.producerIndexOfThis[n]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function Zs(e,n,t){if(Ks(e),0===e.liveConsumerNode.length&&so(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=Zs(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(t),e.liveConsumerNode.push(n)-1}function oo(e,n){if(Ks(e),1===e.liveConsumerNode.length&&so(e))for(let r=0;r<e.producerNode.length;r++)oo(e.producerNode[r],e.producerIndexOfThis[r]);const t=e.liveConsumerNode.length-1;if(e.liveConsumerNode[n]=e.liveConsumerNode[t],e.liveConsumerIndexOfThis[n]=e.liveConsumerIndexOfThis[t],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,n<e.liveConsumerNode.length){const r=e.liveConsumerIndexOfThis[n],i=e.liveConsumerNode[n];Ys(i),i.producerIndexOfThis[r]=n}}function xi(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function Ys(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Ks(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function so(e){return void 0!==e.producerNode}const qu=Symbol("UNSET"),jo=Symbol("COMPUTING"),Bo=Symbol("ERRORED"),Wu={...Bt,value:qu,dirty:!0,error:null,equal:D,producerMustRecompute:e=>e.value===qu||e.value===jo,producerRecomputeValue(e){if(e.value===jo)throw new Error("Detected cycle in computations.");const n=e.value;e.value=jo;const t=et(e);let r;try{r=e.computation()}catch(i){r=Bo,e.error=i}finally{ht(e,t)}n!==qu&&n!==Bo&&r!==Bo&&e.equal(n,r)?e.value=n:(e.value=r,e.version++)}};let Zu=function ao(){throw new Error};function Xs(){Zu()}let dr=null;function ki(e,n){Ie()||Xs(),e.equal(e.value,n)||(e.value=n,function kn(e){e.version++,function Vo(){xe++}(),xn(e),dr?.()}(e))}const Js={...Bt,equal:D,value:void 0};const Ni=()=>{},xm={...Bt,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:Ni};function st(e){return"function"==typeof e}function zn(e){const t=e(r=>{Error.call(r),r.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const ta=zn(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function Go(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class ln{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const o of t)o.remove(this);else t.remove(this);const{initialTeardown:r}=this;if(st(r))try{r()}catch(o){n=o instanceof ta?o.errors:[o]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const o of i)try{Ed(o)}catch(s){n=n??[],s instanceof ta?n=[...n,...s.errors]:n.push(s)}}if(n)throw new ta(n)}}add(n){var t;if(n&&n!==this)if(this.closed)Ed(n);else{if(n instanceof ln){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(n)}}_hasParent(n){const{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){const{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&Go(t,n)}remove(n){const{_finalizers:t}=this;t&&Go(t,n),n instanceof ln&&n._removeParent(this)}}ln.EMPTY=(()=>{const e=new ln;return e.closed=!0,e})();const wd=ln.EMPTY;function Cd(e){return e instanceof ln||e&&"closed"in e&&st(e.remove)&&st(e.add)&&st(e.unsubscribe)}function Ed(e){st(e)?e():e.unsubscribe()}const Oi={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},na={setTimeout(e,n,...t){const{delegate:r}=na;return r?.setTimeout?r.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=na;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Dd(e){na.setTimeout(()=>{const{onUnhandledError:n}=Oi;if(!n)throw e;n(e)})}function uo(){}const Ri=Xu("C",void 0,void 0);function Xu(e,n,t){return{kind:e,value:n,error:t}}let Fi=null;function ia(e){if(Oi.useDeprecatedSynchronousErrorHandling){const n=!Fi;if(n&&(Fi={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:r}=Fi;if(Fi=null,t)throw r}}else e()}class Nn extends ln{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Cd(n)&&n.add(this)):this.destination=Rm}static create(n,t,r){return new oa(n,t,r)}next(n){this.isStopped?aa(function km(e){return Xu("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?aa(function ra(e){return Xu("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?aa(Ri,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Td=Function.prototype.bind;function Qu(e,n){return Td.call(e,n)}class Nm{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(r){sa(r)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(r){sa(r)}else sa(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){sa(t)}}}class oa extends Nn{constructor(n,t,r){let i;if(super(),st(n)||!n)i={next:n??void 0,error:t??void 0,complete:r??void 0};else{let o;this&&Oi.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),i={next:n.next&&Qu(n.next,o),error:n.error&&Qu(n.error,o),complete:n.complete&&Qu(n.complete,o)}):i=n}this.destination=new Nm(i)}}function sa(e){Oi.useDeprecatedSynchronousErrorHandling?function Sd(e){Oi.useDeprecatedSynchronousErrorHandling&&Fi&&(Fi.errorThrown=!0,Fi.error=e)}(e):Dd(e)}function aa(e,n){const{onStoppedNotification:t}=Oi;t&&na.setTimeout(()=>t(e,n))}const Rm={closed:!0,next:uo,error:function Om(e){throw e},complete:uo},ua="function"==typeof Symbol&&Symbol.observable||"@@observable";function Uo(e){return e}let _t=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const r=new e;return r.source=this,r.operator=t,r}subscribe(t,r,i){const o=function Md(e){return e&&e instanceof Nn||function ec(e){return e&&st(e.next)&&st(e.error)&&st(e.complete)}(e)&&Cd(e)}(t)?t:new oa(t,r,i);return ia(()=>{const{operator:s,source:u}=this;o.add(s?s.call(o,u):u?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(t){try{return this._subscribe(t)}catch(r){t.error(r)}}forEach(t,r){return new(r=Ju(r))((i,o)=>{const s=new oa({next:u=>{try{t(u)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(t){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(t)}[ua](){return this}pipe(...t){return function ca(e){return 0===e.length?Uo:1===e.length?e[0]:function(t){return e.reduce((r,i)=>i(r),t)}}(t)(this)}toPromise(t){return new(t=Ju(t))((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=n=>new e(n),e})();function Ju(e){var n;return null!==(n=e??Oi.Promise)&&void 0!==n?n:Promise}const tc=zn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let bt=(()=>{class e extends _t{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const r=new Id(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new tc}next(t){ia(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(t)}})}error(t){ia(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){ia(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:r,isStopped:i,observers:o}=this;return r||i?wd:(this.currentObservers=null,o.push(t),new ln(()=>{this.currentObservers=null,Go(o,t)}))}_checkFinalizedStatuses(t){const{hasError:r,thrownError:i,isStopped:o}=this;r?t.error(i):o&&t.complete()}asObservable(){const t=new _t;return t.source=this,t}}return e.create=(n,t)=>new Id(n,t),e})();class Id extends bt{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,n)}error(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,n)}complete(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)}_subscribe(n){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==r?r:wd}}class nc extends bt{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){const{hasError:n,thrownError:t,_value:r}=this;if(n)throw t;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}}function mn(e){return n=>{if(function Pd(e){return st(e?.lift)}(n))return n.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Qt(e,n,t,r,i){return new Ad(e,n,t,r,i)}class Ad extends Nn{constructor(n,t,r,i,o,s){super(n),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=t?function(u){try{t(u)}catch(c){n.error(c)}}:super._next,this._error=i?function(u){try{i(u)}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(u){n.error(u)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function Tt(e,n){return mn((t,r)=>{let i=0;t.subscribe(Qt(r,o=>{r.next(e.call(n,o,i++))}))})}typeof navigator<"u"&&navigator,typeof navigator<"u"&&!/Opera/.test(navigator.userAgent)&&navigator,typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||navigator),typeof navigator<"u"&&!/Opera|WebKit/.test(navigator.userAgent)&&navigator,typeof navigator<"u"&&navigator;const rf="https://g.co/ng/security#xss";class k extends Error{constructor(n,t){super(function co(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,t)),this.code=n}}const Or=Symbol("InputSignalNode#UNSET"),ui={...Js,transformFn:void 0,applyValueToInputSignal(e,n){ki(e,n)}};function fo(e,n){const t=Object.create(ui);function r(){if(lr(t),t.value===Or)throw new k(-950,!1);return t.value}return t.value=e,t.transformFn=n?.transform,r[$]=t,r}function Rr(e){return{toString:e}.toString()}const ho="__annotations__",Fr="__parameters__",On="__prop__metadata__";function ya(e,n,t,r,i){return Rr(()=>{const o=ts(n);function s(...u){if(this instanceof s)return o.call(this,...u),this;const c=new s(...u);return function(f){return i&&i(f,...u),(f.hasOwnProperty(ho)?f[ho]:Object.defineProperty(f,ho,{value:[]})[ho]).push(c),r&&r(f),f}}return t&&(s.prototype=Object.create(t.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}function ts(e){return function(...t){if(e){const r=e(...t);for(const i in r)this[i]=r[i]}}}function ci(e,n,t){return Rr(()=>{const r=ts(n);function i(...o){if(this instanceof i)return r.apply(this,o),this;const s=new i(...o);return u.annotation=s,u;function u(c,d,f){const m=c.hasOwnProperty(Fr)?c[Fr]:Object.defineProperty(c,Fr,{value:[]})[Fr];for(;m.length<=f;)m.push(null);return(m[f]=m[f]||[]).push(s),c}}return t&&(i.prototype=Object.create(t.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}const Ke=globalThis;function He(e){for(let n in e)if(e[n]===He)return n;throw Error("Could not find renamed property on target object.")}function af(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function Ct(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Ct).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const t=n.indexOf("\n");return-1===t?n:n.substring(0,t)}function va(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const fg=He({__forward_ref__:He});function Ne(e){return e.__forward_ref__=Ne,e.toString=function(){return Ct(this())},e}function ae(e){return po(e)?e():e}function po(e){return"function"==typeof e&&e.hasOwnProperty(fg)&&e.__forward_ref__===Ne}function Z(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Et(e){return{providers:e.providers||[],imports:e.imports||[]}}function ba(e){return Sc(e,wa)||Sc(e,Mc)}function Sc(e,n){return e.hasOwnProperty(n)?e[n]:null}function mo(e){return e&&(e.hasOwnProperty(Tc)||e.hasOwnProperty(ff))?e[Tc]:null}const wa=He({\u0275prov:He}),Tc=He({\u0275inj:He}),Mc=He({ngInjectableDef:He}),ff=He({ngInjectorDef:He});class z{constructor(n,t){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=Z({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Ac(e){return e&&!!e.\u0275providers}const rs=He({\u0275cmp:He}),is=He({\u0275dir:He}),Da=He({\u0275pipe:He}),pf=He({\u0275mod:He}),yn=He({\u0275fac:He}),go=He({__NG_ELEMENT_ID__:He}),xc=He({__NG_ENV_ID__:He});function W(e){return"string"==typeof e?e:null==e?"":String(e)}function Sa(e,n){throw new k(-201,!1)}var De=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}(De||{});let kc;function os(){return kc}function tn(e){const n=kc;return kc=e,n}function Nc(e,n,t){const r=ba(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&De.Optional?null:void 0!==n?n:void Sa()}const as={},di="__NG_DI_FLAG__",Ma="ngTempTokenPath",Cg=/\n/gm,Bi="__source";let pr;function Oe(e){const n=pr;return pr=e,n}function a(e,n=De.Default){if(void 0===pr)throw new k(-203,!1);return null===pr?Nc(e,void 0,n):pr.get(e,n&De.Optional?null:void 0,n)}function l(e,n=De.Default){return(os()||a)(ae(e),n)}function p(e,n=De.Default){return l(e,v(n))}function v(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function b(e){const n=[];for(let t=0;t<e.length;t++){const r=ae(e[t]);if(Array.isArray(r)){if(0===r.length)throw new k(900,!1);let i,o=De.Default;for(let s=0;s<r.length;s++){const u=r[s],c=E(u);"number"==typeof c?-1===c?i=u.token:o|=c:i=u}n.push(l(i,o))}else n.push(l(r))}return n}function w(e,n){return e[di]=n,e.prototype[di]=n,e}function E(e){return e[di]}const X=w(ci("Inject",e=>({token:e})),-1),We=w(ci("Optional"),8),pt=w(ci("Self"),2),Ut=w(ci("SkipSelf"),4),us=w(ci("Host"),1);function vn(e,n){return e.hasOwnProperty(yn)?e[yn]:null}function Ia(e,n){e.forEach(t=>Array.isArray(t)?Ia(t,n):n(t))}function uw(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function yf(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function vf(e,n){const t=[];for(let r=0;r<e;r++)t.push(n);return t}function Zn(e,n,t){let r=Pa(e,n);return r>=0?e[1|r]=t:(r=~r,function cw(e,n,t,r){let i=e.length;if(i==n)e.push(t,r);else if(1===i)e.push(r,e[0]),e[0]=t;else{for(i--,e.push(e[i-1],e[i]);i>n;)e[i]=e[i-2],i--;e[n]=t,e[n+1]=r}}(e,r,n,t)),r}function Dg(e,n){const t=Pa(e,n);if(t>=0)return e[1|t]}function Pa(e,n){return function lw(e,n,t){let r=0,i=e.length>>t;for(;i!==r;){const o=r+(i-r>>1),s=e[o<<t];if(n===s)return o<<t;s>n?i=o:r=o+1}return~(i<<t)}(e,n,1)}const fi={},Re=[],hi=new z(""),dw=new z("",-1),Sg=new z("");class _f{get(n,t=as){if(t===as){const r=new Error(`NullInjectorError: No provider for ${Ct(n)}!`);throw r.name="NullInjectorError",r}return t}}var bf=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(bf||{}),Vr=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Vr||{}),yo=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(yo||{});function $A(e,n,t){let r=e.length;for(;;){const i=e.indexOf(n,t);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){const o=n.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}t=i+1}}function Tg(e,n,t){let r=0;for(;r<t.length;){const i=t[r];if("number"==typeof i){if(0!==i)break;r++;const o=t[r++],s=t[r++],u=t[r++];e.setAttribute(n,s,u,o)}else{const o=i,s=t[++r];hw(o)?e.setProperty(n,o,s):e.setAttribute(n,o,s),r++}}return r}function fw(e){return 3===e||4===e||6===e}function hw(e){return 64===e.charCodeAt(0)}function Oc(e,n){if(null!==n&&0!==n.length)if(null===e||0===e.length)e=n.slice();else{let t=-1;for(let r=0;r<n.length;r++){const i=n[r];"number"==typeof i?t=i:0===t||pw(e,t,i,null,-1===t||2===t?n[++r]:null)}}return e}function pw(e,n,t,r,i){let o=0,s=e.length;if(-1===n)s=-1;else for(;o<e.length;){const u=e[o++];if("number"==typeof u){if(u===n){s=-1;break}if(u>n){s=o-1;break}}}for(;o<e.length;){const u=e[o];if("number"==typeof u)break;if(u===t){if(null===r)return void(null!==i&&(e[o+1]=i));if(r===e[o+1])return void(e[o+2]=i)}o++,null!==r&&o++,null!==i&&o++}-1!==s&&(e.splice(s,0,n),o=s+1),e.splice(o++,0,t),null!==r&&e.splice(o++,0,r),null!==i&&e.splice(o++,0,i)}const mw="ng-template";function zA(e,n,t,r){let i=0;if(r){for(;i<n.length&&"string"==typeof n[i];i+=2)if("class"===n[i]&&-1!==$A(n[i+1].toLowerCase(),t,0))return!0}else if(Mg(e))return!1;if(i=n.indexOf(1,i),i>-1){let o;for(;++i<n.length&&"string"==typeof(o=n[i]);)if(o.toLowerCase()===t)return!0}return!1}function Mg(e){return 4===e.type&&e.value!==mw}function qA(e,n,t){return n===(4!==e.type||t?e.value:mw)}function WA(e,n,t){let r=4;const i=e.attrs,o=null!==i?function KA(e){for(let n=0;n<e.length;n++)if(fw(e[n]))return n;return e.length}(i):0;let s=!1;for(let u=0;u<n.length;u++){const c=n[u];if("number"!=typeof c){if(!s)if(4&r){if(r=2|1&r,""!==c&&!qA(e,c,t)||""===c&&1===n.length){if(jr(r))return!1;s=!0}}else if(8&r){if(null===i||!zA(e,i,c,t)){if(jr(r))return!1;s=!0}}else{const d=n[++u],f=ZA(c,i,Mg(e),t);if(-1===f){if(jr(r))return!1;s=!0;continue}if(""!==d){let m;if(m=f>o?"":i[f+1].toLowerCase(),2&r&&d!==m){if(jr(r))return!1;s=!0}}}}else{if(!s&&!jr(r)&&!jr(c))return!1;if(s&&jr(c))continue;s=!1,r=c|1&r}}return jr(r)||s}function jr(e){return!(1&e)}function ZA(e,n,t,r){if(null===n)return-1;let i=0;if(r||!t){let o=!1;for(;i<n.length;){const s=n[i];if(s===e)return i;if(3===s||6===s)o=!0;else{if(1===s||2===s){let u=n[++i];for(;"string"==typeof u;)u=n[++i];continue}if(4===s)break;if(0===s){i+=4;continue}}i+=o?1:2}return-1}return function XA(e,n){let t=e.indexOf(4);if(t>-1)for(t++;t<e.length;){const r=e[t];if("number"==typeof r)return-1;if(r===n)return t;t++}return-1}(n,e)}function gw(e,n,t=!1){for(let r=0;r<n.length;r++)if(WA(e,n[r],t))return!0;return!1}function QA(e,n){e:for(let t=0;t<n.length;t++){const r=n[t];if(e.length===r.length){for(let i=0;i<e.length;i++)if(e[i]!==r[i])continue e;return!0}}return!1}function yw(e,n){return e?":not("+n.trim()+")":n}function JA(e){let n=e[0],t=1,r=2,i="",o=!1;for(;t<e.length;){let s=e[t];if("string"==typeof s)if(2&r){const u=e[++t];i+="["+s+(u.length>0?'="'+u+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!jr(s)&&(n+=yw(o,i),i=""),r=s,o=o||!jr(r);t++}return""!==i&&(n+=yw(o,i)),n}function Ze(e){return Rr(()=>{const n=_w(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===bf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Vr.Emulated,styles:e.styles||Re,_:null,schemas:e.schemas||null,tView:null,id:""};bw(t);const r=e.dependencies;return t.directiveDefs=wf(r,!1),t.pipeDefs=wf(r,!0),t.id=function ox(e){let n=0;const t=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const i of t)n=Math.imul(31,n)+i.charCodeAt(0)|0;return n+=2147483648,"c"+n}(t),t})}function nx(e){return Ee(e)||zt(e)}function rx(e){return null!==e}function $t(e){return Rr(()=>({type:e.type,bootstrap:e.bootstrap||Re,declarations:e.declarations||Re,imports:e.imports||Re,exports:e.exports||Re,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function vw(e,n){if(null==e)return fi;const t={};for(const r in e)if(e.hasOwnProperty(r)){const i=e[r];let o,s,u=yo.None;Array.isArray(i)?(u=i[0],o=i[1],s=i[2]??o):(o=i,s=i),n?(t[o]=u!==yo.None?[r,u]:r,n[o]=s):t[o]=r}return t}function le(e){return Rr(()=>{const n=_w(e);return bw(n),n})}function Nt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ee(e){return e[rs]||null}function zt(e){return e[is]||null}function nn(e){return e[Da]||null}function _w(e){const n={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:e.inputs||fi,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Re,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:vw(e.inputs,n),outputs:vw(e.outputs),debugInfo:null}}function bw(e){e.features?.forEach(n=>n(e))}function wf(e,n){if(!e)return null;const t=n?nn:nx;return()=>("function"==typeof e?e():e).map(r=>t(r)).filter(rx)}function Aa(e){return{\u0275providers:e}}function sx(...e){return{\u0275providers:Ig(0,e),\u0275fromNgModule:!0}}function Ig(e,...n){const t=[],r=new Set;let i;const o=s=>{t.push(s)};return Ia(n,s=>{const u=s;Cf(u,o,[],r)&&(i||=[],i.push(u))}),void 0!==i&&ww(i,o),t}function ww(e,n){for(let t=0;t<e.length;t++){const{ngModule:r,providers:i}=e[t];Pg(i,o=>{n(o,r)})}}function Cf(e,n,t,r){if(!(e=ae(e)))return!1;let i=null,o=mo(e);const s=!o&&Ee(e);if(o||s){if(s&&!s.standalone)return!1;i=e}else{const c=e.ngModule;if(o=mo(c),!o)return!1;i=c}const u=r.has(i);if(s){if(u)return!1;if(r.add(i),s.dependencies){const c="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const d of c)Cf(d,n,t,r)}}else{if(!o)return!1;{if(null!=o.imports&&!u){let d;r.add(i);try{Ia(o.imports,f=>{Cf(f,n,t,r)&&(d||=[],d.push(f))})}finally{}void 0!==d&&ww(d,n)}if(!u){const d=vn(i)||(()=>new i);n({provide:i,useFactory:d,deps:Re},i),n({provide:Sg,useValue:i,multi:!0},i),n({provide:hi,useValue:()=>l(i),multi:!0},i)}const c=o.providers;if(null!=c&&!u){const d=e;Pg(c,f=>{n(f,d)})}}}return i!==e&&void 0!==e.providers}function Pg(e,n){for(let t of e)Ac(t)&&(t=t.\u0275providers),Array.isArray(t)?Pg(t,n):n(t)}const ax=He({provide:String,useValue:He});function Ag(e){return null!==e&&"object"==typeof e&&ax in e}function ls(e){return"function"==typeof e}const xg=new z(""),Ef={},cx={};let kg;function Df(){return void 0===kg&&(kg=new _f),kg}class mr{}class xa extends mr{get destroyed(){return this._destroyed}constructor(n,t,r,i){super(),this.parent=t,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Og(n,s=>this.processProvider(s)),this.records.set(dw,ka(void 0,this)),i.has("environment")&&this.records.set(mr,ka(void 0,this));const o=this.records.get(xg);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Sg,Re,De.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const n=ie(null);try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of t)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),ie(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const t=Oe(this),r=tn(void 0);try{return n()}finally{Oe(t),tn(r)}}get(n,t=as,r=De.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(xc))return n[xc](this);r=v(r);const o=Oe(this),s=tn(void 0);try{if(!(r&De.SkipSelf)){let c=this.records.get(n);if(void 0===c){const d=function px(e){return"function"==typeof e||"object"==typeof e&&e instanceof z}(n)&&ba(n);c=d&&this.injectableDefInScope(d)?ka(Ng(n),Ef):null,this.records.set(n,c)}if(null!=c)return this.hydrate(n,c)}return(r&De.Self?Df():this.parent).get(n,t=r&De.Optional&&t===as?null:t)}catch(u){if("NullInjectorError"===u.name){if((u[Ma]=u[Ma]||[]).unshift(Ct(n)),o)throw u;return function V(e,n,t,r){const i=e[Ma];throw n[Bi]&&i.unshift(n[Bi]),e.message=function O(e,n,t,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let i=Ct(n);if(Array.isArray(n))i=n.map(Ct).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let u=n[s];o.push(s+":"+("string"==typeof u?JSON.stringify(u):Ct(u)))}i=`{${o.join(", ")}}`}return`${t}${r?"("+r+")":""}[${i}]: ${e.replace(Cg,"\n ")}`}("\n"+e.message,i,t,r),e.ngTokenPath=i,e[Ma]=null,e}(u,n,"R3InjectorError",this.source)}throw u}finally{tn(s),Oe(o)}}resolveInjectorInitializers(){const n=ie(null),t=Oe(this),r=tn(void 0);try{const o=this.get(hi,Re,De.Self);for(const s of o)s()}finally{Oe(t),tn(r),ie(n)}}toString(){const n=[],t=this.records;for(const r of t.keys())n.push(Ct(r));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new k(205,!1)}processProvider(n){let t=ls(n=ae(n))?n:ae(n&&n.provide);const r=function dx(e){return Ag(e)?ka(void 0,e.useValue):ka(Dw(e),Ef)}(n);if(!ls(n)&&!0===n.multi){let i=this.records.get(t);i||(i=ka(void 0,Ef,!0),i.factory=()=>b(i.multi),this.records.set(t,i)),t=n,i.multi.push(n)}this.records.set(t,r)}hydrate(n,t){const r=ie(null);try{return t.value===Ef&&(t.value=cx,t.value=t.factory()),"object"==typeof t.value&&t.value&&function hx(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{ie(r)}}injectableDefInScope(n){if(!n.providedIn)return!1;const t=ae(n.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(n){const t=this._onDestroyHooks.indexOf(n);-1!==t&&this._onDestroyHooks.splice(t,1)}}function Ng(e){const n=ba(e),t=null!==n?n.factory:vn(e);if(null!==t)return t;if(e instanceof z)throw new k(204,!1);if(e instanceof Function)return function lx(e){if(e.length>0)throw new k(204,!1);const t=function df(e){return e&&(e[wa]||e[Mc])||null}(e);return null!==t?()=>t.factory(e):()=>new e}(e);throw new k(204,!1)}function Dw(e,n,t){let r;if(ls(e)){const i=ae(e);return vn(i)||Ng(i)}if(Ag(e))r=()=>ae(e.useValue);else if(function Ew(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...b(e.deps||[]));else if(function Cw(e){return!(!e||!e.useExisting)}(e))r=()=>l(ae(e.useExisting));else{const i=ae(e&&(e.useClass||e.provide));if(!function fx(e){return!!e.deps}(e))return vn(i)||Ng(i);r=()=>new i(...b(e.deps))}return r}function ka(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function Og(e,n){for(const t of e)Array.isArray(t)?Og(t,n):t&&Ac(t)?Og(t.\u0275providers,n):n(t)}function Sw(){return void 0!==os()||null!=function gf(){return pr}()}function qt(e){const n=Ke.ng;if(n&&n.\u0275compilerFacade)return n.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const Tw={\u0275\u0275defineInjectable:Z,\u0275\u0275defineInjector:Et,\u0275\u0275inject:l,\u0275\u0275invalidFactoryDep:function h(e){throw new k(202,!1)},resolveForwardRef:ae},vx=Function;function Rc(e){return"function"==typeof e}const _x=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,bx=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,wx=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,Cx=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;class Dx{constructor(n){this._reflect=n||Ke.Reflect}factory(n){return(...t)=>new n(...t)}_zipTypesAndAnnotations(n,t){let r;r=vf(typeof n>"u"?t.length:n.length);for(let i=0;i<r.length;i++)r[i]=typeof n>"u"?[]:n[i]&&n[i]!=Object?[n[i]]:[],t&&null!=t[i]&&(r[i]=r[i].concat(t[i]));return r}_ownParameters(n,t){if(function Ex(e){return _x.test(e)||Cx.test(e)||bx.test(e)&&!wx.test(e)}(n.toString()))return null;if(n.parameters&&n.parameters!==t.parameters)return n.parameters;const i=n.ctorParameters;if(i&&i!==t.ctorParameters){const u="function"==typeof i?i():i,c=u.map(f=>f&&f.type),d=u.map(f=>f&&Fg(f.decorators));return this._zipTypesAndAnnotations(c,d)}const o=n.hasOwnProperty(Fr)&&n[Fr],s=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",n);return s||o?this._zipTypesAndAnnotations(s,o):vf(n.length)}parameters(n){if(!Rc(n))return[];const t=Sf(n);let r=this._ownParameters(n,t);return!r&&t!==Object&&(r=this.parameters(t)),r||[]}_ownAnnotations(n,t){if(n.annotations&&n.annotations!==t.annotations){let r=n.annotations;return"function"==typeof r&&r.annotations&&(r=r.annotations),r}return n.decorators&&n.decorators!==t.decorators?Fg(n.decorators):n.hasOwnProperty(ho)?n[ho]:null}annotations(n){if(!Rc(n))return[];const t=Sf(n),r=this._ownAnnotations(n,t)||[];return(t!==Object?this.annotations(t):[]).concat(r)}_ownPropMetadata(n,t){if(n.propMetadata&&n.propMetadata!==t.propMetadata){let r=n.propMetadata;return"function"==typeof r&&r.propMetadata&&(r=r.propMetadata),r}if(n.propDecorators&&n.propDecorators!==t.propDecorators){const r=n.propDecorators,i={};return Object.keys(r).forEach(o=>{i[o]=Fg(r[o])}),i}return n.hasOwnProperty(On)?n[On]:null}propMetadata(n){if(!Rc(n))return{};const t=Sf(n),r={};if(t!==Object){const o=this.propMetadata(t);Object.keys(o).forEach(s=>{r[s]=o[s]})}const i=this._ownPropMetadata(n,t);return i&&Object.keys(i).forEach(o=>{const s=[];r.hasOwnProperty(o)&&s.push(...r[o]),s.push(...i[o]),r[o]=s}),r}ownPropMetadata(n){return Rc(n)&&this._ownPropMetadata(n,Sf(n))||{}}hasLifecycleHook(n,t){return n instanceof vx&&t in n.prototype}}function Fg(e){return e?e.map(n=>new(0,n.type.annotationCls)(...n.args?n.args:[])):[]}function Sf(e){const n=e.prototype?Object.getPrototypeOf(e.prototype):null;return(n?n.constructor:null)||Object}const mt=0,G=1,oe=2,Ot=3,Br=4,rn=5,_n=6,Oa=7,at=8,Rt=9,pi=10,de=11,Fc=12,Mw=13,Ra=14,gt=15,ds=16,Fa=17,Hi=18,La=19,Iw=20,vo=21,Tf=22,gr=23,ee=25,Lg=1,mi=7,Va=9,Mt=10;var If=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(If||{});function Wt(e){return Array.isArray(e)&&"object"==typeof e[Lg]}function fn(e){return Array.isArray(e)&&!0===e[Lg]}function Vg(e){return!!(4&e.flags)}function fs(e){return e.componentOffset>-1}function Pf(e){return!(1&~e.flags)}function Hr(e){return!!e.template}function Vc(e){return!!(512&e[oe])}class Nw{constructor(n,t,r){this.previousValue=n,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function Ow(e,n,t,r){null!==n?n.applyValueToInputSignal(n,r):e[t]=r}function Gr(){return Rw}function Rw(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ix),Mx}function Mx(){const e=Lw(this),n=e?.current;if(n){const t=e.previous;if(t===fi)e.previous=n;else for(let r in n)t[r]=n[r];e.current=null,this.ngOnChanges(n)}}function Ix(e,n,t,r,i){const o=this.declaredInputs[r],s=Lw(e)||function Px(e,n){return e[Fw]=n}(e,{previous:fi,current:null}),u=s.current||(s.current={}),c=s.previous,d=c[o];u[o]=new Nw(d&&d.currentValue,t,c===fi),Ow(e,n,i,t)}Gr.ngInherit=!0;const Fw="__ngSimpleChanges__";function Lw(e){return e[Fw]||null}const gi=function(e,n,t){};function Fe(e){for(;Array.isArray(e);)e=e[mt];return e}function jc(e,n){return Fe(n[e])}function bn(e,n){return Fe(n[e.index])}function Bc(e,n){return e.data[n]}function hs(e,n){return e[n]}function Yn(e,n){const t=n[e];return Wt(t)?t:t[mt]}function Ug(e){return!(128&~e[oe])}function yr(e,n){return null==n?null:e[n]}function Bw(e){e[Fa]=0}function Hw(e){1024&e[oe]||(e[oe]|=1024,Ug(e)&&xf(e))}function Af(e){return!!(9216&e[oe]||e[gr]?.dirty)}function $g(e){e[pi].changeDetectionScheduler?.notify(8),64&e[oe]&&(e[oe]|=1024),Af(e)&&xf(e)}function xf(e){e[pi].changeDetectionScheduler?.notify(0);let n=Gi(e);for(;null!==n&&!(8192&n[oe])&&(n[oe]|=8192,Ug(n));)n=Gi(n)}function kf(e,n){if(!(256&~e[oe]))throw new k(911,!1);null===e[vo]&&(e[vo]=[]),e[vo].push(n)}function Gi(e){const n=e[Ot];return fn(n)?n[Ot]:n}const fe={lFrame:eC(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let Uw=!1;function $w(){return fe.bindingsEnabled}function ps(){return null!==fe.skipHydrationRootTNode}function N(){return fe.lFrame.lView}function be(){return fe.lFrame.tView}function ve(e){return fe.lFrame.contextLView=e,e[at]}function _e(e){return fe.lFrame.contextLView=null,e}function Ye(){let e=zw();for(;null!==e&&64===e.type;)e=e.parent;return e}function zw(){return fe.lFrame.currentTNode}function Ur(e,n){const t=fe.lFrame;t.currentTNode=e,t.isParent=n}function Wg(){return fe.lFrame.isParent}function Zg(){fe.lFrame.isParent=!1}function qw(){return fe.lFrame.contextLView}function Zw(){return Uw}function Yw(e){Uw=e}function wn(){const e=fe.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function $r(){return fe.lFrame.bindingIndex++}function $i(e){const n=fe.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function Ux(e,n){const t=fe.lFrame;t.bindingIndex=t.bindingRootIndex=e,Yg(n)}function Yg(e){fe.lFrame.currentDirectiveIndex=e}function Kg(e){const n=fe.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}function Of(e){fe.lFrame.currentQueryIndex=e}function zx(e){const n=e[G];return 2===n.type?n.declTNode:1===n.type?e[rn]:null}function Qw(e,n,t){if(t&De.SkipSelf){let i=n,o=e;for(;!(i=i.parent,null!==i||t&De.Host||(i=zx(o),null===i||(o=o[Ra],10&i.type))););if(null===i)return!1;n=i,e=o}const r=fe.lFrame=Jw();return r.currentTNode=n,r.lView=e,!0}function Qg(e){const n=Jw(),t=e[G];fe.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function Jw(){const e=fe.lFrame,n=null===e?null:e.child;return null===n?eC(e):n}function eC(e){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=n),n}function tC(){const e=fe.lFrame;return fe.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const nC=tC;function Jg(){const e=tC();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function on(){return fe.lFrame.selectedIndex}function ms(e){fe.lFrame.selectedIndex=e}function ut(){const e=fe.lFrame;return Bc(e.tView,e.selectedIndex)}let iC=!0;function Gc(){return iC}function yi(e){iC=e}function Rf(e,n){for(let t=n.directiveStart,r=n.directiveEnd;t<r;t++){const o=e.data[t].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:u,ngAfterViewInit:c,ngAfterViewChecked:d,ngOnDestroy:f}=o;s&&(e.contentHooks??=[]).push(-t,s),u&&((e.contentHooks??=[]).push(t,u),(e.contentCheckHooks??=[]).push(t,u)),c&&(e.viewHooks??=[]).push(-t,c),d&&((e.viewHooks??=[]).push(t,d),(e.viewCheckHooks??=[]).push(t,d)),null!=f&&(e.destroyHooks??=[]).push(t,f)}}function Ff(e,n,t){oC(e,n,3,t)}function Lf(e,n,t,r){(3&e[oe])===t&&oC(e,n,t,r)}function e0(e,n){let t=e[oe];(3&t)===n&&(t&=16383,t+=1,e[oe]=t)}function oC(e,n,t,r){const o=r??-1,s=n.length-1;let u=0;for(let c=void 0!==r?65535&e[Fa]:0;c<s;c++)if("number"==typeof n[c+1]){if(u=n[c],null!=r&&u>=r)break}else n[c]<0&&(e[Fa]+=65536),(u<o||-1==o)&&(Qx(e,t,n,c),e[Fa]=(4294901760&e[Fa])+c+2),c++}function sC(e,n){gi(4,e,n);const t=ie(null);try{n.call(e)}finally{ie(t),gi(5,e,n)}}function Qx(e,n,t,r){const i=t[r]<0,o=t[r+1],u=e[i?-t[r]:t[r]];i?e[oe]>>14<e[Fa]>>16&&(3&e[oe])===n&&(e[oe]+=16384,sC(u,o)):sC(u,o)}const ja=-1;class Uc{constructor(n,t,r){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}const n0={};class gs{constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,r){r=v(r);const i=this.injector.get(n,n0,r);return i!==n0||t===n0?i:this.parentInjector.get(n,t,r)}}function r0(e){return e!==ja}function $c(e){return 32767&e}function zc(e,n){let t=function nk(e){return e>>16}(e),r=n;for(;t>0;)r=r[Ra],t--;return r}let o0=!0;function Vf(e){const n=o0;return o0=e,n}const uC=255,cC=5;let ik=0;const vi={};function jf(e,n){const t=lC(e,n);if(-1!==t)return t;const r=n[G];r.firstCreatePass&&(e.injectorIndex=n.length,s0(r.data,e),s0(n,null),s0(r.blueprint,null));const i=Bf(e,n),o=e.injectorIndex;if(r0(i)){const s=$c(i),u=zc(i,n),c=u[G].data;for(let d=0;d<8;d++)n[o+d]=u[s+d]|c[s+d]}return n[o+8]=i,o}function s0(e,n){e.push(0,0,0,0,0,0,0,0,n)}function lC(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function Bf(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,r=null,i=n;for(;null!==i;){if(r=yC(i),null===r)return ja;if(t++,i=i[Ra],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return ja}function a0(e,n,t){!function ok(e,n,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(go)&&(r=t[go]),null==r&&(r=t[go]=ik++);const i=r&uC;n.data[e+(i>>cC)]|=1<<i}(e,n,t)}function dC(e,n,t){if(t&De.Optional||void 0!==e)return e;Sa()}function fC(e,n,t,r){if(t&De.Optional&&void 0===r&&(r=null),!(t&(De.Self|De.Host))){const i=e[Rt],o=tn(void 0);try{return i?i.get(n,r,t&De.Optional):Nc(n,r,t&De.Optional)}finally{tn(o)}}return dC(r,0,t)}function hC(e,n,t,r=De.Default,i){if(null!==e){if(2048&n[oe]&&!(r&De.Self)){const s=function lk(e,n,t,r,i){let o=e,s=n;for(;null!==o&&null!==s&&2048&s[oe]&&!(512&s[oe]);){const u=pC(o,s,t,r|De.Self,vi);if(u!==vi)return u;let c=o.parent;if(!c){const d=s[Iw];if(d){const f=d.get(t,vi,r);if(f!==vi)return f}c=yC(s),s=s[Ra]}o=c}return i}(e,n,t,r,vi);if(s!==vi)return s}const o=pC(e,n,t,r,vi);if(o!==vi)return o}return fC(n,t,r,i)}function pC(e,n,t,r,i){const o=function uk(e){if("string"==typeof e)return e.charCodeAt(0)||0;const n=e.hasOwnProperty(go)?e[go]:void 0;return"number"==typeof n?n>=0?n&uC:ck:n}(t);if("function"==typeof o){if(!Qw(n,e,r))return r&De.Host?dC(i,0,r):fC(n,t,r,i);try{let s;if(s=o(r),null!=s||r&De.Optional)return s;Sa()}finally{nC()}}else if("number"==typeof o){let s=null,u=lC(e,n),c=ja,d=r&De.Host?n[gt][rn]:null;for((-1===u||r&De.SkipSelf)&&(c=-1===u?Bf(e,n):n[u+8],c!==ja&&gC(r,!1)?(s=n[G],u=$c(c),n=zc(c,n)):u=-1);-1!==u;){const f=n[G];if(mC(o,u,f.data)){const m=ak(u,n,t,s,r,d);if(m!==vi)return m}c=n[u+8],c!==ja&&gC(r,n[G].data[u+8]===d)&&mC(o,u,n)?(s=f,u=$c(c),n=zc(c,n)):u=-1}}return i}function ak(e,n,t,r,i,o){const s=n[G],u=s.data[e+8],f=function Hf(e,n,t,r,i){const o=e.providerIndexes,s=n.data,u=1048575&o,c=e.directiveStart,f=o>>20,g=i?u+f:e.directiveEnd;for(let y=r?u:u+f;y<g;y++){const _=s[y];if(y<c&&t===_||y>=c&&_.type===t)return y}if(i){const y=s[c];if(y&&Hr(y)&&y.type===t)return c}return null}(u,s,t,null==r?fs(u)&&o0:r!=s&&!!(3&u.type),i&De.Host&&o===u);return null!==f?ys(n,s,f,u):vi}function ys(e,n,t,r){let i=e[t];const o=n.data;if(function Jx(e){return e instanceof Uc}(i)){const s=i;s.resolving&&function Gt(e,n){throw n&&n.join(" > "),new k(-200,e)}(function Pe(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():W(e)}(o[t]));const u=Vf(s.canSeeViewProviders);s.resolving=!0;const d=s.injectImpl?tn(s.injectImpl):null;Qw(e,r,De.Default);try{i=e[t]=s.factory(void 0,o,e,r),n.firstCreatePass&&t>=r.directiveStart&&function Xx(e,n,t){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=n.type.prototype;if(r){const s=Rw(n);(t.preOrderHooks??=[]).push(e,s),(t.preOrderCheckHooks??=[]).push(e,s)}i&&(t.preOrderHooks??=[]).push(0-e,i),o&&((t.preOrderHooks??=[]).push(e,o),(t.preOrderCheckHooks??=[]).push(e,o))}(t,o[t],n)}finally{null!==d&&tn(d),Vf(u),s.resolving=!1,nC()}}return i}function mC(e,n,t){return!!(t[n+(e>>cC)]&1<<e)}function gC(e,n){return!(e&De.Self||e&De.Host&&n)}class Zt{constructor(n,t){this._tNode=n,this._lView=t}get(n,t,r){return hC(this._tNode,this._lView,n,v(r),t)}}function ck(){return new Zt(Ye(),N())}function sn(e){return Rr(()=>{const n=e.prototype.constructor,t=n[yn]||u0(n),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const o=i[yn]||u0(i);if(o&&o!==t)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function u0(e){return po(e)?()=>{const n=u0(ae(e));return n&&n()}:vn(e)}function yC(e){const n=e[G],t=n.type;return 2===t?n.declTNode:1===t?e[rn]:null}const dk=ci("Attribute",e=>({attributeName:e,__NG_ELEMENT_ID__:()=>function Gf(e){return function sk(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const t=e.attrs;if(t){const r=t.length;let i=0;for(;i<r;){const o=t[i];if(fw(o))break;if(0===o)i+=2;else if("number"==typeof o)for(i++;i<r&&"string"==typeof t[i];)i++;else{if(o===n)return t[i+1];i+=2}}}return null}(Ye(),e)}(e)}));let vC=null;function Uf(e){return _C(function c0(){return vC=vC||new Dx}().parameters(e))}function _C(e){return e.map(n=>function fk(e){const n={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(e)&&e.length>0)for(let t=0;t<e.length;t++){const r=e[t];if(void 0===r)continue;const i=Object.getPrototypeOf(r);if(r instanceof We||"Optional"===i.ngMetadataName)n.optional=!0;else if(r instanceof Ut||"SkipSelf"===i.ngMetadataName)n.skipSelf=!0;else if(r instanceof pt||"Self"===i.ngMetadataName)n.self=!0;else if(r instanceof us||"Host"===i.ngMetadataName)n.host=!0;else if(r instanceof X)n.token=r.token;else if(r instanceof dk){if(void 0===r.attributeName)throw new k(204,!1);n.attribute=r.attributeName}else n.token=r}else n.token=void 0===e||Array.isArray(e)&&0===e.length?null:e;return n}(n))}const pk=He({provide:String,useValue:He});function bC(e){return void 0!==e.useClass}function wC(e){return void 0!==e.useFactory}const vk=ya("Injectable",void 0,void 0,void 0,(e,n)=>function hk(e,n){let t=null,r=null;e.hasOwnProperty(wa)||Object.defineProperty(e,wa,{get:()=>(null===t&&(t=qt().compileInjectable(Tw,`ng:///${e.name}/\u0275prov.js`,function yk(e,n){const t=n||{providedIn:null},r={name:e.name,type:e,typeArgumentCount:0,providedIn:t.providedIn};return(bC(t)||wC(t))&&void 0!==t.deps&&(r.deps=_C(t.deps)),bC(t)?r.useClass=t.useClass:function mk(e){return pk in e}(t)?r.useValue=t.useValue:wC(t)?r.useFactory=t.useFactory:function gk(e){return void 0!==e.useExisting}(t)&&(r.useExisting=t.useExisting),r}(e,n))),t)}),e.hasOwnProperty(yn)||Object.defineProperty(e,yn,{get:()=>{if(null===r){const i=qt();r=i.compileFactory(Tw,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,typeArgumentCount:0,deps:Uf(e),target:i.FactoryTarget.Injectable})}return r},configurable:!0})}(e,n));function CC(e,n=null,t=null,r){const i=EC(e,n,t,r);return i.resolveInjectorInitializers(),i}function EC(e,n=null,t=null,r,i=new Set){const o=[t||Re,sx(e)];return r=r||("object"==typeof e?void 0:Ct(e)),new xa(o,n||Df(),r||null,i)}class tt{static#e=this.THROW_IF_NOT_FOUND=as;static#t=this.NULL=new _f;static create(n,t){if(Array.isArray(n))return CC({name:""},t,n,"");{const r=n.name??"";return CC({name:r},n.parent,n.providers,r)}}static#n=this.\u0275prov=Z({token:tt,providedIn:"any",factory:()=>l(dw)});static#r=this.__NG_ELEMENT_ID__=-1}new z("").__NG_ELEMENT_ID__=e=>{const n=Ye();if(null===n)throw new k(204,!1);if(2&n.type)return n.value;if(e&De.Optional)return null;throw new k(204,!1)};function l0(e){return e.ngOriginalError}const SC=!0;let qc=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=wk;static#t=this.__NG_ENV_ID__=t=>t}return e})();class bk extends qc{constructor(n){super(),this._lView=n}onDestroy(n){return kf(this._lView,n),()=>function zg(e,n){if(null===e[vo])return;const t=e[vo].indexOf(n);-1!==t&&e[vo].splice(t,1)}(this._lView,n)}}function wk(){return new bk(N())}let vs=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new nc(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const t=this.taskId++;return this.pendingTasks.add(t),t}remove(t){this.pendingTasks.delete(t),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275prov=Z({token:e,providedIn:"root",factory:()=>new e})}return e})();const Ge=class Ck extends bt{constructor(n=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=n,Sw()&&(this.destroyRef=p(qc,{optional:!0})??void 0,this.pendingTasks=p(vs,{optional:!0})??void 0)}emit(n){const t=ie(null);try{super.next(n)}finally{ie(t)}}subscribe(n,t,r){let i=n,o=t||(()=>null),s=r;if(n&&"object"==typeof n){const c=n;i=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),s&&(s=this.wrapInTimeout(s)));const u=super.subscribe({next:i,error:o,complete:s});return n instanceof ln&&n.add(u),u}wrapInTimeout(n){return t=>{const r=this.pendingTasks?.add();setTimeout(()=>{n(t),void 0!==r&&this.pendingTasks?.remove(r)})}}};function $f(...e){}function TC(e){let n,t;function r(){e=$f;try{void 0!==t&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(t),void 0!==n&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{e(),r()}),"function"==typeof requestAnimationFrame&&(t=requestAnimationFrame(()=>{e(),r()})),()=>r()}function MC(e){return queueMicrotask(()=>e()),()=>{e=$f}}const d0="isAngularZone",zf=d0+"_ID";let Ek=0;class Le{constructor(n){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ge(!1),this.onMicrotaskEmpty=new Ge(!1),this.onStable=new Ge(!1),this.onError=new Ge(!1);const{enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=SC}=n;if(typeof Zone>"u")throw new k(908,!1);Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&r,s.shouldCoalesceRunChangeDetection=i,s.callbackScheduled=!1,s.scheduleInRootZone=o,function Tk(e){const n=()=>{!function Sk(e){function n(){TC(()=>{e.callbackScheduled=!1,h0(e),e.isCheckStableRunning=!0,f0(e),e.isCheckStableRunning=!1})}e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,e.scheduleInRootZone?Zone.root.run(()=>{n()}):e._outer.run(()=>{n()}),h0(e))}(e)},t=Ek++;e._inner=e._inner.fork({name:"angular",properties:{[d0]:!0,[zf]:t,[zf+t]:!0},onInvokeTask:(r,i,o,s,u,c)=>{if(function Mk(e){return AC(e,"__ignore_ng_zone__")}(c))return r.invokeTask(o,s,u,c);try{return IC(e),r.invokeTask(o,s,u,c)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&n(),PC(e)}},onInvoke:(r,i,o,s,u,c,d)=>{try{return IC(e),r.invoke(o,s,u,c,d)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function Ik(e){return AC(e,"__scheduler_tick__")}(c)&&n(),PC(e)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,h0(e),f0(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,i,o,s)=>(r.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(s)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(d0)}static assertInAngularZone(){if(!Le.isInAngularZone())throw new k(909,!1)}static assertNotInAngularZone(){if(Le.isInAngularZone())throw new k(909,!1)}run(n,t,r){return this._inner.run(n,t,r)}runTask(n,t,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,n,Dk,$f,$f);try{return o.runTask(s,t,r)}finally{o.cancelTask(s)}}runGuarded(n,t,r){return this._inner.runGuarded(n,t,r)}runOutsideAngular(n){return this._outer.run(n)}}const Dk={};function f0(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 h0(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled)}function IC(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function PC(e){e._nesting--,f0(e)}class p0{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ge,this.onMicrotaskEmpty=new Ge,this.onStable=new Ge,this.onError=new Ge}run(n,t,r){return n.apply(t,r)}runGuarded(n,t,r){return n.apply(t,r)}runOutsideAngular(n){return n()}runTask(n,t,r,i){return n.apply(t,r)}}function AC(e,n){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0]?.data?.[n]}class _i{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n);this._console.error("ERROR",n),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&l0(n);for(;t&&l0(t);)t=l0(t);return t||null}}const Ak=new z("",{providedIn:"root",factory:()=>{const e=p(Le),n=p(_i);return t=>e.runOutsideAngular(()=>n.handleError(t))}});function kC(e,n){return fo(e,n)}const kk=(kC.required=function xk(e){return fo(Or,e)},kC);function Nk(){return Ga(Ye(),N())}function Ga(e,n){return new Ln(bn(e,n))}let Ln=(()=>{class e{constructor(t){this.nativeElement=t}static#e=this.__NG_ELEMENT_ID__=Nk}return e})();function Zc(e){return!(128&~e.flags)}Symbol;const y0=new Map;let Fk=0;function v0(e){y0.delete(e[La])}const qf="__ngContext__";function hn(e,n){Wt(n)?(e[qf]=n[La],function Vk(e){y0.set(e[La],e)}(n)):e[qf]=n}function UC(e){return zC(e[Fc])}function $C(e){return zC(e[Br])}function zC(e){for(;null!==e&&!fn(e);)e=e[Br];return e}let b0;function _o(){if(void 0!==b0)return b0;if(typeof document<"u")return document;throw new k(210,!1)}const $a=new z("",{providedIn:"root",factory:()=>t2}),t2="ng",JC=new z(""),zi=new z("",{providedIn:"platform",factory:()=>"unknown"}),e1=new z(""),t1=new z("",{providedIn:"root",factory:()=>_o().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let n1=()=>null;function M0(e,n,t=!1){return n1(e,n,t)}const l1=new z("",{providedIn:"root",factory:()=>!1});let th,nh;function Wa(e){return function k0(){if(void 0===th&&(th=null,Ke.trustedTypes))try{th=Ke.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return th}()?.createHTML(e)||e}function h1(e){return function N0(){if(void 0===nh&&(nh=null,Ke.trustedTypes))try{nh=Ke.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return nh}()?.createHTML(e)||e}class bs{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${rf})`}}class m2 extends bs{getTypeName(){return"HTML"}}class g2 extends bs{getTypeName(){return"Style"}}class y2 extends bs{getTypeName(){return"Script"}}class v2 extends bs{getTypeName(){return"URL"}}class _2 extends bs{getTypeName(){return"ResourceURL"}}function Kn(e){return e instanceof bs?e.changingThisBreaksApplicationSecurity:e}function bi(e,n){const t=function b2(e){return e instanceof bs&&e.getTypeName()||null}(e);if(null!=t&&t!==n){if("ResourceURL"===t&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${t} (see ${rf})`)}return t===n}class T2{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const t=(new window.DOMParser).parseFromString(Wa(n),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(n):(t.firstChild?.remove(),t)}catch{return null}}}class M2{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const t=this.inertDocument.createElement("template");return t.innerHTML=Wa(n),t}}const P2=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function rh(e){return(e=String(e)).match(P2)?e:"unsafe:"+e}function qi(e){const n={};for(const t of e.split(","))n[t]=!0;return n}function tl(...e){const n={};for(const t of e)for(const r in t)t.hasOwnProperty(r)&&(n[r]=!0);return n}const y1=qi("area,br,col,hr,img,wbr"),v1=qi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),_1=qi("rp,rt"),O0=tl(y1,tl(v1,qi("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")),tl(_1,qi("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")),tl(_1,v1)),R0=qi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),b1=tl(R0,qi("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),qi("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")),A2=qi("script,style,template");class x2{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let t=n.firstChild,r=!0,i=[];for(;t;)if(t.nodeType===Node.ELEMENT_NODE?r=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,r&&t.firstChild)i.push(t),t=O2(t);else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let o=N2(t);if(o){t=o;break}t=i.pop()}return this.buf.join("")}startElement(n){const t=w1(n).toLowerCase();if(!O0.hasOwnProperty(t))return this.sanitizedSomething=!0,!A2.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const r=n.attributes;for(let i=0;i<r.length;i++){const o=r.item(i),s=o.name,u=s.toLowerCase();if(!b1.hasOwnProperty(u)){this.sanitizedSomething=!0;continue}let c=o.value;R0[u]&&(c=rh(c)),this.buf.push(" ",s,'="',E1(c),'"')}return this.buf.push(">"),!0}endElement(n){const t=w1(n).toLowerCase();O0.hasOwnProperty(t)&&!y1.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(n){this.buf.push(E1(n))}}function N2(e){const n=e.nextSibling;if(n&&e!==n.previousSibling)throw C1(n);return n}function O2(e){const n=e.firstChild;if(n&&function k2(e,n){return(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,n))throw C1(n);return n}function w1(e){const n=e.nodeName;return"string"==typeof n?n:"FORM"}function C1(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const R2=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,F2=/([^\#-~ |!])/g;function E1(e){return e.replace(/&/g,"&").replace(R2,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(F2,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let ih;function D1(e,n){let t=null;try{ih=ih||function g1(e){const n=new M2(e);return function I2(){try{return!!(new window.DOMParser).parseFromString(Wa(""),"text/html")}catch{return!1}}()?new T2(n):n}(e);let r=n?String(n):"";t=ih.getInertBodyElement(r);let i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=t.innerHTML,t=ih.getInertBodyElement(r)}while(r!==o);return Wa((new x2).sanitizeChildren(F0(t)||t))}finally{if(t){const r=F0(t)||t;for(;r.firstChild;)r.firstChild.remove()}}}function F0(e){return"content"in e&&function L2(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Xn=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Xn||{});function wi(e){const n=rl();return n?h1(n.sanitize(Xn.HTML,e)||""):bi(e,"HTML")?h1(Kn(e)):D1(_o(),W(e))}function nl(e){const n=rl();return n?n.sanitize(Xn.URL,e)||"":bi(e,"URL")?Kn(e):rh(W(e))}function rl(){const e=N();return e&&e[pi].sanitizer}const $2=/^>|^->|<!--|-->|--!>|<!-$/g,z2=/(<|>)/g,q2="\u200b$1\u200b";function A1(e){return e.ownerDocument}var bo=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(bo||{});let j0;function B0(e,n){return j0(e,n)}function Ya(e,n,t,r,i){if(null!=r){let o,s=!1;fn(r)?o=r:Wt(r)&&(s=!0,r=r[mt]);const u=Fe(r);0===e&&null!==t?null==i?j1(n,t,u):ws(n,t,u,i||null,!0):1===e&&null!==t?ws(n,t,u,i||null,!0):2===e?function ol(e,n,t){e.removeChild(null,n,t)}(n,u,s):3===e&&n.destroyNode(u),null!=o&&function dN(e,n,t,r,i){const o=t[mi];o!==Fe(t)&&Ya(n,e,r,o,i);for(let u=Mt;u<t.length;u++){const c=t[u];lh(c[G],c,e,n,r,o)}}(n,e,o,t,i)}}function G0(e,n){return e.createComment(function T1(e){return e.replace($2,n=>n.replace(z2,q2))}(n))}function ah(e,n,t){return e.createElement(n,t)}function F1(e,n){n[pi].changeDetectionScheduler?.notify(9),lh(e,n,n[de],2,null,null)}function L1(e,n){const t=e[Va],r=n[Ot];(Wt(r)||n[gt]!==r[Ot][gt])&&(e[oe]|=If.HasTransplantedViews),null===t?e[Va]=[n]:t.push(n)}function U0(e,n){const t=e[Va],r=t.indexOf(n);t.splice(r,1)}function il(e,n){if(e.length<=Mt)return;const t=Mt+n,r=e[t];if(r){const i=r[ds];null!==i&&i!==e&&U0(i,r),n>0&&(e[t-1][Br]=r[Br]);const o=yf(e,Mt+n);!function rN(e,n){F1(e,n),n[mt]=null,n[rn]=null}(r[G],r);const s=o[Hi];null!==s&&s.detachView(o[G]),r[Ot]=null,r[Br]=null,r[oe]&=-129}return r}function uh(e,n){if(!(256&n[oe])){const t=n[de];t.destroyNode&&lh(e,n,t,3,null,null),function oN(e){let n=e[Fc];if(!n)return $0(e[G],e);for(;n;){let t=null;if(Wt(n))t=n[Fc];else{const r=n[Mt];r&&(t=r)}if(!t){for(;n&&!n[Br]&&n!==e;)Wt(n)&&$0(n[G],n),n=n[Ot];null===n&&(n=e),Wt(n)&&$0(n[G],n),t=n&&n[Br]}n=t}}(n)}}function $0(e,n){if(256&n[oe])return;const t=ie(null);try{n[oe]&=-129,n[oe]|=256,n[gr]&&io(n[gr]),function uN(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let r=0;r<t.length;r+=2){const i=n[t[r]];if(!(i instanceof Uc)){const o=t[r+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){const u=i[o[s]],c=o[s+1];gi(4,u,c);try{c.call(u)}finally{gi(5,u,c)}}else{gi(4,i,o);try{o.call(i)}finally{gi(5,i,o)}}}}}(e,n),function aN(e,n){const t=e.cleanup,r=n[Oa];if(null!==t)for(let o=0;o<t.length-1;o+=2)if("string"==typeof t[o]){const s=t[o+3];s>=0?r[s]():r[-s].unsubscribe(),o+=2}else t[o].call(r[t[o+1]]);null!==r&&(n[Oa]=null);const i=n[vo];if(null!==i){n[vo]=null;for(let o=0;o<i.length;o++)(0,i[o])()}}(e,n),1===n[G].type&&n[de].destroy();const r=n[ds];if(null!==r&&fn(n[Ot])){r!==n[Ot]&&U0(r,n);const i=n[Hi];null!==i&&i.detachView(e)}v0(n)}finally{ie(t)}}function z0(e,n,t){return function V1(e,n,t){let r=n;for(;null!==r&&168&r.type;)r=(n=r).parent;if(null===r)return t[mt];{const{componentOffset:i}=r;if(i>-1){const{encapsulation:o}=e.data[r.directiveStart+i];if(o===Vr.None||o===Vr.Emulated)return null}return bn(r,t)}}(e,n.parent,t)}function ws(e,n,t,r,i){e.insertBefore(n,t,r,i)}function j1(e,n,t){e.appendChild(n,t)}function B1(e,n,t,r,i){null!==r?ws(e,n,t,r,i):j1(e,n,t)}function q0(e,n){return e.parentNode(n)}function H1(e,n,t){return U1(e,n,t)}let W0,U1=function G1(e,n,t){return 40&e.type?bn(e,t):null};function ch(e,n,t,r){const i=z0(e,r,n),o=n[de],u=H1(r.parent||n[rn],r,n);if(null!=i)if(Array.isArray(t))for(let c=0;c<t.length;c++)B1(o,i,t[c],u,!1);else B1(o,i,t,u,!1);void 0!==W0&&W0(o,r,n,t,i)}function Cs(e,n){if(null!==n){const t=n.type;if(3&t)return bn(n,e);if(4&t)return Z0(-1,e[n.index]);if(8&t){const r=n.child;if(null!==r)return Cs(e,r);{const i=e[n.index];return fn(i)?Z0(-1,i):Fe(i)}}if(128&t)return Cs(e,n.next);if(32&t)return B0(n,e)()||Fe(e[n.index]);{const r=z1(e,n);return null!==r?Array.isArray(r)?r[0]:Cs(Gi(e[gt]),r):Cs(e,n.next)}}return null}function z1(e,n){return null!==n?e[gt][rn].projection[n.projection]:null}function Z0(e,n){const t=Mt+e+1;if(t<n.length){const r=n[t],i=r[G].firstChild;if(null!==i)return Cs(r,i)}return n[mi]}function Y0(e,n,t,r,i,o,s){for(;null!=t;){if(128===t.type){t=t.next;continue}const u=r[t.index],c=t.type;if(s&&0===n&&(u&&hn(Fe(u),r),t.flags|=2),32&~t.flags)if(8&c)Y0(e,n,t.child,r,i,o,!1),Ya(n,e,i,u,o);else if(32&c){const d=B0(t,r);let f;for(;f=d();)Ya(n,e,i,f,o);Ya(n,e,i,u,o)}else 16&c?W1(e,n,r,t,i,o):Ya(n,e,i,u,o);t=s?t.projectionNext:t.next}}function lh(e,n,t,r,i,o){Y0(t,r,e.firstChild,n,i,o,!1)}function W1(e,n,t,r,i,o){const s=t[gt],c=s[rn].projection[r.projection];if(Array.isArray(c))for(let d=0;d<c.length;d++)Ya(n,e,i,c[d],o);else{let d=c;const f=s[Ot];Zc(r)&&(d.flags|=128),Y0(e,n,d,f,i,o,!0)}}function Z1(e,n,t){""===t?e.removeAttribute(n,"class"):e.setAttribute(n,"class",t)}function Y1(e,n,t){const{mergedAttrs:r,classes:i,styles:o}=t;null!==r&&Tg(e,n,r),null!==i&&Z1(e,n,i),null!==o&&function hN(e,n,t){e.setAttribute(n,"style",t)}(e,n,o)}const pe={};function x(e=1){K1(be(),N(),on()+e,!1)}function K1(e,n,t,r){if(!r)if(3&~n[oe]){const o=e.preOrderHooks;null!==o&&Lf(n,o,0,t)}else{const o=e.preOrderCheckHooks;null!==o&&Ff(n,o,t)}ms(t)}function P(e,n=De.Default){const t=N();return null===t?l(e,n):hC(Ye(),t,ae(e),n)}function X1(e,n,t,r,i,o){const s=ie(null);try{let u=null;i&yo.SignalBased&&(u=n[r][$]),null!==u&&void 0!==u.transformFn&&(o=u.transformFn(o)),i&yo.HasDecoratorInputTransform&&(o=e.inputTransforms[r].call(n,o)),null!==e.setInput?e.setInput(n,u,o,t,r):Ow(n,u,r,o)}finally{ie(s)}}function dh(e,n,t,r,i,o,s,u,c,d,f){const m=n.blueprint.slice();return m[mt]=i,m[oe]=204|r,(null!==d||e&&2048&e[oe])&&(m[oe]|=2048),Bw(m),m[Ot]=m[Ra]=e,m[at]=t,m[pi]=s||e&&e[pi],m[de]=u||e&&e[de],m[Rt]=c||e&&e[Rt]||null,m[rn]=o,m[La]=function Lk(){return Fk++}(),m[_n]=f,m[Iw]=d,m[gt]=2==n.type?e[gt]:m,m}function Es(e,n,t,r,i){let o=e.data[n];if(null===o)o=function K0(e,n,t,r,i){const o=zw(),s=Wg(),c=e.data[n]=function CN(e,n,t,r,i,o){let s=n?n.injectorIndex:-1,u=0;return ps()&&(u|=128),{type:t,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:u,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?o:o&&o.parent,t,n,r,i);return null===e.firstChild&&(e.firstChild=c),null!==o&&(s?null==o.child&&null!==c.parent&&(o.child=c):null===o.next&&(o.next=c,c.prev=o)),c}(e,n,t,r,i),function Gx(){return fe.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=t,o.value=r,o.attrs=i;const s=function Hc(){const e=fe.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}();o.injectorIndex=null===s?-1:s.injectorIndex}return Ur(o,!0),o}function sl(e,n,t,r){if(0===t)return-1;const i=n.length;for(let o=0;o<t;o++)n.push(r),e.blueprint.push(r),e.data.push(null);return i}function Q1(e,n,t,r,i){const o=on(),s=2&r;try{ms(-1),s&&n.length>ee&&K1(e,n,ee,!1),gi(s?2:0,i),t(r,i)}finally{ms(o),gi(s?3:1,i)}}function X0(e,n,t){if(Vg(n)){const r=ie(null);try{const o=n.directiveEnd;for(let s=n.directiveStart;s<o;s++){const u=e.data[s];u.contentQueries&&u.contentQueries(1,t[s],s)}}finally{ie(r)}}}function Q0(e,n,t){$w()&&(function PN(e,n,t,r){const i=t.directiveStart,o=t.directiveEnd;fs(t)&&function FN(e,n,t){const r=bn(n,e),i=J1(t);let s=16;t.signals?s=4096:t.onPush&&(s=64);const u=fh(e,dh(e,i,null,s,r,n,null,e[pi].rendererFactory.createRenderer(r,t),null,null,null));e[n.index]=u}(n,t,e.data[i+t.componentOffset]),e.firstCreatePass||jf(t,n),hn(r,n);const s=t.initialInputs;for(let u=i;u<o;u++){const c=e.data[u],d=ys(n,e,u,t);hn(d,n),null!==s&&LN(0,u-i,d,c,0,s),Hr(c)&&(Yn(t.index,n)[at]=ys(n,e,u,t))}}(e,n,t,bn(t,n)),!(64&~t.flags)&&iE(e,n,t))}function J0(e,n,t=bn){const r=n.localNames;if(null!==r){let i=n.index+1;for(let o=0;o<r.length;o+=2){const s=r[o+1],u=-1===s?t(n,e):e[s];e[i++]=u}}}function J1(e){const n=e.tView;return null===n||n.incompleteFirstPass?e.tView=ey(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):n}function ey(e,n,t,r,i,o,s,u,c,d,f){const m=ee+r,g=m+i,y=function gN(e,n){const t=[];for(let r=0;r<n;r++)t.push(r<e?null:pe);return t}(m,g),_="function"==typeof d?d():d;return y[G]={type:e,blueprint:y,template:t,queries:null,viewQuery:u,declTNode:n,data:y.slice().fill(null,m),bindingStartIndex:m,expandoStartIndex:g,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:c,consts:_,incompleteFirstPass:!1,ssrId:f}}let eE=()=>null;function tE(e,n,t,r,i){for(let o in n){if(!n.hasOwnProperty(o))continue;const s=n[o];if(void 0===s)continue;r??={};let u,c=yo.None;Array.isArray(s)?(u=s[0],c=s[1]):u=s;let d=o;if(null!==i){if(!i.hasOwnProperty(o))continue;d=i[o]}0===e?nE(r,t,d,u,c):nE(r,t,d,u)}return r}function nE(e,n,t,r,i){let o;e.hasOwnProperty(t)?(o=e[t]).push(n,r):o=e[t]=[n,r],void 0!==i&&o.push(i)}function jn(e,n,t,r,i,o,s,u){const c=bn(n,t);let f,d=n.inputs;!u&&null!=d&&(f=d[r])?(oy(e,t,f,r,i),fs(n)&&function SN(e,n){const t=Yn(n,e);16&t[oe]||(t[oe]|=64)}(t,n.index)):3&n.type&&(r=function DN(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),i=null!=s?s(i,n.value||"",r):i,o.setProperty(c,r,i))}function ty(e,n,t,r){if($w()){const i=null===r?null:{"":-1},o=function xN(e,n){const t=e.directiveRegistry;let r=null,i=null;if(t)for(let o=0;o<t.length;o++){const s=t[o];if(gw(n,s.selectors,!1))if(r||(r=[]),Hr(s))if(null!==s.findHostDirectiveDefs){const u=[];i=i||new Map,s.findHostDirectiveDefs(s,u,i),r.unshift(...u,s),ny(e,n,u.length)}else r.unshift(s),ny(e,n,0);else i=i||new Map,s.findHostDirectiveDefs?.(s,r,i),r.push(s)}return null===r?null:[r,i]}(e,t);let s,u;null===o?s=u=null:[s,u]=o,null!==s&&rE(e,n,t,s,i,u),i&&function kN(e,n,t){if(n){const r=e.localNames=[];for(let i=0;i<n.length;i+=2){const o=t[n[i+1]];if(null==o)throw new k(-301,!1);r.push(n[i],o)}}}(t,r,i)}t.mergedAttrs=Oc(t.mergedAttrs,t.attrs)}function rE(e,n,t,r,i,o){for(let d=0;d<r.length;d++)a0(jf(t,n),e,r[d].type);!function ON(e,n,t){e.flags|=1,e.directiveStart=n,e.directiveEnd=n+t,e.providerIndexes=n}(t,e.data.length,r.length);for(let d=0;d<r.length;d++){const f=r[d];f.providersResolver&&f.providersResolver(f)}let s=!1,u=!1,c=sl(e,n,r.length,null);for(let d=0;d<r.length;d++){const f=r[d];t.mergedAttrs=Oc(t.mergedAttrs,f.hostAttrs),RN(e,t,n,c,f),NN(c,f,i),null!==f.contentQueries&&(t.flags|=4),(null!==f.hostBindings||null!==f.hostAttrs||0!==f.hostVars)&&(t.flags|=64);const m=f.type.prototype;!s&&(m.ngOnChanges||m.ngOnInit||m.ngDoCheck)&&((e.preOrderHooks??=[]).push(t.index),s=!0),!u&&(m.ngOnChanges||m.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(t.index),u=!0),c++}!function EN(e,n,t){const i=n.directiveEnd,o=e.data,s=n.attrs,u=[];let c=null,d=null;for(let f=n.directiveStart;f<i;f++){const m=o[f],g=t?t.get(m):null,_=g?g.outputs:null;c=tE(0,m.inputs,f,c,g?g.inputs:null),d=tE(1,m.outputs,f,d,_);const C=null===c||null===s||Mg(n)?null:VN(c,f,s);u.push(C)}null!==c&&(c.hasOwnProperty("class")&&(n.flags|=8),c.hasOwnProperty("style")&&(n.flags|=16)),n.initialInputs=u,n.inputs=c,n.outputs=d}(e,t,o)}function iE(e,n,t){const r=t.directiveStart,i=t.directiveEnd,o=t.index,s=function $x(){return fe.lFrame.currentDirectiveIndex}();try{ms(o);for(let u=r;u<i;u++){const c=e.data[u],d=n[u];Yg(u),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&AN(c,d)}}finally{ms(-1),Yg(s)}}function AN(e,n){null!==e.hostBindings&&e.hostBindings(1,n)}function ny(e,n,t){n.componentOffset=t,(e.components??=[]).push(n.index)}function NN(e,n,t){if(t){if(n.exportAs)for(let r=0;r<n.exportAs.length;r++)t[n.exportAs[r]]=e;Hr(n)&&(t[""]=e)}}function RN(e,n,t,r,i){e.data[r]=i;const o=i.factory||(i.factory=vn(i.type)),s=new Uc(o,Hr(i),P);e.blueprint[r]=s,t[r]=s,function MN(e,n,t,r,i){const o=i.hostBindings;if(o){let s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);const u=~n.index;(function IN(e){let n=e.length;for(;n>0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(s)!=u&&s.push(u),s.push(t,r,o)}}(e,n,r,sl(e,t,i.hostVars,pe),i)}function Ci(e,n,t,r,i,o){const s=bn(e,n);!function ry(e,n,t,r,i,o,s){if(null==o)e.removeAttribute(n,i,t);else{const u=null==s?W(o):s(o,r||"",i);e.setAttribute(n,i,u,t)}}(n[de],s,o,e.value,t,r,i)}function LN(e,n,t,r,i,o){const s=o[n];if(null!==s)for(let u=0;u<s.length;)X1(r,t,s[u++],s[u++],s[u++],s[u++])}function VN(e,n,t){let r=null,i=0;for(;i<t.length;){const o=t[i];if(0!==o)if(5!==o){if("number"==typeof o)break;if(e.hasOwnProperty(o)){null===r&&(r=[]);const s=e[o];for(let u=0;u<s.length;u+=3)if(s[u]===n){r.push(o,s[u+1],s[u+2],t[i+1]);break}}i+=2}else i+=2;else i+=4}return r}function oE(e,n,t,r){return[e,!0,0,n,null,r,null,t,null,null]}function sE(e,n){const t=e.contentQueries;if(null!==t){const r=ie(null);try{for(let i=0;i<t.length;i+=2){const s=t[i+1];if(-1!==s){const u=e.data[s];Of(t[i]),u.contentQueries(2,n[s],s)}}}finally{ie(r)}}}function fh(e,n){return e[Fc]?e[Mw][Br]=n:e[Fc]=n,e[Mw]=n,n}function iy(e,n,t){Of(0);const r=ie(null);try{n(e,t)}finally{ie(r)}}function cE(e,n,t){return(null===e||Hr(e))&&(t=function Gg(e){for(;Array.isArray(e);){if("object"==typeof e[Lg])return e;e=e[mt]}return null}(t[n.index])),t[de]}function hh(e,n){const t=e[Rt],r=t?t.get(_i,null):null;r&&r.handleError(n)}function oy(e,n,t,r,i){for(let o=0;o<t.length;){const s=t[o++],u=t[o++],c=t[o++];X1(e.data[s],n[s],r,u,c,i)}}function jN(e,n){const t=Yn(n,e),r=t[G];!function BN(e,n){for(let t=n.length;t<e.blueprint.length;t++)n.push(e.blueprint[t])}(r,t);const i=t[mt];null!==i&&null===t[_n]&&(t[_n]=M0(i,t[Rt])),sy(r,t,t[at])}function sy(e,n,t){Qg(n);try{const r=e.viewQuery;null!==r&&iy(1,r,t);const i=e.template;null!==i&&Q1(e,n,i,1,t),e.firstCreatePass&&(e.firstCreatePass=!1),n[Hi]?.finishViewCreation(e),e.staticContentQueries&&sE(e,n),e.staticViewQueries&&iy(2,e.viewQuery,t);const o=e.components;null!==o&&function HN(e,n){for(let t=0;t<n.length;t++)jN(e,n[t])}(n,o)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{n[oe]&=-5,Jg()}}function Ka(e,n,t,r){const i=ie(null);try{const o=n.tView,c=dh(e,o,t,4096&e[oe]?4096:16,null,n,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null);c[ds]=e[n.index];const f=e[Hi];return null!==f&&(c[Hi]=f.createEmbeddedView(o)),sy(o,c,t),c}finally{ie(i)}}function lE(e,n){const t=Mt+n;if(t<e.length)return e[t]}function Ds(e,n){return!n||null===n.firstChild||Zc(e)}function Xa(e,n,t,r=!0){const i=n[G];if(function sN(e,n,t,r){const i=Mt+r,o=t.length;r>0&&(t[i-1][Br]=n),r<o-Mt?(n[Br]=t[i],uw(t,Mt+r,n)):(t.push(n),n[Br]=null),n[Ot]=t;const s=n[ds];null!==s&&t!==s&&L1(s,n);const u=n[Hi];null!==u&&u.insertView(e),$g(n),n[oe]|=128}(i,n,e,t),r){const s=Z0(t,e),u=n[de],c=q0(u,e[mi]);null!==c&&function iN(e,n,t,r,i,o){r[mt]=i,r[rn]=n,lh(e,r,t,1,i,o)}(i,e[rn],u,n,c,s)}const o=n[_n];null!==o&&null!==o.firstChild&&(o.firstChild=null)}function ay(e,n){const t=il(e,n);return void 0!==t&&uh(t[G],t),t}function al(e,n,t,r,i=!1){for(;null!==t;){if(128===t.type){t=i?t.projectionNext:t.next;continue}const o=n[t.index];null!==o&&r.push(Fe(o)),fn(o)&&dE(o,r);const s=t.type;if(8&s)al(e,n,t.child,r);else if(32&s){const u=B0(t,n);let c;for(;c=u();)r.push(c)}else if(16&s){const u=z1(n,t);if(Array.isArray(u))r.push(...u);else{const c=Gi(n[gt]);al(c[G],c,u,r,!0)}}t=i?t.projectionNext:t.next}return r}function dE(e,n){for(let t=Mt;t<e.length;t++){const r=e[t],i=r[G].firstChild;null!==i&&al(r[G],r,i,n)}e[mi]!==e[mt]&&n.push(e[mi])}let fE=[];const zN={...Bt,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{xf(e.lView)},consumerOnSignalRead(){this.lView[gr]=this}},WN={...Bt,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let n=Gi(e.lView);for(;n&&!hE(n[G]);)n=Gi(n);n&&Hw(n)},consumerOnSignalRead(){this.lView[gr]=this}};function hE(e){return 2!==e.type}const ZN=100;function ph(e,n=!0,t=0){const r=e[pi],i=r.rendererFactory;i.begin?.();try{!function YN(e,n){const t=Zw();try{Yw(!0),uy(e,n);let r=0;for(;Af(e);){if(r===ZN)throw new k(103,!1);r++,uy(e,1)}}finally{Yw(t)}}(e,t)}catch(s){throw n&&hh(e,s),s}finally{i.end?.(),r.inlineEffectRunner?.flush()}}function KN(e,n,t,r){const i=n[oe];if(!(256&~i))return;n[pi].inlineEffectRunner?.flush(),Qg(n);let u=!0,c=null,d=null;hE(e)?(d=function GN(e){return e[gr]??function UN(e){const n=fE.pop()??Object.create(zN);return n.lView=e,n}(e)}(n),c=et(d)):null===function U(){return ke}()?(u=!1,d=function qN(e){const n=e[gr]??Object.create(WN);return n.lView=e,n}(n),c=et(d)):n[gr]&&(io(n[gr]),n[gr]=null);try{Bw(n),function Kw(e){return fe.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==t&&Q1(e,n,t,2,r);const f=!(3&~i);if(f){const y=e.preOrderCheckHooks;null!==y&&Ff(n,y,null)}else{const y=e.preOrderHooks;null!==y&&Lf(n,y,0,null),e0(n,0)}if(function XN(e){for(let n=UC(e);null!==n;n=$C(n)){if(!(n[oe]&If.HasTransplantedViews))continue;const t=n[Va];for(let r=0;r<t.length;r++)Hw(t[r])}}(n),mE(n,0),null!==e.contentQueries&&sE(e,n),f){const y=e.contentCheckHooks;null!==y&&Ff(n,y)}else{const y=e.contentHooks;null!==y&&Lf(n,y,1),e0(n,1)}!function mN(e,n){const t=e.hostBindingOpCodes;if(null!==t)try{for(let r=0;r<t.length;r++){const i=t[r];if(i<0)ms(~i);else{const o=i,s=t[++r],u=t[++r];Ux(s,o),u(2,n[o])}}}finally{ms(-1)}}(e,n);const m=e.components;null!==m&&yE(n,m,0);const g=e.viewQuery;if(null!==g&&iy(2,g,r),f){const y=e.viewCheckHooks;null!==y&&Ff(n,y)}else{const y=e.viewHooks;null!==y&&Lf(n,y,2),e0(n,2)}if(!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),n[Tf]){for(const y of n[Tf])y();n[Tf]=null}n[oe]&=-73}catch(f){throw xf(n),f}finally{null!==d&&(ht(d,c),u&&function $N(e){e.lView[gr]!==e&&(e.lView=null,fE.push(e))}(d)),Jg()}}function mE(e,n){for(let t=UC(e);null!==t;t=$C(t))for(let r=Mt;r<t.length;r++)gE(t[r],n)}function QN(e,n,t){gE(Yn(n,e),t)}function gE(e,n){Ug(e)&&uy(e,n)}function uy(e,n){const r=e[G],i=e[oe],o=e[gr];let s=!!(0===n&&16&i);if(s||=!!(64&i&&0===n),s||=!!(1024&i),s||=!(!o?.dirty||!Pr(o)),s||=!1,o&&(o.dirty=!1),e[oe]&=-9217,s)KN(r,e,r.template,e[at]);else if(8192&i){mE(e,1);const u=r.components;null!==u&&yE(e,u,1)}}function yE(e,n,t){for(let r=0;r<n.length;r++)QN(e,n[r],t)}function ul(e,n){const t=Zw()?64:1088;for(e[pi].changeDetectionScheduler?.notify(n);e;){e[oe]|=t;const r=Gi(e);if(Vc(e)&&!r)return e;e=r}return null}class cl{get rootNodes(){const n=this._lView,t=n[G];return al(t,n,t.firstChild,[])}constructor(n,t,r=!0){this._lView=n,this._cdRefInjectingView=t,this.notifyErrorHandler=r,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[at]}set context(n){this._lView[at]=n}get destroyed(){return!(256&~this._lView[oe])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[Ot];if(fn(n)){const t=n[8],r=t?t.indexOf(this):-1;r>-1&&(il(n,r),yf(t,r))}this._attachedToViewContainer=!1}uh(this._lView[G],this._lView)}onDestroy(n){kf(this._lView,n)}markForCheck(){ul(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[oe]&=-129}reattach(){$g(this._lView),this._lView[oe]|=128}detectChanges(){this._lView[oe]|=1024,ph(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new k(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const n=Vc(this._lView),t=this._lView[ds];null!==t&&!n&&U0(t,this._lView),F1(this._lView[G],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new k(902,!1);this._appRef=n;const t=Vc(this._lView),r=this._lView[ds];null!==r&&!t&&L1(r,this._lView),$g(this._lView)}}let Ei=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=tO}return e})();const JN=Ei,eO=class extends JN{constructor(n,t,r){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,t){return this.createEmbeddedViewImpl(n,t)}createEmbeddedViewImpl(n,t,r){const i=Ka(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:t,dehydratedView:r});return new cl(i)}};function tO(){return mh(Ye(),N())}function mh(e,n){return 4&e.type?new eO(n,e,Ga(e,n)):null}let VE=()=>null;function Ts(e,n){return VE(e,n)}class Ja{}const yl=new z("",{providedIn:"root",factory:()=>!1}),jE=new z(""),_y=new z("");class WO{}class BE{}class YO{resolveComponentFactory(n){throw function ZO(e){const n=Error(`No component factory found for ${Ct(e)}.`);return n.ngComponent=e,n}(n)}}class Ms{static#e=this.NULL=new YO}class wh{}let Di=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function KO(){const e=N(),t=Yn(Ye().index,e);return(Wt(t)?t:e)[de]}()}return e})(),XO=(()=>{class e{static#e=this.\u0275prov=Z({token:e,providedIn:"root",factory:()=>null})}return e})();function Eh(e,n,t){let r=t?e.styles:null,i=t?e.classes:null,o=0;if(null!==n)for(let s=0;s<n.length;s++){const u=n[s];"number"==typeof u?o=u:1==o?i=va(i,u):2==o&&(r=va(r,u+": "+n[++s]+";"))}t?e.styles=r:e.stylesWithoutHost=r,t?e.classes=i:e.classesWithoutHost=i}class $E extends Ms{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=Ee(n);return new bl(t,this.ngModule)}}function zE(e,n){const t=[];for(const r in e){if(!e.hasOwnProperty(r))continue;const i=e[r];if(void 0===i)continue;const o=Array.isArray(i),s=o?i[0]:i;t.push(n?{propName:s,templateName:r,isSignal:!!((o?i[1]:yo.None)&yo.SignalBased)}:{propName:s,templateName:r})}return t}class bl extends BE{get inputs(){const n=this.componentDef,t=n.inputTransforms,r=zE(n.inputs,!0);if(null!==t)for(const i of r)t.hasOwnProperty(i.propName)&&(i.transform=t[i.propName]);return r}get outputs(){return zE(this.componentDef.outputs,!1)}constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=function ex(e){return e.map(JA).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!t}create(n,t,r,i){const o=ie(null);try{let s=(i=i||this.ngModule)instanceof mr?i:i?.injector;s&&null!==this.componentDef.getStandaloneInjector&&(s=this.componentDef.getStandaloneInjector(s)||s);const u=s?new gs(n,s):n,c=u.get(wh,null);if(null===c)throw new k(407,!1);const m={rendererFactory:c,sanitizer:u.get(XO,null),inlineEffectRunner:null,changeDetectionScheduler:u.get(Ja,null)},g=c.createRenderer(null,this.componentDef),y=this.componentDef.selectors[0][0]||"div",_=r?function yN(e,n,t,r){const o=r.get(l1,!1)||t===Vr.ShadowDom,s=e.selectRootElement(n,o);return function vN(e){eE(e)}(s),s}(g,r,this.componentDef.encapsulation,u):ah(g,y,function eR(e){const n=e.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(y));let C=512;this.componentDef.signals?C|=4096:this.componentDef.onPush||(C|=16);let S=null;null!==_&&(S=M0(_,u,!0));const I=ey(0,null,null,1,0,null,null,null,null,null,null),T=dh(null,I,null,C,null,null,m,g,u,null,S);Qg(T);let R,L,H=null;try{const Q=this.componentDef;let re,J=null;Q.findHostDirectiveDefs?(re=[],J=new Map,Q.findHostDirectiveDefs(Q,re,J),re.push(Q)):re=[Q];const vt=function nR(e,n){const t=e[G],r=ee;return e[r]=n,Es(t,r,2,"#host",null)}(T,_);H=function rR(e,n,t,r,i,o,s){const u=i[G];!function iR(e,n,t,r){for(const i of e)n.mergedAttrs=Oc(n.mergedAttrs,i.hostAttrs);null!==n.mergedAttrs&&(Eh(n,n.mergedAttrs,!0),null!==t&&Y1(r,t,n))}(r,e,n,s);let c=null;null!==n&&(c=M0(n,i[Rt]));const d=o.rendererFactory.createRenderer(n,t);let f=16;t.signals?f=4096:t.onPush&&(f=64);const m=dh(i,J1(t),null,f,i[e.index],e,o,d,null,null,c);return u.firstCreatePass&&ny(u,e,r.length-1),fh(i,m),i[e.index]=m}(vt,_,Q,re,T,m,g),L=Bc(I,ee),_&&function sR(e,n,t,r){if(r)Tg(e,t,["ng-version","18.2.3"]);else{const{attrs:i,classes:o}=function tx(e){const n=[],t=[];let r=1,i=2;for(;r<e.length;){let o=e[r];if("string"==typeof o)2===i?""!==o&&n.push(o,e[++r]):8===i&&t.push(o);else{if(!jr(i))break;i=o}r++}return{attrs:n,classes:t}}(n.selectors[0]);i&&Tg(e,t,i),o&&o.length>0&&Z1(e,t,o.join(" "))}}(g,Q,_,r),void 0!==t&&function aR(e,n,t){const r=e.projection=[];for(let i=0;i<n.length;i++){const o=t[i];r.push(null!=o?Array.from(o):null)}}(L,this.ngContentSelectors,t),R=function oR(e,n,t,r,i,o){const s=Ye(),u=i[G],c=bn(s,i);rE(u,i,s,t,null,r);for(let f=0;f<t.length;f++)hn(ys(i,u,s.directiveStart+f,s),i);iE(u,i,s),c&&hn(c,i);const d=ys(i,u,s.directiveStart+s.componentOffset,s);if(e[at]=i[at]=d,null!==o)for(const f of o)f(d,n);return X0(u,s,i),d}(H,Q,re,J,T,[uR]),sy(I,T,null)}catch(Q){throw null!==H&&v0(H),v0(T),Q}finally{Jg()}return new tR(this.componentType,R,Ga(L,T),T,L)}finally{ie(o)}}}class tR extends WO{constructor(n,t,r,i,o){super(),this.location=r,this._rootLView=i,this._tNode=o,this.previousInputValues=null,this.instance=t,this.hostView=this.changeDetectorRef=new cl(i,void 0,!1),this.componentType=n}setInput(n,t){const r=this._tNode.inputs;let i;if(null!==r&&(i=r[n])){if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),t))return;const o=this._rootLView;oy(o[G],o,i,n,t),this.previousInputValues.set(n,t),ul(Yn(this._tNode.index,o),1)}}get injector(){return new Zt(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}function uR(){const e=Ye();Rf(N()[G],e)}let zr=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=cR}return e})();function cR(){return function ZE(e,n){let t;const r=n[e.index];return fn(r)?t=r:(t=oE(r,n,null,e),n[e.index]=t,fh(n,t)),YE(t,n,e,r),new qE(t,e,n)}(Ye(),N())}const lR=zr,qE=class extends lR{constructor(n,t,r){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=r}get element(){return Ga(this._hostTNode,this._hostLView)}get injector(){return new Zt(this._hostTNode,this._hostLView)}get parentInjector(){const n=Bf(this._hostTNode,this._hostLView);if(r0(n)){const t=zc(n,this._hostLView),r=$c(n);return new Zt(t[G].data[r+8],t)}return new Zt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=WE(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-Mt}createEmbeddedView(n,t,r){let i,o;"number"==typeof r?i=r:null!=r&&(i=r.index,o=r.injector);const s=Ts(this._lContainer,n.ssrId),u=n.createEmbeddedViewImpl(t||{},o,s);return this.insertImpl(u,i,Ds(this._hostTNode,s)),u}createComponent(n,t,r,i,o){const s=n&&!Rc(n);let u;if(s)u=t;else{const _=t||{};u=_.index,r=_.injector,i=_.projectableNodes,o=_.environmentInjector||_.ngModuleRef}const c=s?n:new bl(Ee(n)),d=r||this.parentInjector;if(!o&&null==c.ngModule){const C=(s?d:this.parentInjector).get(mr,null);C&&(o=C)}const f=Ee(c.componentType??{}),m=Ts(this._lContainer,f?.id??null),y=c.create(d,i,m?.firstChild??null,o);return this.insertImpl(y.hostView,u,Ds(this._hostTNode,m)),y}insert(n,t){return this.insertImpl(n,t,!0)}insertImpl(n,t,r){const i=n._lView;if(function Nx(e){return fn(e[Ot])}(i)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const c=i[Ot],d=new qE(c,c[rn],c[Ot]);d.detach(d.indexOf(n))}}const o=this._adjustIndex(t),s=this._lContainer;return Xa(s,i,o,r),n.attachToViewContainerRef(),uw(Cy(s),o,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=WE(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),r=il(this._lContainer,t);r&&(yf(Cy(this._lContainer),t),uh(r[G],r))}detach(n){const t=this._adjustIndex(n,-1),r=il(this._lContainer,t);return r&&null!=yf(Cy(this._lContainer),t)?new cl(r):null}_adjustIndex(n,t=0){return n??this.length+t}};function WE(e){return e[8]}function Cy(e){return e[8]||(e[8]=[])}let YE=function XE(e,n,t,r){if(e[mi])return;let i;i=8&t.type?Fe(r):function dR(e,n){const t=e[de],r=t.createComment(""),i=bn(n,e);return ws(t,q0(t,i),r,function cN(e,n){return e.nextSibling(n)}(t,i),!1),r}(n,t),e[mi]=i},Ey=()=>!1;const oD=new Set;function Cn(e){oD.has(e)||(oD.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function we(e,n){Cn("NgSignals");const t=function Pm(e){const n=Object.create(Js);n.value=e;const t=()=>(lr(n),n.value);return t[$]=n,t}(e),r=t[$];return n?.equal&&(r.equal=n.equal),t.set=i=>ki(r,i),t.update=i=>function Ho(e,n){Ie()||Xs(),ki(e,n(e.value))}(r,i),t.asReadonly=aD.bind(t),t}function aD(){const e=this[$];if(void 0===e.readonlyFn){const n=()=>this();n[$]=e,e.readonlyFn=n}return e.readonlyFn}function uD(e){return function sD(e){return"function"==typeof e&&void 0!==e[$]}(e)&&"function"==typeof e.set}function Ve(e){let n=function _D(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),t=!0;const r=[e];for(;n;){let i;if(Hr(e))i=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new k(903,!1);i=n.\u0275dir}if(i){if(t){r.push(i);const s=e;s.inputs=Sh(e.inputs),s.inputTransforms=Sh(e.inputTransforms),s.declaredInputs=Sh(e.declaredInputs),s.outputs=Sh(e.outputs);const u=i.hostBindings;u&&OR(e,u);const c=i.viewQuery,d=i.contentQueries;if(c&&kR(e,c),d&&NR(e,d),AR(e,i),af(e.outputs,i.outputs),Hr(i)&&i.data.animation){const f=e.data;f.animation=(f.animation||[]).concat(i.data.animation)}}const o=i.features;if(o)for(let s=0;s<o.length;s++){const u=o[s];u&&u.ngInherit&&u(e),u===Ve&&(t=!1)}}n=Object.getPrototypeOf(n)}!function xR(e){let n=0,t=null;for(let r=e.length-1;r>=0;r--){const i=e[r];i.hostVars=n+=i.hostVars,i.hostAttrs=Oc(i.hostAttrs,t=Oc(t,i.hostAttrs))}}(r)}function AR(e,n){for(const t in n.inputs){if(!n.inputs.hasOwnProperty(t)||e.inputs.hasOwnProperty(t))continue;const r=n.inputs[t];if(void 0!==r&&(e.inputs[t]=r,e.declaredInputs[t]=n.declaredInputs[t],null!==n.inputTransforms)){const i=Array.isArray(r)?r[0]:r;if(!n.inputTransforms.hasOwnProperty(i))continue;e.inputTransforms??={},e.inputTransforms[i]=n.inputTransforms[i]}}}function Sh(e){return e===fi?{}:e===Re?[]:e}function kR(e,n){const t=e.viewQuery;e.viewQuery=t?(r,i)=>{n(r,i),t(r,i)}:n}function NR(e,n){const t=e.contentQueries;e.contentQueries=t?(r,i,o)=>{n(r,i,o),t(r,i,o)}:n}function OR(e,n){const t=e.hostBindings;e.hostBindings=t?(r,i)=>{n(r,i),t(r,i)}:n}class Ps{}class HR{}class ky extends Ps{constructor(n,t,r,i=!0){super(),this.ngModuleType=n,this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new $E(this);const o=function dn(e,n){const t=e[pf]||null;if(!t&&!0===n)throw new Error(`Type ${Ct(e)} does not have '\u0275mod' property.`);return t}(n);this._bootstrapComponents=function Qn(e){return e instanceof Function?e():e}(o.bootstrap),this._r3Injector=EC(n,t,[{provide:Ps,useValue:this},{provide:Ms,useValue:this.componentFactoryResolver},...r],Ct(n),new Set(["environment"])),i&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Ny extends HR{constructor(n){super(),this.moduleType=n}create(n){return new ky(this.moduleType,n,[])}}class ED extends Ps{constructor(n){super(),this.componentFactoryResolver=new $E(this),this.instance=null;const t=new xa([...n.providers,{provide:Ps,useValue:this},{provide:Ms,useValue:this.componentFactoryResolver}],n.parent||Df(),n.debugName,new Set(["environment"]));this.injector=t,n.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Si(e,n,t){return e[n]=t}function It(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function As(e,n,t,r){const i=It(e,n,t);return It(e,n+1,r)||i}function El(e,n,t,r,i,o,s,u,c,d){const f=t+ee,m=n.firstCreatePass?function ZR(e,n,t,r,i,o,s,u,c){const d=n.consts,f=Es(n,e,4,s||null,u||null);ty(n,t,f,yr(d,c)),Rf(n,f);const m=f.tView=ey(2,f,r,i,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,d,null);return null!==n.queries&&(n.queries.template(n,f),m.queries=n.queries.embeddedTView(f)),f}(f,n,e,r,i,o,s,u,c):n.data[f];Ur(m,!1);const g=SD(n,e,m,t);Gc()&&ch(n,e,g,m),hn(g,e);const y=oE(g,e,g,m);return e[f]=y,fh(e,y),function KE(e,n,t){return Ey(e,n,t)}(y,m,e),Pf(m)&&Q0(n,e,m),null!=c&&J0(e,m,d),m}function me(e,n,t,r,i,o,s,u){const c=N(),d=be();return El(c,d,e,n,t,r,i,yr(d.consts,o),s,u),me}let SD=function TD(e,n,t,r){return yi(!0),n[de].createComment("")};var ru=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(ru||{});let kD=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static#e=this.\u0275prov=Z({token:e,providedIn:"root",factory:()=>new e})}return e})();class Tl{constructor(){this.ngZone=p(Le),this.scheduler=p(Ja),this.errorHandler=p(_i,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static#e=this.PHASES=[ru.EarlyRead,ru.Write,ru.MixedReadWrite,ru.Read];execute(){this.executing=!0;for(const n of Tl.PHASES)for(const t of this.sequences)if(!t.erroredOrDestroyed&&t.hooks[n])try{t.pipelinedValue=this.ngZone.runOutsideAngular(()=>t.hooks[n](t.pipelinedValue))}catch(r){t.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(const n of this.sequences)n.afterRun(),n.once&&this.sequences.delete(n);for(const n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(n){this.executing?this.deferredRegistrations.add(n):(this.sequences.add(n),this.scheduler.notify(6))}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}static#t=this.\u0275prov=Z({token:Tl,providedIn:"root",factory:()=>new Tl})}function an(e,n,t,r){const i=N();return It(i,$r(),n)&&(be(),Ci(ut(),i,e,n,t,r)),an}function Nh(e,n){return e<<17|n<<2}function Eo(e){return e>>17&32767}function qy(e){return 2|e}function ks(e){return(131068&e)>>2}function Wy(e,n){return-131069&e|n<<2}function Zy(e){return 1|e}function s4(e,n,t,r){const i=e[t+1],o=null===n;let s=r?Eo(i):ks(i),u=!1;for(;0!==s&&(!1===u||o);){const d=e[s+1];FF(e[s],n)&&(u=!0,e[s+1]=r?Zy(d):qy(d)),s=r?Eo(d):ks(d)}u&&(e[t+1]=r?qy(i):Zy(i))}function FF(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&Pa(e,n)>=0}const Yt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function a4(e){return e.substring(Yt.key,Yt.keyEnd)}function u4(e,n){const t=Yt.textEnd;return t===n?-1:(n=Yt.keyEnd=function BF(e,n,t){for(;n<t&&e.charCodeAt(n)>32;)n++;return n}(e,Yt.key=n,t),vu(e,n,t))}function vu(e,n,t){for(;n<t&&e.charCodeAt(n)<=32;)n++;return n}function Y(e,n,t){const r=N();return It(r,$r(),n)&&jn(be(),ut(),r,e,n,r[de],t,!1),Y}function Yy(e,n,t,r,i){const s=i?"class":"style";oy(e,t,n.inputs[s],s,r)}function _u(e,n,t){return qr(e,n,t,!1),_u}function Bn(e,n){return qr(e,n,null,!0),Bn}function Zi(e){!function Wr(e,n,t,r){const i=be(),o=$i(2);i.firstUpdatePass&&p4(i,null,o,r);const s=N();if(t!==pe&&It(s,o,t)){const u=i.data[on()];if(v4(u,r)&&!h4(i,o)){let c=r?u.classesWithoutHost:u.stylesWithoutHost;null!==c&&(t=va(c,t||"")),Yy(i,u,s,t,r)}else!function KF(e,n,t,r,i,o,s,u){i===pe&&(i=Re);let c=0,d=0,f=0<i.length?i[0]:null,m=0<o.length?o[0]:null;for(;null!==f||null!==m;){const g=c<i.length?i[c+1]:void 0,y=d<o.length?o[d+1]:void 0;let C,_=null;f===m?(c+=2,d+=2,g!==y&&(_=m,C=y)):null===m||null!==f&&f<m?(c+=2,_=f):(d+=2,_=m,C=y),null!==_&&g4(e,n,t,r,_,C,s,u),f=c<i.length?i[c]:null,m=d<o.length?o[d]:null}}(i,u,s,s[de],s[o+1],s[o+1]=function ZF(e,n,t){if(null==t||""===t)return Re;const r=[],i=Kn(t);if(Array.isArray(i))for(let o=0;o<i.length;o++)e(r,i[o],!0);else if("object"==typeof i)for(const o in i)i.hasOwnProperty(o)&&e(r,o,i[o]);else"string"==typeof i&&n(r,i);return r}(e,n,t),r,o)}}(YF,Mi,e,!0)}function Mi(e,n){for(let t=function VF(e){return function l4(e){Yt.key=0,Yt.keyEnd=0,Yt.value=0,Yt.valueEnd=0,Yt.textEnd=e.length}(e),u4(e,vu(e,0,Yt.textEnd))}(n);t>=0;t=u4(n,t))Zn(e,a4(n),!0)}function qr(e,n,t,r){const i=N(),o=be(),s=$i(2);o.firstUpdatePass&&p4(o,e,s,r),n!==pe&&It(i,s,n)&&g4(o,o.data[on()],i,i[de],e,i[s+1]=function XF(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=Ct(Kn(e)))),e}(n,t),r,s)}function h4(e,n){return n>=e.expandoStartIndex}function p4(e,n,t,r){const i=e.data;if(null===i[t+1]){const o=i[on()],s=h4(e,t);v4(o,r)&&null===n&&!s&&(n=!1),n=function $F(e,n,t,r){const i=Kg(e);let o=r?n.residualClasses:n.residualStyles;if(null===i)0===(r?n.classBindings:n.styleBindings)&&(t=Il(t=Ky(null,e,n,t,r),n.attrs,r),o=null);else{const s=n.directiveStylingLast;if(-1===s||e[s]!==i)if(t=Ky(i,e,n,t,r),null===o){let c=function zF(e,n,t){const r=t?n.classBindings:n.styleBindings;if(0!==ks(r))return e[Eo(r)]}(e,n,r);void 0!==c&&Array.isArray(c)&&(c=Ky(null,e,n,c[1],r),c=Il(c,n.attrs,r),function qF(e,n,t,r){e[Eo(t?n.classBindings:n.styleBindings)]=r}(e,n,r,c))}else o=function WF(e,n,t){let r;const i=n.directiveEnd;for(let o=1+n.directiveStylingLast;o<i;o++)r=Il(r,e[o].hostAttrs,t);return Il(r,n.attrs,t)}(e,n,r)}return void 0!==o&&(r?n.residualClasses=o:n.residualStyles=o),t}(i,o,n,r),function OF(e,n,t,r,i,o){let s=o?n.classBindings:n.styleBindings,u=Eo(s),c=ks(s);e[r]=t;let f,d=!1;if(Array.isArray(t)?(f=t[1],(null===f||Pa(t,f)>0)&&(d=!0)):f=t,i)if(0!==c){const g=Eo(e[u+1]);e[r+1]=Nh(g,u),0!==g&&(e[g+1]=Wy(e[g+1],r)),e[u+1]=function kF(e,n){return 131071&e|n<<17}(e[u+1],r)}else e[r+1]=Nh(u,0),0!==u&&(e[u+1]=Wy(e[u+1],r)),u=r;else e[r+1]=Nh(c,0),0===u?u=r:e[c+1]=Wy(e[c+1],r),c=r;d&&(e[r+1]=qy(e[r+1])),s4(e,f,r,!0),s4(e,f,r,!1),function RF(e,n,t,r,i){const o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof n&&Pa(o,n)>=0&&(t[r+1]=Zy(t[r+1]))}(n,f,e,r,o),s=Nh(u,c),o?n.classBindings=s:n.styleBindings=s}(i,o,n,t,s,r)}}function Ky(e,n,t,r,i){let o=null;const s=t.directiveEnd;let u=t.directiveStylingLast;for(-1===u?u=t.directiveStart:u++;u<s&&(o=n[u],r=Il(r,o.hostAttrs,i),o!==e);)u++;return null!==e&&(t.directiveStylingLast=u),r}function Il(e,n,t){const r=t?1:2;let i=-1;if(null!==n)for(let o=0;o<n.length;o++){const s=n[o];"number"==typeof s?i=s:i===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Zn(e,s,!!t||n[++o]))}return void 0===e?null:e}function YF(e,n,t){const r=String(n);""!==r&&!r.includes(" ")&&Zn(e,r,t)}function g4(e,n,t,r,i,o,s,u){if(!(3&n.type))return;const c=e.data,d=c[u+1],f=function NF(e){return!(1&~e)}(d)?y4(c,n,t,i,ks(d),s):void 0;Oh(f)||(Oh(o)||function xF(e){return!(2&~e)}(d)&&(o=y4(c,null,t,i,u,s)),function fN(e,n,t,r,i){if(n)i?e.addClass(t,r):e.removeClass(t,r);else{let o=-1===r.indexOf("-")?void 0:bo.DashCase;null==i?e.removeStyle(t,r,o):("string"==typeof i&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=bo.Important),e.setStyle(t,r,i,o))}}(r,s,jc(on(),t),i,o))}function y4(e,n,t,r,i,o){const s=null===n;let u;for(;i>0;){const c=e[i],d=Array.isArray(c),f=d?c[1]:c,m=null===f;let g=t[i+1];g===pe&&(g=m?Re:void 0);let y=m?Dg(g,r):f===r?g:void 0;if(d&&!Oh(y)&&(y=Dg(c,r)),Oh(y)&&(u=y,s))return u;const _=e[i+1];i=s?Eo(_):ks(_)}if(null!==n){let c=o?n.residualClasses:n.residualStyles;null!=c&&(u=Dg(c,r))}return u}function Oh(e){return void 0!==e}function v4(e,n){return!!(e.flags&(n?8:16))}class uL{destroy(n){}updateValue(n,t){}swap(n,t){const r=Math.min(n,t),i=Math.max(n,t),o=this.detach(i);if(i-r>1){const s=this.detach(r);this.attach(r,o),this.attach(i,s)}else this.attach(r,o)}move(n,t){this.attach(t,this.detach(n))}}function Xy(e,n,t,r,i){return e===t&&Object.is(n,r)?1:Object.is(i(e,n),i(t,r))?-1:0}function Qy(e,n,t,r){return!(void 0===n||!n.has(r)||(e.attach(t,n.get(r)),n.delete(r),0))}function _4(e,n,t,r,i){if(Qy(e,n,r,t(r,i)))e.updateValue(r,i);else{const o=e.create(r,i);e.attach(r,o)}}function b4(e,n,t,r){const i=new Set;for(let o=n;o<=t;o++)i.add(r(o,e.at(o)));return i}class w4{constructor(){this.kvMap=new Map,this._vMap=void 0}has(n){return this.kvMap.has(n)}delete(n){if(!this.has(n))return!1;const t=this.kvMap.get(n);return void 0!==this._vMap&&this._vMap.has(t)?(this.kvMap.set(n,this._vMap.get(t)),this._vMap.delete(t)):this.kvMap.delete(n),!0}get(n){return this.kvMap.get(n)}set(n,t){if(this.kvMap.has(n)){let r=this.kvMap.get(n);void 0===this._vMap&&(this._vMap=new Map);const i=this._vMap;for(;i.has(r);)r=i.get(r);i.set(r,t)}else this.kvMap.set(n,t)}forEach(n){for(let[t,r]of this.kvMap)if(n(r,t),void 0!==this._vMap){const i=this._vMap;for(;i.has(r);)r=i.get(r),n(r,t)}}}function Ce(e,n){Cn("NgControlFlow");const t=N(),r=$r(),i=t[r]!==pe?t[r]:-1,o=-1!==i?Rh(t,ee+i):void 0;if(It(t,r,e)){const u=ie(null);try{if(void 0!==o&&ay(o,0),-1!==e){const c=ee+e,d=Rh(t,c),f=Jy(t[G],c),m=Ts(d,f.tView.ssrId);Xa(d,Ka(t,f,n,{dehydratedView:m}),0,Ds(f,m))}}finally{ie(u)}}else if(void 0!==o){const u=lE(o,0);void 0!==u&&(u[at]=n)}}class lL{constructor(n,t,r){this.lContainer=n,this.$implicit=t,this.$index=r}get $count(){return this.lContainer.length-Mt}}function Zr(e){return e}function C4(e,n){return n}class dL{constructor(n,t,r){this.hasEmptyBlock=n,this.trackByFn=t,this.liveCollection=r}}function Hn(e,n,t,r,i,o,s,u,c,d,f,m,g){Cn("NgControlFlow");const y=N(),_=be(),C=void 0!==c,S=N(),I=u?s.bind(S[gt][at]):s,T=new dL(C,I);S[ee+e]=T,El(y,_,e+1,n,t,r,i,yr(_.consts,o)),C&&El(y,_,e+2,c,d,f,m,yr(_.consts,g))}class fL extends uL{constructor(n,t,r){super(),this.lContainer=n,this.hostLView=t,this.templateTNode=r,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Mt}at(n){return this.getLView(n)[at].$implicit}attach(n,t){const r=t[_n];this.needsIndexUpdate||=n!==this.length,Xa(this.lContainer,t,n,Ds(this.templateTNode,r))}detach(n){return this.needsIndexUpdate||=n!==this.length-1,function hL(e,n){return il(e,n)}(this.lContainer,n)}create(n,t){const r=Ts(this.lContainer,this.templateTNode.tView.ssrId),i=Ka(this.hostLView,this.templateTNode,new lL(this.lContainer,t,n),{dehydratedView:r});return this.operationsCounter?.recordCreate(),i}destroy(n){uh(n[G],n),this.operationsCounter?.recordDestroy()}updateValue(n,t){this.getLView(n)[at].$implicit=t}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n<this.length;n++)this.getLView(n)[at].$index=n}getLView(n){return function pL(e,n){return lE(e,n)}(this.lContainer,n)}}function Gn(e){const n=ie(null),t=on();try{const r=N(),i=r[G],o=r[t],s=t+1,u=Rh(r,s);if(void 0===o.liveCollection){const d=Jy(i,s);o.liveCollection=new fL(u,r,d)}else o.liveCollection.reset();const c=o.liveCollection;if(function cL(e,n,t){let r,i,o=0,s=e.length-1;if(Array.isArray(n)){let c=n.length-1;for(;o<=s&&o<=c;){const d=e.at(o),f=n[o],m=Xy(o,d,o,f,t);if(0!==m){m<0&&e.updateValue(o,f),o++;continue}const g=e.at(s),y=n[c],_=Xy(s,g,c,y,t);if(0!==_){_<0&&e.updateValue(s,y),s--,c--;continue}const C=t(o,d),S=t(s,g),I=t(o,f);if(Object.is(I,S)){const T=t(c,y);Object.is(T,C)?(e.swap(o,s),e.updateValue(s,y),c--,s--):e.move(s,o),e.updateValue(o,f),o++}else if(r??=new w4,i??=b4(e,o,s,t),Qy(e,r,o,I))e.updateValue(o,f),o++,s++;else if(i.has(I))r.set(C,e.detach(o)),s--;else{const T=e.create(o,n[o]);e.attach(o,T),o++,s++}}for(;o<=c;)_4(e,r,t,o,n[o]),o++}else if(null!=n){const c=n[Symbol.iterator]();let d=c.next();for(;!d.done&&o<=s;){const f=e.at(o),m=d.value,g=Xy(o,f,o,m,t);if(0!==g)g<0&&e.updateValue(o,m),o++,d=c.next();else{r??=new w4,i??=b4(e,o,s,t);const y=t(o,m);if(Qy(e,r,o,y))e.updateValue(o,m),o++,s++,d=c.next();else if(i.has(y)){const _=t(o,f);r.set(_,e.detach(o)),s--}else e.attach(o,e.create(o,m)),o++,s++,d=c.next()}}for(;!d.done;)_4(e,r,t,e.length,d.value),d=c.next()}for(;o<=s;)e.destroy(e.detach(s--));r?.forEach(c=>{e.destroy(c)})}(c,e,o.trackByFn),c.updateIndexes(),o.hasEmptyBlock){const d=$r(),f=0===c.length;if(It(r,d,f)){const m=t+2,g=Rh(r,m);if(f){const y=Jy(i,m),_=Ts(g,y.tView.ssrId);Xa(g,Ka(r,y,void 0,{dehydratedView:_}),0,Ds(y,_))}else ay(g,0)}}}finally{ie(n)}}function Rh(e,n){return e[n]}function Jy(e,n){return Bc(e,n)}function j(e,n,t,r){const i=N(),o=be(),s=ee+e,u=i[de],c=o.firstCreatePass?function mL(e,n,t,r,i,o){const s=n.consts,c=Es(n,e,2,r,yr(s,i));return ty(n,t,c,yr(s,o)),null!==c.attrs&&Eh(c,c.attrs,!1),null!==c.mergedAttrs&&Eh(c,c.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,c),c}(s,o,i,n,t,r):o.data[s],d=E4(o,i,c,u,n,e);i[s]=d;const f=Pf(c);return Ur(c,!0),Y1(u,d,c),!function tu(e){return!(32&~e.flags)}(c)&&Gc()&&ch(o,i,d,c),0===function Ox(){return fe.lFrame.elementDepthCount}()&&hn(d,i),function Rx(){fe.lFrame.elementDepthCount++}(),f&&(Q0(o,i,c),X0(o,c,i)),null!==r&&J0(i,c),j}function B(){let e=Ye();Wg()?Zg():(e=e.parent,Ur(e,!1));const n=e;(function Lx(e){return fe.skipHydrationRootTNode===e})(n)&&function Hx(){fe.skipHydrationRootTNode=null}(),function Fx(){fe.lFrame.elementDepthCount--}();const t=be();return t.firstCreatePass&&(Rf(t,e),Vg(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function ek(e){return!!(8&e.flags)}(n)&&Yy(t,n,N(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function tk(e){return!!(16&e.flags)}(n)&&Yy(t,n,N(),n.stylesWithoutHost,!1),B}function je(e,n,t,r){return j(e,n,t,r),B(),je}let E4=(e,n,t,r,i,o)=>(yi(!0),ah(r,i,function rC(){return fe.lFrame.currentNamespace}()));function bu(e,n,t){const r=N(),i=be(),o=e+ee,s=i.firstCreatePass?function vL(e,n,t,r,i){const o=n.consts,s=yr(o,r),u=Es(n,e,8,"ng-container",s);return null!==s&&Eh(u,s,!0),ty(n,t,u,yr(o,i)),null!==n.queries&&n.queries.elementStart(n,u),u}(o,i,r,n,t):i.data[o];Ur(s,!0);const u=D4(i,r,s,e);return r[o]=u,Gc()&&ch(i,r,u,s),hn(u,r),Pf(s)&&(Q0(i,r,s),X0(i,s,r)),null!=t&&J0(r,s),bu}function wu(){let e=Ye();const n=be();return Wg()?Zg():(e=e.parent,Ur(e,!1)),n.firstCreatePass&&(Rf(n,e),Vg(e)&&n.queries.elementEnd(e)),wu}function Do(e,n,t){return bu(e,n,t),wu(),Do}let D4=(e,n,t,r)=>(yi(!0),G0(n[de],""));function Ft(){return N()}function Fh(e,n,t){const r=N();if(It(r,$r(),n)){const o=be(),s=ut();jn(o,s,r,e,n,cE(Kg(o.data),s,r),t,!0)}return Fh}const Lh="en-US";let I4=Lh,q4=(e,n,t)=>{};function ge(e,n,t,r){const i=N(),o=be(),s=Ye();return nv(o,i,i[de],s,e,n,r),ge}function nv(e,n,t,r,i,o,s){const u=Pf(r),d=e.firstCreatePass&&function uE(e){return e.cleanup??=[]}(e),f=n[at],m=function aE(e){return e[Oa]??=[]}(n);let g=!0;if(3&r.type||s){const C=bn(r,n),S=s?s(C):C,I=m.length,T=s?L=>s(Fe(L[r.index])):r.index;let R=null;if(!s&&u&&(R=function d6(e,n,t,r){const i=e.cleanup;if(null!=i)for(let o=0;o<i.length-1;o+=2){const s=i[o];if(s===t&&i[o+1]===r){const u=n[Oa],c=i[o+2];return u.length>c?u[c]:null}"string"==typeof s&&(o+=2)}return null}(e,n,i,r.index)),null!==R)(R.__ngLastListenerFn__||R).__ngNextListenerFn__=o,R.__ngLastListenerFn__=o,g=!1;else{o=K4(r,n,f,o),q4(C,i,o);const L=t.listen(S,i,o);m.push(o,L),d&&d.push(i,T,I,I+1)}}else o=K4(r,n,f,o);const y=r.outputs;let _;if(g&&null!==y&&(_=y[i])){const C=_.length;if(C)for(let S=0;S<C;S+=2){const H=n[_[S]][_[S+1]].subscribe(o),Q=m.length;m.push(o,H),d&&d.push(i,r.index,Q,-(Q+1))}}}function Y4(e,n,t,r){const i=ie(null);try{return gi(6,n,t),!1!==t(r)}catch(o){return hh(e,o),!1}finally{gi(7,n,t),ie(i)}}function K4(e,n,t,r){return function i(o){if(o===Function)return r;ul(e.componentOffset>-1?Yn(e.index,n):n,5);let u=Y4(n,t,r,o),c=i.__ngNextListenerFn__;for(;c;)u=Y4(n,t,c,o)&&u,c=c.__ngNextListenerFn__;return u}}function q(e=1){return function qx(e){return(fe.lFrame.contextLView=function Gw(e,n){for(;e>0;)n=n[Ra],e--;return n}(e,fe.lFrame.contextLView))[at]}(e)}function f6(e,n){let t=null;const r=function YA(e){const n=e.attrs;if(null!=n){const t=n.indexOf(5);if(!(1&t))return n[t+1]}return null}(e);for(let i=0;i<n.length;i++){const o=n[i];if("*"!==o){if(null===r?gw(e,o,!0):QA(r,o))return i}else t=i}return t}function rv(e,n=0,t,r,i,o){const s=N(),u=be(),c=r?e+1:null;null!==c&&El(s,u,c,r,i,o,null,t);const d=Es(u,ee+e,16,null,t||null);null===d.projection&&(d.projection=n),Zg();const m=!s[_n]||ps();null===s[gt][rn].projection[d.projection]&&null!==c?function h6(e,n,t){const r=ee+t,i=n.data[r],o=e[r],s=Ts(o,i.tView.ssrId);Xa(o,Ka(e,i,void 0,{dehydratedView:s}),0,Ds(i,s))}(s,u,c):m&&32&~d.flags&&function lN(e,n,t){W1(n[de],0,n,t,z0(e,t,n),H1(t.parent||n[rn],t,n))}(u,s,d)}function ov(e,n,t,r){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=r}function Hh(e){return hs(qw(),ee+e)}function ce(e,n=""){const t=N(),r=be(),i=e+ee,o=r.firstCreatePass?Es(r,i,1,n,null):r.data[i],s=gS(r,t,o,n,e);t[i]=s,Gc()&&ch(r,t,s,o),Ur(o,!1)}let gS=(e,n,t,r,i)=>(yi(!0),function H0(e,n){return e.createText(n)}(n[de],r));function Kt(e){return nt("",e,""),Kt}function nt(e,n,t){const r=N(),i=function lu(e,n,t,r){return It(e,$r(),t)?n+W(t)+r:pe}(r,e,n,t);return i!==pe&&function Wi(e,n,t){const r=jc(n,e);!function R1(e,n,t){e.setValue(n,t)}(e[de],r,t)}(r,on(),i),nt}function sv(e,n,t){uD(n)&&(n=n());const r=N();return It(r,$r(),n)&&jn(be(),ut(),r,e,n,r[de],t,!1),sv}function av(e,n){const t=N(),r=be(),i=Ye();return nv(r,t,t[de],i,e,n),av}const TS={};function tr(e){const n=be(),t=N(),r=e+ee;return Ur(Es(n,r,128,null,null),!1),ov(n,t,r,TS),tr}function $n(e){return Cn("NgLet"),ov(be(),N(),on(),e),e}function wt(e){const t=hs(qw(),ee+e);if(t===TS)throw new k(314,!1);return t}function uv(e,n,t,r,i){if(e=ae(e),Array.isArray(e))for(let o=0;o<e.length;o++)uv(e[o],n,t,r,i);else{const o=be(),s=N(),u=Ye();let c=ls(e)?e:ae(e.provide);const d=Dw(e),f=1048575&u.providerIndexes,m=u.directiveStart,g=u.providerIndexes>>20;if(ls(e)||!e.multi){const y=new Uc(d,i,P),_=lv(c,n,i?f:f+g,m);-1===_?(a0(jf(u,s),o,c),cv(o,e,n.length),n.push(c),u.directiveStart++,u.directiveEnd++,i&&(u.providerIndexes+=1048576),t.push(y),s.push(y)):(t[_]=y,s[_]=y)}else{const y=lv(c,n,f+g,m),_=lv(c,n,f,f+g),S=_>=0&&t[_];if(i&&!S||!i&&!(y>=0&&t[y])){a0(jf(u,s),o,c);const I=function R6(e,n,t,r,i){const o=new Uc(e,t,P);return o.multi=[],o.index=n,o.componentProviders=0,MS(o,i,r&&!t),o}(i?O6:N6,t.length,i,r,d);!i&&S&&(t[_].providerFactory=I),cv(o,e,n.length,0),n.push(c),u.directiveStart++,u.directiveEnd++,i&&(u.providerIndexes+=1048576),t.push(I),s.push(I)}else cv(o,e,y>-1?y:_,MS(t[i?_:y],d,!i&&r));!i&&r&&S&&t[_].componentProviders++}}}function cv(e,n,t,r){const i=ls(n),o=function ux(e){return!!e.useClass}(n);if(i||o){const c=(o?ae(n.useClass):n).prototype.ngOnDestroy;if(c){const d=e.destroyHooks||(e.destroyHooks=[]);if(!i&&n.multi){const f=d.indexOf(t);-1===f?d.push(t,[r,c]):d[f+1].push(r,c)}else d.push(t,c)}}}function MS(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function lv(e,n,t,r){for(let i=t;i<r;i++)if(n[i]===e)return i;return-1}function N6(e,n,t,r){return dv(this.multi,[])}function O6(e,n,t,r){const i=this.multi;let o;if(this.providerFactory){const s=this.providerFactory.componentProviders,u=ys(t,t[G],this.providerFactory.index,r);o=u.slice(0,s),dv(i,o);for(let c=s;c<u.length;c++)o.push(u[c])}else o=[],dv(i,o);return o}function dv(e,n){for(let t=0;t<e.length;t++)n.push((0,e[t])());return n}function rt(e,n=[]){return t=>{t.providersResolver=(r,i)=>function k6(e,n,t){const r=be();if(r.firstCreatePass){const i=Hr(e);uv(t,r.data,r.blueprint,i,!0),uv(n,r.data,r.blueprint,i,!1)}}(r,i?i(e):e,n)}}let F6=(()=>{class e{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){const r=Ig(0,t.type),i=r.length>0?function DD(e,n,t=null){return new ED({providers:e,parent:n,debugName:t,runEnvironmentInitializers:!0}).injector}([r],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,i)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=Z({token:e,providedIn:"environment",factory:()=>new e(l(mr))})}return e})();function fv(e){Cn("NgStandalone"),e.getStandaloneInjector=n=>n.get(F6).getOrCreateStandaloneInjector(e)}function Ol(e,n){const t=e[n];return t===pe?void 0:t}function kS(e,n,t,r,i,o){const s=n+t;return It(e,s,i)?Si(e,s+1,o?r.call(o,i):r(i)):Ol(e,s+1)}function NS(e,n,t,r,i,o,s){const u=n+t;return As(e,u,i,o)?Si(e,u+2,s?r.call(s,i,o):r(i,o)):Ol(e,u+2)}function OS(e,n,t,r,i,o,s,u){const c=n+t;return function Mh(e,n,t,r,i){const o=As(e,n,t,r);return It(e,n+2,i)||o}(e,c,i,o,s)?Si(e,c+3,u?r.call(u,i,o,s):r(i,o,s)):Ol(e,c+3)}function RS(e,n,t,r,i,o,s,u,c){const d=n+t;return function vr(e,n,t,r,i,o){const s=As(e,n,t,r);return As(e,n+2,i,o)||s}(e,d,i,o,s,u)?Si(e,d+4,c?r.call(c,i,o,s,u):r(i,o,s,u)):Ol(e,d+4)}function Xe(e,n){const t=be();let r;const i=e+ee;t.firstCreatePass?(r=function Z6(e,n){if(n)for(let t=n.length-1;t>=0;t--){const r=n[t];if(e===r.name)return r}}(n,t.pipeRegistry),t.data[i]=r,r.onDestroy&&(t.destroyHooks??=[]).push(i,r.onDestroy)):r=t.data[i];const o=r.factory||(r.factory=vn(r.type)),u=tn(P);try{const c=Vf(!1),d=o();return Vf(c),ov(t,N(),i,d),d}finally{tn(u)}}function Rl(e,n,t){const r=e+ee,i=N(),o=hs(i,r);return Fl(i,r)?kS(i,wn(),n,o.transform,t,o):o.transform(t)}function Jt(e,n,t,r){const i=e+ee,o=N(),s=hs(o,i);return Fl(o,i)?NS(o,wn(),n,s.transform,t,r,s):s.transform(t,r)}function Eu(e,n,t,r,i){const o=e+ee,s=N(),u=hs(s,o);return Fl(s,o)?OS(s,wn(),n,u.transform,t,r,i,u):u.transform(t,r,i)}function Fl(e,n){return e[G].data[n].pure}function $h(e,n){return mh(e,n)}const rT=new z(""),Wh=new z("");let bv,vv=(()=>{class e{constructor(t,r,i){this._ngZone=t,this.registry=r,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,bv||(function UV(e){bv=e}(i),i.addToWindow(r)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Le.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb()}});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(t)||(clearTimeout(r.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),t()},r)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:i})}whenStable(t,r,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,r,i),this._runCallbacksIfReady()}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,r,i){return[]}static#e=this.\u0275fac=function(r){return new(r||e)(l(Le),l(_v),l(Wh))};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac})}return e})(),_v=(()=>{class e{constructor(){this._applications=new Map}registerApplication(t,r){this._applications.set(t,r)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,r=!0){return bv?.findTestabilityInTree(this,t,r)??null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function Zh(e){return!!e&&"function"==typeof e.then}function iT(e){return!!e&&"function"==typeof e.subscribe}const oT=new z("");let sT=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,r)=>{this.resolve=t,this.reject=r}),this.appInits=p(oT,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const t=[];for(const i of this.appInits){const o=i();if(Zh(o))t.push(o);else if(iT(o)){const s=new Promise((u,c)=>{o.subscribe({complete:u,error:c})});t.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{r()}).catch(i=>{this.reject(i)}),0===t.length&&r(),this.initialized=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const wv=new z("");function uT(e,n){return Array.isArray(n)?n.reduce(uT,e):{...e,...n}}let _r=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=p(Ak),this.afterRenderManager=p(kD),this.zonelessEnabled=p(yl),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new bt,this.afterTick=new bt,this.componentTypes=[],this.components=[],this.isStable=p(vs).hasPendingTasks.pipe(Tt(t=>!t)),this._injector=p(mr)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let t;return new Promise(r=>{t=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{t.unsubscribe()})}get injector(){return this._injector}bootstrap(t,r){const i=t instanceof BE;if(!this._injector.get(sT).done)throw!i&&function cs(e){const n=Ee(e)||zt(e)||nn(e);return null!==n&&n.standalone}(t),new k(405,!1);let s;s=i?t:this._injector.get(Ms).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const u=function $V(e){return e.isBoundToModule}(s)?void 0:this._injector.get(Ps),d=s.create(tt.NULL,[],r||s.selector,u),f=d.location.nativeElement,m=d.injector.get(rT,null);return m?.registerApplication(f),d.onDestroy(()=>{this.detachView(d.hostView),Yh(this.components,d),m?.unregisterApplication(f)}),this._loadComponent(d),d}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new k(101,!1);const t=ie(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,ie(t),this.afterTick.next()}}synchronize(){let t=null;this._injector.destroyed||(t=this._injector.get(wh,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;0!==this.dirtyFlags&&r++<10;)this.synchronizeOnce(t)}synchronizeOnce(t){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,7&this.dirtyFlags){const r=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8,this.beforeRender.next(r);for(let{_lView:i,notifyErrorHandler:o}of this._views)WV(i,o,r,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),7&this.dirtyFlags)return}else t?.begin?.(),t?.end?.();8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some(({_lView:t})=>Af(t))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;Yh(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const r=this._injector.get(wv,[]);[...this._bootstrapListeners,...r].forEach(i=>i(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>Yh(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new k(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Yh(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function WV(e,n,t,r){(t||Af(e))&&ph(e,n,t&&!r?0:1)}let XV=(()=>{class e{constructor(){this.zone=p(Le),this.changeDetectionScheduler=p(Ja),this.applicationRef=p(_r)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Cv({ngZoneFactory:e,ignoreChangesOutsideZone:n,scheduleInRootZone:t}){return e??=()=>new Le({...Ev(),scheduleInRootZone:t}),[{provide:Le,useFactory:e},{provide:hi,multi:!0,useFactory:()=>{const r=p(XV,{optional:!0});return()=>r.initialize()}},{provide:hi,multi:!0,useFactory:()=>{const r=p(JV);return()=>{r.initialize()}}},!0===n?{provide:jE,useValue:!0}:[],{provide:_y,useValue:t??SC}]}function Ev(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}let JV=(()=>{class e{constructor(){this.subscription=new ln,this.initialized=!1,this.zone=p(Le),this.pendingTasks=p(vs)}initialize(){if(this.initialized)return;this.initialized=!0;let t=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(t=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Le.assertNotInAngularZone(),queueMicrotask(()=>{null!==t&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(t),t=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Le.assertInAngularZone(),t??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Bl=(()=>{class e{constructor(){this.appRef=p(_r),this.taskService=p(vs),this.ngZone=p(Le),this.zonelessEnabled=p(yl),this.disableScheduling=p(jE,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new ln,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(zf):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(_y,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof p0||!this.zoneIsDefined)}notify(t){if(!this.zonelessEnabled&&5===t)return;switch(t){case 0:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 7:this.appRef.deferredDirtyFlags|=8;break;default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;const r=this.useMicrotaskScheduler?MC:TC;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>r(()=>this.tick())):this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(zf+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);const t=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(t),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,MC(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(t)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const t=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(t)}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const So=new z("",{providedIn:"root",factory:()=>p(So,De.Optional|De.SkipSelf)||function e5(){return typeof $localize<"u"&&$localize.locale||Lh}()}),Sv=new z("");function Xh(e){return!!e.platformInjector}let mT=(()=>{class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,r){const i=r?.scheduleInRootZone,s=r?.ignoreChangesOutsideZone,u=[Cv({ngZoneFactory:()=>function Pk(e="zone.js",n){return"noop"===e?new p0:"zone.js"===e?new Le(n):e}(r?.ngZone,{...Ev({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}),scheduleInRootZone:i}),ignoreChangesOutsideZone:s}),{provide:Ja,useExisting:Bl}],c=function UR(e,n,t){return new ky(e,n,t,!1)}(t.moduleType,this.injector,u);return function pT(e){const n=Xh(e)?e.r3Injector:e.moduleRef.injector,t=n.get(Le);return t.run(()=>{Xh(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();const r=n.get(_i,null);let i;if(t.runOutsideAngular(()=>{i=t.onError.subscribe({next:o=>{r.handleError(o)}})}),Xh(e)){const o=()=>n.destroy(),s=e.platformInjector.get(Sv);s.add(o),n.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else e.moduleRef.onDestroy(()=>{Yh(e.allPlatformModules,e.moduleRef),i.unsubscribe()});return function qV(e,n,t){try{const r=t();return Zh(r)?r.catch(i=>{throw n.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw n.runOutsideAngular(()=>e.handleError(r)),r}}(r,t,()=>{const o=n.get(sT);return o.runInitializers(),o.donePromise.then(()=>{if(function ML(e){"string"==typeof e&&(I4=e.toLowerCase().replace(/_/g,"-"))}(n.get(So,Lh)||Lh),Xh(e)){const u=n.get(_r);return void 0!==e.rootComponent&&u.bootstrap(e.rootComponent),u}return function s5(e,n){const t=e.injector.get(_r);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>t.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new k(-403,!1);e.instance.ngDoBootstrap(t)}n.push(e)}(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}({moduleRef:c,allPlatformModules:this._modules})}bootstrapModule(t,r=[]){const i=uT({},r);return function KV(e,n,t){const r=new Ny(t);return Promise.resolve(r)}(0,0,t).then(o=>this.bootstrapModuleFactory(o,i))}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new k(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const t=this._injector.get(Sv,null);t&&(t.forEach(r=>r()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(r){return new(r||e)(l(tt))};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),To=null;const gT=new z("");function yT(e,n,t=[]){const r=`Platform: ${n}`,i=new z(r);return(o=[])=>{let s=Tv();if(!s||s.injector.get(gT,!1)){const u=[...t,...o,{provide:i,useValue:!0}];e?e(u):function a5(e){if(To&&!To.get(gT,!1))throw new k(400,!1);(function aT(){!function Qs(e){Zu=e}(()=>{throw new k(600,!1)})})(),To=e;const n=e.get(mT);(function _T(e){e.get(JC,null)?.forEach(t=>t())})(e)}(function vT(e=[],n){return tt.create({name:n,providers:[{provide:xg,useValue:"platform"},{provide:Sv,useValue:new Set([()=>To=null])},...e]})}(u,r))}return function u5(){const n=Tv();if(!n)throw new k(401,!1);return n}()}}function Tv(){return To?.get(mT)??null}let Tu=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=l5}return e})();function l5(e){return function d5(e,n,t){if(fs(e)&&!t){const r=Yn(e.index,n);return new cl(r,r)}return 175&e.type?new cl(n[gt],n):null}(Ye(),N(),!(16&~e))}const E5=yT(null,"core",[]);let D5=(()=>{class e{constructor(t){}static#e=this.\u0275fac=function(r){return new(r||e)(l(_r))};static#t=this.\u0275mod=$t({type:e});static#n=this.\u0275inj=Et({})}return e})();const zT=new z("");function Se(e,n){Cn("NgSignals");const t=function Im(e){const n=Object.create(Wu);n.computation=e;const t=()=>{if(ro(n),lr(n),n.value===Bo)throw n.error;return n.value};return t[$]=n,t}(e);return n?.equal&&(t[$].equal=n.equal),t}function Yr(e){const n=ie(null);try{return e()}finally{ie(n)}}const n9=new z("",{providedIn:"root",factory:()=>p(r9)});let r9=(()=>{class e{static#e=this.\u0275prov=Z({token:e,providedIn:"root",factory:()=>new i9})}return e})();class i9{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=p(vs),this.taskId=null}scheduleEffect(n){if(this.enqueue(n),null===this.taskId){const t=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(t),this.taskId=null})}}enqueue(n){const t=n.creationZone;this.queues.has(t)||this.queues.set(t,new Set);const r=this.queues.get(t);r.has(n)||(this.queuedEffectCount++,r.add(n))}flush(){for(;this.queuedEffectCount>0;)for(const[n,t]of this.queues)null===n?this.flushQueue(t):n.run(()=>this.flushQueue(t))}flushQueue(n){for(const t of n)n.delete(t),this.queuedEffectCount--,t.run()}}class o9{constructor(n,t,r,i,o,s){this.scheduler=n,this.effectFn=t,this.creationZone=r,this.injector=o,this.watcher=function Am(e,n,t){const r=Object.create(xm);t&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=n;const i=c=>{r.cleanupFn=c};return r.ref={notify:()=>Te(r),run:()=>{if(null===r.fn)return;if(function ye(){return Ae}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!Pr(r))return;r.hasRun=!0;const c=et(r);try{r.cleanupFn(),r.cleanupFn=Ni,r.fn(i)}finally{ht(r,c)}},cleanup:()=>r.cleanupFn(),destroy:()=>function s(c){(function o(c){return null===c.fn&&null===c.schedule})(c)||(io(c),c.cleanupFn(),c.fn=null,c.schedule=null,c.cleanupFn=Ni)}(r),[$]:r},r.ref}(u=>this.runEffect(u),()=>this.schedule(),s),this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}runEffect(n){try{this.effectFn(n)}catch(t){this.injector.get(_i,null,{optional:!0})?.handleError(t)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}function Fv(e,n){Cn("NgSignals"),!n?.injector&&function Rg(e){if(!Sw())throw new k(-203,!1)}();const t=n?.injector??p(tt),r=!0!==n?.manualCleanup?t.get(qc):null,i=new o9(t.get(n9),e,typeof Zone>"u"?null:Zone.current,r,t,n?.allowSignalWrites??!1),o=t.get(Tu,null,{optional:!0});return o&&8&o._lView[oe]?(o._lView[Tf]??=[]).push(i.watcher.notify):i.watcher.notify(),i}let tM=null;function $l(){return tM}class a9{}const un=new z("");function lM(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const r=t.indexOf("="),[i,o]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(i.trim()===n)return decodeURIComponent(o)}return null}const qv=/\s+/,dM=[];let Wv=(()=>{class e{constructor(t,r){this._ngEl=t,this._renderer=r,this.initialClasses=dM,this.stateMap=new Map}set klass(t){this.initialClasses=null!=t?t.trim().split(qv):dM}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(qv):t}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(const r of t)this._updateState(r,!0);else if(null!=t)for(const r of Object.keys(t))this._updateState(r,!!t[r]);this._applyStateDiff()}_updateState(t,r){const i=this.stateMap.get(t);void 0!==i?(i.enabled!==r&&(i.changed=!0,i.enabled=r),i.touched=!0):this.stateMap.set(t,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const t of this.stateMap){const r=t[0],i=t[1];i.changed?(this._toggleClass(r,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),i.touched=!1}}_toggleClass(t,r){(t=t.trim()).length>0&&t.split(qv).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static#e=this.\u0275fac=function(r){return new(r||e)(P(Ln),P(Di))};static#t=this.\u0275dir=le({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0})}return e})(),vp=(()=>{class e{constructor(t){this._viewContainerRef=t,this.ngComponentOutlet=null,this._inputsUsed=new Map}_needToReCreateNgModuleInstance(t){return void 0!==t.ngComponentOutletNgModule||void 0!==t.ngComponentOutletNgModuleFactory}_needToReCreateComponentInstance(t){return void 0!==t.ngComponentOutlet||void 0!==t.ngComponentOutletContent||void 0!==t.ngComponentOutletInjector||this._needToReCreateNgModuleInstance(t)}ngOnChanges(t){if(this._needToReCreateComponentInstance(t)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){const r=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(t)&&(this._moduleRef?.destroy(),this._moduleRef=this.ngComponentOutletNgModule?function GR(e,n){return new ky(e,n??null,[])}(this.ngComponentOutletNgModule,fM(r)):this.ngComponentOutletNgModuleFactory?this.ngComponentOutletNgModuleFactory.create(fM(r)):void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:r,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(const t of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(t,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){this._moduleRef?.destroy()}_applyInputStateDiff(t){for(const[r,i]of this._inputsUsed)i?(t.setInput(r,this.ngComponentOutletInputs[r]),this._inputsUsed.set(r,!1)):(t.setInput(r,void 0),this._inputsUsed.delete(r))}static#e=this.\u0275fac=function(r){return new(r||e)(P(zr))};static#t=this.\u0275dir=le({type:e,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[Gr]})}return e})();function fM(e){return e.get(Ps).injector}let _p=(()=>{class e{constructor(t,r){this._viewContainer=t,this._context=new Y9,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){pM("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){pM("ngIfElse",t),this._elseTemplateRef=t,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 ngTemplateContextGuard(t,r){return!0}static#e=this.\u0275fac=function(r){return new(r||e)(P(zr),P(Ei))};static#t=this.\u0275dir=le({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return e})();class Y9{constructor(){this.$implicit=null,this.ngIf=null}}function pM(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Ct(n)}'.`)}let gM=(()=>{class e{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const i=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,r,i)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,r,i),get:(t,r,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,i)}})}static#e=this.\u0275fac=function(r){return new(r||e)(P(zr))};static#t=this.\u0275dir=le({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Gr]})}return e})();let Qv=(()=>{class e{transform(t,r,i){if(null==t)return null;if(!this.supports(t))throw function Xr(e,n){return new k(2100,!1)}();return t.slice(r,i)}supports(t){return"string"==typeof t||Array.isArray(t)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275pipe=Nt({name:"slice",type:e,pure:!1,standalone:!0})}return e})(),Jv=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=$t({type:e});static#n=this.\u0275inj=Et({})}return e})();const vM="browser";function _M(e){return"server"===e}class bM{}class Qj extends a9{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class r_ extends Qj{static makeCurrent(){!function s9(e){tM??=e}(new r_)}onAndCancel(n,t,r){return n.addEventListener(t,r),()=>{n.removeEventListener(t,r)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.remove()}createElement(n,t){return(t=t||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,t){return"window"===t?window:"document"===t?n:"body"===t?n.body:null}getBaseHref(n){const t=function Jj(){return Zl=Zl||document.querySelector("base"),Zl?Zl.getAttribute("href"):null}();return null==t?null:function e8(e){return new URL(e,document.baseURI).pathname}(t)}resetBaseElement(){Zl=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return lM(document.cookie,n)}}let Zl=null,n8=(()=>{class e{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac})}return e})();const Ep=new z("");let AM=(()=>{class e{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(i=>{i.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,i){return this._findPluginFor(r).addEventListener(t,r,i)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(o=>o.supports(t)),!r)throw new k(5101,!1);return this._eventNameToPlugin.set(t,r),r}static#e=this.\u0275fac=function(r){return new(r||e)(l(Ep),l(Le))};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac})}return e})();class i_{constructor(n){this._doc=n}}const o_="ng-app-id";let xM=(()=>{class e{constructor(t,r,i,o={}){this.doc=t,this.appId=r,this.nonce=i,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=_M(o),this.resetHostNodes()}addStyles(t){for(const r of t)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(t){for(const r of t)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const t=this.styleNodesInDOM;t&&(t.forEach(r=>r.remove()),t.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(const r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){const r=this.styleRef;r.get(t)?.elements?.forEach(i=>i.remove()),r.delete(t)}collectServerRenderedStyles(){const t=this.doc.head?.querySelectorAll(`style[${o_}="${this.appId}"]`);if(t?.length){const r=new Map;return t.forEach(i=>{null!=i.textContent&&r.set(i.textContent,i)}),r}return null}changeUsageCount(t,r){const i=this.styleRef;if(i.has(t)){const o=i.get(t);return o.usage+=r,o.usage}return i.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){const i=this.styleNodesInDOM,o=i?.get(r);if(o?.parentNode===t)return i.delete(r),o.removeAttribute(o_),o;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(o_,this.appId),t.appendChild(s),s}}addStyleToHost(t,r){const i=this.getStyleElement(t,r),o=this.styleRef,s=o.get(r)?.elements;s?s.push(i):o.set(r,{elements:[i],usage:1})}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}static#e=this.\u0275fac=function(r){return new(r||e)(l(un),l($a),l(t1,8),l(zi))};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac})}return e})();const s_={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},a_=/%COMP%/g,s8=new z("",{providedIn:"root",factory:()=>!0});function NM(e,n){return n.map(t=>t.replace(a_,e))}let u_=(()=>{class e{constructor(t,r,i,o,s,u,c,d=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=u,this.ngZone=c,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=_M(u),this.defaultRenderer=new c_(t,s,c,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Vr.ShadowDom&&(r={...r,encapsulation:Vr.Emulated});const i=this.getOrCreateRenderer(t,r);return i instanceof RM?i.applyToHost(t):i instanceof l_&&i.applyStyles(),i}getOrCreateRenderer(t,r){const i=this.rendererByCompId;let o=i.get(r.id);if(!o){const s=this.doc,u=this.ngZone,c=this.eventManager,d=this.sharedStylesHost,f=this.removeStylesOnCompDestroy,m=this.platformIsServer;switch(r.encapsulation){case Vr.Emulated:o=new RM(c,d,r,this.appId,f,s,u,m);break;case Vr.ShadowDom:return new l8(c,d,t,r,s,u,this.nonce,m);default:o=new l_(c,d,r,f,s,u,m)}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(r){return new(r||e)(l(AM),l(xM),l($a),l(s8),l(un),l(zi),l(Le),l(t1))};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac})}return e})();class c_{constructor(n,t,r,i){this.eventManager=n,this.doc=t,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,t){return t?this.doc.createElementNS(s_[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){(OM(n)?n.content:n).appendChild(t)}insertBefore(n,t,r){n&&(OM(n)?n.content:n).insertBefore(t,r)}removeChild(n,t){t.remove()}selectRootElement(n,t){let r="string"==typeof n?this.doc.querySelector(n):n;if(!r)throw new k(-5104,!1);return t||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,r,i){if(i){t=i+":"+t;const o=s_[i];o?n.setAttributeNS(o,t,r):n.setAttribute(t,r)}else n.setAttribute(t,r)}removeAttribute(n,t,r){if(r){const i=s_[r];i?n.removeAttributeNS(i,t):n.removeAttribute(`${r}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,r,i){i&(bo.DashCase|bo.Important)?n.style.setProperty(t,r,i&bo.Important?"important":""):n.style[t]=r}removeStyle(n,t,r){r&bo.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,r){null!=n&&(n[t]=r)}setValue(n,t){n.nodeValue=t}listen(n,t,r){if("string"==typeof n&&!(n=$l().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${t}`);return this.eventManager.addEventListener(n,t,this.decoratePreventDefault(r))}decoratePreventDefault(n){return t=>{if("__ngUnwrap__"===t)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(t)):n(t))&&t.preventDefault()}}}function OM(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class l8 extends c_{constructor(n,t,r,i,o,s,u,c){super(n,o,s,c),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const d=NM(i.id,i.styles);for(const f of d){const m=document.createElement("style");u&&m.setAttribute("nonce",u),m.textContent=f,this.shadowRoot.appendChild(m)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,r){return super.insertBefore(this.nodeOrShadowRoot(n),t,r)}removeChild(n,t){return super.removeChild(null,t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class l_ extends c_{constructor(n,t,r,i,o,s,u,c){super(n,o,s,u),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=i,this.styles=c?NM(c,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class RM extends l_{constructor(n,t,r,i,o,s,u,c){const d=i+"-"+r.id;super(n,t,r,o,s,u,c,d),this.contentAttr=function a8(e){return"_ngcontent-%COMP%".replace(a_,e)}(d),this.hostAttr=function u8(e){return"_nghost-%COMP%".replace(a_,e)}(d)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,t){const r=super.createElement(n,t);return super.setAttribute(r,this.contentAttr,""),r}}let d8=(()=>{class e extends i_{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,i){return t.addEventListener(r,i,!1),()=>this.removeEventListener(t,r,i)}removeEventListener(t,r,i){return t.removeEventListener(r,i)}static#e=this.\u0275fac=function(r){return new(r||e)(l(un))};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac})}return e})(),f8=(()=>{class e extends i_{constructor(t){super(t),this.delegate=p(zT,{optional:!0})}supports(t){return!!this.delegate&&this.delegate.supports(t)}addEventListener(t,r,i){return this.delegate.addEventListener(t,r,i)}removeEventListener(t,r,i){return this.delegate.removeEventListener(t,r,i)}static#e=this.\u0275fac=function(r){return new(r||e)(l(un))};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac})}return e})();const FM=["alt","control","meta","shift"],h8={"\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"},p8={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let m8=(()=>{class e extends i_{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,r,i){const o=e.parseEventName(r),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>$l().onAndCancel(t,o.domEventName,s))}static parseEventName(t){const r=t.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const o=e._normalizeKey(r.pop());let s="",u=r.indexOf("code");if(u>-1&&(r.splice(u,1),s="code."),FM.forEach(d=>{const f=r.indexOf(d);f>-1&&(r.splice(f,1),s+=d+".")}),s+=o,0!=r.length||0===o.length)return null;const c={};return c.domEventName=i,c.fullKey=s,c}static matchEventFullKeyCode(t,r){let i=h8[t.key]||t.key,o="";return r.indexOf("code.")>-1&&(i=t.code,o="code."),!(null==i||!i)&&(i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),FM.forEach(s=>{s!==i&&(0,p8[s])(t)&&(o+=s+".")}),o+=i,o===r)}static eventCallback(t,r,i){return o=>{e.matchEventFullKeyCode(o,t)&&i.runGuarded(()=>r(o))}}static _normalizeKey(t){return"esc"===t?"escape":t}static#e=this.\u0275fac=function(r){return new(r||e)(l(un))};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac})}return e})();const _8=yT(E5,"browser",[{provide:zi,useValue:vM},{provide:JC,useValue:function g8(){r_.makeCurrent()},multi:!0},{provide:un,useFactory:function v8(){return function e2(e){b0=e}(document),document},deps:[]}]),b8=new z(""),jM=[{provide:Wh,useClass:class t8{addToWindow(n){Ke.getAngularTestability=(r,i=!0)=>{const o=n.findTestabilityInTree(r,i);if(null==o)throw new k(5103,!1);return o},Ke.getAllAngularTestabilities=()=>n.getAllTestabilities(),Ke.getAllAngularRootElements=()=>n.getAllRootElements(),Ke.frameworkStabilizers||(Ke.frameworkStabilizers=[]),Ke.frameworkStabilizers.push(r=>{const i=Ke.getAllAngularTestabilities();let o=i.length;const s=function(){o--,0==o&&r()};i.forEach(u=>{u.whenStable(s)})})}findTestabilityInTree(n,t,r){return null==t?null:n.getTestability(t)??(r?$l().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},deps:[]},{provide:rT,useClass:vv,deps:[Le,_v,Wh]},{provide:vv,useClass:vv,deps:[Le,_v,Wh]}],BM=[{provide:xg,useValue:"root"},{provide:_i,useFactory:function y8(){return new _i},deps:[]},{provide:Ep,useClass:d8,multi:!0,deps:[un,Le,zi]},{provide:Ep,useClass:m8,multi:!0,deps:[un]},{provide:Ep,useClass:f8,multi:!0},u_,xM,AM,{provide:wh,useExisting:u_},{provide:bM,useClass:n8,deps:[]},[]];let Dp=(()=>{class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:$a,useValue:t.appId}]}}static#e=this.\u0275fac=function(r){return new(r||e)(l(b8,12))};static#t=this.\u0275mod=$t({type:e});static#n=this.\u0275inj=Et({providers:[...BM,...jM],imports:[Jv,D5]})}return e})(),d_=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Z({token:e,factory:function(r){let i=null;return i=r?new(r||e):l(D8),i},providedIn:"root"})}return e})(),D8=(()=>{class e extends d_{constructor(t){super(),this._doc=t}sanitize(t,r){if(null==r)return null;switch(t){case Xn.NONE:return r;case Xn.HTML:return bi(r,"HTML")?Kn(r):D1(this._doc,String(r)).toString();case Xn.STYLE:return bi(r,"Style")?Kn(r):r;case Xn.SCRIPT:if(bi(r,"Script"))return Kn(r);throw new k(5200,!1);case Xn.URL:return bi(r,"URL")?Kn(r):rh(String(r));case Xn.RESOURCE_URL:if(bi(r,"ResourceURL"))return Kn(r);throw new k(5201,!1);default:throw new k(5202,!1)}}bypassSecurityTrustHtml(t){return function w2(e){return new m2(e)}(t)}bypassSecurityTrustStyle(t){return function C2(e){return new g2(e)}(t)}bypassSecurityTrustScript(t){return function E2(e){return new y2(e)}(t)}bypassSecurityTrustUrl(t){return function D2(e){return new v2(e)}(t)}bypassSecurityTrustResourceUrl(t){return function S2(e){return new _2(e)}(t)}static#e=this.\u0275fac=function(r){return new(r||e)(l(un))};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const f_={now:()=>(f_.delegate||Date).now(),delegate:void 0};class S8 extends bt{constructor(n=1/0,t=1/0,r=f_){super(),this._bufferSize=n,this._windowTime=t,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,t)}next(n){const{isStopped:t,_buffer:r,_infiniteTimeWindow:i,_timestampProvider:o,_windowTime:s}=this;t||(r.push(n),!i&&r.push(o.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const t=this._innerSubscribe(n),{_infiniteTimeWindow:r,_buffer:i}=this,o=i.slice();for(let s=0;s<o.length&&!n.closed;s+=r?1:2)n.next(o[s]);return this._checkFinalizedStatuses(n),t}_trimBuffer(){const{_bufferSize:n,_timestampProvider:t,_buffer:r,_infiniteTimeWindow:i}=this,o=(i?1:2)*n;if(n<1/0&&o<r.length&&r.splice(0,r.length-o),!i){const s=t.now();let u=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)u=c;u&&r.splice(0,u+1)}}}var Tp=function(){return Tp=Object.assign||function(n){for(var t,r=1,i=arguments.length;r<i;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n},Tp.apply(this,arguments)};function Cr(e,n,t,r){return new(t||(t=Promise))(function(o,s){function u(f){try{d(r.next(f))}catch(m){s(m)}}function c(f){try{d(r.throw(f))}catch(m){s(m)}}function d(f){f.done?o(f.value):function i(o){return o instanceof t?o:new t(function(s){s(o)})}(f.value).then(u,c)}d((r=r.apply(e,n||[])).next())})}function Qr(e,n){var r,i,o,s,t={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(d){return function(f){return function c(d){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,d[0]&&(t=0)),t;)try{if(r=1,i&&(o=2&d[0]?i.return:d[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,d[1])).done)return o;switch(i=0,o&&(d=[2&d[0],o.value]),d[0]){case 0:case 1:o=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,i=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(!(o=(o=t.trys).length>0&&o[o.length-1])&&(6===d[0]||2===d[0])){t=0;continue}if(3===d[0]&&(!o||d[1]>o[0]&&d[1]<o[3])){t.label=d[1];break}if(6===d[0]&&t.label<o[1]){t.label=o[1],o=d;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(d);break}o[2]&&t.ops.pop(),t.trys.pop();continue}d=n.call(e,t)}catch(f){d=[6,f],i=0}finally{r=o=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}([d,f])}}}function g_(e,n,t){if(t||2===arguments.length)for(var o,r=0,i=n.length;r<i;r++)(o||!(r in n))&&(o||(o=Array.prototype.slice.call(n,0,r)),o[r]=n[r]);return e.concat(o||Array.prototype.slice.call(n))}function Mo(e){return this instanceof Mo?(this.v=e,this):new Mo(e)}function zM(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function m_(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=e[o]&&function(s){return new Promise(function(u,c){!function i(o,s,u,c){Promise.resolve(c).then(function(d){o({value:d,done:u})},s)}(u,c,(s=e[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const qM=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function WM(e){return st(e?.then)}function ZM(e){return st(e[ua])}function YM(e){return Symbol.asyncIterator&&st(e?.[Symbol.asyncIterator])}function KM(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const XM=function z8(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function QM(e){return st(e?.[XM])}function JM(e){return function $M(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=t.apply(e,n||[]),o=[];return i={},u("next"),u("throw"),u("return",function s(y){return function(_){return Promise.resolve(_).then(y,m)}}),i[Symbol.asyncIterator]=function(){return this},i;function u(y,_){r[y]&&(i[y]=function(C){return new Promise(function(S,I){o.push([y,C,S,I])>1||c(y,C)})},_&&(i[y]=_(i[y])))}function c(y,_){try{!function d(y){y.value instanceof Mo?Promise.resolve(y.value.v).then(f,m):g(o[0][2],y)}(r[y](_))}catch(C){g(o[0][3],C)}}function f(y){c("next",y)}function m(y){c("throw",y)}function g(y,_){y(_),o.shift(),o.length&&c(o[0][0],o[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:r,done:i}=yield Mo(t.read());if(i)return yield Mo(void 0);yield yield Mo(r)}}finally{t.releaseLock()}})}function eI(e){return st(e?.getReader)}function Jr(e){if(e instanceof _t)return e;if(null!=e){if(ZM(e))return function q8(e){return new _t(n=>{const t=e[ua]();if(st(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(qM(e))return function W8(e){return new _t(n=>{for(let t=0;t<e.length&&!n.closed;t++)n.next(e[t]);n.complete()})}(e);if(WM(e))return function Z8(e){return new _t(n=>{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,Dd)})}(e);if(YM(e))return tI(e);if(QM(e))return function Y8(e){return new _t(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(eI(e))return function K8(e){return tI(JM(e))}(e)}throw KM(e)}function tI(e){return new _t(n=>{(function X8(e,n){var t,r,i,o;return Cr(this,void 0,void 0,function*(){try{for(t=zM(e);!(r=yield t.next()).done;)if(n.next(r.value),n.closed)return}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=t.return)&&(yield o.call(t))}finally{if(i)throw i.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function Io(e,n,t,r=0,i=!1){const o=n.schedule(function(){t(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function Mp(e,n,t=1/0){return st(n)?Mp((r,i)=>Tt((o,s)=>n(r,o,i,s))(Jr(e(r,i))),t):("number"==typeof n&&(t=n),mn((r,i)=>function Q8(e,n,t,r,i,o,s,u){const c=[];let d=0,f=0,m=!1;const g=()=>{m&&!c.length&&!d&&n.complete()},y=C=>d<r?_(C):c.push(C),_=C=>{o&&n.next(C),d++;let S=!1;Jr(t(C,f++)).subscribe(Qt(n,I=>{i?.(I),o?y(I):n.next(I)},()=>{S=!0},void 0,()=>{if(S)try{for(d--;c.length&&d<r;){const I=c.shift();s?Io(n,s,()=>_(I)):_(I)}g()}catch(I){n.error(I)}}))};return e.subscribe(Qt(n,y,()=>{m=!0,g()})),()=>{u?.()}}(r,i,e,t)))}function nI(e=1/0){return Mp(Uo,e)}const rI=new _t(e=>e.complete());function iI(e){return e&&st(e.schedule)}function y_(e){return e[e.length-1]}function Ip(e){return iI(y_(e))?e.pop():void 0}function oI(e,n=0){return mn((t,r)=>{t.subscribe(Qt(r,i=>Io(r,e,()=>r.next(i),n),()=>Io(r,e,()=>r.complete(),n),i=>Io(r,e,()=>r.error(i),n)))})}function sI(e,n=0){return mn((t,r)=>{r.add(e.schedule(()=>t.subscribe(r),n))})}function aI(e,n){if(!e)throw new Error("Iterable cannot be null");return new _t(t=>{Io(t,n,()=>{const r=e[Symbol.asyncIterator]();Io(t,n,()=>{r.next().then(i=>{i.done?t.complete():t.next(i.value)})},0,!0)})})}function Po(e,n){return n?function aB(e,n){if(null!=e){if(ZM(e))return function nB(e,n){return Jr(e).pipe(sI(n),oI(n))}(e,n);if(qM(e))return function iB(e,n){return new _t(t=>{let r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}(e,n);if(WM(e))return function rB(e,n){return Jr(e).pipe(sI(n),oI(n))}(e,n);if(YM(e))return aI(e,n);if(QM(e))return function oB(e,n){return new _t(t=>{let r;return Io(t,n,()=>{r=e[XM](),Io(t,n,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){return void t.error(s)}o?t.complete():t.next(i)},0,!0)}),()=>st(r?.return)&&r.return()})}(e,n);if(eI(e))return function sB(e,n){return aI(JM(e),n)}(e,n)}throw KM(e)}(e,n):Jr(e)}function uI(e,n){return mn((t,r)=>{let i=null,o=0,s=!1;const u=()=>s&&!i&&r.complete();t.subscribe(Qt(r,c=>{i?.unsubscribe();let d=0;const f=o++;Jr(e(c,f)).subscribe(i=Qt(r,m=>r.next(n?n(c,m,f,d++):m),()=>{i=null,u()}))},()=>{s=!0,u()}))})}const Pp={schedule(e,n){const t=setTimeout(e,n);return()=>clearTimeout(t)},scheduleBeforeRender(e){if(typeof window>"u")return Pp.schedule(e,0);if(typeof window.requestAnimationFrame>"u")return Pp.schedule(e,16);const n=window.requestAnimationFrame(e);return()=>window.cancelAnimationFrame(n)}};let v_;function yB(e,n,t){let r=t;return function lB(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}(e)&&n.some((i,o)=>!("*"===i||!function fB(e,n){if(!v_){const t=Element.prototype;v_=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE&&v_.call(e,n)}(e,i)||(r=o,0))),r}class _B{constructor(n,t){this.componentFactory=t.get(Ms).resolveComponentFactory(n)}create(n){return new bB(this.componentFactory,n)}}class bB{constructor(n,t){this.componentFactory=n,this.injector=t,this.eventEmitters=new S8(1),this.events=this.eventEmitters.pipe(uI(r=>function uB(...e){const n=Ip(e),t=function tB(e,n){return"number"==typeof y_(e)?e.pop():n}(e,1/0),r=e;return r.length?1===r.length?Jr(r[0]):nI(t)(Po(r,n)):rI}(...r))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:r})=>r)),this.ngZone=this.injector.get(Le),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(n){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(n)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=Pp.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(n){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(n):this.componentRef.instance[n])}setInputValue(n,t,r){this.runInZone(()=>{r&&(t=r.call(this.componentRef?.instance,t)),null!==this.componentRef?function hB(e,n){return e===n||e!=e&&n!=n}(t,this.getInputValue(n))&&(void 0!==t||!this.unchangedInputs.has(n))||(this.recordInputChange(n,t),this.unchangedInputs.delete(n),this.hasInputChanges=!0,this.componentRef.instance[n]=t,this.scheduleDetectChanges()):this.initialInputValues.set(n,t)})}initializeComponent(n){const t=tt.create({providers:[],parent:this.injector}),r=function gB(e,n){const t=e.childNodes,r=n.map(()=>[]);let i=-1;n.some((o,s)=>"*"===o&&(i=s,!0));for(let o=0,s=t.length;o<s;++o){const u=t[o],c=yB(u,n,i);-1!==c&&r[c].push(u)}return r}(n,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,r,n),this.viewChangeDetectorRef=this.componentRef.injector.get(Tu),this.implementsOnChanges=function dB(e){return"function"==typeof e}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(_r).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:n,transform:t})=>{this.initialInputValues.has(n)&&this.setInputValue(n,this.initialInputValues.get(n),t)}),this.initialInputValues.clear()}initializeOutputs(n){const t=this.componentFactory.outputs.map(({propName:r,templateName:i})=>n.instance[r].pipe(Tt(s=>({name:i,value:s}))));this.eventEmitters.next(t)}callNgOnChanges(n){if(!this.implementsOnChanges||null===this.inputChanges)return;const t=this.inputChanges;this.inputChanges=null,n.instance.ngOnChanges(t)}markViewForCheck(n){this.hasInputChanges&&(this.hasInputChanges=!1,n.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Pp.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(n,t){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const r=this.inputChanges[n];if(r)return void(r.currentValue=t);const i=this.unchangedInputs.has(n),o=i?void 0:this.getInputValue(n);this.inputChanges[n]=new Nw(o,t,i)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(n){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(n):n()}}class wB extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class Qe{constructor(n,t){this.type=n,this.payload=t}}const rr={phoneNumber:{length:{min:4,max:30}},card:{code:{lengths:{"american-express":[3,4]}},number:{length:{min:13,max:19}},holder:{length:{min:1,max:128}}},keys:{apmsCollapse:"apms-collapse"}};function cI(e,n,t,r,i,o,s){try{var u=e[o](s),c=u.value}catch(d){return void t(d)}u.done?n(c):Promise.resolve(c).then(r,i)}function Fs(e){return function(){var n=this,t=arguments;return new Promise(function(r,i){var o=e.apply(n,t);function s(c){cI(o,r,i,s,u,"next",c)}function u(c){cI(o,r,i,s,u,"throw",c)}s(void 0)})}}function Ap(e,n){return new Promise(function(t){return setTimeout(t,e,n)})}function xp(e){return!!e&&"function"==typeof e.then}function dI(e,n){try{var t=e();xp(t)?t.then(function(r){return n(!0,r)},function(r){return n(!1,r)}):n(!0,t)}catch(r){n(!1,r)}}function fI(e,n,t){return void 0===t&&(t=16),Cr(this,void 0,void 0,function(){var r,i,o,s;return Qr(this,function(u){switch(u.label){case 0:r=Array(e.length),i=Date.now(),o=0,u.label=1;case 1:return o<e.length?(r[o]=n(e[o],o),(s=Date.now())>=i+t?(i=s,[4,new Promise(function(e){var n=new MessageChannel;n.port1.onmessage=function(){return e()},n.port2.postMessage(null)})]):[3,3]):[3,4];case 2:u.sent(),u.label=3;case 3:return++o,[3,1];case 4:return[2,r]}})})}function Yl(e){return e.then(void 0,function(){}),e}function __(e){return parseInt(e)}function ei(e){return parseFloat(e)}function Xi(e,n){return"number"==typeof e&&isNaN(e)?n:e}function Tn(e){return e.reduce(function(n,t){return n+(t?1:0)},0)}function hI(e,n){if(void 0===n&&(n=1),Math.abs(n)>=1)return Math.round(e/n)*n;var t=1/n;return Math.round(e*t)/t}function Ao(e,n){var f=0,m=0,g=0,y=0;g+=(y+=(65535&e[1])+(65535&n[1]))>>>16,y&=65535,m+=(g+=(e[1]>>>16)+(n[1]>>>16))>>>16,g&=65535,f+=(m+=(65535&e[0])+(65535&n[0]))>>>16,f+=(e[0]>>>16)+(n[0]>>>16),e[0]=(f&=65535)<<16|(m&=65535),e[1]=g<<16|y}function Er(e,n){var r=65535&e[0],i=e[1]>>>16,o=65535&e[1],u=65535&n[0],c=n[1]>>>16,d=65535&n[1],f=0,m=0,g=0,y=0;g+=(y+=o*d)>>>16,y&=65535,m+=(g+=i*d)>>>16,g&=65535,m+=(g+=o*c)>>>16,g&=65535,f+=(m+=r*d)>>>16,m&=65535,f+=(m+=i*c)>>>16,m&=65535,f+=(m+=o*u)>>>16,f+=(e[0]>>>16)*d+r*c+i*u+o*(n[0]>>>16),e[0]=(f&=65535)<<16|(m&=65535),e[1]=g<<16|y}function Pu(e,n){var t=e[0];32==(n%=64)?(e[0]=e[1],e[1]=t):n<32?(e[0]=t<<n|e[1]>>>32-n,e[1]=e[1]<<n|t>>>32-n):(e[0]=e[1]<<(n-=32)|t>>>32-n,e[1]=t<<n|e[1]>>>32-n)}function ir(e,n){0!=(n%=64)&&(n<32?(e[0]=e[1]>>>32-n,e[1]=e[1]<<n):(e[0]=e[1]<<n-32,e[1]=0))}function yt(e,n){e[0]^=n[0],e[1]^=n[1]}var PB=[4283543511,3981806797],AB=[3301882366,444984403];function pI(e){var n=[0,e[0]>>>1];yt(e,n),Er(e,PB),n[1]=e[0]>>>1,yt(e,n),Er(e,AB),n[1]=e[0]>>>1,yt(e,n)}var kp=[2277735313,289559509],Np=[1291169091,658871167],mI=[0,5],xB=[0,1390208809],kB=[0,944331445];function yI(){var e=window,n=navigator;return Tn(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in n,"msPointerEnabled"in n])>=4}function Kl(){var e=window,n=navigator;return Tn(["webkitPersistentStorage"in n,"webkitTemporaryStorage"in n,0===n.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function ti(){var e=window;return Tn(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,0===navigator.vendor.indexOf("Apple"),"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function b_(){var e=window,n=e.HTMLElement,t=e.Document;return Tn(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),n&&!("autocapitalize"in n.prototype),t&&"pointerLockElement"in t.prototype])>=4}function Xl(){var e=window;return function RB(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}(e.print)&&"[object WebPageNamespace]"===String(e.browser)}function vI(){var e,n,t=window;return Tn(["buildID"in navigator,"MozAppearance"in(null!==(n=null===(e=document.documentElement)||void 0===e?void 0:e.style)&&void 0!==n?n:{}),"onmozfullscreenchange"in t,"mozInnerScreenX"in t,"CSSMozDocumentRule"in t,"CanvasCaptureMediaStream"in t])>=4}function Ql(){var e=window,n=navigator,t=e.CSS,r=e.HTMLButtonElement;return Tn([!("getStorageUpdates"in n),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,t.supports("font-size-adjust: ex-height 0.5"),t.supports("text-transform: full-width")])>=4}function $B(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function w_(){var e=Kl(),n=vI(),t=window,r=navigator,i="connection";return e?Tn([!("SharedWorker"in t),r[i]&&"ontypechange"in r[i],!("sinkId"in new Audio)])>=2:!!n&&Tn(["onorientationchange"in t,"orientation"in t,/android/i.test(r.appVersion)])>=2}function _I(e){var n=new Error(e);return n.name=e,n}function bI(e,n,t){var r,i,o;return void 0===t&&(t=50),Cr(this,void 0,void 0,function(){var s,u;return Qr(this,function(c){switch(c.label){case 0:s=document,c.label=1;case 1:return s.body?[3,3]:[4,Ap(t)];case 2:return c.sent(),[3,1];case 3:u=s.createElement("iframe"),c.label=4;case 4:return c.trys.push([4,,10,11]),[4,new Promise(function(d,f){var m=!1,g=function(){m=!0,d()};u.onload=g,u.onerror=function(S){m=!0,f(S)};var _=u.style;_.setProperty("display","block","important"),_.position="absolute",_.top="0",_.left="0",_.visibility="hidden",n&&"srcdoc"in u?u.srcdoc=n:u.src="about:blank",s.body.appendChild(u);var C=function(){var S,I;m||("complete"===(null===(I=null===(S=u.contentWindow)||void 0===S?void 0:S.document)||void 0===I?void 0:I.readyState)?g():setTimeout(C,10))};C()})];case 5:c.sent(),c.label=6;case 6:return null!==(i=null===(r=u.contentWindow)||void 0===r?void 0:r.document)&&void 0!==i&&i.body?[3,8]:[4,Ap(t)];case 7:return c.sent(),[3,6];case 8:return[4,e(u,u.contentWindow)];case 9:return[2,c.sent()];case 10:return null===(o=u.parentNode)||void 0===o||o.removeChild(u),[7];case 11:return[2]}})})}function QB(e){for(var n=function MB(e){for(var n,t,r="Unexpected syntax '".concat(e,"'"),i=/^\s*([a-z-]*)(.*)$/i.exec(e),o=i[1]||void 0,s={},u=/([.:#][\w-]+|\[.+?\])/gi,c=function(g,y){s[g]=s[g]||[],s[g].push(y)};;){var d=u.exec(i[2]);if(!d)break;var f=d[0];switch(f[0]){case".":c("class",f.slice(1));break;case"#":c("id",f.slice(1));break;case"[":var m=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(f);if(!m)throw new Error(r);c(m[1],null!==(t=null!==(n=m[4])&&void 0!==n?n:m[5])&&void 0!==t?t:"");break;default:throw new Error(r)}}return[o,s]}(e),r=n[1],i=document.createElement(n[0]??"div"),o=0,s=Object.keys(r);o<s.length;o++){var u=s[o],c=r[u].join(" ");"style"===u?JB(i.style,c):i.setAttribute(u,c)}return i}function JB(e,n){for(var t=0,r=n.split(";");t<r.length;t++){var o=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(r[t]);o&&e.setProperty(o[1],o[2],o[4]||"")}}var Au=["monospace","sans-serif","serif"],wI=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function C_(e){return e.toDataURL()}var Op,E_;function D_(){var e=screen;return[Xi(ei(e.availTop),null),Xi(ei(e.width)-ei(e.availWidth)-Xi(ei(e.availLeft),0),null),Xi(ei(e.height)-ei(e.availHeight)-Xi(ei(e.availTop),0),null),Xi(ei(e.availLeft),null)]}function S_(e){for(var n=0;n<4;++n)if(e[n])return!1;return!0}function H7(e){var n;return Cr(this,void 0,void 0,function(){var t,r,i,o,s,u,c;return Qr(this,function(d){switch(d.label){case 0:for(t=document,r=t.createElement("div"),i=new Array(e.length),o={},CI(r),c=0;c<e.length;++c)"DIALOG"===(s=QB(e[c])).tagName&&s.show(),CI(u=t.createElement("div")),u.appendChild(s),r.appendChild(u),i[c]=s;d.label=1;case 1:return t.body?[3,3]:[4,Ap(50)];case 2:return d.sent(),[3,1];case 3:t.body.appendChild(r);try{for(c=0;c<e.length;++c)i[c].offsetParent||(o[e[c]]=!0)}finally{null===(n=r.parentNode)||void 0===n||n.removeChild(r)}return[2,o]}})})}function CI(e){e.style.setProperty("visibility","hidden","important"),e.style.setProperty("display","block","important")}function EI(e){return matchMedia("(inverted-colors: ".concat(e,")")).matches}function DI(e){return matchMedia("(forced-colors: ".concat(e,")")).matches}function xu(e){return matchMedia("(prefers-contrast: ".concat(e,")")).matches}function SI(e){return matchMedia("(prefers-reduced-motion: ".concat(e,")")).matches}function TI(e){return matchMedia("(prefers-reduced-transparency: ".concat(e,")")).matches}function MI(e){return matchMedia("(dynamic-range: ".concat(e,")")).matches}var qe=Math,Mn=function(){return 0},T_={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]},uH=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),cH=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),lH=["FRAGMENT_SHADER","VERTEX_SHADER"],dH=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],AI="WEBGL_debug_renderer_info";function xI(e){if(e.webgl)return e.webgl.context;var t,n=document.createElement("canvas");n.addEventListener("webglCreateContextError",function(){return t=void 0});for(var r=0,i=["webgl","experimental-webgl"];r<i.length;r++){var o=i[r];try{t=n.getContext(o)}catch{}if(t)break}return e.webgl={context:t},t}function mH(e,n,t){var r=e.getShaderPrecisionFormat(e[n],e[t]);return r?[r.rangeMin,r.rangeMax,r.precision]:[]}function kI(e){return Object.keys(e.__proto__).filter(gH)}function gH(e){return"string"==typeof e&&!e.match(/[^A-Z0-9_x]/)}function NI(){return vI()}function OI(e){return"function"==typeof e.getParameter}var _H={fonts:function r7(){var e=this;return bI(function(n,t){var r=t.document;return Cr(e,void 0,void 0,function(){var i,o,s,u,c,d,m,g,y,_,C;return Qr(this,function(S){for((i=r.body).style.fontSize="48px",(o=r.createElement("div")).style.setProperty("visibility","hidden","important"),s={},u={},d=function(I,T){return c("'".concat(I,"',").concat(T))},m=function(){for(var I={},T=function(Q){I[Q]=Au.map(function(re){return d(Q,re)})},R=0,L=wI;R<L.length;R++)T(L[R]);return I},g=function(I){return Au.some(function(T,R){return I[R].offsetWidth!==s[T]||I[R].offsetHeight!==u[T]})},y=Au.map(c=function(I){var T=r.createElement("span"),R=T.style;return R.position="absolute",R.top="0",R.left="0",R.fontFamily=I,T.textContent="mmMwWLliI0O&1",o.appendChild(T),T}),_=m(),i.appendChild(o),C=0;C<Au.length;C++)s[Au[C]]=y[C].offsetWidth,u[Au[C]]=y[C].offsetHeight;return[2,wI.filter(function(I){return g(_[I])})]})})})},domBlockers:function j7(e){var t=(void 0===e?{}:e).debug;return Cr(this,void 0,void 0,function(){var r,i,s,u,c;return Qr(this,function(d){switch(d.label){case 0:return function B7(){return ti()||w_()}()?(r=function V7(){var e=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',e("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",e("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",e("LnNwb25zb3JpdA=="),".ylamainos",e("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",e("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",e("LmhlYWRlci1ibG9ja2VkLWFk"),e("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",e("I2FkXzMwMFgyNTA="),e("I2Jhbm5lcmZsb2F0MjI="),e("I2NhbXBhaWduLWJhbm5lcg=="),e("I0FkLUNvbnRlbnQ=")],adGuardChinese:[e("LlppX2FkX2FfSA=="),e("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",e("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),e("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",e("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",e("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",e("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),e("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),e("LmFkZ29vZ2xl"),e("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[e("YW1wLWF1dG8tYWRz"),e("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",e("I2FkX2ludmlld19hcmVh")],adGuardRussian:[e("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),e("LnJlY2xhbWE="),'div[id^="smi2adblock"]',e("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[e("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),e("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",e("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),e("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),e("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",e("I3Jla2xhbWk="),e("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),e("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),e("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[e("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",e("LndpZGdldF9wb19hZHNfd2lkZ2V0"),e("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",e("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[e("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),e("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",e("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",e("I3Jla2xhbW5pLWJveA=="),e("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",e("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[e("I2FkdmVydGVudGll"),e("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",e("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",e("LnNwb25zb3JsaW5rZ3J1ZW4="),e("I3dlcmJ1bmdza3k="),e("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),e("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[e("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",e("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[e("LnJla2xhbW9zX3RhcnBhcw=="),e("LnJla2xhbW9zX251b3JvZG9z"),e("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),e("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),e("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[e("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[e("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),e("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",e("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[e("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),e("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),e("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",e("LmFkX19tYWlu"),e("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[e("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[e("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),e("I2xpdmVyZUFkV3JhcHBlcg=="),e("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),e("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[e("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",e("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),e("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),e("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[e("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),e("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),e("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",e("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),e("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),e("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),e("ZGl2I3NrYXBpZWNfYWQ=")],ro:[e("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),e("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[e("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),e("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),e("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",e("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),e("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",e("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}}(),i=Object.keys(r),[4,H7((c=[]).concat.apply(c,i.map(function(f){return r[f]})))]):[2,void 0];case 1:return s=d.sent(),t&&function G7(e,n){for(var t="DOM blockers debug:\n```",r=0,i=Object.keys(e);r<i.length;r++){var o=i[r];t+="\n".concat(o,":");for(var s=0,u=e[o];s<u.length;s++){var c=u[s];t+="\n ".concat(n[c]?"\u{1f6ab}":"\u27a1\ufe0f"," ").concat(c)}}console.log("".concat(t,"\n```"))}(r,s),(u=i.filter(function(f){var m=r[f];return Tn(m.map(function(y){return s[y]}))>.6*m.length})).sort(),[2,u]}})})},fontPreferences:function eH(){return function tH(e,n){return void 0===n&&(n=4e3),bI(function(t,r){var i=r.document,o=i.body,s=o.style;s.width="".concat(n,"px"),s.webkitTextSizeAdjust=s.textSizeAdjust="none",Kl()?o.style.zoom="".concat(1/r.devicePixelRatio):ti()&&(o.style.zoom="reset");var u=i.createElement("div");return u.textContent=g_([],Array(n/20|0),!0).map(function(){return"word"}).join(" "),o.appendChild(u),e(i,o)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}(function(e,n){for(var t={},r={},i=0,o=Object.keys(T_);i<o.length;i++){var u=T_[s=o[i]],c=u[0],d=void 0===c?{}:c,f=u[1],m=void 0===f?"mmMwWLliI0fiflO&1":f,g=e.createElement("span");g.textContent=m,g.style.whiteSpace="nowrap";for(var y=0,_=Object.keys(d);y<_.length;y++){var C=_[y],S=d[C];void 0!==S&&(g.style[C]=S)}t[s]=g,n.append(e.createElement("br"),g)}for(var I=0,T=Object.keys(T_);I<T.length;I++){var s;r[s=T[I]]=t[s].getBoundingClientRect().width}return r})},audio:function qB(){return function YB(){return ti()&&Ql()&&Xl()||Kl()&&function zB(){var e=navigator,n=window,t=Audio.prototype,r=n.visualViewport;return Tn(["srLatency"in t,"srChannelCount"in t,"devicePosture"in e,r&&"segments"in r,"getTextInformation"in Image.prototype])>=3}()&&function BB(){var e=window,n=e.URLPattern;return Tn(["union"in Set.prototype,"Iterator"in e,n&&"hasRegExpGroups"in n.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}()}()?-4:function WB(){var e=window,n=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!n)return-2;if(function ZB(){return ti()&&!b_()&&!function HB(){var e=window;return Tn(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}()}())return-1;var i=new n(1,5e3,44100),o=i.createOscillator();o.type="triangle",o.frequency.value=1e4;var s=i.createDynamicsCompressor();s.threshold.value=-50,s.knee.value=40,s.ratio.value=12,s.attack.value=0,s.release.value=.25,o.connect(s),s.connect(i.destination),o.start(0);var u=function KB(e){var o=function(){},s=new Promise(function(u,c){var d=!1,f=0,m=0;e.oncomplete=function(_){return u(_.renderedBuffer)};var g=function(){setTimeout(function(){return c(_I("timeout"))},Math.min(500,m+5e3-Date.now()))},y=function(){try{var _=e.startRendering();switch(xp(_)&&Yl(_),e.state){case"running":m=Date.now(),d&&g();break;case"suspended":document.hidden||f++,d&&f>=3?c(_I("suspended")):setTimeout(y,500)}}catch(C){c(C)}};y(),o=function(){d||(d=!0,m>0&&g())}});return[s,o]}(i),d=u[1],f=Yl(u[0].then(function(m){return function XB(e){for(var n=0,t=0;t<e.length;++t)n+=Math.abs(e[t]);return n}(m.getChannelData(0).subarray(4500))},function(m){if("timeout"===m.name||"suspended"===m.name)return-3;throw m}));return function(){return d(),f}}()},screenFrame:function S7(){var e=this;if(ti()&&Ql()&&Xl())return function(){return Promise.resolve(void 0)};var n=function D7(){var e=this;return function E7(){if(void 0===E_){var e=function(){var n=D_();S_(n)?E_=setTimeout(e,2500):(Op=n,E_=void 0)};e()}}(),function(){return Cr(e,void 0,void 0,function(){var n;return Qr(this,function(t){switch(t.label){case 0:return S_(n=D_())?Op?[2,g_([],Op,!0)]:function UB(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}()?[4,$B()]:[3,2]:[3,2];case 1:t.sent(),n=D_(),t.label=2;case 2:return S_(n)||(Op=n),[2,n]}})})}}();return function(){return Cr(e,void 0,void 0,function(){var t,r;return Qr(this,function(i){switch(i.label){case 0:return[4,n()];case 1:return t=i.sent(),[2,[(r=function(o){return null===o?null:hI(o,10)})(t[0]),r(t[1]),r(t[2]),r(t[3])]]}})})}},canvas:function o7(){return function s7(e){var n,r,i,t=!1,o=function a7(){var e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}(),s=o[0],u=o[1];return function u7(e,n){return!(!n||!e.toDataURL)}(s,u)?(t=function c7(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(5,5,"evenodd")}(u),e?r=i="skipped":(n=function l7(e,n){!function d7(e,n){e.width=240,e.height=60,n.textBaseline="alphabetic",n.fillStyle="#f60",n.fillRect(100,1,62,20),n.fillStyle="#069",n.font='11pt "Times New Roman"';var t="Cwm fjordbank gly ".concat("\u{1f603}");n.fillText(t,2,15),n.fillStyle="rgba(102, 204, 0, 0.2)",n.font="18pt Arial",n.fillText(t,4,45)}(e,n);var t=C_(e);return t!==C_(e)?["unstable","unstable"]:(function f7(e,n){e.width=122,e.height=110,n.globalCompositeOperation="multiply";for(var t=0,r=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];t<r.length;t++){var i=r[t],s=i[1],u=i[2];n.fillStyle=i[0],n.beginPath(),n.arc(s,u,40,0,2*Math.PI,!0),n.closePath(),n.fill()}n.fillStyle="#f9c",n.arc(60,60,60,0,2*Math.PI,!0),n.arc(60,60,20,0,2*Math.PI,!0),n.fill("evenodd")}(e,n),[C_(e),t])}(s,u),r=n[0],i=n[1])):r=i="unsupported",{winding:t,geometry:r,text:i}}(function h7(){return ti()&&Ql()&&Xl()}())},osCpu:function m7(){return navigator.oscpu},languages:function g7(){var e=navigator,n=[],t=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;if(void 0!==t&&n.push([t]),Array.isArray(e.languages))Kl()&&function jB(){var e=window;return Tn([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}()||n.push(e.languages);else if("string"==typeof e.languages){var r=e.languages;r&&n.push(r.split(","))}return n},colorDepth:function y7(){return window.screen.colorDepth},deviceMemory:function v7(){return Xi(ei(navigator.deviceMemory),void 0)},screenResolution:function _7(){if(!(ti()&&Ql()&&Xl()))return function b7(){var e=screen,n=function(r){return Xi(__(r),null)},t=[n(e.width),n(e.height)];return t.sort().reverse(),t}()},hardwareConcurrency:function T7(){return Xi(__(navigator.hardwareConcurrency),void 0)},timezone:function M7(){var e,n=null===(e=window.Intl)||void 0===e?void 0:e.DateTimeFormat;if(n){var t=(new n).resolvedOptions().timeZone;if(t)return t}var r=-function I7(){var e=(new Date).getFullYear();return Math.max(ei(new Date(e,0,1).getTimezoneOffset()),ei(new Date(e,6,1).getTimezoneOffset()))}();return"UTC".concat(r>=0?"+":"").concat(r)},sessionStorage:function P7(){try{return!!window.sessionStorage}catch{return!0}},localStorage:function A7(){try{return!!window.localStorage}catch{return!0}},indexedDB:function x7(){if(!yI()&&!function VB(){var e=window,n=navigator;return Tn(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in n,"msSaveBlob"in n])>=3&&!yI()}())try{return!!window.indexedDB}catch{return!0}},openDatabase:function k7(){return!!window.openDatabase},cpuClass:function N7(){return navigator.cpuClass},platform:function O7(){var e=navigator.platform;return"MacIntel"===e&&ti()&&!b_()?function GB(){if("iPad"===navigator.platform)return!0;var e=screen,n=e.width/e.height;return Tn(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,n>.65&&n<1.53])>=2}()?"iPad":"iPhone":e},plugins:function i7(){var e=navigator.plugins;if(e){for(var n=[],t=0;t<e.length;++t){var r=e[t];if(r){for(var i=[],o=0;o<r.length;++o){var s=r[o];i.push({type:s.type,suffixes:s.suffixes})}n.push({name:r.name,description:r.description,mimeTypes:i})}}return n}},touchSupport:function p7(){var t,e=navigator,n=0;void 0!==e.maxTouchPoints?n=__(e.maxTouchPoints):void 0!==e.msMaxTouchPoints&&(n=e.msMaxTouchPoints);try{document.createEvent("TouchEvent"),t=!0}catch{t=!1}return{maxTouchPoints:n,touchEvent:t,touchStart:"ontouchstart"in window}},vendor:function R7(){return navigator.vendor||""},vendorFlavors:function F7(){for(var e=[],n=0,t=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];n<t.length;n++){var r=t[n],i=window[r];i&&"object"==typeof i&&e.push(r)}return e.sort()},cookiesEnabled:function L7(){var e=document;try{e.cookie="cookietest=1; SameSite=Strict;";var n=-1!==e.cookie.indexOf("cookietest=");return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",n}catch{return!1}},colorGamut:function U7(){for(var e=0,n=["rec2020","p3","srgb"];e<n.length;e++){var t=n[e];if(matchMedia("(color-gamut: ".concat(t,")")).matches)return t}},invertedColors:function $7(){return!!EI("inverted")||!EI("none")&&void 0},forcedColors:function z7(){return!!DI("active")||!DI("none")&&void 0},monochrome:function W7(){if(matchMedia("(min-monochrome: 0)").matches){for(var e=0;e<=100;++e)if(matchMedia("(max-monochrome: ".concat(e,")")).matches)return e;throw new Error("Too high value")}},contrast:function Z7(){return xu("no-preference")?0:xu("high")||xu("more")?1:xu("low")||xu("less")?-1:xu("forced")?10:void 0},reducedMotion:function Y7(){return!!SI("reduce")||!SI("no-preference")&&void 0},reducedTransparency:function K7(){return!!TI("reduce")||!TI("no-preference")&&void 0},hdr:function X7(){return!!MI("high")||!MI("standard")&&void 0},math:function Q7(){var J,n=qe.acosh||Mn,t=qe.asin||Mn,r=qe.asinh||Mn,i=qe.atanh||Mn,o=qe.atan||Mn,s=qe.sin||Mn,u=qe.sinh||Mn,c=qe.cos||Mn,d=qe.cosh||Mn,f=qe.tan||Mn,m=qe.tanh||Mn,g=qe.exp||Mn,y=qe.expm1||Mn,_=qe.log1p||Mn;return{acos:(qe.acos||Mn)(.12312423423423424),acosh:n(1e308),acoshPf:(J=1e154,qe.log(J+qe.sqrt(J*J-1))),asin:t(.12312423423423424),asinh:r(1),asinhPf:qe.log(1+qe.sqrt(2)),atanh:i(.5),atanhPf:qe.log(3)/2,atan:o(.5),sin:s(-1e300),sinh:u(1),sinhPf:qe.exp(1)-1/qe.exp(1)/2,cos:c(10.000000000123),cosh:d(1),coshPf:(qe.exp(1)+1/qe.exp(1))/2,tan:f(-1e300),tanh:m(1),tanhPf:(qe.exp(2)-1)/(qe.exp(2)+1),exp:g(1),expm1:y(1),expm1Pf:qe.exp(1)-1,log1p:_(10),log1pPf:qe.log(11),powPI:qe.pow(qe.PI,-100)}},pdfViewerEnabled:function nH(){return navigator.pdfViewerEnabled},architecture:function rH(){var e=new Float32Array(1),n=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],n[3]},applePay:function iH(){var e=window.ApplePaySession;if("function"!=typeof e?.canMakePayments)return-1;if(function e7(){for(var e=window;;){var n=e.parent;if(!n||n===e)return!1;try{if(n.location.origin!==e.location.origin)return!0}catch(t){if(t instanceof Error&&"SecurityError"===t.name)return!0;throw t}e=n}}())return-3;try{return e.canMakePayments()?1:0}catch(n){return function sH(e){if(e instanceof Error&&"InvalidAccessError"===e.name&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}(n)}},privateClickMeasurement:function aH(){var e,n=document.createElement("a"),t=null!==(e=n.attributionSourceId)&&void 0!==e?e:n.attributionsourceid;return void 0===t?void 0:String(t)},audioBaseLatency:function vH(){var e;return w_()||ti()?window.AudioContext&&null!==(e=(new AudioContext).baseLatency)&&void 0!==e?e:-1:-2},webGlBasics:function hH(e){var n,t,r,i,o,s,c=xI(e.cache);if(!c)return-1;if(!OI(c))return-2;var d=NI()?null:c.getExtension(AI);return{version:(null===(n=c.getParameter(c.VERSION))||void 0===n?void 0:n.toString())||"",vendor:(null===(t=c.getParameter(c.VENDOR))||void 0===t?void 0:t.toString())||"",vendorUnmasked:d?null===(r=c.getParameter(d.UNMASKED_VENDOR_WEBGL))||void 0===r?void 0:r.toString():"",renderer:(null===(i=c.getParameter(c.RENDERER))||void 0===i?void 0:i.toString())||"",rendererUnmasked:d?null===(o=c.getParameter(d.UNMASKED_RENDERER_WEBGL))||void 0===o?void 0:o.toString():"",shadingLanguageVersion:(null===(s=c.getParameter(c.SHADING_LANGUAGE_VERSION))||void 0===s?void 0:s.toString())||""}},webGlExtensions:function pH(e){var t=xI(e.cache);if(!t)return-1;if(!OI(t))return-2;var r=t.getSupportedExtensions(),i=t.getContextAttributes(),o=[],s=[],u=[],c=[],d=[];if(i)for(var f=0,m=Object.keys(i);f<m.length;f++){var g=m[f];s.push("".concat(g,"=").concat(i[g]))}for(var _=0,C=kI(t);_<C.length;_++){var I=t[S=C[_]];u.push("".concat(S,"=").concat(I).concat(uH.has(I)?"=".concat(t.getParameter(I)):""))}if(r)for(var T=0,R=r;T<R.length;T++){var L=R[T];if(!(L===AI&&NI()||"WEBGL_polygon_mode"===L&&(Kl()||ti()))){var H=t.getExtension(L);if(!H){o.push(L);continue}for(var Q=0,re=kI(H);Q<re.length;Q++){var S;I=H[S=re[Q]],c.push("".concat(S,"=").concat(I).concat(cH.has(I)?"=".concat(t.getParameter(I)):""))}}}for(var J=0,vt=lH;J<vt.length;J++)for(var St=vt[J],xt=0,Pn=dH;xt<Pn.length;xt++){var Lo=Pn[xt],Sr=mH(t,St,Lo);d.push("".concat(St,".").concat(Lo,"=").concat(Sr.join(",")))}return c.sort(),u.sort(),{contextAttributes:s,parameters:u,shaderPrecisions:d,extensions:r,extensionParameters:c,unsupportedExtensions:o}}},wH="$ if upgrade to Pro: https://fpjs.dev/pro";function RI(e){return JSON.stringify(e,function(n,t){return t instanceof Error?function OB(e){var n;return Tp({name:e.name,message:e.message,stack:null===(n=e.stack)||void 0===n?void 0:n.split("\n")},e)}(t):t},2)}function FI(e){return function NB(e,n){var f,t=function IB(e){for(var n=new Uint8Array(e.length),t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r>127)return(new TextEncoder).encode(e);n[t]=r}return n}(e),r=[0,t.length],i=r[1]%16,o=r[1]-i,s=[0,n=n||0],u=[0,n],c=[0,0],d=[0,0];for(f=0;f<o;f+=16)c[0]=t[f+4]|t[f+5]<<8|t[f+6]<<16|t[f+7]<<24,c[1]=t[f]|t[f+1]<<8|t[f+2]<<16|t[f+3]<<24,d[0]=t[f+12]|t[f+13]<<8|t[f+14]<<16|t[f+15]<<24,d[1]=t[f+8]|t[f+9]<<8|t[f+10]<<16|t[f+11]<<24,Er(c,kp),Pu(c,31),Er(c,Np),yt(s,c),Pu(s,27),Ao(s,u),Er(s,mI),Ao(s,xB),Er(d,Np),Pu(d,33),Er(d,kp),yt(u,d),Pu(u,31),Ao(u,s),Er(u,mI),Ao(u,kB);c[0]=0,c[1]=0,d[0]=0,d[1]=0;var m=[0,0];switch(i){case 15:m[1]=t[f+14],ir(m,48),yt(d,m);case 14:m[1]=t[f+13],ir(m,40),yt(d,m);case 13:m[1]=t[f+12],ir(m,32),yt(d,m);case 12:m[1]=t[f+11],ir(m,24),yt(d,m);case 11:m[1]=t[f+10],ir(m,16),yt(d,m);case 10:m[1]=t[f+9],ir(m,8),yt(d,m);case 9:m[1]=t[f+8],yt(d,m),Er(d,Np),Pu(d,33),Er(d,kp),yt(u,d);case 8:m[1]=t[f+7],ir(m,56),yt(c,m);case 7:m[1]=t[f+6],ir(m,48),yt(c,m);case 6:m[1]=t[f+5],ir(m,40),yt(c,m);case 5:m[1]=t[f+4],ir(m,32),yt(c,m);case 4:m[1]=t[f+3],ir(m,24),yt(c,m);case 3:m[1]=t[f+2],ir(m,16),yt(c,m);case 2:m[1]=t[f+1],ir(m,8),yt(c,m);case 1:m[1]=t[f],yt(c,m),Er(c,kp),Pu(c,31),Er(c,Np),yt(s,c)}return yt(s,r),yt(u,r),Ao(s,u),Ao(u,s),pI(s),pI(u),Ao(s,u),Ao(u,s),("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)+("00000000"+(u[0]>>>0).toString(16)).slice(-8)+("00000000"+(u[1]>>>0).toString(16)).slice(-8)}(function SH(e){for(var n="",t=0,r=Object.keys(e).sort();t<r.length;t++){var i=r[t],o=e[i],s="error"in o?"error":JSON.stringify(o.value);n+="".concat(n?"|":"").concat(i.replace(/([:|\\])/g,"\\$1"),":").concat(s)}return n}(e))}function MH(e){return void 0===e&&(e=50),function DB(e,n){void 0===n&&(n=1/0);var t=window.requestIdleCallback;return t?new Promise(function(r){return t.call(window,function(){return r()},{timeout:n})}):Ap(Math.min(e,n))}(e,2*e)}function IH(e,n){var t=Date.now();return{get:function(r){return Cr(this,void 0,void 0,function(){var i,o,s;return Qr(this,function(u){switch(u.label){case 0:return i=Date.now(),[4,e()];case 1:return o=u.sent(),s=function TH(e){var n,t=function CH(e){var n=function EH(e){if(w_())return.4;if(ti())return!b_()||Ql()&&Xl()?.3:.5;var n="value"in e.platform?e.platform.value:"";return/^Win/.test(n)?.6:/^Mac/.test(n)?.5:.7}(e),t=function DH(e){return hI(.99+.01*e,1e-4)}(n);return{score:n,comment:wH.replace(/\$/g,"".concat(t))}}(e);return{get visitorId(){return void 0===n&&(n=FI(this.components)),n},set visitorId(r){n=r},confidence:t,components:e,version:"4.5.1"}}(o),(n||r?.debug)&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(s.version,"\nuserAgent: ").concat(navigator.userAgent,"\ntimeBetweenLoadAndGet: ").concat(i-t,"\nvisitorId: ").concat(s.visitorId,"\ncomponents: ").concat(RI(o),"\n```")),[2,s]}})})}}}var xH={load:function AH(e){var n;return void 0===e&&(e={}),Cr(this,void 0,void 0,function(){var r,i;return Qr(this,function(o){switch(o.label){case 0:return(!(null!==(n=e.monitoring)&&void 0!==n)||n)&&function PH(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat("4.5.1","/npm-monitoring"),!0),e.send()}catch(n){console.error(n)}}(),r=e.debug,[4,MH(e.delayFallback)];case 1:return o.sent(),i=function bH(e){return function LB(e,n,t,r){var i=Object.keys(e).filter(function(s){return function TB(e,n){return!function SB(e,n){for(var t=0,r=e.length;t<r;++t)if(e[t]===n)return!0;return!1}(e,n)}(t,s)}),o=Yl(fI(i,function(s){return function FB(e,n){var t=Yl(new Promise(function(r){var i=Date.now();dI(e.bind(null,n),function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var u=Date.now()-i;if(!o[0])return r(function(){return{error:o[1],duration:u}});var c=o[1];if(function gI(e){return"function"!=typeof e}(c))return r(function(){return{value:c,duration:u}});r(function(){return new Promise(function(d){var f=Date.now();dI(c,function(){for(var m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];var y=u+Date.now()-f;if(!m[0])return d({error:m[1],duration:y});d({value:m[1],duration:y})})})})})}));return function(){return t.then(function(i){return i()})}}(e[s],n)},r));return function(){return Cr(this,void 0,void 0,function(){var c,d,f,m;return Qr(this,function(g){switch(g.label){case 0:return[4,o];case 1:return[4,fI(g.sent(),function(y){return Yl(y())},r)];case 2:return c=g.sent(),[4,Promise.all(c)];case 3:for(d=g.sent(),f={},m=0;m<i.length;++m)f[i[m]]=d[m];return[2,f]}})})}}(_H,e,[])}({cache:{},debug:r}),[2,IH(i,r)]}})})},hashComponents:FI,componentsToDebugString:RI},LI=function(e){return e[e.SMALL=1]="SMALL",e[e.MEDIUM=2]="MEDIUM",e[e.LARGE=3]="LARGE",e[e.EXTRA_LARGE=4]="EXTRA_LARGE",e[e.FULL_SCREEN=5]="FULL_SCREEN",e}(LI||{});const OH=xH.load();function RH(){return new _t(e=>{(function FH(){return M_.apply(this,arguments)})().then(n=>{e.next(n),e.complete()}).catch(n=>{e.error(n)})})}function M_(){return(M_=Fs(function*(){const e={};e.browserData=function kH(){const e=screen.height||window.innerHeight,n=screen.width||window.innerWidth,t=LI.FULL_SCREEN;return{timezoneOffsetUtcMinutes:(new Date).getTimezoneOffset(),locale:navigator.language,userAgent:navigator.userAgent,javaEnabled:navigator.javaEnabled()||!1,javaScriptEnabled:!0,colorDepth:screen.colorDepth,width:n,height:e,challengeWindowSize:t}}();try{const n=yield(yield OH).get();e.id=n.visitorId,e.fonts=n.components.fonts.value;const t=navigator,r=t.getBattery?t.getBattery():void 0;let i;r&&(i=yield r,e.batteryLevelAndChargingStatus=i?`level: ${i.level??"unknown"}; charging: ${i.charging??"unknown"}`:void 0);const o=t.connection||t.mozConnection||t.webkitConnection;e.networkParameters=o?`type: ${o.type??"unknown"}; effectiveType: ${o.effectiveType??"unknown"}`:void 0}catch{}return e})).apply(this,arguments)}class Rp{constructor(){this.emitEnabled=!0,this.optionalEmitEnabled=!0,this.emitter=new Ge}emit(n,t){this.emitEnabled&&(!t||t&&this.optionalEmitEnabled)&&this.emitter.emit(n)}}let Je=(()=>{class e{constructor(){this.componentsStates={availableCardBrands:we({isRequired:!1,canShowError:!1,isValid:!0,filled:!0,enabled:!0}),cardList:we({isRequired:!1,canShowError:!1,isValid:!0,filled:!0,enabled:!0}),cardForm:we({isRequired:!0,canShowError:!1,isValid:!0,filled:!1,enabled:!0}),additionalForm:we({isRequired:!1,canShowError:!1,isValid:!0,filled:!1,enabled:!0}),chargeTerms:we({isRequired:!0,canShowError:!1,isValid:!0,filled:!1,enabled:!0}),payButton:we({isRequired:!0,canShowError:!1,isValid:!0,filled:!1,enabled:!0}),apmList:we({isRequired:!1,canShowError:!1,isValid:!0,filled:!0,enabled:!0}),userPreferences:we({isRequired:!0,canShowError:!1,isValid:!0,filled:!1,enabled:!0}),merchantInfo:we({isRequired:!1,canShowError:!1,isValid:!0,filled:!0,enabled:!0}),protectedBy:we({isRequired:!1,canShowError:!1,isValid:!0,filled:!0,enabled:!0}),master:we({isRequired:!0,canShowError:!1,isValid:!0,filled:!1,enabled:!0})},this.visibility={availableCardBrands:Se(()=>this.componentsStates.availableCardBrands().enabled&&!!this.data.settings()?.components?.some(t=>"available-card-brands"===t)),cardList:Se(()=>this.componentsStates.cardList().enabled&&!!this.data.settings()?.components?.some(t=>"card-list"===t)),cardForm:Se(()=>this.componentsStates.cardForm().enabled&&!!this.data.settings()?.components?.some(t=>"requisites"===t)),additionalForm:Se(()=>this.componentsStates.cardForm().enabled&&this.componentsStates.additionalForm().enabled&&!!this.data.settings()?.components?.some(t=>"phone-number"===t)),chargeTerms:Se(()=>this.componentsStates.chargeTerms().enabled&&!!this.data.settings()?.components?.some(t=>"charge-terms"===t)&&!this.visibility.noMethods()),payButton:Se(()=>(this.componentsStates.cardList().enabled||this.componentsStates.cardForm().enabled)&&this.componentsStates.payButton().enabled&&!!this.data.settings()?.components?.some(t=>"pay-button"===t)),apmList:Se(()=>this.componentsStates.apmList().enabled&&!!this.data.settings()?.components?.some(t=>"apm-list"===t)),userPreferences:Se(()=>this.componentsStates.userPreferences().enabled&&!!this.data.settings()?.components?.some(t=>"user-preferences"===t)&&!this.visibility.noMethods()),merchantInfo:Se(()=>this.componentsStates.merchantInfo().enabled&&!!this.data.settings()?.components?.some(t=>"merchant-info"===t)),protectedBy:Se(()=>this.componentsStates.protectedBy().enabled&&!!this.data.settings()?.components?.some(t=>"protected-by"===t)),noMethods:Se(()=>!this.componentsStates.cardForm().enabled&&!this.componentsStates.cardList().enabled&&!this.componentsStates.apmList().enabled),master:Se(()=>this.componentsStates.master().enabled&&!!this.data.settings()?.components?.some(t=>"master"===t)&&!this.visibility.noMethods())},this.data={payment:we(void 0),settings:we(void 0),userProvidedInfo:we({}),loadedPaymentSystems:we([]),loadedExistingCards:we([]),deviceInfo:we(void 0),state:we({type:"empty",payload:void 0}),paymentSystemsLoading:we(!1),cardsLoading:we(!1)},this.computed={isLoading:Se(()=>this.data.paymentSystemsLoading()||this.data.cardsLoading()),paymentAvailability:Se(()=>{const t=this.data.settings(),r={canPay:{byCard:!1,byApm:!1},isPayButtonDisabled:!1};if(!t)return r;let i=!0,o=!0;for(let c in this.componentsStates)if(this.componentsStates.hasOwnProperty(c)){const d=this.componentsStates[c]();i=i&&(d.isValid||!d.enabled),o=o&&(d.filled||!d.enabled)}const s=this.componentsStates.chargeTerms(),u=this.componentsStates.master();return r.canPay.byApm=t.components.includes("master")?!u.enabled||u.isValid:!t.components.includes("charge-terms")||!s.enabled||s.isValid,"disabled"!=t.requiredFieldsBehavior?.buttonStateUntilFilled||o?"hidden-enabled"!=t.requiredFieldsBehavior?.buttonStateUntilFilled||o?i?{canPay:{...r.canPay,byCard:!0}}:r:{...r,buttonDisableClass:"hidden-enabled-element",elementDisableClass:"hidden-enabled-element"}:{...r,elementDisableClass:"disabled-element",isPayButtonDisabled:!0}})},this.events={analytics:new Rp,error:new Rp,close:new Rp,paid:new Rp},this.callbacks={},this.clients={googlePay:void 0}}updateCanShowError(t){for(let r in this.componentsStates)this.componentsStates.hasOwnProperty(r)&&this.componentsStates[r].update(i=>i.canShowError===t?i:{...i,canShowError:t})}updateCanShowErrorForApm(t){this.componentsStates.chargeTerms.update(r=>({...r,canShowError:t})),this.componentsStates.master.update(r=>({...r,canShowError:t}))}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac})}return e})();function Fp(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}function I_(e,...n){if(!n.length)return e;const t=n.shift();if(Fp(e)&&Fp(t))for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const i=t[r];e[r]=Fp(i)&&Fp(e[r])?I_(e[r],i):i}return I_(e,...n)}function LH(...e){return I_({},...e)}function VI(e){return"string"==typeof e||e instanceof String?JSON.parse(e):e}const jI={header:"Checkout",errors:{notCheckedCheckboxes:"Please check these boxes",invalidCardHolder:"Invalid cardholder name",invalidCardNumber:"Invalid card number",invalidCardExpiration:"Invalid card date",invalidCvv:"Invalid card code",invalidPhoneNumber:"Invalid phone number"},requisites:{paymentDetailsHeader:"Payment details",cardNumberPlaceholder:"Card number",cardExpirationPlaceholder:"MM/YY",cvvHint:"CVV (Card Verification Value)",cardHolderHeader:"Name on card",cardHolderPlaceholder:"Name on card"},phone:{header:"Phone",placeholder:"Phone number"},apms:{or:"OR",orUseAlternative:"or use alternative methods"},totalHeader:"Total",pay:"Pay",availableCardBrandsHeader:"Payment methods",transactionProtectedBy:"Your transactions are protected by",existingCards:{manageCardsHeader:"Manage cards",addNewCard:"Add new card",removeCard:"Remove card"},paymentResult:{success:"We placed your order",failure:{main:"Something went wrong",paymentFailed:"Payment failed."}},paymentProcessing:"payment processing",notifications:{cardDeleted:{title:"Successful",text:"Card has been deleted"},error:{default:{title:"Attention!",text:"Unable to process the payment"}}},noAvailablePaymentMethods:"No available payment methods...",close:"Close",master:{selectAll:""},confirmPayment:"Confirm payment"},jH={urls:{},availableCardBrands:["mastercard","visa"],chargeTerms:void 0,isCloseButtonVisible:!0,isProblemTipsListVisible:!1,isTaxVisible:!1,isSignatureRequired:!1,isHeaderVisible:!0,closePaymentRedirect:!0,languageSettings:{code:"en-US",languages:{"en-US":jI,"es-ES":{header:"Verificar",errors:{notCheckedCheckboxes:"Debe marcar estas casillas",invalidCardHolder:"Nombre del titular de la tarjeta no v\xe1lido",invalidCardNumber:"N\xfamero de tarjeta no v\xe1lido",invalidCardExpiration:"Fecha de la tarjeta no v\xe1lida",invalidCvv:"C\xf3digo de la tarjeta no v\xe1lido",invalidPhoneNumber:"N\xfamero de tel\xe9fono no v\xe1lido"},requisites:{paymentDetailsHeader:"Detalles del pago",cardNumberPlaceholder:"N\xfamero de tarjeta",cardExpirationPlaceholder:"MM/AA",cvvHint:"CVV (Valor de verificaci\xf3n de la tarjeta)",cardHolderHeader:"Nombre en la tarjeta",cardHolderPlaceholder:"Nombre en la tarjeta"},phone:{header:"Tel\xe9fono",placeholder:"N\xfamero de tel\xe9fono"},apms:{or:"O",orUseAlternative:"o usar m\xe9todos alternativos"},totalHeader:"Total",pay:"Pagar",availableCardBrandsHeader:"M\xe9todos de pago",transactionProtectedBy:"Sus transacciones est\xe1n protegidas por",existingCards:{manageCardsHeader:"Gestionar tarjetas",addNewCard:"A\xf1adir nueva tarjeta",removeCard:"Eliminar tarjeta"},paymentResult:{success:"Hemos realizado su pedido",failure:{main:"Algo sali\xf3 mal",paymentFailed:"El pago no se ha procesado."}},paymentProcessing:"Procesando el pago\u2026",notifications:{cardDeleted:{title:"Exitoso",text:"Se ha eliminado la tarjeta."},error:{default:{title:"\xa1Atenci\xf3n!",text:"No se ha podido procesar el pago."}}},noAvailablePaymentMethods:"No hay m\xe9todos de pago disponibles\u2026",close:"Cerrar",master:{selectAll:""},confirmPayment:"Confirmar el pago"},"fr-FR":{header:"Paiement",errors:{notCheckedCheckboxes:"Veuillez cocher les cases suivantes",invalidCardHolder:"Nom du titulaire de la carte invalide",invalidCardNumber:"Num\xe9ro de carte non valide",invalidCardExpiration:"Date de la carte invalide",invalidCvv:"Code de carte invalide",invalidPhoneNumber:"Num\xe9ro de t\xe9l\xe9phone invalide"},requisites:{paymentDetailsHeader:"Modalit\xe9s de paiement",cardNumberPlaceholder:"Num\xe9ro de carte",cardExpirationPlaceholder:"MM/AA",cvvHint:"CVV (Valeur de v\xe9rification de la carte)",cardHolderHeader:"Nom sur la carte",cardHolderPlaceholder:"Nom sur la carte"},phone:{header:"T\xe9l\xe9phone",placeholder:"Num\xe9ro de t\xe9l\xe9phone"},apms:{or:"OU",orUseAlternative:"ou utilisez des m\xe9thodes alternatives"},totalHeader:"Total",pay:"Payer",availableCardBrandsHeader:"Modes de paiement",transactionProtectedBy:"Vos transactions sont prot\xe9g\xe9es par",existingCards:{manageCardsHeader:"G\xe9rer les cartes",addNewCard:"Ajoutez une nouvelle carte",removeCard:"Supprimer la carte"},paymentResult:{success:"Nous avons pass\xe9 votre commande",failure:{main:"Une erreur est survenue",paymentFailed:"Le paiement a \xe9chou\xe9."}},paymentProcessing:"traitement du paiement",notifications:{cardDeleted:{title:"R\xe9ussie",text:"La carte a \xe9t\xe9 supprim\xe9e"},error:{default:{title:"Attention !",text:"Impossible de traiter le paiement"}}},noAvailablePaymentMethods:"Aucune m\xe9thode de paiement disponible...",close:"Fermer",master:{selectAll:""},confirmPayment:"Confirmer le Paiement"}}},merchantInfo:void 0,userPreferences:void 0,components:["available-card-brands","no-methods","card-list","requisites","phone-number","charge-terms","pay-button","apm-list","user-preferences","merchant-info","protected-by"],resultComponentsStructure:{aboveResult:["available-card-brands"],belowResult:["merchant-info","protected-by"]},events:{analytics:{optional:!1,required:!1},error:!0},requiredFieldsBehavior:{buttonStateUntilFilled:"enabled",markAsInvalidUntilCorrect:!1,showStars:!1},apmsCollapse:!1,googlePay:{allowedAuthMethods:["CRYPTOGRAM_3DS","PAN_ONLY"],button:{buttonSizeMode:"fill",buttonRadius:4}}};function BH(e,n){if(1&e&&(j(0,"div",1),je(1,"img",2),B()),2&e){const t=q();x(),Y("src",t.src,nl)("alt",t.alt)}}let ku=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Ze({type:e,selectors:[["moto-picture"]],inputs:{src:"src",alt:"alt"},decls:1,vars:1,consts:[["class","__ndb-picture",4,"ngIf"],[1,"__ndb-picture"],[1,"__ndb-picture-tag",3,"src","alt"]],template:function(r,i){1&r&&me(0,BH,2,2,"div",0),2&r&&Y("ngIf",i.src)},dependencies:[_p],styles:[".__ndb-picture[_ngcontent-%COMP%]{height:inherit;width:inherit}.__ndb-picture-tag[_ngcontent-%COMP%]{height:100%;width:100%;object-fit:cover}"],changeDetection:0})}return e})();var Nu=function(e){return e.default="default-card-icon",e.mastercard="master-card-icon",e.maestro="maestro",e.visa="visa-card-icon-new",e.discover="discover",e.jcb="jcb",e["american-express"]="american-express",e.unionpay="unionpay",e}(Nu||{});const Ou_customHeaders_skipToastr="X-Skip-Toastr";let HH=(()=>{class e{transform(t){const r=Nu[t];let i=r?.toString();if(i&&(r==Nu.visa&&(i+="-brand"),r==Nu.mastercard&&(i+="-brand"),r))return`https://cdn.motopays.com/images/${i}.svg`}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275pipe=Nt({name:"brandLogo",type:e,pure:!0})}return e})();function GH(e,n){1&e&&je(0,"moto-picture",4),2&e&&Y("src",n)}function UH(e,n){if(1&e&&(me(0,GH,1,1,"moto-picture",4),Xe(1,"brandLogo")),2&e){let t;Ce((t=Rl(1,1,n.$implicit))?0:-1,t)}}let HI=(()=>{class e{constructor(t){this.context=t}ngOnInit(){this.settings=this.context.data.settings}static#e=this.\u0275fac=function(r){return new(r||e)(P(Je))};static#t=this.\u0275cmp=Ze({type:e,selectors:[["moto-available-card-brands"]],decls:8,vars:1,consts:[[1,"__ndb-brands"],[1,"__ndb-brands-paymentsheader"],[1,"fz-14","fw-500"],[1,"__ndb-brands-payments"],[1,"__ndb-brands-payments-logo",3,"src"]],template:function(r,i){if(1&r&&(tr(0),j(1,"div",0)(2,"div",1)(3,"h6",2),ce(4),B()(),j(5,"div",3),Hn(6,UH,2,3,null,null,Zr),B()()),2&r){const o=i.settings();x(4),nt(" ",o.language.availableCardBrandsHeader," "),x(2),Gn(o.availableCardBrands)}},dependencies:[ku,HH],styles:["[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.__ndb-brands[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}.__ndb-brands-payments[_ngcontent-%COMP%]{gap:10px;display:flex;justify-content:center}.__ndb-brands-payments-logo[_ngcontent-%COMP%]{height:24px;width:36px}.__ndb-brands-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:10px}.__ndb-brands-paymentsheader[_ngcontent-%COMP%]{justify-content:center;display:flex;align-items:center;gap:10px}"],changeDetection:0})}return e})();class $H{constructor(n,t=we(!1)){this.item=n,this.selected=t}setSelected(n){this.selected.set(n)}}var he=function(e){return e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger",e}(he||{});const Qi="*";function Ru(e,n){return{type:he.Trigger,name:e,definitions:n,options:{}}}function ni(e,n=null){return{type:he.Animate,styles:n,timings:e}}function Dt(e){return{type:he.Style,styles:e,offset:null}}function Jl(e,n,t){return{type:he.State,name:e,styles:n,options:t}}function ri(e,n,t=null){return{type:he.Transition,expr:e,animation:n,options:t}}class ed{constructor(n=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const t="start"==n?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class GI{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let t=0,r=0,i=0;const o=this.players.length;0==o?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++t==o&&this._onFinish()}),s.onDestroy(()=>{++r==o&&this._onDestroy()}),s.onStart(()=>{++i==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,u)=>Math.max(s,u.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const t=n*this.totalTime;this.players.forEach(r=>{const i=r.totalTime?Math.min(1,t/r.totalTime):1;r.setPosition(i)})}getPosition(){const n=this.players.reduce((t,r)=>null===t||r.totalTime>t.totalTime?r:t,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const t="start"==n?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}const td_animation_defaultAnimateMc=0;class A_{constructor(n){this.animationTime=td_animation_defaultAnimateMc,Object.assign(this,n)}}const KH=Ru("ANHeight",[ri(":enter",[Dt({overflow:"hidden",height:"0px"}),ni(td_animation_defaultAnimateMc,Dt({height:"*",overflow:"hidden"}))]),ri(":leave",[Dt({height:"*",overflow:"hidden"}),ni(td_animation_defaultAnimateMc,Dt({height:"0px",overflow:"hidden"}))])]),XH=Ru("ANScale",[ri(":enter",[Dt({opacity:0,transform:"scale(0)"}),ni(td_animation_defaultAnimateMc,Dt({opacity:1,transform:"scale(1)"}))]),ri(":leave",ni(td_animation_defaultAnimateMc,Dt({opacity:0,transform:"scale(0)"})))]),Lp=e=>{const n=new A_({animationName:"ANTransform",fromStyles:{opacity:"0",transform:"translateY(-100%)"},toStyles:{opacity:"1",transform:"translateY(0%)"}}),t=Object.assign(n,e),{animationName:r,animationTime:i,fromStyles:o,toStyles:s}=t;return Ru(r,[ri(":enter",[Dt(o),ni(i,Dt(s))]),ri(":leave",[Dt(s),ni(i,Dt(o))])])},QH=e=>{const n=new A_({animationName:"ANStates",fromState:"a",toState:"b"}),t=Object.assign(n,e),{animationName:r,animationTime:i,fromStyles:o,toStyles:s,fromState:u,toState:c}=t;return Ru(r,[Jl(u,Dt(o)),Jl(c,Dt(s)),ri(`${u}<=>${c}`,ni(i))])},JH=e=>{const n=new A_({animationName:"ANStates"}),t=Object.assign(n,e),{animationName:r,animationTime:i,fromStyles:o,toStyles:s}=t;return Ru(r,[ri(":enter",[Dt(o),ni(i,Dt(s))]),ri(":leave",[Dt(s),ni(i,Dt(o))])])};function or(...e){return Po(e,Ip(e))}function Fu(e){return mn((n,t)=>{let o,r=null,i=!1;r=n.subscribe(Qt(t,void 0,void 0,s=>{o=Jr(e(s,Fu(e)(n))),r?(r.unsubscribe(),r=null,o.subscribe(t)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(t))})}function Lu(e,n){return st(n)?Mp(e,n,1):Mp(e,1)}function UI(e,n){return mn((t,r)=>{let i=0;t.subscribe(Qt(r,o=>e.call(n,o,i++)&&r.next(o)))})}class Vp{}class jp{}class sr{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.split("\n").forEach(t=>{const r=t.indexOf(":");if(r>0){const i=t.slice(0,r),o=i.toLowerCase(),s=t.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((t,r)=>{this.setHeaderEntries(r,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([t,r])=>{this.setHeaderEntries(t,r)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const t=this.headers.get(n.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,t){return this.clone({name:n,value:t,op:"a"})}set(n,t){return this.clone({name:n,value:t,op:"s"})}delete(n,t){return this.clone({name:n,value:t,op:"d"})}maybeSetNormalizedName(n,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,n)}init(){this.lazyInit&&(this.lazyInit instanceof sr?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(t=>{this.headers.set(t,n.headers.get(t)),this.normalizedNames.set(t,n.normalizedNames.get(t))})}clone(n){const t=new sr;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof sr?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([n]),t}applyUpdate(n){const t=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(n.name,t);const i=("a"===n.op?this.headers.get(t):void 0)||[];i.push(...r),this.headers.set(t,i);break;case"d":const o=n.value;if(o){let s=this.headers.get(t);if(!s)return;s=s.filter(u=>-1===o.indexOf(u)),0===s.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}else this.headers.delete(t),this.normalizedNames.delete(t)}}setHeaderEntries(n,t){const r=(Array.isArray(t)?t:[t]).map(o=>o.toString()),i=n.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(n,i)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}}class tG{encodeKey(n){return $I(n)}encodeValue(n){return $I(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const rG=/%(\d[a-f0-9])/gi,iG={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function $I(e){return encodeURIComponent(e).replace(rG,(n,t)=>iG[t]??n)}function Bp(e){return`${e}`}class Ji{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new tG,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function nG(e,n){const t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(i=>{const o=i.indexOf("="),[s,u]=-1==o?[n.decodeKey(i),""]:[n.decodeKey(i.slice(0,o)),n.decodeValue(i.slice(o+1))],c=t.get(s)||[];c.push(u),t.set(s,c)}),t}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{const r=n.fromObject[t],i=Array.isArray(r)?r.map(Bp):[Bp(r)];this.map.set(t,i)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){const t=[];return Object.keys(n).forEach(r=>{const i=n[r];Array.isArray(i)?i.forEach(o=>{t.push({param:r,value:o,op:"a"})}):t.push({param:r,value:i,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const t=this.encoder.encodeKey(n);return this.map.get(n).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const t=new Ji({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const t=("a"===n.op?this.map.get(n.param):void 0)||[];t.push(Bp(n.value)),this.map.set(n.param,t);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let r=this.map.get(n.param)||[];const i=r.indexOf(Bp(n.value));-1!==i&&r.splice(i,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class oG{constructor(){this.map=new Map}set(n,t){return this.map.set(n,t),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function zI(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function qI(e){return typeof Blob<"u"&&e instanceof Blob}function WI(e){return typeof FormData<"u"&&e instanceof FormData}class nd{constructor(n,t,r,i){let o;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function sG(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new sr,this.context??=new oG,this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=t;else{const u=t.indexOf("?");this.urlWithParams=t+(-1===u?"?":u<t.length-1?"&":"")+s}}else this.params=new Ji,this.urlWithParams=t}serializeBody(){return null===this.body?null:"string"==typeof this.body||zI(this.body)||qI(this.body)||WI(this.body)||function aG(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}(this.body)?this.body:this.body instanceof Ji?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||WI(this.body)?null:qI(this.body)?this.body.type||null:zI(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Ji?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(n={}){const t=n.method||this.method,r=n.url||this.url,i=n.responseType||this.responseType,o=n.transferCache??this.transferCache,s=void 0!==n.body?n.body:this.body,u=n.withCredentials??this.withCredentials,c=n.reportProgress??this.reportProgress;let d=n.headers||this.headers,f=n.params||this.params;const m=n.context??this.context;return void 0!==n.setHeaders&&(d=Object.keys(n.setHeaders).reduce((g,y)=>g.set(y,n.setHeaders[y]),d)),n.setParams&&(f=Object.keys(n.setParams).reduce((g,y)=>g.set(y,n.setParams[y]),f)),new nd(t,r,s,{params:f,headers:d,context:m,reportProgress:c,responseType:i,withCredentials:u,transferCache:o})}}var xo=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(xo||{});class x_{constructor(n,t=200,r="OK"){this.headers=n.headers||new sr,this.status=void 0!==n.status?n.status:t,this.statusText=n.statusText||r,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class Hp extends x_{constructor(n={}){super(n),this.type=xo.ResponseHeader}clone(n={}){return new Hp({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Ls extends x_{constructor(n={}){super(n),this.type=xo.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new Ls({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Vu extends x_{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function k_(e,n){return{body:n,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}let Gp=(()=>{class e{constructor(t){this.handler=t}request(t,r,i={}){let o;if(t instanceof nd)o=t;else{let c,d;c=i.headers instanceof sr?i.headers:new sr(i.headers),i.params&&(d=i.params instanceof Ji?i.params:new Ji({fromObject:i.params})),o=new nd(t,r,void 0!==i.body?i.body:null,{headers:c,context:i.context,params:d,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}const s=or(o).pipe(Lu(c=>this.handler.handle(c)));if(t instanceof nd||"events"===i.observe)return s;const u=s.pipe(UI(c=>c instanceof Ls));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return u.pipe(Tt(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return u.pipe(Tt(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return u.pipe(Tt(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return u.pipe(Tt(c=>c.body))}case"response":return u;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:(new Ji).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,i={}){return this.request("PATCH",t,k_(i,r))}post(t,r,i={}){return this.request("POST",t,k_(i,r))}put(t,r,i={}){return this.request("PUT",t,k_(i,r))}static#e=this.\u0275fac=function(r){return new(r||e)(l(Vp))};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac})}return e})();const lG=/^\)\]\}',?\n/;function YI(e){if(e.url)return e.url;const n="X-Request-URL".toLocaleLowerCase();return e.headers.get(n)}let N_=(()=>{class e{constructor(){this.fetchImpl=p(fG,{optional:!0})?.fetch??((...t)=>globalThis.fetch(...t)),this.ngZone=p(Le)}handle(t){return new _t(r=>{const i=new AbortController;return this.doRequest(t,i.signal,r).then(O_,o=>r.error(new Vu({error:o}))),()=>i.abort()})}doRequest(t,r,i){var o=this;return Fs(function*(){const s=o.createRequestInit(t);let u;try{const _=o.ngZone.runOutsideAngular(()=>o.fetchImpl(t.urlWithParams,{signal:r,...s}));(function hG(e){e.then(O_,O_)})(_),i.next({type:xo.Sent}),u=yield _}catch(_){return void i.error(new Vu({error:_,status:_.status??0,statusText:_.statusText,url:t.urlWithParams,headers:_.headers}))}const c=new sr(u.headers),d=u.statusText,f=YI(u)??t.urlWithParams;let m=u.status,g=null;if(t.reportProgress&&i.next(new Hp({headers:c,status:m,statusText:d,url:f})),u.body){const _=u.headers.get("content-length"),C=[],S=u.body.getReader();let T,R,I=0;const L=typeof Zone<"u"&&Zone.current;yield o.ngZone.runOutsideAngular(Fs(function*(){for(;;){const{done:Q,value:re}=yield S.read();if(Q)break;if(C.push(re),I+=re.length,t.reportProgress){R="text"===t.responseType?(R??"")+(T??=new TextDecoder).decode(re,{stream:!0}):void 0;const J=()=>i.next({type:xo.DownloadProgress,total:_?+_:void 0,loaded:I,partialText:R});L?L.run(J):J()}}}));const H=o.concatChunks(C,I);try{const Q=u.headers.get("Content-Type")??"";g=o.parseBody(t,H,Q)}catch(Q){return void i.error(new Vu({error:Q,headers:new sr(u.headers),status:u.status,statusText:u.statusText,url:YI(u)??t.urlWithParams}))}}0===m&&(m=g?200:0),m>=200&&m<300?(i.next(new Ls({body:g,headers:c,status:m,statusText:d,url:f})),i.complete()):i.error(new Vu({error:g,headers:c,status:m,statusText:d,url:f}))})()}parseBody(t,r,i){switch(t.responseType){case"json":const o=(new TextDecoder).decode(r).replace(lG,"");return""===o?null:JSON.parse(o);case"text":return(new TextDecoder).decode(r);case"blob":return new Blob([r],{type:i});case"arraybuffer":return r.buffer}}createRequestInit(t){const r={},i=t.withCredentials?"include":void 0;if(t.headers.forEach((o,s)=>r[o]=s.join(",")),t.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!t.headers.has("Content-Type")){const o=t.detectContentTypeHeader();null!==o&&(r["Content-Type"]=o)}return{body:t.serializeBody(),method:t.method,headers:r,credentials:i}}concatChunks(t,r){const i=new Uint8Array(r);let o=0;for(const s of t)i.set(s,o),o+=s.length;return i}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac})}return e})();class fG{}function O_(){}function KI(e,n){return n(e)}const rd=new z(""),XI=new z(""),QI=new z("",{providedIn:"root",factory:()=>!0});let JI=(()=>{class e extends Vp{constructor(t,r){super(),this.backend=t,this.injector=r,this.chain=null,this.pendingTasks=p(vs),this.contributeToStability=p(QI)}handle(t){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(rd),...this.injector.get(XI,[])]));this.chain=r.reduceRight((i,o)=>function mG(e,n,t){return(r,i)=>function mx(e,n){e instanceof xa&&e.assertNotDestroyed();const r=Oe(e),i=tn(void 0);try{return n()}finally{Oe(r),tn(i)}}(t,()=>n(r,o=>e(o,i)))}(i,o,this.injector),KI)}if(this.contributeToStability){const r=this.pendingTasks.add();return this.chain(t,i=>this.backend.handle(i)).pipe(function eG(e){return mn((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}(()=>this.pendingTasks.remove(r)))}return this.chain(t,r=>this.backend.handle(r))}static#e=this.\u0275fac=function(r){return new(r||e)(l(jp),l(mr))};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac})}return e})();const CG=/^\)\]\}',?\n/;let t3=(()=>{class e{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new k(-2800,!1);const r=this.xhrFactory;return(r.\u0275loadImpl?Po(r.\u0275loadImpl()):or(null)).pipe(uI(()=>new _t(o=>{const s=r.build();if(s.open(t.method,t.urlWithParams),t.withCredentials&&(s.withCredentials=!0),t.headers.forEach((C,S)=>s.setRequestHeader(C,S.join(","))),t.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const C=t.detectContentTypeHeader();null!==C&&s.setRequestHeader("Content-Type",C)}if(t.responseType){const C=t.responseType.toLowerCase();s.responseType="json"!==C?C:"text"}const u=t.serializeBody();let c=null;const d=()=>{if(null!==c)return c;const C=s.statusText||"OK",S=new sr(s.getAllResponseHeaders()),I=function EG(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(s)||t.url;return c=new Hp({headers:S,status:s.status,statusText:C,url:I}),c},f=()=>{let{headers:C,status:S,statusText:I,url:T}=d(),R=null;204!==S&&(R=typeof s.response>"u"?s.responseText:s.response),0===S&&(S=R?200:0);let L=S>=200&&S<300;if("json"===t.responseType&&"string"==typeof R){const H=R;R=R.replace(CG,"");try{R=""!==R?JSON.parse(R):null}catch(Q){R=H,L&&(L=!1,R={error:Q,text:R})}}L?(o.next(new Ls({body:R,headers:C,status:S,statusText:I,url:T||void 0})),o.complete()):o.error(new Vu({error:R,headers:C,status:S,statusText:I,url:T||void 0}))},m=C=>{const{url:S}=d(),I=new Vu({error:C,status:s.status||0,statusText:s.statusText||"Unknown Error",url:S||void 0});o.error(I)};let g=!1;const y=C=>{g||(o.next(d()),g=!0);let S={type:xo.DownloadProgress,loaded:C.loaded};C.lengthComputable&&(S.total=C.total),"text"===t.responseType&&s.responseText&&(S.partialText=s.responseText),o.next(S)},_=C=>{let S={type:xo.UploadProgress,loaded:C.loaded};C.lengthComputable&&(S.total=C.total),o.next(S)};return s.addEventListener("load",f),s.addEventListener("error",m),s.addEventListener("timeout",m),s.addEventListener("abort",m),t.reportProgress&&(s.addEventListener("progress",y),null!==u&&s.upload&&s.upload.addEventListener("progress",_)),s.send(u),o.next({type:xo.Sent}),()=>{s.removeEventListener("error",m),s.removeEventListener("abort",m),s.removeEventListener("load",f),s.removeEventListener("timeout",m),t.reportProgress&&(s.removeEventListener("progress",y),null!==u&&s.upload&&s.upload.removeEventListener("progress",_)),s.readyState!==s.DONE&&s.abort()}})))}static#e=this.\u0275fac=function(r){return new(r||e)(l(bM))};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac})}return e})();const R_=new z(""),n3=new z("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),r3=new z("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class i3{}let TG=(()=>{class e{constructor(t,r,i){this.doc=t,this.platform=r,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=lM(t,this.cookieName),this.lastCookieString=t),this.lastToken}static#e=this.\u0275fac=function(r){return new(r||e)(l(un),l(zi),l(n3))};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac})}return e})();function MG(e,n){const t=e.url.toLowerCase();if(!p(R_)||"GET"===e.method||"HEAD"===e.method||t.startsWith("http://")||t.startsWith("https://"))return n(e);const r=p(i3).getToken(),i=p(r3);return null!=r&&!e.headers.has(i)&&(e=e.clone({headers:e.headers.set(i,r)})),n(e)}var ko=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(ko||{});function IG(...e){const n=[Gp,t3,JI,{provide:Vp,useExisting:JI},{provide:jp,useFactory:()=>p(N_,{optional:!0})??p(t3)},{provide:rd,useValue:MG,multi:!0},{provide:R_,useValue:!0},{provide:i3,useClass:TG}];for(const t of e)n.push(...t.\u0275providers);return Aa(n)}function PG(e){return function Vs(e,n){return{\u0275kind:e,\u0275providers:n}}(ko.Interceptors,e.map(n=>({provide:rd,useValue:n,multi:!0})))}class VG extends ln{constructor(n,t){super()}schedule(n,t=0){return this}}const $p={setInterval(e,n,...t){const{delegate:r}=$p;return r?.setInterval?r.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){const{delegate:n}=$p;return(n?.clearInterval||clearInterval)(e)},delegate:void 0};class id{constructor(n,t=id.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,r){return new this.schedulerActionCtor(this,n).schedule(r,t)}}id.now=f_.now;const h3=new class BG extends id{constructor(n,t=id.now){super(n,t),this.actions=[],this._active=!1}flush(n){const{actions:t}=this;if(this._active)return void t.push(n);let r;this._active=!0;do{if(r=n.execute(n.state,n.delay))break}while(n=t.shift());if(this._active=!1,r){for(;n=t.shift();)n.unsubscribe();throw r}}}(class jG extends VG{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){var r;if(this.closed)return this;this.state=n;const i=this.id,o=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(o,i,t)),this.pending=!0,this.delay=t,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(o,this.id,t),this}requestAsyncId(n,t,r=0){return $p.setInterval(n.flush.bind(n,this),r)}recycleAsyncId(n,t,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&$p.clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(n,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let i,r=!1;try{this.work(n)}catch(o){r=!0,i=o||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){const{id:n,scheduler:t}=this,{actions:r}=t;this.work=this.state=this.scheduler=null,this.pending=!1,Go(r,this),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}}),HG=h3;function p3(e=0,n,t=HG){let r=-1;return null!=n&&(iI(n)?t=n:r=n),new _t(i=>{let o=function GG(e){return e instanceof Date&&!isNaN(e)}(e)?+e-t.now():e;o<0&&(o=0);let s=0;return t.schedule(function(){i.closed||(i.next(s++),0<=r?this.schedule(void 0,r):i.complete())},o)})}function F_(e,n){const t=st(e)?e:()=>e,r=i=>i.error(t());return new _t(n?i=>n.schedule(r,0,i):r)}function L_(e){return new Ji({fromObject:e})}function m3(e){const n=Object.entries(e).reduce((t,[r,i])=>(t[r]=String(i),t),{});return new sr(n)}const g3="Watchdog fake error";function eo(e,n){return`${e.endsWith("/")?e.slice(0,-1):e}${n.startsWith("/")?n:`/${n}`}`}let V_=(()=>{class e{constructor(t,r){this.http=t,this.context=r}getExistingCards(){const{merchantId:t,userAuthToken:r}=this.context.data.payment();if(!r)return or([]);const i=L_({merchantId:t}),o=m3({[Ou_customHeaders_skipToastr]:!0}),s=eo(this.host(),"/api/UserPaymentMethods");return this.http.get(s,{params:i,headers:o}).pipe(Tt(u=>u.map(c=>({...c,name:c.name.toLocaleLowerCase(),type:c.type.toLocaleLowerCase()}))),Tt(u=>u.filter(c=>"card"===c.type)),Fu(()=>or([])))}removeCard(t){const{merchantId:r}=this.context.data.payment(),i=L_({merchantId:r}),o=eo(this.host(),`/api/UserPaymentMethods/${t}`);return this.http.delete(o,{params:i})}host(){return this.context.data.settings().urls.billingProfiles}static#e=this.\u0275fac=function(r){return new(r||e)(l(Gp),l(Je))};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac})}return e})();const y3=["toast-component",""];function zG(e,n){if(1&e){const t=Ft();j(0,"button",5),ge("click",function(){return ve(t),_e(q().remove())}),j(1,"span",6),ce(2,"\xd7"),B()()}}function qG(e,n){if(1&e&&(bu(0),ce(1),wu()),2&e){const t=q(2);x(),nt("[",t.duplicatesCount+1,"]")}}function WG(e,n){if(1&e&&(j(0,"div"),ce(1),me(2,qG,2,1,"ng-container",4),B()),2&e){const t=q();Zi(t.options.titleClass),an("aria-label",t.title),x(),nt(" ",t.title," "),x(),Y("ngIf",t.duplicatesCount)}}function ZG(e,n){if(1&e&&je(0,"div",7),2&e){const t=q();Zi(t.options.messageClass),Y("innerHTML",t.message,wi)}}function YG(e,n){if(1&e&&(j(0,"div",8),ce(1),B()),2&e){const t=q();Zi(t.options.messageClass),an("aria-label",t.message),x(),nt(" ",t.message," ")}}function KG(e,n){if(1&e&&(j(0,"div"),je(1,"div",9),B()),2&e){const t=q();x(),_u("width",t.width()+"%")}}class rU{_attachedHost;component;viewContainerRef;injector;constructor(n,t){this.component=n,this.injector=t}attach(n,t){return this._attachedHost=n,n.attach(this,t)}detach(){const n=this._attachedHost;if(n)return this._attachedHost=void 0,n.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class iU{_attachedPortal;_disposeFn;attach(n,t){return this._attachedPortal=n,this.attachComponentPortal(n,t)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(n){this._disposeFn=n}}class oU{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new bt;_activate=new bt;_manualClose=new bt;_resetTimeout=new bt;_countDuplicate=new bt;constructor(n){this._overlayRef=n}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(n,t){n&&this._resetTimeout.next(),t&&this._countDuplicate.next(++this.duplicatesCount)}}class zp{toastId;config;message;title;toastType;toastRef;_onTap=new bt;_onAction=new bt;constructor(n,t,r,i,o,s){this.toastId=n,this.config=t,this.message=r,this.title=i,this.toastType=o,this.toastRef=s,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(n){this._onAction.next(n)}onAction(){return this._onAction.asObservable()}}const _3=new z("ToastConfig");class sU extends iU{_hostDomElement;_componentFactoryResolver;_appRef;constructor(n,t,r){super(),this._hostDomElement=n,this._componentFactoryResolver=t,this._appRef=r}attachComponentPortal(n,t){const r=this._componentFactoryResolver.resolveComponentFactory(n.component);let i;return i=r.create(n.injector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()}),t?this._hostDomElement.insertBefore(this._getComponentRootNode(i),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(i)),i}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let aU=(()=>{class e{_document=p(un);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._document.createElement("div");t.classList.add("overlay-container"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),this._containerElement=t}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class uU{_portalHost;constructor(n){this._portalHost=n}attach(n,t=!0){return this._portalHost.attach(n,t)}detach(){return this._portalHost.detach()}}let cU=(()=>{class e{_overlayContainer=p(aU);_componentFactoryResolver=p(Ms);_appRef=p(_r);_document=p(un);_paneElements=new Map;create(t,r){return this._createOverlayRef(this.getPaneElement(t,r))}getPaneElement(t="",r){return this._paneElements.get(r)||this._paneElements.set(r,{}),this._paneElements.get(r)[t]||(this._paneElements.get(r)[t]=this._createPaneElement(t,r)),this._paneElements.get(r)[t]}_createPaneElement(t,r){const i=this._document.createElement("div");return i.id="toast-container",i.classList.add(t),i.classList.add("toast-container"),r?r.getContainerElement().appendChild(i):this._overlayContainer.getContainerElement().appendChild(i),i}_createPortalHost(t){return new sU(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new uU(this._createPortalHost(t))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),od=(()=>{class e{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(t,r,i,o,s){this.overlay=r,this._injector=i,this.sanitizer=o,this.ngZone=s,this.toastrConfig={...t.default,...t.config},t.config.iconClasses&&(this.toastrConfig.iconClasses={...t.default.iconClasses,...t.config.iconClasses})}show(t,r,i={},o=""){return this._preBuildNotification(o,t,r,this.applyConfig(i))}success(t,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",t,r,this.applyConfig(i))}error(t,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",t,r,this.applyConfig(i))}info(t,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",t,r,this.applyConfig(i))}warning(t,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",t,r,this.applyConfig(i))}clear(t){for(const r of this.toasts)if(void 0!==t){if(r.toastId===t)return void r.toastRef.manualClose()}else r.toastRef.manualClose()}remove(t){const r=this._findToast(t);if(!r||(r.activeToast.toastRef.close(),this.toasts.splice(r.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){const i=this.toasts[this.currentlyActive].toastRef;i.isInactive()||(this.currentlyActive=this.currentlyActive+1,i.activate())}return!0}findDuplicate(t="",r="",i,o){const{includeTitleDuplicates:s}=this.toastrConfig;for(const u of this.toasts)if((!s||s&&u.title===t)&&u.message===r)return u.toastRef.onDuplicate(i,o),u;return null}applyConfig(t={}){return{...this.toastrConfig,...t}}_findToast(t){for(let r=0;r<this.toasts.length;r++)if(this.toasts[r].toastId===t)return{index:r,activeToast:this.toasts[r]};return null}_preBuildNotification(t,r,i,o){return o.onActivateTick?this.ngZone.run(()=>this._buildNotification(t,r,i,o)):this._buildNotification(t,r,i,o)}_buildNotification(t,r,i,o){if(!o.toastComponent)throw new Error("toastComponent required");const s=this.findDuplicate(i,r,this.toastrConfig.resetTimeoutOnDuplicate&&o.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&i||r)&&this.toastrConfig.preventDuplicates&&null!==s)return s;this.previousToastMessage=r;let u=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(u=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const c=this.overlay.create(o.positionClass,this.overlayContainer);this.index=this.index+1;let d=r;r&&o.enableHtml&&(d=this.sanitizer.sanitize(Xn.HTML,r));const f=new oU(c),m=new zp(this.index,o,d,i,t,f),y=tt.create({providers:[{provide:zp,useValue:m}],parent:this._injector}),_=new rU(o.toastComponent,y),C=c.attach(_,o.newestOnTop);f.componentInstance=C.instance;const S={toastId:this.index,title:i||"",message:r||"",toastRef:f,onShown:f.afterActivate(),onHidden:f.afterClosed(),onTap:m.onTap(),onAction:m.onAction(),portal:C};return u||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{S.toastRef.activate()})),this.toasts.push(S),S}static \u0275fac=function(r){return new(r||e)(l(_3),l(cU),l(tt),l(d_),l(Le))};static \u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const lU={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",toastComponent:(()=>{class e{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=we(-1);toastClasses="";state;get _state(){return this.state()}get displayStyle(){if("inactive"===this.state().value)return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(t,r,i){this.toastrService=t,this.toastPackage=r,this.ngZone=i,this.message=r.message,this.title=r.title,this.options=r.config,this.originalTimeout=r.config.timeOut,this.toastClasses=`${r.toastType} ${r.config.toastClass}`,this.sub=r.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=r.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=r.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=r.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o}),this.state=we({value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.update(t=>({...t,value:"active"})),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width()||100===this.width()||!this.options.timeOut)return;const t=(new Date).getTime();this.width.set((this.hideTime-t)/this.options.timeOut*100),"increasing"===this.options.progressAnimation&&this.width.update(i=>100-i),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.update(t=>({...t,value:"active"})),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state().value&&(clearTimeout(this.timeout),this.state.update(t=>({...t,value:"removed"})),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state().value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state().value&&"extendedTimeOut"!==this.options.disableTimeOut&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state().value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(t,r){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(t),r)):this.timeout=setTimeout(()=>t(),r)}outsideInterval(t,r){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(t),r)):this.intervalId=setInterval(()=>t(),r)}runInsideAngular(t){this.ngZone?this.ngZone.run(()=>t()):t()}static \u0275fac=function(r){return new(r||e)(P(od),P(zp),P(Le))};static \u0275cmp=Ze({type:e,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(r,i){1&r&&ge("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),2&r&&(Fh("@flyInOut",i._state),Zi(i.toastClasses),_u("display",i.displayStyle))},standalone:!0,features:[fv],attrs:y3,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(r,i){1&r&&me(0,zG,3,0,"button",0)(1,WG,3,5,"div",1)(2,ZG,1,3,"div",2)(3,YG,2,4,"div",3)(4,KG,2,2,"div",4),2&r&&(Y("ngIf",i.options.closeButton),x(),Y("ngIf",i.title),x(),Y("ngIf",i.message&&i.options.enableHtml),x(),Y("ngIf",i.message&&!i.options.enableHtml),x(),Y("ngIf",i.options.progressBar))},dependencies:[_p],encapsulation:2,data:{animation:[Ru("flyInOut",[Jl("inactive",Dt({opacity:0})),Jl("active",Dt({opacity:1})),Jl("removed",Dt({opacity:0})),ri("inactive => active",ni("{{ easeTime }}ms {{ easing }}")),ri("active => removed",ni("{{ easeTime }}ms {{ easing }}"))])]},changeDetection:0})}return e})()},dU=(e={})=>Aa([{provide:_3,useValue:{default:lU,config:e}}]);let fU=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[dU(t)]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=$t({type:e});static \u0275inj=Et({})}return e})();const{isArray:hU}=Array,{getPrototypeOf:pU,prototype:mU,keys:gU}=Object;const{isArray:_U}=Array;function CU(e,n){return e.reduce((t,r,i)=>(t[r]=n[i],t),{})}function b3(...e){const n=function eB(e){return st(y_(e))?e.pop():void 0}(e),{args:t,keys:r}=function yU(e){if(1===e.length){const n=e[0];if(hU(n))return{args:n,keys:null};if(function vU(e){return e&&"object"==typeof e&&pU(e)===mU}(n)){const t=gU(n);return{args:t.map(r=>n[r]),keys:t}}}return{args:e,keys:null}}(e),i=new _t(o=>{const{length:s}=t;if(!s)return void o.complete();const u=new Array(s);let c=s,d=s;for(let f=0;f<s;f++){let m=!1;Jr(t[f]).subscribe(Qt(o,g=>{m||(m=!0,d--),u[f]=g},()=>c--,void 0,()=>{(!c||!m)&&(d||o.next(r?CU(r,u):u),o.complete())}))}});return n?i.pipe(function wU(e){return Tt(n=>function bU(e,n){return _U(n)?e(...n):e(n)}(e,n))}(n)):i}function w3(e){return e&&e.replace(/\s+/g," ").trim()}let ju=(()=>{class e{constructor(t,r,i){this.context=t,this.http=r,this.mapper=i}getAvailablePaymentSystems(){const{currency:t,userId:r,merchantId:i}=this.context.data.payment(),o=L_({currency:t,payerId:r}),s=eo(this.host(),`/api/merchants/${i}/settings`);return this.http.get(s,{params:o}).pipe(Tt(u=>{const c=new Set;return{payments:u.payments.filter(f=>!c.has(f.name)&&(c.add(f.name),!0))}}),Fu(()=>or({payments:[]})))}getPaymentInfo(t){const{merchantId:r}=this.context.data.payment(),i=eo(this.host(),`/api/merchants/${r}/payments/${t}`);return this.http.get(i)}getGooglePaySettings(){const{merchantId:t}=this.context.data.payment(),r=eo(this.host(),`/api/googlepay/${t}/settings`);return this.http.get(r).pipe(Tt(i=>({...i,allowedCardNetworks:i.allowedCardNetworks.map(o=>o.toUpperCase())})))}pay(){const t=this.context.data.payment(),r=this.context.data.settings(),i=this.context.data.userProvidedInfo(),o=this.context.data.deviceInfo(),s={...o?.browserData};t.ipAddress&&(s.ipAddress=t.ipAddress);const c={headers:m3(s)},d=eo(this.host(),`/api/merchants/${t.merchantId}/payments`);let f=this.mapper.mapPaymentRequest(t,i,r,o),m="default";return"invoice-overridden"===r.paymentFlow.type&&this.context.callbacks.createInvoice?m="invoice-overridden":"payment-overridden"===r.paymentFlow.type&&this.context.callbacks.makePayment&&(m="payment-overridden"),"card"===f.requisites.type&&r.paymentFlow.tokenizeCard?this.getSecretKey().pipe(Lu(g=>Po(this.encrypt(f.requisites,g))),Lu(g=>"default"!==m?this.getCardTokenData(g,t.merchantId).pipe(Tt(y=>y.token),Fu(()=>or(g)),Lu(y=>(f.requisites={type:"card",paymentToken:y},this.makeCallback(m,f,d,c)))):(f.requisites={type:"card",paymentToken:g},this.http.post(d,f,c)))):"default"!==m?this.makeCallback(m,f,d,c):this.http.post(d,f,c)}getCardTokenData(t,r){const i=eo(this.host(),`api/CardData/${r}/tokenize`);return this.http.post(i,{ei:2,invoice:t,es:{uo:!0}})}makeCallback(t,r,i,o){if("invoice-overridden"===t)return this.createInvoiceCallback(r).pipe(Lu(s=>this.http.post(i,s,o)));if("payment-overridden"===t)return this.makePaymentCallback(r);throw new Error("Not implemented flow type")}getSecretKey(){const t=eo(this.host(),"/api/security/key/2?formatId=2&size=4096");return this.http.get(t)}encrypt(t,r){var i=this;return Fs(function*(){const o=JSON.stringify(t),s=function SU(e){return function TU(e){const n=new ArrayBuffer(e.length),t=new Uint8Array(n);for(let r=0,i=e.length;r<i;r++)t[r]=e.charCodeAt(r);return n}(atob(e))}(r);try{const u=yield window.crypto.subtle.importKey("spki",s,{name:"RSA-OAEP",hash:"SHA-1"},!1,["encrypt"]),c=(new TextEncoder).encode(o);return function DU(e){return btoa(String.fromCharCode(...new Uint8Array(e)))}(yield window.crypto.subtle.encrypt({name:"RSA-OAEP"},u,c))}catch(u){throw i.context.events.error.emit(u),u}})()}makePaymentCallback(t){return new _t(r=>(this.context.callbacks.makePayment(t).then(i=>{r.next(i),r.complete()}).catch(i=>r.error(i)),()=>{}))}createInvoiceCallback(t){return new _t(r=>(this.context.callbacks.createInvoice(t).then(i=>{r.next(i),r.complete()}).catch(i=>r.error(i)),()=>{}))}host(){return this.context.data.settings().urls.processing}static#e=this.\u0275fac=function(r){return new(r||e)(l(Je),l(Gp),l(Gs))};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac})}return e})();const C3=new z("moto-window-document",{providedIn:"root",factory:()=>window}),E3=new z("LANGUAGE_TOKEN",{factory:()=>p(C3).navigator.language}),D3=new z("APPLE_PAY_JS_SERVICE_TOKEN");function j_(e,n,t){return n&&t&&"net"==t?e+n:e}let B_=(()=>{class e{constructor(t,r){this.clientLanguage=t,this.applePayJsService=r,this.name="applepay"}get defaultCountryCode(){if(!this.clientLanguage)return"GB";if(this.clientLanguage.match(/-/)){const[t,r]=this.clientLanguage.split("-");return r}return this.clientLanguage}isAvailable(t){return t.userAuthToken?this.applePayJsService.canMakePayment():or(!1)}pay(t,r){const{amount:i,currency:o,description:s,billingAddress:u,merchantId:c,userAuthToken:d,tax:f,amountType:m}=t,g=u?.country?u.country:this.defaultCountryCode,y={total:{amount:j_(i,f,m).toString(),currency:o.toUpperCase(),label:s},countryCode:g.toUpperCase(),merchantId:c,userToken:d,processingUrl:r};return this.applePayJsService.pay(y).pipe(Tt(({payment:_})=>JSON.stringify(_)))}static#e=this.\u0275fac=function(r){return new(r||e)(l(E3),l(D3))};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac})}return e})(),S3=(()=>{class e{constructor(t){this.context=t,this.versionData={apiVersion:2,apiVersionMinor:0}}setData(t){this.settings=t,this.paymentMethodSpec={type:"CARD",parameters:{allowedCardNetworks:t.allowedCardNetworks,allowedAuthMethods:this.context.data.settings().googlePay.allowedAuthMethods}}}isAvailable(){return this.context.clients.googlePay&&this.paymentMethodSpec?Po(this.context.clients.googlePay.isReadyToPay({...this.versionData,allowedPaymentMethods:[this.paymentMethodSpec]}).then(t=>t.result)):or(!1)}pay(t){if(!this.paymentMethodSpec||!this.settings)return F_(()=>"Something went wrong");const r={...this.versionData,allowedPaymentMethods:[{...this.paymentMethodSpec,tokenizationSpecification:{type:"PAYMENT_GATEWAY",parameters:{gateway:this.settings.gateway.name,gatewayMerchantId:this.settings.gateway.merchantId}}}],merchantInfo:{merchantId:this.settings.merchant.id,merchantName:this.settings.merchant.name},transactionInfo:{totalPriceStatus:"FINAL",totalPrice:t.price,currencyCode:t.currency,countryCode:t.countryCode,transactionId:t.paymentId}};return Po(this.context.clients.googlePay.loadPaymentData(r).then(i=>i.paymentMethodData.tokenizationData.token))}static#e=this.\u0275fac=function(r){return new(r||e)(l(Je))};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac})}return e})(),H_=(()=>{class e{constructor(t,r,i,o){this.clientLanguage=t,this.googlePayJsService=r,this.context=i,this.processing=o,this.name="googlepay"}get defaultCountryCode(){if(!this.clientLanguage)return"GB";if(this.clientLanguage.match(/-/)){const[t,r]=this.clientLanguage.split("-");return r}return this.clientLanguage}isAvailable(t){return t.userAuthToken?this.processing.getGooglePaySettings().pipe(Lu(r=>(this.context.clients.googlePay=new google.payments.api.PaymentsClient({environment:r.isTest?"TEST":"PRODUCTION"}),this.googlePayJsService.setData(r),this.googlePayJsService.isAvailable())),Fu(()=>or(!1))):or(!1)}pay(t){const{paymentId:r,amount:i,currency:o,billingAddress:s,tax:u,amountType:c}=t,f={countryCode:s?.country?s.country:this.defaultCountryCode,currency:o.toUpperCase(),paymentId:r,price:j_(i,u,c).toString()};return this.googlePayJsService.pay(f)}static#e=this.\u0275fac=function(r){return new(r||e)(l(E3),l(S3),l(Je),l(ju))};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac})}return e})(),G_=(()=>{class e{constructor(t,r,i,o,s){this.context=t,this.processingService=r,this.billingProfilesService=i,this.applePayService=o,this.googlePayService=s}refreshExistingCards(t){let r;this.context.data.cardsLoading.set(!0),r=t?or(t):this.billingProfilesService.getExistingCards().pipe(Tt(i=>i.concat().sort(o=>o.isDefault?-1:1))),r.subscribe(i=>{i.length?(this.context.componentsStates.cardForm.update(o=>({...o,enabled:!1})),this.context.componentsStates.cardList().enabled||this.context.componentsStates.cardList.update(o=>({...o,enabled:!0}))):(this.context.componentsStates.cardForm.update(o=>({...o,enabled:!0})),this.context.componentsStates.cardList.update(o=>({...o,enabled:!1})),"existing-card"===this.context.data.userProvidedInfo()?.requisites?.type&&this.context.data.userProvidedInfo.update(o=>({...o,requisites:void 0,paymentSystemName:void 0}))),this.context.data.loadedExistingCards.set(i),this.context.data.cardsLoading.set(!1)})}refreshPaymentSystems(){this.context.data.paymentSystemsLoading.set(!0),this.processingService.getAvailablePaymentSystems().subscribe(t=>{const r=t.payments.map(u=>u.name),i=this.context.data.payment(),s=[this.applePayService,this.googlePayService].filter(u=>r.includes(u.name)).map(u=>({name:u.name,isAvailable$:u.isAvailable(i)}));s.length>0?b3(s.map(u=>u.isAvailable$)).subscribe(u=>{const c=s.filter((f,m)=>!u[m]).map(f=>f.name),d=t.payments.filter(f=>!c.includes(f.name));this.applyPaymentSystems(d)}):this.applyPaymentSystems(t.payments)})}applyPaymentSystems(t){this.context.data.loadedPaymentSystems.set(t),t.some(r=>"card"===r.name)||(this.context.componentsStates.cardForm.update(r=>({...r,enabled:!1,isRequired:!1})),this.context.componentsStates.additionalForm.update(r=>({...r,enabled:!1,isRequired:!1})),this.context.componentsStates.cardList.update(r=>({...r,enabled:!1,isRequired:!1}))),t.some(r=>"card"!==r.name)||this.context.componentsStates.apmList.update(r=>({...r,enabled:!1,isRequired:!1})),this.context.data.paymentSystemsLoading.set(!1)}static#e=this.\u0275fac=function(r){return new(r||e)(l(Je),l(ju),l(V_),l(B_),l(H_))};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac})}return e})();var MU=M(634),T3=M.n(MU),M3=function(e){return e.mastercard="CVC Card Verification Code",e.visa="CVV (Card Verification Value)",e["american-express"]="CID (Card Identification Number)",e.unionpay="CVN (Card Verification Number)",e.jcb="CVV (Card Verification Value)",e.maestro="CVV (Card Verification Value)",e.discover="CID (Card Identification Number)",e}(M3||{});let U_=(()=>{class e{transform(t,r,i=null,o=null){const[s]=T3()(t);if(!s)return"code"===r&&o?o[i]:i;switch(r){case"logo":return this.getLogo(s);case"payment-system":return s.niceType;case"card-number-mask":return"0000 0000 0000 0000 000";case"secure-text":return M3[s.type];case"code":if(o){const c=o[s.code.name];if(c)return c}return s.code.name;case"code-mask":{const{size:u}=s.code;return Array.from({length:u}).fill("0").join("")}}}getLogo(t){if(t)return`https://cdn.motopays.com/images/${Nu[t.type]||Nu.default}.svg`}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275pipe=Nt({name:"cardInfo",type:e,pure:!0})}return e})(),I3=(()=>{class e{constructor(){this.selectEvent=new Ge,this.removeEvent=new Ge,this.optionsClickedEvent=new Ge,this.isOpenPopup=!1,this.popupId=function NH(e=1){return window.crypto.getRandomValues(new Uint32Array(e)).toString()}()}hidePopup(t){t.closest("[data-card-popup]")?.getAttribute("data-card-popup")===this.popupId||(this.isOpenPopup=!1)}onOptionsClick(t){t.isPopupClick=!0,this.optionsClickedEvent.emit(this.option),this.isOpenPopup=!this.isOpenPopup}select(t){t.isPopupClick||this.option.selected()||this.selectEvent.emit(this.option)}remove(t){t.isPopupClick=!0,this.removeEvent.emit(this.option.item),this.isOpenPopup=!1}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Ze({type:e,selectors:[["moto-card"]],hostBindings:function(r,i){1&r&&ge("click",function(s){return i.hidePopup(s.target)},0,A1)},inputs:{option:"option",language:"language"},outputs:{selectEvent:"select",removeEvent:"remove",optionsClickedEvent:"optionsClicked"},decls:18,vars:26,consts:[[1,"__ndb-card",3,"click"],["data-locator","card-active-circle",1,"__ndb-card-active-circle",3,"id"],["alt","card logo",1,"__ndb-card-logo",3,"src"],[1,"__ndb-card-payment-name","fz-14","fw-500"],[1,"__ndb-card-number","fz-14","fw-500"],[1,"__ndb-card-more"],[1,"material-icons","pointer","__ndb-card-more-icon","description-text","fz-18",3,"click"],[1,"__ndb-card-more-popup"],["data-locator","remove-btn",1,"__ndb-card-more-popup-item","fz-14","fw-500",3,"click","id"]],template:function(r,i){1&r&&(j(0,"div",0),ge("click",function(s){return i.select(s)}),je(1,"div",1),Xe(2,"slice"),je(3,"moto-picture",2),Xe(4,"cardInfo"),j(5,"span",3),ce(6),Xe(7,"cardInfo"),B(),j(8,"span",4),ce(9),Xe(10,"slice"),B(),j(11,"div",5)(12,"i",6),ge("click",function(s){return i.onOptionsClick(s)}),ce(13,"more_vert"),B(),j(14,"div",7)(15,"span",8),Xe(16,"slice"),ge("click",function(s){return i.remove(s)}),ce(17),B()()()()),2&r&&(x(),Bn("selected",i.option.selected()),Y("id","select-card-"+Jt(2,11,i.option.item.name,-6)+"-button"),x(2),Y("src",Jt(4,14,i.option.item.name,"logo")),x(3),Kt(Jt(7,17,i.option.item.name,"payment-system")),x(3),Kt(Jt(10,20,i.option.item.name,-6)),x(2),an("data-card-popup",i.popupId),x(3),Bn("open",i.isOpenPopup),x(),Y("id","remove-card-"+Jt(16,23,i.option.item.name,-6)+"-button"),x(2),Kt(i.language.existingCards.removeCard))},dependencies:[ku,Qv,U_],styles:['[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.__ndb-card[_ngcontent-%COMP%]{display:flex;align-items:center;border:1px solid var(--ndb-card-border-color);border-radius:8px;padding:14px;gap:10px}@media (max-width: 768px){.__ndb-card[_ngcontent-%COMP%]{padding:4px}}.__ndb-card-active-circle[_ngcontent-%COMP%]{position:relative;height:15px;width:15px;min-height:15px;min-width:15px;border:1px solid #c9ccd8;border-radius:50%;cursor:pointer}.__ndb-card-active-circle.selected[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0;left:0;height:100%;width:100%;border:4px solid #e53;box-sizing:border-box;border-radius:50%}.__ndb-card-more[_ngcontent-%COMP%]{position:relative;display:flex;margin-left:auto}.__ndb-card-more-icon[_ngcontent-%COMP%]{margin:auto}.__ndb-card-more-popup[_ngcontent-%COMP%]{display:none;position:absolute;z-index:1;top:calc(100% + 10px);left:50%;transform:translate(-60%);background-color:#fff;border-radius:8px;box-shadow:0 4px 12px #29304d1f;white-space:nowrap;overflow:hidden;animation:_ngcontent-%COMP%_show-popup .3s cubic-bezier(.25,.1,.25,1)}@media (max-width: 768px){.__ndb-card-more-popup[_ngcontent-%COMP%]{top:calc(100% + 5px);transform:translate(-70%);animation:_ngcontent-%COMP%_mobile-show-popup .3s cubic-bezier(.25,.1,.25,1)}}.__ndb-card-more-popup.open[_ngcontent-%COMP%]{display:flex;flex-direction:column}.__ndb-card-more-popup-item[_ngcontent-%COMP%]{padding:16px 12px;cursor:pointer;transition:background-color .3s cubic-bezier(.25,.1,.25,1)}@media (max-width: 768px){.__ndb-card-more-popup-item[_ngcontent-%COMP%]{font-size:12px}}.__ndb-card-more-popup-item[_ngcontent-%COMP%]:hover{background-color:#c9ccd84d}@keyframes _ngcontent-%COMP%_show-popup{0%{opacity:0;transform:translate(-60%,50%)}to{opacity:1;transform:translate(-60%)}}@keyframes _ngcontent-%COMP%_mobile-show-popup{0%{opacity:0;transform:translate(-70%,50%)}to{opacity:1;transform:translate(-70%)}}'],changeDetection:0})}return e})();function IU(e,n){if(1&e){const t=Ft();j(0,"moto-card",8),ge("select",function(i){return ve(t),_e(q().selectCard(i))})("remove",function(i){return ve(t),_e(q().removeCard(i))})("optionsClicked",function(i){return ve(t),_e(q().onOptionsClick(i))}),B()}if(2&e){const t=n.$implicit;q();const r=wt(0);Y("option",t)("language",r)}}function PU(e,n){if(1&e){const t=Ft();j(0,"button",9),ge("click",function(){return ve(t),_e(q().showCardForm())})("focusin",function(){return ve(t),_e(q().onAddCardFocus())}),j(1,"i",10),ce(2,"add"),B(),j(3,"span",11),ce(4),B()()}if(2&e){q();const t=wt(0);x(4),Kt(t.existingCards.addNewCard)}}let $_=(()=>{class e{constructor(t,r,i,o){this.billingProfiles=t,this.context=r,this.toastr=i,this.refreshService=o,this.isCardListShown=we(!0),this.cardFormState=this.context.componentsStates.cardForm,this.componentState=this.context.componentsStates.cardList,this.isCardFormVisible=this.context.visibility.cardForm,this.settings=this.context.data.settings,this.loadedExistingCards=this.context.data.loadedExistingCards,this.cardOptions=Se(()=>this.loadedExistingCards().map(u=>new $H(u))),Fv(()=>{const s=this.cardOptions();s?.length&&Yr(()=>{this.selectCardImpl(s[0],s)})})}showCardForm(){this.context.events.analytics.emit(new Qe("add-card-button-click")),this.isCardListShown.set(!1),this.cardFormState.update(t=>({...t,enabled:!0})),this.context.data.userProvidedInfo.update(t=>({...t,requisites:void 0,paymentSystemName:void 0})),this.resetSelected()}getSelectedCard(){return this.cardOptions().find(t=>t.selected())}removeCard(t){this.context.events.analytics.emit(new Qe("remove-card-button-click",{last4Digits:t.name.slice(-4)})),this.billingProfiles.removeCard(t.id).subscribe(r=>{this.refreshService.refreshExistingCards(this.loadedExistingCards().filter(o=>o.id!==t.id));const i=this.settings().language.notifications.cardDeleted;this.toastr.success(i.text,i.title)})}toggleCardList(){this.isCardListShown.update(t=>!t),this.context.events.analytics.emit(new Qe("cards-toggle-button-click",{toggle:this.isCardListShown()}))}onOptionsClick(t){this.context.events.analytics.emit(new Qe("card-options-button-click",{last4Digits:t.item.name.slice(-4)}))}selectCard(t){this.context.events.analytics.emit(new Qe("select-card-button-click",{last4Digits:t.item.name.slice(-4)})),this.selectCardImpl(t,this.cardOptions())}onAddCardFocus(){this.context.events.analytics.emit(new Qe("add-card-button-focus"),!0)}selectCardImpl(t,r){r.find(o=>o.selected())?.setSelected(!1),t.setSelected(!0),this.context.data.userProvidedInfo.update(o=>({...o,paymentSystemName:"card",requisites:{type:"existing-card",value:t.item}})),this.cardFormState().enabled&&this.cardFormState.update(o=>({...o,enabled:!1}))}resetSelected(){this.getSelectedCard()?.setSelected(!1)}static#e=this.\u0275fac=function(r){return new(r||e)(P(V_),P(Je),P(od),P(G_))};static#t=this.\u0275cmp=Ze({type:e,selectors:[["moto-card-list"]],decls:12,vars:6,consts:[[1,"__ndb-card-list"],["id","toggle-card-list-button",1,"__ndb-card-list-toggle",3,"click"],[1,"fw-700"],[1,"material-icons","font-description","__ndb-card-list-toggle-icon"],[1,"block"],[1,"__ndb-card-list-options"],[1,"__ndb-card-list-options-item",3,"option","language"],["id","add-card-button",1,"full-width"],[1,"__ndb-card-list-options-item",3,"select","remove","optionsClicked","option","language"],["id","add-card-button",1,"full-width",3,"click","focusin"],[1,"material-icons","fz-18"],[1,"text"]],template:function(r,i){if(1&r){const o=Ft();tr(0),j(1,"div",0)(2,"div",1),ge("click",function(){return ve(o),_e(i.toggleCardList())}),j(3,"span",2),ce(4),B(),j(5,"i",3),ce(6,"keyboard_arrow_up"),B()(),j(7,"div",4)(8,"div",5),Hn(9,IU,1,2,"moto-card",6,Zr),B()(),me(11,PU,5,1,"button",7),B()}if(2&r){const o=$n(i.settings().language);x(4),Kt(o.existingCards.manageCardsHeader),x(),Bn("active",i.isCardListShown()),x(2),Y("@ANToggleList",i.isCardListShown()?"show":"hide"),x(2),Gn(i.cardOptions()),x(2),Ce(i.isCardFormVisible()?-1:11)}},dependencies:[I3],styles:["[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.full-width[_ngcontent-%COMP%]{width:100%}@media (min-width: 769px){.ndb-mobile[_ngcontent-%COMP%]{display:none}}@media (max-width: 768px){.ndb-desktop[_ngcontent-%COMP%]{display:none}}.margin-auto[_ngcontent-%COMP%]{margin:auto}.flex[_ngcontent-%COMP%]{display:flex}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.none[_ngcontent-%COMP%]{display:none}.block[_ngcontent-%COMP%]{display:block}.events-none[_ngcontent-%COMP%]{pointer-events:none}.cursor-default[_ngcontent-%COMP%]{cursor:default}.pointer[_ngcontent-%COMP%]{cursor:pointer}.bold[_ngcontent-%COMP%]{font-weight:700!important}.font-middle[_ngcontent-%COMP%]{vertical-align:middle}.rotate[_ngcontent-%COMP%], .__ndb-card-list-toggle-icon.active[_ngcontent-%COMP%]{transform:rotate(-180deg)}.__ndb-card-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px}.__ndb-card-list-options[_ngcontent-%COMP%]{display:flex;flex-direction:column}.__ndb-card-list-options-item[_ngcontent-%COMP%]{width:100%}.__ndb-card-list-options-item[_ngcontent-%COMP%]:not(:first-child){margin-top:10px}.__ndb-card-list-toggle[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px;cursor:pointer;-webkit-user-select:none;user-select:none}.__ndb-card-list-toggle-icon[_ngcontent-%COMP%]{transform:rotate(0);transition:transform .3s cubic-bezier(.25,.1,.25,1)}"],data:{animation:[KH,XH,QH({animationName:"ANToggleList",fromState:"hide",toState:"show",fromStyles:{height:"0px",overflow:"hidden"},toStyles:{height:"*"}})]},changeDetection:0})}return e})();function P3(e,n=h3){return mn((t,r)=>{let i=null,o=null,s=null;const u=()=>{if(i){i.unsubscribe(),i=null;const d=o;o=null,r.next(d)}};function c(){const d=s+e,f=n.now();if(f<d)return i=this.schedule(void 0,d-f),void r.add(i);u()}t.subscribe(Qt(r,d=>{o=d,s=n.now(),i||(i=n.schedule(c,e),r.add(i))},()=>{u(),r.complete()},void 0,()=>{o=i=null}))})}let A3=(()=>{class e{constructor(){this.detector$=new bt}detectChanges(){this.detector$.next()}listenChangeDetection(){return this.detector$.asObservable()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac})}return e})(),qp=(()=>{class e{constructor(t){this.injector=t,this.unsubscriber$=new bt,this.childrenDetector$=new bt}ngOnDestroy(){this.unsubscribe()}listenChildrenDetection(t){const r="local"===t,i="global"===t,o="full"===t;this.childrenDetector$.asObservable().pipe(P3(10),this.untilDestroy()).subscribe(()=>{(r||o)&&this.localDetect(),(i||o)&&this.globalDetect()})}localDetect(){this.injector.get(Tu).detectChanges()}globalDetect(){this.injector.get(A3).detectChanges()}detect(){this.localDetect(),this.globalDetect()}untilDestroy(){return function AU(e){return mn((n,t)=>{Jr(e).subscribe(Qt(t,()=>t.complete(),uo)),!t.closed&&n.subscribe(t)})}(this.unsubscriber$.asObservable())}unsubscribe(){this.unsubscriber$.next()}static#e=this.\u0275fac=function(r){return new(r||e)(P(tt))};static#t=this.\u0275cmp=Ze({type:e,selectors:[["ng-component"]],decls:0,vars:0,template:function(r,i){},encapsulation:2})}return e})(),x3=(()=>{class e{constructor(t,r){this._renderer=t,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static#e=this.\u0275fac=function(r){return new(r||e)(P(Di),P(Ln))};static#t=this.\u0275dir=le({type:e})}return e})(),js=(()=>{class e extends x3{static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=sn(e)))(i||e)}})();static#t=this.\u0275dir=le({type:e,features:[Ve]})}return e})();const ar=new z(""),xU={provide:ar,useExisting:Ne(()=>sd),multi:!0};let sd=(()=>{class e extends js{writeValue(t){this.setProperty("checked",t)}static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=sn(e)))(i||e)}})();static#t=this.\u0275dir=le({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,i){1&r&&ge("change",function(s){return i.onChange(s.target.checked)})("blur",function(){return i.onTouched()})},features:[rt([xU]),Ve]})}return e})();const kU={provide:ar,useExisting:Ne(()=>Wp),multi:!0},OU=new z("");let Wp=(()=>{class e extends x3{constructor(t,r,i){super(t,r),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function NU(){const e=$l()?$l().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static#e=this.\u0275fac=function(r){return new(r||e)(P(Di),P(Ln),P(OU,8))};static#t=this.\u0275dir=le({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,i){1&r&&ge("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},features:[rt([kU]),Ve]})}return e})();function No(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}function k3(e){return null!=e&&"number"==typeof e.length}const cn=new z(""),Oo=new z(""),RU=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Ii{static min(n){return function N3(e){return n=>{if(No(n.value)||No(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t<e?{min:{min:e,actual:n.value}}:null}}(n)}static max(n){return function O3(e){return n=>{if(No(n.value)||No(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t>e?{max:{max:e,actual:n.value}}:null}}(n)}static required(n){return function R3(e){return No(e.value)?{required:!0}:null}(n)}static requiredTrue(n){return function F3(e){return!0===e.value?null:{required:!0}}(n)}static email(n){return function L3(e){return No(e.value)||RU.test(e.value)?null:{email:!0}}(n)}static minLength(n){return V3(n)}static maxLength(n){return j3(n)}static pattern(n){return function B3(e){if(!e)return Zp;let n,t;return"string"==typeof e?(t="","^"!==e.charAt(0)&&(t+="^"),t+=e,"$"!==e.charAt(e.length-1)&&(t+="$"),n=new RegExp(t)):(t=e.toString(),n=e),r=>{if(No(r.value))return null;const i=r.value;return n.test(i)?null:{pattern:{requiredPattern:t,actualValue:i}}}}(n)}static nullValidator(n){return null}static compose(n){return q3(n)}static composeAsync(n){return W3(n)}}function V3(e){return n=>No(n.value)||!k3(n.value)?null:n.value.length<e?{minlength:{requiredLength:e,actualLength:n.value.length}}:null}function j3(e){return n=>k3(n.value)&&n.value.length>e?{maxlength:{requiredLength:e,actualLength:n.value.length}}:null}function Zp(e){return null}function H3(e){return null!=e}function G3(e){return Zh(e)?Po(e):e}function U3(e){let n={};return e.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function $3(e,n){return n.map(t=>t(e))}function z3(e){return e.map(n=>function FU(e){return!e.validate}(n)?n:t=>n.validate(t))}function q3(e){if(!e)return null;const n=e.filter(H3);return 0==n.length?null:function(t){return U3($3(t,n))}}function z_(e){return null!=e?q3(z3(e)):null}function W3(e){if(!e)return null;const n=e.filter(H3);return 0==n.length?null:function(t){return b3($3(t,n).map(G3)).pipe(Tt(U3))}}function q_(e){return null!=e?W3(z3(e)):null}function Z3(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function Y3(e){return e._rawValidators}function K3(e){return e._rawAsyncValidators}function W_(e){return e?Array.isArray(e)?e:[e]:[]}function Yp(e,n){return Array.isArray(e)?e.includes(n):e===n}function X3(e,n){const t=W_(n);return W_(e).forEach(i=>{Yp(t,i)||t.push(i)}),t}function Q3(e,n){return W_(n).filter(t=>!Yp(e,t))}class J3{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}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}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=z_(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=q_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}}class In extends J3{get formDirective(){return null}get path(){return null}}class to extends J3{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class eP{constructor(n){this._cd=n}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}}let Ro=(()=>{class e extends eP{constructor(t){super(t)}static#e=this.\u0275fac=function(r){return new(r||e)(P(to,2))};static#t=this.\u0275dir=le({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){2&r&&Bn("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[Ve]})}return e})(),Kp=(()=>{class e extends eP{constructor(t){super(t)}static#e=this.\u0275fac=function(r){return new(r||e)(P(In,10))};static#t=this.\u0275dir=le({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,i){2&r&&Bn("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[Ve]})}return e})();const ad="VALID",Qp="INVALID",Bu="PENDING",ud="DISABLED";class Hu{}class nP extends Hu{constructor(n,t){super(),this.value=n,this.source=t}}class K_ extends Hu{constructor(n,t){super(),this.pristine=n,this.source=t}}class X_ extends Hu{constructor(n,t){super(),this.touched=n,this.source=t}}class Jp extends Hu{constructor(n,t){super(),this.status=n,this.source=t}}class HU extends Hu{constructor(n){super(),this.source=n}}class GU extends Hu{constructor(n){super(),this.source=n}}function Q_(e){return(em(e)?e.validators:e)||null}function J_(e,n){return(em(n)?n.asyncValidators:e)||null}function em(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function rP(e,n,t){const r=e.controls;if(!(n?Object.keys(r):r).length)throw new k(1e3,"");if(!r[t])throw new k(1001,"")}function iP(e,n,t){e._forEachChild((r,i)=>{if(void 0===t[i])throw new k(1002,"")})}class tm{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=Se(()=>this.statusReactive()),this.statusReactive=we(void 0),this._pristine=Se(()=>this.pristineReactive()),this.pristineReactive=we(!0),this._touched=Se(()=>this.touchedReactive()),this.touchedReactive=we(!1),this._events=new bt,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get status(){return Yr(this.statusReactive)}set status(n){Yr(()=>this.statusReactive.set(n))}get valid(){return this.status===ad}get invalid(){return this.status===Qp}get pending(){return this.status==Bu}get disabled(){return this.status===ud}get enabled(){return this.status!==ud}get pristine(){return Yr(this.pristineReactive)}set pristine(n){Yr(()=>this.pristineReactive.set(n))}get dirty(){return!this.pristine}get touched(){return Yr(this.touchedReactive)}set touched(n){Yr(()=>this.touchedReactive.set(n))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(X3(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(X3(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(Q3(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(Q3(n,this._rawAsyncValidators))}hasValidator(n){return Yp(this._rawValidators,n)}hasAsyncValidator(n){return Yp(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){const t=!1===this.touched;this.touched=!0;const r=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched({...n,sourceControl:r}),t&&!1!==n.emitEvent&&this._events.next(new X_(!0,r))}markAllAsTouched(n={}){this.markAsTouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(n))}markAsUntouched(n={}){const t=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const r=n.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:r})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,r),t&&!1!==n.emitEvent&&this._events.next(new X_(!1,r))}markAsDirty(n={}){const t=!0===this.pristine;this.pristine=!1;const r=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty({...n,sourceControl:r}),t&&!1!==n.emitEvent&&this._events.next(new K_(!1,r))}markAsPristine(n={}){const t=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const r=n.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,r),t&&!1!==n.emitEvent&&this._events.next(new K_(!0,r))}markAsPending(n={}){this.status=Bu;const t=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new Jp(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.markAsPending({...n,sourceControl:t})}disable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=ud,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue();const r=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new nP(this.value,r)),this._events.next(new Jp(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:t},this),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=ad,this._forEachChild(r=>{r.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:t},this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(n,t){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine({},t),this._parent._updateTouched({},t))}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ad||this.status===Bu)&&this._runAsyncValidator(r,n.emitEvent)}const t=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new nP(this.value,t)),this._events.next(new Jp(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity({...n,sourceControl:t})}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ud:ad}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,t){if(this.asyncValidator){this.status=Bu,this._hasOwnPendingAsyncValidator={emitEvent:!1!==t};const r=G3(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:t,shouldHaveEmitted:n})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const n=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent,this,t.shouldHaveEmitted)}get(n){let t=n;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((r,i)=>r&&r._find(i),this)}getError(n,t){const r=t?this.get(t):this;return r&&r.errors?r.errors[n]:null}hasError(n,t){return!!this.getError(n,t)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n,t,r){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||r)&&this._events.next(new Jp(this.status,t)),this._parent&&this._parent._updateControlsErrors(n,t,r)}_initObservables(){this.valueChanges=new Ge,this.statusChanges=new Ge}_calculateStatus(){return this._allControlsDisabled()?ud:this.errors?Qp:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Bu)?Bu:this._anyControlsHaveStatus(Qp)?Qp:ad}_anyControlsHaveStatus(n){return this._anyControls(t=>t.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n,t){const r=!this._anyControlsDirty(),i=this.pristine!==r;this.pristine=r,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,t),i&&this._events.next(new K_(this.pristine,t))}_updateTouched(n={},t){this.touched=this._anyControlsTouched(),this._events.next(new X_(this.touched,t)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,t)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){em(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function UU(e){return Array.isArray(e)?z_(e):e||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function $U(e){return Array.isArray(e)?q_(e):e||null}(this._rawAsyncValidators)}}class cd extends tm{constructor(n,t,r){super(Q_(t),J_(r,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,t){return this.controls[n]?this.controls[n]:(this.controls[n]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(n,t,r={}){this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(n,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(n,t,r={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],t&&this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,t={}){iP(this,0,n),Object.keys(n).forEach(r=>{rP(this,!0,r),this.controls[r].setValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(Object.keys(n).forEach(r=>{const i=this.controls[r];i&&i.patchValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n={},t={}){this._forEachChild((r,i)=>{r.reset(n?n[i]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(n,t,r)=>(n[r]=t.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(t,r)=>!!r._syncPendingControls()||t);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(t=>{const r=this.controls[t];r&&n(r,t)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[t,r]of Object.entries(this.controls))if(this.contains(t)&&n(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,r,i)=>((r.enabled||this.disabled)&&(t[i]=r.value),t))}_reduceChildren(n,t){let r=n;return this._forEachChild((i,o)=>{r=t(r,i,o)}),r}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class oP extends cd{}const Bs=new z("CallSetDisabledState",{providedIn:"root",factory:()=>ld}),ld="always";function nm(e,n){return[...n.path,e]}function dd(e,n,t=ld){eb(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(e.disabled),function qU(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&sP(e,n)})}(e,n),function ZU(e,n){const t=(r,i)=>{n.valueAccessor.writeValue(r),i&&n.viewToModelUpdate(r)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)})}(e,n),function WU(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&sP(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function zU(e,n){if(n.valueAccessor.setDisabledState){const t=r=>{n.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function rm(e,n,t=!0){const r=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(r),n.valueAccessor.registerOnTouched(r)),om(e,n),e&&(n._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function im(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function eb(e,n){const t=Y3(e);null!==n.validator?e.setValidators(Z3(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const r=K3(e);null!==n.asyncValidator?e.setAsyncValidators(Z3(r,n.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const i=()=>e.updateValueAndValidity();im(n._rawValidators,i),im(n._rawAsyncValidators,i)}function om(e,n){let t=!1;if(null!==e){if(null!==n.validator){const i=Y3(e);if(Array.isArray(i)&&i.length>0){const o=i.filter(s=>s!==n.validator);o.length!==i.length&&(t=!0,e.setValidators(o))}}if(null!==n.asyncValidator){const i=K3(e);if(Array.isArray(i)&&i.length>0){const o=i.filter(s=>s!==n.asyncValidator);o.length!==i.length&&(t=!0,e.setAsyncValidators(o))}}}const r=()=>{};return im(n._rawValidators,r),im(n._rawAsyncValidators,r),t}function sP(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function nb(e,n){if(!e.hasOwnProperty("model"))return!1;const t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}function rb(e,n){if(!n)return null;let t,r,i;return Array.isArray(n),n.forEach(o=>{o.constructor===Wp?t=o:function XU(e){return Object.getPrototypeOf(e.constructor)===js}(o)?r=o:i=o}),i||r||t||null}function cP(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function lP(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}Promise.resolve();const hd=class extends tm{constructor(n=null,t,r){super(Q_(t),J_(r,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),em(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=lP(n)?n.value:n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(n,t={}){this.setValue(n,t)}reset(n=this.defaultValue,t={}){this._applyFormState(n),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){cP(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){cP(this._onDisabledChange,n)}_forEachChild(n){}_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(n){lP(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};let dP=(()=>{class e extends In{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return nm(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=sn(e)))(i||e)}})();static#t=this.\u0275dir=le({type:e,features:[Ve]})}return e})();const n$={provide:to,useExisting:Ne(()=>Gu)},hP=Promise.resolve();let Gu=(()=>{class e extends to{constructor(t,r,i,o,s,u){super(),this._changeDetectorRef=s,this.callSetDisabledState=u,this.control=new hd,this._registered=!1,this.name="",this.update=new Ge,this._parent=t,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=rb(0,o)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const r=t.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),nb(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_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(){dd(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){hP.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){const r=t.isDisabled.currentValue,i=0!==r&&function Rv(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}(r);hP.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?nm(t,this._parent):[t]}static#e=this.\u0275fac=function(r){return new(r||e)(P(In,9),P(cn,10),P(Oo,10),P(ar,10),P(Tu,8),P(Bs,8))};static#t=this.\u0275dir=le({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[rt([n$]),Ve,Gr]})}return e})(),sm=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=le({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return e})();const ob=new z(""),u$={provide:In,useExisting:Ne(()=>Uu)};let Uu=(()=>{class e extends In{get submitted(){return Yr(this._submittedReactive)}set submitted(t){this._submittedReactive.set(t)}constructor(t,r,i){super(),this.callSetDisabledState=i,this._submitted=Se(()=>this._submittedReactive()),this._submittedReactive=we(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ge,this._setValidators(t),this._setAsyncValidators(r)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(om(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const r=this.form.get(t.path);return dd(r,t,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),r}getControl(t){return this.form.get(t.path)}removeControl(t){rm(t.control||null,t,!1),function QU(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,r){this.form.get(t.path).setValue(r)}onSubmit(t){return this._submittedReactive.set(!0),function uP(e,n){e._syncPendingControls(),n.forEach(t=>{const r=t.control;"submit"===r.updateOn&&r._pendingChange&&(t.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(t),this.form._events.next(new HU(this.control)),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this._submittedReactive.set(!1),this.form._events.next(new GU(this.form))}_updateDomValue(){this.directives.forEach(t=>{const r=t.control,i=this.form.get(t.path);r!==i&&(rm(r||null,t),(e=>e instanceof hd)(i)&&(dd(i,t,this.callSetDisabledState),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const r=this.form.get(t.path);(function aP(e,n){eb(e,n)})(r,t),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const r=this.form.get(t.path);r&&function YU(e,n){return om(e,n)}(r,t)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){eb(this.form,this),this._oldForm&&om(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(r){return new(r||e)(P(cn,10),P(Oo,10),P(Bs,8))};static#t=this.\u0275dir=le({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,i){1&r&&ge("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[rt([u$]),Ve,Gr]})}return e})();const c$={provide:In,useExisting:Ne(()=>am)};let am=(()=>{class e extends dP{constructor(t,r,i){super(),this.name=null,this._parent=t,this._setValidators(r),this._setAsyncValidators(i)}_checkParentType(){vP(this._parent)}static#e=this.\u0275fac=function(r){return new(r||e)(P(In,13),P(cn,10),P(Oo,10))};static#t=this.\u0275dir=le({type:e,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},features:[rt([c$]),Ve]})}return e})();const l$={provide:In,useExisting:Ne(()=>um)};let um=(()=>{class e extends In{constructor(t,r,i){super(),this.name=null,this._parent=t,this._setValidators(r),this._setAsyncValidators(i)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return nm(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){vP(this._parent)}static#e=this.\u0275fac=function(r){return new(r||e)(P(In,13),P(cn,10),P(Oo,10))};static#t=this.\u0275dir=le({type:e,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},features:[rt([l$]),Ve]})}return e})();function vP(e){return!(e instanceof am||e instanceof Uu||e instanceof um)}const d$={provide:to,useExisting:Ne(()=>pd)};let pd=(()=>{class e extends to{set isDisabled(t){}static#e=this._ngModelWarningSentOnce=!1;constructor(t,r,i,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.name=null,this.update=new Ge,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=rb(0,o)}ngOnChanges(t){this._added||this._setUpControl(),nb(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return nm(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static#t=this.\u0275fac=function(r){return new(r||e)(P(In,13),P(cn,10),P(Oo,10),P(ar,10),P(ob,8))};static#n=this.\u0275dir=le({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[rt([d$]),Ve,Gr]})}return e})();function wP(e){return"number"==typeof e?e:parseInt(e,10)}let Hs=(()=>{class e{constructor(){this._validator=Zp}ngOnChanges(t){if(this.inputName in t){const r=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):Zp,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return null!=t}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=le({type:e,features:[Gr]})}return e})();const E$={provide:cn,useExisting:Ne(()=>cm),multi:!0};let cm=(()=>{class e extends Hs{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=t=>wP(t),this.createValidator=t=>V3(t)}static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=sn(e)))(i||e)}})();static#t=this.\u0275dir=le({type:e,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(r,i){2&r&&an("minlength",i._enabled?i.minlength:null)},inputs:{minlength:"minlength"},features:[rt([E$]),Ve]})}return e})();const D$={provide:cn,useExisting:Ne(()=>md),multi:!0};let md=(()=>{class e extends Hs{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=t=>wP(t),this.createValidator=t=>j3(t)}static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=sn(e)))(i||e)}})();static#t=this.\u0275dir=le({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(r,i){2&r&&an("maxlength",i._enabled?i.maxlength:null)},inputs:{maxlength:"maxlength"},features:[rt([D$]),Ve]})}return e})(),IP=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=$t({type:e});static#n=this.\u0275inj=Et({})}return e})();class PP extends tm{constructor(n,t,r){super(Q_(t),J_(r,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,t={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(n,t,r={}){this.controls.splice(n,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(n,t={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(n,t,r={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),t&&(this.controls.splice(i,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,t={}){iP(this,0,n),n.forEach((r,i)=>{rP(this,!1,i),this.at(i).setValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(n.forEach((r,i)=>{this.at(i)&&this.at(i).patchValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n=[],t={}){this._forEachChild((r,i)=>{r.reset(n[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((t,r)=>!!r._syncPendingControls()||t,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((t,r)=>{n(t,r)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(t=>t.enabled&&n(t))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function AP(e){return!!e&&(void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn)}let cb=(()=>{class e{constructor(){this.useNonNullable=!1}get nonNullable(){const t=new e;return t.useNonNullable=!0,t}group(t,r=null){const i=this._reduceControls(t);let o={};return AP(r)?o=r:null!==r&&(o.validators=r.validator,o.asyncValidators=r.asyncValidator),new cd(i,o)}record(t,r=null){const i=this._reduceControls(t);return new oP(i,r)}control(t,r,i){let o={};return this.useNonNullable?(AP(r)?o=r:(o.validators=r,o.asyncValidators=i),new hd(t,{...o,nonNullable:!0})):new hd(t,r,i)}array(t,r,i){const o=t.map(s=>this._createControl(s));return new PP(o,r,i)}_reduceControls(t){const r={};return Object.keys(t).forEach(i=>{r[i]=this._createControl(t[i])}),r}_createControl(t){return t instanceof hd||t instanceof tm?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),xP=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Bs,useValue:t.callSetDisabledState??ld}]}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=$t({type:e});static#n=this.\u0275inj=Et({imports:[IP]})}return e})(),kP=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:ob,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Bs,useValue:t.callSetDisabledState??ld}]}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=$t({type:e});static#n=this.\u0275inj=Et({imports:[IP]})}return e})();class lm{static luhnAlgorithm({value:n}){return n&&function T$(e){return/^\d+$/.test(e)&&!(e.split("").reverse().map(function(n,t){return n=parseInt(n,10),t%2==0?n:(n*=2)>9?n-9:n}).reduce(function(n,t){return n+t})%10)}(n)?void 0:{luhnAlgorithm:!0}}static cardExpiration({value:n}){const t={expiration:!0};if(n){if(n.length<4)return t;const i=+(new Date).getFullYear().toString().slice(-2),[o,s,u,c]=n.split(""),d=`${o}${s}`;return+d<1||+d>12||+`${u}${c}`<i?t:void 0}return t}static cardNumberLength({value:n}){const t=n?.length||0;return t>=rr.card.number.length.min&&t<=rr.card.number.length.max?void 0:{cardLength:!0}}static cardCodeLength(n="cardNumber"){return({value:t,parent:r})=>{const i=r?.get(n),[o]=T3()(i?.value),s=!!o?.code.size&&!!t,u=rr.card.code.lengths[o?.type];return s&&(o?.code.size===t?.length||u?.includes(t?.length))?null:{cardCodeLength:!0}}}}function NP(...e){return function I$(){return nI(1)}()(Po(e,Ip(e)))}function OP(...e){const n=Ip(e);return mn((t,r)=>{(n?NP(e,t,n):NP(e,t)).subscribe(r)})}function lb(e,n,t,r,i,o,s){e.valueChanges.pipe(OP(null),P3(50),function P$(){return mn((e,n)=>{let t,r=!1;e.subscribe(Qt(n,i=>{const o=t;t=i,r&&n.next([o,i]),r=!0}))})}(),UI(([u,c])=>JSON.stringify(u)!==JSON.stringify(c)),t.untilDestroy()).subscribe(([u,c])=>{const d={...n()};let f=!1;!r()&&d.canShowError&&(f=!0,d.canShowError=!1);const m=i(c);d.filled!==m&&(f=!0,d.filled=m),f&&n.update(g=>({...d})),o&&o(c,s)}),e.statusChanges.pipe(OP(e.status),t.untilDestroy()).subscribe(u=>{n.update(c=>({...c,isValid:"VALID"===u}))})}const dm=new z("ngx-mask config"),RP=new z("new ngx-mask config"),FP=new z("initial ngx-mask config"),O$={suffix:"",prefix:"",thousandSeparator:" ",decimalMarker:[".",","],clearIfNotMatch:!1,showTemplate:!1,showMaskTyped:!1,placeHolderCharacter:"_",dropSpecialCharacters:!0,hiddenInput:void 0,shownMaskExpression:"",separatorLimit:"",allowNegativeNumbers:!1,validation:!0,specialCharacters:["-","/","(",")",".",":"," ","+",",","@","[","]",'"',"'"],leadZeroDateTime:!1,apm:!1,leadZero:!1,keepCharacterPositions:!1,triggerOnMaskChange:!1,inputTransformFn:e=>e,outputTransformFn:e=>e,maskFilled:new Ge,patterns:{0:{pattern:new RegExp("\\d")},9:{pattern:new RegExp("\\d"),optional:!0},X:{pattern:new RegExp("\\d"),symbol:"*"},A:{pattern:new RegExp("[a-zA-Z0-9]")},S:{pattern:new RegExp("[a-zA-Z]")},U:{pattern:new RegExp("[A-Z]")},L:{pattern:new RegExp("[a-z]")},d:{pattern:new RegExp("\\d")},m:{pattern:new RegExp("\\d")},M:{pattern:new RegExp("\\d")},H:{pattern:new RegExp("\\d")},h:{pattern:new RegExp("\\d")},s:{pattern:new RegExp("\\d")}}},R$=["Hh:m0:s0","Hh:m0","m0:s0"],F$=["percent","Hh","s0","m0","separator","d0/M0/0000","d0/M0","d0","M0"];let L$=(()=>{class e{constructor(){this._config=p(dm),this.dropSpecialCharacters=this._config.dropSpecialCharacters,this.hiddenInput=this._config.hiddenInput,this.clearIfNotMatch=this._config.clearIfNotMatch,this.specialCharacters=this._config.specialCharacters,this.patterns=this._config.patterns,this.prefix=this._config.prefix,this.suffix=this._config.suffix,this.thousandSeparator=this._config.thousandSeparator,this.decimalMarker=this._config.decimalMarker,this.showMaskTyped=this._config.showMaskTyped,this.placeHolderCharacter=this._config.placeHolderCharacter,this.validation=this._config.validation,this.separatorLimit=this._config.separatorLimit,this.allowNegativeNumbers=this._config.allowNegativeNumbers,this.leadZeroDateTime=this._config.leadZeroDateTime,this.leadZero=this._config.leadZero,this.apm=this._config.apm,this.inputTransformFn=this._config.inputTransformFn,this.outputTransformFn=this._config.outputTransformFn,this.keepCharacterPositions=this._config.keepCharacterPositions,this._shift=new Set,this.maskExpression="",this.actualValue="",this.showKeepCharacterExp="",this.shownMaskExpression="",this.deletedSpecialCharacter=!1,this._formatWithSeparators=(t,r,i,o)=>{let s=[],u="";if(Array.isArray(i)){const g=new RegExp(i.map(y=>"[\\^$.|?*+()".indexOf(y)>=0?`\\${y}`:y).join("|"));s=t.split(g),u=t.match(g)?.[0]??""}else s=t.split(i),u=i;const c=s.length>1?`${u}${s[1]}`:"";let d=s[0]??"";const f=this.separatorLimit.replace(/\s/g,"");f&&+f&&(d="-"===d[0]?`-${d.slice(1,d.length).slice(0,f.length)}`:d.slice(0,f.length));const m=/(\d+)(\d{3})/;for(;r&&m.test(d);)d=d.replace(m,"$1"+r+"$2");return void 0===o?d+c:0===o?d:d+c.substring(0,o+1)},this.percentage=t=>{const r=t.replace(",","."),i=Number(r);return!isNaN(i)&&i>=0&&i<=100},this.getPrecision=t=>{const r=t.split(".");return r.length>1?Number(r[r.length-1]):1/0},this.checkAndRemoveSuffix=t=>{for(let r=this.suffix?.length-1;r>=0;r--){const i=this.suffix.substring(r,this.suffix?.length);if(t.includes(i)&&r!==this.suffix?.length-1&&(r-1<0||!t.includes(this.suffix.substring(r-1,this.suffix?.length))))return t.replace(i,"")}return t},this.checkInputPrecision=(t,r,i)=>{if(r<1/0){if(Array.isArray(i)){const c=i.find(d=>d!==this.thousandSeparator);i=c||i[0]}const o=new RegExp(this._charToRegExpExpression(i)+`\\d{${r}}.*$`),s=t.match(o),u=(s&&s[0]?.length)??0;u-1>r&&(t=t.substring(0,t.length-(u-1-r))),0===r&&this._compareOrIncludes(t[t.length-1],i,this.thousandSeparator)&&(t=t.substring(0,t.length-1))}return t}}applyMaskWithPattern(t,r){const[i,o]=r;return this.customPattern=o,this.applyMask(t,i)}applyMask(t,r,i=0,o=!1,s=!1,u=()=>{}){if(!r||"string"!=typeof t)return"";let c=0,d="",f=!1,m=!1,g=1,y=!1;t.slice(0,this.prefix.length)===this.prefix&&!this.showMaskTyped&&(t=t.slice(this.prefix.length,t.length)),this.suffix&&t?.length>0&&(t=this.checkAndRemoveSuffix(t)),"("===t&&this.prefix&&(t="");const _=t.toString().split("");if(this.allowNegativeNumbers&&"-"===t.slice(c,c+1)&&(d+=t.slice(c,c+1)),"IP"===r){const L=t.split(".");this.ipError=this._validIP(L),r="099.099.099.099"}const C=[];for(let L=0;L<t.length;L++)t[L]?.match("\\d")&&C.push(t[L]??"");if("CPF_CNPJ"===r&&(this.cpfCnpjError=11!==C.length&&14!==C.length,r=C.length>11?"00.000.000/0000-00":"000.000.000-00"),r.startsWith("percent")){if(t.match("[a-z]|[A-Z]")||t.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)&&!s){t=this._stripToDecimal(t);const Q=this.getPrecision(r);t=this.checkInputPrecision(t,Q,this.decimalMarker)}const L="string"==typeof this.decimalMarker?this.decimalMarker:".";if(t.indexOf(L)>0&&!this.percentage(t.substring(0,t.indexOf(L)))){let Q=t.substring(0,t.indexOf(L)-1);this.allowNegativeNumbers&&"-"===t.slice(c,c+1)&&!s&&(Q=t.substring(0,t.indexOf(L))),t=`${Q}${t.substring(t.indexOf(L),t.length)}`}let H="";H=this.allowNegativeNumbers&&"-"===t.slice(c,c+1)?t.slice(c+1,c+t.length):t,d=this.percentage(H)?this._splitPercentZero(t):this._splitPercentZero(t.substring(0,t.length-1))}else if(r.startsWith("separator")){(t.match("[w\u0430-\u044f\u0410-\u042f]")||t.match("[\u0401\u0451\u0410-\u044f]")||t.match("[a-z]|[A-Z]")||t.match(/[-@#!$%\\^&*()_\xa3\xac'+|~=`{}\]:";<>.?/]/)||t.match("[^A-Za-z0-9,]"))&&(t=this._stripToDecimal(t)),t="-"===t[0]&&this.allowNegativeNumbers?t.length>2&&"0"===t[1]&&t[2]!==this.thousandSeparator&&!this._compareOrIncludes(t[2],this.decimalMarker,this.thousandSeparator)&&!s?t.slice(0,t.length-1):t:t.length>1&&"0"===t[0]&&t[1]!==this.thousandSeparator&&!this._compareOrIncludes(t[1],this.decimalMarker,this.thousandSeparator)&&!s?t.slice(0,t.length-1):t,s&&(t=this._compareOrIncludes(t[t.length-1],this.decimalMarker,this.thousandSeparator)?t.slice(0,t.length-1):t);const L=this._charToRegExpExpression(this.thousandSeparator);let H='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(L,"");if(Array.isArray(this.decimalMarker))for(const xt of this.decimalMarker)H=H.replace(this._charToRegExpExpression(xt),"");else H=H.replace(this._charToRegExpExpression(this.decimalMarker),"");const Q=new RegExp("["+H+"]");(t.match(Q)||1===t.length&&this._compareOrIncludes(t,this.decimalMarker,this.thousandSeparator))&&(t=t.substring(0,t.length-1));const re=this.getPrecision(r),J=(t=this.checkInputPrecision(t,re,this.decimalMarker)).replace(new RegExp(L,"g"),"");d=this._formatWithSeparators(J,this.thousandSeparator,this.decimalMarker,re);const vt=d.indexOf(",")-t.indexOf(","),St=d.length-t.length;if(St>0&&d[i]!==this.thousandSeparator){m=!0;let xt=0;do{this._shift.add(i+xt),xt++}while(xt<St)}else d[i-1]===this.decimalMarker||-4===St||-3===St||","===d[i]?(this._shift.clear(),this._shift.add(i-1)):0!==vt&&i>0&&!(d.indexOf(",")>=i&&i>3)||!(d.indexOf(".")>=i&&i>3)&&St<=0?(this._shift.clear(),m=!0,g=St,this._shift.add(i+=St)):this._shift.clear()}else for(let L=0,H=_[0];L<_.length&&c!==r.length;L++,H=_[L]??""){const Q="*"in this.patterns;if(this._checkSymbolMask(H,r[c]??"")&&"?"===r[c+1])d+=H,c+=2;else if("*"===r[c+1]&&f&&this._checkSymbolMask(H,r[c+2]??""))d+=H,c+=3,f=!1;else if(this._checkSymbolMask(H,r[c]??"")&&"*"===r[c+1]&&!Q)d+=H,f=!0;else if("?"===r[c+1]&&this._checkSymbolMask(H,r[c+2]??""))d+=H,c+=3;else if(this._checkSymbolMask(H,r[c]??"")){if("H"===r[c]&&(this.apm?Number(H)>9:Number(H)>2)){i+=1,c+=1,this._shiftStep(r,c,_.length),L--,this.leadZeroDateTime&&(d+="0");continue}if("h"===r[c]&&(this.apm?1===d.length&&Number(d)>1||"1"===d&&Number(H)>2||1===t.slice(c-1,c).length&&Number(t.slice(c-1,c))>2||"1"===t.slice(c-1,c)&&Number(H)>2:"2"===d&&Number(H)>3||("2"===d.slice(c-2,c)||"2"===d.slice(c-3,c)||"2"===d.slice(c-4,c)||"2"===d.slice(c-1,c))&&Number(H)>3&&c>10)){i+=1,c+=1,L--;continue}if(("m"===r[c]||"s"===r[c])&&Number(H)>5){i+=1,c+=1,this._shiftStep(r,c,_.length),L--,this.leadZeroDateTime&&(d+="0");continue}const re=31,J=t[c],vt=t[c+1],St=t[c+2],xt=t[c-1],Pn=t[c-2],Lo=t[c-3],Sr=t.slice(c-3,c-1),qs=t.slice(c-1,c+1),K=t.slice(c,c+2),te=t.slice(c-2,c);if("d"===r[c]){const ue="M0"===r.slice(0,2),Me="M0"===r.slice(0,2)&&this.specialCharacters.includes(Pn);if(Number(H)>3&&this.leadZeroDateTime||!ue&&(Number(K)>re||Number(qs)>re||this.specialCharacters.includes(vt))||(Me?Number(qs)>re||!this.specialCharacters.includes(J)&&this.specialCharacters.includes(St)||this.specialCharacters.includes(J):Number(K)>re||this.specialCharacters.includes(vt))){i+=1,c+=1,this._shiftStep(r,c,_.length),L--,this.leadZeroDateTime&&(d+="0");continue}}if("M"===r[c]){const Me=0===c&&(Number(H)>2||Number(K)>12||this.specialCharacters.includes(vt)),jt=r.slice(c+2,c+3),Tr=Sr.includes(jt)&&(this.specialCharacters.includes(Pn)&&Number(qs)>12&&!this.specialCharacters.includes(J)||this.specialCharacters.includes(J)||this.specialCharacters.includes(Lo)&&Number(te)>12&&!this.specialCharacters.includes(xt)||this.specialCharacters.includes(xt)),An=Number(Sr)<=re&&!this.specialCharacters.includes(Sr)&&this.specialCharacters.includes(xt)&&(Number(K)>12||this.specialCharacters.includes(vt)),Ai=Number(K)>12&&5===c||this.specialCharacters.includes(vt)&&5===c,ft=Number(Sr)>re&&!this.specialCharacters.includes(Sr)&&!this.specialCharacters.includes(te)&&Number(te)>12,Tm=Number(Sr)<=re&&!this.specialCharacters.includes(Sr)&&!this.specialCharacters.includes(xt)&&Number(qs)>12;if(Number(H)>1&&this.leadZeroDateTime||Me||Tr||Tm||ft||An||Ai&&!this.leadZeroDateTime){i+=1,c+=1,this._shiftStep(r,c,_.length),L--,this.leadZeroDateTime&&(d+="0");continue}}d+=H,c++}else" "===H&&" "===r[c]||"/"===H&&"/"===r[c]?(d+=H,c++):-1!==this.specialCharacters.indexOf(r[c]??"")?(d+=r[c],c++,this._shiftStep(r,c,_.length),L--):"9"===r[c]&&this.showMaskTyped?this._shiftStep(r,c,_.length):this.patterns[r[c]??""]&&this.patterns[r[c]??""]?.optional?(_[c]&&"099.099.099.099"!==r&&"000.000.000-00"!==r&&"00.000.000/0000-00"!==r&&!r.match(/^9+\.0+$/)&&!this.patterns[r[c]??""]?.optional&&(d+=_[c]),r.includes("9*")&&r.includes("0*")&&c++,c++,L--):"*"===this.maskExpression[c+1]&&this._findSpecialChar(this.maskExpression[c+2]??"")&&this._findSpecialChar(H)===this.maskExpression[c+2]&&f||"?"===this.maskExpression[c+1]&&this._findSpecialChar(this.maskExpression[c+2]??"")&&this._findSpecialChar(H)===this.maskExpression[c+2]&&f?(c+=3,d+=H):this.showMaskTyped&&this.specialCharacters.indexOf(H)<0&&H!==this.placeHolderCharacter&&1===this.placeHolderCharacter.length&&(y=!0)}d.length+1===r.length&&-1!==this.specialCharacters.indexOf(r[r.length-1]??"")&&(d+=r[r.length-1]);let S=i+1;for(;this._shift.has(S);)g++,S++;let I=o&&!r.startsWith("separator")?c:this._shift.has(i)?g:0;y&&I--,u(I,m),g<0&&this._shift.clear();let T=!1;s&&(T=_.every(L=>this.specialCharacters.includes(L)));let R=`${this.prefix}${T?"":d}${this.suffix}`;if(0===d.length&&(R=this.dropSpecialCharacters?`${d}`:`${this.prefix}${d}`),d.includes("-")&&this.prefix&&this.allowNegativeNumbers){if(s&&"-"===d)return"";R=`-${this.prefix}${d.split("-").join("")}${this.suffix}`}return R}_findDropSpecialChar(t){return Array.isArray(this.dropSpecialCharacters)?this.dropSpecialCharacters.find(r=>r===t):this._findSpecialChar(t)}_findSpecialChar(t){return this.specialCharacters.find(r=>r===t)}_checkSymbolMask(t,r){return this.patterns=this.customPattern?this.customPattern:this.patterns,(this.patterns[r]?.pattern&&this.patterns[r]?.pattern.test(t))??!1}_stripToDecimal(t){return t.split("").filter((r,i)=>{const o="string"==typeof this.decimalMarker?r===this.decimalMarker:this.decimalMarker.includes(r);return r.match("^-?\\d")||r===this.thousandSeparator||o||"-"===r&&0===i&&this.allowNegativeNumbers}).join("")}_charToRegExpExpression(t){return t&&(" "===t?"\\s":"[\\^$.|?*+()".indexOf(t)>=0?`\\${t}`:t)}_shiftStep(t,r,i){const o=/[*?]/g.test(t.slice(0,r))?i:r;this._shift.add(o+this.prefix.length||0)}_compareOrIncludes(t,r,i){return Array.isArray(r)?r.filter(o=>o!==i).includes(t):t===r}_validIP(t){return!(4===t.length&&!t.some((r,i)=>t.length!==i+1?""===r||Number(r)>255:""===r||Number(r.substring(0,3))>255))}_splitPercentZero(t){const r=t.indexOf("string"==typeof this.decimalMarker?this.decimalMarker:".");if(-1===r){const i=parseInt(t,10);return isNaN(i)?"":i.toString()}{const i=parseInt(t.substring(0,r),10),o=t.substring(r+1),s=isNaN(i)?"":i.toString();return""===s?"":s+("string"==typeof this.decimalMarker?this.decimalMarker:".")+o}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})(),db=(()=>{class e extends L${constructor(){super(...arguments),this.isNumberValue=!1,this.maskIsShown="",this.selStart=null,this.selEnd=null,this.writingValue=!1,this.maskChanged=!1,this._maskExpressionArray=[],this.triggerOnMaskChange=!1,this._emitValue=!1,this._previousValue="",this._currentValue="",this.onChange=t=>{},this.document=p(un),this._config=p(dm),this._elementRef=p(Ln,{optional:!0}),this._renderer=p(Di,{optional:!0})}applyMask(t,r,i=0,o=!1,s=!1,u=()=>{}){if(!r)return t!==this.actualValue?this.actualValue:t;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():"","IP"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(t||"#")),"CPF_CNPJ"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(t||"#")),!t&&this.showMaskTyped)return this.formControlResult(this.prefix),this.prefix+this.maskIsShown;const c=t&&"number"==typeof this.selStart?t[this.selStart]??"":"";let d="";if(void 0!==this.hiddenInput&&!this.writingValue){let y=t&&1===t.length?t.split(""):this.actualValue.split("");"object"==typeof this.selStart&&"object"==typeof this.selEnd?(this.selStart=Number(this.selStart),this.selEnd=Number(this.selEnd)):""!==t&&y.length?"number"==typeof this.selStart&&"number"==typeof this.selEnd&&(t.length>y.length?y.splice(this.selStart,0,c):t.length<y.length&&(y.length-t.length==1?y.splice(s?this.selStart-1:t.length-1,1):y.splice(this.selStart,this.selEnd-this.selStart))):y=[],this.showMaskTyped&&(this.hiddenInput||(t=this.removeMask(t))),d=this.actualValue.length&&y.length<=t.length?this.shiftTypedSymbols(y.join("")):t}if(o&&(this.hiddenInput||!this.hiddenInput)&&(d=t),this.deletedSpecialCharacter&&i&&(this.specialCharacters.includes(this.actualValue.slice(i,i+1))?i+=1:"M0"!==r.slice(i-1,i+1)&&(i-=2),this.deletedSpecialCharacter=!1),this.showMaskTyped&&1===this.placeHolderCharacter.length&&!this.leadZeroDateTime&&(t=this.removeMask(t)),d=this.maskChanged?t:d&&d.length?d:t,this.showMaskTyped&&this.keepCharacterPositions&&this.actualValue&&!o){const y=this.dropSpecialCharacters?this.removeMask(this.actualValue):this.actualValue;return this.formControlResult(y),this.actualValue?this.actualValue:this.prefix+this.maskIsShown+this.suffix}const f=super.applyMask(d,r,i,o,s,u);if(this.actualValue=this.getActualValue(f),"."===this.thousandSeparator&&"."===this.decimalMarker&&(this.decimalMarker=","),this.maskExpression.startsWith("separator")&&!0===this.dropSpecialCharacters&&(this.specialCharacters=this.specialCharacters.filter(y=>!this._compareOrIncludes(y,this.decimalMarker,this.thousandSeparator))),(f||""===f)&&(this._previousValue=this._currentValue,this._currentValue=f,this._emitValue=this._previousValue!==this._currentValue||this.maskChanged||this._previousValue===this._currentValue&&o),this._emitValue&&this.formControlResult(f),!this.showMaskTyped||this.showMaskTyped&&this.hiddenInput)return this.hiddenInput?s?this.hideInput(f,this.maskExpression):this.hideInput(f,this.maskExpression)+this.maskIsShown.slice(f.length):f;const m=f.length,g=this.prefix+this.maskIsShown;if(this.maskExpression.includes("H")){const y=this._numberSkipedSymbols(f);return f+g.slice(m+y)}return"IP"===this.maskExpression||"CPF_CNPJ"===this.maskExpression?f+g:f+g.slice(m)}_numberSkipedSymbols(t){const r=/(^|\D)(\d\D)/g;let i=r.exec(t),o=0;for(;null!=i;)o+=1,i=r.exec(t);return o}applyValueChanges(t,r,i,o=()=>{}){const s=this._elementRef?.nativeElement;s&&(s.value=this.applyMask(s.value,this.maskExpression,t,r,i,o),s!==this._getActiveElement()&&this.clearIfNotMatchFn())}hideInput(t,r){return t.split("").map((i,o)=>this.patterns&&this.patterns[r[o]??""]&&this.patterns[r[o]??""]?.symbol?this.patterns[r[o]??""]?.symbol:i).join("")}getActualValue(t){const r=t.split("").filter((i,o)=>{const s=this.maskExpression[o]??"";return this._checkSymbolMask(i,s)||this.specialCharacters.includes(s)&&i===s});return r.join("")===t?r.join(""):t}shiftTypedSymbols(t){let r="";return(t&&t.split("").map((o,s)=>{if(this.specialCharacters.includes(t[s+1]??"")&&t[s+1]!==this.maskExpression[s+1])return r=o,t[s+1];if(r.length){const u=r;return r="",u}return o})||[]).join("")}numberToString(t){return!t&&0!==t||this.maskExpression.startsWith("separator")&&(this.leadZero||!this.dropSpecialCharacters)||this.maskExpression.startsWith("separator")&&this.separatorLimit.length>14&&String(t).length>14?String(t):Number(t).toLocaleString("fullwide",{useGrouping:!1,maximumFractionDigits:20}).replace("/-/","-")}showMaskInInput(t){if(this.showMaskTyped&&this.shownMaskExpression){if(this.maskExpression.length!==this.shownMaskExpression.length)throw new Error("Mask expression must match mask placeholder length");return this.shownMaskExpression}if(this.showMaskTyped){if(t){if("IP"===this.maskExpression)return this._checkForIp(t);if("CPF_CNPJ"===this.maskExpression)return this._checkForCpfCnpj(t)}return this.placeHolderCharacter.length===this.maskExpression.length?this.placeHolderCharacter:this.maskExpression.replace(/\w/g,this.placeHolderCharacter)}return""}clearIfNotMatchFn(){const t=this._elementRef?.nativeElement;t&&this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==t.value.replace(this.placeHolderCharacter,"").length&&(this.formElementProperty=["value",""],this.applyMask("",this.maskExpression))}set formElementProperty([t,r]){!this._renderer||!this._elementRef||Promise.resolve().then(()=>this._renderer?.setProperty(this._elementRef?.nativeElement,t,r))}checkDropSpecialCharAmount(t){return t.split("").filter(i=>this._findDropSpecialChar(i)).length}removeMask(t){return this._removeMask(this._removeSuffix(this._removePrefix(t)),this.specialCharacters.concat("_").concat(this.placeHolderCharacter))}_checkForIp(t){if("#"===t)return`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`;const r=[];for(let i=0;i<t.length;i++){const o=t[i]??"";o&&o.match("\\d")&&r.push(o)}return r.length<=3?`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`:r.length>3&&r.length<=6?`${this.placeHolderCharacter}.${this.placeHolderCharacter}`:r.length>6&&r.length<=9?this.placeHolderCharacter:""}_checkForCpfCnpj(t){const r=`${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`,i=`${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}/${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`;if("#"===t)return r;const o=[];for(let s=0;s<t.length;s++){const u=t[s]??"";u&&u.match("\\d")&&o.push(u)}return o.length<=3?r.slice(o.length,r.length):o.length>3&&o.length<=6?r.slice(o.length+1,r.length):o.length>6&&o.length<=9?r.slice(o.length+2,r.length):o.length>9&&o.length<11?r.slice(o.length+3,r.length):11===o.length?"":12===o.length?i.slice(17===t.length?16:15,i.length):o.length>12&&o.length<=14?i.slice(o.length+4,i.length):""}_getActiveElement(t=this.document){const r=t?.activeElement?.shadowRoot;return r?.activeElement?this._getActiveElement(r):t.activeElement}formControlResult(t){if(this.writingValue||!this.triggerOnMaskChange&&this.maskChanged)return this.maskChanged&&this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeSuffix(this._removePrefix(t)))))),void(this.maskChanged=!1);Array.isArray(this.dropSpecialCharacters)?this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeMask(this._removeSuffix(this._removePrefix(t)),this.dropSpecialCharacters))))):this.onChange(this.outputTransformFn(this._toNumber(this.dropSpecialCharacters||!this.dropSpecialCharacters&&this.prefix===t?this._checkSymbols(this._removeSuffix(this._removePrefix(t))):t)))}_toNumber(t){if(!this.isNumberValue||""===t||this.maskExpression.startsWith("separator")&&(this.leadZero||!this.dropSpecialCharacters))return t;if(String(t).length>16&&this.separatorLimit.length>14)return String(t);const r=Number(t);if(this.maskExpression.startsWith("separator")&&Number.isNaN(r)){const i=String(t).replace(",",".");return Number(i)}return Number.isNaN(r)?t:r}_removeMask(t,r){return this.maskExpression.startsWith("percent")&&t.includes(".")?t:t&&t.replace(this._regExpForRemove(r),"")}_removePrefix(t){return this.prefix?t&&t.replace(this.prefix,""):t}_removeSuffix(t){return this.suffix?t&&t.replace(this.suffix,""):t}_retrieveSeparatorValue(t){const r=Array.isArray(this.dropSpecialCharacters)?this.specialCharacters.filter(i=>this.dropSpecialCharacters.includes(i)):this.specialCharacters;return this._removeMask(t,r)}_regExpForRemove(t){return new RegExp(t.map(r=>`\\${r}`).join("|"),"gi")}_replaceDecimalMarkerToDot(t){const r=Array.isArray(this.decimalMarker)?this.decimalMarker:[this.decimalMarker];return t.replace(this._regExpForRemove(r),".")}_checkSymbols(t){if(""===t)return t;this.maskExpression.startsWith("percent")&&","===this.decimalMarker&&(t=t.replace(",","."));const r=this._retrieveSeparatorPrecision(this.maskExpression),i=this._replaceDecimalMarkerToDot(this._retrieveSeparatorValue(t));return this.isNumberValue&&r?t===this.decimalMarker?null:this.separatorLimit.length>14?String(i):this._checkPrecision(this.maskExpression,i):i}_retrieveSeparatorPrecision(t){const r=t.match(new RegExp("^separator\\.([^d]*)"));return r?Number(r[1]):null}_checkPrecision(t,r){const i=t.slice(10,11);return t.indexOf("2")>0||this.leadZero&&Number(i)>1?(","===this.decimalMarker&&this.leadZero&&(r=r.replace(",",".")),this.leadZero?Number(r).toFixed(Number(i)):Number(r).toFixed(2)):this.numberToString(r)}_repeatPatternSymbols(t){return t.match(/{[0-9]+}/)&&t.split("").reduce((r,i,o)=>{if(this._start="{"===i?o:this._start,"}"!==i)return this._findSpecialChar(i)?r+i:r;this._end=o;const s=Number(t.slice(this._start+1,this._end)),u=new Array(s+1).join(t[this._start-1]);if(t.slice(0,this._start).length>1&&t.includes("S")){const c=t.slice(0,this._start-1);return c.includes("{")?r+u:c+r+u}return r+u},"")||t}currentLocaleDecimalMarker(){return 1.1.toLocaleString().substring(1,2)}}return e.\u0275fac=(()=>{let n;return function(r){return(n||(n=sn(e)))(r||e)}})(),e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})(),V$=(()=>{class e{constructor(){this.maskExpression="",this.specialCharacters=[],this.patterns={},this.prefix="",this.suffix="",this.thousandSeparator=" ",this.decimalMarker=".",this.dropSpecialCharacters=null,this.hiddenInput=null,this.showMaskTyped=null,this.placeHolderCharacter=null,this.shownMaskExpression=null,this.showTemplate=null,this.clearIfNotMatch=null,this.validation=null,this.separatorLimit=null,this.allowNegativeNumbers=null,this.leadZeroDateTime=null,this.leadZero=null,this.triggerOnMaskChange=null,this.apm=null,this.inputTransformFn=null,this.outputTransformFn=null,this.keepCharacterPositions=null,this.maskFilled=new Ge,this._maskValue="",this._position=null,this._maskExpressionArray=[],this._justPasted=!1,this._isComposing=!1,this.document=p(un),this._maskService=p(db,{self:!0}),this._config=p(dm),this.onChange=t=>{},this.onTouch=()=>{}}ngOnChanges(t){const{maskExpression:r,specialCharacters:i,patterns:o,prefix:s,suffix:u,thousandSeparator:c,decimalMarker:d,dropSpecialCharacters:f,hiddenInput:m,showMaskTyped:g,placeHolderCharacter:y,shownMaskExpression:_,showTemplate:C,clearIfNotMatch:S,validation:I,separatorLimit:T,allowNegativeNumbers:R,leadZeroDateTime:L,leadZero:H,triggerOnMaskChange:Q,apm:re,inputTransformFn:J,outputTransformFn:vt,keepCharacterPositions:St}=t;if(r&&(r.currentValue!==r.previousValue&&!r.firstChange&&(this._maskService.maskChanged=!0),R&&(this._maskService.allowNegativeNumbers=R.currentValue,this._maskService.allowNegativeNumbers&&(this._maskService.specialCharacters=this._maskService.specialCharacters.filter(xt=>"-"!==xt))),r.currentValue&&r.currentValue.split("||").length>1?(this._maskExpressionArray=r.currentValue.split("||").sort((xt,Pn)=>xt.length-Pn.length),this._setMask()):(this._maskExpressionArray=[],this._maskValue=r.currentValue||"",this._maskService.maskExpression=this._maskValue)),i){if(!i.currentValue||!Array.isArray(i.currentValue))return;this._maskService.specialCharacters=i.currentValue||[]}o&&o.currentValue&&(this._maskService.patterns=o.currentValue),re&&re.currentValue&&(this._maskService.apm=re.currentValue),s&&(this._maskService.prefix=s.currentValue),u&&(this._maskService.suffix=u.currentValue),c&&(this._maskService.thousandSeparator=c.currentValue),d&&(this._maskService.decimalMarker=d.currentValue),f&&(this._maskService.dropSpecialCharacters=f.currentValue),m&&(this._maskService.hiddenInput=m.currentValue),g&&(this._maskService.showMaskTyped=g.currentValue),y&&(this._maskService.placeHolderCharacter=y.currentValue),_&&(this._maskService.shownMaskExpression=_.currentValue),C&&(this._maskService.showTemplate=C.currentValue),S&&(this._maskService.clearIfNotMatch=S.currentValue),I&&(this._maskService.validation=I.currentValue),T&&(this._maskService.separatorLimit=T.currentValue),L&&(this._maskService.leadZeroDateTime=L.currentValue),H&&(this._maskService.leadZero=H.currentValue),Q&&(this._maskService.triggerOnMaskChange=Q.currentValue),J&&(this._maskService.inputTransformFn=J.currentValue),vt&&(this._maskService.outputTransformFn=vt.currentValue),St&&(this._maskService.keepCharacterPositions=St.currentValue),this._applyMask()}validate({value:t}){if(!this._maskService.validation||!this._maskValue)return null;if(this._maskService.ipError)return this._createValidationError(t);if(this._maskService.cpfCnpjError)return this._createValidationError(t);if(this._maskValue.startsWith("separator")||F$.includes(this._maskValue)||this._maskService.clearIfNotMatch)return null;if(R$.includes(this._maskValue))return this._validateTime(t);if(t&&t.toString().length>=1){let r=0;if(this._maskValue.startsWith("percent"))return null;for(const i in this._maskService.patterns)if(this._maskService.patterns[i]?.optional&&(this._maskValue.indexOf(i)!==this._maskValue.lastIndexOf(i)?r+=this._maskValue.split("").filter(s=>s===i).join("").length:-1!==this._maskValue.indexOf(i)&&r++,-1!==this._maskValue.indexOf(i)&&t.toString().length>=this._maskValue.indexOf(i)||r===this._maskValue.length))return null;if(1===this._maskValue.indexOf("{")&&t.toString().length===this._maskValue.length+Number((this._maskValue.split("{")[1]??"").split("}")[0])-4)return null;if(this._maskValue.indexOf("*")>1&&t.toString().length<this._maskValue.indexOf("*")||this._maskValue.indexOf("?")>1&&t.toString().length<this._maskValue.indexOf("?")||1===this._maskValue.indexOf("{"))return this._createValidationError(t);if(-1===this._maskValue.indexOf("*")||-1===this._maskValue.indexOf("?")){t="number"==typeof t?String(t):t;const i=this._maskValue.split("*"),o=this._maskService.dropSpecialCharacters?this._maskValue.length-this._maskService.checkDropSpecialCharAmount(this._maskValue)-r:this.prefix?this._maskValue.length+this.prefix.length-r:this._maskValue.length-r;if(1===i.length&&t.toString().length<o)return this._createValidationError(t);if(i.length>1){const s=i[i.length-1];if(s&&this._maskService.specialCharacters.includes(s[0])&&String(t).includes(s[0]??"")&&!this.dropSpecialCharacters){const u=t.split(s[0]);return u[u.length-1].length===s.length-1?null:this._createValidationError(t)}return(s&&!this._maskService.specialCharacters.includes(s[0])||!s||this._maskService.dropSpecialCharacters)&&t.length>=o-1?null:this._createValidationError(t)}}if(1===this._maskValue.indexOf("*")||1===this._maskValue.indexOf("?"))return null}return t&&this.maskFilled.emit(),null}onPaste(){this._justPasted=!0}onModelChange(t){(""===t||null==t)&&this._maskService.actualValue&&(this._maskService.actualValue=this._maskService.getActualValue(""))}onInput(t){if(this._isComposing)return;const r=t.target,i=this._maskService.inputTransformFn(r.value);if("number"!==r.type)if("string"==typeof i||"number"==typeof i){if(r.value=i.toString(),this._inputValue=r.value,this._setMask(),!this._maskValue)return void this.onChange(r.value);let o=1===r.selectionStart?r.selectionStart+this._maskService.prefix.length:r.selectionStart;if(this.showMaskTyped&&this.keepCharacterPositions&&1===this._maskService.placeHolderCharacter.length){const d=r.value.slice(o-1,o),f=this.prefix.length,m=this._maskService._checkSymbolMask(d,this._maskService.maskExpression[o-1-f]??""),g=this._maskService._checkSymbolMask(d,this._maskService.maskExpression[o+1-f]??""),y=this._maskService.selStart===this._maskService.selEnd,_=Number(this._maskService.selStart)-f,C=Number(this._maskService.selEnd)-f;if("Backspace"===this._code)if(y){if(!this._maskService.specialCharacters.includes(this._maskService.maskExpression.slice(o-this.prefix.length,o+1-this.prefix.length))&&y)if(1===_&&this.prefix)this._maskService.actualValue=this.prefix+this._maskService.placeHolderCharacter+r.value.split(this.prefix).join("").split(this.suffix).join("")+this.suffix,o-=1;else{const S=r.value.substring(0,o),I=r.value.substring(o);this._maskService.actualValue=S+this._maskService.placeHolderCharacter+I}}else this._maskService.actualValue=this._maskService.selStart===f?this.prefix+this._maskService.maskIsShown.slice(0,C)+this._inputValue.split(this.prefix).join(""):this._maskService.selStart===this._maskService.maskIsShown.length+f?this._inputValue+this._maskService.maskIsShown.slice(_,C):this.prefix+this._inputValue.split(this.prefix).join("").slice(0,_)+this._maskService.maskIsShown.slice(_,C)+this._maskService.actualValue.slice(C+f,this._maskService.maskIsShown.length+f)+this.suffix;"Backspace"!==this._code&&(m||g||!y?this._maskService.specialCharacters.includes(r.value.slice(o,o+1))&&g&&!this._maskService.specialCharacters.includes(r.value.slice(o+1,o+2))?(this._maskService.actualValue=r.value.slice(0,o-1)+r.value.slice(o,o+1)+d+r.value.slice(o+2),o+=1):m&&(this._maskService.actualValue=r.value.slice(0,o-1)+d+r.value.slice(o+1).split(this.suffix).join("")+this.suffix):o=Number(r.selectionStart)-1)}let s=0,u=!1;if("Delete"===this._code&&(this._maskService.deletedSpecialCharacter=!0),this._inputValue.length>=this._maskService.maskExpression.length-1&&"Backspace"!==this._code&&"d0/M0/0000"===this._maskService.maskExpression&&o<10){const d=this._inputValue.slice(o-1,o);r.value=this._inputValue.slice(0,o-1)+d+this._inputValue.slice(o+1)}if("Hh:m0:s0"===this._maskService.maskExpression&&this.apm&&(this._justPasted&&"00"===r.value.slice(0,2)&&(r.value=r.value.slice(1,2)+r.value.slice(2,r.value.length)),r.value="00"===r.value?"0":r.value),this._maskService.applyValueChanges(o,this._justPasted,"Backspace"===this._code||"Delete"===this._code,(d,f)=>{this._justPasted=!1,s=d,u=f}),this._getActiveElement()!==r)return;this._maskExpressionArray.length&&(o="Backspace"===this._code?this.specialCharacters.includes(this._inputValue.slice(o-1,o))?o-1:o:1===r.selectionStart?r.selectionStart+this._maskService.prefix.length:r.selectionStart),this._position=1===this._position&&1===this._inputValue.length?null:this._position;let c=this._position?this._inputValue.length+o+s:o+("Backspace"!==this._code||u?s:0);c>this._getActualInputLength()&&(c=this._getActualInputLength()),c<0&&(c=0),r.setSelectionRange(c,c),this._position=null}else console.warn("Ngx-mask writeValue work with string | number, your current value:",typeof i);else this._maskService.applyValueChanges(r.value.length,this._justPasted,"Backspace"===this._code||"Delete"===this._code)}onCompositionStart(){this._isComposing=!0}onCompositionEnd(t){this._isComposing=!1,this._justPasted=!0,this.onInput(t)}onBlur(t){if(this._maskValue){const r=t.target;if(this.leadZero&&r.value.length>0&&"string"==typeof this.decimalMarker){const i=this._maskService.maskExpression,o=Number(this._maskService.maskExpression.slice(i.length-1,i.length));if(o>1){r.value=this.suffix?r.value.split(this.suffix).join(""):r.value;const s=r.value.split(this.decimalMarker)[1];r.value=r.value.includes(this.decimalMarker)?r.value+"0".repeat(o-s.length)+this.suffix:r.value+this.decimalMarker+"0".repeat(o)+this.suffix,this._maskService.actualValue=r.value}}this._maskService.clearIfNotMatchFn()}this.onTouch()}onClick(t){if(!this._maskValue)return;const r=t.target;null!==r&&null!==r.selectionStart&&r.selectionStart===r.selectionEnd&&r.selectionStart>this._maskService.prefix.length&&38!==t.keyCode&&this._maskService.showMaskTyped&&!this.keepCharacterPositions&&(this._maskService.maskIsShown=this._maskService.showMaskInInput(),r.setSelectionRange&&this._maskService.prefix+this._maskService.maskIsShown===r.value?(r.focus(),r.setSelectionRange(0,0)):r.selectionStart>this._maskService.actualValue.length&&r.setSelectionRange(this._maskService.actualValue.length,this._maskService.actualValue.length));const s=r&&(r.value===this._maskService.prefix?this._maskService.prefix+this._maskService.maskIsShown:r.value);r&&r.value!==s&&(r.value=s),r&&"number"!==r.type&&(r.selectionStart||r.selectionEnd)<=this._maskService.prefix.length?r.selectionStart=this._maskService.prefix.length:r&&r.selectionEnd>this._getActualInputLength()&&(r.selectionEnd=this._getActualInputLength())}onKeyDown(t){if(!this._maskValue)return;if(this._isComposing)return void("Enter"===t.key&&this.onCompositionEnd(t));this._code=t.code?t.code:t.key;const r=t.target;if(this._inputValue=r.value,this._setMask(),"number"!==r.type){if("ArrowUp"===t.key&&t.preventDefault(),"ArrowLeft"===t.key||"Backspace"===t.key||"Delete"===t.key){if("Backspace"===t.key&&0===r.value.length&&(r.selectionStart=r.selectionEnd),"Backspace"===t.key&&0!==r.selectionStart)if(this.specialCharacters=this.specialCharacters?.length?this.specialCharacters:this._config.specialCharacters,this.prefix.length>1&&r.selectionStart<=this.prefix.length)r.setSelectionRange(this.prefix.length,r.selectionEnd);else if(this._inputValue.length!==r.selectionStart&&1!==r.selectionStart)for(;this.specialCharacters.includes((this._inputValue[r.selectionStart-1]??"").toString())&&(this.prefix.length>=1&&r.selectionStart>this.prefix.length||0===this.prefix.length);)r.setSelectionRange(r.selectionStart-1,r.selectionEnd);this.checkSelectionOnDeletion(r),this._maskService.prefix.length&&r.selectionStart<=this._maskService.prefix.length&&r.selectionEnd<=this._maskService.prefix.length&&t.preventDefault(),"Backspace"===t.key&&!r.readOnly&&0===r.selectionStart&&r.selectionEnd===r.value.length&&0!==r.value.length&&(this._position=this._maskService.prefix?this._maskService.prefix.length:0,this._maskService.applyMask(this._maskService.prefix,this._maskService.maskExpression,this._position))}this.suffix&&this.suffix.length>1&&this._inputValue.length-this.suffix.length<r.selectionStart?r.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length):("KeyA"===t.code&&t.ctrlKey||"KeyA"===t.code&&t.metaKey)&&(r.setSelectionRange(0,this._getActualInputLength()),t.preventDefault()),this._maskService.selStart=r.selectionStart,this._maskService.selEnd=r.selectionEnd}}writeValue(t){var r=this;return Fs(function*(){if("object"==typeof t&&null!==t&&"value"in t&&("disable"in t&&r.setDisabledState(!!t.disable),t=t.value),null!==t&&(t=r.inputTransformFn?r.inputTransformFn(t):t),"string"==typeof t||"number"==typeof t||null===t){let i=t;if("number"==typeof i||r._maskValue.startsWith("separator")){i=String(i);const o=r._maskService.currentLocaleDecimalMarker();Array.isArray(r._maskService.decimalMarker)||(i=r._maskService.decimalMarker!==o?i.replace(o,r._maskService.decimalMarker):i),r._maskService.leadZero&&i&&r.maskExpression&&!1!==r.dropSpecialCharacters&&(i=r._maskService._checkPrecision(r._maskService.maskExpression,i)),","===r._maskService.decimalMarker&&(i=i.toString().replace(".",",")),r.maskExpression?.startsWith("separator")&&r.leadZero&&requestAnimationFrame(()=>{r._maskService.applyMask(i?.toString()??"",r._maskService.maskExpression)}),r._maskService.isNumberValue=!0}"string"!=typeof i&&(i=""),r._inputValue=i,r._setMask(),i&&r._maskService.maskExpression||r._maskService.maskExpression&&(r._maskService.prefix||r._maskService.showMaskTyped)?("function"!=typeof r.inputTransformFn&&(r._maskService.writingValue=!0),r._maskService.formElementProperty=["value",r._maskService.applyMask(i,r._maskService.maskExpression)],"function"!=typeof r.inputTransformFn&&(r._maskService.writingValue=!1)):r._maskService.formElementProperty=["value",i],r._inputValue=i}else console.warn("Ngx-mask writeValue work with string | number, your current value:",typeof t)})()}registerOnChange(t){this._maskService.onChange=this.onChange=t}registerOnTouched(t){this.onTouch=t}_getActiveElement(t=this.document){const r=t?.activeElement?.shadowRoot;return r?.activeElement?this._getActiveElement(r):t.activeElement}checkSelectionOnDeletion(t){t.selectionStart=Math.min(Math.max(this.prefix.length,t.selectionStart),this._inputValue.length-this.suffix.length),t.selectionEnd=Math.min(Math.max(this.prefix.length,t.selectionEnd),this._inputValue.length-this.suffix.length)}setDisabledState(t){this._maskService.formElementProperty=["disabled",t]}_applyMask(){this._maskService.maskExpression=this._maskService._repeatPatternSymbols(this._maskValue||""),this._maskService.formElementProperty=["value",this._maskService.applyMask(this._inputValue,this._maskService.maskExpression)]}_validateTime(t){const r=this._maskValue.split("").filter(i=>":"!==i).length;return t&&(0==+(t[t.length-1]??-1)&&t.length<r||t.length<=r-2)?this._createValidationError(t):null}_getActualInputLength(){return this._maskService.actualValue.length||this._maskService.actualValue.length+this._maskService.prefix.length}_createValidationError(t){return{mask:{requiredMask:this._maskValue,actualValue:t}}}_setMask(){this._maskExpressionArray.some(t=>{if(t.split("").some(i=>this._maskService.specialCharacters.includes(i))&&this._inputValue&&!t.includes("S")||t.includes("{")){const i=this._maskService.removeMask(this._inputValue)?.length<=this._maskService.removeMask(t)?.length;if(i)return this._maskValue=this.maskExpression=this._maskService.maskExpression=t.includes("{")?this._maskService._repeatPatternSymbols(t):t,i;{const o=this._maskExpressionArray[this._maskExpressionArray.length-1]??"";this._maskValue=this.maskExpression=this._maskService.maskExpression=o.includes("{")?this._maskService._repeatPatternSymbols(o):o}}else{const i=this._inputValue?.split("").every((o,s)=>{const u=t.charAt(s);return this._maskService._checkSymbolMask(o,u)});if(i)return this._maskValue=this.maskExpression=this._maskService.maskExpression=t,i}})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=le({type:e,selectors:[["input","mask",""],["textarea","mask",""]],hostBindings:function(t,r){1&t&&ge("paste",function(){return r.onPaste()})("ngModelChange",function(o){return r.onModelChange(o)})("input",function(o){return r.onInput(o)})("compositionstart",function(o){return r.onCompositionStart(o)})("compositionend",function(o){return r.onCompositionEnd(o)})("blur",function(o){return r.onBlur(o)})("click",function(o){return r.onClick(o)})("keydown",function(o){return r.onKeyDown(o)})},inputs:{maskExpression:[0,"mask","maskExpression"],specialCharacters:"specialCharacters",patterns:"patterns",prefix:"prefix",suffix:"suffix",thousandSeparator:"thousandSeparator",decimalMarker:"decimalMarker",dropSpecialCharacters:"dropSpecialCharacters",hiddenInput:"hiddenInput",showMaskTyped:"showMaskTyped",placeHolderCharacter:"placeHolderCharacter",shownMaskExpression:"shownMaskExpression",showTemplate:"showTemplate",clearIfNotMatch:"clearIfNotMatch",validation:"validation",separatorLimit:"separatorLimit",allowNegativeNumbers:"allowNegativeNumbers",leadZeroDateTime:"leadZeroDateTime",leadZero:"leadZero",triggerOnMaskChange:"triggerOnMaskChange",apm:"apm",inputTransformFn:"inputTransformFn",outputTransformFn:"outputTransformFn",keepCharacterPositions:"keepCharacterPositions"},outputs:{maskFilled:"maskFilled"},features:[rt([{provide:ar,useExisting:Ne(()=>e),multi:!0},{provide:cn,useExisting:Ne(()=>e),multi:!0},db]),Gr]}),e})();function j$(e,n){return n instanceof Function?{...e,...n()}:{...e,...n}}let LP=(()=>{class e{static forRoot(t){return{ngModule:e,providers:[{provide:RP,useValue:t},{provide:FP,useValue:O$},{provide:dm,useFactory:j$,deps:[FP,RP]},db]}}static forChild(){return{ngModule:e}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=$t({type:e}),e.\u0275inj=Et({}),e})();const B$=[[["prefix"]],[["suffix"]]],H$=["prefix","suffix"];let VP=(()=>{class e{constructor(t,r){this.cdr=t,this.injector=r,this.value=null,this.disabled=!1,this.onChange=i=>{},this.onTouched=()=>{},this.trimAfterPaste=!1,this.autocomplete="false",this.password=!1,this.transparent=!1,this.placeholder="Enter a value...",this.type="text",this.validate=!0,this.dropSpecialCharacters=!0,this._paste=new Ge}ngOnInit(){this.initFormControl()}initFormControl(){this.formControl=this.injector.get(to)}get isInvalidControl(){return"invalid"===this.status||function A$(e){const{invalid:n,pristine:t,touched:r}=e;return!(!n||!r||t)}(this.formControl)&&this.validate}setValue(t){this.value=w3(t),this.onChange(t),this.cdr.detectChanges()}paste(t){t.stopPropagation(),setTimeout(()=>{this._paste.emit(t.target.value),this.cdr.detectChanges()})}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}writeValue(t){this.value=w3(t),this.cdr.detectChanges()}setDisabledState(t){this.disabled=t,this.cdr.detectChanges()}static#e=this.\u0275fac=function(r){return new(r||e)(P(Tu),P(tt))};static#t=this.\u0275cmp=Ze({type:e,selectors:[["moto-form-input"]],inputs:{formControlName:"formControlName",minlength:"minlength",maxlength:"maxlength",trimAfterPaste:"trimAfterPaste",autocomplete:"autocomplete",password:"password",transparent:"transparent",placeholder:"placeholder",type:"type",mask:"mask",validate:"validate",dropSpecialCharacters:"dropSpecialCharacters",status:"status"},outputs:{_paste:"paste"},features:[rt([{provide:ar,useExisting:Ne(()=>e),multi:!0}])],ngContentSelectors:H$,decls:8,vars:13,consts:[["inputRef",""],[1,"__ndb-form-control"],[1,"__ndb-form-control-affix"],[1,"__ndb-input-container"],[1,"__ndb-form-control-input",3,"ngModelChange","blur","paste","type","placeholder","minlength","maxlength","mask","dropSpecialCharacters","ngModel"]],template:function(r,i){if(1&r){const o=Ft();(function X4(e){const n=N()[gt][rn];if(!n.projection){const r=n.projection=vf(e?e.length:1,null),i=r.slice();let o=n.child;for(;null!==o;){if(128!==o.type){const s=e?f6(o,e):0;null!==s&&(i[s]?i[s].projectionNext=o:r[s]=o,i[s]=o)}o=o.next}}})(B$),j(0,"div",1)(1,"div",2),rv(2),B(),j(3,"div",3)(4,"input",4,0),ge("ngModelChange",function(u){return ve(o),_e(i.setValue(u))})("blur",function(){return ve(o),_e(i.onTouched())})("paste",function(u){return ve(o),_e(i.paste(u))}),B()(),j(6,"div",2),rv(7,1),B()()}2&r&&(Bn("transparent",i.transparent)("invalid",i.isInvalidControl),x(4),Y("type",i.type)("placeholder",i.placeholder)("minlength",i.minlength)("maxlength",i.maxlength)("mask",i.mask)("dropSpecialCharacters",i.dropSpecialCharacters)("ngModel",i.value),an("data-locator",i.formControlName||i.placeholder)("autocomplete",i.autocomplete))},dependencies:[V$,Wp,Ro,cm,md,Gu],styles:["[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.__ndb-form-control[_ngcontent-%COMP%]{border:1px solid #c9ccd8;border-radius:4px;display:flex;align-items:center;box-shadow:0 2px #29304d14;padding:17px 10px}.__ndb-form-control-affix[_ngcontent-%COMP%]{display:flex;align-items:center;gap:3px}.__ndb-form-control.invalid[_ngcontent-%COMP%]{border:1px solid #f44336;color:#f44336}.__ndb-form-control.invalid[_ngcontent-%COMP%] .__ndb-form-control-input[_ngcontent-%COMP%]::placeholder{color:#eb001b}.__ndb-form-control.transparent[_ngcontent-%COMP%]{border:none;box-shadow:none}.__ndb-form-control[_ngcontent-%COMP%] .__ndb-input-container[_ngcontent-%COMP%]{display:flex;flex-grow:1}.__ndb-form-control-input[_ngcontent-%COMP%]{display:block;width:100%;max-width:100%;border:none;outline:none;flex-grow:1}.__ndb-form-control-input[_ngcontent-%COMP%]::placeholder{color:#707797}"],changeDetection:0})}return e})();function G$(e,n){if(1&e&&(j(0,"span",4),ce(1),B()),2&e){const t=q();Y("@ANTransform",void 0),x(),Kt(t.paymentsErrorMsg())}}function U$(e,n){if(1&e&&(j(0,"span",15),ce(1),B()),2&e){q();const t=wt(2);Y("@ANTransform",void 0),x(),Kt(t.errors.invalidCardHolder)}}let jP=(()=>{class e extends qp{constructor(t,r,i){super(t),this.injector=t,this.fb=r,this.context=i,this.constants=rr}ngOnInit(){this.settings=this.context.data.settings,this.componentState=this.context.componentsStates.cardForm,this.initForm(),this.initComputedFields(),lb(this.form,this.componentState,this,()=>!!this.settings().requiredFieldsBehavior?.markAsInvalidUntilCorrect,this.areRequiredFieldsFilled,this.onUpdate,this.context)}pasteCardNumber(t){const r=function EU(e){return e.replace(/\s/g,"")}(t);this.form.get("cardCredentials").get("cardNumber").setValue(r,{onlySelf:!0}),function N$(e,n,t=null,r=!0){n.forEach(i=>{const o=e.get(i);o||function M$(e){throw new Error(e)}(`Invalid form control name: "${i}"`),o.reset(t),r&&o.updateValueAndValidity()})}(this.form.get("cardCredentials"),["expiration","cvv"]),this.detect()}resetForm(){this.form.reset(),this.localDetect()}onFocus(t){switch(t){case"number":this.context.events.analytics.emit(new Qe("card-number-field-focus"),!0);break;case"cvv":this.context.events.analytics.emit(new Qe("cvv-field-focus"),!0);break;case"holder":this.context.events.analytics.emit(new Qe("card-holder-field-focus"),!0);break;case"expiration":this.context.events.analytics.emit(new Qe("expiration-date-field-focus"),!0)}}initForm(){this.form=this.fb.group({cardCredentials:this.fb.group({cardNumber:[null,[Ii.required,lm.luhnAlgorithm,lm.cardNumberLength]],expiration:[null,[Ii.required,Ii.minLength(4),Ii.maxLength(4),lm.cardExpiration]],cvv:[null,[Ii.required,lm.cardCodeLength()]]}),cardHolder:[null,[Ii.required,Ii.maxLength(rr.card.holder.length.max)]]})}initComputedFields(){this.isCredentialsErrorShown=Se(()=>{const t=this.form.get("cardCredentials");return this.componentState().canShowError&&t.invalid}),this.isCardHolderErrorShown=Se(()=>{const t=this.form.get("cardHolder");return this.componentState().canShowError&&t.invalid}),this.paymentDetailsHeader=Se(()=>{const t=this.settings();return`${t.language.requisites.paymentDetailsHeader}${this.componentState().isRequired&&t.requiredFieldsBehavior?.showStars?" *":""}`}),this.nameOnCardHeader=Se(()=>{const t=this.settings();return`${t.language.requisites.cardHolderHeader}${this.componentState().isRequired&&t.requiredFieldsBehavior?.showStars?" *":""}`}),this.paymentsErrorMsg=Se(()=>{const t=this.form.get("cardCredentials"),[r]=function k$(e){return function x$(e){return Object.entries(e.controls).filter(([,n])=>n.invalid)}(e).map(([n])=>n)}(t),i=this.settings().language.errors;switch(this.componentState(),r){case"cardNumber":return i.invalidCardNumber;case"expiration":return i.invalidCardExpiration;case"cvv":return i.invalidCvv}})}areRequiredFieldsFilled(t){const{cardCredentials:r,cardHolder:i}=t;return r?.cvv&&r?.cardNumber&&r?.expiration&&i}onUpdate(t,r){const{cardCredentials:i,cardHolder:o}=t;r.data.userProvidedInfo.update(s=>({...s,paymentSystemName:"card",requisites:{type:"card",value:{cvv:i.cvv,expiration:i.expiration,number:i.cardNumber,holder:o}}}))}static#e=this.\u0275fac=function(r){return new(r||e)(P(tt),P(cb),P(Je))};static#t=this.\u0275cmp=Ze({type:e,selectors:[["moto-card-form"]],features:[Ve],decls:32,vars:49,consts:[[1,"__ndb-form",3,"formGroup"],[1,"__ndb-form-stage"],[1,"__ndb-form-stage-header"],[1,"__ndb-form-stage-header-title","fz-14","fw-500"],["data-locator","card-credentials-error",1,"__ndb-form-stage-header-error","fz-14","fw-500","font-error"],["formGroupName","cardCredentials",1,"__ndb-form-stage-controls","__ndb-form-stage-controls_credentials"],["id","card-number-field","formControlName","cardNumber","type","tel","autocomplete","cc-number",1,"__ndb-form-stage-controls_card-number",3,"paste","focusin","placeholder","mask","transparent","validate","status"],["ngProjectAs","suffix",5,["suffix"],1,"__ndb-form-stage-controls_card-number-logo",3,"src"],[1,"__ndb-form-stage-controls-separator","__ndb-form-stage-controls-separator_x"],[1,"__ndb-form-stage-controls-group"],["id","card-expiration-field","formControlName","expiration","mask","00 / 00","type","tel","autocomplete","cc-exp",1,"__ndb-form-stage-controls_expiration",3,"focusin","placeholder","transparent","validate","status"],[1,"__ndb-form-stage-controls-separator","__ndb-form-stage-controls-separator_y"],["id","card-cvv-field","formControlName","cvv","type","tel",1,"__ndb-form-stage-controls_cvv",3,"focusin","mask","dropSpecialCharacters","placeholder","transparent","validate","status"],["tabindex","-1","ngProjectAs","suffix",5,["suffix"]],[1,"material-icons","font-description","block","fz-18","cursor-default"],["data-locator","card-holder-error",1,"__ndb-form-stage-header-error","fz-14","fw-500","font-error"],[1,"__ndb-form-stage-controls"],["id","card-holder-field","formControlName","cardHolder","autocomplete","cc-name",3,"focusin","placeholder","maxlength","validate","status"]],template:function(r,i){if(1&r){const o=Ft();tr(0)(1)(2),j(3,"form",0)(4,"div",1)(5,"div",2)(6,"h6",3),ce(7),B(),me(8,G$,2,2,"span",4),B(),j(9,"div",5)(10,"moto-form-input",6),Xe(11,"cardInfo"),ge("paste",function(u){return ve(o),_e(i.pasteCardNumber(u))})("focusin",function(){return ve(o),_e(i.onFocus("number"))}),je(12,"moto-picture",7),Xe(13,"cardInfo"),B(),je(14,"div",8),j(15,"div",9)(16,"moto-form-input",10),ge("focusin",function(){return ve(o),_e(i.onFocus("expiration"))}),B(),je(17,"div",11),j(18,"moto-form-input",12),Xe(19,"cardInfo"),Xe(20,"cardInfo"),ge("focusin",function(){return ve(o),_e(i.onFocus("cvv"))}),j(21,"div",13),Xe(22,"cardInfo"),j(23,"i",14),ce(24,"error"),B()()()()()(),j(25,"div",1)(26,"div",2)(27,"h6",3),ce(28),B(),me(29,U$,2,2,"span",15),B(),j(30,"div",16)(31,"moto-form-input",17),ge("focusin",function(){return ve(o),_e(i.onFocus("holder"))}),B()()()()}if(2&r){const o=i.isCardHolderErrorShown(),s=i.isCredentialsErrorShown();x(2);const u=$n(i.settings().language);x(),Y("formGroup",i.form),x(4),nt(" ",i.paymentDetailsHeader()," "),x(),Ce(s?8:-1),x(),Bn("invalid",s),x(),Y("placeholder",u.requisites.cardNumberPlaceholder)("mask",Eu(11,29,i.form.value.cardCredentials.cardNumber,"card-number-mask","0000 0000 0000 0000"))("transparent",!0)("validate",!1)("status",s?"invalid":"valid"),x(2),Y("src",Jt(13,33,i.form.value.cardCredentials.cardNumber,"logo")),x(4),Y("placeholder",u.requisites.cardExpirationPlaceholder)("transparent",!0)("validate",!1)("status",s?"invalid":"valid"),x(2),Y("mask",Eu(19,36,i.form.value.cardCredentials.cardNumber,"code-mask","000"))("dropSpecialCharacters",!1)("placeholder",function LS(e,n,t,r,i,o){const s=e+ee,u=N(),c=hs(u,s);return Fl(u,s)?RS(u,wn(),n,c.transform,t,r,i,o,c):c.transform(t,r,i,o)}(20,40,i.form.value.cardCredentials.cardNumber,"code","CVV",u.requisites.cvvPlaceholder))("transparent",!0)("validate",!1)("status",s?"invalid":"valid"),x(3),an("data-tooltip",Eu(22,45,i.form.value.cardCredentials.cardNumber,"secure-text",u.requisites.cvvHint)),x(7),nt(" ",i.nameOnCardHeader()," "),x(),Ce(o?29:-1),x(2),Y("placeholder",u.requisites.cardHolderPlaceholder)("maxlength",i.constants.card.holder.length.max)("validate",!1)("status",o?"invalid":"valid")}},dependencies:[sm,Ro,Kp,md,Uu,pd,am,ku,VP,U_],data:{animation:[Lp()]},changeDetection:0})}return e})();function $$(e,n){if(1&e&&(j(0,"span",4),ce(1),B()),2&e){q();const t=wt(0);Y("@ANTransform",void 0),x(),nt(" ",t.errors.invalidPhoneNumber,"")}}let BP=(()=>{class e extends qp{constructor(t,r,i){super(t),this.injector=t,this.fb=r,this.context=i,this.phoneConstants=rr.phoneNumber}ngOnInit(){this.componentState=this.context.componentsStates.additionalForm,this.cardFormState=this.context.componentsStates.cardForm,this.settings=this.context.data.settings,this.initComputed(),this.initForm(),lb(this.form,this.componentState,this,()=>!!this.settings().requiredFieldsBehavior?.markAsInvalidUntilCorrect,t=>!!t.phoneNumber)}onFocus(){this.context.events.analytics.emit(new Qe("number-field-focus"),!0)}initForm(){this.form=this.fb.group({phoneNumber:["",[Ii.minLength(rr.phoneNumber.length.min),Ii.maxLength(rr.phoneNumber.length.max)]]})}initComputed(){this.header=Se(()=>{const t=this.settings();return`${t.language.phone.header}${this.componentState().isRequired&&t.requiredFieldsBehavior?.showStars?" *":""}`}),this.isErrorShown=Se(()=>{const t=this.componentState();return t.canShowError&&!t.isValid})}static#e=this.\u0275fac=function(r){return new(r||e)(P(tt),P(cb),P(Je))};static#t=this.\u0275cmp=Ze({type:e,selectors:[["moto-additional-form"]],features:[Ve],decls:10,vars:9,consts:[[1,"__ndb-form",3,"formGroup"],[1,"__ndb-form-stage"],[1,"__ndb-form-stage-header"],[1,"__ndb-form-stage-header-title","fz-14","fw-500"],["data-locator","phone-error",1,"__ndb-form-stage-header-error","fz-14","fw-500","font-error"],[1,"__ndb-form-stage-controls"],["id","phone-number-field","formControlName","phoneNumber","autocomplete","tel","type","tel",3,"focusin","placeholder","minlength","maxlength","validate","status"]],template:function(r,i){if(1&r){const o=Ft();tr(0)(1),j(2,"form",0)(3,"div",1)(4,"div",2)(5,"h6",3),ce(6),B(),me(7,$$,2,2,"span",4),B(),j(8,"div",5)(9,"moto-form-input",6),ge("focusin",function(){return ve(o),_e(i.onFocus())}),B()()()()}if(2&r){const o=$n(i.settings().language),s=i.isErrorShown();x(2),Y("formGroup",i.form),x(4),Kt(i.header()),x(),Ce(s?7:-1),x(2),Y("placeholder",o.phone.placeholder)("minlength",i.phoneConstants.length.min)("maxlength",i.phoneConstants.length.max)("validate",!1)("status",s?"invalid":"valid")}},dependencies:[sm,Ro,Kp,cm,md,Uu,pd,VP],data:{animation:[Lp()]},changeDetection:0})}return e})(),$u=(()=>{class e{constructor(t){this.sanitizer=t}transform(t,r){if(!t)return t;const i=this.parseLinks(t,r);return this.sanitizer.bypassSecurityTrustHtml(i)}parseLinks(t,r){return t.replace(/\{\s*href:\s*['"]([^'"]+)['"],\s*text:\s*['"]([^'"]+)['"]\s*\}/g,`<a href="$1" ${r?`class="${r}"`:""} target="_blank">$2</a>`)}static#e=this.\u0275fac=function(r){return new(r||e)(P(d_,16))};static#t=this.\u0275pipe=Nt({name:"linkify",type:e,pure:!0})}return e})();function z$(e,n){if(1&e){const t=Ft();j(0,"label",5)(1,"input",6),ge("ngModelChange",function(i){ve(t);const o=q(),s=o.$implicit,u=o.$index;return _e(q(2).onChange(s,u,i))})("focusin",function(){ve(t);const i=q(),o=i.$implicit,s=i.$index;return _e(q(2).onFocus(o,s))}),B(),je(2,"span",7)(3,"span",8),Xe(4,"linkify"),B()}if(2&e){const t=q(),r=t.$implicit,i=t.$index,o=q(2),s=wt(1),u=wt(2);x(),Y("name","charge-term-"+i)("id","charge-term-"+i)("formControlName",i),x(),Bn("circle","circle"===(null==s?null:s.shape))("square","square"===(null==s?null:s.shape))("invalid",u&&!o.form.get("checkboxes").get(i.toString()).value),x(),Y("innerHTML",Jt(4,10,r,"__ndb-settings-checkboxes-checkbox-link fz-12 fw-500 font-description"),wi)}}function q$(e,n){1&e&&me(0,z$,5,13,"label",5),2&e&&Ce(n.$implicit?0:-1)}function W$(e,n){if(1&e&&(j(0,"form",1),bu(1,4),Hn(2,q$,1,1,null,null,Zr),wu(),B()),2&e){const t=q(),r=wt(1);Y("formGroup",t.form),x(2),Gn(r.checkboxes)}}function Z$(e,n){if(1&e&&(j(0,"p",2),Xe(1,"linkify"),ce(2),B()),2&e){q();const t=wt(1);Y("innerHTML",Jt(1,2,t.text,"fz-12 fw-500 font-description"),wi),x(2),nt(" ",t.text," ")}}function Y$(e,n){if(1&e&&(j(0,"span",3),ce(1),B()),2&e){q();const t=wt(0);Y("@ANTransform",void 0),x(),nt(" ",t.language.errors.notCheckedCheckboxes," ")}}let HP=(()=>{class e extends qp{constructor(t,r,i){super(r),this.context=t,this.injector=r,this.fb=i}ngOnInit(){this.settings=this.context.data.settings,this.componentState=this.context.componentsStates.chargeTerms,this.isErrorShown=Se(()=>this.componentState().canShowError&&!this.componentState().isValid),this.initForm()?lb(this.form,this.componentState,this,()=>!!this.settings().requiredFieldsBehavior?.markAsInvalidUntilCorrect,()=>!0):this.componentState.update(t=>({...t,isValid:!0}))}onChange(t,r,i){this.context.events.analytics.emit(new Qe(i?`charge-term-checkbox-${r}-check`:`charge-term-checkbox-${r}-uncheck`,{text:t}))}onFocus(t,r){this.context.events.analytics.emit(new Qe(`charge-term-checkbox-${r}-focus`,{text:t}),!0)}initForm(){const t=this.settings().chargeTerms;if(!t.checkboxes?.length)return!1;const r=t.checkboxes.map(()=>this.fb.control(!1,Ii.requiredTrue));return this.form=this.fb.group({checkboxes:this.fb.array(r)}),!0}static#e=this.\u0275fac=function(r){return new(r||e)(P(Je),P(tt),P(cb))};static#t=this.\u0275cmp=Ze({type:e,selectors:[["moto-charge-terms"]],features:[Ve],decls:7,vars:6,consts:[[1,"__ndb-settings"],[1,"__ndb-settings-checkboxes",3,"formGroup"],[1,"__ndb-settings-text","fz-11","fw-500",3,"innerHTML"],["data-locator","charge-terms-error",1,"fz-14","fw-500","font-error"],["formArrayName","checkboxes"],[1,"__ndb-settings-checkboxes-checkbox","fz-11","fw-500","font-description"],["type","checkbox",1,"__ndb-settings-checkboxes-checkbox-input",3,"ngModelChange","focusin","name","id","formControlName"],[1,"__ndb-settings-checkboxes-checkbox-checkmark"],[1,"__ndb-settings-checkboxes-checkbox-text",3,"innerHTML"]],template:function(r,i){if(1&r&&(tr(0)(1)(2),j(3,"div",0),me(4,W$,4,1,"form",1)(5,Z$,3,5,"p",2)(6,Y$,2,2,"span",3),B()),2&r){const o=$n(i.settings());x();const s=$n(o.chargeTerms);x();const u=$n(i.isErrorShown());x(2),Ce(null!=s.checkboxes&&s.checkboxes.length?4:-1),x(),Ce(s.text?5:-1),x(),Ce(u?6:-1)}},dependencies:[sm,sd,Ro,Kp,Uu,pd,um,$u],data:{animation:[Lp()]},changeDetection:0})}return e})();function fb(e){const n=function X$(e){return`\n <!DOCTYPE html>\n <html>\n <head>\n <meta charset="UTF-8">\n <meta name="viewport" content="width=device-width, initial-scale=1.0">\n <meta name="description" content="Waiting payment approval">\n\n <title>Moto pay</title>\n </head>\n <body>\n <div class="waiting">\n <div class="section">\n <h2 class="waiting__title">${e.paymentProcessing}</h2>\n <div class="section__content __ndb-spinner-container">\n <div class="spinner">\n <div class="lds-ring">\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n </div>\n <div class="spinner__extra"></div>\n </div>\n </div>\n </div>\n </div>\n </body>\n </html>`}(e);let s=n.replace("</head>",'<style>\n\n .waiting__title {\n position: relative;\n z-index: 101;\n font-family: "Poppins", Helvetica, Arial, sans-serif;\n color: #29304d;\n font-size: 16px;\n margin: 0;\n text-align: center;\n transform: translateY(108px);\n }\n .__ndb__moto-modal-backdrop {\n background-color: #e5e5e5 !important;\n }\n .__ndb__moto-modal .header {\n margin: 0;\n }\n .section__content {\n margin: 0 auto;\n width: 870px;\n }\n @media screen and (max-width: 1000px) {\n .section__content {\n width: 720px;\n }\n }\n @media screen and (max-width: 768px) {\n .section__content {\n width: 375px;\n }\n }\n @media screen and (max-width: 375px) {\n .section__content {\n width: 320px;\n }\n }\n .spinner {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n height: 330px;\n }\n .spinner_small {\n height: 70px;\n }\n .spinner_extra {\n height: 550px;\n }\n .lds-ring {\n display: inline-block;\n position: relative;\n width: 80px;\n height: 80px;\n }\n .lds-ring div {\n box-sizing: border-box;\n display: block;\n position: absolute;\n width: 64px;\n height: 64px;\n margin: 8px;\n border: 8px solid #6936d3;\n border-radius: 50%;\n animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;\n border-color: #6936d3 transparent transparent transparent;\n }\n .lds-ring div:nth-child(1) {\n animation-delay: -0.45s;\n }\n .lds-ring div:nth-child(2) {\n animation-delay: -0.3s;\n }\n .lds-ring div:nth-child(3) {\n animation-delay: -0.15s;\n }\n @keyframes lds-ring {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n</style>\n</head>');return s=s.replace("</body>","<script>\n\n const messageKey = '__moto_pay_message';\n\n function inputTemplate(name, value) {\n return `<input type=\"hidden\" name=\"${name}\" value=\"${value}\" />`;\n }\n \n function formTemplate(redirectUrl, inputsTpl) {\n return `<form action=\"${redirectUrl}\" method=\"post\">${inputsTpl}</form>`;\n }\n \n function makeFormTemplate(threeDsData) {\n const inputsTemplate = Object.entries(threeDsData).reduce((accum, [key, value]) => {\n const inputTpl = inputTemplate(key, value);\n return (accum += `${inputTpl}\n`);\n }, '');\n const template = formTemplate(threeDsData.acsurl, inputsTemplate);\n return template;\n }\n \n function simpleRedirect(url) {\n window.location.replace(url);\n }\n \n function postRedirect(threeDsData) {\n const template = makeFormTemplate(threeDsData);\n \n setTimeout(() => {\n document.body.innerHTML = template;\n const form = document.body.querySelector('form');\n form.submit();\n });\n }\n \n function onMessageReceived(event) {\n if (event.data && event.data.key == messageKey) {\n if (event.data.type == 'simpleRedirect') {\n simpleRedirect(event.data?.redirectData?.location);\n }\n \n if (event.data.type == 'postRedirect') {\n postRedirect(event.data.threeDsData);\n }\n }\n }\n\n window.addEventListener('message', onMessageReceived, false);\n \n<\/script>\n</body>"),s}vk();class fm{constructor(){this.postMessageKey="__moto_pay_message"}tryOpenBlankWindow(n){return this.window||(this.window=window.open("","_blank")??void 0,n&&this.window?.document?.write(n)),this.window}threeDsRedirect(n){this.window?.postMessage({key:this.postMessageKey,type:"postRedirect",threeDsData:n})}redirect(n){this.window?.postMessage({key:this.postMessageKey,type:"simpleRedirect",redirectData:n})}closeWindow(){this.window?.close(),this.window=void 0}}let GP=(()=>{class e{constructor(t){this.window=t}transform(t,r){return Number(t).toLocaleString(this.window.navigator.language,{style:"currency",currency:r})}static#e=this.\u0275fac=function(r){return new(r||e)(P(C3,16))};static#t=this.\u0275pipe=Nt({name:"currencySymbol",type:e,pure:!0})}return e})(),J$=(()=>{class e{transform(t,r,i){return j_(t,r,i)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275pipe=Nt({name:"price",type:e,pure:!0})}return e})();function ez(e,n){if(1&e&&(j(0,"span",4),ce(1),B()),2&e){q();const t=wt(3);x(),Kt(t.taxDescription)}}function tz(e,n){if(1&e&&(je(0,"div",9),j(1,"div",10),je(2,"moto-picture",11),Xe(3,"cardInfo"),j(4,"span",12),ce(5),Xe(6,"slice"),B()()),2&e){const t=n;x(2),Y("src",Jt(3,2,t.name,"logo")),x(3),nt(" \u2022\u2022",Jt(6,5,t.name,-4)," ")}}let UP=(()=>{class e{constructor(t,r,i){this.context=t,this.processing=r,this.windowService=i}ngOnInit(){this.settings=this.context.data.settings,this.payment=this.context.data.payment,this.userProvidedInfo=this.context.data.userProvidedInfo,this.paymentAvailability=this.context.computed.paymentAvailability,this.existingCard=Se(()=>{const t=this.userProvidedInfo();if("existing-card"===t?.requisites?.type&&t.requisites?.value)return t.requisites.value})}pay(){if(this.context.events.analytics.emit(new Qe("pay-button-click")),!this.context.computed.paymentAvailability().canPay.byCard)return void this.context.updateCanShowError(!0);this.windowService.tryOpenBlankWindow(fb(this.settings().language));const t=this.processing.pay();this.context.data.state.set({type:"payLoading",payload:{observable:t}})}onFocus(){this.context.events.analytics.emit(new Qe("pay-button-focus"),!0)}static#e=this.\u0275fac=function(r){return new(r||e)(P(Je),P(ju),P(fm))};static#t=this.\u0275cmp=Ze({type:e,selectors:[["moto-pay-button"]],decls:23,vars:23,consts:[[1,"__ndb-pay"],[1,"__ndb-pay-info"],[1,"__ndb-pay-title","fz-18","fw-600"],["data-locator","total-cost",1,"fz-24","fw-700"],["id","tax-description",1,"fz-11","fw-500","font-description"],["id","pay-button","data-locator","btn-submit",1,"__ndb-pay-btn","button-submit","full-width",3,"click","focusin","ngClass","disabled"],[1,"__ndb-pay-btn-content"],[1,"__ndb-pay-btn-cost-side"],["data-locator","btn-submit-cost"],[1,"__ndb-pay-btn-separator"],[1,"__ndb-pay-btn-card-side"],[1,"__ndb-pay-btn-card-side-logo",3,"src"],["data-locator","btn-submit-card-number",1,"__ndb-pay-btn-card-side-number"]],template:function(r,i){if(1&r){const o=Ft();tr(0)(1)(2)(3),j(4,"div",0)(5,"div",1)(6,"span",2),ce(7),B(),j(8,"span",3),ce(9),Xe(10,"price"),Xe(11,"currencySymbol"),B()(),me(12,ez,2,1,"span",4),j(13,"button",5),ge("click",function(){return ve(o),_e(i.pay())})("focusin",function(){return ve(o),_e(i.onFocus())}),j(14,"div",6)(15,"div",7)(16,"span"),ce(17),j(18,"span",8),ce(19),Xe(20,"price"),Xe(21,"currencySymbol"),B()()(),me(22,tz,7,8),B()()()}if(2&r){let o;const s=i.payment(),u=i.paymentAvailability(),c=i.settings();x(3);const d=$n(c.language);x(4),Kt(d.totalHeader),x(2),Kt(Jt(11,13,Eu(10,9,s.amount,s.tax,s.amountType),s.currency)),x(3),Ce(c.isTaxVisible&&d.taxDescription?12:-1),x(),Y("ngClass",u.buttonDisableClass)("disabled",u.isPayButtonDisabled),x(4),nt(" ",d.pay," "),x(2),nt(" ",Jt(21,20,Eu(20,16,s.amount,s.tax,s.amountType),s.currency)," "),x(3),Ce((o=i.existingCard())?22:-1,o)}},dependencies:[Wv,ku,GP,Qv,J$,U_],styles:["[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.full-width[_ngcontent-%COMP%]{width:100%}@media (min-width: 769px){.ndb-mobile[_ngcontent-%COMP%]{display:none}}@media (max-width: 768px){.ndb-desktop[_ngcontent-%COMP%]{display:none}}.margin-auto[_ngcontent-%COMP%]{margin:auto}.flex[_ngcontent-%COMP%]{display:flex}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.none[_ngcontent-%COMP%]{display:none}.block[_ngcontent-%COMP%]{display:block}.events-none[_ngcontent-%COMP%]{pointer-events:none}.cursor-default[_ngcontent-%COMP%]{cursor:default}.pointer[_ngcontent-%COMP%]{cursor:pointer}.bold[_ngcontent-%COMP%]{font-weight:700!important}.font-middle[_ngcontent-%COMP%]{vertical-align:middle}.rotate[_ngcontent-%COMP%]{transform:rotate(-180deg)}.__ndb-pay[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.__ndb-pay-info[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center;justify-content:space-between;gap:20px;margin-bottom:7px}.__ndb-pay-btn[_ngcontent-%COMP%]{margin-top:7px}.__ndb-pay-btn-content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:16px;width:100%}.__ndb-pay-btn-separator[_ngcontent-%COMP%]{width:2px;height:18px;opacity:.3;background-color:var(--ndb-button-color)}.__ndb-pay-btn-card-side[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}.__ndb-pay-btn-card-side-logo[_ngcontent-%COMP%]{height:24px;width:36px}"],changeDetection:0})}return e})(),hm=(()=>{class e{constructor(){this.signals={}}getOrSetItemSignal(t,r){const i=window.sessionStorage.getItem(t);return i?this.signals[t]?JSON.stringify(this.signals[t]())!==i&&this.signals[t].set(JSON.parse(i)):this.signals[t]=we(JSON.parse(i)):this.setItem(t,r),this.signals[t]}setItem(t,r){window.sessionStorage.setItem(t,JSON.stringify(r)),this.signals[t]?this.signals[t].set(r):this.signals[t]=we(r)}removeItem(t){window.sessionStorage.removeItem(t),this.signals[t]?.set(void 0)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac})}return e})(),rz=(()=>{class e{constructor(t,r){this.renderer=t,this.elRef=r,this.buttonClick=new Ge,this.buttonStyle="white-outline",this.locale="en-US",this.type="continue"}ngAfterViewInit(){this.createButton()}ngOnDestroy(){this.buttonClickListener&&(this.buttonClickListener(),this.buttonClickListener=void 0)}createButton(){const t=this.renderer.createElement("apple-pay-button");this.renderer.setAttribute(t,"type",this.type),this.renderer.setAttribute(t,"buttonstyle",this.buttonStyle),this.renderer.setAttribute(t,"locale",this.locale),this.buttonClickListener=this.renderer.listen(t,"click",r=>this.buttonClick.emit(r)),this.renderer.appendChild(this.elRef.nativeElement,t),this.renderer.setStyle(t,"display","inline-block")}static#e=this.\u0275fac=function(r){return new(r||e)(P(Di),P(Ln))};static#t=this.\u0275dir=le({type:e,selectors:[["","motoApplePayButton",""]],inputs:{buttonStyle:"buttonStyle",locale:"locale",type:"type"},outputs:{buttonClick:"buttonClick"}})}return e})(),iz=(()=>{class e{constructor(t,r,i){this.renderer=t,this.elRef=r,this.context=i,this.buttonClick=new Ge}ngAfterViewInit(){this.createButton()}ngOnDestroy(){this.buttonClickListener&&(this.buttonClickListener(),this.buttonClickListener=void 0)}createButton(){if(!this.context.clients.googlePay)return;const t=this.context.clients.googlePay.createButton({...this.context.data.settings()?.googlePay.button,onClick:r=>this.buttonClick.emit(r)});this.renderer.appendChild(this.elRef.nativeElement,t),this.renderer.setStyle(t,"display","inline-block")}static#e=this.\u0275fac=function(r){return new(r||e)(P(Di),P(Ln),P(Je))};static#t=this.\u0275dir=le({type:e,selectors:[["","motoGooglePayButton",""]],outputs:{buttonClick:"buttonClick"}})}return e})(),oz=(()=>{class e{set _let(t){this.context.let=t}constructor(t,r){this.viewContainer=t,this.tpl=r,this.context={let:null}}ngOnInit(){this.viewContainer.createEmbeddedView(this.tpl,this.context)}static#e=this.\u0275fac=function(r){return new(r||e)(P(zr),P(Ei))};static#t=this.\u0275dir=le({type:e,selectors:[["","let",""]],inputs:{_let:[0,"let","_let"]}})}return e})();const sz=(e,n)=>n.name,az=(e,n)=>({applepay:e,googlepay:n}),uz=e=>({$implicit:e});function cz(e,n){if(1&e){const t=Ft();j(0,"div",5)(1,"span",7),ge("click",function(){return ve(t),_e(q(2).apmsCollapseClick())}),ce(2),B()()}if(2&e){q(2);const t=wt(2);x(),Y("ngClass",t.apmsCollapse?"__ndb-apm-list__delimiter-text__apms-collapse":""),x(),Kt(t.apmsCollapse?t.language.apms.orUseAlternative:t.language.apms.or)}}function lz(e,n){if(1&e&&Do(0,8),2&e){const t=n.$implicit,r=q(2).let;q();const i=Hh(5);Y("ngTemplateOutlet",t.logo?i:r[t.name])("ngTemplateOutletContext",function AS(e,n,t,r){return kS(N(),wn(),e,n,t,r)}(2,uz,t))}}function dz(e,n){if(1&e&&(j(0,"div",6),Hn(1,lz,1,4,"ng-container",8,sz),B()),2&e){q(2);const t=wt(0);x(),Gn(t)}}function fz(e,n){if(1&e&&(j(0,"div",4),me(1,cz,3,2,"div",5)(2,dz,3,0,"div",6),B()),2&e){let t;const r=q(),i=wt(2);x(),Ce(r.cardPaymentAvailable()?1:-1),x(),Ce(i.apmsCollapse&&r.apmsCollapsed&&(null===(t=r.apmsCollapsed())||void 0===t||t)?-1:2)}}function hz(e,n){if(1&e){const t=Ft();j(0,"button",9),ge("focusin",function(){const i=ve(t).$implicit;return _e(q().onFocus(i))})("click",function(){const i=ve(t).$implicit;return _e(q().pay(i))}),je(1,"img",10),B()}if(2&e){const t=n.$implicit;q();const r=wt(1);Y("id","apm-"+(null==t?null:t.name)+"-button")("ngClass",r.elementDisableClass),x(),Y("src",t.logo,nl)("alt",t.name)}}function pz(e,n){if(1&e){const t=Ft();j(0,"div",11),ge("buttonClick",function(){const i=ve(t).$implicit;return _e(q().pay(i))})("focusin",function(){const i=ve(t).$implicit;return _e(q().onFocus(i))}),B()}2&e&&(q(),Y("ngClass",wt(1).elementDisableClass))}function mz(e,n){if(1&e){const t=Ft();j(0,"div",12),ge("buttonClick",function(){const i=ve(t).$implicit;return _e(q().pay(i))})("focusin",function(){const i=ve(t).$implicit;return _e(q().onFocus(i))}),B()}2&e&&(q(),Y("ngClass",wt(1).elementDisableClass))}let $P=(()=>{class e{constructor(t,r,i,o,s,u,c){this.context=t,this.processingService=r,this.mapper=i,this.applePayService=o,this.googlePayService=s,this.sessionStorage=u,this.windowService=c,this.apms=we([])}ngOnInit(){this.settings=this.context.data.settings,this.paymentInfo=this.context.data.payment,this.settings().apmsCollapse&&(this.apmsCollapsed=this.sessionStorage.getOrSetItemSignal(rr.keys.apmsCollapse,!0)),this.paymentAvailability=this.context.computed.paymentAvailability,this.apms=Se(()=>{let t=this.context.data.loadedPaymentSystems().filter(i=>"card"!==i.name);return this.mapper.mapApms(t)}),this.cardPaymentAvailable=Se(()=>this.context.componentsStates.cardForm().enabled||this.context.componentsStates.cardList().enabled)}pay(t){var i,r=this;if(this.context.events.analytics.emit(new Qe(`${t.name}-button-click`)),this.paymentAvailability().canPay.byApm)if("applepay"===t.name){const i=eo(this.settings().urls.processing,`api/applepay/${this.paymentInfo().merchantId}/merchantValidation`);this.applePayService.pay(this.paymentInfo(),i).subscribe({next:o=>{t.token=o,this.makePaymentAndRedirect(t)},error:()=>this.apmTokenError()})}else"googlepay"===t.name?this.googlePayService.pay(this.paymentInfo()).subscribe({next:(i=Fs(function*(o){t.token=o,yield r.redirectForConfirmation(),r.windowService.tryOpenBlankWindow(fb(r.settings().language)),r.makePaymentAndRedirect(t)}),function(s){return i.apply(this,arguments)}),error:()=>this.apmTokenError()}):(this.windowService.tryOpenBlankWindow(fb(this.settings().language)),this.makePaymentAndRedirect(t));else this.context.updateCanShowErrorForApm(!0)}onFocus(t){this.context.events.analytics.emit(new Qe(`${t.name}-button-focus`),!0)}apmsCollapseClick(){if(this.settings().apmsCollapse){const t=this.apmsCollapsed();this.sessionStorage.setItem(rr.keys.apmsCollapse,!t),this.context.events.analytics.emit(new Qe("apms-show-button-click",{show:t}))}}makePaymentAndRedirect(t){this.context.data.userProvidedInfo.update(i=>({...i,paymentSystemName:t.name,requisites:{type:"apm",value:t}}));const r=this.processingService.pay();this.context.data.state.set({type:"payLoading",payload:{observable:r}})}redirectForConfirmation(){const{promise:t,resolve:r}=function nz(){let e,n;return{promise:new Promise((r,i)=>{e=r,n=i}),resolve:e,reject:n}}();return this.context.data.state.set({type:"confirmation",payload:{resolvePromise:r}}),t}apmTokenError(){this.windowService.closeWindow(),this.context.data.state.set({type:"result",payload:{}})}static#e=this.\u0275fac=function(r){return new(r||e)(P(Je),P(ju),P(Gs),P(B_),P(H_),P(hm),P(fm))};static#t=this.\u0275cmp=Ze({type:e,selectors:[["moto-apm-list"]],decls:10,vars:7,consts:[["apmDefaultRef",""],["applePayRef",""],["googlePayRef",""],["class","__ndb-apm-list",4,"let"],[1,"__ndb-apm-list"],[1,"__ndb-apm-list__delimiter"],[1,"__ndb-apm-list-apms"],["id","apms-collapse-button",1,"__ndb-apm-list__delimiter-text","fz-12",3,"click","ngClass"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"__ndb-apm-list-apms__item",3,"focusin","click","id","ngClass"],[1,"__ndb-apm-list-apms__item-img",3,"src","alt"],["id","apm-applepay-button","motoApplePayButton","",1,"__ndb-apm-list-apms__item","moto-apple-pay-button",3,"buttonClick","focusin","ngClass"],["id","apm-googlepay-button","motoGooglePayButton","",1,"__ndb-apm-list-apms__item","moto-google-pay-button",3,"buttonClick","focusin","ngClass"]],template:function(r,i){if(1&r&&(tr(0)(1)(2),me(3,fz,3,2,"div",3)(4,hz,2,4,"ng-template",null,0,$h)(6,pz,1,1,"ng-template",null,1,$h)(8,mz,1,1,"ng-template",null,2,$h)),2&r){const o=Hh(7),s=Hh(9);$n(i.apms()),x(),$n(i.paymentAvailability()),x(),$n(i.settings()),x(),Y("let",function xS(e,n,t,r,i){return NS(N(),wn(),e,n,t,r,i)}(4,az,o,s))}},dependencies:[Wv,gM,rz,iz,oz],styles:['[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.__ndb-apm-list__delimiter[_ngcontent-%COMP%]{margin-bottom:28px;display:flex;flex-direction:row;justify-content:center;align-items:center}.__ndb-apm-list__delimiter[_ngcontent-%COMP%]:before, .__ndb-apm-list__delimiter[_ngcontent-%COMP%]:after{content:"";height:1px;flex:1;background-color:#c9ccd8}.__ndb-apm-list__delimiter[_ngcontent-%COMP%]:before{margin-right:10px}.__ndb-apm-list__delimiter[_ngcontent-%COMP%]:after{margin-left:10px}.__ndb-apm-list__delimiter-text[_ngcontent-%COMP%]{font-weight:500;color:#636b8a}.__ndb-apm-list__delimiter-text__apms-collapse[_ngcontent-%COMP%]{-webkit-text-decoration:underline #636b8a dotted;text-decoration:underline #636b8a dotted;cursor:pointer;-webkit-user-select:none;user-select:none}.__ndb-apm-list-apms[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}.__ndb-apm-list-apms__item[_ngcontent-%COMP%]{position:relative;width:100%;height:60px;display:flex;flex-direction:row;justify-content:center;align-items:center;background-color:#e8eaf3;transition:box-shadow .25s ease-out;will-change:box-shadow;border-radius:4px}.__ndb-apm-list-apms__item[_ngcontent-%COMP%]:hover:not(.disabled-element):not(.hidden-enabled-element){box-shadow:0 2px 3px #2f45704d}.__ndb-apm-list-apms__item[_ngcontent-%COMP%]:not(.disabled-element):not(.hidden-enabled-element){cursor:pointer}.__ndb-apm-list-apms__item-img[_ngcontent-%COMP%]{position:absolute;width:60%;height:100%;left:20%;top:0;object-fit:contain}.moto-apple-pay-button[_ngcontent-%COMP%]{--apple-pay-button-height: 60px;--apple-pay-button-width: 100%;width:100%;height:60px;padding:0}.moto-google-pay-button[_ngcontent-%COMP%]{width:100%;height:60px;padding:0}'],changeDetection:0})}return e})();function gz(e,n){if(1&e){const t=Ft();j(0,"label",3)(1,"input",4),av("ngModelChange",function(i){ve(t);const o=q().$implicit;return function SS(e,n){const t=uD(e);return t&&e.set(n),t}(o.value,i)||(o.value=i),_e(i)}),ge("ngModelChange",function(){ve(t);const i=q(),o=i.$implicit,s=i.$index;return _e(q(2).onChange(o,s))})("focusin",function(){ve(t);const i=q(),o=i.$implicit,s=i.$index;return _e(q(2).onFocus(o,s))}),B(),je(2,"span",5)(3,"span",6),Xe(4,"linkify"),B()}if(2&e){const t=q().$implicit;q(2);const r=wt(0);x(),Y("name","user-preference-"+t.name)("id","user-preference-"+t.name),sv("ngModel",t.value),x(),Bn("circle","circle"===(null==r.userPreferences?null:r.userPreferences.shape))("square","square"===(null==r.userPreferences?null:r.userPreferences.shape)),x(),Y("innerHTML",Jt(4,8,t.text,"__ndb-settings-checkboxes-checkbox-link fz-12 fw-500 font-description"),wi)}}function yz(e,n){1&e&&me(0,gz,5,11,"label",3),2&e&&Ce(n.$implicit.text?0:-1)}function vz(e,n){if(1&e&&(j(0,"div",1),Hn(1,yz,1,1,null,null,Zr),B()),2&e){const t=q();x(),Gn(t.userPreferenceCheckboxes)}}function _z(e,n){1&e&&(je(0,"p",2),Xe(1,"linkify")),2&e&&(q(),Y("innerHTML",Jt(1,1,wt(0).userPreferences.text,"fz-12 fw-500 font-description"),wi))}let zP=(()=>{class e extends qp{constructor(t,r){super(t),this.injector=t,this.context=r,this.userPreferenceCheckboxes=[]}ngOnInit(){this.settings=this.context.data.settings,this.update(this.settings().userPreferences)}reset(){this.update(this.settings().userPreferences)}onChange(t,r){this.context.data.userProvidedInfo.update(o=>({...o,userPreferences:this.userPreferenceCheckboxes}));this.context.events.analytics.emit(new Qe(t.value?`user-preference-checkbox-${r}-check`:`user-preference-checkbox-${r}-uncheck`,{name:t.name,text:t.text}))}onFocus(t,r){this.context.events.analytics.emit(new Qe(`user-preference-checkbox-${r}-focus`,{name:t.name,text:t.text}),!0)}update(t){t?.checkboxes?.length?(this.userPreferenceCheckboxes=t.checkboxes.map(r=>({name:r.name,text:r.text,value:!!r.defaultValue})),this.context.data.userProvidedInfo.update(r=>({...r,userPreferences:this.userPreferenceCheckboxes})),this.localDetect()):this.userPreferenceCheckboxes=[]}static#e=this.\u0275fac=function(r){return new(r||e)(P(tt),P(Je))};static#t=this.\u0275cmp=Ze({type:e,selectors:[["moto-user-preferences"]],features:[Ve],decls:4,vars:3,consts:[[1,"__ndb-settings"],[1,"__ndb-settings-checkboxes"],[1,"__ndb-settings-text","fz-11","fw-500",3,"innerHTML"],[1,"__ndb-settings-checkboxes-checkbox","fz-11","fw-500","font-description"],["type","checkbox",1,"__ndb-settings-checkboxes-checkbox-input",3,"ngModelChange","focusin","name","id","ngModel"],[1,"__ndb-settings-checkboxes-checkbox-checkmark"],[1,"__ndb-settings-checkboxes-checkbox-text",3,"innerHTML"]],template:function(r,i){if(1&r&&(tr(0),j(1,"div",0),me(2,vz,3,0,"div",1)(3,_z,2,4,"p",2),B()),2&r){const o=$n(i.settings());x(2),Ce(i.userPreferenceCheckboxes.length?2:-1),x(),Ce(null!=o&&null!=o.userPreferences&&o.userPreferences.text?3:-1)}},dependencies:[sd,Ro,Gu,$u],changeDetection:0})}return e})();function bz(e,n){1&e&&(j(0,"span",4),ce(1,"\xb7"),B())}function wz(e,n){if(1&e&&(j(0,"a",3),ce(1),B(),me(2,bz,2,0,"span",4)),2&e){const t=n.$implicit,r=n.$index,i=n.$count;Y("href",t.href,nl),x(),nt(" ",t.text," "),x(),Ce(r!==i-1?2:-1)}}function Cz(e,n){if(1&e&&(j(0,"div",1),Hn(1,wz,3,3,null,null,Zr),B()),2&e){q(2);const t=wt(0);x(),Gn(t.links)}}function Ez(e,n){1&e&&(je(0,"p",2),Xe(1,"linkify")),2&e&&(q(2),Y("innerHTML",Jt(1,1,wt(0).text,"__ndb-merchant-info-checkbox-link fz-12 fw-500 font-description"),wi))}function Dz(e,n){if(1&e&&(j(0,"div",0),me(1,Cz,3,0,"div",1)(2,Ez,2,4,"p",2),B()),2&e){q();const t=wt(0);x(),Ce(null!=t.links&&t.links.length?1:-1),x(),Ce(t.text?2:-1)}}let qP=(()=>{class e{constructor(t){this.context=t}ngOnInit(){this.settings=this.context.data.settings}static#e=this.\u0275fac=function(r){return new(r||e)(P(Je))};static#t=this.\u0275cmp=Ze({type:e,selectors:[["moto-merchant-info"]],decls:2,vars:2,consts:[[1,".__ndb-merchant-info"],[1,"__ndb-merchant-info-links"],[1,"__ndb-merchant-info-description","fz-11","fw-500","font-description",3,"innerHTML"],["target","_blank",1,"__ndb-merchant-info-links-link","fz-12","fw-500","font-description",3,"href"],[1,"__ndb-merchant-info-links-separator","fz-12","fw-500","font-description"]],template:function(r,i){if(1&r&&(tr(0),me(1,Dz,3,2,"div",0)),2&r){const o=$n(i.settings().merchantInfo);x(),Ce(null!=o.links&&o.links.length||o.text?1:-1)}},dependencies:[$u],styles:["[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.__ndb-merchant-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:28px;padding:0 28px 28px}@media (max-width: 768px){.__ndb-merchant-info[_ngcontent-%COMP%]{padding-bottom:14px}}.__ndb-merchant-info-links[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-wrap:wrap}.__ndb-merchant-info-links-link[_ngcontent-%COMP%]{white-space:nowrap;text-decoration-line:underline}.__ndb-merchant-info-links-separator[_ngcontent-%COMP%]{margin:0 10px;white-space:nowrap}.__ndb-merchant-info-description[_ngcontent-%COMP%]{text-align:left;line-height:1.1;color:#000}"],changeDetection:0})}return e})(),WP=(()=>{class e{transform(t){return`https://cdn.motopays.com/images/${t}`}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275pipe=Nt({name:"image",type:e,pure:!0})}return e})();function Sz(e,n){1&e&&(je(0,"moto-picture",3),Xe(1,"image")),2&e&&Y("src",Rl(1,1,"visa-secure.svg"))}function Tz(e,n){1&e&&(je(0,"moto-picture",3),Xe(1,"image")),2&e&&Y("src",Rl(1,1,"master-card-secure.svg"))}function Mz(e,n){if(1&e&&(j(0,"div",0)(1,"p",1),ce(2),B(),j(3,"div",2),me(4,Sz,2,3,"moto-picture",3)(5,Tz,2,3,"moto-picture",3),B()()),2&e){const t=q();x(2),nt(" ",t.settings().language.transactionProtectedBy," "),x(2),Ce(t.isVisaAvailable()?4:-1),x(),Ce(t.isMastercardAvailable()?5:-1)}}let ZP=(()=>{class e{constructor(t){this.context=t}ngOnInit(){this.settings=this.context.data.settings,this.isMastercardAvailable=Se(()=>!!this.settings().availableCardBrands?.some(t=>"mastercard"===t)),this.isVisaAvailable=Se(()=>!!this.settings().availableCardBrands?.some(t=>"visa"===t))}static#e=this.\u0275fac=function(r){return new(r||e)(P(Je))};static#t=this.\u0275cmp=Ze({type:e,selectors:[["moto-protected-by"]],decls:1,vars:1,consts:[[1,"__ndb-secure"],[1,"__ndb-secure-phrase","fz-12","fw-500","font-description"],[1,"__ndb-secure-logos"],[1,"__ndb-secure-logos-logo",3,"src"]],template:function(r,i){1&r&&me(0,Mz,6,3,"div",0),2&r&&Ce(i.isMastercardAvailable()||i.isVisaAvailable()?0:-1)},dependencies:[ku,WP],styles:["[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.__ndb-secure[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;gap:10px}.__ndb-secure-phrase[_ngcontent-%COMP%]{color:#000}.__ndb-secure-logos[_ngcontent-%COMP%]{display:flex;justify-content:center;gap:2px}.__ndb-secure-logos-logo[_ngcontent-%COMP%]{height:40px;width:max-content}"],changeDetection:0})}return e})(),YP=(()=>{class e{constructor(t){this.context=t}ngOnInit(){this.settings=this.context.data.settings}static#e=this.\u0275fac=function(r){return new(r||e)(P(Je))};static#t=this.\u0275cmp=Ze({type:e,selectors:[["moto-no-payments"]],decls:2,vars:1,consts:[[1,"__ndb-no-methods"]],template:function(r,i){1&r&&(j(0,"h2",0),ce(1),B()),2&r&&(x(),nt(" ",i.settings().language.noAvailablePaymentMethods,"\n"))},styles:[".__ndb-no-methods[_ngcontent-%COMP%]{text-align:center}"],changeDetection:0})}return e})(),Iz=(()=>{class e{constructor(){this.shape="circle",this.invalid=!1,this.inputFocus=new Ge,this.value=we("unchecked"),this.disabled=we(!1),this.onChange=()=>{},this.onTouched=()=>{}}writeValue(t){this.value.set(t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled.set(t)}onValueChanged(t){const r=t?"checked":"unchecked";this.value.set(r),this.onChange(r)}onBlur(){this.onTouched()}onInputFocus(t){this.inputFocus.emit(t)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Ze({type:e,selectors:[["moto-checkbox"]],inputs:{id:"id",text:"text",shape:"shape",invalid:"invalid"},outputs:{inputFocus:"inputFocus"},features:[rt([{provide:ar,useExisting:Ne(()=>e),multi:!0}])],decls:5,vars:16,consts:[[1,"__ndb-checkbox","fz-11","fw-500","font-description"],["type","checkbox",1,"__ndb-checkbox-input",3,"ngModelChange","focusin","blur","name","id","disabled","ngModel"],[1,"__ndb-checkbox-checkmark"],[1,"__ndb-checkbox-text",3,"innerHTML"]],template:function(r,i){1&r&&(j(0,"label",0)(1,"input",1),ge("ngModelChange",function(s){return i.onValueChanged(s)})("focusin",function(s){return i.onInputFocus(s)})("blur",function(){return i.onBlur()}),B(),je(2,"span",2)(3,"span",3),Xe(4,"linkify"),B()),2&r&&(x(),Y("name",i.id)("id",i.id)("disabled",i.disabled())("ngModel","checked"===i.value()),x(),Bn("circle","circle"===i.shape)("square","square"===i.shape)("intermediate","intermediate"===i.value())("invalid",i.invalid),x(),Y("innerHTML",Jt(4,13,i.text,"__ndb-checkbox-link fz-12 fw-500 font-description"),wi))},dependencies:[sd,Ro,Gu,$u],changeDetection:0})}return e})();const Pz=(e,n)=>n.id;function Az(e,n){if(1&e){const t=Ft();j(0,"moto-checkbox",5),ge("inputFocus",function(){return ve(t),_e(q(2).onMasterFocus())})("ngModelChange",function(i){return ve(t),_e(q(2).onMasterChange(i))}),B()}if(2&e){const t=q(2);Y("shape",t.masterShape)("text",t.masterText)("ngModel",t.masterState())}}function xz(e,n){if(1&e){const t=Ft();j(0,"moto-checkbox",7),ge("inputFocus",function(){ve(t);const i=q(),o=i.$implicit,s=i.$index;return _e(q(2).onCheckboxFocus(o,s))})("ngModelChange",function(i){ve(t);const o=q(),s=o.$implicit,u=o.$index;return _e(q(2).onCheckboxChange(s,u,i))}),B()}if(2&e){const t=q().$implicit,r=q(2);Bn("underMaster",r.isMaster),Y("invalid",r.showError()&&t.isRequired&&!t.value)("shape",t.shape)("text",t.text)("id",t.id)("ngModel",t.value?"checked":"unchecked")}}function kz(e,n){1&e&&me(0,xz,1,7,"moto-checkbox",6),2&e&&Ce(n.$implicit?0:-1)}function Nz(e,n){if(1&e&&(j(0,"div",1),me(1,Az,1,3,"moto-checkbox",4),Hn(2,kz,1,1,null,null,Pz),B()),2&e){const t=q();x(),Ce(t.isMaster?1:-1),x(),Gn(t.checkboxes())}}function Oz(e,n){if(1&e&&(j(0,"p",2),Xe(1,"linkify"),ce(2),B()),2&e){const t=q();Y("innerHTML",Jt(1,2,t.footerText,"fz-12 fw-500 font-description"),wi),x(2),nt(" ",t.footerText," ")}}function Rz(e,n){if(1&e&&(j(0,"span",3),ce(1),B()),2&e){const t=q();Y("@ANTransform",void 0),x(),nt(" ",t.errorText," ")}}let Fz=(()=>{class e{constructor(){this.provideErrors=kk(!1),this.errorText="",this.isMaster=!1,this.masterText="",this.masterShape="circle",this.checkboxes=we([]),this.changed=new Ge,this.masterFocus=new Ge,this.masterClick=new Ge,this.checkboxFocus=new Ge,this.isValidChanged=new Ge,this.masterState=Se(()=>{if(!this.isMaster)return"unchecked";const t=this.checkboxes();return t.every(r=>r.value)?"checked":t.some(r=>r.value)?"intermediate":"unchecked"}),this.showError=Se(()=>this.provideErrors()&&this.checkboxes().some(t=>t.isRequired&&!t.value))}set checkboxesInput(t){this.checkboxes.set([...t])}onCheckboxChange(t,r,i){const o=[...this.checkboxes()];o[r]={...o[r],value:"checked"===i},this.checkboxes.set(o),this.changed.emit({checkboxes:o,concrete:{checkbox:{...t,value:"checked"===i},index:r}})}onMasterChange(t){const r=this.checkboxes().map(i=>({...i,value:"checked"===t}));this.checkboxes.set(r),this.changed.emit({checkboxes:r}),this.masterClick.emit(t)}onCheckboxFocus(t,r){this.checkboxFocus.emit({checkbox:t,index:r})}onMasterFocus(){this.masterFocus.emit()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Ze({type:e,selectors:[["moto-checkbox-container"]],inputs:{provideErrors:[1,"provideErrors"],errorText:"errorText",footerText:"footerText",isMaster:"isMaster",masterText:"masterText",masterShape:"masterShape",checkboxesInput:[0,"checkboxes","checkboxesInput"]},outputs:{changed:"changed",masterFocus:"masterFocus",masterClick:"masterClick",checkboxFocus:"checkboxFocus",isValidChanged:"isValidChanged"},decls:4,vars:3,consts:[[1,"__ndb-settings"],[1,"__ndb-settings-checkboxes"],[1,"__ndb-settings-text","fz-11","fw-500",3,"innerHTML"],[1,"fz-14","fw-500","font-error"],[3,"shape","text","ngModel"],[3,"inputFocus","ngModelChange","shape","text","ngModel"],[3,"underMaster","invalid","shape","text","id","ngModel"],[3,"inputFocus","ngModelChange","invalid","shape","text","id","ngModel"]],template:function(r,i){1&r&&(j(0,"div",0),me(1,Nz,4,1,"div",1)(2,Oz,3,5,"p",2)(3,Rz,2,2,"span",3),B()),2&r&&(x(),Ce(i.checkboxes().length?1:-1),x(),Ce(i.footerText?2:-1),x(),Ce(i.showError()?3:-1))},dependencies:[Ro,Gu,Iz,$u],data:{animation:[Lp()]},changeDetection:0})}return e})(),KP=(()=>{class e{constructor(t){this.context=t,this.checkboxes=we([]),this.hasInvalidRequired=Se(()=>this.checkboxes().some(r=>r.isRequired&&!r.value))}ngOnInit(){this.settings=this.context.data.settings,this.componentState=this.context.componentsStates.master,this.showError=Se(()=>{const t=this.componentState(),r=this.hasInvalidRequired();return t.canShowError&&r}),this.update()}reset(){this.update()}onChanged(t){if(t.concrete){const{checkbox:r,index:i}=t.concrete;this.checkboxes.update(o=>o.map(s=>s.id===r.id?{...s,value:r.value}:s)),this.emitAnalytics(r,i)}else{const r=t.checkboxes;this.checkboxes.update(i=>i.map(o=>{const s=r.find(u=>u.id===o.id);return s?{...o,value:s.value}:o}))}this.updateContextData(),this.updateComponentState()}onFocus(t,r){this.context.events.analytics.emit(new Qe(`${"user-preferences"===t.type?"user-preference-checkbox":"charge-term-checkbox"}-${r}-focus`,{name:t.id,text:t.text??""}),!0)}onMasterFocus(){this.context.events.analytics.emit(new Qe("master-focus"),!0)}onMasterClick(){this.context.events.analytics.emit(new Qe("master-click"))}emitAnalytics(t,r){this.context.events.analytics.emit(new Qe(`${"user-preferences"===t.type?"user-preference-checkbox":"charge-term-checkbox"}-${r}-${t.value?"check":"uncheck"}`,{name:t.id,text:t.text??""}))}update(){const t=this.settings(),r=t.chargeTerms?.checkboxes?.map((o,s)=>({id:"charge-term-"+s,initId:s.toString(),text:o,value:!1,isRequired:!0,shape:t.chargeTerms?.shape??"circle",type:"charge-terms"}))??[],i=t.userPreferences?.checkboxes?.map(o=>({id:"user-preference-"+o.name,initId:o.name,text:o.text,value:!!o.defaultValue,isRequired:!1,shape:t.userPreferences?.shape??"square",type:"user-preferences"}))??[];this.checkboxes.set([...r,...i]),this.updateContextData(),this.updateComponentState()}updateComponentState(){const t=this.checkboxes(),i=!this.hasInvalidRequired(),o=!!this.settings().requiredFieldsBehavior?.markAsInvalidUntilCorrect,s=t.every(u=>!u.isRequired||u.value);this.componentState.update(u=>{let c={...u},d=!1;return u.filled!==s&&(c.filled=s,d=!0),!o&&i&&u.canShowError&&(c.canShowError=!1,d=!0),u.isValid!==i&&(c.isValid=i,d=!0),d?c:u})}updateContextData(){this.context.data.userProvidedInfo.update(t=>({...t,userPreferences:this.checkboxes().filter(r=>"user-preferences"===r.type).map(r=>({name:r.initId,value:r.value}))}))}static#e=this.\u0275fac=function(r){return new(r||e)(P(Je))};static#t=this.\u0275cmp=Ze({type:e,selectors:[["moto-merged-checkboxes"]],decls:4,vars:7,consts:[[3,"changed","checkboxFocus","masterFocus","masterClick","checkboxes","isMaster","masterShape","masterText","provideErrors","footerText","errorText"]],template:function(r,i){if(1&r){const o=Ft();tr(0)(1)(2),j(3,"moto-checkbox-container",0),ge("changed",function(u){return ve(o),_e(i.onChanged(u))})("checkboxFocus",function(u){return ve(o),_e(i.onFocus(u.checkbox,u.index))})("masterFocus",function(){return ve(o),_e(i.onMasterFocus())})("masterClick",function(){return ve(o),_e(i.onMasterClick())}),B()}if(2&r){let o,s,u,c;const d=i.settings(),f=null!==(o=null==d.chargeTerms?null:d.chargeTerms.text)&&void 0!==o?o:null==d||null==d.userPreferences?null:d.userPreferences.text,m=null!==(s=null==d.language||null==d.language.errors?null:d.language.errors.notCheckedCheckboxes)&&void 0!==s?s:"";x(3),Y("checkboxes",i.checkboxes())("isMaster",!0)("masterShape",null!==(u=null==d.master?null:d.master.shape)&&void 0!==u?u:"square")("masterText",null!==(c=null==d.master?null:d.master.text)&&void 0!==c?c:"")("provideErrors",i.showError())("footerText",f)("errorText",m)}},dependencies:[Fz],changeDetection:0})}return e})(),Gs=(()=>{class e{mapApms(t){return t.map(r=>({...r}))}mapPaymentRequest(t,r,i,o){let s=t.details;r.userPreferences?.length&&(s=r.userPreferences.reduce((d,f)=>(d[f.name]=f.value,d),s||{}));const u={amount:t.amount,amountType:this.mapAmountType(t.amountType),tax:t.tax,currency:t.currency,description:t.description?.substring(0,127),details:s?JSON.stringify(s):void 0,type:this.mapOrderType(t.orderType)},c={id:t.userId,email:t.email,phoneNumber:r.phoneNumber??t.phoneNumber,ipAddress:t.ipAddress,deviceInfo:o,billingAddress:t.billingAddress};return{id:t.paymentId,initiator:this.mapInitiatorType(t.initiator)??"Customer",returnUrl:t.returnUrl,webhookUrl:t.webhookUrl,order:u,payer:c,requisites:this.mapRequisites(r.requisites),signature:t.signature,rejectionPreferences:{showResolvingTips:i.isProblemTipsListVisible??!1}}}mapComponents(t,r){return t.map(i=>{switch(i){case"available-card-brands":return{component:HI,visible:r.availableCardBrands};case"no-methods":return{component:YP,visible:r.noMethods};case"card-list":return{component:$_,visible:r.cardList};case"requisites":return{component:jP,visible:r.cardForm};case"phone-number":return{component:BP,visible:r.additionalForm};case"charge-terms":return{component:HP,visible:r.chargeTerms};case"pay-button":return{component:UP,visible:r.payButton};case"apm-list":return{component:$P,visible:r.apmList};case"user-preferences":return{component:zP,visible:r.userPreferences};case"merchant-info":return{component:qP,visible:r.merchantInfo};case"protected-by":return{component:ZP,visible:r.protectedBy};case"master":return{component:KP,visible:r.master}}})}mapInterfaceSettingsToDomain(t){let r=t.languageSettings.code;t.languageSettings.languages[r]||(r="en-US");const i=t.languageSettings.languages[r],o=t.chargeTerms?{text:t.chargeTerms.text?t.chargeTerms.text[r]:void 0,checkboxes:t.chargeTerms.checkboxes?.length?t.chargeTerms.checkboxes.map(d=>d[r]).filter(d=>!!d):void 0,shape:t.chargeTerms.shape}:void 0,s=t.userPreferences?{text:t.userPreferences.text?t.userPreferences.text[r]:void 0,checkboxes:t.userPreferences.checkboxes?.length?t.userPreferences.checkboxes.map(d=>({name:d.name,defaultValue:d.defaultValue,text:d.text[r]})).filter(d=>!!d.text):void 0,shape:t.userPreferences.shape}:void 0,u=t.merchantInfo?{links:t.merchantInfo.links?.length?t.merchantInfo.links.map(d=>({href:d.href,text:d.text[r]})).filter(d=>!!d.text):void 0,text:t.merchantInfo.text?t.merchantInfo.text[r]:void 0}:void 0,c=t.master?{shape:t.master?.shape,text:t.master?.text?t.master.text[r]:void 0}:void 0;return{availableCardBrands:t.availableCardBrands,closePaymentRedirect:t.closePaymentRedirect,isTaxVisible:t.isTaxVisible,components:t.components,events:t.events,isCloseButtonVisible:t.isCloseButtonVisible,isHeaderVisible:t.isHeaderVisible,isProblemTipsListVisible:t.isProblemTipsListVisible,isSignatureRequired:t.isSignatureRequired,language:i??jI,requiredFieldsBehavior:{buttonStateUntilFilled:t.requiredFieldsBehavior.buttonStateUntilFilled,markAsInvalidUntilCorrect:t.requiredFieldsBehavior.markAsInvalidUntilCorrect,showStars:t.requiredFieldsBehavior.showStars},resultComponentsStructure:t.resultComponentsStructure,urls:t.urls,chargeTerms:o,userPreferences:s,merchantInfo:u,apmsCollapse:!!t.apmsCollapse,paymentFlow:{tokenizeCard:t.paymentFlow?.tokenizeCard??!0,type:t.paymentFlow?.type??"default"},master:c,googlePay:{allowedAuthMethods:t.googlePay?.allowedAuthMethods??["CRYPTOGRAM_3DS","PAN_ONLY"],button:t.googlePay?.button??{buttonSizeMode:"fill",buttonRadius:4}}}}mapRequisites(t){switch(t.type){case"apm":const r=t.value;return{type:r.name,paymentToken:r.token};case"existing-card":return{anchor:t.value.rebill,type:"rebill"};case"card":const o=t.value;return{cardHolder:o.holder,cardNumber:o.number,expiration:o.expiration,cvv:o.cvv,type:"card"};default:throw new Error("Unknown requisites type")}}mapInitiatorType(t){if(t){if("customer"===t)return"Customer";if("merchant"===t)return"Merchant";throw new Error("Unknown payment initiator type")}}mapAmountType(t){if(t){if("gross"===t)return"Gross";if("gross-without-gst"===t)return"GrossWithoutGst";if("net"===t)return"Net";throw new Error("Unknown amount type")}}mapOrderType(t){if(t){if("free-trial"===t)return"FreeTrial";if("regular"===t)return"Regular";if("gems"===t)return"Gems";throw new Error("Unknown order type")}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac})}return e})(),XP=(()=>{class e{constructor(t){this.mapper=t}preparePaymentOrError(t){let r=VI(t);return this.validatePayment(r)||(r.userAuthToken&&!/^[^\s]+\s+/i.test(r.userAuthToken)&&(r.userAuthToken=`Bearer ${r.userAuthToken}`),r.currency&&(r.currency=r.currency.toUpperCase()),r.amount=+r.amount,r.tax&&(r.tax=+r.tax),r)}prepareSettingsOrError(t){let r=VI(t);const i=this.validateSettings(r);if(i)return i;const o=LH(jH,r);return this.mapper.mapInterfaceSettingsToDomain(o)}validateModelsCompatibility(t,r){return!t.signature&&r.isSignatureRequired?"not-exist-signature":t.userAuthToken||"default"===r.paymentFlow.type?void 0:"not-exist-auth-for-payment-flow"}validatePayment(t){return t?t.userId?t.paymentId?t.merchantId?null==t.amount||null==t.amount?"not-exist-amount":t.email?t.currency?void 0:"not-exist-currency":"not-exist-email":"not-exist-merchant-id":"not-exist-payment-id":"not-exist-customer-id":"not-exist-payment"}validateSettings(t){return t?t.urls&&t.urls.billingProfiles&&t.urls.processing?t.components?.includes("master")&&t.components?.some(r=>"user-preferences"===r||"charge-terms"===r)?"master-conflict":void 0:"invalid-urls":"not-exist-settings"}static#e=this.\u0275fac=function(r){return new(r||e)(l(Gs))};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac})}return e})();function Lz(e,n){if(1&e){const t=Ft();j(0,"div",2)(1,"i",3),ge("click",function(){return ve(t),_e(q().close())}),ce(2,"close"),B()()}if(2&e){let t;q();const r=wt(0);an("data-tooltip",null!==(t=null==r||null==r.language?null:r.language.close)&&void 0!==t?t:"Close")}}let QP=(()=>{class e{constructor(t){this.context=t}ngOnInit(){this.settings=this.context.data.settings}close(){this.context.events.close.emit()}static#e=this.\u0275fac=function(r){return new(r||e)(P(Je))};static#t=this.\u0275cmp=Ze({type:e,selectors:[["moto-header"]],decls:5,vars:3,consts:[[1,"__ndb-header"],[1,"__ndb-header-title","fz-24","fw-700"],[1,"__ndb-header-close"],[1,"material-icons","pointer",3,"click"]],template:function(r,i){if(1&r&&(tr(0),j(1,"header",0)(2,"h6",1),ce(3),B(),me(4,Lz,3,1,"div",2),B()),2&r){let o,s;const u=$n(i.settings());x(3),nt(" ",null!==(o=null==u||null==u.language?null:u.language.header)&&void 0!==o?o:"Checkout"," "),x(),Ce(null===(s=null==u?null:u.isCloseButtonVisible)||void 0===s||s?4:-1)}},styles:["[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.__ndb-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:28px;border-bottom:1px solid #c9ccd8}@media (max-width: 768px){.__ndb-header[_ngcontent-%COMP%]{padding:20px}}.__ndb-header-close[_ngcontent-%COMP%]{display:flex;align-items:center}"],changeDetection:0})}return e})(),JP=(()=>{class e{constructor(){this.shadow=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Ze({type:e,selectors:[["moto-loader"]],hostVars:1,hostBindings:function(r,i){2&r&&Fh("@ANFade",i.fadeAnimation)},inputs:{shadow:"shadow"},decls:3,vars:5,consts:[[1,"__ndb-loader"],["alt","spinner",1,"__ndb-loader-picture",3,"src"]],template:function(r,i){1&r&&(j(0,"div",0),je(1,"moto-picture",1),Xe(2,"image"),B()),2&r&&(Bn("shadow",i.shadow),x(),Y("src",Rl(2,3,"spinner-small.gif")))},dependencies:[ku,WP],styles:[".__ndb-loader[_ngcontent-%COMP%]{border-radius:4px}.__ndb-loader[_ngcontent-%COMP%]:not(.shadow){height:40px;width:40px}.__ndb-loader.shadow[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;width:100%;background-color:#fff9;display:flex}.__ndb-loader.shadow[_ngcontent-%COMP%] .__ndb-loader-picture[_ngcontent-%COMP%]{margin:auto;height:40px;width:40px}"],data:{animation:[JH({animationName:"ANFade",fromStyles:{opacity:"0"},toStyles:{opacity:"1"}})]},changeDetection:0})}return e})();function Vz(e,n){1&e&&Do(0)}function jz(e,n){1&e&&me(0,Vz,1,0,"ng-container",0),2&e&&Y("ngComponentOutlet",q().$implicit.component)}function Bz(e,n){1&e&&me(0,jz,1,1,"ng-container"),2&e&&Ce(n.$implicit.visible()?0:-1)}function Hz(e,n){1&e&&je(0,"moto-loader")}let Gz=(()=>{class e{constructor(t,r,i){this.context=t,this.mapper=r,this.refreshService=i,this.components=[]}ngOnInit(){this.isLoaderShown=this.context.computed.isLoading,this.refreshService.refreshPaymentSystems(),this.refreshService.refreshExistingCards(),this.components=this.mapper.mapComponents(this.context.data.settings().components,this.context.visibility)}static#e=this.\u0275fac=function(r){return new(r||e)(P(Je),P(Gs),P(G_))};static#t=this.\u0275cmp=Ze({type:e,selectors:[["moto-pay-form"]],decls:3,vars:1,consts:[[4,"ngComponentOutlet"]],template:function(r,i){1&r&&(Hn(0,Bz,1,1,null,null,C4),me(2,Hz,1,0,"moto-loader")),2&r&&(Gn(i.components),x(2),Ce(i.isLoaderShown()?2:-1))},dependencies:[JP,vp],styles:["[_nghost-%COMP%]{display:flex;gap:28px;flex-direction:column}"],changeDetection:0})}return e})();const eA={message:"You cannot make a payment!",errors:{"not-exist-payment":'Input parameter "payment" is required in the payment model',"not-exist-customer-id":'The field "userId" is required in the payment model',"not-exist-payment-id":"The field paymentId is required in the payment model","not-exist-settings":'Input parameter "settings" is required in the payment model',"not-exist-signature":'The field "signature" is configured as required in the payment model',"not-exist-amount":'The field "amount" is required in the payment model',"not-exist-currency":'The field "currency" is required in the payment model',"not-exist-email":'The field "email" is required in the payment model',"not-exist-merchant-id":'The field "merchant id" is required in the payment model',"invalid-urls":'The field "urls" is required and processing/billingProfiles must to be set',"not-exist-auth-for-payment-flow":'The field "userAuthToken" is required for selected payment flow',"master-conflict":'Components cannot contain a "master" together with "user-preferences"/"charge-terms" at the same time'}};let Uz=(()=>{class e{constructor(t){this.context=t}ngOnInit(){const t=this.context.data.state().payload;this.error=eA.errors[t.error],this.message=eA.message}static#e=this.\u0275fac=function(r){return new(r||e)(P(Je))};static#t=this.\u0275cmp=Ze({type:e,selectors:[["moto-invalid-pay-form"]],decls:7,vars:2,consts:[[1,"__ndb-error-content"],[1,"material-icons-round","__ndb-error-content-icon"],[1,"__ndb-error-content-header","fz-24","fw-700"],[1,"__ndb-error-content-description","fz-14","fw-500","font-center"]],template:function(r,i){1&r&&(j(0,"div",0)(1,"i",1),ce(2,"cancel"),B(),j(3,"h6",2),ce(4),B(),j(5,"p",3),ce(6),B()()),2&r&&(x(4),Kt(i.error),x(2),nt(" ",i.message," "))},styles:[".__ndb-error-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:10px;padding:28px}@media (max-width: 768px){.__ndb-error-content[_ngcontent-%COMP%]{padding:14px 20px}}.__ndb-error-content-icon[_ngcontent-%COMP%]{font-size:95px;color:#000;margin-bottom:10px}.__ndb-error-content-header[_ngcontent-%COMP%], .__ndb-error-content-description[_ngcontent-%COMP%]{width:100%;text-align:center}"],changeDetection:0})}return e})(),$z=(()=>{class e{constructor(t,r,i,o){this.context=t,this.processing=r,this.sessionStorage=i,this.windowService=o}ngOnInit(){this.settings=this.context.data.settings,this.context.data.state().payload.observable.subscribe({next:r=>this.afterPay(r),error:r=>this.showResult(void 0,r)})}afterPay(t){"needAction"===t.payment?.state?(this.handleConfirmation(t.action),this.waitingPaymentCompleted(t)):(this.showResult(t),this.windowService.closeWindow())}handleConfirmation(t){switch(t.name){case"3ds":this.windowService.threeDsRedirect(t.data);break;case"redirect":this.windowService.redirect(t.data);break;default:throw new Error("Unexpected action name")}}waitingPaymentCompleted(t){(function $G(e,n,t){return e.pipe(Tt(r=>{if(n(r))return r;throw new Error(g3)}),function UG(e=1/0){let n;n=e&&"object"==typeof e?e:{count:e};const{count:t=1/0,delay:r,resetOnSuccess:i=!1}=n;return t<=0?Uo:mn((o,s)=>{let c,u=0;const d=()=>{let f=!1;c=o.subscribe(Qt(s,m=>{i&&(u=0),s.next(m)},void 0,m=>{if(u++<t){const g=()=>{c?(c.unsubscribe(),c=null,d()):f=!0};if(null!=r){const y="number"==typeof r?p3(r):Jr(r(m,u)),_=Qt(s,()=>{_.unsubscribe(),g()},()=>{s.complete()});y.subscribe(_)}else g()}else s.error(m)})),f&&(c.unsubscribe(),c=null,d())};d()})}({delay:r=>r.message==g3?p3(t):F_(()=>r)}))})(this.processing.getPaymentInfo(t.payment.paymentId),i=>"needAction"!=i.payment.state,1500).subscribe({next:i=>this.showResult(i),error:i=>{this.showResult(void 0,i),this.context.events.error.emit(i)}})}showResult(t,r){const i=this.settings();i.closePaymentRedirect&&this.windowService.closeWindow(),i.apmsCollapse&&t&&"rejected"===t.payment.state&&"card"===t.payment.info.paymentType&&this.sessionStorage.setItem(rr.keys.apmsCollapse,!1),this.context.data.state.set({type:"result",payload:{result:t,error:r}}),t&&this.context.events.paid.emit(t)}static#e=this.\u0275fac=function(r){return new(r||e)(P(Je),P(ju),P(hm),P(fm))};static#t=this.\u0275cmp=Ze({type:e,selectors:[["moto-processing"]],decls:12,vars:1,consts:[[1,"waiting"],[1,"section"],[1,"waiting__title"],[1,"section__content","__ndb-spinner-container"],[1,"spinner"],[1,"lds-ring"],[1,"spinner__extra"]],template:function(r,i){1&r&&(j(0,"div",0)(1,"div",1)(2,"h2",2),ce(3),B(),j(4,"div",3)(5,"div",4)(6,"div",5),je(7,"div")(8,"div")(9,"div")(10,"div"),B(),je(11,"div",6),B()()()()),2&r&&(x(3),Kt(i.settings().language.paymentProcessing))},styles:[".waiting__title[_ngcontent-%COMP%]{position:relative;z-index:101;font-family:Poppins,Helvetica,Arial,sans-serif;color:#29304d;font-size:16px;margin:0;text-align:center;transform:translateY(108px)}.__ndb__moto-modal-backdrop[_ngcontent-%COMP%]{background-color:#e5e5e5!important}.__ndb__moto-modal[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{margin:0}.section__content[_ngcontent-%COMP%]{margin:0 auto}.spinner[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;height:330px}.spinner_small[_ngcontent-%COMP%]{height:70px}.spinner_extra[_ngcontent-%COMP%]{height:550px}.lds-ring[_ngcontent-%COMP%]{display:inline-block;position:relative;width:80px;height:80px}.lds-ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{box-sizing:border-box;display:block;position:absolute;width:64px;height:64px;margin:8px;border:8px solid #6936d3;border-radius:50%;animation:_ngcontent-%COMP%_lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:#6936d3 transparent transparent transparent}.lds-ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1){animation-delay:-.45s}.lds-ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){animation-delay:-.3s}.lds-ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3){animation-delay:-.15s}@keyframes _ngcontent-%COMP%_lds-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"],changeDetection:0})}return e})();function zz(e,n){1&e&&Do(0)}function qz(e,n){1&e&&me(0,zz,1,0,"ng-container",5),2&e&&Y("ngComponentOutlet",q().$implicit.component)}function Wz(e,n){1&e&&me(0,qz,1,1,"ng-container"),2&e&&Ce(n.$implicit.visible()?0:-1)}function Zz(e,n){if(1&e&&(j(0,"p",3),ce(1),B()),2&e){const t=q();x(),nt(" ",t.resultModel.description," ")}}function Yz(e,n){if(1&e&&(j(0,"li",6)(1,"p",7),ce(2),B()()),2&e){const t=n.$implicit;x(2),nt(" ",t," ")}}function Kz(e,n){if(1&e&&(j(0,"ul",4),Hn(1,Yz,3,1,"li",6,Zr),B()),2&e){const t=q();x(),Gn(null==t.paymentResult.payment.rejectionDetails?null:t.paymentResult.payment.rejectionDetails.problemSolvingTips)}}function Xz(e,n){1&e&&Do(0)}function Qz(e,n){1&e&&me(0,Xz,1,0,"ng-container",5),2&e&&Y("ngComponentOutlet",q().$implicit.component)}function Jz(e,n){1&e&&me(0,Qz,1,1,"ng-container"),2&e&&Ce(n.$implicit.visible()?0:-1)}let eq=(()=>{class e{constructor(t,r){this.context=t,this.mapper=r,this.aboveComponents=[],this.belowComponents=[]}ngOnInit(){const t=this.context.data.state().payload;this.paymentResult=t.result,this.error=t.error,this.settings=this.context.data.settings,this.resultModel=this.getResultModel(),this.initAdditionalComponents()}getResultModel(){const t=this.settings().language;if(!this.paymentResult||this.error)return{icon:"cancel",title:t.paymentResult.failure.main,description:t.paymentResult.failure.paymentFailed};switch(this.paymentResult.payment.state){case"completed":return{icon:"check_circle",description:void 0,title:t.paymentResult.success};case"rejected":return{icon:"cancel",title:t.paymentResult.failure.main,description:t.paymentResult.failure.paymentFailed};default:throw new Error("unknown result")}}initAdditionalComponents(){const t=this.settings().resultComponentsStructure;t.aboveResult.length&&(this.aboveComponents=this.mapper.mapComponents(t.aboveResult,this.context.visibility)),t.belowResult.length&&(this.belowComponents=this.mapper.mapComponents(t.belowResult,this.context.visibility))}static#e=this.\u0275fac=function(r){return new(r||e)(P(Je),P(Gs))};static#t=this.\u0275cmp=Ze({type:e,selectors:[["moto-result"]],decls:11,vars:4,consts:[[1,"__ndb-result"],[1,"material-icons-round","__ndb-result-icon"],[1,"__ndb-result-header","fz-24","fw-700"],[1,"__ndb-result-description","fz-14","fw-500","font-center"],[1,"__ndb-result-tips"],[4,"ngComponentOutlet"],[1,"__ndb-result-tips-tip"],[1,"__ndb-result-tips-tip-text","fz-11","fw-500","font-center"]],template:function(r,i){1&r&&(Hn(0,Wz,1,1,null,null,Zr),j(2,"div",0)(3,"i",1),ce(4),B(),j(5,"h6",2),ce(6),B(),me(7,Zz,2,1,"p",3)(8,Kz,3,0,"ul",4),B(),Hn(9,Jz,1,1,null,null,Zr)),2&r&&(Gn(i.aboveComponents),x(4),Kt(i.resultModel.icon),x(2),Kt(i.resultModel.title),x(),Ce(i.resultModel.description?7:-1),x(),Ce(i.paymentResult&&i.settings().isProblemTipsListVisible&&null!=i.paymentResult.payment.rejectionDetails&&null!=i.paymentResult.payment.rejectionDetails.problemSolvingTips&&i.paymentResult.payment.rejectionDetails.problemSolvingTips.length?8:-1),x(),Gn(i.belowComponents))},dependencies:[vp],styles:["[_nghost-%COMP%]{display:flex;gap:28px;flex-direction:column}.__ndb-result[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:10px}@media (max-width: 768px){.__ndb-result[_ngcontent-%COMP%]{padding:14px 20px}}.__ndb-result-icon[_ngcontent-%COMP%]{font-size:95px;color:#000;margin-bottom:10px}.__ndb-result-header[_ngcontent-%COMP%], .__ndb-result-description[_ngcontent-%COMP%]{width:100%;text-align:center}.__ndb-result-tips[_ngcontent-%COMP%]{gap:5px;padding-inline-start:0px}.__ndb-result-tips-tip[_ngcontent-%COMP%]{list-style-type:disc}.__ndb-result-tips-tip-text[_ngcontent-%COMP%]{width:100%;text-align:left}"],changeDetection:0})}return e})();function tq(e,n){1&e&&Do(0)}function nq(e,n){1&e&&me(0,tq,1,0,"ng-container",2),2&e&&Y("ngComponentOutlet",q().$implicit.component)}function rq(e,n){1&e&&me(0,nq,1,1,"ng-container"),2&e&&Ce(n.$implicit.visible()?0:-1)}function iq(e,n){1&e&&Do(0)}function oq(e,n){1&e&&me(0,iq,1,0,"ng-container",2),2&e&&Y("ngComponentOutlet",q().$implicit.component)}function sq(e,n){1&e&&me(0,oq,1,1,"ng-container"),2&e&&Ce(n.$implicit.visible()?0:-1)}let aq=(()=>{class e{constructor(t,r){this.context=t,this.mapper=r,this.aboveComponents=[],this.belowComponents=[],this.confirmed=we(!1)}ngOnInit(){this.settings=this.context.data.settings,this.initAdditionalComponents(),setTimeout(()=>{this.onClick()},6e4)}onClick(){this.confirmed()||(this.context.data.state().payload.resolvePromise(),this.confirmed.set(!0))}initAdditionalComponents(){const t=this.settings().resultComponentsStructure;t.aboveResult.length&&(this.aboveComponents=this.mapper.mapComponents(t.aboveResult,this.context.visibility)),t.belowResult.length&&(this.belowComponents=this.mapper.mapComponents(t.belowResult,this.context.visibility))}static#e=this.\u0275fac=function(r){return new(r||e)(P(Je),P(Gs))};static#t=this.\u0275cmp=Ze({type:e,selectors:[["moto-confirmation"]],decls:7,vars:2,consts:[[1,"__ndb-confirmation"],["id","moto-confirmation",1,"__ndb-pay-btn","button-submit",3,"click","disabled"],[4,"ngComponentOutlet"]],template:function(r,i){1&r&&(Hn(0,rq,1,1,null,null,Zr),j(2,"div",0)(3,"button",1),ge("click",function(){return i.onClick()}),ce(4),B()(),Hn(5,sq,1,1,null,null,Zr)),2&r&&(Gn(i.aboveComponents),x(3),Y("disabled",i.confirmed()),x(),Kt(i.settings().language.confirmPayment),x(),Gn(i.belowComponents))},dependencies:[vp],styles:[".__ndb-confirmation[_ngcontent-%COMP%]{padding:56px 0;text-align:center}"],changeDetection:0})}return e})();function uq(e,n){1&e&&je(0,"moto-header")}function cq(e,n){1&e&&je(0,"moto-pay-form")}function lq(e,n){1&e&&je(0,"moto-invalid-pay-form")}function dq(e,n){1&e&&je(0,"moto-processing")}function fq(e,n){1&e&&je(0,"moto-result")}function hq(e,n){1&e&&je(0,"moto-confirmation")}function pq(e,n){}let mq=(()=>{class e{constructor(t,r,i,o){this.context=t,this.dataHandler=r,this.sessionStorage=i,this.toastr=o,this.state=this.context.data.state,this.closeEvent=t.events.close.emitter,this.paidEvent=t.events.paid.emitter,this.analyticsEvent=t.events.analytics.emitter,this.error=t.events.error.emitter,Fv(()=>{this.context.computed.isLoading()?this.context.events.analytics.emit(new Qe("init-start")):this.context.events.analytics.emit(new Qe("loading-finish"))})}ngOnInit(){this.closeEvent=this.context.events.close.emitter,this.analyticsEvent=this.context.events.analytics.emitter,this.paidEvent=this.context.events.paid.emitter,this.error=this.context.events.error.emitter,RH().subscribe(t=>{this.context.data.deviceInfo.set(t)}),this.settingsSignal=Se(()=>this.context.data.settings())}ngOnChanges(t){if(t.payment){const r=this.dataHandler.preparePaymentOrError(t.payment.currentValue);if("string"==typeof r)return void this.state.set({type:"invalid",payload:{error:r}});this.context.data.payment.set(r)}if(t.settings){const r=this.dataHandler.prepareSettingsOrError(t.settings.currentValue);if("string"==typeof r)return void this.state.set({type:"invalid",payload:{error:r}});this.context.data.settings.set(r)}this.validate(!!t.settings||!!t.payment)}ngOnDestroy(){this.context.data.settings()?.apmsCollapse&&this.sessionStorage.removeItem(rr.keys.apmsCollapse);const t=this.toastr.toastrConfig;setTimeout(()=>{if(document.querySelector("moto-payment-form"))return;this.toastr?.clear();const i=document.getElementById("toast-container");i&&(i.innerHTML="")},(t?.timeOut??5e3)+(t?.extendedTimeOut??1e3)+500)}validate(t){const r=this.context.data.settings(),i=this.context.data.payment(),o=this.dataHandler.validateModelsCompatibility(i,r);o?this.state.set({type:"invalid",payload:{error:o}}):(this.applySettings(),this.context.callbacks.createInvoice=this.createInvoice?s=>this.createInvoice(s):void 0,this.context.callbacks.makePayment=this.makePayment?s=>this.makePayment(s):void 0,this.context.data.settings()?.requiredFieldsBehavior?.markAsInvalidUntilCorrect?this.context.updateCanShowError(!0):this.context.updateCanShowError(!1),t&&this.context.data.userProvidedInfo.set({}),this.state.set({type:"correct",payload:{}}))}applySettings(){const t=this.context.data.settings(),r=t.components,i=this.context.componentsStates;(!t.availableCardBrands.length||!r.some(o=>"available-card-brands"===o))&&i.availableCardBrands.update(o=>({...o,enabled:!1,isRequired:!1})),(!t.chargeTerms?.checkboxes?.length&&!t.chargeTerms?.text||!r.some(o=>"charge-terms"===o))&&i.chargeTerms.update(o=>({...o,enabled:!1,isRequired:!1})),(!t.userPreferences?.checkboxes?.length&&!t.userPreferences?.text||!r.some(o=>"user-preferences"===o))&&i.userPreferences.update(o=>({...o,enabled:!1,isRequired:!1})),r.some(o=>"phone-number"===o)||i.additionalForm.update(o=>({...o,enabled:!1,isRequired:!1})),(!t.merchantInfo?.text&&!t.merchantInfo?.links?.length||!r.some(o=>"merchant-info"===o))&&i.merchantInfo.update(o=>({...o,enabled:!1,isRequired:!1})),r.some(o=>"apm-list"===o)||i.apmList.update(o=>({...o,enabled:!1,isRequired:!1})),r.some(o=>"requisites"===o)||i.cardForm.update(o=>({...o,enabled:!1,isRequired:!1})),r.some(o=>"card-list"===o)||i.cardList.update(o=>({...o,enabled:!1,isRequired:!1})),r.some(o=>"pay-button"===o)||i.payButton.update(o=>({...o,enabled:!1,isRequired:!1})),(!t.availableCardBrands.length||!r.some(o=>"protected-by"===o))&&i.protectedBy.update(o=>({...o,enabled:!1,isRequired:!1})),r.some(o=>"master"===o)?(i.chargeTerms.update(o=>({...o,enabled:!1,isRequired:!1})),i.userPreferences.update(o=>({...o,enabled:!1,isRequired:!1}))):i.master.update(o=>({...o,enabled:!1,isRequired:!1})),this.context.events.analytics.emitEnabled=t.events.analytics.required,this.context.events.analytics.optionalEmitEnabled=t.events.analytics.optional,this.context.events.error.emitEnabled=t.events.error,t.apmsCollapse&&this.sessionStorage.getOrSetItemSignal(rr.keys.apmsCollapse,!0)}static#e=this.\u0275fac=function(r){return new(r||e)(P(Je),P(XP),P(hm),P(od))};static#t=this.\u0275cmp=Ze({type:e,selectors:[["moto-payment-form"]],inputs:{payment:"payment",settings:"settings",createInvoice:"createInvoice",makePayment:"makePayment"},outputs:{closeEvent:"close",paidEvent:"paid",analyticsEvent:"analyticsTracked",error:"error"},features:[Gr],decls:10,vars:2,consts:[[1,"__ndb-wrapper"],[1,"__ndb-wrapper-content"],[1,"__ndb-wrapper-content-main"]],template:function(r,i){if(1&r&&(j(0,"div",0)(1,"div",1),me(2,uq,1,0,"moto-header"),j(3,"div",2),me(4,cq,1,0,"moto-pay-form")(5,lq,1,0,"moto-invalid-pay-form")(6,dq,1,0,"moto-processing")(7,fq,1,0,"moto-result")(8,hq,1,0,"moto-confirmation")(9,pq,0,0),B()()()),2&r){let o,s;x(2),Ce(null===(o=null==(o=i.settingsSignal())?null:o.isHeaderVisible)||void 0===o||o?2:-1),x(2),Ce("correct"===(s=i.state().type)?4:"invalid"===s?5:"payLoading"===s?6:"result"===s?7:"confirmation"===s?8:"empty"===s?9:-1)}},dependencies:[QP,Gz,Uz,$z,eq,aq],styles:["[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.__ndb-wrapper[_ngcontent-%COMP%]{max-width:560px;width:100%;margin:0 auto;transition:max-width .3s cubic-bezier(.25,.1,.25,1)}@media (max-width: 768px){.__ndb-wrapper[_ngcontent-%COMP%]{max-width:318px}}.__ndb-wrapper-content[_ngcontent-%COMP%]{margin:0 auto;position:relative;border:1px solid #c9ccd8;box-shadow:inset 0 -1px #29304d1a;border-radius:4px}.__ndb-wrapper-content-main[_ngcontent-%COMP%]{padding:28px;gap:40px;flex-direction:column;display:flex}"],changeDetection:0})}return e})(),tA=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=$t({type:e});static#n=this.\u0275inj=Et({})}return e})();function nA(e){return new k(3e3,!1)}function Fo(e){switch(e.length){case 0:return new ed;case 1:return e[0];default:return new GI(e)}}function rA(e,n,t=new Map,r=new Map){const i=[],o=[];let s=-1,u=null;if(n.forEach(c=>{const d=c.get("offset"),f=d==s,m=f&&u||new Map;c.forEach((g,y)=>{let _=y,C=g;if("offset"!==y)switch(_=e.normalizePropertyName(_,i),C){case"!":C=t.get(y);break;case Qi:C=r.get(y);break;default:C=e.normalizeStyleValue(y,_,C,i)}m.set(_,C)}),f||o.push(m),u=m,s=d}),i.length)throw function Vq(){return new k(3502,!1)}();return o}function hb(e,n,t,r){switch(n){case"start":e.onStart(()=>r(t&&pb(t,"start",e)));break;case"done":e.onDone(()=>r(t&&pb(t,"done",e)));break;case"destroy":e.onDestroy(()=>r(t&&pb(t,"destroy",e)))}}function pb(e,n,t){const o=mb(e.element,e.triggerName,e.fromState,e.toState,n||e.phaseName,t.totalTime??e.totalTime,!!t.disabled),s=e._data;return null!=s&&(o._data=s),o}function mb(e,n,t,r,i="",o=0,s){return{element:e,triggerName:n,fromState:t,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function ur(e,n,t){let r=e.get(n);return r||e.set(n,r=t),r}function iA(e){const n=e.indexOf(":");return[e.substring(1,n),e.slice(n+1)]}const Kq=typeof document>"u"?null:document.documentElement;function gb(e){const n=e.parentNode||e.host||null;return n===Kq?null:n}let Us=null,oA=!1;function sA(e,n){for(;n;){if(n===e)return!0;n=gb(n)}return!1}function aA(e,n,t){if(t)return Array.from(e.querySelectorAll(n));const r=e.querySelector(n);return r?[r]:[]}let yb=(()=>{class e{validateStyleProperty(t){return function Qq(e){Us||(Us=function Jq(){return typeof document<"u"?document.body:null}()||{},oA=!!Us.style&&"WebkitAppearance"in Us.style);let n=!0;return Us.style&&!function Xq(e){return"ebkit"==e.substring(1,6)}(e)&&(n=e in Us.style,!n&&oA&&(n="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in Us.style)),n}(t)}containsElement(t,r){return sA(t,r)}getParentElement(t){return gb(t)}query(t,r,i){return aA(t,r,i)}computeStyle(t,r,i){return i||""}animate(t,r,i,o,s,u=[],c){return new ed(i,o)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac})}return e})();class vb{static#e=this.NOOP=new yb}class _b{}const tW=1e3,bb="ng-enter",pm="ng-leave",mm="ng-trigger",gm=".ng-trigger",cA="ng-animating",wb=".ng-animating";function no(e){if("number"==typeof e)return e;const n=e.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:Cb(parseFloat(n[1]),n[2])}function Cb(e,n){return"s"===n?e*tW:e}function ym(e,n,t){return e.hasOwnProperty("duration")?e:function rW(e,n,t){let i,o=0,s="";if("string"==typeof e){const u=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===u)return n.push(nA()),{duration:0,delay:0,easing:""};i=Cb(parseFloat(u[1]),u[2]);const c=u[3];null!=c&&(o=Cb(parseFloat(c),u[4]));const d=u[5];d&&(s=d)}else i=e;if(!t){let u=!1,c=n.length;i<0&&(n.push(function gq(){return new k(3100,!1)}()),u=!0),o<0&&(n.push(function yq(){return new k(3101,!1)}()),u=!0),u&&n.splice(c,0,nA())}return{duration:i,delay:o,easing:s}}(e,n,t)}function Pi(e,n,t){n.forEach((r,i)=>{const o=Db(i);t&&!t.has(i)&&t.set(i,e.style[o]),e.style[o]=r})}function $s(e,n){n.forEach((t,r)=>{const i=Db(r);e.style[i]=""})}function gd(e){return Array.isArray(e)?1==e.length?e[0]:function zH(e,n=null){return{type:he.Sequence,steps:e,options:n}}(e):e}const Eb=new RegExp("{{\\s*(.+?)\\s*}}","g");function dA(e){let n=[];if("string"==typeof e){let t;for(;t=Eb.exec(e);)n.push(t[1]);Eb.lastIndex=0}return n}function yd(e,n,t){const r=`${e}`,i=r.replace(Eb,(o,s)=>{let u=n[s];return null==u&&(t.push(function _q(){return new k(3003,!1)}()),u=""),u.toString()});return i==r?e:i}const sW=/-+([a-z0-9])/g;function Db(e){return e.replace(sW,(...n)=>n[1].toUpperCase())}function cr(e,n,t){switch(n.type){case he.Trigger:return e.visitTrigger(n,t);case he.State:return e.visitState(n,t);case he.Transition:return e.visitTransition(n,t);case he.Sequence:return e.visitSequence(n,t);case he.Group:return e.visitGroup(n,t);case he.Animate:return e.visitAnimate(n,t);case he.Keyframes:return e.visitKeyframes(n,t);case he.Style:return e.visitStyle(n,t);case he.Reference:return e.visitReference(n,t);case he.AnimateChild:return e.visitAnimateChild(n,t);case he.AnimateRef:return e.visitAnimateRef(n,t);case he.Query:return e.visitQuery(n,t);case he.Stagger:return e.visitStagger(n,t);default:throw function bq(){return new k(3004,!1)}()}}function Sb(e,n){return window.getComputedStyle(e)[n]}const cW=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class fA extends _b{normalizePropertyName(n,t){return Db(n)}normalizeStyleValue(n,t,r,i){let o="";const s=r.toString().trim();if(cW.has(t)&&0!==r&&"0"!==r)if("number"==typeof r)o="px";else{const u=r.match(/^[+-]?[\d\.]+([a-z]*)$/);u&&0==u[1].length&&i.push(function wq(){return new k(3005,!1)}())}return s+o}}const vm="*";const _m=new Set(["true","1"]),bm=new Set(["false","0"]);function hA(e,n){const t=_m.has(e)||bm.has(e),r=_m.has(n)||bm.has(n);return(i,o)=>{let s=e==vm||e==i,u=n==vm||n==o;return!s&&t&&"boolean"==typeof i&&(s=i?_m.has(e):bm.has(e)),!u&&r&&"boolean"==typeof o&&(u=o?_m.has(n):bm.has(n)),s&&u}}const hW=new RegExp("s*:selfs*,?","g");function Tb(e,n,t,r){return new pW(e).build(n,t,r)}class pW{constructor(n){this._driver=n}build(n,t,r){const i=new yW(t);return this._resetContextStyleTimingState(i),cr(this,gd(n),i)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,t){let r=t.queryCount=0,i=t.depCount=0;const o=[],s=[];return"@"==n.name.charAt(0)&&t.errors.push(function Cq(){return new k(3006,!1)}()),n.definitions.forEach(u=>{if(this._resetContextStyleTimingState(t),u.type==he.State){const c=u,d=c.name;d.toString().split(/\s*,\s*/).forEach(f=>{c.name=f,o.push(this.visitState(c,t))}),c.name=d}else if(u.type==he.Transition){const c=this.visitTransition(u,t);r+=c.queryCount,i+=c.depCount,s.push(c)}else t.errors.push(function Eq(){return new k(3007,!1)}())}),{type:he.Trigger,name:n.name,states:o,transitions:s,queryCount:r,depCount:i,options:null}}visitState(n,t){const r=this.visitStyle(n.styles,t),i=n.options&&n.options.params||null;if(r.containsDynamicStyles){const o=new Set,s=i||{};r.styles.forEach(u=>{u instanceof Map&&u.forEach(c=>{dA(c).forEach(d=>{s.hasOwnProperty(d)||o.add(d)})})}),o.size&&t.errors.push(function Dq(){return new k(3008,!1)}(0,o.values()))}return{type:he.State,name:n.name,style:r,options:i?{params:i}:null}}visitTransition(n,t){t.queryCount=0,t.depCount=0;const r=cr(this,gd(n.animation),t),i=function lW(e,n){const t=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(r=>function dW(e,n,t){if(":"==e[0]){const c=function fW(e,n){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,r)=>parseFloat(r)>parseFloat(t);case":decrement":return(t,r)=>parseFloat(r)<parseFloat(t);default:return n.push(function Oq(){return new k(3016,!1)}()),"* => *"}}(e,t);if("function"==typeof c)return void n.push(c);e=c}const r=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return t.push(function Nq(){return new k(3015,!1)}()),n;const i=r[1],o=r[2],s=r[3];n.push(hA(i,s)),"<"==o[0]&&(i!=vm||s!=vm)&&n.push(hA(s,i))}(r,t,n)):t.push(e),t}(n.expr,t.errors);return{type:he.Transition,matchers:i,animation:r,queryCount:t.queryCount,depCount:t.depCount,options:zs(n.options)}}visitSequence(n,t){return{type:he.Sequence,steps:n.steps.map(r=>cr(this,r,t)),options:zs(n.options)}}visitGroup(n,t){const r=t.currentTime;let i=0;const o=n.steps.map(s=>{t.currentTime=r;const u=cr(this,s,t);return i=Math.max(i,t.currentTime),u});return t.currentTime=i,{type:he.Group,steps:o,options:zs(n.options)}}visitAnimate(n,t){const r=function _W(e,n){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e)return Mb(ym(e,n).duration,0,"");const t=e;if(t.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=Mb(0,0,"");return o.dynamic=!0,o.strValue=t,o}const i=ym(t,n);return Mb(i.duration,i.delay,i.easing)}(n.timings,t.errors);t.currentAnimateTimings=r;let i,o=n.styles?n.styles:Dt({});if(o.type==he.Keyframes)i=this.visitKeyframes(o,t);else{let s=n.styles,u=!1;if(!s){u=!0;const d={};r.easing&&(d.easing=r.easing),s=Dt(d)}t.currentTime+=r.duration+r.delay;const c=this.visitStyle(s,t);c.isEmptyStep=u,i=c}return t.currentAnimateTimings=null,{type:he.Animate,timings:r,style:i,options:null}}visitStyle(n,t){const r=this._makeStyleAst(n,t);return this._validateStyleAst(r,t),r}_makeStyleAst(n,t){const r=[],i=Array.isArray(n.styles)?n.styles:[n.styles];for(let u of i)"string"==typeof u?u===Qi?r.push(u):t.errors.push(new k(3002,!1)):r.push(new Map(Object.entries(u)));let o=!1,s=null;return r.forEach(u=>{if(u instanceof Map&&(u.has("easing")&&(s=u.get("easing"),u.delete("easing")),!o))for(let c of u.values())if(c.toString().indexOf("{{")>=0){o=!0;break}}),{type:he.Style,styles:r,easing:s,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,t){const r=t.currentAnimateTimings;let i=t.currentTime,o=t.currentTime;r&&o>0&&(o-=r.duration+r.delay),n.styles.forEach(s=>{"string"!=typeof s&&s.forEach((u,c)=>{const d=t.collectedStyles.get(t.currentQuerySelector),f=d.get(c);let m=!0;f&&(o!=i&&o>=f.startTime&&i<=f.endTime&&(t.errors.push(function Tq(){return new k(3010,!1)}()),m=!1),o=f.startTime),m&&d.set(c,{startTime:o,endTime:i}),t.options&&function oW(e,n,t){const r=n.params||{},i=dA(e);i.length&&i.forEach(o=>{r.hasOwnProperty(o)||t.push(function vq(){return new k(3001,!1)}())})}(u,t.options,t.errors)})})}visitKeyframes(n,t){const r={type:he.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function Mq(){return new k(3011,!1)}()),r;let o=0;const s=[];let u=!1,c=!1,d=0;const f=n.steps.map(I=>{const T=this._makeStyleAst(I,t);let R=null!=T.offset?T.offset:function vW(e){if("string"==typeof e)return null;let n=null;if(Array.isArray(e))e.forEach(t=>{if(t instanceof Map&&t.has("offset")){const r=t;n=parseFloat(r.get("offset")),r.delete("offset")}});else if(e instanceof Map&&e.has("offset")){const t=e;n=parseFloat(t.get("offset")),t.delete("offset")}return n}(T.styles),L=0;return null!=R&&(o++,L=T.offset=R),c=c||L<0||L>1,u=u||L<d,d=L,s.push(L),T});c&&t.errors.push(function Iq(){return new k(3012,!1)}()),u&&t.errors.push(function Pq(){return new k(3200,!1)}());const m=n.steps.length;let g=0;o>0&&o<m?t.errors.push(function Aq(){return new k(3202,!1)}()):0==o&&(g=1/(m-1));const y=m-1,_=t.currentTime,C=t.currentAnimateTimings,S=C.duration;return f.forEach((I,T)=>{const R=g>0?T==y?1:g*T:s[T],L=R*S;t.currentTime=_+C.delay+L,C.duration=L,this._validateStyleAst(I,t),I.offset=R,r.styles.push(I)}),r}visitReference(n,t){return{type:he.Reference,animation:cr(this,gd(n.animation),t),options:zs(n.options)}}visitAnimateChild(n,t){return t.depCount++,{type:he.AnimateChild,options:zs(n.options)}}visitAnimateRef(n,t){return{type:he.AnimateRef,animation:this.visitReference(n.animation,t),options:zs(n.options)}}visitQuery(n,t){const r=t.currentQuerySelector,i=n.options||{};t.queryCount++,t.currentQuery=n;const[o,s]=function mW(e){const n=!!e.split(/\s*,\s*/).find(t=>":self"==t);return n&&(e=e.replace(hW,"")),e=e.replace(/@\*/g,gm).replace(/@\w+/g,t=>gm+"-"+t.slice(1)).replace(/:animating/g,wb),[e,n]}(n.selector);t.currentQuerySelector=r.length?r+" "+o:o,ur(t.collectedStyles,t.currentQuerySelector,new Map);const u=cr(this,gd(n.animation),t);return t.currentQuery=null,t.currentQuerySelector=r,{type:he.Query,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:u,originalSelector:n.selector,options:zs(n.options)}}visitStagger(n,t){t.currentQuery||t.errors.push(function xq(){return new k(3013,!1)}());const r="full"===n.timings?{duration:0,delay:0,easing:"full"}:ym(n.timings,t.errors,!0);return{type:he.Stagger,animation:cr(this,gd(n.animation),t),timings:r,options:null}}}class yW{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function zs(e){return e?(e={...e}).params&&(e.params=function gW(e){return e?{...e}:null}(e.params)):e={},e}function Mb(e,n,t){return{duration:e,delay:n,easing:t}}function Ib(e,n,t,r,i,o,s=null,u=!1){return{type:1,element:e,keyframes:n,preStyleProps:t,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:u}}class wm{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,t){let r=this._map.get(n);r||this._map.set(n,r=[]),r.push(...t)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const CW=new RegExp(":enter","g"),DW=new RegExp(":leave","g");function Pb(e,n,t,r,i,o=new Map,s=new Map,u,c,d=[]){return(new SW).buildKeyframes(e,n,t,r,i,o,s,u,c,d)}class SW{buildKeyframes(n,t,r,i,o,s,u,c,d,f=[]){d=d||new wm;const m=new Ab(n,t,d,i,o,f,[]);m.options=c;const g=c.delay?no(c.delay):0;m.currentTimeline.delayNextStep(g),m.currentTimeline.setStyles([s],null,m.errors,c),cr(this,r,m);const y=m.timelines.filter(_=>_.containsAnimation());if(y.length&&u.size){let _;for(let C=y.length-1;C>=0;C--){const S=y[C];if(S.element===t){_=S;break}}_&&!_.allowOnlyTimelineStyles()&&_.setStyles([u],null,m.errors,c)}return y.length?y.map(_=>_.buildKeyframes()):[Ib(t,[],[],[],0,g,"",!1)]}visitTrigger(n,t){}visitState(n,t){}visitTransition(n,t){}visitAnimateChild(n,t){const r=t.subInstructions.get(t.element);if(r){const i=t.createSubContext(n.options),o=t.currentTimeline.currentTime,s=this._visitSubInstructions(r,i,i.options);o!=s&&t.transformIntoNewTimeline(s)}t.previousNode=n}visitAnimateRef(n,t){const r=t.createSubContext(n.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],t,r),this.visitReference(n.animation,r),t.transformIntoNewTimeline(r.currentTimeline.currentTime),t.previousNode=n}_applyAnimationRefDelays(n,t,r){for(const i of n){const o=i?.delay;if(o){const s="number"==typeof o?o:no(yd(o,i?.params??{},t.errors));r.delayNextStep(s)}}}_visitSubInstructions(n,t,r){let o=t.currentTimeline.currentTime;const s=null!=r.duration?no(r.duration):null,u=null!=r.delay?no(r.delay):null;return 0!==s&&n.forEach(c=>{const d=t.appendInstructionToTimeline(c,s,u);o=Math.max(o,d.duration+d.delay)}),o}visitReference(n,t){t.updateOptions(n.options,!0),cr(this,n.animation,t),t.previousNode=n}visitSequence(n,t){const r=t.subContextCount;let i=t;const o=n.options;if(o&&(o.params||o.delay)&&(i=t.createSubContext(o),i.transformIntoNewTimeline(),null!=o.delay)){i.previousNode.type==he.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Cm);const s=no(o.delay);i.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>cr(this,s,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),t.previousNode=n}visitGroup(n,t){const r=[];let i=t.currentTimeline.currentTime;const o=n.options&&n.options.delay?no(n.options.delay):0;n.steps.forEach(s=>{const u=t.createSubContext(n.options);o&&u.delayNextStep(o),cr(this,s,u),i=Math.max(i,u.currentTimeline.currentTime),r.push(u.currentTimeline)}),r.forEach(s=>t.currentTimeline.mergeTimelineCollectedStyles(s)),t.transformIntoNewTimeline(i),t.previousNode=n}_visitTiming(n,t){if(n.dynamic){const r=n.strValue;return ym(t.params?yd(r,t.params,t.errors):r,t.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,t){const r=t.currentAnimateTimings=this._visitTiming(n.timings,t),i=t.currentTimeline;r.delay&&(t.incrementTime(r.delay),i.snapshotCurrentStyles());const o=n.style;o.type==he.Keyframes?this.visitKeyframes(o,t):(t.incrementTime(r.duration),this.visitStyle(o,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=n}visitStyle(n,t){const r=t.currentTimeline,i=t.currentAnimateTimings;!i&&r.hasCurrentStyleProperties()&&r.forwardFrame();const o=i&&i.easing||n.easing;n.isEmptyStep?r.applyEmptyStep(o):r.setStyles(n.styles,o,t.errors,t.options),t.previousNode=n}visitKeyframes(n,t){const r=t.currentAnimateTimings,i=t.currentTimeline.duration,o=r.duration,u=t.createSubContext().currentTimeline;u.easing=r.easing,n.styles.forEach(c=>{u.forwardTime((c.offset||0)*o),u.setStyles(c.styles,c.easing,t.errors,t.options),u.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(u),t.transformIntoNewTimeline(i+o),t.previousNode=n}visitQuery(n,t){const r=t.currentTimeline.currentTime,i=n.options||{},o=i.delay?no(i.delay):0;o&&(t.previousNode.type===he.Style||0==r&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Cm);let s=r;const u=t.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=u.length;let c=null;u.forEach((d,f)=>{t.currentQueryIndex=f;const m=t.createSubContext(n.options,d);o&&m.delayNextStep(o),d===t.element&&(c=m.currentTimeline),cr(this,n.animation,m),m.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,m.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),c&&(t.currentTimeline.mergeTimelineCollectedStyles(c),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=n}visitStagger(n,t){const r=t.parentContext,i=t.currentTimeline,o=n.timings,s=Math.abs(o.duration),u=s*(t.currentQueryTotal-1);let c=s*t.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":c=u-c;break;case"full":c=r.currentStaggerTime}const f=t.currentTimeline;c&&f.delayNextStep(c);const m=f.currentTime;cr(this,n.animation,t),t.previousNode=n,r.currentStaggerTime=i.currentTime-m+(i.startTime-r.currentTimeline.startTime)}}const Cm={};class Ab{constructor(n,t,r,i,o,s,u,c){this._driver=n,this.element=t,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=s,this.timelines=u,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Cm,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new Em(this._driver,t,0),u.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,t){if(!n)return;const r=n;let i=this.options;null!=r.duration&&(i.duration=no(r.duration)),null!=r.delay&&(i.delay=no(r.delay));const o=r.params;if(o){let s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(u=>{(!t||!s.hasOwnProperty(u))&&(s[u]=yd(o[u],s,this.errors))})}}_copyOptions(){const n={};if(this.options){const t=this.options.params;if(t){const r=n.params={};Object.keys(t).forEach(i=>{r[i]=t[i]})}}return n}createSubContext(n=null,t,r){const i=t||this.element,o=new Ab(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=Cm,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,t,r){const i={duration:t??n.duration,delay:this.currentTimeline.currentTime+(r??0)+n.delay,easing:""},o=new TW(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,i,n.stretchStartingKeyframe);return this.timelines.push(o),i}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,t,r,i,o,s){let u=[];if(i&&u.push(this.element),n.length>0){n=(n=n.replace(CW,"."+this._enterClassName)).replace(DW,"."+this._leaveClassName);let d=this._driver.query(this.element,n,1!=r);0!==r&&(d=r<0?d.slice(d.length+r,d.length):d.slice(0,r)),u.push(...d)}return!o&&0==u.length&&s.push(function kq(){return new k(3014,!1)}()),u}}class Em{constructor(n,t,r,i){this._driver=n,this.element=t,this.startTime=r,this._elementTimelineStylesLookup=i,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+n),t&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,t){return this.applyStylesToKeyframe(),new Em(this._driver,n,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,t){this._localTimelineStyles.set(n,t),this._globalTimelineStyles.set(n,t),this._styleSummary.set(n,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[t,r]of this._globalTimelineStyles)this._backFill.set(t,r||Qi),this._currentKeyframe.set(t,Qi);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,t,r,i){t&&this._previousKeyframe.set("easing",t);const o=i&&i.params||{},s=function MW(e,n){const t=new Map;let r;return e.forEach(i=>{if("*"===i){r??=n.keys();for(let o of r)t.set(o,Qi)}else for(let[o,s]of i)t.set(o,s)}),t}(n,this._globalTimelineStyles);for(let[u,c]of s){const d=yd(c,o,r);this._pendingStyles.set(u,d),this._localTimelineStyles.has(u)||this._backFill.set(u,this._globalTimelineStyles.get(u)??Qi),this._updateStyle(u,d)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,t)=>{this._currentKeyframe.set(t,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,n)}))}snapshotCurrentStyles(){for(let[n,t]of this._localTimelineStyles)this._pendingStyles.set(n,t),this._updateStyle(n,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let t in this._currentKeyframe)n.push(t);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((t,r)=>{const i=this._styleSummary.get(r);(!i||t.time>i.time)&&this._updateStyle(r,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,t=new Set,r=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((u,c)=>{const d=new Map([...this._backFill,...u]);d.forEach((f,m)=>{"!"===f?n.add(m):f===Qi&&t.add(m)}),r||d.set("offset",c/this.duration),i.push(d)});const o=[...n.values()],s=[...t.values()];if(r){const u=i[0],c=new Map(u);u.set("offset",0),c.set("offset",1),i=[u,c]}return Ib(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)}}class TW extends Em{constructor(n,t,r,i,o,s,u=!1){super(n,t,s.delay),this.keyframes=r,this.preStyleProps=i,this.postStyleProps=o,this._stretchStartingKeyframe=u,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:t,duration:r,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){const o=[],s=r+t,u=t/s,c=new Map(n[0]);c.set("offset",0),o.push(c);const d=new Map(n[0]);d.set("offset",gA(u)),o.push(d);const f=n.length-1;for(let m=1;m<=f;m++){let g=new Map(n[m]);const y=g.get("offset");g.set("offset",gA((t+y*r)/s)),o.push(g)}r=s,t=0,i="",n=o}return Ib(this.element,n,this.preStyleProps,this.postStyleProps,r,t,i,!0)}}function gA(e,n=3){const t=Math.pow(10,n-1);return Math.round(e*t)/t}function yA(e,n,t,r,i,o,s,u,c,d,f,m,g){return{type:0,element:e,triggerName:n,isRemovalTransition:i,fromState:t,fromStyles:o,toState:r,toStyles:s,timelines:u,queriedElements:c,preStyleProps:d,postStyleProps:f,totalTime:m,errors:g}}const xb={};class vA{constructor(n,t,r){this._triggerName=n,this.ast=t,this._stateStyles=r}match(n,t,r,i){return function IW(e,n,t,r,i){return e.some(o=>o(n,t,r,i))}(this.ast.matchers,n,t,r,i)}buildStyles(n,t,r){let i=this._stateStyles.get("*");return void 0!==n&&(i=this._stateStyles.get(n?.toString())||i),i?i.buildStyles(t,r):new Map}build(n,t,r,i,o,s,u,c,d,f){const m=[],g=this.ast.options&&this.ast.options.params||xb,_=this.buildStyles(r,u&&u.params||xb,m),C=c&&c.params||xb,S=this.buildStyles(i,C,m),I=new Set,T=new Map,R=new Map,L="void"===i,H={params:_A(C,g),delay:this.ast.options?.delay},Q=f?[]:Pb(n,t,this.ast.animation,o,s,_,S,H,d,m);let re=0;return Q.forEach(J=>{re=Math.max(J.duration+J.delay,re)}),m.length?yA(t,this._triggerName,r,i,L,_,S,[],[],T,R,re,m):(Q.forEach(J=>{const vt=J.element,St=ur(T,vt,new Set);J.preStyleProps.forEach(Pn=>St.add(Pn));const xt=ur(R,vt,new Set);J.postStyleProps.forEach(Pn=>xt.add(Pn)),vt!==t&&I.add(vt)}),yA(t,this._triggerName,r,i,L,_,S,Q,[...I.values()],T,R,re))}}function _A(e,n){const t={...n};return Object.entries(e).forEach(([r,i])=>{null!=i&&(t[r]=i)}),t}class PW{constructor(n,t,r){this.styles=n,this.defaultParams=t,this.normalizer=r}buildStyles(n,t){const r=new Map,i=_A(n,this.defaultParams);return this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,u)=>{s&&(s=yd(s,i,t));const c=this.normalizer.normalizePropertyName(u,t);s=this.normalizer.normalizeStyleValue(u,c,s,t),r.set(u,s)})}),r}}class xW{constructor(n,t,r){this.name=n,this.ast=t,this._normalizer=r,this.transitionFactories=[],this.states=new Map,t.states.forEach(i=>{this.states.set(i.name,new PW(i.style,i.options&&i.options.params||{},r))}),bA(this.states,"true","1"),bA(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new vA(n,i,this.states))}),this.fallbackTransition=function kW(e,n){return new vA(e,{type:he.Transition,animation:{type:he.Sequence,steps:[],options:null},matchers:[(s,u)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,t,r,i){return this.transitionFactories.find(s=>s.match(n,t,r,i))||null}matchStyles(n,t,r){return this.fallbackTransition.buildStyles(n,t,r)}}function bA(e,n,t){e.has(n)?e.has(t)||e.set(t,e.get(n)):e.has(t)&&e.set(n,e.get(t))}const NW=new wm;class OW{constructor(n,t,r){this.bodyNode=n,this._driver=t,this._normalizer=r,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,t){const r=[],o=Tb(this._driver,t,r,[]);if(r.length)throw function jq(){return new k(3503,!1)}();this._animations.set(n,o)}_buildPlayer(n,t,r){const i=n.element,o=rA(this._normalizer,n.keyframes,t,r);return this._driver.animate(i,o,n.duration,n.delay,n.easing,[],!0)}create(n,t,r={}){const i=[],o=this._animations.get(n);let s;const u=new Map;if(o?(s=Pb(this._driver,t,o,bb,pm,new Map,new Map,r,NW,i),s.forEach(f=>{const m=ur(u,f.element,new Map);f.postStyleProps.forEach(g=>m.set(g,null))})):(i.push(function Bq(){return new k(3300,!1)}()),s=[]),i.length)throw function Hq(){return new k(3504,!1)}();u.forEach((f,m)=>{f.forEach((g,y)=>{f.set(y,this._driver.computeStyle(m,y,Qi))})});const d=Fo(s.map(f=>{const m=u.get(f.element);return this._buildPlayer(f,new Map,m)}));return this._playersById.set(n,d),d.onDestroy(()=>this.destroy(n)),this.players.push(d),d}destroy(n){const t=this._getPlayer(n);t.destroy(),this._playersById.delete(n);const r=this.players.indexOf(t);r>=0&&this.players.splice(r,1)}_getPlayer(n){const t=this._playersById.get(n);if(!t)throw function Gq(){return new k(3301,!1)}();return t}listen(n,t,r,i){const o=mb(t,"","","");return hb(this._getPlayer(n),r,o,i),()=>{}}command(n,t,r,i){if("register"==r)return void this.register(n,i[0]);if("create"==r)return void this.create(n,t,i[0]||{});const o=this._getPlayer(n);switch(r){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(n)}}}const wA="ng-animate-queued",kb="ng-animate-disabled",jW=[],CA={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},BW={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ii="__ng_removed";class Nb{get params(){return this.options.params}constructor(n,t=""){this.namespaceId=t;const r=n&&n.hasOwnProperty("value");if(this.value=function $W(e){return e??null}(r?n.value:n),r){const{value:o,...s}=n;this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const t=n.params;if(t){const r=this.options.params;Object.keys(t).forEach(i=>{null==r[i]&&(r[i]=t[i])})}}}const vd="void",Ob=new Nb(vd);class HW{constructor(n,t,r){this.id=n,this.hostElement=t,this._engine=r,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,Dr(t,this._hostClassName)}listen(n,t,r,i){if(!this._triggers.has(t))throw function Uq(){return new k(3302,!1)}();if(null==r||0==r.length)throw function $q(){return new k(3303,!1)}();if(!function zW(e){return"start"==e||"done"==e}(r))throw function zq(){return new k(3400,!1)}();const o=ur(this._elementListeners,n,[]),s={name:t,phase:r,callback:i};o.push(s);const u=ur(this._engine.statesByElement,n,new Map);return u.has(t)||(Dr(n,mm),Dr(n,mm+"-"+t),u.set(t,Ob)),()=>{this._engine.afterFlush(()=>{const c=o.indexOf(s);c>=0&&o.splice(c,1),this._triggers.has(t)||u.delete(t)})}}register(n,t){return!this._triggers.has(n)&&(this._triggers.set(n,t),!0)}_getTrigger(n){const t=this._triggers.get(n);if(!t)throw function qq(){return new k(3401,!1)}();return t}trigger(n,t,r,i=!0){const o=this._getTrigger(t),s=new Rb(this.id,t,n);let u=this._engine.statesByElement.get(n);u||(Dr(n,mm),Dr(n,mm+"-"+t),this._engine.statesByElement.set(n,u=new Map));let c=u.get(t);const d=new Nb(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&c&&d.absorbOptions(c.options),u.set(t,d),c||(c=Ob),d.value!==vd&&c.value===d.value){if(!function ZW(e,n){const t=Object.keys(e),r=Object.keys(n);if(t.length!=r.length)return!1;for(let i=0;i<t.length;i++){const o=t[i];if(!n.hasOwnProperty(o)||e[o]!==n[o])return!1}return!0}(c.params,d.params)){const C=[],S=o.matchStyles(c.value,c.params,C),I=o.matchStyles(d.value,d.params,C);C.length?this._engine.reportError(C):this._engine.afterFlush(()=>{$s(n,S),Pi(n,I)})}return}const g=ur(this._engine.playersByElement,n,[]);g.forEach(C=>{C.namespaceId==this.id&&C.triggerName==t&&C.queued&&C.destroy()});let y=o.matchTransition(c.value,d.value,n,d.params),_=!1;if(!y){if(!i)return;y=o.fallbackTransition,_=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:t,transition:y,fromState:c,toState:d,player:s,isFallbackTransition:_}),_||(Dr(n,wA),s.onStart(()=>{zu(n,wA)})),s.onDone(()=>{let C=this.players.indexOf(s);C>=0&&this.players.splice(C,1);const S=this._engine.playersByElement.get(n);if(S){let I=S.indexOf(s);I>=0&&S.splice(I,1)}}),this.players.push(s),g.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(t=>t.delete(n)),this._elementListeners.forEach((t,r)=>{this._elementListeners.set(r,t.filter(i=>i.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const t=this._engine.playersByElement.get(n);t&&(t.forEach(r=>r.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,t){const r=this._engine.driver.query(n,gm,!0);r.forEach(i=>{if(i[ii])return;const o=this._engine.fetchNamespacesByElement(i);o.size?o.forEach(s=>s.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(n,t,r,i){const o=this._engine.statesByElement.get(n),s=new Map;if(o){const u=[];if(o.forEach((c,d)=>{if(s.set(d,c.value),this._triggers.has(d)){const f=this.trigger(n,d,vd,i);f&&u.push(f)}}),u.length)return this._engine.markElementAsRemoved(this.id,n,!0,t,s),r&&Fo(u).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const t=this._elementListeners.get(n),r=this._engine.statesByElement.get(n);if(t&&r){const i=new Set;t.forEach(o=>{const s=o.name;if(i.has(s))return;i.add(s);const c=this._triggers.get(s).fallbackTransition,d=r.get(s)||Ob,f=new Nb(vd),m=new Rb(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:c,fromState:d,toState:f,player:m,isFallbackTransition:!0})})}}removeNode(n,t){const r=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,t),this.triggerLeaveAnimation(n,t,!0))return;let i=!1;if(r.totalAnimations){const o=r.players.length?r.playersByQueriedElement.get(n):[];if(o&&o.length)i=!0;else{let s=n;for(;s=s.parentNode;)if(r.statesByElement.get(s)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(n),i)r.markElementAsRemoved(this.id,n,!1,t);else{const o=n[ii];(!o||o===CA)&&(r.afterFlush(()=>this.clearElementCache(n)),r.destroyInnerAnimations(n),r._onRemovalComplete(n,t))}}insertNode(n,t){Dr(n,this._hostClassName)}drainQueuedTransitions(n){const t=[];return this._queue.forEach(r=>{const i=r.player;if(i.destroyed)return;const o=r.element,s=this._elementListeners.get(o);s&&s.forEach(u=>{if(u.name==r.triggerName){const c=mb(o,r.triggerName,r.fromState.value,r.toState.value);c._data=n,hb(r.player,u.phase,c,u.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(r)}),this._queue=[],t.sort((r,i)=>{const o=r.transition.ast.depCount,s=i.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(r.element,i.element)?1:-1})}destroy(n){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}}class GW{_onRemovalComplete(n,t){this.onRemovalComplete(n,t)}constructor(n,t,r){this.bodyNode=n,this.driver=t,this._normalizer=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(i,o)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(t=>{t.players.forEach(r=>{r.queued&&n.push(r)})}),n}createNamespace(n,t){const r=new HW(n,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(r,t):(this.newHostElements.set(t,r),this.collectEnterElement(t)),this._namespaceLookup[n]=r}_balanceNamespaceList(n,t){const r=this._namespaceList,i=this.namespacesByHostElement;if(r.length-1>=0){let s=!1,u=this.driver.getParentElement(t);for(;u;){const c=i.get(u);if(c){const d=r.indexOf(c);r.splice(d+1,0,n),s=!0;break}u=this.driver.getParentElement(u)}s||r.unshift(n)}else r.push(n);return i.set(t,n),n}register(n,t){let r=this._namespaceLookup[n];return r||(r=this.createNamespace(n,t)),r}registerTrigger(n,t,r){let i=this._namespaceLookup[n];i&&i.register(t,r)&&this.totalAnimations++}destroy(n,t){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const r=this._fetchNamespace(n);this.namespacesByHostElement.delete(r.hostElement);const i=this._namespaceList.indexOf(r);i>=0&&this._namespaceList.splice(i,1),r.destroy(t),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const t=new Set,r=this.statesByElement.get(n);if(r)for(let i of r.values())if(i.namespaceId){const o=this._fetchNamespace(i.namespaceId);o&&t.add(o)}return t}trigger(n,t,r,i){if(Dm(t)){const o=this._fetchNamespace(n);if(o)return o.trigger(t,r,i),!0}return!1}insertNode(n,t,r,i){if(!Dm(t))return;const o=t[ii];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(t);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){const s=this._fetchNamespace(n);s&&s.insertNode(t,r)}i&&this.collectEnterElement(t)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,t){t?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Dr(n,kb)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),zu(n,kb))}removeNode(n,t,r){if(Dm(t)){const i=n?this._fetchNamespace(n):null;i?i.removeNode(t,r):this.markElementAsRemoved(n,t,!1,r);const o=this.namespacesByHostElement.get(t);o&&o.id!==n&&o.removeNode(t,r)}else this._onRemovalComplete(t,r)}markElementAsRemoved(n,t,r,i,o){this.collectedLeaveElements.push(t),t[ii]={namespaceId:n,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,t,r,i,o){return Dm(t)?this._fetchNamespace(n).listen(t,r,i,o):()=>{}}_buildInstruction(n,t,r,i,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,r,i,n.fromState.options,n.toState.options,t,o)}destroyInnerAnimations(n){let t=this.driver.query(n,gm,!0);t.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(n,wb,!0),t.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(n){const t=this.playersByElement.get(n);t&&t.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(n){const t=this.playersByQueriedElement.get(n);t&&t.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Fo(this.players).onDone(()=>n());n()})}processLeaveNode(n){const t=n[ii];if(t&&t.setForRemoval){if(n[ii]=CA,t.namespaceId){this.destroyInnerAnimations(n);const r=this._fetchNamespace(t.namespaceId);r&&r.clearElementCache(n)}this._onRemovalComplete(n,t.setForRemoval)}n.classList?.contains(kb)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(n=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,i)=>this._balanceNamespaceList(r,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;r<this.collectedEnterElements.length;r++)Dr(this.collectedEnterElements[r],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const r=[];try{t=this._flushAnimations(r,n)}finally{for(let i=0;i<r.length;i++)r[i]()}}else for(let r=0;r<this.collectedLeaveElements.length;r++)this.processLeaveNode(this.collectedLeaveElements[r]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(r=>r()),this._flushFns=[],this._whenQuietFns.length){const r=this._whenQuietFns;this._whenQuietFns=[],t.length?Fo(t).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(n){throw function Wq(){return new k(3402,!1)}()}_flushAnimations(n,t){const r=new wm,i=[],o=new Map,s=[],u=new Map,c=new Map,d=new Map,f=new Set;this.disabledNodes.forEach(K=>{f.add(K);const te=this.driver.query(K,".ng-animate-queued",!0);for(let ue=0;ue<te.length;ue++)f.add(te[ue])});const m=this.bodyNode,g=Array.from(this.statesByElement.keys()),y=SA(g,this.collectedEnterElements),_=new Map;let C=0;y.forEach((K,te)=>{const ue=bb+C++;_.set(te,ue),K.forEach(Me=>Dr(Me,ue))});const S=[],I=new Set,T=new Set;for(let K=0;K<this.collectedLeaveElements.length;K++){const te=this.collectedLeaveElements[K],ue=te[ii];ue&&ue.setForRemoval&&(S.push(te),I.add(te),ue.hasAnimation?this.driver.query(te,".ng-star-inserted",!0).forEach(Me=>I.add(Me)):T.add(te))}const R=new Map,L=SA(g,Array.from(I));L.forEach((K,te)=>{const ue=pm+C++;R.set(te,ue),K.forEach(Me=>Dr(Me,ue))}),n.push(()=>{y.forEach((K,te)=>{const ue=_.get(te);K.forEach(Me=>zu(Me,ue))}),L.forEach((K,te)=>{const ue=R.get(te);K.forEach(Me=>zu(Me,ue))}),S.forEach(K=>{this.processLeaveNode(K)})});const H=[],Q=[];for(let K=this._namespaceList.length-1;K>=0;K--)this._namespaceList[K].drainQueuedTransitions(t).forEach(ue=>{const Me=ue.player,jt=ue.element;if(H.push(Me),this.collectedEnterElements.length){const pn=jt[ii];if(pn&&pn.setForMove){if(pn.previousTriggersValues&&pn.previousTriggersValues.has(ue.triggerName)){const Ws=pn.previousTriggersValues.get(ue.triggerName),Mr=this.statesByElement.get(ue.element);if(Mr&&Mr.has(ue.triggerName)){const Mm=Mr.get(ue.triggerName);Mm.value=Ws,Mr.set(ue.triggerName,Mm)}}return void Me.destroy()}}const Tr=!m||!this.driver.containsElement(m,jt),An=R.get(jt),Ai=_.get(jt),ft=this._buildInstruction(ue,r,Ai,An,Tr);if(ft.errors&&ft.errors.length)return void Q.push(ft);if(Tr)return Me.onStart(()=>$s(jt,ft.fromStyles)),Me.onDestroy(()=>Pi(jt,ft.toStyles)),void i.push(Me);if(ue.isFallbackTransition)return Me.onStart(()=>$s(jt,ft.fromStyles)),Me.onDestroy(()=>Pi(jt,ft.toStyles)),void i.push(Me);const Tm=[];ft.timelines.forEach(pn=>{pn.stretchStartingKeyframe=!0,this.disabledNodes.has(pn.element)||Tm.push(pn)}),ft.timelines=Tm,r.append(jt,ft.timelines),s.push({instruction:ft,player:Me,element:jt}),ft.queriedElements.forEach(pn=>ur(u,pn,[]).push(Me)),ft.preStyleProps.forEach((pn,Ws)=>{if(pn.size){let Mr=c.get(Ws);Mr||c.set(Ws,Mr=new Set),pn.forEach((Mm,Vb)=>Mr.add(Vb))}}),ft.postStyleProps.forEach((pn,Ws)=>{let Mr=d.get(Ws);Mr||d.set(Ws,Mr=new Set),pn.forEach((Mm,Vb)=>Mr.add(Vb))})});if(Q.length){const K=[];Q.forEach(te=>{K.push(function Zq(){return new k(3505,!1)}())}),H.forEach(te=>te.destroy()),this.reportError(K)}const re=new Map,J=new Map;s.forEach(K=>{const te=K.element;r.has(te)&&(J.set(te,te),this._beforeAnimationBuild(K.player.namespaceId,K.instruction,re))}),i.forEach(K=>{const te=K.element;this._getPreviousPlayers(te,!1,K.namespaceId,K.triggerName,null).forEach(Me=>{ur(re,te,[]).push(Me),Me.destroy()})});const vt=S.filter(K=>MA(K,c,d)),St=new Map;DA(St,this.driver,T,d,Qi).forEach(K=>{MA(K,c,d)&&vt.push(K)});const Pn=new Map;y.forEach((K,te)=>{DA(Pn,this.driver,new Set(K),c,"!")}),vt.forEach(K=>{const te=St.get(K),ue=Pn.get(K);St.set(K,new Map([...te?.entries()??[],...ue?.entries()??[]]))});const Lo=[],Sr=[],qs={};s.forEach(K=>{const{element:te,player:ue,instruction:Me}=K;if(r.has(te)){if(f.has(te))return ue.onDestroy(()=>Pi(te,Me.toStyles)),ue.disabled=!0,ue.overrideTotalTime(Me.totalTime),void i.push(ue);let jt=qs;if(J.size>1){let An=te;const Ai=[];for(;An=An.parentNode;){const ft=J.get(An);if(ft){jt=ft;break}Ai.push(An)}Ai.forEach(ft=>J.set(ft,jt))}const Tr=this._buildAnimation(ue.namespaceId,Me,re,o,Pn,St);if(ue.setRealPlayer(Tr),jt===qs)Lo.push(ue);else{const An=this.playersByElement.get(jt);An&&An.length&&(ue.parentPlayer=Fo(An)),i.push(ue)}}else $s(te,Me.fromStyles),ue.onDestroy(()=>Pi(te,Me.toStyles)),Sr.push(ue),f.has(te)&&i.push(ue)}),Sr.forEach(K=>{const te=o.get(K.element);if(te&&te.length){const ue=Fo(te);K.setRealPlayer(ue)}}),i.forEach(K=>{K.parentPlayer?K.syncPlayerEvents(K.parentPlayer):K.destroy()});for(let K=0;K<S.length;K++){const te=S[K],ue=te[ii];if(zu(te,pm),ue&&ue.hasAnimation)continue;let Me=[];if(u.size){let Tr=u.get(te);Tr&&Tr.length&&Me.push(...Tr);let An=this.driver.query(te,wb,!0);for(let Ai=0;Ai<An.length;Ai++){let ft=u.get(An[Ai]);ft&&ft.length&&Me.push(...ft)}}const jt=Me.filter(Tr=>!Tr.destroyed);jt.length?qW(this,te,jt):this.processLeaveNode(te)}return S.length=0,Lo.forEach(K=>{this.players.push(K),K.onDone(()=>{K.destroy();const te=this.players.indexOf(K);this.players.splice(te,1)}),K.play()}),Lo}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,t,r,i,o){let s=[];if(t){const u=this.playersByQueriedElement.get(n);u&&(s=u)}else{const u=this.playersByElement.get(n);if(u){const c=!o||o==vd;u.forEach(d=>{d.queued||!c&&d.triggerName!=i||s.push(d)})}}return(r||i)&&(s=s.filter(u=>!(r&&r!=u.namespaceId||i&&i!=u.triggerName))),s}_beforeAnimationBuild(n,t,r){const o=t.element,s=t.isRemovalTransition?void 0:n,u=t.isRemovalTransition?void 0:t.triggerName;for(const c of t.timelines){const d=c.element,f=d!==o,m=ur(r,d,[]);this._getPreviousPlayers(d,f,s,u,t.toState).forEach(y=>{const _=y.getRealPlayer();_.beforeDestroy&&_.beforeDestroy(),y.destroy(),m.push(y)})}$s(o,t.fromStyles)}_buildAnimation(n,t,r,i,o,s){const u=t.triggerName,c=t.element,d=[],f=new Set,m=new Set,g=t.timelines.map(_=>{const C=_.element;f.add(C);const S=C[ii];if(S&&S.removedBeforeQueried)return new ed(_.duration,_.delay);const I=C!==c,T=function WW(e){const n=[];return TA(e,n),n}((r.get(C)||jW).map(re=>re.getRealPlayer())).filter(re=>!!re.element&&re.element===C),R=o.get(C),L=s.get(C),H=rA(this._normalizer,_.keyframes,R,L),Q=this._buildPlayer(_,H,T);if(_.subTimeline&&i&&m.add(C),I){const re=new Rb(n,u,C);re.setRealPlayer(Q),d.push(re)}return Q});d.forEach(_=>{ur(this.playersByQueriedElement,_.element,[]).push(_),_.onDone(()=>function UW(e,n,t){let r=e.get(n);if(r){if(r.length){const i=r.indexOf(t);r.splice(i,1)}0==r.length&&e.delete(n)}return r}(this.playersByQueriedElement,_.element,_))}),f.forEach(_=>Dr(_,cA));const y=Fo(g);return y.onDestroy(()=>{f.forEach(_=>zu(_,cA)),Pi(c,t.toStyles)}),m.forEach(_=>{ur(i,_,[]).push(y)}),y}_buildPlayer(n,t,r){return t.length>0?this.driver.animate(n.element,t,n.duration,n.delay,n.easing,r):new ed(n.duration,n.delay)}}class Rb{constructor(n,t,r){this.namespaceId=n,this.triggerName=t,this.element=r,this._player=new ed,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((t,r)=>{t.forEach(i=>hb(n,r,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const t=this._player;t.triggerCallback&&n.onStart(()=>t.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,t){ur(this._queuedCallbacks,n,[]).push(t)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const t=this._player;t.triggerCallback&&t.triggerCallback(n)}}function Dm(e){return e&&1===e.nodeType}function EA(e,n){const t=e.style.display;return e.style.display=n??"none",t}function DA(e,n,t,r,i){const o=[];t.forEach(c=>o.push(EA(c)));const s=[];r.forEach((c,d)=>{const f=new Map;c.forEach(m=>{const g=n.computeStyle(d,m,i);f.set(m,g),(!g||0==g.length)&&(d[ii]=BW,s.push(d))}),e.set(d,f)});let u=0;return t.forEach(c=>EA(c,o[u++])),s}function SA(e,n){const t=new Map;if(e.forEach(u=>t.set(u,[])),0==n.length)return t;const i=new Set(n),o=new Map;function s(u){if(!u)return 1;let c=o.get(u);if(c)return c;const d=u.parentNode;return c=t.has(d)?d:i.has(d)?1:s(d),o.set(u,c),c}return n.forEach(u=>{const c=s(u);1!==c&&t.get(c).push(u)}),t}function Dr(e,n){e.classList?.add(n)}function zu(e,n){e.classList?.remove(n)}function qW(e,n,t){Fo(t).onDone(()=>e.processLeaveNode(n))}function TA(e,n){for(let t=0;t<e.length;t++){const r=e[t];r instanceof GI?TA(r.players,n):n.push(r)}}function MA(e,n,t){const r=t.get(e);if(!r)return!1;let i=n.get(e);return i?r.forEach(o=>i.add(o)):n.set(e,r),t.delete(e),!0}class _d{constructor(n,t,r){this._driver=t,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(i,o)=>{},this._transitionEngine=new GW(n.body,t,r),this._timelineEngine=new OW(n.body,t,r),this._transitionEngine.onRemovalComplete=(i,o)=>this.onRemovalComplete(i,o)}registerTrigger(n,t,r,i,o){const s=n+"-"+i;let u=this._triggerCache[s];if(!u){const c=[],f=Tb(this._driver,o,c,[]);if(c.length)throw function Lq(){return new k(3404,!1)}();u=function AW(e,n,t){return new xW(e,n,t)}(i,f,this._normalizer),this._triggerCache[s]=u}this._transitionEngine.registerTrigger(t,i,u)}register(n,t){this._transitionEngine.register(n,t)}destroy(n,t){this._transitionEngine.destroy(n,t)}onInsert(n,t,r,i){this._transitionEngine.insertNode(n,t,r,i)}onRemove(n,t,r){this._transitionEngine.removeNode(n,t,r)}disableAnimations(n,t){this._transitionEngine.markElementAsDisabled(n,t)}process(n,t,r,i){if("@"==r.charAt(0)){const[o,s]=iA(r);this._timelineEngine.command(o,t,s,i)}else this._transitionEngine.trigger(n,t,r,i)}listen(n,t,r,i,o){if("@"==r.charAt(0)){const[s,u]=iA(r);return this._timelineEngine.listen(s,t,u,o)}return this._transitionEngine.listen(n,t,r,i,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}}class bd{static#e=this.initialStylesByElement=new WeakMap;constructor(n,t,r){this._element=n,this._startStyles=t,this._endStyles=r,this._state=0;let i=bd.initialStylesByElement.get(n);i||bd.initialStylesByElement.set(n,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&Pi(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Pi(this._element,this._initialStyles),this._endStyles&&(Pi(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(bd.initialStylesByElement.delete(this._element),this._startStyles&&($s(this._element,this._startStyles),this._endStyles=null),this._endStyles&&($s(this._element,this._endStyles),this._endStyles=null),Pi(this._element,this._initialStyles),this._state=3)}}function Fb(e){let n=null;return e.forEach((t,r)=>{(function KW(e){return"display"===e||"position"===e})(r)&&(n=n||new Map,n.set(r,t))}),n}class IA{constructor(n,t,r,i){this.element=n,this.keyframes=t,this.options=r,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;const t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const t=[];return n.forEach(r=>{t.push(Object.fromEntries(r))}),t}_triggerWebAnimation(n,t,r){return n.animate(this._convertKeyframesToObject(t),r)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,i)=>{"offset"!==i&&n.set(i,this._finished?r:Sb(this.element,i))}),this.currentSnapshot=n}triggerCallback(n){const t="start"===n?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class PA{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}containsElement(n,t){return sA(n,t)}getParentElement(n){return gb(n)}query(n,t,r){return aA(n,t,r)}computeStyle(n,t,r){return Sb(n,t)}animate(n,t,r,i,o,s=[]){const c={duration:r,delay:i,fill:0==i?"both":"forwards"};o&&(c.easing=o);const d=new Map,f=s.filter(y=>y instanceof IA);(function aW(e,n){return 0===e||0===n})(r,i)&&f.forEach(y=>{y.currentSnapshot.forEach((_,C)=>d.set(C,_))});let m=function iW(e){return e.length?e[0]instanceof Map?e:e.map(n=>new Map(Object.entries(n))):[]}(t).map(y=>new Map(y));m=function uW(e,n,t){if(t.size&&n.length){let r=n[0],i=[];if(t.forEach((o,s)=>{r.has(s)||i.push(s),r.set(s,o)}),i.length)for(let o=1;o<n.length;o++){let s=n[o];i.forEach(u=>s.set(u,Sb(e,u)))}}return n}(n,m,d);const g=function YW(e,n){let t=null,r=null;return Array.isArray(n)&&n.length?(t=Fb(n[0]),n.length>1&&(r=Fb(n[n.length-1]))):n instanceof Map&&(t=Fb(n)),t||r?new bd(e,t,r):null}(n,m);return new IA(n,m,c,g)}}const AA="@.disabled";class xA{constructor(n,t,r,i){this.namespaceId=n,this.delegate=t,this.engine=r,this._onDestroy=i,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,t){return this.delegate.createElement(n,t)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,t){this.delegate.appendChild(n,t),this.engine.onInsert(this.namespaceId,t,n,!1)}insertBefore(n,t,r,i=!0){this.delegate.insertBefore(n,t,r),this.engine.onInsert(this.namespaceId,t,n,i)}removeChild(n,t,r){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(n,t){return this.delegate.selectRootElement(n,t)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,t,r,i){this.delegate.setAttribute(n,t,r,i)}removeAttribute(n,t,r){this.delegate.removeAttribute(n,t,r)}addClass(n,t){this.delegate.addClass(n,t)}removeClass(n,t){this.delegate.removeClass(n,t)}setStyle(n,t,r,i){this.delegate.setStyle(n,t,r,i)}removeStyle(n,t,r){this.delegate.removeStyle(n,t,r)}setProperty(n,t,r){"@"==t.charAt(0)&&t==AA?this.disableAnimations(n,!!r):this.delegate.setProperty(n,t,r)}setValue(n,t){this.delegate.setValue(n,t)}listen(n,t,r){return this.delegate.listen(n,t,r)}disableAnimations(n,t){this.engine.disableAnimations(n,t)}}class XW extends xA{constructor(n,t,r,i,o){super(t,r,i,o),this.factory=n,this.namespaceId=t}setProperty(n,t,r){"@"==t.charAt(0)?"."==t.charAt(1)&&t==AA?this.disableAnimations(n,r=void 0===r||!!r):this.engine.process(this.namespaceId,n,t.slice(1),r):this.delegate.setProperty(n,t,r)}listen(n,t,r){if("@"==t.charAt(0)){const i=function QW(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(n);let o=t.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function JW(e){const n=e.indexOf(".");return[e.substring(0,n),e.slice(n+1)]}(o)),this.engine.listen(this.namespaceId,i,o,s,u=>{this.factory.scheduleListenerCallback(u._data||-1,r,u)})}return this.delegate.listen(n,t,r)}}class eZ{constructor(n,t,r){this.delegate=n,this.engine=t,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(i,o)=>{o?.removeChild(null,i)}}createRenderer(n,t){const i=this.delegate.createRenderer(n,t);if(!n||!t?.data?.animation){const d=this._rendererCache;let f=d.get(i);return f||(f=new xA("",i,this.engine,()=>d.delete(i)),d.set(i,f)),f}const o=t.id,s=t.id+"-"+this._currentId;this._currentId++,this.engine.register(s,n);const u=d=>{Array.isArray(d)?d.forEach(u):this.engine.registerTrigger(o,s,n,d.name,d)};return t.data.animation.forEach(u),new XW(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,t,r){if(n>=0&&n<this._microtaskId)return void this._zone.run(()=>t(r));const i=this._animationCallbacksBuffer;0==i.length&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(o=>{const[s,u]=o;s(u)}),this._animationCallbacksBuffer=[]})}),i.push([t,r])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}const kA=[{provide:_b,useFactory:function nZ(){return new fA}},{provide:_d,useClass:(()=>{class e extends _d{constructor(t,r,i){super(t,r,i)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(r){return new(r||e)(l(un),l(vb),l(_b))};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac})}return e})()},{provide:wh,useFactory:function rZ(e,n,t){return new eZ(e,n,t)},deps:[u_,_d,Le]}],Lb=[{provide:vb,useFactory:()=>new PA},{provide:e1,useValue:"BrowserAnimations"},...kA],NA=[{provide:vb,useClass:yb},{provide:e1,useValue:"NoopAnimations"},...kA];let OA=(()=>{class e{static withConfig(t){return{ngModule:e,providers:t.disableAnimations?NA:Lb}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=$t({type:e});static#n=this.\u0275inj=Et({providers:Lb,imports:[Dp]})}return e})();const RA={merchantCapabilities:["supports3DS"],supportedNetworks:["visa","masterCard","amex","discover"]},iZ=zn(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}),FA=new z("APPLE_PAY_SESSION_TOKEN",{factory:()=>p(un).defaultView.ApplePaySession});let LA=(()=>{class e{constructor(t){this.applePaySession=t}canMakePayments(){return ApplePaySession.canMakePayments()}createPaySession(t,r,i){return new _t(o=>{const s=u=>{o.error(u),console.error(u)};try{const u=new this.applePaySession(t,r),c=(d,f)=>{u.abort(),s({event:d,error:f})};u.onvalidatemerchant=function(){var d=Fs(function*(f){try{const m=yield function oZ(e,n){const t="object"==typeof n;return new Promise((r,i)=>{let s,o=!1;e.subscribe({next:u=>{s=u,o=!0},error:i,complete:()=>{o?r(s):t?r(n.defaultValue):i(new iZ)}})})}(i(f));u.completeMerchantValidation(m)}catch(m){c(f,m)}});return function(f){return d.apply(this,arguments)}}(),u.onpaymentmethodselected=d=>{const f={newTotal:{...r.total}};u.completePaymentMethodSelection(f)},u.onshippingmethodselected=d=>{u.completeShippingMethodSelection({})},u.onshippingcontactselected=d=>{u.completeShippingContactSelection({})},u.onpaymentauthorized=d=>{u.completePayment({status:ApplePaySession.STATUS_SUCCESS}),o.next(d),o.complete()},u.oncancel=d=>{s(d)},u.begin()}catch(u){s(u)}})}static#e=this.\u0275fac=function(r){return new(r||e)(l(FA))};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac})}return e})(),VA=(()=>{class e{constructor(t,r){this.nativeService=t,this.http=r}canMakePayment(){return or(this.nativeService.canMakePayments())}pay(t){const{version:r=10}=t;return this.nativeService.createPaySession(r,this.mapData(t),o=>this.validate(o,t))}validate(t,r){const{validationURL:i}=t,{merchantId:o,processingUrl:s,userToken:u}=r;return this.http.post(s,{validationUrl:i},{params:{merchantId:o},headers:u?{Authorization:u}:void 0})}mapData(t){const{total:r,countryCode:i,supportedNetworks:o=RA.supportedNetworks,merchantCapabilities:s=RA.merchantCapabilities}=t;return{countryCode:i,currencyCode:r.currency,supportedNetworks:o,merchantCapabilities:s,total:{amount:r.amount,label:r.label}}}static#e=this.\u0275fac=function(r){return new(r||e)(l(LA),l(Gp))};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac})}return e})();const sZ=new z("APPLE_PAY_SESSION_SUPPORT_TOKEN",{factory:()=>!!p(FA)}),jA="https://applepay.cdn-apple.com/jsapi/v1.3.2/apple-pay-sdk.js";let aZ=(()=>{class e{constructor(t,r){this.doc=t,this.platformId=r}load(){return function Ej(e){return e===vM}(this.platformId)?(this.loadPromise||(this.loadPromise=new Promise((t,r)=>{const i=this.doc.querySelector(`script[src="${jA}"]`);if(i)return i.addEventListener("load",()=>t(),{once:!0}),void i.addEventListener("error",()=>r(new Error("Apple Pay SDK failed to load")),{once:!0});const o=this.doc.createElement("script");o.src=jA,o.async=!0,o.onload=()=>t(),o.onerror=()=>r(new Error("Apple Pay SDK failed to load")),this.doc.head.appendChild(o)})),this.loadPromise):Promise.resolve()}static#e=this.\u0275fac=function(r){return new(r||e)(l(un),l(zi))};static#t=this.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const uZ={canMakePayment:()=>or(!1),pay(e){throw new Error("not implemented")}};function cZ(e){return()=>{try{return e.load().catch(n=>{console.warn("Apple Pay preload failed (network or CDN issue):",n)})}catch(n){return void console.warn("Apple Pay preload threw synchronously:",n)}}}let BA=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=$t({type:e});static#n=this.\u0275inj=Et({providers:[LA,VA,{provide:oT,deps:[aZ],useFactory:cZ,multi:!0},{provide:D3,deps:[sZ,VA],useFactory:(t,r)=>t?r:uZ}]})}return e})();M(463);let HA=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=$t({type:e});static#n=this.\u0275inj=Et({providers:[S3]})}return e})(),GA=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=$t({type:e});static#n=this.\u0275inj=Et({providers:[A3],imports:[LP.forRoot(),tA,kP,xP,Jv,Dp,OA,BA,HA,LP,tA,kP,xP,Jv,Dp,OA,BA,HA]})}return e})(),lZ=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=$t({type:e});static#n=this.\u0275inj=Et({providers:[Je,Gs,G_,B_,H_,hm,fm],imports:[GA]})}return e})(),dZ=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=$t({type:e});static#n=this.\u0275inj=Et({providers:[V_,ju]})}return e})(),fZ=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=$t({type:e});static#n=this.\u0275inj=Et({providers:[XP]})}return e})();function hZ(e,n){let t=e;const r=p(Je),i=p(od),o=r.data.settings().language,s=!!e.headers.get(Ou_customHeaders_skipToastr);return s&&(t=e.clone({headers:e.headers.delete(Ou_customHeaders_skipToastr)})),n(t).pipe(Fu(u=>(s||i.error(o.notifications.error.default.text,o.notifications.error.default.title),r.events.error.emit(u),F_(()=>u))))}function pZ(e,n){let t=e;const r=p(Je);if(!e.headers.get("Authorization")){const o=r.data.payment()?.userAuthToken;o&&(t=e.clone({headers:e.headers.append("Authorization",o)}))}return n(t)}let mZ=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=$t({type:e});static#n=this.\u0275inj=Et({providers:[IG(PG([hZ,pZ]))],imports:[fU.forRoot(),lZ,GA,dZ,fZ]})}return e})(),gZ=(()=>{class e{constructor(t){this.injector=t}ngDoBootstrap(t){const{injector:r}=this,i=function CB(e,n){const t=function mB(e,n){return n.get(Ms).resolveComponentFactory(e).inputs}(e,n.injector),r=n.strategyFactory||new _B(e,n.injector),i=function pB(e){const n={};return e.forEach(({propName:t,templateName:r,transform:i})=>{n[function cB(e){return e.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}(r)]=[t,i]}),n}(t);class o extends wB{static#e=this.observedAttributes=Object.keys(i);get ngElementStrategy(){if(!this._ngElementStrategy){const u=this._ngElementStrategy=r.create(this.injector||n.injector);t.forEach(({propName:c,transform:d})=>{if(!this.hasOwnProperty(c))return;const f=this[c];delete this[c],u.setInputValue(c,f,d)})}return this._ngElementStrategy}constructor(u){super(),this.injector=u}attributeChangedCallback(u,c,d,f){const[m,g]=i[u];this.ngElementStrategy.setInputValue(m,d,g)}connectedCallback(){let u=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),u=!0),this.ngElementStrategy.connect(this),u||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(u=>{const c=new CustomEvent(u.name,{detail:u.value});this.dispatchEvent(c)})}}return t.forEach(({propName:s,transform:u})=>{Object.defineProperty(o.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(c){this.ngElementStrategy.setInputValue(s,c,u)},configurable:!0,enumerable:!0})}),o}(mq,{injector:r});customElements.define("moto-payment-form",i)}static#e=this.\u0275fac=function(r){return new(r||e)(l(tt))};static#t=this.\u0275mod=$t({type:e});static#n=this.\u0275inj=Et({imports:[Dp,mZ]})}return e})();_8().bootstrapModule(gZ).catch(e=>console.log(e))},634:function(F,A,M){"use strict";var D=this&&this.__assign||function(){return D=Object.assign||function(Ie){for(var Te,et=1,ht=arguments.length;et<ht;et++)for(var Pr in Te=arguments[et])Object.prototype.hasOwnProperty.call(Te,Pr)&&(Ie[Pr]=Te[Pr]);return Ie},D.apply(this,arguments)},ke=M(990),Ae=M(402),xe=M(987),$=M(250),ie=M(507),U={},ye={VISA:"visa",MASTERCARD:"mastercard",AMERICAN_EXPRESS:"american-express",DINERS_CLUB:"diners-club",DISCOVER:"discover",JCB:"jcb",UNIONPAY:"unionpay",MAESTRO:"maestro",ELO:"elo",MIR:"mir",HIPER:"hiper",HIPERCARD:"hipercard"},Ir=[ye.VISA,ye.MASTERCARD,ye.AMERICAN_EXPRESS,ye.DINERS_CLUB,ye.DISCOVER,ye.JCB,ye.UNIONPAY,ye.MAESTRO,ye.ELO,ye.MIR,ye.HIPER,ye.HIPERCARD],Bt=(0,ie.clone)(Ir);function lr(Ie){return U[Ie]||ke[Ie]}function ro(Ie,Te){void 0===Te&&(Te=!1);var et=Bt.indexOf(Ie);if(!Te&&-1===et)throw new Error('"'+Ie+'" is not a supported card type.');return et}function xn(Ie){var Te=[];if(!(0,xe.isValidInputType)(Ie))return Te;if(0===Ie.length)return function Vo(){return Bt.map(function(Ie){return(0,ie.clone)(lr(Ie))})}();Bt.forEach(function(ht){var Pr=lr(ht);(0,Ae.addMatchingCardsToResults)(Ie,Pr,Te)});var et=(0,$.findBestMatch)(Te);return et?[et]:Te}xn.getTypeInfo=function(Ie){return(0,ie.clone)(lr(Ie))},xn.removeCard=function(Ie){var Te=ro(Ie);Bt.splice(Te,1)},xn.addCard=function(Ie){var Te=ro(Ie.type,!0);U[Ie.type]=Ie,-1===Te&&Bt.push(Ie.type)},xn.updateCard=function(Ie,Te){var et=U[Ie]||ke[Ie];if(!et)throw new Error('"'.concat(Ie,"\" is not a recognized type. Use `addCard` instead.'"));if(Te.type&&et.type!==Te.type)throw new Error("Cannot overwrite type parameter.");var ht=(0,ie.clone)(et);ht=D(D({},ht),Te),U[ht.type]=ht},xn.changeOrder=function(Ie,Te){var et=ro(Ie);Bt.splice(et,1),Bt.splice(Te,0,Ie)},xn.resetModifications=function(){Bt=(0,ie.clone)(Ir),U={}},xn.types=ye,F.exports=xn},402:(F,A,M)=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0}),A.addMatchingCardsToResults=void 0;var D=M(507),ke=M(595);A.addMatchingCardsToResults=function Ae(xe,$,ie){var U,ye;for(U=0;U<$.patterns.length;U++){var Ir=$.patterns[U];if((0,ke.matches)(xe,Ir)){var Bt=(0,D.clone)($);ye=Array.isArray(Ir)?String(Ir[0]).length:String(Ir).length,xe.length>=ye&&(Bt.matchStrength=ye),ie.push(Bt);break}}}},990:F=>{"use strict";F.exports={visa:{niceType:"Visa",type:"visa",patterns:[4],gaps:[4,8,12],lengths:[16,18,19],code:{name:"CVV",size:3}},mastercard:{niceType:"Mastercard",type:"mastercard",patterns:[[51,55],[2221,2229],[223,229],[23,26],[270,271],2720],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},"american-express":{niceType:"American Express",type:"american-express",patterns:[34,37],gaps:[4,10],lengths:[15],code:{name:"CID",size:4}},"diners-club":{niceType:"Diners Club",type:"diners-club",patterns:[[300,305],36,38,39],gaps:[4,10],lengths:[14,16,19],code:{name:"CVV",size:3}},discover:{niceType:"Discover",type:"discover",patterns:[6011,[644,649],65],gaps:[4,8,12],lengths:[16,19],code:{name:"CID",size:3}},jcb:{niceType:"JCB",type:"jcb",patterns:[2131,1800,[3528,3589]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVV",size:3}},unionpay:{niceType:"UnionPay",type:"unionpay",patterns:[620,[62100,62182],[62184,62187],[62185,62197],[62200,62205],[622010,622999],622018,[62207,62209],[623,626],6270,6272,6276,[627700,627779],[627781,627799],[6282,6289],6291,6292,810,[8110,8131],[8132,8151],[8152,8163],[8164,8171]],gaps:[4,8,12],lengths:[14,15,16,17,18,19],code:{name:"CVN",size:3}},maestro:{niceType:"Maestro",type:"maestro",patterns:[493698,[5e5,504174],[504176,506698],[506779,508999],[56,59],63,67,6],gaps:[4,8,12],lengths:[12,13,14,15,16,17,18,19],code:{name:"CVC",size:3}},elo:{niceType:"Elo",type:"elo",patterns:[401178,401179,438935,457631,457632,431274,451416,457393,504175,[506699,506778],[509e3,509999],627780,636297,636368,[650031,650033],[650035,650051],[650405,650439],[650485,650538],[650541,650598],[650700,650718],[650720,650727],[650901,650978],[651652,651679],[655e3,655019],[655021,655058]],gaps:[4,8,12],lengths:[16],code:{name:"CVE",size:3}},mir:{niceType:"Mir",type:"mir",patterns:[[2200,2204]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVP2",size:3}},hiper:{niceType:"Hiper",type:"hiper",patterns:[637095,63737423,63743358,637568,637599,637609,637612],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},hipercard:{niceType:"Hipercard",type:"hipercard",patterns:[606282],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}}}},507:(F,A)=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0}),A.clone=void 0,A.clone=function M(D){return D?JSON.parse(JSON.stringify(D)):null}},250:(F,A)=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0}),A.findBestMatch=void 0,A.findBestMatch=function D(ke){return function M(ke){var Ae=ke.filter(function(xe){return xe.matchStrength}).length;return Ae>0&&Ae===ke.length}(ke)?ke.reduce(function(Ae,xe){return!Ae||Number(Ae.matchStrength)<Number(xe.matchStrength)?xe:Ae}):null}},987:(F,A)=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0}),A.isValidInputType=void 0,A.isValidInputType=function M(D){return"string"==typeof D||D instanceof String}},595:(F,A)=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0}),A.matches=void 0,A.matches=function ke(Ae,xe){return Array.isArray(xe)?function M(Ae,xe,$){var ie=String(xe).length,U=Ae.substr(0,ie),ye=parseInt(U,10);return xe=parseInt(String(xe).substr(0,U.length),10),$=parseInt(String($).substr(0,U.length),10),ye>=xe&&ye<=$}(Ae,xe[0],xe[1]):function D(Ae,xe){return(xe=String(xe)).substring(0,Ae.length)===Ae.substring(0,xe.length)}(Ae,xe)}},463:function(){(function(){window.denylistedDomainsHashedValueListForGpayButtonWithCardInfo=[-718583466,-651407173,1501053020,1270931793,1878965203,1359979311,-1556396599,-929820290,-1993966558,969369487,813004726,545283320,1144403640]}).call(this),function(){window.whitelistedDomainsHashedValueListForGpayButtonWithCardInfo=[1432838318]}.call(this),function(){window.denylistedMerchentIdsHashedValueListForGpayButtonWithCardInfo=[1260893,211376492,-383338062,621213554,-1574521140,318272649,-1021013306]}.call(this),function(){window.denylistedMerchantIdsHashedValueListForGpayButtonVariant=[]}.call(this),function(){window.allowlistedMerchantDomainsForBnplDynamicButton=[1605359444,1058617217,-1952496552,1475577307,-266458566,-1100178842,82073654,1871160076,1512037837,-324377671,-1836633316,1257306572,-490810357,914948972,1312509109,1456172824,1359979311,2119319518,1000705814,-557041780,217951089,-733157279,545927057,-1637503934,587727802,439938499,-82521450,1010792251,-1600155240,501105821,1687733144,-594871460,-292702292,1047750569,1757603081,1277798904,140429097,830662232,-1591032177,409676547,388255805,14664163,-888714055,2024616735,-1854751591,969369487,-1671782663,-364941361,1459357773,1285145032,949802706,-965096850,-800621897,-705555514,-1274801837,-371468606,401692316,596576164]}.call(this),function(){window.allowlistedMerchantDomainsForRlmiaDynamicButton=[1030427005,-1467922549,-539967585]}.call(this),function(){window.allowlistedMerchantDomainsForPopupModeLoadingScreen=[-1952239152,-1239320691,1567214642,697229904,486133992,-31862958,-1800077669]}.call(this),function(){window.dynamicGpayButtonVariant="GPAY_BUTTON_VARIANT_TYPE_NONE"}.call(this),function(){this.google=this.google||{},this.google.payments=this.google.payments||{},this.google.payments.api=this.google.payments.api||{},this.google.payments.api.ButtonTypePolicyInPayjs=0}.call(this),function(){this.google=this.google||{},this.google.payments=this.google.payments||{},this.google.payments.api=this.google.payments.api||{},this.google.payments.api.IsAnonymousUser=!1}.call(this),function(){for(var D,F=this||self,A=["google","payments","api","ReadyToPayAdditionalBrowsers"],M=window||F;A.length&&(D=A.shift());)A.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,A=["google","payments","api","PaymentHandlerLaunchPayjs"],M=window||F;A.length&&(D=A.shift());)A.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,A=["google","payments","api","PaymentHandlerDynamicUpdatesLaunchPayjs"],M=window||F;A.length&&(D=A.shift());)A.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,A=["google","payments","api","EnablePopupForChromeAndroid"],M=window||F;A.length&&(D=A.shift());)A.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,A=["google","payments","api","EnableDynamicGpayButton"],M=window||F;A.length&&(D=A.shift());)A.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,A=["google","payments","api","EnableDynamicUpdateForClank"],M=window||F;A.length&&(D=A.shift());)A.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,A=["google","payments","api","EnableGpayButtonAriaLabelLocalization"],M=window||F;A.length&&(D=A.shift());)A.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,A=["google","payments","api","EnablePaymentRequest"],M=window||F;A.length&&(D=A.shift());)A.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,A=["google","payments","api","EnableLoadPaymentDataTimeout"],M=window||F;A.length&&(D=A.shift());)A.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,A=["google","payments","api","EnableOfferCallback"],M=window||F;A.length&&(D=A.shift());)A.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,A=["google","payments","api","UseCanMakePaymentForFallbackOnMobile"],M=window||F;A.length&&(D=A.shift());)A.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,A=["google","payments","api","EnableImprovedIsrtpLogging"],M=window||F;A.length&&(D=A.shift());)A.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,A=["google","payments","api","EnableClosePopupOnHostingPageUnload"],M=window||F;A.length&&(D=A.shift());)A.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,A=["google","payments","api","EnablePaymentHandlerSandboxBuyflow"],M=window||F;A.length&&(D=A.shift());)A.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,A=["google","payments","api","EnableGpayButtonDynamicRadius"],M=window||F;A.length&&(D=A.shift());)A.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,A=["google","payments","api","EnableWebNgbfForCallbackIntents"],M=window||F;A.length&&(D=A.shift());)A.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,A=["google","payments","api","EnableDynamicGpayButtonForPayButton"],M=window||F;A.length&&(D=A.shift());)A.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,A=["google","payments","api","EnableDynamicGpayButtonForPlainButton"],M=window||F;A.length&&(D=A.shift());)A.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,A=["google","payments","api","EnableRlmiaButtonAnimation"],M=window||F;A.length&&(D=A.shift());)A.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,A=["google","payments","api","EnableCreateButtonApiOnClickLogging"],M=window||F;A.length&&(D=A.shift());)A.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,A=["google","payments","api","EnableLoadingScreenForPopupMode"],M=window||F;A.length&&(D=A.shift());)A.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,A=["google","payments","api","EnableButtonBorderInset"],M=window||F;A.length&&(D=A.shift());)A.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,A=["google","payments","api","EnableRlmiaSmallerText"],M=window||F;A.length&&(D=A.shift());)A.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){var F,A,M=function(a){var l=0;return function(){return l<a.length?{done:!1,value:a[l++]}:{done:!0}}},D="function"==typeof Object.defineProperties?Object.defineProperty:function(a,l,h){return a==Array.prototype||a==Object.prototype||(a[l]=h.value),a},Ae=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var l=0;l<a.length;++l){var h=a[l];if(h&&h.Math==Math)return h}throw Error("Cannot find global object")}(this),xe="function"==typeof Symbol&&"symbol"==typeof Symbol("x"),$={},ie={},U=function(a,l,h){if(!h||null!=a)return null==(h=ie[l])?a[l]:void 0!==(h=a[h])?h:a[l]},ye=function(a,l,h){if(l)e:{var p=a.split("."),v=p[0];v=!(a=1===p.length)&&v in $?$:Ae;for(var b=0;b<p.length-1;b++){var w=p[b];if(!(w in v))break e;v=v[w]}p=p[p.length-1],null!=(l=l(h=xe&&"es6"===h?v[p]:null))&&(a?D($,p,{configurable:!0,writable:!0,value:l}):l!==h&&(void 0===ie[p]&&(a=1e9*Math.random()>>>0,ie[p]=xe?Ae.Symbol(p):"$jscp$"+a+"$"+p),D(v,ie[p],{configurable:!0,writable:!0,value:l})))}};ye("Symbol",function(a){if(a)return a;var l=function(b,w){this.kc=b,D(this,"description",{configurable:!0,writable:!0,value:w})};l.prototype.toString=function(){return this.kc};var h="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",p=0,v=function(b){if(this instanceof v)throw new TypeError("Symbol is not a constructor");return new l(h+(b||"")+"_"+p++,b)};return v},"es6"),ye("Symbol.iterator",function(a){if(a)return a;a=(0,$.Symbol)("Symbol.iterator");for(var l="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),h=0;h<l.length;h++){var p=Ae[l[h]];"function"==typeof p&&"function"!=typeof p.prototype[a]&&D(p.prototype,a,{configurable:!0,writable:!0,value:function(){return Ir(M(this))}})}return a},"es6");var lr,Ir=function(a){return(a={next:a})[U($.Symbol,"iterator")]=function(){return this},a},Bt="function"==typeof Object.create?Object.create:function(a){var l=function(){};return l.prototype=a,new l};if(xe&&"function"==typeof Object.setPrototypeOf)lr=Object.setPrototypeOf;else{var Vo;e:{var xn={};try{xn.__proto__={a:!0},Vo=xn.a;break e}catch{}Vo=!1}lr=Vo?function(a,l){if(a.__proto__=l,a.__proto__!==l)throw new TypeError(a+" is not extensible");return a}:null}var Ie=lr,Te=function(a){var l=typeof $.Symbol<"u"&&U($.Symbol,"iterator")&&a[U($.Symbol,"iterator")];if(l)return l.call(a);if("number"==typeof a.length)return{next:M(a)};throw Error(String(a)+" is not an iterable or ArrayLike")},et=function(a){if(!(a instanceof Array)){a=Te(a);for(var l,h=[];!(l=a.next()).done;)h.push(l.value);a=h}return a},ht=function(a,l){return Object.prototype.hasOwnProperty.call(a,l)},Pr=xe&&"function"==typeof U(Object,"assign")?U(Object,"assign"):function(a,l){for(var h=1;h<arguments.length;h++){var p=arguments[h];if(p)for(var v in p)ht(p,v)&&(a[v]=p[v])}return a};ye("Object.assign",function(a){return a||Pr},"es6");var io=function(){this.Ja=!1,this.la=null,this.Xa=void 0,this.X=1,this.Rb=this.ob=0,this.wa=null},Zs=function(a){if(a.Ja)throw new TypeError("Generator is already running");a.Ja=!0};io.prototype.Ka=function(a){this.Xa=a},io.prototype.Ta=function(a){this.wa={vc:a,zc:!0},this.X=this.ob||this.Rb},io.prototype.return=function(a){this.wa={return:a},this.X=this.Rb};var oo=function(a,l,h){return a.X=h,{value:l}},xi=function(a){this.h=new io,this.Gc=a};xi.prototype.Ka=function(a){return Zs(this.h),this.h.la?Ks(this,this.h.la.next,a,this.h.Ka):(this.h.Ka(a),so(this))},xi.prototype.Ta=function(a){return Zs(this.h),this.h.la?Ks(this,this.h.la.throw,a,this.h.Ka):(this.h.Ta(a),so(this))};var Ks=function(a,l,h,p){try{var v=l.call(a.h.la,h);if(!(v instanceof Object))throw new TypeError("Iterator result "+v+" is not an object");if(!v.done)return a.h.Ja=!1,v;var b=v.value}catch(w){return a.h.la=null,a.h.Ta(w),so(a)}return a.h.la=null,p.call(a.h,b),so(a)},so=function(a){for(;a.h.X;)try{var l=a.Gc(a.h);if(l)return a.h.Ja=!1,{value:l.value,done:!1}}catch(h){a.h.Xa=void 0,a.h.Ta(h)}if(a.h.Ja=!1,a.h.wa){if(l=a.h.wa,a.h.wa=null,l.zc)throw l.vc;return{value:l.return,done:!0}}return{value:void 0,done:!0}},Im=function(a){this.next=function(l){return a.Ka(l)},this.throw=function(l){return a.Ta(l)},this.return=function(l){return function(a,l){Zs(a.h);var h=a.h.la;return h?Ks(a,"return"in h?h.return:function(p){return{value:p,done:!0}},l,a.h.return):(a.h.return(l),so(a))}(a,l)},this[U($.Symbol,"iterator")]=function(){return this}},jo=function(a){return function(a){function l(p){return a.next(p)}function h(p){return a.throw(p)}return new $.Promise(function(p,v){!function b(w){w.done?p(w.value):$.Promise.resolve(w.value).then(l,h).then(b,v)}(a.next())})}(new Im(new xi(a)))},Bo=function(){for(var a=Number(this),l=[],h=a;h<arguments.length;h++)l[h-a]=arguments[h];return l};ye("globalThis",function(a){return a||Ae},"es_2020"),ye("Promise",function(a){function l(){this.Z=null}function h(w){return w instanceof v?w:new v(function(E){E(w)})}if(a)return a;l.prototype.Kb=function(w){if(null==this.Z){this.Z=[];var E=this;this.Lb(function(){E.wc()})}this.Z.push(w)};var p=Ae.setTimeout;l.prototype.Lb=function(w){p(w,0)},l.prototype.wc=function(){for(;this.Z&&this.Z.length;){var w=this.Z;this.Z=[];for(var E=0;E<w.length;++E){var V=w[E];w[E]=null;try{V()}catch(O){this.rc(O)}}}this.Z=null},l.prototype.rc=function(w){this.Lb(function(){throw w})};var v=function(w){this.Ba=0,this.ea=void 0,this.Aa=[],this.Tb=!1;var E=this.rb();try{w(E.resolve,E.reject)}catch(V){E.reject(V)}};v.prototype.rb=function(){function w(O){return function(X){V||(V=!0,O.call(E,X))}}var E=this,V=!1;return{resolve:w(this.Lc),reject:w(this.Bb)}},v.prototype.Lc=function(w){if(w===this)this.Bb(new TypeError("A Promise cannot resolve to itself"));else if(w instanceof v)this.Oc(w);else{e:switch(typeof w){case"object":var E=null!=w;break e;case"function":E=!0;break e;default:E=!1}E?this.Kc(w):this.Sb(w)}},v.prototype.Kc=function(w){var E=void 0;try{E=w.then}catch(V){return void this.Bb(V)}"function"==typeof E?this.Pc(E,w):this.Sb(w)},v.prototype.Bb=function(w){this.ic(2,w)},v.prototype.Sb=function(w){this.ic(1,w)},v.prototype.ic=function(w,E){if(0!=this.Ba)throw Error("Cannot settle("+w+", "+E+"): Promise already settled in state"+this.Ba);this.Ba=w,this.ea=E,2===this.Ba&&this.Mc(),this.xc()},v.prototype.Mc=function(){var w=this;p(function(){if(w.Cc()){var E=Ae.console;typeof E<"u"&&E.error(w.ea)}},1)},v.prototype.Cc=function(){if(this.Tb)return!1;var w=Ae.CustomEvent,E=Ae.Event,V=Ae.dispatchEvent;return typeof V>"u"||("function"==typeof w?w=new w("unhandledrejection",{cancelable:!0}):"function"==typeof E?w=new E("unhandledrejection",{cancelable:!0}):(w=Ae.document.createEvent("CustomEvent")).initCustomEvent("unhandledrejection",!1,!0,w),w.promise=this,w.reason=this.ea,V(w))},v.prototype.xc=function(){if(null!=this.Aa){for(var w=0;w<this.Aa.length;++w)b.Kb(this.Aa[w]);this.Aa=null}};var b=new l;return v.prototype.Oc=function(w){var E=this.rb();w.bb(E.resolve,E.reject)},v.prototype.Pc=function(w,E){var V=this.rb();try{w.call(E,V.resolve,V.reject)}catch(O){V.reject(O)}},v.prototype.then=function(w,E){function V(pt,Ut){return"function"==typeof pt?function(us){try{O(pt(us))}catch(vn){X(vn)}}:Ut}var O,X,We=new v(function(pt,Ut){O=pt,X=Ut});return this.bb(V(w,O),V(E,X)),We},v.prototype.catch=function(w){return this.then(void 0,w)},v.prototype.bb=function(w,E){function V(){switch(O.Ba){case 1:w(O.ea);break;case 2:E(O.ea);break;default:throw Error("Unexpected state: "+O.Ba)}}var O=this;null==this.Aa?b.Kb(V):this.Aa.push(V),this.Tb=!0},v.resolve=h,v.reject=function(w){return new v(function(E,V){V(w)})},v.race=function(w){return new v(function(E,V){for(var O=Te(w),X=O.next();!X.done;X=O.next())h(X.value).bb(E,V)})},v.all=function(w){var E=Te(w),V=E.next();return V.done?h([]):new v(function(O,X){function We(us){return function(vn){pt[us]=vn,0==--Ut&&O(pt)}}var pt=[],Ut=0;do{pt.push(void 0),Ut++,h(V.value).bb(We(pt.length-1),X),V=E.next()}while(!V.done)})},v},"es6"),ye("Symbol.dispose",function(a){return a||(0,$.Symbol)("Symbol.dispose")},"es_next"),ye("WeakMap",function(a){function l(){}function h(w){var E=typeof w;return"object"===E&&null!==w||"function"===E}if(function(){if(!a||!Object.seal)return!1;try{var w=Object.seal({}),E=Object.seal({}),V=new a([[w,2],[E,3]]);return 2==V.get(w)&&3==V.get(E)&&(V.delete(w),V.set(E,4),!V.has(w)&&4==V.get(E))}catch{return!1}}())return a;var p="$jscomp_hidden_"+Math.random(),v=0,b=function(w){if(this.Ha=(v+=Math.random()+1).toString(),w){w=Te(w);for(var E;!(E=w.next()).done;)this.set((E=E.value)[0],E[1])}};return b.prototype.set=function(w,E){if(!h(w))throw Error("Invalid WeakMap key");if(!ht(w,p)){var V=new l;D(w,p,{value:V})}if(!ht(w,p))throw Error("WeakMap key fail: "+w);return w[p][this.Ha]=E,this},b.prototype.get=function(w){return h(w)&&ht(w,p)?w[p][this.Ha]:void 0},b.prototype.has=function(w){return h(w)&&ht(w,p)&&ht(w[p],this.Ha)},b.prototype.delete=function(w){return!!(h(w)&&ht(w,p)&&ht(w[p],this.Ha))&&delete w[p][this.Ha]},b},"es6"),ye("Map",function(a){if(function(){if(!a||"function"!=typeof a||!U(a.prototype,"entries")||"function"!=typeof Object.seal)return!1;try{var E=Object.seal({x:4}),V=new a(Te([[E,"s"]]));if("s"!=V.get(E)||1!=V.size||V.get({x:4})||V.set({x:4},"t")!=V||2!=V.size)return!1;var O=U(V,"entries").call(V),X=O.next();return!X.done&&X.value[0]==E&&"s"==X.value[1]&&!((X=O.next()).done||4!=X.value[0].x||"t"!=X.value[1]||!O.next().done)}catch{return!1}}())return a;var l=new $.WeakMap,h=function(E){if(this[0]={},this[1]=b(),this.size=0,E){E=Te(E);for(var V;!(V=E.next()).done;)this.set((V=V.value)[0],V[1])}};h.prototype.set=function(E,V){var O=p(this,E=0===E?0:E);return O.list||(O.list=this[0][O.id]=[]),O.C?O.C.value=V:(O.C={next:this[1],Y:this[1].Y,head:this[1],key:E,value:V},O.list.push(O.C),this[1].Y.next=O.C,this[1].Y=O.C,this.size++),this},h.prototype.delete=function(E){return!(!(E=p(this,E)).C||!E.list||(E.list.splice(E.index,1),E.list.length||delete this[0][E.id],E.C.Y.next=E.C.next,E.C.next.Y=E.C.Y,E.C.head=null,this.size--,0))},h.prototype.clear=function(){this[0]={},this[1]=this[1].Y=b(),this.size=0},h.prototype.has=function(E){return!!p(this,E).C},h.prototype.get=function(E){return(E=p(this,E).C)&&E.value},h.prototype.entries=function(){return v(this,function(E){return[E.key,E.value]})},h.prototype.keys=function(){return v(this,function(E){return E.key})},h.prototype.values=function(){return v(this,function(E){return E.value})},h.prototype.forEach=function(E,V){for(var X,O=U(this,"entries").call(this);!(X=O.next()).done;)E.call(V,(X=X.value)[1],X[0],this)},h.prototype[U($.Symbol,"iterator")]=U(h.prototype,"entries");var p=function(E,V){var O=V&&typeof V;"object"==O||"function"==O?l.has(V)?O=l.get(V):(O=""+ ++w,l.set(V,O)):O="p_"+V;var X=E[0][O];if(X&&ht(E[0],O))for(E=0;E<X.length;E++){var We=X[E];if(V!=V&&We.key!=We.key||V===We.key)return{id:O,list:X,index:E,C:We}}return{id:O,list:X,index:-1,C:void 0}},v=function(E,V){var O=E[1];return Ir(function(){if(O){for(;O.head!=E[1];)O=O.Y;for(;O.next!=O.head;)return{done:!1,value:V(O=O.next)};O=null}return{done:!0,value:void 0}})},b=function(){var E={};return E.Y=E.next=E.head=E},w=0;return h},"es6");var Wu=function(a,l){a instanceof String&&(a+="");var h=0,p=!1,v={next:function(){if(!p&&h<a.length){var b=h++;return{value:l(b,a[b]),done:!1}}return p=!0,{done:!0,value:void 0}}};return v[U($.Symbol,"iterator")]=function(){return v},v};ye("Array.prototype.entries",function(a){return a||function(){return Wu(this,function(l,h){return[l,h]})}},"es6"),ye("Array.prototype.keys",function(a){return a||function(){return Wu(this,function(l){return l})}},"es6"),ye("Object.entries",function(a){return a||function(l){var p,h=[];for(p in l)ht(l,p)&&h.push([p,l[p]]);return h}},"es8"),ye("Array.prototype.values",function(a){return a||function(){return Wu(this,function(l,h){return h})}},"es8"),ye("Array.from",function(a){return a||function(l,h,p){h=h??function(E){return E};var v=[],b=typeof $.Symbol<"u"&&U($.Symbol,"iterator")&&l[U($.Symbol,"iterator")];if("function"==typeof b){l=b.call(l);for(var w=0;!(b=l.next()).done;)v.push(h.call(p,b.value,w++))}else for(b=l.length,w=0;w<b;w++)v.push(h.call(p,l[w],w));return v}},"es6"),ye("Object.values",function(a){return a||function(l){var p,h=[];for(p in l)ht(l,p)&&h.push(l[p]);return h}},"es8"),ye("Object.is",function(a){return a||function(l,h){return l===h?0!==l||1/l==1/h:l!=l&&h!=h}},"es6"),ye("Array.prototype.includes",function(a){return a||function(l,h){var p=this;p instanceof String&&(p=String(p));var v=p.length;for((h=h||0)<0&&(h=Math.max(h+v,0));h<v;h++){var b=p[h];if(b===l||U(Object,"is").call(Object,b,l))return!0}return!1}},"es7"),ye("String.prototype.includes",function(a){return a||function(l,h){if(null==this)throw new TypeError("The 'this' value for String.prototype.includes must not be null or undefined");if(l instanceof RegExp)throw new TypeError("First argument to String.prototype.includes must not be a regular expression");return-1!==(this+"").indexOf(l,h||0)}},"es6");var ao=this||self,Zu=function(a,l){a=a.split(".");for(var p,h=window||ao;a.length&&(p=a.shift());)a.length||void 0===l?h=h[p]&&h[p]!==Object.prototype[p]?h[p]:h[p]={}:h[p]=l},Xs=function(a){var l=typeof a;return"object"!=l?l:a?Array.isArray(a)?"array":l:"null"},Qs=function(a){var l=Xs(a);return"array"==l||"object"==l&&"number"==typeof a.length},dr=function(a){var l=typeof a;return"object"==l&&null!=a||"function"==l},Pm=function(a,l,h){return a.call.apply(a.bind,arguments)},jb=function(a,l,h){if(!a)throw Error();if(arguments.length>2){var p=Array.prototype.slice.call(arguments,2);return function(){var v=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(v,p),a.apply(l,v)}}return function(){return a.apply(l,arguments)}},Yu=function(a,l,h){return(Yu=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?Pm:jb).apply(null,arguments)},ki=function(a,l){function h(){}h.prototype=l.prototype,a.Da=l.prototype,a.prototype=new h,a.prototype.constructor=a,a.zd=function(p,v,b){for(var w=Array(arguments.length-2),E=2;E<arguments.length;E++)w[E-2]=arguments[E];return l.prototype[v].apply(p,w)}};function Ho(a,l){if(Error.captureStackTrace)Error.captureStackTrace(this,Ho);else{var h=Error().stack;h&&(this.stack=h)}a&&(this.message=String(a)),void 0!==l&&(this.cause=l)}function Ku(a,l){for(var h="",p=(a=a.split("%s")).length-1,v=0;v<p;v++)h+=a[v]+(v<l.length?l[v]:"%s");Ho.call(this,h+a[p])}function Js(a,l,h,p){var v="Assertion failed";if(h){v+=": "+h;var b=p}else a&&(v+=": "+a,b=l);throw new Ku(""+v,b||[])}ki(Ho,Error),Ho.prototype.name="CustomError",ki(Ku,Ho),Ku.prototype.name="AssertionError";var kn=function(a,l,h){return a||Js("",null,l,Array.prototype.slice.call(arguments,2)),a},Ni=function(a,l,h){return"number"!=typeof a&&Js("Expected number but got %s: %s.",[Xs(a),a],l,Array.prototype.slice.call(arguments,2)),a},ea=function(a,l){this.jc=a===Go&&l||"",this.oc=ta};ea.prototype.toString=function(){return this.jc};var st=function(a){return a instanceof ea&&a.constructor===ea&&a.oc===ta?a.jc:(function(a,l){throw new Ku("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1))}("expected object of type Const, got '"+a+"'"),"type_error:Const")},zn=function(a){return new ea(Go,a)},ta={},Go={},ln={lc:"PAYMENT_AUTHORIZATION",mc:"SHIPPING_ADDRESS",nc:"SHIPPING_OPTION",vd:"UNKNOWN_INTENT"},wd={Wc:"CANARY",fd:"LOCAL",od:"PREPROD",pd:"PRODUCTION",qd:"SANDBOX",td:"TEST",ud:"TIN"},Cd={Yc:"CRYPTOGRAM_3DS",ld:"PAN_ONLY"},Ed={bd:"ESTIMATED",dd:"FINAL",hd:"NOT_CURRENTLY_KNOWN"},Oi={SHORT:"short",gd:"long",nd:"plain",Vc:"buy",ad:"donate",Uc:"book",Xc:"checkout",kd:"order",md:"pay",sd:"subscribe"},na={Zc:"default",Tc:"black",xd:"white"},Dd={rd:"static",cd:"fill"},uo={buy:{en:152,ar:189,bg:163,ca:182,cs:192,da:154,de:183,el:178,es:183,et:147,fi:148,fr:183,hr:157,id:186,it:182,ja:148,ko:137,ms:186,nl:167,no:158,pl:182,pt:193,ru:206,sk:157,sl:211,sr:146,sv:154,th:146,tr:161,uk:207,zh:156},book:{ar:205,bg:233,ca:187,cs:213,da:162,de:176,el:180,en:161,es:188,et:186,fi:152,fr:197,hr:198,id:195,it:178,ja:150,ko:150,ms:211,nl:178,no:195,pl:221,pt:208,ru:265,sk:206,sl:266,sr:196,sv:161,th:150,tr:238,uk:248,zh:158},checkout:{ar:245,bg:200,ca:268,cs:175,da:162,de:188,el:286,en:201,es:188,et:171,fi:158,fr:170,hr:166,id:226,it:256,ja:150,ko:150,ms:291,nl:178,no:230,pl:187,pt:271,ru:283,sk:176,sl:313,sr:153,sv:172,th:168,tr:195,uk:216,zh:158},donate:{ar:205,bg:205,ca:162,cs:212,da:171,de:186,el:163,en:180,es:165,et:150,fi:171,fr:225,hr:182,id:237,it:157,ja:167,ko:150,ms:201,nl:187,no:171,pl:252,pt:175,ru:342,sk:178,sl:242,sr:171,sv:181,th:158,tr:181,uk:256,zh:158},order:{ar:198,bg:195,ca:247,cs:198,da:166,de:190,el:208,en:170,es:157,et:150,fi:150,fr:226,hr:201,id:195,it:171,ja:150,ko:150,ms:195,nl:192,no:171,pl:190,pt:177,ru:207,sk:190,sl:240,sr:165,sv:176,th:151,tr:188,uk:216,zh:158},pay:{ar:202,bg:200,ca:160,cs:183,da:162,de:188,el:185,en:150,es:162,et:150,fi:158,fr:170,hr:172,id:192,it:155,ja:150,ko:150,ms:192,nl:178,no:162,pl:187,pt:182,ru:213,sk:176,sl:225,sr:153,sv:172,th:168,tr:150,uk:216,zh:158},subscribe:{ar:221,bg:217,ca:226,cs:201,da:192,de:208,el:180,en:202,es:206,et:150,fi:150,fr:206,hr:178,id:260,it:190,ja:150,ko:150,ms:216,nl:208,no:192,pl:221,pt:196,ru:243,sk:193,sl:333,sr:217,sv:228,th:213,tr:173,uk:305,zh:158}},Ri={buy:{ar:"\u0627\u0644\u0634\u0631\u0627\u0621 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 GPay",bg:"\u041a\u0443\u043f\u0443\u0432\u0430\u043d\u0435 \u0447\u0440\u0435\u0437 GPay",ca:"Compra amb GPay",cs:"Koupit s GPay",da:"K\xf8b med GPay",de:"Mit GPay kaufen",el:"\u0391\u03b3\u03bf\u03c1\u03ac \u03bc\u03b5 GPay",en:"Buy with GPay",es:"Comprar con GPay",et:"Osta GPayga",fi:"Osta GPaylla",fr:"Acheter avec GPay",hr:"Kupnja uz GPay",id:"Beli dengan GPay",it:"Acquista con GPay",ja:"GPay \u3067\u8cfc\u5165\u3059\u308b",ko:"GPay\ub85c \uad6c\ub9e4",ms:"Beli dengan GPay",nl:"Kopen met GPay",no:"Kj\xf8p med GPay",pl:"Kup to z GPay",pt:"Comprar com o GPay",ru:"\u041a\u0443\u043f\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 GPay",sk:"K\xfapi\u0165 cez GPay",sl:"Nakup s storitvijo GPay",sr:"\u041a\u0443\u043f\u0438 \u0443\u0437 GPay",sv:"K\xf6pa med GPay",th:"\u0e0b\u0e37\u0e49\u0e2d\u0e14\u0e49\u0e27\u0e22 GPay",tr:"GPayile sat\u0131n al",uk:"\u041a\u0443\u043f\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 GPay",zh:"\u901a\u8fc7 GPay \u8d2d\u4e70"},book:{ar:"\u0627\u0644\u062d\u062c\u0632 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 GPay",bg:"\u0420\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u0430\u043d\u0435 \u0447\u0440\u0435\u0437 GPay",ca:"Reserva amb GPay",cs:"Rezervovat s GPay",da:"Book med GPay",de:"Mit GPay buchen",el:"\u039a\u03c1\u03ac\u03c4\u03b7\u03c3\u03b7 \u03bc\u03b5 GPay",en:"Book with GPay",es:"Reservar con GPay",et:"Broneeri GPayga",fi:"Varaa GPaylla",fr:"R\xe9server avec GPay",hr:"Rezervacija uz GPay",id:"Reservasi dengan GPay",it:"Prenota con GPay",ja:"GPay \u3067\u4e88\u7d04\u3059\u308b",ko:"GPay\ub85c \uc608\uc57d",ms:"Tempah dengan GPay",nl:"Boeken met GPay",no:"Bestill med GPay",pl:"Zarezerwuj z GPay",pt:"Reservar com o GPay",ru:"\u0417\u0430\u0431\u0440\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 GPay",sk:"Rezervova\u0165 cez GPay",sl:"Rezervacija s storitvijo GPay",sr:"\u0420\u0435\u0437\u0435\u0440\u0432\u0438\u0448\u0438 \u0443\u0437 GPay",sv:"Boka med GPay",th:"\u0e08\u0e2d\u0e07\u0e14\u0e49\u0e27\u0e22 GPay",tr:"GPayile rezervasyon yap",uk:"\u0417\u0430\u0431\u0440\u043e\u043d\u044e\u0432\u0430\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 GPay",zh:"\u901a\u8fc7 GPay \u9884\u8ba2"},checkout:{ar:"\u0625\u062a\u0645\u0627\u0645 \u0627\u0644\u062f\u0641\u0639 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 GPay",bg:"\u041f\u043b\u0430\u0449\u0430\u043d\u0435 \u0447\u0440\u0435\u0437 GPay",ca:"Tramita la compra amb GPay",cs:"Zaplatit s GPay",da:"Betal med GPay",de:"Mit GPay bezahlen",el:"\u039f\u03bb\u03bf\u03ba\u03bb\u03ae\u03c1\u03c9\u03c3\u03b7 \u03b1\u03b3\u03bf\u03c1\u03ac\u03c2 \u03bc\u03b5 GPay",en:"Checkout with GPay",es:"Confirmar compra con GPay",et:"Tasu GPayga",fi:"Osta GPaylla",fr:"R\xe9gler avec GPay",hr:"Naplata uz GPay",id:"Checkout dengan GPay",it:"Vai al pagamento con GPay",ja:"GPay \u3067\u6c7a\u6e08\u3059\u308b",ko:"GPay\ub85c \uacb0\uc81c",ms:"Semak keluar dengan GPay",nl:"Betalen met GPay",no:"Betal med GPay",pl:"Zap\u0142a\u0107 przez GPay",pt:"Pagar com o GPay",ru:"\u041e\u043f\u043b\u0430\u0442\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 GPay",sk:"Zaplati\u0165 cez GPay",sl:"Zaklju\u010dek nakupa s storitvijo GPay",sr:"\u041f\u043b\u0430\u0442\u0438 \u0443\u0437 GPay",sv:"Handla med GPay",th:"\u0e0a\u0e33\u0e23\u0e30\u0e40\u0e07\u0e34\u0e19\u0e14\u0e49\u0e27\u0e22 GPay",tr:"GPayile \xf6deme yap",uk:"\u041e\u043f\u043b\u0430\u0442\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 GPay",zh:"\u901a\u8fc7 GPay \u7ed3\u8d26"},donate:{ar:"\u0627\u0644\u062a\u0628\u0631\u0651\u0639 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 GPay",bg:"\u0414\u0430\u0440\u044f\u0432\u0430\u043d\u0435 \u0447\u0440\u0435\u0437 GPay",ca:"Fes una donaci\xf3 amb GPay",cs:"Darovat s GPay",da:"Doner med GPay",de:"Mit GPay spenden",el:"\u0394\u03c9\u03c1\u03b5\u03ac \u03bc\u03b5 GPay",en:"Donate with GPay",es:"Donar con GPay",et:"Anneta GPayga",fi:"Lahjoita GPaylla",fr:"Donner avec GPay",hr:"Donacija uz GPay",id:"Beri donasi dengan GPay",it:"Fai una donazione con GPay",ja:"GPay \u3067\u5bc4\u4ed8\u3059\u308b",ko:"GPay\ub85c \uae30\ubd80",ms:"Derma dengan GPay",nl:"Doneren met GPay",no:"Don\xe9r med GPay",pl:"Przeka\u017c darowizn\u0119 przez GPay",pt:"Doar com o GPay",ru:"\u041f\u043e\u0436\u0435\u0440\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 GPay",sk:"Darova\u0165 cez GPay",sl:"Donacija s storitvijo GPay",sr:"\u0414\u043e\u043d\u0438\u0440\u0430\u0458 \u0443\u0437 GPay",sv:"Donera med GPay",th:"\u0e1a\u0e23\u0e34\u0e08\u0e32\u0e04\u0e14\u0e49\u0e27\u0e22 GPay",tr:"GPayile ba\u011f\u0131\u015f yap",uk:"\u041f\u043e\u0436\u0435\u0440\u0442\u0432\u0443\u0432\u0430\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 GPay",zh:"\u901a\u8fc7 GPay \u6350\u6b3e"},order:{ar:"\u0627\u0644\u0637\u0644\u0628 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 GPay",bg:"\u041f\u043e\u0440\u044a\u0447\u0432\u0430\u043d\u0435 \u0447\u0440\u0435\u0437 GPay",ca:"Fes una comanda amb GPay",cs:"Objednat s GPay",da:"Bestil med GPay",de:"Mit GPay bestellen",el:"\u03a0\u03b1\u03c1\u03b1\u03b3\u03b3\u03b5\u03bb\u03af\u03b1 \u03bc\u03b5 GPay",en:"Order with GPay",es:"Realizar pedido con GPay",et:"Telli GPayga",fi:"Tee tilaus GPaylla",fr:"Commander avec GPay",hr:"Narud\u017eba uz GPay",id:"Pesan dengan GPay",it:"Ordina con GPay",ja:"GPay \u3067\u6ce8\u6587\u3059\u308b",ko:"GPay\ub85c \uc8fc\ubb38",ms:"Pesan dengan GPay",nl:"Bestellen met GPay",no:"Bestill med GPay",pl:"Zam\xf3w z GPay",pt:"Pedir com o GPay",ru:"\u0417\u0430\u043a\u0430\u0437\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 GPay",sk:"Objedna\u0165 cez GPay",sl:"Naro\u010dilo s storitvijo GPay",sr:"\u041f\u043e\u0440\u0443\u0447\u0438 \u0443\u0437 GPay ",sv:"Best\xe4lla med GPay",th:"\u0e2a\u0e31\u0e48\u0e07\u0e0b\u0e37\u0e49\u0e2d\u0e14\u0e49\u0e27\u0e22 GPay",tr:"GPayile sipari\u015f ver",uk:"\u0417\u0430\u043c\u043e\u0432\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 GPay",zh:"\u901a\u8fc7 GPay \u8ba2\u8d2d"},pay:{ar:"\u0627\u0644\u062f\u0641\u0639 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 GPay",bg:"\u041f\u043b\u0430\u0449\u0430\u043d\u0435 \u0447\u0440\u0435\u0437 GPay",ca:"Paga amb GPay",cs:"Zaplatit s GPay",da:"Betal med GPay",de:"Mit GPay bezahlen",el:"\u03a0\u03bb\u03b7\u03c1\u03c9\u03bc\u03ae \u03bc\u03b5 GPay",en:"Pay with GPay",es:"Pagar con GPay",et:"Maksa GPayga",fi:"Maksa GPaylla",fr:"Payer avec GPay",hr:"Pla\u0107anje uz GPay",id:"Bayar dengan GPay",it:"Paga con GPay",ja:"GPay \u3067\u652f\u6255\u3046",ko:"GPay\ub85c \uacb0\uc81c",ms:"Bayar dengan GPay",nl:"Betalen met GPay",no:"Betal med GPay",pl:"Zap\u0142a\u0107 przez GPay",pt:"Pagar com o GPay",ru:"\u0420\u0430\u0441\u043f\u043b\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u0447\u0435\u0440\u0435\u0437 GPay",sk:"Zaplati\u0165 cez GPay",sl:"Pla\u010dilo s storitvijo GPay",sr:"\u041f\u043b\u0430\u0442\u0438 \u0443\u0437 GPay",sv:"Betala med GPay",th:"\u0e0a\u0e33\u0e23\u0e30\u0e40\u0e07\u0e34\u0e19\u0e14\u0e49\u0e27\u0e22 GPay",tr:"GPayile \xf6de",uk:"\u0421\u043f\u043b\u0430\u0442\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 GPay",zh:"\u901a\u8fc7 GPay \u4ed8\u6b3e"},subscribe:{ar:"\u0627\u0644\u0627\u0634\u062a\u0631\u0627\u0643 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 GPay",bg:"\u0410\u0431\u043e\u043d\u0438\u0440\u0430\u043d\u0435 \u0447\u0440\u0435\u0437 GPay",ca:"Subscriu-te amb GPay",cs:"P\u0159edplatit s GPay",da:"Abonner med GPay",de:"Mit GPay abonnieren",el:"\u0395\u03b3\u03b3\u03c1\u03b1\u03c6\u03ae \u03bc\u03b5 GPay",en:"Subscribe with GPay",es:"Suscribirse con GPay",et:"Telli GPayga",fi:"Tilaa GPaylla",fr:"S'abonner avecGPay",hr:"Pretplata uz GPay",id:"Berlangganan dengan GPay",it:"Abbonati con GPay",ja:"GPay \u3067\u5b9a\u671f\u8cfc\u5165\u3059\u308b",ko:"GPay\ub85c \uad6c\ub3c5",ms:"Langgan dengan GPay",nl:"Abonneren met GPay",no:"Abonner med GPay",pl:"Zasubskrybuj z GPay",pt:"Assinar com o GPay",ru:"\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u0447\u0435\u0440\u0435\u0437 GPay",sk:"Odobera\u0165 cez GPay",sl:"Sklenitev naro\u010dnine s storitvijo GPay",sr:"\u041f\u0440\u0435\u0442\u043f\u043b\u0430\u0442\u0430 \u0443\u0437 GPay",sv:"Prenumerera med GPay",th:"\u0e2a\u0e21\u0e31\u0e04\u0e23\u0e43\u0e0a\u0e49\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e14\u0e49\u0e27\u0e22 GPay",tr:"GPayile abone ol",uk:"\u041e\u0444\u043e\u0440\u043c\u0438\u0442\u0438 \u043f\u0456\u0434\u043f\u0438\u0441\u043a\u0443 \u0447\u0435\u0440\u0435\u0437 GPay",zh:"\u901a\u8fc7 GPay \u8ba2\u9605"}},ra={GPAY_BUTTON_VARIANT_TYPE_BNPL_CARD:{ar:"\u0627\u0644\u062f\u0641\u0639 \u0627\u0644\u0622\u0646 \u0623\u0648 \u0644\u0627\u062d\u0642\u064b\u0627 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 Google Pay",bg:"\u041f\u043b\u0430\u0442\u0435\u0442\u0435 \u0441\u0435\u0433\u0430 \u0438\u043b\u0438 \u043f\u043e-\u043a\u044a\u0441\u043d\u043e \u0441 Google Pay",ca:"Paga ara o m\xe9s tard amb Google Pay",cs:"Pla\u0165te ihned nebo pozd\u011bji s Google Pay",da:"Betal nu eller senere med Google Pay",de:"Jetzt oder sp\xe4ter mit Google Pay bezahlen",el:"\u03a0\u03bb\u03b7\u03c1\u03c9\u03bc\u03ae \u03c4\u03ce\u03c1\u03b1 \u03ae \u03b1\u03c1\u03b3\u03cc\u03c4\u03b5\u03c1\u03b1 \u03bc\u03b5 \u03c4\u03bf Google Pay",en:"Pay Now or Later with Google Pay",es:"Paga ahora o m\xe1s tarde con Google Pay",et:"Makske kohe v\xf5i hiljem koos Google Payga",fi:"Maksa nyt tai my\xf6hemmin Google Paylla",fr:"Payer maintenant ou plus tard avec Google Pay",hr:"Platite odmah ili kasnije uz Google Pay",id:"Bayar Sekarang atau Nanti dengan Google Pay",it:"Paga ora o dopo con Google Pay",ja:"Google Pay \u3067\u4eca\u3059\u3050\u652f\u6255\u3046\u304b\u3001\u5f8c\u3067\u652f\u6255\u3046",ko:"Google Pay\uc5d0\uc11c \uc9c0\uae08 \ub610\ub294 \ub098\uc911\uc5d0 \uacb0\uc81c",ms:"Bayar Sekarang atau Kemudian dengan Google Pay",nl:"Betaal nu of later met Google Pay",no:"Betal n\xe5 eller senere med Google Pay",pl:"Zap\u0142a\u0107 teraz lub p\xf3\u017aniej za pomoc\u0105 Google Pay",pt:"Pagar agora ou depois com o Google Pay",ru:"\u041f\u043b\u0430\u0442\u0438\u0442\u0435 \u0447\u0435\u0440\u0435\u0437 Google Pay \u0441\u0440\u0430\u0437\u0443 \u0438\u043b\u0438 \u0432 \u0440\u0430\u0441\u0441\u0440\u043e\u0447\u043a\u0443",sk:"Zaplati\u0165 teraz alebo nesk\xf4r cez Google Pay",sl:"Pla\u010dajte zdaj ali pozneje z Googlom Pay",sr:"\u041f\u043b\u0430\u0442\u0438\u0442\u0435 \u043e\u0434\u043c\u0430\u0445 \u0438\u043b\u0438 \u043a\u0430\u0441\u043d\u0438\u0458\u0435 \u043f\u043e\u043c\u043e\u045b\u0443 Google Pay-\u0430",sv:"Betala nu eller senare med Google Pay",th:"\u0e08\u0e48\u0e32\u0e22\u0e15\u0e2d\u0e19\u0e19\u0e35\u0e49\u0e2b\u0e23\u0e37\u0e2d\u0e08\u0e48\u0e32\u0e22\u0e17\u0e35\u0e2b\u0e25\u0e31\u0e07\u0e44\u0e14\u0e49\u0e14\u0e49\u0e27\u0e22 Google Pay",tr:"Google Pay ile \u015eimdi veya Sonra \xd6de",uk:"\u041e\u043f\u043b\u0430\u0442\u0456\u0442\u044c \u0437\u0430\u0440\u0430\u0437 \u0430\u0431\u043e \u043f\u0456\u0437\u043d\u0456\u0448\u0435 \u0447\u0435\u0440\u0435\u0437 Google Pay",zh:"\u901a\u8fc7 Google Pay \u53ef\u7acb\u5373\u4ed8\u6b3e\u6216\u65e5\u540e\u4ed8\u6b3e"},GPAY_BUTTON_VARIANT_TYPE_BNPL_ONLY:{ar:'\u0645\u064a\u0632\u0629 "\u0627\u0644\u062f\u0641\u0639 \u0644\u0627\u062d\u0642\u064b\u0627" \u0645\u062a\u0627\u062d\u0629 \u0645\u0639 Google Pay',bg:"\u0424\u0443\u043d\u043a\u0446\u0438\u044f\u0442\u0430 \u201e\u041f\u043b\u0430\u0449\u0430\u043d\u0435 \u043f\u043e-\u043a\u044a\u0441\u043d\u043e\u201c \u0435 \u043d\u0430\u043b\u0438\u0446\u0435 \u0441 Google Pay",ca:"Paga m\xe9s tard disponible amb Google Pay",cs:"Zaplatit pozd\u011bji dostupn\xe9 s Google Pay",da:"Betal senere er tilg\xe6ngeligt med Google Pay",de:"\u201eSp\xe4ter bezahlen\u201c mit Google Pay verf\xfcgbar",el:"\u039c\u03b5 \u03c4\u03bf Google Pay, \u03b4\u03b9\u03b1\u03c4\u03af\u03b8\u03b5\u03c4\u03b1\u03b9 \u03b7 \u03b5\u03c0\u03b9\u03bb\u03bf\u03b3\u03ae \u03a0\u03bb\u03b7\u03c1\u03c9\u03bc\u03ae \u03b1\u03c1\u03b3\u03cc\u03c4\u03b5\u03c1\u03b1",en:"Pay Later available with Google Pay",es:"Pago m\xe1s tarde disponible con Google Pay",et:"Funktsioon Maksa hiljem saadaval koos Google Payga",fi:"Maksa my\xf6hemmin Google Paylla",fr:"Payer plus tard avec Google Pay",hr:"Pla\u0107anje kasnije dostupno je uz Google Pay",id:"Bayar Nanti tersedia dengan Google Pay",it:"Paga dopo disponibile con Google Pay",ja:"Google Pay \u3067\u5f8c\u6255\u3044\u304c\u5229\u7528\u53ef\u80fd",ko:"Google Pay\uc5d0\uc11c \ub098\uc911\uc5d0 \uacb0\uc81c \uac00\ub2a5",ms:"Bayar Kemudian tersedia dengan Google Pay",nl:"Betaal later is beschikbaar met Google Pay",no:"\xabBetal senere\xbb er tilgjengelig med Google Pay",pl:"Funkcja Zap\u0142a\u0107 p\xf3\u017aniej jest dost\u0119pna w Google Pay",pt:"Pagar depois dispon\xedvel com o Google Pay",ru:"\u0427\u0435\u0440\u0435\u0437 Google Pay \u043c\u043e\u0436\u043d\u043e \u043f\u043b\u0430\u0442\u0438\u0442\u044c \u0432 \u0440\u0430\u0441\u0441\u0440\u043e\u0447\u043a\u0443",sk:"Mo\u017enos\u0165 Zaplati\u0165 nesk\xf4r je k dispoz\xedcii v slu\u017ebe Google Pay",sl:"Poznej\u0161e pla\u010dilo je na voljo z Googlom Pay",sr:"\u041e\u043f\u0446\u0438\u0458\u0430 \u041f\u043b\u0430\u0442\u0438 \u043a\u0430\u0441\u043d\u0438\u0458\u0435 \u0458\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0443\u0437 Google Pay",sv:"Betala senare \xe4r tillg\xe4ngligt med Google Pay",th:"\u0e08\u0e48\u0e32\u0e22\u0e17\u0e35\u0e2b\u0e25\u0e31\u0e07\u0e44\u0e14\u0e49\u0e14\u0e49\u0e27\u0e22 Google Pay",tr:"Google Pay ile Sonra \xd6de se\xe7ene\u011fi kullan\u0131labilir.",uk:"\u041e\u043f\u043b\u0430\u0442\u0456\u0442\u044c \u043f\u0456\u0437\u043d\u0456\u0448\u0435 \u0447\u0435\u0440\u0435\u0437 Google Pay",zh:"Google Pay \u652f\u6301\u65e5\u540e\u4ed8\u6b3e"},GPAY_BUTTON_VARIANT_TYPE_OLYMPICS:{buy:{ar:"\u0627\u0644\u0634\u0631\u0627\u0621 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 Google Pay (\u0645\u0646\u0627\u0641\u0633\u0648\u0646 \u062f\u0648\u0644\u064a\u0648\u0646 \u064a\u0633\u0628\u062d\u0648\u0646 \u0644\u062a\u062d\u0642\u064a\u0642 \u0627\u0644\u0641\u0648\u0632)",bg:"\u041a\u0443\u043f\u0435\u0442\u0435 \u0441 Google Pay. \u041c\u0435\u0436\u0434\u0443\u043d\u0430\u0440\u043e\u0434\u043d\u0438 \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u0438, \u043f\u043b\u0443\u0432\u0430\u0449\u0438 \u043a\u044a\u043c \u043f\u043e\u0431\u0435\u0434\u0430\u0442\u0430",ca:"Compra amb Google Pay. Competidors internacionals nedant cap a la vict\xf2ria.",cs:"Nakupujte pomoc\xed Google Pay. Mezin\xe1rodn\xed z\xe1vodn\xedci plavou k v\xedt\u011bzstv\xed",da:"K\xf8b med Google Pay. Internationale konkurrenter sv\xf8mmer mod sejren",de:"Mit Google Pay kaufen. Internationale Schwimmer auf dem Weg zu Gold",el:"\u0391\u03b3\u03bf\u03c1\u03ac \u03bc\u03b5 Google Pay. \u0391\u03bd\u03c4\u03af\u03c0\u03b1\u03bb\u03bf\u03b9 \u03b1\u03c0\u03cc \u03cc\u03bb\u03bf \u03c4\u03bf\u03bd \u03ba\u03cc\u03c3\u03bc\u03bf \u03ba\u03bf\u03bb\u03c5\u03bc\u03c0\u03bf\u03cd\u03bd \u03c0\u03c1\u03bf\u03c2 \u03c4\u03b7 \u03bd\u03af\u03ba\u03b7",en:"Buy with Google Pay. International competitors swimming toward victory",es:"Comprar con Google Pay. Competidores internacionales nadando hacia la victoria",et:"Ostke Google Payga. Rahvusvahelisel v\xf5istlusel v\xf5idu poole ujujad",fi:"Osta Google Paylla. Kansainv\xe4liset kilpailijat uimassa kohti voittoa",fr:"Acheter avec Google Pay. Nageurs qui s'\xe9lancent vers la victoire dans une comp\xe9tition internationale.",hr:"Kupite uz Google Pay. Me\u0111unarodni natjecatelji plivaju prema pobjedi",id:"Beli dengan Google Pay. Peserta dari berbagai negara berupaya meraih kemenangan",it:"Acquista con Google Pay. Atleti internazionali che nuotano verso la vittoria",ja:"Google Pay \u3067\u8cfc\u5165\u3002\u52dd\u5229\u3092\u76ee\u6307\u3057\u3066\u6cf3\u3050\u5404\u56fd\u306e\u9078\u624b\u305f\u3061",ko:"Google Pay\ub85c \uad6c\ub9e4. \uc2b9\ub9ac\ub97c \ud5a5\ud574 \ud5e4\uc5c4\uce58\ub294 \uc804 \uc138\uacc4 \uc120\uc218\ub4e4",ms:"Beli melalui Google Pay. Pesaing antarabangsa berenang untuk meraih kejayaan",nl:"Kopen met Google Pay. Internationale concurrenten zwemmen naar de overwinning.",no:"Kj\xf8p med Google Pay. Konkurrenter fra ulike land sv\xf8mmer mot seier",pl:"Zap\u0142a\u0107 przez Google Pay Mi\u0119dzynarodowi zawodnicy p\u0142yn\u0105cy po zwyci\u0119stwo",pt:"Comprar com o Google Pay. Os competidores internacionais est\xe3o nadando em dire\xe7\xe3o \xe0 vit\xf3ria",ru:"\u041e\u043f\u043b\u0430\u0442\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 Google Pay. \u0423\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438 \u043c\u0435\u0436\u0434\u0443\u043d\u0430\u0440\u043e\u0434\u043d\u043e\u0433\u043e \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043b\u044b\u0432\u0443\u0442 \u043a \u0444\u0438\u043d\u0438\u0448\u0443",sk:"K\xfapi\u0165 cez Google Pay. Medzin\xe1rodn\xed pretek\xe1ri pl\xe1vaj\xfaci za v\xed\u0165azstvom",sl:"Nakup z Googlom Pay. Mednarodni tekmovalci, ki plavajo proti zmagi",sr:"\u041a\u0443\u043f\u0438\u0442\u0435 \u043f\u043e\u043c\u043e\u045b\u0443 Google Pay-\u0430. \u041c\u0435\u0452\u0443\u043d\u0430\u0440\u043e\u0434\u043d\u0438 \u0442\u0430\u043a\u043c\u0438\u0447\u0430\u0440\u0438 \u043f\u043b\u0438\u0432\u0430\u0458\u0443 \u043a\u0430 \u043f\u043e\u0431\u0435\u0434\u0438",sv:"K\xf6p med Google Pay. Internationella konkurrenter som simmar mot seger",th:"\u0e0b\u0e37\u0e49\u0e2d\u0e14\u0e49\u0e27\u0e22 Google Pay \u0e40\u0e2b\u0e25\u0e48\u0e32\u0e19\u0e31\u0e01\u0e01\u0e35\u0e2c\u0e32\u0e27\u0e48\u0e32\u0e22\u0e19\u0e49\u0e33\u0e08\u0e32\u0e01\u0e19\u0e32\u0e19\u0e32\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e15\u0e48\u0e32\u0e07\u0e21\u0e38\u0e48\u0e07\u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48\u0e40\u0e2a\u0e49\u0e19\u0e0a\u0e31\u0e22",tr:"Google pay ile sat\u0131n al. Zafere do\u011fru y\xfczen uluslararas\u0131 yar\u0131\u015fmac\u0131lar.",uk:"\u041e\u043f\u043b\u0430\u0442\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 Google Pay. \u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043d\u0438\u043a\u0438 \u0440\u0456\u0437\u043d\u0438\u0445 \u043a\u0440\u0430\u0457\u043d \u0437\u043c\u0430\u0433\u0430\u044e\u0442\u044c\u0441\u044f \u0437\u0430 \u043f\u0435\u0440\u0435\u043c\u043e\u0433\u0443 \u0432 \u043f\u043b\u0430\u0432\u0430\u043d\u043d\u0456.",zh:"\u4f7f\u7528 Google Pay \u4ed8\u6b3e\u3002\u591a\u540d\u56fd\u9645\u9009\u624b\u5728\u6e38\u5411\u80dc\u5229"},pay:{ar:"\u0627\u0644\u062f\u0641\u0639 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 Google Pay (\u0645\u0646\u0627\u0641\u0633\u0648\u0646 \u062f\u0648\u0644\u064a\u0648\u0646 \u064a\u0633\u0628\u062d\u0648\u0646 \u0644\u062a\u062d\u0642\u064a\u0642 \u0627\u0644\u0641\u0648\u0632)",bg:"\u041f\u043b\u0430\u0442\u0435\u0442\u0435 \u0441 Google Pay. \u041c\u0435\u0436\u0434\u0443\u043d\u0430\u0440\u043e\u0434\u043d\u0438 \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u0438, \u043f\u043b\u0443\u0432\u0430\u0449\u0438 \u043a\u044a\u043c \u043f\u043e\u0431\u0435\u0434\u0430\u0442\u0430",ca:"Paga amb Google Pay. Competidors internacionals nedant cap a la vict\xf2ria.",cs:"Pla\u0165te pomoc\xed Google Pay. Mezin\xe1rodn\xed z\xe1vodn\xedci plavou k v\xedt\u011bzstv\xed",da:"Betal med Google Pay. Internationale konkurrenter sv\xf8mmer mod sejren",de:"\xdcber mein Google-Konto bezahlen. Internationale Schwimmer auf dem Weg zu Gold",el:"\u03a0\u03bb\u03b7\u03c1\u03ce\u03c3\u03c4\u03b5 \u03bc\u03ad\u03c3\u03c9 Google Pay. \u0391\u03bd\u03c4\u03af\u03c0\u03b1\u03bb\u03bf\u03b9 \u03b1\u03c0\u03cc \u03cc\u03bb\u03bf \u03c4\u03bf\u03bd \u03ba\u03cc\u03c3\u03bc\u03bf \u03ba\u03bf\u03bb\u03c5\u03bc\u03c0\u03bf\u03cd\u03bd \u03c0\u03c1\u03bf\u03c2 \u03c4\u03b7 \u03bd\u03af\u03ba\u03b7",en:"Pay with Google Pay. International competitors swimming toward victory",es:"Pagar con Google Pay. Competidores internacionales nadando hacia la victoria",et:"Makske Google Payga. Rahvusvahelisel v\xf5istlusel v\xf5idu poole ujujad",fi:"Maksa Google Paylla. Kansainv\xe4liset kilpailijat uimassa kohti voittoa",fr:"Payer avec Google Pay. Nageurs qui s'\xe9lancent vers la victoire dans une comp\xe9tition internationale.",hr:"Platite uz Google Pay. Me\u0111unarodni natjecatelji plivaju prema pobjedi",id:"Bayar dengan Google Pay. Peserta dari berbagai negara berupaya meraih kemenangan",it:"Paga con Google Pay. Atleti internazionali che nuotano verso la vittoria",ja:"Google Pay \u3067\u304a\u652f\u6255\u3044\u3002\u52dd\u5229\u3092\u76ee\u6307\u3057\u3066\u6cf3\u3050\u5404\u56fd\u306e\u9078\u624b\u305f\u3061",ko:"Google Pay\ub85c \uacb0\uc81c. \uc2b9\ub9ac\ub97c \ud5a5\ud574 \ud5e4\uc5c4\uce58\ub294 \uc804 \uc138\uacc4 \uc120\uc218\ub4e4",ms:"Bayar dengan Google Pay. Pesaing antarabangsa berenang untuk meraih kejayaan",nl:"Betalen met Google Pay. Internationale concurrenten zwemmen naar de overwinning.",no:"Betal med Google Pay. Konkurrenter fra ulike land sv\xf8mmer mot seier",pl:"Zap\u0142a\u0107 przez Google Pay Mi\u0119dzynarodowi zawodnicy p\u0142yn\u0105cy po zwyci\u0119stwo",pt:"Pagar com o Google Pay. Os competidores internacionais est\xe3o nadando em dire\xe7\xe3o \xe0 vit\xf3ria",ru:"\u041e\u043f\u043b\u0430\u0442\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 Google Pay. \u0423\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438 \u043c\u0435\u0436\u0434\u0443\u043d\u0430\u0440\u043e\u0434\u043d\u043e\u0433\u043e \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043b\u044b\u0432\u0443\u0442 \u043a \u0444\u0438\u043d\u0438\u0448\u0443",sk:"Zaplati\u0165 cez Google Pay. Medzin\xe1rodn\xed pretek\xe1ri pl\xe1vaj\xfaci za v\xed\u0165azstvom",sl:"Pla\u010dajte z Googlom Pay. Mednarodni tekmovalci, ki plavajo proti zmagi",sr:"\u041f\u043b\u0430\u0442\u0438\u0442\u0435 \u043f\u043e\u043c\u043e\u045b\u0443 Google Pay-\u0430. \u041c\u0435\u0452\u0443\u043d\u0430\u0440\u043e\u0434\u043d\u0438 \u0442\u0430\u043a\u043c\u0438\u0447\u0430\u0440\u0438 \u043f\u043b\u0438\u0432\u0430\u0458\u0443 \u043a\u0430 \u043f\u043e\u0431\u0435\u0434\u0438",sv:"Betala med Google Pay. Internationella konkurrenter som simmar mot seger",th:"\u0e0a\u0e33\u0e23\u0e30\u0e40\u0e07\u0e34\u0e19\u0e14\u0e49\u0e27\u0e22 Google Pay \u0e40\u0e2b\u0e25\u0e48\u0e32\u0e19\u0e31\u0e01\u0e01\u0e35\u0e2c\u0e32\u0e27\u0e48\u0e32\u0e22\u0e19\u0e49\u0e33\u0e08\u0e32\u0e01\u0e19\u0e32\u0e19\u0e32\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e15\u0e48\u0e32\u0e07\u0e21\u0e38\u0e48\u0e07\u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48\u0e40\u0e2a\u0e49\u0e19\u0e0a\u0e31\u0e22",tr:"Google Pay ile \xf6de. Zafere do\u011fru y\xfczen uluslararas\u0131 yar\u0131\u015fmac\u0131lar.",uk:"\u041e\u043f\u043b\u0430\u0442\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 Google Pay. \u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043d\u0438\u043a\u0438 \u0440\u0456\u0437\u043d\u0438\u0445 \u043a\u0440\u0430\u0457\u043d \u0437\u043c\u0430\u0433\u0430\u044e\u0442\u044c\u0441\u044f \u0437\u0430 \u043f\u0435\u0440\u0435\u043c\u043e\u0433\u0443 \u0432 \u043f\u043b\u0430\u0432\u0430\u043d\u043d\u0456.",zh:"\u901a\u8fc7 Google Pay \u4ed8\u6b3e\u3002\u591a\u540d\u56fd\u9645\u9009\u624b\u5728\u6e38\u5411\u80dc\u5229"},plain:{ar:"\u202bGoogle Pay (\u0645\u0646\u0627\u0641\u0633\u0648\u0646 \u062f\u0648\u0644\u064a\u0648\u0646 \u064a\u0633\u0628\u062d\u0648\u0646 \u0644\u062a\u062d\u0642\u064a\u0642 \u0627\u0644\u0641\u0648\u0632)",bg:"Google Pay. \u041c\u0435\u0436\u0434\u0443\u043d\u0430\u0440\u043e\u0434\u043d\u0438 \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u0438, \u043f\u043b\u0443\u0432\u0430\u0449\u0438 \u043a\u044a\u043c \u043f\u043e\u0431\u0435\u0434\u0430\u0442\u0430",ca:"Google Pay. Competidors internacionals nedant cap a la vict\xf2ria.",cs:"Google Pay. Mezin\xe1rodn\xed z\xe1vodn\xedci plavou k v\xedt\u011bzstv\xed",da:"Google Pay. Internationale konkurrenter sv\xf8mmer mod sejren",de:"Google Pay. Internationale Schwimmer auf dem Weg zu Gold",el:"Google Pay. \u0391\u03bd\u03c4\u03af\u03c0\u03b1\u03bb\u03bf\u03b9 \u03b1\u03c0\u03cc \u03cc\u03bb\u03bf \u03c4\u03bf\u03bd \u03ba\u03cc\u03c3\u03bc\u03bf \u03ba\u03bf\u03bb\u03c5\u03bc\u03c0\u03bf\u03cd\u03bd \u03c0\u03c1\u03bf\u03c2 \u03c4\u03b7 \u03bd\u03af\u03ba\u03b7",en:"Google Pay. International competitors swimming toward victory",es:"Google Pay. Competidores internacionales nadando hacia la victoria",et:"Google Pay. Rahvusvahelisel v\xf5istlusel v\xf5idu poole ujujad",fi:"Google Pay. Kansainv\xe4liset kilpailijat uimassa kohti voittoa",fr:"Google Pay. Nageurs qui s'\xe9lancent vers la victoire dans une comp\xe9tition internationale.",hr:"Google Pay. Me\u0111unarodni natjecatelji plivaju prema pobjedi",id:"Google Pay. Peserta dari berbagai negara berupaya meraih kemenangan",it:"Google Pay. Atleti internazionali che nuotano verso la vittoria",ja:"Google Pay\u3002\u52dd\u5229\u3092\u76ee\u6307\u3057\u3066\u6cf3\u3050\u5404\u56fd\u306e\u9078\u624b\u305f\u3061",ko:"Google Pay. \uc2b9\ub9ac\ub97c \ud5a5\ud574 \ud5e4\uc5c4\uce58\ub294 \uc804 \uc138\uacc4 \uc120\uc218\ub4e4",ms:"Google Pay. Pesaing antarabangsa berenang untuk meraih kejayaan",nl:"Google Pay. Internationale concurrenten zwemmen naar de overwinning.",no:"Google Pay. Konkurrenter fra ulike land sv\xf8mmer mot seier",pl:"Google Pay Mi\u0119dzynarodowi zawodnicy p\u0142yn\u0105cy po zwyci\u0119stwo",pt:"Google Pay. Os competidores internacionais est\xe3o nadando em dire\xe7\xe3o \xe0 vit\xf3ria",ru:"Google Pay. \u0423\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438 \u043c\u0435\u0436\u0434\u0443\u043d\u0430\u0440\u043e\u0434\u043d\u043e\u0433\u043e \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043b\u044b\u0432\u0443\u0442 \u043a \u0444\u0438\u043d\u0438\u0448\u0443",sk:"Google Pay. Medzin\xe1rodn\xed pretek\xe1ri pl\xe1vaj\xfaci za v\xed\u0165azstvom",sl:"Google Pay. Mednarodni tekmovalci, ki plavajo proti zmagi",sr:"Google Pay. \u041c\u0435\u0452\u0443\u043d\u0430\u0440\u043e\u0434\u043d\u0438 \u0442\u0430\u043a\u043c\u0438\u0447\u0430\u0440\u0438 \u043f\u043b\u0438\u0432\u0430\u0458\u0443 \u043a\u0430 \u043f\u043e\u0431\u0435\u0434\u0438",sv:"Google Pay. Internationella konkurrenter som simmar mot seger",th:"Google Pay \u0e40\u0e2b\u0e25\u0e48\u0e32\u0e19\u0e31\u0e01\u0e01\u0e35\u0e2c\u0e32\u0e27\u0e48\u0e32\u0e22\u0e19\u0e49\u0e33\u0e08\u0e32\u0e01\u0e19\u0e32\u0e19\u0e32\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e15\u0e48\u0e32\u0e07\u0e21\u0e38\u0e48\u0e07\u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48\u0e40\u0e2a\u0e49\u0e19\u0e0a\u0e31\u0e22",tr:"Google Pay. Zafere do\u011fru y\xfczen uluslararas\u0131 yar\u0131\u015fmac\u0131lar.",uk:"Google Pay. \u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043d\u0438\u043a\u0438 \u0440\u0456\u0437\u043d\u0438\u0445 \u043a\u0440\u0430\u0457\u043d \u0437\u043c\u0430\u0433\u0430\u044e\u0442\u044c\u0441\u044f \u0437\u0430 \u043f\u0435\u0440\u0435\u043c\u043e\u0433\u0443 \u0432 \u043f\u043b\u0430\u0432\u0430\u043d\u043d\u0456.",zh:"Google Pay\u3002 \u591a\u540d\u56fd\u9645\u9009\u624b\u5728\u6e38\u5411\u80dc\u5229"}},GPAY_BUTTON_VARIANT_TYPE_RLMIA:{af:"Koop met Google Pay. Met Rolling Loud-10e-herdenkingkleure (pienk en grys) met palmbome om Miami voor te stel",am:"\u1260Google Pay \u12ed\u130d\u12d9\u1362 \u12e8\u122e\u120a\u1295\u130d \u120b\u12cd\u12f5 10\u129b \u12d3\u1218\u1275 \u12a2\u12ee\u1264\u120d\u12e9 \u1240\u1208\u121b\u1275\u1295 (\u1210\u121d\u122b\u12ca \u12a5\u1293 \u130d\u122b\u132b) \u121b\u12eb\u121a\u1295 \u12a8\u121a\u12c8\u12ad\u1209 \u12e8\u12d8\u1295\u1263\u1263 \u12db\u134e\u127d \u130b\u122d \u1208\u12ed\u1276 \u1260\u121b\u1245\u1228\u1265 \u120b\u12ed",ar:'\u0632\u0631 "\u0627\u0644\u0634\u0631\u0627\u0621 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 Google Pay" \u0628\u0623\u0644\u0648\u0627\u0646 \u062a\u062d\u062a\u0641\u0644 \u0628\u0627\u0644\u0630\u0643\u0631\u0649 \u0627\u0644\u0640 10 \u0644\u0645\u0647\u0631\u062c\u0627\u0646 Rolling Loud (\u0627\u0644\u0648\u0631\u062f\u064a \u0648\u0627\u0644\u0631\u0645\u0627\u062f\u064a) \u0645\u0639 \u0623\u0634\u062c\u0627\u0631 \u0646\u062e\u064a\u0644 \u062a\u0645\u062b\u0644 \u0645\u062f\u064a\u0646\u0629 \u0645\u064a\u0627\u0645\u064a',az:"Google Pay il\u0259 al\u0131n. Mayamini t\u0259msil etm\u0259k \xfc\xe7\xfcn xurma a\u011faclar\u0131 il\u0259 Rolling Loud 10-cu ild\xf6n\xfcm\xfc r\u0259ngl\u0259ri (\xe7\u0259hray\u0131 v\u0259 boz) t\u0259qdim edilir",be:"\u0410\u043f\u043b\u0430\u0446\u0456\u0446\u044c \u043f\u0440\u0430\u0437 Google Pay. \u0412\u044b\u043a\u0430\u0440\u044b\u0441\u0442\u0430\u043d\u044b \u043a\u043e\u043b\u0435\u0440\u044b, \u0432\u044b\u0431\u0440\u0430\u043d\u044b\u044f \u0434\u043b\u044f 10-\u0439 \u0433\u0430\u0434\u0430\u0432\u0456\u043d\u044b \u0444\u0435\u0441\u0442\u044b\u0432\u0430\u043b\u044e Rolling Loud (\u0440\u0443\u0436\u043e\u0432\u044b \u0456 \u0448\u044d\u0440\u044b), \u0430 \u0442\u0430\u043a\u0441\u0430\u043c\u0430 \u0432\u0456\u0434\u0430\u0440\u044b\u0441\u044b \u043f\u0430\u043b\u044c\u043c\u0430\u045e, \u044f\u043a\u0456\u044f \u0441\u0456\u043c\u0432\u0430\u043b\u0456\u0437\u0443\u044e\u0446\u044c \u041c\u0430\u044f\u043c\u0456.",bg:"\u041a\u0443\u043f\u0435\u0442\u0435 \u0441 Google Pay. \u0412\u043a\u043b\u044e\u0447\u0432\u0430 \u0446\u0432\u0435\u0442\u043e\u0432\u0435\u0442\u0435 (\u0440\u043e\u0437\u043e\u0432\u043e \u0438 \u0441\u0438\u0432\u043e) \u043e\u0442 10-\u0430\u0442\u0430 \u0433\u043e\u0434\u0438\u0448\u043d\u0438\u043d\u0430 \u043d\u0430 Rolling Loud \u0441 \u043f\u0430\u043b\u043c\u0438, \u043a\u043e\u0438\u0442\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0432\u0430\u0442 \u041c\u0430\u044f\u043c\u0438",bn:"Google Pay \u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09c7 \u0995\u09bf\u09a8\u09c1\u09a8\u0964 Rolling Loud-\u098f\u09b0 \u09e7\u09e6\u09ae \u09ac\u09b0\u09cd\u09b7\u09aa\u09c2\u09b0\u09cd\u09a4\u09bf\u09b0 \u09a5\u09bf\u09ae \u09b0\u0999 (\u0997\u09cb\u09b2\u09be\u09aa\u09bf \u0993 \u09a7\u09c2\u09b8\u09b0) \u098f\u09ac\u0982 \u09ae\u09bf\u09df\u09be\u09ae\u09bf\u09b0 \u09aa\u09cd\u09b0\u09a4\u09c0\u0995 \u09b9\u09bf\u09b8\u09c7\u09ac\u09c7 \u09aa\u09be\u09ae \u0997\u09be\u099b \u09a6\u09c7\u0996\u09be\u09a8\u09cb \u09b9\u09df\u09c7\u099b\u09c7",bs:"Kupite putem Google Paya. Uklju\u010duje boje 10. godi\u0161njice Rolling Louda (ru\u017ei\u010dastu i sivu) s palmama koje simboliziraju Miami",ca:"Compra amb Google Pay. Amb els colors del des\xe8 aniversari de Rolling Loud (rosa i gris) i palmeres que representen Miami.",cs:"Nakupte pomoc\xed Google Pay. S barvami 10. jubilejn\xedho ro\u010dn\xedku hudebn\xedho festivalu Rolling Loud (r\u016f\u017eovou a \u0161edou) a palmami reprezentuj\xedc\xedmi Miami",cy:"Prynu gyda Google Pay. Yn cynnwys lliwiau 10fed pen-blwydd Rolling Loud (pinc a llwyd) gyda choed palmwydd i gynrychioli Miami",da:"K\xf8b med Google Pay. Med farverne fra Rolling Louds 10-\xe5rs jubil\xe6um (pink og gr\xe5) og palmer, der repr\xe6senterer Miami",de:"Mit Google Pay kaufen. Anl\xe4sslich der 10. Ausgabe des Rolling Loud Festivals in den Jubil\xe4umsfarben Rosa und Grau gehalten. Die Palmen sollen den Veranstaltungsort Miami symbolisieren.",el:"\u0391\u03b3\u03bf\u03c1\u03ac \u03bc\u03b5 Google Pay. \u039c\u03b5 \u03c4\u03b1 \u03c7\u03c1\u03ce\u03bc\u03b1\u03c4\u03b1 \u03c4\u03b7\u03c2 10\u03b7\u03c2 \u03b5\u03c0\u03b5\u03c4\u03b5\u03af\u03bf\u03c5 \u03c4\u03bf\u03c5 Rolling Loud (\u03c1\u03bf\u03b6 \u03ba\u03b1\u03b9 \u03b3\u03ba\u03c1\u03b9) \u03ba\u03b1\u03b9 \u03c6\u03bf\u03af\u03bd\u03b9\u03ba\u03b5\u03c2 \u03c0\u03bf\u03c5 \u03b1\u03bd\u03c4\u03b9\u03c0\u03c1\u03bf\u03c3\u03c9\u03c0\u03b5\u03cd\u03bf\u03c5\u03bd \u03c4\u03bf \u039c\u03b1\u03ca\u03ac\u03bc\u03b9",en:"Buy with Google Pay. Featuring Rolling Loud 10th anniversary colours (pink and grey) with palm trees to represent Miami",es:"Comprar con Google Pay. Con los colores del d\xe9cimo aniversario de Rolling Loud (rosa y gris) y palmeras que representan Miami",La:"Comprar con Google Pay. Con los colores del 10\xba aniversario de Rolling Loud (rosa y gris) y palmeras que representan a Miami",et:"Ostke Google Payga. Kasutatud on festivali Rolling Loud 10. aastap\xe4eva v\xe4rve (roosa ja hall) ning Miamit s\xfcmboliseerivaid palmipuid",eu:"Erosi Google Pay-rekin. Rolling Loud-en 10. urteurrenaren koloreak ditu (arrosa eta grisa), Miami irudikatzen duten palmondo eta guzti.",fa:"\u062e\u0631\u06cc\u062f\u0646 \u0628\u0627 Google Pay. \u0628\u0627 \u0646\u0645\u0627\u06cc\u0634 \u0648\u06cc\u0698\u0647 \u0631\u0646\u06af\u200c\u0647\u0627\u06cc \u062f\u0647\u0645\u06cc\u0646 \u0633\u0627\u0644\u06af\u0631\u062f Rolling Loud (\u0635\u0648\u0631\u062a\u06cc \u0648 \u062e\u0627\u06a9\u0633\u062a\u0631\u06cc) \u0628\u0647\u200c\u0647\u0645\u0631\u0627\u0647 \u062f\u0631\u062e\u062a\u0627\u0646 \u0646\u062e\u0644 \u0628\u0631\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f \u062d\u0627\u0644\u200c\u0648\u0647\u0648\u0627\u06cc \u0645\u06cc\u0627\u0645\u06cc",fi:"Osta Google Paylla. Kuvituksena Rolling Loudin 10-vuotisjuhlav\xe4rit (pinkki ja harmaa) ja Miamia symboloivat palmut.",fi__1:"Bumili gamit ang Google Pay. Tampok ang mga kulay ng ika-10 anibersaryo (pink at gray) ng Rolling Loud na may mga palm tree na kumakatawan sa Miami",fr:"Acheter avec Google Pay. Aux couleurs du 10e anniversaire de Rolling Loud (rose et gris) et avec des palmiers pour repr\xe9senter Miami",Ca:"Acheter avec Google Pay. Avec les couleurs du 10\u1d49 anniversaire de Rolling Loud (rose et gris) et des palmiers pour repr\xe9senter Miami",ga:"Ceannaigh le Google Pay. Ina bhfuil dathanna chom\xf3radh 10 mbliana Rolling Loud le feice\xe1il (b\xe1ndearg agus liath) agus crainn phailme chun Miami a l\xe9iri\xfa",gl:"Comprar con Google Pay. Coas as cores (rosa e gris) do X aniversario do festival Rolling Loud con palmeiras que representan Miami",gu:"Google Pay \u0ab5\u0aa1\u0ac7 \u0a96\u0ab0\u0ac0\u0aa6\u0ac0 \u0a95\u0ab0\u0acb. \u0aae\u0abe\u0aaf\u0abe\u0aae\u0ac0\u0aa8\u0ac7 \u0ab0\u0a9c\u0ac2 \u0a95\u0ab0\u0aa4\u0abe \u0aa4\u0abe\u0aa1\u0aa8\u0abe \u0ab5\u0ac3\u0a95\u0acd\u0ab7\u0acb \u0ab8\u0abe\u0aa5\u0ac7 Rolling Loud\u0aa8\u0ac0 10\u0aae\u0ac0 \u0ab5\u0ab0\u0acd\u0ab7\u0a97\u0abe\u0a82\u0aa0\u0aa8\u0abe \u0ab0\u0a82\u0a97\u0acb (\u0a97\u0ac1\u0ab2\u0abe\u0aac\u0ac0 \u0a85\u0aa8\u0ac7 \u0ab0\u0abe\u0a96\u0acb\u0aa1\u0ac0) \u0aa6\u0ab0\u0acd\u0ab6\u0abe\u0ab5\u0aa4\u0ac1\u0a82",hi:"Google Pay \u0915\u0940 \u092e\u0926\u0926 \u0938\u0947 \u0916\u0930\u0940\u0926\u0947\u0902. \u0907\u092e\u0947\u091c \u092e\u0947\u0902 \u0930\u094b\u0932\u093f\u0902\u0917 \u0932\u093e\u0909\u0921 \u092b\u093c\u0947\u0938\u094d\u091f\u093f\u0935\u0932 \u0915\u0940 10\u0935\u0940\u0902 \u0938\u093e\u0932\u0917\u093f\u0930\u0939 \u0915\u0940 \u0925\u0940\u092e, \u091c\u094b \u0917\u0941\u0932\u093e\u092c\u0940 \u0914\u0930 \u0938\u094d\u0932\u0947\u091f\u0940 \u0930\u0902\u0917\u094b\u0902 \u0915\u0947 \u0938\u093e\u0925-\u0938\u093e\u0925 \u092e\u093f\u092f\u093e\u092e\u0940 \u0915\u0940 \u092a\u0939\u091a\u093e\u0928 \u0915\u0947 \u0924\u094c\u0930 \u092a\u0930 \u0924\u093e\u0921\u093c \u0915\u0947 \u092a\u0947\u0921\u093c\u094b\u0902 \u0915\u094b \u0926\u093f\u0916\u093e\u0924\u0940 \u0939\u0948",hr:"Kupite uz Google Pay. Uklju\u010duje boje 10. godi\u0161njice festivala Rolling Loud (ru\u017ei\u010dastu i sivu) s palmama koje simboliziraju Miami",hu:"V\xe1s\xe1rl\xe1s a Google Pay haszn\xe1lat\xe1val. A Rolling Loud fesztiv\xe1l 10. \xe9vfordul\xf3j\xe1nak sz\xedneivel (r\xf3zsasz\xedn \xe9s sz\xfcrke) \xe9s p\xe1lmaf\xe1kkal, amelyek Miamit szimboliz\xe1lj\xe1k",hy:"\u0533\u0576\u0565\u056c Google Pay-\u0578\u057e\u0589 Rolling Loud \u0583\u0561\u057c\u0561\u057f\u0578\u0576\u056b 10-\u0561\u0574\u0575\u0561\u056f\u056b \u0563\u0578\u0582\u0575\u0576\u0565\u0580\u0568 (\u057e\u0561\u0580\u0564\u0561\u0563\u0578\u0582\u0575\u0576 \u0587 \u0574\u0578\u056d\u0580\u0561\u0563\u0578\u0582\u0575\u0576) \u0587 \u0561\u0580\u0574\u0561\u057e\u0565\u0576\u056b\u0576\u0565\u0580\u0568 \u056d\u0578\u0580\u0570\u0580\u0564\u0561\u0576\u0577\u0578\u0582\u0574 \u0565\u0576 \u0544\u0561\u0575\u0561\u0574\u056b\u0576",id:"Beli dengan Google Pay. Menampilkan warna ulang tahun ke-10 Rolling Loud (merah muda dan abu-abu) dengan pohon palem untuk mewakili Miami",is:"Kaupa me\xf0 Google Pay. Me\xf0 afm\xe6lislitum Rolling Loud \xed tilefni af 10 \xe1ra afm\xe6li h\xe1t\xed\xf0arinnar (bleikur og gr\xe1r) me\xf0 p\xe1lmatrj\xe1m sem t\xe1kna Miami",it:"Acquista con Google Pay. Con i colori di Rolling Loud per il 10\xb0 anniversario (rosa e grigio) e palme per rappresentare Miami",iw:"\u05ea\u05e9\u05dc\u05d5\u05dd \u05d3\u05e8\u05da Google Pay. \u05e2\u05dd \u05d4\u05e6\u05d1\u05e2\u05d9\u05dd \u05e9\u05dc \u05d9\u05d5\u05dd \u05d4\u05e9\u05e0\u05d4 \u05d4\u05e2\u05e9\u05d9\u05e8\u05d9 \u05e9\u05dc \u05e4\u05e1\u05d8\u05d9\u05d1\u05dc Rolling Loud (\u05d5\u05e8\u05d5\u05d3 \u05d5\u05d0\u05e4\u05d5\u05e8) \u05d5\u05e2\u05e6\u05d9 \u05d3\u05e7\u05dc \u05e9\u05de\u05d9\u05d9\u05e6\u05d2\u05d9\u05dd \u05d0\u05ea \u05de\u05d9\u05d0\u05de\u05d9",ja:"Google Pay \u3067\u8cfc\u5165\u3002Rolling Loud \u306e 10 \u5468\u5e74\u8a18\u5ff5\u30ab\u30e9\u30fc\uff08\u30d4\u30f3\u30af\u3068\u30b0\u30ec\u30fc\uff09\u306b\u3001\u30de\u30a4\u30a2\u30df\u3092\u8c61\u5fb4\u3059\u308b\u30e4\u30b7\u306e\u6728\u304c\u63cf\u304b\u308c\u3066\u3044\u308b",ka:"Google Pay-\u10e1 \u10db\u10d4\u10e8\u10d5\u10d4\u10dd\u10d1\u10d8\u10d7 \u10e8\u10d4\u10eb\u10d4\u10dc\u10d0. \u10e8\u10d4\u10e5\u10db\u10dc\u10d8\u10da\u10d8\u10d0 Rolling Loud-\u10d8\u10e1 \u10db\u10d4-10 \u10ec\u10da\u10d8\u10e1\u10d7\u10d0\u10d5\u10d8\u10e1 \u10e4\u10d4\u10e0\u10d4\u10d1\u10e8\u10d8 (\u10d5\u10d0\u10e0\u10d3\u10d8\u10e1\u10e4\u10d4\u10e0\u10d8 \u10d3\u10d0 \u10dc\u10d0\u10ea\u10e0\u10d8\u10e1\u10e4\u10d4\u10e0\u10d8) \u10e4\u10d8\u10dc\u10d8\u10d9\u10d8\u10e1 \u10de\u10d0\u10da\u10db\u10d4\u10d1\u10d8\u10d7 \u10db\u10d0\u10d8\u10d0\u10db\u10d8\u10e1 \u10ec\u10d0\u10e0\u10db\u10dd\u10e1\u10d0\u10d3\u10d2\u10d4\u10dc\u10d0\u10d3",kk:"Google Pay-\u043c\u0435\u043d \u0441\u0430\u0442\u044b\u043f \u0430\u043b\u0443 Rolling Loud \u0444\u0435\u0441\u0442\u0438\u0432\u0430\u043b\u0456\u043d\u0456\u04a3 10 \u0436\u044b\u043b\u0434\u044b\u0493\u044b\u043d\u0430 \u0430\u0440\u043d\u0430\u043b\u044b\u043f, \u049b\u044b\u0437\u0493\u044b\u043b\u0442 \u0436\u04d9\u043d\u0435 \u0441\u04b1\u0440 \u0442\u04af\u0441\u0442\u0435\u0440, \u0441\u043e\u043d\u0434\u0430\u0439-\u0430\u049b \u041c\u0430\u0439\u0430\u043c\u0438\u0434\u0456\u04a3 \u0431\u0435\u043b\u0433\u0456\u0441\u0456 \u0441\u0430\u043d\u0430\u043b\u0430\u0442\u044b\u043d \u043f\u0430\u043b\u044c\u043c\u0430 \u0430\u0493\u0430\u0448\u0442\u0430\u0440\u044b \u0431\u0435\u0439\u043d\u0435\u043b\u0435\u043d\u0433\u0435\u043d.",km:"\u1791\u17b7\u1789\u178f\u17b6\u1798 Google Pay\u17d4 \u1780\u17b6\u179a\u178f\u17b6\u17c6\u1784\u179a\u17c6\u179b\u17c1\u1785\u1796\u178e\u17cc\u1782\u1798\u17d2\u179a\u1794\u17cb\u1781\u17bd\u1794 10 \u1786\u17d2\u1793\u17b6\u17c6\u1793\u17c3 Rolling Loud (\u1795\u17d2\u1780\u17b6\u1788\u17bc\u1780 \u1793\u17b7\u1784\u1794\u17d2\u179a\u1795\u17c1\u17c7) \u178a\u17c2\u179b\u1798\u17b6\u1793\u178a\u17be\u1798\u178a\u17bc\u1784\u178f\u17c6\u178e\u17b6\u1784\u17b1\u17d2\u1799 Miami",kn:"Google Pay \u0cac\u0cb3\u0cb8\u0cbf\u0c95\u0cca\u0c82\u0ca1\u0cc1 \u0c96\u0cb0\u0cc0\u0ca6\u0cbf\u0cb8\u0cbf. Rolling Loud \u0ca8 10 \u0ca8\u0cc7 \u0cb5\u0cbe\u0cb0\u0ccd\u0cb7\u0cbf\u0c95\u0ccb\u0ca4\u0ccd\u0cb8\u0cb5\u0ca6 \u0cac\u0ca3\u0ccd\u0ca3\u0c97\u0cb3 (\u0c97\u0cc1\u0cb2\u0cbe\u0cac\u0cbf \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 \u0cac\u0cc2\u0ca6\u0cc1) \u0c9c\u0cca\u0ca4\u0cc6\u0c97\u0cc6 \u0cae\u0cbf\u0caf\u0cbe\u0cae\u0cbf\u0caf\u0ca8\u0ccd\u0ca8\u0cc1 \u0caa\u0ccd\u0cb0\u0ca4\u0cbf\u0ca8\u0cbf\u0ca7\u0cbf\u0cb8\u0cb2\u0cc1 \u0ca4\u0cbe\u0cb3\u0cc6 \u0cae\u0cb0\u0c97\u0cb3\u0ca8\u0ccd\u0ca8\u0cc1 \u0ca4\u0ccb\u0cb0\u0cbf\u0cb8\u0cb2\u0cbe\u0c97\u0cbf\u0ca6\u0cc6",ko:"Google Pay\ub85c \uad6c\ub9e4. Rolling Loud 10\uc8fc\ub144\uc744 \uae30\ub150\ud558\ub294 \uc0c9\uc0c1(\ud551\ud06c\uc0c9\uacfc \ud68c\uc0c9)\uc774 \uc0ac\uc6a9\ub418\uc5c8\uc73c\uba70 \ub9c8\uc774\uc560\ubbf8\ub97c \uc0c1\uc7a5\ud558\ub294 \uc57c\uc790\uc218 \uc774\ubbf8\uc9c0\uac00 \ud45c\uc2dc\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4.",ky:"Google Pay \u0430\u0440\u043a\u044b\u043b\u0443\u0443 \u0441\u0430\u0442\u044b\u043f \u0430\u043b\u0443\u0443. Rolling Loud \u0444\u0435\u0441\u0442\u0438\u0432\u0430\u043b\u044b\u043d\u044b\u043d 10 \u0436\u044b\u043b\u0434\u044b\u0433\u044b\u043d\u0430 \u043a\u0430\u0440\u0430\u0442\u0430 \u043a\u044b\u0437\u0433\u044b\u043b\u0442\u044b\u043c \u0436\u0430\u043d\u0430 \u0431\u043e\u0437 \u0442\u04af\u0441\u0442\u04e9\u0440 \u043a\u043e\u043b\u0434\u043e\u043d\u0443\u043b\u0443\u043f, \u041c\u0430\u0439\u0430\u043c\u0438\u043d\u0438\u043d c\u0438\u043c\u0432\u043e\u043b\u0443 \u0431\u043e\u043b\u0433\u043e\u043d \u043f\u0430\u043b\u044c\u043c\u0430 \u0434\u0430\u0440\u0430\u043a\u0442\u0430\u0440\u044b \u0447\u0430\u0433\u044b\u043b\u0434\u044b\u0440\u044b\u043b\u0434\u044b",lo:"\u0e8a\u0eb7\u0ec9\u0ec2\u0e94\u0e8d\u0ec3\u0e8a\u0ec9 Google Pay. \u0e99\u0eb3\u0eaa\u0eb0\u0ec0\u0edc\u0eb5\u0eaa\u0eb5\u0e84\u0ebb\u0e9a\u0eae\u0ead\u0e9a 10 \u0e9b\u0eb5 Rolling Loud (\u0eaa\u0eb5\u0e9a\u0ebb\u0ea7 \u0ec1\u0ea5\u0eb0 \u0eaa\u0eb5\u0ec0\u0e97\u0ebb\u0eb2) \u0e9e\u0ec9\u0ead\u0ea1\u0e95\u0ebb\u0ec9\u0e99\u0e9b\u0eb2\u0ea1\u0ec0\u0e9e\u0eb7\u0ec8\u0ead\u0ec0\u0e9b\u0eb1\u0e99\u0e95\u0ebb\u0ea7\u0ec1\u0e97\u0e99\u0ec3\u0eab\u0ec9 Miami",lt:"Pirkti naudojant \u201eGoogle Pay\u201c. Jubiliejinio de\u0161imtojo festivalio \u201eRolling Loud\u201c spalvos (ro\u017ein\u0117 ir pilka) su palm\u0117mis, simbolizuojan\u010diomis Majam\u012f.",lv:"Ieg\u0101d\u0101jieties, izmantojot Google Pay. Festiv\u0101la \u201cRolling Loud\u201d 10. gadadienas kr\u0101sas (roz\u0101 un pel\u0113ka) un palmas, kas simboliz\u0113 Maiami",mk:"\u041a\u0443\u043f\u0435\u0442\u0435 \u0441\u043e Google Pay. \u0412\u043e \u0431\u043e\u0438\u0442\u0435 \u043d\u0430 10-\u0433\u043e\u0434\u0438\u0448\u043d\u0438\u043d\u0430\u0442\u0430 \u043d\u0430 \u0444\u0435\u0441\u0442\u0438\u0432\u0430\u043b\u043e\u0442 Rolling Loud (\u0440\u043e\u0437\u043e\u0432\u0430 \u0438 \u0441\u0438\u0432\u0430) \u0441\u043e \u043f\u0430\u043b\u043c\u0438 \u0448\u0442\u043e \u0433\u043e \u043f\u0440\u0435\u0442\u0441\u0442\u0430\u0432\u0443\u0432\u0430\u0430\u0442 \u041c\u0430\u0458\u0430\u043c\u0438",ml:"Google Pay-\u0d2f\u0d3f\u0d32\u0d42\u0d1f\u0d46 \u0d35\u0d3e\u0d19\u0d4d\u0d19\u0d42. \u0d2e\u0d3f\u0d2f\u0d3e\u0d2e\u0d3f\u0d2f\u0d46 \u0d2a\u0d4d\u0d30\u0d24\u0d3f\u0d28\u0d3f\u0d27\u0d40\u0d15\u0d30\u0d3f\u0d15\u0d4d\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d24\u0d3f\u0d28\u0d4d \u0d08\u0d28\u0d4d\u0d24\u0d2a\u0d4d\u0d2a\u0d28 \u0d2e\u0d30\u0d19\u0d4d\u0d19\u0d7e\u0d15\u0d4d\u0d15\u0d4a\u0d2a\u0d4d\u0d2a\u0d02 Rolling Loud 10-\u0d3e\u0d02 \u0d35\u0d3e\u0d7c\u0d37\u0d3f\u0d15 \u0d28\u0d3f\u0d31\u0d19\u0d4d\u0d19\u0d7e (\u0d2a\u0d3f\u0d19\u0d4d\u0d15\u0d4d, \u0d1a\u0d3e\u0d30\u0d28\u0d3f\u0d31\u0d02) \u0d2b\u0d40\u0d1a\u0d4d\u0d1a\u0d7c \u0d1a\u0d46\u0d2f\u0d4d\u0d2f\u0d41\u0d28\u0d4d\u0d28\u0d41",mn:"Google Pay-\u0440 \u0445\u0443\u0434\u0430\u043b\u0434\u0430\u043d \u0430\u0432\u0430\u0445. \u041c\u0430\u0439\u0430\u043c\u0438\u0433 \u0442\u04e9\u043b\u04e9\u04e9\u043b\u0434\u04e9\u0433 \u0434\u0430\u043b\u0434\u0443\u0443 \u043c\u043e\u0434\u043e\u043e\u0440 Rolling Loud-\u043d 10 \u0436\u0438\u043b\u0438\u0439\u043d \u043e\u0439\u043d \u04e9\u043d\u0433\u04e9 \u0442\u04e9\u0440\u0445\u0438\u0439\u0433 (\u044f\u0433\u0430\u0430\u043d, \u0441\u0430\u0430\u0440\u0430\u043b) \u043e\u043d\u0446\u043e\u043b\u0436 \u0431\u0430\u0439\u043d\u0430",mr:"Google Pay \u0935\u093e\u092a\u0930\u0942\u0928 \u0916\u0930\u0947\u0926\u0940 \u0915\u0930\u093e. \u092e\u093e\u092f\u093e\u092e\u0940\u091a\u0947 \u092a\u094d\u0930\u0924\u093f\u0928\u093f\u0927\u093f\u0924\u094d\u0935 \u0915\u0930\u0923\u094d\u092f\u093e\u0938\u093e\u0920\u0940 \u0924\u093e\u0921\u093e\u091a\u094d\u092f\u093e \u091d\u093e\u0921\u093e\u0902\u0938\u0939 \u0930\u094b\u0932\u093f\u0902\u0917 \u0932\u093e\u090a\u0921 \u091a\u094d\u092f\u093e \u0967\u0966 \u0935\u094d\u092f\u093e \u0935\u0930\u094d\u0927\u093e\u092a\u0928 \u0926\u093f\u0928\u093e\u091a\u0947 \u0930\u0902\u0917 (\u0917\u0941\u0932\u093e\u092c\u0940 \u0906\u0923\u093f \u0930\u093e\u0916\u093e\u0921\u0940) \u0926\u093e\u0916\u0935\u0932\u0947 \u0906\u0939\u0947\u0924",ms:"Beli melalui Google Pay. Menampilkan warna ulang tahun ke-10 Rolling Loud (merah jambu dan kelabu) dengan pokok palma untuk mewakili Miami",my:"Google Pay \u1016\u103c\u1004\u1037\u103a \u101d\u101a\u103a\u101b\u1014\u103a\u104b \u1019\u102d\u102f\u1004\u103a\u101a\u102c\u1019\u102e\u1000\u102d\u102f \u1000\u102d\u102f\u101a\u103a\u1005\u102c\u1038\u1015\u103c\u102f\u101b\u1014\u103a\u1021\u1010\u103d\u1000\u103a \u1021\u102f\u1014\u103a\u1038\u1015\u1004\u103a\u1019\u103b\u102c\u1038\u1016\u103c\u1004\u1037\u103a Rolling Loud \u104f \u1041\u1040 \u1014\u103e\u1005\u103a\u1015\u103c\u100a\u1037\u103a\u1014\u103e\u1005\u103a\u1015\u1010\u103a\u101c\u100a\u103a \u1021\u101b\u1031\u102c\u1004\u103a\u1019\u103b\u102c\u1038 (\u1015\u1014\u103a\u1038\u101b\u1031\u102c\u1004\u103a\u1014\u103e\u1004\u1037\u103a \u1019\u102e\u1038\u1001\u102d\u102f\u1038\u101b\u1031\u102c\u1004\u103a) \u1000\u102d\u102f \u1021\u101e\u102c\u1038\u1015\u1031\u1038\u1016\u1031\u102c\u103a\u1015\u103c\u1011\u102c\u1038\u101e\u100a\u103a",ne:"Google Pay \u092a\u094d\u0930\u092f\u094b\u0917 \u0917\u0930\u0940 \u0916\u0930\u093f\u0926 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d\u0964 \u0930\u094b\u0932\u093f\u0919 \u0932\u093e\u0909\u0921 \u0938\u0919\u094d\u0917\u0940\u0924 \u092e\u0939\u094b\u0924\u094d\u0938\u0935\u0915\u094b \u0967\u0966 \u0914\u0901 \u0935\u093e\u0930\u094d\u0937\u093f\u0915\u094b\u0924\u094d\u0938\u0935\u0915\u094b \u0925\u093f\u092e (\u0917\u0941\u0932\u093e\u092c\u0940 \u0924\u0925\u093e \u0916\u0948\u0930\u094b \u0930\u0919\u0915\u094b) \u0915\u093e \u0938\u093e\u0925\u0948 \u092e\u093e\u092f\u093e\u092e\u0940\u0915\u094b \u092a\u094d\u0930\u0924\u093f\u0928\u093f\u0927\u093f\u0924\u094d\u0935 \u0917\u0930\u094d\u0928\u0947 \u0924\u093e\u0921\u0915\u093e \u0930\u0942\u0916\u0939\u0930\u0942 \u0926\u0947\u0916\u093e\u0907\u090f\u0915\u094b \u091b",nl:"Kopen met Google Pay. De Rolling Loud-kleuren voor het 10-jarig bestaan (roze en grijs) en palmbomen om Miami te vertegenwoordigen",Bo:"Kj\xf8p med Google Pay. Med fargene for Rolling Louds 10-\xe5rsjubileum (rosa og gr\xe5) og palmer som representerer Miami.",pa:"Google Pay \u0a28\u0a3e\u0a32 \u0a16\u0a30\u0a40\u0a26\u0a4b\u0964 '\u0a30\u0a4b\u0a32\u0a3f\u0a70\u0a17 \u0a32\u0a3e\u0a09\u0a21' \u0a38\u0a70\u0a17\u0a40\u0a24 \u0a09\u0a24\u0a38\u0a35 \u0a26\u0a40 10\u0a35\u0a40\u0a02 \u0a35\u0a30\u0a4d\u0a39\u0a47\u0a17\u0a70\u0a22 \u0a26\u0a47 \u0a30\u0a70\u0a17\u0a3e\u0a02 (\u0a17\u0a41\u0a32\u0a3e\u0a2c\u0a40 \u0a05\u0a24\u0a47 \u0a38\u0a32\u0a47\u0a1f\u0a40) \u0a35\u0a3e\u0a32\u0a3e \u0a25\u0a40\u0a2e \u0a2e\u0a3f\u0a06\u0a2e\u0a40 \u0a26\u0a40 \u0a2a\u0a1b\u0a3e\u0a23 \u0a26\u0a47 \u0a24\u0a4c\u0a30 '\u0a24\u0a47 \u0a24\u0a3e\u0a5c \u0a26\u0a47 \u0a30\u0a41\u0a71\u0a16\u0a3e\u0a02 \u0a28\u0a42\u0a70 \u0a26\u0a30\u0a38\u0a3e\u0a09\u0a02\u0a26\u0a3e \u0a39\u0a48",pl:"Zap\u0142a\u0107 przez Google Pay Kolory 10 rocznicy festiwalu Rolling Loud (r\xf3\u017cowy i szary) oraz palmy symbolizuj\u0105ce Miami",Br:"Comprar com o Google Pay. As cores do 10\xba anivers\xe1rio do Rolling Loud (rosa e cinza) com palmeiras para representar Miami",Po:"Comprar com Google Pay. Com as cores do 10.\xba anivers\xe1rio do Rolling Loud (rosa e cinzento) com palmeiras a representar Miami",ro:"Cump\u0103r\u0103 cu Google Pay. Are culorile celei de-a zecea aniversare a festivalului Rolling Loud (roz \u0219i gri) \u0219i palmieri pentru a reprezenta Miami.",ru:"\u041e\u043f\u043b\u0430\u0442\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 Google Pay. \u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0432 \u0446\u0432\u0435\u0442\u0430\u0445, \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044e\u0449\u0438\u0445 \u043e 10-\u043b\u0435\u0442\u043d\u0435\u0439 \u0433\u043e\u0434\u043e\u0432\u0449\u0438\u043d\u0435 Rolling Loud (\u0441\u0435\u0440\u043e\u043c \u0438 \u0440\u043e\u0437\u043e\u0432\u043e\u043c), \u0438 \u0441 \u043f\u0430\u043b\u044c\u043c\u0430\u043c\u0438, \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u043d\u044b\u043c\u0438 \u0434\u043b\u044f \u041c\u0430\u0439\u0430\u043c\u0438.",si:"Google Pay \u0dc3\u0db8\u0d9c\u0dd2\u0db1\u0dca \u0db8\u0dd2\u0dbd \u0daf\u0dd3 \u0d9c\u0db1\u0dca\u0db1. Miami \u0db1\u0dd2\u0dba\u0ddd\u0da2\u0db1\u0dba \u0d9a\u0dd2\u0dbb\u0dd3\u0db8 \u0dc3\u0db3\u0dc4\u0dcf \u0dad\u0dbd\u0dca \u0d9c\u0dc3\u0dca \u0dc3\u0db8\u0d9c Rolling Loud 10 \u0dc0\u0dd0\u0db1\u0dd2 \u0dc3\u0d82\u0dc0\u0dad\u0dca\u0dc3\u0dbb \u0dc0\u0dbb\u0dca\u0dab (\u0dbb\u0ddd\u0dc3 \u0dc3\u0dc4 \u0d85\u0dc5\u0dd4) \u0dc0\u0dd2\u0dc1\u0dda\u0dc2\u0dcf\u0d82\u0d9c\u0dba",sk:"K\xfapi\u0165 cez Google Pay. Obsahuje farby jubilejn\xe9ho 10. ro\u010dn\xedka festivalu Rolling Loud (ru\u017eov\xfa a siv\xfa) a palmy, ktor\xe9 s\xfa symbolom Miami.",sl:"Nakup z Googlom Pay. Z barvami 10. obletnice festivala Rolling Loud (ro\u017enato in sivo) in palmami, ki predstavljajo Miami",sq:"Bli me Google Pay. P\xebrfshin ngjyrat e p\xebrvjetorit t\xeb 10-t\xeb t\xeb Rolling Loud (roz\xeb dhe gri) me pem\xeb palme p\xebr t\xeb p\xebrfaq\xebsuar Majamin",sr:"\u041a\u0443\u043f\u0438 \u043f\u043e\u043c\u043e\u045b\u0443 Google Pay-\u0430. \u0423\u0437 \u0431\u043e\u0458\u0435 \u043a\u043e\u0458\u0435 \u043e\u0431\u0435\u043b\u0435\u0436\u0430\u0432\u0430\u0458\u0443 10. \u0433\u043e\u0434\u0438\u0448\u045a\u0438\u0446\u0443 \u0444\u0435\u0441\u0442\u0438\u0432\u0430\u043b\u0430 Rolling Loud (\u0440\u0443\u0436\u0438\u0447\u0430\u0441\u0442\u0430 \u0438 \u0441\u0438\u0432\u0430) \u0438 \u043f\u0430\u043b\u043c\u0435 \u043a\u043e\u0458\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0459\u0430\u0458\u0443 \u041c\u0430\u0458\u0430\u043c\u0438",sv:"K\xf6p med Google Pay. I f\xe4rgerna fr\xe5n Rolling Louds tio\xe5rsjubileum (rosa och gr\xe5tt) med palmer som representerar Miami",sw:"Nunua kupitia Google Pay. Inaangazia rangi (waridi na kijivu) za kumbukumbu ya miaka 10 ya tamasha la Rolling Loud pamoja na minazi ili kuwakilisha Miami",ta:"Google Pay \u0bae\u0bc2\u0bb2\u0bae\u0bcd \u0bb5\u0bbe\u0b99\u0bcd\u0b95\u0bc1\u0b95. \u0bae\u0bbf\u0baf\u0bbe\u0bae\u0bbf\u0baf\u0bc8\u0b95\u0bcd \u0b95\u0bc1\u0bb1\u0bbf\u0b95\u0bcd\u0b95\u0bc1\u0bae\u0bcd \u0bb5\u0b95\u0bc8\u0baf\u0bbf\u0bb2\u0bcd \u0baa\u0ba9\u0bc8 \u0bae\u0bb0\u0b99\u0bcd\u0b95\u0bb3\u0bc1\u0b9f\u0ba9\u0bcd, \u0bb0\u0bcb\u0bb2\u0bbf\u0b99\u0bcd \u0bb2\u0bcc\u0b9f\u0bc1 10\u0bb5\u0ba4\u0bc1 \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0bb5\u0bbf\u0bb4\u0bbe\u0bb5\u0bbf\u0ba9\u0bcd \u0bb5\u0ba3\u0bcd\u0ba3\u0b99\u0bcd\u0b95\u0bb3\u0bcd (\u0baa\u0bbf\u0b99\u0bcd\u0b95\u0bcd \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd \u0b9a\u0bbe\u0bae\u0bcd\u0baa\u0bb2\u0bcd) \u0b87\u0b9f\u0bae\u0bcd\u0baa\u0bc6\u0bb1\u0bcd\u0bb1\u0bc1\u0bb3\u0bcd\u0bb3\u0ba9.",te:"Google Pay\u0c24\u0c4b \u0c15\u0c4a\u0c28\u0c02\u0c21\u0c3f. Rolling Loud 10\u0c35 \u0c35\u0c3e\u0c30\u0c4d\u0c37\u0c3f\u0c15\u0c4b\u0c24\u0c4d\u0c38\u0c35 \u0c25\u0c40\u0c2e\u0c4d\u200c\u0c28\u0c41 \u0c2b\u0c40\u0c1a\u0c30\u0c4d \u0c1a\u0c47\u0c38\u0c4d\u0c24\u0c4b\u0c02\u0c26\u0c3f, \u0c07\u0c02\u0c26\u0c41\u0c32\u0c4b \u0c2e\u0c3f\u0c2f\u0c3e\u0c2e\u0c40\u0c15\u0c3f \u0c1a\u0c3f\u0c39\u0c4d\u0c28\u0c02\u0c17\u0c3e \u0c17\u0c41\u0c32\u0c3e\u0c2c\u0c40 \u0c30\u0c02\u0c17\u0c41, \u0c32\u0c47\u0c24 \u0c2c\u0c42\u0c21\u0c3f\u0c26\u0c30\u0c02\u0c17\u0c41, \u0c24\u0c3e\u0c1f\u0c3f \u0c1a\u0c46\u0c1f\u0c4d\u0c32\u0c41 \u0c09\u0c28\u0c4d\u0c28\u0c3e\u0c2f\u0c3f",th:"\u0e0b\u0e37\u0e49\u0e2d\u0e14\u0e49\u0e27\u0e22 Google Pay \u0e21\u0e32\u0e1e\u0e23\u0e49\u0e2d\u0e21\u0e2a\u0e35\u0e09\u0e25\u0e2d\u0e07\u0e04\u0e23\u0e1a\u0e23\u0e2d\u0e1a 10 \u0e1b\u0e35\u0e02\u0e2d\u0e07 Rolling Loud (\u0e2a\u0e35\u0e0a\u0e21\u0e1e\u0e39\u0e41\u0e25\u0e30\u0e40\u0e17\u0e32) \u0e1e\u0e23\u0e49\u0e2d\u0e21\u0e15\u0e49\u0e19\u0e1b\u0e32\u0e25\u0e4c\u0e21\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e2a\u0e37\u0e48\u0e2d\u0e16\u0e36\u0e07\u0e44\u0e21\u0e2d\u0e32\u0e21\u0e35",tr:"Google Pay ile sat\u0131n al. Rolling Loud M\xfczik Festivali'nin 10. y\u0131l d\xf6n\xfcm\xfc renkleri (pembe ve gri) ve Miami'yi temsil eden palmiye a\u011fa\xe7lar\u0131",uk:"\u041e\u043f\u043b\u0430\u0442\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 Google Pay. \u0417 \u043d\u0430\u0433\u043e\u0434\u0438 10-\u0457 \u0440\u0456\u0447\u043d\u0438\u0446\u0456 \u0444\u0435\u0441\u0442\u0438\u0432\u0430\u043b\u044e Rolling Loud Miami \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u043e \u0440\u043e\u0436\u0435\u0432\u0438\u0439 \u0456 \u0441\u0456\u0440\u0438\u0439 \u043a\u043e\u043b\u044c\u043e\u0440\u0438, \u0430 \u0442\u0430\u043a\u043e\u0436 \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043e \u043f\u0430\u043b\u044c\u043c\u0438, \u044f\u043a\u0456 \u0441\u0438\u043c\u0432\u043e\u043b\u0456\u0437\u0443\u044e\u0442\u044c \u041c\u0430\u044f\u043c\u0456.",ur:"\u202bGoogle Pay \u06a9\u06d2 \u0633\u0627\u062a\u06be \u062e\u0631\u06cc\u062f\u06cc\u06ba\u06d4 \u0645\u06cc\u0627\u0645\u06cc \u06a9\u06cc \u0646\u0645\u0627\u0626\u0646\u062f\u06af\u06cc \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 \u06a9\u06be\u062c\u0648\u0631 \u06a9\u06d2 \u062f\u0631\u062e\u062a\u0648\u06ba \u06a9\u06d2 \u0633\u0627\u062a\u06be \u0631\u0648\u0644\u0646\u06af \u0644\u0627\u0624\u0688 \u06a9\u06cc 10\u0648\u06cc\u06ba \u0633\u0627\u0644\u06af\u0631\u06c1 \u06a9\u06d2 \u0631\u0646\u06af\u0648\u06ba (\u06af\u0644\u0627\u0628\u06cc \u0627\u0648\u0631 \u0633\u0631\u0645\u0626\u06cc) \u06a9\u0648 \u0646\u0645\u0627\u06cc\u0627\u06ba \u06a9\u06cc\u0627 \u062c\u0627 \u0631\u06c1\u0627 \u06c1\u06d2",vi:"Mua b\u1eb1ng Google Pay C\xf3 m\xe0u s\u1eafc k\u1ef7 ni\u1ec7m 10 n\u0103m l\u1ec5 h\u1ed9i Rolling Loud (m\xe0u h\u1ed3ng v\xe0 x\xe1m) v\u1edbi h\xe0ng c\xe2y c\u1ecd, \u0111\u1ea1i di\u1ec7n cho Miami",Si:"\u4f7f\u7528 Google Pay \u4ed8\u6b3e\u3002\u91c7\u7528 Rolling Loud \u5341\u5468\u5e74\u7eaa\u5ff5\u8272\uff08\u7c89\u8272\u548c\u7070\u8272\uff09\uff0c\u5e76\u4ee5\u68d5\u6988\u6811\u4ee3\u8868\u8fc8\u963f\u5bc6",Ho:"\u7528 Google Pay \u4ed8\u6b3e\u3002\u4ee5 Rolling Loud 10 \u9031\u5e74\u7d00\u5ff5\u984f\u8272 (\u7c89\u7d05\u8272\u548c\u7070\u8272) \u70ba\u4e3b\u8272\uff0c\u4e26\u4ee5\u68d5\u6ada\u6a39\u4ee3\u8868\u9081\u963f\u5bc6",Tr:"\u4f7f\u7528 Google Pay \u7d50\u5e33\u3002\u63a1\u7528 Rolling Loud 10 \u9031\u5e74\u7d00\u5ff5\u8272 (\u7c89\u7d05\u8272\u548c\u7070\u8272)\uff0c\u4e26\u642d\u914d\u4ee3\u8868\u9081\u963f\u5bc6\u7684\u68d5\u6ada\u6a39",zu:"Thenga ngeGoogle Pay Ifaka imibala yesikhumbuzo seminyaka eyi-10 seRolling Loud (okuphinki nokumpunga) ngezihlahla zamasundu ezimelela iMiami"}},km=zn('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" direction="ltr" height="36px" width="130px"><style>@import url(//fonts.googleapis.com/css?family=Google+Sans_old:500)</style><line x1="2" y1="10.5" x2="2" y2="29.5" style="stroke: #d9d9d9; stroke-width:2"></line><image x="11" y="6" width="37.5" height="29" preserveAspectRatio="none" xlink:href="https://www.gstatic.com/images/icons/material/system/1x/payment_grey600_36dp.png"></image><text x="52" y="25.5" class="small" style="font: 15px \'Google Sans\', sans-serif; fill: #5F6368">\u2022\u2022\u2022\u2022\u2022\u2022</text></svg>'),Xu=zn('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" direction="ltr" height="36px" width="130px"><style>@import url(//fonts.googleapis.com/css?family=Google+Sans_old:500)</style><line x1="2" y1="10.5" x2="2" y2="29.5" style="stroke: #5F6368; stroke-width:2"></line><image x="11" y="6" width="37.5" height="29" preserveAspectRatio="none" xlink:href="https://www.gstatic.com/images/icons/material/system/1x/payment_white_36dp.png"></image><text x="52" y="25.5" class="small" style="font: 15px \'Google Sans\', sans-serif; fill: #FFFFFF">\u2022\u2022\u2022\u2022\u2022\u2022</text></svg>'),Fi=zn('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" direction="ltr" viewBox="0 0 130 36"><style>@import url(//fonts.googleapis.com/css?family=Google+Sans_old:500)</style><line x1="8" y1="7" x2="8" y2="26" style="stroke: #d9d9d9; stroke-width:2"></line><image x="16" y="2.5" width="37.5" height="29" preserveAspectRatio="none" xlink:href="https://www.gstatic.com/images/icons/material/system/1x/payment_grey600_36dp.png"></image><text x="57" y="22" class="small" style="font: 15px \'Google Sans\', sans-serif; fill: #5f6368">\u2022\u2022\u2022\u2022\u2022\u2022</text></svg>'),ia=zn('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" direction="ltr" viewBox="0 0 130 36"><style>@import url(//fonts.googleapis.com/css?family=Google+Sans_old:500)</style><line x1="8" y1="7" x2="8" y2="26" style="stroke: #5f6368; stroke-width:2"></line><image x="16" y="2.5" width="37.5" height="29" preserveAspectRatio="none" xlink:href="https://www.gstatic.com/images/icons/material/system/1x/payment_white_36dp.png"></image><text x="57" y="22" class="small" style="font: 15px \'Google Sans\', sans-serif; fill: #fff">\u2022\u2022\u2022\u2022\u2022\u2022</text></svg>'),Sd=["ELECTRON","MAESTRO","ELO_DEBIT"];function Nn(a,l){l=void 0===l?document:l;var h=document.createElement("style");if(h.type="text/css",h.textContent=a,l instanceof HTMLDocument)document.head.appendChild(h);else{if(!(l instanceof ShadowRoot))throw Error("Parameter 'buttonRootNode' should be either document or a shadowroot.");l.appendChild(h)}return h}var Td=function(){this.Sc=qn.contentWindow};Td.prototype.postMessage=function(a,l){this.Sc.postMessage(a,l)};var Qu=Array.prototype.indexOf?function(a,l){return kn(null!=a.length),Array.prototype.indexOf.call(a,l,void 0)}:function(a,l){if("string"==typeof a)return"string"!=typeof l||1!=l.length?-1:a.indexOf(l,0);for(var h=0;h<a.length;h++)if(h in a&&a[h]===l)return h;return-1},Nm=Array.prototype.forEach?function(a,l){kn(null!=a.length),Array.prototype.forEach.call(a,l,void 0)}:function(a,l){for(var h=a.length,p="string"==typeof a?a.split(""):a,v=0;v<h;v++)v in p&&l.call(void 0,p[v],v,a)};function oa(a){var l=a.length;if(l>0){for(var h=Array(l),p=0;p<l;p++)h[p]=a[p];return h}return[]}var aa="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");var ca,Fm=$.globalThis.trustedTypes;function Ju(){return void 0===ca&&(ca=function _t(){var a=null;if(!Fm)return a;try{var l=function(h){return h};a=Fm.createPolicy("goog#html",{createHTML:l,createScript:l,createScriptURL:l})}catch(h){throw h}return a}()),ca}var ec=function(a){this.ac=a};function Md(a){var l=Ju();return new ec(l?l.createScriptURL(a):a)}function tc(a){if(a instanceof ec)return a.ac;throw Error("Unexpected type when unwrapping TrustedResourceUrl")}ec.prototype.toString=function(){return this.ac+""};var bt=function(a){this.bc=a};bt.prototype.toString=function(){return this.bc},new bt("about:blank"),new bt("about:invalid#zClosurez");var Id=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i,nc=[],Pd=function(){};!function mn(a){-1===nc.indexOf(a)&&nc.push(a),Pd=function(l){nc.forEach(function(h){h(l)})}}(function(a){console.warn("A URL with content '"+a+"' was sanitized away.")});var Qt=function(a){this.Zb=a};function Ad(a,l){a.src=tc(l).toString()}function Tt(a,l,h,p){if(l instanceof bt){if(!(l instanceof bt))throw Error("Unexpected type when unwrapping SafeUrl, got '"+l+"' of type '"+typeof l+"'");l=l.bc}else{var v=!Id.test(l);v&&Pd(l),l=v?void 0:l}return void 0!==l?a.open(l,h,p):null}function xd(a){if("string"!=typeof a||""===a.trim())throw Error("Calls to uncheckedconversion functions must go through security review. A justification must be provided to capture what security assumptions are being made. See go/unchecked-conversions")}function Ar(){var a=ao.navigator;return a&&(a=a.userAgent)?a:""}Qt.prototype.toString=function(){return this.Zb+""};var Nd=!(-1==Ar().indexOf("Gecko")||-1!=Ar().toLowerCase().indexOf("webkit")&&-1==Ar().indexOf("Edge")||-1!=Ar().indexOf("Trident")||-1!=Ar().indexOf("MSIE")||-1!=Ar().indexOf("Edge")),zo=-1!=Ar().toLowerCase().indexOf("webkit")&&-1==Ar().indexOf("Edge"),jm={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"},Bb=function(a,l,h){function p(E){E&&l.appendChild("string"==typeof E?a.createTextNode(E):E)}for(var v=2;v<h.length;v++){var b=h[v];if(!Qs(b)||dr(b)&&b.nodeType>0)p(b);else{e:{if(b&&"number"==typeof b.length){if(dr(b)){var w="function"==typeof b.item||"string"==typeof b.item;break e}if("function"==typeof b){w="function"==typeof b.item;break e}}w=!1}Nm(w?oa(b):b,p)}}},Od=function(a,l){return l=String(l),"application/xhtml+xml"===a.contentType&&(l=l.toLowerCase()),a.createElement(l)},rc=function(a){var l=Array.prototype.map.call(arguments,st).join("");xd("Constant HTML string, that gets turned into a Node later, so it will be automatically balanced.");var h=Ju(),p=new Qt(h?h.createHTML(l):l);if(h=document,1===(l=Od(h,"DIV")).nodeType){var v=l.tagName;if(/^(script|style)$/i.test(v))throw l="script"===v.toLowerCase()?"Use setScriptTextContent with a SafeScript.":"Use setStyleTextContent with a SafeStyleSheet.",Error(l)}if(!(p instanceof Qt))throw Error("Unexpected type when unwrapping SafeHtml");if(l.innerHTML=p=p.Zb,1==l.childNodes.length)l=l.removeChild(kn(l.firstChild));else{for(h=h.createDocumentFragment();l.firstChild;)h.appendChild(l.firstChild);l=h}return l};function ic(a,l){var h=st(a);if(!Hm.test(h))throw Error("Invalid TrustedResourceUrl format: "+h);return a=h.replace(Bm,function(p,v){if(!Object.prototype.hasOwnProperty.call(l,v))throw Error('Found marker, "'+v+'", in format string, "'+h+'", but no valid label mapping found in args: '+JSON.stringify(l));return(p=l[v])instanceof ea?st(p):encodeURIComponent(String(p))}),xd("Deprecated, but safe closure/html builder"),Md(a)}var Bm=/%{(\w+)}/g,Hm=RegExp("^((https:)?//[0-9a-z.:[\\]-]+/|/[^/\\\\]|[^:/\\\\%]+/|[^:/\\\\%]*[?#]|about:blank#)","i"),Hb={wd:0,ed:1,lc:2,mc:3,nc:4,jd:5},qn=null,oc=null,ze=null,Gm=null,Um=Date.now(),xr=null,Rd=!1,sc=[],la=function(a,l,h,p){window.addEventListener("message",function v(b){Fd(h,b)&&(p(b),uc(v))}),a=U(Object,"assign").call(Object,{eventType:l},a),Be(a)},Fd=function(a,l){for(var h=0;h<a.length;h++)if(l.data[a[h]])return!0;return!1},uc=function(a){window.removeEventListener("message",a)},Be=function(a){Rd&&oc?$m(a):sc.push(a)},$m=function(a){if(oc){if(a=U(Object,"assign").call(Object,{buyFlowActivityMode:xr,googleTransactionId:Gm,originTimeMs:Um},a),"CANARY"==ze)var l="https://ibfe-canary.corp.google.com";else l="https://pay","SANDBOX"==ze?l+=".sandbox":"PREPROD"==ze&&(l+="-preprod.sandbox"),l+=".google.com";oc.postMessage(a,l)}else google.payments.api.LogInternally&&console.log("postMessageService is null when expected to exist.")},zm=function(a,l){Rd||(l>30?(google.payments.api.LogInternally&&console.log("PayJS-PayFrame handshake unsuccessful."),Be({eventType:20,clientLatencyStartMs:Date.now()}),a&&uc(a),Ld()):(a||(a=function h(p){Fd(["pingResponse"],p)&&(Be({eventType:19,clientLatencyStartMs:Date.now()}),a&&uc(a),Ld())},window.addEventListener("message",a)),$m({eventType:14}),setTimeout(function(){return zm(a,l+1)},10)))},Ld=function(){Rd=!0,sc.forEach(function(a){Be(a)}),sc.length=0};!function(){if(!qn){var a=window.gpayInitParams||{};"PRODUCTION"!==(ze=a.environment||"PRODUCTION")&&"TEST"!==ze||function(){var a=function(a,l,h){var p=arguments,v=document,b=p[1],w=Od(v,String(p[0]));return b&&("string"==typeof b?w.className=b:Array.isArray(b)?w.className=b.join(" "):function(a,l){!function sa(a,l){for(var h in a)l.call(void 0,a[h],h,a)}(l,function(h,p){"style"==p?a.style.cssText=h:"class"==p?a.className=h:"for"==p?a.htmlFor=h:jm.hasOwnProperty(p)?a.setAttribute(jm[p],h):0==p.lastIndexOf("aria-",0)||0==p.lastIndexOf("data-",0)?a.setAttribute(p,h):a[p]=h})}(w,b)),p.length>2&&Bb(v,w,p),w}("META");a.httpEquiv="origin-trial",a.id="origin-trial",a.content="Ayudt5SzRWp86yExqv4T3+PiWzcX+WBtprm+ux6vfIGn5Dg3JSrZL2Y5UkppRzYnVyYzu8hvj+Q4pdGSWsLVYgMAAABgeyJvcmlnaW4iOiJodHRwczovL3BheS5nb29nbGUuY29tOjQ0MyIsImZlYXR1cmUiOiJUcGNkIiwiZXhwaXJ5IjoxNzM1MzQzOTk5LCJpc1RoaXJkUGFydHkiOnRydWV9",document.head.append(a)}(),Ad(qn=document.createElement("iframe"),ic(zn(("CANARY"==ze?"https://ibfe-canary.corp":"https://pay")+("PREPROD"==ze?"-preprod.sandbox":"SANDBOX"==ze?".sandbox":"")+".google.com/gp/p/ui/payframe?origin=%{windowOrigin}&mid=%{merchantId}"),{windowOrigin:window.location.origin,merchantId:a.merchantInfo&&a.merchantInfo.merchantId||""})),Be({eventType:15,clientLatencyStartMs:Date.now()}),la({},11,["canMakePaymentForPaymentHandlerResponse"],function(){}),qn.height="0",qn.width="0",qn.style.display="none",qn.style.visibility="hidden",qn.setAttribute("allowpaymentrequest",!0),qn.onload=function(){oc=new Td,Be({eventType:17,clientLatencyStartMs:Date.now()}),Be({eventType:16,clientLatencyStartMs:Date.now()}),Be({eventType:18,clientLatencyStartMs:Date.now()}),zm(null,0)},document.body?document.body.appendChild(qn):document.addEventListener("DOMContentLoaded",function(){document.body.appendChild(qn)})}}();var Ub="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");function Vd(a,l){if("object"!=typeof l||null===l)return a;for(var h in l)l.hasOwnProperty(h)&&void 0!==l[h]&&(null==l[h]?a[h]=null:null==a[h]||"object"!=typeof a[h]||"object"!=typeof l[h]||Array.isArray(l[h])||Array.isArray(a[h])?a[h]=l[h]:Vd(a[h],l[h]));return a}function oi(a){var h,l=0;if(0==a.length)return l;for(h=0;h<a.length;h++)l=(l<<5)-l+a.charCodeAt(h),l&=l;return l}function Wn(a){console.error("DEVELOPER_ERROR in "+a.M+": "+a.errorMessage)}var $b=function(a,l,h){if(a.forEach&&"function"==typeof a.forEach)a.forEach(l,h);else if(Qs(a)||"string"==typeof a)Array.prototype.forEach.call(a,l,h);else for(var p=function(a){if(a.sb&&"function"==typeof a.sb)return a.sb();if(!a.oa||"function"!=typeof a.oa){if(typeof $.Map<"u"&&a instanceof $.Map)return U(Array,"from").call(Array,U(a,"keys").call(a));if(!(typeof Set<"u"&&a instanceof Set)){if(Qs(a)||"string"==typeof a){var l=[];a=a.length;for(var h=0;h<a;h++)l.push(h);return l}for(var p in l=[],h=0,a)l[h++]=p;return l}}}(a),v=function(a){if(a.oa&&"function"==typeof a.oa)return a.oa();if(typeof $.Map<"u"&&a instanceof $.Map||typeof Set<"u"&&a instanceof Set)return U(Array,"from").call(Array,U(a,"values").call(a));if("string"==typeof a)return a.split("");if(Qs(a)){for(var l=[],h=a.length,p=0;p<h;p++)l.push(a[p]);return l}for(p in l=[],h=0,a)l[h++]=a[p];return l}(a),b=v.length,w=0;w<b;w++)l.call(h,v[w],p&&p[w],a)},jd=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),cc=function(a){var l=a.match(jd);a=l[1];var h=l[3];l=l[4];var p="";return a&&(p+=a+":"),h&&(p=p+"//"+h,l&&(p+=":"+l)),p},fr=function(a){if(this.U=this.va=this.ha="",this.o=null,this.R=this.S="",this.J=this.Ac=!1,a instanceof fr){this.J=a.J,da(this,a.ha);var l=a.va;Ht(this),this.va=l,l=a.U,Ht(this),this.U=l,fa(this,a.o),l=a.S,Ht(this),this.S=l,lc(this,a.K.clone()),a=a.R,Ht(this),this.R=a}else a&&(l=String(a).match(jd))?(this.J=!1,da(this,l[1]||"",!0),a=l[2]||"",Ht(this),this.va=qo(a),a=l[3]||"",Ht(this),this.U=qo(a,!0),fa(this,l[4]),a=l[5]||"",Ht(this),this.S=qo(a,!0),lc(this,l[6]||"",!0),a=l[7]||"",Ht(this),this.R=qo(a)):(this.J=!1,this.K=new gn(null,this.J))};fr.prototype.toString=function(){var a=[],l=this.ha;l&&a.push(Wo(l,Bd,!0),":");var h=this.U;return(h||"file"==l)&&(a.push("//"),(l=this.va)&&a.push(Wo(l,Bd,!0),"@"),a.push(encodeURIComponent(String(h)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(h=this.o)&&a.push(":",String(h))),(h=this.S)&&(this.U&&"/"!=h.charAt(0)&&a.push("/"),a.push(Wo(h,"/"==h.charAt(0)?Qm:qb,!0))),(h=this.K.toString())&&a.push("?",h),(h=this.R)&&a.push("#",Wo(h,Hd)),a.join("")},fr.prototype.resolve=function(a){var l=this.clone(),h=!!a.ha;if(h?da(l,a.ha):h=!!a.va,h){var p=a.va;Ht(l),l.va=p}else h=!!a.U;if(h?(p=a.U,Ht(l),l.U=p):h=null!=a.o,p=a.S,h)fa(l,a.o);else if(h=!!a.S){if("/"!=p.charAt(0))if(this.U&&!this.S)p="/"+p;else{var v=l.S.lastIndexOf("/");-1!=v&&(p=l.S.slice(0,v+1)+p)}if(".."==(v=p)||"."==v)p="";else if(-1!=v.indexOf("./")||-1!=v.indexOf("/.")){p=0==v.lastIndexOf("/",0),v=v.split("/");for(var b=[],w=0;w<v.length;){var E=v[w++];"."==E?p&&w==v.length&&b.push(""):".."==E?((b.length>1||1==b.length&&""!=b[0])&&b.pop(),p&&w==v.length&&b.push("")):(b.push(E),p=!0)}p=b.join("/")}else p=v}return h?(Ht(l),l.S=p):h=""!==a.K.toString(),h?lc(l,a.K.clone()):h=!!a.R,h&&(a=a.R,Ht(l),l.R=a),l},fr.prototype.clone=function(){return new fr(this)};var da=function(a,l,h){Ht(a),a.ha=h?qo(l,!0):l,a.ha&&(a.ha=a.ha.replace(/:$/,""))},fa=function(a,l){if(Ht(a),l){if(l=Number(l),isNaN(l)||l<0)throw Error("Bad port number "+l);a.o=l}else a.o=null},lc=function(a,l,h){Ht(a),l instanceof gn?(a.K=l,a.K.Eb(a.J)):(h||(l=Wo(l,si)),a.K=new gn(l,a.J))};fr.prototype.getQuery=function(){return this.K.toString()};var Li=function(a,l,h){Ht(a),a.K.set(l,h)};fr.prototype.removeParameter=function(a){return Ht(this),this.K.remove(a),this};var Ht=function(a){if(a.Ac)throw Error("Tried to modify a read-only Uri")};fr.prototype.Eb=function(a){this.J=a,this.K&&this.K.Eb(a)};var qo=function(a,l){return a?l?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},Wo=function(a,l,h){return"string"==typeof a?(a=encodeURI(a).replace(l,zb),h&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},zb=function(a){return"%"+((a=a.charCodeAt(0))>>4&15).toString(16)+(15&a).toString(16)},Bd=/[#\/\?@]/g,qb=/[#\?:]/g,Qm=/[#\?]/g,si=/[#\?@]/g,Hd=/#/g,gn=function(a,l){this.F=this.j=null,this.H=a||null,this.J=!!l},kr=function(a){a.j||(a.j=new $.Map,a.F=0,a.H&&function(a,l){if(a){a=a.split("&");for(var h=0;h<a.length;h++){var p=a[h].indexOf("="),v=null;if(p>=0){var b=a[h].substring(0,p);v=a[h].substring(p+1)}else b=a[h];l(b,v?decodeURIComponent(v.replace(/\+/g," ")):"")}}}(a.H,function(l,h){a.add(decodeURIComponent(l.replace(/\+/g," ")),h)}))};gn.prototype.add=function(a,l){kr(this),this.H=null,a=Vi(this,a);var h=this.j.get(a);return h||this.j.set(a,h=[]),h.push(l),this.F=Ni(this.F)+1,this},gn.prototype.remove=function(a){return kr(this),a=Vi(this,a),!!this.j.has(a)&&(this.H=null,this.F=Ni(this.F)-this.j.get(a).length,this.j.delete(a))},gn.prototype.clear=function(){this.j=this.H=null,this.F=0};var dc=function(a,l){return kr(a),l=Vi(a,l),a.j.has(l)};(F=gn.prototype).forEach=function(a,l){kr(this),this.j.forEach(function(h,p){h.forEach(function(v){a.call(l,v,p,this)},this)},this)},F.sb=function(){kr(this);for(var a=U(Array,"from").call(Array,U(this.j,"values").call(this.j)),l=U(Array,"from").call(Array,U(this.j,"keys").call(this.j)),h=[],p=0;p<l.length;p++)for(var v=a[p],b=0;b<v.length;b++)h.push(l[p]);return h},F.oa=function(a){kr(this);var l=[];if("string"==typeof a)dc(this,a)&&(l=l.concat(this.j.get(Vi(this,a))));else{a=U(Array,"from").call(Array,U(this.j,"values").call(this.j));for(var h=0;h<a.length;h++)l=l.concat(a[h])}return l},F.set=function(a,l){return kr(this),this.H=null,a=Vi(this,a),dc(this,a)&&(this.F=Ni(this.F)-this.j.get(a).length),this.j.set(a,[l]),this.F=Ni(this.F)+1,this},F.get=function(a,l){return a&&(a=this.oa(a)).length>0?String(a[0]):l},F.toString=function(){if(this.H)return this.H;if(!this.j)return"";for(var a=[],l=U(Array,"from").call(Array,U(this.j,"keys").call(this.j)),h=0;h<l.length;h++){var p=l[h],v=encodeURIComponent(String(p));p=this.oa(p);for(var b=0;b<p.length;b++){var w=v;""!==p[b]&&(w+="="+encodeURIComponent(String(p[b]))),a.push(w)}}return this.H=a.join("&")},F.clone=function(){var a=new gn;return a.H=this.H,this.j&&(a.j=new $.Map(this.j),a.F=this.F),a};var Vi=function(a,l){return l=String(l),a.J&&(l=l.toLowerCase()),l};gn.prototype.Eb=function(a){a&&!this.J&&(kr(this),this.H=null,this.j.forEach(function(l,h){var p=h.toLowerCase();h!=p&&(this.remove(h),this.remove(p),l.length>0&&(this.H=null,this.j.set(Vi(this,p),oa(l)),this.F=Ni(this.F)+l.length))},this)),this.J=a},gn.prototype.extend=function(a){for(var l=0;l<arguments.length;l++)$b(arguments[l],function(h,p){this.add(p,h)},this)};var Zo=[],ha=[],fc=null,hc=[],Nr=window.location.hostname,pc=window.location.ancestorOrigins,pa=window.whitelistedDomainsHashedValueListForGpayButtonWithCardInfo||[],Jm=window.denylistedDomainsHashedValueListForGpayButtonWithCardInfo||[],Yo=window.denylistedMerchentIdsHashedValueListForGpayButtonWithCardInfo||[],Gd=window.denylistedMerchantIdsHashedValueListForGpayButtonVariant||[],Ud=window.allowlistedMerchantDomainsForBnplDynamicButton||[],mc=window.allowlistedMerchantDomainsForRlmiaDynamicButton||[],eg=window.allowlistedMerchantDomainsForPopupModeLoadingScreen||[],$d=window.dynamicGpayButtonVariant||"",ma=window.testOnlyLocalIbfeUrl||"";function Ko(){switch($d){case"GPAY_BUTTON_VARIANT_TYPE_NONE":return 1;case"GPAY_BUTTON_VARIANT_TYPE_DEBIT":return 2;case"GPAY_BUTTON_VARIANT_TYPE_SECURE":return 3;case"GPAY_BUTTON_VARIANT_TYPE_SPEED":return 4;case"GPAY_BUTTON_VARIANT_TYPE_SNOWFALL":return 5;case"GPAY_BUTTON_VARIANT_TYPE_BNPL_ONLY":return 6;case"GPAY_BUTTON_VARIANT_TYPE_BNPL_CARD":return 7;case"GPAY_BUTTON_VARIANT_TYPE_OLYMPICS":return 8;case"GPAY_BUTTON_VARIANT_TYPE_RLMIA":return 9;default:return 0}}function gc(a){["mouseover","mouseout"].map(function(l){a.addEventListener(l,function(h){a.classList.toggle("hover","mouseover"==h.type);var p=document.querySelector(".gpay-card-info-animation-container");null!==p&&p.classList.toggle("hover","mouseover"==h.type)})}),["mousedown","mouseup","mouseout"].map(function(l){a.addEventListener(l,function(h){a.classList.toggle("active","mousedown"==h.type)})}),["focus","blur"].map(function(l){a.addEventListener(l,function(h){a.classList.toggle("focus","focus"==h.type)})})}function zd(a,l){a.setAttribute("type","button");var h="Google Pay";if(google.payments.api.EnableGpayButtonAriaLabelLocalization){var p=ji(l.buttonLocale,!0);switch(l.buttonType){case"buy":case"long":var v;h=null!=(v=Ri.buy[p])?v:h;break;case"book":var b;h=null!=(b=Ri.book[p])?b:h;break;case"checkout":var w;h=null!=(w=Ri.checkout[p])?w:h;break;case"donate":var E;h=null!=(E=Ri.donate[p])?E:h;break;case"order":var V;h=null!=(V=Ri.order[p])?V:h;break;case"pay":var O;h=null!=(O=Ri.pay[p])?O:h;break;case"subscribe":var X;h=null!=(X=Ri.subscribe[p])?X:h;break;default:h="Google Pay"}}a.setAttribute("aria-label",h)}function qd(a,l){google.payments.api.EnableGpayButtonDynamicRadius&&null!=l.buttonRadius&&null!=l.buttonRadius&&(fc&&fc.remove(),fc=Nn(".gpay-card-info-container.gpay-card-info-custom-radius, .gpay-button.gpay-card-info-custom-radius\n {\n border-radius: "+l.buttonRadius+"px;\n overflow: hidden;\n }\n",l.buttonRootNode),a.forEach(function(h){return h.classList.add("gpay-card-info-custom-radius")}))}function Wd(a){var l="white";Xo(a)||(l="black");var h=a.buttonType||"buy";return"buy"===a.buttonType?h="buy long":"plain"===a.buttonType&&(h="plain short"),l+" "+h+" "+ji(a.buttonLocale)}function Xo(a){return"white"==a.buttonColor}function ji(a,l){var h=null!=navigator.language?navigator.language.substring(0,5):"en",p=(a||h||"en").substring(0,5);return p in uo.buy?p:(p!==h&&void 0!==l&&l&&Wn({M:"createButton",errorMessage:'Button locale "'+a+'" is not supported, falling back to browser locale.'}),h in uo.buy?h:"en")}function Yd(a){2===a&&U(eg,"includes").call(eg,oi(Nr))&&Tt(window,"about:blank","gp-js-popup","width=600,height=600,menubar=no,toolbar=no,scrollbars=no")}var ga=function(){},Kd=function(a,l){return new $.Promise(function(h,p){setTimeout(function(){p({reason:"OTHER_ERROR",intent:a,message:"REQUEST_TIMEOUT"})},l)})},ig=function(a,l){return{error:{reason:a.reason||"OTHER_ERROR",intent:a.intent||l,message:a.message}}},Xd=function(a,l,h){Wn({M:"loadPaymentData",errorMessage:"An error occurred in call back, please try to avoid this by setting structured error in callback response"}),a&&Be({eventType:l,merchantCallbackInfo:{callbackTrigger:h||0}})};ga.prototype.Wb=function(a,l,h){return null===l.error&&(console.warn("Please remove null fields in callback returns."),delete l.error),{modifiers:[{supportedMethods:[h&&"SANDBOX"===h&&google.payments.api.EnablePaymentHandlerSandboxBuyflow?"https://pay.sandbox.google.com/gp/p/payment_method_manifest.json":"https://google.com/pay"],data:l}]}},ga.prototype.hb=function(a,l){return{type:a,data:l}};var Qd=function(a,l,h,p,v){return $.Promise.resolve($.Promise.race([Kd("PAYMENT_AUTHORIZATION",h),l.onPaymentAuthorized(a)])).then(function(b){return p("paymentAuthorizationResponse",b,v)},function(b){return Xd("REQUEST_TIMEOUT"===b.message,27,2),p("paymentAuthorizationResponse",ig(b,"PAYMENT_AUTHORIZATION"),v)})},vc=function(a,l,h,p,v){return $.Promise.resolve($.Promise.race([Kd(a.callbackTrigger in ln?ln[a.callbackTrigger]:"UNKNOWN_INTENT",h),l.onPaymentDataChanged(a)])).then(function(b){return p("paymentDataCallbackResponse",b,v)},function(b){return Xd("REQUEST_TIMEOUT"===b.message,26,Hb[a.callbackTrigger]),p("paymentDataCallbackResponse",ig(b,a.callbackTrigger||"UNKNOWN_INTENT"),v)})},_c=function(){var a=window.document,l=this;this.Qb=a,this.V=a.createElement("gpay-graypane"),Qo(this.V,{"z-index":2147483647,display:"none",position:"fixed",top:0,right:0,bottom:0,left:0,"background-color":"rgba(32, 33, 36, .6)"}),this.kb=null,this.V.addEventListener("click",function(){l.O()})};function Qo(a,l){for(var h in l)a.style.setProperty(h,l[h].toString(),"important")}function ai(a,l){var h=a.ownerDocument.defaultView,p=a.style.transition||"";return new $.Promise(function(v){h.setTimeout(function(){h.setTimeout(v,300),Qo(a,U(Object,"assign").call(Object,{transition:"transform 300ms ease-out, opacity 300ms ease-out"},l))})}).then(function(){Qo(a,U(Object,"assign").call(Object,{transition:p},l))})}_c.prototype.show=function(a){return this.kb=a||null,this.Qb.body.appendChild(this.V),Qo(this.V,{display:"block",opacity:0}),ai(this.V,{opacity:1})},_c.prototype.O=function(){if(this.kb)try{this.kb.focus()}catch{}};var sg=function(a){this.m=a,this.yb=this.zb=this.A=this.ma=null,this.sa=3e4};(F=sg.prototype).Ab=function(a){this.A=a},F.Ma=function(a){this.ma=a},F.isReadyToPay=function(a){var l=Jd(a);return new $.Promise(function(h){var p=!1;if(null!=l.hasEnrolledInstrument){var v=l.hasEnrolledInstrument();p=!0}else v=l.canMakePayment();v.then(function(b){window.sessionStorage.setItem("google.payments.api.storage.isreadytopay.result",b.toString());var w={result:b};a.apiVersion>=2&&a.existingPaymentMethodRequired&&(w.paymentMethodPresent=b),google.payments.api.EnableImprovedIsrtpLogging&&!w.result&&(w.notReadyToPayFactors=[p?8:9]),h(w)}).catch(function(){if(window.sessionStorage.getItem("google.payments.api.storage.isreadytopay.result")){var b={result:"true"==window.sessionStorage.getItem("google.payments.api.storage.isreadytopay.result")};google.payments.api.EnableImprovedIsrtpLogging&&!b.result&&(b.notReadyToPayFactors=[p?10:11,12]),h(b)}else b={result:!1},google.payments.api.EnableImprovedIsrtpLogging&&(b.notReadyToPayFactors=[p?10:11]),h(b)})})},F.prefetchPaymentData=function(a){Jd(a,this.m,a.transactionInfo.currencyCode,a.transactionInfo.totalPrice)},F.loadPaymentData=function(a){ef(this,a)},F.O=function(){};var Jd=function(a,l,h,p){var v={};return a&&(v=JSON.parse(JSON.stringify(a))),v.apiVersion||(v.apiVersion=1),v.swg&&(v.allowedPaymentMethods=["CARD"]),l&&"TEST"==l&&(v.environment=l),new PaymentRequest([{supportedMethods:[l&&"SANDBOX"===l&&google.payments.api.EnablePaymentHandlerSandboxBuyflow?"https://pay.sandbox.google.com/gp/p/payment_method_manifest.json":"https://google.com/pay"],data:v}],{total:{label:"Estimated Total Price",amount:{currency:h||"USD",value:p||"0"}}})},ef=function(a,l){(l=Jd(l,a.m,l.transactionInfo&&l.transactionInfo.currencyCode||void 0,l.transactionInfo&&l.transactionInfo.totalPrice||void 0)).onpaymentmethodchange=function(h){var p=new ga;p=h.methodDetails.callbackTrigger?vc(h.methodDetails,a.A,a.sa,p.Wb,a.m):Qd(h.methodDetails,a.A,a.sa,p.Wb,a.m),h.updateWith(p)},a.ma(l.show().then(function(h){return google.payments.api.LogInternally&&console.log("payment response",h),h.complete("success"),h.details.statusCode?(google.payments.api.LogInternally&&console.log("status code",h.details.statusCode),{error:h.details}):h.details}).catch(function(h){throw google.payments.api.LogInternally&&console.log("payment response with err",h),h.statusCode="CANCELED",h}))},bc=["SHIPPING_ADDRESS","SHIPPING_OPTION"];function tf(a){if(a.apiVersion>=2){var l=ug(a);if(l&&1==l.length&&"CRYPTOGRAM_3DS"==l[0])return!0}return 1==a.allowedPaymentMethods.length&&"TOKENIZED_CARD"==a.allowedPaymentMethods[0]}function wc(a,l){return!!(a.apiVersion>=2&&(a=ug(a))&&U(a,"includes").call(a,l))}function Jo(a){return!!(a.apiVersion>=2&&a.allowedPaymentMethods&&Cc(a,"EWALLET"))}function es(){var a=window.location.hostname,l=a.length-11;return l>=0&&a.indexOf(".google.com",l)==l||void 0===window.isSecureContext||window.isSecureContext?null:"Google Pay APIs should be called in secure context!"}function Xb(a){return"CARD"===a||"TOKENIZED_CARD"===a}function Qb(a){return(A=U(Object,"values").call(Object,Cd),U(A,"includes")).call(A,a)}function nf(a){return a?a.encryptedParameters?null:a.apiVersion<2||!a.allowedPaymentMethods||!Cc(a,"UPI")?a.swg?(a=a.swg)?a.skuId&&a.publicationId?null:"Both skuId and publicationId must be provided":"Swg parameters must be provided":a.transactionInfo?a.transactionInfo.currencyCode?a.transactionInfo.totalPriceStatus&&(A=U(Object,"values").call(Object,Ed),U(A,"includes")).call(A,a.transactionInfo.totalPriceStatus)?"NOT_CURRENTLY_KNOWN"===a.transactionInfo.totalPriceStatus||a.transactionInfo.totalPrice?null:"totalPrice in transactionInfo must be set when totalPriceStatus is ESTIMATED or FINAL!":"totalPriceStatus in transactionInfo must be set to one of NOT_CURRENTLY_KNOWN, ESTIMATED or FINAL!":"currencyCode in transactionInfo must be set!":"transactionInfo must be set!":"UPI not supported":"paymentDataRequest must be set!"}function ag(a,l){if(a.callbackIntents&&!l)return"paymentDataCallbacks must be set";if(U(a.callbackIntents,"includes").call(a.callbackIntents,"PAYMENT_AUTHORIZATION")!==!!l.onPaymentAuthorized)return"Both PAYMENT_AUTHORIZATION intent and onPaymentAuthorized must be set";var h=bc.slice();return google.payments.api.EnableOfferCallback&&h.push("OFFER"),h.push("PAYMENT_METHOD"),!!h.filter(function(p){return U(a.callbackIntents,"includes").call(a.callbackIntents,p)}).length!=!!l.onPaymentDataChanged?"onPaymentDataChanged callback must be set if any of "+h+" callback intent is set.":null}function ug(a){return a.allowedPaymentMethods&&(a=Cc(a,"CARD"))&&a.parameters?a.parameters.allowedAuthMethods:null}function Cc(a,l){for(var h=0;h<a.allowedPaymentMethods.length;h++){var p=a.allowedPaymentMethods[h];if(p.type==l)return p}return null}var k={},co=function(a,l){Array.isArray(l)||(l=[l]),kn(l.length>0,"At least one Css3Property should be specified."),l=l.map(function(h){if("string"==typeof h)return h;!function(a,l,h){dr(a)||Js("Expected object but got %s: %s.",[Xs(a),a],l,Array.prototype.slice.call(arguments,2))}(h,"Expected css3 property to be an object.");var p=h.Hc+" "+h.duration+"s "+h.timing+" "+h.delay+"s";return kn(h.Hc&&"number"==typeof h.duration&&h.timing&&"number"==typeof h.delay,"Unexpected css3 property value: %s",p),p}),function(a,l){var h=k.transition;if(!h){var p="transition".replace(/\-([a-z])/g,function(a,l){return l.toUpperCase()});h=p,void 0===a.style[p]&&(p=(zo?"Webkit":Nd?"Moz":null)+function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(l,h,p){return h+p.toUpperCase()})}(p),void 0!==a.style[p]&&(h=p)),k.transition=h}h&&(a.style[h]=l)}(a,l.join(","))},Or=function(){this.cb=this.cb,this.jb=this.jb};Or.prototype.cb=!1,Or.prototype.dispose=function(){this.cb||(this.cb=!0,this.Fa())},Or.prototype[U($.Symbol,"dispose")]=function(){this.dispose()},Or.prototype.Fa=function(){if(this.jb)for(;this.jb.length;)this.jb.shift()()};var ui=function(a,l){this.type=a,this.currentTarget=this.target=l,this.defaultPrevented=this.Pa=!1};ui.prototype.stopPropagation=function(){this.Pa=!0},ui.prototype.preventDefault=function(){this.defaultPrevented=!0};var Jb=function(){if(!ao.addEventListener||!Object.defineProperty)return!1;var a=!1,l=Object.defineProperty({},"passive",{get:function(){a=!0}});try{var h=function(){};ao.addEventListener("test",h,l),ao.removeEventListener("test",h,l)}catch{}return a}(),lo=function(a,l){if(ui.call(this,a?a.type:""),this.relatedTarget=this.currentTarget=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0,this.key="",this.charCode=this.keyCode=0,this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.timeStamp=0,this.Ga=null,a){var h=this.type=a.type,p=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement,this.currentTarget=l,(l=a.relatedTarget)||("mouseover"==h?l=a.fromElement:"mouseout"==h&&(l=a.toElement)),this.relatedTarget=l,p?(this.clientX=void 0!==p.clientX?p.clientX:p.pageX,this.clientY=void 0!==p.clientY?p.clientY:p.pageY,this.screenX=p.screenX||0,this.screenY=p.screenY||0):(this.offsetX=zo||void 0!==a.offsetX?a.offsetX:a.layerX,this.offsetY=zo||void 0!==a.offsetY?a.offsetY:a.layerY,this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0),this.button=a.button,this.keyCode=a.keyCode||0,this.key=a.key||"",this.charCode=a.charCode||("keypress"==h?a.keyCode:0),this.ctrlKey=a.ctrlKey,this.altKey=a.altKey,this.shiftKey=a.shiftKey,this.metaKey=a.metaKey,this.pointerId=a.pointerId||0,this.pointerType=a.pointerType,this.state=a.state,this.timeStamp=a.timeStamp,this.Ga=a,a.defaultPrevented&&lo.Da.preventDefault.call(this)}};ki(lo,ui),lo.prototype.stopPropagation=function(){lo.Da.stopPropagation.call(this),this.Ga.stopPropagation?this.Ga.stopPropagation():this.Ga.cancelBubble=!0},lo.prototype.preventDefault=function(){lo.Da.preventDefault.call(this);var a=this.Ga;a.preventDefault?a.preventDefault():a.returnValue=!1};var fo="closure_listenable_"+(1e6*Math.random()|0),Rr=0,ho=function(a,l,h,p,v){this.listener=a,this.proxy=null,this.src=l,this.type=h,this.capture=!!p,this.fb=v,this.key=++Rr,this.Qa=this.ab=!1},Fr=function(a){a.Qa=!0,a.listener=null,a.proxy=null,a.src=null,a.fb=null};function On(a){this.src=a,this.D={},this.Va=0}On.prototype.add=function(a,l,h,p,v){var b=a.toString();(a=this.D[b])||(a=this.D[b]=[],this.Va++);var w=ts(a,l,p,v);return w>-1?(l=a[w],h||(l.ab=!1)):((l=new ho(l,this.src,b,!!p,v)).ab=h,a.push(l)),l},On.prototype.remove=function(a,l,h,p){if(!((a=a.toString())in this.D))return!1;var v=this.D[a];return(l=ts(v,l,h,p))>-1&&(Fr(v[l]),kn(null!=v.length),Array.prototype.splice.call(v,l,1),0==v.length&&(delete this.D[a],this.Va--),!0)};var ya=function(a,l){var h=l.type;if(h in a.D){var b,p=a.D[h],v=Qu(p,l);(b=v>=0)&&(kn(null!=p.length),Array.prototype.splice.call(p,v,1)),b&&(Fr(l),0==a.D[h].length&&(delete a.D[h],a.Va--))}};On.prototype.tb=function(a,l,h,p){var v=-1;return(a=this.D[a.toString()])&&(v=ts(a,l,h,p)),v>-1?a[v]:null},On.prototype.hasListener=function(a,l){var h=void 0!==a,p=h?a.toString():"",v=void 0!==l;return function Om(a,l){for(var h in a)if(l.call(void 0,a[h],h,a))return!0;return!1}(this.D,function(b){for(var w=0;w<b.length;++w)if(!(h&&b[w].type!=p||v&&b[w].capture!=l))return!0;return!1})};var ts=function(a,l,h,p){for(var v=0;v<a.length;++v){var b=a[v];if(!b.Qa&&b.listener==l&&b.capture==!!h&&b.fb==p)return v}return-1},ci="closure_lm_"+(1e6*Math.random()|0),sf={},cg=function(a,l,h,p,v){if(p&&p.once)af(a,l,h,p,v);else if(Array.isArray(l))for(var b=0;b<l.length;b++)cg(a,l[b],h,p,v);else h=po(h),a&&a[fo]?(p=dr(p)?!!p.capture:!!p,uf(a),a.N.add(String(l),h,!1,p,v)):lg(a,l,h,!1,p,v)},lg=function(a,l,h,p,v,b){if(!l)throw Error("Invalid event type");var w=dr(v)?!!v.capture:!!v,E=Ne(a);if(E||(a[ci]=E=new On(a)),!(h=E.add(l,h,p,w,b)).proxy)if(p=He(),h.proxy=p,p.src=a,p.listener=h,a.addEventListener)Jb||(v=w),void 0===v&&(v=!1),a.addEventListener(l.toString(),p,v);else if(a.attachEvent)a.attachEvent(dg(l.toString()),p);else{if(!a.addListener||!a.removeListener)throw Error("addEventListener and attachEvent are unavailable.");kn("change"===l,"MediaQueryList only has a change event"),a.addListener(p)}},He=function(){var a=fg,l=function(h){return a.call(l.src,l.listener,h)};return l},af=function(a,l,h,p,v){if(Array.isArray(l))for(var b=0;b<l.length;b++)af(a,l[b],h,p,v);else h=po(h),a&&a[fo]?a.N.add(String(l),h,!0,dr(p)?!!p.capture:!!p,v):lg(a,l,h,!0,p,v)},Ct=function(a,l,h,p,v){if(Array.isArray(l))for(var b=0;b<l.length;b++)Ct(a,l[b],h,p,v);else p=dr(p)?!!p.capture:!!p,h=po(h),a&&a[fo]?a.N.remove(String(l),h,p,v):a&&(a=Ne(a))&&(l=a.tb(l,h,p,v))&&va(l)},va=function(a){if("number"!=typeof a&&a&&!a.Qa){var l=a.src;if(l&&l[fo])ya(l.N,a);else{var h=a.type,p=a.proxy;l.removeEventListener?l.removeEventListener(h,p,a.capture):l.detachEvent?l.detachEvent(dg(h),p):l.addListener&&l.removeListener&&l.removeListener(p),(h=Ne(l))?(ya(h,a),0==h.Va&&(h.src=null,l[ci]=null)):Fr(a)}}},dg=function(a){return a in sf?sf[a]:sf[a]="on"+a},fg=function(a,l){if(a.Qa)a=!0;else{l=new lo(l,this);var h=a.listener,p=a.fb||a.src;a.ab&&va(a),a=h.call(p,l)}return a},Ne=function(a){return(a=a[ci])instanceof On?a:null},ae="__closure_events_fn_"+(1e9*Math.random()>>>0),po=function(a){return kn(a,"Listener can not be null."),"function"==typeof a?a:(kn(a.handleEvent,"An object listener must have handleEvent method."),a[ae]||(a[ae]=function(l){return a.handleEvent(l)}),a[ae])},dt=function(){Or.call(this),this.N=new On(this),this.pc=this,this.xb=null};ki(dt,Or),dt.prototype[fo]=!0,dt.prototype.addEventListener=function(a,l,h,p){cg(this,a,l,h,p)},dt.prototype.removeEventListener=function(a,l,h,p){Ct(this,a,l,h,p)},dt.prototype.dispatchEvent=function(a){uf(this);var b,l=this.xb;if(l)for(var h=[],p=1;l;l=l.xb)h.push(l),kn(++p<1e3,"infinite loop");if(l=this.pc,p=a.type||a,"string"==typeof a)a=new ui(a,l);else if(a instanceof ui)a.target=a.target||l;else{var v=a;!function Rm(a,l){for(var h,p,v=1;v<arguments.length;v++){for(h in p=arguments[v])a[h]=p[h];for(var b=0;b<aa.length;b++)h=aa[b],Object.prototype.hasOwnProperty.call(p,h)&&(a[h]=p[h])}}(a=new ui(p,l),v)}if(v=!0,h)for(b=h.length-1;!a.Pa&&b>=0;b--){var w=a.currentTarget=h[b];v=Ec(w,p,!0,a)&&v}if(a.Pa||(w=a.currentTarget=l,v=Ec(w,p,!0,a)&&v,a.Pa||(v=Ec(w,p,!1,a)&&v)),h)for(b=0;!a.Pa&&b<h.length;b++)w=a.currentTarget=h[b],v=Ec(w,p,!1,a)&&v;return v},dt.prototype.Fa=function(){if(dt.Da.Fa.call(this),this.N){var h,a=this.N;for(h in a.D){for(var p=a.D[h],v=0;v<p.length;v++)Fr(p[v]);delete a.D[h],a.Va--}}this.xb=null};var Ec=function(a,l,h,p){if(!(l=a.N.D[String(l)]))return!0;l=l.concat();for(var v=!0,b=0;b<l.length;++b){var w=l[b];if(w&&!w.Qa&&w.capture==h){var E=w.listener,V=w.fb||w.src;w.ab&&ya(a.N,w),v=!1!==E.call(V,p)&&v}}return v&&!p.defaultPrevented};dt.prototype.tb=function(a,l,h,p){return this.N.tb(String(a),l,h,p)},dt.prototype.hasListener=function(a,l){return this.N.hasListener(void 0!==a?String(a):void 0,l)};var uf=function(a){kn(a.N,"Event target is not initialized. Did you call the superclass (goog.events.EventTarget) constructor?")},Dc=function(a,l){dt.call(this),this.gb=a||1,this.Ua=l||ao,this.Nb=Yu(this.Rc,this),this.Ub=Date.now()};ki(Dc,dt),(F=Dc.prototype).enabled=!1,F.P=null,F.setInterval=function(a){this.gb=a,this.P&&this.enabled?(this.stop(),this.start()):this.P&&this.stop()},F.Rc=function(){if(this.enabled){var a=Date.now()-this.Ub;a>0&&a<.8*this.gb?this.P=this.Ua.setTimeout(this.Nb,this.gb-a):(this.P&&(this.Ua.clearTimeout(this.P),this.P=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}},F.start=function(){this.enabled=!0,this.P||(this.P=this.Ua.setTimeout(this.Nb,this.gb),this.Ub=Date.now())},F.stop=function(){this.enabled=!1,this.P&&(this.Ua.clearTimeout(this.P),this.P=null)},F.Fa=function(){Dc.Da.Fa.call(this),this.stop(),delete this.Ua};var hr=function(a,l,h,p,v,b){this.code=a,this.data="ok"==a?l:null,this.mode=h,this.origin=p,this.wb=v,this.Nc=b,this.ok="ok"==a,this.error="failed"==a?Error(String(l)||""):null};function ew(a){var l=a.indexOf("#");return-1==l?a:a.substring(0,l)}function cf(a,l,h){if(l.ok)h(l);else{var p;if(!(p=l.error)){if(p=null,"function"==typeof a.DOMException){a=a.DOMException;try{p=new a("AbortError","AbortError")}catch{}}p||((p=Error("AbortError")).name="AbortError",p.code=20)}(a=p).yd=l,h($.Promise.reject(a))}}var li=function(a,l,h){this.g=a,this.Gb=l,this.G=h,this.Jc=!0,this.Hb=null,this.Ib=!1,this.aa=this.ib=this.ba=this.o=null,this.Mb=this.yc.bind(this)};li.prototype.connect=function(a){if(this.ba)throw Error("already connected");this.ba=a,this.g.addEventListener("message",this.Mb)},li.prototype.disconnect=function(){if(this.ba&&(this.ba=null,this.o&&(_a(this.o),this.o=null),this.g.removeEventListener("message",this.Mb),this.aa)){for(var a in this.aa){var l=this.aa[a];l.port1&&_a(l.port1),l.port2&&_a(l.port2)}this.aa=null}},li.prototype.isConnected=function(){return null!=this.G};var lf=function(a){return a.ba&&!a.Hb&&(a.Hb="function"==typeof a.Gb?a.Gb():a.Gb),a.Hb},en=function(a){if(null==a.G)throw Error("not connected");return a.G},se=function(a,l){var h=null;a.Ib&&"function"==typeof a.g.MessageChannel&&(h=new a.g.MessageChannel),h?(ns(a,"start",l,[h.port2]),mg(a,h.port1)):ns(a,"start",l)},ns=function(a,l,h,p){if(h={sentinel:"__ACTIVITIES__",cmd:l,payload:h||null},a.o)a.o.postMessage(h,p||void 0);else{var v=lf(a);if(!v)throw Error("not connected");a="connect"==l?null!=a.G?a.G:"*":en(a),v.postMessage(h,a,p||void 0)}};li.prototype.customMessage=function(a){ns(this,"msg",a)};var pg=function(a,l){a.aa||(a.aa={});var p,h=a.aa[l];return h||(h=new $.Promise(function(v){p=v}),a.aa[l]=h={port1:null,port2:null,fc:p,promise:h}),h},mg=function(a,l){a.o&&_a(a.o),a.o=l,a.o.onmessage=function(h){var p=h.data,v=p&&p.cmd;p=p&&p.payload||null,v&&a.za(v,p,h)}};function _a(a){try{a.close()}catch{}}li.prototype.yc=function(a){if(!this.Jc||lf(this)==a.source){var l=a.data;if(l&&"__ACTIVITIES__"==l.sentinel){var h=l.cmd;if(!this.o||"connect"==h||"start"==h){var p=a.origin;l=l.payload||null,null==this.G&&"start"==h&&(this.G=p),null==this.G&&a.source&&lf(this)==a.source&&(this.G=p),p==this.G&&this.za(h,l,a)}}}},li.prototype.za=function(a,l,h){"connect"==a?(this.o&&(_a(this.o),this.o=null),this.Ib=l&&l.acceptsChannel||!1,this.ba(a,l)):"start"==a?((h=h.ports&&h.ports[0])&&mg(this,h),this.ba(a,l)):"msg"==a?null!=this.ib&&null!=l&&this.ib(l):"cnget"==a?((a=pg(this,l=l.name||"")).port1||(h=new this.g.MessageChannel,a.port1=h.port1,a.port2=h.port2,a.fc(a.port1)),a.port2&&(ns(this,"cnset",{name:l},[a.port2]),a.port2=null)):"cnset"==a?(a=h.ports[0],(l=pg(this,l.name)).port1=a,l.fc(a)):this.ba(a,l)};var gg=function(a,l,h){var p=this;this.Ia=a,this.nb=l,this.Za=h||null,this.g=this.Ia.ownerDocument.defaultView,this.G=cc(tc(l).toString()),this.Ea=null,this.qb=new $.Promise(function(v){p.Ea=v}),this.lb=null,new $.Promise(function(v){p.lb=v}),this.L=null,this.mb=new $.Promise(function(v){p.L=v}),this.ec=this.Xb=null,this.u=new li(this.g,function(){return p.Ia.contentWindow},this.G)};(F=gg.prototype).connect=function(){var a=this.Ia;if("isConnected"in a)a=a.isConnected;else{var l=a.ownerDocument&&a.ownerDocument.documentElement;a=l&&l.contains(a)||!1}if(!a)throw Error("iframe must be in DOM");return this.u.connect(this.za.bind(this)),Ad(this.Ia,this.nb),this.qb},F.disconnect=function(){this.u.disconnect()},F.Ya=function(){return this.mb},F.eb=function(){return this.Ia.contentWindow||null},F.message=function(a){this.u.customMessage(a)},F.onMessage=function(a){this.u.ib=a},F.za=function(a,l){"connect"==a?(se(this.u,this.Za),this.Ea()):"result"==a?this.L&&(l=new hr(a=l.code,"failed"==a?Error(l.data||""):l.data,"iframe",en(this.u),!0,!0),cf(this.g,l,this.L),this.L=null,ns(this.u,"close"),this.disconnect()):"ready"==a?this.lb&&(this.lb(),this.lb=null):"resize"==a&&(this.ec=l.height,this.Xb&&this.Xb(this.ec))};var Z=function(a,l,h,p,v,b){var w=this;if(!p||"_blank"!=p&&"_top"!=p&&"_"==p[0])throw Error('The only allowed targets are "_blank", "_top" and name targets');this.g=a,this.Ic=l,this.nb=h,this.Ec=p,this.Za=v||null,this.ra=b||{},this.Ea=null,this.qb=new $.Promise(function(E){w.Ea=E}),this.L=null,this.mb=new $.Promise(function(E){w.L=E}),this.u=this.W=this.ia=null};(F=Z.prototype).open=function(){return iw(this)},F.disconnect=function(){if(this.W&&(this.W.stop(),this.W=null),this.u&&(this.u.disconnect(),this.u=null),this.ia){try{this.ia.close()}catch{}this.ia=null}this.L=null},F.eb=function(){return this.ia},F.Ya=function(){return this.mb},F.message=function(a){this.u.customMessage(a)},F.onMessage=function(a){this.u.ib=a};var iw=function(a){var l=Et(a),h=a.nb;if(!a.ra.Cd){var p=function nw(a){var l={requestId:a.requestId,returnUrl:a.hc,args:a.qc};return void 0!==a.origin&&(l.origin=a.origin),void 0!==a.wb&&(l.originVerified=a.wb),JSON.stringify(l)}({requestId:a.Ic,hc:a.ra.hc||ew(a.g.location.href),qc:a.Za});h=h+(-1==h.indexOf("#")?"#":"&")+encodeURIComponent("__WA__")+"="+encodeURIComponent(p)}"_top"!=(p=a.Ec)&&function hg(a){return/Trident|MSIE|IEMobile/i.test((a=a.navigator)&&a.userAgent)}(a.g)&&(p="_top");try{var v=Tt(a.g,h,p,l)}catch{}if(!v&&"_top"!=p&&!a.ra.Ad){p="_top";try{v=Tt(a.g,h,p)}catch{}}return v?(a.ia=v,"_top"!=p&&ba(a)):Sc(a,Error("failed to open window")),a.mb.catch(function(){})},Et=function(a){var l=a.g.screen,h=l.availWidth||l.width,p=l.availHeight||l.height,v=a.g==a.g.top,b=a.g.navigator;b=/Edge/i.test(b&&b.userAgent),h=Math.max(h-(v&&a.g.outerWidth>a.g.innerWidth?Math.min(100,a.g.outerWidth-a.g.innerWidth):b?100:0),.5*h);var w=Math.max(p-(v&&a.g.outerHeight>a.g.innerHeight?Math.min(100,a.g.outerHeight-a.g.innerHeight):b?100:0),.5*p);for(var E in p=Math.floor(Math.min(600,.9*h)),v=Math.floor(Math.min(600,.9*w)),a.ra.width&&(p=Math.min(a.ra.width,h)),a.ra.height&&(v=Math.min(a.ra.height,w)),a=Math.floor((l.width-p)/2),l=Math.floor((l.height-v)/2),h={height:v,width:p,resizable:"yes",scrollbars:"yes"},b||(h.left=a,h.top=l),b="",h)b&&(b+=","),b+=E+"="+h[E];return b},ba=function(a){a.W=new Dc(500),a.W.addEventListener("tick",function(){yg(a,!0)}),a.W.start(),a.u=new li(a.g,a.ia,null),a.u.connect(a.za.bind(a))},yg=function(a,l){(!a.ia||a.ia.closed)&&(a.W&&(a.W.stop(),a.W=null),a.g.setTimeout(function(){try{a.ea("canceled",null)}catch(h){Sc(a,h)}},l?3e3:0))},Sc=function(a,l){a.L&&a.L($.Promise.reject(l)),a.disconnect()};Z.prototype.ea=function(a,l){if(this.L){var h=this.u.isConnected();a=new hr(a,l,"popup",h?en(this.u):cc(this.nb),h,h),cf(this.g,a,this.L),this.L=null}this.u&&ns(this.u,"close"),this.disconnect()},Z.prototype.za=function(a,l){var h=this;"connect"==a?(se(this.u,this.Za),this.Ea()):"result"==a?this.ea(a=l.code,"failed"==a?Error(l.data||""):l.data):"check"==a&&this.g.setTimeout(function(){return yg(h)},200)};var df=function(a,l,h,p,v){this.g=a,this.tc=l,this.uc=h,this.G=p,this.Qc=v};df.prototype.Ya=function(){var a=this,l=new hr(this.tc,this.uc,"redirect",this.G,this.Qc,!1);return new $.Promise(function(h){cf(a.g,l,h)})};var mo=function(){var a=window,l=this;this.version="1.23",this.g=a,this.R=a.location.hash,this.Cb={},this.Db={},this.cc=null,new $.Promise(function(h){l.cc=h})};mo.prototype.open=function(a,l,h,p,v){return{Dd:Mc(this,a,l,h,p,v).eb()}},mo.prototype.Ma=function(a,l){var h=this.Cb[a];if(h||(this.Cb[a]=h=[]),h.push(l),!(h=this.Db[a])&&this.R){try{var p=this.g,v=function tw(a){return a?(/^[?#]/.test(a)?a.slice(1):a).split("&").reduce(function(l,h){var p=h.split("=");return h=decodeURIComponent(p[0]||""),p=decodeURIComponent(p[1]||""),h&&(l[h]=p),l},{}):{}}(this.R).__WA_RES__;if(v){var b=JSON.parse(v);if(b&&b.requestId==a){var w=p.location.hash;if(w){var E=encodeURIComponent("__WA_RES__")+"=";v=-1;do{if(-1!=(v=w.indexOf(E,v))){var V=v>0?w.substring(v-1,v):"";if(""==V||"?"==V||"#"==V||"&"==V){var O=w.indexOf("&",v+1);-1==O&&(O=w.length),w=w.substring(0,v)+w.substring(O+1)}else v++}}while(-1!=v&&v<w.length)}var X=w;if((X=X||"")!=p.location.hash&&p.history&&p.history.replaceState)try{p.history.replaceState(p.history.state,"",X)}catch{}var We=b.code,pt=b.data,Ut=b.origin,us=p.document.referrer&&cc(p.document.referrer);h=new df(p,We,pt,Ut,Ut==us)}else h=null}else h=null}catch(vn){(function rw(a){setTimeout(function(){throw a})})(vn),this.cc(vn)}h&&(this.Db[a]=h)}(a=h)&&ff(a,l)};var Mc=function(a,l,h,p,v,b){var w=new Z(a.g,l,h,p,v,b);return w.open().then(function(){z(a,l,w)}),w},ff=function(a,l){$.Promise.resolve().then(function(){l(a)})},z=function(a,l,h){var p=a.Cb[l];p&&p.forEach(function(v){ff(h,v)}),a.Db[l]=h},Ca=window.testOnlyLocalIbfeUrl||"",Ea=window.testOnlyLocalWeb5Url||"",Ic=window.integratorExperimentIds||[],Rn=function(a,l,h,p){this.m=a,this.Wa=l||!1,this.Jb=h||new mo,this.ub=new _c,this.Oa=this.ma=null,this.Fb=!1,this.Pb=this.o=null,this.dc=p||null,this.yb=this.zb=this.A=this.Ra=null,this.sa=3e4,this.Wa&&Nn("\n.google-payments-dialog {\n animation: none 0s ease 0s 1 normal none running;\n background: none 0 0 / auto repeat scroll padding-box border-box #fff;\n border: 0 none #333;\n border-collapse: separate;\n bottom: 0;\n box-shadow: #808080 0 3px 0 0, #808080 0 0 22px;\n box-sizing: border-box;\n letter-spacing: normal;\n max-height: 100%;\n overflow: visible;\n position: fixed;\n width: 100%;\n appearance: none;\n left: 0;\n}\n@media (min-width: 600px) {\n .google-payments-dialog {\n width: 480px;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n max-height: 600px;\n }\n}\n.google-payments-dialogContainer {\n position: fixed;\n z-index: 2147483647;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n overflow: hidden;\n background-color: rgba(0,0,0,0.4);\n}\n")};Rn.prototype.Ma=function(a){this.ma||(this.ma=a,this.Jb.Ma("GPAY",this.Dc.bind(this)))},Rn.prototype.O=function(){this.ub.O()},Rn.prototype.Dc=function(a){var l=this;(function(a){a.kb=null,a.V.parentElement&&ai(a.V,{opacity:0}).then(function(){Qo(a.V,{display:"none"}),a.Qb.body.removeChild(a.V)})})(this.ub),this.ma(a.Ya().then(function(h){if("TIN"!=l.m&&h.origin!=hf(l))throw Error("channel mismatch");var p=h.data;if(p.redirectEncryptedCallbackData)return xr=3,vg(l,p.redirectEncryptedCallbackData).then(function(v){var b=U(Object,"assign").call(Object,{},p);return delete b.redirectEncryptedCallbackData,U(Object,"assign").call(Object,b,v)});if(!h.wb||!h.Nc)throw Error("channel mismatch");return p},function(h){var p=h.message;h=h.message;try{h=JSON.parse(p.substring(7))}catch{}return h.statusCode&&-1==["DEVELOPER_ERROR","MERCHANT_ACCOUNT_ERROR"].indexOf(h.statusCode)&&(h={statusCode:"CANCELED"}),"AbortError"==h&&(h={statusCode:"CANCELED"}),$.Promise.reject(h)}))};var vg=function(a,l){return new $.Promise(function(h,p){var v=sw(a),b=new XMLHttpRequest;b.open("POST",v,!0),"withCredentials"in b&&(b.withCredentials=!0),b.onreadystatechange=function(){if(!(b.readyState<2))if(b.status<100||b.status>599)b.onreadystatechange=null,p(Error("Unknown HTTP status "+b.status));else if(4==b.readyState)try{h(JSON.parse(b.responseText))}catch(w){p(w)}},b.onerror=function(){p(Error("Network failure"))},b.onabort=function(){p(Error("Request aborted"))},b.send(l)})};Rn.prototype.isReadyToPay=function(a){var l=this;return new $.Promise(function(h,p){if(tf(a)){var v={result:!1};google.payments.api.EnableImprovedIsrtpLogging&&(v.notReadyToPayFactors=[1]),h(v)}else{if(google.payments.api.EnableImprovedIsrtpLogging&&(v=function(a){var l=window.navigator.userAgent,h=l.indexOf("OPA/")>0&&l.indexOf("AppleWebKit")>0,p=l.indexOf("Instagram")>0,v=l.indexOf("Instagram")>0&&l.indexOf("IABMV/1")>0,b=l.indexOf("FB_IAB")>0||l.indexOf("FBIOS")>0,w=(l.indexOf("FB_IAB")>0||l.indexOf("FBIOS")>0)&&l.indexOf("IABMV/1")>0,E=l.indexOf("AndroidMapsWebView")>0;if(!a.Wa){if(h)return{result:!1,notReadyToPayFactors:[2]};if(p&&!v)return{result:!1,notReadyToPayFactors:[3]};if(b&&!w)return{result:!1,notReadyToPayFactors:[4]};if(E)return{result:!1,notReadyToPayFactors:[5]}}return a=l.indexOf("UCMini")>0,google.payments.api.ReadyToPayAdditionalBrowsers&&a?{result:!1,notReadyToPayFactors:[6]}:(a=google.payments.api.ReadyToPayAdditionalBrowsers&&(l.indexOf("OPT")>0||l.indexOf("UCBrowser")>0),l.indexOf("Chrome")>0||l.indexOf("Firefox")>0||l.indexOf("Safari")>0||a||h||v||w?{result:!0,notReadyToPayFactors:[]}:{result:!1,notReadyToPayFactors:[7]})}(l),!v.result))return void h(v);var b=(v=window.navigator.userAgent).indexOf("OPA/")>0&&v.indexOf("AppleWebKit")>0,w=v.indexOf("Instagram")>0,E=v.indexOf("Instagram")>0&&v.indexOf("IABMV/1")>0,V=v.indexOf("FB_IAB")>0||v.indexOf("FBIOS")>0,O=(v.indexOf("FB_IAB")>0||v.indexOf("FBIOS")>0)&&v.indexOf("IABMV/1")>0,X=v.indexOf("AndroidMapsWebView")>0;if((b||w&&!E||V&&!O||X)&&!l.Wa)h({result:!1});else{if(w=!1,google.payments.api.ReadyToPayAdditionalBrowsers){if(v.indexOf("UCMini")>0)return void h({result:!1});w=v.indexOf("OPT")>0||v.indexOf("UCBrowser")>0}var We=v.indexOf("Chrome")>0||v.indexOf("Firefox")>0||v.indexOf("Safari")>0||w||b||E||O;We&&a.apiVersion>=2&&a.existingPaymentMethodRequired?(a.environment=l.m,la(a,6,["isReadyToPayResponse","isReadyToPayError"],function(pt){var Ut={result:We};a.existingPaymentMethodRequired&&(pt.data.isReadyToPayError?p({statusCode:"DEVELOPER_ERROR",statusMessage:"Ready to pay error. Cause : "+pt.data.isReadyToPayError}):Ut.paymentMethodPresent="READY_TO_PAY"==pt.data.isReadyToPayResponse),h(Ut)})):h({result:We})}}})},Rn.prototype.prefetchPaymentData=function(a){if(this.Wa){this.xa(a);var l=Da(this),h=go(this,l.container,l.iframe,a,_g(a));this.Oa={container:l.container,iframe:l.iframe,request:a,dataPromise:h}}},Rn.prototype.loadPaymentData=function(a){var l=this;if(a.swg||a.apiVersion||(a.apiVersion=1),a.forceRedirect&&this.A)throw Error("Callback is not supported in redirect mode");a.environment=this.m,this.xa(a);var h=_g(a);if(!this.Wa)return xr=a.forceRedirect?3:2,function(a,l,h,p,v){var b=Mc(a,"GPAY",l,h,p,v);return b.qb.then(function(){return b})}(this.Jb,Ac(this,h),a.forceRedirect?"_top":"gp-js-popup",a,ow(a)).then(function(b){var w=new ga;l.ub.show(b&&b.eb()),google.payments.api.EnableClosePopupOnHostingPageUnload&&window.addEventListener("beforeunload",function(){var E;null==(E=b.eb())||E.close()}),b.onMessage(function(E){"partialPaymentDataCallback"==E.type?l.zb=vc(E.data,l.A,l.sa,w.hb,l.m).then(function(V){return b.message(V)}):"fullPaymentDataCallback"==E.type&&(l.yb=Qd(E.data,l.A,l.sa,w.hb,l.m).then(function(V){b.message(V)}))})});if(xr=1,this.Oa){var p=this.Oa;a=this.Oa.dataPromise,this.Oa=null}else p=Da(this),a=go(this,p.container,p.iframe,a,h);pf(this,p.container,p.iframe),history.pushState({},"",window.location.href);var v=function(b){b.preventDefault(),(b=p).container.parentNode&&(l.Pb($.Promise.reject({errorCode:"CANCELED"})),is(b.container,b.iframe),l.o&&l.o.disconnect()),window.removeEventListener("popstate",v)};window.addEventListener("popstate",v),h=new $.Promise(function(b){l.Pb=b}),this.ma($.Promise.race([a,h]))};var ow=function(a){var l={width:600,height:550};return a.forceRedirect||a.swg||(l.disableRedirectFallback=!0),l};Rn.prototype.Ab=function(a){this.A=a};var hf=function(a){return"LOCAL"==a.m?"":"TEST"==a.m&&""!=Ca?Ca:"https://"+("PREPROD"==a.m?"pay-preprod.sandbox":"SANDBOX"==a.m?"pay.sandbox":"CANARY"==a.m?"ibfe-canary.corp":"pay")+".google.com"},sw=function(a){var l=hf(a)+"/gp/p/apis/buyflow/process";return a.dc&&(l+="?rk="+encodeURIComponent(a.dc)),l},_g=function(a){var l,h;if(null!=(l=a.i)&&l.disableNgbf)return!1;if(null!=(h=a.callbackIntents)&&h.length&&(l=U(a.callbackIntents,"includes").call(a.callbackIntents,"OFFER"),!google.payments.api.EnableWebNgbfForCallbackIntents||l&&!google.payments.api.EnableWebNgbfForOfferCallbackIntent)||a.Bd)return!1;if(a.allowedPaymentMethods)for(l=(a=Te(a.allowedPaymentMethods)).next();!l.done;l=a.next())if((l=l.value).parameters&&l.parameters.cvcRequired&&!google.payments.api.EnableWebNgbfForCvcRequired)return!1;return!0},Ac=function(a,l){var h="TIN"==a.m?"/ui/pay":hf(a)+"/gp/p/ui/pay",p=!1;return l&&(p=!0,h+="?ng=true","TEST"==a.m&&""!=Ea&&(h+="&_web5host="+Ea)),Ic.length>0&&(h+=(p?"&":"?")+"expids="+Ic.join(",")),h},is=function(a,l){yn(l,"all 250ms ease 0s"),l.height="0px",setTimeout(function(){a.parentNode&&a.parentNode.removeChild(a)},250)},Da=function(a){var l=document.createElement("div");l.classList.add("google-payments-dialogContainer");var h=document.createElement("div");h.classList.add("iframeContainer");var p=document.createElement("iframe");return p.classList.add("google-payments-dialog"),p.setAttribute("frameborder","0"),p.setAttribute("scrolling","no"),h.appendChild(p),l.appendChild(h),document.body.appendChild(l),h=(l={container:l,iframe:p}).iframe,(p=l.container).addEventListener("click",Yu(a.sc,a,l)),p.style.display="none",h.style.display="none",h.height="0px",yn(h,"all 250ms ease 0s"),a.Fb=!1,l};Rn.prototype.sc=function(a){a.container.parentNode&&history.back()};var pf=function(a,l,h){l.style.display="block",h.style.display="block",setTimeout(function(){h.height="280px",setTimeout(function(){a.Fb=!0,a.Ra&&(yn(h,a.Ra.transition),h.height=a.Ra.height,a.Ra=null)},250)},1)},yn=function(a,l){co(a,l),a.style.setProperty("-webkit-transition",l)},go=function(a,l,h,p,v){p.swg||p.apiVersion||(p.apiVersion=1);var w,b="";return p.i&&p.i.coordinationToken&&(b=p.i.coordinationToken),p.environment=a.m,v=function(a,l,h,p){var v=window.location.origin;h=void 0===h?"":h,p=void 0===p?"":p;var b=zn("https://pay.google.com/%{path}");return"CANARY"==a?b=zn("https://ibfe-canary.corp.google.com/%{path}"):("SANDBOX"==a||"PREPROD"==a)&&(b=zn("https://pay"+("PREPROD"==a?"-preprod":"")+".sandbox.google.com/%{path}")),l={origin:v,coordination_token:h,ng:l,hl:p},p=(h=tc(a=ic(b,{path:zn("gp/p/ui/pay")})).toString()).split(/[?#]/),v=/[?]/.test(h)?"?"+p[1]:"",function Lm(a,l,h,p){function v(w,E){null!=w&&(Array.isArray(w)?w.forEach(function(V){return v(V,E)}):(l+=b+encodeURIComponent(E)+"="+encodeURIComponent(w),b="&"))}var b=l.length?"&":"?";return p.constructor===Object&&(p=U(Object,"entries").call(Object,p)),Array.isArray(p)?p.forEach(function(w){return v(w[1],w[0])}):p.forEach(v),Md(a+l+h)}(p[0],v,/[#]/.test(h)?"#"+(v?p[2]:p[1]):"",l)}(a.m,v,b,p.i.firstPartyLocale),function(a,l,h){var p=new gg(a,l,h);return p.connect().then(function(){return p})}(h,v,p).then(function(E){a.o=E;var V=new ga;return E.onMessage(function(O){"partialPaymentDataCallback"==O.type?a.zb=vc(O.data,a.A,a.sa,V.hb).then(function(X){return E.message(X)}):"fullPaymentDataCallback"==O.type?a.yb=Qd(O.data,a.A,a.sa,V.hb).then(function(X){return E.message(X)}):"resize"==O.type&&(a.Fb?(w||(w=Date.now()),Date.now()<w+250?yn(h,O.transition+", height 250ms"):yn(h,O.transition),h.height=O.height):a.Ra={height:O.height,transition:O.transition})}),E.Ya()}).then(function(E){return is(l,h),history.back(),E.data},function(E){return is(l,h),history.back(),$.Promise.reject(E)})};Rn.prototype.xa=function(a){var l={startTimeMs:Date.now()};a.i=a.i?U(Object,"assign").call(Object,l,a.i):l};var Pe,xc="actions.google.com amp-actions.sandbox.google.com amp-actions-staging.sandbox.google.com amp-actions-autopush.sandbox.google.com payments.developers.google.com payments.google.com".split(" "),W=function(a,l,h,p){this.qa=l,function Yb(a){if(a.environment&&!(A=U(Object,"values").call(Object,wd),U(A,"includes")).call(A,a.environment))throw Error("Parameter environment in PaymentsClientOptions can optionally be set to PRODUCTION, otherwise it defaults to TEST.")}(a),this.vb=null,this.m=a.environment||"TEST",Pe||(Pe=-1!=xc.indexOf(window.location.hostname)&&a.i&&a.i.googleTransactionId?a.i.googleTransactionId:function Wm(a){for(var p,l=Array(36),h=0,v=0;v<36;v++)8==v||13==v||18==v||23==v?l[v]="-":14==v?l[v]="4":(h<=2&&(h=33554432+16777216*Math.random()|0),p=15&h,h>>=4,l[v]=Ub[19==v?3&p|8:p]);return l.join("")+"."+a}(this.m)),this.v=a,this.Ob=a.merchantInfo&&a.merchantInfo.merchantId?a.merchantInfo.merchantId:"",a.paymentDataCallback&&(a.paymentDataCallbacks={onPaymentDataChanged:a.paymentDataCallback}),this.A=null,this.l=new as(a,h),this.T=new Rn(this.m,h,p,a.i&&a.i.redirectKey),this.I=5,this.B=null,this.na=5===(l=this.l.mode)||4===l?new sg(this.m):this.T,a.paymentDataCallbacks&&(this.A=a.paymentDataCallbacks,this.na.Ab(a.paymentDataCallbacks),this.T.Ab(a.paymentDataCallbacks)),this.T.Ma(this.Yb.bind(this)),this.na.Ma(this.Yb.bind(this)),xr=l,Gm=Pe,Be({eventType:9,clientLatencyStartMs:Date.now(),buyFlowActivityReason:this.l.s,softwareInfo:kt(this),merchantInfo:Gt(this),merchantPageAddress:google.payments.api.EnableImprovedMerchantLogging?""+window.location.origin+window.location.pathname:null}),window.addEventListener("message",function(v){-1!=xc.indexOf(window.location.hostname)&&"logPaymentData"===v.data.name&&Be(v.data.data)})},kt=function(a){return a.v.merchantInfo&&a.v.merchantInfo.softwareInfo?a.v.merchantInfo.softwareInfo:null},Gt=function(a){var l,h,p,v;return null!=(l=a.v.merchantInfo)&&l.merchantId||null!=(h=a.v.merchantInfo)&&h.merchantName?(l={},null!=(p=a.v.merchantInfo)&&p.merchantId&&(l.merchantId=a.v.merchantInfo.merchantId),null!=(v=a.v.merchantInfo)&&v.merchantName&&(l.merchantName=a.v.merchantInfo.merchantName),l):null};W.prototype.isReadyToPay=function(a){var l=this;if(a){var h={};this.v.environment&&(h.environment=this.v.environment),this.v.merchantInfo&&(h.merchantInfo=this.v.merchantInfo),this.v.i&&(h.i=this.v.i),a=U(Object,"assign").call(Object,{},h,a),this.Ob=a.merchantInfo&&a.merchantInfo.merchantId?a.merchantInfo.merchantId:""}var p=Date.now(),v=[].concat(et(this.l.s));Be({eventType:12,clientLatencyStartMs:p,buyFlowActivityReason:v,softwareInfo:kt(this),isReadyToPayRequest:a});var b=es()||function Kb(a){if(!a)return"isReadyToPayRequest must be set!";if(!(a.apiVersion<2)&&a.allowedPaymentMethods&&Cc(a,"UPI"))return"UPI not supported";if(a.apiVersion>=2){if(!("apiVersionMinor"in a))return"apiVersionMinor must be set!";if(!a.allowedPaymentMethods||!Array.isArray(a.allowedPaymentMethods)||0==a.allowedPaymentMethods.length)return"for v2 allowedPaymentMethods must be set to an array containing a list of accepted payment methods";for(var l=0;l<a.allowedPaymentMethods.length;l++){var h=a.allowedPaymentMethods[l];if("CARD"==h.type){if(!h.parameters)return"Field parameters must be setup in each allowedPaymentMethod";var p=h.parameters.allowedCardNetworks;if(!p||!Array.isArray(p)||0==p.length)return"allowedCardNetworks must be setup in parameters for type CARD";if(!(h=h.parameters.allowedAuthMethods)||!Array.isArray(h)||0==h.length||!h.every(Qb))return"allowedAuthMethods must be setup in parameters for type 'CARD' and must contain 'CRYPTOGRAM_3DS' and/or 'PAN_ONLY'"}}}else if(!a.allowedPaymentMethods||!Array.isArray(a.allowedPaymentMethods)||0==a.allowedPaymentMethods.length||!a.allowedPaymentMethods.every(Xb))return"allowedPaymentMethods must be set to an array containing 'CARD' and/or 'TOKENIZED_CARD'!";return null}(a);if(b)return new $.Promise(function(O,X){Wn({M:"isReadyToPay",errorMessage:b}),Be({eventType:0,buyFlowActivityReason:v,error:2,errorMessage:b,softwareInfo:kt(l),merchantInfo:Gt(l)}),X({statusCode:"DEVELOPER_ERROR",statusMessage:b})});var w=[].concat(et(this.l.s)),E=De(this,a,w);if(a.activityModeRequired){var V=null;return ss.then(function(O){return V=O,E},function(){return V=!1,E}).then(function(O){return V||(w.push(40),5===l.l.mode&&(l.l.mode=2)),O.activityMode=l.l.mode,mf(l,p,O,w,a),google.payments.api.EnableImprovedIsrtpLogging?bg(O):O}).catch(function(O){throw Sa(l,O,w,a),O})}return E.then(function(O){return mf(l,p,O,w,a),google.payments.api.EnableImprovedIsrtpLogging?bg(O):O}).catch(function(O){throw Sa(l,O,w,a),O})};var bg=function(a){return a.hasOwnProperty("notReadyToPayFactors")&&delete(a=U(Object,"assign").call(Object,{},a)).notReadyToPayFactors,a},mf=function(a,l,h,p,v){Be({eventType:0,clientLatencyStartMs:l,isReadyToPayApiResponse:h,buyFlowActivityReason:p,softwareInfo:kt(a),merchantInfo:Gt(a),isReadyToPayRequest:v})},Sa=function(a,l,h,p){l=l.statusCode?"INTERNAL_ERROR"==(l=l.statusCode)?1:"DEVELOPER_ERROR"==l?2:"MERCHANT_ACCOUNT_ERROR"==l?4:"UNSUPPORTED_API_VERSION"==l?5:"BUYER_CANCEL"==l?6:0:1,Be({eventType:0,buyFlowActivityReason:h,error:l,softwareInfo:kt(a),merchantInfo:Gt(a),isReadyToPayRequest:p})},De=function(a,l,h){var p=4===a.l.mode&&!di(l);if(Jo(l)&&!p&&(!(l=tn(l)).allowedPaymentMethods||0===l.allowedPaymentMethods.length))return google.payments.api.EnableImprovedIsrtpLogging?os(l,[13]):os(l,[]);if(p){if(l.apiVersion>=2)return kc(a,l,h);var v=a.T.isReadyToPay(l);return p=a.na.isReadyToPay(l),tf(l)&&!a.l.ua?(h.push(6),p):(h.push(7),p.then(function(){return v}))}return a.T.isReadyToPay(l)},kc=function(a,l,h){var p=os(l,[]);google.payments.api.EnableImprovedIsrtpLogging&&(p=os(l,[14]));var v=p;if(wc(l,"CRYPTOGRAM_3DS")||Jo(l)){v=JSON.parse(JSON.stringify(l));for(var b=0;b<v.allowedPaymentMethods.length;b++)"CARD"==v.allowedPaymentMethods[b].type&&(v.allowedPaymentMethods[b].parameters.allowedAuthMethods=["CRYPTOGRAM_3DS"]);h.push(8),v=a.na.isReadyToPay(v)}var w=p;return wc(l,"PAN_ONLY")&&(h.push(9),h=Jo(l)?tn(l):l,w=a.T.isReadyToPay(h)),v.then(function(E){return 1==(E&&E.result)||google.payments.api.EnableImprovedIsrtpLogging&&E&&0==E.result&&!wc(l,"PAN_ONLY")?E:w})},os=function(a,l){var h={result:!1};return a.existingPaymentMethodRequired&&(h.paymentMethodPresent=!1),google.payments.api.EnableImprovedIsrtpLogging&&l&&l.length>0&&(h.notReadyToPayFactors=l),$.Promise.resolve(h)},tn=function(a){var l=U(Object,"assign").call(Object,{},a);return l.allowedPaymentMethods=a.allowedPaymentMethods.filter(function(h){return"EWALLET"!=h.type}),l},Nc=function(a){var l=U(Object,"assign").call(Object,{},a);return l.allowedPaymentMethods=a.allowedPaymentMethods.filter(function(h){return"EWALLET"!=h.type}),l};(F=W.prototype).prefetchPaymentData=function(a){var l=es()||nf(a);l?Wn({M:"prefetchPaymentData",errorMessage:l}):(this.xa(a),this.l.Sa&&!di(a)?this.na.prefetchPaymentData(a):this.T.prefetchPaymentData(a))},F.notifyAvailableOffers=function(){},F.loadPaymentData=function(a){var l=this,h=[].concat(et(this.l.s)),p=Date.now(),v=function(){var O={eventType:5,buyFlowActivityReason:h.length?h:[99],softwareInfo:kt(l),merchantInfo:Gt(l),buttonInfo:l.B};google.payments.api.EnableCreateButtonApiOnClickLogging&&(O.clientLatencyStartMs=p),Be(O)},b=es()||nf(a);if(this.I=a&&a.swg?6:5,xr=this.l.mode,b)this.qa(new $.Promise(function(O,X){Be({eventType:1,error:2,buyFlowMode:l.I,softwareInfo:kt(l),merchantInfo:Gt(l),buttonInfo:l.B}),Wn({M:"loadPaymentData",errorMessage:b}),X({statusCode:"DEVELOPER_ERROR",statusMessage:b})})),v();else{if(this.A||a.callbackIntents){var w=ag(a,this.A);if(w)return this.qa(new $.Promise(function(O,X){Be({eventType:1,error:2,buyFlowMode:l.I,softwareInfo:kt(l),merchantInfo:Gt(l),buttonInfo:l.B}),Wn({M:"loadPaymentData",errorMessage:w}),X({statusCode:"DEVELOPER_ERROR",statusMessage:w})})),void v()}this.vb=Date.now();var E=Ma(this.l,a,h),V=5===E||4===E?this.na:this.T;if(E!==this.l.mode&&(xr=E),this.xa(a),v(),Jo(a)&&(4!=this.l.mode||di(a))&&(!(a=Nc(a)).allowedPaymentMethods||0===a.allowedPaymentMethods.length))return this.qa(new $.Promise(function(O,X){Be({eventType:1,error:2,buyFlowMode:l.I,softwareInfo:kt(l),merchantInfo:Gt(l),buttonInfo:l.B}),Wn({M:"loadPaymentData",errorMessage:"EWALLET is not supported in this environment."}),X({statusCode:"DEVELOPER_ERROR",statusMessage:"EWALLET is not supported in this environment."})})),void v();V.loadPaymentData(a)}},F.Vb=function(a){var h,p,v,b,w,E,V,l=this;return jo(function(O){return 1==O.X?(h=[].concat(et(l.l.s)),p=Date.now(),v=function(){var X={eventType:5,buyFlowActivityReason:h.length?h:[99],softwareInfo:kt(l),merchantInfo:Gt(l),buttonInfo:l.B};google.payments.api.EnableCreateButtonApiOnClickLogging&&(X.clientLatencyStartMs=p),Be(X)},b=es()||nf(a),l.I=a&&a.swg?6:5,xr=l.l.mode,b?(l.qa(new $.Promise(function(X,We){Be({eventType:1,error:2,buyFlowMode:l.I,softwareInfo:kt(l),merchantInfo:Gt(l),buttonInfo:l.B}),Wn({M:"loadPaymentData",errorMessage:b}),We({statusCode:"DEVELOPER_ERROR",statusMessage:b})})),v(),O.return()):(l.A||a.callbackIntents)&&(w=ag(a,l.A))?(l.qa(new $.Promise(function(X,We){Be({eventType:1,error:2,buyFlowMode:l.I,softwareInfo:kt(l),merchantInfo:Gt(l),buttonInfo:l.B}),Wn({M:"loadPaymentData",errorMessage:w}),We({statusCode:"DEVELOPER_ERROR",statusMessage:w})})),v(),O.return()):(l.vb=Date.now(),oo(O,wg(l.l,a,h),2))):(V=5===(E=O.Xa)||4===E?l.na:l.T,E!==l.l.mode&&(xr=E),l.xa(a),v(),!Jo(a)||4==l.l.mode&&!di(a)||(a=Nc(a)).allowedPaymentMethods&&0!==a.allowedPaymentMethods.length?(V.loadPaymentData(a),void(O.X=0)):(l.qa(new $.Promise(function(X,We){Be({eventType:1,error:2,buyFlowMode:l.I,softwareInfo:kt(l),merchantInfo:Gt(l),buttonInfo:l.B}),Wn({M:"loadPaymentData",errorMessage:"EWALLET is not supported in this environment."}),We({statusCode:"DEVELOPER_ERROR",statusMessage:"EWALLET is not supported in this environment."})})),v(),O.return()))})},F.createButton=function(a){this.B=function(a){var l=0,h=0;switch(a.buttonType){case"short":l=1;break;case"long":l=2;break;case"plain":l=3;break;case"buy":l=4;break;case"donate":l=5;break;case"book":l=6;break;case"checkout":l=7;break;case"order":l=8;break;case"pay":l=9;break;case"subscribe":l=10}switch(a.buttonSizeMode){case"static":h=1;break;case"fill":h=2}var p=void 0===a.buttonRootNode?0:3;a.buttonRootNode instanceof ShadowRoot?p=1:a.buttonRootNode instanceof HTMLDocument&&(p=2);var v=null;return null!=a.buttonRadius&&null!=a.buttonRadius&&(v=Number(a.buttonRadius)),{buttonType:l,buttonSizeMode:h,buttonRootNode:p,buttonRadius:v}}(a=void 0===a?{}:a);var l=function tg(a,l,h,p,v){if(a=void 0===a?{}:a,l=void 0===l?"":l,h=void 0===h?"":h,v=void 0===v?0:v,(A=U(Object,"values").call(Object,Oi),U(A,"includes")).call(A,a.buttonType)||(a.buttonType="long"),(A=U(Object,"values").call(Object,Dd),U(A,"includes")).call(A,a.buttonSizeMode)||(a.buttonSizeMode="static"),(A=U(Object,"values").call(Object,na),U(A,"includes")).call(A,a.buttonColor)||(a.buttonColor="black"),void 0!==a.allowedPaymentMethods&&!Array.isArray(a.allowedPaymentMethods)&&"object"==typeof a.allowedPaymentMethods&&null!==a.allowedPaymentMethods&&a.allowedPaymentMethods.hasOwnProperty("type")&&a.allowedPaymentMethods.hasOwnProperty("parameters")&&(a.allowedPaymentMethods=[a.allowedPaymentMethods]),function Zb(a,l){l=l&&U(Yo,"includes").call(Yo,oi(l));var h=U(pa,"includes").call(pa,oi(Nr)),p=U(Jm,"includes").call(Jm,oi(Nr));return(google.payments.api.EnableDynamicGpayButtonForTesting||google.payments.api.EnableDynamicGpayButton||h)&&!l&&!p&&("long"===a.buttonType||"buy"===a.buttonType||google.payments.api.EnableDynamicGpayButtonForPayButton&&"pay"===a.buttonType||google.payments.api.EnableDynamicGpayButtonForPlainButton&&"plain"===a.buttonType)}(a,l)&&(p?.({eventType:13,isAnonymousUser:google.payments.api.IsAnonymousUser}),function Wb(a,l,h,p){if(void 0!==p)if(U(Gd,"includes").call(Gd,oi(a)))p.buttonVariant=1;else{var v=6===(a=Ko())||7===a,b=U(Ud,"includes").call(Ud,oi(Nr))&&"en"===h,w=U(mc,"includes").call(mc,oi(Nr))||function Zd(){if(!pc)return!1;var a=U(Array,"from").call(Array,Array.prototype.slice.call(pc));if(!a||0===a.length)return!1;for(var l=(a=Te(a)).next();!l.done;l=a.next()){l=l.value;try{var h=oi(new URL(l).hostname);if(U(mc,"includes").call(mc,h))return!0}catch{}}return!1}();if(google.payments.api.EnableRlmiaButtonAnimation&&w)p.buttonVariant=9;else if(google.payments.api.EnableRlmiaSmallerText&&w)p.buttonVariant=10;else{if(w=google.payments.api.EnableOlympicsButtonAnimation,(!v||!b)&&(google.payments.api.LogOlympicsButtonAnimation&&(p.olympicsAnimationConditionsMet=!0),w))return void(p.buttonVariant=8);if(2===a){if("pt"===h&&void 0!==l)for(h=(l=Te(l)).next();!h.done;h=l.next())if("CARD"===(a=h.value).type)for(h=void 0,a=null==(h=a.parameters)?void 0:h.allowedCardNetworks,a=(h=Te(a)).next();!a.done;a=h.next())if(U(Sd,"includes").call(Sd,a.value))return void(p.buttonVariant=2);p.buttonVariant=1}else p.buttonVariant=v&&!b?1:a}}}(l,a.allowedPaymentMethods||[],ji(a.buttonLocale)||"",a),!google.payments.api.ForceDisableDynamicGpayButton&&1!=google.payments.api.ButtonTypePolicyInPayjs))return function ng(a,l,h,p){p=void 0===p?0:p,U(hc,"includes").call(hc,a.buttonRootNode||document)||(Nn("\n .gpay-card-info-container {\n padding: 0;\n position: relative;\n min-width: 240px;\n height: 40px;\n min-height: 40px;\n border-radius: 4px;\n box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 1px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;\n cursor: pointer;\n border: 0px;\n }\n\n .gpay-card-info-container.black,\n .gpay-card-info-animation-container.black {\n background-color: #000;\n box-shadow: none;\n }\n\n .gpay-card-info-container.white,\n .gpay-card-info-animation-container.white {\n background-color: #fff;\n }\n\n .gpay-card-info-container.black.border-inset,\n .gpay-card-info-animation-container.black.border-inset {\n outline: 1px solid #757575;\n outline-offset: -1px;\n }\n\n .gpay-card-info-container.white.border-inset,\n .gpay-card-info-animation-container.white.border-inset {\n outline: 1px solid #3C4043;\n outline-offset: -1px;\n }\n\n .gpay-card-info-container.black.active {\n background-color: #5f6368;\n }\n\n .gpay-card-info-container.black.hover,\n .gpay-card-info-animation-container.black.hover {\n background-color: #3c4043;\n }\n\n .gpay-card-info-container.white.active {\n background-color: #fff;\n }\n\n .gpay-card-info-container.white.focus {\n box-shadow: #e8e8e8 0 1px 1px 0, #e8e8e8 0 1px 3px;\n }\n\n .gpay-card-info-container.white.hover,\n .gpay-card-info-animation-container.white.hover {\n background-color: #f8f8f8;\n }\n\n .gpay-card-info-iframe {\n border: 0;\n display: block;\n height: 100%;\n margin: auto;\n max-width: 100%;\n width: 240px;\n }\n\n .gpay-card-info-container-fill .gpay-card-info-iframe{\n position: absolute;\n top: 0;\n height: 100%;\n width: 100%;\n }\n\n .gpay-card-info-container-fill,\n .gpay-card-info-container-fill > .gpay-card-info-container{\n width: 100%;\n height: inherit;\n }\n\n\n .gpay-card-info-container-fill .gpay-card-info-placeholder-container {\n align-items: center;\n justify-content: center;\n width: 100%;\n padding-top: 3px;\n box-sizing: border-box;\n overflow: hidden;\n }\n\n .gpay-card-info-container-fill .gpay-card-info-placeholder-svg-container{\n position: relative;\n width: 60%;\n height: inherit;\n max-height: 80%;\n margin-right: -20%;\n }\n\n .gpay-card-info-container-fill .gpay-card-info-placeholder-svg-container > svg {\n position: absolute;\n left: 0;\n height: 100%;\n max-width: 100%;\n }\n",a.buttonRootNode),Nn('\n .gpay-card-info-animation-container {\n display: flex;\n width:100%;\n position: absolute;\n z-index: 100;\n height: 40px;\n border-radius: 4px;\n }\n\n .gpay-card-info-placeholder-container {\n display: flex;\n width: 100%;\n height: 100%;\n margin: auto;\n justify-content: center;\n }\n\n .gpay-card-info-animated-progress-bar-container {\n display: flex;\n box-sizing: border-box;\n position: absolute;\n width: 100%;\n }\n\n .gpay-card-info-animated-progress-bar-container.border-inset {\n z-index: -1;\n }\n\n .gpay-card-info-animated-progress-bar {\n border-radius: 4px 4px 0px 0px;\n animation-duration: 0.5s;\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-name: gpayProgressFill;\n animation-timing-function: cubic-bezier(0.97, 0.33, 1, 1);\n background: #caccce;\n width: 100%;\n height: 3px;\n max-height: 3px;\n }\n\n .gpay-card-info-animated-progress-bar-indicator {\n border-radius: 4px 4px 0px 0px;\n max-width: 20px;\n min-width: 20px;\n height: 3px;\n max-height: 3px;\n background: linear-gradient(to right, #caccce 30%, #acaeaf 60%);\n animation-delay: 0.5s;\n animation-duration: 1.7s;\n animation-fill-mode: forwards;\n animation-iteration-count: infinite;\n animation-name: gpayPlaceHolderShimmer;\n }\n\n .gpay-card-info-animated-progress-bar.no-radius {\n border-radius: 0;\n }\n\n .gpay-card-info-animated-progress-bar-indicator.no-radius {\n border-radius: 0;\n }\n\n .gpay-card-info-iframe-fade-in {\n animation-fill-mode: forwards;\n animation-duration: 0.6s;\n animation-name: gpayIframeFadeIn;\n }\n\n .gpay-card-info-animation-container-fade-out {\n animation-fill-mode: forwards;\n animation-duration: 0.6s;\n animation-name: gpayPlaceHolderFadeOut;\n }\n\n .gpay-card-info-animation-gpay-logo {\n margin: 13px 7px 0px 39px;\n background-origin: content-box;\n background-position: center center;\n background-repeat: no-repeat;\n background-size: contain;\n height: 17px;\n max-height: 17px;\n max-width: 41px;\n min-width: 41px;\n }\n\n .gpay-card-info-animation-gpay-logo.black {\n background-image: url("https://www.gstatic.com/instantbuy/svg/dark_gpay.svg");\n }\n\n .gpay-card-info-animation-gpay-logo.white {\n background-image: url("https://www.gstatic.com/instantbuy/svg/light_gpay.svg");\n }\n\n @keyframes gpayPlaceHolderShimmer{\n 0% {\n margin-left: 0px;\n }\n 100% {\n margin-left: calc(100% - 20px);\n }\n }\n\n @keyframes gpayIframeFadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n\n @keyframes gpayPlaceHolderFadeOut {\n from {\n opacity: 1;\n }\n\n to {\n opacity: 0;\n }\n }\n\n @keyframes gpayProgressFill {\n from {\n width: 0;\n }\n to {\n width: 100%;\n }\n }\n\n .gpay-card-info-container-fill .gpay-card-info-animation-container{\n top: 0;\n width: 100%;\n height: 100%;\n }\n\n .gpay-card-info-container-fill .gpay-card-info-animation-gpay-logo{\n background-position: right;\n margin: 0 0 0 0;\n max-width: none;\n width: 25%;\n height:inherit;\n max-height: 50%;\n }\n\n',a.buttonRootNode),google.payments.api.EnableGpayButtonDynamicRadius&&Nn("\n .gpay-card-info-container.black,\n .gpay-button.black {\n outline: 1px solid #757575;\n box-shadow: none;\n }\n .gpay-card-info-container.black.focus,\n .gpay-button.black.focus {\n outline: 1px auto Highlight;\n outline: 1px auto -webkit-focus-ring-color;\n box-shadow: none;\n }\n .gpay-card-info-container.white,\n .gpay-button.white {\n outline: 1px solid #3C4043;\n box-shadow: none;\n }\n .gpay-card-info-container.white.focus,\n .gpay-button.white.focus {\n outline: 1px auto Highlight;\n outline: 1px auto -webkit-focus-ring-color;\n box-shadow: none;\n }\n",a.buttonRootNode||document),5===Ko()&&Nn("\n .gpay-card-info-container,\n .gpay-button {\n overflow: hidden;\n }\n",a.buttonRootNode||document),hc.push(a.buttonRootNode||document));var v=Wd(a),b=document.createElement("button");zd(b,a),0!==a.buttonVariant&&function rg(a,l){var h=ji(l.buttonLocale,!0);7===l.buttonVariant?a.setAttribute("aria-label",ra.GPAY_BUTTON_VARIANT_TYPE_BNPL_CARD[h]):6===l.buttonVariant?a.setAttribute("aria-label",ra.GPAY_BUTTON_VARIANT_TYPE_BNPL_ONLY[h]):8===l.buttonVariant?("buy"!==(l=l.buttonType)&&"pay"!==l&&"plain"!==l&&(l="buy"),h in(l=ra.GPAY_BUTTON_VARIANT_TYPE_OLYMPICS[l])||(h="en"),a.setAttribute("aria-label",l[h])):9===l.buttonVariant&&(h in(l=ra.GPAY_BUTTON_VARIANT_TYPE_RLMIA)||(h="en"),a.setAttribute("aria-label",l[h]))}(b,a),v=(-1658203989===oi(Nr)?"gpay-button":"")+" gpay-card-info-container "+v,b.setAttribute("id","gpay-button-online-api-id"),b.setAttribute("class",v),qd([b],a),google.payments.api.EnableButtonBorderInset&&b.classList.add("border-inset");var w=document.createElement("div");w.setAttribute("class",Xo(a)?"gpay-card-info-animation-container white":"gpay-card-info-animation-container black"),google.payments.api.EnableButtonBorderInset&&w.classList.add("border-inset"),(v=document.createElement("div")).setAttribute("class","gpay-card-info-placeholder-container");var E=document.createElement("div");E.setAttribute("class",Xo(a)?"gpay-card-info-animation-gpay-logo white":"gpay-card-info-animation-gpay-logo black");var V=rc(Xo(a)?km:Xu),O=document.createElement("div");O.setAttribute("class","gpay-card-info-animated-progress-bar-container"),google.payments.api.EnableButtonBorderInset&&O.classList.add("border-inset");var X=document.createElement("div");X.setAttribute("class","gpay-card-info-animated-progress-bar"),google.payments.api.EnableGpayButtonDynamicRadius&&X.classList.add("no-radius");var We=document.createElement("div");We.setAttribute("class","gpay-card-info-animated-progress-bar-indicator"),google.payments.api.EnableGpayButtonDynamicRadius&&We.classList.add("no-radius"),X.appendChild(We),v.appendChild(E),"fill"!==a.buttonSizeMode||(E=rc(Xo(a)?Fi:ia),(V=document.createElement("div")).appendChild(E),V.setAttribute("class","gpay-card-info-placeholder-svg-container")),v.appendChild(V),O.appendChild(X),w.appendChild(v),w.appendChild(O),gc(w),b.appendChild(w);var pt=document.createElement("iframe");pt.setAttribute("class","gpay-card-info-iframe"),pt.setAttribute("scrolling","no");e:if("TEST"==l&&null!=ma&&""!=ma)l=ma+"/gp/p/generate_gpay_btn_img";else{if("SANDBOX"===l){l="https://pay.sandbox.google.com/gp/p/generate_gpay_btn_img";break e}l="https://pay.google.com/gp/p/generate_gpay_btn_img"}return l=new fr(l),Li(l,"buttonColor",a.buttonColor),Li(l,"browserLocale",ji(a.buttonLocale)),Li(l,"hl",ji(a.buttonLocale)),Li(l,"buttonSizeMode",a.buttonSizeMode),Array.isArray(a.allowedPaymentMethods)&&a.allowedPaymentMethods.length>0&&Li(l,"allowedPaymentMethods",JSON.stringify(a.allowedPaymentMethods)),Li(l,"gpayButtonVariantType",a.buttonVariant),Li(l,"gpayButtonType",a.buttonType),pt.src=l.toString(),pt.onload=function(){pt.classList.add("gpay-card-info-iframe-fade-in"),w.classList.add("gpay-card-info-animation-container-fade-out"),google.payments.api.EnableFastPayFeatureDemo&&b.click()},a.onClick&&(google.payments.api.EnableCreateButtonApiOnClickLogging?b.addEventListener("click",function(){var Ut=Bo.apply(0,arguments);h?.({eventType:21,clientLatencyStartMs:Date.now()}),google.payments.api.EnableLoadingScreenForPopupMode&&Yd(p),a.onClick.apply(a,et(Ut))}):b.addEventListener("click",a.onClick)),gc(b),b.appendChild(pt),l=document.createElement("div"),"fill"===a.buttonSizeMode&&l.setAttribute("class","gpay-card-info-container-fill"),l.appendChild(b),l}(a,h,p,v);!function yc(a){var l=ji(a.buttonLocale,!0),h=a.buttonRootNode||document;U(Zo,"includes").call(Zo,h)||(Nn("\n.gpay-button {\n background-origin: content-box;\n background-position: center center;\n background-repeat: no-repeat;\n background-size: contain;\n border: 0px;\n border-radius: 4px;\n box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 1px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;\n cursor: pointer;\n height: 40px;\n min-height: 40px;\n padding: 12px 24px 10px;\n width: 240px;\n}\n\n.gpay-button.black {\n background-color: #000;\n box-shadow: none;\n}\n\n.gpay-button.white {\n background-color: #fff;\n}\n\n.gpay-button.black.border-inset,\n.gpay-button.black.border-inset {\n outline: 1px solid #757575;\n outline-offset: -1px;\n}\n\n.gpay-button.white.border-inset,\n.gpay-button.white.border-inset {\n outline: 1px solid #3C4043;\n outline-offset: -1px;\n}\n\n.gpay-button.short, .gpay-button.plain {\n min-width: 90px;\n width: 160px;\n}\n\n.gpay-button.black.short, .gpay-button.black.plain {\n background-image: url(https://www.gstatic.com/instantbuy/svg/dark_gpay.svg);\n}\n\n.gpay-button.white.short, .gpay-button.white.plain {\n background-image: url(https://www.gstatic.com/instantbuy/svg/light_gpay.svg);\n}\n\n.gpay-button.black.active {\n background-color: #5f6368;\n}\n\n.gpay-button.black.hover {\n background-color: #3c4043;\n}\n\n.gpay-button.white.active {\n background-color: #fff;\n}\n\n.gpay-button.white.focus {\n box-shadow: #e8e8e8 0 1px 1px 0, #e8e8e8 0 1px 3px;\n}\n\n.gpay-button.white.hover {\n background-color: #f8f8f8;\n}\n\n.gpay-button-fill, .gpay-button-fill > .gpay-button.white, .gpay-button-fill > .gpay-button.black {\n width: 100%;\n height: inherit;\n}\n\n.gpay-button-fill > .gpay-button.white,\n .gpay-button-fill > .gpay-button.black {\n padding: 12px 15% 10px;\n}\n\n.gpay-button.donate, .gpay-button.book,\n.gpay-button.checkout,\n.gpay-button.subscribe, .gpay-button.pay,\n.gpay-button.order {\n padding: 9px 24px;\n}\n\n.gpay-button-fill > .gpay-button.donate,\n.gpay-button-fill > .gpay-button.book,\n.gpay-button-fill > .gpay-button.checkout,\n.gpay-button-fill > .gpay-button.order,\n.gpay-button-fill > .gpay-button.pay,\n.gpay-button-fill > .gpay-button.subscribe {\n padding: 9px 15%;\n}\n\n",h),google.payments.api.EnableGpayButtonDynamicRadius&&Nn("\n .gpay-card-info-container.black,\n .gpay-button.black {\n outline: 1px solid #757575;\n box-shadow: none;\n }\n .gpay-card-info-container.black.focus,\n .gpay-button.black.focus {\n outline: 1px auto Highlight;\n outline: 1px auto -webkit-focus-ring-color;\n box-shadow: none;\n }\n .gpay-card-info-container.white,\n .gpay-button.white {\n outline: 1px solid #3C4043;\n box-shadow: none;\n }\n .gpay-card-info-container.white.focus,\n .gpay-button.white.focus {\n outline: 1px auto Highlight;\n outline: 1px auto -webkit-focus-ring-color;\n box-shadow: none;\n }\n",h),5===Ko()&&Nn("\n .gpay-card-info-container,\n .gpay-button {\n overflow: hidden;\n }\n",h),Zo.push(h),ha.push([]));var p=Zo.indexOf(h),v=Xo(a)?"white":"black",b=l+"_"+a.buttonType+"_"+v,w=a.buttonType;if(w&&"short"!=w&&"plain"!=w&&!U(ha[p],"includes").call(ha[p],b)){w="white"===v?"light":"dark";var E="long"===(a=a.buttonType)?uo.buy[l]:uo[a||"buy"][l];Nn("long"==a||"buy"==a?"\n .gpay-button."+v+".long."+l+", .gpay-button."+v+".buy."+l+" {\n background-image: url(https://www.gstatic.com/instantbuy/svg/"+w+"/"+l+".svg);\n min-width: "+E+"px;\n }":"\n .gpay-button."+v+"."+a+"."+l+" {\n background-image: url(https://www.gstatic.com/instantbuy/svg/"+w+"/"+a+"/"+l+".svg);\n min-width: "+E+"px;\n }\n ",h),ha[p].push(b)}}(a);var b=document.createElement("button");if(zd(b,a),"default"==a.buttonColor&&(a.buttonColor="black"),l=Wd(a),b.setAttribute("class","gpay-button "+l),b.setAttribute("id","gpay-button-online-api-id"),gc(b),qd([b],a),google.payments.api.EnableButtonBorderInset&&b.classList.add("border-inset"),!a.onClick)throw Error("Parameter 'onClick' must be set.");return google.payments.api.EnableCreateButtonApiOnClickLogging?b.addEventListener("click",function(){var w=Bo.apply(0,arguments);p?.({eventType:21,clientLatencyStartMs:Date.now()}),google.payments.api.EnableLoadingScreenForPopupMode&&Yd(v),a.onClick.apply(a,et(w))}):b.addEventListener("click",a.onClick),l=document.createElement("div"),"fill"===a.buttonSizeMode&&l.setAttribute("class","gpay-button-fill"),l.appendChild(b),google.payments.api.EnableFastPayFeatureDemo&&setTimeout(function(){return b.click()},100),l}(a,this.Ob,this.m,function(h){return Be(h)},this.l.mode);return null!=a.buttonVariant&&(this.B.buttonVariant=Number(a.buttonVariant)),null!=a.olympicsAnimationConditionsMet&&(this.B.olympicsAnimationConditionsMet=a.olympicsAnimationConditionsMet),Be({eventType:2,clientLatencyStartMs:Date.now(),buyFlowActivityReason:this.l.s,softwareInfo:kt(this),merchantInfo:Gt(this),buttonInfo:this.B}),l},F.O=function(){google.payments.api.EnableFocusPaymentSheetApi&&(Be({eventType:34,buyFlowMode:this.I,buyFlowActivityReason:this.l.s,softwareInfo:kt(this),merchantInfo:Gt(this)}),this.T.O())},F.Yb=function(a){var l=this;(a=a.then(function(h){if(google.payments.api.LogInternally&&console.log("payment data",h),h.error){var p=Error();throw p.statusCode=h.error.statusCode,p.statusMessage=h.error.statusMessage,Wn({M:"loadPaymentData",errorMessage:p.statusMessage}),p}return h})).then(function(h){google.payments.api.LogInternally&&console.log("payment data resolve to ",h),Be({eventType:1,clientLatencyStartMs:l.vb,buyFlowMode:l.I,buyFlowActivityReason:l.l.s,softwareInfo:kt(l),merchantInfo:Gt(l),buttonInfo:l.B})}).catch(function(h){google.payments.api.LogInternally&&console.log("payment data has error",h),Be(h.errorCode?{eventType:1,error:h.errorCode,buyFlowMode:l.I,buyFlowActivityReason:l.l.s,softwareInfo:kt(l),merchantInfo:Gt(l),buttonInfo:l.B}:{eventType:1,error:6,buyFlowMode:l.I,buyFlowActivityReason:l.l.s,softwareInfo:kt(l),merchantInfo:Gt(l),buttonInfo:l.B})}),this.qa(a)},F.xa=function(a){var l={googleTransactionId:Pe,usingPayJs:!0};a.i=a.i?U(Object,"assign").call(Object,l,a.i):l,a.i.firstPartyMerchantIdentifier&&delete a.i.firstPartyMerchantIdentifier,this.v.i&&this.v.i.firstPartyMerchantIdentifier&&(a.i.firstPartyMerchantIdentifier=this.v.i.firstPartyMerchantIdentifier)},W.prototype.focusPaymentSheet=W.prototype.O,W.prototype.createButton=W.prototype.createButton,W.prototype.loadPaymentDataAsync=W.prototype.Vb,W.prototype.loadPaymentData=W.prototype.loadPaymentData,W.prototype.notifyAvailableOffers=W.prototype.notifyAvailableOffers,W.prototype.prefetchPaymentData=W.prototype.prefetchPaymentData,W.prototype.isReadyToPay=W.prototype.isReadyToPay;var ss=null,Ta=null,as=function(a,l){l=void 0!==l&&l,this.pb=a,this.s=[],null!=window.navigator.userAgent.match(/Android|iPhone|iPad|iPod|BlackBerry|IEMobile/i)?(this.s.push(37),a=!1):(a=window.navigator.userAgent.match(/Chrome\/([0-9]+)\./i),"PaymentRequest"in window&&null!=a&&Number(a[1])>=70&&"Google Inc."==window.navigator.vendor?(this.s.push(98),this.pb.paymentDataCallbacks&&this.s.push(97),a=!0):(this.s.push(36),a=!1)),this.ua=a,this.Sa=Cg(this),this.mode=2,l?(this.s=[38],this.mode=1):this.Sa&&this.ua?this.mode=5:this.Sa&&(this.mode=4),this.pb.paymentDataCallbacks&&this.s.push(1)},di=function(a){return!0===(a.i&&a.i.disableNative)},Ma=function(a,l,h){return 2===a.mode||1===a.mode?a.mode:di(l)?(h.push(3),2):!Ta&&(a.ua||google.payments.api.UseCanMakePaymentForFallbackOnMobile&&a.Sa)?(h.push(40),2):a.ua&&l.swg?(h.push(5),2):a.mode},wg=function(a,l,h){return jo(function(p){return 1==p.X?2===a.mode||1===a.mode?p.return(a.mode):di(l)?(h.push(3),p.return(2)):oo(p,jo(function(a){return 1==a.X?null!=Ta?a.return(Ta):ss?(a.ob=2,oo(a,ss,4)):a.return(!1):2!=a.X?a.return(a.Xa):(a.ob=0,a.wa=null,a.return(!1))}),2):!p.Xa&&(a.ua||google.payments.api.UseCanMakePaymentForFallbackOnMobile&&a.Sa)?(h.push(40),p.return(2)):a.ua&&l.swg?(h.push(5),p.return(2)):p.return(a.mode)})},Cg=function(a){if(!window.PaymentRequest)return a.s.push(41),!1;var l=-1!==window.navigator.userAgent.indexOf("OPT/"),h=-1!==window.navigator.userAgent.indexOf("SamsungBrowser/");return-1!==window.navigator.userAgent.indexOf("OPR/")||l||h?(a.s.push(35),!1):!(!a.ua&&(google.payments.api.EnablePaymentRequest?(l=window.navigator.userAgent.match(/Android/i),h=window.navigator.userAgent.match(/Chrome\/([0-9]+)\./i),null!=l&&"PaymentRequest"in window&&"Google Inc."==window.navigator.vendor&&null!=h&&Number(h[1])>=59?a.pb.paymentDataCallbacks&&(Number(h[1])<92||(a.s.push(96),!google.payments.api.EnableDynamicUpdateForClank&&(a.s.push(42),1))):(a.s.push(34),1)):(a.s.push(3),1)))};Zu("google.payments.api.PaymentsAsyncClient",W),W.prototype.isReadyToPay=W.prototype.isReadyToPay,W.prototype.prefetchPaymentData=W.prototype.prefetchPaymentData,W.prototype.loadPaymentData=W.prototype.loadPaymentData,W.prototype.createButton=W.prototype.createButton,W.prototype.notifyAvailableOffers=W.prototype.notifyAvailableOffers,W.prototype.focusPaymentSheet=W.prototype.O;var Lr=function(){var a=Error.call(this,"This method can only be called one at a time");this.message=a.message,"stack"in a&&(this.stack=a.stack)},Bi=Error;if((Lr.prototype=Bt(Bi.prototype)).constructor=Lr,Ie)Ie(Lr,Bi);else for(var pr in Bi)if("prototype"!=pr)if(Object.defineProperties){var gf=Object.getOwnPropertyDescriptor(Bi,pr);gf&&Object.defineProperty(Lr,pr,gf)}else Lr[pr]=Bi[pr];Lr.Da=Bi.prototype;var Oe=function(a,l){a=void 0===a?{}:a,this.Bc=function Zm(a){for(var l=1;l<arguments.length;l++)a=Vd(a,arguments[l]);return a}({},window.gpayMerchantIdFromUrl?{merchantInfo:{merchantId:window.gpayMerchantIdFromUrl}}:{},window.gpayInitParams,a),this.ya=new W(this.Bc,this.Fc.bind(this),l),this.Na=null};(F=Oe.prototype).Fc=function(a){this.Na(a)},F.isReadyToPay=function(a){return this.ya.isReadyToPay(a)},F.prefetchPaymentData=function(a){this.ya.prefetchPaymentData(a)},F.notifyAvailableOffers=function(){},F.loadPaymentData=function(a){var l=this;return new $.Promise(function(h,p){if(l.Na)throw new Lr;l.Na=h,google.payments.api.EnableCanMakePaymentConsistency?l.ya.Vb(a).catch(p):l.ya.loadPaymentData(a)}).then(function(h){return l.Na=null,h},function(h){throw h instanceof Lr||(l.Na=null),h})},F.createButton=function(a){return this.ya.createButton(a=void 0===a?{}:a)},F.O=function(){this.ya.O()},Oe.prototype.createButton=Oe.prototype.createButton,Oe.prototype.loadPaymentData=Oe.prototype.loadPaymentData,Oe.prototype.notifyAvailableOffers=Oe.prototype.notifyAvailableOffers,Oe.prototype.prefetchPaymentData=Oe.prototype.prefetchPaymentData,Oe.prototype.isReadyToPay=Oe.prototype.isReadyToPay,Zu("google.payments.api.PaymentsClient",Oe),Oe.prototype.isReadyToPay=Oe.prototype.isReadyToPay,Oe.prototype.prefetchPaymentData=Oe.prototype.prefetchPaymentData,Oe.prototype.loadPaymentData=Oe.prototype.loadPaymentData,Oe.prototype.createButton=Oe.prototype.createButton,Oe.prototype.notifyAvailableOffers=Oe.prototype.notifyAvailableOffers,Oe.prototype.focusPaymentSheet=Oe.prototype.O;try{ss=new PaymentRequest([{supportedMethods:["https://google.com/pay"],data:{apiVersion:2,apiVersionMinor:0,allowedPaymentMethods:[{type:"CARD",parameters:{allowedAuthMethods:["PAN_ONLY","CRYPTOGRAM_3DS"],allowedCardNetworks:["VISA","MASTERCARD"]}}]}}],{total:{label:"Estimated Total Price",amount:{currency:"USD",value:"10"}}}).canMakePayment()}catch{ss=$.Promise.resolve(!1)}ss.then(function(a){return Ta=a}).catch(function(){return Ta=!1})}.call(this)}},F=>{F(F.s=528)}]);
|
|
3
|
+
"use strict";(self.webpackChunk_motopays_pay_form=self.webpackChunk_motopays_pay_form||[]).push([[792],{421:(On,He,ct)=>{function tt(e,n){return Object.is(e,n)}let ye=null,Ge=!1,Ee=1;const Qe=Symbol("SIGNAL");function q(e){const n=ye;return ye=e,n}const xt={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function ni(e){if(Ge)throw new Error("");if(null===ye)return;ye.consumerOnSignalRead(e);const n=ye.nextProducerIndex++;Fc(ye),n<ye.producerNode.length&&ye.producerNode[n]!==e&&Uo(ye)&&Rc(ye.producerNode[n],ye.producerIndexOfThis[n]),ye.producerNode[n]!==e&&(ye.producerNode[n]=e,ye.producerIndexOfThis[n]=Uo(ye)?h_(e,ye,n):0),ye.producerLastReadVersion[n]=e.version}function gs(e){if((!Uo(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==Ee)){if(!e.producerMustRecompute(e)&&!Fr(e))return e.dirty=!1,void(e.lastCleanEpoch=Ee);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=Ee}}function Yn(e){if(void 0===e.liveConsumerNode)return;const n=Ge;Ge=!0;try{for(const t of e.liveConsumerNode)t.dirty||Fe(t)}finally{Ge=n}}function de(){return!1!==ye?.consumerAllowSignalWrites}function Fe(e){e.dirty=!0,Yn(e),e.consumerMarkedDirty?.(e)}function lt(e){return e&&(e.nextProducerIndex=0),q(e)}function Rn(e,n){if(q(n),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(Uo(e))for(let t=e.nextProducerIndex;t<e.producerNode.length;t++)Rc(e.producerNode[t],e.producerIndexOfThis[t]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Fr(e){Fc(e);for(let n=0;n<e.producerNode.length;n++){const t=e.producerNode[n],r=e.producerLastReadVersion[n];if(r!==t.version||(gs(t),r!==t.version))return!0}return!1}function hf(e){if(Fc(e),Uo(e))for(let n=0;n<e.producerNode.length;n++)Rc(e.producerNode[n],e.producerIndexOfThis[n]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function h_(e,n,t){if(p_(e),0===e.liveConsumerNode.length&&m_(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=h_(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(t),e.liveConsumerNode.push(n)-1}function Rc(e,n){if(p_(e),1===e.liveConsumerNode.length&&m_(e))for(let r=0;r<e.producerNode.length;r++)Rc(e.producerNode[r],e.producerIndexOfThis[r]);const t=e.liveConsumerNode.length-1;if(e.liveConsumerNode[n]=e.liveConsumerNode[t],e.liveConsumerIndexOfThis[n]=e.liveConsumerIndexOfThis[t],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,n<e.liveConsumerNode.length){const r=e.liveConsumerIndexOfThis[n],i=e.liveConsumerNode[n];Fc(i),i.producerIndexOfThis[r]=n}}function Uo(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function Fc(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function p_(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function m_(e){return void 0!==e.producerNode}const pf=Symbol("UNSET"),mf=Symbol("COMPUTING"),Lc=Symbol("ERRORED"),j1={...xt,value:pf,dirty:!0,error:null,equal:tt,producerMustRecompute:e=>e.value===pf||e.value===mf,producerRecomputeValue(e){if(e.value===mf)throw new Error("Detected cycle in computations.");const n=e.value;e.value=mf;const t=lt(e);let r;try{r=e.computation()}catch(i){r=Lc,e.error=i}finally{Rn(e,t)}n!==pf&&n!==Lc&&r!==Lc&&e.equal(n,r)?e.value=n:(e.value=r,e.version++)}};let g_=function H1(){throw new Error};function y_(){g_()}let Vc=null;function gf(e,n){de()||y_(),e.equal(e.value,n)||(e.value=n,function z1(e){e.version++,function ff(){Ee++}(),Yn(e),Vc?.()}(e))}const __={...xt,equal:tt,value:void 0};const yf=()=>{},W1={...xt,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:yf};function Xe(e){return"function"==typeof e}function _f(e){const t=e(r=>{Error.call(r),r.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const vf=_f(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function Bc(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class pn{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const s of t)s.remove(this);else t.remove(this);const{initialTeardown:r}=this;if(Xe(r))try{r()}catch(s){n=s instanceof vf?s.errors:[s]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const s of i)try{b_(s)}catch(o){n=n??[],o instanceof vf?n=[...n,...o.errors]:n.push(o)}}if(n)throw new vf(n)}}add(n){var t;if(n&&n!==this)if(this.closed)b_(n);else{if(n instanceof pn){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(n)}}_hasParent(n){const{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){const{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&Bc(t,n)}remove(n){const{_finalizers:t}=this;t&&Bc(t,n),n instanceof pn&&n._removeParent(this)}}pn.EMPTY=(()=>{const e=new pn;return e.closed=!0,e})();const v_=pn.EMPTY;function C_(e){return e instanceof pn||e&&"closed"in e&&Xe(e.remove)&&Xe(e.add)&&Xe(e.unsubscribe)}function b_(e){Xe(e)?e():e.unsubscribe()}const Mi={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},jc={setTimeout(e,n,...t){const{delegate:r}=jc;return r?.setTimeout?r.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=jc;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function E_(e){jc.setTimeout(()=>{const{onUnhandledError:n}=Mi;if(!n)throw e;n(e)})}function Cf(){}const Z1=bf("C",void 0,void 0);function bf(e,n,t){return{kind:e,value:n,error:t}}let Ii=null;function Hc(e){if(Mi.useDeprecatedSynchronousErrorHandling){const n=!Ii;if(n&&(Ii={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:r}=Ii;if(Ii=null,t)throw r}}else e()}class Ef extends pn{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,C_(n)&&n.add(this)):this.destination=tx}static create(n,t,r){return new Df(n,t,r)}next(n){this.isStopped?Sf(function K1(e){return bf("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?Sf(function Y1(e){return bf("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Sf(Z1,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const X1=Function.prototype.bind;function wf(e,n){return X1.call(e,n)}class J1{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(r){Uc(r)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(r){Uc(r)}else Uc(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){Uc(t)}}}class Df extends Ef{constructor(n,t,r){let i;if(super(),Xe(n)||!n)i={next:n??void 0,error:t??void 0,complete:r??void 0};else{let s;this&&Mi.useDeprecatedNextContext?(s=Object.create(n),s.unsubscribe=()=>this.unsubscribe(),i={next:n.next&&wf(n.next,s),error:n.error&&wf(n.error,s),complete:n.complete&&wf(n.complete,s)}):i=n}this.destination=new J1(i)}}function Uc(e){Mi.useDeprecatedSynchronousErrorHandling?function Q1(e){Mi.useDeprecatedSynchronousErrorHandling&&Ii&&(Ii.errorThrown=!0,Ii.error=e)}(e):E_(e)}function Sf(e,n){const{onStoppedNotification:t}=Mi;t&&jc.setTimeout(()=>t(e,n))}const tx={closed:!0,next:Cf,error:function ex(e){throw e},complete:Cf},Tf="function"==typeof Symbol&&Symbol.observable||"@@observable";function Mf(e){return e}let nt=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const r=new e;return r.source=this,r.operator=t,r}subscribe(t,r,i){const s=function rx(e){return e&&e instanceof Ef||function nx(e){return e&&Xe(e.next)&&Xe(e.error)&&Xe(e.complete)}(e)&&C_(e)}(t)?t:new Df(t,r,i);return Hc(()=>{const{operator:o,source:a}=this;s.add(o?o.call(s,a):a?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(t){try{return this._subscribe(t)}catch(r){t.error(r)}}forEach(t,r){return new(r=D_(r))((i,s)=>{const o=new Df({next:a=>{try{t(a)}catch(c){s(c),o.unsubscribe()}},error:s,complete:i});this.subscribe(o)})}_subscribe(t){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(t)}[Tf](){return this}pipe(...t){return function w_(e){return 0===e.length?Mf:1===e.length?e[0]:function(t){return e.reduce((r,i)=>i(r),t)}}(t)(this)}toPromise(t){return new(t=D_(t))((r,i)=>{let s;this.subscribe(o=>s=o,o=>i(o),()=>r(s))})}}return e.create=n=>new e(n),e})();function D_(e){var n;return null!==(n=e??Mi.Promise)&&void 0!==n?n:Promise}const ix=_f(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Nt=(()=>{class e extends nt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const r=new S_(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new ix}next(t){Hc(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(t)}})}error(t){Hc(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){Hc(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:r,isStopped:i,observers:s}=this;return r||i?v_:(this.currentObservers=null,s.push(t),new pn(()=>{this.currentObservers=null,Bc(s,t)}))}_checkFinalizedStatuses(t){const{hasError:r,thrownError:i,isStopped:s}=this;r?t.error(i):s&&t.complete()}asObservable(){const t=new nt;return t.source=this,t}}return e.create=(n,t)=>new S_(n,t),e})();class S_ extends Nt{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,n)}error(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,n)}complete(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)}_subscribe(n){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==r?r:v_}}class sx extends Nt{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){const{hasError:n,thrownError:t,_value:r}=this;if(n)throw t;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}}function mn(e){return n=>{if(function ox(e){return Xe(e?.lift)}(n))return n.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function nn(e,n,t,r,i){return new ax(e,n,t,r,i)}class ax extends Ef{constructor(n,t,r,i,s,o){super(n),this.onFinalize=s,this.shouldUnsubscribe=o,this._next=t?function(a){try{t(a)}catch(c){n.error(c)}}:super._next,this._error=i?function(a){try{i(a)}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function kt(e,n){return mn((t,r)=>{let i=0;t.subscribe(nn(r,s=>{r.next(e.call(n,s,i++))}))})}typeof navigator<"u"&&navigator,typeof navigator<"u"&&!/Opera/.test(navigator.userAgent)&&navigator,typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||navigator),typeof navigator<"u"&&!/Opera|WebKit/.test(navigator.userAgent)&&navigator,typeof navigator<"u"&&navigator;const z_="https://g.co/ng/security#xss";class E extends Error{constructor(n,t){super(function ys(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,t)),this.code=n}}const qc=Symbol("InputSignalNode#UNSET"),q_={...__,transformFn:void 0,applyValueToInputSignal(e,n){gf(e,n)}};function W_(e,n){const t=Object.create(q_);function r(){if(ni(t),t.value===qc)throw new E(-950,!1);return t.value}return t.value=e,t.transformFn=n?.transform,r[Qe]=t,r}function Lr(e){return{toString:e}.toString()}const _s="__annotations__",vs="__parameters__",Cs="__prop__metadata__";function Z_(e,n,t,r,i){return Lr(()=>{const s=Rf(n);function o(...a){if(this instanceof o)return s.call(this,...a),this;const c=new o(...a);return function(u){return i&&i(u,...a),(u.hasOwnProperty(_s)?u[_s]:Object.defineProperty(u,_s,{value:[]})[_s]).push(c),r&&r(u),u}}return t&&(o.prototype=Object.create(t.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function Rf(e){return function(...t){if(e){const r=e(...t);for(const i in r)this[i]=r[i]}}}function bs(e,n,t){return Lr(()=>{const r=Rf(n);function i(...s){if(this instanceof i)return r.apply(this,s),this;const o=new i(...s);return a.annotation=o,a;function a(c,l,u){const d=c.hasOwnProperty(vs)?c[vs]:Object.defineProperty(c,vs,{value:[]})[vs];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),c}}return t&&(i.prototype=Object.create(t.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}const Ue=globalThis;function Se(e){for(let n in e)if(e[n]===Se)return n;throw Error("Could not find renamed property on target object.")}function aN(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function vt(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(vt).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const t=n.indexOf("\n");return-1===t?n:n.substring(0,t)}function Ff(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const cN=Se({__forward_ref__:Se});function we(e){return e.__forward_ref__=we,e.toString=function(){return vt(this())},e}function W(e){return Wc(e)?e():e}function Wc(e){return"function"==typeof e&&e.hasOwnProperty(cN)&&e.__forward_ref__===we}function R(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function dt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Zc(e){return Y_(e,Kc)||Y_(e,K_)}function Y_(e,n){return e.hasOwnProperty(n)?e[n]:null}function Yc(e){return e&&(e.hasOwnProperty(Lf)||e.hasOwnProperty(hN))?e[Lf]:null}const Kc=Se({\u0275prov:Se}),Lf=Se({\u0275inj:Se}),K_=Se({ngInjectableDef:Se}),hN=Se({ngInjectorDef:Se});class N{constructor(n,t){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=R({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Uf(e){return e&&!!e.\u0275providers}const Go=Se({\u0275cmp:Se}),$f=Se({\u0275dir:Se}),Gf=Se({\u0275pipe:Se}),X_=Se({\u0275mod:Se}),Vr=Se({\u0275fac:Se}),zo=Se({__NG_ELEMENT_ID__:Se}),J_=Se({__NG_ENV_ID__:Se});function X(e){return"string"==typeof e?e:null==e?"":String(e)}function zf(e,n){throw new E(-201,!1)}var ue=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}(ue||{});let qf;function ev(){return qf}function rn(e){const n=qf;return qf=e,n}function tv(e,n,t){const r=Zc(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&ue.Optional?null:void 0!==n?n:void zf()}const qo={},Wf="__NG_DI_FLAG__",Qc="ngTempTokenPath",vN=/\n/gm,nv="__source";let Es;function si(e){const n=Es;return Es=e,n}function EN(e,n=ue.Default){if(void 0===Es)throw new E(-203,!1);return null===Es?tv(e,void 0,n):Es.get(e,n&ue.Optional?null:void 0,n)}function k(e,n=ue.Default){return(ev()||EN)(W(e),n)}function A(e,n=ue.Default){return k(e,Xc(n))}function Xc(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Zf(e){const n=[];for(let t=0;t<e.length;t++){const r=W(e[t]);if(Array.isArray(r)){if(0===r.length)throw new E(900,!1);let i,s=ue.Default;for(let o=0;o<r.length;o++){const a=r[o],c=wN(a);"number"==typeof c?-1===c?i=a.token:s|=c:i=a}n.push(k(i,s))}else n.push(k(r))}return n}function Wo(e,n){return e[Wf]=n,e.prototype[Wf]=n,e}function wN(e){return e[Wf]}const TN=Wo(bs("Inject",e=>({token:e})),-1),Yf=Wo(bs("Optional"),8),MN=Wo(bs("Self"),2),Kf=Wo(bs("SkipSelf"),4),IN=Wo(bs("Host"),1);function xi(e,n){return e.hasOwnProperty(Vr)?e[Vr]:null}function ws(e,n){e.forEach(t=>Array.isArray(t)?ws(t,n):n(t))}function iv(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function Jc(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function el(e,n){const t=[];for(let r=0;r<e;r++)t.push(n);return t}function _n(e,n,t){let r=Ds(e,n);return r>=0?e[1|r]=t:(r=~r,function sv(e,n,t,r){let i=e.length;if(i==n)e.push(t,r);else if(1===i)e.push(r,e[0]),e[0]=t;else{for(i--,e.push(e[i-1],e[i]);i>n;)e[i]=e[i-2],i--;e[n]=t,e[n+1]=r}}(e,r,n,t)),r}function Xf(e,n){const t=Ds(e,n);if(t>=0)return e[1|t]}function Ds(e,n){return function ov(e,n,t){let r=0,i=e.length>>t;for(;i!==r;){const s=r+(i-r>>1),o=e[s<<t];if(n===o)return s<<t;o>n?i=s:r=s+1}return~(i<<t)}(e,n,1)}const yr={},fe=[],_r=new N(""),av=new N("",-1),Jf=new N("");class tl{get(n,t=qo){if(t===qo){const r=new Error(`NullInjectorError: No provider for ${vt(n)}!`);throw r.name="NullInjectorError",r}return t}}var nl=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(nl||{}),Kn=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Kn||{}),oi=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(oi||{});function xN(e,n,t){let r=e.length;for(;;){const i=e.indexOf(n,t);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){const s=n.length;if(i+s===r||e.charCodeAt(i+s)<=32)return i}t=i+1}}function eh(e,n,t){let r=0;for(;r<t.length;){const i=t[r];if("number"==typeof i){if(0!==i)break;r++;const s=t[r++],o=t[r++],a=t[r++];e.setAttribute(n,o,a,s)}else{const s=i,o=t[++r];lv(s)?e.setProperty(n,s,o):e.setAttribute(n,s,o),r++}}return r}function cv(e){return 3===e||4===e||6===e}function lv(e){return 64===e.charCodeAt(0)}function Zo(e,n){if(null!==n&&0!==n.length)if(null===e||0===e.length)e=n.slice();else{let t=-1;for(let r=0;r<n.length;r++){const i=n[r];"number"==typeof i?t=i:0===t||uv(e,t,i,null,-1===t||2===t?n[++r]:null)}}return e}function uv(e,n,t,r,i){let s=0,o=e.length;if(-1===n)o=-1;else for(;s<e.length;){const a=e[s++];if("number"==typeof a){if(a===n){o=-1;break}if(a>n){o=s-1;break}}}for(;s<e.length;){const a=e[s];if("number"==typeof a)break;if(a===t){if(null===r)return void(null!==i&&(e[s+1]=i));if(r===e[s+1])return void(e[s+2]=i)}s++,null!==r&&s++,null!==i&&s++}-1!==o&&(e.splice(o,0,n),s=o+1),e.splice(s++,0,t),null!==r&&e.splice(s++,0,r),null!==i&&e.splice(s++,0,i)}const dv="ng-template";function NN(e,n,t,r){let i=0;if(r){for(;i<n.length&&"string"==typeof n[i];i+=2)if("class"===n[i]&&-1!==xN(n[i+1].toLowerCase(),t,0))return!0}else if(th(e))return!1;if(i=n.indexOf(1,i),i>-1){let s;for(;++i<n.length&&"string"==typeof(s=n[i]);)if(s.toLowerCase()===t)return!0}return!1}function th(e){return 4===e.type&&e.value!==dv}function kN(e,n,t){return n===(4!==e.type||t?e.value:dv)}function PN(e,n,t){let r=4;const i=e.attrs,s=null!==i?function FN(e){for(let n=0;n<e.length;n++)if(cv(e[n]))return n;return e.length}(i):0;let o=!1;for(let a=0;a<n.length;a++){const c=n[a];if("number"!=typeof c){if(!o)if(4&r){if(r=2|1&r,""!==c&&!kN(e,c,t)||""===c&&1===n.length){if(Qn(r))return!1;o=!0}}else if(8&r){if(null===i||!NN(e,i,c,t)){if(Qn(r))return!1;o=!0}}else{const l=n[++a],u=ON(c,i,th(e),t);if(-1===u){if(Qn(r))return!1;o=!0;continue}if(""!==l){let d;if(d=u>s?"":i[u+1].toLowerCase(),2&r&&l!==d){if(Qn(r))return!1;o=!0}}}}else{if(!o&&!Qn(r)&&!Qn(c))return!1;if(o&&Qn(c))continue;o=!1,r=c|1&r}}return Qn(r)||o}function Qn(e){return!(1&e)}function ON(e,n,t,r){if(null===n)return-1;let i=0;if(r||!t){let s=!1;for(;i<n.length;){const o=n[i];if(o===e)return i;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=n[++i];for(;"string"==typeof a;)a=n[++i];continue}if(4===o)break;if(0===o){i+=4;continue}}i+=s?1:2}return-1}return function LN(e,n){let t=e.indexOf(4);if(t>-1)for(t++;t<e.length;){const r=e[t];if("number"==typeof r)return-1;if(r===n)return t;t++}return-1}(n,e)}function fv(e,n,t=!1){for(let r=0;r<n.length;r++)if(PN(e,n[r],t))return!0;return!1}function VN(e,n){e:for(let t=0;t<n.length;t++){const r=n[t];if(e.length===r.length){for(let i=0;i<e.length;i++)if(e[i]!==r[i])continue e;return!0}}return!1}function hv(e,n){return e?":not("+n.trim()+")":n}function BN(e){let n=e[0],t=1,r=2,i="",s=!1;for(;t<e.length;){let o=e[t];if("string"==typeof o)if(2&r){const a=e[++t];i+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?i+="."+o:4&r&&(i+=" "+o);else""!==i&&!Qn(o)&&(n+=hv(s,i),i=""),r=o,s=s||!Qn(r);t++}return""!==i&&(n+=hv(s,i)),n}function Te(e){return Lr(()=>{const n=mv(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===nl.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Kn.Emulated,styles:e.styles||fe,_:null,schemas:e.schemas||null,tView:null,id:""};gv(t);const r=e.dependencies;return t.directiveDefs=rl(r,!1),t.pipeDefs=rl(r,!0),t.id=function zN(e){let n=0;const t=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const i of t)n=Math.imul(31,n)+i.charCodeAt(0)|0;return n+=2147483648,"c"+n}(t),t})}function UN(e){return ae(e)||bt(e)}function $N(e){return null!==e}function Ct(e){return Lr(()=>({type:e.type,bootstrap:e.bootstrap||fe,declarations:e.declarations||fe,imports:e.imports||fe,exports:e.exports||fe,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function pv(e,n){if(null==e)return yr;const t={};for(const r in e)if(e.hasOwnProperty(r)){const i=e[r];let s,o,a=oi.None;Array.isArray(i)?(a=i[0],s=i[1],o=i[2]??s):(s=i,o=i),n?(t[s]=a!==oi.None?[r,a]:r,n[s]=o):t[s]=r}return t}function Z(e){return Lr(()=>{const n=mv(e);return gv(n),n})}function ft(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function ae(e){return e[Go]||null}function bt(e){return e[$f]||null}function Pt(e){return e[Gf]||null}function mv(e){const n={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:e.inputs||yr,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||fe,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:pv(e.inputs,n),outputs:pv(e.outputs),debugInfo:null}}function gv(e){e.features?.forEach(n=>n(e))}function rl(e,n){if(!e)return null;const t=n?Pt:UN;return()=>("function"==typeof e?e():e).map(r=>t(r)).filter($N)}function Ss(e){return{\u0275providers:e}}function qN(...e){return{\u0275providers:nh(0,e),\u0275fromNgModule:!0}}function nh(e,...n){const t=[],r=new Set;let i;const s=o=>{t.push(o)};return ws(n,o=>{const a=o;il(a,s,[],r)&&(i||=[],i.push(a))}),void 0!==i&&yv(i,s),t}function yv(e,n){for(let t=0;t<e.length;t++){const{ngModule:r,providers:i}=e[t];rh(i,s=>{n(s,r)})}}function il(e,n,t,r){if(!(e=W(e)))return!1;let i=null,s=Yc(e);const o=!s&&ae(e);if(s||o){if(o&&!o.standalone)return!1;i=e}else{const c=e.ngModule;if(s=Yc(c),!s)return!1;i=c}const a=r.has(i);if(o){if(a)return!1;if(r.add(i),o.dependencies){const c="function"==typeof o.dependencies?o.dependencies():o.dependencies;for(const l of c)il(l,n,t,r)}}else{if(!s)return!1;{if(null!=s.imports&&!a){let l;r.add(i);try{ws(s.imports,u=>{il(u,n,t,r)&&(l||=[],l.push(u))})}finally{}void 0!==l&&yv(l,n)}if(!a){const l=xi(i)||(()=>new i);n({provide:i,useFactory:l,deps:fe},i),n({provide:Jf,useValue:i,multi:!0},i),n({provide:_r,useValue:()=>k(i),multi:!0},i)}const c=s.providers;if(null!=c&&!a){const l=e;rh(c,u=>{n(u,l)})}}}return i!==e&&void 0!==e.providers}function rh(e,n){for(let t of e)Uf(t)&&(t=t.\u0275providers),Array.isArray(t)?rh(t,n):n(t)}const WN=Se({provide:String,useValue:Se});function ih(e){return null!==e&&"object"==typeof e&&WN in e}function ki(e){return"function"==typeof e}const sh=new N(""),sl={},YN={};let oh;function ol(){return void 0===oh&&(oh=new tl),oh}class Fn{}class Ts extends Fn{get destroyed(){return this._destroyed}constructor(n,t,r,i){super(),this.parent=t,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ch(n,o=>this.processProvider(o)),this.records.set(av,Ms(void 0,this)),i.has("environment")&&this.records.set(Fn,Ms(void 0,this));const s=this.records.get(sh);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(Jf,fe,ue.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const n=q(null);try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of t)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),q(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const t=si(this),r=rn(void 0);try{return n()}finally{si(t),rn(r)}}get(n,t=qo,r=ue.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(J_))return n[J_](this);r=Xc(r);const s=si(this),o=rn(void 0);try{if(!(r&ue.SkipSelf)){let c=this.records.get(n);if(void 0===c){const l=function ek(e){return"function"==typeof e||"object"==typeof e&&e instanceof N}(n)&&Zc(n);c=l&&this.injectableDefInScope(l)?Ms(ah(n),sl):null,this.records.set(n,c)}if(null!=c)return this.hydrate(n,c)}return(r&ue.Self?ol():this.parent).get(n,t=r&ue.Optional&&t===qo?null:t)}catch(a){if("NullInjectorError"===a.name){if((a[Qc]=a[Qc]||[]).unshift(vt(n)),s)throw a;return function DN(e,n,t,r){const i=e[Qc];throw n[nv]&&i.unshift(n[nv]),e.message=function SN(e,n,t,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let i=vt(n);if(Array.isArray(n))i=n.map(vt).join(" -> ");else if("object"==typeof n){let s=[];for(let o in n)if(n.hasOwnProperty(o)){let a=n[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):vt(a)))}i=`{${s.join(", ")}}`}return`${t}${r?"("+r+")":""}[${i}]: ${e.replace(vN,"\n ")}`}("\n"+e.message,i,t,r),e.ngTokenPath=i,e[Qc]=null,e}(a,n,"R3InjectorError",this.source)}throw a}finally{rn(o),si(s)}}resolveInjectorInitializers(){const n=q(null),t=si(this),r=rn(void 0);try{const s=this.get(_r,fe,ue.Self);for(const o of s)o()}finally{si(t),rn(r),q(n)}}toString(){const n=[],t=this.records;for(const r of t.keys())n.push(vt(r));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new E(205,!1)}processProvider(n){let t=ki(n=W(n))?n:W(n&&n.provide);const r=function QN(e){return ih(e)?Ms(void 0,e.useValue):Ms(Cv(e),sl)}(n);if(!ki(n)&&!0===n.multi){let i=this.records.get(t);i||(i=Ms(void 0,sl,!0),i.factory=()=>Zf(i.multi),this.records.set(t,i)),t=n,i.multi.push(n)}this.records.set(t,r)}hydrate(n,t){const r=q(null);try{return t.value===sl&&(t.value=YN,t.value=t.factory()),"object"==typeof t.value&&t.value&&function JN(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{q(r)}}injectableDefInScope(n){if(!n.providedIn)return!1;const t=W(n.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(n){const t=this._onDestroyHooks.indexOf(n);-1!==t&&this._onDestroyHooks.splice(t,1)}}function ah(e){const n=Zc(e),t=null!==n?n.factory:xi(e);if(null!==t)return t;if(e instanceof N)throw new E(204,!1);if(e instanceof Function)return function KN(e){if(e.length>0)throw new E(204,!1);const t=function fN(e){return e&&(e[Kc]||e[K_])||null}(e);return null!==t?()=>t.factory(e):()=>new e}(e);throw new E(204,!1)}function Cv(e,n,t){let r;if(ki(e)){const i=W(e);return xi(i)||ah(i)}if(ih(e))r=()=>W(e.useValue);else if(function vv(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Zf(e.deps||[]));else if(function _v(e){return!(!e||!e.useExisting)}(e))r=()=>k(W(e.useExisting));else{const i=W(e&&(e.useClass||e.provide));if(!function XN(e){return!!e.deps}(e))return xi(i)||ah(i);r=()=>new i(...Zf(e.deps))}return r}function Ms(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function ch(e,n){for(const t of e)Array.isArray(t)?ch(t,n):t&&Uf(t)?ch(t.\u0275providers,n):n(t)}function bv(){return void 0!==ev()||null!=function bN(){return Es}()}function Et(e){const n=Ue.ng;if(n&&n.\u0275compilerFacade)return n.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const Ev={\u0275\u0275defineInjectable:R,\u0275\u0275defineInjector:dt,\u0275\u0275inject:k,\u0275\u0275invalidFactoryDep:function rv(e){throw new E(202,!1)},resolveForwardRef:W},ik=Function;function Yo(e){return"function"==typeof e}const sk=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,ok=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,ak=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,ck=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;class uk{constructor(n){this._reflect=n||Ue.Reflect}factory(n){return(...t)=>new n(...t)}_zipTypesAndAnnotations(n,t){let r;r=el(typeof n>"u"?t.length:n.length);for(let i=0;i<r.length;i++)r[i]=typeof n>"u"?[]:n[i]&&n[i]!=Object?[n[i]]:[],t&&null!=t[i]&&(r[i]=r[i].concat(t[i]));return r}_ownParameters(n,t){if(function lk(e){return sk.test(e)||ck.test(e)||ok.test(e)&&!ak.test(e)}(n.toString()))return null;if(n.parameters&&n.parameters!==t.parameters)return n.parameters;const i=n.ctorParameters;if(i&&i!==t.ctorParameters){const a="function"==typeof i?i():i,c=a.map(u=>u&&u.type),l=a.map(u=>u&&uh(u.decorators));return this._zipTypesAndAnnotations(c,l)}const s=n.hasOwnProperty(vs)&&n[vs],o=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",n);return o||s?this._zipTypesAndAnnotations(o,s):el(n.length)}parameters(n){if(!Yo(n))return[];const t=al(n);let r=this._ownParameters(n,t);return!r&&t!==Object&&(r=this.parameters(t)),r||[]}_ownAnnotations(n,t){if(n.annotations&&n.annotations!==t.annotations){let r=n.annotations;return"function"==typeof r&&r.annotations&&(r=r.annotations),r}return n.decorators&&n.decorators!==t.decorators?uh(n.decorators):n.hasOwnProperty(_s)?n[_s]:null}annotations(n){if(!Yo(n))return[];const t=al(n),r=this._ownAnnotations(n,t)||[];return(t!==Object?this.annotations(t):[]).concat(r)}_ownPropMetadata(n,t){if(n.propMetadata&&n.propMetadata!==t.propMetadata){let r=n.propMetadata;return"function"==typeof r&&r.propMetadata&&(r=r.propMetadata),r}if(n.propDecorators&&n.propDecorators!==t.propDecorators){const r=n.propDecorators,i={};return Object.keys(r).forEach(s=>{i[s]=uh(r[s])}),i}return n.hasOwnProperty(Cs)?n[Cs]:null}propMetadata(n){if(!Yo(n))return{};const t=al(n),r={};if(t!==Object){const s=this.propMetadata(t);Object.keys(s).forEach(o=>{r[o]=s[o]})}const i=this._ownPropMetadata(n,t);return i&&Object.keys(i).forEach(s=>{const o=[];r.hasOwnProperty(s)&&o.push(...r[s]),o.push(...i[s]),r[s]=o}),r}ownPropMetadata(n){return Yo(n)&&this._ownPropMetadata(n,al(n))||{}}hasLifecycleHook(n,t){return n instanceof ik&&t in n.prototype}}function uh(e){return e?e.map(n=>new(0,n.type.annotationCls)(...n.args?n.args:[])):[]}function al(e){const n=e.prototype?Object.getPrototypeOf(e.prototype):null;return(n?n.constructor:null)||Object}const ze=0,I=1,H=2,ht=3,Xn=4,Ot=5,Gt=6,As=7,Le=8,pt=9,vr=10,Y=11,Ko=12,wv=13,xs=14,qe=15,Pi=16,Ns=17,Br=18,ks=19,Dv=20,ai=21,cl=22,Ln=23,V=25,dh=1,Cr=7,Ps=9,rt=10;var ul=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(ul||{});function wt(e){return Array.isArray(e)&&"object"==typeof e[dh]}function Ht(e){return Array.isArray(e)&&!0===e[dh]}function fh(e){return!!(4&e.flags)}function Oi(e){return e.componentOffset>-1}function dl(e){return!(1&~e.flags)}function Jn(e){return!!e.template}function Xo(e){return!!(512&e[H])}class Av{constructor(n,t,r){this.previousValue=n,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function xv(e,n,t,r){null!==n?n.applyValueToInputSignal(n,r):e[t]=r}function er(){return Nv}function Nv(e){return e.type.prototype.ngOnChanges&&(e.setInput=pk),hk}function hk(){const e=Pv(this),n=e?.current;if(n){const t=e.previous;if(t===yr)e.previous=n;else for(let r in n)t[r]=n[r];e.current=null,this.ngOnChanges(n)}}function pk(e,n,t,r,i){const s=this.declaredInputs[r],o=Pv(e)||function mk(e,n){return e[kv]=n}(e,{previous:yr,current:null}),a=o.current||(o.current={}),c=o.previous,l=c[s];a[s]=new Av(l&&l.currentValue,t,c===yr),xv(e,n,i,t)}er.ngInherit=!0;const kv="__ngSimpleChanges__";function Pv(e){return e[kv]||null}const br=function(e,n,t){};function he(e){for(;Array.isArray(e);)e=e[ze];return e}function Jo(e,n){return he(n[e])}function zt(e,n){return he(n[e.index])}function ea(e,n){return e.data[n]}function Ri(e,n){return e[n]}function vn(e,n){const t=n[e];return wt(t)?t:t[ze]}function yh(e){return!(128&~e[H])}function Vn(e,n){return null==n?null:e[n]}function Fv(e){e[Ns]=0}function Lv(e){1024&e[H]||(e[H]|=1024,yh(e)&&hl(e))}function fl(e){return!!(9216&e[H]||e[Ln]?.dirty)}function _h(e){e[vr].changeDetectionScheduler?.notify(8),64&e[H]&&(e[H]|=1024),fl(e)&&hl(e)}function hl(e){e[vr].changeDetectionScheduler?.notify(0);let n=jr(e);for(;null!==n&&!(8192&n[H])&&(n[H]|=8192,yh(n));)n=jr(n)}function pl(e,n){if(!(256&~e[H]))throw new E(911,!1);null===e[ai]&&(e[ai]=[]),e[ai].push(n)}function jr(e){const n=e[ht];return Ht(n)?n[ht]:n}const K={lFrame:Kv(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let Bv=!1;function jv(){return K.bindingsEnabled}function Fi(){return null!==K.skipHydrationRootTNode}function b(){return K.lFrame.lView}function ie(){return K.lFrame.tView}function ne(e){return K.lFrame.contextLView=e,e[Le]}function re(e){return K.lFrame.contextLView=null,e}function Me(){let e=Hv();for(;null!==e&&64===e.type;)e=e.parent;return e}function Hv(){return K.lFrame.currentTNode}function tr(e,n){const t=K.lFrame;t.currentTNode=e,t.isParent=n}function bh(){return K.lFrame.isParent}function Eh(){K.lFrame.isParent=!1}function Uv(){return K.lFrame.contextLView}function Gv(){return Bv}function zv(e){Bv=e}function qt(){const e=K.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function nr(){return K.lFrame.bindingIndex++}function Ur(e){const n=K.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function Ak(e,n){const t=K.lFrame;t.bindingIndex=t.bindingRootIndex=e,wh(n)}function wh(e){K.lFrame.currentDirectiveIndex=e}function Dh(e){const n=K.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}function gl(e){K.lFrame.currentQueryIndex=e}function Nk(e){const n=e[I];return 2===n.type?n.declTNode:1===n.type?e[Ot]:null}function Zv(e,n,t){if(t&ue.SkipSelf){let i=n,s=e;for(;!(i=i.parent,null!==i||t&ue.Host||(i=Nk(s),null===i||(s=s[xs],10&i.type))););if(null===i)return!1;n=i,e=s}const r=K.lFrame=Yv();return r.currentTNode=n,r.lView=e,!0}function Th(e){const n=Yv(),t=e[I];K.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function Yv(){const e=K.lFrame,n=null===e?null:e.child;return null===n?Kv(e):n}function Kv(e){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=n),n}function Qv(){const e=K.lFrame;return K.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Xv=Qv;function Mh(){const e=Qv();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Rt(){return K.lFrame.selectedIndex}function Li(e){K.lFrame.selectedIndex=e}function Ve(){const e=K.lFrame;return ea(e.tView,e.selectedIndex)}let eC=!0;function na(){return eC}function Er(e){eC=e}function yl(e,n){for(let t=n.directiveStart,r=n.directiveEnd;t<r;t++){const s=e.data[t].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=s;o&&(e.contentHooks??=[]).push(-t,o),a&&((e.contentHooks??=[]).push(t,a),(e.contentCheckHooks??=[]).push(t,a)),c&&(e.viewHooks??=[]).push(-t,c),l&&((e.viewHooks??=[]).push(t,l),(e.viewCheckHooks??=[]).push(t,l)),null!=u&&(e.destroyHooks??=[]).push(t,u)}}function _l(e,n,t){tC(e,n,3,t)}function vl(e,n,t,r){(3&e[H])===t&&tC(e,n,t,r)}function Ih(e,n){let t=e[H];(3&t)===n&&(t&=16383,t+=1,e[H]=t)}function tC(e,n,t,r){const s=r??-1,o=n.length-1;let a=0;for(let c=void 0!==r?65535&e[Ns]:0;c<o;c++)if("number"==typeof n[c+1]){if(a=n[c],null!=r&&a>=r)break}else n[c]<0&&(e[Ns]+=65536),(a<s||-1==s)&&(Vk(e,t,n,c),e[Ns]=(4294901760&e[Ns])+c+2),c++}function nC(e,n){br(4,e,n);const t=q(null);try{n.call(e)}finally{q(t),br(5,e,n)}}function Vk(e,n,t,r){const i=t[r]<0,s=t[r+1],a=e[i?-t[r]:t[r]];i?e[H]>>14<e[Ns]>>16&&(3&e[H])===n&&(e[H]+=16384,nC(a,s)):nC(a,s)}const Os=-1;class ra{constructor(n,t,r){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}const xh={};class Vi{constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,r){r=Xc(r);const i=this.injector.get(n,xh,r);return i!==xh||t===xh?i:this.parentInjector.get(n,t,r)}}function Nh(e){return e!==Os}function ia(e){return 32767&e}function sa(e,n){let t=function Uk(e){return e>>16}(e),r=n;for(;t>0;)r=r[xs],t--;return r}let kh=!0;function Cl(e){const n=kh;return kh=e,n}const iC=255,sC=5;let Gk=0;const wr={};function bl(e,n){const t=oC(e,n);if(-1!==t)return t;const r=n[I];r.firstCreatePass&&(e.injectorIndex=n.length,Ph(r.data,e),Ph(n,null),Ph(r.blueprint,null));const i=El(e,n),s=e.injectorIndex;if(Nh(i)){const o=ia(i),a=sa(i,n),c=a[I].data;for(let l=0;l<8;l++)n[s+l]=a[o+l]|c[o+l]}return n[s+8]=i,s}function Ph(e,n){e.push(0,0,0,0,0,0,0,0,n)}function oC(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function El(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,r=null,i=n;for(;null!==i;){if(r=hC(i),null===r)return Os;if(t++,i=i[xs],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return Os}function Oh(e,n,t){!function zk(e,n,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(zo)&&(r=t[zo]),null==r&&(r=t[zo]=Gk++);const i=r&iC;n.data[e+(i>>sC)]|=1<<i}(e,n,t)}function aC(e,n,t){if(t&ue.Optional||void 0!==e)return e;zf()}function cC(e,n,t,r){if(t&ue.Optional&&void 0===r&&(r=null),!(t&(ue.Self|ue.Host))){const i=e[pt],s=rn(void 0);try{return i?i.get(n,r,t&ue.Optional):tv(n,r,t&ue.Optional)}finally{rn(s)}}return aC(r,0,t)}function lC(e,n,t,r=ue.Default,i){if(null!==e){if(2048&n[H]&&!(r&ue.Self)){const o=function Kk(e,n,t,r,i){let s=e,o=n;for(;null!==s&&null!==o&&2048&o[H]&&!(512&o[H]);){const a=uC(s,o,t,r|ue.Self,wr);if(a!==wr)return a;let c=s.parent;if(!c){const l=o[Dv];if(l){const u=l.get(t,wr,r);if(u!==wr)return u}c=hC(o),o=o[xs]}s=c}return i}(e,n,t,r,wr);if(o!==wr)return o}const s=uC(e,n,t,r,wr);if(s!==wr)return s}return cC(n,t,r,i)}function uC(e,n,t,r,i){const s=function Zk(e){if("string"==typeof e)return e.charCodeAt(0)||0;const n=e.hasOwnProperty(zo)?e[zo]:void 0;return"number"==typeof n?n>=0?n&iC:Yk:n}(t);if("function"==typeof s){if(!Zv(n,e,r))return r&ue.Host?aC(i,0,r):cC(n,t,r,i);try{let o;if(o=s(r),null!=o||r&ue.Optional)return o;zf()}finally{Xv()}}else if("number"==typeof s){let o=null,a=oC(e,n),c=Os,l=r&ue.Host?n[qe][Ot]:null;for((-1===a||r&ue.SkipSelf)&&(c=-1===a?El(e,n):n[a+8],c!==Os&&fC(r,!1)?(o=n[I],a=ia(c),n=sa(c,n)):a=-1);-1!==a;){const u=n[I];if(dC(s,a,u.data)){const d=Wk(a,n,t,o,r,l);if(d!==wr)return d}c=n[a+8],c!==Os&&fC(r,n[I].data[a+8]===l)&&dC(s,a,n)?(o=u,a=ia(c),n=sa(c,n)):a=-1}}return i}function Wk(e,n,t,r,i,s){const o=n[I],a=o.data[e+8],u=function wl(e,n,t,r,i){const s=e.providerIndexes,o=n.data,a=1048575&s,c=e.directiveStart,u=s>>20,f=i?a+u:e.directiveEnd;for(let h=r?a:a+u;h<f;h++){const p=o[h];if(h<c&&t===p||h>=c&&p.type===t)return h}if(i){const h=o[c];if(h&&Jn(h)&&h.type===t)return c}return null}(a,o,t,null==r?Oi(a)&&kh:r!=o&&!!(3&a.type),i&ue.Host&&s===a);return null!==u?Bi(n,o,u,a):wr}function Bi(e,n,t,r){let i=e[t];const s=n.data;if(function Bk(e){return e instanceof ra}(i)){const o=i;o.resolving&&function gN(e,n){throw n&&n.join(" > "),new E(-200,e)}(function _e(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():X(e)}(s[t]));const a=Cl(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?rn(o.injectImpl):null;Zv(e,r,ue.Default);try{i=e[t]=o.factory(void 0,s,e,r),n.firstCreatePass&&t>=r.directiveStart&&function Lk(e,n,t){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=n.type.prototype;if(r){const o=Nv(n);(t.preOrderHooks??=[]).push(e,o),(t.preOrderCheckHooks??=[]).push(e,o)}i&&(t.preOrderHooks??=[]).push(0-e,i),s&&((t.preOrderHooks??=[]).push(e,s),(t.preOrderCheckHooks??=[]).push(e,s))}(t,s[t],n)}finally{null!==l&&rn(l),Cl(a),o.resolving=!1,Xv()}}return i}function dC(e,n,t){return!!(t[n+(e>>sC)]&1<<e)}function fC(e,n){return!(e&ue.Self||e&ue.Host&&n)}class Dt{constructor(n,t){this._tNode=n,this._lView=t}get(n,t,r){return lC(this._tNode,this._lView,n,Xc(r),t)}}function Yk(){return new Dt(Me(),b())}function Ft(e){return Lr(()=>{const n=e.prototype.constructor,t=n[Vr]||Rh(n),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const s=i[Vr]||Rh(i);if(s&&s!==t)return s;i=Object.getPrototypeOf(i)}return s=>new s})}function Rh(e){return Wc(e)?()=>{const n=Rh(W(e));return n&&n()}:xi(e)}function hC(e){const n=e[I],t=n.type;return 2===t?n.declTNode:1===t?e[Ot]:null}const Qk=bs("Attribute",e=>({attributeName:e,__NG_ELEMENT_ID__:()=>function Dl(e){return function qk(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const t=e.attrs;if(t){const r=t.length;let i=0;for(;i<r;){const s=t[i];if(cv(s))break;if(0===s)i+=2;else if("number"==typeof s)for(i++;i<r&&"string"==typeof t[i];)i++;else{if(s===n)return t[i+1];i+=2}}}return null}(Me(),e)}(e)}));let pC=null;function Sl(e){return mC(function Fh(){return pC=pC||new uk}().parameters(e))}function mC(e){return e.map(n=>function Xk(e){const n={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(e)&&e.length>0)for(let t=0;t<e.length;t++){const r=e[t];if(void 0===r)continue;const i=Object.getPrototypeOf(r);if(r instanceof Yf||"Optional"===i.ngMetadataName)n.optional=!0;else if(r instanceof Kf||"SkipSelf"===i.ngMetadataName)n.skipSelf=!0;else if(r instanceof MN||"Self"===i.ngMetadataName)n.self=!0;else if(r instanceof IN||"Host"===i.ngMetadataName)n.host=!0;else if(r instanceof TN)n.token=r.token;else if(r instanceof Qk){if(void 0===r.attributeName)throw new E(204,!1);n.attribute=r.attributeName}else n.token=r}else n.token=void 0===e||Array.isArray(e)&&0===e.length?null:e;return n}(n))}const eP=Se({provide:String,useValue:Se});function gC(e){return void 0!==e.useClass}function yC(e){return void 0!==e.useFactory}const iP=Z_("Injectable",void 0,void 0,void 0,(e,n)=>function Jk(e,n){let t=null,r=null;e.hasOwnProperty(Kc)||Object.defineProperty(e,Kc,{get:()=>(null===t&&(t=Et().compileInjectable(Ev,`ng:///${e.name}/\u0275prov.js`,function rP(e,n){const t=n||{providedIn:null},r={name:e.name,type:e,typeArgumentCount:0,providedIn:t.providedIn};return(gC(t)||yC(t))&&void 0!==t.deps&&(r.deps=mC(t.deps)),gC(t)?r.useClass=t.useClass:function tP(e){return eP in e}(t)?r.useValue=t.useValue:yC(t)?r.useFactory=t.useFactory:function nP(e){return void 0!==e.useExisting}(t)&&(r.useExisting=t.useExisting),r}(e,n))),t)}),e.hasOwnProperty(Vr)||Object.defineProperty(e,Vr,{get:()=>{if(null===r){const i=Et();r=i.compileFactory(Ev,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,typeArgumentCount:0,deps:Sl(e),target:i.FactoryTarget.Injectable})}return r},configurable:!0})}(e,n));function _C(e,n=null,t=null,r){const i=vC(e,n,t,r);return i.resolveInjectorInitializers(),i}function vC(e,n=null,t=null,r,i=new Set){const s=[t||fe,qN(e)];return r=r||("object"==typeof e?void 0:vt(e)),new Ts(s,n||ol(),r||null,i)}class Ne{static#e=this.THROW_IF_NOT_FOUND=qo;static#t=this.NULL=new tl;static create(n,t){if(Array.isArray(n))return _C({name:""},t,n,"");{const r=n.name??"";return _C({name:r},n.parent,n.providers,r)}}static#n=this.\u0275prov=R({token:Ne,providedIn:"any",factory:()=>k(av)});static#r=this.__NG_ELEMENT_ID__=-1}new N("").__NG_ELEMENT_ID__=e=>{const n=Me();if(null===n)throw new E(204,!1);if(2&n.type)return n.value;if(e&ue.Optional)return null;throw new E(204,!1)};function Lh(e){return e.ngOriginalError}const bC=!0;let oa=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=aP;static#t=this.__NG_ENV_ID__=t=>t}return e})();class oP extends oa{constructor(n){super(),this._lView=n}onDestroy(n){return pl(this._lView,n),()=>function vh(e,n){if(null===e[ai])return;const t=e[ai].indexOf(n);-1!==t&&e[ai].splice(t,1)}(this._lView,n)}}function aP(){return new oP(b())}let ji=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new sx(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const t=this.taskId++;return this.pendingTasks.add(t),t}remove(t){this.pendingTasks.delete(t),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275prov=R({token:e,providedIn:"root",factory:()=>new e})}return e})();const ve=class cP extends Nt{constructor(n=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=n,bv()&&(this.destroyRef=A(oa,{optional:!0})??void 0,this.pendingTasks=A(ji,{optional:!0})??void 0)}emit(n){const t=q(null);try{super.next(n)}finally{q(t)}}subscribe(n,t,r){let i=n,s=t||(()=>null),o=r;if(n&&"object"==typeof n){const c=n;i=c.next?.bind(c),s=c.error?.bind(c),o=c.complete?.bind(c)}this.__isAsync&&(s=this.wrapInTimeout(s),i&&(i=this.wrapInTimeout(i)),o&&(o=this.wrapInTimeout(o)));const a=super.subscribe({next:i,error:s,complete:o});return n instanceof pn&&n.add(a),a}wrapInTimeout(n){return t=>{const r=this.pendingTasks?.add();setTimeout(()=>{n(t),void 0!==r&&this.pendingTasks?.remove(r)})}}};function Tl(...e){}function EC(e){let n,t;function r(){e=Tl;try{void 0!==t&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(t),void 0!==n&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{e(),r()}),"function"==typeof requestAnimationFrame&&(t=requestAnimationFrame(()=>{e(),r()})),()=>r()}function wC(e){return queueMicrotask(()=>e()),()=>{e=Tl}}const Vh="isAngularZone",Ml=Vh+"_ID";let lP=0;class pe{constructor(n){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ve(!1),this.onMicrotaskEmpty=new ve(!1),this.onStable=new ve(!1),this.onError=new ve(!1);const{enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:s=bC}=n;if(typeof Zone>"u")throw new E(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&r,o.shouldCoalesceRunChangeDetection=i,o.callbackScheduled=!1,o.scheduleInRootZone=s,function fP(e){const n=()=>{!function dP(e){function n(){EC(()=>{e.callbackScheduled=!1,jh(e),e.isCheckStableRunning=!0,Bh(e),e.isCheckStableRunning=!1})}e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,e.scheduleInRootZone?Zone.root.run(()=>{n()}):e._outer.run(()=>{n()}),jh(e))}(e)},t=lP++;e._inner=e._inner.fork({name:"angular",properties:{[Vh]:!0,[Ml]:t,[Ml+t]:!0},onInvokeTask:(r,i,s,o,a,c)=>{if(function hP(e){return TC(e,"__ignore_ng_zone__")}(c))return r.invokeTask(s,o,a,c);try{return DC(e),r.invokeTask(s,o,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&n(),SC(e)}},onInvoke:(r,i,s,o,a,c,l)=>{try{return DC(e),r.invoke(s,o,a,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function pP(e){return TC(e,"__scheduler_tick__")}(c)&&n(),SC(e)}},onHasTask:(r,i,s,o)=>{r.hasTask(s,o),i===s&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,jh(e),Bh(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(r,i,s,o)=>(r.handleError(s,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(Vh)}static assertInAngularZone(){if(!pe.isInAngularZone())throw new E(909,!1)}static assertNotInAngularZone(){if(pe.isInAngularZone())throw new E(909,!1)}run(n,t,r){return this._inner.run(n,t,r)}runTask(n,t,r,i){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+i,n,uP,Tl,Tl);try{return s.runTask(o,t,r)}finally{s.cancelTask(o)}}runGuarded(n,t,r){return this._inner.runGuarded(n,t,r)}runOutsideAngular(n){return this._outer.run(n)}}const uP={};function Bh(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 jh(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled)}function DC(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function SC(e){e._nesting--,Bh(e)}class Hh{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ve,this.onMicrotaskEmpty=new ve,this.onStable=new ve,this.onError=new ve}run(n,t,r){return n.apply(t,r)}runGuarded(n,t,r){return n.apply(t,r)}runOutsideAngular(n){return n()}runTask(n,t,r,i){return n.apply(t,r)}}function TC(e,n){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0]?.data?.[n]}class Dr{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n);this._console.error("ERROR",n),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&Lh(n);for(;t&&Lh(t);)t=Lh(t);return t||null}}const gP=new N("",{providedIn:"root",factory:()=>{const e=A(pe),n=A(Dr);return t=>e.runOutsideAngular(()=>n.handleError(t))}});function IC(e,n){return W_(e,n)}const _P=(IC.required=function yP(e){return W_(qc,e)},IC);function vP(){return Ls(Me(),b())}function Ls(e,n){return new on(zt(e,n))}let on=(()=>{class e{constructor(t){this.nativeElement=t}static#e=this.__NG_ELEMENT_ID__=vP}return e})();function ca(e){return!(128&~e.flags)}Symbol;const Gh=new Map;let EP=0;function zh(e){Gh.delete(e[ks])}const Il="__ngContext__";function Ut(e,n){wt(n)?(e[Il]=n[ks],function DP(e){Gh.set(e[ks],e)}(n)):e[Il]=n}function BC(e){return HC(e[Ko])}function jC(e){return HC(e[Xn])}function HC(e){for(;null!==e&&!Ht(e);)e=e[Xn];return e}let Wh;function ci(){if(void 0!==Wh)return Wh;if(typeof document<"u")return document;throw new E(210,!1)}const Bs=new N("",{providedIn:"root",factory:()=>HP}),HP="ng",YC=new N(""),$r=new N("",{providedIn:"platform",factory:()=>"unknown"}),KC=new N(""),QC=new N("",{providedIn:"root",factory:()=>ci().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let XC=()=>null;function ep(e,n,t=!1){return XC(e,n,t)}const ob=new N("",{providedIn:"root",factory:()=>!1});let Ll,Vl;function Us(e){return function sp(){if(void 0===Ll&&(Ll=null,Ue.trustedTypes))try{Ll=Ue.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Ll}()?.createHTML(e)||e}function lb(e){return function op(){if(void 0===Vl&&(Vl=null,Ue.trustedTypes))try{Vl=Ue.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Vl}()?.createHTML(e)||e}class Ui{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${z_})`}}class tO extends Ui{getTypeName(){return"HTML"}}class nO extends Ui{getTypeName(){return"Style"}}class rO extends Ui{getTypeName(){return"Script"}}class iO extends Ui{getTypeName(){return"URL"}}class sO extends Ui{getTypeName(){return"ResourceURL"}}function Cn(e){return e instanceof Ui?e.changingThisBreaksApplicationSecurity:e}function Sr(e,n){const t=function oO(e){return e instanceof Ui&&e.getTypeName()||null}(e);if(null!=t&&t!==n){if("ResourceURL"===t&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${t} (see ${z_})`)}return t===n}class fO{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const t=(new window.DOMParser).parseFromString(Us(n),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(n):(t.firstChild?.remove(),t)}catch{return null}}}class hO{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const t=this.inertDocument.createElement("template");return t.innerHTML=Us(n),t}}const mO=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Bl(e){return(e=String(e)).match(mO)?e:"unsafe:"+e}function Gr(e){const n={};for(const t of e.split(","))n[t]=!0;return n}function ma(...e){const n={};for(const t of e)for(const r in t)t.hasOwnProperty(r)&&(n[r]=!0);return n}const hb=Gr("area,br,col,hr,img,wbr"),pb=Gr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),mb=Gr("rp,rt"),ap=ma(hb,ma(pb,Gr("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")),ma(mb,Gr("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")),ma(mb,pb)),cp=Gr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),gb=ma(cp,Gr("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Gr("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")),gO=Gr("script,style,template");class yO{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let t=n.firstChild,r=!0,i=[];for(;t;)if(t.nodeType===Node.ELEMENT_NODE?r=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,r&&t.firstChild)i.push(t),t=CO(t);else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let s=vO(t);if(s){t=s;break}t=i.pop()}return this.buf.join("")}startElement(n){const t=yb(n).toLowerCase();if(!ap.hasOwnProperty(t))return this.sanitizedSomething=!0,!gO.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const r=n.attributes;for(let i=0;i<r.length;i++){const s=r.item(i),o=s.name,a=o.toLowerCase();if(!gb.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let c=s.value;cp[a]&&(c=Bl(c)),this.buf.push(" ",o,'="',vb(c),'"')}return this.buf.push(">"),!0}endElement(n){const t=yb(n).toLowerCase();ap.hasOwnProperty(t)&&!hb.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(n){this.buf.push(vb(n))}}function vO(e){const n=e.nextSibling;if(n&&e!==n.previousSibling)throw _b(n);return n}function CO(e){const n=e.firstChild;if(n&&function _O(e,n){return(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,n))throw _b(n);return n}function yb(e){const n=e.nodeName;return"string"==typeof n?n:"FORM"}function _b(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const bO=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,EO=/([^\#-~ |!])/g;function vb(e){return e.replace(/&/g,"&").replace(bO,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(EO,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let jl;function Cb(e,n){let t=null;try{jl=jl||function fb(e){const n=new hO(e);return function pO(){try{return!!(new window.DOMParser).parseFromString(Us(""),"text/html")}catch{return!1}}()?new fO(n):n}(e);let r=n?String(n):"";t=jl.getInertBodyElement(r);let i=5,s=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=s,s=t.innerHTML,t=jl.getInertBodyElement(r)}while(r!==s);return Us((new yO).sanitizeChildren(lp(t)||t))}finally{if(t){const r=lp(t)||t;for(;r.firstChild;)r.firstChild.remove()}}}function lp(e){return"content"in e&&function wO(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var bn=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(bn||{});function Tr(e){const n=ya();return n?lb(n.sanitize(bn.HTML,e)||""):Sr(e,"HTML")?lb(Cn(e)):Cb(ci(),X(e))}function ga(e){const n=ya();return n?n.sanitize(bn.URL,e)||"":Sr(e,"URL")?Cn(e):Bl(X(e))}function ya(){const e=b();return e&&e[vr].sanitizer}const xO=/^>|^->|<!--|-->|--!>|<!-$/g,NO=/(<|>)/g,kO="\u200b$1\u200b";function Tb(e){return e.ownerDocument}var li=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(li||{});let fp;function hp(e,n){return fp(e,n)}function Gs(e,n,t,r,i){if(null!=r){let s,o=!1;Ht(r)?s=r:wt(r)&&(o=!0,r=r[ze]);const a=he(r);0===e&&null!==t?null==i?Rb(n,t,a):$i(n,t,a,i||null,!0):1===e&&null!==t?$i(n,t,a,i||null,!0):2===e?function va(e,n,t){e.removeChild(null,n,t)}(n,a,o):3===e&&n.destroyNode(a),null!=s&&function QO(e,n,t,r,i){const s=t[Cr];s!==he(t)&&Gs(n,e,r,s,i);for(let a=rt;a<t.length;a++){const c=t[a];ql(c[I],c,e,n,r,s)}}(n,e,s,t,i)}}function mp(e,n){return e.createComment(function Eb(e){return e.replace(xO,n=>n.replace(NO,kO))}(n))}function $l(e,n,t){return e.createElement(n,t)}function kb(e,n){n[vr].changeDetectionScheduler?.notify(9),ql(e,n,n[Y],2,null,null)}function Pb(e,n){const t=e[Ps],r=n[ht];(wt(r)||n[qe]!==r[ht][qe])&&(e[H]|=ul.HasTransplantedViews),null===t?e[Ps]=[n]:t.push(n)}function gp(e,n){const t=e[Ps],r=t.indexOf(n);t.splice(r,1)}function _a(e,n){if(e.length<=rt)return;const t=rt+n,r=e[t];if(r){const i=r[Pi];null!==i&&i!==e&&gp(i,r),n>0&&(e[t-1][Xn]=r[Xn]);const s=Jc(e,rt+n);!function $O(e,n){kb(e,n),n[ze]=null,n[Ot]=null}(r[I],r);const o=s[Br];null!==o&&o.detachView(s[I]),r[ht]=null,r[Xn]=null,r[H]&=-129}return r}function Gl(e,n){if(!(256&n[H])){const t=n[Y];t.destroyNode&&ql(e,n,t,3,null,null),function zO(e){let n=e[Ko];if(!n)return yp(e[I],e);for(;n;){let t=null;if(wt(n))t=n[Ko];else{const r=n[rt];r&&(t=r)}if(!t){for(;n&&!n[Xn]&&n!==e;)wt(n)&&yp(n[I],n),n=n[ht];null===n&&(n=e),wt(n)&&yp(n[I],n),t=n&&n[Xn]}n=t}}(n)}}function yp(e,n){if(256&n[H])return;const t=q(null);try{n[H]&=-129,n[H]|=256,n[Ln]&&hf(n[Ln]),function ZO(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let r=0;r<t.length;r+=2){const i=n[t[r]];if(!(i instanceof ra)){const s=t[r+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=i[s[o]],c=s[o+1];br(4,a,c);try{c.call(a)}finally{br(5,a,c)}}else{br(4,i,s);try{s.call(i)}finally{br(5,i,s)}}}}}(e,n),function WO(e,n){const t=e.cleanup,r=n[As];if(null!==t)for(let s=0;s<t.length-1;s+=2)if("string"==typeof t[s]){const o=t[s+3];o>=0?r[o]():r[-o].unsubscribe(),s+=2}else t[s].call(r[t[s+1]]);null!==r&&(n[As]=null);const i=n[ai];if(null!==i){n[ai]=null;for(let s=0;s<i.length;s++)(0,i[s])()}}(e,n),1===n[I].type&&n[Y].destroy();const r=n[Pi];if(null!==r&&Ht(n[ht])){r!==n[ht]&&gp(r,n);const i=n[Br];null!==i&&i.detachView(e)}zh(n)}finally{q(t)}}function _p(e,n,t){return function Ob(e,n,t){let r=n;for(;null!==r&&168&r.type;)r=(n=r).parent;if(null===r)return t[ze];{const{componentOffset:i}=r;if(i>-1){const{encapsulation:s}=e.data[r.directiveStart+i];if(s===Kn.None||s===Kn.Emulated)return null}return zt(r,t)}}(e,n.parent,t)}function $i(e,n,t,r,i){e.insertBefore(n,t,r,i)}function Rb(e,n,t){e.appendChild(n,t)}function Fb(e,n,t,r,i){null!==r?$i(e,n,t,r,i):Rb(e,n,t)}function vp(e,n){return e.parentNode(n)}function Lb(e,n,t){return Bb(e,n,t)}let Cp,Bb=function Vb(e,n,t){return 40&e.type?zt(e,t):null};function zl(e,n,t,r){const i=_p(e,r,n),s=n[Y],a=Lb(r.parent||n[Ot],r,n);if(null!=i)if(Array.isArray(t))for(let c=0;c<t.length;c++)Fb(s,i,t[c],a,!1);else Fb(s,i,t,a,!1);void 0!==Cp&&Cp(s,r,n,t,i)}function Gi(e,n){if(null!==n){const t=n.type;if(3&t)return zt(n,e);if(4&t)return bp(-1,e[n.index]);if(8&t){const r=n.child;if(null!==r)return Gi(e,r);{const i=e[n.index];return Ht(i)?bp(-1,i):he(i)}}if(128&t)return Gi(e,n.next);if(32&t)return hp(n,e)()||he(e[n.index]);{const r=Hb(e,n);return null!==r?Array.isArray(r)?r[0]:Gi(jr(e[qe]),r):Gi(e,n.next)}}return null}function Hb(e,n){return null!==n?e[qe][Ot].projection[n.projection]:null}function bp(e,n){const t=rt+e+1;if(t<n.length){const r=n[t],i=r[I].firstChild;if(null!==i)return Gi(r,i)}return n[Cr]}function Ep(e,n,t,r,i,s,o){for(;null!=t;){if(128===t.type){t=t.next;continue}const a=r[t.index],c=t.type;if(o&&0===n&&(a&&Ut(he(a),r),t.flags|=2),32&~t.flags)if(8&c)Ep(e,n,t.child,r,i,s,!1),Gs(n,e,i,a,s);else if(32&c){const l=hp(t,r);let u;for(;u=l();)Gs(n,e,i,u,s);Gs(n,e,i,a,s)}else 16&c?$b(e,n,r,t,i,s):Gs(n,e,i,a,s);t=o?t.projectionNext:t.next}}function ql(e,n,t,r,i,s){Ep(t,r,e.firstChild,n,i,s,!1)}function $b(e,n,t,r,i,s){const o=t[qe],c=o[Ot].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++)Gs(n,e,i,c[l],s);else{let l=c;const u=o[ht];ca(r)&&(l.flags|=128),Ep(e,n,l,u,i,s,!0)}}function Gb(e,n,t){""===t?e.removeAttribute(n,"class"):e.setAttribute(n,"class",t)}function zb(e,n,t){const{mergedAttrs:r,classes:i,styles:s}=t;null!==r&&eh(e,n,r),null!==i&&Gb(e,n,i),null!==s&&function JO(e,n,t){e.setAttribute(n,"style",t)}(e,n,s)}const J={};function C(e=1){qb(ie(),b(),Rt()+e,!1)}function qb(e,n,t,r){if(!r)if(3&~n[H]){const s=e.preOrderHooks;null!==s&&vl(n,s,0,t)}else{const s=e.preOrderCheckHooks;null!==s&&_l(n,s,t)}Li(t)}function v(e,n=ue.Default){const t=b();return null===t?k(e,n):lC(Me(),t,W(e),n)}function Wb(e,n,t,r,i,s){const o=q(null);try{let a=null;i&oi.SignalBased&&(a=n[r][Qe]),null!==a&&void 0!==a.transformFn&&(s=a.transformFn(s)),i&oi.HasDecoratorInputTransform&&(s=e.inputTransforms[r].call(n,s)),null!==e.setInput?e.setInput(n,a,s,t,r):xv(n,a,r,s)}finally{q(o)}}function Wl(e,n,t,r,i,s,o,a,c,l,u){const d=n.blueprint.slice();return d[ze]=i,d[H]=204|r,(null!==l||e&&2048&e[H])&&(d[H]|=2048),Fv(d),d[ht]=d[xs]=e,d[Le]=t,d[vr]=o||e&&e[vr],d[Y]=a||e&&e[Y],d[pt]=c||e&&e[pt]||null,d[Ot]=s,d[ks]=function wP(){return EP++}(),d[Gt]=u,d[Dv]=l,d[qe]=2==n.type?e[qe]:d,d}function zi(e,n,t,r,i){let s=e.data[n];if(null===s)s=function wp(e,n,t,r,i){const s=Hv(),o=bh(),c=e.data[n]=function cR(e,n,t,r,i,s){let o=n?n.injectorIndex:-1,a=0;return Fi()&&(a|=128),{type:t,index:r,insertBeforeIndex:null,injectorIndex:o,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,t,n,r,i);return null===e.firstChild&&(e.firstChild=c),null!==s&&(o?null==s.child&&null!==c.parent&&(s.child=c):null===s.next&&(s.next=c,c.prev=s)),c}(e,n,t,r,i),function Ik(){return K.lFrame.inI18n}()&&(s.flags|=32);else if(64&s.type){s.type=t,s.value=r,s.attrs=i;const o=function ta(){const e=K.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return tr(s,!0),s}function Ca(e,n,t,r){if(0===t)return-1;const i=n.length;for(let s=0;s<t;s++)n.push(r),e.blueprint.push(r),e.data.push(null);return i}function Zb(e,n,t,r,i){const s=Rt(),o=2&r;try{Li(-1),o&&n.length>V&&qb(e,n,V,!1),br(o?2:0,i),t(r,i)}finally{Li(s),br(o?3:1,i)}}function Dp(e,n,t){if(fh(n)){const r=q(null);try{const s=n.directiveEnd;for(let o=n.directiveStart;o<s;o++){const a=e.data[o];a.contentQueries&&a.contentQueries(1,t[o],o)}}finally{q(r)}}}function Sp(e,n,t){jv()&&(function mR(e,n,t,r){const i=t.directiveStart,s=t.directiveEnd;Oi(t)&&function ER(e,n,t){const r=zt(n,e),i=Yb(t);let o=16;t.signals?o=4096:t.onPush&&(o=64);const a=Zl(e,Wl(e,i,null,o,r,n,null,e[vr].rendererFactory.createRenderer(r,t),null,null,null));e[n.index]=a}(n,t,e.data[i+t.componentOffset]),e.firstCreatePass||bl(t,n),Ut(r,n);const o=t.initialInputs;for(let a=i;a<s;a++){const c=e.data[a],l=Bi(n,e,a,t);Ut(l,n),null!==o&&wR(0,a-i,l,c,0,o),Jn(c)&&(vn(t.index,n)[Le]=Bi(n,e,a,t))}}(e,n,t,zt(t,n)),!(64&~t.flags)&&eE(e,n,t))}function Tp(e,n,t=zt){const r=n.localNames;if(null!==r){let i=n.index+1;for(let s=0;s<r.length;s+=2){const o=r[s+1],a=-1===o?t(n,e):e[o];e[i++]=a}}}function Yb(e){const n=e.tView;return null===n||n.incompleteFirstPass?e.tView=Mp(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):n}function Mp(e,n,t,r,i,s,o,a,c,l,u){const d=V+r,f=d+i,h=function nR(e,n){const t=[];for(let r=0;r<n;r++)t.push(r<e?null:J);return t}(d,f),p="function"==typeof l?l():l;return h[I]={type:e,blueprint:h,template:t,queries:null,viewQuery:a,declTNode:n,data:h.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:f,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:c,consts:p,incompleteFirstPass:!1,ssrId:u}}let Kb=()=>null;function Qb(e,n,t,r,i){for(let s in n){if(!n.hasOwnProperty(s))continue;const o=n[s];if(void 0===o)continue;r??={};let a,c=oi.None;Array.isArray(o)?(a=o[0],c=o[1]):a=o;let l=s;if(null!==i){if(!i.hasOwnProperty(s))continue;l=i[s]}0===e?Xb(r,t,l,a,c):Xb(r,t,l,a)}return r}function Xb(e,n,t,r,i){let s;e.hasOwnProperty(t)?(s=e[t]).push(n,r):s=e[t]=[n,r],void 0!==i&&s.push(i)}function cn(e,n,t,r,i,s,o,a){const c=zt(n,t);let u,l=n.inputs;!a&&null!=l&&(u=l[r])?(kp(e,t,u,r,i),Oi(n)&&function dR(e,n){const t=vn(n,e);16&t[H]||(t[H]|=64)}(t,n.index)):3&n.type&&(r=function uR(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),i=null!=o?o(i,n.value||"",r):i,s.setProperty(c,r,i))}function Ip(e,n,t,r){if(jv()){const i=null===r?null:{"":-1},s=function yR(e,n){const t=e.directiveRegistry;let r=null,i=null;if(t)for(let s=0;s<t.length;s++){const o=t[s];if(fv(n,o.selectors,!1))if(r||(r=[]),Jn(o))if(null!==o.findHostDirectiveDefs){const a=[];i=i||new Map,o.findHostDirectiveDefs(o,a,i),r.unshift(...a,o),Ap(e,n,a.length)}else r.unshift(o),Ap(e,n,0);else i=i||new Map,o.findHostDirectiveDefs?.(o,r,i),r.push(o)}return null===r?null:[r,i]}(e,t);let o,a;null===s?o=a=null:[o,a]=s,null!==o&&Jb(e,n,t,o,i,a),i&&function _R(e,n,t){if(n){const r=e.localNames=[];for(let i=0;i<n.length;i+=2){const s=t[n[i+1]];if(null==s)throw new E(-301,!1);r.push(n[i],s)}}}(t,r,i)}t.mergedAttrs=Zo(t.mergedAttrs,t.attrs)}function Jb(e,n,t,r,i,s){for(let l=0;l<r.length;l++)Oh(bl(t,n),e,r[l].type);!function CR(e,n,t){e.flags|=1,e.directiveStart=n,e.directiveEnd=n+t,e.providerIndexes=n}(t,e.data.length,r.length);for(let l=0;l<r.length;l++){const u=r[l];u.providersResolver&&u.providersResolver(u)}let o=!1,a=!1,c=Ca(e,n,r.length,null);for(let l=0;l<r.length;l++){const u=r[l];t.mergedAttrs=Zo(t.mergedAttrs,u.hostAttrs),bR(e,t,n,c,u),vR(c,u,i),null!==u.contentQueries&&(t.flags|=4),(null!==u.hostBindings||null!==u.hostAttrs||0!==u.hostVars)&&(t.flags|=64);const d=u.type.prototype;!o&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((e.preOrderHooks??=[]).push(t.index),o=!0),!a&&(d.ngOnChanges||d.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(t.index),a=!0),c++}!function lR(e,n,t){const i=n.directiveEnd,s=e.data,o=n.attrs,a=[];let c=null,l=null;for(let u=n.directiveStart;u<i;u++){const d=s[u],f=t?t.get(d):null,p=f?f.outputs:null;c=Qb(0,d.inputs,u,c,f?f.inputs:null),l=Qb(1,d.outputs,u,l,p);const m=null===c||null===o||th(n)?null:DR(c,u,o);a.push(m)}null!==c&&(c.hasOwnProperty("class")&&(n.flags|=8),c.hasOwnProperty("style")&&(n.flags|=16)),n.initialInputs=a,n.inputs=c,n.outputs=l}(e,t,s)}function eE(e,n,t){const r=t.directiveStart,i=t.directiveEnd,s=t.index,o=function xk(){return K.lFrame.currentDirectiveIndex}();try{Li(s);for(let a=r;a<i;a++){const c=e.data[a],l=n[a];wh(a),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&gR(c,l)}}finally{Li(-1),wh(o)}}function gR(e,n){null!==e.hostBindings&&e.hostBindings(1,n)}function Ap(e,n,t){n.componentOffset=t,(e.components??=[]).push(n.index)}function vR(e,n,t){if(t){if(n.exportAs)for(let r=0;r<n.exportAs.length;r++)t[n.exportAs[r]]=e;Jn(n)&&(t[""]=e)}}function bR(e,n,t,r,i){e.data[r]=i;const s=i.factory||(i.factory=xi(i.type)),o=new ra(s,Jn(i),v);e.blueprint[r]=o,t[r]=o,function hR(e,n,t,r,i){const s=i.hostBindings;if(s){let o=e.hostBindingOpCodes;null===o&&(o=e.hostBindingOpCodes=[]);const a=~n.index;(function pR(e){let n=e.length;for(;n>0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(o)!=a&&o.push(a),o.push(t,r,s)}}(e,n,r,Ca(e,t,i.hostVars,J),i)}function Mr(e,n,t,r,i,s){const o=zt(e,n);!function xp(e,n,t,r,i,s,o){if(null==s)e.removeAttribute(n,i,t);else{const a=null==o?X(s):o(s,r||"",i);e.setAttribute(n,i,a,t)}}(n[Y],o,s,e.value,t,r,i)}function wR(e,n,t,r,i,s){const o=s[n];if(null!==o)for(let a=0;a<o.length;)Wb(r,t,o[a++],o[a++],o[a++],o[a++])}function DR(e,n,t){let r=null,i=0;for(;i<t.length;){const s=t[i];if(0!==s)if(5!==s){if("number"==typeof s)break;if(e.hasOwnProperty(s)){null===r&&(r=[]);const o=e[s];for(let a=0;a<o.length;a+=3)if(o[a]===n){r.push(s,o[a+1],o[a+2],t[i+1]);break}}i+=2}else i+=2;else i+=4}return r}function tE(e,n,t,r){return[e,!0,0,n,null,r,null,t,null,null]}function nE(e,n){const t=e.contentQueries;if(null!==t){const r=q(null);try{for(let i=0;i<t.length;i+=2){const o=t[i+1];if(-1!==o){const a=e.data[o];gl(t[i]),a.contentQueries(2,n[o],o)}}}finally{q(r)}}}function Zl(e,n){return e[Ko]?e[wv][Xn]=n:e[Ko]=n,e[wv]=n,n}function Np(e,n,t){gl(0);const r=q(null);try{n(e,t)}finally{q(r)}}function sE(e,n,t){return(null===e||Jn(e))&&(t=function gh(e){for(;Array.isArray(e);){if("object"==typeof e[dh])return e;e=e[ze]}return null}(t[n.index])),t[Y]}function Yl(e,n){const t=e[pt],r=t?t.get(Dr,null):null;r&&r.handleError(n)}function kp(e,n,t,r,i){for(let s=0;s<t.length;){const o=t[s++],a=t[s++],c=t[s++];Wb(e.data[o],n[o],r,a,c,i)}}function SR(e,n){const t=vn(n,e),r=t[I];!function TR(e,n){for(let t=n.length;t<e.blueprint.length;t++)n.push(e.blueprint[t])}(r,t);const i=t[ze];null!==i&&null===t[Gt]&&(t[Gt]=ep(i,t[pt])),Pp(r,t,t[Le])}function Pp(e,n,t){Th(n);try{const r=e.viewQuery;null!==r&&Np(1,r,t);const i=e.template;null!==i&&Zb(e,n,i,1,t),e.firstCreatePass&&(e.firstCreatePass=!1),n[Br]?.finishViewCreation(e),e.staticContentQueries&&nE(e,n),e.staticViewQueries&&Np(2,e.viewQuery,t);const s=e.components;null!==s&&function MR(e,n){for(let t=0;t<n.length;t++)SR(e,n[t])}(n,s)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{n[H]&=-5,Mh()}}function zs(e,n,t,r){const i=q(null);try{const s=n.tView,c=Wl(e,s,t,4096&e[H]?4096:16,null,n,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null);c[Pi]=e[n.index];const u=e[Br];return null!==u&&(c[Br]=u.createEmbeddedView(s)),Pp(s,c,t),c}finally{q(i)}}function oE(e,n){const t=rt+n;if(t<e.length)return e[t]}function qi(e,n){return!n||null===n.firstChild||ca(e)}function qs(e,n,t,r=!0){const i=n[I];if(function qO(e,n,t,r){const i=rt+r,s=t.length;r>0&&(t[i-1][Xn]=n),r<s-rt?(n[Xn]=t[i],iv(t,rt+r,n)):(t.push(n),n[Xn]=null),n[ht]=t;const o=n[Pi];null!==o&&t!==o&&Pb(o,n);const a=n[Br];null!==a&&a.insertView(e),_h(n),n[H]|=128}(i,n,e,t),r){const o=bp(t,e),a=n[Y],c=vp(a,e[Cr]);null!==c&&function GO(e,n,t,r,i,s){r[ze]=i,r[Ot]=n,ql(e,r,t,1,i,s)}(i,e[Ot],a,n,c,o)}const s=n[Gt];null!==s&&null!==s.firstChild&&(s.firstChild=null)}function Op(e,n){const t=_a(e,n);return void 0!==t&&Gl(t[I],t),t}function ba(e,n,t,r,i=!1){for(;null!==t;){if(128===t.type){t=i?t.projectionNext:t.next;continue}const s=n[t.index];null!==s&&r.push(he(s)),Ht(s)&&aE(s,r);const o=t.type;if(8&o)ba(e,n,t.child,r);else if(32&o){const a=hp(t,n);let c;for(;c=a();)r.push(c)}else if(16&o){const a=Hb(n,t);if(Array.isArray(a))r.push(...a);else{const c=jr(n[qe]);ba(c[I],c,a,r,!0)}}t=i?t.projectionNext:t.next}return r}function aE(e,n){for(let t=rt;t<e.length;t++){const r=e[t],i=r[I].firstChild;null!==i&&ba(r[I],r,i,n)}e[Cr]!==e[ze]&&n.push(e[Cr])}let cE=[];const NR={...xt,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{hl(e.lView)},consumerOnSignalRead(){this.lView[Ln]=this}},PR={...xt,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let n=jr(e.lView);for(;n&&!lE(n[I]);)n=jr(n);n&&Lv(n)},consumerOnSignalRead(){this.lView[Ln]=this}};function lE(e){return 2!==e.type}const OR=100;function Kl(e,n=!0,t=0){const r=e[vr],i=r.rendererFactory;i.begin?.();try{!function RR(e,n){const t=Gv();try{zv(!0),Rp(e,n);let r=0;for(;fl(e);){if(r===OR)throw new E(103,!1);r++,Rp(e,1)}}finally{zv(t)}}(e,t)}catch(o){throw n&&Yl(e,o),o}finally{i.end?.(),r.inlineEffectRunner?.flush()}}function FR(e,n,t,r){const i=n[H];if(!(256&~i))return;n[vr].inlineEffectRunner?.flush(),Th(n);let a=!0,c=null,l=null;lE(e)?(l=function IR(e){return e[Ln]??function AR(e){const n=cE.pop()??Object.create(NR);return n.lView=e,n}(e)}(n),c=lt(l)):null===function It(){return ye}()?(a=!1,l=function kR(e){const n=e[Ln]??Object.create(PR);return n.lView=e,n}(n),c=lt(l)):n[Ln]&&(hf(n[Ln]),n[Ln]=null);try{Fv(n),function qv(e){return K.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==t&&Zb(e,n,t,2,r);const u=!(3&~i);if(u){const h=e.preOrderCheckHooks;null!==h&&_l(n,h,null)}else{const h=e.preOrderHooks;null!==h&&vl(n,h,0,null),Ih(n,0)}if(function LR(e){for(let n=BC(e);null!==n;n=jC(n)){if(!(n[H]&ul.HasTransplantedViews))continue;const t=n[Ps];for(let r=0;r<t.length;r++)Lv(t[r])}}(n),dE(n,0),null!==e.contentQueries&&nE(e,n),u){const h=e.contentCheckHooks;null!==h&&_l(n,h)}else{const h=e.contentHooks;null!==h&&vl(n,h,1),Ih(n,1)}!function tR(e,n){const t=e.hostBindingOpCodes;if(null!==t)try{for(let r=0;r<t.length;r++){const i=t[r];if(i<0)Li(~i);else{const s=i,o=t[++r],a=t[++r];Ak(o,s),a(2,n[s])}}}finally{Li(-1)}}(e,n);const d=e.components;null!==d&&hE(n,d,0);const f=e.viewQuery;if(null!==f&&Np(2,f,r),u){const h=e.viewCheckHooks;null!==h&&_l(n,h)}else{const h=e.viewHooks;null!==h&&vl(n,h,2),Ih(n,2)}if(!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),n[cl]){for(const h of n[cl])h();n[cl]=null}n[H]&=-73}catch(u){throw hl(n),u}finally{null!==l&&(Rn(l,c),a&&function xR(e){e.lView[Ln]!==e&&(e.lView=null,cE.push(e))}(l)),Mh()}}function dE(e,n){for(let t=BC(e);null!==t;t=jC(t))for(let r=rt;r<t.length;r++)fE(t[r],n)}function VR(e,n,t){fE(vn(n,e),t)}function fE(e,n){yh(e)&&Rp(e,n)}function Rp(e,n){const r=e[I],i=e[H],s=e[Ln];let o=!!(0===n&&16&i);if(o||=!!(64&i&&0===n),o||=!!(1024&i),o||=!(!s?.dirty||!Fr(s)),o||=!1,s&&(s.dirty=!1),e[H]&=-9217,o)FR(r,e,r.template,e[Le]);else if(8192&i){dE(e,1);const a=r.components;null!==a&&hE(e,a,1)}}function hE(e,n,t){for(let r=0;r<n.length;r++)VR(e,n[r],t)}function Ea(e,n){const t=Gv()?64:1088;for(e[vr].changeDetectionScheduler?.notify(n);e;){e[H]|=t;const r=jr(e);if(Xo(e)&&!r)return e;e=r}return null}class wa{get rootNodes(){const n=this._lView,t=n[I];return ba(t,n,t.firstChild,[])}constructor(n,t,r=!0){this._lView=n,this._cdRefInjectingView=t,this.notifyErrorHandler=r,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Le]}set context(n){this._lView[Le]=n}get destroyed(){return!(256&~this._lView[H])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[ht];if(Ht(n)){const t=n[8],r=t?t.indexOf(this):-1;r>-1&&(_a(n,r),Jc(t,r))}this._attachedToViewContainer=!1}Gl(this._lView[I],this._lView)}onDestroy(n){pl(this._lView,n)}markForCheck(){Ea(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[H]&=-129}reattach(){_h(this._lView),this._lView[H]|=128}detectChanges(){this._lView[H]|=1024,Kl(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new E(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const n=Xo(this._lView),t=this._lView[Pi];null!==t&&!n&&gp(t,this._lView),kb(this._lView[I],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new E(902,!1);this._appRef=n;const t=Xo(this._lView),r=this._lView[Pi];null!==r&&!t&&Pb(r,this._lView),_h(this._lView)}}let Ir=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=HR}return e})();const BR=Ir,jR=class extends BR{constructor(n,t,r){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,t){return this.createEmbeddedViewImpl(n,t)}createEmbeddedViewImpl(n,t,r){const i=zs(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:t,dehydratedView:r});return new wa(i)}};function HR(){return Ql(Me(),b())}function Ql(e,n){return 4&e.type?new jR(n,e,Ls(e,n)):null}let OE=()=>null;function Zi(e,n){return OE(e,n)}class Zs{}const Na=new N("",{providedIn:"root",factory:()=>!1}),RE=new N(""),qp=new N("");class PF{}class FE{}class RF{resolveComponentFactory(n){throw function OF(e){const n=Error(`No component factory found for ${vt(e)}.`);return n.ngComponent=e,n}(n)}}class Yi{static#e=this.NULL=new RF}class ru{}let Ar=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function FF(){const e=b(),t=vn(Me().index,e);return(wt(t)?t:e)[Y]}()}return e})(),LF=(()=>{class e{static#e=this.\u0275prov=R({token:e,providedIn:"root",factory:()=>null})}return e})();function su(e,n,t){let r=t?e.styles:null,i=t?e.classes:null,s=0;if(null!==n)for(let o=0;o<n.length;o++){const a=n[o];"number"==typeof a?s=a:1==s?i=Ff(i,a):2==s&&(r=Ff(r,a+": "+n[++o]+";"))}t?e.styles=r:e.stylesWithoutHost=r,t?e.classes=i:e.classesWithoutHost=i}class jE extends Yi{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=ae(n);return new Oa(t,this.ngModule)}}function HE(e,n){const t=[];for(const r in e){if(!e.hasOwnProperty(r))continue;const i=e[r];if(void 0===i)continue;const s=Array.isArray(i),o=s?i[0]:i;t.push(n?{propName:o,templateName:r,isSignal:!!((s?i[1]:oi.None)&oi.SignalBased)}:{propName:o,templateName:r})}return t}class Oa extends FE{get inputs(){const n=this.componentDef,t=n.inputTransforms,r=HE(n.inputs,!0);if(null!==t)for(const i of r)t.hasOwnProperty(i.propName)&&(i.transform=t[i.propName]);return r}get outputs(){return HE(this.componentDef.outputs,!1)}constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=function jN(e){return e.map(BN).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!t}create(n,t,r,i){const s=q(null);try{let o=(i=i||this.ngModule)instanceof Fn?i:i?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const a=o?new Vi(n,o):n,c=a.get(ru,null);if(null===c)throw new E(407,!1);const d={rendererFactory:c,sanitizer:a.get(LF,null),inlineEffectRunner:null,changeDetectionScheduler:a.get(Zs,null)},f=c.createRenderer(null,this.componentDef),h=this.componentDef.selectors[0][0]||"div",p=r?function rR(e,n,t,r){const s=r.get(ob,!1)||t===Kn.ShadowDom,o=e.selectRootElement(n,s);return function iR(e){Kb(e)}(o),o}(f,r,this.componentDef.encapsulation,a):$l(f,h,function jF(e){const n=e.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(h));let m=512;this.componentDef.signals?m|=4096:this.componentDef.onPush||(m|=16);let g=null;null!==p&&(g=ep(p,a,!0));const _=Mp(0,null,null,1,0,null,null,null,null,null,null),y=Wl(null,_,null,m,null,null,d,f,a,null,g);Th(y);let w,D,M=null;try{const F=this.componentDef;let j,L=null;F.findHostDirectiveDefs?(j=[],L=new Map,F.findHostDirectiveDefs(F,j,L),j.push(F)):j=[F];const Ze=function UF(e,n){const t=e[I],r=V;return e[r]=n,zi(t,r,2,"#host",null)}(y,p);M=function $F(e,n,t,r,i,s,o){const a=i[I];!function GF(e,n,t,r){for(const i of e)n.mergedAttrs=Zo(n.mergedAttrs,i.hostAttrs);null!==n.mergedAttrs&&(su(n,n.mergedAttrs,!0),null!==t&&zb(r,t,n))}(r,e,n,o);let c=null;null!==n&&(c=ep(n,i[pt]));const l=s.rendererFactory.createRenderer(n,t);let u=16;t.signals?u=4096:t.onPush&&(u=64);const d=Wl(i,Yb(t),null,u,i[e.index],e,s,l,null,null,c);return a.firstCreatePass&&Ap(a,e,r.length-1),Zl(i,d),i[e.index]=d}(Ze,p,F,j,y,d,f),D=ea(_,V),p&&function qF(e,n,t,r){if(r)eh(e,t,["ng-version","18.2.3"]);else{const{attrs:i,classes:s}=function HN(e){const n=[],t=[];let r=1,i=2;for(;r<e.length;){let s=e[r];if("string"==typeof s)2===i?""!==s&&n.push(s,e[++r]):8===i&&t.push(s);else{if(!Qn(i))break;i=s}r++}return{attrs:n,classes:t}}(n.selectors[0]);i&&eh(e,t,i),s&&s.length>0&&Gb(e,t,s.join(" "))}}(f,F,p,r),void 0!==t&&function WF(e,n,t){const r=e.projection=[];for(let i=0;i<n.length;i++){const s=t[i];r.push(null!=s?Array.from(s):null)}}(D,this.ngContentSelectors,t),w=function zF(e,n,t,r,i,s){const o=Me(),a=i[I],c=zt(o,i);Jb(a,i,o,t,null,r);for(let u=0;u<t.length;u++)Ut(Bi(i,a,o.directiveStart+u,o),i);eE(a,i,o),c&&Ut(c,i);const l=Bi(i,a,o.directiveStart+o.componentOffset,o);if(e[Le]=i[Le]=l,null!==s)for(const u of s)u(l,n);return Dp(a,o,i),l}(M,F,j,L,y,[ZF]),Pp(_,y,null)}catch(F){throw null!==M&&zh(M),zh(y),F}finally{Mh()}return new HF(this.componentType,w,Ls(D,y),y,D)}finally{q(s)}}}class HF extends PF{constructor(n,t,r,i,s){super(),this.location=r,this._rootLView=i,this._tNode=s,this.previousInputValues=null,this.instance=t,this.hostView=this.changeDetectorRef=new wa(i,void 0,!1),this.componentType=n}setInput(n,t){const r=this._tNode.inputs;let i;if(null!==r&&(i=r[n])){if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),t))return;const s=this._rootLView;kp(s[I],s,i,n,t),this.previousInputValues.set(n,t),Ea(vn(this._tNode.index,s),1)}}get injector(){return new Dt(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}function ZF(){const e=Me();yl(b()[I],e)}let rr=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=YF}return e})();function YF(){return function GE(e,n){let t;const r=n[e.index];return Ht(r)?t=r:(t=tE(r,n,null,e),n[e.index]=t,Zl(n,t)),zE(t,n,e,r),new UE(t,e,n)}(Me(),b())}const KF=rr,UE=class extends KF{constructor(n,t,r){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=r}get element(){return Ls(this._hostTNode,this._hostLView)}get injector(){return new Dt(this._hostTNode,this._hostLView)}get parentInjector(){const n=El(this._hostTNode,this._hostLView);if(Nh(n)){const t=sa(n,this._hostLView),r=ia(n);return new Dt(t[I].data[r+8],t)}return new Dt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=$E(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-rt}createEmbeddedView(n,t,r){let i,s;"number"==typeof r?i=r:null!=r&&(i=r.index,s=r.injector);const o=Zi(this._lContainer,n.ssrId),a=n.createEmbeddedViewImpl(t||{},s,o);return this.insertImpl(a,i,qi(this._hostTNode,o)),a}createComponent(n,t,r,i,s){const o=n&&!Yo(n);let a;if(o)a=t;else{const p=t||{};a=p.index,r=p.injector,i=p.projectableNodes,s=p.environmentInjector||p.ngModuleRef}const c=o?n:new Oa(ae(n)),l=r||this.parentInjector;if(!s&&null==c.ngModule){const m=(o?l:this.parentInjector).get(Fn,null);m&&(s=m)}const u=ae(c.componentType??{}),d=Zi(this._lContainer,u?.id??null),h=c.create(l,i,d?.firstChild??null,s);return this.insertImpl(h.hostView,a,qi(this._hostTNode,d)),h}insert(n,t){return this.insertImpl(n,t,!0)}insertImpl(n,t,r){const i=n._lView;if(function vk(e){return Ht(e[ht])}(i)){const a=this.indexOf(n);if(-1!==a)this.detach(a);else{const c=i[ht],l=new UE(c,c[Ot],c[ht]);l.detach(l.indexOf(n))}}const s=this._adjustIndex(t),o=this._lContainer;return qs(o,i,s,r),n.attachToViewContainerRef(),iv(Yp(o),s,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=$E(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),r=_a(this._lContainer,t);r&&(Jc(Yp(this._lContainer),t),Gl(r[I],r))}detach(n){const t=this._adjustIndex(n,-1),r=_a(this._lContainer,t);return r&&null!=Jc(Yp(this._lContainer),t)?new wa(r):null}_adjustIndex(n,t=0){return n??this.length+t}};function $E(e){return e[8]}function Yp(e){return e[8]||(e[8]=[])}let zE=function WE(e,n,t,r){if(e[Cr])return;let i;i=8&t.type?he(r):function QF(e,n){const t=e[Y],r=t.createComment(""),i=zt(n,e);return $i(t,vp(t,i),r,function YO(e,n){return e.nextSibling(n)}(t,i),!1),r}(n,t),e[Cr]=i},Kp=()=>!1;const tw=new Set;function Wt(e){tw.has(e)||(tw.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function se(e,n){Wt("NgSignals");const t=function $1(e){const n=Object.create(__);n.value=e;const t=()=>(ni(n),n.value);return t[Qe]=n,t}(e),r=t[Qe];return n?.equal&&(r.equal=n.equal),t.set=i=>gf(r,i),t.update=i=>function G1(e,n){de()||y_(),gf(e,n(e.value))}(r,i),t.asReadonly=rw.bind(t),t}function rw(){const e=this[Qe];if(void 0===e.readonlyFn){const n=()=>this();n[Qe]=e,e.readonlyFn=n}return e.readonlyFn}function iw(e){return function nw(e){return"function"==typeof e&&void 0!==e[Qe]}(e)&&"function"==typeof e.set}function me(e){let n=function mw(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),t=!0;const r=[e];for(;n;){let i;if(Jn(e))i=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new E(903,!1);i=n.\u0275dir}if(i){if(t){r.push(i);const o=e;o.inputs=au(e.inputs),o.inputTransforms=au(e.inputTransforms),o.declaredInputs=au(e.declaredInputs),o.outputs=au(e.outputs);const a=i.hostBindings;a&&CL(e,a);const c=i.viewQuery,l=i.contentQueries;if(c&&_L(e,c),l&&vL(e,l),gL(e,i),aN(e.outputs,i.outputs),Jn(i)&&i.data.animation){const u=e.data;u.animation=(u.animation||[]).concat(i.data.animation)}}const s=i.features;if(s)for(let o=0;o<s.length;o++){const a=s[o];a&&a.ngInherit&&a(e),a===me&&(t=!1)}}n=Object.getPrototypeOf(n)}!function yL(e){let n=0,t=null;for(let r=e.length-1;r>=0;r--){const i=e[r];i.hostVars=n+=i.hostVars,i.hostAttrs=Zo(i.hostAttrs,t=Zo(t,i.hostAttrs))}}(r)}function gL(e,n){for(const t in n.inputs){if(!n.inputs.hasOwnProperty(t)||e.inputs.hasOwnProperty(t))continue;const r=n.inputs[t];if(void 0!==r&&(e.inputs[t]=r,e.declaredInputs[t]=n.declaredInputs[t],null!==n.inputTransforms)){const i=Array.isArray(r)?r[0]:r;if(!n.inputTransforms.hasOwnProperty(i))continue;e.inputTransforms??={},e.inputTransforms[i]=n.inputTransforms[i]}}}function au(e){return e===yr?{}:e===fe?[]:e}function _L(e,n){const t=e.viewQuery;e.viewQuery=t?(r,i)=>{n(r,i),t(r,i)}:n}function vL(e,n){const t=e.contentQueries;e.contentQueries=t?(r,i,s)=>{n(r,i,s),t(r,i,s)}:n}function CL(e,n){const t=e.hostBindings;e.hostBindings=t?(r,i)=>{n(r,i),t(r,i)}:n}class Qi{}class ML{}class sm extends Qi{constructor(n,t,r,i=!0){super(),this.ngModuleType=n,this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new jE(this);const s=function jt(e,n){const t=e[X_]||null;if(!t&&!0===n)throw new Error(`Type ${vt(e)} does not have '\u0275mod' property.`);return t}(n);this._bootstrapComponents=function En(e){return e instanceof Function?e():e}(s.bootstrap),this._r3Injector=vC(n,t,[{provide:Qi,useValue:this},{provide:Yi,useValue:this.componentFactoryResolver},...r],vt(n),new Set(["environment"])),i&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class om extends ML{constructor(n){super(),this.moduleType=n}create(n){return new sm(this.moduleType,n,[])}}class vw extends Qi{constructor(n){super(),this.componentFactoryResolver=new jE(this),this.instance=null;const t=new Ts([...n.providers,{provide:Qi,useValue:this},{provide:Yi,useValue:this.componentFactoryResolver}],n.parent||ol(),n.debugName,new Set(["environment"]));this.injector=t,n.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function xr(e,n,t){return e[n]=t}function it(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function Xi(e,n,t,r){const i=it(e,n,t);return it(e,n+1,r)||i}function La(e,n,t,r,i,s,o,a,c,l){const u=t+V,d=n.firstCreatePass?function OL(e,n,t,r,i,s,o,a,c){const l=n.consts,u=zi(n,e,4,o||null,a||null);Ip(n,t,u,Vn(l,c)),yl(n,u);const d=u.tView=Mp(2,u,r,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,l,null);return null!==n.queries&&(n.queries.template(n,u),d.queries=n.queries.embeddedTView(u)),u}(u,n,e,r,i,s,o,a,c):n.data[u];tr(d,!1);const f=bw(n,e,d,t);na()&&zl(n,e,f,d),Ut(f,e);const h=tE(f,e,f,d);return e[u]=h,Zl(e,h),function qE(e,n,t){return Kp(e,n,t)}(h,d,e),dl(d)&&Sp(n,e,d),null!=c&&Tp(e,d,l),d}function ee(e,n,t,r,i,s,o,a){const c=b(),l=ie();return La(c,l,e,n,t,r,i,Vn(l.consts,s),o,a),ee}let bw=function Ew(e,n,t,r){return Er(!0),n[Y].createComment("")};var Xs=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(Xs||{});let Iw=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static#e=this.\u0275prov=R({token:e,providedIn:"root",factory:()=>new e})}return e})();class ja{constructor(){this.ngZone=A(pe),this.scheduler=A(Zs),this.errorHandler=A(Dr,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static#e=this.PHASES=[Xs.EarlyRead,Xs.Write,Xs.MixedReadWrite,Xs.Read];execute(){this.executing=!0;for(const n of ja.PHASES)for(const t of this.sequences)if(!t.erroredOrDestroyed&&t.hooks[n])try{t.pipelinedValue=this.ngZone.runOutsideAngular(()=>t.hooks[n](t.pipelinedValue))}catch(r){t.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(const n of this.sequences)n.afterRun(),n.once&&this.sequences.delete(n);for(const n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(n){this.executing?this.deferredRegistrations.add(n):(this.sequences.add(n),this.scheduler.notify(6))}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}static#t=this.\u0275prov=R({token:ja,providedIn:"root",factory:()=>new ja})}function Lt(e,n,t,r){const i=b();return it(i,nr(),n)&&(ie(),Mr(Ve(),i,e,n,t,r)),Lt}function mu(e,n){return e<<17|n<<2}function fi(e){return e>>17&32767}function vm(e){return 2|e}function es(e){return(131068&e)>>2}function Cm(e,n){return-131069&e|n<<2}function bm(e){return 1|e}function nD(e,n,t,r){const i=e[t+1],s=null===n;let o=r?fi(i):es(i),a=!1;for(;0!==o&&(!1===a||s);){const l=e[o+1];E2(e[o],n)&&(a=!0,e[o+1]=r?bm(l):vm(l)),o=r?fi(l):es(l)}a&&(e[t+1]=r?vm(i):bm(i))}function E2(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&Ds(e,n)>=0}const St={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function rD(e){return e.substring(St.key,St.keyEnd)}function iD(e,n){const t=St.textEnd;return t===n?-1:(n=St.keyEnd=function T2(e,n,t){for(;n<t&&e.charCodeAt(n)>32;)n++;return n}(e,St.key=n,t),po(e,n,t))}function po(e,n,t){for(;n<t&&e.charCodeAt(n)<=32;)n++;return n}function P(e,n,t){const r=b();return it(r,nr(),n)&&cn(ie(),Ve(),r,e,n,r[Y],t,!1),P}function Em(e,n,t,r,i){const o=i?"class":"style";kp(e,t,n.inputs[o],o,r)}function mo(e,n,t){return ir(e,n,t,!1),mo}function ln(e,n){return ir(e,n,null,!0),ln}function qr(e){!function sr(e,n,t,r){const i=ie(),s=Ur(2);i.firstUpdatePass&&uD(i,null,s,r);const o=b();if(t!==J&&it(o,s,t)){const a=i.data[Rt()];if(pD(a,r)&&!lD(i,s)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;null!==c&&(t=Ff(c,t||"")),Em(i,a,o,t,r)}else!function F2(e,n,t,r,i,s,o,a){i===J&&(i=fe);let c=0,l=0,u=0<i.length?i[0]:null,d=0<s.length?s[0]:null;for(;null!==u||null!==d;){const f=c<i.length?i[c+1]:void 0,h=l<s.length?s[l+1]:void 0;let m,p=null;u===d?(c+=2,l+=2,f!==h&&(p=d,m=h)):null===d||null!==u&&u<d?(c+=2,p=u):(l+=2,p=d,m=h),null!==p&&fD(e,n,t,r,p,m,o,a),u=c<i.length?i[c]:null,d=l<s.length?s[l]:null}}(i,a,o,o[Y],o[s+1],o[s+1]=function O2(e,n,t){if(null==t||""===t)return fe;const r=[],i=Cn(t);if(Array.isArray(i))for(let s=0;s<i.length;s++)e(r,i[s],!0);else if("object"==typeof i)for(const s in i)i.hasOwnProperty(s)&&e(r,s,i[s]);else"string"==typeof i&&n(r,i);return r}(e,n,t),r,s)}}(R2,kr,e,!0)}function kr(e,n){for(let t=function D2(e){return function oD(e){St.key=0,St.keyEnd=0,St.value=0,St.valueEnd=0,St.textEnd=e.length}(e),iD(e,po(e,0,St.textEnd))}(n);t>=0;t=iD(n,t))_n(e,rD(n),!0)}function ir(e,n,t,r){const i=b(),s=ie(),o=Ur(2);s.firstUpdatePass&&uD(s,e,o,r),n!==J&&it(i,o,n)&&fD(s,s.data[Rt()],i,i[Y],e,i[o+1]=function L2(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=vt(Cn(e)))),e}(n,t),r,o)}function lD(e,n){return n>=e.expandoStartIndex}function uD(e,n,t,r){const i=e.data;if(null===i[t+1]){const s=i[Rt()],o=lD(e,t);pD(s,r)&&null===n&&!o&&(n=!1),n=function x2(e,n,t,r){const i=Dh(e);let s=r?n.residualClasses:n.residualStyles;if(null===i)0===(r?n.classBindings:n.styleBindings)&&(t=Ua(t=wm(null,e,n,t,r),n.attrs,r),s=null);else{const o=n.directiveStylingLast;if(-1===o||e[o]!==i)if(t=wm(i,e,n,t,r),null===s){let c=function N2(e,n,t){const r=t?n.classBindings:n.styleBindings;if(0!==es(r))return e[fi(r)]}(e,n,r);void 0!==c&&Array.isArray(c)&&(c=wm(null,e,n,c[1],r),c=Ua(c,n.attrs,r),function k2(e,n,t,r){e[fi(t?n.classBindings:n.styleBindings)]=r}(e,n,r,c))}else s=function P2(e,n,t){let r;const i=n.directiveEnd;for(let s=1+n.directiveStylingLast;s<i;s++)r=Ua(r,e[s].hostAttrs,t);return Ua(r,n.attrs,t)}(e,n,r)}return void 0!==s&&(r?n.residualClasses=s:n.residualStyles=s),t}(i,s,n,r),function C2(e,n,t,r,i,s){let o=s?n.classBindings:n.styleBindings,a=fi(o),c=es(o);e[r]=t;let u,l=!1;if(Array.isArray(t)?(u=t[1],(null===u||Ds(t,u)>0)&&(l=!0)):u=t,i)if(0!==c){const f=fi(e[a+1]);e[r+1]=mu(f,a),0!==f&&(e[f+1]=Cm(e[f+1],r)),e[a+1]=function _2(e,n){return 131071&e|n<<17}(e[a+1],r)}else e[r+1]=mu(a,0),0!==a&&(e[a+1]=Cm(e[a+1],r)),a=r;else e[r+1]=mu(c,0),0===a?a=r:e[c+1]=Cm(e[c+1],r),c=r;l&&(e[r+1]=vm(e[r+1])),nD(e,u,r,!0),nD(e,u,r,!1),function b2(e,n,t,r,i){const s=i?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof n&&Ds(s,n)>=0&&(t[r+1]=bm(t[r+1]))}(n,u,e,r,s),o=mu(a,c),s?n.classBindings=o:n.styleBindings=o}(i,s,n,t,o,r)}}function wm(e,n,t,r,i){let s=null;const o=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a<o&&(s=n[a],r=Ua(r,s.hostAttrs,i),s!==e);)a++;return null!==e&&(t.directiveStylingLast=a),r}function Ua(e,n,t){const r=t?1:2;let i=-1;if(null!==n)for(let s=0;s<n.length;s++){const o=n[s];"number"==typeof o?i=o:i===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),_n(e,o,!!t||n[++s]))}return void 0===e?null:e}function R2(e,n,t){const r=String(n);""!==r&&!r.includes(" ")&&_n(e,r,t)}function fD(e,n,t,r,i,s,o,a){if(!(3&n.type))return;const c=e.data,l=c[a+1],u=function v2(e){return!(1&~e)}(l)?hD(c,n,t,i,es(l),o):void 0;gu(u)||(gu(s)||function y2(e){return!(2&~e)}(l)&&(s=hD(c,null,t,i,a,o)),function XO(e,n,t,r,i){if(n)i?e.addClass(t,r):e.removeClass(t,r);else{let s=-1===r.indexOf("-")?void 0:li.DashCase;null==i?e.removeStyle(t,r,s):("string"==typeof i&&i.endsWith("!important")&&(i=i.slice(0,-10),s|=li.Important),e.setStyle(t,r,i,s))}}(r,o,Jo(Rt(),t),i,s))}function hD(e,n,t,r,i,s){const o=null===n;let a;for(;i>0;){const c=e[i],l=Array.isArray(c),u=l?c[1]:c,d=null===u;let f=t[i+1];f===J&&(f=d?fe:void 0);let h=d?Xf(f,r):u===r?f:void 0;if(l&&!gu(h)&&(h=Xf(c,r)),gu(h)&&(a=h,o))return a;const p=e[i+1];i=o?fi(p):es(p)}if(null!==n){let c=s?n.residualClasses:n.residualStyles;null!=c&&(a=Xf(c,r))}return a}function gu(e){return void 0!==e}function pD(e,n){return!!(e.flags&(n?8:16))}class Z2{destroy(n){}updateValue(n,t){}swap(n,t){const r=Math.min(n,t),i=Math.max(n,t),s=this.detach(i);if(i-r>1){const o=this.detach(r);this.attach(r,s),this.attach(i,o)}else this.attach(r,s)}move(n,t){this.attach(t,this.detach(n))}}function Dm(e,n,t,r,i){return e===t&&Object.is(n,r)?1:Object.is(i(e,n),i(t,r))?-1:0}function Sm(e,n,t,r){return!(void 0===n||!n.has(r)||(e.attach(t,n.get(r)),n.delete(r),0))}function mD(e,n,t,r,i){if(Sm(e,n,r,t(r,i)))e.updateValue(r,i);else{const s=e.create(r,i);e.attach(r,s)}}function gD(e,n,t,r){const i=new Set;for(let s=n;s<=t;s++)i.add(r(s,e.at(s)));return i}class yD{constructor(){this.kvMap=new Map,this._vMap=void 0}has(n){return this.kvMap.has(n)}delete(n){if(!this.has(n))return!1;const t=this.kvMap.get(n);return void 0!==this._vMap&&this._vMap.has(t)?(this.kvMap.set(n,this._vMap.get(t)),this._vMap.delete(t)):this.kvMap.delete(n),!0}get(n){return this.kvMap.get(n)}set(n,t){if(this.kvMap.has(n)){let r=this.kvMap.get(n);void 0===this._vMap&&(this._vMap=new Map);const i=this._vMap;for(;i.has(r);)r=i.get(r);i.set(r,t)}else this.kvMap.set(n,t)}forEach(n){for(let[t,r]of this.kvMap)if(n(r,t),void 0!==this._vMap){const i=this._vMap;for(;i.has(r);)r=i.get(r),n(r,t)}}}function oe(e,n){Wt("NgControlFlow");const t=b(),r=nr(),i=t[r]!==J?t[r]:-1,s=-1!==i?yu(t,V+i):void 0;if(it(t,r,e)){const a=q(null);try{if(void 0!==s&&Op(s,0),-1!==e){const c=V+e,l=yu(t,c),u=Tm(t[I],c),d=Zi(l,u.tView.ssrId);qs(l,zs(t,u,n,{dehydratedView:d}),0,qi(u,d))}}finally{q(a)}}else if(void 0!==s){const a=oE(s,0);void 0!==a&&(a[Le]=n)}}class K2{constructor(n,t,r){this.lContainer=n,this.$implicit=t,this.$index=r}get $count(){return this.lContainer.length-rt}}function or(e){return e}function _D(e,n){return n}class Q2{constructor(n,t,r){this.hasEmptyBlock=n,this.trackByFn=t,this.liveCollection=r}}function un(e,n,t,r,i,s,o,a,c,l,u,d,f){Wt("NgControlFlow");const h=b(),p=ie(),m=void 0!==c,g=b(),_=a?o.bind(g[qe][Le]):o,y=new Q2(m,_);g[V+e]=y,La(h,p,e+1,n,t,r,i,Vn(p.consts,s)),m&&La(h,p,e+2,c,l,u,d,Vn(p.consts,f))}class X2 extends Z2{constructor(n,t,r){super(),this.lContainer=n,this.hostLView=t,this.templateTNode=r,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-rt}at(n){return this.getLView(n)[Le].$implicit}attach(n,t){const r=t[Gt];this.needsIndexUpdate||=n!==this.length,qs(this.lContainer,t,n,qi(this.templateTNode,r))}detach(n){return this.needsIndexUpdate||=n!==this.length-1,function J2(e,n){return _a(e,n)}(this.lContainer,n)}create(n,t){const r=Zi(this.lContainer,this.templateTNode.tView.ssrId),i=zs(this.hostLView,this.templateTNode,new K2(this.lContainer,t,n),{dehydratedView:r});return this.operationsCounter?.recordCreate(),i}destroy(n){Gl(n[I],n),this.operationsCounter?.recordDestroy()}updateValue(n,t){this.getLView(n)[Le].$implicit=t}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n<this.length;n++)this.getLView(n)[Le].$index=n}getLView(n){return function eV(e,n){return oE(e,n)}(this.lContainer,n)}}function dn(e){const n=q(null),t=Rt();try{const r=b(),i=r[I],s=r[t],o=t+1,a=yu(r,o);if(void 0===s.liveCollection){const l=Tm(i,o);s.liveCollection=new X2(a,r,l)}else s.liveCollection.reset();const c=s.liveCollection;if(function Y2(e,n,t){let r,i,s=0,o=e.length-1;if(Array.isArray(n)){let c=n.length-1;for(;s<=o&&s<=c;){const l=e.at(s),u=n[s],d=Dm(s,l,s,u,t);if(0!==d){d<0&&e.updateValue(s,u),s++;continue}const f=e.at(o),h=n[c],p=Dm(o,f,c,h,t);if(0!==p){p<0&&e.updateValue(o,h),o--,c--;continue}const m=t(s,l),g=t(o,f),_=t(s,u);if(Object.is(_,g)){const y=t(c,h);Object.is(y,m)?(e.swap(s,o),e.updateValue(o,h),c--,o--):e.move(o,s),e.updateValue(s,u),s++}else if(r??=new yD,i??=gD(e,s,o,t),Sm(e,r,s,_))e.updateValue(s,u),s++,o++;else if(i.has(_))r.set(m,e.detach(s)),o--;else{const y=e.create(s,n[s]);e.attach(s,y),s++,o++}}for(;s<=c;)mD(e,r,t,s,n[s]),s++}else if(null!=n){const c=n[Symbol.iterator]();let l=c.next();for(;!l.done&&s<=o;){const u=e.at(s),d=l.value,f=Dm(s,u,s,d,t);if(0!==f)f<0&&e.updateValue(s,d),s++,l=c.next();else{r??=new yD,i??=gD(e,s,o,t);const h=t(s,d);if(Sm(e,r,s,h))e.updateValue(s,d),s++,o++,l=c.next();else if(i.has(h)){const p=t(s,u);r.set(p,e.detach(s)),o--}else e.attach(s,e.create(s,d)),s++,o++,l=c.next()}}for(;!l.done;)mD(e,r,t,e.length,l.value),l=c.next()}for(;s<=o;)e.destroy(e.detach(o--));r?.forEach(c=>{e.destroy(c)})}(c,e,s.trackByFn),c.updateIndexes(),s.hasEmptyBlock){const l=nr(),u=0===c.length;if(it(r,l,u)){const d=t+2,f=yu(r,d);if(u){const h=Tm(i,d),p=Zi(f,h.tView.ssrId);qs(f,zs(r,h,void 0,{dehydratedView:p}),0,qi(h,p))}else Op(f,0)}}}finally{q(n)}}function yu(e,n){return e[n]}function Tm(e,n){return ea(e,n)}function S(e,n,t,r){const i=b(),s=ie(),o=V+e,a=i[Y],c=s.firstCreatePass?function tV(e,n,t,r,i,s){const o=n.consts,c=zi(n,e,2,r,Vn(o,i));return Ip(n,t,c,Vn(o,s)),null!==c.attrs&&su(c,c.attrs,!1),null!==c.mergedAttrs&&su(c,c.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,c),c}(o,s,i,n,t,r):s.data[o],l=vD(s,i,c,a,n,e);i[o]=l;const u=dl(c);return tr(c,!0),zb(a,l,c),!function Ks(e){return!(32&~e.flags)}(c)&&na()&&zl(s,i,l,c),0===function Ck(){return K.lFrame.elementDepthCount}()&&Ut(l,i),function bk(){K.lFrame.elementDepthCount++}(),u&&(Sp(s,i,c),Dp(s,c,i)),null!==r&&Tp(i,c),S}function T(){let e=Me();bh()?Eh():(e=e.parent,tr(e,!1));const n=e;(function wk(e){return K.skipHydrationRootTNode===e})(n)&&function Mk(){K.skipHydrationRootTNode=null}(),function Ek(){K.lFrame.elementDepthCount--}();const t=ie();return t.firstCreatePass&&(yl(t,e),fh(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function jk(e){return!!(8&e.flags)}(n)&&Em(t,n,b(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function Hk(e){return!!(16&e.flags)}(n)&&Em(t,n,b(),n.stylesWithoutHost,!1),T}function ge(e,n,t,r){return S(e,n,t,r),T(),ge}let vD=(e,n,t,r,i,s)=>(Er(!0),$l(r,i,function Jv(){return K.lFrame.currentNamespace}()));function go(e,n,t){const r=b(),i=ie(),s=e+V,o=i.firstCreatePass?function iV(e,n,t,r,i){const s=n.consts,o=Vn(s,r),a=zi(n,e,8,"ng-container",o);return null!==o&&su(a,o,!0),Ip(n,t,a,Vn(s,i)),null!==n.queries&&n.queries.elementStart(n,a),a}(s,i,r,n,t):i.data[s];tr(o,!0);const a=CD(i,r,o,e);return r[s]=a,na()&&zl(i,r,a,o),Ut(a,r),dl(o)&&(Sp(i,r,o),Dp(i,o,r)),null!=t&&Tp(r,o),go}function yo(){let e=Me();const n=ie();return bh()?Eh():(e=e.parent,tr(e,!1)),n.firstCreatePass&&(yl(n,e),fh(e)&&n.queries.elementEnd(e)),yo}function hi(e,n,t){return go(e,n,t),yo(),hi}let CD=(e,n,t,r)=>(Er(!0),mp(n[Y],""));function mt(){return b()}function _u(e,n,t){const r=b();if(it(r,nr(),n)){const s=ie(),o=Ve();cn(s,o,r,e,n,sE(Dh(s.data),o,r),t,!0)}return _u}const vu="en-US";let DD=vu,UD=(e,n,t)=>{};function te(e,n,t,r){const i=b(),s=ie(),o=Me();return Am(s,i,i[Y],o,e,n,r),te}function Am(e,n,t,r,i,s,o){const a=dl(r),l=e.firstCreatePass&&function iE(e){return e.cleanup??=[]}(e),u=n[Le],d=function rE(e){return e[As]??=[]}(n);let f=!0;if(3&r.type||o){const m=zt(r,n),g=o?o(m):m,_=d.length,y=o?D=>o(he(D[r.index])):r.index;let w=null;if(!o&&a&&(w=function QV(e,n,t,r){const i=e.cleanup;if(null!=i)for(let s=0;s<i.length-1;s+=2){const o=i[s];if(o===t&&i[s+1]===r){const a=n[As],c=i[s+2];return a.length>c?a[c]:null}"string"==typeof o&&(s+=2)}return null}(e,n,i,r.index)),null!==w)(w.__ngLastListenerFn__||w).__ngNextListenerFn__=s,w.__ngLastListenerFn__=s,f=!1;else{s=qD(r,n,u,s),UD(m,i,s);const D=t.listen(g,i,s);d.push(s,D),l&&l.push(i,y,_,_+1)}}else s=qD(r,n,u,s);const h=r.outputs;let p;if(f&&null!==h&&(p=h[i])){const m=p.length;if(m)for(let g=0;g<m;g+=2){const M=n[p[g]][p[g+1]].subscribe(s),F=d.length;d.push(s,M),l&&l.push(i,r.index,F,-(F+1))}}}function zD(e,n,t,r){const i=q(null);try{return br(6,n,t),!1!==t(r)}catch(s){return Yl(e,s),!1}finally{br(7,n,t),q(i)}}function qD(e,n,t,r){return function i(s){if(s===Function)return r;Ea(e.componentOffset>-1?vn(e.index,n):n,5);let a=zD(n,t,r,s),c=i.__ngNextListenerFn__;for(;c;)a=zD(n,t,c,s)&&a,c=c.__ngNextListenerFn__;return a}}function x(e=1){return function kk(e){return(K.lFrame.contextLView=function Vv(e,n){for(;e>0;)n=n[xs],e--;return n}(e,K.lFrame.contextLView))[Le]}(e)}function XV(e,n){let t=null;const r=function RN(e){const n=e.attrs;if(null!=n){const t=n.indexOf(5);if(!(1&t))return n[t+1]}return null}(e);for(let i=0;i<n.length;i++){const s=n[i];if("*"!==s){if(null===r?fv(e,s,!0):VN(r,s))return i}else t=i}return t}function xm(e,n=0,t,r,i,s){const o=b(),a=ie(),c=r?e+1:null;null!==c&&La(o,a,c,r,i,s,null,t);const l=zi(a,V+e,16,null,t||null);null===l.projection&&(l.projection=n),Eh();const d=!o[Gt]||Fi();null===o[qe][Ot].projection[l.projection]&&null!==c?function JV(e,n,t){const r=V+t,i=n.data[r],s=e[r],o=Zi(s,i.tView.ssrId);qs(s,zs(e,i,void 0,{dehydratedView:o}),0,qi(i,o))}(o,a,c):d&&32&~l.flags&&function KO(e,n,t){$b(n[Y],0,n,t,_p(e,t,n),Lb(t.parent||n[Ot],t,n))}(a,o,l)}function km(e,n,t,r){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=r}function wu(e){return Ri(Uv(),V+e)}function z(e,n=""){const t=b(),r=ie(),i=e+V,s=r.firstCreatePass?zi(r,i,1,n,null):r.data[i],o=h0(r,t,s,n,e);t[i]=o,na()&&zl(r,t,o,s),tr(s,!1)}let h0=(e,n,t,r,i)=>(Er(!0),function pp(e,n){return e.createText(n)}(n[Y],r));function Tt(e){return ke("",e,""),Tt}function ke(e,n,t){const r=b(),i=function so(e,n,t,r){return it(e,nr(),t)?n+X(t)+r:J}(r,e,n,t);return i!==J&&function zr(e,n,t){const r=Jo(n,e);!function Nb(e,n,t){e.setValue(n,t)}(e[Y],r,t)}(r,Rt(),i),ke}function Pm(e,n,t){iw(n)&&(n=n());const r=b();return it(r,nr(),n)&&cn(ie(),Ve(),r,e,n,r[Y],t,!1),Pm}function Om(e,n){const t=b(),r=ie(),i=Me();return Am(r,t,t[Y],i,e,n),Om}const w0={};function Sn(e){const n=ie(),t=b(),r=e+V;return tr(zi(n,r,128,null,null),!1),km(n,t,r,w0),Sn}function hn(e){return Wt("NgLet"),km(ie(),b(),Rt(),e),e}function Ke(e){const t=Ri(Uv(),V+e);if(t===w0)throw new E(314,!1);return t}function Rm(e,n,t,r,i){if(e=W(e),Array.isArray(e))for(let s=0;s<e.length;s++)Rm(e[s],n,t,r,i);else{const s=ie(),o=b(),a=Me();let c=ki(e)?e:W(e.provide);const l=Cv(e),u=1048575&a.providerIndexes,d=a.directiveStart,f=a.providerIndexes>>20;if(ki(e)||!e.multi){const h=new ra(l,i,v),p=Lm(c,n,i?u:u+f,d);-1===p?(Oh(bl(a,o),s,c),Fm(s,e,n.length),n.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),t.push(h),o.push(h)):(t[p]=h,o[p]=h)}else{const h=Lm(c,n,u+f,d),p=Lm(c,n,u,u+f),g=p>=0&&t[p];if(i&&!g||!i&&!(h>=0&&t[h])){Oh(bl(a,o),s,c);const _=function bB(e,n,t,r,i){const s=new ra(e,t,v);return s.multi=[],s.index=n,s.componentProviders=0,D0(s,i,r&&!t),s}(i?CB:vB,t.length,i,r,l);!i&&g&&(t[p].providerFactory=_),Fm(s,e,n.length,0),n.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),t.push(_),o.push(_)}else Fm(s,e,h>-1?h:p,D0(t[i?p:h],l,!i&&r));!i&&r&&g&&t[p].componentProviders++}}}function Fm(e,n,t,r){const i=ki(n),s=function ZN(e){return!!e.useClass}(n);if(i||s){const c=(s?W(n.useClass):n).prototype.ngOnDestroy;if(c){const l=e.destroyHooks||(e.destroyHooks=[]);if(!i&&n.multi){const u=l.indexOf(t);-1===u?l.push(t,[r,c]):l[u+1].push(r,c)}else l.push(t,c)}}}function D0(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function Lm(e,n,t,r){for(let i=t;i<r;i++)if(n[i]===e)return i;return-1}function vB(e,n,t,r){return Vm(this.multi,[])}function CB(e,n,t,r){const i=this.multi;let s;if(this.providerFactory){const o=this.providerFactory.componentProviders,a=Bi(t,t[I],this.providerFactory.index,r);s=a.slice(0,o),Vm(i,s);for(let c=o;c<a.length;c++)s.push(a[c])}else s=[],Vm(i,s);return s}function Vm(e,n){for(let t=0;t<e.length;t++)n.push((0,e[t])());return n}function Pe(e,n=[]){return t=>{t.providersResolver=(r,i)=>function _B(e,n,t){const r=ie();if(r.firstCreatePass){const i=Jn(e);Rm(t,r.data,r.blueprint,i,!0),Rm(n,r.data,r.blueprint,i,!1)}}(r,i?i(e):e,n)}}let EB=(()=>{class e{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){const r=nh(0,t.type),i=r.length>0?function Cw(e,n,t=null){return new vw({providers:e,parent:n,debugName:t,runEnvironmentInitializers:!0}).injector}([r],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,i)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=R({token:e,providedIn:"environment",factory:()=>new e(k(Fn))})}return e})();function Bm(e){Wt("NgStandalone"),e.getStandaloneInjector=n=>n.get(EB).getOrCreateStandaloneInjector(e)}function Za(e,n){const t=e[n];return t===J?void 0:t}function A0(e,n,t,r,i,s){const o=n+t;return it(e,o,i)?xr(e,o+1,s?r.call(s,i):r(i)):Za(e,o+1)}function x0(e,n,t,r,i,s,o){const a=n+t;return Xi(e,a,i,s)?xr(e,a+2,o?r.call(o,i,s):r(i,s)):Za(e,a+2)}function N0(e,n,t,r,i,s,o,a){const c=n+t;return function lu(e,n,t,r,i){const s=Xi(e,n,t,r);return it(e,n+2,i)||s}(e,c,i,s,o)?xr(e,c+3,a?r.call(a,i,s,o):r(i,s,o)):Za(e,c+3)}function k0(e,n,t,r,i,s,o,a,c){const l=n+t;return function Bn(e,n,t,r,i,s){const o=Xi(e,n,t,r);return Xi(e,n+2,i,s)||o}(e,l,i,s,o,a)?xr(e,l+4,c?r.call(c,i,s,o,a):r(i,s,o,a)):Za(e,l+4)}function Ie(e,n){const t=ie();let r;const i=e+V;t.firstCreatePass?(r=function OB(e,n){if(n)for(let t=n.length-1;t>=0;t--){const r=n[t];if(e===r.name)return r}}(n,t.pipeRegistry),t.data[i]=r,r.onDestroy&&(t.destroyHooks??=[]).push(i,r.onDestroy)):r=t.data[i];const s=r.factory||(r.factory=xi(r.type)),a=rn(v);try{const c=Cl(!1),l=s();return Cl(c),km(t,b(),i,l),l}finally{rn(a)}}function Ya(e,n,t){const r=e+V,i=b(),s=Ri(i,r);return Ka(i,r)?A0(i,qt(),n,s.transform,t,s):s.transform(t)}function At(e,n,t,r){const i=e+V,s=b(),o=Ri(s,i);return Ka(s,i)?x0(s,qt(),n,o.transform,t,r,o):o.transform(t,r)}function vo(e,n,t,r,i){const s=e+V,o=b(),a=Ri(o,s);return Ka(o,s)?N0(o,qt(),n,a.transform,t,r,i,a):a.transform(t,r,i)}function Ka(e,n){return e[I].data[n].pure}function Tu(e,n){return Ql(e,n)}const eS=new N(""),Au=new N("");let Wm,zm=(()=>{class e{constructor(t,r,i){this._ngZone=t,this.registry=r,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Wm||(function Aj(e){Wm=e}(i),i.addToWindow(r)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{pe.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb()}});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(t)||(clearTimeout(r.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,r,i){let s=-1;r&&r>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),t()},r)),this._callbacks.push({doneCb:t,timeoutId:s,updateCb:i})}whenStable(t,r,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,r,i),this._runCallbacksIfReady()}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,r,i){return[]}static#e=this.\u0275fac=function(r){return new(r||e)(k(pe),k(qm),k(Au))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),qm=(()=>{class e{constructor(){this._applications=new Map}registerApplication(t,r){this._applications.set(t,r)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,r=!0){return Wm?.findTestabilityInTree(this,t,r)??null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function xu(e){return!!e&&"function"==typeof e.then}function tS(e){return!!e&&"function"==typeof e.subscribe}const Zm=new N("");let nS=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,r)=>{this.resolve=t,this.reject=r}),this.appInits=A(Zm,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const t=[];for(const i of this.appInits){const s=i();if(xu(s))t.push(s);else if(tS(s)){const o=new Promise((a,c)=>{s.subscribe({complete:a,error:c})});t.push(o)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{r()}).catch(i=>{this.reject(i)}),0===t.length&&r(),this.initialized=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Ym=new N("");function iS(e,n){return Array.isArray(n)?n.reduce(iS,e):{...e,...n}}let jn=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=A(gP),this.afterRenderManager=A(Iw),this.zonelessEnabled=A(Na),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new Nt,this.afterTick=new Nt,this.componentTypes=[],this.components=[],this.isStable=A(ji).hasPendingTasks.pipe(kt(t=>!t)),this._injector=A(Fn)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let t;return new Promise(r=>{t=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{t.unsubscribe()})}get injector(){return this._injector}bootstrap(t,r){const i=t instanceof FE;if(!this._injector.get(nS).done)throw!i&&function Ni(e){const n=ae(e)||bt(e)||Pt(e);return null!==n&&n.standalone}(t),new E(405,!1);let o;o=i?t:this._injector.get(Yi).resolveComponentFactory(t),this.componentTypes.push(o.componentType);const a=function xj(e){return e.isBoundToModule}(o)?void 0:this._injector.get(Qi),l=o.create(Ne.NULL,[],r||o.selector,a),u=l.location.nativeElement,d=l.injector.get(eS,null);return d?.registerApplication(u),l.onDestroy(()=>{this.detachView(l.hostView),Nu(this.components,l),d?.unregisterApplication(u)}),this._loadComponent(l),l}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new E(101,!1);const t=q(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,q(t),this.afterTick.next()}}synchronize(){let t=null;this._injector.destroyed||(t=this._injector.get(ru,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;0!==this.dirtyFlags&&r++<10;)this.synchronizeOnce(t)}synchronizeOnce(t){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,7&this.dirtyFlags){const r=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8,this.beforeRender.next(r);for(let{_lView:i,notifyErrorHandler:s}of this._views)Pj(i,s,r,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),7&this.dirtyFlags)return}else t?.begin?.(),t?.end?.();8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some(({_lView:t})=>fl(t))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;Nu(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const r=this._injector.get(Ym,[]);[...this._bootstrapListeners,...r].forEach(i=>i(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>Nu(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new E(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Nu(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function Pj(e,n,t,r){(t||fl(e))&&Kl(e,n,t&&!r?0:1)}let Lj=(()=>{class e{constructor(){this.zone=A(pe),this.changeDetectionScheduler=A(Zs),this.applicationRef=A(jn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Km({ngZoneFactory:e,ignoreChangesOutsideZone:n,scheduleInRootZone:t}){return e??=()=>new pe({...Qm(),scheduleInRootZone:t}),[{provide:pe,useFactory:e},{provide:_r,multi:!0,useFactory:()=>{const r=A(Lj,{optional:!0});return()=>r.initialize()}},{provide:_r,multi:!0,useFactory:()=>{const r=A(Bj);return()=>{r.initialize()}}},!0===n?{provide:RE,useValue:!0}:[],{provide:qp,useValue:t??bC}]}function Qm(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}let Bj=(()=>{class e{constructor(){this.subscription=new pn,this.initialized=!1,this.zone=A(pe),this.pendingTasks=A(ji)}initialize(){if(this.initialized)return;this.initialized=!0;let t=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(t=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{pe.assertNotInAngularZone(),queueMicrotask(()=>{null!==t&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(t),t=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{pe.assertInAngularZone(),t??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ec=(()=>{class e{constructor(){this.appRef=A(jn),this.taskService=A(ji),this.ngZone=A(pe),this.zonelessEnabled=A(Na),this.disableScheduling=A(RE,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new pn,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Ml):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(A(qp,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Hh||!this.zoneIsDefined)}notify(t){if(!this.zonelessEnabled&&5===t)return;switch(t){case 0:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 7:this.appRef.deferredDirtyFlags|=8;break;default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;const r=this.useMicrotaskScheduler?wC:EC;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>r(()=>this.tick())):this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Ml+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);const t=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(t),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,wC(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(t)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const t=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(t)}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const pi=new N("",{providedIn:"root",factory:()=>A(pi,ue.Optional|ue.SkipSelf)||function jj(){return typeof $localize<"u"&&$localize.locale||vu}()}),Jm=new N("");function Pu(e){return!!e.platformInjector}let dS=(()=>{class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,r){const i=r?.scheduleInRootZone,o=r?.ignoreChangesOutsideZone,a=[Km({ngZoneFactory:()=>function mP(e="zone.js",n){return"noop"===e?new Hh:"zone.js"===e?new pe(n):e}(r?.ngZone,{...Qm({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}),scheduleInRootZone:i}),ignoreChangesOutsideZone:o}),{provide:Zs,useExisting:ec}],c=function AL(e,n,t){return new sm(e,n,t,!1)}(t.moduleType,this.injector,a);return function uS(e){const n=Pu(e)?e.r3Injector:e.moduleRef.injector,t=n.get(pe);return t.run(()=>{Pu(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();const r=n.get(Dr,null);let i;if(t.runOutsideAngular(()=>{i=t.onError.subscribe({next:s=>{r.handleError(s)}})}),Pu(e)){const s=()=>n.destroy(),o=e.platformInjector.get(Jm);o.add(s),n.onDestroy(()=>{i.unsubscribe(),o.delete(s)})}else e.moduleRef.onDestroy(()=>{Nu(e.allPlatformModules,e.moduleRef),i.unsubscribe()});return function kj(e,n,t){try{const r=t();return xu(r)?r.catch(i=>{throw n.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw n.runOutsideAngular(()=>e.handleError(r)),r}}(r,t,()=>{const s=n.get(nS);return s.runInitializers(),s.donePromise.then(()=>{if(function hV(e){"string"==typeof e&&(DD=e.toLowerCase().replace(/_/g,"-"))}(n.get(pi,vu)||vu),Pu(e)){const a=n.get(jn);return void 0!==e.rootComponent&&a.bootstrap(e.rootComponent),a}return function qj(e,n){const t=e.injector.get(jn);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>t.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new E(-403,!1);e.instance.ngDoBootstrap(t)}n.push(e)}(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}({moduleRef:c,allPlatformModules:this._modules})}bootstrapModule(t,r=[]){const i=iS({},r);return function Fj(e,n,t){const r=new om(t);return Promise.resolve(r)}(0,0,t).then(s=>this.bootstrapModuleFactory(s,i))}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new E(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const t=this._injector.get(Jm,null);t&&(t.forEach(r=>r()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(r){return new(r||e)(k(Ne))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),mi=null;const fS=new N("");function hS(e,n,t=[]){const r=`Platform: ${n}`,i=new N(r);return(s=[])=>{let o=eg();if(!o||o.injector.get(fS,!1)){const a=[...t,...s,{provide:i,useValue:!0}];e?e(a):function Wj(e){if(mi&&!mi.get(fS,!1))throw new E(400,!1);(function rS(){!function U1(e){g_=e}(()=>{throw new E(600,!1)})})(),mi=e;const n=e.get(dS);(function mS(e){e.get(YC,null)?.forEach(t=>t())})(e)}(function pS(e=[],n){return Ne.create({name:n,providers:[{provide:sh,useValue:"platform"},{provide:Jm,useValue:new Set([()=>mi=null])},...e]})}(a,r))}return function Zj(){const n=eg();if(!n)throw new E(401,!1);return n}()}}function eg(){return mi?.get(dS)??null}let Eo=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=Kj}return e})();function Kj(e){return function Qj(e,n,t){if(Oi(e)&&!t){const r=vn(e.index,n);return new wa(r,r)}return 175&e.type?new wa(n[qe],n):null}(Me(),b(),!(16&~e))}const lH=hS(null,"core",[]);let uH=(()=>{class e{constructor(t){}static#e=this.\u0275fac=function(r){return new(r||e)(k(jn))};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=dt({})}return e})();const HS=new N("");function ce(e,n){Wt("NgSignals");const t=function B1(e){const n=Object.create(j1);n.computation=e;const t=()=>{if(gs(n),ni(n),n.value===Lc)throw n.error;return n.value};return t[Qe]=n,t}(e);return n?.equal&&(t[Qe].equal=n.equal),t}function ar(e){const n=q(null);try{return e()}finally{q(n)}}const UH=new N("",{providedIn:"root",factory:()=>A($H)});let $H=(()=>{class e{static#e=this.\u0275prov=R({token:e,providedIn:"root",factory:()=>new GH})}return e})();class GH{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=A(ji),this.taskId=null}scheduleEffect(n){if(this.enqueue(n),null===this.taskId){const t=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(t),this.taskId=null})}}enqueue(n){const t=n.creationZone;this.queues.has(t)||this.queues.set(t,new Set);const r=this.queues.get(t);r.has(n)||(this.queuedEffectCount++,r.add(n))}flush(){for(;this.queuedEffectCount>0;)for(const[n,t]of this.queues)null===n?this.flushQueue(t):n.run(()=>this.flushQueue(t))}flushQueue(n){for(const t of n)n.delete(t),this.queuedEffectCount--,t.run()}}class zH{constructor(n,t,r,i,s,o){this.scheduler=n,this.effectFn=t,this.creationZone=r,this.injector=s,this.watcher=function q1(e,n,t){const r=Object.create(W1);t&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=n;const i=c=>{r.cleanupFn=c};return r.ref={notify:()=>Fe(r),run:()=>{if(null===r.fn)return;if(function Ye(){return Ge}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!Fr(r))return;r.hasRun=!0;const c=lt(r);try{r.cleanupFn(),r.cleanupFn=yf,r.fn(i)}finally{Rn(r,c)}},cleanup:()=>r.cleanupFn(),destroy:()=>function o(c){(function s(c){return null===c.fn&&null===c.schedule})(c)||(hf(c),c.cleanupFn(),c.fn=null,c.schedule=null,c.cleanupFn=yf)}(r),[Qe]:r},r.ref}(a=>this.runEffect(a),()=>this.schedule(),o),this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}runEffect(n){try{this.effectFn(n)}catch(t){this.injector.get(Dr,null,{optional:!0})?.handleError(t)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}function ug(e,n){Wt("NgSignals"),!n?.injector&&function lh(e){if(!bv())throw new E(-203,!1)}();const t=n?.injector??A(Ne),r=!0!==n?.manualCleanup?t.get(oa):null,i=new zH(t.get(UH),e,typeof Zone>"u"?null:Zone.current,r,t,n?.allowSignalWrites??!1),s=t.get(Eo,null,{optional:!0});return s&&8&s._lView[H]?(s._lView[cl]??=[]).push(i.watcher.notify):i.watcher.notify(),i}let QS=null;function ic(){return QS}class WH{}const Vt=new N("");function oT(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const r=t.indexOf("="),[i,s]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(i.trim()===n)return decodeURIComponent(s)}return null}const Cg=/\s+/,aT=[];let bg=(()=>{class e{constructor(t,r){this._ngEl=t,this._renderer=r,this.initialClasses=aT,this.stateMap=new Map}set klass(t){this.initialClasses=null!=t?t.trim().split(Cg):aT}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(Cg):t}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(const r of t)this._updateState(r,!0);else if(null!=t)for(const r of Object.keys(t))this._updateState(r,!!t[r]);this._applyStateDiff()}_updateState(t,r){const i=this.stateMap.get(t);void 0!==i?(i.enabled!==r&&(i.changed=!0,i.enabled=r),i.touched=!0):this.stateMap.set(t,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const t of this.stateMap){const r=t[0],i=t[1];i.changed?(this._toggleClass(r,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),i.touched=!1}}_toggleClass(t,r){(t=t.trim()).length>0&&t.split(Cg).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static#e=this.\u0275fac=function(r){return new(r||e)(v(on),v(Ar))};static#t=this.\u0275dir=Z({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0})}return e})(),ed=(()=>{class e{constructor(t){this._viewContainerRef=t,this.ngComponentOutlet=null,this._inputsUsed=new Map}_needToReCreateNgModuleInstance(t){return void 0!==t.ngComponentOutletNgModule||void 0!==t.ngComponentOutletNgModuleFactory}_needToReCreateComponentInstance(t){return void 0!==t.ngComponentOutlet||void 0!==t.ngComponentOutletContent||void 0!==t.ngComponentOutletInjector||this._needToReCreateNgModuleInstance(t)}ngOnChanges(t){if(this._needToReCreateComponentInstance(t)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){const r=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(t)&&(this._moduleRef?.destroy(),this._moduleRef=this.ngComponentOutletNgModule?function IL(e,n){return new sm(e,n??null,[])}(this.ngComponentOutletNgModule,cT(r)):this.ngComponentOutletNgModuleFactory?this.ngComponentOutletNgModuleFactory.create(cT(r)):void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:r,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(const t of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(t,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){this._moduleRef?.destroy()}_applyInputStateDiff(t){for(const[r,i]of this._inputsUsed)i?(t.setInput(r,this.ngComponentOutletInputs[r]),this._inputsUsed.set(r,!1)):(t.setInput(r,void 0),this._inputsUsed.delete(r))}static#e=this.\u0275fac=function(r){return new(r||e)(v(rr))};static#t=this.\u0275dir=Z({type:e,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[er]})}return e})();function cT(e){return e.get(Qi).injector}let td=(()=>{class e{constructor(t,r){this._viewContainer=t,this._context=new R3,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){uT("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){uT("ngIfElse",t),this._elseTemplateRef=t,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 ngTemplateContextGuard(t,r){return!0}static#e=this.\u0275fac=function(r){return new(r||e)(v(rr),v(Ir))};static#t=this.\u0275dir=Z({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return e})();class R3{constructor(){this.$implicit=null,this.ngIf=null}}function uT(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${vt(n)}'.`)}let fT=(()=>{class e{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const i=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,r,i)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,r,i),get:(t,r,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,i)}})}static#e=this.\u0275fac=function(r){return new(r||e)(v(rr))};static#t=this.\u0275dir=Z({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[er]})}return e})();let Tg=(()=>{class e{transform(t,r,i){if(null==t)return null;if(!this.supports(t))throw function lr(e,n){return new E(2100,!1)}();return t.slice(r,i)}supports(t){return"string"==typeof t||Array.isArray(t)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275pipe=ft({name:"slice",type:e,pure:!1,standalone:!0})}return e})(),Mg=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=dt({})}return e})();const pT="browser";function mT(e){return"server"===e}class gT{}class VU extends WH{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Ng extends VU{static makeCurrent(){!function qH(e){QS??=e}(new Ng)}onAndCancel(n,t,r){return n.addEventListener(t,r),()=>{n.removeEventListener(t,r)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.remove()}createElement(n,t){return(t=t||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,t){return"window"===t?window:"document"===t?n:"body"===t?n.body:null}getBaseHref(n){const t=function BU(){return cc=cc||document.querySelector("base"),cc?cc.getAttribute("href"):null}();return null==t?null:function jU(e){return new URL(e,document.baseURI).pathname}(t)}resetBaseElement(){cc=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return oT(document.cookie,n)}}let cc=null,UU=(()=>{class e{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();const sd=new N("");let TT=(()=>{class e{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(i=>{i.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,i){return this._findPluginFor(r).addEventListener(t,r,i)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(s=>s.supports(t)),!r)throw new E(5101,!1);return this._eventNameToPlugin.set(t,r),r}static#e=this.\u0275fac=function(r){return new(r||e)(k(sd),k(pe))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();class kg{constructor(n){this._doc=n}}const Pg="ng-app-id";let MT=(()=>{class e{constructor(t,r,i,s={}){this.doc=t,this.appId=r,this.nonce=i,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=mT(s),this.resetHostNodes()}addStyles(t){for(const r of t)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(t){for(const r of t)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const t=this.styleNodesInDOM;t&&(t.forEach(r=>r.remove()),t.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(const r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){const r=this.styleRef;r.get(t)?.elements?.forEach(i=>i.remove()),r.delete(t)}collectServerRenderedStyles(){const t=this.doc.head?.querySelectorAll(`style[${Pg}="${this.appId}"]`);if(t?.length){const r=new Map;return t.forEach(i=>{null!=i.textContent&&r.set(i.textContent,i)}),r}return null}changeUsageCount(t,r){const i=this.styleRef;if(i.has(t)){const s=i.get(t);return s.usage+=r,s.usage}return i.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){const i=this.styleNodesInDOM,s=i?.get(r);if(s?.parentNode===t)return i.delete(r),s.removeAttribute(Pg),s;{const o=this.doc.createElement("style");return this.nonce&&o.setAttribute("nonce",this.nonce),o.textContent=r,this.platformIsServer&&o.setAttribute(Pg,this.appId),t.appendChild(o),o}}addStyleToHost(t,r){const i=this.getStyleElement(t,r),s=this.styleRef,o=s.get(r)?.elements;o?o.push(i):s.set(r,{elements:[i],usage:1})}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}static#e=this.\u0275fac=function(r){return new(r||e)(k(Vt),k(Bs),k(QC,8),k($r))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();const Og={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Rg=/%COMP%/g,qU=new N("",{providedIn:"root",factory:()=>!0});function AT(e,n){return n.map(t=>t.replace(Rg,e))}let Fg=(()=>{class e{constructor(t,r,i,s,o,a,c,l=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=s,this.doc=o,this.platformId=a,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=mT(a),this.defaultRenderer=new Lg(t,o,c,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Kn.ShadowDom&&(r={...r,encapsulation:Kn.Emulated});const i=this.getOrCreateRenderer(t,r);return i instanceof NT?i.applyToHost(t):i instanceof Vg&&i.applyStyles(),i}getOrCreateRenderer(t,r){const i=this.rendererByCompId;let s=i.get(r.id);if(!s){const o=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case Kn.Emulated:s=new NT(c,l,r,this.appId,u,o,a,d);break;case Kn.ShadowDom:return new KU(c,l,t,r,o,a,this.nonce,d);default:s=new Vg(c,l,r,u,o,a,d)}i.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(r){return new(r||e)(k(TT),k(MT),k(Bs),k(qU),k(Vt),k($r),k(pe),k(QC))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();class Lg{constructor(n,t,r,i){this.eventManager=n,this.doc=t,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,t){return t?this.doc.createElementNS(Og[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){(xT(n)?n.content:n).appendChild(t)}insertBefore(n,t,r){n&&(xT(n)?n.content:n).insertBefore(t,r)}removeChild(n,t){t.remove()}selectRootElement(n,t){let r="string"==typeof n?this.doc.querySelector(n):n;if(!r)throw new E(-5104,!1);return t||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,r,i){if(i){t=i+":"+t;const s=Og[i];s?n.setAttributeNS(s,t,r):n.setAttribute(t,r)}else n.setAttribute(t,r)}removeAttribute(n,t,r){if(r){const i=Og[r];i?n.removeAttributeNS(i,t):n.removeAttribute(`${r}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,r,i){i&(li.DashCase|li.Important)?n.style.setProperty(t,r,i&li.Important?"important":""):n.style[t]=r}removeStyle(n,t,r){r&li.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,r){null!=n&&(n[t]=r)}setValue(n,t){n.nodeValue=t}listen(n,t,r){if("string"==typeof n&&!(n=ic().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${t}`);return this.eventManager.addEventListener(n,t,this.decoratePreventDefault(r))}decoratePreventDefault(n){return t=>{if("__ngUnwrap__"===t)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(t)):n(t))&&t.preventDefault()}}}function xT(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class KU extends Lg{constructor(n,t,r,i,s,o,a,c){super(n,s,o,c),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=AT(i.id,i.styles);for(const u of l){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,r){return super.insertBefore(this.nodeOrShadowRoot(n),t,r)}removeChild(n,t){return super.removeChild(null,t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Vg extends Lg{constructor(n,t,r,i,s,o,a,c){super(n,s,o,a),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=i,this.styles=c?AT(c,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class NT extends Vg{constructor(n,t,r,i,s,o,a,c){const l=i+"-"+r.id;super(n,t,r,s,o,a,c,l),this.contentAttr=function WU(e){return"_ngcontent-%COMP%".replace(Rg,e)}(l),this.hostAttr=function ZU(e){return"_nghost-%COMP%".replace(Rg,e)}(l)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,t){const r=super.createElement(n,t);return super.setAttribute(r,this.contentAttr,""),r}}let QU=(()=>{class e extends kg{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,i){return t.addEventListener(r,i,!1),()=>this.removeEventListener(t,r,i)}removeEventListener(t,r,i){return t.removeEventListener(r,i)}static#e=this.\u0275fac=function(r){return new(r||e)(k(Vt))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),XU=(()=>{class e extends kg{constructor(t){super(t),this.delegate=A(HS,{optional:!0})}supports(t){return!!this.delegate&&this.delegate.supports(t)}addEventListener(t,r,i){return this.delegate.addEventListener(t,r,i)}removeEventListener(t,r,i){return this.delegate.removeEventListener(t,r,i)}static#e=this.\u0275fac=function(r){return new(r||e)(k(Vt))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();const kT=["alt","control","meta","shift"],JU={"\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"},e$={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let t$=(()=>{class e extends kg{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,r,i){const s=e.parseEventName(r),o=e.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ic().onAndCancel(t,s.domEventName,o))}static parseEventName(t){const r=t.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const s=e._normalizeKey(r.pop());let o="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),o="code."),kT.forEach(l=>{const u=r.indexOf(l);u>-1&&(r.splice(u,1),o+=l+".")}),o+=s,0!=r.length||0===s.length)return null;const c={};return c.domEventName=i,c.fullKey=o,c}static matchEventFullKeyCode(t,r){let i=JU[t.key]||t.key,s="";return r.indexOf("code.")>-1&&(i=t.code,s="code."),!(null==i||!i)&&(i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),kT.forEach(o=>{o!==i&&(0,e$[o])(t)&&(s+=o+".")}),s+=i,s===r)}static eventCallback(t,r,i){return s=>{e.matchEventFullKeyCode(s,t)&&i.runGuarded(()=>r(s))}}static _normalizeKey(t){return"esc"===t?"escape":t}static#e=this.\u0275fac=function(r){return new(r||e)(k(Vt))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();const s$=hS(lH,"browser",[{provide:$r,useValue:pT},{provide:YC,useValue:function n$(){Ng.makeCurrent()},multi:!0},{provide:Vt,useFactory:function i$(){return function jP(e){Wh=e}(document),document},deps:[]}]),o$=new N(""),RT=[{provide:Au,useClass:class HU{addToWindow(n){Ue.getAngularTestability=(r,i=!0)=>{const s=n.findTestabilityInTree(r,i);if(null==s)throw new E(5103,!1);return s},Ue.getAllAngularTestabilities=()=>n.getAllTestabilities(),Ue.getAllAngularRootElements=()=>n.getAllRootElements(),Ue.frameworkStabilizers||(Ue.frameworkStabilizers=[]),Ue.frameworkStabilizers.push(r=>{const i=Ue.getAllAngularTestabilities();let s=i.length;const o=function(){s--,0==s&&r()};i.forEach(a=>{a.whenStable(o)})})}findTestabilityInTree(n,t,r){return null==t?null:n.getTestability(t)??(r?ic().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},deps:[]},{provide:eS,useClass:zm,deps:[pe,qm,Au]},{provide:zm,useClass:zm,deps:[pe,qm,Au]}],FT=[{provide:sh,useValue:"root"},{provide:Dr,useFactory:function r$(){return new Dr},deps:[]},{provide:sd,useClass:QU,multi:!0,deps:[Vt,pe,$r]},{provide:sd,useClass:t$,multi:!0,deps:[Vt]},{provide:sd,useClass:XU,multi:!0},Fg,MT,TT,{provide:ru,useExisting:Fg},{provide:gT,useClass:UU,deps:[]},[]];let od=(()=>{class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:Bs,useValue:t.appId}]}}static#e=this.\u0275fac=function(r){return new(r||e)(k(o$,12))};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=dt({providers:[...FT,...RT],imports:[Mg,uH]})}return e})(),Bg=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:function(r){let i=null;return i=r?new(r||e):k(u$),i},providedIn:"root"})}return e})(),u$=(()=>{class e extends Bg{constructor(t){super(),this._doc=t}sanitize(t,r){if(null==r)return null;switch(t){case bn.NONE:return r;case bn.HTML:return Sr(r,"HTML")?Cn(r):Cb(this._doc,String(r)).toString();case bn.STYLE:return Sr(r,"Style")?Cn(r):r;case bn.SCRIPT:if(Sr(r,"Script"))return Cn(r);throw new E(5200,!1);case bn.URL:return Sr(r,"URL")?Cn(r):Bl(String(r));case bn.RESOURCE_URL:if(Sr(r,"ResourceURL"))return Cn(r);throw new E(5201,!1);default:throw new E(5202,!1)}}bypassSecurityTrustHtml(t){return function aO(e){return new tO(e)}(t)}bypassSecurityTrustStyle(t){return function cO(e){return new nO(e)}(t)}bypassSecurityTrustScript(t){return function lO(e){return new rO(e)}(t)}bypassSecurityTrustUrl(t){return function uO(e){return new iO(e)}(t)}bypassSecurityTrustResourceUrl(t){return function dO(e){return new sO(e)}(t)}static#e=this.\u0275fac=function(r){return new(r||e)(k(Vt))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const jg={now:()=>(jg.delegate||Date).now(),delegate:void 0};class d$ extends Nt{constructor(n=1/0,t=1/0,r=jg){super(),this._bufferSize=n,this._windowTime=t,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,t)}next(n){const{isStopped:t,_buffer:r,_infiniteTimeWindow:i,_timestampProvider:s,_windowTime:o}=this;t||(r.push(n),!i&&r.push(s.now()+o)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const t=this._innerSubscribe(n),{_infiniteTimeWindow:r,_buffer:i}=this,s=i.slice();for(let o=0;o<s.length&&!n.closed;o+=r?1:2)n.next(s[o]);return this._checkFinalizedStatuses(n),t}_trimBuffer(){const{_bufferSize:n,_timestampProvider:t,_buffer:r,_infiniteTimeWindow:i}=this,s=(i?1:2)*n;if(n<1/0&&s<r.length&&r.splice(0,r.length-s),!i){const o=t.now();let a=0;for(let c=1;c<r.length&&r[c]<=o;c+=2)a=c;a&&r.splice(0,a+1)}}}var cd=function(){return cd=Object.assign||function(n){for(var t,r=1,i=arguments.length;r<i;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(n[s]=t[s]);return n},cd.apply(this,arguments)};function $n(e,n,t,r){return new(t||(t=Promise))(function(s,o){function a(u){try{l(r.next(u))}catch(d){o(d)}}function c(u){try{l(r.throw(u))}catch(d){o(d)}}function l(u){u.done?s(u.value):function i(s){return s instanceof t?s:new t(function(o){o(s)})}(u.value).then(a,c)}l((r=r.apply(e,n||[])).next())})}function ur(e,n){var r,i,s,o,t={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(l){return function(u){return function c(l){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(t=0)),t;)try{if(r=1,i&&(s=2&l[0]?i.return:l[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,l[1])).done)return s;switch(i=0,s&&(l=[2&l[0],s.value]),l[0]){case 0:case 1:s=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,i=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(!(s=(s=t.trys).length>0&&s[s.length-1])&&(6===l[0]||2===l[0])){t=0;continue}if(3===l[0]&&(!s||l[1]>s[0]&&l[1]<s[3])){t.label=l[1];break}if(6===l[0]&&t.label<s[1]){t.label=s[1],s=l;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(l);break}s[2]&&t.ops.pop(),t.trys.pop();continue}l=n.call(e,t)}catch(u){l=[6,u],i=0}finally{r=s=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,u])}}}function Gg(e,n,t){if(t||2===arguments.length)for(var s,r=0,i=n.length;r<i;r++)(s||!(r in n))&&(s||(s=Array.prototype.slice.call(n,0,r)),s[r]=n[r]);return e.concat(s||Array.prototype.slice.call(n))}function gi(e){return this instanceof gi?(this.v=e,this):new gi(e)}function HT(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function $g(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(s){t[s]=e[s]&&function(o){return new Promise(function(a,c){!function i(s,o,a,c){Promise.resolve(c).then(function(l){s({value:l,done:a})},o)}(a,c,(o=e[s](o)).done,o.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const UT=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function $T(e){return Xe(e?.then)}function GT(e){return Xe(e[Tf])}function zT(e){return Symbol.asyncIterator&&Xe(e?.[Symbol.asyncIterator])}function qT(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const WT=function N$(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function ZT(e){return Xe(e?.[WT])}function YT(e){return function jT(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=t.apply(e,n||[]),s=[];return i={},a("next"),a("throw"),a("return",function o(h){return function(p){return Promise.resolve(p).then(h,d)}}),i[Symbol.asyncIterator]=function(){return this},i;function a(h,p){r[h]&&(i[h]=function(m){return new Promise(function(g,_){s.push([h,m,g,_])>1||c(h,m)})},p&&(i[h]=p(i[h])))}function c(h,p){try{!function l(h){h.value instanceof gi?Promise.resolve(h.value.v).then(u,d):f(s[0][2],h)}(r[h](p))}catch(m){f(s[0][3],m)}}function u(h){c("next",h)}function d(h){c("throw",h)}function f(h,p){h(p),s.shift(),s.length&&c(s[0][0],s[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:r,done:i}=yield gi(t.read());if(i)return yield gi(void 0);yield yield gi(r)}}finally{t.releaseLock()}})}function KT(e){return Xe(e?.getReader)}function dr(e){if(e instanceof nt)return e;if(null!=e){if(GT(e))return function k$(e){return new nt(n=>{const t=e[Tf]();if(Xe(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(UT(e))return function P$(e){return new nt(n=>{for(let t=0;t<e.length&&!n.closed;t++)n.next(e[t]);n.complete()})}(e);if($T(e))return function O$(e){return new nt(n=>{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,E_)})}(e);if(zT(e))return QT(e);if(ZT(e))return function R$(e){return new nt(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(KT(e))return function F$(e){return QT(YT(e))}(e)}throw qT(e)}function QT(e){return new nt(n=>{(function L$(e,n){var t,r,i,s;return $n(this,void 0,void 0,function*(){try{for(t=HT(e);!(r=yield t.next()).done;)if(n.next(r.value),n.closed)return}catch(o){i={error:o}}finally{try{r&&!r.done&&(s=t.return)&&(yield s.call(t))}finally{if(i)throw i.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function yi(e,n,t,r=0,i=!1){const s=n.schedule(function(){t(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(s),!i)return s}function ld(e,n,t=1/0){return Xe(n)?ld((r,i)=>kt((s,o)=>n(r,s,i,o))(dr(e(r,i))),t):("number"==typeof n&&(t=n),mn((r,i)=>function V$(e,n,t,r,i,s,o,a){const c=[];let l=0,u=0,d=!1;const f=()=>{d&&!c.length&&!l&&n.complete()},h=m=>l<r?p(m):c.push(m),p=m=>{s&&n.next(m),l++;let g=!1;dr(t(m,u++)).subscribe(nn(n,_=>{i?.(_),s?h(_):n.next(_)},()=>{g=!0},void 0,()=>{if(g)try{for(l--;c.length&&l<r;){const _=c.shift();o?yi(n,o,()=>p(_)):p(_)}f()}catch(_){n.error(_)}}))};return e.subscribe(nn(n,h,()=>{d=!0,f()})),()=>{a?.()}}(r,i,e,t)))}function XT(e=1/0){return ld(Mf,e)}const JT=new nt(e=>e.complete());function eM(e){return e&&Xe(e.schedule)}function zg(e){return e[e.length-1]}function ud(e){return eM(zg(e))?e.pop():void 0}function tM(e,n=0){return mn((t,r)=>{t.subscribe(nn(r,i=>yi(r,e,()=>r.next(i),n),()=>yi(r,e,()=>r.complete(),n),i=>yi(r,e,()=>r.error(i),n)))})}function nM(e,n=0){return mn((t,r)=>{r.add(e.schedule(()=>t.subscribe(r),n))})}function rM(e,n){if(!e)throw new Error("Iterable cannot be null");return new nt(t=>{yi(t,n,()=>{const r=e[Symbol.asyncIterator]();yi(t,n,()=>{r.next().then(i=>{i.done?t.complete():t.next(i.value)})},0,!0)})})}function _i(e,n){return n?function W$(e,n){if(null!=e){if(GT(e))return function U$(e,n){return dr(e).pipe(nM(n),tM(n))}(e,n);if(UT(e))return function G$(e,n){return new nt(t=>{let r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}(e,n);if($T(e))return function $$(e,n){return dr(e).pipe(nM(n),tM(n))}(e,n);if(zT(e))return rM(e,n);if(ZT(e))return function z$(e,n){return new nt(t=>{let r;return yi(t,n,()=>{r=e[WT](),yi(t,n,()=>{let i,s;try{({value:i,done:s}=r.next())}catch(o){return void t.error(o)}s?t.complete():t.next(i)},0,!0)}),()=>Xe(r?.return)&&r.return()})}(e,n);if(KT(e))return function q$(e,n){return rM(YT(e),n)}(e,n)}throw qT(e)}(e,n):dr(e)}function iM(e,n){return mn((t,r)=>{let i=null,s=0,o=!1;const a=()=>o&&!i&&r.complete();t.subscribe(nn(r,c=>{i?.unsubscribe();let l=0;const u=s++;dr(e(c,u)).subscribe(i=nn(r,d=>r.next(n?n(c,d,u,l++):d),()=>{i=null,a()}))},()=>{o=!0,a()}))})}const dd={schedule(e,n){const t=setTimeout(e,n);return()=>clearTimeout(t)},scheduleBeforeRender(e){if(typeof window>"u")return dd.schedule(e,0);if(typeof window.requestAnimationFrame>"u")return dd.schedule(e,16);const n=window.requestAnimationFrame(e);return()=>window.cancelAnimationFrame(n)}};let qg;function r4(e,n,t){let r=t;return function K$(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}(e)&&n.some((i,s)=>!("*"===i||!function X$(e,n){if(!qg){const t=Element.prototype;qg=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE&&qg.call(e,n)}(e,i)||(r=s,0))),r}class s4{constructor(n,t){this.componentFactory=t.get(Yi).resolveComponentFactory(n)}create(n){return new o4(this.componentFactory,n)}}class o4{constructor(n,t){this.componentFactory=n,this.injector=t,this.eventEmitters=new d$(1),this.events=this.eventEmitters.pipe(iM(r=>function Z$(...e){const n=ud(e),t=function H$(e,n){return"number"==typeof zg(e)?e.pop():n}(e,1/0),r=e;return r.length?1===r.length?dr(r[0]):XT(t)(_i(r,n)):JT}(...r))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:r})=>r)),this.ngZone=this.injector.get(pe),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(n){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(n)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=dd.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(n){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(n):this.componentRef.instance[n])}setInputValue(n,t,r){this.runInZone(()=>{r&&(t=r.call(this.componentRef?.instance,t)),null!==this.componentRef?function J$(e,n){return e===n||e!=e&&n!=n}(t,this.getInputValue(n))&&(void 0!==t||!this.unchangedInputs.has(n))||(this.recordInputChange(n,t),this.unchangedInputs.delete(n),this.hasInputChanges=!0,this.componentRef.instance[n]=t,this.scheduleDetectChanges()):this.initialInputValues.set(n,t)})}initializeComponent(n){const t=Ne.create({providers:[],parent:this.injector}),r=function n4(e,n){const t=e.childNodes,r=n.map(()=>[]);let i=-1;n.some((s,o)=>"*"===s&&(i=o,!0));for(let s=0,o=t.length;s<o;++s){const a=t[s],c=r4(a,n,i);-1!==c&&r[c].push(a)}return r}(n,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,r,n),this.viewChangeDetectorRef=this.componentRef.injector.get(Eo),this.implementsOnChanges=function Q$(e){return"function"==typeof e}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(jn).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:n,transform:t})=>{this.initialInputValues.has(n)&&this.setInputValue(n,this.initialInputValues.get(n),t)}),this.initialInputValues.clear()}initializeOutputs(n){const t=this.componentFactory.outputs.map(({propName:r,templateName:i})=>n.instance[r].pipe(kt(o=>({name:i,value:o}))));this.eventEmitters.next(t)}callNgOnChanges(n){if(!this.implementsOnChanges||null===this.inputChanges)return;const t=this.inputChanges;this.inputChanges=null,n.instance.ngOnChanges(t)}markViewForCheck(n){this.hasInputChanges&&(this.hasInputChanges=!1,n.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=dd.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(n,t){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const r=this.inputChanges[n];if(r)return void(r.currentValue=t);const i=this.unchangedInputs.has(n),s=i?void 0:this.getInputValue(n);this.inputChanges[n]=new Av(s,t,i)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(n){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(n):n()}}class a4 extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class Ae{constructor(n,t){this.type=n,this.payload=t}}const Mn={phoneNumber:{length:{min:4,max:30}},card:{code:{lengths:{"american-express":[3,4]}},number:{length:{min:13,max:19}},holder:{length:{min:1,max:128}}},keys:{apmsCollapse:"apms-collapse"}};function sM(e,n,t,r,i,s,o){try{var a=e[s](o),c=a.value}catch(l){return void t(l)}a.done?n(c):Promise.resolve(c).then(r,i)}function is(e){return function(){var n=this,t=arguments;return new Promise(function(r,i){var s=e.apply(n,t);function o(c){sM(s,r,i,o,a,"next",c)}function a(c){sM(s,r,i,o,a,"throw",c)}o(void 0)})}}function fd(e,n){return new Promise(function(t){return setTimeout(t,e,n)})}function hd(e){return!!e&&"function"==typeof e.then}function aM(e,n){try{var t=e();hd(t)?t.then(function(r){return n(!0,r)},function(r){return n(!1,r)}):n(!0,t)}catch(r){n(!1,r)}}function cM(e,n,t){return void 0===t&&(t=16),$n(this,void 0,void 0,function(){var r,i,s,o;return ur(this,function(a){switch(a.label){case 0:r=Array(e.length),i=Date.now(),s=0,a.label=1;case 1:return s<e.length?(r[s]=n(e[s],s),(o=Date.now())>=i+t?(i=o,[4,new Promise(function(e){var n=new MessageChannel;n.port1.onmessage=function(){return e()},n.port2.postMessage(null)})]):[3,3]):[3,4];case 2:a.sent(),a.label=3;case 3:return++s,[3,1];case 4:return[2,r]}})})}function lc(e){return e.then(void 0,function(){}),e}function Wg(e){return parseInt(e)}function fr(e){return parseFloat(e)}function Yr(e,n){return"number"==typeof e&&isNaN(e)?n:e}function Qt(e){return e.reduce(function(n,t){return n+(t?1:0)},0)}function lM(e,n){if(void 0===n&&(n=1),Math.abs(n)>=1)return Math.round(e/n)*n;var t=1/n;return Math.round(e*t)/t}function vi(e,n){var u=0,d=0,f=0,h=0;f+=(h+=(65535&e[1])+(65535&n[1]))>>>16,h&=65535,d+=(f+=(e[1]>>>16)+(n[1]>>>16))>>>16,f&=65535,u+=(d+=(65535&e[0])+(65535&n[0]))>>>16,u+=(e[0]>>>16)+(n[0]>>>16),e[0]=(u&=65535)<<16|(d&=65535),e[1]=f<<16|h}function Gn(e,n){var r=65535&e[0],i=e[1]>>>16,s=65535&e[1],a=65535&n[0],c=n[1]>>>16,l=65535&n[1],u=0,d=0,f=0,h=0;f+=(h+=s*l)>>>16,h&=65535,d+=(f+=i*l)>>>16,f&=65535,d+=(f+=s*c)>>>16,f&=65535,u+=(d+=r*l)>>>16,d&=65535,u+=(d+=i*c)>>>16,d&=65535,u+=(d+=s*a)>>>16,u+=(e[0]>>>16)*l+r*c+i*a+s*(n[0]>>>16),e[0]=(u&=65535)<<16|(d&=65535),e[1]=f<<16|h}function So(e,n){var t=e[0];32==(n%=64)?(e[0]=e[1],e[1]=t):n<32?(e[0]=t<<n|e[1]>>>32-n,e[1]=e[1]<<n|t>>>32-n):(e[0]=e[1]<<(n-=32)|t>>>32-n,e[1]=t<<n|e[1]>>>32-n)}function In(e,n){0!=(n%=64)&&(n<32?(e[0]=e[1]>>>32-n,e[1]=e[1]<<n):(e[0]=e[1]<<n-32,e[1]=0))}function We(e,n){e[0]^=n[0],e[1]^=n[1]}var m4=[4283543511,3981806797],g4=[3301882366,444984403];function uM(e){var n=[0,e[0]>>>1];We(e,n),Gn(e,m4),n[1]=e[0]>>>1,We(e,n),Gn(e,g4),n[1]=e[0]>>>1,We(e,n)}var pd=[2277735313,289559509],md=[1291169091,658871167],dM=[0,5],y4=[0,1390208809],_4=[0,944331445];function hM(){var e=window,n=navigator;return Qt(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in n,"msPointerEnabled"in n])>=4}function uc(){var e=window,n=navigator;return Qt(["webkitPersistentStorage"in n,"webkitTemporaryStorage"in n,0===n.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function hr(){var e=window;return Qt(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,0===navigator.vendor.indexOf("Apple"),"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function Zg(){var e=window,n=e.HTMLElement,t=e.Document;return Qt(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),n&&!("autocapitalize"in n.prototype),t&&"pointerLockElement"in t.prototype])>=4}function dc(){var e=window;return function b4(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}(e.print)&&"[object WebPageNamespace]"===String(e.browser)}function pM(){var e,n,t=window;return Qt(["buildID"in navigator,"MozAppearance"in(null!==(n=null===(e=document.documentElement)||void 0===e?void 0:e.style)&&void 0!==n?n:{}),"onmozfullscreenchange"in t,"mozInnerScreenX"in t,"CSSMozDocumentRule"in t,"CanvasCaptureMediaStream"in t])>=4}function fc(){var e=window,n=navigator,t=e.CSS,r=e.HTMLButtonElement;return Qt([!("getStorageUpdates"in n),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,t.supports("font-size-adjust: ex-height 0.5"),t.supports("text-transform: full-width")])>=4}function x4(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function Yg(){var e=uc(),n=pM(),t=window,r=navigator,i="connection";return e?Qt([!("SharedWorker"in t),r[i]&&"ontypechange"in r[i],!("sinkId"in new Audio)])>=2:!!n&&Qt(["onorientationchange"in t,"orientation"in t,/android/i.test(r.appVersion)])>=2}function mM(e){var n=new Error(e);return n.name=e,n}function gM(e,n,t){var r,i,s;return void 0===t&&(t=50),$n(this,void 0,void 0,function(){var o,a;return ur(this,function(c){switch(c.label){case 0:o=document,c.label=1;case 1:return o.body?[3,3]:[4,fd(t)];case 2:return c.sent(),[3,1];case 3:a=o.createElement("iframe"),c.label=4;case 4:return c.trys.push([4,,10,11]),[4,new Promise(function(l,u){var d=!1,f=function(){d=!0,l()};a.onload=f,a.onerror=function(g){d=!0,u(g)};var p=a.style;p.setProperty("display","block","important"),p.position="absolute",p.top="0",p.left="0",p.visibility="hidden",n&&"srcdoc"in a?a.srcdoc=n:a.src="about:blank",o.body.appendChild(a);var m=function(){var g,_;d||("complete"===(null===(_=null===(g=a.contentWindow)||void 0===g?void 0:g.document)||void 0===_?void 0:_.readyState)?f():setTimeout(m,10))};m()})];case 5:c.sent(),c.label=6;case 6:return null!==(i=null===(r=a.contentWindow)||void 0===r?void 0:r.document)&&void 0!==i&&i.body?[3,8]:[4,fd(t)];case 7:return c.sent(),[3,6];case 8:return[4,e(a,a.contentWindow)];case 9:return[2,c.sent()];case 10:return null===(s=a.parentNode)||void 0===s||s.removeChild(a),[7];case 11:return[2]}})})}function V4(e){for(var n=function h4(e){for(var n,t,r="Unexpected syntax '".concat(e,"'"),i=/^\s*([a-z-]*)(.*)$/i.exec(e),s=i[1]||void 0,o={},a=/([.:#][\w-]+|\[.+?\])/gi,c=function(f,h){o[f]=o[f]||[],o[f].push(h)};;){var l=a.exec(i[2]);if(!l)break;var u=l[0];switch(u[0]){case".":c("class",u.slice(1));break;case"#":c("id",u.slice(1));break;case"[":var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(u);if(!d)throw new Error(r);c(d[1],null!==(t=null!==(n=d[4])&&void 0!==n?n:d[5])&&void 0!==t?t:"");break;default:throw new Error(r)}}return[s,o]}(e),r=n[1],i=document.createElement(n[0]??"div"),s=0,o=Object.keys(r);s<o.length;s++){var a=o[s],c=r[a].join(" ");"style"===a?B4(i.style,c):i.setAttribute(a,c)}return i}function B4(e,n){for(var t=0,r=n.split(";");t<r.length;t++){var s=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(r[t]);s&&e.setProperty(s[1],s[2],s[4]||"")}}var To=["monospace","sans-serif","serif"],yM=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function Kg(e){return e.toDataURL()}var gd,Qg;function Xg(){var e=screen;return[Yr(fr(e.availTop),null),Yr(fr(e.width)-fr(e.availWidth)-Yr(fr(e.availLeft),0),null),Yr(fr(e.height)-fr(e.availHeight)-Yr(fr(e.availTop),0),null),Yr(fr(e.availLeft),null)]}function Jg(e){for(var n=0;n<4;++n)if(e[n])return!1;return!0}function M8(e){var n;return $n(this,void 0,void 0,function(){var t,r,i,s,o,a,c;return ur(this,function(l){switch(l.label){case 0:for(t=document,r=t.createElement("div"),i=new Array(e.length),s={},_M(r),c=0;c<e.length;++c)"DIALOG"===(o=V4(e[c])).tagName&&o.show(),_M(a=t.createElement("div")),a.appendChild(o),r.appendChild(a),i[c]=o;l.label=1;case 1:return t.body?[3,3]:[4,fd(50)];case 2:return l.sent(),[3,1];case 3:t.body.appendChild(r);try{for(c=0;c<e.length;++c)i[c].offsetParent||(s[e[c]]=!0)}finally{null===(n=r.parentNode)||void 0===n||n.removeChild(r)}return[2,s]}})})}function _M(e){e.style.setProperty("visibility","hidden","important"),e.style.setProperty("display","block","important")}function vM(e){return matchMedia("(inverted-colors: ".concat(e,")")).matches}function CM(e){return matchMedia("(forced-colors: ".concat(e,")")).matches}function Mo(e){return matchMedia("(prefers-contrast: ".concat(e,")")).matches}function bM(e){return matchMedia("(prefers-reduced-motion: ".concat(e,")")).matches}function EM(e){return matchMedia("(prefers-reduced-transparency: ".concat(e,")")).matches}function wM(e){return matchMedia("(dynamic-range: ".concat(e,")")).matches}var De=Math,Xt=function(){return 0},ey={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]},Z8=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),Y8=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),K8=["FRAGMENT_SHADER","VERTEX_SHADER"],Q8=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],TM="WEBGL_debug_renderer_info";function MM(e){if(e.webgl)return e.webgl.context;var t,n=document.createElement("canvas");n.addEventListener("webglCreateContextError",function(){return t=void 0});for(var r=0,i=["webgl","experimental-webgl"];r<i.length;r++){var s=i[r];try{t=n.getContext(s)}catch{}if(t)break}return e.webgl={context:t},t}function t5(e,n,t){var r=e.getShaderPrecisionFormat(e[n],e[t]);return r?[r.rangeMin,r.rangeMax,r.precision]:[]}function IM(e){return Object.keys(e.__proto__).filter(n5)}function n5(e){return"string"==typeof e&&!e.match(/[^A-Z0-9_x]/)}function AM(){return pM()}function xM(e){return"function"==typeof e.getParameter}var s5={fonts:function $4(){var e=this;return gM(function(n,t){var r=t.document;return $n(e,void 0,void 0,function(){var i,s,o,a,c,l,d,f,h,p,m;return ur(this,function(g){for((i=r.body).style.fontSize="48px",(s=r.createElement("div")).style.setProperty("visibility","hidden","important"),o={},a={},l=function(_,y){return c("'".concat(_,"',").concat(y))},d=function(){for(var _={},y=function(F){_[F]=To.map(function(j){return l(F,j)})},w=0,D=yM;w<D.length;w++)y(D[w]);return _},f=function(_){return To.some(function(y,w){return _[w].offsetWidth!==o[y]||_[w].offsetHeight!==a[y]})},h=To.map(c=function(_){var y=r.createElement("span"),w=y.style;return w.position="absolute",w.top="0",w.left="0",w.fontFamily=_,y.textContent="mmMwWLliI0O&1",s.appendChild(y),y}),p=d(),i.appendChild(s),m=0;m<To.length;m++)o[To[m]]=h[m].offsetWidth,a[To[m]]=h[m].offsetHeight;return[2,yM.filter(function(_){return f(p[_])})]})})})},domBlockers:function S8(e){var t=(void 0===e?{}:e).debug;return $n(this,void 0,void 0,function(){var r,i,o,a,c;return ur(this,function(l){switch(l.label){case 0:return function T8(){return hr()||Yg()}()?(r=function D8(){var e=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',e("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",e("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",e("LnNwb25zb3JpdA=="),".ylamainos",e("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",e("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",e("LmhlYWRlci1ibG9ja2VkLWFk"),e("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",e("I2FkXzMwMFgyNTA="),e("I2Jhbm5lcmZsb2F0MjI="),e("I2NhbXBhaWduLWJhbm5lcg=="),e("I0FkLUNvbnRlbnQ=")],adGuardChinese:[e("LlppX2FkX2FfSA=="),e("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",e("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),e("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",e("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",e("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",e("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),e("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),e("LmFkZ29vZ2xl"),e("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[e("YW1wLWF1dG8tYWRz"),e("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",e("I2FkX2ludmlld19hcmVh")],adGuardRussian:[e("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),e("LnJlY2xhbWE="),'div[id^="smi2adblock"]',e("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[e("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),e("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",e("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),e("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),e("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",e("I3Jla2xhbWk="),e("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),e("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),e("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[e("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",e("LndpZGdldF9wb19hZHNfd2lkZ2V0"),e("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",e("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[e("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),e("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",e("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",e("I3Jla2xhbW5pLWJveA=="),e("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",e("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[e("I2FkdmVydGVudGll"),e("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",e("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",e("LnNwb25zb3JsaW5rZ3J1ZW4="),e("I3dlcmJ1bmdza3k="),e("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),e("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[e("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",e("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[e("LnJla2xhbW9zX3RhcnBhcw=="),e("LnJla2xhbW9zX251b3JvZG9z"),e("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),e("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),e("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[e("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[e("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),e("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",e("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[e("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),e("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),e("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",e("LmFkX19tYWlu"),e("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[e("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[e("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),e("I2xpdmVyZUFkV3JhcHBlcg=="),e("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),e("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[e("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",e("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),e("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),e("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[e("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),e("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),e("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",e("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),e("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),e("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),e("ZGl2I3NrYXBpZWNfYWQ=")],ro:[e("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),e("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[e("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),e("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),e("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",e("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),e("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",e("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}}(),i=Object.keys(r),[4,M8((c=[]).concat.apply(c,i.map(function(u){return r[u]})))]):[2,void 0];case 1:return o=l.sent(),t&&function I8(e,n){for(var t="DOM blockers debug:\n```",r=0,i=Object.keys(e);r<i.length;r++){var s=i[r];t+="\n".concat(s,":");for(var o=0,a=e[s];o<a.length;o++){var c=a[o];t+="\n ".concat(n[c]?"\u{1f6ab}":"\u27a1\ufe0f"," ").concat(c)}}console.log("".concat(t,"\n```"))}(r,o),(a=i.filter(function(u){var d=r[u];return Qt(d.map(function(h){return o[h]}))>.6*d.length})).sort(),[2,a]}})})},fontPreferences:function j8(){return function H8(e,n){return void 0===n&&(n=4e3),gM(function(t,r){var i=r.document,s=i.body,o=s.style;o.width="".concat(n,"px"),o.webkitTextSizeAdjust=o.textSizeAdjust="none",uc()?s.style.zoom="".concat(1/r.devicePixelRatio):hr()&&(s.style.zoom="reset");var a=i.createElement("div");return a.textContent=Gg([],Array(n/20|0),!0).map(function(){return"word"}).join(" "),s.appendChild(a),e(i,s)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}(function(e,n){for(var t={},r={},i=0,s=Object.keys(ey);i<s.length;i++){var a=ey[o=s[i]],c=a[0],l=void 0===c?{}:c,u=a[1],d=void 0===u?"mmMwWLliI0fiflO&1":u,f=e.createElement("span");f.textContent=d,f.style.whiteSpace="nowrap";for(var h=0,p=Object.keys(l);h<p.length;h++){var m=p[h],g=l[m];void 0!==g&&(f.style[m]=g)}t[o]=f,n.append(e.createElement("br"),f)}for(var _=0,y=Object.keys(ey);_<y.length;_++){var o;r[o=y[_]]=t[o].getBoundingClientRect().width}return r})},audio:function k4(){return function R4(){return hr()&&fc()&&dc()||uc()&&function N4(){var e=navigator,n=window,t=Audio.prototype,r=n.visualViewport;return Qt(["srLatency"in t,"srChannelCount"in t,"devicePosture"in e,r&&"segments"in r,"getTextInformation"in Image.prototype])>=3}()&&function T4(){var e=window,n=e.URLPattern;return Qt(["union"in Set.prototype,"Iterator"in e,n&&"hasRegExpGroups"in n.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}()}()?-4:function P4(){var e=window,n=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!n)return-2;if(function O4(){return hr()&&!Zg()&&!function M4(){var e=window;return Qt(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}()}())return-1;var i=new n(1,5e3,44100),s=i.createOscillator();s.type="triangle",s.frequency.value=1e4;var o=i.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,s.connect(o),o.connect(i.destination),s.start(0);var a=function F4(e){var s=function(){},o=new Promise(function(a,c){var l=!1,u=0,d=0;e.oncomplete=function(p){return a(p.renderedBuffer)};var f=function(){setTimeout(function(){return c(mM("timeout"))},Math.min(500,d+5e3-Date.now()))},h=function(){try{var p=e.startRendering();switch(hd(p)&&lc(p),e.state){case"running":d=Date.now(),l&&f();break;case"suspended":document.hidden||u++,l&&u>=3?c(mM("suspended")):setTimeout(h,500)}}catch(m){c(m)}};h(),s=function(){l||(l=!0,d>0&&f())}});return[o,s]}(i),l=a[1],u=lc(a[0].then(function(d){return function L4(e){for(var n=0,t=0;t<e.length;++t)n+=Math.abs(e[t]);return n}(d.getChannelData(0).subarray(4500))},function(d){if("timeout"===d.name||"suspended"===d.name)return-3;throw d}));return function(){return l(),u}}()},screenFrame:function d8(){var e=this;if(hr()&&fc()&&dc())return function(){return Promise.resolve(void 0)};var n=function u8(){var e=this;return function l8(){if(void 0===Qg){var e=function(){var n=Xg();Jg(n)?Qg=setTimeout(e,2500):(gd=n,Qg=void 0)};e()}}(),function(){return $n(e,void 0,void 0,function(){var n;return ur(this,function(t){switch(t.label){case 0:return Jg(n=Xg())?gd?[2,Gg([],gd,!0)]:function A4(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}()?[4,x4()]:[3,2]:[3,2];case 1:t.sent(),n=Xg(),t.label=2;case 2:return Jg(n)||(gd=n),[2,n]}})})}}();return function(){return $n(e,void 0,void 0,function(){var t,r;return ur(this,function(i){switch(i.label){case 0:return[4,n()];case 1:return t=i.sent(),[2,[(r=function(s){return null===s?null:lM(s,10)})(t[0]),r(t[1]),r(t[2]),r(t[3])]]}})})}},canvas:function z4(){return function q4(e){var n,r,i,t=!1,s=function W4(){var e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}(),o=s[0],a=s[1];return function Z4(e,n){return!(!n||!e.toDataURL)}(o,a)?(t=function Y4(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(5,5,"evenodd")}(a),e?r=i="skipped":(n=function K4(e,n){!function Q4(e,n){e.width=240,e.height=60,n.textBaseline="alphabetic",n.fillStyle="#f60",n.fillRect(100,1,62,20),n.fillStyle="#069",n.font='11pt "Times New Roman"';var t="Cwm fjordbank gly ".concat("\u{1f603}");n.fillText(t,2,15),n.fillStyle="rgba(102, 204, 0, 0.2)",n.font="18pt Arial",n.fillText(t,4,45)}(e,n);var t=Kg(e);return t!==Kg(e)?["unstable","unstable"]:(function X4(e,n){e.width=122,e.height=110,n.globalCompositeOperation="multiply";for(var t=0,r=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];t<r.length;t++){var i=r[t],o=i[1],a=i[2];n.fillStyle=i[0],n.beginPath(),n.arc(o,a,40,0,2*Math.PI,!0),n.closePath(),n.fill()}n.fillStyle="#f9c",n.arc(60,60,60,0,2*Math.PI,!0),n.arc(60,60,20,0,2*Math.PI,!0),n.fill("evenodd")}(e,n),[Kg(e),t])}(o,a),r=n[0],i=n[1])):r=i="unsupported",{winding:t,geometry:r,text:i}}(function J4(){return hr()&&fc()&&dc()}())},osCpu:function t8(){return navigator.oscpu},languages:function n8(){var e=navigator,n=[],t=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;if(void 0!==t&&n.push([t]),Array.isArray(e.languages))uc()&&function S4(){var e=window;return Qt([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}()||n.push(e.languages);else if("string"==typeof e.languages){var r=e.languages;r&&n.push(r.split(","))}return n},colorDepth:function r8(){return window.screen.colorDepth},deviceMemory:function i8(){return Yr(fr(navigator.deviceMemory),void 0)},screenResolution:function s8(){if(!(hr()&&fc()&&dc()))return function o8(){var e=screen,n=function(r){return Yr(Wg(r),null)},t=[n(e.width),n(e.height)];return t.sort().reverse(),t}()},hardwareConcurrency:function f8(){return Yr(Wg(navigator.hardwareConcurrency),void 0)},timezone:function h8(){var e,n=null===(e=window.Intl)||void 0===e?void 0:e.DateTimeFormat;if(n){var t=(new n).resolvedOptions().timeZone;if(t)return t}var r=-function p8(){var e=(new Date).getFullYear();return Math.max(fr(new Date(e,0,1).getTimezoneOffset()),fr(new Date(e,6,1).getTimezoneOffset()))}();return"UTC".concat(r>=0?"+":"").concat(r)},sessionStorage:function m8(){try{return!!window.sessionStorage}catch{return!0}},localStorage:function g8(){try{return!!window.localStorage}catch{return!0}},indexedDB:function y8(){if(!hM()&&!function D4(){var e=window,n=navigator;return Qt(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in n,"msSaveBlob"in n])>=3&&!hM()}())try{return!!window.indexedDB}catch{return!0}},openDatabase:function _8(){return!!window.openDatabase},cpuClass:function v8(){return navigator.cpuClass},platform:function C8(){var e=navigator.platform;return"MacIntel"===e&&hr()&&!Zg()?function I4(){if("iPad"===navigator.platform)return!0;var e=screen,n=e.width/e.height;return Qt(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,n>.65&&n<1.53])>=2}()?"iPad":"iPhone":e},plugins:function G4(){var e=navigator.plugins;if(e){for(var n=[],t=0;t<e.length;++t){var r=e[t];if(r){for(var i=[],s=0;s<r.length;++s){var o=r[s];i.push({type:o.type,suffixes:o.suffixes})}n.push({name:r.name,description:r.description,mimeTypes:i})}}return n}},touchSupport:function e8(){var t,e=navigator,n=0;void 0!==e.maxTouchPoints?n=Wg(e.maxTouchPoints):void 0!==e.msMaxTouchPoints&&(n=e.msMaxTouchPoints);try{document.createEvent("TouchEvent"),t=!0}catch{t=!1}return{maxTouchPoints:n,touchEvent:t,touchStart:"ontouchstart"in window}},vendor:function b8(){return navigator.vendor||""},vendorFlavors:function E8(){for(var e=[],n=0,t=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];n<t.length;n++){var r=t[n],i=window[r];i&&"object"==typeof i&&e.push(r)}return e.sort()},cookiesEnabled:function w8(){var e=document;try{e.cookie="cookietest=1; SameSite=Strict;";var n=-1!==e.cookie.indexOf("cookietest=");return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",n}catch{return!1}},colorGamut:function A8(){for(var e=0,n=["rec2020","p3","srgb"];e<n.length;e++){var t=n[e];if(matchMedia("(color-gamut: ".concat(t,")")).matches)return t}},invertedColors:function x8(){return!!vM("inverted")||!vM("none")&&void 0},forcedColors:function N8(){return!!CM("active")||!CM("none")&&void 0},monochrome:function P8(){if(matchMedia("(min-monochrome: 0)").matches){for(var e=0;e<=100;++e)if(matchMedia("(max-monochrome: ".concat(e,")")).matches)return e;throw new Error("Too high value")}},contrast:function O8(){return Mo("no-preference")?0:Mo("high")||Mo("more")?1:Mo("low")||Mo("less")?-1:Mo("forced")?10:void 0},reducedMotion:function R8(){return!!bM("reduce")||!bM("no-preference")&&void 0},reducedTransparency:function F8(){return!!EM("reduce")||!EM("no-preference")&&void 0},hdr:function L8(){return!!wM("high")||!wM("standard")&&void 0},math:function V8(){var L,n=De.acosh||Xt,t=De.asin||Xt,r=De.asinh||Xt,i=De.atanh||Xt,s=De.atan||Xt,o=De.sin||Xt,a=De.sinh||Xt,c=De.cos||Xt,l=De.cosh||Xt,u=De.tan||Xt,d=De.tanh||Xt,f=De.exp||Xt,h=De.expm1||Xt,p=De.log1p||Xt;return{acos:(De.acos||Xt)(.12312423423423424),acosh:n(1e308),acoshPf:(L=1e154,De.log(L+De.sqrt(L*L-1))),asin:t(.12312423423423424),asinh:r(1),asinhPf:De.log(1+De.sqrt(2)),atanh:i(.5),atanhPf:De.log(3)/2,atan:s(.5),sin:o(-1e300),sinh:a(1),sinhPf:De.exp(1)-1/De.exp(1)/2,cos:c(10.000000000123),cosh:l(1),coshPf:(De.exp(1)+1/De.exp(1))/2,tan:u(-1e300),tanh:d(1),tanhPf:(De.exp(2)-1)/(De.exp(2)+1),exp:f(1),expm1:h(1),expm1Pf:De.exp(1)-1,log1p:p(10),log1pPf:De.log(11),powPI:De.pow(De.PI,-100)}},pdfViewerEnabled:function U8(){return navigator.pdfViewerEnabled},architecture:function $8(){var e=new Float32Array(1),n=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],n[3]},applePay:function G8(){var e=window.ApplePaySession;if("function"!=typeof e?.canMakePayments)return-1;if(function j4(){for(var e=window;;){var n=e.parent;if(!n||n===e)return!1;try{if(n.location.origin!==e.location.origin)return!0}catch(t){if(t instanceof Error&&"SecurityError"===t.name)return!0;throw t}e=n}}())return-3;try{return e.canMakePayments()?1:0}catch(n){return function q8(e){if(e instanceof Error&&"InvalidAccessError"===e.name&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}(n)}},privateClickMeasurement:function W8(){var e,n=document.createElement("a"),t=null!==(e=n.attributionSourceId)&&void 0!==e?e:n.attributionsourceid;return void 0===t?void 0:String(t)},audioBaseLatency:function i5(){var e;return Yg()||hr()?window.AudioContext&&null!==(e=(new AudioContext).baseLatency)&&void 0!==e?e:-1:-2},webGlBasics:function J8(e){var n,t,r,i,s,o,c=MM(e.cache);if(!c)return-1;if(!xM(c))return-2;var l=AM()?null:c.getExtension(TM);return{version:(null===(n=c.getParameter(c.VERSION))||void 0===n?void 0:n.toString())||"",vendor:(null===(t=c.getParameter(c.VENDOR))||void 0===t?void 0:t.toString())||"",vendorUnmasked:l?null===(r=c.getParameter(l.UNMASKED_VENDOR_WEBGL))||void 0===r?void 0:r.toString():"",renderer:(null===(i=c.getParameter(c.RENDERER))||void 0===i?void 0:i.toString())||"",rendererUnmasked:l?null===(s=c.getParameter(l.UNMASKED_RENDERER_WEBGL))||void 0===s?void 0:s.toString():"",shadingLanguageVersion:(null===(o=c.getParameter(c.SHADING_LANGUAGE_VERSION))||void 0===o?void 0:o.toString())||""}},webGlExtensions:function e5(e){var t=MM(e.cache);if(!t)return-1;if(!xM(t))return-2;var r=t.getSupportedExtensions(),i=t.getContextAttributes(),s=[],o=[],a=[],c=[],l=[];if(i)for(var u=0,d=Object.keys(i);u<d.length;u++){var f=d[u];o.push("".concat(f,"=").concat(i[f]))}for(var p=0,m=IM(t);p<m.length;p++){var _=t[g=m[p]];a.push("".concat(g,"=").concat(_).concat(Z8.has(_)?"=".concat(t.getParameter(_)):""))}if(r)for(var y=0,w=r;y<w.length;y++){var D=w[y];if(!(D===TM&&AM()||"WEBGL_polygon_mode"===D&&(uc()||hr()))){var M=t.getExtension(D);if(!M){s.push(D);continue}for(var F=0,j=IM(M);F<j.length;F++){var g;_=M[g=j[F]],c.push("".concat(g,"=").concat(_).concat(Y8.has(_)?"=".concat(t.getParameter(_)):""))}}}for(var L=0,Ze=K8;L<Ze.length;L++)for(var et=Ze[L],at=0,en=Q8;at<en.length;at++){var Ti=en[at],qn=t5(t,et,Ti);l.push("".concat(et,".").concat(Ti,"=").concat(qn.join(",")))}return c.sort(),a.sort(),{contextAttributes:o,parameters:a,shaderPrecisions:l,extensions:r,extensionParameters:c,unsupportedExtensions:s}}},a5="$ if upgrade to Pro: https://fpjs.dev/pro";function NM(e){return JSON.stringify(e,function(n,t){return t instanceof Error?function C4(e){var n;return cd({name:e.name,message:e.message,stack:null===(n=e.stack)||void 0===n?void 0:n.split("\n")},e)}(t):t},2)}function kM(e){return function v4(e,n){var u,t=function p4(e){for(var n=new Uint8Array(e.length),t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r>127)return(new TextEncoder).encode(e);n[t]=r}return n}(e),r=[0,t.length],i=r[1]%16,s=r[1]-i,o=[0,n=n||0],a=[0,n],c=[0,0],l=[0,0];for(u=0;u<s;u+=16)c[0]=t[u+4]|t[u+5]<<8|t[u+6]<<16|t[u+7]<<24,c[1]=t[u]|t[u+1]<<8|t[u+2]<<16|t[u+3]<<24,l[0]=t[u+12]|t[u+13]<<8|t[u+14]<<16|t[u+15]<<24,l[1]=t[u+8]|t[u+9]<<8|t[u+10]<<16|t[u+11]<<24,Gn(c,pd),So(c,31),Gn(c,md),We(o,c),So(o,27),vi(o,a),Gn(o,dM),vi(o,y4),Gn(l,md),So(l,33),Gn(l,pd),We(a,l),So(a,31),vi(a,o),Gn(a,dM),vi(a,_4);c[0]=0,c[1]=0,l[0]=0,l[1]=0;var d=[0,0];switch(i){case 15:d[1]=t[u+14],In(d,48),We(l,d);case 14:d[1]=t[u+13],In(d,40),We(l,d);case 13:d[1]=t[u+12],In(d,32),We(l,d);case 12:d[1]=t[u+11],In(d,24),We(l,d);case 11:d[1]=t[u+10],In(d,16),We(l,d);case 10:d[1]=t[u+9],In(d,8),We(l,d);case 9:d[1]=t[u+8],We(l,d),Gn(l,md),So(l,33),Gn(l,pd),We(a,l);case 8:d[1]=t[u+7],In(d,56),We(c,d);case 7:d[1]=t[u+6],In(d,48),We(c,d);case 6:d[1]=t[u+5],In(d,40),We(c,d);case 5:d[1]=t[u+4],In(d,32),We(c,d);case 4:d[1]=t[u+3],In(d,24),We(c,d);case 3:d[1]=t[u+2],In(d,16),We(c,d);case 2:d[1]=t[u+1],In(d,8),We(c,d);case 1:d[1]=t[u],We(c,d),Gn(c,pd),So(c,31),Gn(c,md),We(o,c)}return We(o,r),We(a,r),vi(o,a),vi(a,o),uM(o),uM(a),vi(o,a),vi(a,o),("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)}(function d5(e){for(var n="",t=0,r=Object.keys(e).sort();t<r.length;t++){var i=r[t],s=e[i],o="error"in s?"error":JSON.stringify(s.value);n+="".concat(n?"|":"").concat(i.replace(/([:|\\])/g,"\\$1"),":").concat(o)}return n}(e))}function h5(e){return void 0===e&&(e=50),function u4(e,n){void 0===n&&(n=1/0);var t=window.requestIdleCallback;return t?new Promise(function(r){return t.call(window,function(){return r()},{timeout:n})}):fd(Math.min(e,n))}(e,2*e)}function p5(e,n){var t=Date.now();return{get:function(r){return $n(this,void 0,void 0,function(){var i,s,o;return ur(this,function(a){switch(a.label){case 0:return i=Date.now(),[4,e()];case 1:return s=a.sent(),o=function f5(e){var n,t=function c5(e){var n=function l5(e){if(Yg())return.4;if(hr())return!Zg()||fc()&&dc()?.3:.5;var n="value"in e.platform?e.platform.value:"";return/^Win/.test(n)?.6:/^Mac/.test(n)?.5:.7}(e),t=function u5(e){return lM(.99+.01*e,1e-4)}(n);return{score:n,comment:a5.replace(/\$/g,"".concat(t))}}(e);return{get visitorId(){return void 0===n&&(n=kM(this.components)),n},set visitorId(r){n=r},confidence:t,components:e,version:"4.5.1"}}(s),(n||r?.debug)&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(o.version,"\nuserAgent: ").concat(navigator.userAgent,"\ntimeBetweenLoadAndGet: ").concat(i-t,"\nvisitorId: ").concat(o.visitorId,"\ncomponents: ").concat(NM(s),"\n```")),[2,o]}})})}}}var y5={load:function g5(e){var n;return void 0===e&&(e={}),$n(this,void 0,void 0,function(){var r,i;return ur(this,function(s){switch(s.label){case 0:return(!(null!==(n=e.monitoring)&&void 0!==n)||n)&&function m5(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat("4.5.1","/npm-monitoring"),!0),e.send()}catch(n){console.error(n)}}(),r=e.debug,[4,h5(e.delayFallback)];case 1:return s.sent(),i=function o5(e){return function w4(e,n,t,r){var i=Object.keys(e).filter(function(o){return function f4(e,n){return!function d4(e,n){for(var t=0,r=e.length;t<r;++t)if(e[t]===n)return!0;return!1}(e,n)}(t,o)}),s=lc(cM(i,function(o){return function E4(e,n){var t=lc(new Promise(function(r){var i=Date.now();aM(e.bind(null,n),function(){for(var s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];var a=Date.now()-i;if(!s[0])return r(function(){return{error:s[1],duration:a}});var c=s[1];if(function fM(e){return"function"!=typeof e}(c))return r(function(){return{value:c,duration:a}});r(function(){return new Promise(function(l){var u=Date.now();aM(c,function(){for(var d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];var h=a+Date.now()-u;if(!d[0])return l({error:d[1],duration:h});l({value:d[1],duration:h})})})})})}));return function(){return t.then(function(i){return i()})}}(e[o],n)},r));return function(){return $n(this,void 0,void 0,function(){var c,l,u,d;return ur(this,function(f){switch(f.label){case 0:return[4,s];case 1:return[4,cM(f.sent(),function(h){return lc(h())},r)];case 2:return c=f.sent(),[4,Promise.all(c)];case 3:for(l=f.sent(),u={},d=0;d<i.length;++d)u[i[d]]=l[d];return[2,u]}})})}}(s5,e,[])}({cache:{},debug:r}),[2,p5(i,r)]}})})},hashComponents:kM,componentsToDebugString:NM},PM=function(e){return e[e.SMALL=1]="SMALL",e[e.MEDIUM=2]="MEDIUM",e[e.LARGE=3]="LARGE",e[e.EXTRA_LARGE=4]="EXTRA_LARGE",e[e.FULL_SCREEN=5]="FULL_SCREEN",e}(PM||{});const C5=y5.load();function b5(){return new nt(e=>{(function E5(){return ty.apply(this,arguments)})().then(n=>{e.next(n),e.complete()}).catch(n=>{e.error(n)})})}function ty(){return(ty=is(function*(){const e={};e.browserData=function _5(){const e=screen.height||window.innerHeight,n=screen.width||window.innerWidth,t=PM.FULL_SCREEN;return{timezoneOffsetUtcMinutes:(new Date).getTimezoneOffset(),locale:navigator.language,userAgent:navigator.userAgent,javaEnabled:navigator.javaEnabled()||!1,javaScriptEnabled:!0,colorDepth:screen.colorDepth,width:n,height:e,challengeWindowSize:t}}();try{const n=yield(yield C5).get();e.id=n.visitorId,e.fonts=n.components.fonts.value;const t=navigator,r=t.getBattery?t.getBattery():void 0;let i;r&&(i=yield r,e.batteryLevelAndChargingStatus=i?`level: ${i.level??"unknown"}; charging: ${i.charging??"unknown"}`:void 0);const s=t.connection||t.mozConnection||t.webkitConnection;e.networkParameters=s?`type: ${s.type??"unknown"}; effectiveType: ${s.effectiveType??"unknown"}`:void 0}catch{}return e})).apply(this,arguments)}class yd{constructor(){this.emitEnabled=!0,this.optionalEmitEnabled=!0,this.emitter=new ve}emit(n,t){this.emitEnabled&&(!t||t&&this.optionalEmitEnabled)&&this.emitter.emit(n)}}let xe=(()=>{class e{constructor(){this.componentsStates={availableCardBrands:se({isRequired:!1,canShowError:!1,isValid:!0,filled:!0,enabled:!0}),cardList:se({isRequired:!1,canShowError:!1,isValid:!0,filled:!0,enabled:!0}),cardForm:se({isRequired:!0,canShowError:!1,isValid:!0,filled:!1,enabled:!0}),additionalForm:se({isRequired:!1,canShowError:!1,isValid:!0,filled:!1,enabled:!0}),chargeTerms:se({isRequired:!0,canShowError:!1,isValid:!0,filled:!1,enabled:!0}),payButton:se({isRequired:!0,canShowError:!1,isValid:!0,filled:!1,enabled:!0}),apmList:se({isRequired:!1,canShowError:!1,isValid:!0,filled:!0,enabled:!0}),userPreferences:se({isRequired:!0,canShowError:!1,isValid:!0,filled:!1,enabled:!0}),merchantInfo:se({isRequired:!1,canShowError:!1,isValid:!0,filled:!0,enabled:!0}),protectedBy:se({isRequired:!1,canShowError:!1,isValid:!0,filled:!0,enabled:!0}),master:se({isRequired:!0,canShowError:!1,isValid:!0,filled:!1,enabled:!0})},this.visibility={availableCardBrands:ce(()=>this.componentsStates.availableCardBrands().enabled&&!!this.data.settings()?.components?.some(t=>"available-card-brands"===t)),cardList:ce(()=>this.componentsStates.cardList().enabled&&!!this.data.settings()?.components?.some(t=>"card-list"===t)),cardForm:ce(()=>this.componentsStates.cardForm().enabled&&!!this.data.settings()?.components?.some(t=>"requisites"===t)),additionalForm:ce(()=>this.componentsStates.cardForm().enabled&&this.componentsStates.additionalForm().enabled&&!!this.data.settings()?.components?.some(t=>"phone-number"===t)),chargeTerms:ce(()=>this.componentsStates.chargeTerms().enabled&&!!this.data.settings()?.components?.some(t=>"charge-terms"===t)&&!this.visibility.noMethods()),payButton:ce(()=>(this.componentsStates.cardList().enabled||this.componentsStates.cardForm().enabled)&&this.componentsStates.payButton().enabled&&!!this.data.settings()?.components?.some(t=>"pay-button"===t)),apmList:ce(()=>this.componentsStates.apmList().enabled&&!!this.data.settings()?.components?.some(t=>"apm-list"===t)),userPreferences:ce(()=>this.componentsStates.userPreferences().enabled&&!!this.data.settings()?.components?.some(t=>"user-preferences"===t)&&!this.visibility.noMethods()),merchantInfo:ce(()=>this.componentsStates.merchantInfo().enabled&&!!this.data.settings()?.components?.some(t=>"merchant-info"===t)),protectedBy:ce(()=>this.componentsStates.protectedBy().enabled&&!!this.data.settings()?.components?.some(t=>"protected-by"===t)),noMethods:ce(()=>!this.componentsStates.cardForm().enabled&&!this.componentsStates.cardList().enabled&&!this.componentsStates.apmList().enabled),master:ce(()=>this.componentsStates.master().enabled&&!!this.data.settings()?.components?.some(t=>"master"===t)&&!this.visibility.noMethods())},this.data={payment:se(void 0),settings:se(void 0),userProvidedInfo:se({}),loadedPaymentSystems:se([]),loadedExistingCards:se([]),deviceInfo:se(void 0),state:se({type:"empty",payload:void 0}),paymentSystemsLoading:se(!1),cardsLoading:se(!1)},this.computed={isLoading:ce(()=>this.data.paymentSystemsLoading()||this.data.cardsLoading()),paymentAvailability:ce(()=>{const t=this.data.settings(),r={canPay:{byCard:!1,byApm:!1},isPayButtonDisabled:!1};if(!t)return r;let i=!0,s=!0;for(let c in this.componentsStates)if(this.componentsStates.hasOwnProperty(c)){const l=this.componentsStates[c]();i=i&&(l.isValid||!l.enabled),s=s&&(l.filled||!l.enabled)}const o=this.componentsStates.chargeTerms(),a=this.componentsStates.master();return r.canPay.byApm=t.components.includes("master")?!a.enabled||a.isValid:!t.components.includes("charge-terms")||!o.enabled||o.isValid,"disabled"!=t.requiredFieldsBehavior?.buttonStateUntilFilled||s?"hidden-enabled"!=t.requiredFieldsBehavior?.buttonStateUntilFilled||s?i?{canPay:{...r.canPay,byCard:!0}}:r:{...r,buttonDisableClass:"hidden-enabled-element",elementDisableClass:"hidden-enabled-element"}:{...r,elementDisableClass:"disabled-element",isPayButtonDisabled:!0}})},this.events={analytics:new yd,error:new yd,close:new yd,paid:new yd},this.callbacks={},this.clients={googlePay:void 0}}updateCanShowError(t){for(let r in this.componentsStates)this.componentsStates.hasOwnProperty(r)&&this.componentsStates[r].update(i=>i.canShowError===t?i:{...i,canShowError:t})}updateCanShowErrorForApm(t){this.componentsStates.chargeTerms.update(r=>({...r,canShowError:t})),this.componentsStates.master.update(r=>({...r,canShowError:t}))}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();function _d(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}function ny(e,...n){if(!n.length)return e;const t=n.shift();if(_d(e)&&_d(t))for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const i=t[r];e[r]=_d(i)&&_d(e[r])?ny(e[r],i):i}return ny(e,...n)}function w5(...e){return ny({},...e)}function OM(e){return"string"==typeof e||e instanceof String?JSON.parse(e):e}const RM={header:"Checkout",errors:{notCheckedCheckboxes:"Please check these boxes",invalidCardHolder:"Invalid cardholder name",invalidCardNumber:"Invalid card number",invalidCardExpiration:"Invalid card date",invalidCvv:"Invalid card code",invalidPhoneNumber:"Invalid phone number"},requisites:{paymentDetailsHeader:"Payment details",cardNumberPlaceholder:"Card number",cardExpirationPlaceholder:"MM/YY",cvvHint:"CVV (Card Verification Value)",cardHolderHeader:"Name on card",cardHolderPlaceholder:"Name on card"},phone:{header:"Phone",placeholder:"Phone number"},apms:{or:"OR",orUseAlternative:"or use alternative methods"},totalHeader:"Total",pay:"Pay",availableCardBrandsHeader:"Payment methods",transactionProtectedBy:"Your transactions are protected by",existingCards:{manageCardsHeader:"Manage cards",addNewCard:"Add new card",removeCard:"Remove card"},paymentResult:{success:"We placed your order",failure:{main:"Something went wrong",paymentFailed:"Payment failed."}},paymentProcessing:"payment processing",notifications:{cardDeleted:{title:"Successful",text:"Card has been deleted"},error:{default:{title:"Attention!",text:"Unable to process the payment"}}},noAvailablePaymentMethods:"No available payment methods...",close:"Close",master:{selectAll:""},confirmPayment:"Confirm payment"},S5={urls:{},availableCardBrands:["mastercard","visa"],chargeTerms:void 0,isCloseButtonVisible:!0,isProblemTipsListVisible:!1,isTaxVisible:!1,isSignatureRequired:!1,isHeaderVisible:!0,closePaymentRedirect:!0,languageSettings:{code:"en-US",languages:{"en-US":RM,"es-ES":{header:"Verificar",errors:{notCheckedCheckboxes:"Debe marcar estas casillas",invalidCardHolder:"Nombre del titular de la tarjeta no v\xe1lido",invalidCardNumber:"N\xfamero de tarjeta no v\xe1lido",invalidCardExpiration:"Fecha de la tarjeta no v\xe1lida",invalidCvv:"C\xf3digo de la tarjeta no v\xe1lido",invalidPhoneNumber:"N\xfamero de tel\xe9fono no v\xe1lido"},requisites:{paymentDetailsHeader:"Detalles del pago",cardNumberPlaceholder:"N\xfamero de tarjeta",cardExpirationPlaceholder:"MM/AA",cvvHint:"CVV (Valor de verificaci\xf3n de la tarjeta)",cardHolderHeader:"Nombre en la tarjeta",cardHolderPlaceholder:"Nombre en la tarjeta"},phone:{header:"Tel\xe9fono",placeholder:"N\xfamero de tel\xe9fono"},apms:{or:"O",orUseAlternative:"o usar m\xe9todos alternativos"},totalHeader:"Total",pay:"Pagar",availableCardBrandsHeader:"M\xe9todos de pago",transactionProtectedBy:"Sus transacciones est\xe1n protegidas por",existingCards:{manageCardsHeader:"Gestionar tarjetas",addNewCard:"A\xf1adir nueva tarjeta",removeCard:"Eliminar tarjeta"},paymentResult:{success:"Hemos realizado su pedido",failure:{main:"Algo sali\xf3 mal",paymentFailed:"El pago no se ha procesado."}},paymentProcessing:"Procesando el pago\u2026",notifications:{cardDeleted:{title:"Exitoso",text:"Se ha eliminado la tarjeta."},error:{default:{title:"\xa1Atenci\xf3n!",text:"No se ha podido procesar el pago."}}},noAvailablePaymentMethods:"No hay m\xe9todos de pago disponibles\u2026",close:"Cerrar",master:{selectAll:""},confirmPayment:"Confirmar el pago"},"fr-FR":{header:"Paiement",errors:{notCheckedCheckboxes:"Veuillez cocher les cases suivantes",invalidCardHolder:"Nom du titulaire de la carte invalide",invalidCardNumber:"Num\xe9ro de carte non valide",invalidCardExpiration:"Date de la carte invalide",invalidCvv:"Code de carte invalide",invalidPhoneNumber:"Num\xe9ro de t\xe9l\xe9phone invalide"},requisites:{paymentDetailsHeader:"Modalit\xe9s de paiement",cardNumberPlaceholder:"Num\xe9ro de carte",cardExpirationPlaceholder:"MM/AA",cvvHint:"CVV (Valeur de v\xe9rification de la carte)",cardHolderHeader:"Nom sur la carte",cardHolderPlaceholder:"Nom sur la carte"},phone:{header:"T\xe9l\xe9phone",placeholder:"Num\xe9ro de t\xe9l\xe9phone"},apms:{or:"OU",orUseAlternative:"ou utilisez des m\xe9thodes alternatives"},totalHeader:"Total",pay:"Payer",availableCardBrandsHeader:"Modes de paiement",transactionProtectedBy:"Vos transactions sont prot\xe9g\xe9es par",existingCards:{manageCardsHeader:"G\xe9rer les cartes",addNewCard:"Ajoutez une nouvelle carte",removeCard:"Supprimer la carte"},paymentResult:{success:"Nous avons pass\xe9 votre commande",failure:{main:"Une erreur est survenue",paymentFailed:"Le paiement a \xe9chou\xe9."}},paymentProcessing:"traitement du paiement",notifications:{cardDeleted:{title:"R\xe9ussie",text:"La carte a \xe9t\xe9 supprim\xe9e"},error:{default:{title:"Attention !",text:"Impossible de traiter le paiement"}}},noAvailablePaymentMethods:"Aucune m\xe9thode de paiement disponible...",close:"Fermer",master:{selectAll:""},confirmPayment:"Confirmer le Paiement"}}},merchantInfo:void 0,userPreferences:void 0,components:["available-card-brands","no-methods","card-list","requisites","phone-number","charge-terms","pay-button","apm-list","user-preferences","merchant-info","protected-by"],resultComponentsStructure:{aboveResult:["available-card-brands"],belowResult:["merchant-info","protected-by"]},events:{analytics:{optional:!1,required:!1},error:!0},requiredFieldsBehavior:{buttonStateUntilFilled:"enabled",markAsInvalidUntilCorrect:!1,showStars:!1},apmsCollapse:!1,googlePay:{allowedAuthMethods:["CRYPTOGRAM_3DS","PAN_ONLY"],button:{buttonSizeMode:"fill",buttonRadius:4}}};function T5(e,n){if(1&e&&(S(0,"div",1),ge(1,"img",2),T()),2&e){const t=x();C(),P("src",t.src,ga)("alt",t.alt)}}let Io=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Te({type:e,selectors:[["moto-picture"]],inputs:{src:"src",alt:"alt"},decls:1,vars:1,consts:[["class","__ndb-picture",4,"ngIf"],[1,"__ndb-picture"],[1,"__ndb-picture-tag",3,"src","alt"]],template:function(r,i){1&r&&ee(0,T5,2,2,"div",0),2&r&&P("ngIf",i.src)},dependencies:[td],styles:[".__ndb-picture[_ngcontent-%COMP%]{height:inherit;width:inherit}.__ndb-picture-tag[_ngcontent-%COMP%]{height:100%;width:100%;object-fit:cover}"],changeDetection:0})}return e})();var Ao=function(e){return e.default="default-card-icon",e.mastercard="master-card-icon",e.maestro="maestro",e.visa="visa-card-icon-new",e.discover="discover",e.jcb="jcb",e["american-express"]="american-express",e.unionpay="unionpay",e}(Ao||{});const xo_customHeaders_skipToastr="X-Skip-Toastr";let M5=(()=>{class e{transform(t){const r=Ao[t];let i=r?.toString();if(i&&(r==Ao.visa&&(i+="-brand"),r==Ao.mastercard&&(i+="-brand"),r))return`https://cdn.motopays.com/images/${i}.svg`}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275pipe=ft({name:"brandLogo",type:e,pure:!0})}return e})();function I5(e,n){1&e&&ge(0,"moto-picture",4),2&e&&P("src",n)}function A5(e,n){if(1&e&&(ee(0,I5,1,1,"moto-picture",4),Ie(1,"brandLogo")),2&e){let t;oe((t=Ya(1,1,n.$implicit))?0:-1,t)}}let LM=(()=>{class e{constructor(t){this.context=t}ngOnInit(){this.settings=this.context.data.settings}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe))};static#t=this.\u0275cmp=Te({type:e,selectors:[["moto-available-card-brands"]],decls:8,vars:1,consts:[[1,"__ndb-brands"],[1,"__ndb-brands-paymentsheader"],[1,"fz-14","fw-500"],[1,"__ndb-brands-payments"],[1,"__ndb-brands-payments-logo",3,"src"]],template:function(r,i){if(1&r&&(Sn(0),S(1,"div",0)(2,"div",1)(3,"h6",2),z(4),T()(),S(5,"div",3),un(6,A5,2,3,null,null,or),T()()),2&r){const s=i.settings();C(4),ke(" ",s.language.availableCardBrandsHeader," "),C(2),dn(s.availableCardBrands)}},dependencies:[Io,M5],styles:["[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.__ndb-brands[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}.__ndb-brands-payments[_ngcontent-%COMP%]{gap:10px;display:flex;justify-content:center}.__ndb-brands-payments-logo[_ngcontent-%COMP%]{height:24px;width:36px}.__ndb-brands-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:10px}.__ndb-brands-paymentsheader[_ngcontent-%COMP%]{justify-content:center;display:flex;align-items:center;gap:10px}"],changeDetection:0})}return e})();class x5{constructor(n,t=se(!1)){this.item=n,this.selected=t}setSelected(n){this.selected.set(n)}}var Q=function(e){return e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger",e}(Q||{});const Kr="*";function No(e,n){return{type:Q.Trigger,name:e,definitions:n,options:{}}}function pr(e,n=null){return{type:Q.Animate,styles:n,timings:e}}function Je(e){return{type:Q.Style,styles:e,offset:null}}function hc(e,n,t){return{type:Q.State,name:e,styles:n,options:t}}function mr(e,n,t=null){return{type:Q.Transition,expr:e,animation:n,options:t}}class pc{constructor(n=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const t="start"==n?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class VM{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let t=0,r=0,i=0;const s=this.players.length;0==s?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==s&&this._onFinish()}),o.onDestroy(()=>{++r==s&&this._onDestroy()}),o.onStart(()=>{++i==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const t=n*this.totalTime;this.players.forEach(r=>{const i=r.totalTime?Math.min(1,t/r.totalTime):1;r.setPosition(i)})}getPosition(){const n=this.players.reduce((t,r)=>null===t||r.totalTime>t.totalTime?r:t,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const t="start"==n?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}const mc_animation_defaultAnimateMc=0;class iy{constructor(n){this.animationTime=mc_animation_defaultAnimateMc,Object.assign(this,n)}}const F5=No("ANHeight",[mr(":enter",[Je({overflow:"hidden",height:"0px"}),pr(mc_animation_defaultAnimateMc,Je({height:"*",overflow:"hidden"}))]),mr(":leave",[Je({height:"*",overflow:"hidden"}),pr(mc_animation_defaultAnimateMc,Je({height:"0px",overflow:"hidden"}))])]),L5=No("ANScale",[mr(":enter",[Je({opacity:0,transform:"scale(0)"}),pr(mc_animation_defaultAnimateMc,Je({opacity:1,transform:"scale(1)"}))]),mr(":leave",pr(mc_animation_defaultAnimateMc,Je({opacity:0,transform:"scale(0)"})))]),vd=e=>{const n=new iy({animationName:"ANTransform",fromStyles:{opacity:"0",transform:"translateY(-100%)"},toStyles:{opacity:"1",transform:"translateY(0%)"}}),t=Object.assign(n,e),{animationName:r,animationTime:i,fromStyles:s,toStyles:o}=t;return No(r,[mr(":enter",[Je(s),pr(i,Je(o))]),mr(":leave",[Je(o),pr(i,Je(s))])])},V5=e=>{const n=new iy({animationName:"ANStates",fromState:"a",toState:"b"}),t=Object.assign(n,e),{animationName:r,animationTime:i,fromStyles:s,toStyles:o,fromState:a,toState:c}=t;return No(r,[hc(a,Je(s)),hc(c,Je(o)),mr(`${a}<=>${c}`,pr(i))])},B5=e=>{const n=new iy({animationName:"ANStates"}),t=Object.assign(n,e),{animationName:r,animationTime:i,fromStyles:s,toStyles:o}=t;return No(r,[mr(":enter",[Je(s),pr(i,Je(o))]),mr(":leave",[Je(o),pr(i,Je(s))])])};function An(...e){return _i(e,ud(e))}function ko(e){return mn((n,t)=>{let s,r=null,i=!1;r=n.subscribe(nn(t,void 0,void 0,o=>{s=dr(e(o,ko(e)(n))),r?(r.unsubscribe(),r=null,s.subscribe(t)):i=!0})),i&&(r.unsubscribe(),r=null,s.subscribe(t))})}function Po(e,n){return Xe(n)?ld(e,n,1):ld(e,1)}function BM(e,n){return mn((t,r)=>{let i=0;t.subscribe(nn(r,s=>e.call(n,s,i++)&&r.next(s)))})}class Cd{}class bd{}class xn{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.split("\n").forEach(t=>{const r=t.indexOf(":");if(r>0){const i=t.slice(0,r),s=i.toLowerCase(),o=t.slice(r+1).trim();this.maybeSetNormalizedName(i,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((t,r)=>{this.setHeaderEntries(r,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([t,r])=>{this.setHeaderEntries(t,r)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const t=this.headers.get(n.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,t){return this.clone({name:n,value:t,op:"a"})}set(n,t){return this.clone({name:n,value:t,op:"s"})}delete(n,t){return this.clone({name:n,value:t,op:"d"})}maybeSetNormalizedName(n,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,n)}init(){this.lazyInit&&(this.lazyInit instanceof xn?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(t=>{this.headers.set(t,n.headers.get(t)),this.normalizedNames.set(t,n.normalizedNames.get(t))})}clone(n){const t=new xn;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof xn?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([n]),t}applyUpdate(n){const t=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(n.name,t);const i=("a"===n.op?this.headers.get(t):void 0)||[];i.push(...r),this.headers.set(t,i);break;case"d":const s=n.value;if(s){let o=this.headers.get(t);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}setHeaderEntries(n,t){const r=(Array.isArray(t)?t:[t]).map(s=>s.toString()),i=n.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(n,i)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}}class H5{encodeKey(n){return jM(n)}encodeValue(n){return jM(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const $5=/%(\d[a-f0-9])/gi,G5={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function jM(e){return encodeURIComponent(e).replace($5,(n,t)=>G5[t]??n)}function Ed(e){return`${e}`}class Qr{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new H5,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function U5(e,n){const t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(i=>{const s=i.indexOf("="),[o,a]=-1==s?[n.decodeKey(i),""]:[n.decodeKey(i.slice(0,s)),n.decodeValue(i.slice(s+1))],c=t.get(o)||[];c.push(a),t.set(o,c)}),t}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{const r=n.fromObject[t],i=Array.isArray(r)?r.map(Ed):[Ed(r)];this.map.set(t,i)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){const t=[];return Object.keys(n).forEach(r=>{const i=n[r];Array.isArray(i)?i.forEach(s=>{t.push({param:r,value:s,op:"a"})}):t.push({param:r,value:i,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const t=this.encoder.encodeKey(n);return this.map.get(n).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const t=new Qr({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const t=("a"===n.op?this.map.get(n.param):void 0)||[];t.push(Ed(n.value)),this.map.set(n.param,t);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let r=this.map.get(n.param)||[];const i=r.indexOf(Ed(n.value));-1!==i&&r.splice(i,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class z5{constructor(){this.map=new Map}set(n,t){return this.map.set(n,t),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function HM(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function UM(e){return typeof Blob<"u"&&e instanceof Blob}function $M(e){return typeof FormData<"u"&&e instanceof FormData}class gc{constructor(n,t,r,i){let s;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function q5(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,s=i):s=r,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params),this.transferCache=s.transferCache),this.headers??=new xn,this.context??=new z5,this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":a<t.length-1?"&":"")+o}}else this.params=new Qr,this.urlWithParams=t}serializeBody(){return null===this.body?null:"string"==typeof this.body||HM(this.body)||UM(this.body)||$M(this.body)||function W5(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}(this.body)?this.body:this.body instanceof Qr?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||$M(this.body)?null:UM(this.body)?this.body.type||null:HM(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Qr?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(n={}){const t=n.method||this.method,r=n.url||this.url,i=n.responseType||this.responseType,s=n.transferCache??this.transferCache,o=void 0!==n.body?n.body:this.body,a=n.withCredentials??this.withCredentials,c=n.reportProgress??this.reportProgress;let l=n.headers||this.headers,u=n.params||this.params;const d=n.context??this.context;return void 0!==n.setHeaders&&(l=Object.keys(n.setHeaders).reduce((f,h)=>f.set(h,n.setHeaders[h]),l)),n.setParams&&(u=Object.keys(n.setParams).reduce((f,h)=>f.set(h,n.setParams[h]),u)),new gc(t,r,o,{params:u,headers:l,context:d,reportProgress:c,responseType:i,withCredentials:a,transferCache:s})}}var Ci=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(Ci||{});class sy{constructor(n,t=200,r="OK"){this.headers=n.headers||new xn,this.status=void 0!==n.status?n.status:t,this.statusText=n.statusText||r,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class wd extends sy{constructor(n={}){super(n),this.type=Ci.ResponseHeader}clone(n={}){return new wd({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class ss extends sy{constructor(n={}){super(n),this.type=Ci.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new ss({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Oo extends sy{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function oy(e,n){return{body:n,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}let Dd=(()=>{class e{constructor(t){this.handler=t}request(t,r,i={}){let s;if(t instanceof gc)s=t;else{let c,l;c=i.headers instanceof xn?i.headers:new xn(i.headers),i.params&&(l=i.params instanceof Qr?i.params:new Qr({fromObject:i.params})),s=new gc(t,r,void 0!==i.body?i.body:null,{headers:c,context:i.context,params:l,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}const o=An(s).pipe(Po(c=>this.handler.handle(c)));if(t instanceof gc||"events"===i.observe)return o;const a=o.pipe(BM(c=>c instanceof ss));switch(i.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(kt(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe(kt(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe(kt(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return a.pipe(kt(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:(new Qr).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,i={}){return this.request("PATCH",t,oy(i,r))}post(t,r,i={}){return this.request("POST",t,oy(i,r))}put(t,r,i={}){return this.request("PUT",t,oy(i,r))}static#e=this.\u0275fac=function(r){return new(r||e)(k(Cd))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();const K5=/^\)\]\}',?\n/;function zM(e){if(e.url)return e.url;const n="X-Request-URL".toLocaleLowerCase();return e.headers.get(n)}let ay=(()=>{class e{constructor(){this.fetchImpl=A(X5,{optional:!0})?.fetch??((...t)=>globalThis.fetch(...t)),this.ngZone=A(pe)}handle(t){return new nt(r=>{const i=new AbortController;return this.doRequest(t,i.signal,r).then(cy,s=>r.error(new Oo({error:s}))),()=>i.abort()})}doRequest(t,r,i){var s=this;return is(function*(){const o=s.createRequestInit(t);let a;try{const p=s.ngZone.runOutsideAngular(()=>s.fetchImpl(t.urlWithParams,{signal:r,...o}));(function J5(e){e.then(cy,cy)})(p),i.next({type:Ci.Sent}),a=yield p}catch(p){return void i.error(new Oo({error:p,status:p.status??0,statusText:p.statusText,url:t.urlWithParams,headers:p.headers}))}const c=new xn(a.headers),l=a.statusText,u=zM(a)??t.urlWithParams;let d=a.status,f=null;if(t.reportProgress&&i.next(new wd({headers:c,status:d,statusText:l,url:u})),a.body){const p=a.headers.get("content-length"),m=[],g=a.body.getReader();let y,w,_=0;const D=typeof Zone<"u"&&Zone.current;yield s.ngZone.runOutsideAngular(is(function*(){for(;;){const{done:F,value:j}=yield g.read();if(F)break;if(m.push(j),_+=j.length,t.reportProgress){w="text"===t.responseType?(w??"")+(y??=new TextDecoder).decode(j,{stream:!0}):void 0;const L=()=>i.next({type:Ci.DownloadProgress,total:p?+p:void 0,loaded:_,partialText:w});D?D.run(L):L()}}}));const M=s.concatChunks(m,_);try{const F=a.headers.get("Content-Type")??"";f=s.parseBody(t,M,F)}catch(F){return void i.error(new Oo({error:F,headers:new xn(a.headers),status:a.status,statusText:a.statusText,url:zM(a)??t.urlWithParams}))}}0===d&&(d=f?200:0),d>=200&&d<300?(i.next(new ss({body:f,headers:c,status:d,statusText:l,url:u})),i.complete()):i.error(new Oo({error:f,headers:c,status:d,statusText:l,url:u}))})()}parseBody(t,r,i){switch(t.responseType){case"json":const s=(new TextDecoder).decode(r).replace(K5,"");return""===s?null:JSON.parse(s);case"text":return(new TextDecoder).decode(r);case"blob":return new Blob([r],{type:i});case"arraybuffer":return r.buffer}}createRequestInit(t){const r={},i=t.withCredentials?"include":void 0;if(t.headers.forEach((s,o)=>r[s]=o.join(",")),t.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!t.headers.has("Content-Type")){const s=t.detectContentTypeHeader();null!==s&&(r["Content-Type"]=s)}return{body:t.serializeBody(),method:t.method,headers:r,credentials:i}}concatChunks(t,r){const i=new Uint8Array(r);let s=0;for(const o of t)i.set(o,s),s+=o.length;return i}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();class X5{}function cy(){}function qM(e,n){return n(e)}const yc=new N(""),WM=new N(""),ZM=new N("",{providedIn:"root",factory:()=>!0});let YM=(()=>{class e extends Cd{constructor(t,r){super(),this.backend=t,this.injector=r,this.chain=null,this.pendingTasks=A(ji),this.contributeToStability=A(ZM)}handle(t){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(yc),...this.injector.get(WM,[])]));this.chain=r.reduceRight((i,s)=>function t6(e,n,t){return(r,i)=>function tk(e,n){e instanceof Ts&&e.assertNotDestroyed();const r=si(e),i=rn(void 0);try{return n()}finally{si(r),rn(i)}}(t,()=>n(r,s=>e(s,i)))}(i,s,this.injector),qM)}if(this.contributeToStability){const r=this.pendingTasks.add();return this.chain(t,i=>this.backend.handle(i)).pipe(function j5(e){return mn((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}(()=>this.pendingTasks.remove(r)))}return this.chain(t,r=>this.backend.handle(r))}static#e=this.\u0275fac=function(r){return new(r||e)(k(bd),k(Fn))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();const c6=/^\)\]\}',?\n/;let QM=(()=>{class e{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new E(-2800,!1);const r=this.xhrFactory;return(r.\u0275loadImpl?_i(r.\u0275loadImpl()):An(null)).pipe(iM(()=>new nt(s=>{const o=r.build();if(o.open(t.method,t.urlWithParams),t.withCredentials&&(o.withCredentials=!0),t.headers.forEach((m,g)=>o.setRequestHeader(m,g.join(","))),t.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const m=t.detectContentTypeHeader();null!==m&&o.setRequestHeader("Content-Type",m)}if(t.responseType){const m=t.responseType.toLowerCase();o.responseType="json"!==m?m:"text"}const a=t.serializeBody();let c=null;const l=()=>{if(null!==c)return c;const m=o.statusText||"OK",g=new xn(o.getAllResponseHeaders()),_=function l6(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(o)||t.url;return c=new wd({headers:g,status:o.status,statusText:m,url:_}),c},u=()=>{let{headers:m,status:g,statusText:_,url:y}=l(),w=null;204!==g&&(w=typeof o.response>"u"?o.responseText:o.response),0===g&&(g=w?200:0);let D=g>=200&&g<300;if("json"===t.responseType&&"string"==typeof w){const M=w;w=w.replace(c6,"");try{w=""!==w?JSON.parse(w):null}catch(F){w=M,D&&(D=!1,w={error:F,text:w})}}D?(s.next(new ss({body:w,headers:m,status:g,statusText:_,url:y||void 0})),s.complete()):s.error(new Oo({error:w,headers:m,status:g,statusText:_,url:y||void 0}))},d=m=>{const{url:g}=l(),_=new Oo({error:m,status:o.status||0,statusText:o.statusText||"Unknown Error",url:g||void 0});s.error(_)};let f=!1;const h=m=>{f||(s.next(l()),f=!0);let g={type:Ci.DownloadProgress,loaded:m.loaded};m.lengthComputable&&(g.total=m.total),"text"===t.responseType&&o.responseText&&(g.partialText=o.responseText),s.next(g)},p=m=>{let g={type:Ci.UploadProgress,loaded:m.loaded};m.lengthComputable&&(g.total=m.total),s.next(g)};return o.addEventListener("load",u),o.addEventListener("error",d),o.addEventListener("timeout",d),o.addEventListener("abort",d),t.reportProgress&&(o.addEventListener("progress",h),null!==a&&o.upload&&o.upload.addEventListener("progress",p)),o.send(a),s.next({type:Ci.Sent}),()=>{o.removeEventListener("error",d),o.removeEventListener("abort",d),o.removeEventListener("load",u),o.removeEventListener("timeout",d),t.reportProgress&&(o.removeEventListener("progress",h),null!==a&&o.upload&&o.upload.removeEventListener("progress",p)),o.readyState!==o.DONE&&o.abort()}})))}static#e=this.\u0275fac=function(r){return new(r||e)(k(gT))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();const ly=new N(""),XM=new N("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),JM=new N("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class eI{}let f6=(()=>{class e{constructor(t,r,i){this.doc=t,this.platform=r,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=oT(t,this.cookieName),this.lastCookieString=t),this.lastToken}static#e=this.\u0275fac=function(r){return new(r||e)(k(Vt),k($r),k(XM))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();function h6(e,n){const t=e.url.toLowerCase();if(!A(ly)||"GET"===e.method||"HEAD"===e.method||t.startsWith("http://")||t.startsWith("https://"))return n(e);const r=A(eI).getToken(),i=A(JM);return null!=r&&!e.headers.has(i)&&(e=e.clone({headers:e.headers.set(i,r)})),n(e)}var bi=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(bi||{});function p6(...e){const n=[Dd,QM,YM,{provide:Cd,useExisting:YM},{provide:bd,useFactory:()=>A(ay,{optional:!0})??A(QM)},{provide:yc,useValue:h6,multi:!0},{provide:ly,useValue:!0},{provide:eI,useClass:f6}];for(const t of e)n.push(...t.\u0275providers);return Ss(n)}function m6(e){return function os(e,n){return{\u0275kind:e,\u0275providers:n}}(bi.Interceptors,e.map(n=>({provide:yc,useValue:n,multi:!0})))}class D6 extends pn{constructor(n,t){super()}schedule(n,t=0){return this}}const Td={setInterval(e,n,...t){const{delegate:r}=Td;return r?.setInterval?r.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){const{delegate:n}=Td;return(n?.clearInterval||clearInterval)(e)},delegate:void 0};class _c{constructor(n,t=_c.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,r){return new this.schedulerActionCtor(this,n).schedule(r,t)}}_c.now=jg.now;const lI=new class T6 extends _c{constructor(n,t=_c.now){super(n,t),this.actions=[],this._active=!1}flush(n){const{actions:t}=this;if(this._active)return void t.push(n);let r;this._active=!0;do{if(r=n.execute(n.state,n.delay))break}while(n=t.shift());if(this._active=!1,r){for(;n=t.shift();)n.unsubscribe();throw r}}}(class S6 extends D6{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){var r;if(this.closed)return this;this.state=n;const i=this.id,s=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(s,i,t)),this.pending=!0,this.delay=t,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(s,this.id,t),this}requestAsyncId(n,t,r=0){return Td.setInterval(n.flush.bind(n,this),r)}recycleAsyncId(n,t,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&Td.clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(n,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let i,r=!1;try{this.work(n)}catch(s){r=!0,i=s||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){const{id:n,scheduler:t}=this,{actions:r}=t;this.work=this.state=this.scheduler=null,this.pending=!1,Bc(r,this),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}}),M6=lI;function uI(e=0,n,t=M6){let r=-1;return null!=n&&(eM(n)?t=n:r=n),new nt(i=>{let s=function I6(e){return e instanceof Date&&!isNaN(e)}(e)?+e-t.now():e;s<0&&(s=0);let o=0;return t.schedule(function(){i.closed||(i.next(o++),0<=r?this.schedule(void 0,r):i.complete())},s)})}function uy(e,n){const t=Xe(e)?e:()=>e,r=i=>i.error(t());return new nt(n?i=>n.schedule(r,0,i):r)}function dy(e){return new Qr({fromObject:e})}function dI(e){const n=Object.entries(e).reduce((t,[r,i])=>(t[r]=String(i),t),{});return new xn(n)}const fI="Watchdog fake error";function Xr(e,n){return`${e.endsWith("/")?e.slice(0,-1):e}${n.startsWith("/")?n:`/${n}`}`}let fy=(()=>{class e{constructor(t,r){this.http=t,this.context=r}getExistingCards(){const{merchantId:t,userAuthToken:r}=this.context.data.payment();if(!r)return An([]);const i=dy({merchantId:t}),s=dI({[xo_customHeaders_skipToastr]:!0}),o=Xr(this.host(),"/api/UserPaymentMethods");return this.http.get(o,{params:i,headers:s}).pipe(kt(a=>a.map(c=>({...c,name:c.name.toLocaleLowerCase(),type:c.type.toLocaleLowerCase()}))),kt(a=>a.filter(c=>"card"===c.type)),ko(()=>An([])))}removeCard(t){const{merchantId:r}=this.context.data.payment(),i=dy({merchantId:r}),s=Xr(this.host(),`/api/UserPaymentMethods/${t}`);return this.http.delete(s,{params:i})}host(){return this.context.data.settings().urls.billingProfiles}static#e=this.\u0275fac=function(r){return new(r||e)(k(Dd),k(xe))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();const hI=["toast-component",""];function N6(e,n){if(1&e){const t=mt();S(0,"button",5),te("click",function(){return ne(t),re(x().remove())}),S(1,"span",6),z(2,"\xd7"),T()()}}function k6(e,n){if(1&e&&(go(0),z(1),yo()),2&e){const t=x(2);C(),ke("[",t.duplicatesCount+1,"]")}}function P6(e,n){if(1&e&&(S(0,"div"),z(1),ee(2,k6,2,1,"ng-container",4),T()),2&e){const t=x();qr(t.options.titleClass),Lt("aria-label",t.title),C(),ke(" ",t.title," "),C(),P("ngIf",t.duplicatesCount)}}function O6(e,n){if(1&e&&ge(0,"div",7),2&e){const t=x();qr(t.options.messageClass),P("innerHTML",t.message,Tr)}}function R6(e,n){if(1&e&&(S(0,"div",8),z(1),T()),2&e){const t=x();qr(t.options.messageClass),Lt("aria-label",t.message),C(),ke(" ",t.message," ")}}function F6(e,n){if(1&e&&(S(0,"div"),ge(1,"div",9),T()),2&e){const t=x();C(),mo("width",t.width()+"%")}}class $6{_attachedHost;component;viewContainerRef;injector;constructor(n,t){this.component=n,this.injector=t}attach(n,t){return this._attachedHost=n,n.attach(this,t)}detach(){const n=this._attachedHost;if(n)return this._attachedHost=void 0,n.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class G6{_attachedPortal;_disposeFn;attach(n,t){return this._attachedPortal=n,this.attachComponentPortal(n,t)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(n){this._disposeFn=n}}class z6{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new Nt;_activate=new Nt;_manualClose=new Nt;_resetTimeout=new Nt;_countDuplicate=new Nt;constructor(n){this._overlayRef=n}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(n,t){n&&this._resetTimeout.next(),t&&this._countDuplicate.next(++this.duplicatesCount)}}class Md{toastId;config;message;title;toastType;toastRef;_onTap=new Nt;_onAction=new Nt;constructor(n,t,r,i,s,o){this.toastId=n,this.config=t,this.message=r,this.title=i,this.toastType=s,this.toastRef=o,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(n){this._onAction.next(n)}onAction(){return this._onAction.asObservable()}}const mI=new N("ToastConfig");class q6 extends G6{_hostDomElement;_componentFactoryResolver;_appRef;constructor(n,t,r){super(),this._hostDomElement=n,this._componentFactoryResolver=t,this._appRef=r}attachComponentPortal(n,t){const r=this._componentFactoryResolver.resolveComponentFactory(n.component);let i;return i=r.create(n.injector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()}),t?this._hostDomElement.insertBefore(this._getComponentRootNode(i),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(i)),i}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let W6=(()=>{class e{_document=A(Vt);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._document.createElement("div");t.classList.add("overlay-container"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),this._containerElement=t}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class Z6{_portalHost;constructor(n){this._portalHost=n}attach(n,t=!0){return this._portalHost.attach(n,t)}detach(){return this._portalHost.detach()}}let Y6=(()=>{class e{_overlayContainer=A(W6);_componentFactoryResolver=A(Yi);_appRef=A(jn);_document=A(Vt);_paneElements=new Map;create(t,r){return this._createOverlayRef(this.getPaneElement(t,r))}getPaneElement(t="",r){return this._paneElements.get(r)||this._paneElements.set(r,{}),this._paneElements.get(r)[t]||(this._paneElements.get(r)[t]=this._createPaneElement(t,r)),this._paneElements.get(r)[t]}_createPaneElement(t,r){const i=this._document.createElement("div");return i.id="toast-container",i.classList.add(t),i.classList.add("toast-container"),r?r.getContainerElement().appendChild(i):this._overlayContainer.getContainerElement().appendChild(i),i}_createPortalHost(t){return new q6(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new Z6(this._createPortalHost(t))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),vc=(()=>{class e{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(t,r,i,s,o){this.overlay=r,this._injector=i,this.sanitizer=s,this.ngZone=o,this.toastrConfig={...t.default,...t.config},t.config.iconClasses&&(this.toastrConfig.iconClasses={...t.default.iconClasses,...t.config.iconClasses})}show(t,r,i={},s=""){return this._preBuildNotification(s,t,r,this.applyConfig(i))}success(t,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",t,r,this.applyConfig(i))}error(t,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",t,r,this.applyConfig(i))}info(t,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",t,r,this.applyConfig(i))}warning(t,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",t,r,this.applyConfig(i))}clear(t){for(const r of this.toasts)if(void 0!==t){if(r.toastId===t)return void r.toastRef.manualClose()}else r.toastRef.manualClose()}remove(t){const r=this._findToast(t);if(!r||(r.activeToast.toastRef.close(),this.toasts.splice(r.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){const i=this.toasts[this.currentlyActive].toastRef;i.isInactive()||(this.currentlyActive=this.currentlyActive+1,i.activate())}return!0}findDuplicate(t="",r="",i,s){const{includeTitleDuplicates:o}=this.toastrConfig;for(const a of this.toasts)if((!o||o&&a.title===t)&&a.message===r)return a.toastRef.onDuplicate(i,s),a;return null}applyConfig(t={}){return{...this.toastrConfig,...t}}_findToast(t){for(let r=0;r<this.toasts.length;r++)if(this.toasts[r].toastId===t)return{index:r,activeToast:this.toasts[r]};return null}_preBuildNotification(t,r,i,s){return s.onActivateTick?this.ngZone.run(()=>this._buildNotification(t,r,i,s)):this._buildNotification(t,r,i,s)}_buildNotification(t,r,i,s){if(!s.toastComponent)throw new Error("toastComponent required");const o=this.findDuplicate(i,r,this.toastrConfig.resetTimeoutOnDuplicate&&s.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&i||r)&&this.toastrConfig.preventDuplicates&&null!==o)return o;this.previousToastMessage=r;let a=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(a=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const c=this.overlay.create(s.positionClass,this.overlayContainer);this.index=this.index+1;let l=r;r&&s.enableHtml&&(l=this.sanitizer.sanitize(bn.HTML,r));const u=new z6(c),d=new Md(this.index,s,l,i,t,u),h=Ne.create({providers:[{provide:Md,useValue:d}],parent:this._injector}),p=new $6(s.toastComponent,h),m=c.attach(p,s.newestOnTop);u.componentInstance=m.instance;const g={toastId:this.index,title:i||"",message:r||"",toastRef:u,onShown:u.afterActivate(),onHidden:u.afterClosed(),onTap:d.onTap(),onAction:d.onAction(),portal:m};return a||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{g.toastRef.activate()})),this.toasts.push(g),g}static \u0275fac=function(r){return new(r||e)(k(mI),k(Y6),k(Ne),k(Bg),k(pe))};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const K6={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",toastComponent:(()=>{class e{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=se(-1);toastClasses="";state;get _state(){return this.state()}get displayStyle(){if("inactive"===this.state().value)return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(t,r,i){this.toastrService=t,this.toastPackage=r,this.ngZone=i,this.message=r.message,this.title=r.title,this.options=r.config,this.originalTimeout=r.config.timeOut,this.toastClasses=`${r.toastType} ${r.config.toastClass}`,this.sub=r.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=r.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=r.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=r.toastRef.countDuplicate().subscribe(s=>{this.duplicatesCount=s}),this.state=se({value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.update(t=>({...t,value:"active"})),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width()||100===this.width()||!this.options.timeOut)return;const t=(new Date).getTime();this.width.set((this.hideTime-t)/this.options.timeOut*100),"increasing"===this.options.progressAnimation&&this.width.update(i=>100-i),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.update(t=>({...t,value:"active"})),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state().value&&(clearTimeout(this.timeout),this.state.update(t=>({...t,value:"removed"})),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state().value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state().value&&"extendedTimeOut"!==this.options.disableTimeOut&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state().value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(t,r){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(t),r)):this.timeout=setTimeout(()=>t(),r)}outsideInterval(t,r){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(t),r)):this.intervalId=setInterval(()=>t(),r)}runInsideAngular(t){this.ngZone?this.ngZone.run(()=>t()):t()}static \u0275fac=function(r){return new(r||e)(v(vc),v(Md),v(pe))};static \u0275cmp=Te({type:e,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(r,i){1&r&&te("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),2&r&&(_u("@flyInOut",i._state),qr(i.toastClasses),mo("display",i.displayStyle))},standalone:!0,features:[Bm],attrs:hI,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(r,i){1&r&&ee(0,N6,3,0,"button",0)(1,P6,3,5,"div",1)(2,O6,1,3,"div",2)(3,R6,2,4,"div",3)(4,F6,2,2,"div",4),2&r&&(P("ngIf",i.options.closeButton),C(),P("ngIf",i.title),C(),P("ngIf",i.message&&i.options.enableHtml),C(),P("ngIf",i.message&&!i.options.enableHtml),C(),P("ngIf",i.options.progressBar))},dependencies:[td],encapsulation:2,data:{animation:[No("flyInOut",[hc("inactive",Je({opacity:0})),hc("active",Je({opacity:1})),hc("removed",Je({opacity:0})),mr("inactive => active",pr("{{ easeTime }}ms {{ easing }}")),mr("active => removed",pr("{{ easeTime }}ms {{ easing }}"))])]},changeDetection:0})}return e})()},Q6=(e={})=>Ss([{provide:mI,useValue:{default:K6,config:e}}]);let X6=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[Q6(t)]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=Ct({type:e});static \u0275inj=dt({})}return e})();const{isArray:J6}=Array,{getPrototypeOf:eG,prototype:tG,keys:nG}=Object;const{isArray:sG}=Array;function cG(e,n){return e.reduce((t,r,i)=>(t[r]=n[i],t),{})}function gI(...e){const n=function j$(e){return Xe(zg(e))?e.pop():void 0}(e),{args:t,keys:r}=function rG(e){if(1===e.length){const n=e[0];if(J6(n))return{args:n,keys:null};if(function iG(e){return e&&"object"==typeof e&&eG(e)===tG}(n)){const t=nG(n);return{args:t.map(r=>n[r]),keys:t}}}return{args:e,keys:null}}(e),i=new nt(s=>{const{length:o}=t;if(!o)return void s.complete();const a=new Array(o);let c=o,l=o;for(let u=0;u<o;u++){let d=!1;dr(t[u]).subscribe(nn(s,f=>{d||(d=!0,l--),a[u]=f},()=>c--,void 0,()=>{(!c||!d)&&(l||s.next(r?cG(r,a):a),s.complete())}))}});return n?i.pipe(function aG(e){return kt(n=>function oG(e,n){return sG(n)?e(...n):e(n)}(e,n))}(n)):i}function yI(e){return e&&e.replace(/\s+/g," ").trim()}let Ro=(()=>{class e{constructor(t,r,i){this.context=t,this.http=r,this.mapper=i}getAvailablePaymentSystems(){const{currency:t,userId:r,merchantId:i}=this.context.data.payment(),s=dy({currency:t,payerId:r}),o=Xr(this.host(),`/api/merchants/${i}/settings`);return this.http.get(o,{params:s}).pipe(kt(a=>{const c=new Set;return{payments:a.payments.filter(u=>!c.has(u.name)&&(c.add(u.name),!0))}}),ko(()=>An({payments:[]})))}getPaymentInfo(t){const{merchantId:r}=this.context.data.payment(),i=Xr(this.host(),`/api/merchants/${r}/payments/${t}`);return this.http.get(i)}getGooglePaySettings(){const{merchantId:t}=this.context.data.payment(),r=Xr(this.host(),`/api/googlepay/${t}/settings`);return this.http.get(r).pipe(kt(i=>({...i,allowedCardNetworks:i.allowedCardNetworks.map(s=>s.toUpperCase())})))}pay(){const t=this.context.data.payment(),r=this.context.data.settings(),i=this.context.data.userProvidedInfo(),s=this.context.data.deviceInfo(),o={...s?.browserData};t.ipAddress&&(o.ipAddress=t.ipAddress);const c={headers:dI(o)},l=Xr(this.host(),`/api/merchants/${t.merchantId}/payments`);let u=this.mapper.mapPaymentRequest(t,i,r,s),d="default";return"invoice-overridden"===r.paymentFlow.type&&this.context.callbacks.createInvoice?d="invoice-overridden":"payment-overridden"===r.paymentFlow.type&&this.context.callbacks.makePayment&&(d="payment-overridden"),"card"===u.requisites.type&&r.paymentFlow.tokenizeCard?this.getSecretKey().pipe(Po(f=>_i(this.encrypt(u.requisites,f))),Po(f=>"default"!==d?this.getCardTokenData(f,t.merchantId).pipe(kt(h=>h.token),ko(()=>An(f)),Po(h=>(u.requisites={type:"card",paymentToken:h},this.makeCallback(d,u,l,c)))):(u.requisites={type:"card",paymentToken:f},this.http.post(l,u,c)))):"default"!==d?this.makeCallback(d,u,l,c):this.http.post(l,u,c)}getCardTokenData(t,r){const i=Xr(this.host(),`api/CardData/${r}/tokenize`);return this.http.post(i,{ei:2,invoice:t,es:{uo:!0}})}makeCallback(t,r,i,s){if("invoice-overridden"===t)return this.createInvoiceCallback(r).pipe(Po(o=>this.http.post(i,o,s)));if("payment-overridden"===t)return this.makePaymentCallback(r);throw new Error("Not implemented flow type")}getSecretKey(){const t=Xr(this.host(),"/api/security/key/2?formatId=2&size=4096");return this.http.get(t)}encrypt(t,r){var i=this;return is(function*(){const s=JSON.stringify(t),o=function dG(e){return function fG(e){const n=new ArrayBuffer(e.length),t=new Uint8Array(n);for(let r=0,i=e.length;r<i;r++)t[r]=e.charCodeAt(r);return n}(atob(e))}(r);try{const a=yield window.crypto.subtle.importKey("spki",o,{name:"RSA-OAEP",hash:"SHA-1"},!1,["encrypt"]),c=(new TextEncoder).encode(s);return function uG(e){return btoa(String.fromCharCode(...new Uint8Array(e)))}(yield window.crypto.subtle.encrypt({name:"RSA-OAEP"},a,c))}catch(a){throw i.context.events.error.emit(a),a}})()}makePaymentCallback(t){return new nt(r=>(this.context.callbacks.makePayment(t).then(i=>{r.next(i),r.complete()}).catch(i=>r.error(i)),()=>{}))}createInvoiceCallback(t){return new nt(r=>(this.context.callbacks.createInvoice(t).then(i=>{r.next(i),r.complete()}).catch(i=>r.error(i)),()=>{}))}host(){return this.context.data.settings().urls.processing}static#e=this.\u0275fac=function(r){return new(r||e)(k(xe),k(Dd),k(us))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();const _I=new N("moto-window-document",{providedIn:"root",factory:()=>window}),vI=new N("LANGUAGE_TOKEN",{factory:()=>A(_I).navigator.language}),CI=new N("APPLE_PAY_JS_SERVICE_TOKEN");function hy(e,n,t){return n&&t&&"net"==t?e+n:e}let py=(()=>{class e{constructor(t,r){this.clientLanguage=t,this.applePayJsService=r,this.name="applepay"}get defaultCountryCode(){if(!this.clientLanguage)return"GB";if(this.clientLanguage.match(/-/)){const[t,r]=this.clientLanguage.split("-");return r}return this.clientLanguage}isAvailable(t){return t.userAuthToken?this.applePayJsService.canMakePayment():An(!1)}pay(t,r){const{amount:i,currency:s,description:o,billingAddress:a,merchantId:c,userAuthToken:l,tax:u,amountType:d}=t,f=a?.country?a.country:this.defaultCountryCode,h={total:{amount:hy(i,u,d).toString(),currency:s.toUpperCase(),label:o},countryCode:f.toUpperCase(),merchantId:c,userToken:l,processingUrl:r};return this.applePayJsService.pay(h).pipe(kt(({payment:p})=>JSON.stringify(p)))}static#e=this.\u0275fac=function(r){return new(r||e)(k(vI),k(CI))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),bI=(()=>{class e{constructor(t){this.context=t,this.versionData={apiVersion:2,apiVersionMinor:0}}setData(t){this.settings=t,this.paymentMethodSpec={type:"CARD",parameters:{allowedCardNetworks:t.allowedCardNetworks,allowedAuthMethods:this.context.data.settings().googlePay.allowedAuthMethods}}}isAvailable(){return this.context.clients.googlePay&&this.paymentMethodSpec?_i(this.context.clients.googlePay.isReadyToPay({...this.versionData,allowedPaymentMethods:[this.paymentMethodSpec]}).then(t=>t.result)):An(!1)}pay(t){if(!this.paymentMethodSpec||!this.settings)return uy(()=>"Something went wrong");const r={...this.versionData,allowedPaymentMethods:[{...this.paymentMethodSpec,tokenizationSpecification:{type:"PAYMENT_GATEWAY",parameters:{gateway:this.settings.gateway.name,gatewayMerchantId:this.settings.gateway.merchantId}}}],merchantInfo:{merchantId:this.settings.merchant.id,merchantName:this.settings.merchant.name},transactionInfo:{totalPriceStatus:"FINAL",totalPrice:t.price,currencyCode:t.currency,countryCode:t.countryCode,transactionId:t.paymentId}};return _i(this.context.clients.googlePay.loadPaymentData(r).then(i=>i.paymentMethodData.tokenizationData.token))}static#e=this.\u0275fac=function(r){return new(r||e)(k(xe))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),my=(()=>{class e{constructor(t,r,i,s){this.clientLanguage=t,this.googlePayJsService=r,this.context=i,this.processing=s,this.name="googlepay"}get defaultCountryCode(){if(!this.clientLanguage)return"GB";if(this.clientLanguage.match(/-/)){const[t,r]=this.clientLanguage.split("-");return r}return this.clientLanguage}isAvailable(t){return t.userAuthToken?this.processing.getGooglePaySettings().pipe(Po(r=>(this.context.clients.googlePay=new google.payments.api.PaymentsClient({environment:r.isTest?"TEST":"PRODUCTION"}),this.googlePayJsService.setData(r),this.googlePayJsService.isAvailable())),ko(()=>An(!1))):An(!1)}pay(t){const{paymentId:r,amount:i,currency:s,billingAddress:o,tax:a,amountType:c}=t,u={countryCode:o?.country?o.country:this.defaultCountryCode,currency:s.toUpperCase(),paymentId:r,price:hy(i,a,c).toString()};return this.googlePayJsService.pay(u)}static#e=this.\u0275fac=function(r){return new(r||e)(k(vI),k(bI),k(xe),k(Ro))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),gy=(()=>{class e{constructor(t,r,i,s,o){this.context=t,this.processingService=r,this.billingProfilesService=i,this.applePayService=s,this.googlePayService=o}refreshExistingCards(t){let r;this.context.data.cardsLoading.set(!0),r=t?An(t):this.billingProfilesService.getExistingCards().pipe(kt(i=>i.concat().sort(s=>s.isDefault?-1:1))),r.subscribe(i=>{i.length?(this.context.componentsStates.cardForm.update(s=>({...s,enabled:!1})),this.context.componentsStates.cardList().enabled||this.context.componentsStates.cardList.update(s=>({...s,enabled:!0}))):(this.context.componentsStates.cardForm.update(s=>({...s,enabled:!0})),this.context.componentsStates.cardList.update(s=>({...s,enabled:!1})),"existing-card"===this.context.data.userProvidedInfo()?.requisites?.type&&this.context.data.userProvidedInfo.update(s=>({...s,requisites:void 0,paymentSystemName:void 0}))),this.context.data.loadedExistingCards.set(i),this.context.data.cardsLoading.set(!1)})}refreshPaymentSystems(){this.context.data.paymentSystemsLoading.set(!0),this.processingService.getAvailablePaymentSystems().subscribe(t=>{const r=t.payments.map(a=>a.name),i=this.context.data.payment(),o=[this.applePayService,this.googlePayService].filter(a=>r.includes(a.name)).map(a=>({name:a.name,isAvailable$:a.isAvailable(i)}));o.length>0?gI(o.map(a=>a.isAvailable$)).subscribe(a=>{const c=o.filter((u,d)=>!a[d]).map(u=>u.name),l=t.payments.filter(u=>!c.includes(u.name));this.applyPaymentSystems(l)}):this.applyPaymentSystems(t.payments)})}applyPaymentSystems(t){this.context.data.loadedPaymentSystems.set(t),t.some(r=>"card"===r.name)||(this.context.componentsStates.cardForm.update(r=>({...r,enabled:!1,isRequired:!1})),this.context.componentsStates.additionalForm.update(r=>({...r,enabled:!1,isRequired:!1})),this.context.componentsStates.cardList.update(r=>({...r,enabled:!1,isRequired:!1}))),t.some(r=>"card"!==r.name)||this.context.componentsStates.apmList.update(r=>({...r,enabled:!1,isRequired:!1})),this.context.data.paymentSystemsLoading.set(!1)}static#e=this.\u0275fac=function(r){return new(r||e)(k(xe),k(Ro),k(fy),k(py),k(my))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();var hG=ct(634),EI=ct.n(hG),wI=function(e){return e.mastercard="CVC Card Verification Code",e.visa="CVV (Card Verification Value)",e["american-express"]="CID (Card Identification Number)",e.unionpay="CVN (Card Verification Number)",e.jcb="CVV (Card Verification Value)",e.maestro="CVV (Card Verification Value)",e.discover="CID (Card Identification Number)",e}(wI||{});let yy=(()=>{class e{transform(t,r,i=null,s=null){const[o]=EI()(t);if(!o)return"code"===r&&s?s[i]:i;switch(r){case"logo":return this.getLogo(o);case"payment-system":return o.niceType;case"card-number-mask":return"0000 0000 0000 0000 000";case"secure-text":return wI[o.type];case"code":if(s){const c=s[o.code.name];if(c)return c}return o.code.name;case"code-mask":{const{size:a}=o.code;return Array.from({length:a}).fill("0").join("")}}}getLogo(t){if(t)return`https://cdn.motopays.com/images/${Ao[t.type]||Ao.default}.svg`}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275pipe=ft({name:"cardInfo",type:e,pure:!0})}return e})(),DI=(()=>{class e{constructor(){this.selectEvent=new ve,this.removeEvent=new ve,this.optionsClickedEvent=new ve,this.isOpenPopup=!1,this.popupId=function v5(e=1){return window.crypto.getRandomValues(new Uint32Array(e)).toString()}()}hidePopup(t){t.closest("[data-card-popup]")?.getAttribute("data-card-popup")===this.popupId||(this.isOpenPopup=!1)}onOptionsClick(t){t.isPopupClick=!0,this.optionsClickedEvent.emit(this.option),this.isOpenPopup=!this.isOpenPopup}select(t){t.isPopupClick||this.option.selected()||this.selectEvent.emit(this.option)}remove(t){t.isPopupClick=!0,this.removeEvent.emit(this.option.item),this.isOpenPopup=!1}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Te({type:e,selectors:[["moto-card"]],hostBindings:function(r,i){1&r&&te("click",function(o){return i.hidePopup(o.target)},0,Tb)},inputs:{option:"option",language:"language"},outputs:{selectEvent:"select",removeEvent:"remove",optionsClickedEvent:"optionsClicked"},decls:18,vars:26,consts:[[1,"__ndb-card",3,"click"],["data-locator","card-active-circle",1,"__ndb-card-active-circle",3,"id"],["alt","card logo",1,"__ndb-card-logo",3,"src"],[1,"__ndb-card-payment-name","fz-14","fw-500"],[1,"__ndb-card-number","fz-14","fw-500"],[1,"__ndb-card-more"],[1,"material-icons","pointer","__ndb-card-more-icon","description-text","fz-18",3,"click"],[1,"__ndb-card-more-popup"],["data-locator","remove-btn",1,"__ndb-card-more-popup-item","fz-14","fw-500",3,"click","id"]],template:function(r,i){1&r&&(S(0,"div",0),te("click",function(o){return i.select(o)}),ge(1,"div",1),Ie(2,"slice"),ge(3,"moto-picture",2),Ie(4,"cardInfo"),S(5,"span",3),z(6),Ie(7,"cardInfo"),T(),S(8,"span",4),z(9),Ie(10,"slice"),T(),S(11,"div",5)(12,"i",6),te("click",function(o){return i.onOptionsClick(o)}),z(13,"more_vert"),T(),S(14,"div",7)(15,"span",8),Ie(16,"slice"),te("click",function(o){return i.remove(o)}),z(17),T()()()()),2&r&&(C(),ln("selected",i.option.selected()),P("id","select-card-"+At(2,11,i.option.item.name,-6)+"-button"),C(2),P("src",At(4,14,i.option.item.name,"logo")),C(3),Tt(At(7,17,i.option.item.name,"payment-system")),C(3),Tt(At(10,20,i.option.item.name,-6)),C(2),Lt("data-card-popup",i.popupId),C(3),ln("open",i.isOpenPopup),C(),P("id","remove-card-"+At(16,23,i.option.item.name,-6)+"-button"),C(2),Tt(i.language.existingCards.removeCard))},dependencies:[Io,Tg,yy],styles:['[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.__ndb-card[_ngcontent-%COMP%]{display:flex;align-items:center;border:1px solid var(--ndb-card-border-color);border-radius:8px;padding:14px;gap:10px}@media (max-width: 768px){.__ndb-card[_ngcontent-%COMP%]{padding:4px}}.__ndb-card-active-circle[_ngcontent-%COMP%]{position:relative;height:15px;width:15px;min-height:15px;min-width:15px;border:1px solid #c9ccd8;border-radius:50%;cursor:pointer}.__ndb-card-active-circle.selected[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0;left:0;height:100%;width:100%;border:4px solid #e53;box-sizing:border-box;border-radius:50%}.__ndb-card-more[_ngcontent-%COMP%]{position:relative;display:flex;margin-left:auto}.__ndb-card-more-icon[_ngcontent-%COMP%]{margin:auto}.__ndb-card-more-popup[_ngcontent-%COMP%]{display:none;position:absolute;z-index:1;top:calc(100% + 10px);left:50%;transform:translate(-60%);background-color:#fff;border-radius:8px;box-shadow:0 4px 12px #29304d1f;white-space:nowrap;overflow:hidden;animation:_ngcontent-%COMP%_show-popup .3s cubic-bezier(.25,.1,.25,1)}@media (max-width: 768px){.__ndb-card-more-popup[_ngcontent-%COMP%]{top:calc(100% + 5px);transform:translate(-70%);animation:_ngcontent-%COMP%_mobile-show-popup .3s cubic-bezier(.25,.1,.25,1)}}.__ndb-card-more-popup.open[_ngcontent-%COMP%]{display:flex;flex-direction:column}.__ndb-card-more-popup-item[_ngcontent-%COMP%]{padding:16px 12px;cursor:pointer;transition:background-color .3s cubic-bezier(.25,.1,.25,1)}@media (max-width: 768px){.__ndb-card-more-popup-item[_ngcontent-%COMP%]{font-size:12px}}.__ndb-card-more-popup-item[_ngcontent-%COMP%]:hover{background-color:#c9ccd84d}@keyframes _ngcontent-%COMP%_show-popup{0%{opacity:0;transform:translate(-60%,50%)}to{opacity:1;transform:translate(-60%)}}@keyframes _ngcontent-%COMP%_mobile-show-popup{0%{opacity:0;transform:translate(-70%,50%)}to{opacity:1;transform:translate(-70%)}}'],changeDetection:0})}return e})();function pG(e,n){if(1&e){const t=mt();S(0,"moto-card",8),te("select",function(i){return ne(t),re(x().selectCard(i))})("remove",function(i){return ne(t),re(x().removeCard(i))})("optionsClicked",function(i){return ne(t),re(x().onOptionsClick(i))}),T()}if(2&e){const t=n.$implicit;x();const r=Ke(0);P("option",t)("language",r)}}function mG(e,n){if(1&e){const t=mt();S(0,"button",9),te("click",function(){return ne(t),re(x().showCardForm())})("focusin",function(){return ne(t),re(x().onAddCardFocus())}),S(1,"i",10),z(2,"add"),T(),S(3,"span",11),z(4),T()()}if(2&e){x();const t=Ke(0);C(4),Tt(t.existingCards.addNewCard)}}let _y=(()=>{class e{constructor(t,r,i,s){this.billingProfiles=t,this.context=r,this.toastr=i,this.refreshService=s,this.isCardListShown=se(!0),this.cardFormState=this.context.componentsStates.cardForm,this.componentState=this.context.componentsStates.cardList,this.isCardFormVisible=this.context.visibility.cardForm,this.settings=this.context.data.settings,this.loadedExistingCards=this.context.data.loadedExistingCards,this.cardOptions=ce(()=>this.loadedExistingCards().map(a=>new x5(a))),ug(()=>{const o=this.cardOptions();o?.length&&ar(()=>{this.selectCardImpl(o[0],o)})})}showCardForm(){this.context.events.analytics.emit(new Ae("add-card-button-click")),this.isCardListShown.set(!1),this.cardFormState.update(t=>({...t,enabled:!0})),this.context.data.userProvidedInfo.update(t=>({...t,requisites:void 0,paymentSystemName:void 0})),this.resetSelected()}getSelectedCard(){return this.cardOptions().find(t=>t.selected())}removeCard(t){this.context.events.analytics.emit(new Ae("remove-card-button-click",{last4Digits:t.name.slice(-4)})),this.billingProfiles.removeCard(t.id).subscribe(r=>{this.refreshService.refreshExistingCards(this.loadedExistingCards().filter(s=>s.id!==t.id));const i=this.settings().language.notifications.cardDeleted;this.toastr.success(i.text,i.title)})}toggleCardList(){this.isCardListShown.update(t=>!t),this.context.events.analytics.emit(new Ae("cards-toggle-button-click",{toggle:this.isCardListShown()}))}onOptionsClick(t){this.context.events.analytics.emit(new Ae("card-options-button-click",{last4Digits:t.item.name.slice(-4)}))}selectCard(t){this.context.events.analytics.emit(new Ae("select-card-button-click",{last4Digits:t.item.name.slice(-4)})),this.selectCardImpl(t,this.cardOptions())}onAddCardFocus(){this.context.events.analytics.emit(new Ae("add-card-button-focus"),!0)}selectCardImpl(t,r){r.find(s=>s.selected())?.setSelected(!1),t.setSelected(!0),this.context.data.userProvidedInfo.update(s=>({...s,paymentSystemName:"card",requisites:{type:"existing-card",value:t.item}})),this.cardFormState().enabled&&this.cardFormState.update(s=>({...s,enabled:!1}))}resetSelected(){this.getSelectedCard()?.setSelected(!1)}static#e=this.\u0275fac=function(r){return new(r||e)(v(fy),v(xe),v(vc),v(gy))};static#t=this.\u0275cmp=Te({type:e,selectors:[["moto-card-list"]],decls:12,vars:6,consts:[[1,"__ndb-card-list"],["id","toggle-card-list-button",1,"__ndb-card-list-toggle",3,"click"],[1,"fw-700"],[1,"material-icons","font-description","__ndb-card-list-toggle-icon"],[1,"block"],[1,"__ndb-card-list-options"],[1,"__ndb-card-list-options-item",3,"option","language"],["id","add-card-button",1,"full-width"],[1,"__ndb-card-list-options-item",3,"select","remove","optionsClicked","option","language"],["id","add-card-button",1,"full-width",3,"click","focusin"],[1,"material-icons","fz-18"],[1,"text"]],template:function(r,i){if(1&r){const s=mt();Sn(0),S(1,"div",0)(2,"div",1),te("click",function(){return ne(s),re(i.toggleCardList())}),S(3,"span",2),z(4),T(),S(5,"i",3),z(6,"keyboard_arrow_up"),T()(),S(7,"div",4)(8,"div",5),un(9,pG,1,2,"moto-card",6,or),T()(),ee(11,mG,5,1,"button",7),T()}if(2&r){const s=hn(i.settings().language);C(4),Tt(s.existingCards.manageCardsHeader),C(),ln("active",i.isCardListShown()),C(2),P("@ANToggleList",i.isCardListShown()?"show":"hide"),C(2),dn(i.cardOptions()),C(2),oe(i.isCardFormVisible()?-1:11)}},dependencies:[DI],styles:["[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.full-width[_ngcontent-%COMP%]{width:100%}@media (min-width: 769px){.ndb-mobile[_ngcontent-%COMP%]{display:none}}@media (max-width: 768px){.ndb-desktop[_ngcontent-%COMP%]{display:none}}.margin-auto[_ngcontent-%COMP%]{margin:auto}.flex[_ngcontent-%COMP%]{display:flex}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.none[_ngcontent-%COMP%]{display:none}.block[_ngcontent-%COMP%]{display:block}.events-none[_ngcontent-%COMP%]{pointer-events:none}.cursor-default[_ngcontent-%COMP%]{cursor:default}.pointer[_ngcontent-%COMP%]{cursor:pointer}.bold[_ngcontent-%COMP%]{font-weight:700!important}.font-middle[_ngcontent-%COMP%]{vertical-align:middle}.rotate[_ngcontent-%COMP%], .__ndb-card-list-toggle-icon.active[_ngcontent-%COMP%]{transform:rotate(-180deg)}.__ndb-card-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px}.__ndb-card-list-options[_ngcontent-%COMP%]{display:flex;flex-direction:column}.__ndb-card-list-options-item[_ngcontent-%COMP%]{width:100%}.__ndb-card-list-options-item[_ngcontent-%COMP%]:not(:first-child){margin-top:10px}.__ndb-card-list-toggle[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px;cursor:pointer;-webkit-user-select:none;user-select:none}.__ndb-card-list-toggle-icon[_ngcontent-%COMP%]{transform:rotate(0);transition:transform .3s cubic-bezier(.25,.1,.25,1)}"],data:{animation:[F5,L5,V5({animationName:"ANToggleList",fromState:"hide",toState:"show",fromStyles:{height:"0px",overflow:"hidden"},toStyles:{height:"*"}})]},changeDetection:0})}return e})();function SI(e,n=lI){return mn((t,r)=>{let i=null,s=null,o=null;const a=()=>{if(i){i.unsubscribe(),i=null;const l=s;s=null,r.next(l)}};function c(){const l=o+e,u=n.now();if(u<l)return i=this.schedule(void 0,l-u),void r.add(i);a()}t.subscribe(nn(r,l=>{s=l,o=n.now(),i||(i=n.schedule(c,e),r.add(i))},()=>{a(),r.complete()},void 0,()=>{s=i=null}))})}let TI=(()=>{class e{constructor(){this.detector$=new Nt}detectChanges(){this.detector$.next()}listenChangeDetection(){return this.detector$.asObservable()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),Id=(()=>{class e{constructor(t){this.injector=t,this.unsubscriber$=new Nt,this.childrenDetector$=new Nt}ngOnDestroy(){this.unsubscribe()}listenChildrenDetection(t){const r="local"===t,i="global"===t,s="full"===t;this.childrenDetector$.asObservable().pipe(SI(10),this.untilDestroy()).subscribe(()=>{(r||s)&&this.localDetect(),(i||s)&&this.globalDetect()})}localDetect(){this.injector.get(Eo).detectChanges()}globalDetect(){this.injector.get(TI).detectChanges()}detect(){this.localDetect(),this.globalDetect()}untilDestroy(){return function gG(e){return mn((n,t)=>{dr(e).subscribe(nn(t,()=>t.complete(),Cf)),!t.closed&&n.subscribe(t)})}(this.unsubscriber$.asObservable())}unsubscribe(){this.unsubscriber$.next()}static#e=this.\u0275fac=function(r){return new(r||e)(v(Ne))};static#t=this.\u0275cmp=Te({type:e,selectors:[["ng-component"]],decls:0,vars:0,template:function(r,i){},encapsulation:2})}return e})(),MI=(()=>{class e{constructor(t,r){this._renderer=t,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static#e=this.\u0275fac=function(r){return new(r||e)(v(Ar),v(on))};static#t=this.\u0275dir=Z({type:e})}return e})(),as=(()=>{class e extends MI{static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Ft(e)))(i||e)}})();static#t=this.\u0275dir=Z({type:e,features:[me]})}return e})();const Nn=new N(""),yG={provide:Nn,useExisting:we(()=>Cc),multi:!0};let Cc=(()=>{class e extends as{writeValue(t){this.setProperty("checked",t)}static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Ft(e)))(i||e)}})();static#t=this.\u0275dir=Z({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,i){1&r&&te("change",function(o){return i.onChange(o.target.checked)})("blur",function(){return i.onTouched()})},features:[Pe([yG]),me]})}return e})();const _G={provide:Nn,useExisting:we(()=>Ad),multi:!0},CG=new N("");let Ad=(()=>{class e extends MI{constructor(t,r,i){super(t,r),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function vG(){const e=ic()?ic().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static#e=this.\u0275fac=function(r){return new(r||e)(v(Ar),v(on),v(CG,8))};static#t=this.\u0275dir=Z({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,i){1&r&&te("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[Pe([_G]),me]})}return e})();function Ei(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}function II(e){return null!=e&&"number"==typeof e.length}const Bt=new N(""),wi=new N(""),bG=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Pr{static min(n){return function AI(e){return n=>{if(Ei(n.value)||Ei(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t<e?{min:{min:e,actual:n.value}}:null}}(n)}static max(n){return function xI(e){return n=>{if(Ei(n.value)||Ei(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t>e?{max:{max:e,actual:n.value}}:null}}(n)}static required(n){return function NI(e){return Ei(e.value)?{required:!0}:null}(n)}static requiredTrue(n){return function kI(e){return!0===e.value?null:{required:!0}}(n)}static email(n){return function PI(e){return Ei(e.value)||bG.test(e.value)?null:{email:!0}}(n)}static minLength(n){return OI(n)}static maxLength(n){return RI(n)}static pattern(n){return function FI(e){if(!e)return xd;let n,t;return"string"==typeof e?(t="","^"!==e.charAt(0)&&(t+="^"),t+=e,"$"!==e.charAt(e.length-1)&&(t+="$"),n=new RegExp(t)):(t=e.toString(),n=e),r=>{if(Ei(r.value))return null;const i=r.value;return n.test(i)?null:{pattern:{requiredPattern:t,actualValue:i}}}}(n)}static nullValidator(n){return null}static compose(n){return UI(n)}static composeAsync(n){return $I(n)}}function OI(e){return n=>Ei(n.value)||!II(n.value)?null:n.value.length<e?{minlength:{requiredLength:e,actualLength:n.value.length}}:null}function RI(e){return n=>II(n.value)&&n.value.length>e?{maxlength:{requiredLength:e,actualLength:n.value.length}}:null}function xd(e){return null}function LI(e){return null!=e}function VI(e){return xu(e)?_i(e):e}function BI(e){let n={};return e.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function jI(e,n){return n.map(t=>t(e))}function HI(e){return e.map(n=>function EG(e){return!e.validate}(n)?n:t=>n.validate(t))}function UI(e){if(!e)return null;const n=e.filter(LI);return 0==n.length?null:function(t){return BI(jI(t,n))}}function vy(e){return null!=e?UI(HI(e)):null}function $I(e){if(!e)return null;const n=e.filter(LI);return 0==n.length?null:function(t){return gI(jI(t,n).map(VI)).pipe(kt(BI))}}function Cy(e){return null!=e?$I(HI(e)):null}function GI(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function zI(e){return e._rawValidators}function qI(e){return e._rawAsyncValidators}function by(e){return e?Array.isArray(e)?e:[e]:[]}function Nd(e,n){return Array.isArray(e)?e.includes(n):e===n}function WI(e,n){const t=by(n);return by(e).forEach(i=>{Nd(t,i)||t.push(i)}),t}function ZI(e,n){return by(n).filter(t=>!Nd(e,t))}class YI{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}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}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=vy(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Cy(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}}class Jt extends YI{get formDirective(){return null}get path(){return null}}class Jr extends YI{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class KI{constructor(n){this._cd=n}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}}let Di=(()=>{class e extends KI{constructor(t){super(t)}static#e=this.\u0275fac=function(r){return new(r||e)(v(Jr,2))};static#t=this.\u0275dir=Z({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){2&r&&ln("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[me]})}return e})(),kd=(()=>{class e extends KI{constructor(t){super(t)}static#e=this.\u0275fac=function(r){return new(r||e)(v(Jt,10))};static#t=this.\u0275dir=Z({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,i){2&r&&ln("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[me]})}return e})();const bc="VALID",Od="INVALID",Fo="PENDING",Ec="DISABLED";class Lo{}class XI extends Lo{constructor(n,t){super(),this.value=n,this.source=t}}class Dy extends Lo{constructor(n,t){super(),this.pristine=n,this.source=t}}class Sy extends Lo{constructor(n,t){super(),this.touched=n,this.source=t}}class Rd extends Lo{constructor(n,t){super(),this.status=n,this.source=t}}class MG extends Lo{constructor(n){super(),this.source=n}}class IG extends Lo{constructor(n){super(),this.source=n}}function Ty(e){return(Fd(e)?e.validators:e)||null}function My(e,n){return(Fd(n)?n.asyncValidators:e)||null}function Fd(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function JI(e,n,t){const r=e.controls;if(!(n?Object.keys(r):r).length)throw new E(1e3,"");if(!r[t])throw new E(1001,"")}function eA(e,n,t){e._forEachChild((r,i)=>{if(void 0===t[i])throw new E(1002,"")})}class Ld{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=ce(()=>this.statusReactive()),this.statusReactive=se(void 0),this._pristine=ce(()=>this.pristineReactive()),this.pristineReactive=se(!0),this._touched=ce(()=>this.touchedReactive()),this.touchedReactive=se(!1),this._events=new Nt,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get status(){return ar(this.statusReactive)}set status(n){ar(()=>this.statusReactive.set(n))}get valid(){return this.status===bc}get invalid(){return this.status===Od}get pending(){return this.status==Fo}get disabled(){return this.status===Ec}get enabled(){return this.status!==Ec}get pristine(){return ar(this.pristineReactive)}set pristine(n){ar(()=>this.pristineReactive.set(n))}get dirty(){return!this.pristine}get touched(){return ar(this.touchedReactive)}set touched(n){ar(()=>this.touchedReactive.set(n))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(WI(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(WI(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(ZI(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(ZI(n,this._rawAsyncValidators))}hasValidator(n){return Nd(this._rawValidators,n)}hasAsyncValidator(n){return Nd(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){const t=!1===this.touched;this.touched=!0;const r=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched({...n,sourceControl:r}),t&&!1!==n.emitEvent&&this._events.next(new Sy(!0,r))}markAllAsTouched(n={}){this.markAsTouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(n))}markAsUntouched(n={}){const t=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const r=n.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:r})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,r),t&&!1!==n.emitEvent&&this._events.next(new Sy(!1,r))}markAsDirty(n={}){const t=!0===this.pristine;this.pristine=!1;const r=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty({...n,sourceControl:r}),t&&!1!==n.emitEvent&&this._events.next(new Dy(!1,r))}markAsPristine(n={}){const t=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const r=n.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,r),t&&!1!==n.emitEvent&&this._events.next(new Dy(!0,r))}markAsPending(n={}){this.status=Fo;const t=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new Rd(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.markAsPending({...n,sourceControl:t})}disable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=Ec,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue();const r=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new XI(this.value,r)),this._events.next(new Rd(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:t},this),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=bc,this._forEachChild(r=>{r.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:t},this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(n,t){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine({},t),this._parent._updateTouched({},t))}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===bc||this.status===Fo)&&this._runAsyncValidator(r,n.emitEvent)}const t=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new XI(this.value,t)),this._events.next(new Rd(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity({...n,sourceControl:t})}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ec:bc}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,t){if(this.asyncValidator){this.status=Fo,this._hasOwnPendingAsyncValidator={emitEvent:!1!==t};const r=VI(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:t,shouldHaveEmitted:n})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const n=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent,this,t.shouldHaveEmitted)}get(n){let t=n;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((r,i)=>r&&r._find(i),this)}getError(n,t){const r=t?this.get(t):this;return r&&r.errors?r.errors[n]:null}hasError(n,t){return!!this.getError(n,t)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n,t,r){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||r)&&this._events.next(new Rd(this.status,t)),this._parent&&this._parent._updateControlsErrors(n,t,r)}_initObservables(){this.valueChanges=new ve,this.statusChanges=new ve}_calculateStatus(){return this._allControlsDisabled()?Ec:this.errors?Od:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Fo)?Fo:this._anyControlsHaveStatus(Od)?Od:bc}_anyControlsHaveStatus(n){return this._anyControls(t=>t.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n,t){const r=!this._anyControlsDirty(),i=this.pristine!==r;this.pristine=r,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,t),i&&this._events.next(new Dy(this.pristine,t))}_updateTouched(n={},t){this.touched=this._anyControlsTouched(),this._events.next(new Sy(this.touched,t)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,t)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Fd(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function AG(e){return Array.isArray(e)?vy(e):e||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function xG(e){return Array.isArray(e)?Cy(e):e||null}(this._rawAsyncValidators)}}class wc extends Ld{constructor(n,t,r){super(Ty(t),My(r,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,t){return this.controls[n]?this.controls[n]:(this.controls[n]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(n,t,r={}){this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(n,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(n,t,r={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],t&&this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,t={}){eA(this,0,n),Object.keys(n).forEach(r=>{JI(this,!0,r),this.controls[r].setValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(Object.keys(n).forEach(r=>{const i=this.controls[r];i&&i.patchValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n={},t={}){this._forEachChild((r,i)=>{r.reset(n?n[i]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(n,t,r)=>(n[r]=t.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(t,r)=>!!r._syncPendingControls()||t);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(t=>{const r=this.controls[t];r&&n(r,t)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[t,r]of Object.entries(this.controls))if(this.contains(t)&&n(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,r,i)=>((r.enabled||this.disabled)&&(t[i]=r.value),t))}_reduceChildren(n,t){let r=n;return this._forEachChild((i,s)=>{r=t(r,i,s)}),r}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class tA extends wc{}const cs=new N("CallSetDisabledState",{providedIn:"root",factory:()=>Dc}),Dc="always";function Vd(e,n){return[...n.path,e]}function Sc(e,n,t=Dc){Iy(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(e.disabled),function kG(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&nA(e,n)})}(e,n),function OG(e,n){const t=(r,i)=>{n.valueAccessor.writeValue(r),i&&n.viewToModelUpdate(r)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)})}(e,n),function PG(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&nA(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function NG(e,n){if(n.valueAccessor.setDisabledState){const t=r=>{n.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function Bd(e,n,t=!0){const r=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(r),n.valueAccessor.registerOnTouched(r)),Hd(e,n),e&&(n._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function jd(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function Iy(e,n){const t=zI(e);null!==n.validator?e.setValidators(GI(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const r=qI(e);null!==n.asyncValidator?e.setAsyncValidators(GI(r,n.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const i=()=>e.updateValueAndValidity();jd(n._rawValidators,i),jd(n._rawAsyncValidators,i)}function Hd(e,n){let t=!1;if(null!==e){if(null!==n.validator){const i=zI(e);if(Array.isArray(i)&&i.length>0){const s=i.filter(o=>o!==n.validator);s.length!==i.length&&(t=!0,e.setValidators(s))}}if(null!==n.asyncValidator){const i=qI(e);if(Array.isArray(i)&&i.length>0){const s=i.filter(o=>o!==n.asyncValidator);s.length!==i.length&&(t=!0,e.setAsyncValidators(s))}}}const r=()=>{};return jd(n._rawValidators,r),jd(n._rawAsyncValidators,r),t}function nA(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function xy(e,n){if(!e.hasOwnProperty("model"))return!1;const t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}function Ny(e,n){if(!n)return null;let t,r,i;return Array.isArray(n),n.forEach(s=>{s.constructor===Ad?t=s:function LG(e){return Object.getPrototypeOf(e.constructor)===as}(s)?r=s:i=s}),i||r||t||null}function sA(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function oA(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}Promise.resolve();const Mc=class extends Ld{constructor(n=null,t,r){super(Ty(t),My(r,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Fd(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=oA(n)?n.value:n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(n,t={}){this.setValue(n,t)}reset(n=this.defaultValue,t={}){this._applyFormState(n),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){sA(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){sA(this._onDisabledChange,n)}_forEachChild(n){}_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(n){oA(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};let aA=(()=>{class e extends Jt{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Vd(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Ft(e)))(i||e)}})();static#t=this.\u0275dir=Z({type:e,features:[me]})}return e})();const UG={provide:Jr,useExisting:we(()=>Vo)},lA=Promise.resolve();let Vo=(()=>{class e extends Jr{constructor(t,r,i,s,o,a){super(),this._changeDetectorRef=o,this.callSetDisabledState=a,this.control=new Mc,this._registered=!1,this.name="",this.update=new ve,this._parent=t,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=Ny(0,s)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const r=t.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),xy(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_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(){Sc(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){lA.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){const r=t.isDisabled.currentValue,i=0!==r&&function lg(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}(r);lA.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?Vd(t,this._parent):[t]}static#e=this.\u0275fac=function(r){return new(r||e)(v(Jt,9),v(Bt,10),v(wi,10),v(Nn,10),v(Eo,8),v(cs,8))};static#t=this.\u0275dir=Z({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Pe([UG]),me,er]})}return e})(),Ud=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=Z({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return e})();const Py=new N(""),ZG={provide:Jt,useExisting:we(()=>Bo)};let Bo=(()=>{class e extends Jt{get submitted(){return ar(this._submittedReactive)}set submitted(t){this._submittedReactive.set(t)}constructor(t,r,i){super(),this.callSetDisabledState=i,this._submitted=ce(()=>this._submittedReactive()),this._submittedReactive=se(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new ve,this._setValidators(t),this._setAsyncValidators(r)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Hd(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const r=this.form.get(t.path);return Sc(r,t,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),r}getControl(t){return this.form.get(t.path)}removeControl(t){Bd(t.control||null,t,!1),function VG(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,r){this.form.get(t.path).setValue(r)}onSubmit(t){return this._submittedReactive.set(!0),function iA(e,n){e._syncPendingControls(),n.forEach(t=>{const r=t.control;"submit"===r.updateOn&&r._pendingChange&&(t.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(t),this.form._events.next(new MG(this.control)),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this._submittedReactive.set(!1),this.form._events.next(new IG(this.form))}_updateDomValue(){this.directives.forEach(t=>{const r=t.control,i=this.form.get(t.path);r!==i&&(Bd(r||null,t),(e=>e instanceof Mc)(i)&&(Sc(i,t,this.callSetDisabledState),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const r=this.form.get(t.path);(function rA(e,n){Iy(e,n)})(r,t),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const r=this.form.get(t.path);r&&function RG(e,n){return Hd(e,n)}(r,t)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Iy(this.form,this),this._oldForm&&Hd(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(r){return new(r||e)(v(Bt,10),v(wi,10),v(cs,8))};static#t=this.\u0275dir=Z({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,i){1&r&&te("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Pe([ZG]),me,er]})}return e})();const YG={provide:Jt,useExisting:we(()=>$d)};let $d=(()=>{class e extends aA{constructor(t,r,i){super(),this.name=null,this._parent=t,this._setValidators(r),this._setAsyncValidators(i)}_checkParentType(){pA(this._parent)}static#e=this.\u0275fac=function(r){return new(r||e)(v(Jt,13),v(Bt,10),v(wi,10))};static#t=this.\u0275dir=Z({type:e,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},features:[Pe([YG]),me]})}return e})();const KG={provide:Jt,useExisting:we(()=>Gd)};let Gd=(()=>{class e extends Jt{constructor(t,r,i){super(),this.name=null,this._parent=t,this._setValidators(r),this._setAsyncValidators(i)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Vd(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){pA(this._parent)}static#e=this.\u0275fac=function(r){return new(r||e)(v(Jt,13),v(Bt,10),v(wi,10))};static#t=this.\u0275dir=Z({type:e,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},features:[Pe([KG]),me]})}return e})();function pA(e){return!(e instanceof $d||e instanceof Bo||e instanceof Gd)}const QG={provide:Jr,useExisting:we(()=>Ic)};let Ic=(()=>{class e extends Jr{set isDisabled(t){}static#e=this._ngModelWarningSentOnce=!1;constructor(t,r,i,s,o){super(),this._ngModelWarningConfig=o,this._added=!1,this.name=null,this.update=new ve,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=Ny(0,s)}ngOnChanges(t){this._added||this._setUpControl(),xy(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return Vd(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static#t=this.\u0275fac=function(r){return new(r||e)(v(Jt,13),v(Bt,10),v(wi,10),v(Nn,10),v(Py,8))};static#n=this.\u0275dir=Z({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[Pe([QG]),me,er]})}return e})();function yA(e){return"number"==typeof e?e:parseInt(e,10)}let ls=(()=>{class e{constructor(){this._validator=xd}ngOnChanges(t){if(this.inputName in t){const r=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):xd,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return null!=t}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=Z({type:e,features:[er]})}return e})();const lz={provide:Bt,useExisting:we(()=>zd),multi:!0};let zd=(()=>{class e extends ls{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=t=>yA(t),this.createValidator=t=>OI(t)}static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Ft(e)))(i||e)}})();static#t=this.\u0275dir=Z({type:e,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(r,i){2&r&&Lt("minlength",i._enabled?i.minlength:null)},inputs:{minlength:"minlength"},features:[Pe([lz]),me]})}return e})();const uz={provide:Bt,useExisting:we(()=>Ac),multi:!0};let Ac=(()=>{class e extends ls{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=t=>yA(t),this.createValidator=t=>RI(t)}static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Ft(e)))(i||e)}})();static#t=this.\u0275dir=Z({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(r,i){2&r&&Lt("maxlength",i._enabled?i.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Pe([uz]),me]})}return e})(),DA=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=dt({})}return e})();class SA extends Ld{constructor(n,t,r){super(Ty(t),My(r,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,t={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(n,t,r={}){this.controls.splice(n,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(n,t={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(n,t,r={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),t&&(this.controls.splice(i,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,t={}){eA(this,0,n),n.forEach((r,i)=>{JI(this,!1,i),this.at(i).setValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(n.forEach((r,i)=>{this.at(i)&&this.at(i).patchValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n=[],t={}){this._forEachChild((r,i)=>{r.reset(n[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((t,r)=>!!r._syncPendingControls()||t,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((t,r)=>{n(t,r)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(t=>t.enabled&&n(t))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function TA(e){return!!e&&(void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn)}let Ly=(()=>{class e{constructor(){this.useNonNullable=!1}get nonNullable(){const t=new e;return t.useNonNullable=!0,t}group(t,r=null){const i=this._reduceControls(t);let s={};return TA(r)?s=r:null!==r&&(s.validators=r.validator,s.asyncValidators=r.asyncValidator),new wc(i,s)}record(t,r=null){const i=this._reduceControls(t);return new tA(i,r)}control(t,r,i){let s={};return this.useNonNullable?(TA(r)?s=r:(s.validators=r,s.asyncValidators=i),new Mc(t,{...s,nonNullable:!0})):new Mc(t,r,i)}array(t,r,i){const s=t.map(o=>this._createControl(o));return new SA(s,r,i)}_reduceControls(t){const r={};return Object.keys(t).forEach(i=>{r[i]=this._createControl(t[i])}),r}_createControl(t){return t instanceof Mc||t instanceof Ld?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),MA=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:cs,useValue:t.callSetDisabledState??Dc}]}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=dt({imports:[DA]})}return e})(),IA=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Py,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:cs,useValue:t.callSetDisabledState??Dc}]}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=dt({imports:[DA]})}return e})();class qd{static luhnAlgorithm({value:n}){return n&&function fz(e){return/^\d+$/.test(e)&&!(e.split("").reverse().map(function(n,t){return n=parseInt(n,10),t%2==0?n:(n*=2)>9?n-9:n}).reduce(function(n,t){return n+t})%10)}(n)?void 0:{luhnAlgorithm:!0}}static cardExpiration({value:n}){const t={expiration:!0};if(n){if(n.length<4)return t;const i=+(new Date).getFullYear().toString().slice(-2),[s,o,a,c]=n.split(""),l=`${s}${o}`;return+l<1||+l>12||+`${a}${c}`<i?t:void 0}return t}static cardNumberLength({value:n}){const t=n?.length||0;return t>=Mn.card.number.length.min&&t<=Mn.card.number.length.max?void 0:{cardLength:!0}}static cardCodeLength(n="cardNumber"){return({value:t,parent:r})=>{const i=r?.get(n),[s]=EI()(i?.value),o=!!s?.code.size&&!!t,a=Mn.card.code.lengths[s?.type];return o&&(s?.code.size===t?.length||a?.includes(t?.length))?null:{cardCodeLength:!0}}}}function AA(...e){return function pz(){return XT(1)}()(_i(e,ud(e)))}function xA(...e){const n=ud(e);return mn((t,r)=>{(n?AA(e,t,n):AA(e,t)).subscribe(r)})}function Vy(e,n,t,r,i,s,o){e.valueChanges.pipe(xA(null),SI(50),function mz(){return mn((e,n)=>{let t,r=!1;e.subscribe(nn(n,i=>{const s=t;t=i,r&&n.next([s,i]),r=!0}))})}(),BM(([a,c])=>JSON.stringify(a)!==JSON.stringify(c)),t.untilDestroy()).subscribe(([a,c])=>{const l={...n()};let u=!1;!r()&&l.canShowError&&(u=!0,l.canShowError=!1);const d=i(c);l.filled!==d&&(u=!0,l.filled=d),u&&n.update(f=>({...l})),s&&s(c,o)}),e.statusChanges.pipe(xA(e.status),t.untilDestroy()).subscribe(a=>{n.update(c=>({...c,isValid:"VALID"===a}))})}const Wd=new N("ngx-mask config"),NA=new N("new ngx-mask config"),kA=new N("initial ngx-mask config"),Cz={suffix:"",prefix:"",thousandSeparator:" ",decimalMarker:[".",","],clearIfNotMatch:!1,showTemplate:!1,showMaskTyped:!1,placeHolderCharacter:"_",dropSpecialCharacters:!0,hiddenInput:void 0,shownMaskExpression:"",separatorLimit:"",allowNegativeNumbers:!1,validation:!0,specialCharacters:["-","/","(",")",".",":"," ","+",",","@","[","]",'"',"'"],leadZeroDateTime:!1,apm:!1,leadZero:!1,keepCharacterPositions:!1,triggerOnMaskChange:!1,inputTransformFn:e=>e,outputTransformFn:e=>e,maskFilled:new ve,patterns:{0:{pattern:new RegExp("\\d")},9:{pattern:new RegExp("\\d"),optional:!0},X:{pattern:new RegExp("\\d"),symbol:"*"},A:{pattern:new RegExp("[a-zA-Z0-9]")},S:{pattern:new RegExp("[a-zA-Z]")},U:{pattern:new RegExp("[A-Z]")},L:{pattern:new RegExp("[a-z]")},d:{pattern:new RegExp("\\d")},m:{pattern:new RegExp("\\d")},M:{pattern:new RegExp("\\d")},H:{pattern:new RegExp("\\d")},h:{pattern:new RegExp("\\d")},s:{pattern:new RegExp("\\d")}}},bz=["Hh:m0:s0","Hh:m0","m0:s0"],Ez=["percent","Hh","s0","m0","separator","d0/M0/0000","d0/M0","d0","M0"];let wz=(()=>{class e{constructor(){this._config=A(Wd),this.dropSpecialCharacters=this._config.dropSpecialCharacters,this.hiddenInput=this._config.hiddenInput,this.clearIfNotMatch=this._config.clearIfNotMatch,this.specialCharacters=this._config.specialCharacters,this.patterns=this._config.patterns,this.prefix=this._config.prefix,this.suffix=this._config.suffix,this.thousandSeparator=this._config.thousandSeparator,this.decimalMarker=this._config.decimalMarker,this.showMaskTyped=this._config.showMaskTyped,this.placeHolderCharacter=this._config.placeHolderCharacter,this.validation=this._config.validation,this.separatorLimit=this._config.separatorLimit,this.allowNegativeNumbers=this._config.allowNegativeNumbers,this.leadZeroDateTime=this._config.leadZeroDateTime,this.leadZero=this._config.leadZero,this.apm=this._config.apm,this.inputTransformFn=this._config.inputTransformFn,this.outputTransformFn=this._config.outputTransformFn,this.keepCharacterPositions=this._config.keepCharacterPositions,this._shift=new Set,this.maskExpression="",this.actualValue="",this.showKeepCharacterExp="",this.shownMaskExpression="",this.deletedSpecialCharacter=!1,this._formatWithSeparators=(t,r,i,s)=>{let o=[],a="";if(Array.isArray(i)){const f=new RegExp(i.map(h=>"[\\^$.|?*+()".indexOf(h)>=0?`\\${h}`:h).join("|"));o=t.split(f),a=t.match(f)?.[0]??""}else o=t.split(i),a=i;const c=o.length>1?`${a}${o[1]}`:"";let l=o[0]??"";const u=this.separatorLimit.replace(/\s/g,"");u&&+u&&(l="-"===l[0]?`-${l.slice(1,l.length).slice(0,u.length)}`:l.slice(0,u.length));const d=/(\d+)(\d{3})/;for(;r&&d.test(l);)l=l.replace(d,"$1"+r+"$2");return void 0===s?l+c:0===s?l:l+c.substring(0,s+1)},this.percentage=t=>{const r=t.replace(",","."),i=Number(r);return!isNaN(i)&&i>=0&&i<=100},this.getPrecision=t=>{const r=t.split(".");return r.length>1?Number(r[r.length-1]):1/0},this.checkAndRemoveSuffix=t=>{for(let r=this.suffix?.length-1;r>=0;r--){const i=this.suffix.substring(r,this.suffix?.length);if(t.includes(i)&&r!==this.suffix?.length-1&&(r-1<0||!t.includes(this.suffix.substring(r-1,this.suffix?.length))))return t.replace(i,"")}return t},this.checkInputPrecision=(t,r,i)=>{if(r<1/0){if(Array.isArray(i)){const c=i.find(l=>l!==this.thousandSeparator);i=c||i[0]}const s=new RegExp(this._charToRegExpExpression(i)+`\\d{${r}}.*$`),o=t.match(s),a=(o&&o[0]?.length)??0;a-1>r&&(t=t.substring(0,t.length-(a-1-r))),0===r&&this._compareOrIncludes(t[t.length-1],i,this.thousandSeparator)&&(t=t.substring(0,t.length-1))}return t}}applyMaskWithPattern(t,r){const[i,s]=r;return this.customPattern=s,this.applyMask(t,i)}applyMask(t,r,i=0,s=!1,o=!1,a=()=>{}){if(!r||"string"!=typeof t)return"";let c=0,l="",u=!1,d=!1,f=1,h=!1;t.slice(0,this.prefix.length)===this.prefix&&!this.showMaskTyped&&(t=t.slice(this.prefix.length,t.length)),this.suffix&&t?.length>0&&(t=this.checkAndRemoveSuffix(t)),"("===t&&this.prefix&&(t="");const p=t.toString().split("");if(this.allowNegativeNumbers&&"-"===t.slice(c,c+1)&&(l+=t.slice(c,c+1)),"IP"===r){const D=t.split(".");this.ipError=this._validIP(D),r="099.099.099.099"}const m=[];for(let D=0;D<t.length;D++)t[D]?.match("\\d")&&m.push(t[D]??"");if("CPF_CNPJ"===r&&(this.cpfCnpjError=11!==m.length&&14!==m.length,r=m.length>11?"00.000.000/0000-00":"000.000.000-00"),r.startsWith("percent")){if(t.match("[a-z]|[A-Z]")||t.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)&&!o){t=this._stripToDecimal(t);const F=this.getPrecision(r);t=this.checkInputPrecision(t,F,this.decimalMarker)}const D="string"==typeof this.decimalMarker?this.decimalMarker:".";if(t.indexOf(D)>0&&!this.percentage(t.substring(0,t.indexOf(D)))){let F=t.substring(0,t.indexOf(D)-1);this.allowNegativeNumbers&&"-"===t.slice(c,c+1)&&!o&&(F=t.substring(0,t.indexOf(D))),t=`${F}${t.substring(t.indexOf(D),t.length)}`}let M="";M=this.allowNegativeNumbers&&"-"===t.slice(c,c+1)?t.slice(c+1,c+t.length):t,l=this.percentage(M)?this._splitPercentZero(t):this._splitPercentZero(t.substring(0,t.length-1))}else if(r.startsWith("separator")){(t.match("[w\u0430-\u044f\u0410-\u042f]")||t.match("[\u0401\u0451\u0410-\u044f]")||t.match("[a-z]|[A-Z]")||t.match(/[-@#!$%\\^&*()_\xa3\xac'+|~=`{}\]:";<>.?/]/)||t.match("[^A-Za-z0-9,]"))&&(t=this._stripToDecimal(t)),t="-"===t[0]&&this.allowNegativeNumbers?t.length>2&&"0"===t[1]&&t[2]!==this.thousandSeparator&&!this._compareOrIncludes(t[2],this.decimalMarker,this.thousandSeparator)&&!o?t.slice(0,t.length-1):t:t.length>1&&"0"===t[0]&&t[1]!==this.thousandSeparator&&!this._compareOrIncludes(t[1],this.decimalMarker,this.thousandSeparator)&&!o?t.slice(0,t.length-1):t,o&&(t=this._compareOrIncludes(t[t.length-1],this.decimalMarker,this.thousandSeparator)?t.slice(0,t.length-1):t);const D=this._charToRegExpExpression(this.thousandSeparator);let M='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(D,"");if(Array.isArray(this.decimalMarker))for(const at of this.decimalMarker)M=M.replace(this._charToRegExpExpression(at),"");else M=M.replace(this._charToRegExpExpression(this.decimalMarker),"");const F=new RegExp("["+M+"]");(t.match(F)||1===t.length&&this._compareOrIncludes(t,this.decimalMarker,this.thousandSeparator))&&(t=t.substring(0,t.length-1));const j=this.getPrecision(r),L=(t=this.checkInputPrecision(t,j,this.decimalMarker)).replace(new RegExp(D,"g"),"");l=this._formatWithSeparators(L,this.thousandSeparator,this.decimalMarker,j);const Ze=l.indexOf(",")-t.indexOf(","),et=l.length-t.length;if(et>0&&l[i]!==this.thousandSeparator){d=!0;let at=0;do{this._shift.add(i+at),at++}while(at<et)}else l[i-1]===this.decimalMarker||-4===et||-3===et||","===l[i]?(this._shift.clear(),this._shift.add(i-1)):0!==Ze&&i>0&&!(l.indexOf(",")>=i&&i>3)||!(l.indexOf(".")>=i&&i>3)&&et<=0?(this._shift.clear(),d=!0,f=et,this._shift.add(i+=et)):this._shift.clear()}else for(let D=0,M=p[0];D<p.length&&c!==r.length;D++,M=p[D]??""){const F="*"in this.patterns;if(this._checkSymbolMask(M,r[c]??"")&&"?"===r[c+1])l+=M,c+=2;else if("*"===r[c+1]&&u&&this._checkSymbolMask(M,r[c+2]??""))l+=M,c+=3,u=!1;else if(this._checkSymbolMask(M,r[c]??"")&&"*"===r[c+1]&&!F)l+=M,u=!0;else if("?"===r[c+1]&&this._checkSymbolMask(M,r[c+2]??""))l+=M,c+=3;else if(this._checkSymbolMask(M,r[c]??"")){if("H"===r[c]&&(this.apm?Number(M)>9:Number(M)>2)){i+=1,c+=1,this._shiftStep(r,c,p.length),D--,this.leadZeroDateTime&&(l+="0");continue}if("h"===r[c]&&(this.apm?1===l.length&&Number(l)>1||"1"===l&&Number(M)>2||1===t.slice(c-1,c).length&&Number(t.slice(c-1,c))>2||"1"===t.slice(c-1,c)&&Number(M)>2:"2"===l&&Number(M)>3||("2"===l.slice(c-2,c)||"2"===l.slice(c-3,c)||"2"===l.slice(c-4,c)||"2"===l.slice(c-1,c))&&Number(M)>3&&c>10)){i+=1,c+=1,D--;continue}if(("m"===r[c]||"s"===r[c])&&Number(M)>5){i+=1,c+=1,this._shiftStep(r,c,p.length),D--,this.leadZeroDateTime&&(l+="0");continue}const j=31,L=t[c],Ze=t[c+1],et=t[c+2],at=t[c-1],en=t[c-2],Ti=t[c-3],qn=t.slice(c-3,c-1),ps=t.slice(c-1,c+1),O=t.slice(c,c+2),B=t.slice(c-2,c);if("d"===r[c]){const $="M0"===r.slice(0,2),le="M0"===r.slice(0,2)&&this.specialCharacters.includes(en);if(Number(M)>3&&this.leadZeroDateTime||!$&&(Number(O)>j||Number(ps)>j||this.specialCharacters.includes(Ze))||(le?Number(ps)>j||!this.specialCharacters.includes(L)&&this.specialCharacters.includes(et)||this.specialCharacters.includes(L):Number(O)>j||this.specialCharacters.includes(Ze))){i+=1,c+=1,this._shiftStep(r,c,p.length),D--,this.leadZeroDateTime&&(l+="0");continue}}if("M"===r[c]){const le=0===c&&(Number(M)>2||Number(O)>12||this.specialCharacters.includes(Ze)),_t=r.slice(c+2,c+3),Wn=qn.includes(_t)&&(this.specialCharacters.includes(en)&&Number(ps)>12&&!this.specialCharacters.includes(L)||this.specialCharacters.includes(L)||this.specialCharacters.includes(Ti)&&Number(B)>12&&!this.specialCharacters.includes(at)||this.specialCharacters.includes(at)),tn=Number(qn)<=j&&!this.specialCharacters.includes(qn)&&this.specialCharacters.includes(at)&&(Number(O)>12||this.specialCharacters.includes(Ze)),Rr=Number(O)>12&&5===c||this.specialCharacters.includes(Ze)&&5===c,$e=Number(qn)>j&&!this.specialCharacters.includes(qn)&&!this.specialCharacters.includes(B)&&Number(B)>12,uf=Number(qn)<=j&&!this.specialCharacters.includes(qn)&&!this.specialCharacters.includes(at)&&Number(ps)>12;if(Number(M)>1&&this.leadZeroDateTime||le||Wn||uf||$e||tn||Rr&&!this.leadZeroDateTime){i+=1,c+=1,this._shiftStep(r,c,p.length),D--,this.leadZeroDateTime&&(l+="0");continue}}l+=M,c++}else" "===M&&" "===r[c]||"/"===M&&"/"===r[c]?(l+=M,c++):-1!==this.specialCharacters.indexOf(r[c]??"")?(l+=r[c],c++,this._shiftStep(r,c,p.length),D--):"9"===r[c]&&this.showMaskTyped?this._shiftStep(r,c,p.length):this.patterns[r[c]??""]&&this.patterns[r[c]??""]?.optional?(p[c]&&"099.099.099.099"!==r&&"000.000.000-00"!==r&&"00.000.000/0000-00"!==r&&!r.match(/^9+\.0+$/)&&!this.patterns[r[c]??""]?.optional&&(l+=p[c]),r.includes("9*")&&r.includes("0*")&&c++,c++,D--):"*"===this.maskExpression[c+1]&&this._findSpecialChar(this.maskExpression[c+2]??"")&&this._findSpecialChar(M)===this.maskExpression[c+2]&&u||"?"===this.maskExpression[c+1]&&this._findSpecialChar(this.maskExpression[c+2]??"")&&this._findSpecialChar(M)===this.maskExpression[c+2]&&u?(c+=3,l+=M):this.showMaskTyped&&this.specialCharacters.indexOf(M)<0&&M!==this.placeHolderCharacter&&1===this.placeHolderCharacter.length&&(h=!0)}l.length+1===r.length&&-1!==this.specialCharacters.indexOf(r[r.length-1]??"")&&(l+=r[r.length-1]);let g=i+1;for(;this._shift.has(g);)f++,g++;let _=s&&!r.startsWith("separator")?c:this._shift.has(i)?f:0;h&&_--,a(_,d),f<0&&this._shift.clear();let y=!1;o&&(y=p.every(D=>this.specialCharacters.includes(D)));let w=`${this.prefix}${y?"":l}${this.suffix}`;if(0===l.length&&(w=this.dropSpecialCharacters?`${l}`:`${this.prefix}${l}`),l.includes("-")&&this.prefix&&this.allowNegativeNumbers){if(o&&"-"===l)return"";w=`-${this.prefix}${l.split("-").join("")}${this.suffix}`}return w}_findDropSpecialChar(t){return Array.isArray(this.dropSpecialCharacters)?this.dropSpecialCharacters.find(r=>r===t):this._findSpecialChar(t)}_findSpecialChar(t){return this.specialCharacters.find(r=>r===t)}_checkSymbolMask(t,r){return this.patterns=this.customPattern?this.customPattern:this.patterns,(this.patterns[r]?.pattern&&this.patterns[r]?.pattern.test(t))??!1}_stripToDecimal(t){return t.split("").filter((r,i)=>{const s="string"==typeof this.decimalMarker?r===this.decimalMarker:this.decimalMarker.includes(r);return r.match("^-?\\d")||r===this.thousandSeparator||s||"-"===r&&0===i&&this.allowNegativeNumbers}).join("")}_charToRegExpExpression(t){return t&&(" "===t?"\\s":"[\\^$.|?*+()".indexOf(t)>=0?`\\${t}`:t)}_shiftStep(t,r,i){const s=/[*?]/g.test(t.slice(0,r))?i:r;this._shift.add(s+this.prefix.length||0)}_compareOrIncludes(t,r,i){return Array.isArray(r)?r.filter(s=>s!==i).includes(t):t===r}_validIP(t){return!(4===t.length&&!t.some((r,i)=>t.length!==i+1?""===r||Number(r)>255:""===r||Number(r.substring(0,3))>255))}_splitPercentZero(t){const r=t.indexOf("string"==typeof this.decimalMarker?this.decimalMarker:".");if(-1===r){const i=parseInt(t,10);return isNaN(i)?"":i.toString()}{const i=parseInt(t.substring(0,r),10),s=t.substring(r+1),o=isNaN(i)?"":i.toString();return""===o?"":o+("string"==typeof this.decimalMarker?this.decimalMarker:".")+s}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e})(),By=(()=>{class e extends wz{constructor(){super(...arguments),this.isNumberValue=!1,this.maskIsShown="",this.selStart=null,this.selEnd=null,this.writingValue=!1,this.maskChanged=!1,this._maskExpressionArray=[],this.triggerOnMaskChange=!1,this._emitValue=!1,this._previousValue="",this._currentValue="",this.onChange=t=>{},this.document=A(Vt),this._config=A(Wd),this._elementRef=A(on,{optional:!0}),this._renderer=A(Ar,{optional:!0})}applyMask(t,r,i=0,s=!1,o=!1,a=()=>{}){if(!r)return t!==this.actualValue?this.actualValue:t;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():"","IP"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(t||"#")),"CPF_CNPJ"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(t||"#")),!t&&this.showMaskTyped)return this.formControlResult(this.prefix),this.prefix+this.maskIsShown;const c=t&&"number"==typeof this.selStart?t[this.selStart]??"":"";let l="";if(void 0!==this.hiddenInput&&!this.writingValue){let h=t&&1===t.length?t.split(""):this.actualValue.split("");"object"==typeof this.selStart&&"object"==typeof this.selEnd?(this.selStart=Number(this.selStart),this.selEnd=Number(this.selEnd)):""!==t&&h.length?"number"==typeof this.selStart&&"number"==typeof this.selEnd&&(t.length>h.length?h.splice(this.selStart,0,c):t.length<h.length&&(h.length-t.length==1?h.splice(o?this.selStart-1:t.length-1,1):h.splice(this.selStart,this.selEnd-this.selStart))):h=[],this.showMaskTyped&&(this.hiddenInput||(t=this.removeMask(t))),l=this.actualValue.length&&h.length<=t.length?this.shiftTypedSymbols(h.join("")):t}if(s&&(this.hiddenInput||!this.hiddenInput)&&(l=t),this.deletedSpecialCharacter&&i&&(this.specialCharacters.includes(this.actualValue.slice(i,i+1))?i+=1:"M0"!==r.slice(i-1,i+1)&&(i-=2),this.deletedSpecialCharacter=!1),this.showMaskTyped&&1===this.placeHolderCharacter.length&&!this.leadZeroDateTime&&(t=this.removeMask(t)),l=this.maskChanged?t:l&&l.length?l:t,this.showMaskTyped&&this.keepCharacterPositions&&this.actualValue&&!s){const h=this.dropSpecialCharacters?this.removeMask(this.actualValue):this.actualValue;return this.formControlResult(h),this.actualValue?this.actualValue:this.prefix+this.maskIsShown+this.suffix}const u=super.applyMask(l,r,i,s,o,a);if(this.actualValue=this.getActualValue(u),"."===this.thousandSeparator&&"."===this.decimalMarker&&(this.decimalMarker=","),this.maskExpression.startsWith("separator")&&!0===this.dropSpecialCharacters&&(this.specialCharacters=this.specialCharacters.filter(h=>!this._compareOrIncludes(h,this.decimalMarker,this.thousandSeparator))),(u||""===u)&&(this._previousValue=this._currentValue,this._currentValue=u,this._emitValue=this._previousValue!==this._currentValue||this.maskChanged||this._previousValue===this._currentValue&&s),this._emitValue&&this.formControlResult(u),!this.showMaskTyped||this.showMaskTyped&&this.hiddenInput)return this.hiddenInput?o?this.hideInput(u,this.maskExpression):this.hideInput(u,this.maskExpression)+this.maskIsShown.slice(u.length):u;const d=u.length,f=this.prefix+this.maskIsShown;if(this.maskExpression.includes("H")){const h=this._numberSkipedSymbols(u);return u+f.slice(d+h)}return"IP"===this.maskExpression||"CPF_CNPJ"===this.maskExpression?u+f:u+f.slice(d)}_numberSkipedSymbols(t){const r=/(^|\D)(\d\D)/g;let i=r.exec(t),s=0;for(;null!=i;)s+=1,i=r.exec(t);return s}applyValueChanges(t,r,i,s=()=>{}){const o=this._elementRef?.nativeElement;o&&(o.value=this.applyMask(o.value,this.maskExpression,t,r,i,s),o!==this._getActiveElement()&&this.clearIfNotMatchFn())}hideInput(t,r){return t.split("").map((i,s)=>this.patterns&&this.patterns[r[s]??""]&&this.patterns[r[s]??""]?.symbol?this.patterns[r[s]??""]?.symbol:i).join("")}getActualValue(t){const r=t.split("").filter((i,s)=>{const o=this.maskExpression[s]??"";return this._checkSymbolMask(i,o)||this.specialCharacters.includes(o)&&i===o});return r.join("")===t?r.join(""):t}shiftTypedSymbols(t){let r="";return(t&&t.split("").map((s,o)=>{if(this.specialCharacters.includes(t[o+1]??"")&&t[o+1]!==this.maskExpression[o+1])return r=s,t[o+1];if(r.length){const a=r;return r="",a}return s})||[]).join("")}numberToString(t){return!t&&0!==t||this.maskExpression.startsWith("separator")&&(this.leadZero||!this.dropSpecialCharacters)||this.maskExpression.startsWith("separator")&&this.separatorLimit.length>14&&String(t).length>14?String(t):Number(t).toLocaleString("fullwide",{useGrouping:!1,maximumFractionDigits:20}).replace("/-/","-")}showMaskInInput(t){if(this.showMaskTyped&&this.shownMaskExpression){if(this.maskExpression.length!==this.shownMaskExpression.length)throw new Error("Mask expression must match mask placeholder length");return this.shownMaskExpression}if(this.showMaskTyped){if(t){if("IP"===this.maskExpression)return this._checkForIp(t);if("CPF_CNPJ"===this.maskExpression)return this._checkForCpfCnpj(t)}return this.placeHolderCharacter.length===this.maskExpression.length?this.placeHolderCharacter:this.maskExpression.replace(/\w/g,this.placeHolderCharacter)}return""}clearIfNotMatchFn(){const t=this._elementRef?.nativeElement;t&&this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==t.value.replace(this.placeHolderCharacter,"").length&&(this.formElementProperty=["value",""],this.applyMask("",this.maskExpression))}set formElementProperty([t,r]){!this._renderer||!this._elementRef||Promise.resolve().then(()=>this._renderer?.setProperty(this._elementRef?.nativeElement,t,r))}checkDropSpecialCharAmount(t){return t.split("").filter(i=>this._findDropSpecialChar(i)).length}removeMask(t){return this._removeMask(this._removeSuffix(this._removePrefix(t)),this.specialCharacters.concat("_").concat(this.placeHolderCharacter))}_checkForIp(t){if("#"===t)return`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`;const r=[];for(let i=0;i<t.length;i++){const s=t[i]??"";s&&s.match("\\d")&&r.push(s)}return r.length<=3?`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`:r.length>3&&r.length<=6?`${this.placeHolderCharacter}.${this.placeHolderCharacter}`:r.length>6&&r.length<=9?this.placeHolderCharacter:""}_checkForCpfCnpj(t){const r=`${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`,i=`${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}/${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`;if("#"===t)return r;const s=[];for(let o=0;o<t.length;o++){const a=t[o]??"";a&&a.match("\\d")&&s.push(a)}return s.length<=3?r.slice(s.length,r.length):s.length>3&&s.length<=6?r.slice(s.length+1,r.length):s.length>6&&s.length<=9?r.slice(s.length+2,r.length):s.length>9&&s.length<11?r.slice(s.length+3,r.length):11===s.length?"":12===s.length?i.slice(17===t.length?16:15,i.length):s.length>12&&s.length<=14?i.slice(s.length+4,i.length):""}_getActiveElement(t=this.document){const r=t?.activeElement?.shadowRoot;return r?.activeElement?this._getActiveElement(r):t.activeElement}formControlResult(t){if(this.writingValue||!this.triggerOnMaskChange&&this.maskChanged)return this.maskChanged&&this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeSuffix(this._removePrefix(t)))))),void(this.maskChanged=!1);Array.isArray(this.dropSpecialCharacters)?this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeMask(this._removeSuffix(this._removePrefix(t)),this.dropSpecialCharacters))))):this.onChange(this.outputTransformFn(this._toNumber(this.dropSpecialCharacters||!this.dropSpecialCharacters&&this.prefix===t?this._checkSymbols(this._removeSuffix(this._removePrefix(t))):t)))}_toNumber(t){if(!this.isNumberValue||""===t||this.maskExpression.startsWith("separator")&&(this.leadZero||!this.dropSpecialCharacters))return t;if(String(t).length>16&&this.separatorLimit.length>14)return String(t);const r=Number(t);if(this.maskExpression.startsWith("separator")&&Number.isNaN(r)){const i=String(t).replace(",",".");return Number(i)}return Number.isNaN(r)?t:r}_removeMask(t,r){return this.maskExpression.startsWith("percent")&&t.includes(".")?t:t&&t.replace(this._regExpForRemove(r),"")}_removePrefix(t){return this.prefix?t&&t.replace(this.prefix,""):t}_removeSuffix(t){return this.suffix?t&&t.replace(this.suffix,""):t}_retrieveSeparatorValue(t){const r=Array.isArray(this.dropSpecialCharacters)?this.specialCharacters.filter(i=>this.dropSpecialCharacters.includes(i)):this.specialCharacters;return this._removeMask(t,r)}_regExpForRemove(t){return new RegExp(t.map(r=>`\\${r}`).join("|"),"gi")}_replaceDecimalMarkerToDot(t){const r=Array.isArray(this.decimalMarker)?this.decimalMarker:[this.decimalMarker];return t.replace(this._regExpForRemove(r),".")}_checkSymbols(t){if(""===t)return t;this.maskExpression.startsWith("percent")&&","===this.decimalMarker&&(t=t.replace(",","."));const r=this._retrieveSeparatorPrecision(this.maskExpression),i=this._replaceDecimalMarkerToDot(this._retrieveSeparatorValue(t));return this.isNumberValue&&r?t===this.decimalMarker?null:this.separatorLimit.length>14?String(i):this._checkPrecision(this.maskExpression,i):i}_retrieveSeparatorPrecision(t){const r=t.match(new RegExp("^separator\\.([^d]*)"));return r?Number(r[1]):null}_checkPrecision(t,r){const i=t.slice(10,11);return t.indexOf("2")>0||this.leadZero&&Number(i)>1?(","===this.decimalMarker&&this.leadZero&&(r=r.replace(",",".")),this.leadZero?Number(r).toFixed(Number(i)):Number(r).toFixed(2)):this.numberToString(r)}_repeatPatternSymbols(t){return t.match(/{[0-9]+}/)&&t.split("").reduce((r,i,s)=>{if(this._start="{"===i?s:this._start,"}"!==i)return this._findSpecialChar(i)?r+i:r;this._end=s;const o=Number(t.slice(this._start+1,this._end)),a=new Array(o+1).join(t[this._start-1]);if(t.slice(0,this._start).length>1&&t.includes("S")){const c=t.slice(0,this._start-1);return c.includes("{")?r+a:c+r+a}return r+a},"")||t}currentLocaleDecimalMarker(){return 1.1.toLocaleString().substring(1,2)}}return e.\u0275fac=(()=>{let n;return function(r){return(n||(n=Ft(e)))(r||e)}})(),e.\u0275prov=R({token:e,factory:e.\u0275fac}),e})(),Dz=(()=>{class e{constructor(){this.maskExpression="",this.specialCharacters=[],this.patterns={},this.prefix="",this.suffix="",this.thousandSeparator=" ",this.decimalMarker=".",this.dropSpecialCharacters=null,this.hiddenInput=null,this.showMaskTyped=null,this.placeHolderCharacter=null,this.shownMaskExpression=null,this.showTemplate=null,this.clearIfNotMatch=null,this.validation=null,this.separatorLimit=null,this.allowNegativeNumbers=null,this.leadZeroDateTime=null,this.leadZero=null,this.triggerOnMaskChange=null,this.apm=null,this.inputTransformFn=null,this.outputTransformFn=null,this.keepCharacterPositions=null,this.maskFilled=new ve,this._maskValue="",this._position=null,this._maskExpressionArray=[],this._justPasted=!1,this._isComposing=!1,this.document=A(Vt),this._maskService=A(By,{self:!0}),this._config=A(Wd),this.onChange=t=>{},this.onTouch=()=>{}}ngOnChanges(t){const{maskExpression:r,specialCharacters:i,patterns:s,prefix:o,suffix:a,thousandSeparator:c,decimalMarker:l,dropSpecialCharacters:u,hiddenInput:d,showMaskTyped:f,placeHolderCharacter:h,shownMaskExpression:p,showTemplate:m,clearIfNotMatch:g,validation:_,separatorLimit:y,allowNegativeNumbers:w,leadZeroDateTime:D,leadZero:M,triggerOnMaskChange:F,apm:j,inputTransformFn:L,outputTransformFn:Ze,keepCharacterPositions:et}=t;if(r&&(r.currentValue!==r.previousValue&&!r.firstChange&&(this._maskService.maskChanged=!0),w&&(this._maskService.allowNegativeNumbers=w.currentValue,this._maskService.allowNegativeNumbers&&(this._maskService.specialCharacters=this._maskService.specialCharacters.filter(at=>"-"!==at))),r.currentValue&&r.currentValue.split("||").length>1?(this._maskExpressionArray=r.currentValue.split("||").sort((at,en)=>at.length-en.length),this._setMask()):(this._maskExpressionArray=[],this._maskValue=r.currentValue||"",this._maskService.maskExpression=this._maskValue)),i){if(!i.currentValue||!Array.isArray(i.currentValue))return;this._maskService.specialCharacters=i.currentValue||[]}s&&s.currentValue&&(this._maskService.patterns=s.currentValue),j&&j.currentValue&&(this._maskService.apm=j.currentValue),o&&(this._maskService.prefix=o.currentValue),a&&(this._maskService.suffix=a.currentValue),c&&(this._maskService.thousandSeparator=c.currentValue),l&&(this._maskService.decimalMarker=l.currentValue),u&&(this._maskService.dropSpecialCharacters=u.currentValue),d&&(this._maskService.hiddenInput=d.currentValue),f&&(this._maskService.showMaskTyped=f.currentValue),h&&(this._maskService.placeHolderCharacter=h.currentValue),p&&(this._maskService.shownMaskExpression=p.currentValue),m&&(this._maskService.showTemplate=m.currentValue),g&&(this._maskService.clearIfNotMatch=g.currentValue),_&&(this._maskService.validation=_.currentValue),y&&(this._maskService.separatorLimit=y.currentValue),D&&(this._maskService.leadZeroDateTime=D.currentValue),M&&(this._maskService.leadZero=M.currentValue),F&&(this._maskService.triggerOnMaskChange=F.currentValue),L&&(this._maskService.inputTransformFn=L.currentValue),Ze&&(this._maskService.outputTransformFn=Ze.currentValue),et&&(this._maskService.keepCharacterPositions=et.currentValue),this._applyMask()}validate({value:t}){if(!this._maskService.validation||!this._maskValue)return null;if(this._maskService.ipError)return this._createValidationError(t);if(this._maskService.cpfCnpjError)return this._createValidationError(t);if(this._maskValue.startsWith("separator")||Ez.includes(this._maskValue)||this._maskService.clearIfNotMatch)return null;if(bz.includes(this._maskValue))return this._validateTime(t);if(t&&t.toString().length>=1){let r=0;if(this._maskValue.startsWith("percent"))return null;for(const i in this._maskService.patterns)if(this._maskService.patterns[i]?.optional&&(this._maskValue.indexOf(i)!==this._maskValue.lastIndexOf(i)?r+=this._maskValue.split("").filter(o=>o===i).join("").length:-1!==this._maskValue.indexOf(i)&&r++,-1!==this._maskValue.indexOf(i)&&t.toString().length>=this._maskValue.indexOf(i)||r===this._maskValue.length))return null;if(1===this._maskValue.indexOf("{")&&t.toString().length===this._maskValue.length+Number((this._maskValue.split("{")[1]??"").split("}")[0])-4)return null;if(this._maskValue.indexOf("*")>1&&t.toString().length<this._maskValue.indexOf("*")||this._maskValue.indexOf("?")>1&&t.toString().length<this._maskValue.indexOf("?")||1===this._maskValue.indexOf("{"))return this._createValidationError(t);if(-1===this._maskValue.indexOf("*")||-1===this._maskValue.indexOf("?")){t="number"==typeof t?String(t):t;const i=this._maskValue.split("*"),s=this._maskService.dropSpecialCharacters?this._maskValue.length-this._maskService.checkDropSpecialCharAmount(this._maskValue)-r:this.prefix?this._maskValue.length+this.prefix.length-r:this._maskValue.length-r;if(1===i.length&&t.toString().length<s)return this._createValidationError(t);if(i.length>1){const o=i[i.length-1];if(o&&this._maskService.specialCharacters.includes(o[0])&&String(t).includes(o[0]??"")&&!this.dropSpecialCharacters){const a=t.split(o[0]);return a[a.length-1].length===o.length-1?null:this._createValidationError(t)}return(o&&!this._maskService.specialCharacters.includes(o[0])||!o||this._maskService.dropSpecialCharacters)&&t.length>=s-1?null:this._createValidationError(t)}}if(1===this._maskValue.indexOf("*")||1===this._maskValue.indexOf("?"))return null}return t&&this.maskFilled.emit(),null}onPaste(){this._justPasted=!0}onModelChange(t){(""===t||null==t)&&this._maskService.actualValue&&(this._maskService.actualValue=this._maskService.getActualValue(""))}onInput(t){if(this._isComposing)return;const r=t.target,i=this._maskService.inputTransformFn(r.value);if("number"!==r.type)if("string"==typeof i||"number"==typeof i){if(r.value=i.toString(),this._inputValue=r.value,this._setMask(),!this._maskValue)return void this.onChange(r.value);let s=1===r.selectionStart?r.selectionStart+this._maskService.prefix.length:r.selectionStart;if(this.showMaskTyped&&this.keepCharacterPositions&&1===this._maskService.placeHolderCharacter.length){const l=r.value.slice(s-1,s),u=this.prefix.length,d=this._maskService._checkSymbolMask(l,this._maskService.maskExpression[s-1-u]??""),f=this._maskService._checkSymbolMask(l,this._maskService.maskExpression[s+1-u]??""),h=this._maskService.selStart===this._maskService.selEnd,p=Number(this._maskService.selStart)-u,m=Number(this._maskService.selEnd)-u;if("Backspace"===this._code)if(h){if(!this._maskService.specialCharacters.includes(this._maskService.maskExpression.slice(s-this.prefix.length,s+1-this.prefix.length))&&h)if(1===p&&this.prefix)this._maskService.actualValue=this.prefix+this._maskService.placeHolderCharacter+r.value.split(this.prefix).join("").split(this.suffix).join("")+this.suffix,s-=1;else{const g=r.value.substring(0,s),_=r.value.substring(s);this._maskService.actualValue=g+this._maskService.placeHolderCharacter+_}}else this._maskService.actualValue=this._maskService.selStart===u?this.prefix+this._maskService.maskIsShown.slice(0,m)+this._inputValue.split(this.prefix).join(""):this._maskService.selStart===this._maskService.maskIsShown.length+u?this._inputValue+this._maskService.maskIsShown.slice(p,m):this.prefix+this._inputValue.split(this.prefix).join("").slice(0,p)+this._maskService.maskIsShown.slice(p,m)+this._maskService.actualValue.slice(m+u,this._maskService.maskIsShown.length+u)+this.suffix;"Backspace"!==this._code&&(d||f||!h?this._maskService.specialCharacters.includes(r.value.slice(s,s+1))&&f&&!this._maskService.specialCharacters.includes(r.value.slice(s+1,s+2))?(this._maskService.actualValue=r.value.slice(0,s-1)+r.value.slice(s,s+1)+l+r.value.slice(s+2),s+=1):d&&(this._maskService.actualValue=r.value.slice(0,s-1)+l+r.value.slice(s+1).split(this.suffix).join("")+this.suffix):s=Number(r.selectionStart)-1)}let o=0,a=!1;if("Delete"===this._code&&(this._maskService.deletedSpecialCharacter=!0),this._inputValue.length>=this._maskService.maskExpression.length-1&&"Backspace"!==this._code&&"d0/M0/0000"===this._maskService.maskExpression&&s<10){const l=this._inputValue.slice(s-1,s);r.value=this._inputValue.slice(0,s-1)+l+this._inputValue.slice(s+1)}if("Hh:m0:s0"===this._maskService.maskExpression&&this.apm&&(this._justPasted&&"00"===r.value.slice(0,2)&&(r.value=r.value.slice(1,2)+r.value.slice(2,r.value.length)),r.value="00"===r.value?"0":r.value),this._maskService.applyValueChanges(s,this._justPasted,"Backspace"===this._code||"Delete"===this._code,(l,u)=>{this._justPasted=!1,o=l,a=u}),this._getActiveElement()!==r)return;this._maskExpressionArray.length&&(s="Backspace"===this._code?this.specialCharacters.includes(this._inputValue.slice(s-1,s))?s-1:s:1===r.selectionStart?r.selectionStart+this._maskService.prefix.length:r.selectionStart),this._position=1===this._position&&1===this._inputValue.length?null:this._position;let c=this._position?this._inputValue.length+s+o:s+("Backspace"!==this._code||a?o:0);c>this._getActualInputLength()&&(c=this._getActualInputLength()),c<0&&(c=0),r.setSelectionRange(c,c),this._position=null}else console.warn("Ngx-mask writeValue work with string | number, your current value:",typeof i);else this._maskService.applyValueChanges(r.value.length,this._justPasted,"Backspace"===this._code||"Delete"===this._code)}onCompositionStart(){this._isComposing=!0}onCompositionEnd(t){this._isComposing=!1,this._justPasted=!0,this.onInput(t)}onBlur(t){if(this._maskValue){const r=t.target;if(this.leadZero&&r.value.length>0&&"string"==typeof this.decimalMarker){const i=this._maskService.maskExpression,s=Number(this._maskService.maskExpression.slice(i.length-1,i.length));if(s>1){r.value=this.suffix?r.value.split(this.suffix).join(""):r.value;const o=r.value.split(this.decimalMarker)[1];r.value=r.value.includes(this.decimalMarker)?r.value+"0".repeat(s-o.length)+this.suffix:r.value+this.decimalMarker+"0".repeat(s)+this.suffix,this._maskService.actualValue=r.value}}this._maskService.clearIfNotMatchFn()}this.onTouch()}onClick(t){if(!this._maskValue)return;const r=t.target;null!==r&&null!==r.selectionStart&&r.selectionStart===r.selectionEnd&&r.selectionStart>this._maskService.prefix.length&&38!==t.keyCode&&this._maskService.showMaskTyped&&!this.keepCharacterPositions&&(this._maskService.maskIsShown=this._maskService.showMaskInInput(),r.setSelectionRange&&this._maskService.prefix+this._maskService.maskIsShown===r.value?(r.focus(),r.setSelectionRange(0,0)):r.selectionStart>this._maskService.actualValue.length&&r.setSelectionRange(this._maskService.actualValue.length,this._maskService.actualValue.length));const o=r&&(r.value===this._maskService.prefix?this._maskService.prefix+this._maskService.maskIsShown:r.value);r&&r.value!==o&&(r.value=o),r&&"number"!==r.type&&(r.selectionStart||r.selectionEnd)<=this._maskService.prefix.length?r.selectionStart=this._maskService.prefix.length:r&&r.selectionEnd>this._getActualInputLength()&&(r.selectionEnd=this._getActualInputLength())}onKeyDown(t){if(!this._maskValue)return;if(this._isComposing)return void("Enter"===t.key&&this.onCompositionEnd(t));this._code=t.code?t.code:t.key;const r=t.target;if(this._inputValue=r.value,this._setMask(),"number"!==r.type){if("ArrowUp"===t.key&&t.preventDefault(),"ArrowLeft"===t.key||"Backspace"===t.key||"Delete"===t.key){if("Backspace"===t.key&&0===r.value.length&&(r.selectionStart=r.selectionEnd),"Backspace"===t.key&&0!==r.selectionStart)if(this.specialCharacters=this.specialCharacters?.length?this.specialCharacters:this._config.specialCharacters,this.prefix.length>1&&r.selectionStart<=this.prefix.length)r.setSelectionRange(this.prefix.length,r.selectionEnd);else if(this._inputValue.length!==r.selectionStart&&1!==r.selectionStart)for(;this.specialCharacters.includes((this._inputValue[r.selectionStart-1]??"").toString())&&(this.prefix.length>=1&&r.selectionStart>this.prefix.length||0===this.prefix.length);)r.setSelectionRange(r.selectionStart-1,r.selectionEnd);this.checkSelectionOnDeletion(r),this._maskService.prefix.length&&r.selectionStart<=this._maskService.prefix.length&&r.selectionEnd<=this._maskService.prefix.length&&t.preventDefault(),"Backspace"===t.key&&!r.readOnly&&0===r.selectionStart&&r.selectionEnd===r.value.length&&0!==r.value.length&&(this._position=this._maskService.prefix?this._maskService.prefix.length:0,this._maskService.applyMask(this._maskService.prefix,this._maskService.maskExpression,this._position))}this.suffix&&this.suffix.length>1&&this._inputValue.length-this.suffix.length<r.selectionStart?r.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length):("KeyA"===t.code&&t.ctrlKey||"KeyA"===t.code&&t.metaKey)&&(r.setSelectionRange(0,this._getActualInputLength()),t.preventDefault()),this._maskService.selStart=r.selectionStart,this._maskService.selEnd=r.selectionEnd}}writeValue(t){var r=this;return is(function*(){if("object"==typeof t&&null!==t&&"value"in t&&("disable"in t&&r.setDisabledState(!!t.disable),t=t.value),null!==t&&(t=r.inputTransformFn?r.inputTransformFn(t):t),"string"==typeof t||"number"==typeof t||null===t){let i=t;if("number"==typeof i||r._maskValue.startsWith("separator")){i=String(i);const s=r._maskService.currentLocaleDecimalMarker();Array.isArray(r._maskService.decimalMarker)||(i=r._maskService.decimalMarker!==s?i.replace(s,r._maskService.decimalMarker):i),r._maskService.leadZero&&i&&r.maskExpression&&!1!==r.dropSpecialCharacters&&(i=r._maskService._checkPrecision(r._maskService.maskExpression,i)),","===r._maskService.decimalMarker&&(i=i.toString().replace(".",",")),r.maskExpression?.startsWith("separator")&&r.leadZero&&requestAnimationFrame(()=>{r._maskService.applyMask(i?.toString()??"",r._maskService.maskExpression)}),r._maskService.isNumberValue=!0}"string"!=typeof i&&(i=""),r._inputValue=i,r._setMask(),i&&r._maskService.maskExpression||r._maskService.maskExpression&&(r._maskService.prefix||r._maskService.showMaskTyped)?("function"!=typeof r.inputTransformFn&&(r._maskService.writingValue=!0),r._maskService.formElementProperty=["value",r._maskService.applyMask(i,r._maskService.maskExpression)],"function"!=typeof r.inputTransformFn&&(r._maskService.writingValue=!1)):r._maskService.formElementProperty=["value",i],r._inputValue=i}else console.warn("Ngx-mask writeValue work with string | number, your current value:",typeof t)})()}registerOnChange(t){this._maskService.onChange=this.onChange=t}registerOnTouched(t){this.onTouch=t}_getActiveElement(t=this.document){const r=t?.activeElement?.shadowRoot;return r?.activeElement?this._getActiveElement(r):t.activeElement}checkSelectionOnDeletion(t){t.selectionStart=Math.min(Math.max(this.prefix.length,t.selectionStart),this._inputValue.length-this.suffix.length),t.selectionEnd=Math.min(Math.max(this.prefix.length,t.selectionEnd),this._inputValue.length-this.suffix.length)}setDisabledState(t){this._maskService.formElementProperty=["disabled",t]}_applyMask(){this._maskService.maskExpression=this._maskService._repeatPatternSymbols(this._maskValue||""),this._maskService.formElementProperty=["value",this._maskService.applyMask(this._inputValue,this._maskService.maskExpression)]}_validateTime(t){const r=this._maskValue.split("").filter(i=>":"!==i).length;return t&&(0==+(t[t.length-1]??-1)&&t.length<r||t.length<=r-2)?this._createValidationError(t):null}_getActualInputLength(){return this._maskService.actualValue.length||this._maskService.actualValue.length+this._maskService.prefix.length}_createValidationError(t){return{mask:{requiredMask:this._maskValue,actualValue:t}}}_setMask(){this._maskExpressionArray.some(t=>{if(t.split("").some(i=>this._maskService.specialCharacters.includes(i))&&this._inputValue&&!t.includes("S")||t.includes("{")){const i=this._maskService.removeMask(this._inputValue)?.length<=this._maskService.removeMask(t)?.length;if(i)return this._maskValue=this.maskExpression=this._maskService.maskExpression=t.includes("{")?this._maskService._repeatPatternSymbols(t):t,i;{const s=this._maskExpressionArray[this._maskExpressionArray.length-1]??"";this._maskValue=this.maskExpression=this._maskService.maskExpression=s.includes("{")?this._maskService._repeatPatternSymbols(s):s}}else{const i=this._inputValue?.split("").every((s,o)=>{const a=t.charAt(o);return this._maskService._checkSymbolMask(s,a)});if(i)return this._maskValue=this.maskExpression=this._maskService.maskExpression=t,i}})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Z({type:e,selectors:[["input","mask",""],["textarea","mask",""]],hostBindings:function(t,r){1&t&&te("paste",function(){return r.onPaste()})("ngModelChange",function(s){return r.onModelChange(s)})("input",function(s){return r.onInput(s)})("compositionstart",function(s){return r.onCompositionStart(s)})("compositionend",function(s){return r.onCompositionEnd(s)})("blur",function(s){return r.onBlur(s)})("click",function(s){return r.onClick(s)})("keydown",function(s){return r.onKeyDown(s)})},inputs:{maskExpression:[0,"mask","maskExpression"],specialCharacters:"specialCharacters",patterns:"patterns",prefix:"prefix",suffix:"suffix",thousandSeparator:"thousandSeparator",decimalMarker:"decimalMarker",dropSpecialCharacters:"dropSpecialCharacters",hiddenInput:"hiddenInput",showMaskTyped:"showMaskTyped",placeHolderCharacter:"placeHolderCharacter",shownMaskExpression:"shownMaskExpression",showTemplate:"showTemplate",clearIfNotMatch:"clearIfNotMatch",validation:"validation",separatorLimit:"separatorLimit",allowNegativeNumbers:"allowNegativeNumbers",leadZeroDateTime:"leadZeroDateTime",leadZero:"leadZero",triggerOnMaskChange:"triggerOnMaskChange",apm:"apm",inputTransformFn:"inputTransformFn",outputTransformFn:"outputTransformFn",keepCharacterPositions:"keepCharacterPositions"},outputs:{maskFilled:"maskFilled"},features:[Pe([{provide:Nn,useExisting:we(()=>e),multi:!0},{provide:Bt,useExisting:we(()=>e),multi:!0},By]),er]}),e})();function Sz(e,n){return n instanceof Function?{...e,...n()}:{...e,...n}}let PA=(()=>{class e{static forRoot(t){return{ngModule:e,providers:[{provide:NA,useValue:t},{provide:kA,useValue:Cz},{provide:Wd,useFactory:Sz,deps:[kA,NA]},By]}}static forChild(){return{ngModule:e}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ct({type:e}),e.\u0275inj=dt({}),e})();const Tz=[[["prefix"]],[["suffix"]]],Mz=["prefix","suffix"];let OA=(()=>{class e{constructor(t,r){this.cdr=t,this.injector=r,this.value=null,this.disabled=!1,this.onChange=i=>{},this.onTouched=()=>{},this.trimAfterPaste=!1,this.autocomplete="false",this.password=!1,this.transparent=!1,this.placeholder="Enter a value...",this.type="text",this.validate=!0,this.dropSpecialCharacters=!0,this._paste=new ve}ngOnInit(){this.initFormControl()}initFormControl(){this.formControl=this.injector.get(Jr)}get isInvalidControl(){return"invalid"===this.status||function gz(e){const{invalid:n,pristine:t,touched:r}=e;return!(!n||!r||t)}(this.formControl)&&this.validate}setValue(t){this.value=yI(t),this.onChange(t),this.cdr.detectChanges()}paste(t){t.stopPropagation(),setTimeout(()=>{this._paste.emit(t.target.value),this.cdr.detectChanges()})}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}writeValue(t){this.value=yI(t),this.cdr.detectChanges()}setDisabledState(t){this.disabled=t,this.cdr.detectChanges()}static#e=this.\u0275fac=function(r){return new(r||e)(v(Eo),v(Ne))};static#t=this.\u0275cmp=Te({type:e,selectors:[["moto-form-input"]],inputs:{formControlName:"formControlName",minlength:"minlength",maxlength:"maxlength",trimAfterPaste:"trimAfterPaste",autocomplete:"autocomplete",password:"password",transparent:"transparent",placeholder:"placeholder",type:"type",mask:"mask",validate:"validate",dropSpecialCharacters:"dropSpecialCharacters",status:"status"},outputs:{_paste:"paste"},features:[Pe([{provide:Nn,useExisting:we(()=>e),multi:!0}])],ngContentSelectors:Mz,decls:8,vars:13,consts:[["inputRef",""],[1,"__ndb-form-control"],[1,"__ndb-form-control-affix"],[1,"__ndb-input-container"],[1,"__ndb-form-control-input",3,"ngModelChange","blur","paste","type","placeholder","minlength","maxlength","mask","dropSpecialCharacters","ngModel"]],template:function(r,i){if(1&r){const s=mt();(function WD(e){const n=b()[qe][Ot];if(!n.projection){const r=n.projection=el(e?e.length:1,null),i=r.slice();let s=n.child;for(;null!==s;){if(128!==s.type){const o=e?XV(s,e):0;null!==o&&(i[o]?i[o].projectionNext=s:r[o]=s,i[o]=s)}s=s.next}}})(Tz),S(0,"div",1)(1,"div",2),xm(2),T(),S(3,"div",3)(4,"input",4,0),te("ngModelChange",function(a){return ne(s),re(i.setValue(a))})("blur",function(){return ne(s),re(i.onTouched())})("paste",function(a){return ne(s),re(i.paste(a))}),T()(),S(6,"div",2),xm(7,1),T()()}2&r&&(ln("transparent",i.transparent)("invalid",i.isInvalidControl),C(4),P("type",i.type)("placeholder",i.placeholder)("minlength",i.minlength)("maxlength",i.maxlength)("mask",i.mask)("dropSpecialCharacters",i.dropSpecialCharacters)("ngModel",i.value),Lt("data-locator",i.formControlName||i.placeholder)("autocomplete",i.autocomplete))},dependencies:[Dz,Ad,Di,zd,Ac,Vo],styles:["[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.__ndb-form-control[_ngcontent-%COMP%]{border:1px solid #c9ccd8;border-radius:4px;display:flex;align-items:center;box-shadow:0 2px #29304d14;padding:17px 10px}.__ndb-form-control-affix[_ngcontent-%COMP%]{display:flex;align-items:center;gap:3px}.__ndb-form-control.invalid[_ngcontent-%COMP%]{border:1px solid #f44336;color:#f44336}.__ndb-form-control.invalid[_ngcontent-%COMP%] .__ndb-form-control-input[_ngcontent-%COMP%]::placeholder{color:#eb001b}.__ndb-form-control.transparent[_ngcontent-%COMP%]{border:none;box-shadow:none}.__ndb-form-control[_ngcontent-%COMP%] .__ndb-input-container[_ngcontent-%COMP%]{display:flex;flex-grow:1}.__ndb-form-control-input[_ngcontent-%COMP%]{display:block;width:100%;max-width:100%;border:none;outline:none;flex-grow:1}.__ndb-form-control-input[_ngcontent-%COMP%]::placeholder{color:#707797}"],changeDetection:0})}return e})();function Iz(e,n){if(1&e&&(S(0,"span",4),z(1),T()),2&e){const t=x();P("@ANTransform",void 0),C(),Tt(t.paymentsErrorMsg())}}function Az(e,n){if(1&e&&(S(0,"span",15),z(1),T()),2&e){x();const t=Ke(2);P("@ANTransform",void 0),C(),Tt(t.errors.invalidCardHolder)}}let RA=(()=>{class e extends Id{constructor(t,r,i){super(t),this.injector=t,this.fb=r,this.context=i,this.constants=Mn}ngOnInit(){this.settings=this.context.data.settings,this.componentState=this.context.componentsStates.cardForm,this.initForm(),this.initComputedFields(),Vy(this.form,this.componentState,this,()=>!!this.settings().requiredFieldsBehavior?.markAsInvalidUntilCorrect,this.areRequiredFieldsFilled,this.onUpdate,this.context)}pasteCardNumber(t){const r=function lG(e){return e.replace(/\s/g,"")}(t);this.form.get("cardCredentials").get("cardNumber").setValue(r,{onlySelf:!0}),function vz(e,n,t=null,r=!0){n.forEach(i=>{const s=e.get(i);s||function hz(e){throw new Error(e)}(`Invalid form control name: "${i}"`),s.reset(t),r&&s.updateValueAndValidity()})}(this.form.get("cardCredentials"),["expiration","cvv"]),this.detect()}resetForm(){this.form.reset(),this.localDetect()}onFocus(t){switch(t){case"number":this.context.events.analytics.emit(new Ae("card-number-field-focus"),!0);break;case"cvv":this.context.events.analytics.emit(new Ae("cvv-field-focus"),!0);break;case"holder":this.context.events.analytics.emit(new Ae("card-holder-field-focus"),!0);break;case"expiration":this.context.events.analytics.emit(new Ae("expiration-date-field-focus"),!0)}}initForm(){this.form=this.fb.group({cardCredentials:this.fb.group({cardNumber:[null,[Pr.required,qd.luhnAlgorithm,qd.cardNumberLength]],expiration:[null,[Pr.required,Pr.minLength(4),Pr.maxLength(4),qd.cardExpiration]],cvv:[null,[Pr.required,qd.cardCodeLength()]]}),cardHolder:[null,[Pr.required,Pr.maxLength(Mn.card.holder.length.max)]]})}initComputedFields(){this.isCredentialsErrorShown=ce(()=>{const t=this.form.get("cardCredentials");return this.componentState().canShowError&&t.invalid}),this.isCardHolderErrorShown=ce(()=>{const t=this.form.get("cardHolder");return this.componentState().canShowError&&t.invalid}),this.paymentDetailsHeader=ce(()=>{const t=this.settings();return`${t.language.requisites.paymentDetailsHeader}${this.componentState().isRequired&&t.requiredFieldsBehavior?.showStars?" *":""}`}),this.nameOnCardHeader=ce(()=>{const t=this.settings();return`${t.language.requisites.cardHolderHeader}${this.componentState().isRequired&&t.requiredFieldsBehavior?.showStars?" *":""}`}),this.paymentsErrorMsg=ce(()=>{const t=this.form.get("cardCredentials"),[r]=function _z(e){return function yz(e){return Object.entries(e.controls).filter(([,n])=>n.invalid)}(e).map(([n])=>n)}(t),i=this.settings().language.errors;switch(this.componentState(),r){case"cardNumber":return i.invalidCardNumber;case"expiration":return i.invalidCardExpiration;case"cvv":return i.invalidCvv}})}areRequiredFieldsFilled(t){const{cardCredentials:r,cardHolder:i}=t;return r?.cvv&&r?.cardNumber&&r?.expiration&&i}onUpdate(t,r){const{cardCredentials:i,cardHolder:s}=t;r.data.userProvidedInfo.update(o=>({...o,paymentSystemName:"card",requisites:{type:"card",value:{cvv:i.cvv,expiration:i.expiration,number:i.cardNumber,holder:s}}}))}static#e=this.\u0275fac=function(r){return new(r||e)(v(Ne),v(Ly),v(xe))};static#t=this.\u0275cmp=Te({type:e,selectors:[["moto-card-form"]],features:[me],decls:32,vars:49,consts:[[1,"__ndb-form",3,"formGroup"],[1,"__ndb-form-stage"],[1,"__ndb-form-stage-header"],[1,"__ndb-form-stage-header-title","fz-14","fw-500"],["data-locator","card-credentials-error",1,"__ndb-form-stage-header-error","fz-14","fw-500","font-error"],["formGroupName","cardCredentials",1,"__ndb-form-stage-controls","__ndb-form-stage-controls_credentials"],["id","card-number-field","formControlName","cardNumber","type","tel","autocomplete","cc-number",1,"__ndb-form-stage-controls_card-number",3,"paste","focusin","placeholder","mask","transparent","validate","status"],["ngProjectAs","suffix",5,["suffix"],1,"__ndb-form-stage-controls_card-number-logo",3,"src"],[1,"__ndb-form-stage-controls-separator","__ndb-form-stage-controls-separator_x"],[1,"__ndb-form-stage-controls-group"],["id","card-expiration-field","formControlName","expiration","mask","00 / 00","type","tel","autocomplete","cc-exp",1,"__ndb-form-stage-controls_expiration",3,"focusin","placeholder","transparent","validate","status"],[1,"__ndb-form-stage-controls-separator","__ndb-form-stage-controls-separator_y"],["id","card-cvv-field","formControlName","cvv","type","tel",1,"__ndb-form-stage-controls_cvv",3,"focusin","mask","dropSpecialCharacters","placeholder","transparent","validate","status"],["tabindex","-1","ngProjectAs","suffix",5,["suffix"]],[1,"material-icons","font-description","block","fz-18","cursor-default"],["data-locator","card-holder-error",1,"__ndb-form-stage-header-error","fz-14","fw-500","font-error"],[1,"__ndb-form-stage-controls"],["id","card-holder-field","formControlName","cardHolder","autocomplete","cc-name",3,"focusin","placeholder","maxlength","validate","status"]],template:function(r,i){if(1&r){const s=mt();Sn(0)(1)(2),S(3,"form",0)(4,"div",1)(5,"div",2)(6,"h6",3),z(7),T(),ee(8,Iz,2,2,"span",4),T(),S(9,"div",5)(10,"moto-form-input",6),Ie(11,"cardInfo"),te("paste",function(a){return ne(s),re(i.pasteCardNumber(a))})("focusin",function(){return ne(s),re(i.onFocus("number"))}),ge(12,"moto-picture",7),Ie(13,"cardInfo"),T(),ge(14,"div",8),S(15,"div",9)(16,"moto-form-input",10),te("focusin",function(){return ne(s),re(i.onFocus("expiration"))}),T(),ge(17,"div",11),S(18,"moto-form-input",12),Ie(19,"cardInfo"),Ie(20,"cardInfo"),te("focusin",function(){return ne(s),re(i.onFocus("cvv"))}),S(21,"div",13),Ie(22,"cardInfo"),S(23,"i",14),z(24,"error"),T()()()()()(),S(25,"div",1)(26,"div",2)(27,"h6",3),z(28),T(),ee(29,Az,2,2,"span",15),T(),S(30,"div",16)(31,"moto-form-input",17),te("focusin",function(){return ne(s),re(i.onFocus("holder"))}),T()()()()}if(2&r){const s=i.isCardHolderErrorShown(),o=i.isCredentialsErrorShown();C(2);const a=hn(i.settings().language);C(),P("formGroup",i.form),C(4),ke(" ",i.paymentDetailsHeader()," "),C(),oe(o?8:-1),C(),ln("invalid",o),C(),P("placeholder",a.requisites.cardNumberPlaceholder)("mask",vo(11,29,i.form.value.cardCredentials.cardNumber,"card-number-mask","0000 0000 0000 0000"))("transparent",!0)("validate",!1)("status",o?"invalid":"valid"),C(2),P("src",At(13,33,i.form.value.cardCredentials.cardNumber,"logo")),C(4),P("placeholder",a.requisites.cardExpirationPlaceholder)("transparent",!0)("validate",!1)("status",o?"invalid":"valid"),C(2),P("mask",vo(19,36,i.form.value.cardCredentials.cardNumber,"code-mask","000"))("dropSpecialCharacters",!1)("placeholder",function O0(e,n,t,r,i,s){const o=e+V,a=b(),c=Ri(a,o);return Ka(a,o)?k0(a,qt(),n,c.transform,t,r,i,s,c):c.transform(t,r,i,s)}(20,40,i.form.value.cardCredentials.cardNumber,"code","CVV",a.requisites.cvvPlaceholder))("transparent",!0)("validate",!1)("status",o?"invalid":"valid"),C(3),Lt("data-tooltip",vo(22,45,i.form.value.cardCredentials.cardNumber,"secure-text",a.requisites.cvvHint)),C(7),ke(" ",i.nameOnCardHeader()," "),C(),oe(s?29:-1),C(2),P("placeholder",a.requisites.cardHolderPlaceholder)("maxlength",i.constants.card.holder.length.max)("validate",!1)("status",s?"invalid":"valid")}},dependencies:[Ud,Di,kd,Ac,Bo,Ic,$d,Io,OA,yy],data:{animation:[vd()]},changeDetection:0})}return e})();function xz(e,n){if(1&e&&(S(0,"span",4),z(1),T()),2&e){x();const t=Ke(0);P("@ANTransform",void 0),C(),ke(" ",t.errors.invalidPhoneNumber,"")}}let FA=(()=>{class e extends Id{constructor(t,r,i){super(t),this.injector=t,this.fb=r,this.context=i,this.phoneConstants=Mn.phoneNumber}ngOnInit(){this.componentState=this.context.componentsStates.additionalForm,this.cardFormState=this.context.componentsStates.cardForm,this.settings=this.context.data.settings,this.initComputed(),this.initForm(),Vy(this.form,this.componentState,this,()=>!!this.settings().requiredFieldsBehavior?.markAsInvalidUntilCorrect,t=>!!t.phoneNumber)}onFocus(){this.context.events.analytics.emit(new Ae("number-field-focus"),!0)}initForm(){this.form=this.fb.group({phoneNumber:["",[Pr.minLength(Mn.phoneNumber.length.min),Pr.maxLength(Mn.phoneNumber.length.max)]]})}initComputed(){this.header=ce(()=>{const t=this.settings();return`${t.language.phone.header}${this.componentState().isRequired&&t.requiredFieldsBehavior?.showStars?" *":""}`}),this.isErrorShown=ce(()=>{const t=this.componentState();return t.canShowError&&!t.isValid})}static#e=this.\u0275fac=function(r){return new(r||e)(v(Ne),v(Ly),v(xe))};static#t=this.\u0275cmp=Te({type:e,selectors:[["moto-additional-form"]],features:[me],decls:10,vars:9,consts:[[1,"__ndb-form",3,"formGroup"],[1,"__ndb-form-stage"],[1,"__ndb-form-stage-header"],[1,"__ndb-form-stage-header-title","fz-14","fw-500"],["data-locator","phone-error",1,"__ndb-form-stage-header-error","fz-14","fw-500","font-error"],[1,"__ndb-form-stage-controls"],["id","phone-number-field","formControlName","phoneNumber","autocomplete","tel","type","tel",3,"focusin","placeholder","minlength","maxlength","validate","status"]],template:function(r,i){if(1&r){const s=mt();Sn(0)(1),S(2,"form",0)(3,"div",1)(4,"div",2)(5,"h6",3),z(6),T(),ee(7,xz,2,2,"span",4),T(),S(8,"div",5)(9,"moto-form-input",6),te("focusin",function(){return ne(s),re(i.onFocus())}),T()()()()}if(2&r){const s=hn(i.settings().language),o=i.isErrorShown();C(2),P("formGroup",i.form),C(4),Tt(i.header()),C(),oe(o?7:-1),C(2),P("placeholder",s.phone.placeholder)("minlength",i.phoneConstants.length.min)("maxlength",i.phoneConstants.length.max)("validate",!1)("status",o?"invalid":"valid")}},dependencies:[Ud,Di,kd,zd,Ac,Bo,Ic,OA],data:{animation:[vd()]},changeDetection:0})}return e})(),jo=(()=>{class e{constructor(t){this.sanitizer=t}transform(t,r){if(!t)return t;const i=this.parseLinks(t,r);return this.sanitizer.bypassSecurityTrustHtml(i)}parseLinks(t,r){return t.replace(/\{\s*href:\s*['"]([^'"]+)['"],\s*text:\s*['"]([^'"]+)['"]\s*\}/g,`<a href="$1" ${r?`class="${r}"`:""} target="_blank">$2</a>`)}static#e=this.\u0275fac=function(r){return new(r||e)(v(Bg,16))};static#t=this.\u0275pipe=ft({name:"linkify",type:e,pure:!0})}return e})();function Nz(e,n){if(1&e){const t=mt();S(0,"label",5)(1,"input",6),te("ngModelChange",function(i){ne(t);const s=x(),o=s.$implicit,a=s.$index;return re(x(2).onChange(o,a,i))})("focusin",function(){ne(t);const i=x(),s=i.$implicit,o=i.$index;return re(x(2).onFocus(s,o))}),T(),ge(2,"span",7)(3,"span",8),Ie(4,"linkify"),T()}if(2&e){const t=x(),r=t.$implicit,i=t.$index,s=x(2),o=Ke(1),a=Ke(2);C(),P("name","charge-term-"+i)("id","charge-term-"+i)("formControlName",i),C(),ln("circle","circle"===(null==o?null:o.shape))("square","square"===(null==o?null:o.shape))("invalid",a&&!s.form.get("checkboxes").get(i.toString()).value),C(),P("innerHTML",At(4,10,r,"__ndb-settings-checkboxes-checkbox-link fz-12 fw-500 font-description"),Tr)}}function kz(e,n){1&e&&ee(0,Nz,5,13,"label",5),2&e&&oe(n.$implicit?0:-1)}function Pz(e,n){if(1&e&&(S(0,"form",1),go(1,4),un(2,kz,1,1,null,null,or),yo(),T()),2&e){const t=x(),r=Ke(1);P("formGroup",t.form),C(2),dn(r.checkboxes)}}function Oz(e,n){if(1&e&&(S(0,"p",2),Ie(1,"linkify"),z(2),T()),2&e){x();const t=Ke(1);P("innerHTML",At(1,2,t.text,"fz-12 fw-500 font-description"),Tr),C(2),ke(" ",t.text," ")}}function Rz(e,n){if(1&e&&(S(0,"span",3),z(1),T()),2&e){x();const t=Ke(0);P("@ANTransform",void 0),C(),ke(" ",t.language.errors.notCheckedCheckboxes," ")}}let LA=(()=>{class e extends Id{constructor(t,r,i){super(r),this.context=t,this.injector=r,this.fb=i}ngOnInit(){this.settings=this.context.data.settings,this.componentState=this.context.componentsStates.chargeTerms,this.isErrorShown=ce(()=>this.componentState().canShowError&&!this.componentState().isValid),this.initForm()?Vy(this.form,this.componentState,this,()=>!!this.settings().requiredFieldsBehavior?.markAsInvalidUntilCorrect,()=>!0):this.componentState.update(t=>({...t,isValid:!0}))}onChange(t,r,i){this.context.events.analytics.emit(new Ae(i?`charge-term-checkbox-${r}-check`:`charge-term-checkbox-${r}-uncheck`,{text:t}))}onFocus(t,r){this.context.events.analytics.emit(new Ae(`charge-term-checkbox-${r}-focus`,{text:t}),!0)}initForm(){const t=this.settings().chargeTerms;if(!t.checkboxes?.length)return!1;const r=t.checkboxes.map(()=>this.fb.control(!1,Pr.requiredTrue));return this.form=this.fb.group({checkboxes:this.fb.array(r)}),!0}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe),v(Ne),v(Ly))};static#t=this.\u0275cmp=Te({type:e,selectors:[["moto-charge-terms"]],features:[me],decls:7,vars:6,consts:[[1,"__ndb-settings"],[1,"__ndb-settings-checkboxes",3,"formGroup"],[1,"__ndb-settings-text","fz-11","fw-500",3,"innerHTML"],["data-locator","charge-terms-error",1,"fz-14","fw-500","font-error"],["formArrayName","checkboxes"],[1,"__ndb-settings-checkboxes-checkbox","fz-11","fw-500","font-description"],["type","checkbox",1,"__ndb-settings-checkboxes-checkbox-input",3,"ngModelChange","focusin","name","id","formControlName"],[1,"__ndb-settings-checkboxes-checkbox-checkmark"],[1,"__ndb-settings-checkboxes-checkbox-text",3,"innerHTML"]],template:function(r,i){if(1&r&&(Sn(0)(1)(2),S(3,"div",0),ee(4,Pz,4,1,"form",1)(5,Oz,3,5,"p",2)(6,Rz,2,2,"span",3),T()),2&r){const s=hn(i.settings());C();const o=hn(s.chargeTerms);C();const a=hn(i.isErrorShown());C(2),oe(null!=o.checkboxes&&o.checkboxes.length?4:-1),C(),oe(o.text?5:-1),C(),oe(a?6:-1)}},dependencies:[Ud,Cc,Di,kd,Bo,Ic,Gd,jo],data:{animation:[vd()]},changeDetection:0})}return e})();function jy(e){const n=function Lz(e){return`\n <!DOCTYPE html>\n <html>\n <head>\n <meta charset="UTF-8">\n <meta name="viewport" content="width=device-width, initial-scale=1.0">\n <meta name="description" content="Waiting payment approval">\n\n <title>Moto pay</title>\n </head>\n <body>\n <div class="waiting">\n <div class="section">\n <h2 class="waiting__title">${e.paymentProcessing}</h2>\n <div class="section__content __ndb-spinner-container">\n <div class="spinner">\n <div class="lds-ring">\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n </div>\n <div class="spinner__extra"></div>\n </div>\n </div>\n </div>\n </div>\n </body>\n </html>`}(e);let o=n.replace("</head>",'<style>\n\n .waiting__title {\n position: relative;\n z-index: 101;\n font-family: "Poppins", Helvetica, Arial, sans-serif;\n color: #29304d;\n font-size: 16px;\n margin: 0;\n text-align: center;\n transform: translateY(108px);\n }\n .__ndb__moto-modal-backdrop {\n background-color: #e5e5e5 !important;\n }\n .__ndb__moto-modal .header {\n margin: 0;\n }\n .section__content {\n margin: 0 auto;\n width: 870px;\n }\n @media screen and (max-width: 1000px) {\n .section__content {\n width: 720px;\n }\n }\n @media screen and (max-width: 768px) {\n .section__content {\n width: 375px;\n }\n }\n @media screen and (max-width: 375px) {\n .section__content {\n width: 320px;\n }\n }\n .spinner {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n height: 330px;\n }\n .spinner_small {\n height: 70px;\n }\n .spinner_extra {\n height: 550px;\n }\n .lds-ring {\n display: inline-block;\n position: relative;\n width: 80px;\n height: 80px;\n }\n .lds-ring div {\n box-sizing: border-box;\n display: block;\n position: absolute;\n width: 64px;\n height: 64px;\n margin: 8px;\n border: 8px solid #6936d3;\n border-radius: 50%;\n animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;\n border-color: #6936d3 transparent transparent transparent;\n }\n .lds-ring div:nth-child(1) {\n animation-delay: -0.45s;\n }\n .lds-ring div:nth-child(2) {\n animation-delay: -0.3s;\n }\n .lds-ring div:nth-child(3) {\n animation-delay: -0.15s;\n }\n @keyframes lds-ring {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n</style>\n</head>');return o=o.replace("</body>","<script>\n\n const messageKey = '__moto_pay_message';\n\n function inputTemplate(name, value) {\n return `<input type=\"hidden\" name=\"${name}\" value=\"${value}\" />`;\n }\n \n function formTemplate(redirectUrl, inputsTpl) {\n return `<form action=\"${redirectUrl}\" method=\"post\">${inputsTpl}</form>`;\n }\n \n function makeFormTemplate(threeDsData) {\n const inputsTemplate = Object.entries(threeDsData).reduce((accum, [key, value]) => {\n const inputTpl = inputTemplate(key, value);\n return (accum += `${inputTpl}\n`);\n }, '');\n const template = formTemplate(threeDsData.acsurl, inputsTemplate);\n return template;\n }\n \n function simpleRedirect(url) {\n window.location.replace(url);\n }\n \n function postRedirect(threeDsData) {\n const template = makeFormTemplate(threeDsData);\n \n setTimeout(() => {\n document.body.innerHTML = template;\n const form = document.body.querySelector('form');\n form.submit();\n });\n }\n \n function onMessageReceived(event) {\n if (event.data && event.data.key == messageKey) {\n if (event.data.type == 'simpleRedirect') {\n simpleRedirect(event.data?.redirectData?.location);\n }\n \n if (event.data.type == 'postRedirect') {\n postRedirect(event.data.threeDsData);\n }\n }\n }\n\n window.addEventListener('message', onMessageReceived, false);\n \n<\/script>\n</body>"),o}iP();class Zd{constructor(){this.postMessageKey="__moto_pay_message"}tryOpenBlankWindow(n){return this.window||(this.window=window.open("","_blank")??void 0,n&&this.window?.document?.write(n)),this.window}threeDsRedirect(n){this.window?.postMessage({key:this.postMessageKey,type:"postRedirect",threeDsData:n})}redirect(n){this.window?.postMessage({key:this.postMessageKey,type:"simpleRedirect",redirectData:n})}closeWindow(){this.window?.close(),this.window=void 0}}let VA=(()=>{class e{constructor(t){this.window=t}transform(t,r){return Number(t).toLocaleString(this.window.navigator.language,{style:"currency",currency:r})}static#e=this.\u0275fac=function(r){return new(r||e)(v(_I,16))};static#t=this.\u0275pipe=ft({name:"currencySymbol",type:e,pure:!0})}return e})(),Bz=(()=>{class e{transform(t,r,i){return hy(t,r,i)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275pipe=ft({name:"price",type:e,pure:!0})}return e})();function jz(e,n){if(1&e&&(S(0,"span",4),z(1),T()),2&e){x();const t=Ke(3);C(),Tt(t.taxDescription)}}function Hz(e,n){if(1&e&&(ge(0,"div",9),S(1,"div",10),ge(2,"moto-picture",11),Ie(3,"cardInfo"),S(4,"span",12),z(5),Ie(6,"slice"),T()()),2&e){const t=n;C(2),P("src",At(3,2,t.name,"logo")),C(3),ke(" \u2022\u2022",At(6,5,t.name,-4)," ")}}let BA=(()=>{class e{constructor(t,r,i){this.context=t,this.processing=r,this.windowService=i}ngOnInit(){this.settings=this.context.data.settings,this.payment=this.context.data.payment,this.userProvidedInfo=this.context.data.userProvidedInfo,this.paymentAvailability=this.context.computed.paymentAvailability,this.existingCard=ce(()=>{const t=this.userProvidedInfo();if("existing-card"===t?.requisites?.type&&t.requisites?.value)return t.requisites.value})}pay(){if(this.context.events.analytics.emit(new Ae("pay-button-click")),!this.context.computed.paymentAvailability().canPay.byCard)return void this.context.updateCanShowError(!0);this.windowService.tryOpenBlankWindow(jy(this.settings().language));const t=this.processing.pay();this.context.data.state.set({type:"payLoading",payload:{observable:t}})}onFocus(){this.context.events.analytics.emit(new Ae("pay-button-focus"),!0)}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe),v(Ro),v(Zd))};static#t=this.\u0275cmp=Te({type:e,selectors:[["moto-pay-button"]],decls:23,vars:23,consts:[[1,"__ndb-pay"],[1,"__ndb-pay-info"],[1,"__ndb-pay-title","fz-18","fw-600"],["data-locator","total-cost",1,"fz-24","fw-700"],["id","tax-description",1,"fz-11","fw-500","font-description"],["id","pay-button","data-locator","btn-submit",1,"__ndb-pay-btn","button-submit","full-width",3,"click","focusin","ngClass","disabled"],[1,"__ndb-pay-btn-content"],[1,"__ndb-pay-btn-cost-side"],["data-locator","btn-submit-cost"],[1,"__ndb-pay-btn-separator"],[1,"__ndb-pay-btn-card-side"],[1,"__ndb-pay-btn-card-side-logo",3,"src"],["data-locator","btn-submit-card-number",1,"__ndb-pay-btn-card-side-number"]],template:function(r,i){if(1&r){const s=mt();Sn(0)(1)(2)(3),S(4,"div",0)(5,"div",1)(6,"span",2),z(7),T(),S(8,"span",3),z(9),Ie(10,"price"),Ie(11,"currencySymbol"),T()(),ee(12,jz,2,1,"span",4),S(13,"button",5),te("click",function(){return ne(s),re(i.pay())})("focusin",function(){return ne(s),re(i.onFocus())}),S(14,"div",6)(15,"div",7)(16,"span"),z(17),S(18,"span",8),z(19),Ie(20,"price"),Ie(21,"currencySymbol"),T()()(),ee(22,Hz,7,8),T()()()}if(2&r){let s;const o=i.payment(),a=i.paymentAvailability(),c=i.settings();C(3);const l=hn(c.language);C(4),Tt(l.totalHeader),C(2),Tt(At(11,13,vo(10,9,o.amount,o.tax,o.amountType),o.currency)),C(3),oe(c.isTaxVisible&&l.taxDescription?12:-1),C(),P("ngClass",a.buttonDisableClass)("disabled",a.isPayButtonDisabled),C(4),ke(" ",l.pay," "),C(2),ke(" ",At(21,20,vo(20,16,o.amount,o.tax,o.amountType),o.currency)," "),C(3),oe((s=i.existingCard())?22:-1,s)}},dependencies:[bg,Io,VA,Tg,Bz,yy],styles:["[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.full-width[_ngcontent-%COMP%]{width:100%}@media (min-width: 769px){.ndb-mobile[_ngcontent-%COMP%]{display:none}}@media (max-width: 768px){.ndb-desktop[_ngcontent-%COMP%]{display:none}}.margin-auto[_ngcontent-%COMP%]{margin:auto}.flex[_ngcontent-%COMP%]{display:flex}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.none[_ngcontent-%COMP%]{display:none}.block[_ngcontent-%COMP%]{display:block}.events-none[_ngcontent-%COMP%]{pointer-events:none}.cursor-default[_ngcontent-%COMP%]{cursor:default}.pointer[_ngcontent-%COMP%]{cursor:pointer}.bold[_ngcontent-%COMP%]{font-weight:700!important}.font-middle[_ngcontent-%COMP%]{vertical-align:middle}.rotate[_ngcontent-%COMP%]{transform:rotate(-180deg)}.__ndb-pay[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.__ndb-pay-info[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center;justify-content:space-between;gap:20px;margin-bottom:7px}.__ndb-pay-btn[_ngcontent-%COMP%]{margin-top:7px}.__ndb-pay-btn-content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:16px;width:100%}.__ndb-pay-btn-separator[_ngcontent-%COMP%]{width:2px;height:18px;opacity:.3;background-color:var(--ndb-button-color)}.__ndb-pay-btn-card-side[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}.__ndb-pay-btn-card-side-logo[_ngcontent-%COMP%]{height:24px;width:36px}"],changeDetection:0})}return e})(),Yd=(()=>{class e{constructor(){this.signals={}}getOrSetItemSignal(t,r){const i=window.sessionStorage.getItem(t);return i?this.signals[t]?JSON.stringify(this.signals[t]())!==i&&this.signals[t].set(JSON.parse(i)):this.signals[t]=se(JSON.parse(i)):this.setItem(t,r),this.signals[t]}setItem(t,r){window.sessionStorage.setItem(t,JSON.stringify(r)),this.signals[t]?this.signals[t].set(r):this.signals[t]=se(r)}removeItem(t){window.sessionStorage.removeItem(t),this.signals[t]?.set(void 0)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),$z=(()=>{class e{constructor(t,r){this.renderer=t,this.elRef=r,this.buttonClick=new ve,this.buttonStyle="white-outline",this.locale="en-US",this.type="continue"}ngAfterViewInit(){this.createButton()}ngOnDestroy(){this.buttonClickListener&&(this.buttonClickListener(),this.buttonClickListener=void 0)}createButton(){const t=this.renderer.createElement("apple-pay-button");this.renderer.setAttribute(t,"type",this.type),this.renderer.setAttribute(t,"buttonstyle",this.buttonStyle),this.renderer.setAttribute(t,"locale",this.locale),this.buttonClickListener=this.renderer.listen(t,"click",r=>this.buttonClick.emit(r)),this.renderer.appendChild(this.elRef.nativeElement,t),this.renderer.setStyle(t,"display","inline-block")}static#e=this.\u0275fac=function(r){return new(r||e)(v(Ar),v(on))};static#t=this.\u0275dir=Z({type:e,selectors:[["","motoApplePayButton",""]],inputs:{buttonStyle:"buttonStyle",locale:"locale",type:"type"},outputs:{buttonClick:"buttonClick"}})}return e})(),Gz=(()=>{class e{constructor(t,r,i){this.renderer=t,this.elRef=r,this.context=i,this.buttonClick=new ve}ngAfterViewInit(){this.createButton()}ngOnDestroy(){this.buttonClickListener&&(this.buttonClickListener(),this.buttonClickListener=void 0)}createButton(){if(!this.context.clients.googlePay)return;const t=this.context.clients.googlePay.createButton({...this.context.data.settings()?.googlePay.button,onClick:r=>this.buttonClick.emit(r)});this.renderer.appendChild(this.elRef.nativeElement,t),this.renderer.setStyle(t,"display","inline-block")}static#e=this.\u0275fac=function(r){return new(r||e)(v(Ar),v(on),v(xe))};static#t=this.\u0275dir=Z({type:e,selectors:[["","motoGooglePayButton",""]],outputs:{buttonClick:"buttonClick"}})}return e})(),zz=(()=>{class e{set _let(t){this.context.let=t}constructor(t,r){this.viewContainer=t,this.tpl=r,this.context={let:null}}ngOnInit(){this.viewContainer.createEmbeddedView(this.tpl,this.context)}static#e=this.\u0275fac=function(r){return new(r||e)(v(rr),v(Ir))};static#t=this.\u0275dir=Z({type:e,selectors:[["","let",""]],inputs:{_let:[0,"let","_let"]}})}return e})();const qz=(e,n)=>n.name,Wz=(e,n)=>({applepay:e,googlepay:n}),Zz=e=>({$implicit:e});function Yz(e,n){if(1&e){const t=mt();S(0,"div",5)(1,"span",7),te("click",function(){return ne(t),re(x(2).apmsCollapseClick())}),z(2),T()()}if(2&e){x(2);const t=Ke(2);C(),P("ngClass",t.apmsCollapse?"__ndb-apm-list__delimiter-text__apms-collapse":""),C(),Tt(t.apmsCollapse?t.language.apms.orUseAlternative:t.language.apms.or)}}function Kz(e,n){if(1&e&&hi(0,8),2&e){const t=n.$implicit,r=x(2).let;x();const i=wu(5);P("ngTemplateOutlet",t.logo?i:r[t.name])("ngTemplateOutletContext",function M0(e,n,t,r){return A0(b(),qt(),e,n,t,r)}(2,Zz,t))}}function Qz(e,n){if(1&e&&(S(0,"div",6),un(1,Kz,1,4,"ng-container",8,qz),T()),2&e){x(2);const t=Ke(0);C(),dn(t)}}function Xz(e,n){if(1&e&&(S(0,"div",4),ee(1,Yz,3,2,"div",5)(2,Qz,3,0,"div",6),T()),2&e){let t;const r=x(),i=Ke(2);C(),oe(r.cardPaymentAvailable()?1:-1),C(),oe(i.apmsCollapse&&r.apmsCollapsed&&(null===(t=r.apmsCollapsed())||void 0===t||t)?-1:2)}}function Jz(e,n){if(1&e){const t=mt();S(0,"button",9),te("focusin",function(){const i=ne(t).$implicit;return re(x().onFocus(i))})("click",function(){const i=ne(t).$implicit;return re(x().pay(i))}),ge(1,"img",10),T()}if(2&e){const t=n.$implicit;x();const r=Ke(1);P("id","apm-"+(null==t?null:t.name)+"-button")("ngClass",r.elementDisableClass),C(),P("src",t.logo,ga)("alt",t.name)}}function e9(e,n){if(1&e){const t=mt();S(0,"div",11),te("buttonClick",function(){const i=ne(t).$implicit;return re(x().pay(i))})("focusin",function(){const i=ne(t).$implicit;return re(x().onFocus(i))}),T()}2&e&&(x(),P("ngClass",Ke(1).elementDisableClass))}function t9(e,n){if(1&e){const t=mt();S(0,"div",12),te("buttonClick",function(){const i=ne(t).$implicit;return re(x().pay(i))})("focusin",function(){const i=ne(t).$implicit;return re(x().onFocus(i))}),T()}2&e&&(x(),P("ngClass",Ke(1).elementDisableClass))}let jA=(()=>{class e{constructor(t,r,i,s,o,a,c){this.context=t,this.processingService=r,this.mapper=i,this.applePayService=s,this.googlePayService=o,this.sessionStorage=a,this.windowService=c,this.apms=se([])}ngOnInit(){this.settings=this.context.data.settings,this.paymentInfo=this.context.data.payment,this.settings().apmsCollapse&&(this.apmsCollapsed=this.sessionStorage.getOrSetItemSignal(Mn.keys.apmsCollapse,!0)),this.paymentAvailability=this.context.computed.paymentAvailability,this.apms=ce(()=>{let t=this.context.data.loadedPaymentSystems().filter(i=>"card"!==i.name);return this.mapper.mapApms(t)}),this.cardPaymentAvailable=ce(()=>this.context.componentsStates.cardForm().enabled||this.context.componentsStates.cardList().enabled)}pay(t){var i,r=this;if(this.context.events.analytics.emit(new Ae(`${t.name}-button-click`)),this.paymentAvailability().canPay.byApm)if("applepay"===t.name){const i=Xr(this.settings().urls.processing,`api/applepay/${this.paymentInfo().merchantId}/merchantValidation`);this.applePayService.pay(this.paymentInfo(),i).subscribe({next:s=>{t.token=s,this.makePaymentAndRedirect(t)},error:()=>this.apmTokenError()})}else"googlepay"===t.name?this.googlePayService.pay(this.paymentInfo()).subscribe({next:(i=is(function*(s){t.token=s,yield r.redirectForConfirmation(),r.windowService.tryOpenBlankWindow(jy(r.settings().language)),r.makePaymentAndRedirect(t)}),function(o){return i.apply(this,arguments)}),error:()=>this.apmTokenError()}):(this.windowService.tryOpenBlankWindow(jy(this.settings().language)),this.makePaymentAndRedirect(t));else this.context.updateCanShowErrorForApm(!0)}onFocus(t){this.context.events.analytics.emit(new Ae(`${t.name}-button-focus`),!0)}apmsCollapseClick(){if(this.settings().apmsCollapse){const t=this.apmsCollapsed();this.sessionStorage.setItem(Mn.keys.apmsCollapse,!t),this.context.events.analytics.emit(new Ae("apms-show-button-click",{show:t}))}}makePaymentAndRedirect(t){this.context.data.userProvidedInfo.update(i=>({...i,paymentSystemName:t.name,requisites:{type:"apm",value:t}}));const r=this.processingService.pay();this.context.data.state.set({type:"payLoading",payload:{observable:r}})}redirectForConfirmation(){const{promise:t,resolve:r}=function Uz(){let e,n;return{promise:new Promise((r,i)=>{e=r,n=i}),resolve:e,reject:n}}();return this.context.data.state.set({type:"confirmation",payload:{resolvePromise:r}}),t}apmTokenError(){this.windowService.closeWindow(),this.context.data.state.set({type:"result",payload:{}})}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe),v(Ro),v(us),v(py),v(my),v(Yd),v(Zd))};static#t=this.\u0275cmp=Te({type:e,selectors:[["moto-apm-list"]],decls:10,vars:7,consts:[["apmDefaultRef",""],["applePayRef",""],["googlePayRef",""],["class","__ndb-apm-list",4,"let"],[1,"__ndb-apm-list"],[1,"__ndb-apm-list__delimiter"],[1,"__ndb-apm-list-apms"],["id","apms-collapse-button",1,"__ndb-apm-list__delimiter-text","fz-12",3,"click","ngClass"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"__ndb-apm-list-apms__item",3,"focusin","click","id","ngClass"],[1,"__ndb-apm-list-apms__item-img",3,"src","alt"],["id","apm-applepay-button","motoApplePayButton","",1,"__ndb-apm-list-apms__item","moto-apple-pay-button",3,"buttonClick","focusin","ngClass"],["id","apm-googlepay-button","motoGooglePayButton","",1,"__ndb-apm-list-apms__item","moto-google-pay-button",3,"buttonClick","focusin","ngClass"]],template:function(r,i){if(1&r&&(Sn(0)(1)(2),ee(3,Xz,3,2,"div",3)(4,Jz,2,4,"ng-template",null,0,Tu)(6,e9,1,1,"ng-template",null,1,Tu)(8,t9,1,1,"ng-template",null,2,Tu)),2&r){const s=wu(7),o=wu(9);hn(i.apms()),C(),hn(i.paymentAvailability()),C(),hn(i.settings()),C(),P("let",function I0(e,n,t,r,i){return x0(b(),qt(),e,n,t,r,i)}(4,Wz,s,o))}},dependencies:[bg,fT,$z,Gz,zz],styles:['[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.__ndb-apm-list__delimiter[_ngcontent-%COMP%]{margin-bottom:28px;display:flex;flex-direction:row;justify-content:center;align-items:center}.__ndb-apm-list__delimiter[_ngcontent-%COMP%]:before, .__ndb-apm-list__delimiter[_ngcontent-%COMP%]:after{content:"";height:1px;flex:1;background-color:#c9ccd8}.__ndb-apm-list__delimiter[_ngcontent-%COMP%]:before{margin-right:10px}.__ndb-apm-list__delimiter[_ngcontent-%COMP%]:after{margin-left:10px}.__ndb-apm-list__delimiter-text[_ngcontent-%COMP%]{font-weight:500;color:#636b8a}.__ndb-apm-list__delimiter-text__apms-collapse[_ngcontent-%COMP%]{-webkit-text-decoration:underline #636b8a dotted;text-decoration:underline #636b8a dotted;cursor:pointer;-webkit-user-select:none;user-select:none}.__ndb-apm-list-apms[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}.__ndb-apm-list-apms__item[_ngcontent-%COMP%]{position:relative;width:100%;height:60px;display:flex;flex-direction:row;justify-content:center;align-items:center;background-color:#e8eaf3;transition:box-shadow .25s ease-out;will-change:box-shadow;border-radius:4px}.__ndb-apm-list-apms__item[_ngcontent-%COMP%]:hover:not(.disabled-element):not(.hidden-enabled-element){box-shadow:0 2px 3px #2f45704d}.__ndb-apm-list-apms__item[_ngcontent-%COMP%]:not(.disabled-element):not(.hidden-enabled-element){cursor:pointer}.__ndb-apm-list-apms__item-img[_ngcontent-%COMP%]{position:absolute;width:60%;height:100%;left:20%;top:0;object-fit:contain}.moto-apple-pay-button[_ngcontent-%COMP%]{--apple-pay-button-height: 60px;--apple-pay-button-width: 100%;width:100%;height:60px;padding:0}.moto-google-pay-button[_ngcontent-%COMP%]{width:100%;height:60px;padding:0}'],changeDetection:0})}return e})();function n9(e,n){if(1&e){const t=mt();S(0,"label",3)(1,"input",4),Om("ngModelChange",function(i){ne(t);const s=x().$implicit;return function E0(e,n){const t=iw(e);return t&&e.set(n),t}(s.value,i)||(s.value=i),re(i)}),te("ngModelChange",function(){ne(t);const i=x(),s=i.$implicit,o=i.$index;return re(x(2).onChange(s,o))})("focusin",function(){ne(t);const i=x(),s=i.$implicit,o=i.$index;return re(x(2).onFocus(s,o))}),T(),ge(2,"span",5)(3,"span",6),Ie(4,"linkify"),T()}if(2&e){const t=x().$implicit;x(2);const r=Ke(0);C(),P("name","user-preference-"+t.name)("id","user-preference-"+t.name),Pm("ngModel",t.value),C(),ln("circle","circle"===(null==r.userPreferences?null:r.userPreferences.shape))("square","square"===(null==r.userPreferences?null:r.userPreferences.shape)),C(),P("innerHTML",At(4,8,t.text,"__ndb-settings-checkboxes-checkbox-link fz-12 fw-500 font-description"),Tr)}}function r9(e,n){1&e&&ee(0,n9,5,11,"label",3),2&e&&oe(n.$implicit.text?0:-1)}function i9(e,n){if(1&e&&(S(0,"div",1),un(1,r9,1,1,null,null,or),T()),2&e){const t=x();C(),dn(t.userPreferenceCheckboxes)}}function s9(e,n){1&e&&(ge(0,"p",2),Ie(1,"linkify")),2&e&&(x(),P("innerHTML",At(1,1,Ke(0).userPreferences.text,"fz-12 fw-500 font-description"),Tr))}let HA=(()=>{class e extends Id{constructor(t,r){super(t),this.injector=t,this.context=r,this.userPreferenceCheckboxes=[]}ngOnInit(){this.settings=this.context.data.settings,this.update(this.settings().userPreferences)}reset(){this.update(this.settings().userPreferences)}onChange(t,r){this.context.data.userProvidedInfo.update(s=>({...s,userPreferences:this.userPreferenceCheckboxes}));this.context.events.analytics.emit(new Ae(t.value?`user-preference-checkbox-${r}-check`:`user-preference-checkbox-${r}-uncheck`,{name:t.name,text:t.text}))}onFocus(t,r){this.context.events.analytics.emit(new Ae(`user-preference-checkbox-${r}-focus`,{name:t.name,text:t.text}),!0)}update(t){t?.checkboxes?.length?(this.userPreferenceCheckboxes=t.checkboxes.map(r=>({name:r.name,text:r.text,value:!!r.defaultValue})),this.context.data.userProvidedInfo.update(r=>({...r,userPreferences:this.userPreferenceCheckboxes})),this.localDetect()):this.userPreferenceCheckboxes=[]}static#e=this.\u0275fac=function(r){return new(r||e)(v(Ne),v(xe))};static#t=this.\u0275cmp=Te({type:e,selectors:[["moto-user-preferences"]],features:[me],decls:4,vars:3,consts:[[1,"__ndb-settings"],[1,"__ndb-settings-checkboxes"],[1,"__ndb-settings-text","fz-11","fw-500",3,"innerHTML"],[1,"__ndb-settings-checkboxes-checkbox","fz-11","fw-500","font-description"],["type","checkbox",1,"__ndb-settings-checkboxes-checkbox-input",3,"ngModelChange","focusin","name","id","ngModel"],[1,"__ndb-settings-checkboxes-checkbox-checkmark"],[1,"__ndb-settings-checkboxes-checkbox-text",3,"innerHTML"]],template:function(r,i){if(1&r&&(Sn(0),S(1,"div",0),ee(2,i9,3,0,"div",1)(3,s9,2,4,"p",2),T()),2&r){const s=hn(i.settings());C(2),oe(i.userPreferenceCheckboxes.length?2:-1),C(),oe(null!=s&&null!=s.userPreferences&&s.userPreferences.text?3:-1)}},dependencies:[Cc,Di,Vo,jo],changeDetection:0})}return e})();function o9(e,n){1&e&&(S(0,"span",4),z(1,"\xb7"),T())}function a9(e,n){if(1&e&&(S(0,"a",3),z(1),T(),ee(2,o9,2,0,"span",4)),2&e){const t=n.$implicit,r=n.$index,i=n.$count;P("href",t.href,ga),C(),ke(" ",t.text," "),C(),oe(r!==i-1?2:-1)}}function c9(e,n){if(1&e&&(S(0,"div",1),un(1,a9,3,3,null,null,or),T()),2&e){x(2);const t=Ke(0);C(),dn(t.links)}}function l9(e,n){1&e&&(ge(0,"p",2),Ie(1,"linkify")),2&e&&(x(2),P("innerHTML",At(1,1,Ke(0).text,"__ndb-merchant-info-checkbox-link fz-12 fw-500 font-description"),Tr))}function u9(e,n){if(1&e&&(S(0,"div",0),ee(1,c9,3,0,"div",1)(2,l9,2,4,"p",2),T()),2&e){x();const t=Ke(0);C(),oe(null!=t.links&&t.links.length?1:-1),C(),oe(t.text?2:-1)}}let UA=(()=>{class e{constructor(t){this.context=t}ngOnInit(){this.settings=this.context.data.settings}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe))};static#t=this.\u0275cmp=Te({type:e,selectors:[["moto-merchant-info"]],decls:2,vars:2,consts:[[1,".__ndb-merchant-info"],[1,"__ndb-merchant-info-links"],[1,"__ndb-merchant-info-description","fz-11","fw-500","font-description",3,"innerHTML"],["target","_blank",1,"__ndb-merchant-info-links-link","fz-12","fw-500","font-description",3,"href"],[1,"__ndb-merchant-info-links-separator","fz-12","fw-500","font-description"]],template:function(r,i){if(1&r&&(Sn(0),ee(1,u9,3,2,"div",0)),2&r){const s=hn(i.settings().merchantInfo);C(),oe(null!=s.links&&s.links.length||s.text?1:-1)}},dependencies:[jo],styles:["[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.__ndb-merchant-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:28px;padding:0 28px 28px}@media (max-width: 768px){.__ndb-merchant-info[_ngcontent-%COMP%]{padding-bottom:14px}}.__ndb-merchant-info-links[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-wrap:wrap}.__ndb-merchant-info-links-link[_ngcontent-%COMP%]{white-space:nowrap;text-decoration-line:underline}.__ndb-merchant-info-links-separator[_ngcontent-%COMP%]{margin:0 10px;white-space:nowrap}.__ndb-merchant-info-description[_ngcontent-%COMP%]{text-align:left;line-height:1.1;color:#000}"],changeDetection:0})}return e})(),$A=(()=>{class e{transform(t){return`https://cdn.motopays.com/images/${t}`}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275pipe=ft({name:"image",type:e,pure:!0})}return e})();function d9(e,n){1&e&&(ge(0,"moto-picture",3),Ie(1,"image")),2&e&&P("src",Ya(1,1,"visa-secure.svg"))}function f9(e,n){1&e&&(ge(0,"moto-picture",3),Ie(1,"image")),2&e&&P("src",Ya(1,1,"master-card-secure.svg"))}function h9(e,n){if(1&e&&(S(0,"div",0)(1,"p",1),z(2),T(),S(3,"div",2),ee(4,d9,2,3,"moto-picture",3)(5,f9,2,3,"moto-picture",3),T()()),2&e){const t=x();C(2),ke(" ",t.settings().language.transactionProtectedBy," "),C(2),oe(t.isVisaAvailable()?4:-1),C(),oe(t.isMastercardAvailable()?5:-1)}}let GA=(()=>{class e{constructor(t){this.context=t}ngOnInit(){this.settings=this.context.data.settings,this.isMastercardAvailable=ce(()=>!!this.settings().availableCardBrands?.some(t=>"mastercard"===t)),this.isVisaAvailable=ce(()=>!!this.settings().availableCardBrands?.some(t=>"visa"===t))}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe))};static#t=this.\u0275cmp=Te({type:e,selectors:[["moto-protected-by"]],decls:1,vars:1,consts:[[1,"__ndb-secure"],[1,"__ndb-secure-phrase","fz-12","fw-500","font-description"],[1,"__ndb-secure-logos"],[1,"__ndb-secure-logos-logo",3,"src"]],template:function(r,i){1&r&&ee(0,h9,6,3,"div",0),2&r&&oe(i.isMastercardAvailable()||i.isVisaAvailable()?0:-1)},dependencies:[Io,$A],styles:["[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.__ndb-secure[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;gap:10px}.__ndb-secure-phrase[_ngcontent-%COMP%]{color:#000}.__ndb-secure-logos[_ngcontent-%COMP%]{display:flex;justify-content:center;gap:2px}.__ndb-secure-logos-logo[_ngcontent-%COMP%]{height:40px;width:max-content}"],changeDetection:0})}return e})(),zA=(()=>{class e{constructor(t){this.context=t}ngOnInit(){this.settings=this.context.data.settings}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe))};static#t=this.\u0275cmp=Te({type:e,selectors:[["moto-no-payments"]],decls:2,vars:1,consts:[[1,"__ndb-no-methods"]],template:function(r,i){1&r&&(S(0,"h2",0),z(1),T()),2&r&&(C(),ke(" ",i.settings().language.noAvailablePaymentMethods,"\n"))},styles:[".__ndb-no-methods[_ngcontent-%COMP%]{text-align:center}"],changeDetection:0})}return e})(),p9=(()=>{class e{constructor(){this.shape="circle",this.invalid=!1,this.inputFocus=new ve,this.value=se("unchecked"),this.disabled=se(!1),this.onChange=()=>{},this.onTouched=()=>{}}writeValue(t){this.value.set(t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled.set(t)}onValueChanged(t){const r=t?"checked":"unchecked";this.value.set(r),this.onChange(r)}onBlur(){this.onTouched()}onInputFocus(t){this.inputFocus.emit(t)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Te({type:e,selectors:[["moto-checkbox"]],inputs:{id:"id",text:"text",shape:"shape",invalid:"invalid"},outputs:{inputFocus:"inputFocus"},features:[Pe([{provide:Nn,useExisting:we(()=>e),multi:!0}])],decls:5,vars:16,consts:[[1,"__ndb-checkbox","fz-11","fw-500","font-description"],["type","checkbox",1,"__ndb-checkbox-input",3,"ngModelChange","focusin","blur","name","id","disabled","ngModel"],[1,"__ndb-checkbox-checkmark"],[1,"__ndb-checkbox-text",3,"innerHTML"]],template:function(r,i){1&r&&(S(0,"label",0)(1,"input",1),te("ngModelChange",function(o){return i.onValueChanged(o)})("focusin",function(o){return i.onInputFocus(o)})("blur",function(){return i.onBlur()}),T(),ge(2,"span",2)(3,"span",3),Ie(4,"linkify"),T()),2&r&&(C(),P("name",i.id)("id",i.id)("disabled",i.disabled())("ngModel","checked"===i.value()),C(),ln("circle","circle"===i.shape)("square","square"===i.shape)("intermediate","intermediate"===i.value())("invalid",i.invalid),C(),P("innerHTML",At(4,13,i.text,"__ndb-checkbox-link fz-12 fw-500 font-description"),Tr))},dependencies:[Cc,Di,Vo,jo],changeDetection:0})}return e})();const m9=(e,n)=>n.id;function g9(e,n){if(1&e){const t=mt();S(0,"moto-checkbox",5),te("inputFocus",function(){return ne(t),re(x(2).onMasterFocus())})("ngModelChange",function(i){return ne(t),re(x(2).onMasterChange(i))}),T()}if(2&e){const t=x(2);P("shape",t.masterShape)("text",t.masterText)("ngModel",t.masterState())}}function y9(e,n){if(1&e){const t=mt();S(0,"moto-checkbox",7),te("inputFocus",function(){ne(t);const i=x(),s=i.$implicit,o=i.$index;return re(x(2).onCheckboxFocus(s,o))})("ngModelChange",function(i){ne(t);const s=x(),o=s.$implicit,a=s.$index;return re(x(2).onCheckboxChange(o,a,i))}),T()}if(2&e){const t=x().$implicit,r=x(2);ln("underMaster",r.isMaster),P("invalid",r.showError()&&t.isRequired&&!t.value)("shape",t.shape)("text",t.text)("id",t.id)("ngModel",t.value?"checked":"unchecked")}}function _9(e,n){1&e&&ee(0,y9,1,7,"moto-checkbox",6),2&e&&oe(n.$implicit?0:-1)}function v9(e,n){if(1&e&&(S(0,"div",1),ee(1,g9,1,3,"moto-checkbox",4),un(2,_9,1,1,null,null,m9),T()),2&e){const t=x();C(),oe(t.isMaster?1:-1),C(),dn(t.checkboxes())}}function C9(e,n){if(1&e&&(S(0,"p",2),Ie(1,"linkify"),z(2),T()),2&e){const t=x();P("innerHTML",At(1,2,t.footerText,"fz-12 fw-500 font-description"),Tr),C(2),ke(" ",t.footerText," ")}}function b9(e,n){if(1&e&&(S(0,"span",3),z(1),T()),2&e){const t=x();P("@ANTransform",void 0),C(),ke(" ",t.errorText," ")}}let E9=(()=>{class e{constructor(){this.provideErrors=_P(!1),this.errorText="",this.isMaster=!1,this.masterText="",this.masterShape="circle",this.checkboxes=se([]),this.changed=new ve,this.masterFocus=new ve,this.masterClick=new ve,this.checkboxFocus=new ve,this.isValidChanged=new ve,this.masterState=ce(()=>{if(!this.isMaster)return"unchecked";const t=this.checkboxes();return t.every(r=>r.value)?"checked":t.some(r=>r.value)?"intermediate":"unchecked"}),this.showError=ce(()=>this.provideErrors()&&this.checkboxes().some(t=>t.isRequired&&!t.value))}set checkboxesInput(t){this.checkboxes.set([...t])}onCheckboxChange(t,r,i){const s=[...this.checkboxes()];s[r]={...s[r],value:"checked"===i},this.checkboxes.set(s),this.changed.emit({checkboxes:s,concrete:{checkbox:{...t,value:"checked"===i},index:r}})}onMasterChange(t){const r=this.checkboxes().map(i=>({...i,value:"checked"===t}));this.checkboxes.set(r),this.changed.emit({checkboxes:r}),this.masterClick.emit(t)}onCheckboxFocus(t,r){this.checkboxFocus.emit({checkbox:t,index:r})}onMasterFocus(){this.masterFocus.emit()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Te({type:e,selectors:[["moto-checkbox-container"]],inputs:{provideErrors:[1,"provideErrors"],errorText:"errorText",footerText:"footerText",isMaster:"isMaster",masterText:"masterText",masterShape:"masterShape",checkboxesInput:[0,"checkboxes","checkboxesInput"]},outputs:{changed:"changed",masterFocus:"masterFocus",masterClick:"masterClick",checkboxFocus:"checkboxFocus",isValidChanged:"isValidChanged"},decls:4,vars:3,consts:[[1,"__ndb-settings"],[1,"__ndb-settings-checkboxes"],[1,"__ndb-settings-text","fz-11","fw-500",3,"innerHTML"],[1,"fz-14","fw-500","font-error"],[3,"shape","text","ngModel"],[3,"inputFocus","ngModelChange","shape","text","ngModel"],[3,"underMaster","invalid","shape","text","id","ngModel"],[3,"inputFocus","ngModelChange","invalid","shape","text","id","ngModel"]],template:function(r,i){1&r&&(S(0,"div",0),ee(1,v9,4,1,"div",1)(2,C9,3,5,"p",2)(3,b9,2,2,"span",3),T()),2&r&&(C(),oe(i.checkboxes().length?1:-1),C(),oe(i.footerText?2:-1),C(),oe(i.showError()?3:-1))},dependencies:[Di,Vo,p9,jo],data:{animation:[vd()]},changeDetection:0})}return e})(),qA=(()=>{class e{constructor(t){this.context=t,this.checkboxes=se([]),this.hasInvalidRequired=ce(()=>this.checkboxes().some(r=>r.isRequired&&!r.value))}ngOnInit(){this.settings=this.context.data.settings,this.componentState=this.context.componentsStates.master,this.showError=ce(()=>{const t=this.componentState(),r=this.hasInvalidRequired();return t.canShowError&&r}),this.update()}reset(){this.update()}onChanged(t){if(t.concrete){const{checkbox:r,index:i}=t.concrete;this.checkboxes.update(s=>s.map(o=>o.id===r.id?{...o,value:r.value}:o)),this.emitAnalytics(r,i)}else{const r=t.checkboxes;this.checkboxes.update(i=>i.map(s=>{const o=r.find(a=>a.id===s.id);return o?{...s,value:o.value}:s}))}this.updateContextData(),this.updateComponentState()}onFocus(t,r){this.context.events.analytics.emit(new Ae(`${"user-preferences"===t.type?"user-preference-checkbox":"charge-term-checkbox"}-${r}-focus`,{name:t.id,text:t.text??""}),!0)}onMasterFocus(){this.context.events.analytics.emit(new Ae("master-focus"),!0)}onMasterClick(){this.context.events.analytics.emit(new Ae("master-click"))}emitAnalytics(t,r){this.context.events.analytics.emit(new Ae(`${"user-preferences"===t.type?"user-preference-checkbox":"charge-term-checkbox"}-${r}-${t.value?"check":"uncheck"}`,{name:t.id,text:t.text??""}))}update(){const t=this.settings(),r=t.chargeTerms?.checkboxes?.map((s,o)=>({id:"charge-term-"+o,initId:o.toString(),text:s,value:!1,isRequired:!0,shape:t.chargeTerms?.shape??"circle",type:"charge-terms"}))??[],i=t.userPreferences?.checkboxes?.map(s=>({id:"user-preference-"+s.name,initId:s.name,text:s.text,value:!!s.defaultValue,isRequired:!1,shape:t.userPreferences?.shape??"square",type:"user-preferences"}))??[];this.checkboxes.set([...r,...i]),this.updateContextData(),this.updateComponentState()}updateComponentState(){const t=this.checkboxes(),i=!this.hasInvalidRequired(),s=!!this.settings().requiredFieldsBehavior?.markAsInvalidUntilCorrect,o=t.every(a=>!a.isRequired||a.value);this.componentState.update(a=>{let c={...a},l=!1;return a.filled!==o&&(c.filled=o,l=!0),!s&&i&&a.canShowError&&(c.canShowError=!1,l=!0),a.isValid!==i&&(c.isValid=i,l=!0),l?c:a})}updateContextData(){this.context.data.userProvidedInfo.update(t=>({...t,userPreferences:this.checkboxes().filter(r=>"user-preferences"===r.type).map(r=>({name:r.initId,value:r.value}))}))}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe))};static#t=this.\u0275cmp=Te({type:e,selectors:[["moto-merged-checkboxes"]],decls:4,vars:7,consts:[[3,"changed","checkboxFocus","masterFocus","masterClick","checkboxes","isMaster","masterShape","masterText","provideErrors","footerText","errorText"]],template:function(r,i){if(1&r){const s=mt();Sn(0)(1)(2),S(3,"moto-checkbox-container",0),te("changed",function(a){return ne(s),re(i.onChanged(a))})("checkboxFocus",function(a){return ne(s),re(i.onFocus(a.checkbox,a.index))})("masterFocus",function(){return ne(s),re(i.onMasterFocus())})("masterClick",function(){return ne(s),re(i.onMasterClick())}),T()}if(2&r){let s,o,a,c;const l=i.settings(),u=null!==(s=null==l.chargeTerms?null:l.chargeTerms.text)&&void 0!==s?s:null==l||null==l.userPreferences?null:l.userPreferences.text,d=null!==(o=null==l.language||null==l.language.errors?null:l.language.errors.notCheckedCheckboxes)&&void 0!==o?o:"";C(3),P("checkboxes",i.checkboxes())("isMaster",!0)("masterShape",null!==(a=null==l.master?null:l.master.shape)&&void 0!==a?a:"square")("masterText",null!==(c=null==l.master?null:l.master.text)&&void 0!==c?c:"")("provideErrors",i.showError())("footerText",u)("errorText",d)}},dependencies:[E9],changeDetection:0})}return e})(),us=(()=>{class e{mapApms(t){return t.map(r=>({...r}))}mapPaymentRequest(t,r,i,s){let o=t.details;r.userPreferences?.length&&(o=r.userPreferences.reduce((l,u)=>(l[u.name]=u.value,l),o||{}));const a={amount:t.amount,amountType:this.mapAmountType(t.amountType),tax:t.tax,currency:t.currency,description:t.description?.substring(0,127),details:o?JSON.stringify(o):void 0,type:this.mapOrderType(t.orderType)},c={id:t.userId,email:t.email,phoneNumber:r.phoneNumber??t.phoneNumber,ipAddress:t.ipAddress,deviceInfo:s,billingAddress:t.billingAddress};return{id:t.paymentId,initiator:this.mapInitiatorType(t.initiator)??"Customer",returnUrl:t.returnUrl,webhookUrl:t.webhookUrl,order:a,payer:c,requisites:this.mapRequisites(r.requisites),signature:t.signature,rejectionPreferences:{showResolvingTips:i.isProblemTipsListVisible??!1}}}mapComponents(t,r){return t.map(i=>{switch(i){case"available-card-brands":return{component:LM,visible:r.availableCardBrands};case"no-methods":return{component:zA,visible:r.noMethods};case"card-list":return{component:_y,visible:r.cardList};case"requisites":return{component:RA,visible:r.cardForm};case"phone-number":return{component:FA,visible:r.additionalForm};case"charge-terms":return{component:LA,visible:r.chargeTerms};case"pay-button":return{component:BA,visible:r.payButton};case"apm-list":return{component:jA,visible:r.apmList};case"user-preferences":return{component:HA,visible:r.userPreferences};case"merchant-info":return{component:UA,visible:r.merchantInfo};case"protected-by":return{component:GA,visible:r.protectedBy};case"master":return{component:qA,visible:r.master}}})}mapInterfaceSettingsToDomain(t){let r=t.languageSettings.code;t.languageSettings.languages[r]||(r="en-US");const i=t.languageSettings.languages[r],s=t.chargeTerms?{text:t.chargeTerms.text?t.chargeTerms.text[r]:void 0,checkboxes:t.chargeTerms.checkboxes?.length?t.chargeTerms.checkboxes.map(l=>l[r]).filter(l=>!!l):void 0,shape:t.chargeTerms.shape}:void 0,o=t.userPreferences?{text:t.userPreferences.text?t.userPreferences.text[r]:void 0,checkboxes:t.userPreferences.checkboxes?.length?t.userPreferences.checkboxes.map(l=>({name:l.name,defaultValue:l.defaultValue,text:l.text[r]})).filter(l=>!!l.text):void 0,shape:t.userPreferences.shape}:void 0,a=t.merchantInfo?{links:t.merchantInfo.links?.length?t.merchantInfo.links.map(l=>({href:l.href,text:l.text[r]})).filter(l=>!!l.text):void 0,text:t.merchantInfo.text?t.merchantInfo.text[r]:void 0}:void 0,c=t.master?{shape:t.master?.shape,text:t.master?.text?t.master.text[r]:void 0}:void 0;return{availableCardBrands:t.availableCardBrands,closePaymentRedirect:t.closePaymentRedirect,isTaxVisible:t.isTaxVisible,components:t.components,events:t.events,isCloseButtonVisible:t.isCloseButtonVisible,isHeaderVisible:t.isHeaderVisible,isProblemTipsListVisible:t.isProblemTipsListVisible,isSignatureRequired:t.isSignatureRequired,language:i??RM,requiredFieldsBehavior:{buttonStateUntilFilled:t.requiredFieldsBehavior.buttonStateUntilFilled,markAsInvalidUntilCorrect:t.requiredFieldsBehavior.markAsInvalidUntilCorrect,showStars:t.requiredFieldsBehavior.showStars},resultComponentsStructure:t.resultComponentsStructure,urls:t.urls,chargeTerms:s,userPreferences:o,merchantInfo:a,apmsCollapse:!!t.apmsCollapse,paymentFlow:{tokenizeCard:t.paymentFlow?.tokenizeCard??!0,type:t.paymentFlow?.type??"default"},master:c,googlePay:{allowedAuthMethods:t.googlePay?.allowedAuthMethods??["CRYPTOGRAM_3DS","PAN_ONLY"],button:t.googlePay?.button??{buttonSizeMode:"fill",buttonRadius:4}}}}mapRequisites(t){switch(t.type){case"apm":const r=t.value;return{type:r.name,paymentToken:r.token};case"existing-card":return{anchor:t.value.rebill,type:"rebill"};case"card":const s=t.value;return{cardHolder:s.holder,cardNumber:s.number,expiration:s.expiration,cvv:s.cvv,type:"card"};default:throw new Error("Unknown requisites type")}}mapInitiatorType(t){if(t){if("customer"===t)return"Customer";if("merchant"===t)return"Merchant";throw new Error("Unknown payment initiator type")}}mapAmountType(t){if(t){if("gross"===t)return"Gross";if("gross-without-gst"===t)return"GrossWithoutGst";if("net"===t)return"Net";throw new Error("Unknown amount type")}}mapOrderType(t){if(t){if("free-trial"===t)return"FreeTrial";if("regular"===t)return"Regular";if("gems"===t)return"Gems";throw new Error("Unknown order type")}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),WA=(()=>{class e{constructor(t){this.mapper=t}preparePaymentOrError(t){let r=OM(t);return this.validatePayment(r)||(r.userAuthToken&&!/^[^\s]+\s+/i.test(r.userAuthToken)&&(r.userAuthToken=`Bearer ${r.userAuthToken}`),r.currency&&(r.currency=r.currency.toUpperCase()),r.amount=+r.amount,r.tax&&(r.tax=+r.tax),r)}prepareSettingsOrError(t){let r=OM(t);const i=this.validateSettings(r);if(i)return i;const s=w5(S5,r);return this.mapper.mapInterfaceSettingsToDomain(s)}validateModelsCompatibility(t,r){return!t.signature&&r.isSignatureRequired?"not-exist-signature":t.userAuthToken||"default"===r.paymentFlow.type?void 0:"not-exist-auth-for-payment-flow"}validatePayment(t){return t?t.userId?t.paymentId?t.merchantId?null==t.amount||null==t.amount?"not-exist-amount":t.email?t.currency?void 0:"not-exist-currency":"not-exist-email":"not-exist-merchant-id":"not-exist-payment-id":"not-exist-customer-id":"not-exist-payment"}validateSettings(t){return t?t.urls&&t.urls.billingProfiles&&t.urls.processing?t.components?.includes("master")&&t.components?.some(r=>"user-preferences"===r||"charge-terms"===r)?"master-conflict":void 0:"invalid-urls":"not-exist-settings"}static#e=this.\u0275fac=function(r){return new(r||e)(k(us))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();function w9(e,n){if(1&e){const t=mt();S(0,"div",2)(1,"i",3),te("click",function(){return ne(t),re(x().close())}),z(2,"close"),T()()}if(2&e){let t;x();const r=Ke(0);Lt("data-tooltip",null!==(t=null==r||null==r.language?null:r.language.close)&&void 0!==t?t:"Close")}}let ZA=(()=>{class e{constructor(t){this.context=t}ngOnInit(){this.settings=this.context.data.settings}close(){this.context.events.close.emit()}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe))};static#t=this.\u0275cmp=Te({type:e,selectors:[["moto-header"]],decls:5,vars:3,consts:[[1,"__ndb-header"],[1,"__ndb-header-title","fz-24","fw-700"],[1,"__ndb-header-close"],[1,"material-icons","pointer",3,"click"]],template:function(r,i){if(1&r&&(Sn(0),S(1,"header",0)(2,"h6",1),z(3),T(),ee(4,w9,3,1,"div",2),T()),2&r){let s,o;const a=hn(i.settings());C(3),ke(" ",null!==(s=null==a||null==a.language?null:a.language.header)&&void 0!==s?s:"Checkout"," "),C(),oe(null===(o=null==a?null:a.isCloseButtonVisible)||void 0===o||o?4:-1)}},styles:["[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.__ndb-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:28px;border-bottom:1px solid #c9ccd8}@media (max-width: 768px){.__ndb-header[_ngcontent-%COMP%]{padding:20px}}.__ndb-header-close[_ngcontent-%COMP%]{display:flex;align-items:center}"],changeDetection:0})}return e})(),YA=(()=>{class e{constructor(){this.shadow=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Te({type:e,selectors:[["moto-loader"]],hostVars:1,hostBindings:function(r,i){2&r&&_u("@ANFade",i.fadeAnimation)},inputs:{shadow:"shadow"},decls:3,vars:5,consts:[[1,"__ndb-loader"],["alt","spinner",1,"__ndb-loader-picture",3,"src"]],template:function(r,i){1&r&&(S(0,"div",0),ge(1,"moto-picture",1),Ie(2,"image"),T()),2&r&&(ln("shadow",i.shadow),C(),P("src",Ya(2,3,"spinner-small.gif")))},dependencies:[Io,$A],styles:[".__ndb-loader[_ngcontent-%COMP%]{border-radius:4px}.__ndb-loader[_ngcontent-%COMP%]:not(.shadow){height:40px;width:40px}.__ndb-loader.shadow[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;width:100%;background-color:#fff9;display:flex}.__ndb-loader.shadow[_ngcontent-%COMP%] .__ndb-loader-picture[_ngcontent-%COMP%]{margin:auto;height:40px;width:40px}"],data:{animation:[B5({animationName:"ANFade",fromStyles:{opacity:"0"},toStyles:{opacity:"1"}})]},changeDetection:0})}return e})();function D9(e,n){1&e&&hi(0)}function S9(e,n){1&e&&ee(0,D9,1,0,"ng-container",0),2&e&&P("ngComponentOutlet",x().$implicit.component)}function T9(e,n){1&e&&ee(0,S9,1,1,"ng-container"),2&e&&oe(n.$implicit.visible()?0:-1)}function M9(e,n){1&e&&ge(0,"moto-loader")}let I9=(()=>{class e{constructor(t,r,i){this.context=t,this.mapper=r,this.refreshService=i,this.components=[]}ngOnInit(){this.isLoaderShown=this.context.computed.isLoading,this.refreshService.refreshPaymentSystems(),this.refreshService.refreshExistingCards(),this.components=this.mapper.mapComponents(this.context.data.settings().components,this.context.visibility)}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe),v(us),v(gy))};static#t=this.\u0275cmp=Te({type:e,selectors:[["moto-pay-form"]],decls:3,vars:1,consts:[[4,"ngComponentOutlet"]],template:function(r,i){1&r&&(un(0,T9,1,1,null,null,_D),ee(2,M9,1,0,"moto-loader")),2&r&&(dn(i.components),C(2),oe(i.isLoaderShown()?2:-1))},dependencies:[YA,ed],styles:["[_nghost-%COMP%]{display:flex;gap:28px;flex-direction:column}"],changeDetection:0})}return e})();const KA={message:"You cannot make a payment!",errors:{"not-exist-payment":'Input parameter "payment" is required in the payment model',"not-exist-customer-id":'The field "userId" is required in the payment model',"not-exist-payment-id":"The field paymentId is required in the payment model","not-exist-settings":'Input parameter "settings" is required in the payment model',"not-exist-signature":'The field "signature" is configured as required in the payment model',"not-exist-amount":'The field "amount" is required in the payment model',"not-exist-currency":'The field "currency" is required in the payment model',"not-exist-email":'The field "email" is required in the payment model',"not-exist-merchant-id":'The field "merchant id" is required in the payment model',"invalid-urls":'The field "urls" is required and processing/billingProfiles must to be set',"not-exist-auth-for-payment-flow":'The field "userAuthToken" is required for selected payment flow',"master-conflict":'Components cannot contain a "master" together with "user-preferences"/"charge-terms" at the same time'}};let A9=(()=>{class e{constructor(t){this.context=t}ngOnInit(){const t=this.context.data.state().payload;this.error=KA.errors[t.error],this.message=KA.message}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe))};static#t=this.\u0275cmp=Te({type:e,selectors:[["moto-invalid-pay-form"]],decls:7,vars:2,consts:[[1,"__ndb-error-content"],[1,"material-icons-round","__ndb-error-content-icon"],[1,"__ndb-error-content-header","fz-24","fw-700"],[1,"__ndb-error-content-description","fz-14","fw-500","font-center"]],template:function(r,i){1&r&&(S(0,"div",0)(1,"i",1),z(2,"cancel"),T(),S(3,"h6",2),z(4),T(),S(5,"p",3),z(6),T()()),2&r&&(C(4),Tt(i.error),C(2),ke(" ",i.message," "))},styles:[".__ndb-error-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:10px;padding:28px}@media (max-width: 768px){.__ndb-error-content[_ngcontent-%COMP%]{padding:14px 20px}}.__ndb-error-content-icon[_ngcontent-%COMP%]{font-size:95px;color:#000;margin-bottom:10px}.__ndb-error-content-header[_ngcontent-%COMP%], .__ndb-error-content-description[_ngcontent-%COMP%]{width:100%;text-align:center}"],changeDetection:0})}return e})(),x9=(()=>{class e{constructor(t,r,i,s){this.context=t,this.processing=r,this.sessionStorage=i,this.windowService=s}ngOnInit(){this.settings=this.context.data.settings,this.context.data.state().payload.observable.subscribe({next:r=>this.afterPay(r),error:r=>this.showResult(void 0,r)})}afterPay(t){"needAction"===t.payment?.state?(this.handleConfirmation(t.action),this.waitingPaymentCompleted(t)):(this.showResult(t),this.windowService.closeWindow())}handleConfirmation(t){switch(t.name){case"3ds":this.windowService.threeDsRedirect(t.data);break;case"redirect":this.windowService.redirect(t.data);break;default:throw new Error("Unexpected action name")}}waitingPaymentCompleted(t){(function x6(e,n,t){return e.pipe(kt(r=>{if(n(r))return r;throw new Error(fI)}),function A6(e=1/0){let n;n=e&&"object"==typeof e?e:{count:e};const{count:t=1/0,delay:r,resetOnSuccess:i=!1}=n;return t<=0?Mf:mn((s,o)=>{let c,a=0;const l=()=>{let u=!1;c=s.subscribe(nn(o,d=>{i&&(a=0),o.next(d)},void 0,d=>{if(a++<t){const f=()=>{c?(c.unsubscribe(),c=null,l()):u=!0};if(null!=r){const h="number"==typeof r?uI(r):dr(r(d,a)),p=nn(o,()=>{p.unsubscribe(),f()},()=>{o.complete()});h.subscribe(p)}else f()}else o.error(d)})),u&&(c.unsubscribe(),c=null,l())};l()})}({delay:r=>r.message==fI?uI(t):uy(()=>r)}))})(this.processing.getPaymentInfo(t.payment.paymentId),i=>"needAction"!=i.payment.state,1500).subscribe({next:i=>this.showResult(i),error:i=>{this.showResult(void 0,i),this.context.events.error.emit(i)}})}showResult(t,r){const i=this.settings();i.closePaymentRedirect&&this.windowService.closeWindow(),i.apmsCollapse&&t&&"rejected"===t.payment.state&&"card"===t.payment.info.paymentType&&this.sessionStorage.setItem(Mn.keys.apmsCollapse,!1),this.context.data.state.set({type:"result",payload:{result:t,error:r}}),t&&this.context.events.paid.emit(t)}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe),v(Ro),v(Yd),v(Zd))};static#t=this.\u0275cmp=Te({type:e,selectors:[["moto-processing"]],decls:12,vars:1,consts:[[1,"waiting"],[1,"section"],[1,"waiting__title"],[1,"section__content","__ndb-spinner-container"],[1,"spinner"],[1,"lds-ring"],[1,"spinner__extra"]],template:function(r,i){1&r&&(S(0,"div",0)(1,"div",1)(2,"h2",2),z(3),T(),S(4,"div",3)(5,"div",4)(6,"div",5),ge(7,"div")(8,"div")(9,"div")(10,"div"),T(),ge(11,"div",6),T()()()()),2&r&&(C(3),Tt(i.settings().language.paymentProcessing))},styles:[".waiting__title[_ngcontent-%COMP%]{position:relative;z-index:101;font-family:Poppins,Helvetica,Arial,sans-serif;color:#29304d;font-size:16px;margin:0;text-align:center;transform:translateY(108px)}.__ndb__moto-modal-backdrop[_ngcontent-%COMP%]{background-color:#e5e5e5!important}.__ndb__moto-modal[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{margin:0}.section__content[_ngcontent-%COMP%]{margin:0 auto}.spinner[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;height:330px}.spinner_small[_ngcontent-%COMP%]{height:70px}.spinner_extra[_ngcontent-%COMP%]{height:550px}.lds-ring[_ngcontent-%COMP%]{display:inline-block;position:relative;width:80px;height:80px}.lds-ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{box-sizing:border-box;display:block;position:absolute;width:64px;height:64px;margin:8px;border:8px solid #6936d3;border-radius:50%;animation:_ngcontent-%COMP%_lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:#6936d3 transparent transparent transparent}.lds-ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1){animation-delay:-.45s}.lds-ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){animation-delay:-.3s}.lds-ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3){animation-delay:-.15s}@keyframes _ngcontent-%COMP%_lds-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"],changeDetection:0})}return e})();function N9(e,n){1&e&&hi(0)}function k9(e,n){1&e&&ee(0,N9,1,0,"ng-container",5),2&e&&P("ngComponentOutlet",x().$implicit.component)}function P9(e,n){1&e&&ee(0,k9,1,1,"ng-container"),2&e&&oe(n.$implicit.visible()?0:-1)}function O9(e,n){if(1&e&&(S(0,"p",3),z(1),T()),2&e){const t=x();C(),ke(" ",t.resultModel.description," ")}}function R9(e,n){if(1&e&&(S(0,"li",6)(1,"p",7),z(2),T()()),2&e){const t=n.$implicit;C(2),ke(" ",t," ")}}function F9(e,n){if(1&e&&(S(0,"ul",4),un(1,R9,3,1,"li",6,or),T()),2&e){const t=x();C(),dn(null==t.paymentResult.payment.rejectionDetails?null:t.paymentResult.payment.rejectionDetails.problemSolvingTips)}}function L9(e,n){1&e&&hi(0)}function V9(e,n){1&e&&ee(0,L9,1,0,"ng-container",5),2&e&&P("ngComponentOutlet",x().$implicit.component)}function B9(e,n){1&e&&ee(0,V9,1,1,"ng-container"),2&e&&oe(n.$implicit.visible()?0:-1)}let j9=(()=>{class e{constructor(t,r){this.context=t,this.mapper=r,this.aboveComponents=[],this.belowComponents=[]}ngOnInit(){const t=this.context.data.state().payload;this.paymentResult=t.result,this.error=t.error,this.settings=this.context.data.settings,this.resultModel=this.getResultModel(),this.initAdditionalComponents()}getResultModel(){const t=this.settings().language;if(!this.paymentResult||this.error)return{icon:"cancel",title:t.paymentResult.failure.main,description:t.paymentResult.failure.paymentFailed};switch(this.paymentResult.payment.state){case"completed":return{icon:"check_circle",description:void 0,title:t.paymentResult.success};case"rejected":return{icon:"cancel",title:t.paymentResult.failure.main,description:t.paymentResult.failure.paymentFailed};default:throw new Error("unknown result")}}initAdditionalComponents(){const t=this.settings().resultComponentsStructure;t.aboveResult.length&&(this.aboveComponents=this.mapper.mapComponents(t.aboveResult,this.context.visibility)),t.belowResult.length&&(this.belowComponents=this.mapper.mapComponents(t.belowResult,this.context.visibility))}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe),v(us))};static#t=this.\u0275cmp=Te({type:e,selectors:[["moto-result"]],decls:11,vars:4,consts:[[1,"__ndb-result"],[1,"material-icons-round","__ndb-result-icon"],[1,"__ndb-result-header","fz-24","fw-700"],[1,"__ndb-result-description","fz-14","fw-500","font-center"],[1,"__ndb-result-tips"],[4,"ngComponentOutlet"],[1,"__ndb-result-tips-tip"],[1,"__ndb-result-tips-tip-text","fz-11","fw-500","font-center"]],template:function(r,i){1&r&&(un(0,P9,1,1,null,null,or),S(2,"div",0)(3,"i",1),z(4),T(),S(5,"h6",2),z(6),T(),ee(7,O9,2,1,"p",3)(8,F9,3,0,"ul",4),T(),un(9,B9,1,1,null,null,or)),2&r&&(dn(i.aboveComponents),C(4),Tt(i.resultModel.icon),C(2),Tt(i.resultModel.title),C(),oe(i.resultModel.description?7:-1),C(),oe(i.paymentResult&&i.settings().isProblemTipsListVisible&&null!=i.paymentResult.payment.rejectionDetails&&null!=i.paymentResult.payment.rejectionDetails.problemSolvingTips&&i.paymentResult.payment.rejectionDetails.problemSolvingTips.length?8:-1),C(),dn(i.belowComponents))},dependencies:[ed],styles:["[_nghost-%COMP%]{display:flex;gap:28px;flex-direction:column}.__ndb-result[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:10px}@media (max-width: 768px){.__ndb-result[_ngcontent-%COMP%]{padding:14px 20px}}.__ndb-result-icon[_ngcontent-%COMP%]{font-size:95px;color:#000;margin-bottom:10px}.__ndb-result-header[_ngcontent-%COMP%], .__ndb-result-description[_ngcontent-%COMP%]{width:100%;text-align:center}.__ndb-result-tips[_ngcontent-%COMP%]{gap:5px;padding-inline-start:0px}.__ndb-result-tips-tip[_ngcontent-%COMP%]{list-style-type:disc}.__ndb-result-tips-tip-text[_ngcontent-%COMP%]{width:100%;text-align:left}"],changeDetection:0})}return e})();function H9(e,n){1&e&&hi(0)}function U9(e,n){1&e&&ee(0,H9,1,0,"ng-container",2),2&e&&P("ngComponentOutlet",x().$implicit.component)}function $9(e,n){1&e&&ee(0,U9,1,1,"ng-container"),2&e&&oe(n.$implicit.visible()?0:-1)}function G9(e,n){1&e&&hi(0)}function z9(e,n){1&e&&ee(0,G9,1,0,"ng-container",2),2&e&&P("ngComponentOutlet",x().$implicit.component)}function q9(e,n){1&e&&ee(0,z9,1,1,"ng-container"),2&e&&oe(n.$implicit.visible()?0:-1)}let W9=(()=>{class e{constructor(t,r){this.context=t,this.mapper=r,this.aboveComponents=[],this.belowComponents=[],this.confirmed=se(!1)}ngOnInit(){this.settings=this.context.data.settings,this.initAdditionalComponents(),setTimeout(()=>{this.onClick()},6e4)}onClick(){this.confirmed()||(this.context.data.state().payload.resolvePromise(),this.confirmed.set(!0))}initAdditionalComponents(){const t=this.settings().resultComponentsStructure;t.aboveResult.length&&(this.aboveComponents=this.mapper.mapComponents(t.aboveResult,this.context.visibility)),t.belowResult.length&&(this.belowComponents=this.mapper.mapComponents(t.belowResult,this.context.visibility))}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe),v(us))};static#t=this.\u0275cmp=Te({type:e,selectors:[["moto-confirmation"]],decls:7,vars:2,consts:[[1,"__ndb-confirmation"],["id","moto-confirmation",1,"__ndb-pay-btn","button-submit",3,"click","disabled"],[4,"ngComponentOutlet"]],template:function(r,i){1&r&&(un(0,$9,1,1,null,null,or),S(2,"div",0)(3,"button",1),te("click",function(){return i.onClick()}),z(4),T()(),un(5,q9,1,1,null,null,or)),2&r&&(dn(i.aboveComponents),C(3),P("disabled",i.confirmed()),C(),Tt(i.settings().language.confirmPayment),C(),dn(i.belowComponents))},dependencies:[ed],styles:[".__ndb-confirmation[_ngcontent-%COMP%]{padding:56px 0;text-align:center}"],changeDetection:0})}return e})();function Z9(e,n){1&e&&ge(0,"moto-header")}function Y9(e,n){1&e&&ge(0,"moto-pay-form")}function K9(e,n){1&e&&ge(0,"moto-invalid-pay-form")}function Q9(e,n){1&e&&ge(0,"moto-processing")}function X9(e,n){1&e&&ge(0,"moto-result")}function J9(e,n){1&e&&ge(0,"moto-confirmation")}function eq(e,n){}let tq=(()=>{class e{constructor(t,r,i,s){this.context=t,this.dataHandler=r,this.sessionStorage=i,this.toastr=s,this.state=this.context.data.state,this.closeEvent=t.events.close.emitter,this.paidEvent=t.events.paid.emitter,this.analyticsEvent=t.events.analytics.emitter,this.error=t.events.error.emitter,ug(()=>{this.context.computed.isLoading()?this.context.events.analytics.emit(new Ae("init-start")):this.context.events.analytics.emit(new Ae("loading-finish"))})}ngOnInit(){this.closeEvent=this.context.events.close.emitter,this.analyticsEvent=this.context.events.analytics.emitter,this.paidEvent=this.context.events.paid.emitter,this.error=this.context.events.error.emitter,b5().subscribe(t=>{this.context.data.deviceInfo.set(t)}),this.settingsSignal=ce(()=>this.context.data.settings())}ngOnChanges(t){if(t.payment){const r=this.dataHandler.preparePaymentOrError(t.payment.currentValue);if("string"==typeof r)return void this.state.set({type:"invalid",payload:{error:r}});this.context.data.payment.set(r)}if(t.settings){const r=this.dataHandler.prepareSettingsOrError(t.settings.currentValue);if("string"==typeof r)return void this.state.set({type:"invalid",payload:{error:r}});this.context.data.settings.set(r)}this.validate(!!t.settings||!!t.payment)}ngOnDestroy(){this.context.data.settings()?.apmsCollapse&&this.sessionStorage.removeItem(Mn.keys.apmsCollapse);const t=this.toastr.toastrConfig;setTimeout(()=>{if(document.querySelector("moto-payment-form"))return;this.toastr?.clear();const i=document.getElementById("toast-container");i&&(i.innerHTML="")},(t?.timeOut??5e3)+(t?.extendedTimeOut??1e3)+500)}validate(t){const r=this.context.data.settings(),i=this.context.data.payment(),s=this.dataHandler.validateModelsCompatibility(i,r);s?this.state.set({type:"invalid",payload:{error:s}}):(this.applySettings(),this.context.callbacks.createInvoice=this.createInvoice?o=>this.createInvoice(o):void 0,this.context.callbacks.makePayment=this.makePayment?o=>this.makePayment(o):void 0,this.context.data.settings()?.requiredFieldsBehavior?.markAsInvalidUntilCorrect?this.context.updateCanShowError(!0):this.context.updateCanShowError(!1),t&&this.context.data.userProvidedInfo.set({}),this.state.set({type:"correct",payload:{}}))}applySettings(){const t=this.context.data.settings(),r=t.components,i=this.context.componentsStates;(!t.availableCardBrands.length||!r.some(s=>"available-card-brands"===s))&&i.availableCardBrands.update(s=>({...s,enabled:!1,isRequired:!1})),(!t.chargeTerms?.checkboxes?.length&&!t.chargeTerms?.text||!r.some(s=>"charge-terms"===s))&&i.chargeTerms.update(s=>({...s,enabled:!1,isRequired:!1})),(!t.userPreferences?.checkboxes?.length&&!t.userPreferences?.text||!r.some(s=>"user-preferences"===s))&&i.userPreferences.update(s=>({...s,enabled:!1,isRequired:!1})),r.some(s=>"phone-number"===s)||i.additionalForm.update(s=>({...s,enabled:!1,isRequired:!1})),(!t.merchantInfo?.text&&!t.merchantInfo?.links?.length||!r.some(s=>"merchant-info"===s))&&i.merchantInfo.update(s=>({...s,enabled:!1,isRequired:!1})),r.some(s=>"apm-list"===s)||i.apmList.update(s=>({...s,enabled:!1,isRequired:!1})),r.some(s=>"requisites"===s)||i.cardForm.update(s=>({...s,enabled:!1,isRequired:!1})),r.some(s=>"card-list"===s)||i.cardList.update(s=>({...s,enabled:!1,isRequired:!1})),r.some(s=>"pay-button"===s)||i.payButton.update(s=>({...s,enabled:!1,isRequired:!1})),(!t.availableCardBrands.length||!r.some(s=>"protected-by"===s))&&i.protectedBy.update(s=>({...s,enabled:!1,isRequired:!1})),r.some(s=>"master"===s)?(i.chargeTerms.update(s=>({...s,enabled:!1,isRequired:!1})),i.userPreferences.update(s=>({...s,enabled:!1,isRequired:!1}))):i.master.update(s=>({...s,enabled:!1,isRequired:!1})),this.context.events.analytics.emitEnabled=t.events.analytics.required,this.context.events.analytics.optionalEmitEnabled=t.events.analytics.optional,this.context.events.error.emitEnabled=t.events.error,t.apmsCollapse&&this.sessionStorage.getOrSetItemSignal(Mn.keys.apmsCollapse,!0)}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe),v(WA),v(Yd),v(vc))};static#t=this.\u0275cmp=Te({type:e,selectors:[["moto-payment-form"]],inputs:{payment:"payment",settings:"settings",createInvoice:"createInvoice",makePayment:"makePayment"},outputs:{closeEvent:"close",paidEvent:"paid",analyticsEvent:"analyticsTracked",error:"error"},features:[er],decls:10,vars:2,consts:[[1,"__ndb-wrapper"],[1,"__ndb-wrapper-content"],[1,"__ndb-wrapper-content-main"]],template:function(r,i){if(1&r&&(S(0,"div",0)(1,"div",1),ee(2,Z9,1,0,"moto-header"),S(3,"div",2),ee(4,Y9,1,0,"moto-pay-form")(5,K9,1,0,"moto-invalid-pay-form")(6,Q9,1,0,"moto-processing")(7,X9,1,0,"moto-result")(8,J9,1,0,"moto-confirmation")(9,eq,0,0),T()()()),2&r){let s,o;C(2),oe(null===(s=null==(s=i.settingsSignal())?null:s.isHeaderVisible)||void 0===s||s?2:-1),C(2),oe("correct"===(o=i.state().type)?4:"invalid"===o?5:"payLoading"===o?6:"result"===o?7:"confirmation"===o?8:"empty"===o?9:-1)}},dependencies:[ZA,I9,A9,x9,j9,W9],styles:["[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.__ndb-wrapper[_ngcontent-%COMP%]{max-width:560px;width:100%;margin:0 auto;transition:max-width .3s cubic-bezier(.25,.1,.25,1)}@media (max-width: 768px){.__ndb-wrapper[_ngcontent-%COMP%]{max-width:318px}}.__ndb-wrapper-content[_ngcontent-%COMP%]{margin:0 auto;position:relative;border:1px solid #c9ccd8;box-shadow:inset 0 -1px #29304d1a;border-radius:4px}.__ndb-wrapper-content-main[_ngcontent-%COMP%]{padding:28px;gap:40px;flex-direction:column;display:flex}"],changeDetection:0})}return e})(),QA=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=dt({})}return e})();function XA(e){return new E(3e3,!1)}function Si(e){switch(e.length){case 0:return new pc;case 1:return e[0];default:return new VM(e)}}function JA(e,n,t=new Map,r=new Map){const i=[],s=[];let o=-1,a=null;if(n.forEach(c=>{const l=c.get("offset"),u=l==o,d=u&&a||new Map;c.forEach((f,h)=>{let p=h,m=f;if("offset"!==h)switch(p=e.normalizePropertyName(p,i),m){case"!":m=t.get(h);break;case Kr:m=r.get(h);break;default:m=e.normalizeStyleValue(h,p,m,i)}d.set(p,m)}),u||s.push(d),a=d,o=l}),i.length)throw function Dq(){return new E(3502,!1)}();return s}function Hy(e,n,t,r){switch(n){case"start":e.onStart(()=>r(t&&Uy(t,"start",e)));break;case"done":e.onDone(()=>r(t&&Uy(t,"done",e)));break;case"destroy":e.onDestroy(()=>r(t&&Uy(t,"destroy",e)))}}function Uy(e,n,t){const s=$y(e.element,e.triggerName,e.fromState,e.toState,n||e.phaseName,t.totalTime??e.totalTime,!!t.disabled),o=e._data;return null!=o&&(s._data=o),s}function $y(e,n,t,r,i="",s=0,o){return{element:e,triggerName:n,fromState:t,toState:r,phaseName:i,totalTime:s,disabled:!!o}}function kn(e,n,t){let r=e.get(n);return r||e.set(n,r=t),r}function e1(e){const n=e.indexOf(":");return[e.substring(1,n),e.slice(n+1)]}const Fq=typeof document>"u"?null:document.documentElement;function Gy(e){const n=e.parentNode||e.host||null;return n===Fq?null:n}let ds=null,t1=!1;function n1(e,n){for(;n;){if(n===e)return!0;n=Gy(n)}return!1}function r1(e,n,t){if(t)return Array.from(e.querySelectorAll(n));const r=e.querySelector(n);return r?[r]:[]}let zy=(()=>{class e{validateStyleProperty(t){return function Vq(e){ds||(ds=function Bq(){return typeof document<"u"?document.body:null}()||{},t1=!!ds.style&&"WebkitAppearance"in ds.style);let n=!0;return ds.style&&!function Lq(e){return"ebkit"==e.substring(1,6)}(e)&&(n=e in ds.style,!n&&t1&&(n="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in ds.style)),n}(t)}containsElement(t,r){return n1(t,r)}getParentElement(t){return Gy(t)}query(t,r,i){return r1(t,r,i)}computeStyle(t,r,i){return i||""}animate(t,r,i,s,o,a=[],c){return new pc(i,s)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();class qy{static#e=this.NOOP=new zy}class Wy{}const Hq=1e3,Zy="ng-enter",Kd="ng-leave",Qd="ng-trigger",Xd=".ng-trigger",s1="ng-animating",Yy=".ng-animating";function ei(e){if("number"==typeof e)return e;const n=e.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:Ky(parseFloat(n[1]),n[2])}function Ky(e,n){return"s"===n?e*Hq:e}function Jd(e,n,t){return e.hasOwnProperty("duration")?e:function $q(e,n,t){let i,s=0,o="";if("string"==typeof e){const a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(XA()),{duration:0,delay:0,easing:""};i=Ky(parseFloat(a[1]),a[2]);const c=a[3];null!=c&&(s=Ky(parseFloat(c),a[4]));const l=a[5];l&&(o=l)}else i=e;if(!t){let a=!1,c=n.length;i<0&&(n.push(function nq(){return new E(3100,!1)}()),a=!0),s<0&&(n.push(function rq(){return new E(3101,!1)}()),a=!0),a&&n.splice(c,0,XA())}return{duration:i,delay:s,easing:o}}(e,n,t)}function Or(e,n,t){n.forEach((r,i)=>{const s=Xy(i);t&&!t.has(i)&&t.set(i,e.style[s]),e.style[s]=r})}function fs(e,n){n.forEach((t,r)=>{const i=Xy(r);e.style[i]=""})}function xc(e){return Array.isArray(e)?1==e.length?e[0]:function N5(e,n=null){return{type:Q.Sequence,steps:e,options:n}}(e):e}const Qy=new RegExp("{{\\s*(.+?)\\s*}}","g");function a1(e){let n=[];if("string"==typeof e){let t;for(;t=Qy.exec(e);)n.push(t[1]);Qy.lastIndex=0}return n}function Nc(e,n,t){const r=`${e}`,i=r.replace(Qy,(s,o)=>{let a=n[o];return null==a&&(t.push(function sq(){return new E(3003,!1)}()),a=""),a.toString()});return i==r?e:i}const qq=/-+([a-z0-9])/g;function Xy(e){return e.replace(qq,(...n)=>n[1].toUpperCase())}function Pn(e,n,t){switch(n.type){case Q.Trigger:return e.visitTrigger(n,t);case Q.State:return e.visitState(n,t);case Q.Transition:return e.visitTransition(n,t);case Q.Sequence:return e.visitSequence(n,t);case Q.Group:return e.visitGroup(n,t);case Q.Animate:return e.visitAnimate(n,t);case Q.Keyframes:return e.visitKeyframes(n,t);case Q.Style:return e.visitStyle(n,t);case Q.Reference:return e.visitReference(n,t);case Q.AnimateChild:return e.visitAnimateChild(n,t);case Q.AnimateRef:return e.visitAnimateRef(n,t);case Q.Query:return e.visitQuery(n,t);case Q.Stagger:return e.visitStagger(n,t);default:throw function oq(){return new E(3004,!1)}()}}function Jy(e,n){return window.getComputedStyle(e)[n]}const Yq=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class c1 extends Wy{normalizePropertyName(n,t){return Xy(n)}normalizeStyleValue(n,t,r,i){let s="";const o=r.toString().trim();if(Yq.has(t)&&0!==r&&"0"!==r)if("number"==typeof r)s="px";else{const a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push(function aq(){return new E(3005,!1)}())}return o+s}}const ef="*";const tf=new Set(["true","1"]),nf=new Set(["false","0"]);function l1(e,n){const t=tf.has(e)||nf.has(e),r=tf.has(n)||nf.has(n);return(i,s)=>{let o=e==ef||e==i,a=n==ef||n==s;return!o&&t&&"boolean"==typeof i&&(o=i?tf.has(e):nf.has(e)),!a&&r&&"boolean"==typeof s&&(a=s?tf.has(n):nf.has(n)),o&&a}}const Jq=new RegExp("s*:selfs*,?","g");function e_(e,n,t,r){return new eW(e).build(n,t,r)}class eW{constructor(n){this._driver=n}build(n,t,r){const i=new rW(t);return this._resetContextStyleTimingState(i),Pn(this,xc(n),i)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,t){let r=t.queryCount=0,i=t.depCount=0;const s=[],o=[];return"@"==n.name.charAt(0)&&t.errors.push(function cq(){return new E(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==Q.State){const c=a,l=c.name;l.toString().split(/\s*,\s*/).forEach(u=>{c.name=u,s.push(this.visitState(c,t))}),c.name=l}else if(a.type==Q.Transition){const c=this.visitTransition(a,t);r+=c.queryCount,i+=c.depCount,o.push(c)}else t.errors.push(function lq(){return new E(3007,!1)}())}),{type:Q.Trigger,name:n.name,states:s,transitions:o,queryCount:r,depCount:i,options:null}}visitState(n,t){const r=this.visitStyle(n.styles,t),i=n.options&&n.options.params||null;if(r.containsDynamicStyles){const s=new Set,o=i||{};r.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{a1(c).forEach(l=>{o.hasOwnProperty(l)||s.add(l)})})}),s.size&&t.errors.push(function uq(){return new E(3008,!1)}(0,s.values()))}return{type:Q.State,name:n.name,style:r,options:i?{params:i}:null}}visitTransition(n,t){t.queryCount=0,t.depCount=0;const r=Pn(this,xc(n.animation),t),i=function Kq(e,n){const t=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(r=>function Qq(e,n,t){if(":"==e[0]){const c=function Xq(e,n){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,r)=>parseFloat(r)>parseFloat(t);case":decrement":return(t,r)=>parseFloat(r)<parseFloat(t);default:return n.push(function Cq(){return new E(3016,!1)}()),"* => *"}}(e,t);if("function"==typeof c)return void n.push(c);e=c}const r=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return t.push(function vq(){return new E(3015,!1)}()),n;const i=r[1],s=r[2],o=r[3];n.push(l1(i,o)),"<"==s[0]&&(i!=ef||o!=ef)&&n.push(l1(o,i))}(r,t,n)):t.push(e),t}(n.expr,t.errors);return{type:Q.Transition,matchers:i,animation:r,queryCount:t.queryCount,depCount:t.depCount,options:hs(n.options)}}visitSequence(n,t){return{type:Q.Sequence,steps:n.steps.map(r=>Pn(this,r,t)),options:hs(n.options)}}visitGroup(n,t){const r=t.currentTime;let i=0;const s=n.steps.map(o=>{t.currentTime=r;const a=Pn(this,o,t);return i=Math.max(i,t.currentTime),a});return t.currentTime=i,{type:Q.Group,steps:s,options:hs(n.options)}}visitAnimate(n,t){const r=function sW(e,n){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e)return t_(Jd(e,n).duration,0,"");const t=e;if(t.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=t_(0,0,"");return s.dynamic=!0,s.strValue=t,s}const i=Jd(t,n);return t_(i.duration,i.delay,i.easing)}(n.timings,t.errors);t.currentAnimateTimings=r;let i,s=n.styles?n.styles:Je({});if(s.type==Q.Keyframes)i=this.visitKeyframes(s,t);else{let o=n.styles,a=!1;if(!o){a=!0;const l={};r.easing&&(l.easing=r.easing),o=Je(l)}t.currentTime+=r.duration+r.delay;const c=this.visitStyle(o,t);c.isEmptyStep=a,i=c}return t.currentAnimateTimings=null,{type:Q.Animate,timings:r,style:i,options:null}}visitStyle(n,t){const r=this._makeStyleAst(n,t);return this._validateStyleAst(r,t),r}_makeStyleAst(n,t){const r=[],i=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of i)"string"==typeof a?a===Kr?r.push(a):t.errors.push(new E(3002,!1)):r.push(new Map(Object.entries(a)));let s=!1,o=null;return r.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!s))for(let c of a.values())if(c.toString().indexOf("{{")>=0){s=!0;break}}),{type:Q.Style,styles:r,easing:o,offset:n.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(n,t){const r=t.currentAnimateTimings;let i=t.currentTime,s=t.currentTime;r&&s>0&&(s-=r.duration+r.delay),n.styles.forEach(o=>{"string"!=typeof o&&o.forEach((a,c)=>{const l=t.collectedStyles.get(t.currentQuerySelector),u=l.get(c);let d=!0;u&&(s!=i&&s>=u.startTime&&i<=u.endTime&&(t.errors.push(function fq(){return new E(3010,!1)}()),d=!1),s=u.startTime),d&&l.set(c,{startTime:s,endTime:i}),t.options&&function zq(e,n,t){const r=n.params||{},i=a1(e);i.length&&i.forEach(s=>{r.hasOwnProperty(s)||t.push(function iq(){return new E(3001,!1)}())})}(a,t.options,t.errors)})})}visitKeyframes(n,t){const r={type:Q.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function hq(){return new E(3011,!1)}()),r;let s=0;const o=[];let a=!1,c=!1,l=0;const u=n.steps.map(_=>{const y=this._makeStyleAst(_,t);let w=null!=y.offset?y.offset:function iW(e){if("string"==typeof e)return null;let n=null;if(Array.isArray(e))e.forEach(t=>{if(t instanceof Map&&t.has("offset")){const r=t;n=parseFloat(r.get("offset")),r.delete("offset")}});else if(e instanceof Map&&e.has("offset")){const t=e;n=parseFloat(t.get("offset")),t.delete("offset")}return n}(y.styles),D=0;return null!=w&&(s++,D=y.offset=w),c=c||D<0||D>1,a=a||D<l,l=D,o.push(D),y});c&&t.errors.push(function pq(){return new E(3012,!1)}()),a&&t.errors.push(function mq(){return new E(3200,!1)}());const d=n.steps.length;let f=0;s>0&&s<d?t.errors.push(function gq(){return new E(3202,!1)}()):0==s&&(f=1/(d-1));const h=d-1,p=t.currentTime,m=t.currentAnimateTimings,g=m.duration;return u.forEach((_,y)=>{const w=f>0?y==h?1:f*y:o[y],D=w*g;t.currentTime=p+m.delay+D,m.duration=D,this._validateStyleAst(_,t),_.offset=w,r.styles.push(_)}),r}visitReference(n,t){return{type:Q.Reference,animation:Pn(this,xc(n.animation),t),options:hs(n.options)}}visitAnimateChild(n,t){return t.depCount++,{type:Q.AnimateChild,options:hs(n.options)}}visitAnimateRef(n,t){return{type:Q.AnimateRef,animation:this.visitReference(n.animation,t),options:hs(n.options)}}visitQuery(n,t){const r=t.currentQuerySelector,i=n.options||{};t.queryCount++,t.currentQuery=n;const[s,o]=function tW(e){const n=!!e.split(/\s*,\s*/).find(t=>":self"==t);return n&&(e=e.replace(Jq,"")),e=e.replace(/@\*/g,Xd).replace(/@\w+/g,t=>Xd+"-"+t.slice(1)).replace(/:animating/g,Yy),[e,n]}(n.selector);t.currentQuerySelector=r.length?r+" "+s:s,kn(t.collectedStyles,t.currentQuerySelector,new Map);const a=Pn(this,xc(n.animation),t);return t.currentQuery=null,t.currentQuerySelector=r,{type:Q.Query,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:a,originalSelector:n.selector,options:hs(n.options)}}visitStagger(n,t){t.currentQuery||t.errors.push(function yq(){return new E(3013,!1)}());const r="full"===n.timings?{duration:0,delay:0,easing:"full"}:Jd(n.timings,t.errors,!0);return{type:Q.Stagger,animation:Pn(this,xc(n.animation),t),timings:r,options:null}}}class rW{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function hs(e){return e?(e={...e}).params&&(e.params=function nW(e){return e?{...e}:null}(e.params)):e={},e}function t_(e,n,t){return{duration:e,delay:n,easing:t}}function n_(e,n,t,r,i,s,o=null,a=!1){return{type:1,element:e,keyframes:n,preStyleProps:t,postStyleProps:r,duration:i,delay:s,totalTime:i+s,easing:o,subTimeline:a}}class rf{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,t){let r=this._map.get(n);r||this._map.set(n,r=[]),r.push(...t)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const cW=new RegExp(":enter","g"),uW=new RegExp(":leave","g");function r_(e,n,t,r,i,s=new Map,o=new Map,a,c,l=[]){return(new dW).buildKeyframes(e,n,t,r,i,s,o,a,c,l)}class dW{buildKeyframes(n,t,r,i,s,o,a,c,l,u=[]){l=l||new rf;const d=new i_(n,t,l,i,s,u,[]);d.options=c;const f=c.delay?ei(c.delay):0;d.currentTimeline.delayNextStep(f),d.currentTimeline.setStyles([o],null,d.errors,c),Pn(this,r,d);const h=d.timelines.filter(p=>p.containsAnimation());if(h.length&&a.size){let p;for(let m=h.length-1;m>=0;m--){const g=h[m];if(g.element===t){p=g;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,c)}return h.length?h.map(p=>p.buildKeyframes()):[n_(t,[],[],[],0,f,"",!1)]}visitTrigger(n,t){}visitState(n,t){}visitTransition(n,t){}visitAnimateChild(n,t){const r=t.subInstructions.get(t.element);if(r){const i=t.createSubContext(n.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(r,i,i.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=n}visitAnimateRef(n,t){const r=t.createSubContext(n.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],t,r),this.visitReference(n.animation,r),t.transformIntoNewTimeline(r.currentTimeline.currentTime),t.previousNode=n}_applyAnimationRefDelays(n,t,r){for(const i of n){const s=i?.delay;if(s){const o="number"==typeof s?s:ei(Nc(s,i?.params??{},t.errors));r.delayNextStep(o)}}}_visitSubInstructions(n,t,r){let s=t.currentTimeline.currentTime;const o=null!=r.duration?ei(r.duration):null,a=null!=r.delay?ei(r.delay):null;return 0!==o&&n.forEach(c=>{const l=t.appendInstructionToTimeline(c,o,a);s=Math.max(s,l.duration+l.delay)}),s}visitReference(n,t){t.updateOptions(n.options,!0),Pn(this,n.animation,t),t.previousNode=n}visitSequence(n,t){const r=t.subContextCount;let i=t;const s=n.options;if(s&&(s.params||s.delay)&&(i=t.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){i.previousNode.type==Q.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=sf);const o=ei(s.delay);i.delayNextStep(o)}n.steps.length&&(n.steps.forEach(o=>Pn(this,o,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),t.previousNode=n}visitGroup(n,t){const r=[];let i=t.currentTimeline.currentTime;const s=n.options&&n.options.delay?ei(n.options.delay):0;n.steps.forEach(o=>{const a=t.createSubContext(n.options);s&&a.delayNextStep(s),Pn(this,o,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(i),t.previousNode=n}_visitTiming(n,t){if(n.dynamic){const r=n.strValue;return Jd(t.params?Nc(r,t.params,t.errors):r,t.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,t){const r=t.currentAnimateTimings=this._visitTiming(n.timings,t),i=t.currentTimeline;r.delay&&(t.incrementTime(r.delay),i.snapshotCurrentStyles());const s=n.style;s.type==Q.Keyframes?this.visitKeyframes(s,t):(t.incrementTime(r.duration),this.visitStyle(s,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=n}visitStyle(n,t){const r=t.currentTimeline,i=t.currentAnimateTimings;!i&&r.hasCurrentStyleProperties()&&r.forwardFrame();const s=i&&i.easing||n.easing;n.isEmptyStep?r.applyEmptyStep(s):r.setStyles(n.styles,s,t.errors,t.options),t.previousNode=n}visitKeyframes(n,t){const r=t.currentAnimateTimings,i=t.currentTimeline.duration,s=r.duration,a=t.createSubContext().currentTimeline;a.easing=r.easing,n.styles.forEach(c=>{a.forwardTime((c.offset||0)*s),a.setStyles(c.styles,c.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(i+s),t.previousNode=n}visitQuery(n,t){const r=t.currentTimeline.currentTime,i=n.options||{},s=i.delay?ei(i.delay):0;s&&(t.previousNode.type===Q.Style||0==r&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=sf);let o=r;const a=t.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=a.length;let c=null;a.forEach((l,u)=>{t.currentQueryIndex=u;const d=t.createSubContext(n.options,l);s&&d.delayNextStep(s),l===t.element&&(c=d.currentTimeline),Pn(this,n.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),c&&(t.currentTimeline.mergeTimelineCollectedStyles(c),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=n}visitStagger(n,t){const r=t.parentContext,i=t.currentTimeline,s=n.timings,o=Math.abs(s.duration),a=o*(t.currentQueryTotal-1);let c=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":c=a-c;break;case"full":c=r.currentStaggerTime}const u=t.currentTimeline;c&&u.delayNextStep(c);const d=u.currentTime;Pn(this,n.animation,t),t.previousNode=n,r.currentStaggerTime=i.currentTime-d+(i.startTime-r.currentTimeline.startTime)}}const sf={};class i_{constructor(n,t,r,i,s,o,a,c){this._driver=n,this.element=t,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=sf,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new af(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,t){if(!n)return;const r=n;let i=this.options;null!=r.duration&&(i.duration=ei(r.duration)),null!=r.delay&&(i.delay=ei(r.delay));const s=r.params;if(s){let o=i.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=Nc(s[a],o,this.errors))})}}_copyOptions(){const n={};if(this.options){const t=this.options.params;if(t){const r=n.params={};Object.keys(t).forEach(i=>{r[i]=t[i]})}}return n}createSubContext(n=null,t,r){const i=t||this.element,s=new i_(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(n),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(n){return this.previousNode=sf,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,t,r){const i={duration:t??n.duration,delay:this.currentTimeline.currentTime+(r??0)+n.delay,easing:""},s=new fW(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,i,n.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,t,r,i,s,o){let a=[];if(i&&a.push(this.element),n.length>0){n=(n=n.replace(cW,"."+this._enterClassName)).replace(uW,"."+this._leaveClassName);let l=this._driver.query(this.element,n,1!=r);0!==r&&(l=r<0?l.slice(l.length+r,l.length):l.slice(0,r)),a.push(...l)}return!s&&0==a.length&&o.push(function _q(){return new E(3014,!1)}()),a}}class af{constructor(n,t,r,i){this._driver=n,this.element=t,this.startTime=r,this._elementTimelineStylesLookup=i,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+n),t&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,t){return this.applyStylesToKeyframe(),new af(this._driver,n,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,t){this._localTimelineStyles.set(n,t),this._globalTimelineStyles.set(n,t),this._styleSummary.set(n,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[t,r]of this._globalTimelineStyles)this._backFill.set(t,r||Kr),this._currentKeyframe.set(t,Kr);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,t,r,i){t&&this._previousKeyframe.set("easing",t);const s=i&&i.params||{},o=function hW(e,n){const t=new Map;let r;return e.forEach(i=>{if("*"===i){r??=n.keys();for(let s of r)t.set(s,Kr)}else for(let[s,o]of i)t.set(s,o)}),t}(n,this._globalTimelineStyles);for(let[a,c]of o){const l=Nc(c,s,r);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Kr),this._updateStyle(a,l)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,t)=>{this._currentKeyframe.set(t,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,n)}))}snapshotCurrentStyles(){for(let[n,t]of this._localTimelineStyles)this._pendingStyles.set(n,t),this._updateStyle(n,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let t in this._currentKeyframe)n.push(t);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((t,r)=>{const i=this._styleSummary.get(r);(!i||t.time>i.time)&&this._updateStyle(r,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,t=new Set,r=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((a,c)=>{const l=new Map([...this._backFill,...a]);l.forEach((u,d)=>{"!"===u?n.add(d):u===Kr&&t.add(d)}),r||l.set("offset",c/this.duration),i.push(l)});const s=[...n.values()],o=[...t.values()];if(r){const a=i[0],c=new Map(a);a.set("offset",0),c.set("offset",1),i=[a,c]}return n_(this.element,i,s,o,this.duration,this.startTime,this.easing,!1)}}class fW extends af{constructor(n,t,r,i,s,o,a=!1){super(n,t,o.delay),this.keyframes=r,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:t,duration:r,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){const s=[],o=r+t,a=t/o,c=new Map(n[0]);c.set("offset",0),s.push(c);const l=new Map(n[0]);l.set("offset",f1(a)),s.push(l);const u=n.length-1;for(let d=1;d<=u;d++){let f=new Map(n[d]);const h=f.get("offset");f.set("offset",f1((t+h*r)/o)),s.push(f)}r=o,t=0,i="",n=s}return n_(this.element,n,this.preStyleProps,this.postStyleProps,r,t,i,!0)}}function f1(e,n=3){const t=Math.pow(10,n-1);return Math.round(e*t)/t}function h1(e,n,t,r,i,s,o,a,c,l,u,d,f){return{type:0,element:e,triggerName:n,isRemovalTransition:i,fromState:t,fromStyles:s,toState:r,toStyles:o,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:d,errors:f}}const s_={};class p1{constructor(n,t,r){this._triggerName=n,this.ast=t,this._stateStyles=r}match(n,t,r,i){return function pW(e,n,t,r,i){return e.some(s=>s(n,t,r,i))}(this.ast.matchers,n,t,r,i)}buildStyles(n,t,r){let i=this._stateStyles.get("*");return void 0!==n&&(i=this._stateStyles.get(n?.toString())||i),i?i.buildStyles(t,r):new Map}build(n,t,r,i,s,o,a,c,l,u){const d=[],f=this.ast.options&&this.ast.options.params||s_,p=this.buildStyles(r,a&&a.params||s_,d),m=c&&c.params||s_,g=this.buildStyles(i,m,d),_=new Set,y=new Map,w=new Map,D="void"===i,M={params:m1(m,f),delay:this.ast.options?.delay},F=u?[]:r_(n,t,this.ast.animation,s,o,p,g,M,l,d);let j=0;return F.forEach(L=>{j=Math.max(L.duration+L.delay,j)}),d.length?h1(t,this._triggerName,r,i,D,p,g,[],[],y,w,j,d):(F.forEach(L=>{const Ze=L.element,et=kn(y,Ze,new Set);L.preStyleProps.forEach(en=>et.add(en));const at=kn(w,Ze,new Set);L.postStyleProps.forEach(en=>at.add(en)),Ze!==t&&_.add(Ze)}),h1(t,this._triggerName,r,i,D,p,g,F,[..._.values()],y,w,j))}}function m1(e,n){const t={...n};return Object.entries(e).forEach(([r,i])=>{null!=i&&(t[r]=i)}),t}class mW{constructor(n,t,r){this.styles=n,this.defaultParams=t,this.normalizer=r}buildStyles(n,t){const r=new Map,i=m1(n,this.defaultParams);return this.styles.styles.forEach(s=>{"string"!=typeof s&&s.forEach((o,a)=>{o&&(o=Nc(o,i,t));const c=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,c,o,t),r.set(a,o)})}),r}}class yW{constructor(n,t,r){this.name=n,this.ast=t,this._normalizer=r,this.transitionFactories=[],this.states=new Map,t.states.forEach(i=>{this.states.set(i.name,new mW(i.style,i.options&&i.options.params||{},r))}),g1(this.states,"true","1"),g1(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new p1(n,i,this.states))}),this.fallbackTransition=function _W(e,n){return new p1(e,{type:Q.Transition,animation:{type:Q.Sequence,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,t,r,i){return this.transitionFactories.find(o=>o.match(n,t,r,i))||null}matchStyles(n,t,r){return this.fallbackTransition.buildStyles(n,t,r)}}function g1(e,n,t){e.has(n)?e.has(t)||e.set(t,e.get(n)):e.has(t)&&e.set(n,e.get(t))}const vW=new rf;class CW{constructor(n,t,r){this.bodyNode=n,this._driver=t,this._normalizer=r,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,t){const r=[],s=e_(this._driver,t,r,[]);if(r.length)throw function Sq(){return new E(3503,!1)}();this._animations.set(n,s)}_buildPlayer(n,t,r){const i=n.element,s=JA(this._normalizer,n.keyframes,t,r);return this._driver.animate(i,s,n.duration,n.delay,n.easing,[],!0)}create(n,t,r={}){const i=[],s=this._animations.get(n);let o;const a=new Map;if(s?(o=r_(this._driver,t,s,Zy,Kd,new Map,new Map,r,vW,i),o.forEach(u=>{const d=kn(a,u.element,new Map);u.postStyleProps.forEach(f=>d.set(f,null))})):(i.push(function Tq(){return new E(3300,!1)}()),o=[]),i.length)throw function Mq(){return new E(3504,!1)}();a.forEach((u,d)=>{u.forEach((f,h)=>{u.set(h,this._driver.computeStyle(d,h,Kr))})});const l=Si(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(n,l),l.onDestroy(()=>this.destroy(n)),this.players.push(l),l}destroy(n){const t=this._getPlayer(n);t.destroy(),this._playersById.delete(n);const r=this.players.indexOf(t);r>=0&&this.players.splice(r,1)}_getPlayer(n){const t=this._playersById.get(n);if(!t)throw function Iq(){return new E(3301,!1)}();return t}listen(n,t,r,i){const s=$y(t,"","","");return Hy(this._getPlayer(n),r,s,i),()=>{}}command(n,t,r,i){if("register"==r)return void this.register(n,i[0]);if("create"==r)return void this.create(n,t,i[0]||{});const s=this._getPlayer(n);switch(r){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(n)}}}const y1="ng-animate-queued",o_="ng-animate-disabled",SW=[],_1={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},TW={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},gr="__ng_removed";class a_{get params(){return this.options.params}constructor(n,t=""){this.namespaceId=t;const r=n&&n.hasOwnProperty("value");if(this.value=function xW(e){return e??null}(r?n.value:n),r){const{value:s,...o}=n;this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const t=n.params;if(t){const r=this.options.params;Object.keys(t).forEach(i=>{null==r[i]&&(r[i]=t[i])})}}}const kc="void",c_=new a_(kc);class MW{constructor(n,t,r){this.id=n,this.hostElement=t,this._engine=r,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,zn(t,this._hostClassName)}listen(n,t,r,i){if(!this._triggers.has(t))throw function Aq(){return new E(3302,!1)}();if(null==r||0==r.length)throw function xq(){return new E(3303,!1)}();if(!function NW(e){return"start"==e||"done"==e}(r))throw function Nq(){return new E(3400,!1)}();const s=kn(this._elementListeners,n,[]),o={name:t,phase:r,callback:i};s.push(o);const a=kn(this._engine.statesByElement,n,new Map);return a.has(t)||(zn(n,Qd),zn(n,Qd+"-"+t),a.set(t,c_)),()=>{this._engine.afterFlush(()=>{const c=s.indexOf(o);c>=0&&s.splice(c,1),this._triggers.has(t)||a.delete(t)})}}register(n,t){return!this._triggers.has(n)&&(this._triggers.set(n,t),!0)}_getTrigger(n){const t=this._triggers.get(n);if(!t)throw function kq(){return new E(3401,!1)}();return t}trigger(n,t,r,i=!0){const s=this._getTrigger(t),o=new l_(this.id,t,n);let a=this._engine.statesByElement.get(n);a||(zn(n,Qd),zn(n,Qd+"-"+t),this._engine.statesByElement.set(n,a=new Map));let c=a.get(t);const l=new a_(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a.set(t,l),c||(c=c_),l.value!==kc&&c.value===l.value){if(!function OW(e,n){const t=Object.keys(e),r=Object.keys(n);if(t.length!=r.length)return!1;for(let i=0;i<t.length;i++){const s=t[i];if(!n.hasOwnProperty(s)||e[s]!==n[s])return!1}return!0}(c.params,l.params)){const m=[],g=s.matchStyles(c.value,c.params,m),_=s.matchStyles(l.value,l.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{fs(n,g),Or(n,_)})}return}const f=kn(this._engine.playersByElement,n,[]);f.forEach(m=>{m.namespaceId==this.id&&m.triggerName==t&&m.queued&&m.destroy()});let h=s.matchTransition(c.value,l.value,n,l.params),p=!1;if(!h){if(!i)return;h=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:t,transition:h,fromState:c,toState:l,player:o,isFallbackTransition:p}),p||(zn(n,y1),o.onStart(()=>{Ho(n,y1)})),o.onDone(()=>{let m=this.players.indexOf(o);m>=0&&this.players.splice(m,1);const g=this._engine.playersByElement.get(n);if(g){let _=g.indexOf(o);_>=0&&g.splice(_,1)}}),this.players.push(o),f.push(o),o}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(t=>t.delete(n)),this._elementListeners.forEach((t,r)=>{this._elementListeners.set(r,t.filter(i=>i.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const t=this._engine.playersByElement.get(n);t&&(t.forEach(r=>r.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,t){const r=this._engine.driver.query(n,Xd,!0);r.forEach(i=>{if(i[gr])return;const s=this._engine.fetchNamespacesByElement(i);s.size?s.forEach(o=>o.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(n,t,r,i){const s=this._engine.statesByElement.get(n),o=new Map;if(s){const a=[];if(s.forEach((c,l)=>{if(o.set(l,c.value),this._triggers.has(l)){const u=this.trigger(n,l,kc,i);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,t,o),r&&Si(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const t=this._elementListeners.get(n),r=this._engine.statesByElement.get(n);if(t&&r){const i=new Set;t.forEach(s=>{const o=s.name;if(i.has(o))return;i.add(o);const c=this._triggers.get(o).fallbackTransition,l=r.get(o)||c_,u=new a_(kc),d=new l_(this.id,o,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:o,transition:c,fromState:l,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(n,t){const r=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,t),this.triggerLeaveAnimation(n,t,!0))return;let i=!1;if(r.totalAnimations){const s=r.players.length?r.playersByQueriedElement.get(n):[];if(s&&s.length)i=!0;else{let o=n;for(;o=o.parentNode;)if(r.statesByElement.get(o)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(n),i)r.markElementAsRemoved(this.id,n,!1,t);else{const s=n[gr];(!s||s===_1)&&(r.afterFlush(()=>this.clearElementCache(n)),r.destroyInnerAnimations(n),r._onRemovalComplete(n,t))}}insertNode(n,t){zn(n,this._hostClassName)}drainQueuedTransitions(n){const t=[];return this._queue.forEach(r=>{const i=r.player;if(i.destroyed)return;const s=r.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==r.triggerName){const c=$y(s,r.triggerName,r.fromState.value,r.toState.value);c._data=n,Hy(r.player,a.phase,c,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(r)}),this._queue=[],t.sort((r,i)=>{const s=r.transition.ast.depCount,o=i.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(r.element,i.element)?1:-1})}destroy(n){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}}class IW{_onRemovalComplete(n,t){this.onRemovalComplete(n,t)}constructor(n,t,r){this.bodyNode=n,this.driver=t,this._normalizer=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(i,s)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(t=>{t.players.forEach(r=>{r.queued&&n.push(r)})}),n}createNamespace(n,t){const r=new MW(n,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(r,t):(this.newHostElements.set(t,r),this.collectEnterElement(t)),this._namespaceLookup[n]=r}_balanceNamespaceList(n,t){const r=this._namespaceList,i=this.namespacesByHostElement;if(r.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){const c=i.get(a);if(c){const l=r.indexOf(c);r.splice(l+1,0,n),o=!0;break}a=this.driver.getParentElement(a)}o||r.unshift(n)}else r.push(n);return i.set(t,n),n}register(n,t){let r=this._namespaceLookup[n];return r||(r=this.createNamespace(n,t)),r}registerTrigger(n,t,r){let i=this._namespaceLookup[n];i&&i.register(t,r)&&this.totalAnimations++}destroy(n,t){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const r=this._fetchNamespace(n);this.namespacesByHostElement.delete(r.hostElement);const i=this._namespaceList.indexOf(r);i>=0&&this._namespaceList.splice(i,1),r.destroy(t),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const t=new Set,r=this.statesByElement.get(n);if(r)for(let i of r.values())if(i.namespaceId){const s=this._fetchNamespace(i.namespaceId);s&&t.add(s)}return t}trigger(n,t,r,i){if(cf(t)){const s=this._fetchNamespace(n);if(s)return s.trigger(t,r,i),!0}return!1}insertNode(n,t,r,i){if(!cf(t))return;const s=t[gr];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(n){const o=this._fetchNamespace(n);o&&o.insertNode(t,r)}i&&this.collectEnterElement(t)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,t){t?this.disabledNodes.has(n)||(this.disabledNodes.add(n),zn(n,o_)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Ho(n,o_))}removeNode(n,t,r){if(cf(t)){const i=n?this._fetchNamespace(n):null;i?i.removeNode(t,r):this.markElementAsRemoved(n,t,!1,r);const s=this.namespacesByHostElement.get(t);s&&s.id!==n&&s.removeNode(t,r)}else this._onRemovalComplete(t,r)}markElementAsRemoved(n,t,r,i,s){this.collectedLeaveElements.push(t),t[gr]={namespaceId:n,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:s}}listen(n,t,r,i,s){return cf(t)?this._fetchNamespace(n).listen(t,r,i,s):()=>{}}_buildInstruction(n,t,r,i,s){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,r,i,n.fromState.options,n.toState.options,t,s)}destroyInnerAnimations(n){let t=this.driver.query(n,Xd,!0);t.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(n,Yy,!0),t.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(n){const t=this.playersByElement.get(n);t&&t.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(n){const t=this.playersByQueriedElement.get(n);t&&t.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Si(this.players).onDone(()=>n());n()})}processLeaveNode(n){const t=n[gr];if(t&&t.setForRemoval){if(n[gr]=_1,t.namespaceId){this.destroyInnerAnimations(n);const r=this._fetchNamespace(t.namespaceId);r&&r.clearElementCache(n)}this._onRemovalComplete(n,t.setForRemoval)}n.classList?.contains(o_)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(n=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,i)=>this._balanceNamespaceList(r,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;r<this.collectedEnterElements.length;r++)zn(this.collectedEnterElements[r],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const r=[];try{t=this._flushAnimations(r,n)}finally{for(let i=0;i<r.length;i++)r[i]()}}else for(let r=0;r<this.collectedLeaveElements.length;r++)this.processLeaveNode(this.collectedLeaveElements[r]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(r=>r()),this._flushFns=[],this._whenQuietFns.length){const r=this._whenQuietFns;this._whenQuietFns=[],t.length?Si(t).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(n){throw function Pq(){return new E(3402,!1)}()}_flushAnimations(n,t){const r=new rf,i=[],s=new Map,o=[],a=new Map,c=new Map,l=new Map,u=new Set;this.disabledNodes.forEach(O=>{u.add(O);const B=this.driver.query(O,".ng-animate-queued",!0);for(let $=0;$<B.length;$++)u.add(B[$])});const d=this.bodyNode,f=Array.from(this.statesByElement.keys()),h=b1(f,this.collectedEnterElements),p=new Map;let m=0;h.forEach((O,B)=>{const $=Zy+m++;p.set(B,$),O.forEach(le=>zn(le,$))});const g=[],_=new Set,y=new Set;for(let O=0;O<this.collectedLeaveElements.length;O++){const B=this.collectedLeaveElements[O],$=B[gr];$&&$.setForRemoval&&(g.push(B),_.add(B),$.hasAnimation?this.driver.query(B,".ng-star-inserted",!0).forEach(le=>_.add(le)):y.add(B))}const w=new Map,D=b1(f,Array.from(_));D.forEach((O,B)=>{const $=Kd+m++;w.set(B,$),O.forEach(le=>zn(le,$))}),n.push(()=>{h.forEach((O,B)=>{const $=p.get(B);O.forEach(le=>Ho(le,$))}),D.forEach((O,B)=>{const $=w.get(B);O.forEach(le=>Ho(le,$))}),g.forEach(O=>{this.processLeaveNode(O)})});const M=[],F=[];for(let O=this._namespaceList.length-1;O>=0;O--)this._namespaceList[O].drainQueuedTransitions(t).forEach($=>{const le=$.player,_t=$.element;if(M.push(le),this.collectedEnterElements.length){const $t=_t[gr];if($t&&$t.setForMove){if($t.previousTriggersValues&&$t.previousTriggersValues.has($.triggerName)){const ms=$t.previousTriggersValues.get($.triggerName),Zn=this.statesByElement.get($.element);if(Zn&&Zn.has($.triggerName)){const df=Zn.get($.triggerName);df.value=ms,Zn.set($.triggerName,df)}}return void le.destroy()}}const Wn=!d||!this.driver.containsElement(d,_t),tn=w.get(_t),Rr=p.get(_t),$e=this._buildInstruction($,r,Rr,tn,Wn);if($e.errors&&$e.errors.length)return void F.push($e);if(Wn)return le.onStart(()=>fs(_t,$e.fromStyles)),le.onDestroy(()=>Or(_t,$e.toStyles)),void i.push(le);if($.isFallbackTransition)return le.onStart(()=>fs(_t,$e.fromStyles)),le.onDestroy(()=>Or(_t,$e.toStyles)),void i.push(le);const uf=[];$e.timelines.forEach($t=>{$t.stretchStartingKeyframe=!0,this.disabledNodes.has($t.element)||uf.push($t)}),$e.timelines=uf,r.append(_t,$e.timelines),o.push({instruction:$e,player:le,element:_t}),$e.queriedElements.forEach($t=>kn(a,$t,[]).push(le)),$e.preStyleProps.forEach(($t,ms)=>{if($t.size){let Zn=c.get(ms);Zn||c.set(ms,Zn=new Set),$t.forEach((df,f_)=>Zn.add(f_))}}),$e.postStyleProps.forEach(($t,ms)=>{let Zn=l.get(ms);Zn||l.set(ms,Zn=new Set),$t.forEach((df,f_)=>Zn.add(f_))})});if(F.length){const O=[];F.forEach(B=>{O.push(function Oq(){return new E(3505,!1)}())}),M.forEach(B=>B.destroy()),this.reportError(O)}const j=new Map,L=new Map;o.forEach(O=>{const B=O.element;r.has(B)&&(L.set(B,B),this._beforeAnimationBuild(O.player.namespaceId,O.instruction,j))}),i.forEach(O=>{const B=O.element;this._getPreviousPlayers(B,!1,O.namespaceId,O.triggerName,null).forEach(le=>{kn(j,B,[]).push(le),le.destroy()})});const Ze=g.filter(O=>w1(O,c,l)),et=new Map;C1(et,this.driver,y,l,Kr).forEach(O=>{w1(O,c,l)&&Ze.push(O)});const en=new Map;h.forEach((O,B)=>{C1(en,this.driver,new Set(O),c,"!")}),Ze.forEach(O=>{const B=et.get(O),$=en.get(O);et.set(O,new Map([...B?.entries()??[],...$?.entries()??[]]))});const Ti=[],qn=[],ps={};o.forEach(O=>{const{element:B,player:$,instruction:le}=O;if(r.has(B)){if(u.has(B))return $.onDestroy(()=>Or(B,le.toStyles)),$.disabled=!0,$.overrideTotalTime(le.totalTime),void i.push($);let _t=ps;if(L.size>1){let tn=B;const Rr=[];for(;tn=tn.parentNode;){const $e=L.get(tn);if($e){_t=$e;break}Rr.push(tn)}Rr.forEach($e=>L.set($e,_t))}const Wn=this._buildAnimation($.namespaceId,le,j,s,en,et);if($.setRealPlayer(Wn),_t===ps)Ti.push($);else{const tn=this.playersByElement.get(_t);tn&&tn.length&&($.parentPlayer=Si(tn)),i.push($)}}else fs(B,le.fromStyles),$.onDestroy(()=>Or(B,le.toStyles)),qn.push($),u.has(B)&&i.push($)}),qn.forEach(O=>{const B=s.get(O.element);if(B&&B.length){const $=Si(B);O.setRealPlayer($)}}),i.forEach(O=>{O.parentPlayer?O.syncPlayerEvents(O.parentPlayer):O.destroy()});for(let O=0;O<g.length;O++){const B=g[O],$=B[gr];if(Ho(B,Kd),$&&$.hasAnimation)continue;let le=[];if(a.size){let Wn=a.get(B);Wn&&Wn.length&&le.push(...Wn);let tn=this.driver.query(B,Yy,!0);for(let Rr=0;Rr<tn.length;Rr++){let $e=a.get(tn[Rr]);$e&&$e.length&&le.push(...$e)}}const _t=le.filter(Wn=>!Wn.destroyed);_t.length?kW(this,B,_t):this.processLeaveNode(B)}return g.length=0,Ti.forEach(O=>{this.players.push(O),O.onDone(()=>{O.destroy();const B=this.players.indexOf(O);this.players.splice(B,1)}),O.play()}),Ti}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,t,r,i,s){let o=[];if(t){const a=this.playersByQueriedElement.get(n);a&&(o=a)}else{const a=this.playersByElement.get(n);if(a){const c=!s||s==kc;a.forEach(l=>{l.queued||!c&&l.triggerName!=i||o.push(l)})}}return(r||i)&&(o=o.filter(a=>!(r&&r!=a.namespaceId||i&&i!=a.triggerName))),o}_beforeAnimationBuild(n,t,r){const s=t.element,o=t.isRemovalTransition?void 0:n,a=t.isRemovalTransition?void 0:t.triggerName;for(const c of t.timelines){const l=c.element,u=l!==s,d=kn(r,l,[]);this._getPreviousPlayers(l,u,o,a,t.toState).forEach(h=>{const p=h.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),h.destroy(),d.push(h)})}fs(s,t.fromStyles)}_buildAnimation(n,t,r,i,s,o){const a=t.triggerName,c=t.element,l=[],u=new Set,d=new Set,f=t.timelines.map(p=>{const m=p.element;u.add(m);const g=m[gr];if(g&&g.removedBeforeQueried)return new pc(p.duration,p.delay);const _=m!==c,y=function PW(e){const n=[];return E1(e,n),n}((r.get(m)||SW).map(j=>j.getRealPlayer())).filter(j=>!!j.element&&j.element===m),w=s.get(m),D=o.get(m),M=JA(this._normalizer,p.keyframes,w,D),F=this._buildPlayer(p,M,y);if(p.subTimeline&&i&&d.add(m),_){const j=new l_(n,a,m);j.setRealPlayer(F),l.push(j)}return F});l.forEach(p=>{kn(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function AW(e,n,t){let r=e.get(n);if(r){if(r.length){const i=r.indexOf(t);r.splice(i,1)}0==r.length&&e.delete(n)}return r}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>zn(p,s1));const h=Si(f);return h.onDestroy(()=>{u.forEach(p=>Ho(p,s1)),Or(c,t.toStyles)}),d.forEach(p=>{kn(i,p,[]).push(h)}),h}_buildPlayer(n,t,r){return t.length>0?this.driver.animate(n.element,t,n.duration,n.delay,n.easing,r):new pc(n.duration,n.delay)}}class l_{constructor(n,t,r){this.namespaceId=n,this.triggerName=t,this.element=r,this._player=new pc,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((t,r)=>{t.forEach(i=>Hy(n,r,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const t=this._player;t.triggerCallback&&n.onStart(()=>t.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,t){kn(this._queuedCallbacks,n,[]).push(t)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const t=this._player;t.triggerCallback&&t.triggerCallback(n)}}function cf(e){return e&&1===e.nodeType}function v1(e,n){const t=e.style.display;return e.style.display=n??"none",t}function C1(e,n,t,r,i){const s=[];t.forEach(c=>s.push(v1(c)));const o=[];r.forEach((c,l)=>{const u=new Map;c.forEach(d=>{const f=n.computeStyle(l,d,i);u.set(d,f),(!f||0==f.length)&&(l[gr]=TW,o.push(l))}),e.set(l,u)});let a=0;return t.forEach(c=>v1(c,s[a++])),o}function b1(e,n){const t=new Map;if(e.forEach(a=>t.set(a,[])),0==n.length)return t;const i=new Set(n),s=new Map;function o(a){if(!a)return 1;let c=s.get(a);if(c)return c;const l=a.parentNode;return c=t.has(l)?l:i.has(l)?1:o(l),s.set(a,c),c}return n.forEach(a=>{const c=o(a);1!==c&&t.get(c).push(a)}),t}function zn(e,n){e.classList?.add(n)}function Ho(e,n){e.classList?.remove(n)}function kW(e,n,t){Si(t).onDone(()=>e.processLeaveNode(n))}function E1(e,n){for(let t=0;t<e.length;t++){const r=e[t];r instanceof VM?E1(r.players,n):n.push(r)}}function w1(e,n,t){const r=t.get(e);if(!r)return!1;let i=n.get(e);return i?r.forEach(s=>i.add(s)):n.set(e,r),t.delete(e),!0}class Pc{constructor(n,t,r){this._driver=t,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(i,s)=>{},this._transitionEngine=new IW(n.body,t,r),this._timelineEngine=new CW(n.body,t,r),this._transitionEngine.onRemovalComplete=(i,s)=>this.onRemovalComplete(i,s)}registerTrigger(n,t,r,i,s){const o=n+"-"+i;let a=this._triggerCache[o];if(!a){const c=[],u=e_(this._driver,s,c,[]);if(c.length)throw function wq(){return new E(3404,!1)}();a=function gW(e,n,t){return new yW(e,n,t)}(i,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,i,a)}register(n,t){this._transitionEngine.register(n,t)}destroy(n,t){this._transitionEngine.destroy(n,t)}onInsert(n,t,r,i){this._transitionEngine.insertNode(n,t,r,i)}onRemove(n,t,r){this._transitionEngine.removeNode(n,t,r)}disableAnimations(n,t){this._transitionEngine.markElementAsDisabled(n,t)}process(n,t,r,i){if("@"==r.charAt(0)){const[s,o]=e1(r);this._timelineEngine.command(s,t,o,i)}else this._transitionEngine.trigger(n,t,r,i)}listen(n,t,r,i,s){if("@"==r.charAt(0)){const[o,a]=e1(r);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(n,t,r,i,s)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}}class Oc{static#e=this.initialStylesByElement=new WeakMap;constructor(n,t,r){this._element=n,this._startStyles=t,this._endStyles=r,this._state=0;let i=Oc.initialStylesByElement.get(n);i||Oc.initialStylesByElement.set(n,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&Or(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Or(this._element,this._initialStyles),this._endStyles&&(Or(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Oc.initialStylesByElement.delete(this._element),this._startStyles&&(fs(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(fs(this._element,this._endStyles),this._endStyles=null),Or(this._element,this._initialStyles),this._state=3)}}function u_(e){let n=null;return e.forEach((t,r)=>{(function FW(e){return"display"===e||"position"===e})(r)&&(n=n||new Map,n.set(r,t))}),n}class D1{constructor(n,t,r,i){this.element=n,this.keyframes=t,this.options=r,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;const t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const t=[];return n.forEach(r=>{t.push(Object.fromEntries(r))}),t}_triggerWebAnimation(n,t,r){return n.animate(this._convertKeyframesToObject(t),r)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,i)=>{"offset"!==i&&n.set(i,this._finished?r:Jy(this.element,i))}),this.currentSnapshot=n}triggerCallback(n){const t="start"===n?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class S1{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}containsElement(n,t){return n1(n,t)}getParentElement(n){return Gy(n)}query(n,t,r){return r1(n,t,r)}computeStyle(n,t,r){return Jy(n,t)}animate(n,t,r,i,s,o=[]){const c={duration:r,delay:i,fill:0==i?"both":"forwards"};s&&(c.easing=s);const l=new Map,u=o.filter(h=>h instanceof D1);(function Wq(e,n){return 0===e||0===n})(r,i)&&u.forEach(h=>{h.currentSnapshot.forEach((p,m)=>l.set(m,p))});let d=function Gq(e){return e.length?e[0]instanceof Map?e:e.map(n=>new Map(Object.entries(n))):[]}(t).map(h=>new Map(h));d=function Zq(e,n,t){if(t.size&&n.length){let r=n[0],i=[];if(t.forEach((s,o)=>{r.has(o)||i.push(o),r.set(o,s)}),i.length)for(let s=1;s<n.length;s++){let o=n[s];i.forEach(a=>o.set(a,Jy(e,a)))}}return n}(n,d,l);const f=function RW(e,n){let t=null,r=null;return Array.isArray(n)&&n.length?(t=u_(n[0]),n.length>1&&(r=u_(n[n.length-1]))):n instanceof Map&&(t=u_(n)),t||r?new Oc(e,t,r):null}(n,d);return new D1(n,d,c,f)}}const T1="@.disabled";class M1{constructor(n,t,r,i){this.namespaceId=n,this.delegate=t,this.engine=r,this._onDestroy=i,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,t){return this.delegate.createElement(n,t)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,t){this.delegate.appendChild(n,t),this.engine.onInsert(this.namespaceId,t,n,!1)}insertBefore(n,t,r,i=!0){this.delegate.insertBefore(n,t,r),this.engine.onInsert(this.namespaceId,t,n,i)}removeChild(n,t,r){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(n,t){return this.delegate.selectRootElement(n,t)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,t,r,i){this.delegate.setAttribute(n,t,r,i)}removeAttribute(n,t,r){this.delegate.removeAttribute(n,t,r)}addClass(n,t){this.delegate.addClass(n,t)}removeClass(n,t){this.delegate.removeClass(n,t)}setStyle(n,t,r,i){this.delegate.setStyle(n,t,r,i)}removeStyle(n,t,r){this.delegate.removeStyle(n,t,r)}setProperty(n,t,r){"@"==t.charAt(0)&&t==T1?this.disableAnimations(n,!!r):this.delegate.setProperty(n,t,r)}setValue(n,t){this.delegate.setValue(n,t)}listen(n,t,r){return this.delegate.listen(n,t,r)}disableAnimations(n,t){this.engine.disableAnimations(n,t)}}class LW extends M1{constructor(n,t,r,i,s){super(t,r,i,s),this.factory=n,this.namespaceId=t}setProperty(n,t,r){"@"==t.charAt(0)?"."==t.charAt(1)&&t==T1?this.disableAnimations(n,r=void 0===r||!!r):this.engine.process(this.namespaceId,n,t.slice(1),r):this.delegate.setProperty(n,t,r)}listen(n,t,r){if("@"==t.charAt(0)){const i=function VW(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(n);let s=t.slice(1),o="";return"@"!=s.charAt(0)&&([s,o]=function BW(e){const n=e.indexOf(".");return[e.substring(0,n),e.slice(n+1)]}(s)),this.engine.listen(this.namespaceId,i,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,r,a)})}return this.delegate.listen(n,t,r)}}class jW{constructor(n,t,r){this.delegate=n,this.engine=t,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(i,s)=>{s?.removeChild(null,i)}}createRenderer(n,t){const i=this.delegate.createRenderer(n,t);if(!n||!t?.data?.animation){const l=this._rendererCache;let u=l.get(i);return u||(u=new M1("",i,this.engine,()=>l.delete(i)),l.set(i,u)),u}const s=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,n);const a=l=>{Array.isArray(l)?l.forEach(a):this.engine.registerTrigger(s,o,n,l.name,l)};return t.data.animation.forEach(a),new LW(this,o,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,t,r){if(n>=0&&n<this._microtaskId)return void this._zone.run(()=>t(r));const i=this._animationCallbacksBuffer;0==i.length&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(s=>{const[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),i.push([t,r])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}const I1=[{provide:Wy,useFactory:function UW(){return new c1}},{provide:Pc,useClass:(()=>{class e extends Pc{constructor(t,r,i){super(t,r,i)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(r){return new(r||e)(k(Vt),k(qy),k(Wy))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})()},{provide:ru,useFactory:function $W(e,n,t){return new jW(e,n,t)},deps:[Fg,Pc,pe]}],d_=[{provide:qy,useFactory:()=>new S1},{provide:KC,useValue:"BrowserAnimations"},...I1],A1=[{provide:qy,useClass:zy},{provide:KC,useValue:"NoopAnimations"},...I1];let x1=(()=>{class e{static withConfig(t){return{ngModule:e,providers:t.disableAnimations?A1:d_}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=dt({providers:d_,imports:[od]})}return e})();const N1={merchantCapabilities:["supports3DS"],supportedNetworks:["visa","masterCard","amex","discover"]},GW=_f(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}),k1=new N("APPLE_PAY_SESSION_TOKEN",{factory:()=>A(Vt).defaultView.ApplePaySession});let P1=(()=>{class e{constructor(t){this.applePaySession=t}canMakePayments(){return ApplePaySession.canMakePayments()}createPaySession(t,r,i){return new nt(s=>{const o=a=>{s.error(a),console.error(a)};try{const a=new this.applePaySession(t,r),c=(l,u)=>{a.abort(),o({event:l,error:u})};a.onvalidatemerchant=function(){var l=is(function*(u){try{const d=yield function zW(e,n){const t="object"==typeof n;return new Promise((r,i)=>{let o,s=!1;e.subscribe({next:a=>{o=a,s=!0},error:i,complete:()=>{s?r(o):t?r(n.defaultValue):i(new GW)}})})}(i(u));a.completeMerchantValidation(d)}catch(d){c(u,d)}});return function(u){return l.apply(this,arguments)}}(),a.onpaymentmethodselected=l=>{const u={newTotal:{...r.total}};a.completePaymentMethodSelection(u)},a.onshippingmethodselected=l=>{a.completeShippingMethodSelection({})},a.onshippingcontactselected=l=>{a.completeShippingContactSelection({})},a.onpaymentauthorized=l=>{a.completePayment({status:ApplePaySession.STATUS_SUCCESS}),s.next(l),s.complete()},a.oncancel=l=>{o(l)},a.begin()}catch(a){o(a)}})}static#e=this.\u0275fac=function(r){return new(r||e)(k(k1))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),O1=(()=>{class e{constructor(t,r){this.nativeService=t,this.http=r}canMakePayment(){return An(this.nativeService.canMakePayments())}pay(t){const{version:r=10}=t;return this.nativeService.createPaySession(r,this.mapData(t),s=>this.validate(s,t))}validate(t,r){const{validationURL:i}=t,{merchantId:s,processingUrl:o,userToken:a}=r;return this.http.post(o,{validationUrl:i},{params:{merchantId:s},headers:a?{Authorization:a}:void 0})}mapData(t){const{total:r,countryCode:i,supportedNetworks:s=N1.supportedNetworks,merchantCapabilities:o=N1.merchantCapabilities}=t;return{countryCode:i,currencyCode:r.currency,supportedNetworks:s,merchantCapabilities:o,total:{amount:r.amount,label:r.label}}}static#e=this.\u0275fac=function(r){return new(r||e)(k(P1),k(Dd))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();const qW=new N("APPLE_PAY_SESSION_SUPPORT_TOKEN",{factory:()=>!!A(k1)});let R1=(()=>{class e{constructor(t,r){this.doc=t,this.platformId=r,this.loadPromises=new Map}load(t){if(!function lU(e){return e===pT}(this.platformId))return Promise.resolve();if(this.loadPromises.has(t))return this.loadPromises.get(t);const r=new Promise((i,s)=>{const o=this.doc.querySelector(`script[src="${t}"]`);if(o)return o.addEventListener("load",()=>i(),{once:!0}),void o.addEventListener("error",()=>s(new Error(`Script ${t} failed to load`)),{once:!0});const a=this.doc.createElement("script");a.src=t,a.async=!0,a.onload=()=>i(),a.onerror=()=>s(new Error(`Script ${t} failed to load`)),this.doc.head.appendChild(a)});return this.loadPromises.set(t,r),r}static#e=this.\u0275fac=function(r){return new(r||e)(k(Vt),k($r))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const WW={canMakePayment:()=>An(!1),pay(e){throw new Error("not implemented")}};function ZW(e){return()=>{try{return e.load("https://applepay.cdn-apple.com/jsapi/v1.3.2/apple-pay-sdk.js").catch(n=>{console.warn("Apple Pay preload failed (network or CDN issue):",n)})}catch(n){return void console.warn("Apple Pay preload threw synchronously:",n)}}}let F1=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=dt({providers:[P1,O1,{provide:Zm,deps:[R1],useFactory:ZW,multi:!0},{provide:CI,deps:[qW,O1],useFactory:(t,r)=>t?r:WW}]})}return e})();function YW(e){return()=>{try{return console.log("Loading Google Pay script..."),e.load("https://pay.google.com/gp/p/js/pay.js").catch(n=>{console.warn("Google Pay preload failed (network or CDN issue):",n)})}catch(n){return void console.warn("Google Pay preload threw synchronously:",n)}}}let L1=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=dt({providers:[bI,{provide:Zm,deps:[R1],useFactory:YW,multi:!0}]})}return e})(),V1=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=dt({providers:[TI],imports:[PA.forRoot(),QA,IA,MA,Mg,od,x1,F1,L1,PA,QA,IA,MA,Mg,od,x1,F1,L1]})}return e})(),KW=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=dt({providers:[xe,us,gy,py,my,Yd,Zd],imports:[V1]})}return e})(),QW=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=dt({providers:[fy,Ro]})}return e})(),XW=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=dt({providers:[WA]})}return e})();function JW(e,n){let t=e;const r=A(xe),i=A(vc),s=r.data.settings().language,o=!!e.headers.get(xo_customHeaders_skipToastr);return o&&(t=e.clone({headers:e.headers.delete(xo_customHeaders_skipToastr)})),n(t).pipe(ko(a=>(o||i.error(s.notifications.error.default.text,s.notifications.error.default.title),r.events.error.emit(a),uy(()=>a))))}function e7(e,n){let t=e;const r=A(xe);if(!e.headers.get("Authorization")){const s=r.data.payment()?.userAuthToken;s&&(t=e.clone({headers:e.headers.append("Authorization",s)}))}return n(t)}let t7=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=dt({providers:[p6(m6([JW,e7]))],imports:[X6.forRoot(),KW,V1,QW,XW]})}return e})(),n7=(()=>{class e{constructor(t){this.injector=t}ngDoBootstrap(t){const{injector:r}=this,i=function c4(e,n){const t=function t4(e,n){return n.get(Yi).resolveComponentFactory(e).inputs}(e,n.injector),r=n.strategyFactory||new s4(e,n.injector),i=function e4(e){const n={};return e.forEach(({propName:t,templateName:r,transform:i})=>{n[function Y$(e){return e.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}(r)]=[t,i]}),n}(t);class s extends a4{static#e=this.observedAttributes=Object.keys(i);get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=r.create(this.injector||n.injector);t.forEach(({propName:c,transform:l})=>{if(!this.hasOwnProperty(c))return;const u=this[c];delete this[c],a.setInputValue(c,u,l)})}return this._ngElementStrategy}constructor(a){super(),this.injector=a}attributeChangedCallback(a,c,l,u){const[d,f]=i[a];this.ngElementStrategy.setInputValue(d,l,f)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const c=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(c)})}}return t.forEach(({propName:o,transform:a})=>{Object.defineProperty(s.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(c){this.ngElementStrategy.setInputValue(o,c,a)},configurable:!0,enumerable:!0})}),s}(tq,{injector:r});customElements.define("moto-payment-form",i)}static#e=this.\u0275fac=function(r){return new(r||e)(k(Ne))};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=dt({imports:[od,t7]})}return e})();s$().bootstrapModule(n7).catch(e=>console.log(e))},634:function(On,He,ct){var tt=this&&this.__assign||function(){return tt=Object.assign||function(de){for(var Fe,lt=1,Rn=arguments.length;lt<Rn;lt++)for(var Fr in Fe=arguments[lt])Object.prototype.hasOwnProperty.call(Fe,Fr)&&(de[Fr]=Fe[Fr]);return de},tt.apply(this,arguments)},ye=ct(990),Ge=ct(402),Ee=ct(987),Qe=ct(250),q=ct(507),It={},Ye={VISA:"visa",MASTERCARD:"mastercard",AMERICAN_EXPRESS:"american-express",DINERS_CLUB:"diners-club",DISCOVER:"discover",JCB:"jcb",UNIONPAY:"unionpay",MAESTRO:"maestro",ELO:"elo",MIR:"mir",HIPER:"hiper",HIPERCARD:"hipercard"},ti=[Ye.VISA,Ye.MASTERCARD,Ye.AMERICAN_EXPRESS,Ye.DINERS_CLUB,Ye.DISCOVER,Ye.JCB,Ye.UNIONPAY,Ye.MAESTRO,Ye.ELO,Ye.MIR,Ye.HIPER,Ye.HIPERCARD],xt=(0,q.clone)(ti);function ni(de){return It[de]||ye[de]}function gs(de,Fe){void 0===Fe&&(Fe=!1);var lt=xt.indexOf(de);if(!Fe&&-1===lt)throw new Error('"'+de+'" is not a supported card type.');return lt}function Yn(de){var Fe=[];if(!(0,Ee.isValidInputType)(de))return Fe;if(0===de.length)return function ff(){return xt.map(function(de){return(0,q.clone)(ni(de))})}();xt.forEach(function(Rn){var Fr=ni(Rn);(0,Ge.addMatchingCardsToResults)(de,Fr,Fe)});var lt=(0,Qe.findBestMatch)(Fe);return lt?[lt]:Fe}Yn.getTypeInfo=function(de){return(0,q.clone)(ni(de))},Yn.removeCard=function(de){var Fe=gs(de);xt.splice(Fe,1)},Yn.addCard=function(de){var Fe=gs(de.type,!0);It[de.type]=de,-1===Fe&&xt.push(de.type)},Yn.updateCard=function(de,Fe){var lt=It[de]||ye[de];if(!lt)throw new Error('"'.concat(de,"\" is not a recognized type. Use `addCard` instead.'"));if(Fe.type&<.type!==Fe.type)throw new Error("Cannot overwrite type parameter.");var Rn=(0,q.clone)(lt);Rn=tt(tt({},Rn),Fe),It[Rn.type]=Rn},Yn.changeOrder=function(de,Fe){var lt=gs(de);xt.splice(lt,1),xt.splice(Fe,0,de)},Yn.resetModifications=function(){xt=(0,q.clone)(ti),It={}},Yn.types=Ye,On.exports=Yn},402:(On,He,ct)=>{Object.defineProperty(He,"__esModule",{value:!0}),He.addMatchingCardsToResults=void 0;var tt=ct(507),ye=ct(595);He.addMatchingCardsToResults=function Ge(Ee,Qe,q){var It,Ye;for(It=0;It<Qe.patterns.length;It++){var ti=Qe.patterns[It];if((0,ye.matches)(Ee,ti)){var xt=(0,tt.clone)(Qe);Ye=Array.isArray(ti)?String(ti[0]).length:String(ti).length,Ee.length>=Ye&&(xt.matchStrength=Ye),q.push(xt);break}}}},990:On=>{On.exports={visa:{niceType:"Visa",type:"visa",patterns:[4],gaps:[4,8,12],lengths:[16,18,19],code:{name:"CVV",size:3}},mastercard:{niceType:"Mastercard",type:"mastercard",patterns:[[51,55],[2221,2229],[223,229],[23,26],[270,271],2720],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},"american-express":{niceType:"American Express",type:"american-express",patterns:[34,37],gaps:[4,10],lengths:[15],code:{name:"CID",size:4}},"diners-club":{niceType:"Diners Club",type:"diners-club",patterns:[[300,305],36,38,39],gaps:[4,10],lengths:[14,16,19],code:{name:"CVV",size:3}},discover:{niceType:"Discover",type:"discover",patterns:[6011,[644,649],65],gaps:[4,8,12],lengths:[16,19],code:{name:"CID",size:3}},jcb:{niceType:"JCB",type:"jcb",patterns:[2131,1800,[3528,3589]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVV",size:3}},unionpay:{niceType:"UnionPay",type:"unionpay",patterns:[620,[62100,62182],[62184,62187],[62185,62197],[62200,62205],[622010,622999],622018,[62207,62209],[623,626],6270,6272,6276,[627700,627779],[627781,627799],[6282,6289],6291,6292,810,[8110,8131],[8132,8151],[8152,8163],[8164,8171]],gaps:[4,8,12],lengths:[14,15,16,17,18,19],code:{name:"CVN",size:3}},maestro:{niceType:"Maestro",type:"maestro",patterns:[493698,[5e5,504174],[504176,506698],[506779,508999],[56,59],63,67,6],gaps:[4,8,12],lengths:[12,13,14,15,16,17,18,19],code:{name:"CVC",size:3}},elo:{niceType:"Elo",type:"elo",patterns:[401178,401179,438935,457631,457632,431274,451416,457393,504175,[506699,506778],[509e3,509999],627780,636297,636368,[650031,650033],[650035,650051],[650405,650439],[650485,650538],[650541,650598],[650700,650718],[650720,650727],[650901,650978],[651652,651679],[655e3,655019],[655021,655058]],gaps:[4,8,12],lengths:[16],code:{name:"CVE",size:3}},mir:{niceType:"Mir",type:"mir",patterns:[[2200,2204]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVP2",size:3}},hiper:{niceType:"Hiper",type:"hiper",patterns:[637095,63737423,63743358,637568,637599,637609,637612],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},hipercard:{niceType:"Hipercard",type:"hipercard",patterns:[606282],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}}}},507:(On,He)=>{Object.defineProperty(He,"__esModule",{value:!0}),He.clone=void 0,He.clone=function ct(tt){return tt?JSON.parse(JSON.stringify(tt)):null}},250:(On,He)=>{Object.defineProperty(He,"__esModule",{value:!0}),He.findBestMatch=void 0,He.findBestMatch=function tt(ye){return function ct(ye){var Ge=ye.filter(function(Ee){return Ee.matchStrength}).length;return Ge>0&&Ge===ye.length}(ye)?ye.reduce(function(Ge,Ee){return!Ge||Number(Ge.matchStrength)<Number(Ee.matchStrength)?Ee:Ge}):null}},987:(On,He)=>{Object.defineProperty(He,"__esModule",{value:!0}),He.isValidInputType=void 0,He.isValidInputType=function ct(tt){return"string"==typeof tt||tt instanceof String}},595:(On,He)=>{Object.defineProperty(He,"__esModule",{value:!0}),He.matches=void 0,He.matches=function ye(Ge,Ee){return Array.isArray(Ee)?function ct(Ge,Ee,Qe){var q=String(Ee).length,It=Ge.substr(0,q),Ye=parseInt(It,10);return Ee=parseInt(String(Ee).substr(0,It.length),10),Qe=parseInt(String(Qe).substr(0,It.length),10),Ye>=Ee&&Ye<=Qe}(Ge,Ee[0],Ee[1]):function tt(Ge,Ee){return(Ee=String(Ee)).substring(0,Ge.length)===Ge.substring(0,Ee.length)}(Ge,Ee)}}},On=>{On(On.s=421)}]);
|