@motopays/pay-form 1.0.10-rc.4 → 1.0.11-rc.0

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/lib/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  (()=>{"use strict";var e,_={},p={};function n(e){var a=p[e];if(void 0!==a)return a.exports;var r=p[e]={exports:{}};return _[e].call(r.exports,r,r.exports,n),r.exports}n.m=_,e=[],n.O=(a,r,o,f)=>{if(!r){var u=1/0;for(t=0;t<e.length;t++){for(var[r,o,f]=e[t],s=!0,l=0;l<r.length;l++)(!1&f||u>=f)&&Object.keys(n.O).every(h=>n.O[h](r[l]))?r.splice(l--,1):(s=!1,f<u&&(u=f));if(s){e.splice(t--,1);var c=o();void 0!==c&&(a=c)}}return a}f=f||0;for(var t=e.length;t>0&&e[t-1][2]>f;t--)e[t]=e[t-1];e[t]=[r,o,f]},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={666:0};n.O.j=o=>0===e[o];var a=(o,f)=>{var l,c,[t,u,s]=f,v=0;if(t.some(d=>0!==e[d])){for(l in u)n.o(u,l)&&(n.m[l]=u[l]);if(s)var b=s(n)}for(o&&o(f);v<t.length;v++)n.o(e,c=t[v])&&e[c]&&e[c][0](),e[c]=0;return n.O(b)},r=self.webpackChunkweb_component=self.webpackChunkweb_component||[];r.forEach(a.bind(null,0)),r.push=a.bind(null,r.push.bind(r))})()})();
2
2
  "use strict";(self.webpackChunkweb_component=self.webpackChunkweb_component||[]).push([[429],{512:(ie,Ee,de)=>{de(583)},583:()=>{!function(e){const n=e.performance;function i(M){n&&n.mark&&n.mark(M)}function o(M,E){n&&n.measure&&n.measure(M,E)}i("Zone");const c=e.__Zone_symbol_prefix||"__zone_symbol__";function a(M){return c+M}const y=!0===e[a("forceDuplicateZoneCheck")];if(e.Zone){if(y||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}let d=(()=>{class M{constructor(t,r){this._parent=t,this._name=r?r.name||"unnamed":"<root>",this._properties=r&&r.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,r)}static assertZonePatched(){if(e.Promise!==oe.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 t=M.current;for(;t.parent;)t=t.parent;return t}static get current(){return U.zone}static get currentTask(){return re}static __load_patch(t,r,k=!1){if(oe.hasOwnProperty(t)){if(!k&&y)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const C="Zone:"+t;i(C),oe[t]=r(e,M,z),o(C,C)}}get parent(){return this._parent}get name(){return this._name}get(t){const r=this.getZoneWith(t);if(r)return r._properties[t]}getZoneWith(t){let r=this;for(;r;){if(r._properties.hasOwnProperty(t))return r;r=r._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,r){if("function"!=typeof t)throw new Error("Expecting function got: "+t);const k=this._zoneDelegate.intercept(this,t,r),C=this;return function(){return C.runGuarded(k,this,arguments,r)}}run(t,r,k,C){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,t,r,k,C)}finally{U=U.parent}}runGuarded(t,r=null,k,C){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,t,r,k,C)}catch($){if(this._zoneDelegate.handleError(this,$))throw $}}finally{U=U.parent}}runTask(t,r,k){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||K).name+"; Execution: "+this.name+")");if(t.state===x&&(t.type===Q||t.type===w))return;const C=t.state!=p;C&&t._transitionTo(p,j),t.runCount++;const $=re;re=t,U={parent:U,zone:this};try{t.type==w&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,r,k)}catch(l){if(this._zoneDelegate.handleError(this,l))throw l}}finally{t.state!==x&&t.state!==h&&(t.type==Q||t.data&&t.data.isPeriodic?C&&t._transitionTo(j,p):(t.runCount=0,this._updateTaskCount(t,-1),C&&t._transitionTo(x,p,x))),U=U.parent,re=$}}scheduleTask(t){if(t.zone&&t.zone!==this){let k=this;for(;k;){if(k===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);k=k.parent}}t._transitionTo(X,x);const r=[];t._zoneDelegates=r,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(k){throw t._transitionTo(h,X,x),this._zoneDelegate.handleError(this,k),k}return t._zoneDelegates===r&&this._updateTaskCount(t,1),t.state==X&&t._transitionTo(j,X),t}scheduleMicroTask(t,r,k,C){return this.scheduleTask(new m(I,t,r,k,C,void 0))}scheduleMacroTask(t,r,k,C,$){return this.scheduleTask(new m(w,t,r,k,C,$))}scheduleEventTask(t,r,k,C,$){return this.scheduleTask(new m(Q,t,r,k,C,$))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||K).name+"; Execution: "+this.name+")");t._transitionTo(G,j,p);try{this._zoneDelegate.cancelTask(this,t)}catch(r){throw t._transitionTo(h,G),this._zoneDelegate.handleError(this,r),r}return this._updateTaskCount(t,-1),t._transitionTo(x,G),t.runCount=0,t}_updateTaskCount(t,r){const k=t._zoneDelegates;-1==r&&(t._zoneDelegates=null);for(let C=0;C<k.length;C++)k[C]._updateTaskCount(t.type,r)}}return M.__symbol__=a,M})();const P={name:"",onHasTask:(M,E,t,r)=>M.hasTask(t,r),onScheduleTask:(M,E,t,r)=>M.scheduleTask(t,r),onInvokeTask:(M,E,t,r,k,C)=>M.invokeTask(t,r,k,C),onCancelTask:(M,E,t,r)=>M.cancelTask(t,r)};class v{constructor(E,t,r){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=E,this._parentDelegate=t,this._forkZS=r&&(r&&r.onFork?r:t._forkZS),this._forkDlgt=r&&(r.onFork?t:t._forkDlgt),this._forkCurrZone=r&&(r.onFork?this.zone:t._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:t._interceptZS),this._interceptDlgt=r&&(r.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:t._invokeZS),this._invokeDlgt=r&&(r.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:t._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:t._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:t._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:t._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const k=r&&r.onHasTask;(k||t&&t._hasTaskZS)&&(this._hasTaskZS=k?r:P,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=E,r.onScheduleTask||(this._scheduleTaskZS=P,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),r.onInvokeTask||(this._invokeTaskZS=P,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),r.onCancelTask||(this._cancelTaskZS=P,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(E,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,E,t):new d(E,t)}intercept(E,t,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,E,t,r):t}invoke(E,t,r,k,C){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,E,t,r,k,C):t.apply(r,k)}handleError(E,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,E,t)}scheduleTask(E,t){let r=t;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,E,t),r||(r=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=I)throw new Error("Task is missing scheduleFn.");R(t)}return r}invokeTask(E,t,r,k){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,E,t,r,k):t.callback.apply(r,k)}cancelTask(E,t){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,E,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");r=t.cancelFn(t)}return r}hasTask(E,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,E,t)}catch(r){this.handleError(E,r)}}_updateTaskCount(E,t){const r=this._taskCounts,k=r[E],C=r[E]=k+t;if(C<0)throw new Error("More tasks executed then were scheduled.");0!=k&&0!=C||this.hasTask(this.zone,{microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:E})}}class m{constructor(E,t,r,k,C,$){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=E,this.source=t,this.data=k,this.scheduleFn=C,this.cancelFn=$,!r)throw new Error("callback is not defined");this.callback=r;const l=this;this.invoke=E===Q&&k&&k.useG?m.invokeTask:function(){return m.invokeTask.call(e,l,this,arguments)}}static invokeTask(E,t,r){E||(E=this),ee++;try{return E.runCount++,E.zone.runTask(E,t,r)}finally{1==ee&&_(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(x,X)}_transitionTo(E,t,r){if(this._state!==t&&this._state!==r)throw new Error(`${this.type} '${this.source}': can not transition to '${E}', expecting state '${t}'${r?" or '"+r+"'":""}, was '${this._state}'.`);this._state=E,E==x&&(this._zoneDelegates=null)}toString(){return this.data&&void 0!==this.data.handleId?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 L=a("setTimeout"),Z=a("Promise"),N=a("then");let J,B=[],H=!1;function q(M){if(J||e[Z]&&(J=e[Z].resolve(0)),J){let E=J[N];E||(E=J.then),E.call(J,M)}else e[L](M,0)}function R(M){0===ee&&0===B.length&&q(_),M&&B.push(M)}function _(){if(!H){for(H=!0;B.length;){const M=B;B=[];for(let E=0;E<M.length;E++){const t=M[E];try{t.zone.runTask(t,null,null)}catch(r){z.onUnhandledError(r)}}}z.microtaskDrainDone(),H=!1}}const K={name:"NO ZONE"},x="notScheduled",X="scheduling",j="scheduled",p="running",G="canceling",h="unknown",I="microTask",w="macroTask",Q="eventTask",oe={},z={symbol:a,currentZoneFrame:()=>U,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!d[a("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:q};let U={parent:null,zone:new d(null,null)},re=null,ee=0;function W(){}o("Zone","Zone"),e.Zone=d}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global);const ie=Object.getOwnPropertyDescriptor,Ee=Object.defineProperty,de=Object.getPrototypeOf,ge=Object.create,Ve=Array.prototype.slice,Oe="addEventListener",Se="removeEventListener",Ze=Zone.__symbol__(Oe),Ne=Zone.__symbol__(Se),ce="true",ae="false",ke=Zone.__symbol__("");function Ie(e,n){return Zone.current.wrap(e,n)}function Me(e,n,i,o,c){return Zone.current.scheduleMacroTask(e,n,i,o,c)}const A=Zone.__symbol__,Pe="undefined"!=typeof window,Te=Pe?window:void 0,Y=Pe&&Te||"object"==typeof self&&self||global;function Le(e,n){for(let i=e.length-1;i>=0;i--)"function"==typeof e[i]&&(e[i]=Ie(e[i],n+"_"+i));return e}function Fe(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}const Be="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,we=!("nw"in Y)&&void 0!==Y.process&&"[object process]"==={}.toString.call(Y.process),je=!we&&!Be&&!(!Pe||!Te.HTMLElement),Ue=void 0!==Y.process&&"[object process]"==={}.toString.call(Y.process)&&!Be&&!(!Pe||!Te.HTMLElement),Re={},We=function(e){if(!(e=e||Y.event))return;let n=Re[e.type];n||(n=Re[e.type]=A("ON_PROPERTY"+e.type));const i=this||e.target||Y,o=i[n];let c;if(je&&i===Te&&"error"===e.type){const a=e;c=o&&o.call(this,a.message,a.filename,a.lineno,a.colno,a.error),!0===c&&e.preventDefault()}else c=o&&o.apply(this,arguments),null!=c&&!c&&e.preventDefault();return c};function qe(e,n,i){let o=ie(e,n);if(!o&&i&&ie(i,n)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const c=A("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete o.writable,delete o.value;const a=o.get,y=o.set,d=n.slice(2);let P=Re[d];P||(P=Re[d]=A("ON_PROPERTY"+d)),o.set=function(v){let m=this;!m&&e===Y&&(m=Y),m&&("function"==typeof m[P]&&m.removeEventListener(d,We),y&&y.call(m,null),m[P]=v,"function"==typeof v&&m.addEventListener(d,We,!1))},o.get=function(){let v=this;if(!v&&e===Y&&(v=Y),!v)return null;const m=v[P];if(m)return m;if(a){let L=a.call(this);if(L)return o.set.call(this,L),"function"==typeof v.removeAttribute&&v.removeAttribute(n),L}return null},Ee(e,n,o),e[c]=!0}function Xe(e,n,i){if(n)for(let o=0;o<n.length;o++)qe(e,"on"+n[o],i);else{const o=[];for(const c in e)"on"==c.slice(0,2)&&o.push(c);for(let c=0;c<o.length;c++)qe(e,o[c],i)}}const ne=A("originalInstance");function ve(e){const n=Y[e];if(!n)return;Y[A(e)]=n,Y[e]=function(){const c=Le(arguments,e);switch(c.length){case 0:this[ne]=new n;break;case 1:this[ne]=new n(c[0]);break;case 2:this[ne]=new n(c[0],c[1]);break;case 3:this[ne]=new n(c[0],c[1],c[2]);break;case 4:this[ne]=new n(c[0],c[1],c[2],c[3]);break;default:throw new Error("Arg list too long.")}},ue(Y[e],n);const i=new n(function(){});let o;for(o in i)"XMLHttpRequest"===e&&"responseBlob"===o||function(c){"function"==typeof i[c]?Y[e].prototype[c]=function(){return this[ne][c].apply(this[ne],arguments)}:Ee(Y[e].prototype,c,{set:function(a){"function"==typeof a?(this[ne][c]=Ie(a,e+"."+c),ue(this[ne][c],a)):this[ne][c]=a},get:function(){return this[ne][c]}})}(o);for(o in n)"prototype"!==o&&n.hasOwnProperty(o)&&(Y[e][o]=n[o])}function le(e,n,i){let o=e;for(;o&&!o.hasOwnProperty(n);)o=de(o);!o&&e[n]&&(o=e);const c=A(n);let a=null;if(o&&(!(a=o[c])||!o.hasOwnProperty(c))&&(a=o[c]=o[n],Fe(o&&ie(o,n)))){const d=i(a,c,n);o[n]=function(){return d(this,arguments)},ue(o[n],a)}return a}function lt(e,n,i){let o=null;function c(a){const y=a.data;return y.args[y.cbIdx]=function(){a.invoke.apply(this,arguments)},o.apply(y.target,y.args),a}o=le(e,n,a=>function(y,d){const P=i(y,d);return P.cbIdx>=0&&"function"==typeof d[P.cbIdx]?Me(P.name,d[P.cbIdx],P,c):a.apply(y,d)})}function ue(e,n){e[A("OriginalDelegate")]=n}let ze=!1,Ae=!1;function ft(){if(ze)return Ae;ze=!0;try{const e=Te.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Ae=!0)}catch(e){}return Ae}Zone.__load_patch("ZoneAwarePromise",(e,n,i)=>{const o=Object.getOwnPropertyDescriptor,c=Object.defineProperty,y=i.symbol,d=[],P=!0===e[y("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=y("Promise"),m=y("then");i.onUnhandledError=l=>{if(i.showUncaughtError()){const u=l&&l.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",l.zone.name,"; Task:",l.task&&l.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(l)}},i.microtaskDrainDone=()=>{for(;d.length;){const l=d.shift();try{l.zone.runGuarded(()=>{throw l.throwOriginal?l.rejection:l})}catch(u){N(u)}}};const Z=y("unhandledPromiseRejectionHandler");function N(l){i.onUnhandledError(l);try{const u=n[Z];"function"==typeof u&&u.call(this,l)}catch(u){}}function B(l){return l&&l.then}function H(l){return l}function J(l){return t.reject(l)}const q=y("state"),R=y("value"),_=y("finally"),K=y("parentPromiseValue"),x=y("parentPromiseState"),j=null,p=!0,G=!1;function I(l,u){return s=>{try{z(l,u,s)}catch(f){z(l,!1,f)}}}const w=function(){let l=!1;return function(s){return function(){l||(l=!0,s.apply(null,arguments))}}},oe=y("currentTaskTrace");function z(l,u,s){const f=w();if(l===s)throw new TypeError("Promise resolved with itself");if(l[q]===j){let g=null;try{("object"==typeof s||"function"==typeof s)&&(g=s&&s.then)}catch(b){return f(()=>{z(l,!1,b)})(),l}if(u!==G&&s instanceof t&&s.hasOwnProperty(q)&&s.hasOwnProperty(R)&&s[q]!==j)re(s),z(l,s[q],s[R]);else if(u!==G&&"function"==typeof g)try{g.call(s,f(I(l,u)),f(I(l,!1)))}catch(b){f(()=>{z(l,!1,b)})()}else{l[q]=u;const b=l[R];if(l[R]=s,l[_]===_&&u===p&&(l[q]=l[x],l[R]=l[K]),u===G&&s instanceof Error){const T=n.currentTask&&n.currentTask.data&&n.currentTask.data.__creationTrace__;T&&c(s,oe,{configurable:!0,enumerable:!1,writable:!0,value:T})}for(let T=0;T<b.length;)ee(l,b[T++],b[T++],b[T++],b[T++]);if(0==b.length&&u==G){l[q]=0;let T=s;try{throw new Error("Uncaught (in promise): "+function a(l){return l&&l.toString===Object.prototype.toString?(l.constructor&&l.constructor.name||"")+": "+JSON.stringify(l):l?l.toString():Object.prototype.toString.call(l)}(s)+(s&&s.stack?"\n"+s.stack:""))}catch(D){T=D}P&&(T.throwOriginal=!0),T.rejection=s,T.promise=l,T.zone=n.current,T.task=n.currentTask,d.push(T),i.scheduleMicroTask()}}}return l}const U=y("rejectionHandledHandler");function re(l){if(0===l[q]){try{const u=n[U];u&&"function"==typeof u&&u.call(this,{rejection:l[R],promise:l})}catch(u){}l[q]=G;for(let u=0;u<d.length;u++)l===d[u].promise&&d.splice(u,1)}}function ee(l,u,s,f,g){re(l);const b=l[q],T=b?"function"==typeof f?f:H:"function"==typeof g?g:J;u.scheduleMicroTask("Promise.then",()=>{try{const D=l[R],O=!!s&&_===s[_];O&&(s[K]=D,s[x]=b);const S=u.run(T,void 0,O&&T!==J&&T!==H?[]:[D]);z(s,!0,S)}catch(D){z(s,!1,D)}},s)}const M=function(){},E=e.AggregateError;class t{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(u){return z(new this(null),p,u)}static reject(u){return z(new this(null),G,u)}static any(u){if(!u||"function"!=typeof u[Symbol.iterator])return Promise.reject(new E([],"All promises were rejected"));const s=[];let f=0;try{for(let T of u)f++,s.push(t.resolve(T))}catch(T){return Promise.reject(new E([],"All promises were rejected"))}if(0===f)return Promise.reject(new E([],"All promises were rejected"));let g=!1;const b=[];return new t((T,D)=>{for(let O=0;O<s.length;O++)s[O].then(S=>{g||(g=!0,T(S))},S=>{b.push(S),f--,0===f&&(g=!0,D(new E(b,"All promises were rejected")))})})}static race(u){let s,f,g=new this((D,O)=>{s=D,f=O});function b(D){s(D)}function T(D){f(D)}for(let D of u)B(D)||(D=this.resolve(D)),D.then(b,T);return g}static all(u){return t.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof t?this:t).allWithCallback(u,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(u,s){let f,g,b=new this((S,V)=>{f=S,g=V}),T=2,D=0;const O=[];for(let S of u){B(S)||(S=this.resolve(S));const V=D;try{S.then(F=>{O[V]=s?s.thenCallback(F):F,T--,0===T&&f(O)},F=>{s?(O[V]=s.errorCallback(F),T--,0===T&&f(O)):g(F)})}catch(F){g(F)}T++,D++}return T-=2,0===T&&f(O),b}constructor(u){const s=this;if(!(s instanceof t))throw new Error("Must be an instanceof Promise.");s[q]=j,s[R]=[];try{const f=w();u&&u(f(I(s,p)),f(I(s,G)))}catch(f){z(s,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(u,s){var f;let g=null===(f=this.constructor)||void 0===f?void 0:f[Symbol.species];(!g||"function"!=typeof g)&&(g=this.constructor||t);const b=new g(M),T=n.current;return this[q]==j?this[R].push(T,b,u,s):ee(this,T,b,u,s),b}catch(u){return this.then(null,u)}finally(u){var s;let f=null===(s=this.constructor)||void 0===s?void 0:s[Symbol.species];(!f||"function"!=typeof f)&&(f=t);const g=new f(M);g[_]=_;const b=n.current;return this[q]==j?this[R].push(b,g,u,u):ee(this,b,g,u,u),g}}t.resolve=t.resolve,t.reject=t.reject,t.race=t.race,t.all=t.all;const r=e[v]=e.Promise;e.Promise=t;const k=y("thenPatched");function C(l){const u=l.prototype,s=o(u,"then");if(s&&(!1===s.writable||!s.configurable))return;const f=u.then;u[m]=f,l.prototype.then=function(g,b){return new t((D,O)=>{f.call(this,D,O)}).then(g,b)},l[k]=!0}return i.patchThen=C,r&&(C(r),le(e,"fetch",l=>function $(l){return function(u,s){let f=l.apply(u,s);if(f instanceof t)return f;let g=f.constructor;return g[k]||C(g),f}}(l))),Promise[n.__symbol__("uncaughtPromiseErrors")]=d,t}),Zone.__load_patch("toString",e=>{const n=Function.prototype.toString,i=A("OriginalDelegate"),o=A("Promise"),c=A("Error"),a=function(){if("function"==typeof this){const v=this[i];if(v)return"function"==typeof v?n.call(v):Object.prototype.toString.call(v);if(this===Promise){const m=e[o];if(m)return n.call(m)}if(this===Error){const m=e[c];if(m)return n.call(m)}}return n.call(this)};a[i]=n,Function.prototype.toString=a;const y=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":y.call(this)}});let ye=!1;if("undefined"!=typeof window)try{const e=Object.defineProperty({},"passive",{get:function(){ye=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){ye=!1}const ht={useG:!0},te={},Ye={},$e=new RegExp("^"+ke+"(\\w+)(true|false)$"),Ke=A("propagationStopped");function Je(e,n){const i=(n?n(e):e)+ae,o=(n?n(e):e)+ce,c=ke+i,a=ke+o;te[e]={},te[e][ae]=c,te[e][ce]=a}function dt(e,n,i,o){const c=o&&o.add||Oe,a=o&&o.rm||Se,y=o&&o.listeners||"eventListeners",d=o&&o.rmAll||"removeAllListeners",P=A(c),v="."+c+":",Z=function(R,_,K){if(R.isRemoved)return;const x=R.callback;let X;"object"==typeof x&&x.handleEvent&&(R.callback=p=>x.handleEvent(p),R.originalDelegate=x);try{R.invoke(R,_,[K])}catch(p){X=p}const j=R.options;return j&&"object"==typeof j&&j.once&&_[a].call(_,K.type,R.originalDelegate?R.originalDelegate:R.callback,j),X};function N(R,_,K){if(!(_=_||e.event))return;const x=R||_.target||e,X=x[te[_.type][K?ce:ae]];if(X){const j=[];if(1===X.length){const p=Z(X[0],x,_);p&&j.push(p)}else{const p=X.slice();for(let G=0;G<p.length&&(!_||!0!==_[Ke]);G++){const h=Z(p[G],x,_);h&&j.push(h)}}if(1===j.length)throw j[0];for(let p=0;p<j.length;p++){const G=j[p];n.nativeScheduleMicroTask(()=>{throw G})}}}const B=function(R){return N(this,R,!1)},H=function(R){return N(this,R,!0)};function J(R,_){if(!R)return!1;let K=!0;_&&void 0!==_.useG&&(K=_.useG);const x=_&&_.vh;let X=!0;_&&void 0!==_.chkDup&&(X=_.chkDup);let j=!1;_&&void 0!==_.rt&&(j=_.rt);let p=R;for(;p&&!p.hasOwnProperty(c);)p=de(p);if(!p&&R[c]&&(p=R),!p||p[P])return!1;const G=_&&_.eventNameToString,h={},I=p[P]=p[c],w=p[A(a)]=p[a],Q=p[A(y)]=p[y],oe=p[A(d)]=p[d];let z;function U(s,f){return!ye&&"object"==typeof s&&s?!!s.capture:ye&&f?"boolean"==typeof s?{capture:s,passive:!0}:s?"object"==typeof s&&!1!==s.passive?Object.assign(Object.assign({},s),{passive:!0}):s:{passive:!0}:s}_&&_.prepend&&(z=p[A(_.prepend)]=p[_.prepend]);const t=K?function(s){if(!h.isExisting)return I.call(h.target,h.eventName,h.capture?H:B,h.options)}:function(s){return I.call(h.target,h.eventName,s.invoke,h.options)},r=K?function(s){if(!s.isRemoved){const f=te[s.eventName];let g;f&&(g=f[s.capture?ce:ae]);const b=g&&s.target[g];if(b)for(let T=0;T<b.length;T++)if(b[T]===s){b.splice(T,1),s.isRemoved=!0,0===b.length&&(s.allRemoved=!0,s.target[g]=null);break}}if(s.allRemoved)return w.call(s.target,s.eventName,s.capture?H:B,s.options)}:function(s){return w.call(s.target,s.eventName,s.invoke,s.options)},C=_&&_.diff?_.diff:function(s,f){const g=typeof f;return"function"===g&&s.callback===f||"object"===g&&s.originalDelegate===f},$=Zone[A("UNPATCHED_EVENTS")],l=e[A("PASSIVE_EVENTS")],u=function(s,f,g,b,T=!1,D=!1){return function(){const O=this||e;let S=arguments[0];_&&_.transferEventName&&(S=_.transferEventName(S));let V=arguments[1];if(!V)return s.apply(this,arguments);if(we&&"uncaughtException"===S)return s.apply(this,arguments);let F=!1;if("function"!=typeof V){if(!V.handleEvent)return s.apply(this,arguments);F=!0}if(x&&!x(s,V,O,arguments))return;const fe=ye&&!!l&&-1!==l.indexOf(S),se=U(arguments[2],fe);if($)for(let _e=0;_e<$.length;_e++)if(S===$[_e])return fe?s.call(O,S,V,se):s.apply(this,arguments);const xe=!!se&&("boolean"==typeof se||se.capture),nt=!(!se||"object"!=typeof se)&&se.once,gt=Zone.current;let Ge=te[S];Ge||(Je(S,G),Ge=te[S]);const rt=Ge[xe?ce:ae];let De,me=O[rt],ot=!1;if(me){if(ot=!0,X)for(let _e=0;_e<me.length;_e++)if(C(me[_e],V))return}else me=O[rt]=[];const st=O.constructor.name,it=Ye[st];it&&(De=it[S]),De||(De=st+f+(G?G(S):S)),h.options=se,nt&&(h.options.once=!1),h.target=O,h.capture=xe,h.eventName=S,h.isExisting=ot;const be=K?ht:void 0;be&&(be.taskData=h);const he=gt.scheduleEventTask(De,V,be,g,b);return h.target=null,be&&(be.taskData=null),nt&&(se.once=!0),!ye&&"boolean"==typeof he.options||(he.options=se),he.target=O,he.capture=xe,he.eventName=S,F&&(he.originalDelegate=V),D?me.unshift(he):me.push(he),T?O:void 0}};return p[c]=u(I,v,t,r,j),z&&(p.prependListener=u(z,".prependListener:",function(s){return z.call(h.target,h.eventName,s.invoke,h.options)},r,j,!0)),p[a]=function(){const s=this||e;let f=arguments[0];_&&_.transferEventName&&(f=_.transferEventName(f));const g=arguments[2],b=!!g&&("boolean"==typeof g||g.capture),T=arguments[1];if(!T)return w.apply(this,arguments);if(x&&!x(w,T,s,arguments))return;const D=te[f];let O;D&&(O=D[b?ce:ae]);const S=O&&s[O];if(S)for(let V=0;V<S.length;V++){const F=S[V];if(C(F,T))return S.splice(V,1),F.isRemoved=!0,0===S.length&&(F.allRemoved=!0,s[O]=null,"string"==typeof f)&&(s[ke+"ON_PROPERTY"+f]=null),F.zone.cancelTask(F),j?s:void 0}return w.apply(this,arguments)},p[y]=function(){const s=this||e;let f=arguments[0];_&&_.transferEventName&&(f=_.transferEventName(f));const g=[],b=Qe(s,G?G(f):f);for(let T=0;T<b.length;T++){const D=b[T];g.push(D.originalDelegate?D.originalDelegate:D.callback)}return g},p[d]=function(){const s=this||e;let f=arguments[0];if(f){_&&_.transferEventName&&(f=_.transferEventName(f));const g=te[f];if(g){const D=s[g[ae]],O=s[g[ce]];if(D){const S=D.slice();for(let V=0;V<S.length;V++){const F=S[V];this[a].call(this,f,F.originalDelegate?F.originalDelegate:F.callback,F.options)}}if(O){const S=O.slice();for(let V=0;V<S.length;V++){const F=S[V];this[a].call(this,f,F.originalDelegate?F.originalDelegate:F.callback,F.options)}}}}else{const g=Object.keys(s);for(let b=0;b<g.length;b++){const D=$e.exec(g[b]);let O=D&&D[1];O&&"removeListener"!==O&&this[d].call(this,O)}this[d].call(this,"removeListener")}if(j)return this},ue(p[c],I),ue(p[a],w),oe&&ue(p[d],oe),Q&&ue(p[y],Q),!0}let q=[];for(let R=0;R<i.length;R++)q[R]=J(i[R],o);return q}function Qe(e,n){if(!n){const a=[];for(let y in e){const d=$e.exec(y);let P=d&&d[1];if(P&&(!n||P===n)){const v=e[y];if(v)for(let m=0;m<v.length;m++)a.push(v[m])}}return a}let i=te[n];i||(Je(n),i=te[n]);const o=e[i[ae]],c=e[i[ce]];return o?c?o.concat(c):o.slice():c?c.slice():[]}function _t(e,n){const i=e.Event;i&&i.prototype&&n.patchMethod(i.prototype,"stopImmediatePropagation",o=>function(c,a){c[Ke]=!0,o&&o.apply(c,a)})}function Et(e,n,i,o,c){const a=Zone.__symbol__(o);if(n[a])return;const y=n[a]=n[o];n[o]=function(d,P,v){return P&&P.prototype&&c.forEach(function(m){const L=`${i}.${o}::`+m,Z=P.prototype;try{if(Z.hasOwnProperty(m)){const N=e.ObjectGetOwnPropertyDescriptor(Z,m);N&&N.value?(N.value=e.wrapWithCurrentZone(N.value,L),e._redefineProperty(P.prototype,m,N)):Z[m]&&(Z[m]=e.wrapWithCurrentZone(Z[m],L))}else Z[m]&&(Z[m]=e.wrapWithCurrentZone(Z[m],L))}catch(N){}}),y.call(n,d,P,v)},e.attachOriginToPatched(n[o],y)}function et(e,n,i){if(!i||0===i.length)return n;const o=i.filter(a=>a.target===e);if(!o||0===o.length)return n;const c=o[0].ignoreProperties;return n.filter(a=>-1===c.indexOf(a))}function tt(e,n,i,o){e&&Xe(e,et(e,n,i),o)}function He(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}Zone.__load_patch("util",(e,n,i)=>{const o=He(e);i.patchOnProperties=Xe,i.patchMethod=le,i.bindArguments=Le,i.patchMacroTask=lt;const c=n.__symbol__("BLACK_LISTED_EVENTS"),a=n.__symbol__("UNPATCHED_EVENTS");e[a]&&(e[c]=e[a]),e[c]&&(n[c]=n[a]=e[c]),i.patchEventPrototype=_t,i.patchEventTarget=dt,i.isIEOrEdge=ft,i.ObjectDefineProperty=Ee,i.ObjectGetOwnPropertyDescriptor=ie,i.ObjectCreate=ge,i.ArraySlice=Ve,i.patchClass=ve,i.wrapWithCurrentZone=Ie,i.filterProperties=et,i.attachOriginToPatched=ue,i._redefineProperty=Object.defineProperty,i.patchCallbacks=Et,i.getGlobalObjects=()=>({globalSources:Ye,zoneSymbolEventNames:te,eventNames:o,isBrowser:je,isMix:Ue,isNode:we,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:ke,ADD_EVENT_LISTENER_STR:Oe,REMOVE_EVENT_LISTENER_STR:Se})});const Ce=A("zoneTask");function pe(e,n,i,o){let c=null,a=null;i+=o;const y={};function d(v){const m=v.data;return m.args[0]=function(){return v.invoke.apply(this,arguments)},m.handleId=c.apply(e,m.args),v}function P(v){return a.call(e,v.data.handleId)}c=le(e,n+=o,v=>function(m,L){if("function"==typeof L[0]){const Z={isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?L[1]||0:void 0,args:L},N=L[0];L[0]=function(){try{return N.apply(this,arguments)}finally{Z.isPeriodic||("number"==typeof Z.handleId?delete y[Z.handleId]:Z.handleId&&(Z.handleId[Ce]=null))}};const B=Me(n,L[0],Z,d,P);if(!B)return B;const H=B.data.handleId;return"number"==typeof H?y[H]=B:H&&(H[Ce]=B),H&&H.ref&&H.unref&&"function"==typeof H.ref&&"function"==typeof H.unref&&(B.ref=H.ref.bind(H),B.unref=H.unref.bind(H)),"number"==typeof H||H?H:B}return v.apply(e,L)}),a=le(e,i,v=>function(m,L){const Z=L[0];let N;"number"==typeof Z?N=y[Z]:(N=Z&&Z[Ce],N||(N=Z)),N&&"string"==typeof N.type?"notScheduled"!==N.state&&(N.cancelFn&&N.data.isPeriodic||0===N.runCount)&&("number"==typeof Z?delete y[Z]:Z&&(Z[Ce]=null),N.zone.cancelTask(N)):v.apply(e,L)})}Zone.__load_patch("legacy",e=>{const n=e[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("queueMicrotask",(e,n,i)=>{i.patchMethod(e,"queueMicrotask",o=>function(c,a){n.current.scheduleMicroTask("queueMicrotask",a[0])})}),Zone.__load_patch("timers",e=>{const n="set",i="clear";pe(e,n,i,"Timeout"),pe(e,n,i,"Interval"),pe(e,n,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{pe(e,"request","cancel","AnimationFrame"),pe(e,"mozRequest","mozCancel","AnimationFrame"),pe(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,n)=>{const i=["alert","prompt","confirm"];for(let o=0;o<i.length;o++)le(e,i[o],(a,y,d)=>function(P,v){return n.current.run(a,e,v,d)})}),Zone.__load_patch("EventTarget",(e,n,i)=>{(function mt(e,n){n.patchEventPrototype(e,n)})(e,i),function pt(e,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:i,zoneSymbolEventNames:o,TRUE_STR:c,FALSE_STR:a,ZONE_SYMBOL_PREFIX:y}=n.getGlobalObjects();for(let P=0;P<i.length;P++){const v=i[P],Z=y+(v+a),N=y+(v+c);o[v]={},o[v][a]=Z,o[v][c]=N}const d=e.EventTarget;d&&d.prototype&&n.patchEventTarget(e,n,[d&&d.prototype])}(e,i);const o=e.XMLHttpRequestEventTarget;o&&o.prototype&&i.patchEventTarget(e,i,[o.prototype])}),Zone.__load_patch("MutationObserver",(e,n,i)=>{ve("MutationObserver"),ve("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(e,n,i)=>{ve("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,n,i)=>{ve("FileReader")}),Zone.__load_patch("on_property",(e,n,i)=>{!function Tt(e,n){if(we&&!Ue||Zone[e.symbol("patchEvents")])return;const i=n.__Zone_ignore_on_properties;let o=[];if(je){const c=window;o=o.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const a=function ut(){try{const e=Te.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch(e){}return!1}()?[{target:c,ignoreProperties:["error"]}]:[];tt(c,He(c),i&&i.concat(a),de(c))}o=o.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c<o.length;c++){const a=n[o[c]];a&&a.prototype&&tt(a.prototype,He(a.prototype),i)}}(i,e)}),Zone.__load_patch("customElements",(e,n,i)=>{!function yt(e,n){const{isBrowser:i,isMix:o}=n.getGlobalObjects();(i||o)&&e.customElements&&"customElements"in e&&n.patchCallbacks(n,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,i)}),Zone.__load_patch("XHR",(e,n)=>{!function P(v){const m=v.XMLHttpRequest;if(!m)return;const L=m.prototype;let N=L[Ze],B=L[Ne];if(!N){const h=v.XMLHttpRequestEventTarget;if(h){const I=h.prototype;N=I[Ze],B=I[Ne]}}const H="readystatechange",J="scheduled";function q(h){const I=h.data,w=I.target;w[a]=!1,w[d]=!1;const Q=w[c];N||(N=w[Ze],B=w[Ne]),Q&&B.call(w,H,Q);const oe=w[c]=()=>{if(w.readyState===w.DONE)if(!I.aborted&&w[a]&&h.state===J){const U=w[n.__symbol__("loadfalse")];if(0!==w.status&&U&&U.length>0){const re=h.invoke;h.invoke=function(){const ee=w[n.__symbol__("loadfalse")];for(let W=0;W<ee.length;W++)ee[W]===h&&ee.splice(W,1);!I.aborted&&h.state===J&&re.call(h)},U.push(h)}else h.invoke()}else!I.aborted&&!1===w[a]&&(w[d]=!0)};return N.call(w,H,oe),w[i]||(w[i]=h),p.apply(w,I.args),w[a]=!0,h}function R(){}function _(h){const I=h.data;return I.aborted=!0,G.apply(I.target,I.args)}const K=le(L,"open",()=>function(h,I){return h[o]=0==I[2],h[y]=I[1],K.apply(h,I)}),X=A("fetchTaskAborting"),j=A("fetchTaskScheduling"),p=le(L,"send",()=>function(h,I){if(!0===n.current[j]||h[o])return p.apply(h,I);{const w={target:h,url:h[y],isPeriodic:!1,args:I,aborted:!1},Q=Me("XMLHttpRequest.send",R,w,q,_);h&&!0===h[d]&&!w.aborted&&Q.state===J&&Q.invoke()}}),G=le(L,"abort",()=>function(h,I){const w=function Z(h){return h[i]}(h);if(w&&"string"==typeof w.type){if(null==w.cancelFn||w.data&&w.data.aborted)return;w.zone.cancelTask(w)}else if(!0===n.current[X])return G.apply(h,I)})}(e);const i=A("xhrTask"),o=A("xhrSync"),c=A("xhrListener"),a=A("xhrScheduled"),y=A("xhrURL"),d=A("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function at(e,n){const i=e.constructor.name;for(let o=0;o<n.length;o++){const c=n[o],a=e[c];if(a){if(!Fe(ie(e,c)))continue;e[c]=(d=>{const P=function(){return d.apply(this,Le(arguments,i+"."+c))};return ue(P,d),P})(a)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function i(o){return function(c){Qe(e,o).forEach(y=>{const d=e.PromiseRejectionEvent;if(d){const P=new d(o,{promise:c.promise,reason:c.rejection});y.invoke(P)}})}}e.PromiseRejectionEvent&&(n[A("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),n[A("rejectionHandledHandler")]=i("rejectionhandled"))})}},ie=>{ie(ie.s=512)}]);
3
- "use strict";(self.webpackChunkweb_component=self.webpackChunkweb_component||[]).push([[179],{291:(er,ot,zt)=>{function Ce(n){return"function"==typeof n}function hn(n){const e=n(r=>{Error.call(r),r.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const bt=hn(n=>function(e){n(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function Ge(n,t){if(n){const e=n.indexOf(t);0<=e&&n.splice(e,1)}}class It{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const o of e)o.remove(this);else e.remove(this);const{initialTeardown:r}=this;if(Ce(r))try{r()}catch(o){t=o instanceof bt?o.errors:[o]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const o of i)try{lt(o)}catch(s){t=null!=t?t:[],s instanceof bt?t=[...t,...s.errors]:t.push(s)}}if(t)throw new bt(t)}}add(t){var e;if(t&&t!==this)if(this.closed)lt(t);else{if(t instanceof It){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(t)}}_hasParent(t){const{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){const{_parentage:e}=this;e===t?this._parentage=null:Array.isArray(e)&&Ge(e,t)}remove(t){const{_finalizers:e}=this;e&&Ge(e,t),t instanceof It&&t._removeParent(this)}}It.EMPTY=(()=>{const n=new It;return n.closed=!0,n})();const tr=It.EMPTY;function sn(n){return n instanceof It||n&&"closed"in n&&Ce(n.remove)&&Ce(n.add)&&Ce(n.unsubscribe)}function lt(n){Ce(n)?n():n.unsubscribe()}const wn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},fn={setTimeout(n,t,...e){const{delegate:r}=fn;return(null==r?void 0:r.setTimeout)?r.setTimeout(n,t,...e):setTimeout(n,t,...e)},clearTimeout(n){const{delegate:t}=fn;return((null==t?void 0:t.clearTimeout)||clearTimeout)(n)},delegate:void 0};function Po(n){fn.setTimeout(()=>{const{onUnhandledError:t}=wn;if(!t)throw n;t(n)})}function Ws(){}const qs=Je("C",void 0,void 0);function Je(n,t,e){return{kind:n,value:t,error:e}}let ft=null;function $n(n){if(wn.useDeprecatedSynchronousErrorHandling){const t=!ft;if(t&&(ft={errorThrown:!1,error:null}),n(),t){const{errorThrown:e,error:r}=ft;if(ft=null,e)throw r}}else n()}class _d extends It{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,sn(t)&&t.add(this)):this.destination=XC}static create(t,e,r){return new Ks(t,e,r)}next(t){this.isStopped?wd(function Be(n){return Je("N",n,void 0)}(t),this):this._next(t)}error(t){this.isStopped?wd(function Or(n){return Je("E",void 0,n)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?wd(qs,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const QC=Function.prototype.bind;function vd(n,t){return QC.call(n,t)}class YC{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next)try{e.next(t)}catch(r){Ml(r)}}error(t){const{partialObserver:e}=this;if(e.error)try{e.error(t)}catch(r){Ml(r)}else Ml(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(e){Ml(e)}}}class Ks extends _d{constructor(t,e,r){let i;if(super(),Ce(t)||!t)i={next:null!=t?t:void 0,error:null!=e?e:void 0,complete:null!=r?r:void 0};else{let o;this&&wn.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&vd(t.next,o),error:t.error&&vd(t.error,o),complete:t.complete&&vd(t.complete,o)}):i=t}this.destination=new YC(i)}}function Ml(n){wn.useDeprecatedSynchronousErrorHandling?function Ki(n){wn.useDeprecatedSynchronousErrorHandling&&ft&&(ft.errorThrown=!0,ft.error=n)}(n):Po(n)}function wd(n,t){const{onStoppedNotification:e}=wn;e&&fn.setTimeout(()=>e(n,t))}const XC={closed:!0,next:Ws,error:function JC(n){throw n},complete:Ws},Cd="function"==typeof Symbol&&Symbol.observable||"@@observable";function ko(n){return n}function rg(n){return 0===n.length?ko:1===n.length?n[0]:function(e){return n.reduce((r,i)=>i(r),e)}}let Ft=(()=>{class n{constructor(e){e&&(this._subscribe=e)}lift(e){const r=new n;return r.source=this,r.operator=e,r}subscribe(e,r,i){const o=function n4(n){return n&&n instanceof _d||function t4(n){return n&&Ce(n.next)&&Ce(n.error)&&Ce(n.complete)}(n)&&sn(n)}(e)?e:new Ks(e,r,i);return $n(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(r){e.error(r)}}forEach(e,r){return new(r=ig(r))((i,o)=>{const s=new Ks({next:a=>{try{e(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(e){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(e)}[Cd](){return this}pipe(...e){return rg(e)(this)}toPromise(e){return new(e=ig(e))((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return n.create=t=>new n(t),n})();function ig(n){var t;return null!==(t=null!=n?n:wn.Promise)&&void 0!==t?t:Promise}const r4=hn(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Lt=(()=>{class n extends Ft{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const r=new og(this,this);return r.operator=e,r}_throwIfClosed(){if(this.closed)throw new r4}next(e){$n(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(e)}})}error(e){$n(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:r}=this;for(;r.length;)r.shift().error(e)}})}complete(){$n(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:r,isStopped:i,observers:o}=this;return r||i?tr:(this.currentObservers=null,o.push(e),new It(()=>{this.currentObservers=null,Ge(o,e)}))}_checkFinalizedStatuses(e){const{hasError:r,thrownError:i,isStopped:o}=this;r?e.error(i):o&&e.complete()}asObservable(){const e=new Ft;return e.source=this,e}}return n.create=(t,e)=>new og(t,e),n})();class og extends Lt{constructor(t,e){super(),this.destination=t,this.source=e}next(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,t)}error(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.call(e,t)}complete(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)}_subscribe(t){var e,r;return null!==(r=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==r?r:tr}}function Cn(n){return t=>{if(function i4(n){return Ce(null==n?void 0:n.lift)}(t))return t.lift(function(e){try{return n(e,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function an(n,t,e,r,i){return new o4(n,t,e,r,i)}class o4 extends _d{constructor(t,e,r,i,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(l){t.error(l)}}:super._next,this._error=i?function(a){try{i(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function en(n,t){return Cn((e,r)=>{let i=0;e.subscribe(an(r,o=>{r.next(n.call(t,o,i++))}))})}function Sl(n,t,e,r){return new(e||(e=Promise))(function(o,s){function a(u){try{c(r.next(u))}catch(d){s(d)}}function l(u){try{c(r.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):function i(o){return o instanceof e?o:new e(function(s){s(o)})}(u.value).then(a,l)}c((r=r.apply(n,t||[])).next())})}function Mi(n){return this instanceof Mi?(this.v=n,this):new Mi(n)}function lg(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=e.apply(n,t||[]),o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(f){r[f]&&(i[f]=function(p){return new Promise(function(y,w){o.push([f,p,y,w])>1||a(f,p)})})}function a(f,p){try{!function l(f){f.value instanceof Mi?Promise.resolve(f.value.v).then(c,u):d(o[0][2],f)}(r[f](p))}catch(y){d(o[0][3],y)}}function c(f){a("next",f)}function u(f){a("throw",f)}function d(f,p){f(p),o.shift(),o.length&&a(o[0][0],o[0][1])}}function cg(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,t=n[Symbol.asyncIterator];return t?t.call(n):(n=function Md(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(o){e[o]=n[o]&&function(s){return new Promise(function(a,l){!function i(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}(a,l,(s=n[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const ug=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function dg(n){return Ce(null==n?void 0:n.then)}function hg(n){return Ce(n[Cd])}function fg(n){return Symbol.asyncIterator&&Ce(null==n?void 0:n[Symbol.asyncIterator])}function pg(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const mg=function S4(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function gg(n){return Ce(null==n?void 0:n[mg])}function yg(n){return lg(this,arguments,function*(){const e=n.getReader();try{for(;;){const{value:r,done:i}=yield Mi(e.read());if(i)return yield Mi(void 0);yield yield Mi(r)}}finally{e.releaseLock()}})}function _g(n){return Ce(null==n?void 0:n.getReader)}function nr(n){if(n instanceof Ft)return n;if(null!=n){if(hg(n))return function T4(n){return new Ft(t=>{const e=n[Cd]();if(Ce(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(ug(n))return function A4(n){return new Ft(t=>{for(let e=0;e<n.length&&!t.closed;e++)t.next(n[e]);t.complete()})}(n);if(dg(n))return function x4(n){return new Ft(t=>{n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,Po)})}(n);if(fg(n))return vg(n);if(gg(n))return function I4(n){return new Ft(t=>{for(const e of n)if(t.next(e),t.closed)return;t.complete()})}(n);if(_g(n))return function P4(n){return vg(yg(n))}(n)}throw pg(n)}function vg(n){return new Ft(t=>{(function k4(n,t){var e,r,i,o;return Sl(this,void 0,void 0,function*(){try{for(e=cg(n);!(r=yield e.next()).done;)if(t.next(r.value),t.closed)return}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=e.return)&&(yield o.call(e))}finally{if(i)throw i.error}}t.complete()})})(n,t).catch(e=>t.error(e))})}function ri(n,t,e,r=0,i=!1){const o=t.schedule(function(){e(),i?n.add(this.schedule(null,r)):this.unsubscribe()},r);if(n.add(o),!i)return o}function Tl(n,t,e=1/0){return Ce(t)?Tl((r,i)=>en((o,s)=>t(r,o,i,s))(nr(n(r,i))),e):("number"==typeof t&&(e=t),Cn((r,i)=>function N4(n,t,e,r,i,o,s,a){const l=[];let c=0,u=0,d=!1;const f=()=>{d&&!l.length&&!c&&t.complete()},p=w=>c<r?y(w):l.push(w),y=w=>{o&&t.next(w),c++;let b=!1;nr(e(w,u++)).subscribe(an(t,S=>{null==i||i(S),o?p(S):t.next(S)},()=>{b=!0},void 0,()=>{if(b)try{for(c--;l.length&&c<r;){const S=l.shift();s?ri(t,s,()=>y(S)):y(S)}f()}catch(S){t.error(S)}}))};return n.subscribe(an(t,p,()=>{d=!0,f()})),()=>{null==a||a()}}(r,i,n,e)))}function wg(n=1/0){return Tl(ko,n)}const Cg=new Ft(n=>n.complete());function bg(n){return n&&Ce(n.schedule)}function Sd(n){return n[n.length-1]}function Dg(n){return Ce(Sd(n))?n.pop():void 0}function Zs(n){return bg(Sd(n))?n.pop():void 0}function Eg(n,t=0){return Cn((e,r)=>{e.subscribe(an(r,i=>ri(r,n,()=>r.next(i),t),()=>ri(r,n,()=>r.complete(),t),i=>ri(r,n,()=>r.error(i),t)))})}function Mg(n,t=0){return Cn((e,r)=>{r.add(n.schedule(()=>e.subscribe(r),t))})}function Sg(n,t){if(!n)throw new Error("Iterable cannot be null");return new Ft(e=>{ri(e,t,()=>{const r=n[Symbol.asyncIterator]();ri(e,t,()=>{r.next().then(i=>{i.done?e.complete():e.next(i.value)})},0,!0)})})}function No(n,t){return t?function j4(n,t){if(null!=n){if(hg(n))return function L4(n,t){return nr(n).pipe(Mg(t),Eg(t))}(n,t);if(ug(n))return function $4(n,t){return new Ft(e=>{let r=0;return t.schedule(function(){r===n.length?e.complete():(e.next(n[r++]),e.closed||this.schedule())})})}(n,t);if(dg(n))return function R4(n,t){return nr(n).pipe(Mg(t),Eg(t))}(n,t);if(fg(n))return Sg(n,t);if(gg(n))return function V4(n,t){return new Ft(e=>{let r;return ri(e,t,()=>{r=n[mg](),ri(e,t,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){return void e.error(s)}o?e.complete():e.next(i)},0,!0)}),()=>Ce(null==r?void 0:r.return)&&r.return()})}(n,t);if(_g(n))return function B4(n,t){return Sg(yg(n),t)}(n,t)}throw pg(n)}(n,t):nr(n)}function Tg(...n){const t=Zs(n),e=function F4(n,t){return"number"==typeof Sd(n)?n.pop():t}(n,1/0),r=n;return r.length?1===r.length?nr(r[0]):wg(e)(No(r,t)):Cg}function Td(n,t,...e){if(!0===t)return void n();if(!1===t)return;const r=new Ks({next:()=>{r.unsubscribe(),n()}});return t(...e).subscribe(r)}function Xe(n){for(let t in n)if(n[t]===Xe)return t;throw Error("Could not find renamed property on target object.")}function Ad(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function qe(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(qe).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function xd(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const U4=Xe({__forward_ref__:Xe});function We(n){return n.__forward_ref__=We,n.toString=function(){return qe(this())},n}function Se(n){return Ag(n)?n():n}function Ag(n){return"function"==typeof n&&n.hasOwnProperty(U4)&&n.__forward_ref__===We}class Y extends Error{constructor(t,e){super(function Id(n,t){return`NG0${Math.abs(n)}${t?": "+t:""}`}(t,e)),this.code=t}}function ge(n){return"string"==typeof n?n:null==n?"":String(n)}function ln(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():ge(n)}function Al(n,t){const e=t?` in ${t}`:"";throw new Y(-201,`No provider for ${ln(n)} found${e}`)}function Bn(n,t){null==n&&function Ke(n,t,e,r){throw new Error(`ASSERTION ERROR: ${n}`+(null==r?"":` [Expected=> ${e} ${r} ${t} <=Actual]`))}(t,n,null,"!=")}function se(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function st(n){return{providers:n.providers||[],imports:n.imports||[]}}function Pd(n){return xg(n,xl)||xg(n,Pg)}function xg(n,t){return n.hasOwnProperty(t)?n[t]:null}function Ig(n){return n&&(n.hasOwnProperty(kd)||n.hasOwnProperty(Q4))?n[kd]:null}const xl=Xe({\u0275prov:Xe}),kd=Xe({\u0275inj:Xe}),Pg=Xe({ngInjectableDef:Xe}),Q4=Xe({ngInjectorDef:Xe});var ve=(()=>((ve=ve||{})[ve.Default=0]="Default",ve[ve.Host=1]="Host",ve[ve.Self=2]="Self",ve[ve.SkipSelf=4]="SkipSelf",ve[ve.Optional=8]="Optional",ve))();let Nd;function Si(n){const t=Nd;return Nd=n,t}function kg(n,t,e){const r=Pd(n);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:e&ve.Optional?null:void 0!==t?t:void Al(qe(n),"Injector")}function Ti(n){return{toString:n}.toString()}var mr=(()=>((mr=mr||{})[mr.OnPush=0]="OnPush",mr[mr.Default=1]="Default",mr))(),gr=(()=>{return(n=gr||(gr={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",gr;var n})();const J4="undefined"!=typeof globalThis&&globalThis,X4="undefined"!=typeof window&&window,eb="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ze=J4||"undefined"!=typeof global&&global||X4||eb,Oo={},et=[],Il=Xe({\u0275cmp:Xe}),Od=Xe({\u0275dir:Xe}),Fd=Xe({\u0275pipe:Xe}),Ng=Xe({\u0275mod:Xe}),oi=Xe({\u0275fac:Xe}),Qs=Xe({__NG_ELEMENT_ID__:Xe});let tb=0;function Dt(n){return Ti(()=>{const e={},r={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===mr.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||et,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||gr.Emulated,id:"c",styles:n.styles||et,_:null,setInput:null,schemas:n.schemas||null,tView:null},i=n.directives,o=n.features,s=n.pipes;return r.id+=tb++,r.inputs=Rg(n.inputs,e),r.outputs=Rg(n.outputs),o&&o.forEach(a=>a(r)),r.directiveDefs=i?()=>("function"==typeof i?i():i).map(Og):null,r.pipeDefs=s?()=>("function"==typeof s?s():s).map(Fg):null,r})}function Og(n){return cn(n)||function Ai(n){return n[Od]||null}(n)}function Fg(n){return function Zi(n){return n[Fd]||null}(n)}const Lg={};function ct(n){return Ti(()=>{const t={type:n.type,bootstrap:n.bootstrap||et,declarations:n.declarations||et,imports:n.imports||et,exports:n.exports||et,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(Lg[n.id]=n.type),t})}function Rg(n,t){if(null==n)return Oo;const e={};for(const r in n)if(n.hasOwnProperty(r)){let i=n[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),e[i]=r,t&&(t[i]=o)}return e}const fe=Dt;function at(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,onDestroy:n.type.prototype.ngOnDestroy||null}}function cn(n){return n[Il]||null}function rr(n,t){const e=n[Ng]||null;if(!e&&!0===t)throw new Error(`Type ${qe(n)} does not have '\u0275mod' property.`);return e}function Fr(n){return Array.isArray(n)&&"object"==typeof n[1]}function _r(n){return Array.isArray(n)&&!0===n[1]}function $d(n){return 0!=(8&n.flags)}function Ol(n){return 2==(2&n.flags)}function Fl(n){return 1==(1&n.flags)}function vr(n){return null!==n.template}function ab(n){return 0!=(512&n[2])}function Xi(n,t){return n.hasOwnProperty(oi)?n[oi]:null}class Vg{constructor(t,e,r){this.previousValue=t,this.currentValue=e,this.firstChange=r}isFirstChange(){return this.firstChange}}function Lr(){return Bg}function Bg(n){return n.type.prototype.ngOnChanges&&(n.setInput=db),ub}function ub(){const n=Hg(this),t=null==n?void 0:n.current;if(t){const e=n.previous;if(e===Oo)n.previous=t;else for(let r in t)e[r]=t[r];n.current=null,this.ngOnChanges(t)}}function db(n,t,e,r){const i=Hg(n)||function hb(n,t){return n[jg]=t}(n,{previous:Oo,current:null}),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[e],l=s[a];o[a]=new Vg(l&&l.currentValue,t,s===Oo),n[r]=t}Lr.ngInherit=!0;const jg="__ngSimpleChanges__";function Hg(n){return n[jg]||null}let Ud;function zd(){return void 0!==Ud?Ud:"undefined"!=typeof document?document:void 0}function Mt(n){return!!n.listen}const Ug={createRenderer:(n,t)=>zd()};function Rt(n){for(;Array.isArray(n);)n=n[0];return n}function Ll(n,t){return Rt(t[n])}function Hn(n,t){return Rt(t[n.index])}function Gd(n,t){return n.data[t]}function Vo(n,t){return n[t]}function Un(n,t){const e=t[n];return Fr(e)?e:e[0]}function zg(n){return 4==(4&n[2])}function Wd(n){return 128==(128&n[2])}function xi(n,t){return null==t?null:n[t]}function Gg(n){n[18]=0}function qd(n,t){n[5]+=t;let e=n,r=n[3];for(;null!==r&&(1===t&&1===e[5]||-1===t&&0===e[5]);)r[5]+=t,e=r,r=r[3]}const ye={lFrame:e1(null),bindingsEnabled:!0};function qg(){return ye.bindingsEnabled}function k(){return ye.lFrame.lView}function Fe(){return ye.lFrame.tView}function Gt(n){return ye.lFrame.contextLView=n,n[8]}function Wt(){let n=Kg();for(;null!==n&&64===n.type;)n=n.parent;return n}function Kg(){return ye.lFrame.currentTNode}function Rr(n,t){const e=ye.lFrame;e.currentTNode=n,e.isParent=t}function Kd(){return ye.lFrame.isParent}function Zd(){ye.lFrame.isParent=!1}function Dn(){const n=ye.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function Bo(){return ye.lFrame.bindingIndex++}function ai(n){const t=ye.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function xb(n,t){const e=ye.lFrame;e.bindingIndex=e.bindingRootIndex=n,Qd(t)}function Qd(n){ye.lFrame.currentDirectiveIndex=n}function Yd(n){const t=ye.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}function Yg(){return ye.lFrame.currentQueryIndex}function Jd(n){ye.lFrame.currentQueryIndex=n}function Pb(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function Jg(n,t,e){if(e&ve.SkipSelf){let i=t,o=n;for(;!(i=i.parent,null!==i||e&ve.Host||(i=Pb(o),null===i||(o=o[15],10&i.type))););if(null===i)return!1;t=i,n=o}const r=ye.lFrame=Xg();return r.currentTNode=t,r.lView=n,!0}function $l(n){const t=Xg(),e=n[1];ye.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function Xg(){const n=ye.lFrame,t=null===n?null:n.child;return null===t?e1(n):t}function e1(n){const t={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:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function t1(){const n=ye.lFrame;return ye.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const n1=t1;function Vl(){const n=t1();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function En(){return ye.lFrame.selectedIndex}function Ii(n){ye.lFrame.selectedIndex=n}function pt(){const n=ye.lFrame;return Gd(n.tView,n.selectedIndex)}function Bl(n,t){for(let e=t.directiveStart,r=t.directiveEnd;e<r;e++){const o=n.data[e].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=o;s&&(n.contentHooks||(n.contentHooks=[])).push(-e,s),a&&((n.contentHooks||(n.contentHooks=[])).push(e,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(e,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-e,l),c&&((n.viewHooks||(n.viewHooks=[])).push(e,c),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(e,c)),null!=u&&(n.destroyHooks||(n.destroyHooks=[])).push(e,u)}}function jl(n,t,e){r1(n,t,3,e)}function Hl(n,t,e,r){(3&n[2])===e&&r1(n,t,e,r)}function Xd(n,t){let e=n[2];(3&e)===t&&(e&=2047,e+=1,n[2]=e)}function r1(n,t,e,r){const o=null!=r?r:-1,s=t.length-1;let a=0;for(let l=void 0!==r?65535&n[18]:0;l<s;l++)if("number"==typeof t[l+1]){if(a=t[l],null!=r&&a>=r)break}else t[l]<0&&(n[18]+=65536),(a<o||-1==o)&&(Bb(n,e,t,l),n[18]=(4294901760&n[18])+l+2),l++}function Bb(n,t,e,r){const i=e[r]<0,o=e[r+1],a=n[i?-e[r]:e[r]];if(i){if(n[2]>>11<n[18]>>16&&(3&n[2])===t){n[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class ta{constructor(t,e,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=r}}function Ul(n,t,e){const r=Mt(n);let i=0;for(;i<e.length;){const o=e[i];if("number"==typeof o){if(0!==o)break;i++;const s=e[i++],a=e[i++],l=e[i++];r?n.setAttribute(t,a,l,s):t.setAttributeNS(s,a,l)}else{const s=o,a=e[++i];th(s)?r&&n.setProperty(t,s,a):r?n.setAttribute(t,s,a):t.setAttribute(s,a),i++}}return i}function i1(n){return 3===n||4===n||6===n}function th(n){return 64===n.charCodeAt(0)}function zl(n,t){if(null!==t&&0!==t.length)if(null===n||0===n.length)n=t.slice();else{let e=-1;for(let r=0;r<t.length;r++){const i=t[r];"number"==typeof i?e=i:0===e||o1(n,e,i,null,-1===e||2===e?t[++r]:null)}}return n}function o1(n,t,e,r,i){let o=0,s=n.length;if(-1===t)s=-1;else for(;o<n.length;){const a=n[o++];if("number"==typeof a){if(a===t){s=-1;break}if(a>t){s=o-1;break}}}for(;o<n.length;){const a=n[o];if("number"==typeof a)break;if(a===e){if(null===r)return void(null!==i&&(n[o+1]=i));if(r===n[o+1])return void(n[o+2]=i)}o++,null!==r&&o++,null!==i&&o++}-1!==s&&(n.splice(s,0,t),o=s+1),n.splice(o++,0,e),null!==r&&n.splice(o++,0,r),null!==i&&n.splice(o++,0,i)}function s1(n){return-1!==n}function jo(n){return 32767&n}function Ho(n,t){let e=function Gb(n){return n>>16}(n),r=t;for(;e>0;)r=r[15],e--;return r}let nh=!0;function Gl(n){const t=nh;return nh=n,t}let Wb=0;function ra(n,t){const e=ih(n,t);if(-1!==e)return e;const r=t[1];r.firstCreatePass&&(n.injectorIndex=t.length,rh(r.data,n),rh(t,null),rh(r.blueprint,null));const i=Wl(n,t),o=n.injectorIndex;if(s1(i)){const s=jo(i),a=Ho(i,t),l=a[1].data;for(let c=0;c<8;c++)t[o+c]=a[s+c]|l[s+c]}return t[o+8]=i,o}function rh(n,t){n.push(0,0,0,0,0,0,0,0,t)}function ih(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function Wl(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,r=null,i=t;for(;null!==i;){const o=i[1],s=o.type;if(r=2===s?o.declTNode:1===s?i[6]:null,null===r)return-1;if(e++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|e<<16}return-1}function ql(n,t,e){!function qb(n,t,e){let r;"string"==typeof e?r=e.charCodeAt(0)||0:e.hasOwnProperty(Qs)&&(r=e[Qs]),null==r&&(r=e[Qs]=Wb++);const i=255&r;t.data[n+(i>>5)]|=1<<i}(n,t,e)}function c1(n,t,e){if(e&ve.Optional)return n;Al(t,"NodeInjector")}function u1(n,t,e,r){if(e&ve.Optional&&void 0===r&&(r=null),0==(e&(ve.Self|ve.Host))){const i=n[9],o=Si(void 0);try{return i?i.get(t,r,e&ve.Optional):kg(t,r,e&ve.Optional)}finally{Si(o)}}return c1(r,t,e)}function d1(n,t,e,r=ve.Default,i){if(null!==n){const o=function Yb(n){if("string"==typeof n)return n.charCodeAt(0)||0;const t=n.hasOwnProperty(Qs)?n[Qs]:void 0;return"number"==typeof t?t>=0?255&t:Zb:t}(e);if("function"==typeof o){if(!Jg(t,n,r))return r&ve.Host?c1(i,e,r):u1(t,e,r,i);try{const s=o(r);if(null!=s||r&ve.Optional)return s;Al(e)}finally{n1()}}else if("number"==typeof o){let s=null,a=ih(n,t),l=-1,c=r&ve.Host?t[16][6]:null;for((-1===a||r&ve.SkipSelf)&&(l=-1===a?Wl(n,t):t[a+8],-1!==l&&p1(r,!1)?(s=t[1],a=jo(l),t=Ho(l,t)):a=-1);-1!==a;){const u=t[1];if(f1(o,a,u.data)){const d=Qb(a,t,e,s,r,c);if(d!==h1)return d}l=t[a+8],-1!==l&&p1(r,t[1].data[a+8]===c)&&f1(o,a,t)?(s=u,a=jo(l),t=Ho(l,t)):a=-1}}}return u1(t,e,r,i)}const h1={};function Zb(){return new Uo(Wt(),k())}function Qb(n,t,e,r,i,o){const s=t[1],a=s.data[n+8],u=Kl(a,s,e,null==r?Ol(a)&&nh:r!=s&&0!=(3&a.type),i&ve.Host&&o===a);return null!==u?ia(t,s,u,a):h1}function Kl(n,t,e,r,i){const o=n.providerIndexes,s=t.data,a=1048575&o,l=n.directiveStart,u=o>>20,f=i?a+u:n.directiveEnd;for(let p=r?a:a+u;p<f;p++){const y=s[p];if(p<l&&e===y||p>=l&&y.type===e)return p}if(i){const p=s[l];if(p&&vr(p)&&p.type===e)return l}return null}function ia(n,t,e,r){let i=n[e];const o=t.data;if(function jb(n){return n instanceof ta}(i)){const s=i;s.resolving&&function z4(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new Y(-200,`Circular dependency in DI detected for ${n}${e}`)}(ln(o[e]));const a=Gl(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Si(s.injectImpl):null;Jg(n,r,ve.Default);try{i=n[e]=s.factory(void 0,o,n,r),t.firstCreatePass&&e>=r.directiveStart&&function Vb(n,t,e){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){const s=Bg(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s)}i&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,i),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o))}(e,o[e],t)}finally{null!==l&&Si(l),Gl(a),s.resolving=!1,n1()}}return i}function f1(n,t,e){return!!(e[t+(n>>5)]&1<<n)}function p1(n,t){return!(n&ve.Self||n&ve.Host&&t)}class Uo{constructor(t,e){this._tNode=t,this._lView=e}get(t,e,r){return d1(this._tNode,this._lView,t,r,e)}}function nn(n){return Ti(()=>{const t=n.prototype.constructor,e=t[oi]||oh(t),r=Object.prototype;let i=Object.getPrototypeOf(n.prototype).constructor;for(;i&&i!==r;){const o=i[oi]||oh(i);if(o&&o!==e)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function oh(n){return Ag(n)?()=>{const t=oh(Se(n));return t&&t()}:Xi(n)}const Go="__parameters__";function qo(n,t,e){return Ti(()=>{const r=function ah(n){return function(...e){if(n){const r=n(...e);for(const i in r)this[i]=r[i]}}}(t);function i(...o){if(this instanceof i)return r.apply(this,o),this;const s=new i(...o);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(Go)?l[Go]:Object.defineProperty(l,Go,{value:[]})[Go];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return e&&(i.prototype=Object.create(e.prototype)),i.prototype.ngMetadataName=n,i.annotationCls=i,i})}class ae{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=se({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}function sr(n,t){void 0===t&&(t=n);for(let e=0;e<n.length;e++){let r=n[e];Array.isArray(r)?(t===n&&(t=n.slice(0,e)),sr(r,t)):t!==n&&t.push(r)}return t}function $r(n,t){n.forEach(e=>Array.isArray(e)?$r(e,t):t(e))}function g1(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function Zl(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function aa(n,t){const e=[];for(let r=0;r<n;r++)e.push(t);return e}function zn(n,t,e){let r=Ko(n,t);return r>=0?n[1|r]=e:(r=~r,function t3(n,t,e,r){let i=n.length;if(i==t)n.push(e,r);else if(1===i)n.push(r,n[0]),n[0]=e;else{for(i--,n.push(n[i-1],n[i]);i>t;)n[i]=n[i-2],i--;n[t]=e,n[t+1]=r}}(n,r,t,e)),r}function ch(n,t){const e=Ko(n,t);if(e>=0)return n[1|e]}function Ko(n,t){return function v1(n,t,e){let r=0,i=n.length>>e;for(;i!==r;){const o=r+(i-r>>1),s=n[o<<e];if(t===s)return o<<e;s>t?i=o:r=o+1}return~(i<<e)}(n,t,1)}const la={},dh="__NG_DI_FLAG__",Yl="ngTempTokenPath",l3=/\n/gm,C1="__source",u3=Xe({provide:String,useValue:Xe});let ca;function b1(n){const t=ca;return ca=n,t}function d3(n,t=ve.Default){if(void 0===ca)throw new Y(203,"");return null===ca?kg(n,void 0,t):ca.get(n,t&ve.Optional?null:void 0,t)}function G(n,t=ve.Default){return(function Y4(){return Nd}()||d3)(Se(n),t)}const Jl=G;function hh(n){const t=[];for(let e=0;e<n.length;e++){const r=Se(n[e]);if(Array.isArray(r)){if(0===r.length)throw new Y(900,"");let i,o=ve.Default;for(let s=0;s<r.length;s++){const a=r[s],l=h3(a);"number"==typeof l?-1===l?i=a.token:o|=l:i=a}t.push(G(i,o))}else t.push(G(r))}return t}function ua(n,t){return n[dh]=t,n.prototype[dh]=t,n}function h3(n){return n[dh]}const Xl=ua(qo("Optional"),8),ec=ua(qo("SkipSelf"),4);var Gn=(()=>((Gn=Gn||{})[Gn.Important=1]="Important",Gn[Gn.DashCase=2]="DashCase",Gn))();const I1="__ngContext__";function mn(n,t){n[I1]=t}function gh(n){const t=function ha(n){return n[I1]||null}(n);return t?Array.isArray(t)?t:t.lView:null}function _h(n,t){return undefined(n,t)}function fa(n){const t=n[3];return _r(t)?t[3]:t}function vh(n){return R1(n[13])}function wh(n){return R1(n[4])}function R1(n){for(;null!==n&&!_r(n);)n=n[4];return n}function Qo(n,t,e,r,i){if(null!=r){let o,s=!1;_r(r)?o=r:Fr(r)&&(s=!0,r=r[0]);const a=Rt(r);0===n&&null!==e?null==i?U1(t,e,a):eo(t,e,a,i||null,!0):1===n&&null!==e?eo(t,e,a,i||null,!0):2===n?function Th(n,t,e){const r=nc(n,t);r&&function U3(n,t,e,r){Mt(n)?n.removeChild(t,e,r):t.removeChild(e)}(n,r,t,e)}(t,a,s):3===n&&t.destroyNode(a),null!=o&&function W3(n,t,e,r,i){const o=e[7];o!==Rt(e)&&Qo(t,n,r,o,i);for(let a=10;a<e.length;a++){const l=e[a];pa(l[1],l,n,t,r,o)}}(t,n,o,e,i)}}function bh(n,t,e){if(Mt(n))return n.createElement(t,e);{const r=null!==e?function gb(n){const t=n.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(e):null;return null===r?n.createElement(t):n.createElementNS(r,t)}}function V1(n,t){const e=n[9],r=e.indexOf(t),i=t[3];1024&t[2]&&(t[2]&=-1025,qd(i,-1)),e.splice(r,1)}function Dh(n,t){if(n.length<=10)return;const e=10+t,r=n[e];if(r){const i=r[17];null!==i&&i!==n&&V1(i,r),t>0&&(n[e-1][4]=r[4]);const o=Zl(n,10+t);!function F3(n,t){pa(n,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);const s=o[19];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function B1(n,t){if(!(256&t[2])){const e=t[11];Mt(e)&&e.destroyNode&&pa(n,t,e,3,null,null),function $3(n){let t=n[13];if(!t)return Eh(n[1],n);for(;t;){let e=null;if(Fr(t))e=t[13];else{const r=t[10];r&&(e=r)}if(!e){for(;t&&!t[4]&&t!==n;)Fr(t)&&Eh(t[1],t),t=t[3];null===t&&(t=n),Fr(t)&&Eh(t[1],t),e=t&&t[4]}t=e}}(t)}}function Eh(n,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function H3(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let r=0;r<e.length;r+=2){const i=t[e[r]];if(!(i instanceof ta)){const o=e[r+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){const a=i[o[s]],l=o[s+1];try{l.call(a)}finally{}}else try{o.call(i)}finally{}}}}(n,t),function j3(n,t){const e=n.cleanup,r=t[7];let i=-1;if(null!==e)for(let o=0;o<e.length-1;o+=2)if("string"==typeof e[o]){const s=e[o+1],a="function"==typeof s?s(t):Rt(t[s]),l=r[i=e[o+2]],c=e[o+3];"boolean"==typeof c?a.removeEventListener(e[o],l,c):c>=0?r[i=c]():r[i=-c].unsubscribe(),o+=2}else{const s=r[i=e[o+1]];e[o].call(s)}if(null!==r){for(let o=i+1;o<r.length;o++)r[o]();t[7]=null}}(n,t),1===t[1].type&&Mt(t[11])&&t[11].destroy();const e=t[17];if(null!==e&&_r(t[3])){e!==t[3]&&V1(e,t);const r=t[19];null!==r&&r.detachView(n)}}}function j1(n,t,e){return function H1(n,t,e){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return e[0];if(2&r.flags){const i=n.data[r.directiveStart].encapsulation;if(i===gr.None||i===gr.Emulated)return null}return Hn(r,e)}(n,t.parent,e)}function eo(n,t,e,r,i){Mt(n)?n.insertBefore(t,e,r,i):t.insertBefore(e,r,i)}function U1(n,t,e){Mt(n)?n.appendChild(t,e):t.appendChild(e)}function z1(n,t,e,r,i){null!==r?eo(n,t,e,r,i):U1(n,t,e)}function nc(n,t){return Mt(n)?n.parentNode(t):t.parentNode}function G1(n,t,e){return q1(n,t,e)}let oc,sc,q1=function W1(n,t,e){return 40&n.type?Hn(n,e):null};function rc(n,t,e,r){const i=j1(n,r,t),o=t[11],a=G1(r.parent||t[6],r,t);if(null!=i)if(Array.isArray(e))for(let l=0;l<e.length;l++)z1(o,i,e[l],a,!1);else z1(o,i,e,a,!1)}function ic(n,t){if(null!==t){const e=t.type;if(3&e)return Hn(t,n);if(4&e)return Sh(-1,n[t.index]);if(8&e){const r=t.child;if(null!==r)return ic(n,r);{const i=n[t.index];return _r(i)?Sh(-1,i):Rt(i)}}if(32&e)return _h(t,n)()||Rt(n[t.index]);{const r=Z1(n,t);return null!==r?Array.isArray(r)?r[0]:ic(fa(n[16]),r):ic(n,t.next)}}return null}function Z1(n,t){return null!==t?n[16][6].projection[t.projection]:null}function Sh(n,t){const e=10+n+1;if(e<t.length){const r=t[e],i=r[1].firstChild;if(null!==i)return ic(r,i)}return t[7]}function Ah(n,t,e,r,i,o,s){for(;null!=e;){const a=r[e.index],l=e.type;if(s&&0===t&&(a&&mn(Rt(a),r),e.flags|=4),64!=(64&e.flags))if(8&l)Ah(n,t,e.child,r,i,o,!1),Qo(t,n,i,a,o);else if(32&l){const c=_h(e,r);let u;for(;u=c();)Qo(t,n,i,u,o);Qo(t,n,i,a,o)}else 16&l?Q1(n,t,r,e,i,o):Qo(t,n,i,a,o);e=s?e.projectionNext:e.next}}function pa(n,t,e,r,i,o){Ah(e,r,n.firstChild,t,i,o,!1)}function Q1(n,t,e,r,i,o){const s=e[16],l=s[6].projection[r.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)Qo(t,n,i,l[c],o);else Ah(n,t,l,s[3],i,o,!0)}function Y1(n,t,e){Mt(n)?n.setAttribute(t,"style",e):t.style.cssText=e}function xh(n,t,e){Mt(n)?""===e?n.removeAttribute(t,"class"):n.setAttribute(t,"class",e):t.className=e}function to(n){var t;return(null===(t=function Ih(){if(void 0===oc&&(oc=null,Ze.trustedTypes))try{oc=Ze.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return oc}())||void 0===t?void 0:t.createHTML(n))||n}function J1(n){var t;return(null===(t=function Ph(){if(void 0===sc&&(sc=null,Ze.trustedTypes))try{sc=Ze.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return sc}())||void 0===t?void 0:t.createHTML(n))||n}class no{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Y3 extends no{getTypeName(){return"HTML"}}class J3 extends no{getTypeName(){return"Style"}}class X3 extends no{getTypeName(){return"Script"}}class e5 extends no{getTypeName(){return"URL"}}class t5 extends no{getTypeName(){return"ResourceURL"}}function Wn(n){return n instanceof no?n.changingThisBreaksApplicationSecurity:n}function Vr(n,t){const e=t0(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}function t0(n){return n instanceof no&&n.getTypeName()||null}class a5{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(to(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class l5{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const r=this.inertDocument.createElement("body");e.appendChild(r)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=to(t),e;const r=this.inertDocument.createElement("body");return r.innerHTML=to(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0<i;i--){const s=e.item(i).name;("xmlns:ns1"===s||0===s.indexOf("ns1:"))&&t.removeAttribute(s)}let r=t.firstChild;for(;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}const u5=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,d5=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function ma(n){return(n=String(n)).match(u5)||n.match(d5)?n:"unsafe:"+n}function Br(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function ga(...n){const t={};for(const e of n)for(const r in e)e.hasOwnProperty(r)&&(t[r]=!0);return t}const o0=Br("area,br,col,hr,img,wbr"),s0=Br("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),a0=Br("rp,rt"),kh=ga(o0,ga(s0,Br("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")),ga(a0,Br("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")),ga(a0,s0)),Nh=Br("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Oh=Br("srcset"),l0=ga(Nh,Oh,Br("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Br("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")),h5=Br("script,style,template");class f5{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,r=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?r=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,r&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let i=this.checkClobberedElement(e,e.nextSibling);if(i){e=i;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!kh.hasOwnProperty(e))return this.sanitizedSomething=!0,!h5.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const r=t.attributes;for(let i=0;i<r.length;i++){const o=r.item(i),s=o.name,a=s.toLowerCase();if(!l0.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=o.value;Nh[a]&&(l=ma(l)),Oh[a]&&(n=l,l=(n=String(n)).split(",").map(t=>ma(t.trim())).join(", ")),this.buf.push(" ",s,'="',c0(l),'"')}var n;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();kh.hasOwnProperty(e)&&!o0.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(c0(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const p5=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,m5=/([^\#-~ |!])/g;function c0(n){return n.replace(/&/g,"&amp;").replace(p5,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(m5,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let ac;function u0(n,t){let e=null;try{ac=ac||function n0(n){const t=new l5(n);return function c5(){try{return!!(new window.DOMParser).parseFromString(to(""),"text/html")}catch(n){return!1}}()?new a5(t):t}(n);let r=t?String(t):"";e=ac.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=e.innerHTML,e=ac.getInertBodyElement(r)}while(r!==o);return to((new f5).sanitizeChildren(Fh(e)||e))}finally{if(e){const r=Fh(e)||e;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Fh(n){return"content"in n&&function g5(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var tt=(()=>((tt=tt||{})[tt.NONE=0]="NONE",tt[tt.HTML=1]="HTML",tt[tt.STYLE=2]="STYLE",tt[tt.SCRIPT=3]="SCRIPT",tt[tt.URL=4]="URL",tt[tt.RESOURCE_URL=5]="RESOURCE_URL",tt))();function Lh(n){const t=ya();return t?J1(t.sanitize(tt.HTML,n)||""):Vr(n,"HTML")?J1(Wn(n)):u0(zd(),ge(n))}function Yo(n){const t=ya();return t?t.sanitize(tt.URL,n)||"":Vr(n,"URL")?Wn(n):ma(ge(n))}function ya(){const n=k();return n&&n[12]}function $h(n){return n.ngOriginalError}function S5(n,...t){n.error(...t)}class _a{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),r=function M5(n){return n&&n.ngErrorLogger||S5}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&$h(t);for(;e&&$h(e);)e=$h(e);return e||null}}const N5=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ze))();function h0(n){return n.ownerDocument.defaultView}function f0(n){return n.ownerDocument}function jr(n){return n instanceof Function?n():n}function m0(n,t,e){let r=n.length;for(;;){const i=n.indexOf(t,e);if(-1===i)return i;if(0===i||n.charCodeAt(i-1)<=32){const o=t.length;if(i+o===r||n.charCodeAt(i+o)<=32)return i}e=i+1}}const g0="ng-template";function F5(n,t,e){let r=0;for(;r<n.length;){let i=n[r++];if(e&&"class"===i){if(i=n[r],-1!==m0(i.toLowerCase(),t,0))return!0}else if(1===i){for(;r<n.length&&"string"==typeof(i=n[r++]);)if(i.toLowerCase()===t)return!0;return!1}}return!1}function y0(n){return 4===n.type&&n.value!==g0}function L5(n,t,e){return t===(4!==n.type||e?n.value:g0)}function R5(n,t,e){let r=4;const i=n.attrs||[],o=function B5(n){for(let t=0;t<n.length;t++)if(i1(n[t]))return t;return n.length}(i);let s=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!s)if(4&r){if(r=2|1&r,""!==l&&!L5(n,l,e)||""===l&&1===t.length){if(wr(r))return!1;s=!0}}else{const c=8&r?l:t[++a];if(8&r&&null!==n.attrs){if(!F5(n.attrs,c,e)){if(wr(r))return!1;s=!0}continue}const d=$5(8&r?"class":l,i,y0(n),e);if(-1===d){if(wr(r))return!1;s=!0;continue}if(""!==c){let f;f=d>o?"":i[d+1].toLowerCase();const p=8&r?f:null;if(p&&-1!==m0(p,c,0)||2&r&&c!==f){if(wr(r))return!1;s=!0}}}}else{if(!s&&!wr(r)&&!wr(l))return!1;if(s&&wr(l))continue;s=!1,r=l|1&r}}return wr(r)||s}function wr(n){return 0==(1&n)}function $5(n,t,e,r){if(null===t)return-1;let i=0;if(r||!e){let o=!1;for(;i<t.length;){const s=t[i];if(s===n)return i;if(3===s||6===s)o=!0;else{if(1===s||2===s){let a=t[++i];for(;"string"==typeof a;)a=t[++i];continue}if(4===s)break;if(0===s){i+=4;continue}}i+=o?1:2}return-1}return function j5(n,t){let e=n.indexOf(4);if(e>-1)for(e++;e<n.length;){const r=n[e];if("number"==typeof r)return-1;if(r===t)return e;e++}return-1}(t,n)}function _0(n,t,e=!1){for(let r=0;r<t.length;r++)if(R5(n,t[r],e))return!0;return!1}function H5(n,t){e:for(let e=0;e<t.length;e++){const r=t[e];if(n.length===r.length){for(let i=0;i<n.length;i++)if(n[i]!==r[i])continue e;return!0}}return!1}function v0(n,t){return n?":not("+t.trim()+")":t}function U5(n){let t=n[0],e=1,r=2,i="",o=!1;for(;e<n.length;){let s=n[e];if("string"==typeof s)if(2&r){const a=n[++e];i+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!wr(s)&&(t+=v0(o,i),i=""),r=s,o=o||!wr(r);e++}return""!==i&&(t+=v0(o,i)),t}const _e={};function O(n){w0(Fe(),k(),En()+n,!1)}function w0(n,t,e,r){if(!r)if(3==(3&t[2])){const o=n.preOrderCheckHooks;null!==o&&jl(t,o,e)}else{const o=n.preOrderHooks;null!==o&&Hl(t,o,0,e)}Ii(e)}function lc(n,t){return n<<17|t<<2}function Cr(n){return n>>17&32767}function Vh(n){return 2|n}function li(n){return(131068&n)>>2}function Bh(n,t){return-131069&n|t<<2}function jh(n){return 1|n}function P0(n,t){const e=n.contentQueries;if(null!==e)for(let r=0;r<e.length;r+=2){const i=e[r],o=e[r+1];if(-1!==o){const s=n.data[o];Jd(i),s.contentQueries(2,t[o],o)}}}function va(n,t,e,r,i,o,s,a,l,c){const u=t.blueprint.slice();return u[0]=i,u[2]=140|r,Gg(u),u[3]=u[15]=n,u[8]=e,u[10]=s||n&&n[10],u[11]=a||n&&n[11],u[12]=l||n&&n[12]||null,u[9]=c||n&&n[9]||null,u[6]=o,u[16]=2==t.type?n[16]:u,u}function Xo(n,t,e,r,i){let o=n.data[t];if(null===o)o=function Qh(n,t,e,r,i){const o=Kg(),s=Kd(),l=n.data[t]=function a6(n,t,e,r,i,o){return{type:e,index:r,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?o:o&&o.parent,e,t,r,i);return null===n.firstChild&&(n.firstChild=l),null!==o&&(s?null==o.child&&null!==l.parent&&(o.child=l):null===o.next&&(o.next=l)),l}(n,t,e,r,i),function Ab(){return ye.lFrame.inI18n}()&&(o.flags|=64);else if(64&o.type){o.type=e,o.value=r,o.attrs=i;const s=function ea(){const n=ye.lFrame,t=n.currentTNode;return n.isParent?t:t.parent}();o.injectorIndex=null===s?-1:s.injectorIndex}return Rr(o,!0),o}function es(n,t,e,r){if(0===e)return-1;const i=t.length;for(let o=0;o<e;o++)t.push(r),n.blueprint.push(r),n.data.push(null);return i}function wa(n,t,e){$l(t);try{const r=n.viewQuery;null!==r&&sf(1,r,e);const i=n.template;null!==i&&k0(n,t,i,1,e),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&P0(n,t),n.staticViewQueries&&sf(2,n.viewQuery,e);const o=n.components;null!==o&&function i6(n,t){for(let e=0;e<t.length;e++)M6(n,t[e])}(t,o)}catch(r){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),r}finally{t[2]&=-5,Vl()}}function ts(n,t,e,r){const i=t[2];if(256!=(256&i)){$l(t);try{Gg(t),function Zg(n){return ye.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==e&&k0(n,t,e,2,r);const s=3==(3&i);if(s){const c=n.preOrderCheckHooks;null!==c&&jl(t,c,null)}else{const c=n.preOrderHooks;null!==c&&Hl(t,c,0,null),Xd(t,0)}if(function D6(n){for(let t=vh(n);null!==t;t=wh(t)){if(!t[2])continue;const e=t[9];for(let r=0;r<e.length;r++){const i=e[r],o=i[3];0==(1024&i[2])&&qd(o,1),i[2]|=1024}}}(t),function b6(n){for(let t=vh(n);null!==t;t=wh(t))for(let e=10;e<t.length;e++){const r=t[e],i=r[1];Wd(r)&&ts(i,r,i.template,r[8])}}(t),null!==n.contentQueries&&P0(n,t),s){const c=n.contentCheckHooks;null!==c&&jl(t,c)}else{const c=n.contentHooks;null!==c&&Hl(t,c,1),Xd(t,1)}!function n6(n,t){const e=n.hostBindingOpCodes;if(null!==e)try{for(let r=0;r<e.length;r++){const i=e[r];if(i<0)Ii(~i);else{const o=i,s=e[++r],a=e[++r];xb(s,o),a(2,t[o])}}}finally{Ii(-1)}}(n,t);const a=n.components;null!==a&&function r6(n,t){for(let e=0;e<t.length;e++)E6(n,t[e])}(t,a);const l=n.viewQuery;if(null!==l&&sf(2,l,r),s){const c=n.viewCheckHooks;null!==c&&jl(t,c)}else{const c=n.viewHooks;null!==c&&Hl(t,c,2),Xd(t,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),t[2]&=-73,1024&t[2]&&(t[2]&=-1025,qd(t[3],-1))}finally{Vl()}}}function o6(n,t,e,r){const i=t[10],s=zg(t);try{!s&&i.begin&&i.begin(),s&&wa(n,t,r),ts(n,t,e,r)}finally{!s&&i.end&&i.end()}}function k0(n,t,e,r,i){const o=En(),s=2&r;try{Ii(-1),s&&t.length>20&&w0(n,t,20,!1),e(r,i)}finally{Ii(o)}}function N0(n,t,e){if($d(t)){const i=t.directiveEnd;for(let o=t.directiveStart;o<i;o++){const s=n.data[o];s.contentQueries&&s.contentQueries(1,e[o],o)}}}function Yh(n,t,e){!qg()||(function p6(n,t,e,r){const i=e.directiveStart,o=e.directiveEnd;n.firstCreatePass||ra(e,t),mn(r,t);const s=e.initialInputs;for(let a=i;a<o;a++){const l=n.data[a],c=vr(l);c&&v6(t,e,l);const u=ia(t,n,a,e);mn(u,t),null!==s&&w6(0,a-i,u,l,0,s),c&&(Un(e.index,t)[8]=u)}}(n,t,e,Hn(e,t)),128==(128&e.flags)&&function m6(n,t,e){const r=e.directiveStart,i=e.directiveEnd,s=e.index,a=function Ib(){return ye.lFrame.currentDirectiveIndex}();try{Ii(s);for(let l=r;l<i;l++){const c=n.data[l],u=t[l];Qd(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&j0(c,u)}}finally{Ii(-1),Qd(a)}}(n,t,e))}function Jh(n,t,e=Hn){const r=t.localNames;if(null!==r){let i=t.index+1;for(let o=0;o<r.length;o+=2){const s=r[o+1],a=-1===s?e(t,n):n[s];n[i++]=a}}}function O0(n){const t=n.tView;return null===t||t.incompleteFirstPass?n.tView=dc(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):t}function dc(n,t,e,r,i,o,s,a,l,c){const u=20+r,d=u+i,f=function s6(n,t){const e=[];for(let r=0;r<t;r++)e.push(r<n?null:_e);return e}(u,d),p="function"==typeof c?c():c;return f[1]={type:n,blueprint:f,template:e,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,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:l,consts:p,incompleteFirstPass:!1}}function R0(n,t,e,r){const i=q0(t);null===e?i.push(r):(i.push(e),n.firstCreatePass&&K0(n).push(r,i.length-1))}function $0(n,t,e){for(let r in n)if(n.hasOwnProperty(r)){const i=n[r];(e=null===e?{}:e).hasOwnProperty(r)?e[r].push(t,i):e[r]=[t,i]}return e}function qn(n,t,e,r,i,o,s,a){const l=Hn(t,e);let u,c=t.inputs;!a&&null!=c&&(u=c[r])?(Y0(n,e,u,r,i),Ol(t)&&function u6(n,t){const e=Un(t,n);16&e[2]||(e[2]|=64)}(e,t.index)):3&t.type&&(r=function c6(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(r),i=null!=s?s(i,t.value||"",r):i,Mt(o)?o.setProperty(l,r,i):th(r)||(l.setProperty?l.setProperty(r,i):l[r]=i))}function Xh(n,t,e,r){let i=!1;if(qg()){const o=function g6(n,t,e){const r=n.directiveRegistry;let i=null;if(r)for(let o=0;o<r.length;o++){const s=r[o];_0(e,s.selectors,!1)&&(i||(i=[]),ql(ra(e,t),n,s.type),vr(s)?(H0(n,e),i.unshift(s)):i.push(s))}return i}(n,t,e),s=null===r?null:{"":-1};if(null!==o){i=!0,U0(e,n.data.length,o.length);for(let u=0;u<o.length;u++){const d=o[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=es(n,t,o.length,null);for(let u=0;u<o.length;u++){const d=o[u];e.mergedAttrs=zl(e.mergedAttrs,d.hostAttrs),z0(n,e,t,c,d),_6(c,d,s),null!==d.contentQueries&&(e.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(e.flags|=128);const f=d.type.prototype;!a&&(f.ngOnChanges||f.ngOnInit||f.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e.index),a=!0),!l&&(f.ngOnChanges||f.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e.index),l=!0),c++}!function l6(n,t){const r=t.directiveEnd,i=n.data,o=t.attrs,s=[];let a=null,l=null;for(let c=t.directiveStart;c<r;c++){const u=i[c],d=u.inputs,f=null===o||y0(t)?null:C6(d,o);s.push(f),a=$0(d,c,a),l=$0(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(t.flags|=16),a.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=s,t.inputs=a,t.outputs=l}(n,e)}s&&function y6(n,t,e){if(t){const r=n.localNames=[];for(let i=0;i<t.length;i+=2){const o=e[t[i+1]];if(null==o)throw new Y(-301,!1);r.push(t[i],o)}}}(e,r,s)}return e.mergedAttrs=zl(e.mergedAttrs,e.attrs),i}function B0(n,t,e,r,i,o){const s=o.hostBindings;if(s){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~t.index;(function f6(n){let t=n.length;for(;t>0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(r,i,s)}}function j0(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function H0(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function _6(n,t,e){if(e){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)e[t.exportAs[r]]=n;vr(t)&&(e[""]=n)}}function U0(n,t,e){n.flags|=1,n.directiveStart=t,n.directiveEnd=t+e,n.providerIndexes=t}function z0(n,t,e,r,i){n.data[r]=i;const o=i.factory||(i.factory=Xi(i.type)),s=new ta(o,vr(i),null);n.blueprint[r]=s,e[r]=s,B0(n,t,0,r,es(n,e,i.hostVars,_e),i)}function v6(n,t,e){const r=Hn(t,n),i=O0(e),o=n[10],s=hc(n,va(n,i,null,e.onPush?64:16,r,t,o,o.createRenderer(r,e),null,null));n[t.index]=s}function Hr(n,t,e,r,i,o){const s=Hn(n,t);!function ef(n,t,e,r,i,o,s){if(null==o)Mt(n)?n.removeAttribute(t,i,e):t.removeAttribute(i);else{const a=null==s?ge(o):s(o,r||"",i);Mt(n)?n.setAttribute(t,i,a,e):e?t.setAttributeNS(e,i,a):t.setAttribute(i,a)}}(t[11],s,o,n.value,e,r,i)}function w6(n,t,e,r,i,o){const s=o[t];if(null!==s){const a=r.setInput;for(let l=0;l<s.length;){const c=s[l++],u=s[l++],d=s[l++];null!==a?r.setInput(e,d,c,u):e[u]=d}}}function C6(n,t){let e=null,r=0;for(;r<t.length;){const i=t[r];if(0!==i)if(5!==i){if("number"==typeof i)break;n.hasOwnProperty(i)&&(null===e&&(e=[]),e.push(i,n[i],t[r+1])),r+=2}else r+=2;else r+=4}return e}function G0(n,t,e,r){return new Array(n,!0,!1,t,null,0,r,e,null,null)}function E6(n,t){const e=Un(t,n);if(Wd(e)){const r=e[1];80&e[2]?ts(r,e,r.template,e[8]):e[5]>0&&tf(e)}}function tf(n){for(let r=vh(n);null!==r;r=wh(r))for(let i=10;i<r.length;i++){const o=r[i];if(1024&o[2]){const s=o[1];ts(s,o,s.template,o[8])}else o[5]>0&&tf(o)}const e=n[1].components;if(null!==e)for(let r=0;r<e.length;r++){const i=Un(e[r],n);Wd(i)&&i[5]>0&&tf(i)}}function M6(n,t){const e=Un(t,n),r=e[1];(function S6(n,t){for(let e=t.length;e<n.blueprint.length;e++)t.push(n.blueprint[e])})(r,e),wa(r,e,e[8])}function hc(n,t){return n[13]?n[14][4]=t:n[13]=t,n[14]=t,t}function nf(n){for(;n;){n[2]|=64;const t=fa(n);if(ab(n)&&!t)return n;n=t}return null}function W0(n){!function rf(n){for(let t=0;t<n.components.length;t++){const e=n.components[t],r=gh(e),i=r[1];o6(i,r,i.template,e)}}(n[8])}function sf(n,t,e){Jd(0),t(n,e)}const A6=(()=>Promise.resolve(null))();function q0(n){return n[7]||(n[7]=[])}function K0(n){return n.cleanup||(n.cleanup=[])}function Q0(n,t){const e=n[9],r=e?e.get(_a,null):null;r&&r.handleError(t)}function Y0(n,t,e,r,i){for(let o=0;o<e.length;){const s=e[o++],a=e[o++],l=t[s],c=n.data[s];null!==c.setInput?c.setInput(l,i,r,a):l[a]=i}}function ci(n,t,e){const r=Ll(t,n);!function $1(n,t,e){Mt(n)?n.setValue(t,e):t.textContent=e}(n[11],r,e)}function fc(n,t,e){let r=e?n.styles:null,i=e?n.classes:null,o=0;if(null!==t)for(let s=0;s<t.length;s++){const a=t[s];"number"==typeof a?o=a:1==o?i=xd(i,a):2==o&&(r=xd(r,a+": "+t[++s]+";"))}e?n.styles=r:n.stylesWithoutHost=r,e?n.classes=i:n.classesWithoutHost=i}const af=new ae("INJECTOR",-1);class J0{get(t,e=la){if(e===la){const r=new Error(`NullInjectorError: No provider for ${qe(t)}!`);throw r.name="NullInjectorError",r}return e}}const lf=new ae("Set Injector scope."),Ca={},P6={};let cf;function X0(){return void 0===cf&&(cf=new J0),cf}function ey(n,t=null,e=null,r){const i=ty(n,t,e,r);return i._resolveInjectorDefTypes(),i}function ty(n,t=null,e=null,r){return new k6(n,e,t||X0(),r)}class k6{constructor(t,e,r,i=null){this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const o=[];e&&$r(e,a=>this.processProvider(a,t,e)),$r([t],a=>this.processInjectorType(a,[],o)),this.records.set(af,ns(void 0,this));const s=this.records.get(lf);this.scope=null!=s?s.value:null,this.source=i||("object"==typeof t?null:qe(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=la,r=ve.Default){this.assertNotDestroyed();const i=b1(this),o=Si(void 0);try{if(!(r&ve.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function B6(n){return"function"==typeof n||"object"==typeof n&&n instanceof ae}(t)&&Pd(t);a=l&&this.injectableDefInScope(l)?ns(uf(t),Ca):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&ve.Self?X0():this.parent).get(t,e=r&ve.Optional&&e===la?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Yl]=s[Yl]||[]).unshift(qe(t)),i)throw s;return function f3(n,t,e,r){const i=n[Yl];throw t[C1]&&i.unshift(t[C1]),n.message=function p3(n,t,e,r=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let i=qe(t);if(Array.isArray(t))i=t.map(qe).join(" -> ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):qe(a)))}i=`{${o.join(", ")}}`}return`${e}${r?"("+r+")":""}[${i}]: ${n.replace(l3,"\n ")}`}("\n"+n.message,i,e,r),n.ngTokenPath=i,n[Yl]=null,n}(s,t,"R3InjectorError",this.source)}throw s}finally{Si(o),b1(i)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((r,i)=>t.push(qe(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Y(205,!1)}processInjectorType(t,e,r){if(!(t=Se(t)))return!1;let i=Ig(t);const o=null==i&&t.ngModule||void 0,s=void 0===o?t:o,a=-1!==r.indexOf(s);if(void 0!==o&&(i=Ig(o)),null==i)return!1;if(null!=i.imports&&!a){let u;r.push(s);try{$r(i.imports,d=>{this.processInjectorType(d,e,r)&&(void 0===u&&(u=[]),u.push(d))})}finally{}if(void 0!==u)for(let d=0;d<u.length;d++){const{ngModule:f,providers:p}=u[d];$r(p,y=>this.processProvider(y,f,p||et))}}this.injectorDefTypes.add(s);const l=Xi(s)||(()=>new s);this.records.set(s,ns(l,Ca));const c=i.providers;if(null!=c&&!a){const u=t;$r(c,d=>this.processProvider(d,u,c))}return void 0!==o&&void 0!==t.providers}processProvider(t,e,r){let i=rs(t=Se(t))?t:Se(t&&t.provide);const o=function O6(n,t,e){return ry(n)?ns(void 0,n.useValue):ns(ny(n),Ca)}(t);if(rs(t)||!0!==t.multi)this.records.get(i);else{let s=this.records.get(i);s||(s=ns(void 0,Ca,!0),s.factory=()=>hh(s.multi),this.records.set(i,s)),i=t,s.multi.push(t)}this.records.set(i,o)}hydrate(t,e){return e.value===Ca&&(e.value=P6,e.value=e.factory()),"object"==typeof e.value&&e.value&&function V6(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=Se(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function uf(n){const t=Pd(n),e=null!==t?t.factory:Xi(n);if(null!==e)return e;if(n instanceof ae)throw new Y(204,!1);if(n instanceof Function)return function N6(n){const t=n.length;if(t>0)throw aa(t,"?"),new Y(204,!1);const e=function K4(n){const t=n&&(n[xl]||n[Pg]);if(t){const e=function Z4(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new Y(204,!1)}function ny(n,t,e){let r;if(rs(n)){const i=Se(n);return Xi(i)||uf(i)}if(ry(n))r=()=>Se(n.useValue);else if(function L6(n){return!(!n||!n.useFactory)}(n))r=()=>n.useFactory(...hh(n.deps||[]));else if(function F6(n){return!(!n||!n.useExisting)}(n))r=()=>G(Se(n.useExisting));else{const i=Se(n&&(n.useClass||n.provide));if(!function $6(n){return!!n.deps}(n))return Xi(i)||uf(i);r=()=>new i(...hh(n.deps))}return r}function ns(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function ry(n){return null!==n&&"object"==typeof n&&u3 in n}function rs(n){return"function"==typeof n}let St=(()=>{class n{static create(e,r){var i;if(Array.isArray(e))return ey({name:""},r,e,"");{const o=null!==(i=e.name)&&void 0!==i?i:"";return ey({name:o},e.parent,e.providers,o)}}}return n.THROW_IF_NOT_FOUND=la,n.NULL=new J0,n.\u0275prov=se({token:n,providedIn:"any",factory:()=>G(af)}),n.__NG_ELEMENT_ID__=-1,n})();function K6(n,t){Bl(gh(n)[1],Wt())}function Le(n){let t=function my(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),e=!0;const r=[n];for(;t;){let i;if(vr(n))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Y(903,"");i=t.\u0275dir}if(i){if(e){r.push(i);const s=n;s.inputs=ff(n.inputs),s.declaredInputs=ff(n.declaredInputs),s.outputs=ff(n.outputs);const a=i.hostBindings;a&&J6(n,a);const l=i.viewQuery,c=i.contentQueries;if(l&&Q6(n,l),c&&Y6(n,c),Ad(n.inputs,i.inputs),Ad(n.declaredInputs,i.declaredInputs),Ad(n.outputs,i.outputs),vr(i)&&i.data.animation){const u=n.data;u.animation=(u.animation||[]).concat(i.data.animation)}}const o=i.features;if(o)for(let s=0;s<o.length;s++){const a=o[s];a&&a.ngInherit&&a(n),a===Le&&(e=!1)}}t=Object.getPrototypeOf(t)}!function Z6(n){let t=0,e=null;for(let r=n.length-1;r>=0;r--){const i=n[r];i.hostVars=t+=i.hostVars,i.hostAttrs=zl(i.hostAttrs,e=zl(e,i.hostAttrs))}}(r)}function ff(n){return n===Oo?{}:n===et?[]:n}function Q6(n,t){const e=n.viewQuery;n.viewQuery=e?(r,i)=>{t(r,i),e(r,i)}:t}function Y6(n,t){const e=n.contentQueries;n.contentQueries=e?(r,i,o)=>{t(r,i,o),e(r,i,o)}:t}function J6(n,t){const e=n.hostBindings;n.hostBindings=e?(r,i)=>{t(r,i),e(r,i)}:t}let pc=null;function is(){if(!pc){const n=Ze.Symbol;if(n&&n.iterator)pc=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const r=t[e];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(pc=r)}}}return pc}function ba(n){return!!function pf(n){return null!==n&&("function"==typeof n||"object"==typeof n)}(n)&&(Array.isArray(n)||!(n instanceof Map)&&is()in n)}function Ur(n,t,e){return n[t]=e}function gn(n,t,e){return!Object.is(n[t],e)&&(n[t]=e,!0)}function ro(n,t,e,r){const i=gn(n,t,e);return gn(n,t+1,r)||i}function yn(n,t,e,r){const i=k();return gn(i,Bo(),t)&&(Fe(),Hr(pt(),i,n,t,e,r)),yn}function J(n,t,e,r,i,o,s,a){const l=k(),c=Fe(),u=n+20,d=c.firstCreatePass?function o9(n,t,e,r,i,o,s,a,l){const c=t.consts,u=Xo(t,n,4,s||null,xi(c,a));Xh(t,e,u,xi(c,l)),Bl(t,u);const d=u.tViews=dc(2,u,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c);return null!==t.queries&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}(u,c,l,t,e,r,i,o,s):c.data[u];Rr(d,!1);const f=l[11].createComment("");rc(c,l,f,d),mn(f,l),hc(l,l[u]=G0(f,l,f,d)),Fl(d)&&Yh(c,l,d),null!=s&&Jh(l,d,a)}function io(n){return Vo(function Tb(){return ye.lFrame.contextLView}(),20+n)}function I(n,t=ve.Default){const e=k();return null===e?G(n,t):d1(Wt(),e,Se(n),t)}function R(n,t,e){const r=k();return gn(r,Bo(),t)&&qn(Fe(),pt(),r,n,t,r[11],e,!1),R}function vf(n,t,e,r,i){const s=i?"class":"style";Y0(n,e,t.inputs[s],s,r)}function j(n,t,e,r){const i=k(),o=Fe(),s=20+n,a=i[11],l=i[s]=bh(a,t,function $b(){return ye.lFrame.currentNamespace}()),c=o.firstCreatePass?function T9(n,t,e,r,i,o,s){const a=t.consts,c=Xo(t,n,2,i,xi(a,o));return Xh(t,e,c,xi(a,s)),null!==c.attrs&&fc(c,c.attrs,!1),null!==c.mergedAttrs&&fc(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(s,o,i,0,t,e,r):o.data[s];Rr(c,!0);const u=c.mergedAttrs;null!==u&&Ul(a,l,u);const d=c.classes;null!==d&&xh(a,l,d);const f=c.styles;return null!==f&&Y1(a,l,f),64!=(64&c.flags)&&rc(o,i,l,c),0===function bb(){return ye.lFrame.elementDepthCount}()&&mn(l,i),function Db(){ye.lFrame.elementDepthCount++}(),Fl(c)&&(Yh(o,i,c),N0(o,c,i)),null!==r&&Jh(i,c),j}function U(){let n=Wt();Kd()?Zd():(n=n.parent,Rr(n,!1));const t=n;!function Eb(){ye.lFrame.elementDepthCount--}();const e=Fe();return e.firstCreatePass&&(Bl(e,n),$d(n)&&e.queries.elementEnd(n)),null!=t.classesWithoutHost&&function Ub(n){return 0!=(16&n.flags)}(t)&&vf(e,t,k(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function zb(n){return 0!=(32&n.flags)}(t)&&vf(e,t,k(),t.stylesWithoutHost,!1),U}function je(n,t,e,r){return j(n,t,e,r),U(),je}function Kt(n,t,e){const r=k(),i=Fe(),o=n+20,s=i.firstCreatePass?function A9(n,t,e,r,i){const o=t.consts,s=xi(o,r),a=Xo(t,n,8,"ng-container",s);return null!==s&&fc(a,s,!0),Xh(t,e,a,xi(o,i)),null!==t.queries&&t.queries.elementStart(t,a),a}(o,i,r,t,e):i.data[o];Rr(s,!0);const a=r[o]=r[11].createComment("");return rc(i,r,a,s),mn(a,r),Fl(s)&&(Yh(i,r,s),N0(i,s,r)),null!=e&&Jh(r,s),Kt}function Zt(){let n=Wt();const t=Fe();return Kd()?Zd():(n=n.parent,Rr(n,!1)),t.firstCreatePass&&(Bl(t,n),$d(n)&&t.queries.elementEnd(n)),Zt}function yc(n,t,e){return Kt(n,t,e),Zt(),yc}function Sn(){return k()}function _c(n){return!!n&&"function"==typeof n.then}function Fy(n){return!!n&&"function"==typeof n.subscribe}const Ly=Fy;function ke(n,t,e,r){const i=k(),o=Fe(),s=Wt();return function $y(n,t,e,r,i,o,s,a){const l=Fl(r),u=n.firstCreatePass&&K0(n),d=t[8],f=q0(t);let p=!0;if(3&r.type||a){const b=Hn(r,t),S=a?a(b):b,E=f.length,F=a?z=>a(Rt(z[r.index])):r.index;if(Mt(e)){let z=null;if(!a&&l&&(z=function x9(n,t,e,r){const i=n.cleanup;if(null!=i)for(let o=0;o<i.length-1;o+=2){const s=i[o];if(s===e&&i[o+1]===r){const a=t[7],l=i[o+2];return a.length>l?a[l]:null}"string"==typeof s&&(o+=2)}return null}(n,t,i,r.index)),null!==z)(z.__ngLastListenerFn__||z).__ngNextListenerFn__=o,z.__ngLastListenerFn__=o,p=!1;else{o=wf(r,t,d,o,!1);const ie=e.listen(S,i,o);f.push(o,ie),u&&u.push(i,F,E,E+1)}}else o=wf(r,t,d,o,!0),S.addEventListener(i,o,s),f.push(o),u&&u.push(i,F,E,s)}else o=wf(r,t,d,o,!1);const y=r.outputs;let w;if(p&&null!==y&&(w=y[i])){const b=w.length;if(b)for(let S=0;S<b;S+=2){const Z=t[w[S]][w[S+1]].subscribe(o),Q=f.length;f.push(o,Z),u&&u.push(i,r.index,Q,-(Q+1))}}}(o,i,i[11],s,n,t,!!e,r),ke}function Vy(n,t,e,r){try{return!1!==e(r)}catch(i){return Q0(n,i),!1}}function wf(n,t,e,r,i){return function o(s){if(s===Function)return r;const a=2&n.flags?Un(n.index,t):t;0==(32&t[2])&&nf(a);let l=Vy(t,0,r,s),c=o.__ngNextListenerFn__;for(;c;)l=Vy(t,0,c,s)&&l,c=c.__ngNextListenerFn__;return i&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function ne(n=1){return function kb(n){return(ye.lFrame.contextLView=function Nb(n,t){for(;n>0;)t=t[15],n--;return t}(n,ye.lFrame.contextLView))[8]}(n)}function I9(n,t){let e=null;const r=function V5(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(n);for(let i=0;i<t.length;i++){const o=t[i];if("*"!==o){if(null===r?_0(n,o,!0):H5(r,o))return i}else e=i}return e}function Cf(n,t=0,e){const r=k(),i=Fe(),o=Xo(i,20+n,16,null,e||null);null===o.projection&&(o.projection=t),Zd(),64!=(64&o.flags)&&function G3(n,t,e){Q1(t[11],0,t,e,j1(n,e,t),G1(e.parent||t[6],e,t))}(i,r,o)}function Qy(n,t,e,r,i){const o=n[e+1],s=null===t;let a=r?Cr(o):li(o),l=!1;for(;0!==a&&(!1===l||s);){const u=n[a+1];N9(n[a],t)&&(l=!0,n[a+1]=r?jh(u):Vh(u)),a=r?Cr(u):li(u)}l&&(n[e+1]=r?Vh(o):jh(o))}function N9(n,t){return null===n||null==t||(Array.isArray(n)?n[1]:n)===t||!(!Array.isArray(n)||"string"!=typeof t)&&Ko(n,t)>=0}const Qt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Yy(n){return n.substring(Qt.key,Qt.keyEnd)}function Jy(n,t){const e=Qt.textEnd;return e===t?-1:(t=Qt.keyEnd=function R9(n,t,e){for(;t<e&&n.charCodeAt(t)>32;)t++;return t}(n,Qt.key=t,e),ms(n,t,e))}function ms(n,t,e){for(;t<e&&n.charCodeAt(t)<=32;)t++;return t}function gs(n,t,e){return Er(n,t,e,!1),gs}function Dr(n,t){return Er(n,t,null,!0),Dr}function ui(n){!function Mr(n,t,e,r){const i=Fe(),o=ai(2);i.firstUpdatePass&&i_(i,null,o,r);const s=k();if(e!==_e&&gn(s,o,e)){const a=i.data[En()];if(l_(a,r)&&!r_(i,o)){let l=r?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=xd(l,e||"")),vf(i,a,s,e,r)}else!function W9(n,t,e,r,i,o,s,a){i===_e&&(i=et);let l=0,c=0,u=0<i.length?i[0]:null,d=0<o.length?o[0]:null;for(;null!==u||null!==d;){const f=l<i.length?i[l+1]:void 0,p=c<o.length?o[c+1]:void 0;let w,y=null;u===d?(l+=2,c+=2,f!==p&&(y=d,w=p)):null===d||null!==u&&u<d?(l+=2,y=u):(c+=2,y=d,w=p),null!==y&&s_(n,t,e,r,y,w,s,a),u=l<i.length?i[l]:null,d=c<o.length?o[c]:null}}(i,a,s,s[11],s[o+1],s[o+1]=function G9(n,t,e){if(null==e||""===e)return et;const r=[],i=Wn(e);if(Array.isArray(i))for(let o=0;o<i.length;o++)n(r,i[o],!0);else if("object"==typeof i)for(const o in i)i.hasOwnProperty(o)&&n(r,o,i[o]);else"string"==typeof i&&t(r,i);return r}(n,t,e),r,o)}}(zn,Gr,n,!0)}function Gr(n,t){for(let e=function F9(n){return function e_(n){Qt.key=0,Qt.keyEnd=0,Qt.value=0,Qt.valueEnd=0,Qt.textEnd=n.length}(n),Jy(n,ms(n,0,Qt.textEnd))}(t);e>=0;e=Jy(t,e))zn(n,Yy(t),!0)}function Er(n,t,e,r){const i=k(),o=Fe(),s=ai(2);o.firstUpdatePass&&i_(o,n,s,r),t!==_e&&gn(i,s,t)&&s_(o,o.data[En()],i,i[11],n,i[s+1]=function q9(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=qe(Wn(n)))),n}(t,e),r,s)}function r_(n,t){return t>=n.expandoStartIndex}function i_(n,t,e,r){const i=n.data;if(null===i[e+1]){const o=i[En()],s=r_(n,e);l_(o,r)&&null===t&&!s&&(t=!1),t=function j9(n,t,e,r){const i=Yd(n);let o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(e=Ea(e=Df(null,n,t,e,r),t.attrs,r),o=null);else{const s=t.directiveStylingLast;if(-1===s||n[s]!==i)if(e=Df(i,n,t,e,r),null===o){let l=function H9(n,t,e){const r=e?t.classBindings:t.styleBindings;if(0!==li(r))return n[Cr(r)]}(n,t,r);void 0!==l&&Array.isArray(l)&&(l=Df(null,n,t,l[1],r),l=Ea(l,t.attrs,r),function U9(n,t,e,r){n[Cr(e?t.classBindings:t.styleBindings)]=r}(n,t,r,l))}else o=function z9(n,t,e){let r;const i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o<i;o++)r=Ea(r,n[o].hostAttrs,e);return Ea(r,t.attrs,e)}(n,t,r)}return void 0!==o&&(r?t.residualClasses=o:t.residualStyles=o),e}(i,o,t,r),function P9(n,t,e,r,i,o){let s=o?t.classBindings:t.styleBindings,a=Cr(s),l=li(s);n[r]=e;let u,c=!1;if(Array.isArray(e)){const d=e;u=d[1],(null===u||Ko(d,u)>0)&&(c=!0)}else u=e;if(i)if(0!==l){const f=Cr(n[a+1]);n[r+1]=lc(f,a),0!==f&&(n[f+1]=Bh(n[f+1],r)),n[a+1]=function W5(n,t){return 131071&n|t<<17}(n[a+1],r)}else n[r+1]=lc(a,0),0!==a&&(n[a+1]=Bh(n[a+1],r)),a=r;else n[r+1]=lc(l,0),0===a?a=r:n[l+1]=Bh(n[l+1],r),l=r;c&&(n[r+1]=Vh(n[r+1])),Qy(n,u,r,!0),Qy(n,u,r,!1),function k9(n,t,e,r,i){const o=i?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof t&&Ko(o,t)>=0&&(e[r+1]=jh(e[r+1]))}(t,u,n,r,o),s=lc(a,l),o?t.classBindings=s:t.styleBindings=s}(i,o,t,e,s,r)}}function Df(n,t,e,r,i){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<s&&(o=t[a],r=Ea(r,o.hostAttrs,i),o!==n);)a++;return null!==n&&(e.directiveStylingLast=a),r}function Ea(n,t,e){const r=e?1:2;let i=-1;if(null!==t)for(let o=0;o<t.length;o++){const s=t[o];"number"==typeof s?i=s:i===r&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),zn(n,s,!!e||t[++o]))}return void 0===n?null:n}function s_(n,t,e,r,i,o,s,a){if(!(3&t.type))return;const l=n.data,c=l[a+1];vc(function D0(n){return 1==(1&n)}(c)?a_(l,t,e,i,li(c),s):void 0)||(vc(o)||function b0(n){return 2==(2&n)}(c)&&(o=a_(l,null,e,i,a,s)),function q3(n,t,e,r,i){const o=Mt(n);if(t)i?o?n.addClass(e,r):e.classList.add(r):o?n.removeClass(e,r):e.classList.remove(r);else{let s=-1===r.indexOf("-")?void 0:Gn.DashCase;if(null==i)o?n.removeStyle(e,r,s):e.style.removeProperty(r);else{const a="string"==typeof i&&i.endsWith("!important");a&&(i=i.slice(0,-10),s|=Gn.Important),o?n.setStyle(e,r,i,s):e.style.setProperty(r,i,a?"important":"")}}}(r,s,Ll(En(),e),i,o))}function a_(n,t,e,r,i,o){const s=null===t;let a;for(;i>0;){const l=n[i],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let f=e[i+1];f===_e&&(f=d?et:void 0);let p=d?ch(f,r):u===r?f:void 0;if(c&&!vc(p)&&(p=ch(l,r)),vc(p)&&(a=p,s))return a;const y=n[i+1];i=s?Cr(y):li(y)}if(null!==t){let l=o?t.residualClasses:t.residualStyles;null!=l&&(a=ch(l,r))}return a}function vc(n){return void 0!==n}function l_(n,t){return 0!=(n.flags&(t?16:32))}function pe(n,t=""){const e=k(),r=Fe(),i=n+20,o=r.firstCreatePass?Xo(r,i,1,t,null):r.data[i],s=e[i]=function Ch(n,t){return Mt(n)?n.createText(t):n.createTextNode(t)}(e[11],t);rc(r,e,s,o),Rr(o,!1)}function Wr(n){return _n("",n,""),Wr}function _n(n,t,e){const r=k(),i=function ss(n,t,e,r){return gn(n,Bo(),e)?t+ge(e)+r:_e}(r,n,t,e);return i!==_e&&ci(r,En(),i),_n}function wc(n,t,e){const r=k();if(gn(r,Bo(),t)){const o=Fe(),s=pt();qn(o,s,r,n,t,function Z0(n,t,e){return(null===n||vr(n))&&(e=function vb(n){for(;Array.isArray(n);){if("object"==typeof n[1])return n;n=n[0]}return null}(e[t.index])),e[11]}(Yd(o.data),s,r),e,!0)}return wc}const Cc="en-US";let x_=Cc;function Sf(n,t,e,r,i){if(n=Se(n),Array.isArray(n))for(let o=0;o<n.length;o++)Sf(n[o],t,e,r,i);else{const o=Fe(),s=k();let a=rs(n)?n:Se(n.provide),l=ny(n);const c=Wt(),u=1048575&c.providerIndexes,d=c.directiveStart,f=c.providerIndexes>>20;if(rs(n)||!n.multi){const p=new ta(l,i,I),y=Af(a,t,i?u:u+f,d);-1===y?(ql(ra(c,s),o,a),Tf(o,n,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),e.push(p),s.push(p)):(e[y]=p,s[y]=p)}else{const p=Af(a,t,u+f,d),y=Af(a,t,u,u+f),w=p>=0&&e[p],b=y>=0&&e[y];if(i&&!b||!i&&!w){ql(ra(c,s),o,a);const S=function h7(n,t,e,r,i){const o=new ta(n,e,I);return o.multi=[],o.index=t,o.componentProviders=0,X_(o,i,r&&!e),o}(i?d7:u7,e.length,i,r,l);!i&&b&&(e[y].providerFactory=S),Tf(o,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),e.push(S),s.push(S)}else Tf(o,n,p>-1?p:y,X_(e[i?y:p],l,!i&&r));!i&&r&&b&&e[y].componentProviders++}}}function Tf(n,t,e,r){const i=rs(t),o=function R6(n){return!!n.useClass}(t);if(i||o){const l=(o?Se(t.useClass):t).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!i&&t.multi){const u=c.indexOf(e);-1===u?c.push(e,[r,l]):c[u+1].push(r,l)}else c.push(e,l)}}}function X_(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function Af(n,t,e,r){for(let i=e;i<r;i++)if(t[i]===n)return i;return-1}function u7(n,t,e,r){return xf(this.multi,[])}function d7(n,t,e,r){const i=this.multi;let o;if(this.providerFactory){const s=this.providerFactory.componentProviders,a=ia(e,e[1],this.providerFactory.index,r);o=a.slice(0,s),xf(i,o);for(let l=s;l<a.length;l++)o.push(a[l])}else o=[],xf(i,o);return o}function xf(n,t){for(let e=0;e<n.length;e++)t.push((0,n[e])());return t}function nt(n,t=[]){return e=>{e.providersResolver=(r,i)=>function c7(n,t,e){const r=Fe();if(r.firstCreatePass){const i=vr(n);Sf(e,r.data,r.blueprint,i,!0),Sf(t,r.data,r.blueprint,i,!1)}}(r,i?i(n):n,t)}}class e2{}class m7{resolveComponentFactory(t){throw function p7(n){const t=Error(`No component factory found for ${qe(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let so=(()=>{class n{}return n.NULL=new m7,n})();function g7(){return vs(Wt(),k())}function vs(n,t){return new kn(Hn(n,t))}let kn=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=g7,n})();function y7(n){return n instanceof kn?n.nativeElement:n}class xa{}let qr=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function v7(){const n=k(),e=Un(Wt().index,n);return function _7(n){return n[11]}(Fr(e)?e:n)}(),n})(),w7=(()=>{class n{}return n.\u0275prov=se({token:n,providedIn:"root",factory:()=>null}),n})();class Ia{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const C7=new Ia("13.3.12"),If={};function Sc(n,t,e,r,i=!1){for(;null!==e;){const o=t[e.index];if(null!==o&&r.push(Rt(o)),_r(o))for(let a=10;a<o.length;a++){const l=o[a],c=l[1].firstChild;null!==c&&Sc(l[1],l,c,r)}const s=e.type;if(8&s)Sc(n,t,e.child,r);else if(32&s){const a=_h(e,t);let l;for(;l=a();)r.push(l)}else if(16&s){const a=Z1(t,e);if(Array.isArray(a))r.push(...a);else{const l=fa(t[16]);Sc(l[1],l,a,r,!0)}}e=i?e.projectionNext:e.next}return r}class Pa{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,e=t[1];return Sc(e,t,e.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(_r(t)){const e=t[8],r=e?e.indexOf(this):-1;r>-1&&(Dh(t,r),Zl(e,r))}this._attachedToViewContainer=!1}B1(this._lView[1],this._lView)}onDestroy(t){R0(this._lView[1],this._lView,null,t)}markForCheck(){nf(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function of(n,t,e){const r=t[10];r.begin&&r.begin();try{ts(n,t,n.template,e)}catch(i){throw Q0(t,i),i}finally{r.end&&r.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Y(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function R3(n,t){pa(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Y(902,"");this._appRef=t}}class b7 extends Pa{constructor(t){super(t),this._view=t}detectChanges(){W0(this._view)}checkNoChanges(){}get context(){return null}}class n2 extends so{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=cn(t);return new Pf(e,this.ngModule)}}function r2(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class Pf extends e2{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function z5(n){return n.map(U5).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return r2(this.componentDef.inputs)}get outputs(){return r2(this.componentDef.outputs)}create(t,e,r,i){const o=(i=i||this.ngModule)?function E7(n,t){return{get:(e,r,i)=>{const o=n.get(e,If,i);return o!==If||r===If?o:t.get(e,r,i)}}}(t,i.injector):t,s=o.get(xa,Ug),a=o.get(w7,null),l=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=r?function L0(n,t,e){if(Mt(n))return n.selectRootElement(t,e===gr.ShadowDom);let r="string"==typeof t?n.querySelector(t):t;return r.textContent="",r}(l,r,this.componentDef.encapsulation):bh(s.createRenderer(null,this.componentDef),c,function D7(n){const t=n.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(c)),d=this.componentDef.onPush?576:528,f=function py(n,t){return{components:[],scheduler:n||N5,clean:A6,playerHandler:t||null,flags:0}}(),p=dc(0,null,null,1,0,null,null,null,null,null),y=va(null,p,f,d,null,null,s,l,a,o);let w,b;$l(y);try{const S=function hy(n,t,e,r,i,o){const s=e[1];e[20]=n;const l=Xo(s,20,2,"#host",null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(fc(l,c,!0),null!==n&&(Ul(i,n,c),null!==l.classes&&xh(i,n,l.classes),null!==l.styles&&Y1(i,n,l.styles)));const u=r.createRenderer(n,t),d=va(e,O0(t),null,t.onPush?64:16,e[20],l,r,u,o||null,null);return s.firstCreatePass&&(ql(ra(l,e),s,t.type),H0(s,l),U0(l,e.length,1)),hc(e,d),e[20]=d}(u,this.componentDef,y,s,l);if(u)if(r)Ul(l,u,["ng-version",C7.full]);else{const{attrs:E,classes:F}=function G5(n){const t=[],e=[];let r=1,i=2;for(;r<n.length;){let o=n[r];if("string"==typeof o)2===i?""!==o&&t.push(o,n[++r]):8===i&&e.push(o);else{if(!wr(i))break;i=o}r++}return{attrs:t,classes:e}}(this.componentDef.selectors[0]);E&&Ul(l,u,E),F&&F.length>0&&xh(l,u,F.join(" "))}if(b=Gd(p,20),void 0!==e){const E=b.projection=[];for(let F=0;F<this.ngContentSelectors.length;F++){const z=e[F];E.push(null!=z?Array.from(z):null)}}w=function fy(n,t,e,r,i){const o=e[1],s=function h6(n,t,e){const r=Wt();n.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),z0(n,r,t,es(n,t,1,null),e));const i=ia(t,n,r.directiveStart,r);mn(i,t);const o=Hn(r,t);return o&&mn(o,t),i}(o,e,t);if(r.components.push(s),n[8]=s,i&&i.forEach(l=>l(s,t)),t.contentQueries){const l=Wt();t.contentQueries(1,s,l.directiveStart)}const a=Wt();return!o.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Ii(a.index),B0(e[1],a,0,a.directiveStart,a.directiveEnd,t),j0(t,s)),s}(S,this.componentDef,y,f,[K6]),wa(p,y,null)}finally{Vl()}return new S7(this.componentType,w,vs(b,y),y,b)}}class S7 extends class f7{}{constructor(t,e,r,i,o){super(),this.location=r,this._rootLView=i,this._tNode=o,this.instance=e,this.hostView=this.changeDetectorRef=new b7(i),this.componentType=t}get injector(){return new Uo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class ws{}const Cs=new Map;class s2 extends ws{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new n2(this);const r=rr(t);this._bootstrapComponents=jr(r.bootstrap),this._r3Injector=ty(t,e,[{provide:ws,useValue:this},{provide:so,useValue:this.componentFactoryResolver}],qe(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=St.THROW_IF_NOT_FOUND,r=ve.Default){return t===St||t===ws||t===af?this:this._r3Injector.get(t,e,r)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class kf extends class A7{}{constructor(t){super(),this.moduleType=t,null!==rr(t)&&function x7(n){const t=new Set;!function e(r){const i=rr(r,!0),o=i.id;null!==o&&(function i2(n,t,e){if(t&&t!==e)throw new Error(`Duplicate module registered for ${n} - ${qe(t)} vs ${qe(t.name)}`)}(o,Cs.get(o),r),Cs.set(o,r));const s=jr(i.imports);for(const a of s)t.has(a)||(t.add(a),e(a))}(n)}(t)}create(t){return new s2(this.moduleType,t)}}function Nf(n,t,e,r){return a2(k(),Dn(),n,t,e,r)}function ka(n,t){const e=n[t];return e===_e?void 0:e}function a2(n,t,e,r,i,o){const s=t+e;return gn(n,s,i)?Ur(n,s+1,o?r.call(o,i):r(i)):ka(n,s+1)}function c2(n,t,e,r,i,o,s,a){const l=t+e;return function mc(n,t,e,r,i){const o=ro(n,t,e,r);return gn(n,t+2,i)||o}(n,l,i,o,s)?Ur(n,l+3,a?r.call(a,i,o,s):r(i,o,s)):ka(n,l+3)}function xe(n,t){const e=Fe();let r;const i=n+20;e.firstCreatePass?(r=function V7(n,t){if(t)for(let e=t.length-1;e>=0;e--){const r=t[e];if(n===r.name)return r}}(t,e.pipeRegistry),e.data[i]=r,r.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(i,r.onDestroy)):r=e.data[i];const o=r.factory||(r.factory=Xi(r.type)),s=Si(I);try{const a=Gl(!1),l=o();return Gl(a),function s9(n,t,e,r){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=r}(e,k(),i,l),l}finally{Si(s)}}function Nn(n,t,e){const r=n+20,i=k(),o=Vo(i,r);return Na(i,r)?a2(i,Dn(),t,o.transform,e,o):o.transform(e)}function lr(n,t,e,r){const i=n+20,o=k(),s=Vo(o,i);return Na(o,i)?function l2(n,t,e,r,i,o,s){const a=t+e;return ro(n,a,i,o)?Ur(n,a+2,s?r.call(s,i,o):r(i,o)):ka(n,a+2)}(o,Dn(),t,s.transform,e,r,s):s.transform(e,r)}function On(n,t,e,r,i){const o=n+20,s=k(),a=Vo(s,o);return Na(s,o)?c2(s,Dn(),t,a.transform,e,r,i,a):a.transform(e,r,i)}function Na(n,t){return n[1].data[t].pure}function Of(n){return t=>{setTimeout(n,void 0,t)}}const $e=class H7 extends Lt{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,r){var i,o,s;let a=t,l=e||(()=>null),c=r;if(t&&"object"==typeof t){const d=t;a=null===(i=d.next)||void 0===i?void 0:i.bind(d),l=null===(o=d.error)||void 0===o?void 0:o.bind(d),c=null===(s=d.complete)||void 0===s?void 0:s.bind(d)}this.__isAsync&&(l=Of(l),a&&(a=Of(a)),c&&(c=Of(c)));const u=super.subscribe({next:a,error:l,complete:c});return t instanceof It&&t.add(u),u}};function U7(){return this._results[is()]()}class Ff{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=is(),r=Ff.prototype;r[e]||(r[e]=U7)}get changes(){return this._changes||(this._changes=new $e)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const r=this;r.dirty=!1;const i=sr(t);(this._changesDetected=!function Xb(n,t,e){if(n.length!==t.length)return!1;for(let r=0;r<n.length;r++){let i=n[r],o=t[r];if(e&&(i=e(i),o=e(o)),o!==i)return!1}return!0}(r._results,i,e))&&(r._results=i,r.length=i.length,r.last=i[this.length-1],r.first=i[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let Kr=(()=>{class n{}return n.__NG_ELEMENT_ID__=W7,n})();const z7=Kr,G7=class extends z7{constructor(t,e,r){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=r}createEmbeddedView(t){const e=this._declarationTContainer.tViews,r=va(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const o=this._declarationLView[19];return null!==o&&(r[19]=o.createEmbeddedView(e)),wa(e,r,t),new Pa(r)}};function W7(){return Tc(Wt(),k())}function Tc(n,t){return 4&n.type?new G7(t,n,vs(n,t)):null}let Sr=(()=>{class n{}return n.__NG_ELEMENT_ID__=q7,n})();function q7(){return p2(Wt(),k())}const K7=Sr,h2=class extends K7{constructor(t,e,r){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=r}get element(){return vs(this._hostTNode,this._hostLView)}get injector(){return new Uo(this._hostTNode,this._hostLView)}get parentInjector(){const t=Wl(this._hostTNode,this._hostLView);if(s1(t)){const e=Ho(t,this._hostLView),r=jo(t);return new Uo(e[1].data[r+8],e)}return new Uo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=f2(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,r){const i=t.createEmbeddedView(e||{});return this.insert(i,r),i}createComponent(t,e,r,i,o){const s=t&&!function sa(n){return"function"==typeof n}(t);let a;if(s)a=e;else{const d=e||{};a=d.index,r=d.injector,i=d.projectableNodes,o=d.ngModuleRef}const l=s?t:new Pf(cn(t)),c=r||this.parentInjector;if(!o&&null==l.ngModule){const f=(s?c:this.parentInjector).get(ws,null);f&&(o=f)}const u=l.create(c,i,void 0,o);return this.insert(u.hostView,a),u}insert(t,e){const r=t._lView,i=r[1];if(function Cb(n){return _r(n[3])}(r)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const d=r[3],f=new h2(d,d[6],d[3]);f.detach(f.indexOf(t))}}const o=this._adjustIndex(e),s=this._lContainer;!function V3(n,t,e,r){const i=10+r,o=e.length;r>0&&(e[i-1][4]=t),r<o-10?(t[4]=e[i],g1(e,10+r,t)):(e.push(t),t[4]=null),t[3]=e;const s=t[17];null!==s&&e!==s&&function B3(n,t){const e=n[9];t[16]!==t[3][3][16]&&(n[2]=!0),null===e?n[9]=[t]:e.push(t)}(s,t);const a=t[19];null!==a&&a.insertView(n),t[2]|=128}(i,r,s,o);const a=Sh(o,s),l=r[11],c=nc(l,s[7]);return null!==c&&function L3(n,t,e,r,i,o){r[0]=i,r[6]=t,pa(n,r,e,1,i,o)}(i,s[6],l,r,c,a),t.attachToViewContainerRef(),g1(Lf(s),o,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=f2(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),r=Dh(this._lContainer,e);r&&(Zl(Lf(this._lContainer),e),B1(r[1],r))}detach(t){const e=this._adjustIndex(t,-1),r=Dh(this._lContainer,e);return r&&null!=Zl(Lf(this._lContainer),e)?new Pa(r):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}};function f2(n){return n[8]}function Lf(n){return n[8]||(n[8]=[])}function p2(n,t){let e;const r=t[n.index];if(_r(r))e=r;else{let i;if(8&n.type)i=Rt(r);else{const o=t[11];i=o.createComment("");const s=Hn(n,t);eo(o,nc(o,s),i,function z3(n,t){return Mt(n)?n.nextSibling(t):t.nextSibling}(o,s),!1)}t[n.index]=e=G0(r,t,i,n),hc(t,e)}return new h2(e,n,t)}class Rf{constructor(t){this.queryList=t,this.matches=null}clone(){return new Rf(this.queryList)}setDirty(){this.queryList.setDirty()}}class $f{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const r=null!==t.contentQueries?t.contentQueries[0]:e.length,i=[];for(let o=0;o<r;o++){const s=e.getByIndex(o);i.push(this.queries[s.indexInDeclarationView].clone())}return new $f(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==v2(t,e).matches&&this.queries[e].setDirty()}}class m2{constructor(t,e,r=null){this.predicate=t,this.flags=e,this.read=r}}class Vf{constructor(t=[]){this.queries=t}elementStart(t,e){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let r=0;r<this.length;r++){const i=null!==e?e.length:0,o=this.getByIndex(r).embeddedTView(t,i);o&&(o.indexInDeclarationView=r,null!==e?e.push(o):e=[o])}return null!==e?new Vf(e):null}template(t,e){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Bf{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new Bf(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let r=t.parent;for(;null!==r&&8&r.type&&r.index!==e;)r=r.parent;return e===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){const o=r[i];this.matchTNodeWithReadOption(t,e,Y7(e,o)),this.matchTNodeWithReadOption(t,e,Kl(e,t,o,!1,!1))}else r===Kr?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,Kl(e,t,r,!1,!1))}matchTNodeWithReadOption(t,e,r){if(null!==r){const i=this.metadata.read;if(null!==i)if(i===kn||i===Sr||i===Kr&&4&e.type)this.addMatch(e.index,-2);else{const o=Kl(e,t,i,!1,!1);null!==o&&this.addMatch(e.index,o)}else this.addMatch(e.index,r)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function Y7(n,t){const e=n.localNames;if(null!==e)for(let r=0;r<e.length;r+=2)if(e[r]===t)return e[r+1];return null}function X7(n,t,e,r){return-1===e?function J7(n,t){return 11&n.type?vs(n,t):4&n.type?Tc(n,t):null}(t,n):-2===e?function eE(n,t,e){return e===kn?vs(t,n):e===Kr?Tc(t,n):e===Sr?p2(t,n):void 0}(n,t,r):ia(n,n[1],e,t)}function g2(n,t,e,r){const i=t[19].queries[r];if(null===i.matches){const o=n.data,s=e.matches,a=[];for(let l=0;l<s.length;l+=2){const c=s[l];a.push(c<0?null:X7(t,o[c],s[l+1],e.metadata.read))}i.matches=a}return i.matches}function jf(n,t,e,r){const i=n.queries.getByIndex(e),o=i.matches;if(null!==o){const s=g2(n,t,i,e);for(let a=0;a<o.length;a+=2){const l=o[a];if(l>0)r.push(s[a/2]);else{const c=o[a+1],u=t[-l];for(let d=10;d<u.length;d++){const f=u[d];f[17]===f[3]&&jf(f[1],f,c,r)}if(null!==u[9]){const d=u[9];for(let f=0;f<d.length;f++){const p=d[f];jf(p[1],p,c,r)}}}}}return r}function ao(n){const t=k(),e=Fe(),r=Yg();Jd(r+1);const i=v2(e,r);if(n.dirty&&zg(t)===(2==(2&i.metadata.flags))){if(null===i.matches)n.reset([]);else{const o=i.crossesNgTemplate?jf(e,t,r,[]):g2(e,t,i,r);n.reset(o,y7),n.notifyOnChanges()}return!0}return!1}function lo(n,t,e){const r=Fe();r.firstCreatePass&&(function _2(n,t,e){null===n.queries&&(n.queries=new Vf),n.queries.track(new Bf(t,e))}(r,new m2(n,t,e),-1),2==(2&t)&&(r.staticViewQueries=!0)),function y2(n,t,e){const r=new Ff(4==(4&e));R0(n,t,r,r.destroy),null===t[19]&&(t[19]=new $f),t[19].queries.push(new Rf(r))}(r,k(),t)}function co(){return function nE(n,t){return n[19].queries[t].queryList}(k(),Yg())}function v2(n,t){return n.queries.getByIndex(t)}function uo(n,t){return Tc(n,t)}function Ic(...n){}const L2=new ae("Application Initializer");let qf=(()=>{class n{constructor(e){this.appInits=e,this.resolve=Ic,this.reject=Ic,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const e=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i<this.appInits.length;i++){const o=this.appInits[i]();if(_c(o))e.push(o);else if(Ly(o)){const s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{r()}).catch(i=>{this.reject(i)}),0===e.length&&r(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(G(L2,8))},n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Fa=new ae("AppId",{providedIn:"root",factory:function R2(){return`${Kf()}${Kf()}${Kf()}`}});function Kf(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const $2=new ae("Platform Initializer"),Zf=new ae("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),wE=new ae("appBootstrapListener"),Oi=new ae("LocaleId",{providedIn:"root",factory:()=>Jl(Oi,ve.Optional|ve.SkipSelf)||function CE(){return"undefined"!=typeof $localize&&$localize.locale||Cc}()}),ME=(()=>Promise.resolve(0))();function Qf(n){"undefined"==typeof Zone?ME.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class Yt{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new $e(!1),this.onMicrotaskEmpty=new $e(!1),this.onStable=new $e(!1),this.onError=new $e(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&e,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function SE(){let n=Ze.requestAnimationFrame,t=Ze.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function xE(n){const t=()=>{!function AE(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(Ze,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Jf(n),n.isCheckStableRunning=!0,Yf(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Jf(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,r,i,o,s,a)=>{try{return V2(n),e.invokeTask(i,o,s,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&t(),B2(n)}},onInvoke:(e,r,i,o,s,a,l)=>{try{return V2(n),e.invoke(i,o,s,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),B2(n)}},onHasTask:(e,r,i,o)=>{e.hasTask(i,o),r===i&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,Jf(n),Yf(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,r,i,o)=>(e.handleError(i,o),n.runOutsideAngular(()=>n.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Yt.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Yt.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,r){return this._inner.run(t,e,r)}runTask(t,e,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,TE,Ic,Ic);try{return o.runTask(s,e,r)}finally{o.cancelTask(s)}}runGuarded(t,e,r){return this._inner.runGuarded(t,e,r)}runOutsideAngular(t){return this._outer.run(t)}}const TE={};function Yf(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function Jf(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function V2(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function B2(n){n._nesting--,Yf(n)}class IE{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new $e,this.onMicrotaskEmpty=new $e,this.onStable=new $e,this.onError=new $e}run(t,e,r){return t.apply(e,r)}runGuarded(t,e,r){return t.apply(e,r)}runOutsideAngular(t){return t()}runTask(t,e,r,i){return t.apply(e,r)}}let Xf=(()=>{class n{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Yt.assertNotInAngularZone(),Qf(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Qf(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(e)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:i})}whenStable(e,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(e,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,r,i){return[]}}return n.\u0275fac=function(e){return new(e||n)(G(Yt))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})(),PE=(()=>{class n{constructor(){this._applications=new Map,ep.addToWindow(this)}registerApplication(e,r){this._applications.set(e,r)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,r=!0){return ep.findTestabilityInTree(this,e,r)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();class kE{addToWindow(t){}findTestabilityInTree(t,e,r){return null}}let ep=new kE,ho=null;const j2=new ae("AllowMultipleToken"),H2=new ae("PlatformOnDestroy");function U2(n,t,e=[]){const r=`Platform: ${t}`,i=new ae(r);return(o=[])=>{let s=tp();if(!s||s.injector.get(j2,!1)){const a=[...e,...o,{provide:i,useValue:!0}];n?n(a):function LE(n){if(ho&&!ho.get(j2,!1))throw new Y(400,"");ho=n;const t=n.get(z2),e=n.get($2,null);e&&e.forEach(r=>r())}(function $E(n=[],t){return St.create({name:t,providers:[{provide:lf,useValue:"platform"},{provide:H2,useValue:()=>ho=null},...n]})}(a,r))}return function RE(n){const t=tp();if(!t)throw new Y(401,"");return t}()}}function tp(){var n;return null!==(n=null==ho?void 0:ho.get(z2))&&void 0!==n?n:null}let z2=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,r){const a=function VE(n,t){let e;return e="noop"===n?new IE:("zone.js"===n?void 0:n)||new Yt({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),e}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),l=[{provide:Yt,useValue:a}];return a.run(()=>{const c=St.create({providers:l,parent:this.injector,name:e.moduleType.name}),u=e.create(c),d=u.injector.get(_a,null);if(!d)throw new Y(402,"");return a.runOutsideAngular(()=>{const f=a.onError.subscribe({next:p=>{d.handleError(p)}});u.onDestroy(()=>{np(this._modules,u),f.unsubscribe()})}),function BE(n,t,e){try{const r=e();return _c(r)?r.catch(i=>{throw t.runOutsideAngular(()=>n.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>n.handleError(r)),r}}(d,a,()=>{const f=u.injector.get(qf);return f.runInitializers(),f.donePromise.then(()=>(function _D(n){Bn(n,"Expected localeId to be defined"),"string"==typeof n&&(x_=n.toLowerCase().replace(/_/g,"-"))}(u.injector.get(Oi,Cc)||Cc),this._moduleDoBootstrap(u),u))})})}bootstrapModule(e,r=[]){const i=G2({},r);return function OE(n,t,e){const r=new kf(e);return Promise.resolve(r)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(e){const r=e.injector.get(La);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!e.instance.ngDoBootstrap)throw new Y(403,"");e.instance.ngDoBootstrap(r)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Y(404,"");this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const e=this._injector.get(H2,null);null==e||e(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(G(St))},n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function G2(n,t){return Array.isArray(t)?t.reduce(G2,n):Object.assign(Object.assign({},n),t)}let La=(()=>{class n{constructor(e,r,i,o){this._zone=e,this._injector=r,this._exceptionHandler=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const s=new Ft(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new Ft(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{Yt.assertNotInAngularZone(),Qf(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{Yt.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=Tg(s,a.pipe(function H4(n={}){const{connector:t=(()=>new Lt),resetOnError:e=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=n;return o=>{let s,a,l,c=0,u=!1,d=!1;const f=()=>{null==a||a.unsubscribe(),a=void 0},p=()=>{f(),s=l=void 0,u=d=!1},y=()=>{const w=s;p(),null==w||w.unsubscribe()};return Cn((w,b)=>{c++,!d&&!u&&f();const S=l=null!=l?l:t();b.add(()=>{c--,0===c&&!d&&!u&&(a=Td(y,i))}),S.subscribe(b),!s&&c>0&&(s=new Ks({next:E=>S.next(E),error:E=>{d=!0,f(),a=Td(p,e,E),S.error(E)},complete:()=>{u=!0,f(),a=Td(p,r),S.complete()}}),nr(w).subscribe(s))})(o)}}()))}bootstrap(e,r){if(!this._initStatus.done)throw new Y(405,"");let i;i=e instanceof e2?e:this._injector.get(so).resolveComponentFactory(e),this.componentTypes.push(i.componentType);const o=function FE(n){return n.isBoundToModule}(i)?void 0:this._injector.get(ws),a=i.create(St.NULL,[],r||i.selector,o),l=a.location.nativeElement,c=a.injector.get(Xf,null),u=c&&a.injector.get(PE);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),np(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Y(101,"");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const r=e;this._views.push(r),r.attachToAppRef(this)}detachView(e){const r=e;np(this._views,r),r.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(wE,[]).concat(this._bootstrapListeners).forEach(i=>i(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(e){return new(e||n)(G(Yt),G(St),G(_a),G(qf))},n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function np(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let q2=!0,Ra=(()=>{class n{}return n.__NG_ELEMENT_ID__=UE,n})();function UE(n){return function zE(n,t,e){if(Ol(n)&&!e){const r=Un(n.index,t);return new Pa(r,r)}return 47&n.type?new Pa(t[16],t):null}(Wt(),k(),16==(16&n))}class J2{constructor(){}supports(t){return ba(t)}create(t){return new QE(t)}}const ZE=(n,t)=>t;class QE{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||ZE}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,r=this._removalsHead,i=0,o=null;for(;e||r;){const s=!r||e&&e.currentIndex<ev(r,i,o)?e:r,a=ev(s,i,o),l=s.currentIndex;if(s===r)i--,r=r._nextRemoved;else if(e=e._next,null==s.previousIndex)i++;else{o||(o=[]);const c=a-i,u=l-i;if(c!=u){for(let f=0;f<c;f++){const p=f<o.length?o[f]:o[f]=0,y=p+f;u<=y&&y<c&&(o[f]=p+1)}o[s.previousIndex]=u-c}}a!==l&&t(s,a,l)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!ba(t))throw new Y(900,"");return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let i,o,s,e=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)o=t[a],s=this._trackByFn(a,o),null!==e&&Object.is(e.trackById,s)?(r&&(e=this._verifyReinsertion(e,o,s,a)),Object.is(e.item,o)||this._addIdentityChange(e,o)):(e=this._mismatch(e,o,s,a),r=!0),e=e._next}else i=0,function i9(n,t){if(Array.isArray(n))for(let e=0;e<n.length;e++)t(n[e]);else{const e=n[is()]();let r;for(;!(r=e.next()).done;)t(r.value)}}(t,a=>{s=this._trackByFn(i,a),null!==e&&Object.is(e.trackById,s)?(r&&(e=this._verifyReinsertion(e,a,s,i)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,i),r=!0),e=e._next,i++}),this.length=i;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,r,i){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,i)):t=this._addAfter(new YE(e,r),o,i),t}_verifyReinsertion(t,e,r,i){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==o?t=this._reinsertAfter(o,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,o=t._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(t,e,r),this._addToMoves(t,r),t}_moveAfter(t,e,r){return this._unlink(t),this._insertAfter(t,e,r),this._addToMoves(t,r),t}_addAfter(t,e,r){return this._insertAfter(t,e,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,r){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new X2),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,r=t._next;return null===e?this._itHead=r:e._next=r,null===r?this._itTail=e:r._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new X2),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class YE{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class JE{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===e||e<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const e=t._prevDup,r=t._nextDup;return null===e?this._head=r:e._nextDup=r,null===r?this._tail=e:r._prevDup=e,null===this._head}}class X2{constructor(){this.map=new Map}put(t){const e=t.trackById;let r=this.map.get(e);r||(r=new JE,this.map.set(e,r)),r.add(t)}get(t,e){const i=this.map.get(t);return i?i.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function ev(n,t,e){const r=n.previousIndex;if(null===r)return r;let i=0;return e&&r<e.length&&(i=e[r]),r+t+i}function nv(){return new Nc([new J2])}let Nc=(()=>{class n{constructor(e){this.factories=e}static create(e,r){if(null!=r){const i=r.factories.slice();e=e.concat(i)}return new n(e)}static extend(e){return{provide:n,useFactory:r=>n.create(e,r||nv()),deps:[[n,new ec,new Xl]]}}find(e){const r=this.factories.find(i=>i.supports(e));if(null!=r)return r;throw new Y(901,"")}}return n.\u0275prov=se({token:n,providedIn:"root",factory:nv}),n})();const rM=U2(null,"core",[]);let iM=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(G(La))},n.\u0275mod=ct({type:n}),n.\u0275inj=st({}),n})(),Oc=null;function po(){return Oc}const $t=new ae("DocumentToken");function pv(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const r=e.indexOf("="),[i,o]=-1==r?[e,""]:[e.slice(0,r),e.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}class ZM{constructor(t,e,r,i){this.$implicit=t,this.ngForOf=e,this.index=r,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Ds=(()=>{class n{constructor(e,r,i){this._viewContainer=e,this._template=r,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const r=this._viewContainer;e.forEachOperation((i,o,s)=>{if(null==i.previousIndex)r.createEmbeddedView(this._template,new ZM(i.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===o?void 0:o);else if(null!==o){const a=r.get(o);r.move(a,s),mv(a,i)}});for(let i=0,o=r.length;i<o;i++){const a=r.get(i).context;a.index=i,a.count=o,a.ngForOf=this._ngForOf}e.forEachIdentityChange(i=>{mv(r.get(i.currentIndex),i)})}static ngTemplateContextGuard(e,r){return!0}}return n.\u0275fac=function(e){return new(e||n)(I(Sr),I(Kr),I(Nc))},n.\u0275dir=fe({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();function mv(n,t){n.context.$implicit=t.item}let Kn=(()=>{class n{constructor(e,r){this._viewContainer=e,this._context=new QM,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){gv("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){gv("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,r){return!0}}return n.\u0275fac=function(e){return new(e||n)(I(Sr),I(Kr))},n.\u0275dir=fe({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class QM{constructor(){this.$implicit=null,this.ngIf=null}}function gv(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${qe(t)}'.`)}let _v=(()=>{class n{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(e.ngTemplateOutlet){const r=this._viewContainerRef;this._viewRef&&r.remove(r.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?r.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(e){return new(e||n)(I(Sr))},n.\u0275dir=fe({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[Lr]}),n})();function Ar(n,t){return new Y(2100,"")}class tS{createSubscription(t,e){return t.subscribe({next:e,error:r=>{throw r}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class nS{createSubscription(t,e){return t.then(e,r=>{throw r})}dispose(t){}onDestroy(t){}}const rS=new nS,iS=new tS;let _p=(()=>{class n{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,r=>this._updateLatestValue(e,r))}_selectStrategy(e){if(_c(e))return rS;if(Fy(e))return iS;throw Ar()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,r){e===this._obj&&(this._latestValue=r,this._ref.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(I(Ra,16))},n.\u0275pipe=at({name:"async",type:n,pure:!1}),n})(),Cp=(()=>{class n{transform(e,r,i){if(null==e)return null;if(!this.supports(e))throw Ar();return e.slice(r,i)}supports(e){return"string"==typeof e||Array.isArray(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=at({name:"slice",type:n,pure:!1}),n})(),zc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({}),n})();class bv{}class bp extends class ES extends class aM{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function sM(n){Oc||(Oc=n)}(new bp)}onAndCancel(t,e,r){return t.addEventListener(e,r,!1),()=>{t.removeEventListener(e,r,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function MS(){return ja=ja||document.querySelector("base"),ja?ja.getAttribute("href"):null}();return null==e?null:function SS(n){Gc=Gc||document.createElement("a"),Gc.setAttribute("href",n);const t=Gc.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){ja=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return pv(document.cookie,t)}}let Gc,ja=null;const Dv=new ae("TRANSITION_ID"),AS=[{provide:L2,useFactory:function TS(n,t,e){return()=>{e.get(qf).donePromise.then(()=>{const r=po(),i=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let o=0;o<i.length;o++)r.remove(i[o])})}},deps:[Dv,$t,St],multi:!0}];class Dp{static init(){!function NE(n){ep=n}(new Dp)}addToWindow(t){Ze.getAngularTestability=(r,i=!0)=>{const o=t.findTestabilityInTree(r,i);if(null==o)throw new Error("Could not find testability for element.");return o},Ze.getAllAngularTestabilities=()=>t.getAllTestabilities(),Ze.getAllAngularRootElements=()=>t.getAllRootElements(),Ze.frameworkStabilizers||(Ze.frameworkStabilizers=[]),Ze.frameworkStabilizers.push(r=>{const i=Ze.getAllAngularTestabilities();let o=i.length,s=!1;const a=function(l){s=s||l,o--,0==o&&r(s)};i.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,e,r){if(null==e)return null;const i=t.getTestability(e);return null!=i?i:r?po().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let xS=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();const Wc=new ae("EventManagerPlugins");let qc=(()=>{class n{constructor(e,r){this._zone=r,this._eventNameToPlugin=new Map,e.forEach(i=>i.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,r,i){return this._findPluginFor(r).addEventListener(e,r,i)}addGlobalEventListener(e,r,i){return this._findPluginFor(r).addGlobalEventListener(e,r,i)}getZone(){return this._zone}_findPluginFor(e){const r=this._eventNameToPlugin.get(e);if(r)return r;const i=this._plugins;for(let o=0;o<i.length;o++){const s=i[o];if(s.supports(e))return this._eventNameToPlugin.set(e,s),s}throw new Error(`No event manager plugin found for event ${e}`)}}return n.\u0275fac=function(e){return new(e||n)(G(Wc),G(Yt))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();class Ev{constructor(t){this._doc=t}addGlobalEventListener(t,e,r){const i=po().getGlobalEventTarget(this._doc,t);if(!i)throw new Error(`Unsupported event target ${i} for event ${e}`);return this.addEventListener(i,e,r)}}let Mv=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(e){const r=new Set;e.forEach(i=>{this._stylesSet.has(i)||(this._stylesSet.add(i),r.add(i))}),this.onStylesAdded(r)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})(),Ha=(()=>{class n extends Mv{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,r,i){e.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,i.push(r.appendChild(s))})}addHost(e){const r=[];this._addStylesToHost(this._stylesSet,e,r),this._hostNodes.set(e,r)}removeHost(e){const r=this._hostNodes.get(e);r&&r.forEach(Sv),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((r,i)=>{this._addStylesToHost(e,i,r)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Sv))}}return n.\u0275fac=function(e){return new(e||n)(G($t))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();function Sv(n){po().remove(n)}const Ep={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/MathML/"},Mp=/%COMP%/g;function Kc(n,t,e){for(let r=0;r<t.length;r++){let i=t[r];Array.isArray(i)?Kc(n,i,e):(i=i.replace(Mp,n),e.push(i))}return e}function xv(n){return t=>{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let Zc=(()=>{class n{constructor(e,r,i){this.eventManager=e,this.sharedStylesHost=r,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new Sp(e)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;switch(r.encapsulation){case gr.Emulated:{let i=this.rendererByCompId.get(r.id);return i||(i=new FS(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,i)),i.applyToHost(e),i}case 1:case gr.ShadowDom:return new LS(this.eventManager,this.sharedStylesHost,e,r);default:if(!this.rendererByCompId.has(r.id)){const i=Kc(r.id,r.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(G(qc),G(Ha),G(Fa))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();class Sp{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(Ep[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,r){t&&t.insertBefore(e,r)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let r="string"==typeof t?document.querySelector(t):t;if(!r)throw new Error(`The selector "${t}" did not match any elements`);return e||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,r,i){if(i){e=i+":"+e;const o=Ep[i];o?t.setAttributeNS(o,e,r):t.setAttribute(e,r)}else t.setAttribute(e,r)}removeAttribute(t,e,r){if(r){const i=Ep[r];i?t.removeAttributeNS(i,e):t.removeAttribute(`${r}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,r,i){i&(Gn.DashCase|Gn.Important)?t.style.setProperty(e,r,i&Gn.Important?"important":""):t.style[e]=r}removeStyle(t,e,r){r&Gn.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,r){t[e]=r}setValue(t,e){t.nodeValue=e}listen(t,e,r){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,xv(r)):this.eventManager.addEventListener(t,e,xv(r))}}class FS extends Sp{constructor(t,e,r,i){super(t),this.component=r;const o=Kc(i+"-"+r.id,r.styles,[]);e.addStyles(o),this.contentAttr=function kS(n){return"_ngcontent-%COMP%".replace(Mp,n)}(i+"-"+r.id),this.hostAttr=function NS(n){return"_nghost-%COMP%".replace(Mp,n)}(i+"-"+r.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const r=super.createElement(t,e);return super.setAttribute(r,this.contentAttr,""),r}}class LS extends Sp{constructor(t,e,r,i){super(t),this.sharedStylesHost=e,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=Kc(i.id,i.styles,[]);for(let s=0;s<o.length;s++){const a=document.createElement("style");a.textContent=o[s],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,r){return super.insertBefore(this.nodeOrShadowRoot(t),e,r)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let RS=(()=>{class n extends Ev{constructor(e){super(e)}supports(e){return!0}addEventListener(e,r,i){return e.addEventListener(r,i,!1),()=>this.removeEventListener(e,r,i)}removeEventListener(e,r,i){return e.removeEventListener(r,i)}}return n.\u0275fac=function(e){return new(e||n)(G($t))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();const Pv=["alt","control","meta","shift"],VS={"\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"},kv={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},BS={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let jS=(()=>{class n extends Ev{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,r,i){const o=n.parseEventName(r),s=n.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>po().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const r=e.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const o=n._normalizeKey(r.pop());let s="";if(Pv.forEach(l=>{const c=r.indexOf(l);c>-1&&(r.splice(c,1),s+=l+".")}),s+=o,0!=r.length||0===o.length)return null;const a={};return a.domEventName=i,a.fullKey=s,a}static getEventFullKey(e){let r="",i=function HS(n){let t=n.key;if(null==t){if(t=n.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===n.location&&kv.hasOwnProperty(t)&&(t=kv[t]))}return VS[t]||t}(e);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),Pv.forEach(o=>{o!=i&&BS[o](e)&&(r+=o+".")}),r+=i,r}static eventCallback(e,r,i){return o=>{n.getEventFullKey(o)===e&&i.runGuarded(()=>r(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(G($t))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();const WS=U2(rM,"browser",[{provide:Zf,useValue:"browser"},{provide:$2,useValue:function US(){bp.makeCurrent(),Dp.init()},multi:!0},{provide:$t,useFactory:function GS(){return function yb(n){Ud=n}(document),document},deps:[]}]),qS=[{provide:lf,useValue:"root"},{provide:_a,useFactory:function zS(){return new _a},deps:[]},{provide:Wc,useClass:RS,multi:!0,deps:[$t,Yt,Zf]},{provide:Wc,useClass:jS,multi:!0,deps:[$t]},{provide:Zc,useClass:Zc,deps:[qc,Ha,Fa]},{provide:xa,useExisting:Zc},{provide:Mv,useExisting:Ha},{provide:Ha,useClass:Ha,deps:[$t]},{provide:Xf,useClass:Xf,deps:[Yt]},{provide:qc,useClass:qc,deps:[Wc,Yt]},{provide:bv,useClass:xS,deps:[]}];let Nv=(()=>{class n{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:n,providers:[{provide:Fa,useValue:e.appId},{provide:Dv,useExisting:Fa},AS]}}}return n.\u0275fac=function(e){return new(e||n)(G(n,12))},n.\u0275mod=ct({type:n}),n.\u0275inj=st({providers:qS,imports:[zc,iM]}),n})();"undefined"!=typeof window&&window;let Lv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=se({token:n,factory:function(e){let r=null;return r=e?new(e||n):G(Rv),r},providedIn:"root"}),n})(),Rv=(()=>{class n extends Lv{constructor(e){super(),this._doc=e}sanitize(e,r){if(null==r)return null;switch(e){case tt.NONE:return r;case tt.HTML:return Vr(r,"HTML")?Wn(r):u0(this._doc,String(r)).toString();case tt.STYLE:return Vr(r,"Style")?Wn(r):r;case tt.SCRIPT:if(Vr(r,"Script"))return Wn(r);throw new Error("unsafe value used in a script context");case tt.URL:return t0(r),Vr(r,"URL")?Wn(r):ma(String(r));case tt.RESOURCE_URL:if(Vr(r,"ResourceURL"))return Wn(r);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function n5(n){return new Y3(n)}(e)}bypassSecurityTrustStyle(e){return function r5(n){return new J3(n)}(e)}bypassSecurityTrustScript(e){return function i5(n){return new X3(n)}(e)}bypassSecurityTrustUrl(e){return function o5(n){return new e5(n)}(e)}bypassSecurityTrustResourceUrl(e){return function s5(n){return new t5(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(G($t))},n.\u0275prov=se({token:n,factory:function(e){let r=null;return r=e?new e:function rT(n){return new Rv(n.get($t))}(G(St)),r},providedIn:"root"}),n})();const Ap={now:()=>(Ap.delegate||Date).now(),delegate:void 0};class iT extends Lt{constructor(t=1/0,e=1/0,r=Ap){super(),this._bufferSize=t,this._windowTime=e,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,e)}next(t){const{isStopped:e,_buffer:r,_infiniteTimeWindow:i,_timestampProvider:o,_windowTime:s}=this;e||(r.push(t),!i&&r.push(o.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:i}=this,o=i.slice();for(let s=0;s<o.length&&!t.closed;s+=r?1:2)t.next(o[s]);return this._checkFinalizedStatuses(t),e}_trimBuffer(){const{_bufferSize:t,_timestampProvider:e,_buffer:r,_infiniteTimeWindow:i}=this,o=(i?1:2)*t;if(t<1/0&&o<r.length&&r.splice(0,r.length-o),!i){const s=e.now();let a=0;for(let l=1;l<r.length&&r[l]<=s;l+=2)a=l;a&&r.splice(0,a+1)}}}function Ua(n,t){return Cn((e,r)=>{let i=null,o=0,s=!1;const a=()=>s&&!i&&r.complete();e.subscribe(an(r,l=>{null==i||i.unsubscribe();let c=0;const u=o++;nr(n(l,u)).subscribe(i=an(r,d=>r.next(t?t(l,d,u,c++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}const Qc={schedule(n,t){const e=setTimeout(n,t);return()=>clearTimeout(e)},scheduleBeforeRender(n){if("undefined"==typeof window)return Qc.schedule(n,0);if(void 0===window.requestAnimationFrame)return Qc.schedule(n,16);const t=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(t)}};let xp;function fT(n,t,e){let r=e;return function sT(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&t.some((i,o)=>!("*"===i||!function lT(n,t){if(!xp){const e=Element.prototype;xp=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&xp.call(n,t)}(n,i)||(r=o,0))),r}class mT{constructor(t,e){this.componentFactory=e.get(so).resolveComponentFactory(t)}create(t){return new gT(this.componentFactory,t)}}class gT{constructor(t,e){this.componentFactory=t,this.injector=e,this.eventEmitters=new iT(1),this.events=this.eventEmitters.pipe(Ua(r=>Tg(...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(Yt),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=Qc.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){this.runInZone(()=>{null!==this.componentRef?function cT(n,t){return n===t||n!=n&&t!=t}(e,this.getInputValue(t))&&(void 0!==e||!this.unchangedInputs.has(t))||(this.recordInputChange(t,e),this.unchangedInputs.delete(t),this.hasInputChanges=!0,this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)})}initializeComponent(t){const e=St.create({providers:[],parent:this.injector}),r=function hT(n,t){const e=n.childNodes,r=t.map(()=>[]);let i=-1;t.some((o,s)=>"*"===o&&(i=s,!0));for(let o=0,s=e.length;o<s;++o){const a=e[o],l=fT(a,t,i);-1!==l&&r[l].push(a)}return r}(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,r,t),this.viewChangeDetectorRef=this.componentRef.injector.get(Ra),this.implementsOnChanges=function aT(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(La).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:t})=>{this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map(({propName:r,templateName:i})=>t.instance[r].pipe(en(s=>({name:i,value:s}))));this.eventEmitters.next(e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}markViewForCheck(t){this.hasInputChanges&&(this.hasInputChanges=!1,t.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Qc.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const r=this.inputChanges[t];if(r)return void(r.currentValue=e);const i=this.unchangedInputs.has(t),o=i?void 0:this.getInputValue(t);this.inputChanges[t]=new Vg(o,e,i)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class yT extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function xr(...n){return No(n,Zs(n))}function Yc(n,t){return Cn((e,r)=>{let i=0;e.subscribe(an(r,o=>n.call(t,o,i++)&&r.next(o)))})}class $v{}class Vv{}class Zr{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const r=e.indexOf(":");if(r>0){const i=e.slice(0,r),o=i.toLowerCase(),s=e.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let r=t[e];const i=e.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(i,r),this.maybeSetNormalizedName(e,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Zr?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Zr;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Zr?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...r),this.headers.set(e,i);break;case"d":const o=t.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class wT{encodeKey(t){return Bv(t)}encodeValue(t){return Bv(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const bT=/%(\d[a-f0-9])/gi,DT={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Bv(n){return encodeURIComponent(n).replace(bT,(t,e)=>{var r;return null!==(r=DT[e])&&void 0!==r?r:t})}function jv(n){return`${n}`}class hi{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new wT,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function CT(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(i=>{const o=i.indexOf("="),[s,a]=-1==o?[t.decodeKey(i),""]:[t.decodeKey(i.slice(0,o)),t.decodeValue(i.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const r=t.fromObject[e];this.map.set(e,Array.isArray(r)?r:[r])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(r=>{const i=t[r];Array.isArray(i)?i.forEach(o=>{e.push({param:r,value:o,op:"a"})}):e.push({param:r,value:i,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(r=>e+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new hi({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(jv(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let r=this.map.get(t.param)||[];const i=r.indexOf(jv(t.value));-1!==i&&r.splice(i,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class Hv{constructor(t){this.defaultValue=t}}class ET{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function Uv(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function zv(n){return"undefined"!=typeof Blob&&n instanceof Blob}function Gv(n){return"undefined"!=typeof FormData&&n instanceof FormData}class za{constructor(t,e,r,i){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function MT(n){switch(n){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.headers||(this.headers=new Zr),this.context||(this.context=new ET),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a<e.length-1?"&":"")+s}}else this.params=new hi,this.urlWithParams=e}serializeBody(){return null===this.body?null:Uv(this.body)||zv(this.body)||Gv(this.body)||function ST(n){return"undefined"!=typeof URLSearchParams&&n instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof hi?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||Gv(this.body)?null:zv(this.body)?this.body.type||null:Uv(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof hi?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(t={}){var e;const r=t.method||this.method,i=t.url||this.url,o=t.responseType||this.responseType,s=void 0!==t.body?t.body:this.body,a=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,l=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let c=t.headers||this.headers,u=t.params||this.params;const d=null!==(e=t.context)&&void 0!==e?e:this.context;return void 0!==t.setHeaders&&(c=Object.keys(t.setHeaders).reduce((f,p)=>f.set(p,t.setHeaders[p]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((f,p)=>f.set(p,t.setParams[p]),u)),new za(r,i,s,{params:u,headers:c,context:d,reportProgress:l,responseType:o,withCredentials:a})}}var jt=(()=>((jt=jt||{})[jt.Sent=0]="Sent",jt[jt.UploadProgress=1]="UploadProgress",jt[jt.ResponseHeader=2]="ResponseHeader",jt[jt.DownloadProgress=3]="DownloadProgress",jt[jt.Response=4]="Response",jt[jt.User=5]="User",jt))();class Ip{constructor(t,e=200,r="OK"){this.headers=t.headers||new Zr,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Pp extends Ip{constructor(t={}){super(t),this.type=jt.ResponseHeader}clone(t={}){return new Pp({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Jc extends Ip{constructor(t={}){super(t),this.type=jt.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Jc({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Wv extends Ip{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function kp(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let Np=(()=>{class n{constructor(e){this.handler=e}request(e,r,i={}){let o;if(e instanceof za)o=e;else{let l,c;l=i.headers instanceof Zr?i.headers:new Zr(i.headers),i.params&&(c=i.params instanceof hi?i.params:new hi({fromObject:i.params})),o=new za(e,r,void 0!==i.body?i.body:null,{headers:l,context:i.context,params:c,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=xr(o).pipe(function vT(n,t){return Ce(t)?Tl(n,t,1):Tl(n,1)}(l=>this.handler.handle(l)));if(e instanceof za||"events"===i.observe)return s;const a=s.pipe(Yc(l=>l instanceof Jc));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(en(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(en(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(en(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(en(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(e,r={}){return this.request("DELETE",e,r)}get(e,r={}){return this.request("GET",e,r)}head(e,r={}){return this.request("HEAD",e,r)}jsonp(e,r){return this.request("JSONP",e,{params:(new hi).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,r={}){return this.request("OPTIONS",e,r)}patch(e,r,i={}){return this.request("PATCH",e,kp(i,r))}post(e,r,i={}){return this.request("POST",e,kp(i,r))}put(e,r,i={}){return this.request("PUT",e,kp(i,r))}}return n.\u0275fac=function(e){return new(e||n)(G($v))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();class qv{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Xc=new ae("HTTP_INTERCEPTORS");let TT=(()=>{class n{intercept(e,r){return r.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();const AT=/^\)\]\}',?\n/;let Kv=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Ft(r=>{const i=this.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach((p,y)=>i.setRequestHeader(p,y.join(","))),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const p=e.detectContentTypeHeader();null!==p&&i.setRequestHeader("Content-Type",p)}if(e.responseType){const p=e.responseType.toLowerCase();i.responseType="json"!==p?p:"text"}const o=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const p=i.statusText||"OK",y=new Zr(i.getAllResponseHeaders()),w=function xT(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(i)||e.url;return s=new Pp({headers:y,status:i.status,statusText:p,url:w}),s},l=()=>{let{headers:p,status:y,statusText:w,url:b}=a(),S=null;204!==y&&(S=void 0===i.response?i.responseText:i.response),0===y&&(y=S?200:0);let E=y>=200&&y<300;if("json"===e.responseType&&"string"==typeof S){const F=S;S=S.replace(AT,"");try{S=""!==S?JSON.parse(S):null}catch(z){S=F,E&&(E=!1,S={error:z,text:S})}}E?(r.next(new Jc({body:S,headers:p,status:y,statusText:w,url:b||void 0})),r.complete()):r.error(new Wv({error:S,headers:p,status:y,statusText:w,url:b||void 0}))},c=p=>{const{url:y}=a(),w=new Wv({error:p,status:i.status||0,statusText:i.statusText||"Unknown Error",url:y||void 0});r.error(w)};let u=!1;const d=p=>{u||(r.next(a()),u=!0);let y={type:jt.DownloadProgress,loaded:p.loaded};p.lengthComputable&&(y.total=p.total),"text"===e.responseType&&!!i.responseText&&(y.partialText=i.responseText),r.next(y)},f=p=>{let y={type:jt.UploadProgress,loaded:p.loaded};p.lengthComputable&&(y.total=p.total),r.next(y)};return i.addEventListener("load",l),i.addEventListener("error",c),i.addEventListener("timeout",c),i.addEventListener("abort",c),e.reportProgress&&(i.addEventListener("progress",d),null!==o&&i.upload&&i.upload.addEventListener("progress",f)),i.send(o),r.next({type:jt.Sent}),()=>{i.removeEventListener("error",c),i.removeEventListener("abort",c),i.removeEventListener("load",l),i.removeEventListener("timeout",c),e.reportProgress&&(i.removeEventListener("progress",d),null!==o&&i.upload&&i.upload.removeEventListener("progress",f)),i.readyState!==i.DONE&&i.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(G(bv))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();const Op=new ae("XSRF_COOKIE_NAME"),Fp=new ae("XSRF_HEADER_NAME");class Zv{}let IT=(()=>{class n{constructor(e,r,i){this.doc=e,this.platform=r,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=pv(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(G($t),G(Zf),G(Op))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})(),Lp=(()=>{class n{constructor(e,r){this.tokenService=e,this.headerName=r}intercept(e,r){const i=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||i.startsWith("http://")||i.startsWith("https://"))return r.handle(e);const o=this.tokenService.getToken();return null!==o&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,o)})),r.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(G(Zv),G(Fp))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})(),PT=(()=>{class n{constructor(e,r){this.backend=e,this.injector=r,this.chain=null}handle(e){if(null===this.chain){const r=this.injector.get(Xc,[]);this.chain=r.reduceRight((i,o)=>new qv(i,o),this.backend)}return this.chain.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(G(Vv),G(St))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})(),kT=(()=>{class n{static disable(){return{ngModule:n,providers:[{provide:Lp,useClass:TT}]}}static withOptions(e={}){return{ngModule:n,providers:[e.cookieName?{provide:Op,useValue:e.cookieName}:[],e.headerName?{provide:Fp,useValue:e.headerName}:[]]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({providers:[Lp,{provide:Xc,useExisting:Lp,multi:!0},{provide:Zv,useClass:IT},{provide:Op,useValue:"XSRF-TOKEN"},{provide:Fp,useValue:"X-XSRF-TOKEN"}]}),n})(),Qv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({providers:[Np,{provide:$v,useClass:PT},Kv,{provide:Vv,useExisting:Kv}],imports:[[kT.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),n})();class NT extends It{constructor(t,e){super()}schedule(t,e=0){return this}}const eu={setInterval(n,t,...e){const{delegate:r}=eu;return(null==r?void 0:r.setInterval)?r.setInterval(n,t,...e):setInterval(n,t,...e)},clearInterval(n){const{delegate:t}=eu;return((null==t?void 0:t.clearInterval)||clearInterval)(n)},delegate:void 0};class Ga{constructor(t,e=Ga.now){this.schedulerActionCtor=t,this.now=e}schedule(t,e=0,r){return new this.schedulerActionCtor(this,t).schedule(r,e)}}Ga.now=Ap.now;const Yv=new class FT extends Ga{constructor(t,e=Ga.now){super(t,e),this.actions=[],this._active=!1}flush(t){const{actions:e}=this;if(this._active)return void e.push(t);let r;this._active=!0;do{if(r=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,r){for(;t=e.shift();)t.unsubscribe();throw r}}}(class OT extends NT{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){var r;if(this.closed)return this;this.state=t;const i=this.id,o=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(o,i,e)),this.pending=!0,this.delay=e,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(o,this.id,e),this}requestAsyncId(t,e,r=0){return eu.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,e,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return e;null!=e&&eu.clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(t,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let i,r=!1;try{this.work(t)}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:t,scheduler:e}=this,{actions:r}=e;this.work=this.state=this.scheduler=null,this.pending=!1,Ge(r,this),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null,super.unsubscribe()}}}),LT=Yv;function Wa(n,t=Yv){return Cn((e,r)=>{let i=null,o=null,s=null;const a=()=>{if(i){i.unsubscribe(),i=null;const c=o;o=null,r.next(c)}};function l(){const c=s+n,u=t.now();if(u<c)return i=this.schedule(void 0,c-u),void r.add(i);a()}e.subscribe(an(r,c=>{o=c,s=t.now(),i||(i=t.schedule(l,n),r.add(i))},()=>{a(),r.complete()},void 0,()=>{o=i=null}))})}function Jv(n){return Cn((t,e)=>{nr(n).subscribe(an(e,()=>e.complete(),Ws)),!e.closed&&t.subscribe(e)})}class Qr extends Lt{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return!e.closed&&t.next(this._value),e}getValue(){const{hasError:t,thrownError:e,_value:r}=this;if(t)throw e;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}function Xv(n=0,t,e=LT){let r=-1;return null!=t&&(bg(t)?e=t:r=t),new Ft(i=>{let o=function RT(n){return n instanceof Date&&!isNaN(n)}(n)?+n-e.now():n;o<0&&(o=0);let s=0;return e.schedule(function(){i.closed||(i.next(s++),0<=r?this.schedule(void 0,r):i.complete())},o)})}function Es(n){return Cn((t,e)=>{let o,r=null,i=!1;r=t.subscribe(an(e,void 0,void 0,s=>{o=nr(n(s,Es(n)(t))),r?(r.unsubscribe(),r=null,o.subscribe(e)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(e))})}function e8(...n){return function VT(){return wg(1)}()(No(n,Zs(n)))}function Rp(...n){const t=Zs(n);return Cn((e,r)=>{(t?e8(n,e,t):e8(n,e)).subscribe(r)})}function t8(n,t,e){const r=Ce(n)||t||e?{next:n,error:t,complete:e}:n;return r?Cn((i,o)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;i.subscribe(an(o,l=>{var c;null===(c=r.next)||void 0===c||c.call(r,l),o.next(l)},()=>{var l;a=!1,null===(l=r.complete)||void 0===l||l.call(r),o.complete()},l=>{var c;a=!1,null===(c=r.error)||void 0===c||c.call(r,l),o.error(l)},()=>{var l,c;a&&(null===(l=r.unsubscribe)||void 0===l||l.call(r)),null===(c=r.finalize)||void 0===c||c.call(r)}))}):ko}const{isArray:BT}=Array,{getPrototypeOf:jT,prototype:HT,keys:UT}=Object;function n8(n){if(1===n.length){const t=n[0];if(BT(t))return{args:t,keys:null};if(function zT(n){return n&&"object"==typeof n&&jT(n)===HT}(t)){const e=UT(t);return{args:e.map(r=>t[r]),keys:e}}}return{args:n,keys:null}}const{isArray:GT}=Array;function r8(n){return en(t=>function WT(n,t){return GT(t)?n(...t):n(t)}(n,t))}function i8(n,t){return n.reduce((e,r,i)=>(e[r]=t[i],e),{})}function o8(...n){const t=Zs(n),e=Dg(n),{args:r,keys:i}=n8(n);if(0===r.length)return No([],t);const o=new Ft(function qT(n,t,e=ko){return r=>{s8(t,()=>{const{length:i}=n,o=new Array(i);let s=i,a=i;for(let l=0;l<i;l++)s8(t,()=>{const c=No(n[l],t);let u=!1;c.subscribe(an(r,d=>{o[l]=d,u||(u=!0,a--),a||r.next(e(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,t,i?s=>i8(i,s):ko));return e?o.pipe(r8(e)):o}function s8(n,t,e){n?ri(e,n,t):t()}function a8(){return Cn((n,t)=>{let e,r=!1;n.subscribe(an(t,i=>{const o=e;e=i,r&&t.next([o,i]),r=!0}))})}const l8={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let tu;const QT=new Uint8Array(16);function YT(){if(!tu&&(tu="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!tu))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return tu(QT)}const un=[];for(let n=0;n<256;++n)un.push((n+256).toString(16).slice(1));const u8=function JT(n,t,e){if(l8.randomUUID&&!t&&!n)return l8.randomUUID();const r=(n=n||{}).random||(n.rng||YT)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){e=e||0;for(let i=0;i<16;++i)t[e+i]=r[i];return t}return function c8(n,t=0){return un[n[t+0]]+un[n[t+1]]+un[n[t+2]]+un[n[t+3]]+"-"+un[n[t+4]]+un[n[t+5]]+"-"+un[n[t+6]]+un[n[t+7]]+"-"+un[n[t+8]]+un[n[t+9]]+"-"+un[n[t+10]]+un[n[t+11]]+un[n[t+12]]+un[n[t+13]]+un[n[t+14]]+un[n[t+15]]}(r)};class d8{}const fi="*";function Ms(n,t){return{type:7,name:n,definitions:t,options:{}}}function Ir(n,t=null){return{type:4,styles:t,timings:n}}function h8(n,t=null){return{type:2,steps:n,options:t}}function At(n){return{type:6,styles:n,offset:null}}function qa(n,t,e){return{type:0,name:n,styles:t,options:e}}function Pr(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function f8(n){Promise.resolve(null).then(n)}class Ka{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){f8(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(r=>r()),e.length=0}}class p8{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,r=0,i=0;const o=this.players.length;0==o?f8(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++r==o&&this._onDestroy()}),s.onStart(()=>{++i==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(r=>{const i=r.totalTime?Math.min(1,e/r.totalTime):1;r.setPosition(i)})}getPosition(){const t=this.players.reduce((e,r)=>null===e||r.totalTime>e.totalTime?r:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(r=>r()),e.length=0}}var nu=zt(791);let m8=(()=>{class n{constructor(e,r){this._renderer=e,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(e,r){this._renderer.setProperty(this._elementRef.nativeElement,e,r)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(I(qr),I(kn))},n.\u0275dir=fe({type:n}),n})(),mo=(()=>{class n extends m8{}return n.\u0275fac=function(){let t;return function(r){return(t||(t=nn(n)))(r||n)}}(),n.\u0275dir=fe({type:n,features:[Le]}),n})();const Zn=new ae("NgValueAccessor"),tA={provide:Zn,useExisting:We(()=>Vp),multi:!0};let Vp=(()=>{class n extends mo{writeValue(e){this.setProperty("checked",e)}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=nn(n)))(r||n)}}(),n.\u0275dir=fe({type:n,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,r){1&e&&ke("change",function(o){return r.onChange(o.target.checked)})("blur",function(){return r.onTouched()})},features:[nt([tA]),Le]}),n})();const nA={provide:Zn,useExisting:We(()=>ru),multi:!0},iA=new ae("CompositionEventMode");let ru=(()=>{class n extends m8{constructor(e,r,i){super(e,r),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function rA(){const n=po()?po().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(I(qr),I(kn),I(iA,8))},n.\u0275dir=fe({type:n,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(e,r){1&e&&ke("input",function(o){return r._handleInput(o.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(o){return r._compositionEnd(o.target.value)})},features:[nt([nA]),Le]}),n})();function Li(n){return null==n||0===n.length}function g8(n){return null!=n&&"number"==typeof n.length}const dn=new ae("NgValidators"),Ri=new ae("NgAsyncValidators"),oA=/^(?=.{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 pi{static min(t){return function y8(n){return t=>{if(Li(t.value)||Li(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e<n?{min:{min:n,actual:t.value}}:null}}(t)}static max(t){return function _8(n){return t=>{if(Li(t.value)||Li(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return function v8(n){return Li(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function w8(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function C8(n){return Li(n.value)||oA.test(n.value)?null:{email:!0}}(t)}static minLength(t){return b8(t)}static maxLength(t){return D8(t)}static pattern(t){return function E8(n){if(!n)return iu;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),r=>{if(Li(r.value))return null;const i=r.value;return t.test(i)?null:{pattern:{requiredPattern:e,actualValue:i}}}}(t)}static nullValidator(t){return null}static compose(t){return I8(t)}static composeAsync(t){return P8(t)}}function b8(n){return t=>Li(t.value)||!g8(t.value)?null:t.value.length<n?{minlength:{requiredLength:n,actualLength:t.value.length}}:null}function D8(n){return t=>g8(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}function iu(n){return null}function M8(n){return null!=n}function S8(n){const t=_c(n)?No(n):n;return Ly(t),t}function T8(n){let t={};return n.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function A8(n,t){return t.map(e=>e(n))}function x8(n){return n.map(t=>function sA(n){return!n.validate}(t)?t:e=>t.validate(e))}function I8(n){if(!n)return null;const t=n.filter(M8);return 0==t.length?null:function(e){return T8(A8(e,t))}}function Bp(n){return null!=n?I8(x8(n)):null}function P8(n){if(!n)return null;const t=n.filter(M8);return 0==t.length?null:function(e){return function eA(...n){const t=Dg(n),{args:e,keys:r}=n8(n),i=new Ft(o=>{const{length:s}=e;if(!s)return void o.complete();const a=new Array(s);let l=s,c=s;for(let u=0;u<s;u++){let d=!1;nr(e[u]).subscribe(an(o,f=>{d||(d=!0,c--),a[u]=f},()=>l--,void 0,()=>{(!l||!d)&&(c||o.next(r?i8(r,a):a),o.complete())}))}});return t?i.pipe(r8(t)):i}(A8(e,t).map(S8)).pipe(en(T8))}}function jp(n){return null!=n?P8(x8(n)):null}function k8(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function N8(n){return n._rawValidators}function O8(n){return n._rawAsyncValidators}function Hp(n){return n?Array.isArray(n)?n:[n]:[]}function ou(n,t){return Array.isArray(n)?n.includes(t):n===t}function F8(n,t){const e=Hp(t);return Hp(n).forEach(i=>{ou(e,i)||e.push(i)}),e}function L8(n,t){return Hp(t).filter(e=>!ou(n,e))}class R8{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(t){this._rawValidators=t||[],this._composedValidatorFn=Bp(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=jp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class mi extends R8{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class xn extends R8{get formDirective(){return null}get path(){return null}}class $8{constructor(t){this._cd=t}is(t){var e,r,i;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(i=null===(r=this._cd)||void 0===r?void 0:r.control)||void 0===i?void 0:i[t])}}let Za=(()=>{class n extends $8{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(I(mi,2))},n.\u0275dir=fe({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,r){2&e&&Dr("ng-untouched",r.is("untouched"))("ng-touched",r.is("touched"))("ng-pristine",r.is("pristine"))("ng-dirty",r.is("dirty"))("ng-valid",r.is("valid"))("ng-invalid",r.is("invalid"))("ng-pending",r.is("pending"))},features:[Le]}),n})(),Up=(()=>{class n extends $8{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(I(xn,10))},n.\u0275dir=fe({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,r){2&e&&Dr("ng-untouched",r.is("untouched"))("ng-touched",r.is("touched"))("ng-pristine",r.is("pristine"))("ng-dirty",r.is("dirty"))("ng-valid",r.is("valid"))("ng-invalid",r.is("invalid"))("ng-pending",r.is("pending"))("ng-submitted",r.is("submitted"))},features:[Le]}),n})();function au(n,t){return[...t.path,n]}function Qa(n,t){Wp(n,t),t.valueAccessor.writeValue(n.value),function pA(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&B8(n,t)})}(n,t),function gA(n,t){const e=(r,i)=>{t.valueAccessor.writeValue(r),i&&t.viewToModelUpdate(r)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function mA(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&B8(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function fA(n,t){if(t.valueAccessor.setDisabledState){const e=r=>{t.valueAccessor.setDisabledState(r)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function lu(n,t,e=!0){const r=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(r),t.valueAccessor.registerOnTouched(r)),uu(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function cu(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function Wp(n,t){const e=N8(n);null!==t.validator?n.setValidators(k8(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const r=O8(n);null!==t.asyncValidator?n.setAsyncValidators(k8(r,t.asyncValidator)):"function"==typeof r&&n.setAsyncValidators([r]);const i=()=>n.updateValueAndValidity();cu(t._rawValidators,i),cu(t._rawAsyncValidators,i)}function uu(n,t){let e=!1;if(null!==n){if(null!==t.validator){const i=N8(n);if(Array.isArray(i)&&i.length>0){const o=i.filter(s=>s!==t.validator);o.length!==i.length&&(e=!0,n.setValidators(o))}}if(null!==t.asyncValidator){const i=O8(n);if(Array.isArray(i)&&i.length>0){const o=i.filter(s=>s!==t.asyncValidator);o.length!==i.length&&(e=!0,n.setAsyncValidators(o))}}}const r=()=>{};return cu(t._rawValidators,r),cu(t._rawAsyncValidators,r),e}function B8(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function qp(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}function Kp(n,t){if(!t)return null;let e,r,i;return Array.isArray(t),t.forEach(o=>{o.constructor===ru?e=o:function vA(n){return Object.getPrototypeOf(n.constructor)===mo}(o)?r=o:i=o}),i||r||e||null}function Zp(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}const Ya="VALID",du="INVALID",Ss="PENDING",Ja="DISABLED";function Yp(n){return(hu(n)?n.validators:n)||null}function z8(n){return Array.isArray(n)?Bp(n):n||null}function Jp(n,t){return(hu(t)?t.asyncValidators:n)||null}function G8(n){return Array.isArray(n)?jp(n):n||null}function hu(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}const Xp=n=>n instanceof tm,fu=n=>n instanceof pu,W8=n=>n instanceof Q8;function q8(n){return Xp(n)?n.value:n.getRawValue()}function K8(n,t){const e=fu(n),r=n.controls;if(!(e?Object.keys(r):r).length)throw new Y(1e3,"");if(!r[t])throw new Y(1001,"")}function Z8(n,t){fu(n),n._forEachChild((r,i)=>{if(void 0===t[i])throw new Y(1002,"")})}class em{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=z8(this._rawValidators),this._composedAsyncValidatorFn=G8(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Ya}get invalid(){return this.status===du}get pending(){return this.status==Ss}get disabled(){return this.status===Ja}get enabled(){return this.status!==Ja}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=z8(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=G8(t)}addValidators(t){this.setValidators(F8(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(F8(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(L8(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(L8(t,this._rawAsyncValidators))}hasValidator(t){return ou(this._rawValidators,t)}hasAsyncValidator(t){return ou(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Ss,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Ja,this.errors=null,this._forEachChild(r=>{r.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Ya,this._forEachChild(r=>{r.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ya||this.status===Ss)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ja:Ya}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Ss,this._hasOwnPendingAsyncValidator=!0;const e=S8(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function wA(n,t,e){if(null==t||(Array.isArray(t)||(t=t.split(e)),Array.isArray(t)&&0===t.length))return null;let r=n;return t.forEach(i=>{r=fu(r)?r.controls.hasOwnProperty(i)?r.controls[i]:null:W8(r)&&r.at(i)||null}),r}(this,t,".")}getError(t,e){const r=e?this.get(e):this;return r&&r.errors?r.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new $e,this.statusChanges=new $e}_calculateStatus(){return this._allControlsDisabled()?Ja:this.errors?du:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ss)?Ss:this._anyControlsHaveStatus(du)?du:Ya}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){hu(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class tm extends em{constructor(t=null,e,r){super(Yp(e),Jp(r,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),hu(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Zp(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Zp(this._onDisabledChange,t)}_forEachChild(t){}_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(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class pu extends em{constructor(t,e,r){super(Yp(e),Jp(r,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,r={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){Z8(this,t),Object.keys(t).forEach(r=>{K8(this,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(r=>{this.controls[r]&&this.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((r,i)=>{r.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,r)=>(t[r]=q8(e),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,r)=>!!r._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const r=this.controls[e];r&&t(r,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const r=this.controls[e];if(this.contains(e)&&t(r))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,r)=>((e.enabled||this.disabled)&&(t[r]=e.value),t))}_reduceChildren(t,e){let r=t;return this._forEachChild((i,o)=>{r=e(r,i,o)}),r}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class Q8 extends em{constructor(t,e,r){super(Yp(e),Jp(r,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,r={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){Z8(this,t),t.forEach((r,i)=>{K8(this,i),this.at(i).setValue(r,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((r,i)=>{this.at(i)&&this.at(i).patchValue(r,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((r,i)=>{r.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>q8(t))}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((e,r)=>!!r._syncPendingControls()||e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,r)=>{t(e,r)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}let Y8=(()=>{class n extends xn{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return au(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=nn(n)))(r||n)}}(),n.\u0275dir=fe({type:n,features:[Le]}),n})();const DA={provide:mi,useExisting:We(()=>mu)},X8=(()=>Promise.resolve(null))();let mu=(()=>{class n extends mi{constructor(e,r,i,o,s){super(),this._changeDetectorRef=s,this.control=new tm,this._registered=!1,this.update=new $e,this._parent=e,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=Kp(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const r=e.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),qp(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Qa(this.control,this),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(e){X8.then(()=>{var r;this.control.setValue(e,{emitViewToModelChange:!1}),null===(r=this._changeDetectorRef)||void 0===r||r.markForCheck()})}_updateDisabled(e){const r=e.isDisabled.currentValue,i=""===r||r&&"false"!==r;X8.then(()=>{var o;i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),null===(o=this._changeDetectorRef)||void 0===o||o.markForCheck()})}_getPath(e){return this._parent?au(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(I(xn,9),I(dn,10),I(Ri,10),I(Zn,10),I(Ra,8))},n.\u0275dir=fe({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[nt([DA]),Le,Lr]}),n})(),rm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})(),tw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({}),n})();const im=new ae("NgModelWithFormControlWarning"),xA={provide:xn,useExisting:We(()=>el)};let el=(()=>{class n extends xn{constructor(e,r){super(),this.validators=e,this.asyncValidators=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new $e,this._setValidators(e),this._setAsyncValidators(r)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(uu(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const r=this.form.get(e.path);return Qa(r,e),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),r}getControl(e){return this.form.get(e.path)}removeControl(e){lu(e.control||null,e,!1),Zp(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,r){this.form.get(e.path).setValue(r)}onSubmit(e){return this.submitted=!0,function U8(n,t){n._syncPendingControls(),t.forEach(e=>{const r=e.control;"submit"===r.updateOn&&r._pendingChange&&(e.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const r=e.control,i=this.form.get(e.path);r!==i&&(lu(r||null,e),Xp(i)&&(Qa(i,e),e.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const r=this.form.get(e.path);(function j8(n,t){Wp(n,t)})(r,e),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const r=this.form.get(e.path);r&&function yA(n,t){return uu(n,t)}(r,e)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Wp(this.form,this),this._oldForm&&uu(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(I(dn,10),I(Ri,10))},n.\u0275dir=fe({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,r){1&e&&ke("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[nt([xA]),Le,Lr]}),n})();const IA={provide:xn,useExisting:We(()=>gu)};let gu=(()=>{class n extends Y8{constructor(e,r,i){super(),this._parent=e,this._setValidators(r),this._setAsyncValidators(i)}_checkParentType(){ow(this._parent)}}return n.\u0275fac=function(e){return new(e||n)(I(xn,13),I(dn,10),I(Ri,10))},n.\u0275dir=fe({type:n,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[nt([IA]),Le]}),n})();const PA={provide:xn,useExisting:We(()=>om)};let om=(()=>{class n extends xn{constructor(e,r,i){super(),this._parent=e,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 au(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){ow(this._parent)}}return n.\u0275fac=function(e){return new(e||n)(I(xn,13),I(dn,10),I(Ri,10))},n.\u0275dir=fe({type:n,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[nt([PA]),Le]}),n})();function ow(n){return!(n instanceof gu||n instanceof el||n instanceof om)}const kA={provide:mi,useExisting:We(()=>yu)};let yu=(()=>{class n extends mi{constructor(e,r,i,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new $e,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=Kp(0,o)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),qp(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return au(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.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(I(xn,13),I(dn,10),I(Ri,10),I(Zn,10),I(im,8))},n.\u0275dir=fe({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[nt([kA]),Le,Lr]}),n})();function lw(n){return"number"==typeof n?n:parseInt(n,10)}let go=(()=>{class n{constructor(){this._validator=iu}ngOnChanges(e){if(this.inputName in e){const r=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):iu,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,features:[Lr]}),n})();const GA={provide:dn,useExisting:We(()=>_u),multi:!0};let _u=(()=>{class n extends go{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=e=>lw(e),this.createValidator=e=>b8(e)}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=nn(n)))(r||n)}}(),n.\u0275dir=fe({type:n,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(e,r){2&e&&yn("minlength",r._enabled?r.minlength:null)},inputs:{minlength:"minlength"},features:[nt([GA]),Le]}),n})();const WA={provide:dn,useExisting:We(()=>tl),multi:!0};let tl=(()=>{class n extends go{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>lw(e),this.createValidator=e=>D8(e)}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=nn(n)))(r||n)}}(),n.\u0275dir=fe({type:n,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,r){2&e&&yn("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},features:[nt([WA]),Le]}),n})(),mw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({imports:[[tw]]}),n})(),gw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({imports:[mw]}),n})(),cm=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:im,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({imports:[mw]}),n})(),yw=(()=>{class n{group(e,r=null){const i=this._reduceControls(e);let a,o=null,s=null;return null!=r&&(function KA(n){return void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn}(r)?(o=null!=r.validators?r.validators:null,s=null!=r.asyncValidators?r.asyncValidators:null,a=null!=r.updateOn?r.updateOn:void 0):(o=null!=r.validator?r.validator:null,s=null!=r.asyncValidator?r.asyncValidator:null)),new pu(i,{asyncValidators:s,updateOn:a,validators:o})}control(e,r,i){return new tm(e,r,i)}array(e,r,i){const o=e.map(s=>this._createControl(s));return new Q8(o,r,i)}_reduceControls(e){const r={};return Object.keys(e).forEach(i=>{r[i]=this._createControl(e[i])}),r}_createControl(e){return Xp(e)||fu(e)||W8(e)?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:cm}),n})();const vu=new ae("ngx-mask config"),_w=new ae("new ngx-mask config"),vw=new ae("initial ngx-mask config"),ZA={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,triggerOnMaskChange:!1,maskFilled:new $e,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")}}},QA=["Hh:m0:s0","Hh:m0","m0:s0"],YA=["percent","Hh","s0","m0","separator","d0/M0/0000","d0/M0","d0","M0"];let ww=(()=>{class n{constructor(e){this._config=e,this.maskExpression="",this.actualValue="",this.shownMaskExpression="",this._formatWithSeparators=(r,i,o,s)=>{var a,l;let c=[],u="";if(Array.isArray(o)){const w=new RegExp(o.map(b=>"[\\^$.|?*+()".indexOf(b)>=0?`\\${b}`:b).join("|"));c=r.split(w),u=null!==(l=null===(a=r.match(w))||void 0===a?void 0:a[0])&&void 0!==l?l:""}else c=r.split(o),u=o;const d=c.length>1?`${u}${c[1]}`:"";let f=c[0];const p=this.separatorLimit.replace(/\s/g,"");p&&+p&&(f="-"===f[0]?`-${f.slice(1,f.length).slice(0,p.length)}`:f.slice(0,p.length));const y=/(\d+)(\d{3})/;for(;i&&y.test(f);)f=f.replace(y,"$1"+i+"$2");return void 0===s?f+d:0===s?f:f+d.substr(0,s+1)},this.percentage=r=>Number(r)>=0&&Number(r)<=100,this.getPrecision=r=>{const i=r.split(".");return i.length>1?Number(i[i.length-1]):1/0},this.checkAndRemoveSuffix=r=>{var i,o,s;for(let a=(null===(i=this.suffix)||void 0===i?void 0:i.length)-1;a>=0;a--){const l=this.suffix.substr(a,null===(o=this.suffix)||void 0===o?void 0:o.length);if(r.includes(l)&&(a-1<0||!r.includes(this.suffix.substr(a-1,null===(s=this.suffix)||void 0===s?void 0:s.length))))return r.replace(l,"")}return r},this.checkInputPrecision=(r,i,o)=>{if(i<1/0){if(Array.isArray(o)){const l=o.find(c=>c!==this.thousandSeparator);o=l||o[0]}const s=new RegExp(this._charToRegExpExpression(o)+`\\d{${i}}.*$`),a=r.match(s);a&&a[0].length-1>i&&(r=r.substring(0,r.length-(a[0].length-1-i))),0===i&&this._compareOrIncludes(r[r.length-1],o,this.thousandSeparator)&&(r=r.substring(0,r.length-1))}return r},this._shift=new Set,this.clearIfNotMatch=this._config.clearIfNotMatch,this.dropSpecialCharacters=this._config.dropSpecialCharacters,this.maskSpecialCharacters=this._config.specialCharacters,this.maskAvailablePatterns=this._config.patterns,this.prefix=this._config.prefix,this.suffix=this._config.suffix,this.thousandSeparator=this._config.thousandSeparator,this.decimalMarker=this._config.decimalMarker,this.hiddenInput=this._config.hiddenInput,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}applyMaskWithPattern(e,r){const[i,o]=r;return this.customPattern=o,this.applyMask(e,i)}applyMask(e,r,i=0,o=!1,s=!1,a=(()=>{})){var l,c;if(!r||"string"!=typeof e)return"";let u=0,d="",f=!1,p=!1,y=1,w=!1;e.slice(0,this.prefix.length)===this.prefix&&(e=e.slice(this.prefix.length,e.length)),this.suffix&&(null==e?void 0:e.length)>0&&(e=this.checkAndRemoveSuffix(e));const b=e.toString().split("");"IP"===r&&(this.ipError=b.filter(Z=>"."===Z).length<3&&b.length<7,r="099.099.099.099");const S=[];for(let Z=0;Z<e.length;Z++)(null===(l=e[Z])||void 0===l?void 0:l.match("\\d"))&&S.push(e[Z]);if("CPF_CNPJ"===r&&(this.cpfCnpjError=11!==S.length&&14!==S.length,r=S.length>11?"00.000.000/0000-00":"000.000.000-00"),r.startsWith("percent")){if(e.match("[a-z]|[A-Z]")||e.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)){e=this._stripToDecimal(e);const Z=this.getPrecision(r);e=this.checkInputPrecision(e,Z,this.decimalMarker)}e.indexOf(".")>0&&!this.percentage(e.substring(0,e.indexOf(".")))&&(e=`${e.substring(0,e.indexOf(".")-1)}${e.substring(e.indexOf("."),e.length)}`),d=this.percentage(e)?e:e.substring(0,e.length-1)}else if(r.startsWith("separator")){(e.match("[w\u0430-\u044f\u0410-\u042f]")||e.match("[\u0401\u0451\u0410-\u044f]")||e.match("[a-z]|[A-Z]")||e.match(/[-@#!$%\\^&*()_\xa3\xac'+|~=`{}\[\]:";<>.?\/]/)||e.match("[^A-Za-z0-9,]"))&&(e=this._stripToDecimal(e)),e=e.length>1&&"0"===e[0]&&!this._compareOrIncludes(e[1],this.decimalMarker,this.thousandSeparator)&&!s?e.slice(1,e.length):e,s&&(e=this._compareOrIncludes(e[e.length-1],this.decimalMarker,this.thousandSeparator)?e.slice(0,e.length-1):e);const Z=this._charToRegExpExpression(this.thousandSeparator);let Q='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(Z,"");if(Array.isArray(this.decimalMarker))for(const X of this.decimalMarker)Q=Q.replace(this._charToRegExpExpression(X),"");else Q=Q.replace(this._charToRegExpExpression(this.decimalMarker),"");const Re=new RegExp("["+Q+"]");(e.match(Re)||1===e.length&&this._compareOrIncludes(e,this.decimalMarker,this.thousandSeparator))&&(e=e.substring(0,e.length-1));const He=this.getPrecision(r),Qe=(e=this.checkInputPrecision(e,He,this.decimalMarker)).replace(new RegExp(Z,"g"),"");d=this._formatWithSeparators(Qe,this.thousandSeparator,this.decimalMarker,He);const te=d.indexOf(",")-e.indexOf(","),oe=d.length-e.length;if(oe>0&&","!==d[i]){p=!0;let X=0;do{this._shift.add(i+X),X++}while(X<oe)}else 0!==te&&i>0&&!(d.indexOf(",")>=i&&i>3)||!(d.indexOf(".")>=i&&i>3)&&oe<=0?(this._shift.clear(),p=!0,y=oe,this._shift.add(i+=oe)):this._shift.clear()}else for(let Z=0,Q=b[0];Z<b.length&&u!==r.length;Z++,Q=b[Z])if(this._checkSymbolMask(Q,r[u])&&"?"===r[u+1])d+=Q,u+=2;else if("*"===r[u+1]&&f&&this._checkSymbolMask(Q,r[u+2]))d+=Q,u+=3,f=!1;else if(this._checkSymbolMask(Q,r[u])&&"*"===r[u+1])d+=Q,f=!0;else if("?"===r[u+1]&&this._checkSymbolMask(Q,r[u+2]))d+=Q,u+=3;else if(this._checkSymbolMask(Q,r[u])){if("H"===r[u]&&Number(Q)>2){u+=1,this._shiftStep(r,u,b.length),Z--,this.leadZeroDateTime&&(d+="0");continue}if("h"===r[u]&&"2"===d&&Number(Q)>3){u+=1,Z--;continue}if("m"===r[u]&&Number(Q)>5){u+=1,this._shiftStep(r,u,b.length),Z--,this.leadZeroDateTime&&(d+="0");continue}if("s"===r[u]&&Number(Q)>5){u+=1,this._shiftStep(r,u,b.length),Z--,this.leadZeroDateTime&&(d+="0");continue}const Re=31;if("d"===r[u]&&(Number(Q)>3&&this.leadZeroDateTime||Number(e.slice(u,u+2))>Re||"/"===e[u+1])){u+=1,this._shiftStep(r,u,b.length),Z--,this.leadZeroDateTime&&(d+="0");continue}if("M"===r[u]){const Qe=0===u&&(Number(Q)>2||Number(e.slice(u,u+2))>12||"/"===e[u+1]),te=e.slice(u-3,u-1).includes("/")&&("/"===e[u-2]&&Number(e.slice(u-1,u+1))>12&&"/"!==e[u]||"/"===e[u]||"/"===e[u-3]&&Number(e.slice(u-2,u))>12&&"/"!==e[u-1]||"/"===e[u-1]),oe=Number(e.slice(u-3,u-1))<=Re&&!e.slice(u-3,u-1).includes("/")&&"/"===e[u-1]&&(Number(e.slice(u,u+2))>12||"/"===e[u+1]),X=Number(e.slice(u-3,u-1))>Re&&!e.slice(u-3,u-1).includes("/")&&!e.slice(u-2,u).includes("/")&&Number(e.slice(u-2,u))>12,De=Number(e.slice(u-3,u-1))<=Re&&!e.slice(u-3,u-1).includes("/")&&"/"!==e[u-1]&&Number(e.slice(u-1,u+1))>12;if(Number(Q)>1&&this.leadZeroDateTime||Qe||te||oe||X||De){u+=1,this._shiftStep(r,u,b.length),Z--,this.leadZeroDateTime&&(d+="0");continue}}d+=Q,u++}else" "===Q&&" "===r[u]?(d+=Q,u++):-1!==this.maskSpecialCharacters.indexOf(r[u])?(d+=r[u],u++,this._shiftStep(r,u,b.length),Z--):this.maskSpecialCharacters.indexOf(Q)>-1&&this.maskAvailablePatterns[r[u]]&&(null===(c=this.maskAvailablePatterns[r[u]])||void 0===c?void 0:c.optional)?(!!b[u]&&"099.099.099.099"!==r&&"000.000.000-00"!==r&&"00.000.000/0000-00"!==r&&!r.match(/^9+\.0+$/)&&(d+=b[u]),u++,Z--):"*"===this.maskExpression[u+1]&&this._findSpecialChar(this.maskExpression[u+2])&&this._findSpecialChar(Q)===this.maskExpression[u+2]&&f||"?"===this.maskExpression[u+1]&&this._findSpecialChar(this.maskExpression[u+2])&&this._findSpecialChar(Q)===this.maskExpression[u+2]&&f?(u+=3,d+=Q):this.showMaskTyped&&this.maskSpecialCharacters.indexOf(Q)<0&&Q!==this.placeHolderCharacter&&(w=!0);d.length+1===r.length&&-1!==this.maskSpecialCharacters.indexOf(r[r.length-1])&&(d+=r[r.length-1]);let E=i+1;for(;this._shift.has(E);)y++,E++;let F=o&&!r.startsWith("separator")?u:this._shift.has(i)?y:0;w&&F--,a(F,p),y<0&&this._shift.clear();let z=!1;s&&(z=b.every(Z=>this.maskSpecialCharacters.includes(Z)));let ie=`${this.prefix}${z?"":d}${this.suffix}`;return 0===d.length&&(ie=`${this.prefix}${d}`),ie}_findSpecialChar(e){return this.maskSpecialCharacters.find(r=>r===e)}_checkSymbolMask(e,r){return this.maskAvailablePatterns=this.customPattern?this.customPattern:this.maskAvailablePatterns,this.maskAvailablePatterns[r]&&this.maskAvailablePatterns[r].pattern&&this.maskAvailablePatterns[r].pattern.test(e)}_stripToDecimal(e){return e.split("").filter((r,i)=>r.match("^-?\\d")||r.match("\\s")||"."===r||","===r||"-"===r&&0===i&&this.allowNegativeNumbers).join("")}_charToRegExpExpression(e){return e&&(" "===e?"\\s":"[\\^$.|?*+()".indexOf(e)>=0?`\\${e}`:e)}_shiftStep(e,r,i){const o=/[*?]/g.test(e.slice(0,r))?i:r;this._shift.add(o+this.prefix.length||0)}_compareOrIncludes(e,r,i){return Array.isArray(r)?r.filter(o=>o!==i).includes(e):e===r}}return n.\u0275fac=function(e){return new(e||n)(G(vu))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})(),Cw=(()=>{class n extends ww{constructor(e,r,i,o){super(r),this.document=e,this._config=r,this._elementRef=i,this._renderer=o,this.maskExpression="",this.isNumberValue=!1,this.placeHolderCharacter="_",this.maskIsShown="",this.selStart=null,this.selEnd=null,this.writingValue=!1,this.maskChanged=!1,this.triggerOnMaskChange=!1,this.onChange=s=>{}}applyMask(e,r,i=0,o=!1,s=!1,a=(()=>{})){if(!r)return e!==this.actualValue?this.actualValue:e;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():"","IP"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(e||"#")),"CPF_CNPJ"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(e||"#")),!e&&this.showMaskTyped)return this.formControlResult(this.prefix),this.prefix+this.maskIsShown;const l=e&&"number"==typeof this.selStart?e[this.selStart]:"";let c="";if(this.hiddenInput&&!this.writingValue){let p=this.actualValue.split("");""!==e&&p.length?"number"==typeof this.selStart&&"number"==typeof this.selEnd&&(e.length>p.length?p.splice(this.selStart,0,l):e.length<p.length&&(p.length-e.length==1?p.splice(this.selStart-1,1):p.splice(this.selStart,this.selEnd-this.selStart))):p=[],this.showMaskTyped&&(e=this.removeMask(e)),c=this.actualValue.length&&p.length<=e.length?this.shiftTypedSymbols(p.join("")):e}c=Boolean(c)&&c.length?c:e;const u=super.applyMask(c,r,i,o,s,a);if(this.actualValue=this.getActualValue(u),"."===this.thousandSeparator&&"."===this.decimalMarker&&(this.decimalMarker=","),this.maskExpression.startsWith("separator")&&!0===this.dropSpecialCharacters&&(this.maskSpecialCharacters=this.maskSpecialCharacters.filter(p=>!this._compareOrIncludes(p,this.decimalMarker,this.thousandSeparator))),this.formControlResult(u),!this.showMaskTyped)return this.hiddenInput&&u&&u.length?this.hideInput(u,this.maskExpression):u;const d=u.length,f=this.prefix+this.maskIsShown;if(this.maskExpression.includes("H")){const p=this._numberSkipedSymbols(u);return u+f.slice(d+p)}return"IP"===this.maskExpression||"CPF_CNPJ"===this.maskExpression?u+f:u+f.slice(d)}_numberSkipedSymbols(e){const r=/(^|\D)(\d\D)/g;let i=r.exec(e),o=0;for(;null!=i;)o+=1,i=r.exec(e);return o}applyValueChanges(e,r,i,o=(()=>{})){const s=this._elementRef.nativeElement;s.value=this.applyMask(s.value,this.maskExpression,e,r,i,o),s!==this._getActiveElement()&&this.clearIfNotMatchFn()}hideInput(e,r){return e.split("").map((i,o)=>{var s,a;return this.maskAvailablePatterns&&this.maskAvailablePatterns[r[o]]&&(null===(s=this.maskAvailablePatterns[r[o]])||void 0===s?void 0:s.symbol)?null===(a=this.maskAvailablePatterns[r[o]])||void 0===a?void 0:a.symbol:i}).join("")}getActualValue(e){const r=e.split("").filter((i,o)=>this._checkSymbolMask(i,this.maskExpression[o])||this.maskSpecialCharacters.includes(this.maskExpression[o])&&i===this.maskExpression[o]);return r.join("")===e?r.join(""):e}shiftTypedSymbols(e){let r="";return(e&&e.split("").map((o,s)=>{if(this.maskSpecialCharacters.includes(e[s+1])&&e[s+1]!==this.maskExpression[s+1])return r=o,e[s+1];if(r.length){const a=r;return r="",a}return o})||[]).join("")}numberToString(e){return e||0===e?Number(e).toLocaleString("fullwide",{useGrouping:!1,maximumFractionDigits:20}):String(e)}showMaskInInput(e){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(e){if("IP"===this.maskExpression)return this._checkForIp(e);if("CPF_CNPJ"===this.maskExpression)return this._checkForCpfCnpj(e)}return this.maskExpression.replace(/\w/g,this.placeHolderCharacter)}return""}clearIfNotMatchFn(){const e=this._elementRef.nativeElement;this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==e.value.replace(/_/g,"").length&&(this.formElementProperty=["value",""],this.applyMask(e.value,this.maskExpression))}set formElementProperty([e,r]){Promise.resolve().then(()=>this._renderer.setProperty(this._elementRef.nativeElement,e,r))}checkSpecialCharAmount(e){return e.split("").filter(i=>this._findSpecialChar(i)).length}removeMask(e){return this._removeMask(this._removeSuffix(this._removePrefix(e)),this.maskSpecialCharacters.concat("_").concat(this.placeHolderCharacter))}_checkForIp(e){var r;if("#"===e)return`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`;const i=[];for(let o=0;o<e.length;o++)(null===(r=e[o])||void 0===r?void 0:r.match("\\d"))&&i.push(e[o]);return i.length<=3?`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`:i.length>3&&i.length<=6?`${this.placeHolderCharacter}.${this.placeHolderCharacter}`:i.length>6&&i.length<=9?this.placeHolderCharacter:""}_checkForCpfCnpj(e){var r;const i=`${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`,o=`${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("#"===e)return i;const s=[];for(let a=0;a<e.length;a++)(null===(r=e[a])||void 0===r?void 0:r.match("\\d"))&&s.push(e[a]);return s.length<=3?i.slice(s.length,i.length):s.length>3&&s.length<=6?i.slice(s.length+1,i.length):s.length>6&&s.length<=9?i.slice(s.length+2,i.length):s.length>9&&s.length<11?i.slice(s.length+3,i.length):11===s.length?"":12===s.length?o.slice(17===e.length?16:15,o.length):s.length>12&&s.length<=14?o.slice(s.length+4,o.length):""}_getActiveElement(e=this.document){var r;const i=null===(r=null==e?void 0:e.activeElement)||void 0===r?void 0:r.shadowRoot;return(null==i?void 0:i.activeElement)?this._getActiveElement(i):e.activeElement}formControlResult(e){this.writingValue||!this.triggerOnMaskChange&&this.maskChanged?this.maskChanged=!1:Array.isArray(this.dropSpecialCharacters)?this.onChange(this._toNumber(this._removeMask(this._removeSuffix(this._removePrefix(e)),this.dropSpecialCharacters))):this.onChange(this.dropSpecialCharacters?this._toNumber(this._checkSymbols(e)):this._removeSuffix(e))}_toNumber(e){if(!this.isNumberValue||""===e)return e;const r=Number(e);return Number.isNaN(r)?e:r}_removeMask(e,r){return e&&e.replace(this._regExpForRemove(r),"")}_removePrefix(e){return this.prefix?e&&e.replace(this.prefix,""):e}_removeSuffix(e){return this.suffix?e&&e.replace(this.suffix,""):e}_retrieveSeparatorValue(e){return this._removeMask(this._removeSuffix(this._removePrefix(e)),this.maskSpecialCharacters)}_regExpForRemove(e){return new RegExp(e.map(r=>`\\${r}`).join("|"),"gi")}_checkSymbols(e){if(""===e)return e;const r=this._retrieveSeparatorPrecision(this.maskExpression);let i=this._retrieveSeparatorValue(e);return"."!==this.decimalMarker&&!Array.isArray(this.decimalMarker)&&(i=i.replace(this.decimalMarker,".")),this.isNumberValue?r?e===this.decimalMarker?null:this._checkPrecision(this.maskExpression,i):Number(i):i}_retrieveSeparatorPrecision(e){const r=e.match(new RegExp("^separator\\.([^d]*)"));return r?Number(r[1]):null}_checkPrecision(e,r){return e.indexOf("2")>0?Number(r).toFixed(2):Number(r)}}return n.\u0275fac=function(e){return new(e||n)(G($t),G(vu),G(kn),G(qr))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})(),JA=(()=>{class n{constructor(e,r,i){this.document=e,this._maskService=r,this._config=i,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.triggerOnMaskChange=null,this.maskFilled=new $e,this._maskValue="",this._position=null,this._maskExpressionArray=[],this._justPasted=!1,this.onChange=o=>{},this.onTouch=()=>{}}ngOnChanges(e){const{maskExpression:r,specialCharacters:i,patterns:o,prefix:s,suffix:a,thousandSeparator:l,decimalMarker:c,dropSpecialCharacters:u,hiddenInput:d,showMaskTyped:f,placeHolderCharacter:p,shownMaskExpression:y,showTemplate:w,clearIfNotMatch:b,validation:S,separatorLimit:E,allowNegativeNumbers:F,leadZeroDateTime:z,triggerOnMaskChange:ie}=e;if(r&&(r.currentValue!==r.previousValue&&!r.firstChange&&(this._maskService.maskChanged=!0),r.currentValue&&r.currentValue.split("||").length>1?(this._maskExpressionArray=r.currentValue.split("||").sort((Z,Q)=>Z.length-Q.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.maskSpecialCharacters=i.currentValue||[]}o&&o.currentValue&&(this._maskService.maskAvailablePatterns=o.currentValue),s&&(this._maskService.prefix=s.currentValue),a&&(this._maskService.suffix=a.currentValue),l&&(this._maskService.thousandSeparator=l.currentValue),c&&(this._maskService.decimalMarker=c.currentValue),u&&(this._maskService.dropSpecialCharacters=u.currentValue),d&&(this._maskService.hiddenInput=d.currentValue),f&&(this._maskService.showMaskTyped=f.currentValue),p&&(this._maskService.placeHolderCharacter=p.currentValue),y&&(this._maskService.shownMaskExpression=y.currentValue),w&&(this._maskService.showTemplate=w.currentValue),b&&(this._maskService.clearIfNotMatch=b.currentValue),S&&(this._maskService.validation=S.currentValue),E&&(this._maskService.separatorLimit=E.currentValue),F&&(this._maskService.allowNegativeNumbers=F.currentValue,this._maskService.allowNegativeNumbers&&(this._maskService.maskSpecialCharacters=this._maskService.maskSpecialCharacters.filter(Z=>"-"!==Z))),z&&(this._maskService.leadZeroDateTime=z.currentValue),ie&&(this._maskService.triggerOnMaskChange=ie.currentValue),this._applyMask()}validate({value:e}){if(!this._maskService.validation||!this._maskValue)return null;if(this._maskService.ipError)return this._createValidationError(e);if(this._maskService.cpfCnpjError)return this._createValidationError(e);if(this._maskValue.startsWith("separator")||YA.includes(this._maskValue)||this._maskService.clearIfNotMatch)return null;if(QA.includes(this._maskValue))return this._validateTime(e);if(e&&e.toString().length>=1){let r=0;for(const i in this._maskService.maskAvailablePatterns)if(this._maskService.maskAvailablePatterns[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)&&e.toString().length>=this._maskValue.indexOf(i)||r===this._maskValue.length))return null;if(1===this._maskValue.indexOf("{")&&e.toString().length===this._maskValue.length+Number(this._maskValue.split("{")[1].split("}")[0])-4||1===this._maskValue.indexOf("*")||1===this._maskValue.indexOf("?"))return null;if(this._maskValue.indexOf("*")>1&&e.toString().length<this._maskValue.indexOf("*")||this._maskValue.indexOf("?")>1&&e.toString().length<this._maskValue.indexOf("?")||1===this._maskValue.indexOf("{"))return this._createValidationError(e);if(-1===this._maskValue.indexOf("*")||-1===this._maskValue.indexOf("?")){const i=this._maskService.dropSpecialCharacters?this._maskValue.length-this._maskService.checkSpecialCharAmount(this._maskValue)-r:this._maskValue.length-r;if(e.toString().length<i)return this._createValidationError(e)}}return e&&this.maskFilled.emit(),null}onPaste(){this._justPasted=!0}onModelChange(e){(""===e||null==e)&&this._maskService.actualValue&&(this._maskService.actualValue=this._maskService.getActualValue(""))}onInput(e){const r=e.target;if(this._inputValue=r.value,this._setMask(),!this._maskValue)return void this.onChange(r.value);const i=1===r.selectionStart?r.selectionStart+this._maskService.prefix.length:r.selectionStart;let o=0,s=!1;if(this._maskService.applyValueChanges(i,this._justPasted,"Backspace"===this._code||"Delete"===this._code,(l,c)=>{this._justPasted=!1,o=l,s=c}),this._getActiveElement()!==r)return;this._position=1===this._position&&1===this._inputValue.length?null:this._position;let a=this._position?this._inputValue.length+i+o:i+("Backspace"!==this._code||s?o:0);a>this._getActualInputLength()&&(a=this._getActualInputLength()),a<0&&(a=0),r.setSelectionRange(a,a),this._position=null}onBlur(){this._maskValue&&this._maskService.clearIfNotMatchFn(),this.onTouch()}onClick(e){if(!this._maskValue)return;const r=e.target;null!==r&&null!==r.selectionStart&&r.selectionStart===r.selectionEnd&&r.selectionStart>this._maskService.prefix.length&&38!==e.keyCode&&this._maskService.showMaskTyped&&(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.value&&r.value!==this._maskService.prefix?r.value:this._maskService.prefix+this._maskService.maskIsShown;r.value!==s&&(r.value=s),(r.selectionStart||r.selectionEnd)<=this._maskService.prefix.length?r.selectionStart=this._maskService.prefix.length:r.selectionEnd>this._getActualInputLength()&&(r.selectionEnd=this._getActualInputLength())}onKeyDown(e){var r;if(!this._maskValue)return;this._code=e.code?e.code:e.key;const i=e.target;if(this._inputValue=i.value,this._setMask(),38===e.keyCode&&e.preventDefault(),37===e.keyCode||8===e.keyCode||46===e.keyCode){if(8===e.keyCode&&0===i.value.length&&(i.selectionStart=i.selectionEnd),8===e.keyCode&&0!==i.selectionStart)if(this.specialCharacters=(null===(r=this.specialCharacters)||void 0===r?void 0:r.length)?this.specialCharacters:this._config.specialCharacters,this.prefix.length>1&&i.selectionStart<=this.prefix.length)i.setSelectionRange(this.prefix.length,i.selectionEnd);else if(this._inputValue.length!==i.selectionStart&&1!==i.selectionStart)for(;this.specialCharacters.includes(this._inputValue[i.selectionStart-1].toString())&&(this.prefix.length>=1&&i.selectionStart>this.prefix.length||0===this.prefix.length);)i.setSelectionRange(i.selectionStart-1,i.selectionEnd);this.checkSelectionOnDeletion(i),this._maskService.prefix.length&&i.selectionStart<=this._maskService.prefix.length&&i.selectionEnd<=this._maskService.prefix.length&&e.preventDefault();const o=i.selectionStart;8===e.keyCode&&!i.readOnly&&0===o&&i.selectionEnd===i.value.length&&0!==i.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<i.selectionStart?i.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length):(65===e.keyCode&&e.ctrlKey||65===e.keyCode&&e.metaKey)&&(i.setSelectionRange(0,this._getActualInputLength()),e.preventDefault()),this._maskService.selStart=i.selectionStart,this._maskService.selEnd=i.selectionEnd}writeValue(e){return Sl(this,void 0,void 0,function*(){"object"==typeof e&&null!==e&&"value"in e&&("disable"in e&&this.setDisabledState(Boolean(e.disable)),e=e.value),("number"==typeof e||this._maskValue.startsWith("separator"))&&(e=this._maskService.numberToString(e),Array.isArray(this.decimalMarker)||(e="."!==this.decimalMarker?e.replace(".",this.decimalMarker):e),this._maskService.isNumberValue=!0),"string"!=typeof e&&(e=""),this._inputValue=e,this._setMask(),e&&this._maskService.maskExpression||this._maskService.maskExpression&&(this._maskService.prefix||this._maskService.showMaskTyped)?(this._maskService.writingValue=!0,this._maskService.formElementProperty=["value",this._maskService.applyMask(e,this._maskService.maskExpression)],this._maskService.writingValue=!1):this._maskService.formElementProperty=["value",e],this._inputValue=e})}registerOnChange(e){this.onChange=e,this._maskService.onChange=this.onChange}registerOnTouched(e){this.onTouch=e}_getActiveElement(e=this.document){var r;const i=null===(r=null==e?void 0:e.activeElement)||void 0===r?void 0:r.shadowRoot;return(null==i?void 0:i.activeElement)?this._getActiveElement(i):e.activeElement}checkSelectionOnDeletion(e){e.selectionStart=Math.min(Math.max(this.prefix.length,e.selectionStart),this._inputValue.length-this.suffix.length),e.selectionEnd=Math.min(Math.max(this.prefix.length,e.selectionEnd),this._inputValue.length-this.suffix.length)}setDisabledState(e){this._maskService.formElementProperty=["disabled",e]}_repeatPatternSymbols(e){return e.match(/{[0-9]+}/)&&e.split("").reduce((r,i,o)=>{if(this._start="{"===i?o:this._start,"}"!==i)return this._maskService._findSpecialChar(i)?r+i:r;this._end=o;const s=Number(e.slice(this._start+1,this._end));return r+new Array(s+1).join(e[this._start-1])},"")||e}_applyMask(){this._maskService.maskExpression=this._repeatPatternSymbols(this._maskValue||""),this._maskService.formElementProperty=["value",this._maskService.applyMask(this._inputValue,this._maskService.maskExpression)]}_validateTime(e){const r=this._maskValue.split("").filter(i=>":"!==i).length;return e&&(0==+e[e.length-1]&&e.length<r||e.length<=r-2)?this._createValidationError(e):null}_getActualInputLength(){return this._maskService.actualValue.length||this._maskService.actualValue.length+this._maskService.prefix.length}_createValidationError(e){return{mask:{requiredMask:this._maskValue,actualValue:e}}}_setMask(){this._maskExpressionArray.length>0&&this._maskExpressionArray.some(e=>{var r,i;const o=(null===(r=this._maskService.removeMask(this._inputValue))||void 0===r?void 0:r.length)<=(null===(i=this._maskService.removeMask(e))||void 0===i?void 0:i.length);if(this._inputValue&&o)return this._maskValue=e,this.maskExpression=e,this._maskService.maskExpression=e,o;this._maskValue=this._maskExpressionArray[this._maskExpressionArray.length-1],this.maskExpression=this._maskExpressionArray[this._maskExpressionArray.length-1],this._maskService.maskExpression=this._maskExpressionArray[this._maskExpressionArray.length-1]})}}return n.\u0275fac=function(e){return new(e||n)(I($t),I(Cw),I(vu))},n.\u0275dir=fe({type:n,selectors:[["input","mask",""],["textarea","mask",""]],hostBindings:function(e,r){1&e&&ke("paste",function(){return r.onPaste()})("ngModelChange",function(o){return r.onModelChange(o)})("input",function(o){return r.onInput(o)})("blur",function(){return r.onBlur()})("click",function(o){return r.onClick(o)})("keydown",function(o){return r.onKeyDown(o)})},inputs:{maskExpression:["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",triggerOnMaskChange:"triggerOnMaskChange"},outputs:{maskFilled:"maskFilled"},exportAs:["mask","ngxMask"],features:[nt([{provide:Zn,useExisting:We(()=>n),multi:!0},{provide:dn,useExisting:We(()=>n),multi:!0},Cw]),Lr]}),n})();function XA(n,t){return Object.assign(Object.assign({},n),t instanceof Function?t():t)}let um=(()=>{class n{static forRoot(e){return{ngModule:n,providers:[{provide:_w,useValue:e},{provide:vw,useValue:ZA},{provide:vu,useFactory:XA,deps:[vw,_w]},ww]}}static forChild(){return{ngModule:n}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({}),n})();const bw="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};bw.KeyboardEvent||(bw.KeyboardEvent=function(n,t){});const Dw=["toast-component",""];function ex(n,t){if(1&n){const e=Sn();j(0,"button",5),ke("click",function(){return Gt(e),ne().remove()}),j(1,"span",6),pe(2,"\xd7"),U()()}}function tx(n,t){if(1&n&&(Kt(0),pe(1),Zt()),2&n){const e=ne(2);O(1),_n("[",e.duplicatesCount+1,"]")}}function nx(n,t){if(1&n&&(j(0,"div"),pe(1),J(2,tx,2,1,"ng-container",4),U()),2&n){const e=ne();ui(e.options.titleClass),yn("aria-label",e.title),O(1),_n(" ",e.title," "),O(1),R("ngIf",e.duplicatesCount)}}function rx(n,t){if(1&n&&je(0,"div",7),2&n){const e=ne();ui(e.options.messageClass),R("innerHTML",e.message,Lh)}}function ix(n,t){if(1&n&&(j(0,"div",8),pe(1),U()),2&n){const e=ne();ui(e.options.messageClass),yn("aria-label",e.message),O(1),_n(" ",e.message," ")}}function ox(n,t){if(1&n&&(j(0,"div"),je(1,"div",9),U()),2&n){const e=ne();O(1),gs("width",e.width+"%")}}function sx(n,t){if(1&n){const e=Sn();j(0,"button",5),ke("click",function(){return Gt(e),ne().remove()}),j(1,"span",6),pe(2,"\xd7"),U()()}}function ax(n,t){if(1&n&&(Kt(0),pe(1),Zt()),2&n){const e=ne(2);O(1),_n("[",e.duplicatesCount+1,"]")}}function lx(n,t){if(1&n&&(j(0,"div"),pe(1),J(2,ax,2,1,"ng-container",4),U()),2&n){const e=ne();ui(e.options.titleClass),yn("aria-label",e.title),O(1),_n(" ",e.title," "),O(1),R("ngIf",e.duplicatesCount)}}function cx(n,t){if(1&n&&je(0,"div",7),2&n){const e=ne();ui(e.options.messageClass),R("innerHTML",e.message,Lh)}}function ux(n,t){if(1&n&&(j(0,"div",8),pe(1),U()),2&n){const e=ne();ui(e.options.messageClass),yn("aria-label",e.message),O(1),_n(" ",e.message," ")}}function dx(n,t){if(1&n&&(j(0,"div"),je(1,"div",9),U()),2&n){const e=ne();O(1),gs("width",e.width+"%")}}class hx{constructor(t,e){this.component=t,this.injector=e}attach(t,e){return this._attachedHost=t,t.attach(this,e)}detach(){const t=this._attachedHost;if(t)return this._attachedHost=void 0,t.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class wu{constructor(t,e,r,i,o,s){this.toastId=t,this.config=e,this.message=r,this.title=i,this.toastType=o,this.toastRef=s,this._onTap=new Lt,this._onAction=new Lt,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(t){this._onAction.next(t)}onAction(){return this._onAction.asObservable()}}const Ew={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",payload:null},Mw=new ae("ToastConfig");class px{constructor(t){this._overlayRef=t,this.duplicatesCount=0,this._afterClosed=new Lt,this._activate=new Lt,this._manualClose=new Lt,this._resetTimeout=new Lt,this._countDuplicate=new Lt}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(t,e){t&&this._resetTimeout.next(),e&&this._countDuplicate.next(++this.duplicatesCount)}}class mx{constructor(t,e){this._toastPackage=t,this._parentInjector=e}get(t,e,r){return t===wu?this._toastPackage:this._parentInjector.get(t,e,r)}}class gx extends class fx{attach(t,e){return this._attachedPortal=t,this.attachComponentPortal(t,e)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(t){this._disposeFn=t}}{constructor(t,e,r){super(),this._hostDomElement=t,this._componentFactoryResolver=e,this._appRef=r}attachComponentPortal(t,e){const r=this._componentFactoryResolver.resolveComponentFactory(t.component);let i;return i=r.create(t.injector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()}),e?this._hostDomElement.insertBefore(this._getComponentRootNode(i),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(i)),i}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}class yx{constructor(t){this._portalHost=t}attach(t,e=!0){return this._portalHost.attach(t,e)}detach(){return this._portalHost.detach()}}let _x=(()=>{class n{constructor(e){this._document=e}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e=this._document.createElement("div");e.classList.add("overlay-container"),e.setAttribute("aria-live","polite"),this._document.body.appendChild(e),this._containerElement=e}}return n.\u0275fac=function(e){return new(e||n)(G($t))},n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),vx=(()=>{class n{constructor(e,r,i,o){this._overlayContainer=e,this._componentFactoryResolver=r,this._appRef=i,this._document=o,this._paneElements=new Map}create(e,r){return this._createOverlayRef(this.getPaneElement(e,r))}getPaneElement(e="",r){return this._paneElements.get(r)||this._paneElements.set(r,{}),this._paneElements.get(r)[e]||(this._paneElements.get(r)[e]=this._createPaneElement(e,r)),this._paneElements.get(r)[e]}_createPaneElement(e,r){const i=this._document.createElement("div");return i.id="toast-container",i.classList.add(e),i.classList.add("toast-container"),r?r.getContainerElement().appendChild(i):this._overlayContainer.getContainerElement().appendChild(i),i}_createPortalHost(e){return new gx(e,this._componentFactoryResolver,this._appRef)}_createOverlayRef(e){return new yx(this._createPortalHost(e))}}return n.\u0275fac=function(e){return new(e||n)(G(_x),G(so),G(La),G($t))},n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Cu=(()=>{class n{constructor(e,r,i,o,s){this.overlay=r,this._injector=i,this.sanitizer=o,this.ngZone=s,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},e.default),e.config),e.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},e.default.iconClasses),e.config.iconClasses))}show(e,r,i={},o=""){return this._preBuildNotification(o,e,r,this.applyConfig(i))}success(e,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",e,r,this.applyConfig(i))}error(e,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",e,r,this.applyConfig(i))}info(e,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",e,r,this.applyConfig(i))}warning(e,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",e,r,this.applyConfig(i))}clear(e){for(const r of this.toasts)if(void 0!==e){if(r.toastId===e)return void r.toastRef.manualClose()}else r.toastRef.manualClose()}remove(e){const r=this._findToast(e);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(e="",r="",i,o){const{includeTitleDuplicates:s}=this.toastrConfig;for(const a of this.toasts){const l=s&&a.title===e;if((!s||l)&&a.message===r)return a.toastRef.onDuplicate(i,o),a}return null}applyConfig(e={}){return Object.assign(Object.assign({},this.toastrConfig),e)}_findToast(e){for(let r=0;r<this.toasts.length;r++)if(this.toasts[r].toastId===e)return{index:r,activeToast:this.toasts[r]};return null}_preBuildNotification(e,r,i,o){return o.onActivateTick?this.ngZone.run(()=>this._buildNotification(e,r,i,o)):this._buildNotification(e,r,i,o)}_buildNotification(e,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 a=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(a=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const l=this.overlay.create(o.positionClass,this.overlayContainer);this.index=this.index+1;let c=r;r&&o.enableHtml&&(c=this.sanitizer.sanitize(tt.HTML,r));const u=new px(l),d=new wu(this.index,o,c,i,e,u),f=new mx(d,this._injector),p=new hx(o.toastComponent,f),y=l.attach(p,this.toastrConfig.newestOnTop);u.componentInstance=y.instance;const w={toastId:this.index,title:i||"",message:r||"",toastRef:u,onShown:u.afterActivate(),onHidden:u.afterClosed(),onTap:d.onTap(),onAction:d.onAction(),portal:y};return a||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{w.toastRef.activate()})),this.toasts.push(w),w}}return n.\u0275fac=function(e){return new(e||n)(G(Mw),G(vx),G(St),G(Lv),G(Yt))},n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),wx=(()=>{class n{constructor(e,r,i){this.toastrService=e,this.toastPackage=r,this.ngZone=i,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},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})}get displayStyle(){if("inactive"===this.state.value)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state=Object.assign(Object.assign({},this.state),{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 e=(new Date).getTime();this.width=(this.hideTime-e)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=Object.assign(Object.assign({},this.state),{value:"active"}),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=Object.assign(Object.assign({},this.state),{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&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=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=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(e,r){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(e),r)):this.timeout=setTimeout(()=>e(),r)}outsideInterval(e,r){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(e),r)):this.intervalId=setInterval(()=>e(),r)}runInsideAngular(e){this.ngZone?this.ngZone.run(()=>e()):e()}}return n.\u0275fac=function(e){return new(e||n)(I(Cu),I(wu),I(Yt))},n.\u0275cmp=Dt({type:n,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(e,r){1&e&&ke("click",function(){return r.tapToast()})("mouseenter",function(){return r.stickAround()})("mouseleave",function(){return r.delayedHideToast()}),2&e&&(wc("@flyInOut",r.state),ui(r.toastClasses),gs("display",r.displayStyle))},attrs:Dw,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(e,r){1&e&&(J(0,ex,3,0,"button",0),J(1,nx,3,5,"div",1),J(2,rx,1,3,"div",2),J(3,ix,2,4,"div",3),J(4,ox,2,2,"div",4)),2&e&&(R("ngIf",r.options.closeButton),O(1),R("ngIf",r.title),O(1),R("ngIf",r.message&&r.options.enableHtml),O(1),R("ngIf",r.message&&!r.options.enableHtml),O(1),R("ngIf",r.options.progressBar))},directives:[Kn],encapsulation:2,data:{animation:[Ms("flyInOut",[qa("inactive",At({opacity:0})),qa("active",At({opacity:1})),qa("removed",At({opacity:0})),Pr("inactive => active",Ir("{{ easeTime }}ms {{ easing }}")),Pr("active => removed",Ir("{{ easeTime }}ms {{ easing }}"))])]}}),n})();const Cx=Object.assign(Object.assign({},Ew),{toastComponent:wx});let bx=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[{provide:Mw,useValue:{default:Cx,config:e}}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({imports:[[zc]]}),n})(),Dx=(()=>{class n{constructor(e,r,i){this.toastrService=e,this.toastPackage=r,this.appRef=i,this.width=-1,this.toastClasses="",this.state="inactive",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})}get displayStyle(){if("inactive"===this.state)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state="active",!(!0===this.options.disableTimeOut||"timeOut"===this.options.disableTimeOut)&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const e=(new Date).getTime();this.width=(this.hideTime-e)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state="active",this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=(new Date).getTime()+(this.originalTimeout||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){"removed"!==this.state&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){"removed"!==this.state&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}}return n.\u0275fac=function(e){return new(e||n)(I(Cu),I(wu),I(La))},n.\u0275cmp=Dt({type:n,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(e,r){1&e&&ke("click",function(){return r.tapToast()})("mouseenter",function(){return r.stickAround()})("mouseleave",function(){return r.delayedHideToast()}),2&e&&(ui(r.toastClasses),gs("display",r.displayStyle))},attrs:Dw,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(e,r){1&e&&(J(0,sx,3,0,"button",0),J(1,lx,3,5,"div",1),J(2,cx,1,3,"div",2),J(3,ux,2,4,"div",3),J(4,dx,2,2,"div",4)),2&e&&(R("ngIf",r.options.closeButton),O(1),R("ngIf",r.title),O(1),R("ngIf",r.message&&r.options.enableHtml),O(1),R("ngIf",r.message&&!r.options.enableHtml),O(1),R("ngIf",r.options.progressBar))},directives:[Kn],encapsulation:2}),n})();Object.assign(Object.assign({},Ew),{toastComponent:Dx}),function(n){function t(c){for(var u,d,f=c[0],p=c[1],y=0,w=[];y<f.length;y++)d=f[y],Object.prototype.hasOwnProperty.call(r,d)&&r[d]&&w.push(r[d][0]),r[d]=0;for(u in p)Object.prototype.hasOwnProperty.call(p,u)&&(n[u]=p[u]);for(l&&l(c);w.length;)w.shift()()}var e={},r={0:0};function i(c){if(e[c])return e[c].exports;var u=e[c]={i:c,l:!1,exports:{}};return n[c].call(u.exports,u,u.exports,i),u.l=!0,u.exports}i.e=function(){return Promise.resolve()},i.m=n,i.c=e,i.d=function(c,u,d){i.o(c,u)||Object.defineProperty(c,u,{enumerable:!0,get:d})},i.r=function(c){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},i.t=function(c,u){if(1&u&&(c=i(c)),8&u||4&u&&"object"==typeof c&&c&&c.__esModule)return c;var d=Object.create(null);if(i.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:c}),2&u&&"string"!=typeof c)for(var f in c)i.d(d,f,function(p){return c[p]}.bind(null,f));return d},i.n=function(c){var u=c&&c.__esModule?function(){return c.default}:function(){return c};return i.d(u,"a",u),u},i.o=function(c,u){return Object.prototype.hasOwnProperty.call(c,u)},i.p="",i.oe=function(c){throw console.error(c),c};var o=window.webpackJsonp=window.webpackJsonp||[],s=o.push.bind(o);o.push=t,o=o.slice();for(var a=0;a<o.length;a++)t(o[a]);var l=s;i(i.s=103)}({103:function(n,t,e){e.r(t),function(r){var i=e(14);function o(y,w,b,S,E,F,z){try{var ie=y[F](z),Z=ie.value}catch(Q){return void b(Q)}ie.done?w(Z):Promise.resolve(Z).then(S,E)}function s(y){return function(){var w=this,b=arguments;return new Promise(function(S,E){var F=y.apply(w,b);function z(Z){o(F,S,E,z,ie,"next",Z)}function ie(Z){o(F,S,E,z,ie,"throw",Z)}z(void 0)})}}function a(y,w,b){return w in y?Object.defineProperty(y,w,{value:b,enumerable:!0,configurable:!0,writable:!0}):y[w]=b,y}function l(y,w){return b=y,(S=u(y,w,"get")).get?S.get.call(b):S.value;var b,S}function u(y,w,b){if(!w.has(y))throw new TypeError("attempted to "+b+" private field on non-instance");return w.get(y)}function d(){var y="https://applepay.cdn-apple.com/jsapi/v1/apple-pay-sdk.js",b=document.createElement("div"),S=y.slice(0,y.lastIndexOf("/"))||"",E=_=>{for(var m in b.setAttribute("data-"+_,""),b.dataset)return delete b.dataset[m],m},F=_=>{b.dataset[_]="";var m=b.attributes[0];return b.removeAttribute(m.name),m.name.slice(5)};function z(_){return S+_.replace(/^\.\//,"/")}function ie(){var _;try{return null===(_=window.ApplePaySession)||void 0===_?void 0:_.canMakePayments()}catch(m){return console.warn(m),!1}}var Z=!1;if("undefined"!=typeof window){var Q={get passive(){Z=!0}};window.addEventListener("testPassive",null,Q),window.removeEventListener("testPassive",null,Q)}var Re="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),He=[],Qe=!1,te=-1,oe=void 0,X=void 0,De=void 0,we=function(_){return He.some(function(m){return!(!m.options.allowTouchMove||!m.options.allowTouchMove(_))})},N=function(_){var m=_||window.event;return!!we(m.target)||m.touches.length>1||(m.preventDefault&&m.preventDefault(),!1)},re=new WeakMap;class ee extends HTMLElement{constructor(){super(),re.set(this,{writable:!0,value:void 0}),a(this,"open",!1),a(this,"ready",!1),a(this,"url",me.url),a(this,"theme",me.theme),a(this,"locale",me.locale),this.close=this.close.bind(this)}connectedCallback(){var m=this;return s(function*(){(function c(y,w,b){(function(S,E,F){if(E.set)E.set.call(S,F);else{if(!E.writable)throw new TypeError("attempted to set read only private field");E.value=F}})(y,u(y,w,"set"),b)})(m,re,m.attachShadow({mode:"closed"})),m.update(),l(m,re).addEventListener("click",C=>{C.preventDefault(),C.stopPropagation();var M=C.target.closest('a[href*="'.concat("#apple-pay-close",'"]'));M&&C.currentTarget.contains(M)&&m.close()}),m.addEventListener("click",C=>m.close())})()}show(){(function(_,m){if(_){if(!He.some(function(M){return M.targetElement===_})){var C={targetElement:_,options:{}};He=[].concat(function(M){if(Array.isArray(M)){for(var V=0,H=Array(M.length);V<M.length;V++)H[V]=M[V];return H}return Array.from(M)}(He),[C]),Re?window.requestAnimationFrame(function(){if(void 0===X){X={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left};var M=window,V=M.scrollY,H=M.scrollX,ce=M.innerHeight;document.body.style.position="fixed",document.body.style.top=-V,document.body.style.left=-H,setTimeout(function(){return window.requestAnimationFrame(function(){var ze=ce-window.innerHeight;ze&&V>=ce&&(document.body.style.top=-(V+ze))})},300)}}):function(M){if(void 0===De)window,document;void 0===oe&&(oe=document.body.style.overflow,document.body.style.overflow="hidden")}(),Re&&(_.ontouchstart=function(M){1===M.targetTouches.length&&(te=M.targetTouches[0].clientY)},_.ontouchmove=function(M){var V,H,ze,ce;1===M.targetTouches.length&&(H=_,ce=(V=M).targetTouches[0].clientY-te,!we(V.target)&&(H&&0===H.scrollTop&&ce>0||(ze=H)&&ze.scrollHeight-ze.scrollTop<=ze.clientHeight&&ce<0?N(V):V.stopPropagation()))},Qe||(document.addEventListener("touchmove",N,Z?{passive:!1}:void 0),Qe=!0))}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")})(this.ownerDocument.body||this.ownerDocument.documentElement),this.setAttribute("open",""),this.open=!0;var m=l(this,re).querySelector("iframe");this.ready||(this.ready=!0,this.accessibilityTranslations(),Promise.race([new Promise(C=>m.onload=C),new Promise((C,M)=>setTimeout(M,10800))]).then(()=>{},()=>(console.error("Modal loading timeout. Check connection or try again later."),this.close())))}close(){var _;(_=this.ownerDocument.body||this.ownerDocument.documentElement)?(He=He.filter(function(m){return m.targetElement!==_}),Re&&(_.ontouchstart=null,_.ontouchmove=null,Qe&&0===He.length&&(document.removeEventListener("touchmove",N,Z?{passive:!1}:void 0),Qe=!1)),Re?function(){if(void 0!==X){var m=-parseInt(document.body.style.top,10),C=-parseInt(document.body.style.left,10);document.body.style.position=X.position,document.body.style.top=X.top,document.body.style.left=X.left,window.scrollTo(C,m),X=void 0}}():(void 0!==De&&(document.body.style.paddingRight=De,De=void 0),void 0!==oe&&(document.body.style.overflow=oe,oe=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices."),this.removeAttribute("open"),this.open=!1}update(){l(this,re).innerHTML='<section class="dialog theme-'.concat(this.theme,'" role="dialog" aria-modal="true"><div class="content"><iframe src="').concat(this.url,'" frameBorder="0" scrolling="no" loading="lazy"></iframe></div><a class="close" data-accessibility="closeButton" href="').concat("#apple-pay-close",'"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M12.12,10l4.07-4.06a1.5,1.5,0,1,0-2.11-2.12L10,7.88,5.94,3.81A1.5,1.5,0,1,0,3.82,5.93L7.88,10,3.81,14.06a1.5,1.5,0,0,0,0,2.12,1.51,1.51,0,0,0,2.13,0L10,12.12l4.06,4.07a1.45,1.45,0,0,0,1.06.44,1.5,1.5,0,0,0,1.06-2.56Z"></path></svg></a></section><style>').concat(":host{font-family:var(--apple-pay-font-family, '-apple-system', 'SF Pro Display', 'SF Pro Icons', 'Helvetica Neue', 'Helvetica', 'Arial', 'sans-serif');position:fixed;overflow:scroll;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;visibility:hidden;background-color:rgba(50,50,50,.58);-ms-flex-pack:center;justify-content:center;padding:2rem 0;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;opacity:0;-webkit-transition:visibility 0s .28s, opacity .28s, z-index 0s .28s;transition:visibility 0s .28s, opacity .28s, z-index 0s .28s;z-index:-1}:host([open]){visibility:visible;opacity:1;-webkit-transition:visibility 0s, opacity .28s, z-index 0s 0s;transition:visibility 0s, opacity .28s, z-index 0s 0s;z-index:1728}.dialog{--apple-pay-modal-padding-top:22px;--apple-pay-modal-padding-bottom:22px;--apple-pay-modal-padding-inline:22px;border-radius:20px;border:none;background-color:white;padding:0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;position:relative;margin:auto;opacity:0;-webkit-transform:scale(.97) translateZ(0);transform:scale(.97) translateZ(0);-webkit-transition:all .108s .054s;transition:all .108s .054s}:host([open]) .dialog{opacity:1;-webkit-transform:scale(1) translateZ(0);transform:scale(1) translateZ(0)}.dialog.theme-dark{background-color:#000}@media (prefers-color-scheme: dark){.dialog.theme-auto{background-color:#000}}.dialog .content{-webkit-margin-start:var(--apple-pay-modal-padding-inline);margin-inline-start:var(--apple-pay-modal-padding-inline);-webkit-margin-end:var(--apple-pay-modal-padding-inline);margin-inline-end:var(--apple-pay-modal-padding-inline);margin-top:var(--apple-pay-modal-padding-top);margin-bottom:var(--apple-pay-modal-padding-bottom);position:relative}.dialog iframe{border:none;width:320px;height:750px}@media (min-width: 376px){.dialog iframe{width:360px;height:720px}}.dialog footer{-webkit-padding-start:var(--apple-pay-modal-padding-inline);padding-inline-start:var(--apple-pay-modal-padding-inline);-webkit-padding-end:var(--apple-pay-modal-padding-inline);padding-inline-end:var(--apple-pay-modal-padding-inline);padding-top:var(--apple-pay-modal-padding-top);padding-bottom:var(--apple-pay-modal-padding-bottom);position:absolute;bottom:0;left:0;right:0}.dialog .close{position:absolute;top:20px;right:20px;width:36px;height:36px;border-radius:36px;display:-ms-flexbox;display:flex;background-color:rgb(232, 232, 237);color:rgba(0, 0, 0, 0.56);-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;outline:none}.dialog .close:hover{background-color:rgb(236, 236, 240);color:rgba(0, 0, 0, 0.72)}.dialog .close svg{fill:currentColor;width:20px;height:20px}.theme-dark.dialog .close{background-color:#333336;color:rgba(255,255,255,0.8)}.theme-dark.dialog .close:hover{background-color:#37373a;color:#fff}@media (prefers-color-scheme: dark){.theme-auto.dialog .close{background-color:#333336;color:rgba(255,255,255,0.8)}.theme-auto.dialog .close:hover{background-color:#37373a;color:#fff}}","</style>"),this.setAttribute("theme",this.theme)}accessibilityTranslations(){var m=this;s(function*(){var C=yield(yield fetch(z("./merchandising-".concat(m.locale.split("-")[1].toLowerCase(),".json")))).json(),M=m.locale.split("-")[0],V=C.accessibility[M],H=/\{\{\s*([^\s]+)\s*\}\}/gi;l(m,re).querySelectorAll("[data-accessibility]").forEach(ce=>{var ze=ce.dataset.accessibility;ce.ariaLabel=V[ze].replaceAll(H,(wt,Rn,ei)=>Rn),ce.alt=V[ze].replaceAll(H,(wt,Rn,ei)=>Rn)})})()}static get observedAttributes(){return Ye}attributeChangedCallback(m,C,M){m=E(m),null==M?delete this[m]:this[m]="true"===M||"false"!==M&&(""===M||M),M!==C&&this.update()}}var me={theme:"auto",locale:"en-US",url:""},Ye=Object.keys(me).map(F);Object.assign(ee.prototype,me),customElements.define("apple-pay-merchandising-modal",ee);var Ue=document.createElement("apple-pay-merchandising-modal");document.contains(Ue)||(document.body||document.documentElement).appendChild(Ue);var Ee,xt,gt,Oe=function(_,m,C){if(!m.has(_))throw new TypeError("attempted to set private field on non-instance");return m.set(_,C),C},Me=function(_,m){if(!m.has(_))throw new TypeError("attempted to get private field on non-instance");return m.get(_)},dt={us:{text:{en:{badge:'<a class="info-circle" href="{{ modalUrl }}" style="display:block"><svg width="16" style="display:block" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path d="M29.9475268,59.5867724 C46.1333288,59.5867724 59.534715,46.15661 59.534715,29.9998218 C59.534715,13.8140198 46.1043387,0.412871288 29.9185367,0.412871288 C13.7617248,0.412871288 0.36059406,13.8140198 0.36059406,29.9998218 C0.36059406,46.15661 13.7907743,59.5867724 29.9475268,59.5867724 Z M29.9475268,54.6556041 C16.256299,54.6556041 5.32073466,43.6910496 5.32073466,29.9998218 C5.32073466,16.3085941 16.2273089,5.34403961 29.9185367,5.34403961 C43.6097644,5.34403961 54.5743189,16.3085941 54.6035429,29.9998218 C54.6325367,43.6910496 43.6387545,54.6556041 29.9475268,54.6556041 Z M29.6864971,19.673406 C31.8039624,19.673406 33.4573486,17.9909703 33.4573486,15.873505 C33.4573486,13.7559802 31.8039624,12.073604 29.6864971,12.073604 C27.5979624,12.073604 25.9155862,13.7559802 25.9155862,15.873505 C25.9155862,17.9909703 27.5979624,19.673406 29.6864971,19.673406 Z M24.8713486,45.9535605 L36.6770912,45.9535605 C37.8663981,45.9535605 38.7946159,45.0833585 38.7946159,43.8940991 C38.7946159,42.7628318 37.8663981,41.863604 36.6770912,41.863604 L33.0802991,41.863604 L33.0802991,27.0991486 C33.0802991,25.5327921 32.2970911,24.4885545 30.8177644,24.4885545 L25.3644773,24.4885545 C24.1751703,24.4885545 23.2469525,25.3877228 23.2469525,26.5189901 C23.2469525,27.7082971 24.1751703,28.5784753 25.3644773,28.5784753 L28.4682,28.5784753 L28.4682,41.863604 L24.8713486,41.863604 C23.6820416,41.863604 22.7538238,42.7628318 22.7538238,43.8940991 C22.7538238,45.0833585 23.6820416,45.9535605 24.8713486,45.9535605 Z" transform="translate(2 2)"></path></svg></a>',plain:'Pay in full or use Apple Pay Later to&nbsp;make {{ frequency }}&nbsp;interest\u2011free payments of&nbsp;{{ paymentsAmount }}. <a href="{{ modalUrl }}"><strong>Learn&nbsp;more</strong></a>',price:'Or {{ frequency }}&nbsp;interest\u2011free payments of&nbsp;{{ paymentsAmount }} with Apple Pay Later. <a href="{{ modalUrl }}"><strong>Learn&nbsp;more</strong></a>',checkout:'Pay in full or use Apple Pay Later to&nbsp;make {{ frequency }}&nbsp;interest\u2011free payments of&nbsp;{{ paymentsAmount }}. <a href="{{ modalUrl }}"><strong>Learn&nbsp;more</strong></a>'}},legal:{default:"No fees and no impact to credit fees eligibility.\nPayment options are subject to eligibility checks and approvals at checkout.\nLoans are issued by Apple Financing LLC, NMLS #2154940, and may not be available in all states.\nCA Residents: Loans issued by Apple Financing LLC are made or arranged pursuant to a California Finance Lenders Law license.",learnMore:"Apple Pay Later loans are subject to eligibility checks and approvals, are issued by Apple Financing LLC, NMLS #2154940, and may not be available in all states. CA residents: Loans are made or arranged pursuant to a California Finance Lenders Law license."},nativeContent:{en:{promoText:"Pay in full or use Apple Pay Later to make {frequency} interest\u2011free payments of {paymentsAmount}."}},modal:{en:{"large-title":"Apple Pay Later",intro:"Pay purchases in {{ frequency }} interest-free payments every 2 weeks. Available to use everywhere Apple Pay is accepted.",payments:"Example payments for",amount:"{{ paymentsAmount }} every 2 weeks",frequency:"{{ frequency }} payments",today:'Due Today <span style="float: right;">{{ paymentsAmount }}</span>',"2weeks":'In 2 Weeks <span style="float: right;">{{ paymentsAmount }}</span>',"4weeks":'In 4 Weeks <span style="float: right;">{{ paymentsAmount }}</span>',"6weeks":'In 6 Weeks <span style="float: right;">{{ lastPaymentAmount }}</span>',total:"Total Cost {{ amount }}",interest:"No Interest"}},learnMore:{en:{intro:"Pay 4 interest-free payments, every 2 weeks.",headline1:"Check out with Apple Pay",subheadline1:"Check out with Apple Pay online and select the Pay Later option to review your available payment plan.",headline2:"No Fees or Impact to Credit",subheadline2:"No fees or funny stuff. Checking your eligibility will never impact your credit.",headline3:"Pay 25% today",subheadline3:"Your first payment is due at checkout, the rest every 2 weeks for 6 weeks.",headline4:"Manage in Wallet",subheadline4:"After your purchase, you can relax and manage your remaining payments right in the Wallet app."}},accessibility:{en:{applePayLaterLogo:"Apple Pay Later",applePayIcon:"Apple Pay icon",priceTagIcon:"Price Tag icon",dollarSignIcon:"Dollar Sign icon",walletIcon:"Wallet icon",applePayLaterAppLogo:"Apple Pay Later Icon",closeButton:"Close Button"}},presets:{badge:{logoType:"pay_later",logoStyle:"none",logoAlign:"left"},plain:{logoType:"pay",logoAlign:"right",logoStyle:"black"},checkout:{logoType:"pay",logoAlign:"left",logoStyle:"white"},price:{logoType:"pay",logoAlign:"right",logoStyle:"black"},custom:{logoType:"none",logoAlign:"left",logoStyle:"none"}},currencyCode:"USD",method:{bnpl:{minAmount:50,maxAmount:1e3,frequency:4}}}},Ht={apple_pay_later_logo_black:'<svg xmlns="http://www.w3.org/2000/svg" width="476.234" height="99.409" viewBox="0 0 476.234 99.409" style="enable-background:new 0 0 476.234 99.409" xml:space="preserve"><path d="M105.946 5.505c14.176 0 24.048 9.771 24.048 23.998 0 14.277-10.074 24.1-24.402 24.1H89.896v24.96h-11.34V5.505h27.39zm-16.05 38.579h13.012c9.873 0 15.492-5.315 15.492-14.53 0-9.214-5.619-14.479-15.441-14.479H89.896v29.009zm43.164 19.341c0-9.316 7.139-15.037 19.796-15.746l14.581-.86v-4.101c0-5.924-4-9.468-10.683-9.468-6.329 0-10.278 3.037-11.24 7.797h-10.328c.607-9.62 8.81-16.708 21.973-16.708 12.911 0 21.163 6.835 21.163 17.518v36.706h-10.48v-8.759h-.253c-3.088 5.924-9.821 9.67-16.809 9.67-10.429 0-17.72-6.481-17.72-16.049zm34.377-4.81v-4.202l-13.113.81c-6.531.456-10.227 3.342-10.227 7.898 0 4.657 3.848 7.695 9.721 7.695 7.645 0 13.619-5.265 13.619-12.201zm20.779 39.541v-8.86c.81.202 2.632.202 3.544.202 5.062 0 7.797-2.126 9.467-7.594 0-.102.963-3.24.963-3.291l-19.24-53.312h11.847l13.468 43.339h.202l13.468-43.339h11.543L213.53 81.347c-4.556 12.911-9.821 17.062-20.858 17.062-.912 0-3.647-.101-4.456-.253zm112.339-19.594h-45.363V5.505h11.341V68.74h34.022v9.822zm4.937-15.137c0-9.316 7.139-15.037 19.796-15.746l14.581-.86v-4.101c0-5.924-4-9.468-10.683-9.468-6.329 0-10.278 3.037-11.24 7.797h-10.328c.607-9.62 8.81-16.708 21.973-16.708 12.911 0 21.163 6.835 21.163 17.518v36.706h-10.48v-8.759h-.253c-3.088 5.924-9.821 9.67-16.809 9.67-10.43 0-17.72-6.481-17.72-16.049zm34.377-4.81v-4.202l-13.113.81c-6.531.456-10.227 3.342-10.227 7.898 0 4.657 3.848 7.695 9.721 7.695 7.644 0 13.619-5.265 13.619-12.201zm35.649-45.921V25.3h10.125v8.658h-10.125v29.364c0 4.607 2.024 6.683 6.48 6.683 1.113 0 2.886-.101 3.594-.253v8.657c-1.215.305-3.645.507-6.075.507-10.784 0-14.986-4.101-14.986-14.379V33.959h-7.746v-8.658h7.746V12.694h10.987zm63.409 50.224c-1.519 9.721-10.733 16.657-22.935 16.657-15.645 0-25.111-10.581-25.111-27.391 0-16.707 9.619-27.846 24.656-27.846 14.783 0 23.997 10.43 23.997 26.58v3.747h-37.616v.658c0 9.265 5.568 15.391 14.327 15.391 6.228 0 10.835-3.139 12.303-7.797h10.379zM401.968 47.02h26.631c-.253-8.15-5.417-13.872-13.062-13.872s-13.012 5.823-13.569 13.872zm46.028-21.719h10.43v9.062h.253c1.772-6.227 6.531-9.923 12.81-9.923 1.569 0 2.937.253 3.746.405v10.176c-.86-.354-2.784-.607-4.911-.607-7.037 0-11.391 4.709-11.391 12.252v31.896h-10.937V25.301zm-400.1-6.172c-6.518-.482-12.048 3.641-15.133 3.641-3.13 0-7.956-3.537-13.074-3.44-6.719.098-12.912 3.91-16.377 9.926C-3.667 41.369 1.53 59.32 8.328 69.15c3.325 4.803 7.291 10.216 12.5 10.019 5.014-.197 6.911-3.243 12.972-3.243 6.057 0 7.766 3.243 13.068 3.146 5.397-.1 8.816-4.903 12.117-9.733 3.82-5.575 5.389-10.973 5.482-11.259-.119-.045-10.52-4.036-10.624-16.019-.094-10.018 8.177-14.834 8.553-15.066-4.693-6.914-11.945-7.677-14.5-7.866zm-4.022-6.489C46.642 9.294 48.505 4.634 47.992 0c-3.984.158-8.803 2.654-11.661 5.998-2.559 2.962-4.807 7.706-4.196 12.246 4.441.342 8.973-2.257 11.739-5.604z"/></svg>',apple_pay_later_mark_black:'<svg viewBox="0 0 299 106" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M283.698,0 L14.823,0 C14.257,0 13.69,0 13.125,0.003 C12.648,0.007 12.172,0.012 11.695,0.025 C10.656,0.053 9.608,0.115 8.582,0.299 C7.55304935,0.475289397 6.5561053,0.803896713 5.624,1.274 C3.75016438,2.22707876 2.22707876,3.75016438 1.274,5.624 C0.803057197,6.55646163 0.474412543,7.5541931 0.299,8.584 C0.113,9.611 0.052,10.658 0.024,11.696 C0.011,12.173 0.005,12.649 0,13.126 C0,13.69 0,14.256 0,14.823 L0,91.141 C0,91.708 0,92.273 0,92.84 C0.005,93.316 0.011,93.793 0.024,94.27 C0.052,95.306 0.114,96.354 0.299,97.38 C0.474052532,98.4097641 0.802361489,99.4074997 1.273,100.34 C1.74618424,101.271314 2.36382962,102.121842 3.103,102.86 C3.84090499,103.599466 4.69148278,104.217148 5.623,104.69 C6.57,105.173 7.54,105.48 8.583,105.667 C9.608,105.85 10.656,105.912 11.695,105.94 C12.172,105.951 12.648,105.958 13.125,105.96 C13.69,105.964 14.257,105.964 14.823,105.964 L283.698,105.964 C284.263,105.964 284.83,105.964 285.395,105.96 C285.87205,105.957616 286.349069,105.950949 286.826,105.94 C287.863,105.912 288.911,105.85 289.939,105.667 C290.968174,105.490543 291.96519,105.161238 292.897,104.69 C294.769895,103.735625 296.292625,102.212895 297.247,100.34 C297.73,99.393 298.036,98.423 298.221,97.38 C298.407,96.354 298.467,95.306 298.495,94.27 C298.508,93.793 298.515,93.316 298.517,92.84 C298.521,92.273 298.521,91.708 298.521,91.141 L298.521,14.824 C298.521,14.257 298.521,13.691 298.517,13.125 C298.515064,12.6485989 298.50773,12.172235 298.495,11.696 C298.467,10.658 298.407,9.611 298.221,8.584 C298.046831,7.55401695 297.71848,6.55615176 297.247,5.624 C296.293413,3.75053315 294.770467,2.22758663 292.897,1.274 C291.964782,0.80438048 290.967861,0.476117852 289.939,0.3 C288.911,0.115 287.863,0.054 286.826,0.026 C286.349085,0.0138870152 285.872062,0.00655331365 285.395,0.004 C284.83,0 284.263,0 283.698,0 Z" id="Outline" fill="rgba(255,255,255,.075)"></path><path d="M285.37,3.535 C285.822,3.538 286.275,3.543 286.73,3.555 C287.522,3.577 288.449,3.62 289.313,3.775 C290.063,3.91 290.693,4.115 291.297,4.423 C292.505746,5.03755904 293.487734,6.0205978 294.101,7.23 C294.407,7.83 294.611,8.456 294.746,9.213 C294.9,10.067 294.943,10.996 294.964,11.793 C294.977,12.243 294.983,12.693 294.984,13.153 C294.989,13.71 294.989,14.266 294.989,14.824 L294.989,91.142 C294.989,91.7 294.989,92.256 294.985,92.824 C294.983,93.274 294.977,93.724 294.965,94.174 C294.943,94.97 294.9,95.899 294.744,96.763 C294.630594,97.4502806 294.413097,98.1162614 294.099,98.738 C293.484409,99.9478082 292.501027,100.93084 291.291,101.545 C290.691,101.851 290.063,102.057 289.32,102.19 C288.438,102.347 287.473,102.39 286.746,102.41 C286.289,102.42 285.834,102.427 285.367,102.429 C284.812,102.433 284.254,102.433 283.698,102.433 L14.801,102.433 C14.251,102.433 13.701,102.433 13.141,102.429 C12.6909551,102.427046 12.240937,102.421046 11.791,102.411 C11.047,102.391 10.081,102.347 9.207,102.191 C8.51598039,102.075842 7.84638728,101.85669 7.221,101.541 C6.62111744,101.236271 6.07359362,100.837949 5.599,100.361 C5.12290857,99.8857571 4.72529217,99.3379376 4.421,98.738 C4.10640097,98.1127736 3.88826296,97.4435248 3.774,96.753 C3.619,95.89 3.576,94.965 3.554,94.175 C3.54269765,93.7234137 3.53603063,93.2717232 3.532,92.82 L3.532,91.493 L3.532,14.474 L3.532,13.149 C3.537,12.696 3.542,12.244 3.554,11.792 C3.576,11 3.619,10.075 3.776,9.205 C3.89017322,8.51586104 4.10797216,7.84796678 4.422,7.224 C4.726,6.626 5.122,6.08 5.602,5.602 C6.07772872,5.1254978 6.62583457,4.72724354 7.226,4.422 C7.8498075,4.10823092 8.5172811,3.89012212 9.206,3.775 C10.071,3.62 10.998,3.577 11.792,3.555 C12.244,3.543 12.697,3.538 13.146,3.535 L14.823,3.532 L283.698,3.532 L285.37,3.535 Z" id="Bg" fill="#000"></path><path d="M45.186,35.64 C46.603,33.868 47.566,31.488 47.312,29.055 C45.237,29.159 42.705,30.425 41.239,32.198 C39.923,33.718 38.759,36.198 39.062,38.528 C41.392,38.73 43.718,37.363 45.186,35.641 M47.285,38.983 C43.903,38.781 41.027,40.902 39.412,40.902 C37.796,40.902 35.322,39.084 32.648,39.133 C29.166,39.184 25.935,41.153 24.168,44.283 C20.534,50.547 23.209,59.839 26.743,64.94 C28.46,67.464 30.528,70.243 33.253,70.143 C35.828,70.042 36.837,68.475 39.967,68.475 C43.095,68.475 44.004,70.143 46.73,70.092 C49.557,70.042 51.324,67.567 53.04,65.041 C55.009,62.164 55.815,59.386 55.865,59.233 C55.815,59.183 50.415,57.111 50.365,50.9 C50.314,45.699 54.605,43.225 54.806,43.072 C52.383,39.488 48.597,39.084 47.286,38.982 M76.734,31.944 C84.084,31.944 89.204,37.011 89.204,44.388 C89.204,51.792 83.979,56.885 76.55,56.885 L68.41,56.885 L68.41,69.828 L62.53,69.828 L62.53,31.944 L76.734,31.944 Z M68.41,51.949 L75.157,51.949 C80.277,51.949 83.191,49.193 83.191,44.415 C83.191,39.637 80.277,36.906 75.183,36.906 L68.41,36.906 L68.41,51.95 L68.41,51.949 Z M90.74,61.979 C90.74,57.148 94.442,54.181 101.006,53.813 L108.566,53.367 L108.566,51.241 C108.566,48.169 106.492,46.331 103.027,46.331 C99.745,46.331 97.697,47.906 97.199,50.374 L91.843,50.374 C92.158,45.386 96.411,41.71 103.237,41.71 C109.932,41.71 114.211,45.255 114.211,50.794 L114.211,69.828 L108.776,69.828 L108.776,65.286 L108.646,65.286 C107.044,68.358 103.552,70.301 99.929,70.301 C94.521,70.301 90.74,66.941 90.74,61.979 L90.74,61.979 Z M108.566,59.485 L108.566,57.305 L101.766,57.725 C98.38,57.962 96.463,59.458 96.463,61.821 C96.463,64.236 98.459,65.811 101.504,65.811 C105.468,65.811 108.566,63.081 108.566,59.485 L108.566,59.485 Z M119.342,79.989 L119.342,75.394 C119.761,75.499 120.706,75.499 121.179,75.499 C123.804,75.499 125.222,74.397 126.088,71.561 C126.088,71.509 126.588,69.881 126.588,69.855 L116.611,42.209 L122.754,42.209 L129.738,64.683 L129.842,64.683 L136.827,42.209 L142.812,42.209 L132.468,71.272 C130.106,77.967 127.375,80.12 121.652,80.12 C121.179,80.12 119.761,80.067 119.342,79.989 L119.342,79.989 Z" id="Pay" fill="#fff"></path><path d="M181.896484,70 L181.896484,64.7792969 L164.204102,64.7792969 L164.204102,31.9521484 L158.113281,31.9521484 L158.113281,70 L181.896484,70 Z M194.369219,70.5009766 C198.113359,70.5009766 201.224688,68.734375 202.859453,65.8076172 L203.149492,65.8076172 L203.149492,70 L209.003008,70 L209.003008,50.6201172 C209.003008,44.8193359 204.784258,41.2333984 197.770586,41.2333984 C191.020586,41.2333984 186.696367,44.6347656 186.142656,49.4072266 L186.116289,49.6445312 L191.706133,49.6445312 L191.7325,49.4863281 C192.312578,47.4033203 194.342852,46.0585938 197.533281,46.0585938 C201.171953,46.0585938 203.149492,47.8251953 203.149492,50.8574219 L203.149492,53.1513672 L195.555742,53.5996094 C188.805742,53.9951172 185.008867,56.9746094 185.008867,61.9580078 L185.008867,62.0107422 C185.008867,67.1259766 188.884844,70.5009766 194.369219,70.5009766 Z M196.003984,65.8339844 C192.971758,65.8339844 190.88875,64.3046875 190.88875,61.7998047 L190.88875,61.7470703 C190.88875,59.3212891 192.708086,57.8974609 196.346758,57.6601562 L203.149492,57.2382812 L203.149492,59.5322266 C203.149492,63.1181641 200.090898,65.8339844 196.003984,65.8339844 Z M225.06168,70.3691406 C226.221836,70.3691406 227.302891,70.2373047 228.120273,70.1054688 L228.120273,65.5175781 C227.513828,65.5703125 227.012852,65.6230469 226.248203,65.6230469 C223.637852,65.6230469 222.451328,64.5683594 222.451328,61.6416016 L222.451328,46.4013672 L228.120273,46.4013672 L228.120273,41.7871094 L222.451328,41.7871094 L222.451328,34.5888672 L216.439609,34.5888672 L216.439609,41.7871094 L212.220859,41.7871094 L212.220859,46.4013672 L216.439609,46.4013672 L216.439609,62.5380859 C216.439609,68.0751953 219.102695,70.3691406 225.06168,70.3691406 Z M244.23168,70.5537109 C251.377187,70.5537109 255.464102,66.3876953 256.386953,62.3007812 L256.439687,62.0634766 L250.823477,62.0634766 L250.744375,62.2480469 C250.058828,64.0146484 247.870352,65.78125 244.363516,65.78125 C239.801992,65.78125 236.901602,62.6962891 236.796133,57.3964844 L256.729727,57.3964844 L256.729727,55.3925781 C256.729727,46.9023438 251.851797,41.2333984 243.941641,41.2333984 C236.005117,41.2333984 230.889883,47.1132812 230.889883,55.9462891 L230.889883,55.9726562 C230.889883,64.9111328 235.926016,70.5537109 244.23168,70.5537109 Z M250.928945,53.2568359 L236.875234,53.2568359 C237.376211,48.5371094 240.223867,46.0058594 243.968008,46.0058594 C247.738516,46.0058594 250.480703,48.3789062 250.928945,53.2568359 Z M267.093086,70 L267.093086,53.2568359 C267.093086,49.1171875 269.703438,46.5859375 273.71125,46.5859375 C274.818672,46.5859375 275.820625,46.7177734 276.585273,46.9023438 L276.585273,41.4970703 C276.05793,41.3916016 275.187813,41.2597656 274.317695,41.2597656 C270.810859,41.2597656 268.332344,43.1582031 267.356758,46.3222656 L267.093086,46.3222656 L267.093086,41.7871094 L261.186836,41.7871094 L261.186836,70 L267.093086,70 Z" id="Later" fill="#fff"></path></svg>',apple_pay_later_mark_none:'<svg viewBox="20 0 260 106" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M45.186,35.64 C46.603,33.868 47.566,31.488 47.312,29.055 C45.237,29.159 42.705,30.425 41.239,32.198 C39.923,33.718 38.759,36.198 39.062,38.528 C41.392,38.73 43.718,37.363 45.186,35.641 M47.285,38.983 C43.903,38.781 41.027,40.902 39.412,40.902 C37.796,40.902 35.322,39.084 32.648,39.133 C29.166,39.184 25.935,41.153 24.168,44.283 C20.534,50.547 23.209,59.839 26.743,64.94 C28.46,67.464 30.528,70.243 33.253,70.143 C35.828,70.042 36.837,68.475 39.967,68.475 C43.095,68.475 44.004,70.143 46.73,70.092 C49.557,70.042 51.324,67.567 53.04,65.041 C55.009,62.164 55.815,59.386 55.865,59.233 C55.815,59.183 50.415,57.111 50.365,50.9 C50.314,45.699 54.605,43.225 54.806,43.072 C52.383,39.488 48.597,39.084 47.286,38.982 M76.734,31.944 C84.084,31.944 89.204,37.011 89.204,44.388 C89.204,51.792 83.979,56.885 76.55,56.885 L68.41,56.885 L68.41,69.828 L62.53,69.828 L62.53,31.944 L76.734,31.944 Z M68.41,51.949 L75.157,51.949 C80.277,51.949 83.191,49.193 83.191,44.415 C83.191,39.637 80.277,36.906 75.183,36.906 L68.41,36.906 L68.41,51.95 L68.41,51.949 Z M90.74,61.979 C90.74,57.148 94.442,54.181 101.006,53.813 L108.566,53.367 L108.566,51.241 C108.566,48.169 106.492,46.331 103.027,46.331 C99.745,46.331 97.697,47.906 97.199,50.374 L91.843,50.374 C92.158,45.386 96.411,41.71 103.237,41.71 C109.932,41.71 114.211,45.255 114.211,50.794 L114.211,69.828 L108.776,69.828 L108.776,65.286 L108.646,65.286 C107.044,68.358 103.552,70.301 99.929,70.301 C94.521,70.301 90.74,66.941 90.74,61.979 L90.74,61.979 Z M108.566,59.485 L108.566,57.305 L101.766,57.725 C98.38,57.962 96.463,59.458 96.463,61.821 C96.463,64.236 98.459,65.811 101.504,65.811 C105.468,65.811 108.566,63.081 108.566,59.485 L108.566,59.485 Z M119.342,79.989 L119.342,75.394 C119.761,75.499 120.706,75.499 121.179,75.499 C123.804,75.499 125.222,74.397 126.088,71.561 C126.088,71.509 126.588,69.881 126.588,69.855 L116.611,42.209 L122.754,42.209 L129.738,64.683 L129.842,64.683 L136.827,42.209 L142.812,42.209 L132.468,71.272 C130.106,77.967 127.375,80.12 121.652,80.12 C121.179,80.12 119.761,80.067 119.342,79.989 L119.342,79.989 Z" id="Pay"></path><path d="M181.896484,70 L181.896484,64.7792969 L164.204102,64.7792969 L164.204102,31.9521484 L158.113281,31.9521484 L158.113281,70 L181.896484,70 Z M194.369219,70.5009766 C198.113359,70.5009766 201.224688,68.734375 202.859453,65.8076172 L203.149492,65.8076172 L203.149492,70 L209.003008,70 L209.003008,50.6201172 C209.003008,44.8193359 204.784258,41.2333984 197.770586,41.2333984 C191.020586,41.2333984 186.696367,44.6347656 186.142656,49.4072266 L186.116289,49.6445312 L191.706133,49.6445312 L191.7325,49.4863281 C192.312578,47.4033203 194.342852,46.0585938 197.533281,46.0585938 C201.171953,46.0585938 203.149492,47.8251953 203.149492,50.8574219 L203.149492,53.1513672 L195.555742,53.5996094 C188.805742,53.9951172 185.008867,56.9746094 185.008867,61.9580078 L185.008867,62.0107422 C185.008867,67.1259766 188.884844,70.5009766 194.369219,70.5009766 Z M196.003984,65.8339844 C192.971758,65.8339844 190.88875,64.3046875 190.88875,61.7998047 L190.88875,61.7470703 C190.88875,59.3212891 192.708086,57.8974609 196.346758,57.6601562 L203.149492,57.2382812 L203.149492,59.5322266 C203.149492,63.1181641 200.090898,65.8339844 196.003984,65.8339844 Z M225.06168,70.3691406 C226.221836,70.3691406 227.302891,70.2373047 228.120273,70.1054688 L228.120273,65.5175781 C227.513828,65.5703125 227.012852,65.6230469 226.248203,65.6230469 C223.637852,65.6230469 222.451328,64.5683594 222.451328,61.6416016 L222.451328,46.4013672 L228.120273,46.4013672 L228.120273,41.7871094 L222.451328,41.7871094 L222.451328,34.5888672 L216.439609,34.5888672 L216.439609,41.7871094 L212.220859,41.7871094 L212.220859,46.4013672 L216.439609,46.4013672 L216.439609,62.5380859 C216.439609,68.0751953 219.102695,70.3691406 225.06168,70.3691406 Z M244.23168,70.5537109 C251.377187,70.5537109 255.464102,66.3876953 256.386953,62.3007812 L256.439687,62.0634766 L250.823477,62.0634766 L250.744375,62.2480469 C250.058828,64.0146484 247.870352,65.78125 244.363516,65.78125 C239.801992,65.78125 236.901602,62.6962891 236.796133,57.3964844 L256.729727,57.3964844 L256.729727,55.3925781 C256.729727,46.9023438 251.851797,41.2333984 243.941641,41.2333984 C236.005117,41.2333984 230.889883,47.1132812 230.889883,55.9462891 L230.889883,55.9726562 C230.889883,64.9111328 235.926016,70.5537109 244.23168,70.5537109 Z M250.928945,53.2568359 L236.875234,53.2568359 C237.376211,48.5371094 240.223867,46.0058594 243.968008,46.0058594 C247.738516,46.0058594 250.480703,48.3789062 250.928945,53.2568359 Z M267.093086,70 L267.093086,53.2568359 C267.093086,49.1171875 269.703438,46.5859375 273.71125,46.5859375 C274.818672,46.5859375 275.820625,46.7177734 276.585273,46.9023438 L276.585273,41.4970703 C276.05793,41.3916016 275.187813,41.2597656 274.317695,41.2597656 C270.810859,41.2597656 268.332344,43.1582031 267.356758,46.3222656 L267.093086,46.3222656 L267.093086,41.7871094 L261.186836,41.7871094 L261.186836,70 L267.093086,70 Z" id="Later"></path></svg>',apple_pay_later_mark_white_outline:'<svg viewBox="0 0 299 106" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M283.698,0 L14.823,0 C14.257,0 13.69,0 13.125,0.003 C12.648,0.007 12.172,0.012 11.695,0.025 C10.656,0.053 9.608,0.115 8.582,0.299 C7.55304935,0.475289397 6.5561053,0.803896713 5.624,1.274 C3.75016438,2.22707876 2.22707876,3.75016438 1.274,5.624 C0.803057197,6.55646163 0.474412543,7.5541931 0.299,8.584 C0.113,9.611 0.052,10.658 0.024,11.696 C0.011,12.173 0.005,12.649 0,13.126 C0,13.69 0,14.256 0,14.823 L0,91.141 C0,91.708 0,92.273 0,92.84 C0.005,93.316 0.011,93.793 0.024,94.27 C0.052,95.306 0.114,96.354 0.299,97.38 C0.474052532,98.4097641 0.802361489,99.4074997 1.273,100.34 C1.74618424,101.271314 2.36382962,102.121842 3.103,102.86 C3.84090499,103.599466 4.69148278,104.217148 5.623,104.69 C6.57,105.173 7.54,105.48 8.583,105.667 C9.608,105.85 10.656,105.912 11.695,105.94 C12.172,105.951 12.648,105.958 13.125,105.96 C13.69,105.964 14.257,105.964 14.823,105.964 L283.698,105.964 C284.263,105.964 284.83,105.964 285.395,105.96 C285.87205,105.957616 286.349069,105.950949 286.826,105.94 C287.863,105.912 288.911,105.85 289.939,105.667 C290.968174,105.490543 291.96519,105.161238 292.897,104.69 C294.769895,103.735625 296.292625,102.212895 297.247,100.34 C297.73,99.393 298.036,98.423 298.221,97.38 C298.407,96.354 298.467,95.306 298.495,94.27 C298.508,93.793 298.515,93.316 298.517,92.84 C298.521,92.273 298.521,91.708 298.521,91.141 L298.521,14.824 C298.521,14.257 298.521,13.691 298.517,13.125 C298.515064,12.6485989 298.50773,12.172235 298.495,11.696 C298.467,10.658 298.407,9.611 298.221,8.584 C298.046831,7.55401695 297.71848,6.55615176 297.247,5.624 C296.293413,3.75053315 294.770467,2.22758663 292.897,1.274 C291.964782,0.80438048 290.967861,0.476117852 289.939,0.3 C288.911,0.115 287.863,0.054 286.826,0.026 C286.349085,0.0138870152 285.872062,0.00655331365 285.395,0.004 C284.83,0 284.263,0 283.698,0 Z" id="Outline" fill="#000000"></path><path d="M285.37,3.535 C285.822,3.538 286.275,3.543 286.73,3.555 C287.522,3.577 288.449,3.62 289.313,3.775 C290.063,3.91 290.693,4.115 291.297,4.423 C292.505746,5.03755904 293.487734,6.0205978 294.101,7.23 C294.407,7.83 294.611,8.456 294.746,9.213 C294.9,10.067 294.943,10.996 294.964,11.793 C294.977,12.243 294.983,12.693 294.984,13.153 C294.989,13.71 294.989,14.266 294.989,14.824 L294.989,91.142 C294.989,91.7 294.989,92.256 294.985,92.824 C294.983,93.274 294.977,93.724 294.965,94.174 C294.943,94.97 294.9,95.899 294.744,96.763 C294.630594,97.4502806 294.413097,98.1162614 294.099,98.738 C293.484409,99.9478082 292.501027,100.93084 291.291,101.545 C290.691,101.851 290.063,102.057 289.32,102.19 C288.438,102.347 287.473,102.39 286.746,102.41 C286.289,102.42 285.834,102.427 285.367,102.429 C284.812,102.433 284.254,102.433 283.698,102.433 L14.801,102.433 C14.251,102.433 13.701,102.433 13.141,102.429 C12.6909551,102.427046 12.240937,102.421046 11.791,102.411 C11.047,102.391 10.081,102.347 9.207,102.191 C8.51598039,102.075842 7.84638728,101.85669 7.221,101.541 C6.62111744,101.236271 6.07359362,100.837949 5.599,100.361 C5.12290857,99.8857571 4.72529217,99.3379376 4.421,98.738 C4.10640097,98.1127736 3.88826296,97.4435248 3.774,96.753 C3.619,95.89 3.576,94.965 3.554,94.175 C3.54269765,93.7234137 3.53603063,93.2717232 3.532,92.82 L3.532,91.493 L3.532,14.474 L3.532,13.149 C3.537,12.696 3.542,12.244 3.554,11.792 C3.576,11 3.619,10.075 3.776,9.205 C3.89017322,8.51586104 4.10797216,7.84796678 4.422,7.224 C4.726,6.626 5.122,6.08 5.602,5.602 C6.07772872,5.1254978 6.62583457,4.72724354 7.226,4.422 C7.8498075,4.10823092 8.5172811,3.89012212 9.206,3.775 C10.071,3.62 10.998,3.577 11.792,3.555 C12.244,3.543 12.697,3.538 13.146,3.535 L14.823,3.532 L283.698,3.532 L285.37,3.535 Z" id="Bg" fill="#FFFFFF"></path><path d="M45.186,35.64 C46.603,33.868 47.566,31.488 47.312,29.055 C45.237,29.159 42.705,30.425 41.239,32.198 C39.923,33.718 38.759,36.198 39.062,38.528 C41.392,38.73 43.718,37.363 45.186,35.641 M47.285,38.983 C43.903,38.781 41.027,40.902 39.412,40.902 C37.796,40.902 35.322,39.084 32.648,39.133 C29.166,39.184 25.935,41.153 24.168,44.283 C20.534,50.547 23.209,59.839 26.743,64.94 C28.46,67.464 30.528,70.243 33.253,70.143 C35.828,70.042 36.837,68.475 39.967,68.475 C43.095,68.475 44.004,70.143 46.73,70.092 C49.557,70.042 51.324,67.567 53.04,65.041 C55.009,62.164 55.815,59.386 55.865,59.233 C55.815,59.183 50.415,57.111 50.365,50.9 C50.314,45.699 54.605,43.225 54.806,43.072 C52.383,39.488 48.597,39.084 47.286,38.982 M76.734,31.944 C84.084,31.944 89.204,37.011 89.204,44.388 C89.204,51.792 83.979,56.885 76.55,56.885 L68.41,56.885 L68.41,69.828 L62.53,69.828 L62.53,31.944 L76.734,31.944 Z M68.41,51.949 L75.157,51.949 C80.277,51.949 83.191,49.193 83.191,44.415 C83.191,39.637 80.277,36.906 75.183,36.906 L68.41,36.906 L68.41,51.95 L68.41,51.949 Z M90.74,61.979 C90.74,57.148 94.442,54.181 101.006,53.813 L108.566,53.367 L108.566,51.241 C108.566,48.169 106.492,46.331 103.027,46.331 C99.745,46.331 97.697,47.906 97.199,50.374 L91.843,50.374 C92.158,45.386 96.411,41.71 103.237,41.71 C109.932,41.71 114.211,45.255 114.211,50.794 L114.211,69.828 L108.776,69.828 L108.776,65.286 L108.646,65.286 C107.044,68.358 103.552,70.301 99.929,70.301 C94.521,70.301 90.74,66.941 90.74,61.979 L90.74,61.979 Z M108.566,59.485 L108.566,57.305 L101.766,57.725 C98.38,57.962 96.463,59.458 96.463,61.821 C96.463,64.236 98.459,65.811 101.504,65.811 C105.468,65.811 108.566,63.081 108.566,59.485 L108.566,59.485 Z M119.342,79.989 L119.342,75.394 C119.761,75.499 120.706,75.499 121.179,75.499 C123.804,75.499 125.222,74.397 126.088,71.561 C126.088,71.509 126.588,69.881 126.588,69.855 L116.611,42.209 L122.754,42.209 L129.738,64.683 L129.842,64.683 L136.827,42.209 L142.812,42.209 L132.468,71.272 C130.106,77.967 127.375,80.12 121.652,80.12 C121.179,80.12 119.761,80.067 119.342,79.989 L119.342,79.989 Z" id="Pay" fill="#000000"></path><path d="M181.896484,70 L181.896484,64.7792969 L164.204102,64.7792969 L164.204102,31.9521484 L158.113281,31.9521484 L158.113281,70 L181.896484,70 Z M194.369219,70.5009766 C198.113359,70.5009766 201.224688,68.734375 202.859453,65.8076172 L203.149492,65.8076172 L203.149492,70 L209.003008,70 L209.003008,50.6201172 C209.003008,44.8193359 204.784258,41.2333984 197.770586,41.2333984 C191.020586,41.2333984 186.696367,44.6347656 186.142656,49.4072266 L186.116289,49.6445312 L191.706133,49.6445312 L191.7325,49.4863281 C192.312578,47.4033203 194.342852,46.0585938 197.533281,46.0585938 C201.171953,46.0585938 203.149492,47.8251953 203.149492,50.8574219 L203.149492,53.1513672 L195.555742,53.5996094 C188.805742,53.9951172 185.008867,56.9746094 185.008867,61.9580078 L185.008867,62.0107422 C185.008867,67.1259766 188.884844,70.5009766 194.369219,70.5009766 Z M196.003984,65.8339844 C192.971758,65.8339844 190.88875,64.3046875 190.88875,61.7998047 L190.88875,61.7470703 C190.88875,59.3212891 192.708086,57.8974609 196.346758,57.6601562 L203.149492,57.2382812 L203.149492,59.5322266 C203.149492,63.1181641 200.090898,65.8339844 196.003984,65.8339844 Z M225.06168,70.3691406 C226.221836,70.3691406 227.302891,70.2373047 228.120273,70.1054688 L228.120273,65.5175781 C227.513828,65.5703125 227.012852,65.6230469 226.248203,65.6230469 C223.637852,65.6230469 222.451328,64.5683594 222.451328,61.6416016 L222.451328,46.4013672 L228.120273,46.4013672 L228.120273,41.7871094 L222.451328,41.7871094 L222.451328,34.5888672 L216.439609,34.5888672 L216.439609,41.7871094 L212.220859,41.7871094 L212.220859,46.4013672 L216.439609,46.4013672 L216.439609,62.5380859 C216.439609,68.0751953 219.102695,70.3691406 225.06168,70.3691406 Z M244.23168,70.5537109 C251.377187,70.5537109 255.464102,66.3876953 256.386953,62.3007812 L256.439687,62.0634766 L250.823477,62.0634766 L250.744375,62.2480469 C250.058828,64.0146484 247.870352,65.78125 244.363516,65.78125 C239.801992,65.78125 236.901602,62.6962891 236.796133,57.3964844 L256.729727,57.3964844 L256.729727,55.3925781 C256.729727,46.9023438 251.851797,41.2333984 243.941641,41.2333984 C236.005117,41.2333984 230.889883,47.1132812 230.889883,55.9462891 L230.889883,55.9726562 C230.889883,64.9111328 235.926016,70.5537109 244.23168,70.5537109 Z M250.928945,53.2568359 L236.875234,53.2568359 C237.376211,48.5371094 240.223867,46.0058594 243.968008,46.0058594 C247.738516,46.0058594 250.480703,48.3789062 250.928945,53.2568359 Z M267.093086,70 L267.093086,53.2568359 C267.093086,49.1171875 269.703438,46.5859375 273.71125,46.5859375 C274.818672,46.5859375 275.820625,46.7177734 276.585273,46.9023438 L276.585273,41.4970703 C276.05793,41.3916016 275.187813,41.2597656 274.317695,41.2597656 C270.810859,41.2597656 268.332344,43.1582031 267.356758,46.3222656 L267.093086,46.3222656 L267.093086,41.7871094 L261.186836,41.7871094 L261.186836,70 L267.093086,70 Z" id="Later" fill="#000000"></path></svg>',apple_pay_later_mark_white:'<svg viewBox="0 0 299 106" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M283.698,0 L14.823,0 C14.257,0 13.69,0 13.125,0.003 C12.648,0.007 12.172,0.012 11.695,0.025 C10.656,0.053 9.608,0.115 8.582,0.299 C7.55304935,0.475289397 6.5561053,0.803896713 5.624,1.274 C3.75016438,2.22707876 2.22707876,3.75016438 1.274,5.624 C0.803057197,6.55646163 0.474412543,7.5541931 0.299,8.584 C0.113,9.611 0.052,10.658 0.024,11.696 C0.011,12.173 0.005,12.649 0,13.126 C0,13.69 0,14.256 0,14.823 L0,91.141 C0,91.708 0,92.273 0,92.84 C0.005,93.316 0.011,93.793 0.024,94.27 C0.052,95.306 0.114,96.354 0.299,97.38 C0.474052532,98.4097641 0.802361489,99.4074997 1.273,100.34 C1.74618424,101.271314 2.36382962,102.121842 3.103,102.86 C3.84090499,103.599466 4.69148278,104.217148 5.623,104.69 C6.57,105.173 7.54,105.48 8.583,105.667 C9.608,105.85 10.656,105.912 11.695,105.94 C12.172,105.951 12.648,105.958 13.125,105.96 C13.69,105.964 14.257,105.964 14.823,105.964 L283.698,105.964 C284.263,105.964 284.83,105.964 285.395,105.96 C285.87205,105.957616 286.349069,105.950949 286.826,105.94 C287.863,105.912 288.911,105.85 289.939,105.667 C290.968174,105.490543 291.96519,105.161238 292.897,104.69 C294.769895,103.735625 296.292625,102.212895 297.247,100.34 C297.73,99.393 298.036,98.423 298.221,97.38 C298.407,96.354 298.467,95.306 298.495,94.27 C298.508,93.793 298.515,93.316 298.517,92.84 C298.521,92.273 298.521,91.708 298.521,91.141 L298.521,14.824 C298.521,14.257 298.521,13.691 298.517,13.125 C298.515064,12.6485989 298.50773,12.172235 298.495,11.696 C298.467,10.658 298.407,9.611 298.221,8.584 C298.046831,7.55401695 297.71848,6.55615176 297.247,5.624 C296.293413,3.75053315 294.770467,2.22758663 292.897,1.274 C291.964782,0.80438048 290.967861,0.476117852 289.939,0.3 C288.911,0.115 287.863,0.054 286.826,0.026 C286.349085,0.0138870152 285.872062,0.00655331365 285.395,0.004 C284.83,0 284.263,0 283.698,0 Z" id="Outline" fill="rgba(0,0,0,.075)"></path><path d="M285.37,3.535 C285.822,3.538 286.275,3.543 286.73,3.555 C287.522,3.577 288.449,3.62 289.313,3.775 C290.063,3.91 290.693,4.115 291.297,4.423 C292.505746,5.03755904 293.487734,6.0205978 294.101,7.23 C294.407,7.83 294.611,8.456 294.746,9.213 C294.9,10.067 294.943,10.996 294.964,11.793 C294.977,12.243 294.983,12.693 294.984,13.153 C294.989,13.71 294.989,14.266 294.989,14.824 L294.989,91.142 C294.989,91.7 294.989,92.256 294.985,92.824 C294.983,93.274 294.977,93.724 294.965,94.174 C294.943,94.97 294.9,95.899 294.744,96.763 C294.630594,97.4502806 294.413097,98.1162614 294.099,98.738 C293.484409,99.9478082 292.501027,100.93084 291.291,101.545 C290.691,101.851 290.063,102.057 289.32,102.19 C288.438,102.347 287.473,102.39 286.746,102.41 C286.289,102.42 285.834,102.427 285.367,102.429 C284.812,102.433 284.254,102.433 283.698,102.433 L14.801,102.433 C14.251,102.433 13.701,102.433 13.141,102.429 C12.6909551,102.427046 12.240937,102.421046 11.791,102.411 C11.047,102.391 10.081,102.347 9.207,102.191 C8.51598039,102.075842 7.84638728,101.85669 7.221,101.541 C6.62111744,101.236271 6.07359362,100.837949 5.599,100.361 C5.12290857,99.8857571 4.72529217,99.3379376 4.421,98.738 C4.10640097,98.1127736 3.88826296,97.4435248 3.774,96.753 C3.619,95.89 3.576,94.965 3.554,94.175 C3.54269765,93.7234137 3.53603063,93.2717232 3.532,92.82 L3.532,91.493 L3.532,14.474 L3.532,13.149 C3.537,12.696 3.542,12.244 3.554,11.792 C3.576,11 3.619,10.075 3.776,9.205 C3.89017322,8.51586104 4.10797216,7.84796678 4.422,7.224 C4.726,6.626 5.122,6.08 5.602,5.602 C6.07772872,5.1254978 6.62583457,4.72724354 7.226,4.422 C7.8498075,4.10823092 8.5172811,3.89012212 9.206,3.775 C10.071,3.62 10.998,3.577 11.792,3.555 C12.244,3.543 12.697,3.538 13.146,3.535 L14.823,3.532 L283.698,3.532 L285.37,3.535 Z" id="Bg" fill="#FFFFFF"></path><path d="M45.186,35.64 C46.603,33.868 47.566,31.488 47.312,29.055 C45.237,29.159 42.705,30.425 41.239,32.198 C39.923,33.718 38.759,36.198 39.062,38.528 C41.392,38.73 43.718,37.363 45.186,35.641 M47.285,38.983 C43.903,38.781 41.027,40.902 39.412,40.902 C37.796,40.902 35.322,39.084 32.648,39.133 C29.166,39.184 25.935,41.153 24.168,44.283 C20.534,50.547 23.209,59.839 26.743,64.94 C28.46,67.464 30.528,70.243 33.253,70.143 C35.828,70.042 36.837,68.475 39.967,68.475 C43.095,68.475 44.004,70.143 46.73,70.092 C49.557,70.042 51.324,67.567 53.04,65.041 C55.009,62.164 55.815,59.386 55.865,59.233 C55.815,59.183 50.415,57.111 50.365,50.9 C50.314,45.699 54.605,43.225 54.806,43.072 C52.383,39.488 48.597,39.084 47.286,38.982 M76.734,31.944 C84.084,31.944 89.204,37.011 89.204,44.388 C89.204,51.792 83.979,56.885 76.55,56.885 L68.41,56.885 L68.41,69.828 L62.53,69.828 L62.53,31.944 L76.734,31.944 Z M68.41,51.949 L75.157,51.949 C80.277,51.949 83.191,49.193 83.191,44.415 C83.191,39.637 80.277,36.906 75.183,36.906 L68.41,36.906 L68.41,51.95 L68.41,51.949 Z M90.74,61.979 C90.74,57.148 94.442,54.181 101.006,53.813 L108.566,53.367 L108.566,51.241 C108.566,48.169 106.492,46.331 103.027,46.331 C99.745,46.331 97.697,47.906 97.199,50.374 L91.843,50.374 C92.158,45.386 96.411,41.71 103.237,41.71 C109.932,41.71 114.211,45.255 114.211,50.794 L114.211,69.828 L108.776,69.828 L108.776,65.286 L108.646,65.286 C107.044,68.358 103.552,70.301 99.929,70.301 C94.521,70.301 90.74,66.941 90.74,61.979 L90.74,61.979 Z M108.566,59.485 L108.566,57.305 L101.766,57.725 C98.38,57.962 96.463,59.458 96.463,61.821 C96.463,64.236 98.459,65.811 101.504,65.811 C105.468,65.811 108.566,63.081 108.566,59.485 L108.566,59.485 Z M119.342,79.989 L119.342,75.394 C119.761,75.499 120.706,75.499 121.179,75.499 C123.804,75.499 125.222,74.397 126.088,71.561 C126.088,71.509 126.588,69.881 126.588,69.855 L116.611,42.209 L122.754,42.209 L129.738,64.683 L129.842,64.683 L136.827,42.209 L142.812,42.209 L132.468,71.272 C130.106,77.967 127.375,80.12 121.652,80.12 C121.179,80.12 119.761,80.067 119.342,79.989 L119.342,79.989 Z" id="Pay" fill="#000000"></path><path d="M181.896484,70 L181.896484,64.7792969 L164.204102,64.7792969 L164.204102,31.9521484 L158.113281,31.9521484 L158.113281,70 L181.896484,70 Z M194.369219,70.5009766 C198.113359,70.5009766 201.224688,68.734375 202.859453,65.8076172 L203.149492,65.8076172 L203.149492,70 L209.003008,70 L209.003008,50.6201172 C209.003008,44.8193359 204.784258,41.2333984 197.770586,41.2333984 C191.020586,41.2333984 186.696367,44.6347656 186.142656,49.4072266 L186.116289,49.6445312 L191.706133,49.6445312 L191.7325,49.4863281 C192.312578,47.4033203 194.342852,46.0585938 197.533281,46.0585938 C201.171953,46.0585938 203.149492,47.8251953 203.149492,50.8574219 L203.149492,53.1513672 L195.555742,53.5996094 C188.805742,53.9951172 185.008867,56.9746094 185.008867,61.9580078 L185.008867,62.0107422 C185.008867,67.1259766 188.884844,70.5009766 194.369219,70.5009766 Z M196.003984,65.8339844 C192.971758,65.8339844 190.88875,64.3046875 190.88875,61.7998047 L190.88875,61.7470703 C190.88875,59.3212891 192.708086,57.8974609 196.346758,57.6601562 L203.149492,57.2382812 L203.149492,59.5322266 C203.149492,63.1181641 200.090898,65.8339844 196.003984,65.8339844 Z M225.06168,70.3691406 C226.221836,70.3691406 227.302891,70.2373047 228.120273,70.1054688 L228.120273,65.5175781 C227.513828,65.5703125 227.012852,65.6230469 226.248203,65.6230469 C223.637852,65.6230469 222.451328,64.5683594 222.451328,61.6416016 L222.451328,46.4013672 L228.120273,46.4013672 L228.120273,41.7871094 L222.451328,41.7871094 L222.451328,34.5888672 L216.439609,34.5888672 L216.439609,41.7871094 L212.220859,41.7871094 L212.220859,46.4013672 L216.439609,46.4013672 L216.439609,62.5380859 C216.439609,68.0751953 219.102695,70.3691406 225.06168,70.3691406 Z M244.23168,70.5537109 C251.377187,70.5537109 255.464102,66.3876953 256.386953,62.3007812 L256.439687,62.0634766 L250.823477,62.0634766 L250.744375,62.2480469 C250.058828,64.0146484 247.870352,65.78125 244.363516,65.78125 C239.801992,65.78125 236.901602,62.6962891 236.796133,57.3964844 L256.729727,57.3964844 L256.729727,55.3925781 C256.729727,46.9023438 251.851797,41.2333984 243.941641,41.2333984 C236.005117,41.2333984 230.889883,47.1132812 230.889883,55.9462891 L230.889883,55.9726562 C230.889883,64.9111328 235.926016,70.5537109 244.23168,70.5537109 Z M250.928945,53.2568359 L236.875234,53.2568359 C237.376211,48.5371094 240.223867,46.0058594 243.968008,46.0058594 C247.738516,46.0058594 250.480703,48.3789062 250.928945,53.2568359 Z M267.093086,70 L267.093086,53.2568359 C267.093086,49.1171875 269.703438,46.5859375 273.71125,46.5859375 C274.818672,46.5859375 275.820625,46.7177734 276.585273,46.9023438 L276.585273,41.4970703 C276.05793,41.3916016 275.187813,41.2597656 274.317695,41.2597656 C270.810859,41.2597656 268.332344,43.1582031 267.356758,46.3222656 L267.093086,46.3222656 L267.093086,41.7871094 L261.186836,41.7871094 L261.186836,70 L267.093086,70 Z" id="Later" fill="#000000"></path></svg>',apple_pay_mark_black:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 165.521 105.965"><path fill="rgba(255,255,255,.075)" d="M150.698 0H14.823c-.566 0-1.133 0-1.698.003-.477.004-.953.009-1.43.022-1.039.028-2.087.09-3.113.274a10.51 10.51 0 0 0-2.958.975 9.932 9.932 0 0 0-4.35 4.35 10.463 10.463 0 0 0-.975 2.96C.113 9.611.052 10.658.024 11.696c-.013.477-.019.953-.022 1.43C0 13.69 0 14.256 0 14.823v76.318c0 .567 0 1.132.002 1.699.003.476.009.953.022 1.43.028 1.036.09 2.084.275 3.11a10.46 10.46 0 0 0 .974 2.96 9.897 9.897 0 0 0 1.83 2.52 9.874 9.874 0 0 0 2.52 1.83c.947.483 1.917.79 2.96.977 1.025.183 2.073.245 3.112.273.477.011.953.018 1.43.02.565.004 1.132.004 1.698.004h135.875c.565 0 1.132 0 1.697-.004a79.71 79.71 0 0 0 1.431-.02c1.037-.028 2.085-.09 3.113-.273a10.478 10.478 0 0 0 2.958-.977 9.955 9.955 0 0 0 4.35-4.35c.483-.947.789-1.917.974-2.96.186-1.026.246-2.074.274-3.11.013-.477.02-.954.022-1.43.004-.567.004-1.132.004-1.699V14.824c0-.567 0-1.133-.004-1.699a63.067 63.067 0 0 0-.022-1.429c-.028-1.038-.088-2.085-.274-3.112a10.4 10.4 0 0 0-.974-2.96 9.941 9.941 0 0 0-4.35-4.35A10.52 10.52 0 0 0 156.939.3c-1.028-.185-2.076-.246-3.113-.274a71.413 71.413 0 0 0-1.431-.022C151.83 0 151.263 0 150.698 0z"/><path fill="black" d="m150.698 3.532 1.672.003c.452.003.905.008 1.36.02.792.022 1.719.065 2.583.22.75.135 1.38.34 1.984.648a6.392 6.392 0 0 1 2.804 2.807c.306.6.51 1.226.645 1.983.154.854.197 1.783.218 2.58.013.45.019.9.02 1.36.005.557.005 1.113.005 1.671v76.318c0 .558 0 1.114-.004 1.682-.002.45-.008.9-.02 1.35-.022.796-.065 1.725-.221 2.589a6.855 6.855 0 0 1-.645 1.975 6.397 6.397 0 0 1-2.808 2.807c-.6.306-1.228.512-1.971.645-.882.157-1.847.2-2.574.22-.457.01-.912.017-1.379.019-.555.004-1.113.004-1.669.004H14.801c-.55 0-1.1 0-1.66-.004a75.086 75.086 0 0 1-1.35-.018c-.744-.02-1.71-.064-2.584-.22a6.938 6.938 0 0 1-1.986-.65 6.337 6.337 0 0 1-1.622-1.18 6.355 6.355 0 0 1-1.178-1.623 6.935 6.935 0 0 1-.647-1.985c-.155-.863-.198-1.788-.22-2.578a66.017 66.017 0 0 1-.02-1.355l-.002-1.327V14.474l.002-1.325c.003-.453.008-.905.02-1.357.022-.792.065-1.717.222-2.587a6.924 6.924 0 0 1 .646-1.981c.304-.598.7-1.144 1.18-1.622a6.385 6.385 0 0 1 1.624-1.18 6.96 6.96 0 0 1 1.98-.647c.865-.155 1.792-.198 2.586-.22.452-.012.905-.017 1.354-.02l1.677-.003h135.875"/><path fill="white" d="M45.186 35.64c1.417-1.772 2.38-4.152 2.126-6.585-2.075.104-4.607 1.37-6.073 3.143-1.316 1.52-2.48 4-2.177 6.33 2.33.202 4.656-1.165 6.124-2.887M47.285 38.983c-3.382-.202-6.258 1.919-7.873 1.919-1.616 0-4.09-1.818-6.764-1.769-3.482.051-6.713 2.02-8.48 5.15-3.634 6.264-.959 15.556 2.575 20.657 1.717 2.524 3.785 5.303 6.51 5.203 2.575-.101 3.584-1.668 6.714-1.668 3.128 0 4.037 1.668 6.763 1.617 2.827-.05 4.594-2.525 6.31-5.051 1.969-2.877 2.775-5.655 2.825-5.808-.05-.05-5.45-2.122-5.5-8.333-.051-5.201 4.24-7.675 4.441-7.828-2.423-3.584-6.209-3.988-7.52-4.09M76.734 31.944c7.35 0 12.47 5.067 12.47 12.444 0 7.404-5.225 12.497-12.654 12.497h-8.14v12.943h-5.88V31.944h14.204zM68.41 51.949h6.747c5.12 0 8.034-2.756 8.034-7.534 0-4.778-2.914-7.509-8.008-7.509h-6.773V51.95zM90.74 61.979c0-4.831 3.702-7.798 10.266-8.166l7.56-.446v-2.126c0-3.072-2.074-4.91-5.539-4.91-3.282 0-5.33 1.575-5.828 4.043h-5.356c.315-4.988 4.568-8.664 11.394-8.664 6.695 0 10.974 3.545 10.974 9.084v19.034h-5.435v-4.542h-.13c-1.602 3.072-5.094 5.015-8.717 5.015-5.408 0-9.189-3.36-9.189-8.322zm17.826-2.494v-2.18l-6.8.42c-3.386.237-5.303 1.733-5.303 4.096 0 2.415 1.996 3.99 5.041 3.99 3.964 0 7.062-2.73 7.062-6.326zM119.342 79.989v-4.595c.419.105 1.364.105 1.837.105 2.625 0 4.043-1.102 4.909-3.938 0-.052.5-1.68.5-1.706l-9.977-27.646h6.143l6.984 22.474h.104l6.985-22.474h5.985l-10.344 29.063c-2.362 6.695-5.093 8.848-10.816 8.848-.473 0-1.891-.053-2.31-.131z"/></svg>',apple_pay_mark_none:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 165.521 105.965"><path fill="black" d="M45.186 35.64c1.417-1.772 2.38-4.152 2.126-6.585-2.075.104-4.607 1.37-6.073 3.143-1.316 1.52-2.48 4-2.177 6.33 2.33.202 4.656-1.165 6.124-2.887M47.285 38.983c-3.382-.202-6.258 1.919-7.873 1.919-1.616 0-4.09-1.818-6.764-1.769-3.482.051-6.713 2.02-8.48 5.15-3.634 6.264-.959 15.556 2.575 20.657 1.717 2.524 3.785 5.303 6.51 5.203 2.575-.101 3.584-1.668 6.714-1.668 3.128 0 4.037 1.668 6.763 1.617 2.827-.05 4.594-2.525 6.31-5.051 1.969-2.877 2.775-5.655 2.825-5.808-.05-.05-5.45-2.122-5.5-8.333-.051-5.201 4.24-7.675 4.441-7.828-2.423-3.584-6.209-3.988-7.52-4.09M76.734 31.944c7.35 0 12.47 5.067 12.47 12.444 0 7.404-5.225 12.497-12.654 12.497h-8.14v12.943h-5.88V31.944h14.204zM68.41 51.949h6.747c5.12 0 8.034-2.756 8.034-7.534 0-4.778-2.914-7.509-8.008-7.509h-6.773V51.95zM90.74 61.979c0-4.831 3.702-7.798 10.266-8.166l7.56-.446v-2.126c0-3.072-2.074-4.91-5.539-4.91-3.282 0-5.33 1.575-5.828 4.043h-5.356c.315-4.988 4.568-8.664 11.394-8.664 6.695 0 10.974 3.545 10.974 9.084v19.034h-5.435v-4.542h-.13c-1.602 3.072-5.094 5.015-8.717 5.015-5.408 0-9.189-3.36-9.189-8.322zm17.826-2.494v-2.18l-6.8.42c-3.386.237-5.303 1.733-5.303 4.096 0 2.415 1.996 3.99 5.041 3.99 3.964 0 7.062-2.73 7.062-6.326zM119.342 79.989v-4.595c.419.105 1.364.105 1.837.105 2.625 0 4.043-1.102 4.909-3.938 0-.052.5-1.68.5-1.706l-9.977-27.646h6.143l6.984 22.474h.104l6.985-22.474h5.985l-10.344 29.063c-2.362 6.695-5.093 8.848-10.816 8.848-.473 0-1.891-.053-2.31-.131z"/></svg>',apple_pay_mark_white_outline:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 165.521 105.965"><path d="M150.698 0H14.823c-.566 0-1.133 0-1.698.003-.477.004-.953.009-1.43.022-1.039.028-2.087.09-3.113.274a10.51 10.51 0 0 0-2.958.975 9.932 9.932 0 0 0-4.35 4.35 10.463 10.463 0 0 0-.975 2.96C.113 9.611.052 10.658.024 11.696c-.013.477-.019.953-.022 1.43C0 13.69 0 14.256 0 14.823v76.318c0 .567 0 1.132.002 1.699.003.476.009.953.022 1.43.028 1.036.09 2.084.275 3.11a10.46 10.46 0 0 0 .974 2.96 9.897 9.897 0 0 0 1.83 2.52 9.874 9.874 0 0 0 2.52 1.83c.947.483 1.917.79 2.96.977 1.025.183 2.073.245 3.112.273.477.011.953.018 1.43.02.565.004 1.132.004 1.698.004h135.875c.565 0 1.132 0 1.697-.004a79.71 79.71 0 0 0 1.431-.02c1.037-.028 2.085-.09 3.113-.273a10.478 10.478 0 0 0 2.958-.977 9.955 9.955 0 0 0 4.35-4.35c.483-.947.789-1.917.974-2.96.186-1.026.246-2.074.274-3.11.013-.477.02-.954.022-1.43.004-.567.004-1.132.004-1.699V14.824c0-.567 0-1.133-.004-1.699a63.067 63.067 0 0 0-.022-1.429c-.028-1.038-.088-2.085-.274-3.112a10.4 10.4 0 0 0-.974-2.96 9.941 9.941 0 0 0-4.35-4.35A10.52 10.52 0 0 0 156.939.3c-1.028-.185-2.076-.246-3.113-.274a71.413 71.413 0 0 0-1.431-.022C151.83 0 151.263 0 150.698 0z"/><path fill="white" d="m150.698 3.532 1.672.003c.452.003.905.008 1.36.02.792.022 1.719.065 2.583.22.75.135 1.38.34 1.984.648a6.392 6.392 0 0 1 2.804 2.807c.306.6.51 1.226.645 1.983.154.854.197 1.783.218 2.58.013.45.019.9.02 1.36.005.557.005 1.113.005 1.671v76.318c0 .558 0 1.114-.004 1.682-.002.45-.008.9-.02 1.35-.022.796-.065 1.725-.221 2.589a6.855 6.855 0 0 1-.645 1.975 6.397 6.397 0 0 1-2.808 2.807c-.6.306-1.228.512-1.971.645-.882.157-1.847.2-2.574.22-.457.01-.912.017-1.379.019-.555.004-1.113.004-1.669.004H14.801c-.55 0-1.1 0-1.66-.004a75.086 75.086 0 0 1-1.35-.018c-.744-.02-1.71-.064-2.584-.22a6.938 6.938 0 0 1-1.986-.65 6.337 6.337 0 0 1-1.622-1.18 6.355 6.355 0 0 1-1.178-1.623 6.935 6.935 0 0 1-.647-1.985c-.155-.863-.198-1.788-.22-2.578a66.017 66.017 0 0 1-.02-1.355l-.002-1.327V14.474l.002-1.325c.003-.453.008-.905.02-1.357.022-.792.065-1.717.222-2.587a6.924 6.924 0 0 1 .646-1.981c.304-.598.7-1.144 1.18-1.622a6.385 6.385 0 0 1 1.624-1.18 6.96 6.96 0 0 1 1.98-.647c.865-.155 1.792-.198 2.586-.22.452-.012.905-.017 1.354-.02l1.677-.003h135.875"/><path fill="black" d="M45.186 35.64c1.417-1.772 2.38-4.152 2.126-6.585-2.075.104-4.607 1.37-6.073 3.143-1.316 1.52-2.48 4-2.177 6.33 2.33.202 4.656-1.165 6.124-2.887M47.285 38.983c-3.382-.202-6.258 1.919-7.873 1.919-1.616 0-4.09-1.818-6.764-1.769-3.482.051-6.713 2.02-8.48 5.15-3.634 6.264-.959 15.556 2.575 20.657 1.717 2.524 3.785 5.303 6.51 5.203 2.575-.101 3.584-1.668 6.714-1.668 3.128 0 4.037 1.668 6.763 1.617 2.827-.05 4.594-2.525 6.31-5.051 1.969-2.877 2.775-5.655 2.825-5.808-.05-.05-5.45-2.122-5.5-8.333-.051-5.201 4.24-7.675 4.441-7.828-2.423-3.584-6.209-3.988-7.52-4.09M76.734 31.944c7.35 0 12.47 5.067 12.47 12.444 0 7.404-5.225 12.497-12.654 12.497h-8.14v12.943h-5.88V31.944h14.204zM68.41 51.949h6.747c5.12 0 8.034-2.756 8.034-7.534 0-4.778-2.914-7.509-8.008-7.509h-6.773V51.95zM90.74 61.979c0-4.831 3.702-7.798 10.266-8.166l7.56-.446v-2.126c0-3.072-2.074-4.91-5.539-4.91-3.282 0-5.33 1.575-5.828 4.043h-5.356c.315-4.988 4.568-8.664 11.394-8.664 6.695 0 10.974 3.545 10.974 9.084v19.034h-5.435v-4.542h-.13c-1.602 3.072-5.094 5.015-8.717 5.015-5.408 0-9.189-3.36-9.189-8.322zm17.826-2.494v-2.18l-6.8.42c-3.386.237-5.303 1.733-5.303 4.096 0 2.415 1.996 3.99 5.041 3.99 3.964 0 7.062-2.73 7.062-6.326zM119.342 79.989v-4.595c.419.105 1.364.105 1.837.105 2.625 0 4.043-1.102 4.909-3.938 0-.052.5-1.68.5-1.706l-9.977-27.646h6.143l6.984 22.474h.104l6.985-22.474h5.985l-10.344 29.063c-2.362 6.695-5.093 8.848-10.816 8.848-.473 0-1.891-.053-2.31-.131z"/></svg>',apple_pay_mark_white:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 165.521 105.965"><path fill="rgba(0,0,0,.075)" d="M150.698 0H14.823c-.566 0-1.133 0-1.698.003-.477.004-.953.009-1.43.022-1.039.028-2.087.09-3.113.274a10.51 10.51 0 0 0-2.958.975 9.932 9.932 0 0 0-4.35 4.35 10.463 10.463 0 0 0-.975 2.96C.113 9.611.052 10.658.024 11.696c-.013.477-.019.953-.022 1.43C0 13.69 0 14.256 0 14.823v76.318c0 .567 0 1.132.002 1.699.003.476.009.953.022 1.43.028 1.036.09 2.084.275 3.11a10.46 10.46 0 0 0 .974 2.96 9.897 9.897 0 0 0 1.83 2.52 9.874 9.874 0 0 0 2.52 1.83c.947.483 1.917.79 2.96.977 1.025.183 2.073.245 3.112.273.477.011.953.018 1.43.02.565.004 1.132.004 1.698.004h135.875c.565 0 1.132 0 1.697-.004a79.71 79.71 0 0 0 1.431-.02c1.037-.028 2.085-.09 3.113-.273a10.478 10.478 0 0 0 2.958-.977 9.955 9.955 0 0 0 4.35-4.35c.483-.947.789-1.917.974-2.96.186-1.026.246-2.074.274-3.11.013-.477.02-.954.022-1.43.004-.567.004-1.132.004-1.699V14.824c0-.567 0-1.133-.004-1.699a63.067 63.067 0 0 0-.022-1.429c-.028-1.038-.088-2.085-.274-3.112a10.4 10.4 0 0 0-.974-2.96 9.941 9.941 0 0 0-4.35-4.35A10.52 10.52 0 0 0 156.939.3c-1.028-.185-2.076-.246-3.113-.274a71.413 71.413 0 0 0-1.431-.022C151.83 0 151.263 0 150.698 0z"/><path fill="white" d="m150.698 3.532 1.672.003c.452.003.905.008 1.36.02.792.022 1.719.065 2.583.22.75.135 1.38.34 1.984.648a6.392 6.392 0 0 1 2.804 2.807c.306.6.51 1.226.645 1.983.154.854.197 1.783.218 2.58.013.45.019.9.02 1.36.005.557.005 1.113.005 1.671v76.318c0 .558 0 1.114-.004 1.682-.002.45-.008.9-.02 1.35-.022.796-.065 1.725-.221 2.589a6.855 6.855 0 0 1-.645 1.975 6.397 6.397 0 0 1-2.808 2.807c-.6.306-1.228.512-1.971.645-.882.157-1.847.2-2.574.22-.457.01-.912.017-1.379.019-.555.004-1.113.004-1.669.004H14.801c-.55 0-1.1 0-1.66-.004a75.086 75.086 0 0 1-1.35-.018c-.744-.02-1.71-.064-2.584-.22a6.938 6.938 0 0 1-1.986-.65 6.337 6.337 0 0 1-1.622-1.18 6.355 6.355 0 0 1-1.178-1.623 6.935 6.935 0 0 1-.647-1.985c-.155-.863-.198-1.788-.22-2.578a66.017 66.017 0 0 1-.02-1.355l-.002-1.327V14.474l.002-1.325c.003-.453.008-.905.02-1.357.022-.792.065-1.717.222-2.587a6.924 6.924 0 0 1 .646-1.981c.304-.598.7-1.144 1.18-1.622a6.385 6.385 0 0 1 1.624-1.18 6.96 6.96 0 0 1 1.98-.647c.865-.155 1.792-.198 2.586-.22.452-.012.905-.017 1.354-.02l1.677-.003h135.875"/><path fill="black" d="M45.186 35.64c1.417-1.772 2.38-4.152 2.126-6.585-2.075.104-4.607 1.37-6.073 3.143-1.316 1.52-2.48 4-2.177 6.33 2.33.202 4.656-1.165 6.124-2.887M47.285 38.983c-3.382-.202-6.258 1.919-7.873 1.919-1.616 0-4.09-1.818-6.764-1.769-3.482.051-6.713 2.02-8.48 5.15-3.634 6.264-.959 15.556 2.575 20.657 1.717 2.524 3.785 5.303 6.51 5.203 2.575-.101 3.584-1.668 6.714-1.668 3.128 0 4.037 1.668 6.763 1.617 2.827-.05 4.594-2.525 6.31-5.051 1.969-2.877 2.775-5.655 2.825-5.808-.05-.05-5.45-2.122-5.5-8.333-.051-5.201 4.24-7.675 4.441-7.828-2.423-3.584-6.209-3.988-7.52-4.09M76.734 31.944c7.35 0 12.47 5.067 12.47 12.444 0 7.404-5.225 12.497-12.654 12.497h-8.14v12.943h-5.88V31.944h14.204zM68.41 51.949h6.747c5.12 0 8.034-2.756 8.034-7.534 0-4.778-2.914-7.509-8.008-7.509h-6.773V51.95zM90.74 61.979c0-4.831 3.702-7.798 10.266-8.166l7.56-.446v-2.126c0-3.072-2.074-4.91-5.539-4.91-3.282 0-5.33 1.575-5.828 4.043h-5.356c.315-4.988 4.568-8.664 11.394-8.664 6.695 0 10.974 3.545 10.974 9.084v19.034h-5.435v-4.542h-.13c-1.602 3.072-5.094 5.015-8.717 5.015-5.408 0-9.189-3.36-9.189-8.322zm17.826-2.494v-2.18l-6.8.42c-3.386.237-5.303 1.733-5.303 4.096 0 2.415 1.996 3.99 5.041 3.99 3.964 0 7.062-2.73 7.062-6.326zM119.342 79.989v-4.595c.419.105 1.364.105 1.837.105 2.625 0 4.043-1.102 4.909-3.938 0-.052.5-1.68.5-1.706l-9.977-27.646h6.143l6.984 22.474h.104l6.985-22.474h5.985l-10.344 29.063c-2.362 6.695-5.093 8.848-10.816 8.848-.473 0-1.891-.053-2.31-.131z"/></svg>'},In=/\{\{\s*([^\s]+)\s*\}\}/gi;"undefined"==typeof WEBVIEW&&(r.WEBVIEW=!1);class kt extends HTMLElement{constructor(){super(),this.locale=Xt.locale,this.countryCode=Xt.countryCode,this.currencyCode=Xt.currencyCode,this.type=Xt.type,this.modalType=Xt.modalType,this.debug=!1,Ee.set(this,void 0),xt.set(this,void 0),gt.set(this,void 0),Oe(this,gt,new Promise(m=>setTimeout(m)).then(()=>kt.getData({countryCode:this.countryCode,amount:this.amount,currencyCode:this.currencyCode,locale:this.locale})).then(m=>{var C=new Event("load");return this.dispatchEvent(C),this.data=m,new Promise(M=>setTimeout(M))},m=>{console.warn("Apple Pay Merchandising: unable to fetch merchandising data",m),this.disable()}).then(()=>{Oe(this,Ee,this.ownerDocument.createElement("div")),Me(this,Ee).className="theme-".concat(this.theme," content"),Oe(this,xt,this.attachShadow({mode:"closed"})),Me(this,xt).innerHTML="<style>".concat(":host{font-family:var(--apple-pay-font-family, '-apple-system', 'SF Pro Display', 'SF Pro Icons', 'Helvetica Neue', 'Helvetica', 'Arial', 'sans-serif');font-size:var(--apple-pay-font-size, 13px);line-height:1.33;max-width:var(--apple-pay-width, 340px);display:inline-block}:host([disabled]),:host([hidden]){display:none!important;margin:0}:host>*{display:none}*{-webkit-box-sizing:border-box;box-sizing:border-box}.content{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:start;align-items:flex-start;margin:0 auto;color:inherit;gap:.75ex}.theme-dark.content .paymark.align-left.type-pay_later.style-none{-webkit-filter:invert(1);filter:invert(1)}.theme-dark.content .theme-dark.text .info-circle{-webkit-filter:invert(1);filter:invert(1)}.paymark{-ms-flex-order:2;order:2;margin:.054em 0 0}.paymark.align-left{-ms-flex-order:0;order:0;margin-right:.75ex}.paymark.align-right{margin-left:.75ex}.paymark.type-none{display:none}.paymark.style-none{margin:0}.content p{-ms-flex-order:1;order:1;margin:0}.content .text{-ms-flex-positive:1;flex-grow:1;margin:0 auto;-ms-flex-item-align:center;align-self:center}a{color:var(--apple-pay-link-color, #0066CC);text-decoration:none}@media (hover: hover){a:hover{text-decoration:underline}}.theme-dark{color:var(--apple-pay-text-color-dark, #F5F5F7)}.theme-light{color:var(--apple-pay-text-color, #1D1D1F)}.theme-dark a{color:var(--apple-pay-link-color-dark, #2997FF)}.theme-light a{color:var(--apple-pay-link-color, #0066CC)}.paymark svg,.paymark img{display:block;height:2rem}","</style>"),Me(this,xt).appendChild(Me(this,Ee)),Me(this,xt).addEventListener("click",m=>{var C,M,V=m.target.closest('a[href*="'.concat(this.data.modalUrl,'"]'));V&&m.currentTarget.contains(V)&&(m.preventDefault(),WEBVIEW?null===(M=null===(C=webkit.messageHandlers)||void 0===C?void 0:C.applePayDetails)||void 0===M||M.postMessage("show-modal"):(Ue.setAttribute("locale",this.locale),Ue.setAttribute("theme",this.theme),Ue.setAttribute("url",this.data.modalUrl),Ue.show()))})}))}connectedCallback(){var m=this;return s(function*(){yield Me(m,gt),m.ready=!0,m.classList.add("ready"),m.update()})()}disconnectedCallback(){var m=this;return s(function*(){yield Me(m,gt),m.disable()})()}disable(){var m,C;(null===(m=Me(this,xt))||void 0===m?void 0:m.contains(Me(this,Ee)))&&(null===(C=Me(this,xt))||void 0===C||C.removeChild(Me(this,Ee))),this.setAttribute("disabled",""),this.setAttribute("hidden",""),this.disabled=!0}enable(){var m;null===(m=Me(this,xt))||void 0===m||m.appendChild(Me(this,Ee)),this.disabled=!1,this.removeAttribute("disabled"),this.removeAttribute("hidden")}update(){var m=this;return s(function*(){if(m.ready)if(m.debug||(yield kt.isEligible(m))){m.enable();var C=m.data=yield kt.getData(m),M=yield kt.fetchData(m),V=M.presets[m.type||Xt.type]||M.presets.custom;"custom"===m.type&&(C.promoText=m.innerHTML);var H=new Intl.NumberFormat(m.locale,{style:"currency",currency:m.currencyCode,minimumFractionDigits:Number.isInteger(C.paymentsAmount)?0:2,currencyDisplay:"narrowSymbol"}),ce=Object.assign(Object.assign(Object.assign({},C),V),{paymentsAmount:H.format(C.paymentsAmount),hideLogo:C.logo?"":"hidden",hideText:C.promoText?"":"hidden",theme:m.theme||Xt.theme,modalUrl:C.modalUrl}),ze='<div class="paymark align-{{ logoAlign }} type-{{ logoType }} style-{{ logoStyle }}" {{ hideLogo }}>{{ logo }}</div><p class="theme-{{ theme }} text" {{ hideText }}>'.concat(C.promoText,"</p>");Me(m,Ee).innerHTML=ze.replace(In,(wt,Rn)=>ce[Rn])}else m.disable()})()}static get observedAttributes(){return Ui}attributeChangedCallback(m,C,M){m=E(m),null==M?delete this[m]:this[m]="true"===M||"false"!==M&&(""===M||M),C!==M&&this.update()}static fetchData({countryCode:m}){return s(function*(){var C,M=m.toLowerCase();try{C=dt[M]||(dt[M]=yield(yield fetch(z("./merchandising-".concat(M,".json")))).json())}catch(V){throw Error("Apple Pay Merchandising: unable to fetch merchandising data")}return C})()}static getData({countryCode:m,locale:C,amount:M,modalType:V="learn-more",theme:H="light",type:ce="plain"}){return s(function*(){var ze,wt=yield kt.fetchData({countryCode:m}),Rn=(wt.text[C]||wt.text[C.slice(0,2)]||wt.text[Object.keys(wt.text)[0]])[ce]||"",ei=null===(ze=Object.entries(wt.method).find(([,Wi])=>Wi.minAmount<=M&&Wi.maxAmount>=M))||void 0===ze?void 0:ze[1],Gi=wt.presets[ce||Xt.type]||wt.presets.custom,To=Math.round(M/ei.frequency*100)/100,Hs=location.hostname||window.frames.top.document.location.hostname;if(C.split("-")[1].toLowerCase()!==m.toLowerCase())throw Error("Apple Pay Merchandising: unsupported locale");return Object.assign({logo:"none"===Gi.logoType?"":Ht["apple_".concat(Gi.logoType,"_mark_").concat(Gi.logoStyle)],promoText:Rn,paymentsAmount:To,lastPaymentAmount:M-To*(ei.frequency-1),modalUrl:z("./".concat(V,".html"))+"#data=".concat(btoa(JSON.stringify(Object.assign({amount:M,theme:H,locale:C,referrerUrl:Hs},ei))))},ei)})()}static isEligible({amount:m,currencyCode:C,countryCode:M}){return s(function*(){if(!function(H={}){try{return new PaymentRequest([{supportedMethods:"https://apple.com/apple-pay",data:{version:15,features:["applePayLater"],merchantIdentifier:"",countryCode:H.countryCode,supportedNetworks:["masterCard"],merchantCapabilities:["supports3DS"]}}],{total:{label:"applePayLater",amount:{currency:H.currencyCode,value:"0.00"}}}),!0}catch(ce){return!1}}({currencyCode:C,countryCode:M}))return!1;var V=yield kt.fetchData({countryCode:M});return C===V.currencyCode&&Object.entries(V.method).some(([,H])=>H.minAmount<=m&&H.maxAmount>=m)})()}}Ee=new WeakMap,xt=new WeakMap,gt=new WeakMap;var Xt={merchantToken:null,amount:null,type:"plain",locale:"en-US",modalType:"learn-more",countryCode:"US",currencyCode:"USD",debug:!1,theme:"auto"},Ui=Object.keys(Xt).map(F);customElements.define("apple-pay-merchandising",kt),window.ApplePayMerchandising=kt;var Jr=["ar-AB","ca-ES","cs-CZ","da-DK","de-DE","el-GR","en-US","en-AU","en-GB","es-ES","es-MX","fi-FI","fr-CA","fr-FR","he-IL","hi-IN","hr-HR","hu-HU","id-ID","it-IT","ja-JP","ko-KR","ms-MY","nb-NO","nl-NL","pl-PL","pt-BR","pt-PT","ro-RO","ru-RU","sk-SK","sv-SE","th-TH","tr-TR","uk-UA","vi-VN","zh-CN","zh-HK","zh-TW"];function gi(_){return(null==_?void 0:_.includes("-"))&&!!Jr.find(m=>m===_)}function yt(_){if(_){var m=_.trim().replace("_","-").split("-"),C=m[0].toLowerCase();return 1===m.length?C:C+"-"+m[1].toUpperCase()}}function rn(_,m=!0){var H,ce,C=null==_?void 0:_.includes("-");if(C){var M=Jr.find(H=>H===_);if(M)return M}if(_&&(!C||m)){var V=(ce=null==(H=_)?void 0:H.split("-")[0],Jr.find(ze=>new RegExp("^".concat(ce),"g").test(ze)));if(V)return V}}function yi(_){var m=function ul(_){var m=((void 0===navigator.languages?[navigator.language]:navigator.languages)||[]).map(yt),C=null==_?void 0:_.closest("[lang]"),M=(null==C?void 0:C.lang)?yt(C.lang):void 0;return M&&m.unshift(M),m}(_).reduce((C,M)=>{if(C&&C.includes("-"))return C;if(!C){if(gi(M))return M;var V=(ce=null==(H=M)?void 0:H.split("-")[0])&&Jr.find(ze=>ze.startsWith(ce))?ce:void 0;if(V)return V}var H,ce;return C&&!C.includes("-")&&M.startsWith(C)&&gi(M)?M:C},void 0);return((null==m?void 0:m.includes("-"))?m:rn(m))||"en-US"}function dl(){try{return document.fonts.check("15px -apple-system")}catch(_){return!1}}function ht(_){return!!document.getElementById(_t(_))}function ks(_){var m=document.createElement("style");m.id=_t(_),m.innerHTML="@font-face{"+"font-family:apple-pay-btn-".concat(_,";")+"src:url(".concat(Ju("./assets/1.0.0/fonts/".concat(_,".woff2")),') format("woff2"),')+"url(".concat(Ju("./assets/1.0.0/fonts/".concat(_,".woff")),') format("woff");')+"font-display:block;}",document.head.appendChild(m)}function _t(_){return"apple-pay-btn-font-".concat(_)}function Ju(_){return S+_.replace(/^\.\//,"/")}var Gm=["add-money","book","buy","check-out","continue","contribute","donate","order","pay","plain","reload","rent","set-up","subscribe","support","tip","top-up"];function hl(_){return Gm.includes(_)}function Wm(_){switch(_){case"add-money":return"a";case"book":return"bo";case"buy":return"bu";case"check-out":return"ch";case"continue":return"ci";case"contribute":return"co";case"donate":return"d";case"order":return"o";case"pay":return"pa";case"plain":return"p";case"reload":return"rl";case"rent":return"rn";case"set-up":return"se";case"subscribe":return"sb";case"support":return"sp";case"tip":return"ti";case"top-up":return"to"}}function Xu(_,m){var C=[..._.l[Wm(m)]],M=C[0].t.startsWith("%@")?0:1;return(C=C.map(V=>Object.assign(Object.assign({},V),{t:V.t.replace(/%@/g,"")}))).splice(M,0,{t:"%@"}),_.rtl&&C.reverse(),C}function qm(_,m){if("plain"===m)return"Apple Pay";var C=Xu(_,m);return _.rtl&&C.reverse(),C.reduce((M,V)=>M+("%@"===V.t?"Apple Pay":V.t),"")}function Ns(_,m,C,M,V){var ce,H=m.t.replace(/\s/g,"&#160;");return'<text x="'.concat(_,'" y="').concat(function(ce){switch(ce){case"ja-JP":return 20;case"ko-KR":return 19.6}return 19.5}(M),'" ')+"".concat(C?'direction="rtl" unicode-bidi="bidi-override" text-anchor="end"':""," ")+"".concat(V?'style="letter-spacing:'.concat(V,';"'):""," ")+"".concat("hi-IN"!==(ce=M)&&"th-TH"!==ce?'height="'.concat(m.h,'" width="').concat(m.w,'" ').concat(C?"":'textLength="'.concat(m.w,'"')):"",">")+"".concat(H,"</text>")}function fl(_,m,C,M,V){var H='<?xml version="1.0" encoding="UTF-8"?>\n<svg class="logo" viewBox="0 0 105 43" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <title>Apple Logo</title>\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g fill="#FFF">\n <path d="M19.4028,5.5674 C20.6008,4.0684 21.4138,2.0564 21.1998,0.0004 C19.4458,0.0874 17.3058,1.1574 16.0668,2.6564 C14.9538,3.9414 13.9688,6.0374 14.2258,8.0074 C16.1948,8.1784 18.1618,7.0244 19.4028,5.5674"></path>\n <path d="M21.1772,8.3926 C18.3182,8.2226 15.8872,10.0156 14.5212,10.0156 C13.1552,10.0156 11.0642,8.4786 8.8022,8.5196 C5.8592,8.5626 3.1282,10.2276 1.6342,12.8746 C-1.4378,18.1696 0.8232,26.0246 3.8112,30.3376 C5.2622,32.4716 7.0102,34.8206 9.3142,34.7366 C11.4912,34.6506 12.3442,33.3266 14.9902,33.3266 C17.6352,33.3266 18.4042,34.7366 20.7082,34.6936 C23.0972,34.6506 24.5922,32.5586 26.0422,30.4226 C27.7072,27.9906 28.3882,25.6426 28.4312,25.5126 C28.3882,25.4706 23.8232,23.7186 23.7812,18.4676 C23.7382,14.0706 27.3652,11.9786 27.5362,11.8496 C25.4882,8.8196 22.2872,8.4786 21.1772,8.3926"></path>\n <path d="M85.5508,43.0381 L85.5508,39.1991 C85.8628,39.2421 86.6158,39.2871 87.0158,39.2871 C89.2138,39.2871 90.4558,38.3551 91.2108,35.9581 L91.6548,34.5371 L83.2428,11.2321 L88.4368,11.2321 L94.2958,30.1421 L94.4068,30.1421 L100.2668,11.2321 L105.3278,11.2321 L96.6048,35.7141 C94.6078,41.3291 92.3208,43.1721 87.4828,43.1721 C87.1048,43.1721 85.8838,43.1271 85.5508,43.0381"></path>\n <path d="M42.6499,19.3555 L48.3549,19.3555 C52.6829,19.3555 55.1469,17.0255 55.1469,12.9855 C55.1469,8.9455 52.6829,6.6375 48.3769,6.6375 L42.6499,6.6375 L42.6499,19.3555 Z M49.6869,2.4425 C55.9009,2.4425 60.2289,6.7265 60.2289,12.9625 C60.2289,19.2225 55.8129,23.5285 49.5309,23.5285 L42.6499,23.5285 L42.6499,34.4705 L37.6779,34.4705 L37.6779,2.4425 L49.6869,2.4425 Z"></path>\n <path d="M76.5547,25.7705 L76.5547,23.9715 L71.0287,24.3275 C67.9207,24.5275 66.3007,25.6815 66.3007,27.7015 C66.3007,29.6545 67.9887,30.9195 70.6287,30.9195 C74.0027,30.9195 76.5547,28.7665 76.5547,25.7705 M61.4617,27.8345 C61.4617,23.7285 64.5917,21.3755 70.3627,21.0205 L76.5547,20.6425 L76.5547,18.8675 C76.5547,16.2705 74.8457,14.8495 71.8057,14.8495 C69.2967,14.8495 67.4777,16.1375 67.0997,18.1125 L62.6167,18.1125 C62.7497,13.9615 66.6567,10.9435 71.9387,10.9435 C77.6207,10.9435 81.3267,13.9175 81.3267,18.5345 L81.3267,34.4705 L76.7327,34.4705 L76.7327,30.6305 L76.6217,30.6305 C75.3127,33.1395 72.4267,34.7145 69.2967,34.7145 C64.6807,34.7145 61.4617,31.9625 61.4617,27.8345"></path>\n </g>\n </g>\n</svg>'.replace("<svg","<svg ".concat(V?'id="'.concat(V,'"'):"",' x="').concat(_,'" y="').concat(m,'" height="').concat(C,'" width="').concat(35,'"'));return"black"!==M&&(H=H.replace('fill="#FFF"','fill="#000"')),H}function ed(_){var m=Xu(_.metadata,_.buttonType),C=_.metadata.ls,{width:M,domStr:V}=m.reduce((H,ce,ze)=>{var wt;if("%@"===ce.t){ze>0&&new RegExp(/\s$/).test(H.prev)&&(H.width=H.width+1);var Rn=0===ze||ze===m.length-1;return{domStr:H.domStr+fl(H.width+.2,7.92,15,_.buttonStyle),width:H.width+35+(Rn?.2:.4),prev:ce.t}}return"%@"===H.prev&&(null===(wt=ce.t)||void 0===wt?void 0:wt.startsWith(" "))?H.width=H.width+1:"%@"===H.prev&&(H.width=H.width+.2),{domStr:H.domStr+Ns(H.width,ce,!!_.metadata.rtl,_.locale,C),width:H.width+ce.w,prev:ce.t}},{width:12.5,domStr:"",prev:""});return{width:M+12.5,domStr:V}}function td(_,m=!1){return'<svg id="svg-logo" viewBox="0 0 '.concat(35," ").concat(15,'" ').concat(m?'class="hidden"':"",">\n ").concat(fl(0,3.85,7.3,_,"svg-logo"),"\n </svg>")}function fr(_){if("plain"===_.buttonType)return td(_.buttonStyle,!1);var{width:m,domStr:C}=ed(_),M=dl();return'<svg id="svg-text" viewBox="0 0 '.concat(m,' 28.571" aria-hidden="true">\n <defs>\n <style>\n text {\n fill: ').concat("black"===_.buttonStyle?"#FFF":"#000",";\n font-family: ").concat(M?"-apple-system":"apple-pay-btn-".concat(_.locale),";\n font-size: ").concat(_.metadata.s,";\n font-weight: ").concat(_.metadata.w||500,";\n }\n </style>\n </defs>\n <g>\n ").concat(C,"\n </g>\n </svg>\n ").concat(td(_.buttonStyle,!0))}var _i,_,Km={"en-US":{l:{a:[{w:110.86,h:18,t:"Add Money with %@"}],bo:[{w:68.8,h:18,t:"Book with %@"}],bu:[{w:60.39,h:18,t:"Buy with %@"}],ch:[{w:102.89,h:18,t:"Check out with %@"}],ci:[{w:95.58,h:18,t:"Continue with %@"}],co:[{w:105.94,h:18,t:"Contribute with %@"}],d:[{w:83,h:18,t:"Donate with %@"}],o:[{w:72.86,h:18,t:"Order with %@"}],pa:[{w:59,h:18,t:"Pay with %@"}],rl:[{w:80.89,h:18,t:"Reload with %@"}],rn:[{w:65.67,h:18,t:"Rent with %@"}],se:[{w:45.88,h:18,t:"Set up %@"}],sb:[{w:102.14,h:18,t:"Subscribe with %@"}],sp:[{w:88.67,h:18,t:"Support with %@"}],ti:[{w:55.58,h:18,t:"Tip with %@"}],to:[{w:81.66,h:18,t:"Top Up with %@"}]},s:"15px",ls:"0.22px"},"fr-FR":{l:{a:[{w:159.45,h:18,t:"Ajouter de l\u2019argent avec %@"}],bo:[{w:96.92,h:18,t:"R\xe9server avec %@"}],bu:[{w:90.47,h:18,t:"Acheter avec %@"}],ch:[{w:75.22,h:18,t:"Payer avec %@"}],ci:[{w:108.56,h:18,t:"Poursuivre avec %@"}],co:[{w:109.41,h:18,t:"Contribuer avec %@"}],d:[{w:118.92,h:18,t:"Faire un don avec %@"}],o:[{w:120.53,h:18,t:"Commander avec %@"}],pa:[{w:75.22,h:18,t:"Payer avec %@"}],rl:[{w:106.7,h:18,t:"Recharger avec %@"}],rn:[{w:75.95,h:18,t:"Louer avec %@"}],se:[{w:74.19,h:18,t:"Configurer %@"}],sb:[{w:105.61,h:18,t:"S\u2019abonner avec %@"}],sp:[{w:93.98,h:18,t:"Soutenir avec %@"}],ti:[{w:173.25,h:18,t:"Laisser un pourboire avec %@"}],to:[{w:106.7,h:18,t:"Recharger avec %@"}]},s:"15px",ls:"0.22px"},"el-GR":{l:{a:[{w:190.19,h:18,t:"\u03a0\u03c1\u03bf\u03c3\u03b8\u03ae\u03ba\u03b7 \u03c7\u03c1\u03b7\u03bc\u03ac\u03c4\u03c9\u03bd \u03bc\u03ad\u03c3\u03c9 %@"}],bo:[{w:106,h:18,t:"\u039a\u03c1\u03ac\u03c4\u03b7\u03c3\u03b7 \u03bc\u03ad\u03c3\u03c9 %@"}],bu:[{w:87.64,h:18,t:"\u0391\u03b3\u03bf\u03c1\u03ac \u03bc\u03ad\u03c3\u03c9 %@"}],ch:[{w:109.66,h:18,t:"\u03a0\u03bb\u03b7\u03c1\u03c9\u03bc\u03ae \u03bc\u03ad\u03c3\u03c9 %@"}],ci:[{w:95.81,h:18,t:"\u03a3\u03c5\u03bd\u03ad\u03c7\u03b5\u03b9\u03b1 \u03bc\u03b5 \xab"},{w:9.42,h:18,t:"\xbb"}],co:[{w:127.23,h:18,t:"\u03a3\u03c5\u03bd\u03b5\u03b9\u03c3\u03c6\u03bf\u03c1\u03ac \u03bc\u03ad\u03c3\u03c9 %@"}],d:[{w:90.83,h:18,t:"\u0394\u03c9\u03c1\u03b5\u03ac \u03bc\u03ad\u03c3\u03c9 %@"}],o:[{w:127.36,h:18,t:"\u03a0\u03b1\u03c1\u03b1\u03b3\u03b3\u03b5\u03bb\u03af\u03b1 \u03bc\u03ad\u03c3\u03c9 %@"}],pa:[{w:89.17,h:18,t:"\u03a0\u03bb\u03b7\u03c1\u03c9\u03bc\u03ae \u03bc\u03b5 %@"}],rl:[{w:153.41,h:18,t:"\u0395\u03c0\u03b1\u03bd\u03b1\u03c6\u03cc\u03c1\u03c4\u03c9\u03c3\u03b7 \u03bc\u03ad\u03c3\u03c9 %@"}],rn:[{w:113.61,h:18,t:"\u0395\u03bd\u03bf\u03b9\u03ba\u03af\u03b1\u03c3\u03b7 \u03bc\u03ad\u03c3\u03c9 %@"}],se:[{w:92.92,h:18,t:"\u0394\u03b9\u03b1\u03bc\u03cc\u03c1\u03c6\u03c9\u03c3\u03b7 %@"}],sb:[{w:112.38,h:18,t:"\u03a3\u03c5\u03bd\u03b4\u03c1\u03bf\u03bc\u03ae \u03bc\u03ad\u03c3\u03c9 %@"}],sp:[{w:126.31,h:18,t:"\u03a5\u03c0\u03bf\u03c3\u03c4\u03ae\u03c1\u03b9\u03be\u03b7 \u03bc\u03ad\u03c3\u03c9 %@"}],ti:[{w:132.8,h:18,t:"\u03a6\u03b9\u03bb\u03bf\u03b4\u03ce\u03c1\u03b7\u03bc\u03b1 \u03bc\u03ad\u03c3\u03c9 %@"}],to:[{w:116.41,h:18,t:"\u0391\u03bd\u03b1\u03bd\u03ad\u03c9\u03c3\u03b7 \u03bc\u03ad\u03c3\u03c9 %@"}]},s:"15px",ls:"0.22px"},"zh-HK":{l:{a:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u589e\u503c"}],bo:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8a02\u4f4d"}],bu:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8cfc\u8cb7"}],ch:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u7d50\u5e33"}],ci:[{w:32.61,h:18,t:"\u4f7f\u7528 "},{w:32.61,h:18,t:" \u7e7c\u7e8c"}],co:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u6350\u8d08"}],d:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u6350\u6b3e"}],o:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8a02\u8cfc"}],pa:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u4ed8\u6b3e"}],rl:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u589e\u503c"}],rn:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u79df\u501f"}],se:[{w:32.61,h:18,t:"\u8a2d\u5b9a %@"}],sb:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8a02\u95b2"}],sp:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u652f\u6301"}],ti:[{w:17.81,h:18,t:"\u7528 "},{w:62.2,h:18,t:" \u652f\u4ed8\u8cbc\u58eb"}],to:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u589e\u503c"}]},s:"14.8px"},"zh-CN":{l:{a:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u5145\u503c"}],bo:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u9884\u8ba2"}],bu:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8d2d\u4e70"}],ch:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u7ed3\u8d26"}],ci:[{w:32.61,h:18,t:"\u901a\u8fc7 "},{w:32.61,h:18,t:" \u7ee7\u7eed"}],co:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u6350\u8d60"}],d:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u6350\u6b3e"}],o:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8ba2\u8d2d"}],pa:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u652f\u4ed8"}],rl:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u5145\u503c"}],rn:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u79df\u501f"}],se:[{w:32.61,h:18,t:"\u8bbe\u7f6e %@"}],sb:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8ba2\u9605"}],sp:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u652f\u6301"}],ti:[{w:17.81,h:18,t:"\u7528 "},{w:47.41,h:18,t:" \u4ed8\u5c0f\u8d39"}],to:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u5145\u503c"}]},s:"14.8px"},"pt-BR":{l:{a:[{w:152.69,h:18,t:"Adicione Dinheiro com %@"}],bo:[{w:94.23,h:18,t:"Reservar com %@"}],bu:[{w:93.73,h:18,t:"Comprar com %@"}],ch:[{w:73.58,h:18,t:"Pagar com %@"}],ci:[{w:101.13,h:18,t:"Continuar com %@"}],co:[{w:101.52,h:18,t:"Contribua com %@"}],d:[{w:67.33,h:18,t:"Doar com %@"}],o:[{w:119.66,h:18,t:"Encomendar com %@"}],pa:[{w:73.58,h:18,t:"Pagar com %@"}],rl:[{w:108.69,h:18,t:"Recarregar com %@"}],rn:[{w:78.98,h:18,t:"Alugar com %@"}],se:[{w:74.22,h:18,t:"Configurar %@"}],sb:[{w:85.17,h:18,t:"Assinar com %@"}],sp:[{w:78.98,h:18,t:"Apoiar com %@"}],ti:[{w:108.94,h:18,t:"Dar gorjeta com %@"}],to:[{w:108.69,h:18,t:"Recarregar com %@"}]},s:"15px",ls:"0.22px"},"en-AU":{l:{a:[{w:110.86,h:18,t:"Add Money with %@"}],bo:[{w:68.8,h:18,t:"Book with %@"}],bu:[{w:60.39,h:18,t:"Buy with %@"}],ch:[{w:102.89,h:18,t:"Check out with %@"}],ci:[{w:95.58,h:18,t:"Continue with %@"}],co:[{w:105.94,h:18,t:"Contribute with %@"}],d:[{w:83,h:18,t:"Donate with %@"}],o:[{w:72.86,h:18,t:"Order with %@"}],pa:[{w:59,h:18,t:"Pay with %@"}],rl:[{w:80.89,h:18,t:"Reload with %@"}],rn:[{w:65.67,h:18,t:"Rent with %@"}],se:[{w:45.88,h:18,t:"Set up %@"}],sb:[{w:102.14,h:18,t:"Subscribe with %@"}],sp:[{w:88.67,h:18,t:"Support with %@"}],ti:[{w:55.58,h:18,t:"Tip with %@"}],to:[{w:81.66,h:18,t:"Top Up with %@"}]},s:"15px",ls:"0.22px"},"he-IL":{l:{a:[{w:148.58,h:17.22,t:"\u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05db\u05e1\u05e3 \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea %@"}],bo:[{w:111.2,h:17.22,t:"\u05d4\u05d6\u05de\u05df/\u05d9 \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea %@"}],bu:[{w:112.61,h:17,t:"\u05e8\u05db\u05d9\u05e9\u05d4 \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea %@"}],ch:[{w:68.77,h:17.22,t:"\u05dc\u05e7\u05d5\u05e4\u05d4 \u05e2\u05dd %@"}],ci:[{w:77.39,h:17.22,t:"\u05d4\u05de\u05e9\u05da/\u05d9 \u05e2\u05dd %@"}],co:[{w:69.34,h:17,t:"\u05dc\u05ea\u05e8\u05d5\u05dd \u05e2\u05dd %@"}],d:[{w:70.98,h:17,t:"\u05ea\u05e8\u05d5\u05dd/\u05d9 \u05e2\u05dd %@"}],o:[{w:113.98,h:17.22,t:"\u05dc\u05d4\u05d6\u05de\u05d9\u05df \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea %@"}],pa:[{w:109.45,h:17,t:"\u05e9\u05dc\u05dd/\u05d9 \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea %@"}],rl:[{w:63.39,h:17.22,t:"\u05dc\u05d8\u05e2\u05d5\u05df \u05e2\u05dd %@"}],rn:[{w:110.7,h:17,t:"\u05dc\u05e9\u05db\u05d5\u05e8 \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea %@"}],se:[{w:76.44,h:17,t:"\u05dc\u05d4\u05d2\u05d3\u05d9\u05e8 \u05d0\u05ea %@"}],sb:[{w:108.44,h:17,t:"\u05e8\u05d9\u05e9\u05d5\u05dd \u05db\u05de\u05d9\u05e0\u05d5\u05d9 \u05e2\u05dd %@"}],sp:[{w:112.34,h:17.22,t:"\u05dc\u05ea\u05de\u05d5\u05da \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea %@"}],ti:[{w:150.63,h:17,t:"\u05dc\u05d4\u05e9\u05d0\u05d9\u05e8 \u05d8\u05d9\u05e4 \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea %@"}],to:[{w:106,h:17,t:"\u05dc\u05de\u05dc\u05d0 \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea %@"}]},s:"14px",rtl:!0,w:700},"ar-AB":{l:{a:[{w:99.73,h:15,t:"\u0625\u0636\u0627\u0641\u0629 \u0645\u0627\u0644 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],bo:[{w:72.73,h:15,t:"\u062d\u062c\u0632 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],bu:[{w:74.05,h:15,t:"\u0634\u0631\u0627\u0621 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],ch:[{w:111.41,h:15,t:"\u062f\u0641\u0639 \u0627\u0644\u062d\u0633\u0627\u0628 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],ci:[{w:33.95,h:15,t:"\u0645\u062a\u0627\u0628\u0639\u0629 %@"}],co:[{w:51.61,h:15,t:"\u0645\u0633\u0627\u0647\u0645\u0629 \u0628\u0640 %@"}],d:[{w:73.14,h:15,t:"\u062a\u0628\u0631\u0639 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],o:[{w:74.09,h:15,t:"\u0637\u0644\u0628 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],pa:[{w:69.69,h:15,t:"\u062f\u0641\u0639 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],rl:[{w:112.33,h:15,t:"\u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u062a\u0639\u0628\u0626\u0629 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],rn:[{w:88.36,h:15,t:"\u0627\u0633\u062a\u0626\u062c\u0627\u0631 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],se:[{w:29.02,h:15,t:"\u0625\u0639\u062f\u0627\u062f %@"}],sb:[{w:85.2,h:15,t:"\u0627\u0634\u062a\u0631\u0627\u0643 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],sp:[{w:71.73,h:15.08,t:"\u062f\u0639\u0645 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],ti:[{w:113.48,h:15,t:"\u062f\u0641\u0639 \u0627\u0644\u0625\u0643\u0631\u0627\u0645\u064a\u0629 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],to:[{w:112.78,h:15,t:"\u062a\u0639\u0628\u0626\u0629 \u0627\u0644\u0631\u0635\u064a\u062f \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}]},s:"12px",rtl:!0,w:700},"da-DK":{l:{a:[{w:113.38,h:18,t:"Tilf\xf8j penge med %@"}],bo:[{w:72.86,h:18,t:"Bestil med %@"}],bu:[{w:62.19,h:18,t:"K\xf8b med %@"}],ch:[{w:69.8,h:18,t:"Betal med %@"}],ci:[{w:88.09,h:18,t:"Forts\xe6t med %@"}],co:[{w:79.16,h:18,t:"Bidrag med %@"}],d:[{w:76.38,h:18,t:"Doner med %@"}],o:[{w:72.86,h:18,t:"Bestil med %@"}],pa:[{w:69.8,h:18,t:"Betal med %@"}],rl:[{w:87.45,h:18,t:"Tank op med %@"}],rn:[{w:55.41,h:18,t:"Lej med %@"}],se:[{w:43.45,h:18,t:"Indstil %@"}],sb:[{w:93.02,h:18,t:"Abonner med %@"}],sp:[{w:63.41,h:18,t:"St\xf8t med %@"}],ti:[{w:143.91,h:18,t:"Giv drikkepenge med %@"}],to:[{w:84.28,h:18,t:"Fyld op med %@"}]},s:"15px",ls:"0.22px"},"es-MX":{l:{a:[{w:129.58,h:18,t:"Agregar dinero con %@"}],bo:[{w:90.03,h:18,t:"Reservar con %@"}],bu:[{w:89.53,h:18,t:"Comprar con %@"}],ch:[{w:69.38,h:18,t:"Pagar con %@"}],ci:[{w:96.92,h:18,t:"Continuar con %@"}],co:[{w:97.92,h:18,t:"Contribuir con %@"}],d:[{w:71.52,h:18,t:"Donar con %@"}],o:[{w:65.34,h:18,t:"Pedir con %@"}],pa:[{w:69.38,h:18,t:"Pagar con %@"}],rl:[{w:91.2,h:18,t:"Recargar con %@"}],rn:[{w:75.05,h:18,t:"Rentar con %@"}],se:[{w:74.22,h:18,t:"Configurar %@"}],sb:[{w:105.81,h:18,t:"Suscribirse con %@"}],sp:[{w:78.77,h:18,t:"Apoyar con %@"}],ti:[{w:108.42,h:18,t:"Dar propina con %@"}],to:[{w:124.44,h:18,t:"Cubrir el resto con %@"}]},s:"15px",ls:"0.22px"},"uk-UA":{l:{a:[{w:121.47,h:18,t:"\u041f\u043e\u043f\u043e\u0432\u043d\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}],bo:[{w:113.38,h:18,t:"\u0417\u0430\u043c\u043e\u0432\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}],bu:[{w:94.89,h:18,t:"\u041a\u0443\u043f\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}],ch:[{w:119.34,h:18,t:"\u041e\u0444\u043e\u0440\u043c\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}],ci:[{w:101,h:18,t:"\u041f\u0440\u043e\u0434\u043e\u0432\u0436\u0438\u0442\u0438 \u0437 %@"}],co:[{w:155.2,h:18,t:"\u0417\u0440\u043e\u0431\u0438\u0442\u0438 \u0432\u043d\u0435\u0441\u043e\u043a \u0447\u0435\u0440\u0435\u0437 %@"}],d:[{w:145.48,h:18,t:"\u041f\u043e\u0436\u0435\u0440\u0442\u0432\u0443\u0432\u0430\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}],o:[{w:113.38,h:18,t:"\u0417\u0430\u043c\u043e\u0432\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}],pa:[{w:96.17,h:18,t:"\u041e\u043f\u043b\u0430\u0442\u0430 \u0447\u0435\u0440\u0435\u0437 %@"}],rl:[{w:121.47,h:18,t:"\u041f\u043e\u043f\u043e\u0432\u043d\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}],rn:[{w:129.73,h:18,t:"\u041e\u0440\u0435\u043d\u0434\u0443\u0432\u0430\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}],se:[{w:95.08,h:18,t:"\u041d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u0442\u0438 %@"}],sb:[{w:132.28,h:18,t:"\u041f\u0456\u0434\u043f\u0438\u0441\u0430\u0442\u0438\u0441\u044f \u0447\u0435\u0440\u0435\u0437 %@"}],sp:[{w:126.63,h:18,t:"\u041f\u0456\u0434\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}],ti:[{w:161.66,h:18,t:"\u0417\u0430\u043b\u0438\u0448\u0438\u0442\u0438 \u0447\u0430\u0439\u043e\u0432\u0456 \u0447\u0435\u0440\u0435\u0437 %@"}],to:[{w:121.47,h:18,t:"\u041f\u043e\u043f\u043e\u0432\u043d\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}]},s:"15px"},"tr-TR":{l:{a:[{w:82.14,h:18,t:"%@ ile Para Ekle"}],bo:[{w:134.94,h:18,t:"%@ ile Rezervasyon Yap"}],bu:[{w:72.36,h:18,t:"%@ ile Sat\u0131n Al"}],ch:[{w:49.59,h:18,t:"%@ ile \xd6de"}],ci:[{w:64.34,h:18,t:"%@ ile s\xfcrd\xfcr"}],co:[{w:113.28,h:18,t:"%@ ile Katk\u0131da Bulun"}],d:[{w:86.64,h:18,t:"%@ ile Ba\u011f\u0131\u015f Yap"}],o:[{w:92.42,h:18,t:"%@ ile Sipari\u015f Ver"}],pa:[{w:49.59,h:18,t:"%@ ile \xd6de"}],rl:[{w:114.63,h:18,t:"%@ ile Yeniden Y\xfckle"}],rn:[{w:59.02,h:18,t:"%@ ile Kirala"}],se:[{w:48.86,h:18,t:"Ayarla: %@"}],sb:[{w:83.16,h:18,t:"%@ ile Abone Ol"}],sp:[{w:86.34,h:18,t:"%@ ile Destek Ol"}],ti:[{w:91.27,h:18,t:"%@ ile Bah\u015fi\u015f Ver"}],to:[{w:66.09,h:18,t:"%@ ile Doldur"}]},s:"15px",ls:"0.22px"},"th-TH":{l:{a:[{w:64.11,h:15,t:"\u0e40\u0e15\u0e34\u0e21\u0e40\u0e07\u0e34\u0e19\u0e14\u0e49\u0e27\u0e22 %@"}],bo:[{w:45.84,h:15,t:"\u0e08\u0e2d\u0e07\u0e14\u0e49\u0e27\u0e22 %@"}],bu:[{w:40.47,h:18.41,t:"\u0e0b\u0e37\u0e49\u0e2d\u0e14\u0e49\u0e27\u0e22 %@"}],ch:[{w:69.86,h:15,t:"\u0e0a\u0e33\u0e23\u0e30\u0e40\u0e07\u0e34\u0e19\u0e14\u0e49\u0e27\u0e22 %@"}],ci:[{w:96.7,h:15,t:"\u0e14\u0e33\u0e40\u0e19\u0e34\u0e19\u0e01\u0e32\u0e23\u0e15\u0e48\u0e2d\u0e14\u0e49\u0e27\u0e22 %@"}],co:[{w:76.97,h:15,t:"\u0e21\u0e35\u0e2a\u0e48\u0e27\u0e19\u0e23\u0e48\u0e27\u0e21\u0e14\u0e49\u0e27\u0e22 %@"}],d:[{w:61.7,h:15,t:"\u0e1a\u0e23\u0e34\u0e08\u0e32\u0e04\u0e14\u0e49\u0e27\u0e22 %@"}],o:[{w:39.22,h:17.08,t:"\u0e2a\u0e31\u0e48\u0e07\u0e14\u0e49\u0e27\u0e22 %@"}],pa:[{w:51.52,h:15,t:"\u0e0a\u0e33\u0e23\u0e30\u0e14\u0e49\u0e27\u0e22 %@"}],rl:[{w:79.27,h:15.05,t:"\u0e42\u0e2b\u0e25\u0e14\u0e43\u0e2b\u0e21\u0e48\u0e14\u0e49\u0e27\u0e22 %@"}],rn:[{w:43.58,h:15,t:"\u0e40\u0e0a\u0e48\u0e32\u0e14\u0e49\u0e27\u0e22 %@"}],se:[{w:31.77,h:17.7,t:"\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32 %@"}],sb:[{w:70.42,h:15,t:"\u0e2a\u0e21\u0e31\u0e04\u0e23\u0e23\u0e31\u0e1a\u0e14\u0e49\u0e27\u0e22 %@"}],sp:[{w:73.39,h:15.64,t:"\u0e2a\u0e19\u0e31\u0e1a\u0e2a\u0e19\u0e38\u0e19\u0e14\u0e49\u0e27\u0e22 %@"}],ti:[{w:57.23,h:15,t:"\u0e43\u0e2b\u0e49\u0e17\u0e34\u0e1b\u0e14\u0e49\u0e27\u0e22 %@"}],to:[{w:45.75,h:15,t:"\u0e40\u0e15\u0e34\u0e21\u0e14\u0e49\u0e27\u0e22 %@"}]},s:"13px"},"ro-RO":{l:{a:[{w:114.67,h:18,t:"Ad\u0103uga\u021bi bani cu %@"}],bo:[{w:84.72,h:18,t:"Rezerva\u021bi cu %@"}],bu:[{w:92.45,h:18,t:"Cump\u0103ra\u021bi cu %@"}],ch:[{w:151.14,h:18,t:"Finaliza\u021bi tranzac\u021bia cu %@"}],ci:[{w:91.88,h:18,t:"Continua\u021bi cu %@"}],co:[{w:92.88,h:18,t:"Contribui\u021bi cu %@"}],d:[{w:66.47,h:18,t:"Dona\u021bi cu %@"}],o:[{w:95.94,h:18,t:"Comanda\u021bi cu %@"}],pa:[{w:60.25,h:18,t:"Pl\u0103ti\u021bi cu %@"}],rl:[{w:97.3,h:18,t:"Re\xeenc\u0103rca\u021bi cu %@"}],rn:[{w:80.72,h:18,t:"\xcenchiria\u021bi cu %@"}],se:[{w:77.58,h:18,t:"Configura\u021bi %@"}],sb:[{w:96.95,h:18,t:"Abona\u021bi\u2011v\u0103 cu %@"}],sp:[{w:92.88,h:18,t:"Contribui\u021bi cu %@"}],ti:[{w:110.34,h:18,t:"Oferi\u021bi bac\u0219i\u0219 cu %@"}],to:[{w:97.3,h:18,t:"Re\xeenc\u0103rca\u021bi cu %@"}]},s:"15px",ls:"0.22px"},"fi-FI":{l:{a:[{w:78.92,h:18,t:"Lis\xe4\xe4 rahaa "},{w:14.75,h:18,t:"lla"}],bo:[{w:74.11,h:18,t:"Tee varaus "},{w:14.75,h:18,t:"lla"}],bu:[{w:34.66,h:18,t:"Osta "},{w:14.75,h:18,t:"lla"}],ch:[{w:121.22,h:18,t:"Siirry maksamaan "},{w:14.75,h:18,t:"lla"}],ci:[{w:39.81,h:18,t:"Jatka "},{w:14.75,h:18,t:"lla"}],co:[{w:56.03,h:18,t:"Lahjoita "},{w:14.75,h:18,t:"lla"}],d:[{w:56.03,h:18,t:"Lahjoita "},{w:14.75,h:18,t:"lla"}],o:[{w:34.69,h:18,t:"Tilaa "},{w:14.75,h:18,t:"lla"}],pa:[{w:46.7,h:18,t:"Maksa "},{w:14.75,h:18,t:"lla"}],rl:[{w:40.13,h:18,t:"Lataa "},{w:14.75,h:18,t:"lla"}],rn:[{w:57.97,h:18,t:"Vuokraa "},{w:14.75,h:18,t:"lla"}],se:[{w:27.25,h:18,t:"Ota "},{w:61.7,h:18,t:" k\xe4ytt\xf6\xf6n"}],sb:[{w:34.69,h:18,t:"Tilaa "},{w:14.75,h:18,t:"lla"}],sp:[{w:27.2,h:18,t:"Tue "},{w:14.75,h:18,t:"lla"}],ti:[{w:70.44,h:18,t:"Anna tippi "},{w:14.75,h:18,t:"lla"}],to:[{w:68.19,h:18,t:"T\xe4ydenn\xe4 "},{w:14.75,h:18,t:"lla"}]},s:"15px",ls:"0.22px"},"pl-PL":{l:{a:[{w:91.52,h:18,t:"Dodaj \u015brodki ("},{w:5.16,h:18,t:")"}],bo:[{w:146.19,h:18,t:"Zarezerwuj, u\u017cywaj\u0105c %@"}],bu:[{w:98.39,h:18,t:"Kup, u\u017cywaj\u0105c %@"}],ch:[{w:175.7,h:18,t:"Sfinalizuj zakup, u\u017cywaj\u0105c %@"}],ci:[{w:80.53,h:18,t:"Kontynuuj - %@"}],co:[{w:92.56,h:18,t:"Wnie\u015b wk\u0142ad ("},{w:5.16,h:18,t:")"}],d:[{w:165.52,h:18,t:"Przeka\u017c datek, u\u017cywaj\u0105c %@"}],o:[{w:58.28,h:18,t:"Zam\xf3w ("},{w:5.16,h:18,t:")"}],pa:[{w:117.69,h:18,t:"Zap\u0142a\u0107, u\u017cywaj\u0105c %@"}],rl:[{w:114.61,h:18,t:"Uzupe\u0142nij \u015brodki ("},{w:5.16,h:18,t:")"}],rn:[{w:77.73,h:18,t:"Wypo\u017cycz ("},{w:5.16,h:18,t:")"}],se:[{w:79.19,h:18,t:"Skonfiguruj %@"}],sb:[{w:147.33,h:18,t:"Subskrybuj, u\u017cywaj\u0105c %@"}],sp:[{w:70.06,h:18,t:"Wesprzyj ("},{w:5.16,h:18,t:")"}],ti:[{w:89.44,h:18,t:"Daj napiwek ("},{w:5.16,h:18,t:")"}],to:[{w:59.44,h:18,t:"Do\u0142aduj ("},{w:5.16,h:18,t:")"}]},s:"15px",ls:"0.22px"},"zh-TW":{l:{a:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u5132\u503c"}],bo:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u9810\u7d04"}],bu:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8cfc\u8cb7"}],ch:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u7d50\u5e33"}],ci:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u7e7c\u7e8c"}],co:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u6350\u52a9"}],d:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u6350\u6b3e"}],o:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8a02\u8cfc"}],pa:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u4ed8\u6b3e"}],rl:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u5145\u503c"}],rn:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u79df\u501f"}],se:[{w:32.61,h:18,t:"\u8a2d\u5b9a %@"}],sb:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8a02\u95b1"}],sp:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u652f\u63f4"}],ti:[{w:17.81,h:18,t:"\u7528 "},{w:62.2,h:18,t:" \u652f\u4ed8\u5c0f\u8cbb"}],to:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u52a0\u503c"}]},s:"14.8px"},"fr-CA":{l:{a:[{w:154.91,h:18,t:"Ajouter des fonds avec %@"}],bo:[{w:96.92,h:18,t:"R\xe9server avec %@"}],bu:[{w:90.47,h:18,t:"Acheter avec %@"}],ch:[{w:75.22,h:18,t:"Payer avec %@"}],ci:[{w:108.56,h:18,t:"Poursuivre avec %@"}],co:[{w:109.41,h:18,t:"Contribuer avec %@"}],d:[{w:118.92,h:18,t:"Faire un don avec %@"}],o:[{w:120.53,h:18,t:"Commander avec %@"}],pa:[{w:75.22,h:18,t:"Payer avec %@"}],rl:[{w:106.7,h:18,t:"Recharger avec %@"}],rn:[{w:75.95,h:18,t:"Louer avec %@"}],se:[{w:74.19,h:18,t:"Configurer %@"}],sb:[{w:105.61,h:18,t:"S\u2019abonner avec %@"}],sp:[{w:93.98,h:18,t:"Soutenir avec %@"}],ti:[{w:174.38,h:18,t:"Donner un pourboire avec %@"}],to:[{w:106.7,h:18,t:"Recharger avec %@"}]},s:"15px",ls:"0.22px"},"en-GB":{l:{a:[{w:110.86,h:18,t:"Add Money with %@"}],bo:[{w:68.8,h:18,t:"Book with %@"}],bu:[{w:60.39,h:18,t:"Buy with %@"}],ch:[{w:102.89,h:18,t:"Check out with %@"}],ci:[{w:95.58,h:18,t:"Continue with %@"}],co:[{w:105.94,h:18,t:"Contribute with %@"}],d:[{w:83,h:18,t:"Donate with %@"}],o:[{w:72.86,h:18,t:"Order with %@"}],pa:[{w:59,h:18,t:"Pay with %@"}],rl:[{w:80.89,h:18,t:"Reload with %@"}],rn:[{w:65.67,h:18,t:"Rent with %@"}],se:[{w:45.88,h:18,t:"Set up %@"}],sb:[{w:102.14,h:18,t:"Subscribe with %@"}],sp:[{w:88.67,h:18,t:"Support with %@"}],ti:[{w:55.58,h:18,t:"Tip with %@"}],to:[{w:81.66,h:18,t:"Top Up with %@"}]},s:"15px",ls:"0.22px"},"es-ES":{l:{a:[{w:120.05,h:18,t:"A\xf1adir dinero con %@"}],bo:[{w:90.03,h:18,t:"Reservar con %@"}],bu:[{w:89.53,h:18,t:"Comprar con %@"}],ch:[{w:69.38,h:18,t:"Pagar con %@"}],ci:[{w:96.92,h:18,t:"Continuar con %@"}],co:[{w:97.92,h:18,t:"Contribuir con %@"}],d:[{w:71.52,h:18,t:"Donar con %@"}],o:[{w:65.34,h:18,t:"Pedir con %@"}],pa:[{w:69.38,h:18,t:"Pagar con %@"}],rl:[{w:91.2,h:18,t:"Recargar con %@"}],rn:[{w:81.73,h:18,t:"Alquilar con %@"}],se:[{w:74.22,h:18,t:"Configurar %@"}],sb:[{w:105.81,h:18,t:"Suscribirse con %@"}],sp:[{w:97.92,h:18,t:"Contribuir con %@"}],ti:[{w:108.42,h:18,t:"Dar propina con %@"}],to:[{w:91.2,h:18,t:"Recargar con %@"}]},s:"15px",ls:"0.22px"},"de-DE":{l:{a:[{w:58.7,h:18,t:"Geld mit "},{w:77.88,h:18,t:" hinzuf\xfcgen"}],bo:[{w:24.41,h:18,t:"Mit "},{w:53.23,h:18,t:" buchen"}],bu:[{w:24.41,h:18,t:"Mit "},{w:48.45,h:18,t:" kaufen"}],ch:[{w:24.41,h:18,t:"Mit "},{w:63.94,h:18,t:" bezahlen"}],ci:[{w:70.61,h:18,t:"Weiter mit %@"}],co:[{w:24.41,h:18,t:"Mit "},{w:66.64,h:18,t:" beitragen"}],d:[{w:24.41,h:18,t:"Mit "},{w:61,h:18,t:" spenden"}],o:[{w:24.41,h:18,t:"Mit "},{w:63.91,h:18,t:" bestellen"}],pa:[{w:24.41,h:18,t:"Mit "},{w:63.94,h:18,t:" bezahlen"}],rl:[{w:24.41,h:18,t:"Mit "},{w:86.28,h:18,t:" erneut laden"}],rn:[{w:24.41,h:18,t:"Mit "},{w:43.22,h:18,t:" leihen"}],se:[{w:69.55,h:18,t:"%@ einrichten"}],sb:[{w:24.41,h:18,t:"Mit "},{w:77.94,h:18,t:" abonnieren"}],sp:[{w:24.41,h:18,t:"Mit "},{w:87.59,h:18,t:" unterst\xfctzen"}],ti:[{w:64.16,h:18,t:"%@ Trinkgeld"}],to:[{w:24.41,h:18,t:"Mit "},{w:61.42,h:18,t:" auff\xfcllen"}]},s:"15px",ls:"0.22px"},"nb-NO":{l:{a:[{w:135.02,h:18,t:"Legg til penger med %@"}],bo:[{w:76.34,h:18,t:"Bestill med %@"}],bu:[{w:66.05,h:18,t:"Kj\xf8p med %@"}],ch:[{w:69.8,h:18,t:"Betal med %@"}],ci:[{w:62.28,h:18,t:"Fortsett i %@"}],co:[{w:70.47,h:18,t:"Bidra med %@"}],d:[{w:76.38,h:18,t:"Doner med %@"}],o:[{w:76.34,h:18,t:"Bestill med %@"}],pa:[{w:69.8,h:18,t:"Betal med %@"}],rl:[{w:78.59,h:18,t:"Fyll p\xe5 med %@"}],rn:[{w:55.41,h:18,t:"Lei med %@"}],se:[{w:72.77,h:18,t:"Konfigurer %@"}],sb:[{w:93.02,h:18,t:"Abonner med %@"}],sp:[{w:68.44,h:18,t:"St\xf8tt med %@"}],ti:[{w:85.83,h:18,t:"Gi driks med %@"}],to:[{w:78.59,h:18,t:"Fyll p\xe5 med %@"}]},s:"15px",ls:"0.22px"},"ca-ES":{l:{a:[{w:120.41,h:18,t:"Afegir diners amb %@"}],bo:[{w:94.61,h:18,t:"Reservar amb %@"}],bu:[{w:94.11,h:18,t:"Comprar amb %@"}],ch:[{w:73.97,h:18,t:"Pagar amb %@"}],ci:[{w:96.38,h:18,t:"Continua amb %@"}],co:[{w:102.52,h:18,t:"Contribuir amb %@"}],d:[{w:141.59,h:18,t:"Fer una donaci\xf3 amb %@"}],o:[{w:96.41,h:18,t:"Demanar amb %@"}],pa:[{w:73.97,h:18,t:"Pagar amb %@"}],rl:[{w:109.06,h:18,t:"Recarregar amb %@"}],rn:[{w:77.56,h:18,t:"Llogar amb %@"}],se:[{w:74.22,h:18,t:"Configurar %@"}],sb:[{w:117.7,h:18,t:"Subscriure\u2019s amb %@"}],sp:[{w:129.63,h:18,t:"Compatibilitat amb %@"}],ti:[{w:132.08,h:18,t:"Deixar propina amb %@"}],to:[{w:109.06,h:18,t:"Recarregar amb %@"}]},s:"15px",ls:"0.22px"},"ja-JP":{l:{a:[{w:75,h:18,t:"%@\u3067\u30c1\u30e3\u30fc\u30b8"}],bo:[{w:45,h:18,t:"%@\u3067\u4e88\u7d04"}],bu:[{w:45,h:18,t:"%@\u3067\u8cfc\u5165"}],ch:[{w:90,h:18,t:"%@\u3067\u8cfc\u5165\u306b\u9032\u3080"}],ci:[{w:60,h:18,t:"%@\u3067\u7d9a\u3051\u308b"}],co:[{w:45,h:18,t:"%@\u3067\u732e\u91d1"}],d:[{w:45,h:18,t:"%@\u3067\u5bc4\u4ed8"}],o:[{w:45,h:18,t:"%@\u3067\u6ce8\u6587"}],pa:[{w:60,h:18,t:"%@\u3067\u652f\u6255\u3046"}],rl:[{w:75,h:18,t:"%@\u3067\u30c1\u30e3\u30fc\u30b8"}],rn:[{w:75,h:18,t:"%@\u3067\u30ec\u30f3\u30bf\u30eb"}],se:[{w:45,h:18,t:"%@\u3092\u8a2d\u5b9a"}],sb:[{w:150,h:18,t:"%@\u3067\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3"}],sp:[{w:45,h:18,t:"%@\u3067\u652f\u63f4"}],ti:[{w:60,h:18,t:"%@\u3067\u30c1\u30c3\u30d7"}],to:[{w:75,h:18,t:"%@\u3067\u30c1\u30e3\u30fc\u30b8"}]},s:"15px",w:600},"vi-VN":{l:{a:[{w:95.7,h:18,t:"N\u1ea1p ti\u1ec1n b\u1eb1ng %@"}],bo:[{w:91.86,h:18,t:"\u0110\u1eb7t ch\u1ed7 b\u1eb1ng %@"}],bu:[{w:69.39,h:18,t:"Mua b\u1eb1ng %@"}],ch:[{w:115.56,h:18,t:"Thanh to\xe1n b\u1eb1ng %@"}],ci:[{w:93.8,h:18,t:"Ti\u1ebfp t\u1ee5c b\u1eb1ng %@"}],co:[{w:105.2,h:18,t:"\u0110\xf3ng g\xf3p b\u1eb1ng %@"}],d:[{w:113.02,h:18,t:"Quy\xean g\xf3p b\u1eb1ng %@"}],o:[{w:100.55,h:18,t:"\u0110\u1eb7t h\xe0ng b\u1eb1ng %@"}],pa:[{w:115.56,h:18,t:"Thanh to\xe1n b\u1eb1ng %@"}],rl:[{w:85.63,h:18,t:"N\u1ea1p l\u1ea1i b\u1eb1ng %@"}],rn:[{w:74.27,h:18,t:"Thu\xea b\u1eb1ng %@"}],se:[{w:60.72,h:18,t:"Thi\u1ebft l\u1eadp %@"}],sb:[{w:94.59,h:18,t:"\u0110\u0103ng k\xfd b\u1eb1ng %@"}],sp:[{w:81.38,h:18,t:"H\u1ed7 tr\u1ee3 b\u1eb1ng %@"}],ti:[{w:61,h:18,t:"Tip b\u1eb1ng %@"}],to:[{w:95.7,h:18,t:"N\u1ea1p ti\u1ec1n b\u1eb1ng %@"}]},s:"15px",ls:"0.22px"},"nl-NL":{l:{a:[{w:123.2,h:18,t:"Voeg geld toe met %@"}],bo:[{w:99.25,h:18,t:"Reserveer met %@"}],bu:[{w:66.8,h:18,t:"Koop met %@"}],ch:[{w:74.06,h:18,t:"Betaal met %@"}],ci:[{w:96.69,h:18,t:"Ga verder met %@"}],co:[{w:144.58,h:18,t:"Doe een bijdrage met %@"}],d:[{w:80.8,h:18,t:"Doneer met %@"}],o:[{w:73.63,h:18,t:"Bestel met %@"}],pa:[{w:74.06,h:18,t:"Betaal met %@"}],rl:[{w:125.09,h:18,t:"Laad opnieuw met %@"}],rn:[{w:64.84,h:18,t:"Huur met %@"}],se:[{w:82.33,h:18,t:"Configureer %@"}],sb:[{w:112.31,h:18,t:"Abonneer je met %@"}],sp:[{w:71.16,h:18,t:"Steun met %@"}],ti:[{w:92.61,h:18,t:"Geef fooi met %@"}],to:[{w:88.31,h:18,t:"Verhoog met %@"}]},s:"15px",ls:"0.22px"},"cs-CZ":{l:{a:[{w:114.92,h:18,t:"P\u0159idat hotovost s %@"}],bo:[{w:100.98,h:18,t:"Zarezervovat s %@"}],bu:[{w:56.98,h:18,t:"Koupit s %@"}],ch:[{w:65.02,h:18,t:"Zaplatit s %@"}],ci:[{w:88.44,h:18,t:"Pokra\u010dovat s %@"}],co:[{w:60.81,h:18,t:"P\u0159isp\u011bt s %@"}],d:[{w:65.84,h:18,t:"Darovat s %@"}],o:[{w:75.61,h:18,t:"Objednat s %@"}],pa:[{w:65.02,h:18,t:"Zaplatit s %@"}],rl:[{w:49.97,h:18,t:"Dob\xedt s %@"}],rn:[{w:68.38,h:18,t:"Vyp\u016fj\u010dit s %@"}],se:[{w:58.19,h:18,t:"Nastavit %@"}],sb:[{w:78.28,h:18,t:"P\u0159edplatit s %@"}],sp:[{w:70.45,h:18,t:"Podpo\u0159it s %@"}],ti:[{w:103.66,h:18,t:"D\xe1t spropitn\xe9 s %@"}],to:[{w:61.77,h:18,t:"Doplnit s %@"}]},s:"15px",ls:"0.22px"},"sv-SE":{l:{a:[{w:138.39,h:18,t:"L\xe4gg till pengar med %@"}],bo:[{w:69.44,h:18,t:"Boka med %@"}],bu:[{w:62.11,h:18,t:"K\xf6p med %@"}],ch:[{w:77.78,h:18,t:"Betala med %@"}],ci:[{w:88.16,h:18,t:"Forts\xe4tt med %@"}],co:[{w:70.47,h:18,t:"Bidra med %@"}],d:[{w:84.2,h:18,t:"Donera med %@"}],o:[{w:80.8,h:18,t:"Best\xe4ll med %@"}],pa:[{w:77.78,h:18,t:"Betala med %@"}],rl:[{w:78.59,h:18,t:"Fyll p\xe5 med %@"}],rn:[{w:59.63,h:18,t:"Hyr med %@"}],se:[{w:47.42,h:18,t:"St\xe4ll in %@"}],sb:[{w:121.25,h:18,t:"Prenumerera med %@"}],sp:[{w:67.13,h:18,t:"St\xf6d med %@"}],ti:[{w:98.45,h:18,t:"Ge dricks med %@"}],to:[{w:78.59,h:18,t:"Fyll p\xe5 med %@"}]},s:"15px",ls:"0.22px"},"it-IT":{l:{a:[{w:118.47,h:18,t:"Versa denaro con %@"}],bo:[{w:82.81,h:18,t:"Prenota con %@"}],bu:[{w:89.77,h:18,t:"Acquista con %@"}],ch:[{w:64.23,h:18,t:"Paga con %@"}],ci:[{w:91.78,h:18,t:"Continua con %@"}],co:[{w:111.69,h:18,t:"Contribuisci con %@"}],d:[{w:150.94,h:18,t:"Fai una donazione con %@"}],o:[{w:75.78,h:18,t:"Ordina con %@"}],pa:[{w:64.23,h:18,t:"Paga con %@"}],rl:[{w:84.5,h:18,t:"Ricarica con %@"}],rn:[{w:90.75,h:18,t:"Noleggia con %@"}],se:[{w:69.08,h:18,t:"Configura %@"}],sb:[{w:91.91,h:18,t:"Abbonati con %@"}],sp:[{w:84.77,h:18,t:"Sostieni con %@"}],ti:[{w:153.83,h:18,t:"Lascia una mancia con %@"}],to:[{w:84.5,h:18,t:"Ricarica con %@"}]},s:"15px",ls:"0.22px"},"hr-HR":{l:{a:[{w:145.14,h:18,t:"Dodaj novac koriste\u0107i %@"}],bo:[{w:128.28,h:18,t:"Rezerviraj koriste\u0107i %@"}],bu:[{w:92.84,h:18,t:"Kupi koriste\u0107i %@"}],ch:[{w:114.06,h:18,t:"Naplati koriste\u0107i: %@"}],ci:[{w:63.89,h:18,t:"Nastavi s %@"}],co:[{w:126.33,h:18,t:"Doprinesi koriste\u0107i %@"}],d:[{w:109.88,h:18,t:"Doniraj koriste\u0107i %@"}],o:[{w:106.19,h:18,t:"Naru\u010di koriste\u0107i %@"}],pa:[{w:91.72,h:18,t:"Plati koriste\u0107i %@"}],rl:[{w:110.16,h:18,t:"Napuni koriste\u0107i %@"}],rn:[{w:109.28,h:18,t:"Unajmi koriste\u0107i %@"}],se:[{w:48.05,h:18,t:"Podesi %@"}],sb:[{w:137.25,h:18,t:"Pretplati se koriste\u0107i %@"}],sp:[{w:104.63,h:18,t:"Podr\u017ei koriste\u0107i %@"}],ti:[{w:173.84,h:18,t:"Ostavi napojnicu koriste\u0107i %@"}],to:[{w:127.06,h:18,t:"Nadoplati koriste\u0107i %@"}]},s:"15px",ls:"0.22px"},"id-ID":{l:{a:[{w:146.39,h:18,t:"Tambah uang dengan %@"}],bo:[{w:97.41,h:18,t:"Pesan dengan %@"}],bu:[{w:81.23,h:18,t:"Beli dengan %@"}],ch:[{w:138.91,h:18,t:"Lanjut bayar dengan %@"}],ci:[{w:122.27,h:18,t:"Lanjutkan dengan %@"}],co:[{w:145.36,h:18,t:"Berkontribusi dengan %@"}],d:[{w:102.89,h:18,t:"Donasi dengan %@"}],o:[{w:94.8,h:18,t:"Order dengan %@"}],pa:[{w:94.91,h:18,t:"Bayar dengan %@"}],rl:[{w:113.94,h:18,t:"Isi Ulang dengan %@"}],rn:[{w:93.31,h:18,t:"Sewa dengan %@"}],se:[{w:31.2,h:18,t:"Atur %@"}],sb:[{w:149.42,h:18,t:"Berlangganan dengan %@"}],sp:[{w:108.81,h:18,t:"Dukung dengan %@"}],ti:[{w:103.34,h:18,t:"Beri tip dengan %@"}],to:[{w:147.81,h:18,t:"Tambah Dana dengan %@"}]},s:"15px",ls:"0.22px"},"hu-HU":{l:{a:[{w:160.58,h:18,t:"P\xe9nz hozz\xe1ad\xe1sa ezzel: %@"}],bo:[{w:113.28,h:18,t:"Lefoglal\xe1s ezzel: %@"}],bu:[{w:129.64,h:18,t:"Megv\xe1s\xe1rl\xe1s ezzel: %@"}],ch:[{w:116.84,h:18,t:"Kassz\xe1hoz ezzel: %@"}],ci:[{w:105.84,h:18,t:"Folytat\xe1s ezzel: %@"}],co:[{w:130.72,h:18,t:"Hozz\xe1j\xe1rul\xe1s ezzel: %@"}],d:[{w:139.45,h:18,t:"Adom\xe1nyoz\xe1s ezzel: %@"}],o:[{w:131.88,h:18,t:"Megrendel\xe9s ezzel: %@"}],pa:[{w:92.38,h:18,t:"Fizet\xe9s ezzel: %@"}],rl:[{w:109.23,h:18,t:"\xdajrat\xf6lt\xe9s ezzel: %@"}],rn:[{w:120.95,h:18,t:"K\xf6lcs\xf6nz\xe9s ezzel: %@"}],se:[{w:66.75,h:18,t:"%@ be\xe1ll\xedt\xe1sa"}],sb:[{w:109.69,h:18,t:"El\u0151fizet\xe9s ezzel: %@"}],sp:[{w:118.05,h:18,t:"T\xe1mogat\xe1s ezzel: %@"}],ti:[{w:108.28,h:18,t:"Borraval\xf3 ezzel: %@"}],to:[{w:101.67,h:18,t:"Felt\xf6lt\xe9s ezzel: %@"}]},s:"15px",ls:"0.22px"},"ru-RU":{l:{a:[{w:134.39,h:18,t:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0434\u0435\u043d\u044c\u0433\u0438 \u0441 %@"}],bo:[{w:77.81,h:18,t:"\u0417\u0430\u043a\u0430\u0437\u0430\u0442\u044c \u0441 %@"}],bu:[{w:63.44,h:18,t:"\u041a\u0443\u043f\u0438\u0442\u044c \u0441 %@"}],ch:[{w:81.38,h:18,t:"\u041e\u043f\u043b\u0430\u0442\u0438\u0442\u044c \u0441 %@"}],ci:[{w:103.5,h:18,t:"\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u0441 %@"}],co:[{w:89.8,h:18,t:"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0441 %@"}],d:[{w:116.05,h:18,t:"\u041f\u043e\u0436\u0435\u0440\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 %@"}],o:[{w:77.81,h:18,t:"\u0417\u0430\u043a\u0430\u0437\u0430\u0442\u044c \u0441 %@"}],pa:[{w:81.38,h:18,t:"\u041e\u043f\u043b\u0430\u0442\u0438\u0442\u044c \u0441 %@"}],rl:[{w:90.94,h:18,t:"\u041f\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441 %@"}],rn:[{w:98.55,h:18,t:"\u0410\u0440\u0435\u043d\u0434\u043e\u0432\u0430\u0442\u044c \u0441 %@"}],se:[{w:78.13,h:18,t:"\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c %@"}],sb:[{w:106.73,h:18,t:"\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u0441 %@"}],sp:[{w:103.39,h:18,t:"\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0441 %@"}],ti:[{w:144.09,h:18,t:"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0447\u0430\u0435\u0432\u044b\u0435 \u0441 %@"}],to:[{w:90.94,h:18,t:"\u041f\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441 %@"}]},s:"15px",ls:"0.22px"},"ko-KR":{l:{a:[{w:44.6,h:17,t:"%@ \ub85c \ucda9\uc804"}],bo:[{w:44.6,h:17,t:"%@ \ub85c \uc608\uc57d"}],bu:[{w:44.6,h:17,t:"%@ \ub85c \uad6c\uc785"}],ch:[{w:44.6,h:17,t:"%@ \ub85c \uacb0\uc81c"}],ci:[{w:73.04,h:17,t:"%@ \ub85c \uacc4\uc18d \uc9c4\ud589"}],co:[{w:69.16,h:17,t:"%@ \ub85c \ucc38\uc5ec\ud558\uae30"}],d:[{w:69.16,h:17,t:"%@ \ub85c \uae30\ubd80\ud558\uae30"}],o:[{w:44.6,h:17,t:"%@ \ub85c \uc8fc\ubb38"}],pa:[{w:44.6,h:17,t:"%@ \ub85c \uc9c0\ubd88"}],rl:[{w:44.6,h:17,t:"%@ \ub85c \ucda9\uc804"}],rn:[{w:44.6,h:17,t:"%@ \ub85c \ub300\uc5ec"}],se:[{w:28.45,h:17,t:"%@ \uc124\uc815"}],sb:[{w:44.6,h:17,t:"%@ \ub85c \uad6c\ub3c5"}],sp:[{w:69.16,h:17,t:"%@ \ub85c \uc9c0\uc6d0\ud558\uae30"}],ti:[{w:60.76,h:17,t:"%@ \ub85c \ud301 \uc9c0\ubd88"}],to:[{w:104.43,h:17,t:"%@ \ub85c \ucda9\uc804(top-up)"}]},s:"14.2px",w:600,ls:"1px"},"pt-PT":{l:{a:[{w:155.92,h:18,t:"Adicionar dinheiro com %@"}],bo:[{w:94.23,h:18,t:"Reservar com %@"}],bu:[{w:93.73,h:18,t:"Comprar com %@"}],ch:[{w:73.58,h:18,t:"Pagar com %@"}],ci:[{w:101.13,h:18,t:"Continuar com %@"}],co:[{w:102.14,h:18,t:"Contribuir com %@"}],d:[{w:156.5,h:18,t:"Fazer uma doa\xe7\xe3o com %@"}],o:[{w:119.66,h:18,t:"Encomendar com %@"}],pa:[{w:73.58,h:18,t:"Pagar com %@"}],rl:[{w:108.69,h:18,t:"Recarregar com %@"}],rn:[{w:78.98,h:18,t:"Alugar com %@"}],se:[{w:74.22,h:18,t:"Configurar %@"}],sb:[{w:85.17,h:18,t:"Assinar com %@"}],sp:[{w:78.98,h:18,t:"Apoiar com %@"}],ti:[{w:108.94,h:18,t:"Dar gorjeta com %@"}],to:[{w:93.81,h:18,t:"Carregar com %@"}]},s:"15px",ls:"0.22px"},"hi-IN":{l:{a:[{w:49.42,h:14.28,t:"%@ \u0938\u0947 \u0927\u0928 \u091c\u094b\u0921\u093c\u0947\u0902"}],bo:[{w:47.23,h:14.89,t:"%@ \u0938\u0947 \u092c\u0941\u0915 \u0915\u0930\u0947\u0902"}],bu:[{w:38.5,h:14.42,t:"%@ \u0938\u0947 \u0916\u093c\u0930\u0940\u0926\u0947\u0902"}],ch:[{w:96.38,h:14.28,t:"%@ \u0915\u0947 \u0938\u093e\u0925 \u091a\u0947\u0915\u0906\u0909\u091f \u0915\u0930\u0947\u0902"}],ci:[{w:75.66,h:14.42,t:"%@ \u0915\u0947 \u0938\u093e\u0925 \u091c\u093e\u0930\u0940 \u0930\u0916\u0947\u0902"}],co:[{w:65.02,h:14.28,t:"%@ \u0938\u0947 \u092f\u094b\u0917\u0926\u093e\u0928 \u0915\u0930\u0947\u0902"}],d:[{w:38.94,h:14.28,t:"%@ \u0938\u0947 \u0926\u093e\u0928 \u0926\u0947\u0902"}],o:[{w:55.03,h:14.34,t:"%@ \u0938\u0947 \u0911\u0930\u094d\u0921\u0930 \u0915\u0930\u0947\u0902"}],pa:[{w:61.91,h:14.89,t:"%@ \u0938\u0947 \u092d\u0941\u0917\u0924\u093e\u0928 \u0915\u0930\u0947\u0902"}],rl:[{w:58.19,h:14.42,t:"%@ \u0938\u0947 \u0930\u0940\u0932\u094b\u0921 \u0915\u0930\u0947\u0902"}],rn:[{w:67.59,h:14.42,t:"%@ \u0938\u0947 \u0915\u093f\u0930\u093e\u090f \u092a\u0930 \u0932\u0947\u0902"}],se:[{w:50.67,h:14.28,t:"%@ \u0938\u0947\u091f\u0905\u092a \u0915\u0930\u0947\u0902"}],sb:[{w:102.09,h:14.28,t:"%@ \u0915\u0947 \u0938\u093e\u0925 \u0938\u092c\u094d\u0938\u0915\u094d\u0930\u093e\u0907\u092c \u0915\u0930\u0947\u0902"}],sp:[{w:61.06,h:14.34,t:"%@ \u0938\u0947 \u0938\u092e\u0930\u094d\u0925\u0928 \u0915\u0930\u0947\u0902"}],ti:[{w:39.22,h:14.42,t:"%@ \u0938\u0947 \u091f\u093f\u092a \u0926\u0947\u0902"}],to:[{w:65.84,h:14.28,t:"%@ \u0938\u0947 \u091f\u0949\u092a \u0905\u092a \u0915\u0930\u0947\u0902"}]},s:"12px",w:600},"sk-SK":{l:{a:[{w:124.89,h:18,t:"Prida\u0165 peniaze cez %@"}],bo:[{w:104.45,h:18,t:"Rezervova\u0165 cez %@"}],bu:[{w:65.42,h:18,t:"K\xfapi\u0165 cez %@"}],ch:[{w:81.42,h:18,t:"Zaplati\u0165 cez %@"}],ci:[{w:100.61,h:18,t:"Pokra\u010dujte cez %@"}],co:[{w:80.69,h:18,t:"Prispie\u0165 cez %@"}],d:[{w:80.69,h:18,t:"Prispie\u0165 cez %@"}],o:[{w:92.02,h:18,t:"Objedna\u0165 cez %@"}],pa:[{w:81.42,h:18,t:"Zaplati\u0165 cez %@"}],rl:[{w:66.38,h:18,t:"Dobi\u0165 cez %@"}],rn:[{w:79.02,h:18,t:"Po\u017ei\u010da\u0165 cez %@"}],se:[{w:58.52,h:18,t:"Nastavi\u0165 %@"}],sb:[{w:93.55,h:18,t:"Odobera\u0165 cez %@"}],sp:[{w:86.86,h:18,t:"Podpori\u0165 cez %@"}],ti:[{w:119.8,h:18,t:"Da\u0165 sprepitn\xe9 cez %@"}],to:[{w:66.38,h:18,t:"Dobi\u0165 cez %@"}]},s:"15px",ls:"0.22px"},"ms-MY":{l:{a:[{w:151.3,h:18,t:"Tambah Wang dengan %@"}],bo:[{w:109.78,h:18,t:"Tempah dengan %@"}],bu:[{w:81.23,h:18,t:"Beli dengan %@"}],ch:[{w:94.91,h:18,t:"Bayar dengan %@"}],ci:[{w:117.09,h:18,t:"Teruskan dengan %@"}],co:[{w:144.94,h:18,t:"Sumbangkan dengan %@"}],d:[{w:101.03,h:18,t:"Derma dengan %@"}],o:[{w:97.41,h:18,t:"Pesan dengan %@"}],pa:[{w:94.91,h:18,t:"Bayar dengan %@"}],rl:[{w:122.72,h:18,t:"Isi semula dengan %@"}],rn:[{w:93.31,h:18,t:"Sewa dengan %@"}],se:[{w:64.88,h:18,t:"Sediakan %@"}],sb:[{w:114.98,h:18,t:"Langgan dengan %@"}],sp:[{w:107.3,h:18,t:"Sokong dengan %@"}],ti:[{w:127.48,h:18,t:"Berikan tip dengan %@"}],to:[{w:142.14,h:18,t:"Tambah Nilai dengan %@"}]},s:"15px",ls:"0.22px"}},Xr=[],pl="ResizeObserver loop completed with undelivered notifications.";(_=_i||(_i={})).BORDER_BOX="border-box",_.CONTENT_BOX="content-box",_.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box";var ml,Os,pr=function(_){return Object.freeze(_)},gl=function(_,m){this.inlineSize=_,this.blockSize=m,pr(this)},vn=function(){function _(m,C,M,V){return this.x=m,this.y=C,this.width=M,this.height=V,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,pr(this)}return _.prototype.toJSON=function(){var m=this;return{x:m.x,y:m.y,top:m.top,right:m.right,bottom:m.bottom,left:m.left,width:m.width,height:m.height}},_.fromRect=function(m){return new _(m.x,m.y,m.width,m.height)},_}(),Do=function(_){return _ instanceof SVGElement&&"getBBox"in _},Eo=function(_){if(Do(_)){var m=_.getBBox();return!m.width&&!m.height}return!(_.offsetWidth||_.offsetHeight||_.getClientRects().length)},vi=function(_){var m,C;if(_ instanceof Element)return!0;var M=null===(C=null===(m=_)||void 0===m?void 0:m.ownerDocument)||void 0===C?void 0:C.defaultView;return!!(M&&_ instanceof M.Element)},vt="undefined"!=typeof window?window:{},Ve=new WeakMap,wi=/auto|scroll/,Zm=/^tb|vertical/,Qm=/msie|trident/i.test(vt.navigator&&vt.navigator.userAgent),Ln=function(_){return parseFloat(_||"0")},zi=function(_,m,C){return void 0===_&&(_=0),void 0===m&&(m=0),void 0===C&&(C=!1),new gl((C?m:_)||0,(C?_:m)||0)},nd=pr({devicePixelContentBoxSize:zi(),borderBoxSize:zi(),contentBoxSize:zi(),contentRect:new vn(0,0,0,0)}),rd=function(_,m){if(void 0===m&&(m=!1),Ve.has(_)&&!m)return Ve.get(_);if(Eo(_))return Ve.set(_,nd),nd;var C=getComputedStyle(_),M=Do(_)&&_.ownerSVGElement&&_.getBBox(),V=!Qm&&"border-box"===C.boxSizing,H=Zm.test(C.writingMode||""),ce=!M&&wi.test(C.overflowY||""),ze=!M&&wi.test(C.overflowX||""),wt=M?0:Ln(C.paddingTop),Rn=M?0:Ln(C.paddingRight),ei=M?0:Ln(C.paddingBottom),Gi=M?0:Ln(C.paddingLeft),To=M?0:Ln(C.borderTopWidth),Hs=M?0:Ln(C.borderRightWidth),Wi=M?0:Ln(C.borderBottomWidth),ld=Gi+Rn,cd=wt+ei,Us=(M?0:Ln(C.borderLeftWidth))+Hs,zs=To+Wi,ud=ze?_.offsetHeight-zs-_.clientHeight:0,Jn=ce?_.offsetWidth-Us-_.clientWidth:0,dd=V?ld+Us:0,qi=V?cd+zs:0,Ao=M?M.width:Ln(C.width)-dd-Jn,xo=M?M.height:Ln(C.height)-qi-ud,Dl=Ao+ld+Jn+Us,El=xo+cd+ud+zs,hd=pr({devicePixelContentBoxSize:zi(Math.round(Ao*devicePixelRatio),Math.round(xo*devicePixelRatio),H),borderBoxSize:zi(Dl,El,H),contentBoxSize:zi(Ao,xo,H),contentRect:new vn(Gi,wt,Ao,xo)});return Ve.set(_,hd),hd},yl=function(_,m,C){var M=rd(_,C),V=M.borderBoxSize,H=M.contentBoxSize,ce=M.devicePixelContentBoxSize;switch(m){case _i.DEVICE_PIXEL_CONTENT_BOX:return ce;case _i.BORDER_BOX:return V;default:return H}},kr=function(_){var m=rd(_);this.target=_,this.contentRect=m.contentRect,this.borderBoxSize=pr([m.borderBoxSize]),this.contentBoxSize=pr([m.contentBoxSize]),this.devicePixelContentBoxSize=pr([m.devicePixelContentBoxSize])},_l=function(_){if(Eo(_))return 1/0;for(var m=0,C=_.parentNode;C;)m+=1,C=C.parentNode;return m},Ym=function(){var _=1/0,m=[];Xr.forEach(function(V){if(0!==V.activeTargets.length){var H=[];V.activeTargets.forEach(function(ce){var ze=new kr(ce.target),wt=_l(ce.target);H.push(ze),ce.lastReportedSize=yl(ce.target,ce.observedBox),wt<_&&(_=wt)}),m.push(function(){V.callback.call(V.observer,H,V.observer)}),V.activeTargets.splice(0,V.activeTargets.length)}});for(var C=0,M=m;C<M.length;C++)(0,M[C])();return _},Fs=function(_){Xr.forEach(function(m){m.activeTargets.splice(0,m.activeTargets.length),m.skippedTargets.splice(0,m.skippedTargets.length),m.observationTargets.forEach(function(C){C.isActive()&&(_l(C.target)>_?m.activeTargets.push(C):m.skippedTargets.push(C))})})},vl=[],Ls=0,wl={attributes:!0,characterData:!0,childList:!0,subtree:!0},Rs=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Ci=function(_){return void 0===_&&(_=0),Date.now()+_},$s=!1,Mo=new(function(){function _(){var m=this;this.stopped=!0,this.listener=function(){return m.schedule()}}return _.prototype.run=function(m){var C=this;if(void 0===m&&(m=250),!$s){$s=!0;var M,V=Ci(m);M=function(){var H=!1;try{H=function(){var _,m=0;for(Fs(m);Xr.some(function(C){return C.activeTargets.length>0});)m=Ym(),Fs(m);return Xr.some(function(C){return C.skippedTargets.length>0})&&("function"==typeof ErrorEvent?_=new ErrorEvent("error",{message:pl}):((_=document.createEvent("Event")).initEvent("error",!1,!1),_.message=pl),window.dispatchEvent(_)),m>0}()}finally{if($s=!1,m=V-Ci(),!Ls)return;H?C.run(1e3):m>0?C.run(m):C.start()}},function(_){if(!ml){var m=0,C=document.createTextNode("");new MutationObserver(function(){return vl.splice(0).forEach(function(M){return M()})}).observe(C,{characterData:!0}),ml=function(){C.textContent=""+(m?m--:m++)}}vl.push(function(){requestAnimationFrame(M)}),ml()}()}},_.prototype.schedule=function(){this.stop(),this.run()},_.prototype.observe=function(){var m=this,C=function(){return m.observer&&m.observer.observe(document.body,wl)};document.body?C():vt.addEventListener("DOMContentLoaded",C)},_.prototype.start=function(){var m=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Rs.forEach(function(C){return vt.addEventListener(C,m.listener,!0)}))},_.prototype.stop=function(){var m=this;this.stopped||(this.observer&&this.observer.disconnect(),Rs.forEach(function(C){return vt.removeEventListener(C,m.listener,!0)}),this.stopped=!0)},_}()),id=function(_){!Ls&&_>0&&Mo.start(),!(Ls+=_)&&Mo.stop()},od=function(){function _(m,C){this.target=m,this.observedBox=C||_i.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return _.prototype.isActive=function(){var m,C=yl(this.target,this.observedBox,!0);return Do(m=this.target)||function(M){switch(M.tagName){case"INPUT":if("image"!==M.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(m)||"inline"!==getComputedStyle(m).display||(this.lastReportedSize=C),this.lastReportedSize.inlineSize!==C.inlineSize||this.lastReportedSize.blockSize!==C.blockSize},_}(),eg=function(_,m){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=_,this.callback=m},Vs=new WeakMap,Cl=function(_,m){for(var C=0;C<_.length;C+=1)if(_[C].target===m)return C;return-1},Bs=function(){function _(){}return _.connect=function(m,C){var M=new eg(m,C);Vs.set(m,M)},_.observe=function(m,C,M){var V=Vs.get(m),H=0===V.observationTargets.length;Cl(V.observationTargets,C)<0&&(H&&Xr.push(V),V.observationTargets.push(new od(C,M&&M.box)),id(1),Mo.schedule())},_.unobserve=function(m,C){var M=Vs.get(m),V=Cl(M.observationTargets,C);V>=0&&(1===M.observationTargets.length&&Xr.splice(Xr.indexOf(M),1),M.observationTargets.splice(V,1),id(-1))},_.disconnect=function(m){var C=this,M=Vs.get(m);M.observationTargets.slice().forEach(function(V){return C.unobserve(m,V.target)}),M.activeTargets.splice(0,M.activeTargets.length)},_}(),sd=function(){function _(m){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof m)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Bs.connect(this,m)}return _.prototype.observe=function(m,C){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!vi(m))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Bs.observe(this,m,C)},_.prototype.unobserve=function(m){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!vi(m))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Bs.unobserve(this,m)},_.prototype.disconnect=function(){Bs.disconnect(this)},_.toString=function(){return"function ResizeObserver () { [polyfill code] }"},_}();Os=yi(document.documentElement),dl()||ht(Os)||ks(Os);var bl=dl(),js=class extends HTMLElement{constructor(){super(),this.__registerHost(),Object(i.b)(this),this.logoOnly=!1,this.fontLoading=!bl,this.buttonStyle="black",this.type="buy"}checkStyle(_,m){var C=bi(_,m);C!==_&&this.element.setAttribute("buttonstyle",C)}checkType(_,m){var C=So(_,m);C!==_&&this.element.setAttribute("type",C),this.metadata&&(this.minButtonWidth=this.getMinButtonWidth(this.metadata))}verifyLocaleAndSwapMetadata(_){this._locale=this.adjustLocaleAndSetLangIfNecessary(_),bl||this.loadFontIfNecessary(this._locale),this.metadata=Km[this._locale],this.minButtonWidth=this.getMinButtonWidth(this.metadata)}componentWillLoad(){var _=this;return s(function*(){var m=bi(_.buttonStyle);m!==_.buttonStyle&&_.element.setAttribute("buttonstyle",m);var C=So(_.type);C!==_.type&&_.element.setAttribute("type",C),_.verifyLocaleAndSwapMetadata(_.locale)})()}componentDidRender(){this.validateFontSize(this.container.offsetWidth)}componentDidLoad(){new sd((_,m)=>{for(var C of _){var{width:M}=C.contentRect;if("plain"===this.type)return;this.validateFontSize(M)}}).observe(this.container),this.element.addEventListener("click",_=>_.stopPropagation())}validateFontSize(_){var m,C,M,V;"plain"!==this.type&&(_<this.minButtonWidth?(null===(m=this.container.querySelector("#svg-text"))||void 0===m||m.classList.add("hidden"),null===(C=this.container.querySelector("#svg-logo"))||void 0===C||C.classList.remove("hidden")):(null===(M=this.container.querySelector("#svg-text"))||void 0===M||M.classList.remove("hidden"),null===(V=this.container.querySelector("#svg-logo"))||void 0===V||V.classList.add("hidden")))}getStyle(_){return":host(apple-pay-button){display:inline-block;width:var(--apple-pay-button-width, auto);"+"min-width:".concat("plain"===_?"100px":"140px",";")+"min-height:30px;"+(ie()?"":"display:none;")+"}"}loadFontIfNecessary(_){try{var m=document.fonts.check("15px apple-pay-btn-".concat(_)),C=ht(_);C||ks(_),this.fontLoading=!C||!m,this.fontLoading&&document.fonts.ready.then(()=>setTimeout(()=>{this.fontLoading=!1},0))}catch(M){this.fontLoading=!1}}getMinButtonWidth(_){var H,m=So(this.type),{width:C,height:M}="plain"===(H=m)?{width:35,height:15}:{width:ed({metadata:_,buttonType:H}).width,height:18};return 15*C/M}adjustLocaleAndSetLangIfNecessary(_){var m=function(M){if(M){var V=rn(yt(M));if(V)return V}}(_);if(m){m!==_&&this.element.setAttribute("locale",m);var C=m.replace("_","-");this.element.setAttribute("lang",C)}else this.element.removeAttribute("locale"),this.element.removeAttribute("lang"),m=yi(this.element);return m}render(){var _=bi(this.buttonStyle),m=So(this.type);return Object(i.c)(i.a,{"aria-hidden":ie()?void 0:"true"},Object(i.c)("div",{class:"apple-pay-btn-wrapper ".concat(m," ").concat(this._locale),style:{visibility:this.fontLoading?"hidden":"visible"}},Object(i.c)("style",null,this.getStyle(m)),Object(i.c)("button",{"aria-label":qm(this.metadata,m),class:"apple-pay-btn ".concat(_)},Object(i.c)("span",{ref:C=>this.container=C,innerHTML:fr({metadata:this.metadata,locale:this._locale,buttonStyle:_,buttonType:m})}))))}static get assetsDirs(){return["assets/1.0.0"]}get element(){return this}static get watchers(){return{buttonStyle:["checkStyle"],type:["checkType"],locale:["verifyLocaleAndSwapMetadata"]}}static get style(){return'.apple-pay-btn-wrapper{width:100%;min-height:30px;height:var(--apple-pay-button-height, 30px)}.apple-pay-btn-wrapper.plain{min-width:100px}.plain .apple-pay-btn{--apple-pay-button-width-default:100px}.apple-pay-btn-wrapper .apple-pay-btn{background-color:black;border:none;color:white;cursor:pointer;font-synthesis:none;-ms-flex-pack:center;justify-content:center;position:relative;margin:0;-webkit-box-sizing:var(--apple-pay-button-box-sizing, content-box);box-sizing:var(--apple-pay-button-box-sizing, content-box);min-height:30px;height:calc(var(--apple-pay-button-height, 30px));min-width:var(--apple-pay-button-width-default, 140px);width:100%;border-radius:var(--apple-pay-button-border-radius, 4px);padding:var(--apple-pay-button-padding, 0);-moz-font-feature-settings:kern;-moz-osx-font-smoothing:"grayscale";-webkit-font-smoothing:antialiased}.apple-pay-btn-wrapper .apple-pay-btn.white,.apple-pay-btn-wrapper .apple-pay-btn.white-outline{background-color:white;color:black}.apple-pay-btn-wrapper .apple-pay-btn.white-outline{border:1px solid black}.apple-pay-btn-wrapper .apple-pay-btn>span{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:100%}.apple-pay-btn-wrapper .apple-pay-btn>span>svg{max-width:100%;min-height:24px;min-width:50%;height:100%;-webkit-transform:translateZ(0) scale(1, 1);transform:translateZ(0) scale(1, 1)}.apple-pay-btn-wrapper .apple-pay-btn #svg-text.hidden,.apple-pay-btn-wrapper .apple-pay-btn #svg-logo.hidden{display:none}'}};function bi(_,m){var C=["black","white-outline","white"],M=_.trim();return C.includes(M)?M:m&&C.includes(m)?m:"black"}function So(_,m){var C=_.trim();return hl(C)?C:m&&hl(m)?m:"buy"}"undefined"!=typeof customElements&&[Object(i.d)(js,[1,"apple-pay-button",{buttonStyle:[513,"buttonstyle"],type:[1537],locale:[1025],logoOnly:[32],fontLoading:[32]}])].forEach(_=>{customElements.get(_.is)||customElements.define(_.is,_,void 0)})}var f="https://applepay.cdn-apple.com/jsapi/v1/apple-pay-sdk.js";e.p=new URL(f.slice(0,f.lastIndexOf("/")));var y,w,b,S,p=!0;try{p=globalThis}catch(y){p=!1}window.customElements&&window.fetch&&Symbol("desc").description&&p?d():(y=e.p+"/polyfills.js",w=d,b=document.body,(S=document.createElement("script")).src=y,S.onload=w,S.onreadystatechange=w,b.appendChild(S))}.call(this,e(44))},104:function(n,t){function e(r){return Promise.resolve().then(function(){var i=new Error("Cannot find module '"+r+"'");throw i.code="MODULE_NOT_FOUND",i})}e.keys=function(){return[]},e.resolve=e,n.exports=e,e.id=104},14:function(n,t,e){var r,i,o;function Xr(h,g,v,D,T,x,P){try{var A=h[x](P),L=A.value}catch($){return void v($)}A.done?g(L):Promise.resolve(L).then(D,T)}function pl(h){return function(){var g=this,v=arguments;return new Promise(function(D,T){var x=h.apply(g,v);function P(L){Xr(x,D,T,P,A,"next",L)}function A(L){Xr(x,D,T,P,A,"throw",L)}P(void 0)})}}e.d(t,"a",function(){return $s}),e.d(t,"b",function(){return GN}),e.d(t,"c",function(){return Rs}),e.d(t,"d",function(){return zN});var h,Os=!1,pr=!1,gl=!1,vn=!1,Eo=!1,vi="undefined"!=typeof window?window:{},vt=vi.document||{head:{}},Ve={$flags$:0,$resourcesUrl$:"",jmp:h=>h(),raf:h=>requestAnimationFrame(h),ael:(h,g,v,D)=>h.addEventListener(g,v,D),rel:(h,g,v,D)=>h.removeEventListener(g,v,D),ce:(h,g)=>new CustomEvent(h,g)},Zm=(()=>{var h=!1;try{vt.addEventListener("e",null,Object.defineProperty({},"passive",{get(){h=!0}}))}catch(g){}return h})(),Qm=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(h){}return!1})(),Ln=(h,g,v,D)=>{v&&v.map(([T,x,P])=>{var A=nd(h,T),L=zi(g,P),$=rd(T);Ve.ael(A,x,L,$),(g.$rmListeners$=g.$rmListeners$||[]).push(()=>Ve.rel(A,x,L,$))})},zi=(h,g)=>v=>{try{h.$hostElement$[g](v)}catch(D){Di(D)}},nd=(h,g)=>4&g?vt:8&g?vi:16&g?vt.body:h,rd=h=>Zm?{passive:0!=(1&h),capture:0!=(2&h)}:0!=(2&h),yl="http://www.w3.org/1999/xlink",_l=new WeakMap,vl=(h,g)=>"sc-"+(g&&32&h.$flags$?h.$tagName$+"-"+g:h.$tagName$),Ls={},wl=h=>"object"==(h=typeof h)||"function"===h,Rs=(h,g,...v)=>{var D=null,T=null,x=null,P=!1,A=!1,L=[],$=Ie=>{for(var Nt=0;Nt<Ie.length;Nt++)D=Ie[Nt],Array.isArray(D)?$(D):null!=D&&"boolean"!=typeof D&&((P="function"!=typeof h&&!wl(D))&&(D=String(D)),P&&A?L[L.length-1].$text$+=D:L.push(P?Ci(null,D):D),A=P)};if($(v),g&&(g.key&&(T=g.key),g.name&&(x=g.name),1)){var de=g.className||g.class;de&&(g.class="object"!=typeof de?de:Object.keys(de).filter(Ie=>de[Ie]).join(" "))}if("function"==typeof h)return h(null===g?{}:g,L,id);var he=Ci(h,null);return he.$attrs$=g,L.length>0&&(he.$children$=L),he.$key$=T,he.$name$=x,he},Ci=(h,g)=>({$flags$:0,$tag$:h,$text$:g,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),$s={},id={forEach:(h,g)=>h.map(od).forEach(g),map:(h,g)=>h.map(od).map(g).map(eg)},od=h=>({vattrs:h.$attrs$,vchildren:h.$children$,vkey:h.$key$,vname:h.$name$,vtag:h.$tag$,vtext:h.$text$}),eg=h=>{if("function"==typeof h.vtag){var g=Object.assign({},h.vattrs);return h.vkey&&(g.key=h.vkey),h.vname&&(g.name=h.vname),Rs(h.vtag,g,...h.vchildren||[])}var v=Ci(h.vtag,h.vtext);return v.$attrs$=h.vattrs,v.$children$=h.vchildren,v.$key$=h.vkey,v.$name$=h.vname,v},Cl=(h,g,v,D,T,x)=>{if(v!==D){var P=GC(h,g),A=g.toLowerCase();if("class"===g){var L=h.classList,$=sd(v),de=sd(D);L.remove(...$.filter(Ut=>Ut&&!de.includes(Ut))),L.add(...de.filter(Ut=>Ut&&!$.includes(Ut)))}else if("style"===g){for(var he in v)D&&null!=D[he]||(he.includes("-")?h.style.removeProperty(he):h.style[he]="");for(var Ie in D)v&&D[Ie]===v[Ie]||(Ie.includes("-")?h.style.setProperty(Ie,D[Ie]):h.style[Ie]=D[Ie])}else if("key"!==g)if("ref"===g)D&&D(h);else if(h.__lookupSetter__(g)||"o"!==g[0]||"n"!==g[1]){var Nt=wl(D);if((P||Nt&&null!==D)&&!T)try{if(h.tagName.includes("-"))h[g]=D;else{var on=null==D?"":D;"list"===g?P=!1:null!=v&&h[g]==on||(h[g]=on)}}catch(Ut){}var Ot=!1;A!==(A=A.replace(/^xlink\:?/,""))&&(g=A,Ot=!0),null==D||!1===D?!1===D&&""!==h.getAttribute(g)||(Ot?h.removeAttributeNS(yl,g):h.removeAttribute(g)):(!P||4&x||T)&&!Nt&&(D=!0===D?"":D,Ot?h.setAttributeNS(yl,g,D):h.setAttribute(g,D))}else g="-"===g[2]?g.slice(3):GC(vi,A)?A.slice(2):A[2]+g.slice(3),v&&Ve.rel(h,g,v,!1),D&&Ve.ael(h,g,D,!1)}},Bs=/\s/,sd=h=>h?h.split(Bs):[],bl=(h,g,v,D)=>{var T=11===g.$elm$.nodeType&&g.$elm$.host?g.$elm$.host:g.$elm$,x=h&&h.$attrs$||Ls,P=g.$attrs$||Ls;for(D in x)D in P||Cl(T,D,x[D],void 0,v,g.$flags$);for(D in P)Cl(T,D,x[D],P[D],v,g.$flags$)},js=(h,g,v,D)=>{var T,x,P,A=g.$children$[v],L=0;if(!Os&&(gl=!0,"slot"===A.$tag$&&(r&&D.classList.add(r+"-s"),A.$flags$|=A.$children$?2:1)),null!==A.$text$)T=A.$elm$=vt.createTextNode(A.$text$);else if(1&A.$flags$)T=A.$elm$=vt.createTextNode("");else{if(!vn&&(vn="svg"===A.$tag$),T=A.$elm$=vt.createElementNS(vn?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&A.$flags$?"slot-fb":A.$tag$),vn&&"foreignObject"===A.$tag$&&(vn=!1),bl(null,A,vn),null!=r&&T["s-si"]!==r&&T.classList.add(T["s-si"]=r),A.$children$)for(L=0;L<A.$children$.length;++L)(x=js(h,A,L,T))&&T.appendChild(x);"svg"===A.$tag$?vn=!1:"foreignObject"===T.tagName&&(vn=!0)}return T["s-hn"]=o,3&A.$flags$&&(T["s-sr"]=!0,T["s-cr"]=i,T["s-sn"]=A.$name$||"",(P=h&&h.$children$&&h.$children$[v])&&P.$tag$===A.$tag$&&h.$elm$&&bi(h.$elm$,!1)),T},bi=(h,g)=>{Ve.$flags$|=1;for(var v=h.childNodes,D=v.length-1;D>=0;D--){var T=v[D];T["s-hn"]!==o&&T["s-ol"]&&(C(T).insertBefore(T,m(T)),T["s-ol"].remove(),T["s-ol"]=void 0,gl=!0),g&&bi(T,g)}Ve.$flags$&=-2},So=(h,g,v,D,T,x)=>{var P,A=h["s-cr"]&&h["s-cr"].parentNode||h;for(A.shadowRoot&&A.tagName===o&&(A=A.shadowRoot);T<=x;++T)D[T]&&(P=js(null,v,T,h))&&(D[T].$elm$=P,A.insertBefore(P,m(g)))},ad=(h,g,v,D,T)=>{for(;g<=v;++g)(D=h[g])&&(T=D.$elm$,wt(D),pr=!0,T["s-ol"]?T["s-ol"].remove():bi(T,!0),T.remove())},_=(h,g)=>h.$tag$===g.$tag$&&("slot"===h.$tag$?h.$name$===g.$name$:h.$key$===g.$key$),m=h=>h&&h["s-ol"]||h,C=h=>(h["s-ol"]?h["s-ol"]:h).parentNode,M=(h,g)=>{var v,D=g.$elm$=h.$elm$,T=h.$children$,x=g.$children$,P=g.$tag$,A=g.$text$;null!==A?(v=D["s-cr"])?v.parentNode.textContent=A:h.$text$!==A&&(D.data=A):(vn="svg"===P||"foreignObject"!==P&&vn,"slot"===P||bl(h,g,vn),null!==T&&null!==x?((L,$,de,he)=>{for(var Ie,Nt,on=0,Ot=0,Ut=0,ti=0,Pn=$.length-1,Ct=$[0],Nr=$[Pn],Ei=he.length-1,Xn=he[0],ni=he[Ei];on<=Pn&&Ot<=Ei;)if(null==Ct)Ct=$[++on];else if(null==Nr)Nr=$[--Pn];else if(null==Xn)Xn=he[++Ot];else if(null==ni)ni=he[--Ei];else if(_(Ct,Xn))M(Ct,Xn),Ct=$[++on],Xn=he[++Ot];else if(_(Nr,ni))M(Nr,ni),Nr=$[--Pn],ni=he[--Ei];else if(_(Ct,ni))"slot"!==Ct.$tag$&&"slot"!==ni.$tag$||bi(Ct.$elm$.parentNode,!1),M(Ct,ni),L.insertBefore(Ct.$elm$,Nr.$elm$.nextSibling),Ct=$[++on],ni=he[--Ei];else if(_(Nr,Xn))"slot"!==Ct.$tag$&&"slot"!==ni.$tag$||bi(Nr.$elm$.parentNode,!1),M(Nr,Xn),L.insertBefore(Nr.$elm$,Ct.$elm$),Nr=$[--Pn],Xn=he[++Ot];else{for(Ut=-1,ti=on;ti<=Pn;++ti)if($[ti]&&null!==$[ti].$key$&&$[ti].$key$===Xn.$key$){Ut=ti;break}Ut>=0?((Nt=$[Ut]).$tag$!==Xn.$tag$?Ie=js($&&$[Ot],de,Ut,L):(M(Nt,Xn),$[Ut]=void 0,Ie=Nt.$elm$),Xn=he[++Ot]):(Ie=js($&&$[Ot],de,Ot,L),Xn=he[++Ot]),Ie&&C(Ct.$elm$).insertBefore(Ie,m(Ct.$elm$))}on>Pn?So(L,null==he[Ei+1]?null:he[Ei+1].$elm$,de,he,Ot,Ei):Ot>Ei&&ad($,on,Pn)})(D,T,g,x):null!==x?(null!==h.$text$&&(D.textContent=""),So(D,null,g,x,0,x.length-1)):null!==T&&ad(T,0,T.length-1),vn&&"svg"===P&&(vn=!1))},V=h=>{var g,v,D,T,x,P,A=h.childNodes;for(v=0,D=A.length;v<D;v++)if(1===(g=A[v]).nodeType){if(g["s-sr"])for(x=g["s-sn"],g.hidden=!1,T=0;T<D;T++)if(P=A[T].nodeType,A[T]["s-hn"]!==g["s-hn"]||""!==x){if(1===P&&x===A[T].getAttribute("slot")){g.hidden=!0;break}}else if(1===P||3===P&&""!==A[T].textContent.trim()){g.hidden=!0;break}V(g)}},H=[],ce=h=>{for(var g,v,D,T,x,P,A=0,L=h.childNodes,$=L.length;A<$;A++){if((g=L[A])["s-sr"]&&(v=g["s-cr"])&&v.parentNode)for(T=g["s-sn"],P=(D=v.parentNode.childNodes).length-1;P>=0;P--)(v=D[P])["s-cn"]||v["s-nr"]||v["s-hn"]===g["s-hn"]||(ze(v,T)?(x=H.find(de=>de.$nodeToRelocate$===v),pr=!0,v["s-sn"]=v["s-sn"]||T,x?x.$slotRefNode$=g:H.push({$slotRefNode$:g,$nodeToRelocate$:v}),v["s-sr"]&&H.map(de=>{ze(de.$nodeToRelocate$,v["s-sn"])&&(x=H.find(he=>he.$nodeToRelocate$===v))&&!de.$slotRefNode$&&(de.$slotRefNode$=x.$slotRefNode$)})):H.some(de=>de.$nodeToRelocate$===v)||H.push({$nodeToRelocate$:v}));1===g.nodeType&&ce(g)}},ze=(h,g)=>1===h.nodeType?null===h.getAttribute("slot")&&""===g||h.getAttribute("slot")===g:h["s-sn"]===g||""===g,wt=h=>{h.$attrs$&&h.$attrs$.ref&&h.$attrs$.ref(null),h.$children$&&h.$children$.map(wt)},Rn=(h,g)=>{var v=h.$hostElement$,D=h.$cmpMeta$,T=h.$vnode$||Ci(null,null),x=(h=>h&&h.$tag$===$s)(g)?g:Rs(null,null,g);if(o=v.tagName,D.$attrsToReflect$&&(x.$attrs$=x.$attrs$||{},D.$attrsToReflect$.map(([Nt,on])=>x.$attrs$[on]=v[Nt])),x.$tag$=null,x.$flags$|=4,h.$vnode$=x,x.$elm$=T.$elm$=v.shadowRoot||v,r=v["s-sc"],i=v["s-cr"],Os=0!=(1&D.$flags$),pr=!1,M(T,x),Ve.$flags$|=1,gl){var P,A,L,$,de,he;ce(x.$elm$);for(var Ie=0;Ie<H.length;Ie++)(A=(P=H[Ie]).$nodeToRelocate$)["s-ol"]||((L=vt.createTextNode(""))["s-nr"]=A,A.parentNode.insertBefore(A["s-ol"]=L,A));for(Ie=0;Ie<H.length;Ie++)if(A=(P=H[Ie]).$nodeToRelocate$,P.$slotRefNode$){for($=P.$slotRefNode$.parentNode,de=P.$slotRefNode$.nextSibling,L=A["s-ol"];L=L.previousSibling;)if((he=L["s-nr"])&&he["s-sn"]===A["s-sn"]&&$===he.parentNode&&(!(he=he.nextSibling)||!he["s-nr"])){de=he;break}(!de&&$!==A.parentNode||A.nextSibling!==de)&&A!==de&&(!A["s-hn"]&&A["s-ol"]&&(A["s-hn"]=A["s-ol"].parentNode.nodeName),$.insertBefore(A,de))}else 1===A.nodeType&&(A.hidden=!0)}pr&&V(x.$elm$),Ve.$flags$&=-2,H.length=0},Wi=(h,g)=>{h.$flags$|=16;return QN(()=>ld(h,g))},ld=(h,g)=>{var v,D=h.$hostElement$,x=D;return g?(qi(D,"componentWillLoad"),v=Jn(x,"componentWillLoad")):(qi(D,"componentWillUpdate"),v=Jn(x,"componentWillUpdate")),qi(D,"componentWillRender"),v=dd(v,()=>Jn(x,"componentWillRender")),dd(v,()=>cd(h,x,g))},cd=(h=pl(function*(g,v,D){var T=g.$hostElement$;D&&(h=>{var g=h.$cmpMeta$,v=h.$hostElement$,D=g.$flags$,x=((h,g,v,D)=>{var T=vl(g,v),x=md.get(T);if(h=11===h.nodeType?h:vt,x)if("string"==typeof x){var P,A=_l.get(h=h.head||h);A||_l.set(h,A=new Set),A.has(T)||((P=vt.createElement("style")).innerHTML=x,h.insertBefore(P,h.querySelector("link")),A&&A.add(T))}else!h.adoptedStyleSheets.includes(x)&&(h.adoptedStyleSheets=[...h.adoptedStyleSheets,x]);return T})(v.shadowRoot?v.shadowRoot:v.getRootNode(),g,h.$modeName$);10&D&&(v["s-sc"]=x,v.classList.add(x+"-h"),2&D&&v.classList.add(x+"-s"))})(g);Us(g,v,T),zs(g)}),function(g,v,D){return h.apply(this,arguments)}),Us=(h,g,v)=>{try{g=g.render&&g.render(),h.$flags$&=-17,h.$flags$|=2,Rn(h,g)}catch(A){Di(A,h.$hostElement$)}return null},zs=h=>{var v=h.$hostElement$,T=v;Jn(T,"componentDidRender"),qi(v,"componentDidRender"),64&h.$flags$?(Jn(T,"componentDidUpdate"),qi(v,"componentDidUpdate")):(h.$flags$|=64,Jn(T,"componentDidLoad"),qi(v,"componentDidLoad"))},Jn=(h,g,v)=>{if(h&&h[g])try{return h[g](v)}catch(D){Di(D)}},dd=(h,g)=>h&&h.then?h.then(g):g(),qi=(h,g)=>{},jC=(h,g,v)=>{if(g.$members$){h.watchers&&(g.$watchers$=h.watchers);var D=Object.entries(g.$members$),T=h.prototype;D.map(([P,[A]])=>{(31&A||32&A)&&Object.defineProperty(T,P,{get(){return L=P,Gs(this).$instanceValues$.get(L);var L},set(L){((h,g,v,D)=>{var T,x,P=Gs(h),A=h,L=P.$instanceValues$.get(g),$=P.$flags$,de=A;if(x=D.$members$[g][0],(v=null==(T=v)||wl(T)?T:4&x?"false"!==T&&(""===T||!!T):2&x?parseFloat(T):1&x?String(T):T)!==L&&(P.$instanceValues$.set(g,v),1)){if(D.$watchers$&&128&$){var he=D.$watchers$[g];he&&he.map(Ie=>{try{de[Ie](v,L,g)}catch(Nt){Di(Nt,A)}})}if(2==(18&$)){if(de.componentShouldUpdate&&!1===de.componentShouldUpdate(v,L,g))return;Wi(P,!1)}}})(this,P,L,g)},configurable:!0,enumerable:!0})});var x=new Map;T.attributeChangedCallback=function(P,A,L){Ve.jmp(()=>{var $=x.get(P);this[$]=(null!==L||"boolean"!=typeof this[$])&&L})},h.observedAttributes=D.filter(([P,A])=>15&A[0]).map(([P,A])=>{var L=A[1]||P;return x.set(L,P),512&A[0]&&g.$attrsToReflect$.push([P,L]),L})}return h},HC=function(){var h=pl(function*(g,v,D,T,x){if(0==(32&v.$flags$)&&(x=g.constructor,v.$flags$|=160,x.style)){var L=x.style;"string"!=typeof L&&(L=L[v.$modeName$=(h=>KN.map(g=>g(h)).find(g=>!!g))(g)]);var $=vl(D,v.$modeName$);if(!md.has($)){((h,g,v)=>{var D=md.get(h);Qm&&v?(D=D||new CSSStyleSheet).replace(g):D=g,md.set(h,D)})($,L,!!(1&D.$flags$))}}Wi(v,!0)});return function(g,v,D,T,x){return h.apply(this,arguments)}}(),zN=(h,g)=>{var v={$flags$:g[0],$tagName$:g[1]};v.$members$=g[2],v.$listeners$=g[3],v.$watchers$=h.$watchers$,v.$attrsToReflect$=[];var D=h.prototype.connectedCallback,T=h.prototype.disconnectedCallback;return Object.assign(h.prototype,{__registerHost(){WN(this,v)},connectedCallback(){(h=>{if(0==(1&Ve.$flags$)){var g=Gs(h),v=g.$cmpMeta$;1&g.$flags$?Ln(h,g,v.$listeners$):(g.$flags$|=1,12&v.$flags$&&(h=>{var g=h["s-cr"]=vt.createComment("");g["s-cn"]=!0,h.insertBefore(g,h.firstChild)})(h),HC(h,g,v))}})(this),D&&D.call(this)},disconnectedCallback(){(h=>{if(0==(1&Ve.$flags$)){var g=Gs(this);g.$rmListeners$&&(g.$rmListeners$.map(D=>D()),g.$rmListeners$=void 0)}})(),T&&T.call(this)}}),h.is=v.$tagName$,jC(h,v)},GN=h=>{h.attachShadow({mode:"open"})},zC=new WeakMap,Gs=h=>zC.get(h),WN=(h,g)=>{var v={$flags$:0,$hostElement$:h,$cmpMeta$:g,$instanceValues$:new Map};return Ln(h,v,g.$listeners$),zC.set(h,v)},GC=(h,g)=>g in h,Di=(h,g)=>(0,console.error)(h,g),md=new Map,KN=[],tg=[],Io=[],KC=h=>{for(var g=0;g<h.length;g++)try{h[g](performance.now())}catch(v){Di(v)}h.length=0},gd=()=>{KC(tg),KC(Io),(Eo=tg.length>0)&&Ve.raf(gd)},QN=((h,g)=>v=>{h.push(v),Eo||(Eo=!0,4&Ve.$flags$?(h=>{Promise.resolve(void 0).then(h)})(gd):Ve.raf(gd))})(Io)},195:function(n,t,e){e.r(t),e.d(t,"scopeCss",function(){return Qe});var r=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",i=new RegExp("(-shadowcsshost"+r,"gim"),o=new RegExp("(-shadowcsscontext"+r,"gim"),s=new RegExp("(-shadowcssslotted"+r,"gim"),a=/-shadowcsshost-no-combinator([^\s]*)/,l=[/::shadow/g,/::content/g],c=/-shadowcsshost/gim,u=/:host/gim,d=/::slotted/gim,f=/:host-context/gim,p=/\/\*\s*[\s\S]*?\*\//g,y=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,w=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,b=/([{}])/g,S=(te,oe)=>{var X=E(te),De=0;return X.escapedString.replace(w,(...we)=>{var N=we[2],B="",W=we[4],re="";W&&W.startsWith("{%BLOCK%")&&(B=X.blocks[De++],W=W.substring(8),re="{");var ee=oe({selector:N,content:B});return"".concat(we[1]).concat(ee.selector).concat(we[3]).concat(re).concat(ee.content).concat(W)})},E=te=>{for(var oe=te.split(b),X=[],De=[],we=0,N=[],B=0;B<oe.length;B++){var W=oe[B];"}"===W&&we--,we>0?N.push(W):(N.length>0&&(De.push(N.join("")),X.push("%BLOCK%"),N=[]),X.push(W)),"{"===W&&we++}return N.length>0&&(De.push(N.join("")),X.push("%BLOCK%")),{escapedString:X.join(""),blocks:De}},F=(te,oe,X)=>te.replace(oe,(...De)=>{if(De[2]){for(var we=De[2].split(","),N=[],B=0;B<we.length;B++){var W=we[B].trim();if(!W)break;N.push(X("-shadowcsshost-no-combinator",W,De[3]))}return N.join(",")}return"-shadowcsshost-no-combinator"+De[3]}),z=(te,oe,X)=>te+oe.replace("-shadowcsshost","")+X,ie=(te,oe,X)=>oe.indexOf("-shadowcsshost")>-1?z(te,oe,X):te+oe+X+", "+oe+" "+te+X,Re=(te,oe,X,De,we)=>S(te,N=>{var ee,me,Ye,B=N.selector,W=N.content;return"@"!==N.selector[0]?(ee=oe,me=X,Ye=De,B=N.selector.split(",").map(Ue=>Ye&&Ue.indexOf("."+Ye)>-1?Ue.trim():((te,oe)=>{return!(X=oe,X=X.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+X+")([>\\s~+[.,{:][\\s\\S]*)?$","m")).test(te);var X})(Ue,ee)?((te,oe,X)=>{for(var De,we="."+(oe=oe.replace(/\[is=([^\]]*)\]/g,(Oe,...Me)=>Me[0])),N=Oe=>{var Me=Oe.trim();if(!Me)return"";if(Oe.indexOf("-shadowcsshost-no-combinator")>-1)Me=((In,kt,Xt)=>{if(c.lastIndex=0,c.test(In)){var Ui=".".concat(Xt);return In.replace(a,(Jr,gi)=>gi.replace(/([^:]*)(:*)(.*)/,(yt,ul,rn,yi)=>ul+Ui+rn+yi)).replace(c,Ui+" ")}return kt+" "+In})(Oe,oe,X);else{var dt=Oe.replace(c,"");if(dt.length>0){var Ht=dt.match(/([^:]*)(:*)(.*)/);Ht&&(Me=Ht[1]+we+Ht[2]+Ht[3])}}return Me},B=(Oe=>{var Me=[],dt=0;return{content:(Oe=Oe.replace(/(\[[^\]]*\])/g,(Ht,In)=>{var kt="__ph-".concat(dt,"__");return Me.push(In),dt++,kt})).replace(/(:nth-[-\w]+)(\([^)]+\))/g,(Ht,In,kt)=>{var Xt="__ph-".concat(dt,"__");return Me.push(kt),dt++,In+Xt}),placeholders:Me}})(te),W="",re=0,ee=/( |>|\+|~(?!=))\s*/g,me=!((te=B.content).indexOf("-shadowcsshost-no-combinator")>-1);null!==(De=ee.exec(te));){var Ye=De[1],Ue=te.slice(re,De.index).trim(),Ee=(me=me||Ue.indexOf("-shadowcsshost-no-combinator")>-1)?N(Ue):Ue;W+="".concat(Ee," ").concat(Ye," "),re=ee.lastIndex}var xt,gt=te.substring(re);return W+=(me=me||gt.indexOf("-shadowcsshost-no-combinator")>-1)?N(gt):gt,xt=B.placeholders,W.replace(/__ph-(\d+)__/g,(Oe,Me)=>xt[+Me])})(Ue,ee,me).trim():Ue.trim()).join(", ")):(N.selector.startsWith("@media")||N.selector.startsWith("@supports")||N.selector.startsWith("@page")||N.selector.startsWith("@document"))&&(W=Re(N.content,oe,X,De)),{selector:B.replace(/\s{2,}/g," ").trim(),content:W}}),Qe=(te,oe,X)=>{var De=oe+"-h",we=oe+"-s",N=te.match(y)||[];te=te.replace(p,"");var B=[];if(X){var W=ee=>{var me="/*!@___".concat(B.length,"___*/"),Ye="/*!@".concat(ee.selector,"*/");return B.push({placeholder:me,comment:Ye}),ee.selector=me+ee.selector,ee};te=S(te,ee=>"@"!==ee.selector[0]?W(ee):((ee.selector.startsWith("@media")||ee.selector.startsWith("@supports")||ee.selector.startsWith("@page")||ee.selector.startsWith("@document"))&&(ee.content=S(ee.content,W)),ee))}var re=((te,oe,X,De,we)=>{var B,N=((B,W)=>{var re="."+W+" > ",ee=[];return B=B.replace(s,(...me)=>{if(me[2]){for(var Ye=me[2].trim(),Ee=re+Ye+me[3],xt="",gt=me[4]-1;gt>=0;gt--){var Oe=me[5][gt];if("}"===Oe||","===Oe)break;xt=Oe+xt}var Me=xt+Ee,dt="".concat(xt.trimRight()).concat(Ee.trim());if(Me.trim()!==dt.trim()){var Ht="".concat(dt,", ").concat(Me);ee.push({orgSelector:Me,updatedSelector:Ht})}return Ee}return"-shadowcsshost-no-combinator"+me[3]}),{selectors:ee,cssText:B}})(te=(B=>F(B,o,ie))((B=te=te.replace(f,"-shadowcsscontext").replace(u,"-shadowcsshost").replace(d,"-shadowcssslotted"),te=F(B,i,z))),De);return te=(B=>l.reduce((W,re)=>W.replace(re," "),B))(te=N.cssText),oe&&(te=Re(te,oe,X,De)),{cssText:(te=(te=te.replace(/-shadowcsshost-no-combinator/g,".".concat(X))).replace(/>\s*\*\s+([^{, ]+)/gm," $1 ")).trim(),slottedSelectors:N.selectors}})(te,oe,De,we);return te=[re.cssText,...N].join("\n"),X&&B.forEach(({placeholder:ee,comment:me})=>{te=te.replace(ee,me)}),re.slottedSelectors.forEach(ee=>{te=te.replace(ee.orgSelector,ee.updatedSelector)}),te}},44:function(n,t){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(r){"object"==typeof window&&(e=window)}n.exports=e}});let Ex=(()=>{class n{constructor(e,r){this.renderer=e,this.elRef=r,this.buttonClick=new $e,this.buttonStyle="white-outline",this.locale="en-US",this.type="continue"}ngAfterViewInit(){this.createButton()}ngOnDestroy(){this.buttonClickListener&&(this.buttonClickListener(),this.buttonClickListener=null)}createButton(){const e=this.renderer.createElement("apple-pay-button");this.renderer.setAttribute(e,"type",this.type),this.renderer.setAttribute(e,"buttonstyle",this.buttonStyle),this.renderer.setAttribute(e,"locale",this.locale),this.buttonClickListener=this.renderer.listen(e,"click",r=>this.buttonClick.emit(r)),this.renderer.appendChild(this.elRef.nativeElement,e),this.renderer.setStyle(e,"display","inline-block")}}return n.\u0275fac=function(e){return new(e||n)(I(qr),I(kn))},n.\u0275dir=fe({type:n,selectors:[["","motoApplePayButton",""]],inputs:{buttonStyle:"buttonStyle",locale:"locale",type:"type"},outputs:{buttonClick:"buttonClick"}}),n})(),Mx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({}),n})();const Ne=!1;function Sw(n){return new Y(3e3,Ne)}function oI(){return"undefined"!=typeof window&&void 0!==window.document}function dm(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function $i(n){switch(n.length){case 0:return new Ka;case 1:return n[0];default:return new p8(n)}}function Tw(n,t,e,r,i={},o={}){const s=[],a=[];let l=-1,c=null;if(r.forEach(u=>{const d=u.offset,f=d==l,p=f&&c||{};Object.keys(u).forEach(y=>{let w=y,b=u[y];if("offset"!==y)switch(w=t.normalizePropertyName(w,s),b){case"!":b=i[y];break;case fi:b=o[y];break;default:b=t.normalizeStyleValue(y,w,b,s)}p[w]=b}),f||a.push(p),c=p,l=d}),s.length)throw function Kx(n){return new Y(3502,Ne)}();return a}function hm(n,t,e,r){switch(t){case"start":n.onStart(()=>r(e&&fm(e,"start",n)));break;case"done":n.onDone(()=>r(e&&fm(e,"done",n)));break;case"destroy":n.onDestroy(()=>r(e&&fm(e,"destroy",n)))}}function fm(n,t,e){const r=e.totalTime,o=pm(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,null==r?n.totalTime:r,!!e.disabled),s=n._data;return null!=s&&(o._data=s),o}function pm(n,t,e,r,i="",o=0,s){return{element:n,triggerName:t,fromState:e,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function Qn(n,t,e){let r;return n instanceof Map?(r=n.get(t),r||n.set(t,r=e)):(r=n[t],r||(r=n[t]=e)),r}function Aw(n){const t=n.indexOf(":");return[n.substring(1,t),n.substr(t+1)]}let mm=(n,t)=>!1,xw=(n,t,e)=>[],Iw=null;function gm(n){const t=n.parentNode||n.host;return t===Iw?null:t}(dm()||"undefined"!=typeof Element)&&(oI()?(Iw=(()=>document.documentElement)(),mm=(n,t)=>{for(;t;){if(t===n)return!0;t=gm(t)}return!1}):mm=(n,t)=>n.contains(t),xw=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const r=n.querySelector(t);return r?[r]:[]});let yo=null,Pw=!1;function kw(n){yo||(yo=function aI(){return"undefined"!=typeof document?document.body:null}()||{},Pw=!!yo.style&&"WebkitAppearance"in yo.style);let t=!0;return yo.style&&!function sI(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in yo.style,!t&&Pw&&(t="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in yo.style)),t}const Nw=mm,Ow=xw;let Fw=(()=>{class n{validateStyleProperty(e){return kw(e)}matchesElement(e,r){return!1}containsElement(e,r){return Nw(e,r)}getParentElement(e){return gm(e)}query(e,r,i){return Ow(e,r,i)}computeStyle(e,r,i){return i||""}animate(e,r,i,o,s,a=[],l){return new Ka(i,o)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})(),ym=(()=>{class n{}return n.NOOP=new Fw,n})();const _m="ng-enter",Du="ng-leave",Eu="ng-trigger",Mu=".ng-trigger",Rw="ng-animating",vm=".ng-animating";function _o(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:wm(parseFloat(t[1]),t[2])}function wm(n,t){return"s"===t?1e3*n:n}function Su(n,t,e){return n.hasOwnProperty("duration")?n:function uI(n,t,e){let i,o=0,s="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(Sw()),{duration:0,delay:0,easing:""};i=wm(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=wm(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else i=n;if(!e){let a=!1,l=t.length;i<0&&(t.push(function Sx(){return new Y(3100,Ne)}()),a=!0),o<0&&(t.push(function Tx(){return new Y(3101,Ne)}()),a=!0),a&&t.splice(l,0,Sw())}return{duration:i,delay:o,easing:s}}(n,t,e)}function Ts(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function Vi(n,t,e={}){if(t)for(let r in n)e[r]=n[r];else Ts(n,e);return e}function Vw(n,t,e){return e?t+":"+e+";":""}function Bw(n){let t="";for(let e=0;e<n.style.length;e++){const r=n.style.item(e);t+=Vw(0,r,n.style.getPropertyValue(r))}for(const e in n.style)n.style.hasOwnProperty(e)&&!e.startsWith("_")&&(t+=Vw(0,fI(e),n.style[e]));n.setAttribute("style",t)}function Yr(n,t,e){n.style&&(Object.keys(t).forEach(r=>{const i=bm(r);e&&!e.hasOwnProperty(r)&&(e[r]=n.style[i]),n.style[i]=t[r]}),dm()&&Bw(n))}function vo(n,t){n.style&&(Object.keys(t).forEach(e=>{const r=bm(e);n.style[r]=""}),dm()&&Bw(n))}function nl(n){return Array.isArray(n)?1==n.length?n[0]:h8(n):n}const Cm=new RegExp("{{\\s*(.+?)\\s*}}","g");function jw(n){let t=[];if("string"==typeof n){let e;for(;e=Cm.exec(n);)t.push(e[1]);Cm.lastIndex=0}return t}function Tu(n,t,e){const r=n.toString(),i=r.replace(Cm,(o,s)=>{let a=t[s];return t.hasOwnProperty(s)||(e.push(function xx(n){return new Y(3003,Ne)}()),a=""),a.toString()});return i==r?n:i}function Au(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const hI=/-+([a-z0-9])/g;function bm(n){return n.replace(hI,(...t)=>t[1].toUpperCase())}function fI(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Yn(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw function Ix(n){return new Y(3004,Ne)}()}}function Hw(n,t){return window.getComputedStyle(n)[t]}function vI(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(r=>function wI(n,t,e){if(":"==n[0]){const l=function CI(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,r)=>parseFloat(r)>parseFloat(e);case":decrement":return(e,r)=>parseFloat(r)<parseFloat(e);default:return t.push(function zx(n){return new Y(3016,Ne)}()),"* => *"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const r=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return e.push(function Ux(n){return new Y(3015,Ne)}()),t;const i=r[1],o=r[2],s=r[3];t.push(Uw(i,s));"<"==o[0]&&!("*"==i&&"*"==s)&&t.push(Uw(s,i))}(r,e,t)):e.push(n),e}const ku=new Set(["true","1"]),Nu=new Set(["false","0"]);function Uw(n,t){const e=ku.has(n)||Nu.has(n),r=ku.has(t)||Nu.has(t);return(i,o)=>{let s="*"==n||n==i,a="*"==t||t==o;return!s&&e&&"boolean"==typeof i&&(s=i?ku.has(n):Nu.has(n)),!a&&r&&"boolean"==typeof o&&(a=o?ku.has(t):Nu.has(t)),s&&a}}const bI=new RegExp("s*:selfs*,?","g");function Dm(n,t,e,r){return new DI(n).build(t,e,r)}class DI{constructor(t){this._driver=t}build(t,e,r){const i=new SI(e);this._resetContextStyleTimingState(i);const o=Yn(this,nl(t),i);return i.unsupportedCSSPropertiesFound.size&&i.unsupportedCSSPropertiesFound.keys(),o}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let r=e.queryCount=0,i=e.depCount=0;const o=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push(function kx(){return new Y(3006,Ne)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);r+=l.queryCount,i+=l.depCount,s.push(l)}else e.errors.push(function Nx(){return new Y(3007,Ne)}())}),{type:7,name:t.name,states:o,transitions:s,queryCount:r,depCount:i,options:null}}visitState(t,e){const r=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(r.containsDynamicStyles){const o=new Set,s=i||{};r.styles.forEach(a=>{if(Ou(a)){const l=a;Object.keys(l).forEach(c=>{jw(l[c]).forEach(u=>{s.hasOwnProperty(u)||o.add(u)})})}}),o.size&&(Au(o.values()),e.errors.push(function Ox(n,t){return new Y(3008,Ne)}()))}return{type:0,name:t.name,style:r,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const r=Yn(this,nl(t.animation),e);return{type:1,matchers:vI(t.expr,e.errors),animation:r,queryCount:e.queryCount,depCount:e.depCount,options:wo(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(r=>Yn(this,r,e)),options:wo(t.options)}}visitGroup(t,e){const r=e.currentTime;let i=0;const o=t.steps.map(s=>{e.currentTime=r;const a=Yn(this,s,e);return i=Math.max(i,e.currentTime),a});return e.currentTime=i,{type:3,steps:o,options:wo(t.options)}}visitAnimate(t,e){const r=function AI(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Em(Su(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=Em(0,0,"");return o.dynamic=!0,o.strValue=e,o}const i=Su(e,t);return Em(i.duration,i.delay,i.easing)}(t.timings,e.errors);e.currentAnimateTimings=r;let i,o=t.styles?t.styles:At({});if(5==o.type)i=this.visitKeyframes(o,e);else{let s=t.styles,a=!1;if(!s){a=!0;const c={};r.easing&&(c.easing=r.easing),s=At(c)}e.currentTime+=r.duration+r.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,i=l}return e.currentAnimateTimings=null,{type:4,timings:r,style:i,options:null}}visitStyle(t,e){const r=this._makeStyleAst(t,e);return this._validateStyleAst(r,e),r}_makeStyleAst(t,e){const r=[];Array.isArray(t.styles)?t.styles.forEach(s=>{"string"==typeof s?s==fi?r.push(s):e.errors.push(function Fx(n){return new Y(3002,Ne)}()):r.push(s)}):r.push(t.styles);let i=!1,o=null;return r.forEach(s=>{if(Ou(s)){const a=s,l=a.easing;if(l&&(o=l,delete a.easing),!i)for(let c in a)if(a[c].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:r,easing:o,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const r=e.currentAnimateTimings;let i=e.currentTime,o=e.currentTime;r&&o>0&&(o-=r.duration+r.delay),t.styles.forEach(s=>{"string"!=typeof s&&Object.keys(s).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete s[a],void e.unsupportedCSSPropertiesFound.add(a);const l=e.collectedStyles[e.currentQuerySelector],c=l[a];let u=!0;c&&(o!=i&&o>=c.startTime&&i<=c.endTime&&(e.errors.push(function Lx(n,t,e,r,i){return new Y(3010,Ne)}()),u=!1),o=c.startTime),u&&(l[a]={startTime:o,endTime:i}),e.options&&function dI(n,t,e){const r=t.params||{},i=jw(n);i.length&&i.forEach(o=>{r.hasOwnProperty(o)||e.push(function Ax(n){return new Y(3001,Ne)}())})}(s[a],e.options,e.errors)})})}visitKeyframes(t,e){const r={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function Rx(){return new Y(3011,Ne)}()),r;let o=0;const s=[];let a=!1,l=!1,c=0;const u=t.steps.map(S=>{const E=this._makeStyleAst(S,e);let F=null!=E.offset?E.offset:function TI(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(Ou(e)&&e.hasOwnProperty("offset")){const r=e;t=parseFloat(r.offset),delete r.offset}});else if(Ou(n)&&n.hasOwnProperty("offset")){const e=n;t=parseFloat(e.offset),delete e.offset}return t}(E.styles),z=0;return null!=F&&(o++,z=E.offset=F),l=l||z<0||z>1,a=a||z<c,c=z,s.push(z),E});l&&e.errors.push(function $x(){return new Y(3012,Ne)}()),a&&e.errors.push(function Vx(){return new Y(3200,Ne)}());const d=t.steps.length;let f=0;o>0&&o<d?e.errors.push(function Bx(){return new Y(3202,Ne)}()):0==o&&(f=1/(d-1));const p=d-1,y=e.currentTime,w=e.currentAnimateTimings,b=w.duration;return u.forEach((S,E)=>{const F=f>0?E==p?1:f*E:s[E],z=F*b;e.currentTime=y+w.delay+z,w.duration=z,this._validateStyleAst(S,e),S.offset=F,r.styles.push(S)}),r}visitReference(t,e){return{type:8,animation:Yn(this,nl(t.animation),e),options:wo(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:wo(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:wo(t.options)}}visitQuery(t,e){const r=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[o,s]=function EI(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(bI,"")),n=n.replace(/@\*/g,Mu).replace(/@\w+/g,e=>Mu+"-"+e.substr(1)).replace(/:animating/g,vm),[n,t]}(t.selector);e.currentQuerySelector=r.length?r+" "+o:o,Qn(e.collectedStyles,e.currentQuerySelector,{});const a=Yn(this,nl(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=r,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:wo(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function jx(){return new Y(3013,Ne)}());const r="full"===t.timings?{duration:0,delay:0,easing:"full"}:Su(t.timings,e.errors,!0);return{type:12,animation:Yn(this,nl(t.animation),e),timings:r,options:null}}}class SI{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Ou(n){return!Array.isArray(n)&&"object"==typeof n}function wo(n){return n?(n=Ts(n)).params&&(n.params=function MI(n){return n?Ts(n):null}(n.params)):n={},n}function Em(n,t,e){return{duration:n,delay:t,easing:e}}function Mm(n,t,e,r,i,o,s=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}class Fu{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let r=this._map.get(t);r||this._map.set(t,r=[]),r.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const PI=new RegExp(":enter","g"),NI=new RegExp(":leave","g");function Sm(n,t,e,r,i,o={},s={},a,l,c=[]){return(new OI).buildKeyframes(n,t,e,r,i,o,s,a,l,c)}class OI{buildKeyframes(t,e,r,i,o,s,a,l,c,u=[]){c=c||new Fu;const d=new Tm(t,e,c,i,o,u,[]);d.options=l,d.currentTimeline.setStyles([s],null,d.errors,l),Yn(this,r,d);const f=d.timelines.filter(p=>p.containsAnimation());if(Object.keys(a).length){let p;for(let y=f.length-1;y>=0;y--){const w=f[y];if(w.element===e){p=w;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,l)}return f.length?f.map(p=>p.buildKeyframes()):[Mm(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const r=e.subInstructions.get(e.element);if(r){const i=e.createSubContext(t.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(r,i,i.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){const r=e.createSubContext(t.options);r.transformIntoNewTimeline(),this.visitReference(t.animation,r),e.transformIntoNewTimeline(r.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,r){let o=e.currentTimeline.currentTime;const s=null!=r.duration?_o(r.duration):null,a=null!=r.delay?_o(r.delay):null;return 0!==s&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(t,e){e.updateOptions(t.options,!0),Yn(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const r=e.subContextCount;let i=e;const o=t.options;if(o&&(o.params||o.delay)&&(i=e.createSubContext(o),i.transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Lu);const s=_o(o.delay);i.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>Yn(this,s,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const r=[];let i=e.currentTimeline.currentTime;const o=t.options&&t.options.delay?_o(t.options.delay):0;t.steps.forEach(s=>{const a=e.createSubContext(t.options);o&&a.delayNextStep(o),Yn(this,s,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const r=t.strValue;return Su(e.params?Tu(r,e.params,e.errors):r,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const r=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;r.delay&&(e.incrementTime(r.delay),i.snapshotCurrentStyles());const o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(r.duration),this.visitStyle(o,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const r=e.currentTimeline,i=e.currentAnimateTimings;!i&&r.getCurrentStyleProperties().length&&r.forwardFrame();const o=i&&i.easing||t.easing;t.isEmptyStep?r.applyEmptyStep(o):r.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const r=e.currentAnimateTimings,i=e.currentTimeline.duration,o=r.duration,a=e.createSubContext().currentTimeline;a.easing=r.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(i+o),e.previousNode=t}visitQuery(t,e){const r=e.currentTimeline.currentTime,i=t.options||{},o=i.delay?_o(i.delay):0;o&&(6===e.previousNode.type||0==r&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Lu);let s=r;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(t.options,c);o&&d.delayNextStep(o),c===e.element&&(l=d.currentTimeline),Yn(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const r=e.parentContext,i=e.currentTimeline,o=t.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=r.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;Yn(this,t.animation,e),e.previousNode=t,r.currentStaggerTime=i.currentTime-d+(i.startTime-r.currentTimeline.startTime)}}const Lu={};class Tm{constructor(t,e,r,i,o,s,a,l){this._driver=t,this.element=e,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Lu,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Ru(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const r=t;let i=this.options;null!=r.duration&&(i.duration=_o(r.duration)),null!=r.delay&&(i.delay=_o(r.delay));const o=r.params;if(o){let s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=Tu(o[a],s,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const r=t.params={};Object.keys(e).forEach(i=>{r[i]=e[i]})}}return t}createSubContext(t=null,e,r){const i=e||this.element,o=new Tm(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(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=Lu,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,r){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=r?r:0)+t.delay,easing:""},o=new FI(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(o),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,r,i,o,s){let a=[];if(i&&a.push(this.element),t.length>0){t=(t=t.replace(PI,"."+this._enterClassName)).replace(NI,"."+this._leaveClassName);let c=this._driver.query(this.element,t,1!=r);0!==r&&(c=r<0?c.slice(c.length+r,c.length):c.slice(0,r)),a.push(...c)}return!o&&0==a.length&&s.push(function Hx(n){return new Y(3014,Ne)}()),a}}class Ru{constructor(t,e,r,i){this._driver=t,this.element=e,this.startTime=r,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new Ru(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||fi,this._currentKeyframe[e]=fi}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,r,i){e&&(this._previousKeyframe.easing=e);const o=i&&i.params||{},s=function LI(n,t){const e={};let r;return n.forEach(i=>{"*"===i?(r=r||Object.keys(t),r.forEach(o=>{e[o]=fi})):Vi(i,!1,e)}),e}(t,this._globalTimelineStyles);Object.keys(s).forEach(a=>{const l=Tu(s[a],o,r);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:fi),this._updateStyle(a,l)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(r=>{this._currentKeyframe[r]=t[r]}),Object.keys(this._localTimelineStyles).forEach(r=>{this._currentKeyframe.hasOwnProperty(r)||(this._currentKeyframe[r]=this._localTimelineStyles[r])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const r=this._styleSummary[e],i=t._styleSummary[e];(!r||i.time>r.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,r=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((a,l)=>{const c=Vi(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?t.add(u):d==fi&&e.add(u)}),r||(c.offset=l/this.duration),i.push(c)});const o=t.size?Au(t.values()):[],s=e.size?Au(e.values()):[];if(r){const a=i[0],l=Ts(a);a.offset=0,l.offset=1,i=[a,l]}return Mm(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)}}class FI extends Ru{constructor(t,e,r,i,o,s,a=!1){super(t,e,s.delay),this.keyframes=r,this.preStyleProps=i,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:r,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=r+e,a=e/s,l=Vi(t[0],!1);l.offset=0,o.push(l);const c=Vi(t[0],!1);c.offset=Ww(a),o.push(c);const u=t.length-1;for(let d=1;d<=u;d++){let f=Vi(t[d],!1);f.offset=Ww((e+f.offset*r)/s),o.push(f)}r=s,e=0,i="",t=o}return Mm(this.element,t,this.preStyleProps,this.postStyleProps,r,e,i,!0)}}function Ww(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class Am{}class RI extends Am{normalizePropertyName(t,e){return bm(t)}normalizeStyleValue(t,e,r,i){let o="";const s=r.toString().trim();if($I[e]&&0!==r&&"0"!==r)if("number"==typeof r)o="px";else{const a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push(function Px(n,t){return new Y(3005,Ne)}())}return s+o}}const $I=(()=>function VI(n){const t={};return n.forEach(e=>t[e]=!0),t}("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".split(",")))();function qw(n,t,e,r,i,o,s,a,l,c,u,d,f){return{type:0,element:n,triggerName:t,isRemovalTransition:i,fromState:e,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:f}}const xm={};class Kw{constructor(t,e,r){this._triggerName=t,this.ast=e,this._stateStyles=r}match(t,e,r,i){return function BI(n,t,e,r,i){return n.some(o=>o(t,e,r,i))}(this.ast.matchers,t,e,r,i)}buildStyles(t,e,r){const i=this._stateStyles["*"],o=this._stateStyles[t],s=i?i.buildStyles(e,r):{};return o?o.buildStyles(e,r):s}build(t,e,r,i,o,s,a,l,c,u){const d=[],f=this.ast.options&&this.ast.options.params||xm,y=this.buildStyles(r,a&&a.params||xm,d),w=l&&l.params||xm,b=this.buildStyles(i,w,d),S=new Set,E=new Map,F=new Map,z="void"===i,ie={params:Object.assign(Object.assign({},f),w)},Z=u?[]:Sm(t,e,this.ast.animation,o,s,y,b,ie,c,d);let Q=0;if(Z.forEach(He=>{Q=Math.max(He.duration+He.delay,Q)}),d.length)return qw(e,this._triggerName,r,i,z,y,b,[],[],E,F,Q,d);Z.forEach(He=>{const Qe=He.element,te=Qn(E,Qe,{});He.preStyleProps.forEach(X=>te[X]=!0);const oe=Qn(F,Qe,{});He.postStyleProps.forEach(X=>oe[X]=!0),Qe!==e&&S.add(Qe)});const Re=Au(S.values());return qw(e,this._triggerName,r,i,z,y,b,Z,Re,E,F,Q)}}class jI{constructor(t,e,r){this.styles=t,this.defaultParams=e,this.normalizer=r}buildStyles(t,e){const r={},i=Ts(this.defaultParams);return Object.keys(t).forEach(o=>{const s=t[o];null!=s&&(i[o]=s)}),this.styles.styles.forEach(o=>{if("string"!=typeof o){const s=o;Object.keys(s).forEach(a=>{let l=s[a];l.length>1&&(l=Tu(l,i,e));const c=this.normalizer.normalizePropertyName(a,e);l=this.normalizer.normalizeStyleValue(a,c,l,e),r[c]=l})}}),r}}class UI{constructor(t,e,r){this.name=t,this.ast=e,this._normalizer=r,this.transitionFactories=[],this.states={},e.states.forEach(i=>{this.states[i.name]=new jI(i.style,i.options&&i.options.params||{},r)}),Zw(this.states,"true","1"),Zw(this.states,"false","0"),e.transitions.forEach(i=>{this.transitionFactories.push(new Kw(t,i,this.states))}),this.fallbackTransition=function zI(n,t,e){return new Kw(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,r,i){return this.transitionFactories.find(s=>s.match(t,e,r,i))||null}matchStyles(t,e,r){return this.fallbackTransition.buildStyles(t,e,r)}}function Zw(n,t,e){n.hasOwnProperty(t)?n.hasOwnProperty(e)||(n[e]=n[t]):n.hasOwnProperty(e)&&(n[t]=n[e])}const GI=new Fu;class WI{constructor(t,e,r){this.bodyNode=t,this._driver=e,this._normalizer=r,this._animations={},this._playersById={},this.players=[]}register(t,e){const r=[],o=Dm(this._driver,e,r,[]);if(r.length)throw function Zx(n){return new Y(3503,Ne)}();this._animations[t]=o}_buildPlayer(t,e,r){const i=t.element,o=Tw(0,this._normalizer,0,t.keyframes,e,r);return this._driver.animate(i,o,t.duration,t.delay,t.easing,[],!0)}create(t,e,r={}){const i=[],o=this._animations[t];let s;const a=new Map;if(o?(s=Sm(this._driver,e,o,_m,Du,{},{},r,GI,i),s.forEach(u=>{const d=Qn(a,u.element,{});u.postStyleProps.forEach(f=>d[f]=null)})):(i.push(function Qx(){return new Y(3300,Ne)}()),s=[]),i.length)throw function Yx(n){return new Y(3504,Ne)}();a.forEach((u,d)=>{Object.keys(u).forEach(f=>{u[f]=this._driver.computeStyle(d,f,fi)})});const c=$i(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,{},d)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const r=this.players.indexOf(e);r>=0&&this.players.splice(r,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw function Jx(n){return new Y(3301,Ne)}();return e}listen(t,e,r,i){const o=pm(e,"","","");return hm(this._getPlayer(t),r,o,i),()=>{}}command(t,e,r,i){if("register"==r)return void this.register(t,i[0]);if("create"==r)return void this.create(t,e,i[0]||{});const o=this._getPlayer(t);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(t)}}}const Qw="ng-animate-queued",Im="ng-animate-disabled",YI=[],Yw={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},JI={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},dr="__ng_removed";class Pm{constructor(t,e=""){this.namespaceId=e;const r=t&&t.hasOwnProperty("value");if(this.value=function nP(n){return null!=n?n:null}(r?t.value:t),r){const o=Ts(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const r=this.options.params;Object.keys(e).forEach(i=>{null==r[i]&&(r[i]=e[i])})}}}const rl="void",km=new Pm(rl);class XI{constructor(t,e,r){this.id=t,this.hostElement=e,this._engine=r,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,hr(e,this._hostClassName)}listen(t,e,r,i){if(!this._triggers.hasOwnProperty(e))throw function Xx(n,t){return new Y(3302,Ne)}();if(null==r||0==r.length)throw function eI(n){return new Y(3303,Ne)}();if(!function rP(n){return"start"==n||"done"==n}(r))throw function tI(n,t){return new Y(3400,Ne)}();const o=Qn(this._elementListeners,t,[]),s={name:e,phase:r,callback:i};o.push(s);const a=Qn(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(hr(t,Eu),hr(t,Eu+"-"+e),a[e]=km),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw function nI(n){return new Y(3401,Ne)}();return e}trigger(t,e,r,i=!0){const o=this._getTrigger(e),s=new Nm(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(hr(t,Eu),hr(t,Eu+"-"+e),this._engine.statesByElement.set(t,a={}));let l=a[e];const c=new Pm(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[e]=c,l||(l=km),c.value!==rl&&l.value===c.value){if(!function sP(n,t){const e=Object.keys(n),r=Object.keys(t);if(e.length!=r.length)return!1;for(let i=0;i<e.length;i++){const o=e[i];if(!t.hasOwnProperty(o)||n[o]!==t[o])return!1}return!0}(l.params,c.params)){const w=[],b=o.matchStyles(l.value,l.params,w),S=o.matchStyles(c.value,c.params,w);w.length?this._engine.reportError(w):this._engine.afterFlush(()=>{vo(t,b),Yr(t,S)})}return}const f=Qn(this._engine.playersByElement,t,[]);f.forEach(w=>{w.namespaceId==this.id&&w.triggerName==e&&w.queued&&w.destroy()});let p=o.matchTransition(l.value,c.value,t,c.params),y=!1;if(!p){if(!i)return;p=o.fallbackTransition,y=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:p,fromState:l,toState:c,player:s,isFallbackTransition:y}),y||(hr(t,Qw),s.onStart(()=>{As(t,Qw)})),s.onDone(()=>{let w=this.players.indexOf(s);w>=0&&this.players.splice(w,1);const b=this._engine.playersByElement.get(t);if(b){let S=b.indexOf(s);S>=0&&b.splice(S,1)}}),this.players.push(s),f.push(s),s}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,r)=>{delete e[t]}),this._elementListeners.forEach((e,r)=>{this._elementListeners.set(r,e.filter(i=>i.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(r=>r.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const r=this._engine.driver.query(t,Mu,!0);r.forEach(i=>{if(i[dr])return;const o=this._engine.fetchNamespacesByElement(i);o.size?o.forEach(s=>s.triggerLeaveAnimation(i,e,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(t,e,r,i){const o=this._engine.statesByElement.get(t),s=new Map;if(o){const a=[];if(Object.keys(o).forEach(l=>{if(s.set(l,o[l].value),this._triggers[l]){const c=this.trigger(t,l,rl,i);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,s),r&&$i(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),r=this._engine.statesByElement.get(t);if(e&&r){const i=new Set;e.forEach(o=>{const s=o.name;if(i.has(s))return;i.add(s);const l=this._triggers[s].fallbackTransition,c=r[s]||km,u=new Pm(rl),d=new Nm(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(t,e){const r=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(r.totalAnimations){const o=r.players.length?r.playersByQueriedElement.get(t):[];if(o&&o.length)i=!0;else{let s=t;for(;s=s.parentNode;)if(r.statesByElement.get(s)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)r.markElementAsRemoved(this.id,t,!1,e);else{const o=t[dr];(!o||o===Yw)&&(r.afterFlush(()=>this.clearElementCache(t)),r.destroyInnerAnimations(t),r._onRemovalComplete(t,e))}}insertNode(t,e){hr(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];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(a=>{if(a.name==r.triggerName){const l=pm(o,r.triggerName,r.fromState.value,r.toState.value);l._data=t,hm(r.player,a.phase,l,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(r)}),this._queue=[],e.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(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(r=>r.element===t)||e,e}}class eP{constructor(t,e,r){this.bodyNode=t,this.driver=e,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)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(r=>{r.queued&&t.push(r)})}),t}createNamespace(t,e){const r=new XI(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(r,e):(this.newHostElements.set(e,r),this.collectEnterElement(e)),this._namespaceLookup[t]=r}_balanceNamespaceList(t,e){const r=this._namespaceList,i=this.namespacesByHostElement,o=r.length-1;if(o>=0){let s=!1;if(void 0!==this.driver.getParentElement){let a=this.driver.getParentElement(e);for(;a;){const l=i.get(a);if(l){const c=r.indexOf(l);r.splice(c+1,0,t),s=!0;break}a=this.driver.getParentElement(a)}}else for(let a=o;a>=0;a--)if(this.driver.containsElement(r[a].hostElement,e)){r.splice(a+1,0,t),s=!0;break}s||r.unshift(t)}else r.push(t);return i.set(e,t),t}register(t,e){let r=this._namespaceLookup[t];return r||(r=this.createNamespace(t,e)),r}registerTrigger(t,e,r){let i=this._namespaceLookup[t];i&&i.register(e,r)&&this.totalAnimations++}destroy(t,e){if(!t)return;const r=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(r.hostElement),delete this._namespaceLookup[t];const i=this._namespaceList.indexOf(r);i>=0&&this._namespaceList.splice(i,1)}),this.afterFlushAnimationsDone(()=>r.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,r=this.statesByElement.get(t);if(r){const i=Object.keys(r);for(let o=0;o<i.length;o++){const s=r[i[o]].namespaceId;if(s){const a=this._fetchNamespace(s);a&&e.add(a)}}}return e}trigger(t,e,r,i){if($u(e)){const o=this._fetchNamespace(t);if(o)return o.trigger(e,r,i),!0}return!1}insertNode(t,e,r,i){if(!$u(e))return;const o=e[dr];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(e,r)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),hr(t,Im)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),As(t,Im))}removeNode(t,e,r,i){if($u(e)){const o=t?this._fetchNamespace(t):null;if(o?o.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),r){const s=this.namespacesByHostElement.get(e);s&&s.id!==t&&s.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,r,i,o){this.collectedLeaveElements.push(e),e[dr]={namespaceId:t,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,e,r,i,o){return $u(e)?this._fetchNamespace(t).listen(e,r,i,o):()=>{}}_buildInstruction(t,e,r,i,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,r,i,t.fromState.options,t.toState.options,e,o)}destroyInnerAnimations(t){let e=this.driver.query(t,Mu,!0);e.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,vm,!0),e.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return $i(this.players).onDone(()=>t());t()})}processLeaveNode(t){var e;const r=t[dr];if(r&&r.setForRemoval){if(t[dr]=Yw,r.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(r.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,r.setForRemoval)}(null===(e=t.classList)||void 0===e?void 0:e.contains(Im))&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,i)=>this._balanceNamespaceList(r,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;r<this.collectedEnterElements.length;r++)hr(this.collectedEnterElements[r],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const r=[];try{e=this._flushAnimations(r,t)}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=[],e.length?$i(e).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(t){throw function rI(n){return new Y(3402,Ne)}()}_flushAnimations(t,e){const r=new Fu,i=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(N=>{u.add(N);const B=this.driver.query(N,".ng-animate-queued",!0);for(let W=0;W<B.length;W++)u.add(B[W])});const d=this.bodyNode,f=Array.from(this.statesByElement.keys()),p=eC(f,this.collectedEnterElements),y=new Map;let w=0;p.forEach((N,B)=>{const W=_m+w++;y.set(B,W),N.forEach(re=>hr(re,W))});const b=[],S=new Set,E=new Set;for(let N=0;N<this.collectedLeaveElements.length;N++){const B=this.collectedLeaveElements[N],W=B[dr];W&&W.setForRemoval&&(b.push(B),S.add(B),W.hasAnimation?this.driver.query(B,".ng-star-inserted",!0).forEach(re=>S.add(re)):E.add(B))}const F=new Map,z=eC(f,Array.from(S));z.forEach((N,B)=>{const W=Du+w++;F.set(B,W),N.forEach(re=>hr(re,W))}),t.push(()=>{p.forEach((N,B)=>{const W=y.get(B);N.forEach(re=>As(re,W))}),z.forEach((N,B)=>{const W=F.get(B);N.forEach(re=>As(re,W))}),b.forEach(N=>{this.processLeaveNode(N)})});const ie=[],Z=[];for(let N=this._namespaceList.length-1;N>=0;N--)this._namespaceList[N].drainQueuedTransitions(e).forEach(W=>{const re=W.player,ee=W.element;if(ie.push(re),this.collectedEnterElements.length){const Oe=ee[dr];if(Oe&&Oe.setForMove){if(Oe.previousTriggersValues&&Oe.previousTriggersValues.has(W.triggerName)){const Me=Oe.previousTriggersValues.get(W.triggerName),dt=this.statesByElement.get(W.element);dt&&dt[W.triggerName]&&(dt[W.triggerName].value=Me)}return void re.destroy()}}const me=!d||!this.driver.containsElement(d,ee),Ye=F.get(ee),Ue=y.get(ee),Ee=this._buildInstruction(W,r,Ue,Ye,me);if(Ee.errors&&Ee.errors.length)return void Z.push(Ee);if(me)return re.onStart(()=>vo(ee,Ee.fromStyles)),re.onDestroy(()=>Yr(ee,Ee.toStyles)),void i.push(re);if(W.isFallbackTransition)return re.onStart(()=>vo(ee,Ee.fromStyles)),re.onDestroy(()=>Yr(ee,Ee.toStyles)),void i.push(re);const xt=[];Ee.timelines.forEach(Oe=>{Oe.stretchStartingKeyframe=!0,this.disabledNodes.has(Oe.element)||xt.push(Oe)}),Ee.timelines=xt,r.append(ee,Ee.timelines),s.push({instruction:Ee,player:re,element:ee}),Ee.queriedElements.forEach(Oe=>Qn(a,Oe,[]).push(re)),Ee.preStyleProps.forEach((Oe,Me)=>{const dt=Object.keys(Oe);if(dt.length){let Ht=l.get(Me);Ht||l.set(Me,Ht=new Set),dt.forEach(In=>Ht.add(In))}}),Ee.postStyleProps.forEach((Oe,Me)=>{const dt=Object.keys(Oe);let Ht=c.get(Me);Ht||c.set(Me,Ht=new Set),dt.forEach(In=>Ht.add(In))})});if(Z.length){const N=[];Z.forEach(B=>{N.push(function iI(n,t){return new Y(3505,Ne)}())}),ie.forEach(B=>B.destroy()),this.reportError(N)}const Q=new Map,Re=new Map;s.forEach(N=>{const B=N.element;r.has(B)&&(Re.set(B,B),this._beforeAnimationBuild(N.player.namespaceId,N.instruction,Q))}),i.forEach(N=>{const B=N.element;this._getPreviousPlayers(B,!1,N.namespaceId,N.triggerName,null).forEach(re=>{Qn(Q,B,[]).push(re),re.destroy()})});const He=b.filter(N=>nC(N,l,c)),Qe=new Map;Xw(Qe,this.driver,E,c,fi).forEach(N=>{nC(N,l,c)&&He.push(N)});const oe=new Map;p.forEach((N,B)=>{Xw(oe,this.driver,new Set(N),l,"!")}),He.forEach(N=>{const B=Qe.get(N),W=oe.get(N);Qe.set(N,Object.assign(Object.assign({},B),W))});const X=[],De=[],we={};s.forEach(N=>{const{element:B,player:W,instruction:re}=N;if(r.has(B)){if(u.has(B))return W.onDestroy(()=>Yr(B,re.toStyles)),W.disabled=!0,W.overrideTotalTime(re.totalTime),void i.push(W);let ee=we;if(Re.size>1){let Ye=B;const Ue=[];for(;Ye=Ye.parentNode;){const Ee=Re.get(Ye);if(Ee){ee=Ee;break}Ue.push(Ye)}Ue.forEach(Ee=>Re.set(Ee,ee))}const me=this._buildAnimation(W.namespaceId,re,Q,o,oe,Qe);if(W.setRealPlayer(me),ee===we)X.push(W);else{const Ye=this.playersByElement.get(ee);Ye&&Ye.length&&(W.parentPlayer=$i(Ye)),i.push(W)}}else vo(B,re.fromStyles),W.onDestroy(()=>Yr(B,re.toStyles)),De.push(W),u.has(B)&&i.push(W)}),De.forEach(N=>{const B=o.get(N.element);if(B&&B.length){const W=$i(B);N.setRealPlayer(W)}}),i.forEach(N=>{N.parentPlayer?N.syncPlayerEvents(N.parentPlayer):N.destroy()});for(let N=0;N<b.length;N++){const B=b[N],W=B[dr];if(As(B,Du),W&&W.hasAnimation)continue;let re=[];if(a.size){let me=a.get(B);me&&me.length&&re.push(...me);let Ye=this.driver.query(B,vm,!0);for(let Ue=0;Ue<Ye.length;Ue++){let Ee=a.get(Ye[Ue]);Ee&&Ee.length&&re.push(...Ee)}}const ee=re.filter(me=>!me.destroyed);ee.length?iP(this,B,ee):this.processLeaveNode(B)}return b.length=0,X.forEach(N=>{this.players.push(N),N.onDone(()=>{N.destroy();const B=this.players.indexOf(N);this.players.splice(B,1)}),N.play()}),X}elementContainsData(t,e){let r=!1;const i=e[dr];return i&&i.setForRemoval&&(r=!0),this.playersByElement.has(e)&&(r=!0),this.playersByQueriedElement.has(e)&&(r=!0),this.statesByElement.has(e)&&(r=!0),this._fetchNamespace(t).elementContainsData(e)||r}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,r,i,o){let s=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(s=a)}else{const a=this.playersByElement.get(t);if(a){const l=!o||o==rl;a.forEach(c=>{c.queued||!l&&c.triggerName!=i||s.push(c)})}}return(r||i)&&(s=s.filter(a=>!(r&&r!=a.namespaceId||i&&i!=a.triggerName))),s}_beforeAnimationBuild(t,e,r){const o=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==o,d=Qn(r,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(p=>{const y=p.getRealPlayer();y.beforeDestroy&&y.beforeDestroy(),p.destroy(),d.push(p)})}vo(o,e.fromStyles)}_buildAnimation(t,e,r,i,o,s){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,f=e.timelines.map(y=>{const w=y.element;u.add(w);const b=w[dr];if(b&&b.removedBeforeQueried)return new Ka(y.duration,y.delay);const S=w!==l,E=function oP(n){const t=[];return tC(n,t),t}((r.get(w)||YI).map(Q=>Q.getRealPlayer())).filter(Q=>!!Q.element&&Q.element===w),F=o.get(w),z=s.get(w),ie=Tw(0,this._normalizer,0,y.keyframes,F,z),Z=this._buildPlayer(y,ie,E);if(y.subTimeline&&i&&d.add(w),S){const Q=new Nm(t,a,w);Q.setRealPlayer(Z),c.push(Q)}return Z});c.forEach(y=>{Qn(this.playersByQueriedElement,y.element,[]).push(y),y.onDone(()=>function tP(n,t,e){let r;if(n instanceof Map){if(r=n.get(t),r){if(r.length){const i=r.indexOf(e);r.splice(i,1)}0==r.length&&n.delete(t)}}else if(r=n[t],r){if(r.length){const i=r.indexOf(e);r.splice(i,1)}0==r.length&&delete n[t]}return r}(this.playersByQueriedElement,y.element,y))}),u.forEach(y=>hr(y,Rw));const p=$i(f);return p.onDestroy(()=>{u.forEach(y=>As(y,Rw)),Yr(l,e.toStyles)}),d.forEach(y=>{Qn(i,y,[]).push(p)}),p}_buildPlayer(t,e,r){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,r):new Ka(t.duration,t.delay)}}class Nm{constructor(t,e,r){this.namespaceId=t,this.triggerName=e,this.element=r,this._player=new Ka,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(r=>hm(t,e,void 0,r))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Qn(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function $u(n){return n&&1===n.nodeType}function Jw(n,t){const e=n.style.display;return n.style.display=null!=t?t:"none",e}function Xw(n,t,e,r,i){const o=[];e.forEach(l=>o.push(Jw(l)));const s=[];r.forEach((l,c)=>{const u={};l.forEach(d=>{const f=u[d]=t.computeStyle(c,d,i);(!f||0==f.length)&&(c[dr]=JI,s.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>Jw(l,o[a++])),s}function eC(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const i=new Set(t),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:i.has(c)?1:s(c),o.set(a,l),l}return t.forEach(a=>{const l=s(a);1!==l&&e.get(l).push(a)}),e}function hr(n,t){var e;null===(e=n.classList)||void 0===e||e.add(t)}function As(n,t){var e;null===(e=n.classList)||void 0===e||e.remove(t)}function iP(n,t,e){$i(e).onDone(()=>n.processLeaveNode(t))}function tC(n,t){for(let e=0;e<n.length;e++){const r=n[e];r instanceof p8?tC(r.players,t):t.push(r)}}function nC(n,t,e){const r=e.get(n);if(!r)return!1;let i=t.get(n);return i?r.forEach(o=>i.add(o)):t.set(n,r),e.delete(n),!0}class Vu{constructor(t,e,r){this.bodyNode=t,this._driver=e,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(i,o)=>{},this._transitionEngine=new eP(t,e,r),this._timelineEngine=new WI(t,e,r),this._transitionEngine.onRemovalComplete=(i,o)=>this.onRemovalComplete(i,o)}registerTrigger(t,e,r,i,o){const s=t+"-"+i;let a=this._triggerCache[s];if(!a){const l=[],u=Dm(this._driver,o,l,[]);if(l.length)throw function qx(n,t){return new Y(3404,Ne)}();a=function HI(n,t,e){return new UI(n,t,e)}(i,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,i,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,r,i){this._transitionEngine.insertNode(t,e,r,i)}onRemove(t,e,r,i){this._transitionEngine.removeNode(t,e,i||!1,r)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,r,i){if("@"==r.charAt(0)){const[o,s]=Aw(r);this._timelineEngine.command(o,e,s,i)}else this._transitionEngine.trigger(t,e,r,i)}listen(t,e,r,i,o){if("@"==r.charAt(0)){const[s,a]=Aw(r);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(t,e,r,i,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let lP=(()=>{class n{constructor(e,r,i){this._element=e,this._startStyles=r,this._endStyles=i,this._state=0;let o=n.initialStylesByElement.get(e);o||n.initialStylesByElement.set(e,o={}),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Yr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Yr(this._element,this._initialStyles),this._endStyles&&(Yr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(vo(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(vo(this._element,this._endStyles),this._endStyles=null),Yr(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function Om(n){let t=null;const e=Object.keys(n);for(let r=0;r<e.length;r++){const i=e[r];cP(i)&&(t=t||{},t[i]=n[i])}return t}function cP(n){return"display"===n||"position"===n}class rC{constructor(t,e,r,i){this.element=t,this.keyframes=e,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.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,r){return t.animate(e,r)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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}_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(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(r=>{"offset"!=r&&(t[r]=this._finished?e[r]:Hw(this.element,r))})}this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(r=>r()),e.length=0}}class uP{validateStyleProperty(t){return kw(t)}matchesElement(t,e){return!1}containsElement(t,e){return Nw(t,e)}getParentElement(t){return gm(t)}query(t,e,r){return Ow(t,e,r)}computeStyle(t,e,r){return window.getComputedStyle(t)[e]}animate(t,e,r,i,o,s=[]){const l={duration:r,delay:i,fill:0==i?"both":"forwards"};o&&(l.easing=o);const c={},u=s.filter(f=>f instanceof rC);(function pI(n,t){return 0===n||0===t})(r,i)&&u.forEach(f=>{let p=f.currentSnapshot;Object.keys(p).forEach(y=>c[y]=p[y])}),e=function mI(n,t,e){const r=Object.keys(e);if(r.length&&t.length){let o=t[0],s=[];if(r.forEach(a=>{o.hasOwnProperty(a)||s.push(a),o[a]=e[a]}),s.length)for(var i=1;i<t.length;i++){let a=t[i];s.forEach(function(l){a[l]=Hw(n,l)})}}return t}(t,e=e.map(f=>Vi(f,!1)),c);const d=function aP(n,t){let e=null,r=null;return Array.isArray(t)&&t.length?(e=Om(t[0]),t.length>1&&(r=Om(t[t.length-1]))):t&&(e=Om(t)),e||r?new lP(n,e,r):null}(t,e);return new rC(t,e,l,d)}}let dP=(()=>{class n extends d8{constructor(e,r){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(r.body,{id:"0",encapsulation:gr.None,styles:[],data:{animation:[]}})}build(e){const r=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(e)?h8(e):e;return iC(this._renderer,null,r,"register",[i]),new hP(r,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(G(xa),G($t))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();class hP extends class XT{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new fP(this._id,t,e||{},this._renderer)}}class fP{constructor(t,e,r,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return iC(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function iC(n,t,e,r,i){return n.setProperty(t,`@@${e}:${r}`,i)}const oC="@.disabled";let pP=(()=>{class n{constructor(e,r,i){this.delegate=e,this.engine=r,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),r.onRemovalComplete=(o,s)=>{const a=null==s?void 0:s.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(e,r){const o=this.delegate.createRenderer(e,r);if(!(e&&r&&r.data&&r.data.animation)){let u=this._rendererCache.get(o);return u||(u=new sC("",o,this.engine),this._rendererCache.set(o,u)),u}const s=r.id,a=r.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,e,u.name,u)};return r.data.animation.forEach(l),new mP(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,r,i){e>=0&&e<this._microtaskId?this._zone.run(()=>r(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([r,i]))}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()}}return n.\u0275fac=function(e){return new(e||n)(G(xa),G(Vu),G(Yt))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();class sC{constructor(t,e,r){this.namespaceId=t,this.delegate=e,this.engine=r,this.destroyNode=this.delegate.destroyNode?i=>e.destroyNode(i):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,r,i=!0){this.delegate.insertBefore(t,e,r),this.engine.onInsert(this.namespaceId,e,t,i)}removeChild(t,e,r){this.engine.onRemove(this.namespaceId,e,this.delegate,r)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,r,i){this.delegate.setAttribute(t,e,r,i)}removeAttribute(t,e,r){this.delegate.removeAttribute(t,e,r)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,r,i){this.delegate.setStyle(t,e,r,i)}removeStyle(t,e,r){this.delegate.removeStyle(t,e,r)}setProperty(t,e,r){"@"==e.charAt(0)&&e==oC?this.disableAnimations(t,!!r):this.delegate.setProperty(t,e,r)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,r){return this.delegate.listen(t,e,r)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class mP extends sC{constructor(t,e,r,i){super(e,r,i),this.factory=t,this.namespaceId=e}setProperty(t,e,r){"@"==e.charAt(0)?"."==e.charAt(1)&&e==oC?this.disableAnimations(t,r=void 0===r||!!r):this.engine.process(this.namespaceId,t,e.substr(1),r):this.delegate.setProperty(t,e,r)}listen(t,e,r){if("@"==e.charAt(0)){const i=function gP(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let o=e.substr(1),s="";return"@"!=o.charAt(0)&&([o,s]=function yP(n){const t=n.indexOf(".");return[n.substring(0,t),n.substr(t+1)]}(o)),this.engine.listen(this.namespaceId,i,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,r,a)})}return this.delegate.listen(t,e,r)}}let _P=(()=>{class n extends Vu{constructor(e,r,i){super(e.body,r,i)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(G($t),G(ym),G(Am))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();const aC=new ae("AnimationModuleType"),lC=[{provide:d8,useClass:dP},{provide:Am,useFactory:function vP(){return new RI}},{provide:Vu,useClass:_P},{provide:xa,useFactory:function wP(n,t,e){return new pP(n,t,e)},deps:[Zc,Vu,Yt]}],cC=[{provide:ym,useFactory:()=>new uP},{provide:aC,useValue:"BrowserAnimations"},...lC],CP=[{provide:ym,useClass:Fw},{provide:aC,useValue:"NoopAnimations"},...lC];let bP=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?CP:cC}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({providers:cC,imports:[Nv]}),n})();const DP=hn(n=>function(){n(this),this.name="EmptyError",this.message="no elements in sequence"}),uC=new ae("MOTO_APPLE_PAYMENT_SERVICE_TOKEN"),MP=new ae("MOTO_APPLE_PAY_SESSION_VERSION_TOKEN",{factory:()=>10}),dC=new ae("MOTO_APPLE_PAY_MERCHANT_URL_TOKEN",{factory:()=>"/merchantValidation"}),hC=new ae("MOTO_APPLE_PAY_MERCHANT_SERVICE_TOKEN");let SP=(()=>{class n{constructor(e,r){this.merchantApiUrl=e,this.http=r}validate(e,r){const{validationURL:i}=e,{merchantId:o}=r;return this.requestValidateMerchant(o,i)}requestValidateMerchant(e,r){return this.http.post(this.merchantApiUrl,{validationUrl:r},{params:{merchantId:e}})}}return n.\u0275fac=function(e){return new(e||n)(G(dC),G(Np))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();const fC=new ae("APPLE_PAY_SESSION_TOKEN",{factory:()=>Jl($t).defaultView.ApplePaySession}),TP=new ae("APPLE_PAY_SESSION_SUPPORT_TOKEN",{factory:()=>Boolean(Jl(fC))}),pC={merchantCapabilities:["supports3DS"],supportedNetworks:["visa","masterCard","amex","discover"]};let mC=(()=>{class n{constructor(e){this.applePaySession=e}canMakePayments(){return ApplePaySession.canMakePayments()}createPaySession(e,r,i){return new Ft(o=>{const s=a=>{o.error(a),console.error(a)};try{const a=new this.applePaySession(e,r),l=(c,u)=>{a.abort(),s({event:c,error:u})};a.onvalidatemerchant=c=>Sl(this,void 0,void 0,function*(){try{const u=yield function EP(n,t){const e="object"==typeof t;return new Promise((r,i)=>{let s,o=!1;n.subscribe({next:a=>{s=a,o=!0},error:i,complete:()=>{o?r(s):e?r(t.defaultValue):i(new DP)}})})}(i(c));a.completeMerchantValidation(u)}catch(u){l(c,u)}}),a.onpaymentmethodselected=c=>{const u={newTotal:Object.assign({},r.total)};a.completePaymentMethodSelection(u)},a.onshippingmethodselected=c=>{a.completeShippingMethodSelection({})},a.onshippingcontactselected=c=>{a.completeShippingContactSelection({})},a.onpaymentauthorized=c=>{a.completePayment({status:ApplePaySession.STATUS_SUCCESS}),o.next(c),o.complete()},a.oncancel=c=>{s(c)},a.begin()}catch(a){s(a)}})}}return n.\u0275fac=function(e){return new(e||n)(G(fC))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})(),gC=(()=>{class n{constructor(e,r,i){this.applePayVersion=e,this.nativeService=r,this.merchantService=i}canMakePayment(){return xr(this.nativeService.canMakePayments())}pay(e){const{version:r=this.applePayVersion}=e;return this.nativeService.createPaySession(r,this.mapData(e),o=>this.merchantService.validate(o,e))}mapData(e){const{total:r,countryCode:i,supportedNetworks:o=pC.supportedNetworks,merchantCapabilities:s=pC.merchantCapabilities}=e;return{countryCode:i,currencyCode:r.currency,supportedNetworks:o,merchantCapabilities:s,total:{amount:r.amount,label:r.label}}}}return n.\u0275fac=function(e){return new(e||n)(G(MP),G(mC),G(hC))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();const xP={canMakePayment:()=>xr(!1),pay(n){throw new Error("not implemented")}},IP=[gC,mC,{provide:uC,deps:[TP,gC],useFactory:(n,t)=>n?t:xP}];let PP=(()=>{class n{static forRoot(){return{ngModule:n,providers:[...IP,{provide:hC,useClass:SP}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({imports:[[Qv]]}),n})();function kP(n,t){if(1&n){const e=Sn();j(0,"div",3)(1,"i",4),ke("click",function(){return Gt(e),ne().close()}),pe(2,"close"),U()()}}function NP(n,t){if(1&n&&(j(0,"div",1),je(1,"img",2),U()),2&n){const e=ne();O(1),R("src",e.src,Yo)("alt",e.alt)}}function OP(n,t){1&n&&(j(0,"span",10),pe(1,"\xb7"),U())}function FP(n,t){if(1&n&&(Kt(0),j(1,"a",8),pe(2),U(),J(3,OP,2,0,"span",9),Zt()),2&n){const e=t.$implicit,r=t.last;O(1),R("href",e.href,Yo),O(1),_n(" ",e.text," "),O(1),R("ngIf",!r)}}function LP(n,t){if(1&n&&(j(0,"div",6),J(1,FP,4,3,"ng-container",7),U()),2&n){const e=ne(2).ngIf;O(1),R("ngForOf",e.links)}}function RP(n,t){if(1&n&&(j(0,"p",11),pe(1),U()),2&n){const e=ne(2).ngIf;O(1),_n(" ",e.text," ")}}function $P(n,t){if(1&n&&(j(0,"div"),J(1,LP,2,1,"div",4),J(2,RP,2,1,"p",5),U()),2&n){const e=ne().ngIf;O(1),R("ngIf",null==e.links?null:e.links.length),O(1),R("ngIf",e.text)}}function VP(n,t){if(1&n&&(Kt(0),J(1,$P,3,2,"div",2),Zt()),2&n){const e=t.ngIf;O(1),R("ngIf",e.visible&&((null==e.links?null:e.links.length)||e.text))}}function BP(n,t){1&n&&(je(0,"moto-picture",16),xe(1,"image")),2&n&&R("src",Nn(1,1,"visa-secure.svg"))}function jP(n,t){1&n&&(je(0,"moto-picture",16),xe(1,"image")),2&n&&R("src",Nn(1,1,"master-card-secure.svg"))}function HP(n,t){if(1&n&&(j(0,"div",12)(1,"p",13),pe(2,"Your transactions are protected by"),U(),j(3,"div",14),J(4,BP,2,3,"moto-picture",15),J(5,jP,2,3,"moto-picture",15),U()()),2&n){const e=ne(2);O(4),R("ngIf",e.isVisaAvailable),O(1),R("ngIf",e.isMastercardAvailable)}}function UP(n,t){if(1&n&&(j(0,"div",1),J(1,VP,2,1,"ng-container",2),J(2,HP,6,2,"div",3),U()),2&n){const e=ne();O(1),R("ngIf",e.settings.merchantInfo),O(1),R("ngIf",e.isMastercardAvailable||e.isVisaAvailable)}}const zP=[[["prefix"]],[["suffix"]]],GP=["prefix","suffix"];function WP(n,t){1&n&&(j(0,"span",8),pe(1,"Invalid phone number"),U()),2&n&&R("@ANTransform",void 0)}function qP(n,t){if(1&n&&(j(0,"div",2)(1,"div",3)(2,"h6",4),pe(3,"Phone"),U(),J(4,WP,2,1,"span",5),U(),j(5,"div",6),je(6,"moto-form-input",7),xe(7,"enum"),xe(8,"enum"),xe(9,"condition"),U()()),2&n){const e=ne();O(4),R("ngIf",e.isInvalidPhone),O(2),R("minlength",lr(7,5,"MIN_TEL","form-field-length"))("maxlength",lr(8,8,"MAX_TEL","form-field-length"))("validate",!1)("status",On(9,11,e.isInvalidPhone,"invalid","valid"))}}function KP(n,t){if(1&n&&(Kt(0),je(1,"moto-picture",14),Zt()),2&n){const e=t.ngIf;O(1),R("src",e)}}function ZP(n,t){if(1&n&&(Kt(0),J(1,KP,2,1,"ng-container",13),xe(2,"brandLogo"),Zt()),2&n){const e=t.$implicit;O(1),R("ngIf",Nn(2,1,e))}}function QP(n,t){if(1&n&&(j(0,"div",2)(1,"div",10)(2,"h6",4),pe(3,"Payment methods"),U()(),j(4,"div",11),J(5,ZP,3,3,"ng-container",12),U()()),2&n){const e=ne();O(5),R("ngForOf",e.settings.availableCardBrands)}}function YP(n,t){if(1&n&&(j(0,"span",15),pe(1),U()),2&n){const e=ne();R("@ANTransform",void 0),O(1),Wr(e.paymentsErrorMsg)}}function JP(n,t){if(1&n){const e=Sn();j(0,"div",16)(1,"moto-form-input",17),ke("paste",function(i){return Gt(e),ne().pasteCardNumber(i)}),xe(2,"cardInfo"),xe(3,"condition"),je(4,"moto-picture",18),xe(5,"cardInfo"),U(),je(6,"div",19),j(7,"div",20),je(8,"moto-form-input",21),xe(9,"condition"),je(10,"div",22),j(11,"moto-form-input",23),xe(12,"cardInfo"),xe(13,"cardInfo"),xe(14,"condition"),j(15,"div",24),xe(16,"cardInfo"),j(17,"i",25),pe(18,"error"),U()()()()()}if(2&n){const e=t.motoLet,r=ne();Dr("invalid",r.isInvalidCredentials),O(1),R("mask",On(2,17,e.cardNumber,"card-number-mask","0000 0000 0000 0000"))("transparent",!0)("validate",!1)("status",On(3,21,r.isInvalidCredentials,"invalid","valid")),O(3),R("src",lr(5,25,r.cardNumberValue,"logo")),O(4),R("transparent",!0)("validate",!1)("status",On(9,28,r.isInvalidCredentials,"invalid","valid")),O(3),R("mask",On(12,32,e.cardNumber,"code-mask","000"))("dropSpecialCharacters",!1)("placeholder",On(13,36,e.cardNumber,"code","CVV"))("transparent",!0)("validate",!1)("status",On(14,40,r.isInvalidCredentials,"invalid","valid")),O(4),yn("data-tooltip",On(16,44,e.cardNumber,"secure-text","CVC Card Verification Code"))}}function XP(n,t){1&n&&(j(0,"span",26),pe(1,"Invalid card holder name"),U()),2&n&&R("@ANTransform",void 0)}function ek(n,t){if(1&n){const e=Sn();j(0,"moto-pay-card",4),ke("select",function(i){return Gt(e),ne(2).selectCard(i)})("remove",function(i){return Gt(e),ne(2).removeCard(i)}),U()}2&n&&R("option",t.$implicit)}function tk(n,t){if(1&n&&(Kt(0),J(1,ek,1,1,"moto-pay-card",3),Zt()),2&n){const e=ne();O(1),R("ngForOf",e.cardOptions)}}function nk(n,t){1&n&&(j(0,"p",5),pe(1,"No cards yet..."),U())}function rk(n,t){if(1&n&&(j(0,"a",10),pe(1),U()),2&n){const e=ne(2).$implicit;R("href",e.link.href,Yo),O(1),Wr(e.link.text)}}function ik(n,t){if(1&n){const e=Sn();Kt(0),j(1,"label",5)(2,"input",6),ke("ngModelChange",function(i){Gt(e);const o=ne().index;return ne(3).checkboxesResults[o]=i})("ngModelChange",function(){return Gt(e),ne(4).onChange()}),U(),je(3,"span",7),j(4,"span",8),pe(5),J(6,rk,2,2,"a",9),U()(),Zt()}if(2&n){const e=ne(),r=e.index,i=e.$implicit,o=ne(3);O(2),R("name","chargee-term-"+r)("id","chargee-term-"+r)("ngModel",o.checkboxesResults[r]),O(1),Dr("invalid",o.isErrorSubmit&&!o.checkboxesResults[r]),O(2),_n(" ",i.text," "),O(1),R("ngIf",i.link)}}function ok(n,t){if(1&n&&(Kt(0),J(1,ik,7,7,"ng-container",2),Zt()),2&n){const e=t.$implicit;O(1),R("ngIf",e)}}function sk(n,t){if(1&n&&(Kt(0),J(1,ok,2,1,"ng-container",4),Zt()),2&n){const e=ne(2);O(1),R("ngForOf",e.chargeTerms.checkboxes)}}function ak(n,t){if(1&n&&(j(0,"p",11),pe(1),U()),2&n){const e=ne(2);O(1),_n(" ",e.chargeTerms.text," ")}}function lk(n,t){if(1&n&&(j(0,"div",1),J(1,sk,2,1,"ng-container",2),J(2,ak,2,1,"p",3),U()),2&n){const e=ne();O(1),R("ngIf",null==e.chargeTerms.checkboxes?null:e.chargeTerms.checkboxes.length),O(1),R("ngIf",null==e.chargeTerms?null:e.chargeTerms.text)}}const ck=function(n){return{$implicit:n}};function uk(n,t){if(1&n&&(yc(0,7),xe(1,"condition")),2&n){const e=t.$implicit,r=ne().motoLet;ne();const i=io(2);R("ngTemplateOutlet",On(1,2,e.logo,i,r[e.name]))("ngTemplateOutletContext",Nf(6,ck,e))}}function dk(n,t){if(1&n&&(j(0,"div",3)(1,"div",4)(2,"span",5),pe(3,"OR"),U()(),J(4,uk,2,8,"ng-container",6),U()),2&n){const e=ne();O(4),R("ngForOf",e.apms)("ngForTrackBy",e.trackByApm)}}function hk(n,t){if(1&n){const e=Sn();j(0,"div",8),ke("click",function(){const o=Gt(e).$implicit;return ne().pay(o)}),je(1,"img",9),U()}if(2&n){const e=t.$implicit;O(1),R("src",e.logo,Yo)("alt",e.name)}}function fk(n,t){if(1&n){const e=Sn();j(0,"div",10),ke("buttonClick",function(){const o=Gt(e).$implicit;return ne().pay(o)}),U()}}const pk=function(n){return{applepay:n}},mk=["cardFormRef"],gk=["additionalFormRef"],yk=["cardListRef"],_k=["chargeTermsRef"];function vk(n,t){if(1&n){const e=Sn();Kt(0),j(1,"div",14),ke("click",function(){return Gt(e),ne(3).toggleCardList()}),j(2,"span",15),pe(3,"Manage cards"),U(),j(4,"i",16),pe(5,"keyboard_arrow_up"),U()(),j(6,"moto-pay-card-list",17,18),ke("select",function(){return Gt(e),ne(3).selectCard()})("remove",function(i){return Gt(e),ne(3).removeCard(i)}),xe(8,"condition"),U(),Zt()}if(2&n){const e=ne().motoLet,r=ne(2);O(4),Dr("active",r.viewState.isShowCardList),O(2),R("@ANToggleList",On(8,5,r.viewState.isShowCardList,"show","hide"))("childrenDetector",r.childrenDetector$)("cards",e)}}function wk(n,t){if(1&n&&(Kt(0),J(1,vk,9,9,"ng-container",13),Zt()),2&n){const e=t.motoLet;O(1),R("ngIf",null==e?null:e.length)}}function Ck(n,t){if(1&n){const e=Sn();j(0,"button",19),ke("click",function(){return Gt(e),ne(2).showCardForm()}),j(1,"i",20),pe(2,"add"),U(),j(3,"span",21),pe(4,"Add new card"),U()()}}function bk(n,t){if(1&n&&(je(0,"moto-pay-card-form",22,23),xe(2,"async")),2&n){const e=ne(2);R("@ANHeight",void 0)("settings",Nn(2,2,e.settings$))}}function Dk(n,t){if(1&n&&(je(0,"moto-pay-additional-form",22,24),xe(2,"async")),2&n){const e=ne(2);R("@ANHeight",void 0)("settings",Nn(2,2,e.settings$))}}function Ek(n,t){if(1&n&&(Kt(0),je(1,"div",25),j(2,"div",26),je(3,"moto-picture",27),xe(4,"cardInfo"),j(5,"span",28),pe(6),xe(7,"slice"),U()(),Zt()),2&n){const e=t.ngIf;O(3),R("src",lr(4,2,e.card.name,"logo")),O(3),_n(" \u2022\u2022",lr(7,5,e.card.name,-4)," ")}}function Mk(n,t){if(1&n){const e=Sn();Kt(0),j(1,"moto-pay-apm-list",29),ke("pay",function(i){return Gt(e),ne(3).apmSubmit(i)}),U(),Zt()}if(2&n){const e=ne().motoLet;O(1),R("apms",e)}}function Sk(n,t){if(1&n&&(Kt(0),J(1,Mk,2,1,"ng-container",13),Zt()),2&n){const e=t.motoLet;O(1),R("ngIf",null==e?null:e.length)}}function Tk(n,t){if(1&n&&(Kt(0),je(1,"charge-terms",30,31),Zt()),2&n){const e=t.ngIf;O(1),R("chargeTerms",e)}}function Ak(n,t){if(1&n){const e=Sn();j(0,"div",1),J(1,wk,2,1,"ng-container",2),xe(2,"async"),J(3,Ck,5,0,"button",3),J(4,bk,3,4,"moto-pay-card-form",4),J(5,Dk,3,4,"moto-pay-additional-form",4),j(6,"div",5)(7,"div",6)(8,"span",7),pe(9,"Total"),U(),j(10,"span",8),pe(11),xe(12,"currencySymbol"),xe(13,"price"),U()(),j(14,"button",9),ke("click",function(){return Gt(e),ne().submit()}),j(15,"div",10)(16,"div",11)(17,"span"),pe(18," Pay "),j(19,"span",12),pe(20),xe(21,"currencySymbol"),xe(22,"price"),U()()(),J(23,Ek,8,8,"ng-container",13),U()()(),J(24,Sk,2,1,"ng-container",2),xe(25,"async"),J(26,Tk,3,1,"ng-container",13),xe(27,"async"),U()}if(2&n){const e=t.ngIf,r=ne();let i;O(1),R("motoLet",Nn(2,9,r.cards$)),O(2),R("ngIf",!r.viewState.isShowCardForm),O(1),R("ngIf",r.viewState.isShowCardForm),O(1),R("ngIf",r.viewState.isShowCardForm),O(6),Wr(lr(12,11,On(13,14,e.amount,e.tax,e.amountType),e.currency)),O(9),_n(" ",lr(21,18,On(22,21,e.amount,e.tax,e.amountType),e.currency)," "),O(3),R("ngIf",null==r.cardListRef?null:r.cardListRef.getSelectedCard()),O(1),R("motoLet",Nn(25,25,r.apms$)),O(2),R("ngIf",null==(i=Nn(27,27,r.settings$))?null:i.chargeTerms)}}function xk(n,t){if(1&n&&(j(0,"p",4),pe(1),U()),2&n){const e=ne();O(1),_n(" ",e.description," ")}}const Ik=["wrapper"];function Pk(n,t){1&n&&yc(0)}function kk(n,t){1&n&&je(0,"moto-loader")}function Nk(n,t){1&n&&je(0,"div",12)}function Ok(n,t){if(1&n){const e=Sn();j(0,"div",4,5)(2,"div",6)(3,"moto-pay-header",7),ke("close",function(){return Gt(e),ne().close()}),U(),J(4,Pk,1,0,"ng-container",8),xe(5,"async"),je(6,"moto-pay-footer",9),J(7,kk,1,0,"moto-loader",10),J(8,Nk,1,0,"div",11),U()()}if(2&n){const e=t.motoLet,r=ne(),i=io(5),o=io(3);O(3),R("showCloseButton",null==e?null:e.isCloseButtonVisible),O(1),R("ngIf",Nn(5,7,r.paymentResult$))("ngIfThen",i)("ngIfElse",o),O(2),R("settings",e),O(1),R("ngIf",r.isShowLoader),O(1),R("ngIf",!r.isShowLoader)}}function Fk(n,t){1&n&&je(0,"moto-pay-main")}function Lk(n,t){if(1&n&&J(0,Fk,1,0,"moto-pay-main",13),2&n){const e=ne(),r=io(7);R("ngIf",!e.viewState.paymentErrorType&&!e.viewState.settingsErrorType)("ngIfElse",r)}}function Rk(n,t){if(1&n){const e=Sn();j(0,"moto-pay-result",14),ke("result",function(i){return Gt(e),ne().paid(i)}),xe(1,"async"),U()}2&n&&R("paymentResult",Nn(1,1,ne().paymentResult$))}function $k(n,t){if(1&n&&je(0,"moto-pay-error",15),2&n){const e=ne();R("error",e.viewState.paymentErrorType||e.viewState.settingsErrorType)}}const Vk=["paymentWrapperRef"],Bk=new Hv(()=>!1),jk=new Hv(()=>!1);let yC=(()=>{class n{constructor(){this.detector$=new Lt}detectChanges(){this.detector$.next(null)}listenChangeDetection(){return this.detector$.asObservable()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),il=(()=>{class n{constructor(e){this.injector=e,this.unsubscriber$=new Lt,this.childrenDetector$=new Lt}ngOnDestroy(){this.unsubscribe()}listenChildrenDetection(e){const r="local"===e,i="global"===e,o="full"===e;this.childrenDetector$.asObservable().pipe(Wa(10),this.untilDestroy()).subscribe(()=>{(r||o)&&this.localDetect(),(i||o)&&this.globalDetect()})}localDetect(){this.injector.get(Ra).detectChanges()}globalDetect(){this.injector.get(yC).detectChanges()}detect(){this.localDetect(),this.globalDetect()}untilDestroy(){return Jv(this.unsubscriber$.asObservable())}unsubscribe(){this.unsubscriber$.next(null)}}return n.\u0275fac=function(e){return new(e||n)(I(St))},n.\u0275cmp=Dt({type:n,selectors:[["ng-component"]],decls:0,vars:0,template:function(e,r){},encapsulation:2}),n})();class Hk{constructor(t,e){this.type=t,this.error=e}}class _C{getFullState(){return this.state}getState(t){return this.state[t]}setState(t,e){this.state[t]=e}}class Uk extends _C{constructor(){super(...arguments),this.destory$=new Lt,this.detector$=new Lt,this.action$=new Lt,this.error$=new Lt}untilDestroy(){return function e4(...n){return rg(n)}(Jv(this.destory$))}destroy(){this.destory$.next(null)}detect(){this.detector$.next(null)}listenChangeDetection(){return this.detector$.asObservable()}listenActions(){return this.action$.asObservable()}action(t){this.action$.next(t)}errorHandler(t){return e=>{this.error$.next(new Hk(t,e))}}listenErrors(){return this.error$.asObservable()}getStream(t){return this.getSubject(t).asObservable()}getSubject(t){const e=this[t];if(!e)throw new Error(`Stream "${t}" not found!`);return e}emitToStream(t,e){this.getSubject(t).next(e)}getStreamValue(t){return this.getSubject(t).getValue()}}const vC=new ae("MOTO_PAY_APM_TOKEN");let Fm=(()=>{class n{constructor(e){this.apmMap=e.reduce((r,i)=>(r.set(i.name,i),r),new Map([]))}has(e){return this.apmMap.has(e)}get(e){return this.apmMap.get(e)}apmNames(){return Array.from(this.apmMap.keys())}}return n.\u0275fac=function(e){return new(e||n)(G(vC))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})(),ju=(()=>{class n extends Uk{constructor(e){super(),this.motoApmsService=e,this.state={isLoadCards:!1,isLoadApms:!1,isSentPayment:!1,isRemovedCard:!1,externalApms:new Set(this.motoApmsService.apmNames())},this.cards$=new Qr(null),this.apms$=new Qr(null),this.payment$=new Qr(null),this.settings$=new Qr(null),this.paymentResult$=new Qr(null)}getApiConfig(){var e;return null===(e=this.getStreamValue("settings$"))||void 0===e?void 0:e.urls}}return n.\u0275fac=function(e){return new(e||n)(G(Fm))},n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),wC=(()=>{class n extends _C{constructor(){super(...arguments),this.state={contentSize:null,paymentErrorType:null,settingsErrorType:null,window:null,isShowCardList:!0,isShowCardForm:!1}}inputTemplate(e,r){return`<input type="hidden" name="${e}" value="${r}" />`}formTemplate(e,r){return`<form action="${e}" method="post">${r}</form>`}makeFormTemplate({acsurl:e,md:r,paReq:i,termUrl:o}){const s=Object.entries({md:r,paReq:i,termUrl:o}).reduce((l,[c,u])=>l+`${this.inputTemplate(c,u)}\n`,"");return this.formTemplate(e,s)}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=nn(n)))(r||n)}}(),n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class xs{constructor(t,e=null){this.type=t,this.payload=e}}function Lm(n){return new hi({fromObject:n})}function Rm(n){const t=Object.entries(n).reduce((e,[r,i])=>(e[r]=String(i),e),{});return new Zr(t)}var Bi=(()=>{return(n=Bi||(Bi={}))[n.DEFAULT_ANIMATE_MS=0]="DEFAULT_ANIMATE_MS",Bi;var n})(),ol=(()=>{return(n=ol||(ol={}))[n.MIN_CARD_NUMBER_LENGTH=13]="MIN_CARD_NUMBER_LENGTH",n[n.MAX_CARD_NUMBER_LENGTH=19]="MAX_CARD_NUMBER_LENGTH",ol;var n})(),Hu=(()=>{return(n=Hu||(Hu={})).gbp="GBP",n.eur="EUR",n.nok="NOK",n.usd="USD",n.sgd="SGD",n.aud="AUD",n.cad="CAD",Hu;var n})(),ji=(()=>{return(n=ji||(ji={})).default="default-card-icon",n.mastercard="master-card-icon",n.maestro="maestro",n.visa="visa-card-icon-new",n.discover="discover",n.jcb="jcb",n["american-express"]="american-express",n.unionpay="unionpay",ji;var n})(),Uu=(()=>{return(n=Uu||(Uu={})).mastercard="CVC Card Verification Code",n.visa="CVV (Card Verification Value)",n["american-express"]="CID (Card Identification Number)",n.unionpay="CVN (Card Verification Number)",n.jcb="CVV (Card Verification Value)",n.maestro="CVV (Card Verification Value)",n.discover="CID (Card Identification Number)",Uu;var n})(),Is=(()=>{return(n=Is||(Is={})).SUCCESS_TITLE="Successful",n.WARNING_TITLE="Warning",n.ERROR_TITLE="Attention!",n.INFO_TITLE="Information",Is;var n})(),zu=(()=>{return(n=zu||(zu={}))[n.SMALL=1]="SMALL",n[n.MEDIUM=2]="MEDIUM",n[n.LARGE=3]="LARGE",n[n.EXTRA_LARGE=4]="EXTRA_LARGE",n[n.FULL_SCREEN=5]="FULL_SCREEN",zu;var n})();function Co(n,t,e=!0,r=0){const i=n[t[r]],o=t[r+1];if(!function Kk(n,t){return typeof n===t}(o,"string")&&r+1<t.length)throw new Error(`Invalid path key.The key type must be a string. \n Key: ${o}, \n Index: ${r+1},\n Path: ${JSON.stringify(t,(s,a)=>a||String("undefined"))}\n `);return o&&i?Co(i,t,e,r+1):e?function Zk(n){return JSON.parse(JSON.stringify(n))}(i):i}function bC(){const n=screen.height||window.innerHeight,t=screen.width||window.innerWidth,e=zu.FULL_SCREEN;return{timezoneOffsetUtcMinutes:(new Date).getTimezoneOffset(),locale:navigator.language,userAgent:navigator.userAgent,javaEnabled:navigator.javaEnabled()||!1,javaScriptEnabled:!0,colorDepth:screen.colorDepth,width:t,height:n,challengeWindowSize:e}}function sl(n,t){return`${n.endsWith("/")?n.slice(0,-1):n}${t.startsWith("/")?t:`/${t}`}`}const DC="Watchdog fake error";const Yk=new ae("MOTO_PAY_SERVICE_TOKEN");var bo=(()=>{return(n=bo||(bo={}))[n.MAX_CARD_HOLDER=128]="MAX_CARD_HOLDER",n[n.MAX_TEL=30]="MAX_TEL",n[n.MIN_TEL=4]="MIN_TEL",bo;var n})(),Gu=(()=>((Gu||(Gu={})).APPLE_PAY="applepay",Gu))(),Wu=(()=>{return(n=Wu||(Wu={})).Customer="Customer",n.Merchant="Merchant",Wu;var n})(),qu=(()=>{return(n=qu||(qu={})).GrossWithoutGst="GrossWithoutGst",n.Net="Net",n.Gross="Gross",qu;var n})();let Xk=(()=>{class n{constructor(e){this.dataService=e}getConfig(){return this.dataService.getApiConfig()}get(e){return this.getConfig()[e]}getFromPayment(e){return this.dataService.getStreamValue("payment$")[e]}}return n.\u0275fac=function(e){return new(e||n)(G(ju))},n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),eN=(()=>{class n{constructor(e=null,r,i){this.payService=e,this.http=r,this.config=i}getUserPaymentMethods(e,r){if(!r)return xr([]);const i=Lm({merchantId:e}),o=Rm({Authorization:r}),a=sl(this.config.get("billingProfiles"),"/api/UserPaymentMethods");return this.http.get(a,{params:i,headers:o}).pipe(Es(()=>xr([])))}getApmLogos(e,r,i){const o=Lm({currency:i,payerId:r}),a=sl(this.config.get("processing"),`/api/merchants/${e}/settings`);return this.http.get(a,{params:o}).pipe(en(l=>l.payments.filter(c=>"card"!=c.name)),en(l=>{const c=new Set;return l.filter(u=>!c.has(u.name)&&(c.add(u.name),!0))}),Es(()=>xr([])))}getPaymentInfo(e,r){const o=sl(this.config.get("processing"),`/api/merchants/${e}/payments/${r}`);return this.http.get(o)}pay(e,r){const i=bC(),o=Object.assign({},i);e.ipAddress&&(o.ipAddress=e.ipAddress);const a={headers:Rm(o)},c=sl(this.config.get("processing"),`/api/merchants/${e.merchantId}/payments`);let u=class Jk{static build(t,e){var r,i,o,s,a,l,c;const u={amount:t.amount,amountType:t.amountType,tax:t.tax,currency:t.currency,description:null===(r=t.description)||void 0===r?void 0:r.substring(0,127),details:t.details?JSON.stringify(t.details):null,type:t.orderType},d=e.requisites,f=e.requisites,p={anchor:e.rebillAnchor,cardHolder:null==d?void 0:d.cardHolder,cardNumber:null==d?void 0:d.cardNumber,cvv:null==d?void 0:d.cvv,expiration:null==d?void 0:d.expiration,paymentToken:null==f?void 0:f.token,type:e.rebillAnchor?"rebill":e.paymentType},y={browserData:bC()},w={id:null!==(o=null!==(i=t.userId)&&void 0!==i?i:t.email)&&void 0!==o?o:u8().substring(0,36),email:null!==(s=t.email)&&void 0!==s?s:`${u8().replace("-","").substring(0,10)}@gmail.com`,phoneNumber:null!==(l=null===(a=e.additionalFields)||void 0===a?void 0:a.phoneNumber)&&void 0!==l?l:t.phoneNumber,ipAddress:t.ipAddress,deviceInfo:y,billingAddress:t.billingAddress};return{id:t.paymentId,initiator:null!==(c=t.initiator)&&void 0!==c?c:Wu.Customer,returnUrl:t.returnUrl,webhookUrl:t.webhookUrl,order:u,payer:w,requisites:p}}}.build(e,r);return Boolean(this.payService)?this.payService.pay(c,u,a):this.http.post(c,u,a)}removeCard(e,r,i){const o=Lm({merchantId:r}),s=Rm({Authorization:i}),l=sl(this.config.get("billingProfiles"),`/api/UserPaymentMethods/${e}`);return this.http.delete(l,{params:o,headers:s})}}return n.\u0275fac=function(e){return new(e||n)(G(Yk,8),G(Np),G(Xk))},n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),EC=(()=>{class n{constructor(e,r,i){this.apiService=e,this.motoApmsService=r,this.dataService=i,this.state={isLoadCards:!1,isLoadApms:!1,isSentPayment:!1,isRemovedCard:!1,externalApms:new Set(this.motoApmsService.apmNames())},this.cards$=new Qr(null),this.apms$=new Qr(null),this.payment$=new Qr(null),this.settings$=new Qr(null),this.paymentResult$=new Qr(null),this.apmRecover=()=>xr([])}initPaymentChangedListener(){this.dataService.getStream("payment$").pipe(Rp(null),t8(e=>this.dataService.action(new xs("change-payment",e))),Yc(Boolean),Wa(100),t8(e=>{this.dataService.setState("isLoadCards",!0),this.dataService.setState("isLoadApms",!0),this.dataService.detect()}),Ua(e=>{const r=this.apiService.getUserPaymentMethods(e.merchantId,e.userAuthToken);return o8([r.pipe(en(s=>s.filter(a=>"card"===a.type.toLowerCase()).map(a=>a))),this.prepareApmsResponse(r.pipe(en(s=>s.filter(a=>"card"!==a.type.toLowerCase()).map(a=>a))))])}),this.dataService.untilDestroy()).subscribe(([e,r])=>{this.dataService.setState("isLoadCards",!1),this.dataService.setState("isLoadApms",!1),this.dataService.emitToStream("cards$",e),this.dataService.emitToStream("apms$",r),this.dataService.action(new xs("get-cards",e))})}loadCards(){this.dataService.setState("isLoadCards",!0);const{merchantId:e,userAuthToken:r}=this.dataService.getStreamValue("payment$");this.apiService.getUserPaymentMethods(e,r).pipe(en(i=>i.filter(o=>"card"===o.type.toLowerCase()).map(o=>o))).subscribe(i=>{this.dataService.setState("isLoadCards",!1),this.dataService.emitToStream("cards$",i),this.dataService.action(new xs("get-cards",i))})}pay(e){this.dataService.setState("isSentPayment",!0);const r=this.dataService.getStreamValue("payment$");this.apiService.pay(r,e).subscribe({next:o=>{this.dataService.action(new xs("pay",o))},error:this.dataService.errorHandler("error-pay")})}alternativePay(e){this.dataService.setState("isSentPayment",!0);const r=s=>{this.dataService.action(new xs("pay",s))},{type:i}=e.requisites,o=this.motoApmsService.get(i);o.isAvailable().subscribe(s=>{if(!s)return void this.dataService.errorHandler("error-pay");const a=this.dataService.getStreamValue("payment$");o.pay(a,e).pipe(Ua(l=>(e.requisites=Object.assign(Object.assign({},e.requisites),{token:l}),this.apiService.pay(a,e)))).subscribe({next:r,error:this.dataService.errorHandler("error-pay")})})}getPaymentInfo(e){const r=this.dataService.getStreamValue("payment$");return this.apiService.getPaymentInfo(r.merchantId,e)}removeCard(e){this.dataService.setState("isRemovedCard",!0);const{merchantId:r,userAuthToken:i}=this.dataService.getStreamValue("payment$");this.apiService.removeCard(e.id,r,i).subscribe(()=>{this.dataService.setState("isRemovedCard",!1),this.dataService.action(new xs("remove-card",e))})}prepareApmsResponse(e){return e.pipe(Ua(r=>this.prepareApms(r)),Es(this.apmRecover))}prepareApms(e){const{merchantId:r,userId:i,currency:o}=this.dataService.getStreamValue("payment$");return this.apiService.getApmLogos(r,i,o).pipe(en(s=>{let a=this.joinUserApmsAndApms(e,s);return this.sortApms(a)}),function KT(n){return Cn((t,e)=>{let r=!1;t.subscribe(an(e,i=>{r=!0,e.next(i)},()=>{r||e.next(n),e.complete()}))})}([]),Ua(s=>this.filterApms(s)))}joinUserApmsAndApms(e,r){return r.map(i=>{const o=e.findIndex(s=>s.name.toLocaleLowerCase()===i.name.toLocaleLowerCase());return o<0?{name:i.name,logo:i.logo,type:i.name}:Object.assign(Object.assign({},e[o]),{logo:i.logo})})}filterApms(e){const r=e.map(i=>this.motoApmsService.has(i.name)?this.motoApmsService.get(i.name).isAvailable().pipe(en(o=>o?i:null),Es(()=>xr(null))):xr(i));return r.length?o8(r).pipe(en(i=>i.filter(o=>o))):xr([])}sortApms(e){return e.sort((r,i)=>Number(!i.logo)-Number(!r.logo))}}return n.\u0275fac=function(e){return new(e||n)(G(eN),G(Fm),G(ju))},n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),tN=(()=>{class n{constructor(){this._close=new $e,this.showCloseButton=!0}close(){this._close.emit()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Dt({type:n,selectors:[["moto-pay-header"]],inputs:{showCloseButton:"showCloseButton"},outputs:{_close:"close"},decls:4,vars:1,consts:[[1,"__ndb-header"],[1,"__ndb-header-title","fz-24","fw-700"],["class","__ndb-header-close","data-tooltip","Close",4,"ngIf"],["data-tooltip","Close",1,"__ndb-header-close"],[1,"material-icons","pointer",3,"click"]],template:function(e,r){1&e&&(j(0,"header",0)(1,"h6",1),pe(2,"Checkout"),U(),J(3,kP,3,0,"div",2),U()),2&e&&(O(3),R("ngIf",r.showCloseButton))},directives:[Kn],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-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}),n})(),Ps=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Dt({type:n,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(e,r){1&e&&J(0,NP,2,2,"div",0),2&e&&R("ngIf",r.src)},directives:[Kn],styles:[".__ndb-picture[_ngcontent-%COMP%]{height:inherit;width:inherit}.__ndb-picture-tag[_ngcontent-%COMP%]{height:100%;width:100%;object-fit:cover}"],changeDetection:0}),n})();const Hi={formErrorMessages:{cardNumber:"Invalid card number",expiration:"Invalid card date",cvv:"Invalid card code"},result:{icons:{rejected:"cancel",needAction:"hourglass_bottom",completed:"check_circle"},titleText:{rejected:"Something went wrong",needAction:"Awaiting confirmation",completed:"We placed your order \u{1f389}"},descriptionText:{rejected:"Payment failed.",needAction:"Wait.....",completed:null}},urls:{merchantUrl:"@/payments/apms/applepay/merchantValidation",resources:"https://cdn.motopays.com"},keys:{postMessage:"__moto_pay_message"},error:{descriptionText:{"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","invalid-urls":'The field "urls" is required and processing/billingProfiles must to be set',"not-exist-settings":'Input parameter "settings" is required in the payment model'}}};let $m=(()=>{class n{transform(e){return`${Hi.urls.resources}/images/${e}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=at({name:"image",type:n,pure:!0}),n})(),nN=(()=>{class n{constructor(){}get isMastercardAvailable(){return this.isMastercardAvailableInternal()}get isVisaAvailable(){return this.isVisaAvailableInternal()}get isFooterVisible(){var e;return Boolean(null===(e=this.settings)||void 0===e?void 0:e.merchantInfo)||this.isMastercardAvailableInternal()||this.isVisaAvailableInternal()}isMastercardAvailableInternal(){var e,r,i;return null!==(i=null===(r=null===(e=this.settings)||void 0===e?void 0:e.availableCardBrands)||void 0===r?void 0:r.some(o=>"mastercard"==o))&&void 0!==i&&i}isVisaAvailableInternal(){var e,r,i;return null!==(i=null===(r=null===(e=this.settings)||void 0===e?void 0:e.availableCardBrands)||void 0===r?void 0:r.some(o=>"visa"==o))&&void 0!==i&&i}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Dt({type:n,selectors:[["moto-pay-footer"]],inputs:{settings:"settings"},decls:1,vars:1,consts:[["class","__ndb-footer",4,"ngIf"],[1,"__ndb-footer"],[4,"ngIf"],["class","__ndb-footer-secure",4,"ngIf"],["class","__ndb-footer-links",4,"ngIf"],["class","__ndb-footer-description fz-11 fw-500 font-description",4,"ngIf"],[1,"__ndb-footer-links"],[4,"ngFor","ngForOf"],["target","_blank",1,"__ndb-footer-links-link","fz-12","fw-500","font-description",3,"href"],["class","__ndb-footer-links-separator fz-12 fw-500 font-description",4,"ngIf"],[1,"__ndb-footer-links-separator","fz-12","fw-500","font-description"],[1,"__ndb-footer-description","fz-11","fw-500","font-description"],[1,"__ndb-footer-secure"],[1,"__ndb-footer-secure-phrase","fz-12","fw-500","font-description"],[1,"__ndb-footer-secure-logos"],["class","__ndb-footer-secure-logos-logo",3,"src",4,"ngIf"],[1,"__ndb-footer-secure-logos-logo",3,"src"]],template:function(e,r){1&e&&J(0,UP,3,2,"div",0),2&e&&R("ngIf",r.isFooterVisible)},directives:[Ps,Kn,Ds],pipes:[$m],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-footer[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:28px;padding:0 28px 28px}@media (max-width: 768px){.__ndb-footer[_ngcontent-%COMP%]{padding-bottom:14px}}.__ndb-footer-menu[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:16px}.__ndb-footer-menu-logo[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.__ndb-footer-menu-logo-img[_ngcontent-%COMP%]{height:32px;width:32px}.__ndb-footer-menu-items[_ngcontent-%COMP%]{display:flex;align-items:center}.__ndb-footer-menu-items-dot[_ngcontent-%COMP%]{display:block;width:2px;height:2px;margin:0 5px;border-radius:50%;background-color:#a5aabe}.__ndb-footer-menu-items-link[_ngcontent-%COMP%]{transition:color .3s cubic-bezier(.25,.1,.25,1)}.__ndb-footer-menu-items-link[_ngcontent-%COMP%]:hover{color:#555b75!important}.__ndb-footer-links[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-wrap:wrap}.__ndb-footer-links-link[_ngcontent-%COMP%]{white-space:nowrap;text-decoration-line:underline}.__ndb-footer-links-separator[_ngcontent-%COMP%]{margin:0 10px;white-space:nowrap}.__ndb-footer-description[_ngcontent-%COMP%]{line-height:1.1;color:#000}.__ndb-footer-secure[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;gap:10px}.__ndb-footer-secure-phrase[_ngcontent-%COMP%]{color:#000}.__ndb-footer-secure-logos[_ngcontent-%COMP%]{display:flex;justify-content:center}.__ndb-footer-secure-logos-logo[_ngcontent-%COMP%]{height:40px}"],changeDetection:0}),n})();class Vm{constructor(t){this.animationTime=Bi.DEFAULT_ANIMATE_MS,Object.assign(this,t)}}const rN=Ms("ANHeight",[Pr(":enter",[At({overflow:"hidden",height:"0px"}),Ir(Bi.DEFAULT_ANIMATE_MS,At({height:"*",overflow:"hidden"}))]),Pr(":leave",[At({height:"*",overflow:"hidden"}),Ir(Bi.DEFAULT_ANIMATE_MS,At({height:"0px",overflow:"hidden"}))])]),iN=Ms("ANScale",[Pr(":enter",[At({opacity:0,transform:"scale(0)"}),Ir(Bi.DEFAULT_ANIMATE_MS,At({opacity:1,transform:"scale(1)"}))]),Pr(":leave",Ir(Bi.DEFAULT_ANIMATE_MS,At({opacity:0,transform:"scale(0)"})))]),MC=n=>{const t=new Vm({animationName:"ANTransform",fromStyles:{opacity:"0",transform:"translateY(-100%)"},toStyles:{opacity:"1",transform:"translateY(0%)"}}),e=Object.assign(t,n),{animationName:r,animationTime:i,fromStyles:o,toStyles:s}=e;return Ms(r,[Pr(":enter",[At(o),Ir(i,At(s))]),Pr(":leave",[At(s),Ir(i,At(o))])])},oN=n=>{const t=new Vm({animationName:"ANStates",fromState:"a",toState:"b"}),e=Object.assign(t,n),{animationName:r,animationTime:i,fromStyles:o,toStyles:s,fromState:a,toState:l}=e;return Ms(r,[qa(a,At(o)),qa(l,At(s)),Pr(`${a}<=>${l}`,Ir(i))])},sN=n=>{const t=new Vm({animationName:"ANStates"}),e=Object.assign(t,n),{animationName:r,animationTime:i,fromStyles:o,toStyles:s}=e;return Ms(r,[Pr(":enter",[At(o),Ir(i,At(s))]),Pr(":leave",[At(s),Ir(i,At(o))])])};let SC=(()=>{class n{constructor(){this.shadow=!0}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Dt({type:n,selectors:[["moto-loader"]],hostVars:1,hostBindings:function(e,r){2&e&&wc("@ANFade",r.fadeAnimation)},inputs:{shadow:"shadow"},decls:3,vars:5,consts:[[1,"__ndb-loader"],["alt","spinner",1,"__ndb-loader-picture",3,"src"]],template:function(e,r){1&e&&(j(0,"div",0),je(1,"moto-picture",1),xe(2,"image"),U()),2&e&&(Dr("shadow",r.shadow),O(1),R("src",Nn(2,3,"spinner-small.gif")))},directives:[Ps],pipes:[$m],styles:[".__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:[sN({animationName:"ANFade",fromStyles:{opacity:"0"},toStyles:{opacity:"1"}})]},changeDetection:0}),n})();const Bm=new ae("moto-window-document",{providedIn:"root",factory:()=>window});function TC(n){return n&&n.replace(/\s+/g," ").trim()}let jm=(()=>{class n{constructor(e,r){this.cdr=e,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.mask=null,this.validate=!0,this.dropSpecialCharacters=!0,this._paste=new $e}ngOnInit(){this.initFormControl()}initFormControl(){this.formControl=this.injector.get(mi)}get isInvalidControl(){return"invalid"===this.status||function lN(n){const{invalid:t,pristine:e,touched:r}=n;return t&&r&&!e}(this.formControl)&&this.validate}setValue(e){this.value=TC(e),this.onChange(e),this.cdr.detectChanges()}paste(e){e.stopPropagation(),setTimeout(()=>{this._paste.emit(e.target.value),this.cdr.detectChanges()})}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}writeValue(e){this.value=TC(e),this.cdr.detectChanges()}setDisabledState(e){this.disabled=e,this.cdr.detectChanges()}}return n.\u0275fac=function(e){return new(e||n)(I(Ra),I(St))},n.\u0275cmp=Dt({type:n,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:[nt([{provide:Zn,useExisting:We(()=>n),multi:!0}])],ngContentSelectors:GP,decls:8,vars:13,consts:[[1,"__ndb-form-control"],[1,"__ndb-form-control-affix"],[1,"__ndb-input-container"],[1,"__ndb-form-control-input",3,"type","placeholder","minlength","maxlength","mask","dropSpecialCharacters","ngModel","ngModelChange","blur","paste"],["inputRef",""]],template:function(e,r){1&e&&(function By(n){const t=k()[16][6];if(!t.projection){const r=t.projection=aa(n?n.length:1,null),i=r.slice();let o=t.child;for(;null!==o;){const s=n?I9(o,n):0;null!==s&&(i[s]?i[s].projectionNext=o:r[s]=o,i[s]=o),o=o.next}}}(zP),j(0,"div",0)(1,"div",1),Cf(2),U(),j(3,"div",2)(4,"input",3,4),ke("ngModelChange",function(o){return r.setValue(o)})("blur",function(){return r.onTouched()})("paste",function(o){return r.paste(o)}),U()(),j(6,"div",1),Cf(7,1),U()()),2&e&&(Dr("transparent",r.transparent)("invalid",r.isInvalidControl),O(4),R("type",r.type)("placeholder",r.placeholder)("minlength",r.minlength)("maxlength",r.maxlength)("mask",r.mask)("dropSpecialCharacters",r.dropSpecialCharacters)("ngModel",r.value),yn("data-locator",r.formControlName||r.placeholder)("autocomplete",r.autocomplete))},directives:[JA,ru,_u,tl,Za,mu],styles:[""],changeDetection:0}),n})();const hN={"form-field-length":bo};let Hm=(()=>{class n{transform(e,r){const o=hN[r][e];if(function qk(n){return!function CC(n){return null==n}(n)}(o))return o;throw new Error(`Value of the key "${e}" of the enum does not exist.`)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=at({name:"enum",type:n,pure:!0}),n})(),ll=(()=>{class n{transform(e,r,i){return Boolean(e)?r:i}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=at({name:"condition",type:n,pure:!0}),n})(),AC=(()=>{class n extends il{constructor(e,r){super(e),this.injector=e,this.fb=r,this.isErrorSubmit=!1}ngOnInit(){this.initForm(),this.initFormValueListener()}initForm(){this.form=this.fb.group({phoneNumber:[null,[pi.maxLength(bo.MAX_TEL),pi.minLength(bo.MIN_TEL)]]})}initFormValueListener(){this.form.valueChanges.pipe(Rp(null),Wa(50),a8(),Yc(([e,r])=>JSON.stringify(e)!==JSON.stringify(r)),this.untilDestroy()).subscribe(e=>{this.isErrorSubmit=!1,this.detect()})}get isInvalidForm(){return this.form.invalid}get isInvalidPhone(){return this.form.get("phoneNumber").invalid&&this.isErrorSubmit}getFormValue(){return this.form.value}setErrorSubmitStatus(e){this.isErrorSubmit=e,this.detect()}resetForm(){this.form.reset(),this.localDetect()}}return n.\u0275fac=function(e){return new(e||n)(I(St),I(yw))},n.\u0275cmp=Dt({type:n,selectors:[["moto-pay-additional-form"]],inputs:{settings:"settings"},exportAs:["additionalFormRef"],features:[Le],decls:2,vars:2,consts:[[1,"__ndb-form",3,"formGroup"],["class","__ndb-form-stage",4,"ngIf"],[1,"__ndb-form-stage"],[1,"__ndb-form-stage-header"],[1,"__ndb-form-stage-header-title","fz-14","fw-500"],["class","__ndb-form-stage-header-error fz-14 fw-500 font-error","data-locator","phone-error",4,"ngIf"],[1,"__ndb-form-stage-controls"],["formControlName","phoneNumber","placeholder","Phone number","autocomplete","tel","type","tel",3,"minlength","maxlength","validate","status"],["data-locator","phone-error",1,"__ndb-form-stage-header-error","fz-14","fw-500","font-error"]],template:function(e,r){1&e&&(j(0,"form",0),J(1,qP,10,15,"div",1),U()),2&e&&(R("formGroup",r.form),O(1),R("ngIf",r.settings.isPhoneNumberFieldVisible))},directives:[jm,rm,Up,el,Kn,Za,yu,_u,tl],pipes:[Hm,ll],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-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:28px;margin-top:10px}.__ndb-form-stage[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}.__ndb-form-stage-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:10px}.__ndb-form-stage-controls_credentials[_ngcontent-%COMP%]{border:1px solid #c9ccd8;border-radius:4px;box-shadow:0 2px #29304d14}.__ndb-form-stage-controls_credentials.invalid[_ngcontent-%COMP%]{border-color:#eb001b}.__ndb-form-stage-controls_credentials.invalid[_ngcontent-%COMP%] .__ndb-form-stage-controls-separator[_ngcontent-%COMP%]{background-color:#eb001b}.__ndb-form-stage-controls_card-number-logo[_ngcontent-%COMP%]{height:24px;width:36px}.__ndb-form-stage-controls-separator[_ngcontent-%COMP%]{background-color:#c9ccd8}.__ndb-form-stage-controls-separator_x[_ngcontent-%COMP%]{height:.5px}.__ndb-form-stage-controls-separator_y[_ngcontent-%COMP%]{width:.5px}.__ndb-form-stage-controls-group[_ngcontent-%COMP%]{display:flex;border-top:none}.__ndb-form-stage-controls-group[_ngcontent-%COMP%] moto-form-input[_ngcontent-%COMP%]{width:50%}"],data:{animation:[MC()]},changeDetection:0}),n})();const fN={"american-express":[3,4]};class Ku{static luhnAlgorithm({value:t}){return Boolean(t)&&function pN(n){return/^\d+$/.test(n)&&!(n.split("").reverse().map(function(t,e){return t=parseInt(t,10),e%2==0?t:(t*=2)>9?t-9:t}).reduce(function(t,e){return t+e})%10)}(t)?null:{luhnAlgorithm:!0}}static cardExpiration({value:t}){const e={expiration:!0};if(t){if(t.length<4)return e;const i=+(new Date).getFullYear().toString().slice(-2),[o,s,a,l]=t.split(""),c=`${o}${s}`,f=+`${a}${l}`<i;return+c<1||+c>12||f?e:null}return e}static cardNumberLength({value:t}){const e=(null==t?void 0:t.length)||0;return e>=ol.MIN_CARD_NUMBER_LENGTH&&e<=ol.MAX_CARD_NUMBER_LENGTH?null:{cardLength:!0}}static cardCodeLength(t="cardNumber"){return({value:e,parent:r})=>{const i=null==r?void 0:r.get(t),[o]=nu(null==i?void 0:i.value),s=Boolean(null==o?void 0:o.code.size)&&Boolean(e),a=fN[null==o?void 0:o.type];return s&&((null==o?void 0:o.code.size)===(null==e?void 0:e.length)||(null==a?void 0:a.includes(null==e?void 0:e.length)))?null:{cardCodeLength:!0}}}}let cl=(()=>{class n{constructor(e,r){this.viewContainer=e,this.tpl=r,this.context={motoLet:null}}set _motoLet(e){this.context.motoLet=e}ngOnInit(){this.viewContainer.createEmbeddedView(this.tpl,this.context)}}return n.\u0275fac=function(e){return new(e||n)(I(Sr),I(Kr))},n.\u0275dir=fe({type:n,selectors:[["","motoLet",""]],inputs:{_motoLet:["motoLet","_motoLet"]}}),n})(),IC=(()=>{class n{transform(e){const r=ji[e];let i=null==r?void 0:r.toString();return i?(r==ji.visa&&(i+="-brand"),r==ji.mastercard&&(i+="-brand"),r?`${Hi.urls.resources}/images/${i}.svg`:null):null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=at({name:"brandLogo",type:n,pure:!0}),n})(),Zu=(()=>{class n{transform(e,r,i=null){const[o]=nu(e);if(!o)return 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 Uu[o.type];case"code":return o.code.name;case"code-mask":{const{size:s}=o.code;return Array.from({length:s}).fill("0").join("")}}}getLogo(e){return e?`${Hi.urls.resources}/images/${ji[e.type]||ji.default}.svg`:null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=at({name:"cardInfo",type:n,pure:!0}),n})(),PC=(()=>{class n extends il{constructor(e,r){super(e),this.injector=e,this.fb=r,this.isErrorSubmit=!1,this.availableCardBrands=[],this.creadentialErrorMessages=Co(Hi,["formErrorMessages"])}ngOnInit(){this.initForm(),this.initFormValueListener()}initForm(){this.form=this.fb.group({cardCredentials:this.fb.group({cardNumber:[null,[pi.required,Ku.luhnAlgorithm,Ku.cardNumberLength]],expiration:[null,[pi.required,pi.minLength(4),pi.maxLength(4),Ku.cardExpiration]],cvv:[null,[pi.required,Ku.cardCodeLength()]]}),cardHolder:[null,[pi.required,pi.maxLength(bo.MAX_CARD_HOLDER)]]})}initFormValueListener(){this.form.valueChanges.pipe(Rp(null),Wa(50),a8(),Yc(([e,r])=>JSON.stringify(e)!==JSON.stringify(r)),this.untilDestroy()).subscribe(e=>{this.isErrorSubmit=!1,this.detect()})}get isInvalidForm(){return this.form.invalid}get isInvalidCredentials(){return this.form.get("cardCredentials").invalid&&this.isErrorSubmit}get isInvalidHolder(){return this.form.get("cardHolder").invalid&&this.isErrorSubmit}pasteCardNumber(e){const r=function aN(n){return n.replace(/\s/g,"")}(e);this.form.get("cardCredentials").get("cardNumber").setValue(r,{onlySelf:!0}),function dN(n,t,e=null,r=!0){t.forEach(i=>{const o=n.get(i);o||function Wk(n){throw new Error(n)}(`Invalid form control name: "${i}"`),o.reset(e),r&&o.updateValueAndValidity()})}(this.form.get("cardCredentials"),["expiration","cvv"]),this.detect()}get paymentsErrorMsg(){const e=this.form.get("cardCredentials"),[r]=function uN(n){return function cN(n){return Object.entries(n.controls).filter(([t,e])=>e.invalid)}(n).map(([t])=>t)}(e);return r?this.creadentialErrorMessages[r]:null}getFormValue(){const{cardCredentials:e,cardHolder:r,phoneNumber:i}=this.form.value;return Object.assign(e,{cardHolder:r,phoneNumber:i})}get cardNumberValue(){return this.form.value.cardCredentials.cardNumber}setErrorSubmitStatus(e){this.isErrorSubmit=e,this.detect()}resetForm(){this.form.reset(),this.localDetect()}}return n.\u0275fac=function(e){return new(e||n)(I(St),I(yw))},n.\u0275cmp=Dt({type:n,selectors:[["moto-pay-card-form"]],inputs:{settings:"settings"},exportAs:["cardFormRef"],features:[Le],decls:17,vars:15,consts:[[1,"__ndb-form",3,"formGroup"],["class","__ndb-form-stage",4,"ngIf"],[1,"__ndb-form-stage"],[1,"__ndb-form-stage-header"],[1,"__ndb-form-stage-header-title","fz-14","fw-500"],["class","__ndb-form-stage-header-error fz-14 fw-500 font-error","data-locator","card-credentials-error",4,"ngIf"],["class","__ndb-form-stage-controls __ndb-form-stage-controls_credentials","formGroupName","cardCredentials",3,"invalid",4,"motoLet"],["class","__ndb-form-stage-header-error fz-14 fw-500 font-error","data-locator","card-holder-error",4,"ngIf"],[1,"__ndb-form-stage-controls"],["formControlName","cardHolder","placeholder","Name on card","autocomplete","cc-name",3,"maxlength","validate","status"],[1,"__ndb-form-stage-paymentsheader"],[1,"__ndb-form-stage-payments"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"__ndb-form-stage-controls_card-number-logo",3,"src"],["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"],["formControlName","cardNumber","placeholder","Card number","type","tel","autocomplete","cc-number",1,"__ndb-form-stage-controls_card-number",3,"mask","transparent","validate","status","paste"],["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"],["formControlName","expiration","placeholder","MM / YY","mask","00 / 00","type","tel","autocomplete","cc-exp",1,"__ndb-form-stage-controls_expiration",3,"transparent","validate","status"],[1,"__ndb-form-stage-controls-separator","__ndb-form-stage-controls-separator_y"],["formControlName","cvv","type","tel",1,"__ndb-form-stage-controls_cvv",3,"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"]],template:function(e,r){1&e&&(j(0,"form",0),J(1,QP,6,1,"div",1),j(2,"div",2)(3,"div",3)(4,"h6",4),pe(5," Payment details "),U(),J(6,YP,2,2,"span",5),U(),J(7,JP,19,48,"div",6),U(),j(8,"div",2)(9,"div",3)(10,"h6",4),pe(11,"Name on card"),U(),J(12,XP,2,1,"span",7),U(),j(13,"div",8),je(14,"moto-form-input",9),xe(15,"enum"),xe(16,"condition"),U()()()),2&e&&(R("formGroup",r.form),O(1),R("ngIf",null==r.settings||null==r.settings.availableCardBrands?null:r.settings.availableCardBrands.length),O(5),R("ngIf",r.isInvalidCredentials),O(1),R("motoLet",r.getFormValue()),O(5),R("ngIf",r.isInvalidHolder),O(2),R("maxlength",lr(15,8,"MAX_CARD_HOLDER","form-field-length"))("validate",!1)("status",On(16,11,r.isInvalidHolder,"invalid","valid")))},directives:[Ps,jm,rm,Up,el,Kn,Ds,cl,gu,Za,yu,tl],pipes:[IC,Zu,ll,Hm],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-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:28px}.__ndb-form-stage[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}.__ndb-form-stage-payments[_ngcontent-%COMP%]{gap:10px;display:flex;justify-content:center}.__ndb-form-stage-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:10px}.__ndb-form-stage-paymentsheader[_ngcontent-%COMP%]{justify-content:center;display:flex;align-items:center;gap:10px}.__ndb-form-stage-controls_credentials[_ngcontent-%COMP%]{border:1px solid #c9ccd8;border-radius:4px;box-shadow:0 2px #29304d14}.__ndb-form-stage-controls_credentials.invalid[_ngcontent-%COMP%]{border-color:#eb001b}.__ndb-form-stage-controls_credentials.invalid[_ngcontent-%COMP%] .__ndb-form-stage-controls-separator[_ngcontent-%COMP%]{background-color:#eb001b}.__ndb-form-stage-controls_card-number-logo[_ngcontent-%COMP%]{height:24px;width:36px}.__ndb-form-stage-controls-separator[_ngcontent-%COMP%]{background-color:#c9ccd8}.__ndb-form-stage-controls-separator_x[_ngcontent-%COMP%]{height:.5px}.__ndb-form-stage-controls-separator_y[_ngcontent-%COMP%]{width:.5px}.__ndb-form-stage-controls-group[_ngcontent-%COMP%]{display:flex;border-top:none}.__ndb-form-stage-controls-group[_ngcontent-%COMP%] moto-form-input[_ngcontent-%COMP%]{width:50%}"],data:{animation:[MC()]},changeDetection:0}),n})();class mN{constructor(t,e=!1){this.card=t,this.selected=e}setSelected(t){this.selected=t}}let gN=(()=>{class n{constructor(){this.isOpenPopup=!1,this.popupid=function zk(n=1){return window.crypto.getRandomValues(new Uint32Array(n)).toString()}(),this._select=new $e,this._remove=new $e}hidePopup(e){const r=e.closest("[data-card-popup]");(null==r?void 0:r.getAttribute("data-card-popup"))===this.popupid||this.setPopupState(!1)}setPopupState(e){this.isOpenPopup=e}select(){this.option.selected||this._select.emit(this.option)}remove(){this._remove.emit(this.option.card),this.setPopupState(!1)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Dt({type:n,selectors:[["moto-pay-card"]],hostBindings:function(e,r){1&e&&ke("click",function(o){return r.hidePopup(o.target)},!1,f0)},inputs:{option:"option"},outputs:{_select:"select",_remove:"remove"},decls:16,vars:17,consts:[[1,"__ndb-card"],["data-locator","card-active-circle",1,"__ndb-card-active-circle",3,"click"],["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"]],template:function(e,r){1&e&&(j(0,"div",0)(1,"div",1),ke("click",function(){return r.select()}),U(),je(2,"moto-picture",2),xe(3,"cardInfo"),j(4,"span",3),pe(5),xe(6,"cardInfo"),U(),j(7,"span",4),pe(8),xe(9,"slice"),U(),j(10,"div",5)(11,"i",6),ke("click",function(){return r.setPopupState(!r.isOpenPopup)}),pe(12,"more_vert"),U(),j(13,"div",7)(14,"span",8),ke("click",function(){return r.remove()}),pe(15,"Remove card"),U()()()()),2&e&&(O(1),Dr("selected",r.option.selected),O(1),R("src",lr(3,8,r.option.card.name,"logo")),O(3),Wr(lr(6,11,r.option.card.name,"payment-system")),O(3),Wr(lr(9,14,r.option.card.name,-6)),O(2),yn("data-card-popup",r.popupid),O(3),Dr("open",r.isOpenPopup))},directives:[Ps],pipes:[Zu,Cp],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[_ngcontent-%COMP%]{--ndb-card-border-inner: var(--ndb-card-border, $mercury);display:flex;align-items:center;border:1px solid var(--ndb-card-border-inner);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: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: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 show-popup{0%{opacity:0;transform:translate(-60%,50%)}to{opacity:1;transform:translate(-60%)}}@keyframes mobile-show-popup{0%{opacity:0;transform:translate(-70%,50%)}to{opacity:1;transform:translate(-70%)}}'],changeDetection:0}),n})(),kC=(()=>{class n{constructor(){this._select=new $e,this._remove=new $e}set _cards(e){if(e){e=this.sortCards(e);const r=this.transformToCardOptions(e);this.selectDefaultCard(r),this.cardOptions=r,this.childrenDetector$.next()}}selectDefaultCard(e){const r=this.getSelectedCard(),i=e.find(o=>o.card.id===(null==r?void 0:r.card.id))||e[0];i&&i.setSelected(!0)}sortCards(e){return e.concat().sort(r=>r.isDefault?-1:1)}transformToCardOptions(e){return e.map(r=>new mN(r))}selectCard(e){const r=this.cardOptions.find(i=>i.selected);null==r||r.setSelected(!1),e.setSelected(!0),this._select.emit(e)}resetSeleted(){const e=this.getSelectedCard();e&&e.setSelected(!1)}getSelectedCard(){var e;return null===(e=this.cardOptions)||void 0===e?void 0:e.find(r=>r.selected)}removeCard(e){this._remove.emit(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Dt({type:n,selectors:[["moto-pay-card-list"]],inputs:{childrenDetector$:["childrenDetector","childrenDetector$"],_cards:["cards","_cards"]},outputs:{_select:"select",_remove:"remove"},exportAs:["cardListRef"],decls:4,vars:2,consts:[[1,"__ndb-card-list"],[4,"ngIf","ngIfElse"],["emptyTpl",""],["class","__ndb-card-list-item",3,"option","select","remove",4,"ngFor","ngForOf"],[1,"__ndb-card-list-item",3,"option","select","remove"],[1,"font-empty"]],template:function(e,r){if(1&e&&(j(0,"div",0),J(1,tk,2,1,"ng-container",1),U(),J(2,nk,2,0,"ng-template",null,2,uo)),2&e){const i=io(3);O(1),R("ngIf",null==r.cardOptions?null:r.cardOptions.length)("ngIfElse",i)}},directives:[gN,Kn,Ds],styles:[".__ndb-card-list[_ngcontent-%COMP%]{display:flex;flex-direction:column}.__ndb-card-list-item[_ngcontent-%COMP%]{width:100%}.__ndb-card-list-item[_ngcontent-%COMP%]:not(:first-child){margin-top:10px}"],changeDetection:0}),n})(),NC=(()=>{class n extends il{constructor(){super(...arguments),this.checkboxesResults=[],this.isErrorSubmit=!1}termsApproved(){var e,r,i;return!(null===(r=null===(e=this.chargeTerms)||void 0===e?void 0:e.checkboxes)||void 0===r?void 0:r.length)||!(null===(i=this.chargeTerms)||void 0===i?void 0:i.visible)||this.chargeTerms.checkboxes.filter(o=>o).length===this.checkboxesResults.filter(o=>o).length}onChange(){this.isErrorSubmit=!1}setErrorSubmitStatus(e){this.isErrorSubmit=e,this.detect()}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=nn(n)))(r||n)}}(),n.\u0275cmp=Dt({type:n,selectors:[["charge-terms"]],inputs:{chargeTerms:"chargeTerms"},features:[Le],decls:1,vars:1,consts:[["class","__ndb-chargeterms",4,"ngIf"],[1,"__ndb-chargeterms"],[4,"ngIf"],["class","__ndb-chargeterms-text fz-11 fw-500 font-description",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"__ndb-chargeterms-checkbox","fz-11","fw-500","font-description"],["type","checkbox",1,"__ndb-chargeterms-checkbox-input",3,"name","id","ngModel","ngModelChange"],[1,"__ndb-chargeterms-checkbox-checkmark"],[1,"__ndb-chargeterms-checkbox-text"],["target","_blank","class","__ndb-chargeterms-checkbox-link fz-12 fw-500 font-description",3,"href",4,"ngIf"],["target","_blank",1,"__ndb-chargeterms-checkbox-link","fz-12","fw-500","font-description",3,"href"],[1,"__ndb-chargeterms-text","fz-11","fw-500","font-description"]],template:function(e,r){1&e&&J(0,lk,3,2,"div",0),2&e&&R("ngIf",null==r.chargeTerms?null:r.chargeTerms.visible)},directives:[Kn,Ds,Vp,Za,mu],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-chargeterms[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;margin-top:28px}.__ndb-chargeterms-checkbox[_ngcontent-%COMP%]{display:block;cursor:pointer}.__ndb-chargeterms-checkbox-input[_ngcontent-%COMP%]{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.__ndb-chargeterms-checkbox[_ngcontent-%COMP%]:hover .__ndb-chargeterms-checkbox-input[_ngcontent-%COMP%] ~ .__ndb-chargeterms-checkbox-checkmark[_ngcontent-%COMP%]{background-color:#ccc}.__ndb-chargeterms-checkbox-input[_ngcontent-%COMP%]:checked ~ .__ndb-chargeterms-checkbox-checkmark[_ngcontent-%COMP%]{background-color:#2196f3}.__ndb-chargeterms-checkbox-input[_ngcontent-%COMP%]:checked ~ .__ndb-chargeterms-checkbox-checkmark[_ngcontent-%COMP%]:after{display:block;left:6px;top:3px;width:5px;height:10px;border:solid white;border-width:0 3px 3px 0;transform:rotate(45deg)}.__ndb-chargeterms-checkbox-text[_ngcontent-%COMP%]{display:inline;vertical-align:middle}.__ndb-chargeterms-checkbox-checkmark[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;height:20px;width:20px;background-color:#fff;border-radius:100px;border:1px solid #dcdcdc;margin-right:5px;transform:rotate(0)}.__ndb-chargeterms-checkbox-checkmark[_ngcontent-%COMP%]:after{content:"";position:absolute;display:none}.__ndb-chargeterms-checkbox-checkmark.invalid[_ngcontent-%COMP%]{border:1px solid red}.__ndb-chargeterms-checkbox-checkmark.invalid[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:-2px;border:2px solid red;pointer-events:none}.__ndb-chargeterms-checkbox-link[_ngcontent-%COMP%]{display:inline;margin-left:10px;white-space:nowrap;text-align:center;text-decoration-line:underline}.__ndb-chargeterms-text[_ngcontent-%COMP%]{margin-top:10px;line-height:1.1;color:#000}'],changeDetection:0}),n})(),CN=(()=>{class n{constructor(){this._pay=new $e}pay(e){this._pay.emit(e)}trackByApm(e,r){return r.name}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Dt({type:n,selectors:[["moto-pay-apm-list"]],inputs:{apms:"apms"},outputs:{_pay:"pay"},decls:5,vars:3,consts:[["class","__ndb-apm-list",4,"motoLet"],["apmDefaultRef",""],["applePayRef",""],[1,"__ndb-apm-list"],[1,"__ndb-apm-list__delimiter"],[1,"__ndb-apm-list__delimiter-text","fz-12"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"__ndb-apm-list__item",3,"click"],[1,"__ndb-apm-list__item-img",3,"src","alt"],["motoApplePayButton","",1,"__ndb-apm-list__item--space_top-2","moto-apple-pay-button",3,"buttonClick"]],template:function(e,r){if(1&e&&(J(0,dk,5,2,"div",0),J(1,hk,2,2,"ng-template",null,1,uo),J(3,fk,1,0,"ng-template",null,2,uo)),2&e){const i=io(4);R("motoLet",Nf(1,pk,i))}},directives:[cl,Ds,_v,Ex],pipes:[ll],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-apm-list[_ngcontent-%COMP%]{padding-top:29px}.__ndb-apm-list__delimiter[_ngcontent-%COMP%]{position:relative;margin-bottom:25px;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:"";position:absolute;top:50%;height:1px;width:45%;background-color:#c9ccd8}.__ndb-apm-list__delimiter[_ngcontent-%COMP%]:before{left:0}.__ndb-apm-list__delimiter[_ngcontent-%COMP%]:after{right:0}.__ndb-apm-list__delimiter-text[_ngcontent-%COMP%]{font-weight:500;color:#636b8a}.__ndb-apm-list__item[_ngcontent-%COMP%]{position:relative;width:100%;height:60px;margin-bottom:10px;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;cursor:pointer}.__ndb-apm-list__item[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}.__ndb-apm-list__item[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px #2f45704d}.__ndb-apm-list__item-space_top-2[_ngcontent-%COMP%]{margin-top:10px}.__ndb-apm-list__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%}'],changeDetection:0}),n})(),OC=(()=>{class n{constructor(e){this.window=e}transform(e,r){const i=Hu[r];return Number(e).toLocaleString(this.window.navigator.language,{style:"currency",currency:i})}}return n.\u0275fac=function(e){return new(e||n)(I(Bm,16))},n.\u0275pipe=at({name:"currencySymbol",type:n,pure:!0}),n})(),FC=(()=>{class n{transform(e,r,i){return r&&i&&i==qu.Net?Math.abs(e)+Math.abs(r):e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=at({name:"price",type:n,pure:!0}),n})(),bN=(()=>{class n extends il{constructor(e,r,i,o,s,a){super(r),this.window=e,this.injector=r,this.toastr=i,this.dataService=o,this.viewService=s,this.facadeService=a,this.postMessageKey=Co(Hi,["keys","postMessage"]),this.externalApms=this.dataService.getState("externalApms"),this.cards$=this.dataService.getStream("cards$"),this.apms$=this.dataService.getStream("apms$"),this.payment$=this.dataService.getStream("payment$"),this.settings$=this.dataService.getStream("settings$"),this.viewState=this.viewService.getFullState()}ngOnInit(){this.updateCardTypes(),this.listenActions(),this.listenErrors(),this.listenChildrenDetection("local")}listenActions(){this.dataService.listenActions().pipe(this.untilDestroy()).subscribe(({type:e,payload:r})=>{switch(e){case"get-cards":this.afterGetCards(r);break;case"change-payment":this.afterChangePayment();break;case"pay":this.afterPay(r);break;case"remove-card":this.afterRemoveCard()}this.detect()})}listenErrors(){this.dataService.listenErrors().pipe(this.untilDestroy()).subscribe(({type:r})=>{switch(r){case"error-get-cards":this.dataService.setState("isLoadCards",!1);break;case"error-remove-card":this.dataService.setState("isRemovedCard",!1);break;case"error-pay":this.dataService.setState("isSentPayment",!1)}this.closeWindow(),this.detect()})}updateCardTypes(){nu.updateCard(nu.types.MAESTRO,{niceType:"Maestro",lengths:[13,16]})}openWindow(){const{window:e}=this.viewService.getFullState();if(!Boolean(e)){const r=this.window.open("","_blank");r.document.write(function wN(){let o='\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">payment processing</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>'.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?.threeDsData?.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}()),this.viewService.setState("window",r)}}closeWindow(){const e=this.viewService.getState("window");Boolean(e)&&(e.close(),this.viewService.setState("window",null))}defaultPay(e){this.facadeService.pay(e),this.openWindow()}toggleCardList(){this.viewService.setState("isShowCardList",!this.viewState.isShowCardList),this.detect()}showCardForm(){this.viewService.setState("isShowCardForm",!0),this.viewService.setState("isShowCardList",!1),this.cardListRef.resetSeleted(),this.detect()}get currentCardNumber(){const e=this.cardListRef.getSelectedCard(),{isShowCardForm:r}=this.viewState;return e?e.card.name:r?this.cardFormRef.getFormValue().cardNumber:null}selectCard(){this.viewService.setState("isShowCardForm",!1),this.detect()}removeCard(e){this.facadeService.removeCard(e),this.detect()}submit(){var e;const r=null===(e=this.cardListRef)||void 0===e?void 0:e.getSelectedCard();switch(!0){case Boolean(r):this.payWithCard(r.card);break;case Boolean(this.viewState.isShowCardForm):this.payWithForm();break;default:this.viewService.setState("isShowCardForm",!0),this.toastr.info("Please fill out the form",Is.INFO_TITLE)}this.detect()}apmSubmit(e){if(this.checkChargeTermsInvalid())return this.detect();const r={requisites:e,paymentType:e.type,rebillAnchor:e.rebill};this.externalApms.has(e.type)?this.facadeService.alternativePay(r):this.defaultPay(r),this.detect()}payWithCard(e){if(this.checkChargeTermsInvalid())return this.detect();this.defaultPay({requisites:e,paymentType:"card",rebillAnchor:e.rebill}),this.detect()}payWithForm(){const e=this.checkCardFormInvalid(),r=this.checkChargeTermsInvalid();if(e||r)return this.detect();const i=this.cardFormRef.getFormValue(),o=this.additionalFormRef.getFormValue();this.defaultPay({requisites:i,paymentType:"card",additionalFields:o}),this.detect()}afterPay(e){var r;"needAction"===(null===(r=e.payment)||void 0===r?void 0:r.state)?(this.handleConfirmation(e.action),this.waitingPaymentCompleted(e)):this.showResultComponent(e)}showResultComponent(e){this.closeWindow(),this.dataService.setState("isSentPayment",!1),this.dataService.emitToStream("paymentResult$",e)}postRedirect(e){this.viewService.getState("window").postMessage({key:this.postMessageKey,type:"postRedirect",threeDsData:e})}apmRedirect(e){this.viewService.getState("window").postMessage({key:this.postMessageKey,type:"simpleRedirect",threeDsData:e})}handleConfirmation(e){switch(e.name){case"3ds":this.postRedirect(e.data);break;case"redirect":this.apmRedirect(e.data);break;default:throw new Error("Unexpected action name")}}checkCardFormInvalid(){return!!this.cardFormRef.isInvalidForm&&(this.cardFormRef.setErrorSubmitStatus(!0),!0)}checkChargeTermsInvalid(){return!(!this.chargeTermsRef||this.chargeTermsRef.termsApproved()||(this.chargeTermsRef.setErrorSubmitStatus(!0),0))}waitingPaymentCompleted(e){(function Qk(n,t,e){return n.pipe(en(r=>{if(t(r))return r;throw new Error(DC)}),function $T(n=1/0){let t;t=n&&"object"==typeof n?n:{count:n};const{count:e=1/0,delay:r,resetOnSuccess:i=!1}=t;return e<=0?ko:Cn((o,s)=>{let l,a=0;const c=()=>{let u=!1;l=o.subscribe(an(s,d=>{i&&(a=0),s.next(d)},void 0,d=>{if(a++<e){const f=()=>{l?(l.unsubscribe(),l=null,c()):u=!0};if(null!=r){const p="number"==typeof r?Xv(r):nr(r(d,a)),y=an(s,()=>{y.unsubscribe(),f()},()=>{s.complete()});p.subscribe(y)}else f()}else s.error(d)})),u&&(l.unsubscribe(),l=null,c())};c()})}({delay:r=>{if(r.message==DC)return Xv(e);throw r}}))})(this.facadeService.getPaymentInfo(e.payment.paymentId),i=>"needAction"!=i.payment.state,1500).subscribe(i=>{var o;this.showResultComponent(i),null===(o=this.viewState.window)||void 0===o||o.close(),this.viewService.setState("window",null),this.detect()})}afterGetCards(e){e.length<1?(this.viewService.setState("isShowCardList",!1),this.viewService.setState("isShowCardForm",!0)):(this.viewService.setState("isShowCardForm",!1),this.viewService.setState("isShowCardList",!0))}afterRemoveCard(){this.facadeService.loadCards(),this.toastr.success("Card has been deleted",Is.SUCCESS_TITLE)}afterChangePayment(){var e;null===(e=this.cardFormRef)||void 0===e||e.resetForm()}}return n.\u0275fac=function(e){return new(e||n)(I(Bm),I(St),I(Cu),I(ju),I(wC),I(EC))},n.\u0275cmp=Dt({type:n,selectors:[["moto-pay-main"]],viewQuery:function(e,r){if(1&e&&(lo(mk,5,PC),lo(gk,5,AC),lo(yk,5,kC),lo(_k,5,NC)),2&e){let i;ao(i=co())&&(r.cardFormRef=i.first),ao(i=co())&&(r.additionalFormRef=i.first),ao(i=co())&&(r.cardListRef=i.first),ao(i=co())&&(r.chargeTermsRef=i.first)}},features:[Le],decls:2,vars:3,consts:[["class","__ndb-main",4,"ngIf"],[1,"__ndb-main"],[4,"motoLet"],["class","__ndb-main-show-form-btn full-width","data-locator","btn-add-new-card",3,"click",4,"ngIf"],["class","__ndb-main-card-form block",3,"settings",4,"ngIf"],[1,"__ndb-pay"],[1,"__ndb-pay-info"],[1,"__ndb-pay-title","fz-18","fw-600"],["data-locator","total-cost",1,"__ndb-pay-cost","fz-24","fw-700"],["data-locator","btn-submit",1,"__ndb-pay-btn","button-submit","full-width",3,"click"],[1,"__ndb-pay-btn-content"],[1,"__ndb-pay-btn-cost-side"],["data-locator","btn-submit-cost"],[4,"ngIf"],[1,"__ndb-main-toggle",3,"click"],[1,"fw-700"],[1,"material-icons","font-description","__ndb-main-toggle-icon"],[1,"__ndb-main-card-list","block",3,"childrenDetector","cards","select","remove"],["cardListRef",""],["data-locator","btn-add-new-card",1,"__ndb-main-show-form-btn","full-width",3,"click"],[1,"material-icons","fz-18"],[1,"text"],[1,"__ndb-main-card-form","block",3,"settings"],["cardFormRef",""],["additionalFormRef",""],[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"],[3,"apms","pay"],[3,"chargeTerms"],["chargeTermsRef",""]],template:function(e,r){1&e&&(J(0,Ak,28,29,"div",0),xe(1,"async")),2&e&&R("ngIf",Nn(1,1,r.payment$))},directives:[kC,PC,AC,Ps,CN,NC,Kn,cl],pipes:[_p,ll,OC,FC,Zu,Cp],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}.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-main-toggle-icon.active[_ngcontent-%COMP%]{transform:rotate(-180deg)}.__ndb-main[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:28px}@media (max-width: 768px){.__ndb-main[_ngcontent-%COMP%]{padding:14px 20px 28px}}.__ndb-main-toggle[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px;cursor:pointer;-webkit-user-select:none;user-select:none;margin-bottom:28px}.__ndb-main-toggle-icon[_ngcontent-%COMP%]{transform:rotate(0);transition:transform .3s cubic-bezier(.25,.1,.25,1)}.__ndb-main-card-list[_ngcontent-%COMP%] .__ndb-card-list{padding-bottom:28px}.__ndb-main[_ngcontent-%COMP%] .__ndb-pay[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:14px;margin-top:28px}.__ndb-main[_ngcontent-%COMP%] .__ndb-pay-info[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center;justify-content:space-between;gap:20px}.__ndb-main[_ngcontent-%COMP%] .__ndb-pay-btn-content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:16px;width:100%}.__ndb-main[_ngcontent-%COMP%] .__ndb-pay-btn-separator[_ngcontent-%COMP%]{width:2px;height:18px;opacity:.3;background-color:var(--ndb-button-color)}.__ndb-main[_ngcontent-%COMP%] .__ndb-pay-btn-card-side[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}.__ndb-main[_ngcontent-%COMP%] .__ndb-pay-btn-card-side-logo[_ngcontent-%COMP%]{height:24px;width:36px}"],data:{animation:[rN,iN,oN({animationName:"ANToggleList",fromState:"hide",toState:"show",fromStyles:{height:"0px",overflow:"hidden"},toStyles:{height:"*"}})]},changeDetection:0}),n})(),DN=(()=>{class n{constructor(){this.resultTextsMap=Co(Hi,["result"]),this.result=new $e}set _paymentResult(e){e&&(this.paymentResult=e,this.result.emit(this.paymentResult))}get state(){return this.paymentResult.payment.state}get icon(){return this.resultTextsMap.icons[this.state]||"info"}get title(){return this.resultTextsMap.titleText[this.state]||"Payment sent"}get description(){return this.resultTextsMap.descriptionText[this.state]||""}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Dt({type:n,selectors:[["moto-pay-result"]],inputs:{_paymentResult:["paymentResult","_paymentResult"]},outputs:{result:"result"},decls:6,vars:3,consts:[[1,"__ndb-result"],[1,"material-icons-round","__ndb-result-icon"],[1,"__ndb-result-header","fz-24","fw-700"],["class","__ndb-result-description fz-14 fw-500 font-center",4,"ngIf"],[1,"__ndb-result-description","fz-14","fw-500","font-center"]],template:function(e,r){1&e&&(j(0,"div",0)(1,"i",1),pe(2),U(),j(3,"h6",2),pe(4),U(),J(5,xk,2,1,"p",3),U()),2&e&&(O(2),Wr(r.icon),O(2),Wr(r.title),O(1),R("ngIf",r.description))},directives:[Kn],styles:[".__ndb-result[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:10px;padding:28px}@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}"],changeDetection:0}),n})(),EN=(()=>{class n{ngOnInit(){this.consoleErrorMsg()}consoleErrorMsg(){const e=Co(Hi,["error","descriptionText",this.error]);console.error(e)}get isSettingsModelError(){return"invalid-urls"==this.error||"not-exist-settings"==this.error}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Dt({type:n,selectors:[["moto-pay-error"]],inputs:{error:"error"},decls:7,vars:1,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(e,r){1&e&&(j(0,"div",0)(1,"i",1),pe(2,"cancel"),U(),j(3,"h6",2),pe(4),U(),j(5,"p",3),pe(6," You cannot make a payment! "),U()()),2&e&&(O(4),Wr(r.isSettingsModelError?"Invalid settings model":"Invalid payment model"))},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}),n})(),LC=(()=>{class n extends il{constructor(e,r,i,o,s){super(e),this.injector=e,this.dataService=r,this.viewService=i,this.changeDetectorService=o,this.facadeService=s,this.resize$=new Lt,this.paymentResult$=this.dataService.getStream("paymentResult$"),this.settings$=this.dataService.getStream("settings$"),this.dataState=this.dataService.getFullState(),this.viewState=this.viewService.getFullState(),this._paid=new $e,this._viewChange=new $e,this._close=new $e}set _payment(e){this.checkedPaymentModel(e)}set _settings(e){this.checkedSettingsModel(e)}onWindowResize(e){this.resize$.next(e.innerWidth)}ngOnInit(){this.initActionsListener(),this.initChangeDetectinDataListener(),this.initChangeDetectionListener(),this.facadeService.initPaymentChangedListener(),this.resize$.pipe(Wa(100)).subscribe(()=>{this.emitWrapperSizeChanges()})}ngOnDestroy(){super.ngOnDestroy(),this.dataService.destroy()}emitWrapperSizeChanges(){var e;if(this.wrapperRef){const r=this.wrapperRef.nativeElement.getBoundingClientRect();(null===(e=this.viewService.getFullState().contentSize)||void 0===e?void 0:e.height)!==r.height&&(this.viewService.setState("contentSize",r),this._viewChange.emit(r),this.localDetect())}}initChangeDetectionListener(){this.changeDetectorService.listenChangeDetection().pipe(this.untilDestroy()).subscribe(()=>{setTimeout(()=>{this.emitWrapperSizeChanges()},50),this.localDetect()})}initChangeDetectinDataListener(){this.dataService.listenChangeDetection().pipe(this.untilDestroy()).subscribe(()=>this.localDetect())}initActionsListener(){this.dataService.listenActions().pipe(this.untilDestroy()).subscribe(e=>{this.detect()})}checkedSettingsModel(e){const r=this.validateSettingsModel(e);if(r)this.dataService.emitToStream("settings$",null),this.viewService.setState("settingsErrorType",r);else{const i=this.getPreparedSettingsModel(e);this.settings=i,this.dataService.emitToStream("settings$",i),this.viewService.setState("settingsErrorType",null)}this.localDetect()}checkedPaymentModel(e){const r=this.validatePaymentModel(e);if(r)this.dataService.emitToStream("payment$",null),this.viewService.setState("paymentErrorType",r);else{const i=this.getPreparedPaymentModel(e);this.payment=i,this.dataService.emitToStream("payment$",i),this.viewService.setState("paymentErrorType",null)}this.localDetect()}validateSettingsModel(e){return e?e.urls&&e.urls.billingProfiles&&e.urls.processing?null:"invalid-urls":"not-exist-settings"}validatePaymentModel(e){switch(!0){case!e:return"not-exist-payment";case!e.userId:return"not-exist-customer-id";case!e.paymentId:return"not-exist-payment-id";default:return null}}getPreparedPaymentModel(e){return e.userAuthToken&&!/^[^\s]+\s+/i.test(e.userAuthToken)&&(e.userAuthToken=`Bearer ${e.userAuthToken}`),e}getPreparedSettingsModel(e){return Object.assign(Object.assign({},{isPhoneNumberFieldVisible:!1,isCloseButtonVisible:!0,merchantInfo:null,chargeTerms:null,urls:null,availableCardBrands:["visa","mastercard"]}),e)}get isShowLoader(){return Object.values(this.dataState).includes(!0)}paid(e){this._paid.emit(e)}close(){this._close.emit()}reset(e){this.dataService.emitToStream("paymentResult$",null),this.checkedPaymentModel(e)}}return n.\u0275fac=function(e){return new(e||n)(I(St),I(ju),I(wC),I(yC),I(EC))},n.\u0275cmp=Dt({type:n,selectors:[["moto-pay-wrapper"]],viewQuery:function(e,r){if(1&e&&lo(Ik,5),2&e){let i;ao(i=co())&&(r.wrapperRef=i.first)}},hostBindings:function(e,r){1&e&&ke("resize",function(o){return r.onWindowResize(o.target)},!1,h0)},inputs:{_payment:["payment","_payment"],_settings:["settings","_settings"]},outputs:{_paid:"paid",_viewChange:"viewChange",_close:"close"},features:[Le],decls:8,vars:3,consts:[["class","__ndb-wrapper__",4,"motoLet"],["mainTpl",""],["resultTpl",""],["errorTpl",""],[1,"__ndb-wrapper__"],["wrapper",""],[1,"__ndb-header-content"],[3,"showCloseButton","close"],[4,"ngIf","ngIfThen","ngIfElse"],[3,"settings"],[4,"ngIf"],["data-locator","form-loaded",4,"ngIf"],["data-locator","form-loaded"],[4,"ngIf","ngIfElse"],[3,"paymentResult","result"],[3,"error"]],template:function(e,r){1&e&&(J(0,Ok,9,9,"div",0),xe(1,"async"),J(2,Lk,1,2,"ng-template",null,1,uo),J(4,Rk,2,3,"ng-template",null,2,uo),J(6,$k,1,1,"ng-template",null,3,uo)),2&e&&R("motoLet",Nn(1,1,r.settings$))},directives:[tN,nN,SC,bN,DN,EN,cl,Kn],pipes:[_p],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-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}}[_nghost-%COMP%] .__ndb-header-content[_ngcontent-%COMP%]{margin:0 auto;position:relative;border:1px solid #c9ccd8;box-shadow:inset 0 -1px #29304d1a;border-radius:4px}[_nghost-%COMP%] .__ndb-header-content[_ngcontent-%COMP%] .__ndb-loader{border-radius:4px}"],changeDetection:0}),n})(),MN=(()=>{class n{constructor(){this.payment=null,this.settings=null,this._close=new $e,this._paid=new $e,this._viewChange=new $e,this._reset=(e=Object.assign({},this.payment))=>{this.paymentWrapperRef$.reset(e)}}get reset(){return this._reset}close(){this._close.emit()}paid(e){this._paid.emit(e)}viewChange(e){this._viewChange.emit(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Dt({type:n,selectors:[["moto-pay"]],viewQuery:function(e,r){if(1&e&&lo(Vk,5,LC),2&e){let i;ao(i=co())&&(r.paymentWrapperRef$=i.first)}},inputs:{payment:"payment",settings:"settings",reset:"reset"},outputs:{_close:"close",_paid:"paid",_viewChange:"viewChange"},exportAs:["motoPayRef"],decls:2,vars:2,consts:[[3,"payment","settings","paid","viewChange","close"],["paymentWrapperRef",""]],template:function(e,r){1&e&&(j(0,"moto-pay-wrapper",0,1),ke("paid",function(o){return r.paid(o)})("viewChange",function(o){return r.viewChange(o)})("close",function(){return r.close()}),U()),2&e&&R("payment",r.payment)("settings",r.settings)},directives:[LC],styles:[""]}),n})(),SN=(()=>{class n{constructor(){}intercept(e,r){return e.context.get(jk),r.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})(),TN=(()=>{class n{constructor(e){this.toastr=e}intercept(e,r){return e.context.get(Bk)?r.handle(e):r.handle(e).pipe(Es(i=>{const{Errors:o}=i.error||{};let s=i.message;return o&&(s=o[0].Message),401==i.status&&(s="Not authorized (details in console)",console.error(i)),this.toastr.error(s,Is.ERROR_TITLE),function ZT(n,t){const e=Ce(n)?n:()=>n,r=i=>i.error(e());return new Ft(t?i=>t.schedule(r,0,i):r)}(()=>i)}))}}return n.\u0275fac=function(e){return new(e||n)(G(Cu))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();const AN=[zc];let Qu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({imports:[AN,zc]}),n})(),Yu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({}),n})(),RC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({imports:[[Qu,Yu]]}),n})(),$C=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({}),n})();const NN=[um.forRoot()];let zm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({imports:[NN,um]}),n})();const VC=[cm,gw];[jm,(()=>{class n{constructor(){}registerOnChange(e){}registerOnTouched(e){}setDisabledState(e){}ngOnInit(){}writeValue(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Dt({type:n,selectors:[["moto-form-textarea"]],features:[nt([{provide:Zn,useExisting:We(()=>n),multi:!0}])],decls:2,vars:0,consts:[[1,"__ndb-form-control"]],template:function(e,r){1&e&&(j(0,"div",0),je(1,"textarea"),U())},styles:[""],changeDetection:0}),n})()].concat(VC);let BC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({imports:[[...VC,Qu,zm,Yu],cm,gw]}),n})();const FN=[Qu,BC,RC,$C,Yu,zm];let LN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({imports:[FN,Qu,BC,RC,$C,Yu,zm]}),n})();const RN=new ae("LANGUAGE_TOKEN",{factory:()=>Jl(Bm).navigator.language});let $N=(()=>{class n{constructor(e,r){this.clientLanguage=e,this.applePayService=r,this.name=Gu.APPLE_PAY}get defaultCountryCode(){if(!this.clientLanguage)return"GB";if(this.clientLanguage.match(/-/)){const[e,r]=this.clientLanguage.split("-");return r}return this.clientLanguage}isAvailable(...e){return xr(!1)}pay(e){const{amount:r,currency:i,description:o,billingAddress:s,merchantId:a}=e,l=Boolean(null==s?void 0:s.country)?s.country:this.defaultCountryCode,c={total:{amount:r.toString(),currency:i.toUpperCase(),label:o},countryCode:l.toUpperCase(),merchantId:a};return this.applePayService.pay(c).pipe(en(({payment:u})=>JSON.stringify(u)))}}return n.\u0275fac=function(e){return new(e||n)(G(RN),G(uC))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})(),VN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({providers:[Fm,{provide:Xc,useClass:SN,multi:!0},{provide:Xc,useClass:TN,multi:!0},{provide:vC,useClass:$N,multi:!0},{provide:dC,useValue:Co(Hi,["urls","merchantUrl"])}],imports:[[Qv,bP,LN,bx.forRoot(),PP.forRoot(),Mx]]}),n})(),BN=(()=>{class n{constructor(e){this.injector=e}ngDoBootstrap(e){const{injector:r}=this,i=function _T(n,t){const e=function dT(n,t){return t.get(so).resolveComponentFactory(n).inputs}(n,t.injector),r=t.strategyFactory||new mT(n,t.injector),i=function uT(n){const t={};return n.forEach(({propName:e,templateName:r})=>{t[function oT(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}(r)]=e}),t}(e);class o extends yT{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=r.create(this.injector||t.injector);e.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(i[a],c)}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 l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return o.observedAttributes=Object.keys(i),e.forEach(({propName:s})=>{Object.defineProperty(o.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(a){this.ngElementStrategy.setInputValue(s,a)},configurable:!0,enumerable:!0})}),o}(MN,{injector:r});customElements.define("moto-web-pay",i)}}return n.\u0275fac=function(e){return new(e||n)(G(St))},n.\u0275mod=ct({type:n}),n.\u0275inj=st({imports:[[Nv,VN]]}),n})();(function HE(){q2=!1})(),WS().bootstrapModule(BN).catch(n=>console.error(n))},791:function(er,ot,zt){var Ce=this&&this.__assign||function(){return Ce=Object.assign||function(Be){for(var Je,ft=1,$n=arguments.length;ft<$n;ft++)for(var Ki in Je=arguments[ft])Object.prototype.hasOwnProperty.call(Je,Ki)&&(Be[Ki]=Je[Ki]);return Be},Ce.apply(this,arguments)},hn=zt(251),bt=zt(273),Ge=zt(87),It=zt(95),tr=zt(645),sn={},lt={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"},wn=[lt.VISA,lt.MASTERCARD,lt.AMERICAN_EXPRESS,lt.DINERS_CLUB,lt.DISCOVER,lt.JCB,lt.UNIONPAY,lt.MAESTRO,lt.ELO,lt.MIR,lt.HIPER,lt.HIPERCARD],fn=tr.clone(wn);function Po(Be){return sn[Be]||hn[Be]}function qs(Be,Je){void 0===Je&&(Je=!1);var ft=fn.indexOf(Be);if(!Je&&-1===ft)throw new Error('"'+Be+'" is not a supported card type.');return ft}function Or(Be){var Je=[];if(!Ge.isValidInputType(Be))return Je;if(0===Be.length)return function Ws(){return fn.map(function(Be){return tr.clone(Po(Be))})}();fn.forEach(function($n){var Ki=Po($n);bt.addMatchingCardsToResults(Be,Ki,Je)});var ft=It.findBestMatch(Je);return ft?[ft]:Je}Or.getTypeInfo=function(Be){return tr.clone(Po(Be))},Or.removeCard=function(Be){var Je=qs(Be);fn.splice(Je,1)},Or.addCard=function(Be){var Je=qs(Be.type,!0);sn[Be.type]=Be,-1===Je&&fn.push(Be.type)},Or.updateCard=function(Be,Je){var ft=sn[Be]||hn[Be];if(!ft)throw new Error('"'+Be+"\" is not a recognized type. Use `addCard` instead.'");if(Je.type&&ft.type!==Je.type)throw new Error("Cannot overwrite type parameter.");var $n=tr.clone(ft);$n=Ce(Ce({},$n),Je),sn[$n.type]=$n},Or.changeOrder=function(Be,Je){var ft=qs(Be);fn.splice(ft,1),fn.splice(Je,0,Be)},Or.resetModifications=function(){fn=tr.clone(wn),sn={}},Or.types=lt,er.exports=Or},273:(er,ot,zt)=>{Object.defineProperty(ot,"__esModule",{value:!0}),ot.addMatchingCardsToResults=void 0;var Ce=zt(645),hn=zt(694);ot.addMatchingCardsToResults=function bt(Ge,It,tr){var sn,lt;for(sn=0;sn<It.patterns.length;sn++){var wn=It.patterns[sn];if(hn.matches(Ge,wn)){var fn=Ce.clone(It);lt=Array.isArray(wn)?String(wn[0]).length:String(wn).length,Ge.length>=lt&&(fn.matchStrength=lt),tr.push(fn);break}}}},251:er=>{er.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,[624,626],[62100,62182],[62184,62187],[62185,62197],[62200,62205],[622010,622999],622018,[622019,622999],[62207,62209],[622126,622925],[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}}}},645:(er,ot)=>{Object.defineProperty(ot,"__esModule",{value:!0}),ot.clone=void 0,ot.clone=function zt(Ce){return Ce?JSON.parse(JSON.stringify(Ce)):null}},95:(er,ot)=>{Object.defineProperty(ot,"__esModule",{value:!0}),ot.findBestMatch=void 0,ot.findBestMatch=function Ce(hn){return function zt(hn){var bt=hn.filter(function(Ge){return Ge.matchStrength}).length;return bt>0&&bt===hn.length}(hn)?hn.reduce(function(bt,Ge){return!bt||Number(bt.matchStrength)<Number(Ge.matchStrength)?Ge:bt}):null}},87:(er,ot)=>{Object.defineProperty(ot,"__esModule",{value:!0}),ot.isValidInputType=void 0,ot.isValidInputType=function zt(Ce){return"string"==typeof Ce||Ce instanceof String}},694:(er,ot)=>{Object.defineProperty(ot,"__esModule",{value:!0}),ot.matches=void 0,ot.matches=function hn(bt,Ge){return Array.isArray(Ge)?function zt(bt,Ge,It){var tr=String(Ge).length,sn=bt.substr(0,tr),lt=parseInt(sn,10);return Ge=parseInt(String(Ge).substr(0,sn.length),10),It=parseInt(String(It).substr(0,sn.length),10),lt>=Ge&&lt<=It}(bt,Ge[0],Ge[1]):function Ce(bt,Ge){return(Ge=String(Ge)).substring(0,bt.length)===bt.substring(0,Ge.length)}(bt,Ge)}}},er=>{er(er.s=291)}]);
3
+ "use strict";(self.webpackChunkweb_component=self.webpackChunkweb_component||[]).push([[179],{291:(er,ot,Gt)=>{function Ce(n){return"function"==typeof n}function hn(n){const e=n(r=>{Error.call(r),r.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const Dt=hn(n=>function(e){n(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function Ge(n,t){if(n){const e=n.indexOf(t);0<=e&&n.splice(e,1)}}class It{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const o of e)o.remove(this);else e.remove(this);const{initialTeardown:r}=this;if(Ce(r))try{r()}catch(o){t=o instanceof Dt?o.errors:[o]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const o of i)try{lt(o)}catch(s){t=null!=t?t:[],s instanceof Dt?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Dt(t)}}add(t){var e;if(t&&t!==this)if(this.closed)lt(t);else{if(t instanceof It){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(t)}}_hasParent(t){const{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){const{_parentage:e}=this;e===t?this._parentage=null:Array.isArray(e)&&Ge(e,t)}remove(t){const{_finalizers:e}=this;e&&Ge(e,t),t instanceof It&&t._removeParent(this)}}It.EMPTY=(()=>{const n=new It;return n.closed=!0,n})();const tr=It.EMPTY;function sn(n){return n instanceof It||n&&"closed"in n&&Ce(n.remove)&&Ce(n.add)&&Ce(n.unsubscribe)}function lt(n){Ce(n)?n():n.unsubscribe()}const wn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},fn={setTimeout(n,t,...e){const{delegate:r}=fn;return(null==r?void 0:r.setTimeout)?r.setTimeout(n,t,...e):setTimeout(n,t,...e)},clearTimeout(n){const{delegate:t}=fn;return((null==t?void 0:t.clearTimeout)||clearTimeout)(n)},delegate:void 0};function ko(n){fn.setTimeout(()=>{const{onUnhandledError:t}=wn;if(!t)throw n;t(n)})}function Zs(){}const Qs=Je("C",void 0,void 0);function Je(n,t,e){return{kind:n,value:t,error:e}}let ft=null;function $n(n){if(wn.useDeprecatedSynchronousErrorHandling){const t=!ft;if(t&&(ft={errorThrown:!1,error:null}),n(),t){const{errorThrown:e,error:r}=ft;if(ft=null,e)throw r}}else n()}class _d extends It{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,sn(t)&&t.add(this)):this.destination=t4}static create(t,e,r){return new Ys(t,e,r)}next(t){this.isStopped?wd(function Be(n){return Je("N",n,void 0)}(t),this):this._next(t)}error(t){this.isStopped?wd(function Or(n){return Je("E",void 0,n)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?wd(Qs,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const JC=Function.prototype.bind;function vd(n,t){return JC.call(n,t)}class XC{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next)try{e.next(t)}catch(r){Sl(r)}}error(t){const{partialObserver:e}=this;if(e.error)try{e.error(t)}catch(r){Sl(r)}else Sl(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(e){Sl(e)}}}class Ys extends _d{constructor(t,e,r){let i;if(super(),Ce(t)||!t)i={next:null!=t?t:void 0,error:null!=e?e:void 0,complete:null!=r?r:void 0};else{let o;this&&wn.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&vd(t.next,o),error:t.error&&vd(t.error,o),complete:t.complete&&vd(t.complete,o)}):i=t}this.destination=new XC(i)}}function Sl(n){wn.useDeprecatedSynchronousErrorHandling?function qi(n){wn.useDeprecatedSynchronousErrorHandling&&ft&&(ft.errorThrown=!0,ft.error=n)}(n):ko(n)}function wd(n,t){const{onStoppedNotification:e}=wn;e&&fn.setTimeout(()=>e(n,t))}const t4={closed:!0,next:Zs,error:function e4(n){throw n},complete:Zs},Cd="function"==typeof Symbol&&Symbol.observable||"@@observable";function No(n){return n}function og(n){return 0===n.length?No:1===n.length?n[0]:function(e){return n.reduce((r,i)=>i(r),e)}}let Lt=(()=>{class n{constructor(e){e&&(this._subscribe=e)}lift(e){const r=new n;return r.source=this,r.operator=e,r}subscribe(e,r,i){const o=function i4(n){return n&&n instanceof _d||function r4(n){return n&&Ce(n.next)&&Ce(n.error)&&Ce(n.complete)}(n)&&sn(n)}(e)?e:new Ys(e,r,i);return $n(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(r){e.error(r)}}forEach(e,r){return new(r=sg(r))((i,o)=>{const s=new Ys({next:a=>{try{e(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(e){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(e)}[Cd](){return this}pipe(...e){return og(e)(this)}toPromise(e){return new(e=sg(e))((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return n.create=t=>new n(t),n})();function sg(n){var t;return null!==(t=null!=n?n:wn.Promise)&&void 0!==t?t:Promise}const o4=hn(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Rt=(()=>{class n extends Lt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const r=new ag(this,this);return r.operator=e,r}_throwIfClosed(){if(this.closed)throw new o4}next(e){$n(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(e)}})}error(e){$n(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:r}=this;for(;r.length;)r.shift().error(e)}})}complete(){$n(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:r,isStopped:i,observers:o}=this;return r||i?tr:(this.currentObservers=null,o.push(e),new It(()=>{this.currentObservers=null,Ge(o,e)}))}_checkFinalizedStatuses(e){const{hasError:r,thrownError:i,isStopped:o}=this;r?e.error(i):o&&e.complete()}asObservable(){const e=new Lt;return e.source=this,e}}return n.create=(t,e)=>new ag(t,e),n})();class ag extends Rt{constructor(t,e){super(),this.destination=t,this.source=e}next(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,t)}error(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.call(e,t)}complete(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)}_subscribe(t){var e,r;return null!==(r=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==r?r:tr}}function Cn(n){return t=>{if(function s4(n){return Ce(null==n?void 0:n.lift)}(t))return t.lift(function(e){try{return n(e,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function an(n,t,e,r,i){return new a4(n,t,e,r,i)}class a4 extends _d{constructor(t,e,r,i,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(l){t.error(l)}}:super._next,this._error=i?function(a){try{i(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function Pt(n,t){return Cn((e,r)=>{let i=0;e.subscribe(an(r,o=>{r.next(n.call(t,o,i++))}))})}function Tl(n,t,e,r){return new(e||(e=Promise))(function(o,s){function a(u){try{c(r.next(u))}catch(d){s(d)}}function l(u){try{c(r.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):function i(o){return o instanceof e?o:new e(function(s){s(o)})}(u.value).then(a,l)}c((r=r.apply(n,t||[])).next())})}function Mi(n){return this instanceof Mi?(this.v=n,this):new Mi(n)}function ug(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=e.apply(n,t||[]),o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(f){r[f]&&(i[f]=function(p){return new Promise(function(y,w){o.push([f,p,y,w])>1||a(f,p)})})}function a(f,p){try{!function l(f){f.value instanceof Mi?Promise.resolve(f.value.v).then(c,u):d(o[0][2],f)}(r[f](p))}catch(y){d(o[0][3],y)}}function c(f){a("next",f)}function u(f){a("throw",f)}function d(f,p){f(p),o.shift(),o.length&&a(o[0][0],o[0][1])}}function dg(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,t=n[Symbol.asyncIterator];return t?t.call(n):(n=function Md(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(o){e[o]=n[o]&&function(s){return new Promise(function(a,l){!function i(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}(a,l,(s=n[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const hg=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function fg(n){return Ce(null==n?void 0:n.then)}function pg(n){return Ce(n[Cd])}function mg(n){return Symbol.asyncIterator&&Ce(null==n?void 0:n[Symbol.asyncIterator])}function gg(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const yg=function A4(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function _g(n){return Ce(null==n?void 0:n[yg])}function vg(n){return ug(this,arguments,function*(){const e=n.getReader();try{for(;;){const{value:r,done:i}=yield Mi(e.read());if(i)return yield Mi(void 0);yield yield Mi(r)}}finally{e.releaseLock()}})}function wg(n){return Ce(null==n?void 0:n.getReader)}function nr(n){if(n instanceof Lt)return n;if(null!=n){if(pg(n))return function x4(n){return new Lt(t=>{const e=n[Cd]();if(Ce(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(hg(n))return function I4(n){return new Lt(t=>{for(let e=0;e<n.length&&!t.closed;e++)t.next(n[e]);t.complete()})}(n);if(fg(n))return function P4(n){return new Lt(t=>{n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,ko)})}(n);if(mg(n))return Cg(n);if(_g(n))return function k4(n){return new Lt(t=>{for(const e of n)if(t.next(e),t.closed)return;t.complete()})}(n);if(wg(n))return function N4(n){return Cg(vg(n))}(n)}throw gg(n)}function Cg(n){return new Lt(t=>{(function O4(n,t){var e,r,i,o;return Tl(this,void 0,void 0,function*(){try{for(e=dg(n);!(r=yield e.next()).done;)if(t.next(r.value),t.closed)return}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=e.return)&&(yield o.call(e))}finally{if(i)throw i.error}}t.complete()})})(n,t).catch(e=>t.error(e))})}function ri(n,t,e,r=0,i=!1){const o=t.schedule(function(){e(),i?n.add(this.schedule(null,r)):this.unsubscribe()},r);if(n.add(o),!i)return o}function Al(n,t,e=1/0){return Ce(t)?Al((r,i)=>Pt((o,s)=>t(r,o,i,s))(nr(n(r,i))),e):("number"==typeof t&&(e=t),Cn((r,i)=>function F4(n,t,e,r,i,o,s,a){const l=[];let c=0,u=0,d=!1;const f=()=>{d&&!l.length&&!c&&t.complete()},p=w=>c<r?y(w):l.push(w),y=w=>{o&&t.next(w),c++;let b=!1;nr(e(w,u++)).subscribe(an(t,S=>{null==i||i(S),o?p(S):t.next(S)},()=>{b=!0},void 0,()=>{if(b)try{for(c--;l.length&&c<r;){const S=l.shift();s?ri(t,s,()=>y(S)):y(S)}f()}catch(S){t.error(S)}}))};return n.subscribe(an(t,p,()=>{d=!0,f()})),()=>{null==a||a()}}(r,i,n,e)))}function bg(n=1/0){return Al(No,n)}const Dg=new Lt(n=>n.complete());function Eg(n){return n&&Ce(n.schedule)}function Sd(n){return n[n.length-1]}function Mg(n){return Ce(Sd(n))?n.pop():void 0}function Js(n){return Eg(Sd(n))?n.pop():void 0}function Sg(n,t=0){return Cn((e,r)=>{e.subscribe(an(r,i=>ri(r,n,()=>r.next(i),t),()=>ri(r,n,()=>r.complete(),t),i=>ri(r,n,()=>r.error(i),t)))})}function Tg(n,t=0){return Cn((e,r)=>{r.add(n.schedule(()=>e.subscribe(r),t))})}function Ag(n,t){if(!n)throw new Error("Iterable cannot be null");return new Lt(e=>{ri(e,t,()=>{const r=n[Symbol.asyncIterator]();ri(e,t,()=>{r.next().then(i=>{i.done?e.complete():e.next(i.value)})},0,!0)})})}function Ki(n,t){return t?function U4(n,t){if(null!=n){if(pg(n))return function $4(n,t){return nr(n).pipe(Tg(t),Sg(t))}(n,t);if(hg(n))return function B4(n,t){return new Lt(e=>{let r=0;return t.schedule(function(){r===n.length?e.complete():(e.next(n[r++]),e.closed||this.schedule())})})}(n,t);if(fg(n))return function V4(n,t){return nr(n).pipe(Tg(t),Sg(t))}(n,t);if(mg(n))return Ag(n,t);if(_g(n))return function j4(n,t){return new Lt(e=>{let r;return ri(e,t,()=>{r=n[yg](),ri(e,t,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){return void e.error(s)}o?e.complete():e.next(i)},0,!0)}),()=>Ce(null==r?void 0:r.return)&&r.return()})}(n,t);if(wg(n))return function H4(n,t){return Ag(vg(n),t)}(n,t)}throw gg(n)}(n,t):nr(n)}function xg(...n){const t=Js(n),e=function R4(n,t){return"number"==typeof Sd(n)?n.pop():t}(n,1/0),r=n;return r.length?1===r.length?nr(r[0]):bg(e)(Ki(r,t)):Dg}function Td(n,t,...e){if(!0===t)return void n();if(!1===t)return;const r=new Ys({next:()=>{r.unsubscribe(),n()}});return t(...e).subscribe(r)}function Xe(n){for(let t in n)if(n[t]===Xe)return t;throw Error("Could not find renamed property on target object.")}function Ad(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function qe(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(qe).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function xd(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const G4=Xe({__forward_ref__:Xe});function We(n){return n.__forward_ref__=We,n.toString=function(){return qe(this())},n}function Se(n){return Ig(n)?n():n}function Ig(n){return"function"==typeof n&&n.hasOwnProperty(G4)&&n.__forward_ref__===We}class Y extends Error{constructor(t,e){super(function Id(n,t){return`NG0${Math.abs(n)}${t?": "+t:""}`}(t,e)),this.code=t}}function ge(n){return"string"==typeof n?n:null==n?"":String(n)}function ln(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():ge(n)}function xl(n,t){const e=t?` in ${t}`:"";throw new Y(-201,`No provider for ${ln(n)} found${e}`)}function Bn(n,t){null==n&&function Ke(n,t,e,r){throw new Error(`ASSERTION ERROR: ${n}`+(null==r?"":` [Expected=> ${e} ${r} ${t} <=Actual]`))}(t,n,null,"!=")}function oe(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function st(n){return{providers:n.providers||[],imports:n.imports||[]}}function Pd(n){return Pg(n,Il)||Pg(n,Ng)}function Pg(n,t){return n.hasOwnProperty(t)?n[t]:null}function kg(n){return n&&(n.hasOwnProperty(kd)||n.hasOwnProperty(J4))?n[kd]:null}const Il=Xe({\u0275prov:Xe}),kd=Xe({\u0275inj:Xe}),Ng=Xe({ngInjectableDef:Xe}),J4=Xe({ngInjectorDef:Xe});var ve=(()=>((ve=ve||{})[ve.Default=0]="Default",ve[ve.Host=1]="Host",ve[ve.Self=2]="Self",ve[ve.SkipSelf=4]="SkipSelf",ve[ve.Optional=8]="Optional",ve))();let Nd;function Si(n){const t=Nd;return Nd=n,t}function Og(n,t,e){const r=Pd(n);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:e&ve.Optional?null:void 0!==t?t:void xl(qe(n),"Injector")}function Ti(n){return{toString:n}.toString()}var mr=(()=>((mr=mr||{})[mr.OnPush=0]="OnPush",mr[mr.Default=1]="Default",mr))(),gr=(()=>{return(n=gr||(gr={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",gr;var n})();const eb="undefined"!=typeof globalThis&&globalThis,tb="undefined"!=typeof window&&window,nb="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ze=eb||"undefined"!=typeof global&&global||tb||nb,Oo={},et=[],Pl=Xe({\u0275cmp:Xe}),Od=Xe({\u0275dir:Xe}),Fd=Xe({\u0275pipe:Xe}),Fg=Xe({\u0275mod:Xe}),oi=Xe({\u0275fac:Xe}),Xs=Xe({__NG_ELEMENT_ID__:Xe});let rb=0;function Et(n){return Ti(()=>{const e={},r={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===mr.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||et,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||gr.Emulated,id:"c",styles:n.styles||et,_:null,setInput:null,schemas:n.schemas||null,tView:null},i=n.directives,o=n.features,s=n.pipes;return r.id+=rb++,r.inputs=Vg(n.inputs,e),r.outputs=Vg(n.outputs),o&&o.forEach(a=>a(r)),r.directiveDefs=i?()=>("function"==typeof i?i():i).map(Lg):null,r.pipeDefs=s?()=>("function"==typeof s?s():s).map(Rg):null,r})}function Lg(n){return cn(n)||function Ai(n){return n[Od]||null}(n)}function Rg(n){return function Zi(n){return n[Fd]||null}(n)}const $g={};function ct(n){return Ti(()=>{const t={type:n.type,bootstrap:n.bootstrap||et,declarations:n.declarations||et,imports:n.imports||et,exports:n.exports||et,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&($g[n.id]=n.type),t})}function Vg(n,t){if(null==n)return Oo;const e={};for(const r in n)if(n.hasOwnProperty(r)){let i=n[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),e[i]=r,t&&(t[i]=o)}return e}const fe=Et;function at(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,onDestroy:n.type.prototype.ngOnDestroy||null}}function cn(n){return n[Pl]||null}function rr(n,t){const e=n[Fg]||null;if(!e&&!0===t)throw new Error(`Type ${qe(n)} does not have '\u0275mod' property.`);return e}function Fr(n){return Array.isArray(n)&&"object"==typeof n[1]}function _r(n){return Array.isArray(n)&&!0===n[1]}function $d(n){return 0!=(8&n.flags)}function Fl(n){return 2==(2&n.flags)}function Ll(n){return 1==(1&n.flags)}function vr(n){return null!==n.template}function cb(n){return 0!=(512&n[2])}function Xi(n,t){return n.hasOwnProperty(oi)?n[oi]:null}class jg{constructor(t,e,r){this.previousValue=t,this.currentValue=e,this.firstChange=r}isFirstChange(){return this.firstChange}}function Lr(){return Hg}function Hg(n){return n.type.prototype.ngOnChanges&&(n.setInput=fb),hb}function hb(){const n=zg(this),t=null==n?void 0:n.current;if(t){const e=n.previous;if(e===Oo)n.previous=t;else for(let r in t)e[r]=t[r];n.current=null,this.ngOnChanges(t)}}function fb(n,t,e,r){const i=zg(n)||function pb(n,t){return n[Ug]=t}(n,{previous:Oo,current:null}),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[e],l=s[a];o[a]=new jg(l&&l.currentValue,t,s===Oo),n[r]=t}Lr.ngInherit=!0;const Ug="__ngSimpleChanges__";function zg(n){return n[Ug]||null}let Ud;function zd(){return void 0!==Ud?Ud:"undefined"!=typeof document?document:void 0}function St(n){return!!n.listen}const Gg={createRenderer:(n,t)=>zd()};function $t(n){for(;Array.isArray(n);)n=n[0];return n}function Rl(n,t){return $t(t[n])}function Hn(n,t){return $t(t[n.index])}function Gd(n,t){return n.data[t]}function Vo(n,t){return n[t]}function Un(n,t){const e=t[n];return Fr(e)?e:e[0]}function Wg(n){return 4==(4&n[2])}function Wd(n){return 128==(128&n[2])}function xi(n,t){return null==t?null:n[t]}function qg(n){n[18]=0}function qd(n,t){n[5]+=t;let e=n,r=n[3];for(;null!==r&&(1===t&&1===e[5]||-1===t&&0===e[5]);)r[5]+=t,e=r,r=r[3]}const ye={lFrame:n1(null),bindingsEnabled:!0};function Zg(){return ye.bindingsEnabled}function k(){return ye.lFrame.lView}function Fe(){return ye.lFrame.tView}function Wt(n){return ye.lFrame.contextLView=n,n[8]}function qt(){let n=Qg();for(;null!==n&&64===n.type;)n=n.parent;return n}function Qg(){return ye.lFrame.currentTNode}function Rr(n,t){const e=ye.lFrame;e.currentTNode=n,e.isParent=t}function Kd(){return ye.lFrame.isParent}function Zd(){ye.lFrame.isParent=!1}function Dn(){const n=ye.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function Bo(){return ye.lFrame.bindingIndex++}function ai(n){const t=ye.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function Pb(n,t){const e=ye.lFrame;e.bindingIndex=e.bindingRootIndex=n,Qd(t)}function Qd(n){ye.lFrame.currentDirectiveIndex=n}function Yd(n){const t=ye.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}function Xg(){return ye.lFrame.currentQueryIndex}function Jd(n){ye.lFrame.currentQueryIndex=n}function Nb(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function e1(n,t,e){if(e&ve.SkipSelf){let i=t,o=n;for(;!(i=i.parent,null!==i||e&ve.Host||(i=Nb(o),null===i||(o=o[15],10&i.type))););if(null===i)return!1;t=i,n=o}const r=ye.lFrame=t1();return r.currentTNode=t,r.lView=n,!0}function Vl(n){const t=t1(),e=n[1];ye.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function t1(){const n=ye.lFrame,t=null===n?null:n.child;return null===t?n1(n):t}function n1(n){const t={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:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function r1(){const n=ye.lFrame;return ye.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const i1=r1;function Bl(){const n=r1();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function En(){return ye.lFrame.selectedIndex}function Ii(n){ye.lFrame.selectedIndex=n}function pt(){const n=ye.lFrame;return Gd(n.tView,n.selectedIndex)}function jl(n,t){for(let e=t.directiveStart,r=t.directiveEnd;e<r;e++){const o=n.data[e].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=o;s&&(n.contentHooks||(n.contentHooks=[])).push(-e,s),a&&((n.contentHooks||(n.contentHooks=[])).push(e,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(e,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-e,l),c&&((n.viewHooks||(n.viewHooks=[])).push(e,c),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(e,c)),null!=u&&(n.destroyHooks||(n.destroyHooks=[])).push(e,u)}}function Hl(n,t,e){o1(n,t,3,e)}function Ul(n,t,e,r){(3&n[2])===e&&o1(n,t,e,r)}function Xd(n,t){let e=n[2];(3&e)===t&&(e&=2047,e+=1,n[2]=e)}function o1(n,t,e,r){const o=null!=r?r:-1,s=t.length-1;let a=0;for(let l=void 0!==r?65535&n[18]:0;l<s;l++)if("number"==typeof t[l+1]){if(a=t[l],null!=r&&a>=r)break}else t[l]<0&&(n[18]+=65536),(a<o||-1==o)&&(Hb(n,e,t,l),n[18]=(4294901760&n[18])+l+2),l++}function Hb(n,t,e,r){const i=e[r]<0,o=e[r+1],a=n[i?-e[r]:e[r]];if(i){if(n[2]>>11<n[18]>>16&&(3&n[2])===t){n[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class ia{constructor(t,e,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=r}}function zl(n,t,e){const r=St(n);let i=0;for(;i<e.length;){const o=e[i];if("number"==typeof o){if(0!==o)break;i++;const s=e[i++],a=e[i++],l=e[i++];r?n.setAttribute(t,a,l,s):t.setAttributeNS(s,a,l)}else{const s=o,a=e[++i];th(s)?r&&n.setProperty(t,s,a):r?n.setAttribute(t,s,a):t.setAttribute(s,a),i++}}return i}function s1(n){return 3===n||4===n||6===n}function th(n){return 64===n.charCodeAt(0)}function Gl(n,t){if(null!==t&&0!==t.length)if(null===n||0===n.length)n=t.slice();else{let e=-1;for(let r=0;r<t.length;r++){const i=t[r];"number"==typeof i?e=i:0===e||a1(n,e,i,null,-1===e||2===e?t[++r]:null)}}return n}function a1(n,t,e,r,i){let o=0,s=n.length;if(-1===t)s=-1;else for(;o<n.length;){const a=n[o++];if("number"==typeof a){if(a===t){s=-1;break}if(a>t){s=o-1;break}}}for(;o<n.length;){const a=n[o];if("number"==typeof a)break;if(a===e){if(null===r)return void(null!==i&&(n[o+1]=i));if(r===n[o+1])return void(n[o+2]=i)}o++,null!==r&&o++,null!==i&&o++}-1!==s&&(n.splice(s,0,t),o=s+1),n.splice(o++,0,e),null!==r&&n.splice(o++,0,r),null!==i&&n.splice(o++,0,i)}function l1(n){return-1!==n}function jo(n){return 32767&n}function Ho(n,t){let e=function qb(n){return n>>16}(n),r=t;for(;e>0;)r=r[15],e--;return r}let nh=!0;function Wl(n){const t=nh;return nh=n,t}let Kb=0;function sa(n,t){const e=ih(n,t);if(-1!==e)return e;const r=t[1];r.firstCreatePass&&(n.injectorIndex=t.length,rh(r.data,n),rh(t,null),rh(r.blueprint,null));const i=ql(n,t),o=n.injectorIndex;if(l1(i)){const s=jo(i),a=Ho(i,t),l=a[1].data;for(let c=0;c<8;c++)t[o+c]=a[s+c]|l[s+c]}return t[o+8]=i,o}function rh(n,t){n.push(0,0,0,0,0,0,0,0,t)}function ih(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function ql(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,r=null,i=t;for(;null!==i;){const o=i[1],s=o.type;if(r=2===s?o.declTNode:1===s?i[6]:null,null===r)return-1;if(e++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|e<<16}return-1}function Kl(n,t,e){!function Zb(n,t,e){let r;"string"==typeof e?r=e.charCodeAt(0)||0:e.hasOwnProperty(Xs)&&(r=e[Xs]),null==r&&(r=e[Xs]=Kb++);const i=255&r;t.data[n+(i>>5)]|=1<<i}(n,t,e)}function d1(n,t,e){if(e&ve.Optional)return n;xl(t,"NodeInjector")}function h1(n,t,e,r){if(e&ve.Optional&&void 0===r&&(r=null),0==(e&(ve.Self|ve.Host))){const i=n[9],o=Si(void 0);try{return i?i.get(t,r,e&ve.Optional):Og(t,r,e&ve.Optional)}finally{Si(o)}}return d1(r,t,e)}function f1(n,t,e,r=ve.Default,i){if(null!==n){const o=function Xb(n){if("string"==typeof n)return n.charCodeAt(0)||0;const t=n.hasOwnProperty(Xs)?n[Xs]:void 0;return"number"==typeof t?t>=0?255&t:Yb:t}(e);if("function"==typeof o){if(!e1(t,n,r))return r&ve.Host?d1(i,e,r):h1(t,e,r,i);try{const s=o(r);if(null!=s||r&ve.Optional)return s;xl(e)}finally{i1()}}else if("number"==typeof o){let s=null,a=ih(n,t),l=-1,c=r&ve.Host?t[16][6]:null;for((-1===a||r&ve.SkipSelf)&&(l=-1===a?ql(n,t):t[a+8],-1!==l&&g1(r,!1)?(s=t[1],a=jo(l),t=Ho(l,t)):a=-1);-1!==a;){const u=t[1];if(m1(o,a,u.data)){const d=Jb(a,t,e,s,r,c);if(d!==p1)return d}l=t[a+8],-1!==l&&g1(r,t[1].data[a+8]===c)&&m1(o,a,t)?(s=u,a=jo(l),t=Ho(l,t)):a=-1}}}return h1(t,e,r,i)}const p1={};function Yb(){return new Uo(qt(),k())}function Jb(n,t,e,r,i,o){const s=t[1],a=s.data[n+8],u=Zl(a,s,e,null==r?Fl(a)&&nh:r!=s&&0!=(3&a.type),i&ve.Host&&o===a);return null!==u?aa(t,s,u,a):p1}function Zl(n,t,e,r,i){const o=n.providerIndexes,s=t.data,a=1048575&o,l=n.directiveStart,u=o>>20,f=i?a+u:n.directiveEnd;for(let p=r?a:a+u;p<f;p++){const y=s[p];if(p<l&&e===y||p>=l&&y.type===e)return p}if(i){const p=s[l];if(p&&vr(p)&&p.type===e)return l}return null}function aa(n,t,e,r){let i=n[e];const o=t.data;if(function Ub(n){return n instanceof ia}(i)){const s=i;s.resolving&&function W4(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new Y(-200,`Circular dependency in DI detected for ${n}${e}`)}(ln(o[e]));const a=Wl(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Si(s.injectImpl):null;e1(n,r,ve.Default);try{i=n[e]=s.factory(void 0,o,n,r),t.firstCreatePass&&e>=r.directiveStart&&function jb(n,t,e){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){const s=Hg(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s)}i&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,i),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o))}(e,o[e],t)}finally{null!==l&&Si(l),Wl(a),s.resolving=!1,i1()}}return i}function m1(n,t,e){return!!(e[t+(n>>5)]&1<<n)}function g1(n,t){return!(n&ve.Self||n&ve.Host&&t)}class Uo{constructor(t,e){this._tNode=t,this._lView=e}get(t,e,r){return f1(this._tNode,this._lView,t,r,e)}}function nn(n){return Ti(()=>{const t=n.prototype.constructor,e=t[oi]||oh(t),r=Object.prototype;let i=Object.getPrototypeOf(n.prototype).constructor;for(;i&&i!==r;){const o=i[oi]||oh(i);if(o&&o!==e)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function oh(n){return Ig(n)?()=>{const t=oh(Se(n));return t&&t()}:Xi(n)}const Go="__parameters__";function qo(n,t,e){return Ti(()=>{const r=function ah(n){return function(...e){if(n){const r=n(...e);for(const i in r)this[i]=r[i]}}}(t);function i(...o){if(this instanceof i)return r.apply(this,o),this;const s=new i(...o);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(Go)?l[Go]:Object.defineProperty(l,Go,{value:[]})[Go];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return e&&(i.prototype=Object.create(e.prototype)),i.prototype.ngMetadataName=n,i.annotationCls=i,i})}class ae{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=oe({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}function sr(n,t){void 0===t&&(t=n);for(let e=0;e<n.length;e++){let r=n[e];Array.isArray(r)?(t===n&&(t=n.slice(0,e)),sr(r,t)):t!==n&&t.push(r)}return t}function $r(n,t){n.forEach(e=>Array.isArray(e)?$r(e,t):t(e))}function _1(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function Ql(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function ua(n,t){const e=[];for(let r=0;r<n;r++)e.push(t);return e}function zn(n,t,e){let r=Ko(n,t);return r>=0?n[1|r]=e:(r=~r,function r3(n,t,e,r){let i=n.length;if(i==t)n.push(e,r);else if(1===i)n.push(r,n[0]),n[0]=e;else{for(i--,n.push(n[i-1],n[i]);i>t;)n[i]=n[i-2],i--;n[t]=e,n[t+1]=r}}(n,r,t,e)),r}function ch(n,t){const e=Ko(n,t);if(e>=0)return n[1|e]}function Ko(n,t){return function C1(n,t,e){let r=0,i=n.length>>e;for(;i!==r;){const o=r+(i-r>>1),s=n[o<<e];if(t===s)return o<<e;s>t?i=o:r=o+1}return~(i<<e)}(n,t,1)}const da={},dh="__NG_DI_FLAG__",Jl="ngTempTokenPath",u3=/\n/gm,D1="__source",h3=Xe({provide:String,useValue:Xe});let ha;function E1(n){const t=ha;return ha=n,t}function f3(n,t=ve.Default){if(void 0===ha)throw new Y(203,"");return null===ha?Og(n,void 0,t):ha.get(n,t&ve.Optional?null:void 0,t)}function U(n,t=ve.Default){return(function X4(){return Nd}()||f3)(Se(n),t)}const Xl=U;function hh(n){const t=[];for(let e=0;e<n.length;e++){const r=Se(n[e]);if(Array.isArray(r)){if(0===r.length)throw new Y(900,"");let i,o=ve.Default;for(let s=0;s<r.length;s++){const a=r[s],l=p3(a);"number"==typeof l?-1===l?i=a.token:o|=l:i=a}t.push(U(i,o))}else t.push(U(r))}return t}function fa(n,t){return n[dh]=t,n.prototype[dh]=t,n}function p3(n){return n[dh]}const ec=fa(qo("Optional"),8),tc=fa(qo("SkipSelf"),4);var Gn=(()=>((Gn=Gn||{})[Gn.Important=1]="Important",Gn[Gn.DashCase=2]="DashCase",Gn))();const k1="__ngContext__";function mn(n,t){n[k1]=t}function gh(n){const t=function ma(n){return n[k1]||null}(n);return t?Array.isArray(t)?t:t.lView:null}function _h(n,t){return undefined(n,t)}function ga(n){const t=n[3];return _r(t)?t[3]:t}function vh(n){return V1(n[13])}function wh(n){return V1(n[4])}function V1(n){for(;null!==n&&!_r(n);)n=n[4];return n}function Qo(n,t,e,r,i){if(null!=r){let o,s=!1;_r(r)?o=r:Fr(r)&&(s=!0,r=r[0]);const a=$t(r);0===n&&null!==e?null==i?G1(t,e,a):eo(t,e,a,i||null,!0):1===n&&null!==e?eo(t,e,a,i||null,!0):2===n?function Th(n,t,e){const r=rc(n,t);r&&function G3(n,t,e,r){St(n)?n.removeChild(t,e,r):t.removeChild(e)}(n,r,t,e)}(t,a,s):3===n&&t.destroyNode(a),null!=o&&function K3(n,t,e,r,i){const o=e[7];o!==$t(e)&&Qo(t,n,r,o,i);for(let a=10;a<e.length;a++){const l=e[a];ya(l[1],l,n,t,r,o)}}(t,n,o,e,i)}}function bh(n,t,e){if(St(n))return n.createElement(t,e);{const r=null!==e?function _b(n){const t=n.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(e):null;return null===r?n.createElement(t):n.createElementNS(r,t)}}function j1(n,t){const e=n[9],r=e.indexOf(t),i=t[3];1024&t[2]&&(t[2]&=-1025,qd(i,-1)),e.splice(r,1)}function Dh(n,t){if(n.length<=10)return;const e=10+t,r=n[e];if(r){const i=r[17];null!==i&&i!==n&&j1(i,r),t>0&&(n[e-1][4]=r[4]);const o=Ql(n,10+t);!function R3(n,t){ya(n,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);const s=o[19];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function H1(n,t){if(!(256&t[2])){const e=t[11];St(e)&&e.destroyNode&&ya(n,t,e,3,null,null),function B3(n){let t=n[13];if(!t)return Eh(n[1],n);for(;t;){let e=null;if(Fr(t))e=t[13];else{const r=t[10];r&&(e=r)}if(!e){for(;t&&!t[4]&&t!==n;)Fr(t)&&Eh(t[1],t),t=t[3];null===t&&(t=n),Fr(t)&&Eh(t[1],t),e=t&&t[4]}t=e}}(t)}}function Eh(n,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function z3(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let r=0;r<e.length;r+=2){const i=t[e[r]];if(!(i instanceof ia)){const o=e[r+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){const a=i[o[s]],l=o[s+1];try{l.call(a)}finally{}}else try{o.call(i)}finally{}}}}(n,t),function U3(n,t){const e=n.cleanup,r=t[7];let i=-1;if(null!==e)for(let o=0;o<e.length-1;o+=2)if("string"==typeof e[o]){const s=e[o+1],a="function"==typeof s?s(t):$t(t[s]),l=r[i=e[o+2]],c=e[o+3];"boolean"==typeof c?a.removeEventListener(e[o],l,c):c>=0?r[i=c]():r[i=-c].unsubscribe(),o+=2}else{const s=r[i=e[o+1]];e[o].call(s)}if(null!==r){for(let o=i+1;o<r.length;o++)r[o]();t[7]=null}}(n,t),1===t[1].type&&St(t[11])&&t[11].destroy();const e=t[17];if(null!==e&&_r(t[3])){e!==t[3]&&j1(e,t);const r=t[19];null!==r&&r.detachView(n)}}}function U1(n,t,e){return function z1(n,t,e){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return e[0];if(2&r.flags){const i=n.data[r.directiveStart].encapsulation;if(i===gr.None||i===gr.Emulated)return null}return Hn(r,e)}(n,t.parent,e)}function eo(n,t,e,r,i){St(n)?n.insertBefore(t,e,r,i):t.insertBefore(e,r,i)}function G1(n,t,e){St(n)?n.appendChild(t,e):t.appendChild(e)}function W1(n,t,e,r,i){null!==r?eo(n,t,e,r,i):G1(n,t,e)}function rc(n,t){return St(n)?n.parentNode(t):t.parentNode}function q1(n,t,e){return Z1(n,t,e)}let sc,ac,Z1=function K1(n,t,e){return 40&n.type?Hn(n,e):null};function ic(n,t,e,r){const i=U1(n,r,t),o=t[11],a=q1(r.parent||t[6],r,t);if(null!=i)if(Array.isArray(e))for(let l=0;l<e.length;l++)W1(o,i,e[l],a,!1);else W1(o,i,e,a,!1)}function oc(n,t){if(null!==t){const e=t.type;if(3&e)return Hn(t,n);if(4&e)return Sh(-1,n[t.index]);if(8&e){const r=t.child;if(null!==r)return oc(n,r);{const i=n[t.index];return _r(i)?Sh(-1,i):$t(i)}}if(32&e)return _h(t,n)()||$t(n[t.index]);{const r=Y1(n,t);return null!==r?Array.isArray(r)?r[0]:oc(ga(n[16]),r):oc(n,t.next)}}return null}function Y1(n,t){return null!==t?n[16][6].projection[t.projection]:null}function Sh(n,t){const e=10+n+1;if(e<t.length){const r=t[e],i=r[1].firstChild;if(null!==i)return oc(r,i)}return t[7]}function Ah(n,t,e,r,i,o,s){for(;null!=e;){const a=r[e.index],l=e.type;if(s&&0===t&&(a&&mn($t(a),r),e.flags|=4),64!=(64&e.flags))if(8&l)Ah(n,t,e.child,r,i,o,!1),Qo(t,n,i,a,o);else if(32&l){const c=_h(e,r);let u;for(;u=c();)Qo(t,n,i,u,o);Qo(t,n,i,a,o)}else 16&l?J1(n,t,r,e,i,o):Qo(t,n,i,a,o);e=s?e.projectionNext:e.next}}function ya(n,t,e,r,i,o){Ah(e,r,n.firstChild,t,i,o,!1)}function J1(n,t,e,r,i,o){const s=e[16],l=s[6].projection[r.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)Qo(t,n,i,l[c],o);else Ah(n,t,l,s[3],i,o,!0)}function X1(n,t,e){St(n)?n.setAttribute(t,"style",e):t.style.cssText=e}function xh(n,t,e){St(n)?""===e?n.removeAttribute(t,"class"):n.setAttribute(t,"class",e):t.className=e}function to(n){var t;return(null===(t=function Ih(){if(void 0===sc&&(sc=null,Ze.trustedTypes))try{sc=Ze.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return sc}())||void 0===t?void 0:t.createHTML(n))||n}function e0(n){var t;return(null===(t=function Ph(){if(void 0===ac&&(ac=null,Ze.trustedTypes))try{ac=Ze.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return ac}())||void 0===t?void 0:t.createHTML(n))||n}class no{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class X3 extends no{getTypeName(){return"HTML"}}class e5 extends no{getTypeName(){return"Style"}}class t5 extends no{getTypeName(){return"Script"}}class n5 extends no{getTypeName(){return"URL"}}class r5 extends no{getTypeName(){return"ResourceURL"}}function Wn(n){return n instanceof no?n.changingThisBreaksApplicationSecurity:n}function Vr(n,t){const e=r0(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}function r0(n){return n instanceof no&&n.getTypeName()||null}class c5{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(to(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class u5{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const r=this.inertDocument.createElement("body");e.appendChild(r)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=to(t),e;const r=this.inertDocument.createElement("body");return r.innerHTML=to(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0<i;i--){const s=e.item(i).name;("xmlns:ns1"===s||0===s.indexOf("ns1:"))&&t.removeAttribute(s)}let r=t.firstChild;for(;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}const h5=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,f5=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function _a(n){return(n=String(n)).match(h5)||n.match(f5)?n:"unsafe:"+n}function Br(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function va(...n){const t={};for(const e of n)for(const r in e)e.hasOwnProperty(r)&&(t[r]=!0);return t}const a0=Br("area,br,col,hr,img,wbr"),l0=Br("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),c0=Br("rp,rt"),kh=va(a0,va(l0,Br("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")),va(c0,Br("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")),va(c0,l0)),Nh=Br("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Oh=Br("srcset"),u0=va(Nh,Oh,Br("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Br("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")),p5=Br("script,style,template");class m5{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,r=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?r=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,r&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let i=this.checkClobberedElement(e,e.nextSibling);if(i){e=i;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!kh.hasOwnProperty(e))return this.sanitizedSomething=!0,!p5.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const r=t.attributes;for(let i=0;i<r.length;i++){const o=r.item(i),s=o.name,a=s.toLowerCase();if(!u0.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=o.value;Nh[a]&&(l=_a(l)),Oh[a]&&(n=l,l=(n=String(n)).split(",").map(t=>_a(t.trim())).join(", ")),this.buf.push(" ",s,'="',d0(l),'"')}var n;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();kh.hasOwnProperty(e)&&!a0.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(d0(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const g5=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,y5=/([^\#-~ |!])/g;function d0(n){return n.replace(/&/g,"&amp;").replace(g5,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(y5,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let lc;function h0(n,t){let e=null;try{lc=lc||function o0(n){const t=new u5(n);return function d5(){try{return!!(new window.DOMParser).parseFromString(to(""),"text/html")}catch(n){return!1}}()?new c5(t):t}(n);let r=t?String(t):"";e=lc.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=e.innerHTML,e=lc.getInertBodyElement(r)}while(r!==o);return to((new m5).sanitizeChildren(Fh(e)||e))}finally{if(e){const r=Fh(e)||e;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Fh(n){return"content"in n&&function _5(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var tt=(()=>((tt=tt||{})[tt.NONE=0]="NONE",tt[tt.HTML=1]="HTML",tt[tt.STYLE=2]="STYLE",tt[tt.SCRIPT=3]="SCRIPT",tt[tt.URL=4]="URL",tt[tt.RESOURCE_URL=5]="RESOURCE_URL",tt))();function Lh(n){const t=wa();return t?e0(t.sanitize(tt.HTML,n)||""):Vr(n,"HTML")?e0(Wn(n)):h0(zd(),ge(n))}function Yo(n){const t=wa();return t?t.sanitize(tt.URL,n)||"":Vr(n,"URL")?Wn(n):_a(ge(n))}function wa(){const n=k();return n&&n[12]}function $h(n){return n.ngOriginalError}function A5(n,...t){n.error(...t)}class Ca{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),r=function T5(n){return n&&n.ngErrorLogger||A5}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&$h(t);for(;e&&$h(e);)e=$h(e);return e||null}}const F5=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ze))();function p0(n){return n.ownerDocument.defaultView}function m0(n){return n.ownerDocument}function jr(n){return n instanceof Function?n():n}function y0(n,t,e){let r=n.length;for(;;){const i=n.indexOf(t,e);if(-1===i)return i;if(0===i||n.charCodeAt(i-1)<=32){const o=t.length;if(i+o===r||n.charCodeAt(i+o)<=32)return i}e=i+1}}const _0="ng-template";function R5(n,t,e){let r=0;for(;r<n.length;){let i=n[r++];if(e&&"class"===i){if(i=n[r],-1!==y0(i.toLowerCase(),t,0))return!0}else if(1===i){for(;r<n.length&&"string"==typeof(i=n[r++]);)if(i.toLowerCase()===t)return!0;return!1}}return!1}function v0(n){return 4===n.type&&n.value!==_0}function $5(n,t,e){return t===(4!==n.type||e?n.value:_0)}function V5(n,t,e){let r=4;const i=n.attrs||[],o=function H5(n){for(let t=0;t<n.length;t++)if(s1(n[t]))return t;return n.length}(i);let s=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!s)if(4&r){if(r=2|1&r,""!==l&&!$5(n,l,e)||""===l&&1===t.length){if(wr(r))return!1;s=!0}}else{const c=8&r?l:t[++a];if(8&r&&null!==n.attrs){if(!R5(n.attrs,c,e)){if(wr(r))return!1;s=!0}continue}const d=B5(8&r?"class":l,i,v0(n),e);if(-1===d){if(wr(r))return!1;s=!0;continue}if(""!==c){let f;f=d>o?"":i[d+1].toLowerCase();const p=8&r?f:null;if(p&&-1!==y0(p,c,0)||2&r&&c!==f){if(wr(r))return!1;s=!0}}}}else{if(!s&&!wr(r)&&!wr(l))return!1;if(s&&wr(l))continue;s=!1,r=l|1&r}}return wr(r)||s}function wr(n){return 0==(1&n)}function B5(n,t,e,r){if(null===t)return-1;let i=0;if(r||!e){let o=!1;for(;i<t.length;){const s=t[i];if(s===n)return i;if(3===s||6===s)o=!0;else{if(1===s||2===s){let a=t[++i];for(;"string"==typeof a;)a=t[++i];continue}if(4===s)break;if(0===s){i+=4;continue}}i+=o?1:2}return-1}return function U5(n,t){let e=n.indexOf(4);if(e>-1)for(e++;e<n.length;){const r=n[e];if("number"==typeof r)return-1;if(r===t)return e;e++}return-1}(t,n)}function w0(n,t,e=!1){for(let r=0;r<t.length;r++)if(V5(n,t[r],e))return!0;return!1}function z5(n,t){e:for(let e=0;e<t.length;e++){const r=t[e];if(n.length===r.length){for(let i=0;i<n.length;i++)if(n[i]!==r[i])continue e;return!0}}return!1}function C0(n,t){return n?":not("+t.trim()+")":t}function G5(n){let t=n[0],e=1,r=2,i="",o=!1;for(;e<n.length;){let s=n[e];if("string"==typeof s)if(2&r){const a=n[++e];i+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!wr(s)&&(t+=C0(o,i),i=""),r=s,o=o||!wr(r);e++}return""!==i&&(t+=C0(o,i)),t}const _e={};function O(n){b0(Fe(),k(),En()+n,!1)}function b0(n,t,e,r){if(!r)if(3==(3&t[2])){const o=n.preOrderCheckHooks;null!==o&&Hl(t,o,e)}else{const o=n.preOrderHooks;null!==o&&Ul(t,o,0,e)}Ii(e)}function cc(n,t){return n<<17|t<<2}function Cr(n){return n>>17&32767}function Vh(n){return 2|n}function li(n){return(131068&n)>>2}function Bh(n,t){return-131069&n|t<<2}function jh(n){return 1|n}function N0(n,t){const e=n.contentQueries;if(null!==e)for(let r=0;r<e.length;r+=2){const i=e[r],o=e[r+1];if(-1!==o){const s=n.data[o];Jd(i),s.contentQueries(2,t[o],o)}}}function ba(n,t,e,r,i,o,s,a,l,c){const u=t.blueprint.slice();return u[0]=i,u[2]=140|r,qg(u),u[3]=u[15]=n,u[8]=e,u[10]=s||n&&n[10],u[11]=a||n&&n[11],u[12]=l||n&&n[12]||null,u[9]=c||n&&n[9]||null,u[6]=o,u[16]=2==t.type?n[16]:u,u}function Xo(n,t,e,r,i){let o=n.data[t];if(null===o)o=function Qh(n,t,e,r,i){const o=Qg(),s=Kd(),l=n.data[t]=function c6(n,t,e,r,i,o){return{type:e,index:r,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?o:o&&o.parent,e,t,r,i);return null===n.firstChild&&(n.firstChild=l),null!==o&&(s?null==o.child&&null!==l.parent&&(o.child=l):null===o.next&&(o.next=l)),l}(n,t,e,r,i),function Ib(){return ye.lFrame.inI18n}()&&(o.flags|=64);else if(64&o.type){o.type=e,o.value=r,o.attrs=i;const s=function ra(){const n=ye.lFrame,t=n.currentTNode;return n.isParent?t:t.parent}();o.injectorIndex=null===s?-1:s.injectorIndex}return Rr(o,!0),o}function es(n,t,e,r){if(0===e)return-1;const i=t.length;for(let o=0;o<e;o++)t.push(r),n.blueprint.push(r),n.data.push(null);return i}function Da(n,t,e){Vl(t);try{const r=n.viewQuery;null!==r&&sf(1,r,e);const i=n.template;null!==i&&O0(n,t,i,1,e),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&N0(n,t),n.staticViewQueries&&sf(2,n.viewQuery,e);const o=n.components;null!==o&&function s6(n,t){for(let e=0;e<t.length;e++)T6(n,t[e])}(t,o)}catch(r){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),r}finally{t[2]&=-5,Bl()}}function ts(n,t,e,r){const i=t[2];if(256!=(256&i)){Vl(t);try{qg(t),function Yg(n){return ye.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==e&&O0(n,t,e,2,r);const s=3==(3&i);if(s){const c=n.preOrderCheckHooks;null!==c&&Hl(t,c,null)}else{const c=n.preOrderHooks;null!==c&&Ul(t,c,0,null),Xd(t,0)}if(function M6(n){for(let t=vh(n);null!==t;t=wh(t)){if(!t[2])continue;const e=t[9];for(let r=0;r<e.length;r++){const i=e[r],o=i[3];0==(1024&i[2])&&qd(o,1),i[2]|=1024}}}(t),function E6(n){for(let t=vh(n);null!==t;t=wh(t))for(let e=10;e<t.length;e++){const r=t[e],i=r[1];Wd(r)&&ts(i,r,i.template,r[8])}}(t),null!==n.contentQueries&&N0(n,t),s){const c=n.contentCheckHooks;null!==c&&Hl(t,c)}else{const c=n.contentHooks;null!==c&&Ul(t,c,1),Xd(t,1)}!function i6(n,t){const e=n.hostBindingOpCodes;if(null!==e)try{for(let r=0;r<e.length;r++){const i=e[r];if(i<0)Ii(~i);else{const o=i,s=e[++r],a=e[++r];Pb(s,o),a(2,t[o])}}}finally{Ii(-1)}}(n,t);const a=n.components;null!==a&&function o6(n,t){for(let e=0;e<t.length;e++)S6(n,t[e])}(t,a);const l=n.viewQuery;if(null!==l&&sf(2,l,r),s){const c=n.viewCheckHooks;null!==c&&Hl(t,c)}else{const c=n.viewHooks;null!==c&&Ul(t,c,2),Xd(t,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),t[2]&=-73,1024&t[2]&&(t[2]&=-1025,qd(t[3],-1))}finally{Bl()}}}function a6(n,t,e,r){const i=t[10],s=Wg(t);try{!s&&i.begin&&i.begin(),s&&Da(n,t,r),ts(n,t,e,r)}finally{!s&&i.end&&i.end()}}function O0(n,t,e,r,i){const o=En(),s=2&r;try{Ii(-1),s&&t.length>20&&b0(n,t,20,!1),e(r,i)}finally{Ii(o)}}function F0(n,t,e){if($d(t)){const i=t.directiveEnd;for(let o=t.directiveStart;o<i;o++){const s=n.data[o];s.contentQueries&&s.contentQueries(1,e[o],o)}}}function Yh(n,t,e){!Zg()||(function g6(n,t,e,r){const i=e.directiveStart,o=e.directiveEnd;n.firstCreatePass||sa(e,t),mn(r,t);const s=e.initialInputs;for(let a=i;a<o;a++){const l=n.data[a],c=vr(l);c&&C6(t,e,l);const u=aa(t,n,a,e);mn(u,t),null!==s&&b6(0,a-i,u,l,0,s),c&&(Un(e.index,t)[8]=u)}}(n,t,e,Hn(e,t)),128==(128&e.flags)&&function y6(n,t,e){const r=e.directiveStart,i=e.directiveEnd,s=e.index,a=function kb(){return ye.lFrame.currentDirectiveIndex}();try{Ii(s);for(let l=r;l<i;l++){const c=n.data[l],u=t[l];Qd(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&U0(c,u)}}finally{Ii(-1),Qd(a)}}(n,t,e))}function Jh(n,t,e=Hn){const r=t.localNames;if(null!==r){let i=t.index+1;for(let o=0;o<r.length;o+=2){const s=r[o+1],a=-1===s?e(t,n):n[s];n[i++]=a}}}function L0(n){const t=n.tView;return null===t||t.incompleteFirstPass?n.tView=hc(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):t}function hc(n,t,e,r,i,o,s,a,l,c){const u=20+r,d=u+i,f=function l6(n,t){const e=[];for(let r=0;r<t;r++)e.push(r<n?null:_e);return e}(u,d),p="function"==typeof c?c():c;return f[1]={type:n,blueprint:f,template:e,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,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:l,consts:p,incompleteFirstPass:!1}}function V0(n,t,e,r){const i=Z0(t);null===e?i.push(r):(i.push(e),n.firstCreatePass&&Q0(n).push(r,i.length-1))}function B0(n,t,e){for(let r in n)if(n.hasOwnProperty(r)){const i=n[r];(e=null===e?{}:e).hasOwnProperty(r)?e[r].push(t,i):e[r]=[t,i]}return e}function qn(n,t,e,r,i,o,s,a){const l=Hn(t,e);let u,c=t.inputs;!a&&null!=c&&(u=c[r])?(X0(n,e,u,r,i),Fl(t)&&function h6(n,t){const e=Un(t,n);16&e[2]||(e[2]|=64)}(e,t.index)):3&t.type&&(r=function d6(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(r),i=null!=s?s(i,t.value||"",r):i,St(o)?o.setProperty(l,r,i):th(r)||(l.setProperty?l.setProperty(r,i):l[r]=i))}function Xh(n,t,e,r){let i=!1;if(Zg()){const o=function _6(n,t,e){const r=n.directiveRegistry;let i=null;if(r)for(let o=0;o<r.length;o++){const s=r[o];w0(e,s.selectors,!1)&&(i||(i=[]),Kl(sa(e,t),n,s.type),vr(s)?(z0(n,e),i.unshift(s)):i.push(s))}return i}(n,t,e),s=null===r?null:{"":-1};if(null!==o){i=!0,G0(e,n.data.length,o.length);for(let u=0;u<o.length;u++){const d=o[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=es(n,t,o.length,null);for(let u=0;u<o.length;u++){const d=o[u];e.mergedAttrs=Gl(e.mergedAttrs,d.hostAttrs),W0(n,e,t,c,d),w6(c,d,s),null!==d.contentQueries&&(e.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(e.flags|=128);const f=d.type.prototype;!a&&(f.ngOnChanges||f.ngOnInit||f.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e.index),a=!0),!l&&(f.ngOnChanges||f.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e.index),l=!0),c++}!function u6(n,t){const r=t.directiveEnd,i=n.data,o=t.attrs,s=[];let a=null,l=null;for(let c=t.directiveStart;c<r;c++){const u=i[c],d=u.inputs,f=null===o||v0(t)?null:D6(d,o);s.push(f),a=B0(d,c,a),l=B0(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(t.flags|=16),a.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=s,t.inputs=a,t.outputs=l}(n,e)}s&&function v6(n,t,e){if(t){const r=n.localNames=[];for(let i=0;i<t.length;i+=2){const o=e[t[i+1]];if(null==o)throw new Y(-301,!1);r.push(t[i],o)}}}(e,r,s)}return e.mergedAttrs=Gl(e.mergedAttrs,e.attrs),i}function H0(n,t,e,r,i,o){const s=o.hostBindings;if(s){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~t.index;(function m6(n){let t=n.length;for(;t>0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(r,i,s)}}function U0(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function z0(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function w6(n,t,e){if(e){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)e[t.exportAs[r]]=n;vr(t)&&(e[""]=n)}}function G0(n,t,e){n.flags|=1,n.directiveStart=t,n.directiveEnd=t+e,n.providerIndexes=t}function W0(n,t,e,r,i){n.data[r]=i;const o=i.factory||(i.factory=Xi(i.type)),s=new ia(o,vr(i),null);n.blueprint[r]=s,e[r]=s,H0(n,t,0,r,es(n,e,i.hostVars,_e),i)}function C6(n,t,e){const r=Hn(t,n),i=L0(e),o=n[10],s=fc(n,ba(n,i,null,e.onPush?64:16,r,t,o,o.createRenderer(r,e),null,null));n[t.index]=s}function Hr(n,t,e,r,i,o){const s=Hn(n,t);!function ef(n,t,e,r,i,o,s){if(null==o)St(n)?n.removeAttribute(t,i,e):t.removeAttribute(i);else{const a=null==s?ge(o):s(o,r||"",i);St(n)?n.setAttribute(t,i,a,e):e?t.setAttributeNS(e,i,a):t.setAttribute(i,a)}}(t[11],s,o,n.value,e,r,i)}function b6(n,t,e,r,i,o){const s=o[t];if(null!==s){const a=r.setInput;for(let l=0;l<s.length;){const c=s[l++],u=s[l++],d=s[l++];null!==a?r.setInput(e,d,c,u):e[u]=d}}}function D6(n,t){let e=null,r=0;for(;r<t.length;){const i=t[r];if(0!==i)if(5!==i){if("number"==typeof i)break;n.hasOwnProperty(i)&&(null===e&&(e=[]),e.push(i,n[i],t[r+1])),r+=2}else r+=2;else r+=4}return e}function q0(n,t,e,r){return new Array(n,!0,!1,t,null,0,r,e,null,null)}function S6(n,t){const e=Un(t,n);if(Wd(e)){const r=e[1];80&e[2]?ts(r,e,r.template,e[8]):e[5]>0&&tf(e)}}function tf(n){for(let r=vh(n);null!==r;r=wh(r))for(let i=10;i<r.length;i++){const o=r[i];if(1024&o[2]){const s=o[1];ts(s,o,s.template,o[8])}else o[5]>0&&tf(o)}const e=n[1].components;if(null!==e)for(let r=0;r<e.length;r++){const i=Un(e[r],n);Wd(i)&&i[5]>0&&tf(i)}}function T6(n,t){const e=Un(t,n),r=e[1];(function A6(n,t){for(let e=t.length;e<n.blueprint.length;e++)t.push(n.blueprint[e])})(r,e),Da(r,e,e[8])}function fc(n,t){return n[13]?n[14][4]=t:n[13]=t,n[14]=t,t}function nf(n){for(;n;){n[2]|=64;const t=ga(n);if(cb(n)&&!t)return n;n=t}return null}function K0(n){!function rf(n){for(let t=0;t<n.components.length;t++){const e=n.components[t],r=gh(e),i=r[1];a6(i,r,i.template,e)}}(n[8])}function sf(n,t,e){Jd(0),t(n,e)}const I6=(()=>Promise.resolve(null))();function Z0(n){return n[7]||(n[7]=[])}function Q0(n){return n.cleanup||(n.cleanup=[])}function J0(n,t){const e=n[9],r=e?e.get(Ca,null):null;r&&r.handleError(t)}function X0(n,t,e,r,i){for(let o=0;o<e.length;){const s=e[o++],a=e[o++],l=t[s],c=n.data[s];null!==c.setInput?c.setInput(l,i,r,a):l[a]=i}}function ci(n,t,e){const r=Rl(t,n);!function B1(n,t,e){St(n)?n.setValue(t,e):t.textContent=e}(n[11],r,e)}function pc(n,t,e){let r=e?n.styles:null,i=e?n.classes:null,o=0;if(null!==t)for(let s=0;s<t.length;s++){const a=t[s];"number"==typeof a?o=a:1==o?i=xd(i,a):2==o&&(r=xd(r,a+": "+t[++s]+";"))}e?n.styles=r:n.stylesWithoutHost=r,e?n.classes=i:n.classesWithoutHost=i}const af=new ae("INJECTOR",-1);class ey{get(t,e=da){if(e===da){const r=new Error(`NullInjectorError: No provider for ${qe(t)}!`);throw r.name="NullInjectorError",r}return e}}const lf=new ae("Set Injector scope."),Ea={},N6={};let cf;function ty(){return void 0===cf&&(cf=new ey),cf}function ny(n,t=null,e=null,r){const i=ry(n,t,e,r);return i._resolveInjectorDefTypes(),i}function ry(n,t=null,e=null,r){return new O6(n,e,t||ty(),r)}class O6{constructor(t,e,r,i=null){this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const o=[];e&&$r(e,a=>this.processProvider(a,t,e)),$r([t],a=>this.processInjectorType(a,[],o)),this.records.set(af,ns(void 0,this));const s=this.records.get(lf);this.scope=null!=s?s.value:null,this.source=i||("object"==typeof t?null:qe(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=da,r=ve.Default){this.assertNotDestroyed();const i=E1(this),o=Si(void 0);try{if(!(r&ve.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function H6(n){return"function"==typeof n||"object"==typeof n&&n instanceof ae}(t)&&Pd(t);a=l&&this.injectableDefInScope(l)?ns(uf(t),Ea):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&ve.Self?ty():this.parent).get(t,e=r&ve.Optional&&e===da?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Jl]=s[Jl]||[]).unshift(qe(t)),i)throw s;return function m3(n,t,e,r){const i=n[Jl];throw t[D1]&&i.unshift(t[D1]),n.message=function g3(n,t,e,r=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let i=qe(t);if(Array.isArray(t))i=t.map(qe).join(" -> ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):qe(a)))}i=`{${o.join(", ")}}`}return`${e}${r?"("+r+")":""}[${i}]: ${n.replace(u3,"\n ")}`}("\n"+n.message,i,e,r),n.ngTokenPath=i,n[Jl]=null,n}(s,t,"R3InjectorError",this.source)}throw s}finally{Si(o),E1(i)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((r,i)=>t.push(qe(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Y(205,!1)}processInjectorType(t,e,r){if(!(t=Se(t)))return!1;let i=kg(t);const o=null==i&&t.ngModule||void 0,s=void 0===o?t:o,a=-1!==r.indexOf(s);if(void 0!==o&&(i=kg(o)),null==i)return!1;if(null!=i.imports&&!a){let u;r.push(s);try{$r(i.imports,d=>{this.processInjectorType(d,e,r)&&(void 0===u&&(u=[]),u.push(d))})}finally{}if(void 0!==u)for(let d=0;d<u.length;d++){const{ngModule:f,providers:p}=u[d];$r(p,y=>this.processProvider(y,f,p||et))}}this.injectorDefTypes.add(s);const l=Xi(s)||(()=>new s);this.records.set(s,ns(l,Ea));const c=i.providers;if(null!=c&&!a){const u=t;$r(c,d=>this.processProvider(d,u,c))}return void 0!==o&&void 0!==t.providers}processProvider(t,e,r){let i=rs(t=Se(t))?t:Se(t&&t.provide);const o=function L6(n,t,e){return oy(n)?ns(void 0,n.useValue):ns(iy(n),Ea)}(t);if(rs(t)||!0!==t.multi)this.records.get(i);else{let s=this.records.get(i);s||(s=ns(void 0,Ea,!0),s.factory=()=>hh(s.multi),this.records.set(i,s)),i=t,s.multi.push(t)}this.records.set(i,o)}hydrate(t,e){return e.value===Ea&&(e.value=N6,e.value=e.factory()),"object"==typeof e.value&&e.value&&function j6(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=Se(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function uf(n){const t=Pd(n),e=null!==t?t.factory:Xi(n);if(null!==e)return e;if(n instanceof ae)throw new Y(204,!1);if(n instanceof Function)return function F6(n){const t=n.length;if(t>0)throw ua(t,"?"),new Y(204,!1);const e=function Q4(n){const t=n&&(n[Il]||n[Ng]);if(t){const e=function Y4(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new Y(204,!1)}function iy(n,t,e){let r;if(rs(n)){const i=Se(n);return Xi(i)||uf(i)}if(oy(n))r=()=>Se(n.useValue);else if(function $6(n){return!(!n||!n.useFactory)}(n))r=()=>n.useFactory(...hh(n.deps||[]));else if(function R6(n){return!(!n||!n.useExisting)}(n))r=()=>U(Se(n.useExisting));else{const i=Se(n&&(n.useClass||n.provide));if(!function B6(n){return!!n.deps}(n))return Xi(i)||uf(i);r=()=>new i(...hh(n.deps))}return r}function ns(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function oy(n){return null!==n&&"object"==typeof n&&h3 in n}function rs(n){return"function"==typeof n}let mt=(()=>{class n{static create(e,r){var i;if(Array.isArray(e))return ny({name:""},r,e,"");{const o=null!==(i=e.name)&&void 0!==i?i:"";return ny({name:o},e.parent,e.providers,o)}}}return n.THROW_IF_NOT_FOUND=da,n.NULL=new ey,n.\u0275prov=oe({token:n,providedIn:"any",factory:()=>U(af)}),n.__NG_ELEMENT_ID__=-1,n})();function Q6(n,t){jl(gh(n)[1],qt())}function Le(n){let t=function yy(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),e=!0;const r=[n];for(;t;){let i;if(vr(n))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Y(903,"");i=t.\u0275dir}if(i){if(e){r.push(i);const s=n;s.inputs=ff(n.inputs),s.declaredInputs=ff(n.declaredInputs),s.outputs=ff(n.outputs);const a=i.hostBindings;a&&e9(n,a);const l=i.viewQuery,c=i.contentQueries;if(l&&J6(n,l),c&&X6(n,c),Ad(n.inputs,i.inputs),Ad(n.declaredInputs,i.declaredInputs),Ad(n.outputs,i.outputs),vr(i)&&i.data.animation){const u=n.data;u.animation=(u.animation||[]).concat(i.data.animation)}}const o=i.features;if(o)for(let s=0;s<o.length;s++){const a=o[s];a&&a.ngInherit&&a(n),a===Le&&(e=!1)}}t=Object.getPrototypeOf(t)}!function Y6(n){let t=0,e=null;for(let r=n.length-1;r>=0;r--){const i=n[r];i.hostVars=t+=i.hostVars,i.hostAttrs=Gl(i.hostAttrs,e=Gl(e,i.hostAttrs))}}(r)}function ff(n){return n===Oo?{}:n===et?[]:n}function J6(n,t){const e=n.viewQuery;n.viewQuery=e?(r,i)=>{t(r,i),e(r,i)}:t}function X6(n,t){const e=n.contentQueries;n.contentQueries=e?(r,i,o)=>{t(r,i,o),e(r,i,o)}:t}function e9(n,t){const e=n.hostBindings;n.hostBindings=e?(r,i)=>{t(r,i),e(r,i)}:t}let mc=null;function is(){if(!mc){const n=Ze.Symbol;if(n&&n.iterator)mc=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const r=t[e];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(mc=r)}}}return mc}function Ma(n){return!!function pf(n){return null!==n&&("function"==typeof n||"object"==typeof n)}(n)&&(Array.isArray(n)||!(n instanceof Map)&&is()in n)}function Ur(n,t,e){return n[t]=e}function gn(n,t,e){return!Object.is(n[t],e)&&(n[t]=e,!0)}function ro(n,t,e,r){const i=gn(n,t,e);return gn(n,t+1,r)||i}function yn(n,t,e,r){const i=k();return gn(i,Bo(),t)&&(Fe(),Hr(pt(),i,n,t,e,r)),yn}function J(n,t,e,r,i,o,s,a){const l=k(),c=Fe(),u=n+20,d=c.firstCreatePass?function a9(n,t,e,r,i,o,s,a,l){const c=t.consts,u=Xo(t,n,4,s||null,xi(c,a));Xh(t,e,u,xi(c,l)),jl(t,u);const d=u.tViews=hc(2,u,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c);return null!==t.queries&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}(u,c,l,t,e,r,i,o,s):c.data[u];Rr(d,!1);const f=l[11].createComment("");ic(c,l,f,d),mn(f,l),fc(l,l[u]=q0(f,l,f,d)),Ll(d)&&Yh(c,l,d),null!=s&&Jh(l,d,a)}function io(n){return Vo(function xb(){return ye.lFrame.contextLView}(),20+n)}function I(n,t=ve.Default){const e=k();return null===e?U(n,t):f1(qt(),e,Se(n),t)}function R(n,t,e){const r=k();return gn(r,Bo(),t)&&qn(Fe(),pt(),r,n,t,r[11],e,!1),R}function vf(n,t,e,r,i){const s=i?"class":"style";X0(n,e,t.inputs[s],s,r)}function j(n,t,e,r){const i=k(),o=Fe(),s=20+n,a=i[11],l=i[s]=bh(a,t,function Bb(){return ye.lFrame.currentNamespace}()),c=o.firstCreatePass?function x9(n,t,e,r,i,o,s){const a=t.consts,c=Xo(t,n,2,i,xi(a,o));return Xh(t,e,c,xi(a,s)),null!==c.attrs&&pc(c,c.attrs,!1),null!==c.mergedAttrs&&pc(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(s,o,i,0,t,e,r):o.data[s];Rr(c,!0);const u=c.mergedAttrs;null!==u&&zl(a,l,u);const d=c.classes;null!==d&&xh(a,l,d);const f=c.styles;return null!==f&&X1(a,l,f),64!=(64&c.flags)&&ic(o,i,l,c),0===function Eb(){return ye.lFrame.elementDepthCount}()&&mn(l,i),function Mb(){ye.lFrame.elementDepthCount++}(),Ll(c)&&(Yh(o,i,c),F0(o,c,i)),null!==r&&Jh(i,c),j}function z(){let n=qt();Kd()?Zd():(n=n.parent,Rr(n,!1));const t=n;!function Sb(){ye.lFrame.elementDepthCount--}();const e=Fe();return e.firstCreatePass&&(jl(e,n),$d(n)&&e.queries.elementEnd(n)),null!=t.classesWithoutHost&&function Gb(n){return 0!=(16&n.flags)}(t)&&vf(e,t,k(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Wb(n){return 0!=(32&n.flags)}(t)&&vf(e,t,k(),t.stylesWithoutHost,!1),z}function je(n,t,e,r){return j(n,t,e,r),z(),je}function Zt(n,t,e){const r=k(),i=Fe(),o=n+20,s=i.firstCreatePass?function I9(n,t,e,r,i){const o=t.consts,s=xi(o,r),a=Xo(t,n,8,"ng-container",s);return null!==s&&pc(a,s,!0),Xh(t,e,a,xi(o,i)),null!==t.queries&&t.queries.elementStart(t,a),a}(o,i,r,t,e):i.data[o];Rr(s,!0);const a=r[o]=r[11].createComment("");return ic(i,r,a,s),mn(a,r),Ll(s)&&(Yh(i,r,s),F0(i,s,r)),null!=e&&Jh(r,s),Zt}function Qt(){let n=qt();const t=Fe();return Kd()?Zd():(n=n.parent,Rr(n,!1)),t.firstCreatePass&&(jl(t,n),$d(n)&&t.queries.elementEnd(n)),Qt}function _c(n,t,e){return Zt(n,t,e),Qt(),_c}function Sn(){return k()}function vc(n){return!!n&&"function"==typeof n.then}function Ry(n){return!!n&&"function"==typeof n.subscribe}const $y=Ry;function ke(n,t,e,r){const i=k(),o=Fe(),s=qt();return function By(n,t,e,r,i,o,s,a){const l=Ll(r),u=n.firstCreatePass&&Q0(n),d=t[8],f=Z0(t);let p=!0;if(3&r.type||a){const b=Hn(r,t),S=a?a(b):b,E=f.length,F=a?G=>a($t(G[r.index])):r.index;if(St(e)){let G=null;if(!a&&l&&(G=function P9(n,t,e,r){const i=n.cleanup;if(null!=i)for(let o=0;o<i.length-1;o+=2){const s=i[o];if(s===e&&i[o+1]===r){const a=t[7],l=i[o+2];return a.length>l?a[l]:null}"string"==typeof s&&(o+=2)}return null}(n,t,i,r.index)),null!==G)(G.__ngLastListenerFn__||G).__ngNextListenerFn__=o,G.__ngLastListenerFn__=o,p=!1;else{o=wf(r,t,d,o,!1);const ie=e.listen(S,i,o);f.push(o,ie),u&&u.push(i,F,E,E+1)}}else o=wf(r,t,d,o,!0),S.addEventListener(i,o,s),f.push(o),u&&u.push(i,F,E,s)}else o=wf(r,t,d,o,!1);const y=r.outputs;let w;if(p&&null!==y&&(w=y[i])){const b=w.length;if(b)for(let S=0;S<b;S+=2){const Z=t[w[S]][w[S+1]].subscribe(o),Q=f.length;f.push(o,Z),u&&u.push(i,r.index,Q,-(Q+1))}}}(o,i,i[11],s,n,t,!!e,r),ke}function jy(n,t,e,r){try{return!1!==e(r)}catch(i){return J0(n,i),!1}}function wf(n,t,e,r,i){return function o(s){if(s===Function)return r;const a=2&n.flags?Un(n.index,t):t;0==(32&t[2])&&nf(a);let l=jy(t,0,r,s),c=o.__ngNextListenerFn__;for(;c;)l=jy(t,0,c,s)&&l,c=c.__ngNextListenerFn__;return i&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function ne(n=1){return function Ob(n){return(ye.lFrame.contextLView=function Fb(n,t){for(;n>0;)t=t[15],n--;return t}(n,ye.lFrame.contextLView))[8]}(n)}function k9(n,t){let e=null;const r=function j5(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(n);for(let i=0;i<t.length;i++){const o=t[i];if("*"!==o){if(null===r?w0(n,o,!0):z5(r,o))return i}else e=i}return e}function Cf(n,t=0,e){const r=k(),i=Fe(),o=Xo(i,20+n,16,null,e||null);null===o.projection&&(o.projection=t),Zd(),64!=(64&o.flags)&&function q3(n,t,e){J1(t[11],0,t,e,U1(n,e,t),q1(e.parent||t[6],e,t))}(i,r,o)}function Jy(n,t,e,r,i){const o=n[e+1],s=null===t;let a=r?Cr(o):li(o),l=!1;for(;0!==a&&(!1===l||s);){const u=n[a+1];F9(n[a],t)&&(l=!0,n[a+1]=r?jh(u):Vh(u)),a=r?Cr(u):li(u)}l&&(n[e+1]=r?Vh(o):jh(o))}function F9(n,t){return null===n||null==t||(Array.isArray(n)?n[1]:n)===t||!(!Array.isArray(n)||"string"!=typeof t)&&Ko(n,t)>=0}const Yt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Xy(n){return n.substring(Yt.key,Yt.keyEnd)}function e_(n,t){const e=Yt.textEnd;return e===t?-1:(t=Yt.keyEnd=function V9(n,t,e){for(;t<e&&n.charCodeAt(t)>32;)t++;return t}(n,Yt.key=t,e),ms(n,t,e))}function ms(n,t,e){for(;t<e&&n.charCodeAt(t)<=32;)t++;return t}function gs(n,t,e){return Er(n,t,e,!1),gs}function Dr(n,t){return Er(n,t,null,!0),Dr}function ui(n){!function Mr(n,t,e,r){const i=Fe(),o=ai(2);i.firstUpdatePass&&s_(i,null,o,r);const s=k();if(e!==_e&&gn(s,o,e)){const a=i.data[En()];if(u_(a,r)&&!o_(i,o)){let l=r?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=xd(l,e||"")),vf(i,a,s,e,r)}else!function K9(n,t,e,r,i,o,s,a){i===_e&&(i=et);let l=0,c=0,u=0<i.length?i[0]:null,d=0<o.length?o[0]:null;for(;null!==u||null!==d;){const f=l<i.length?i[l+1]:void 0,p=c<o.length?o[c+1]:void 0;let w,y=null;u===d?(l+=2,c+=2,f!==p&&(y=d,w=p)):null===d||null!==u&&u<d?(l+=2,y=u):(c+=2,y=d,w=p),null!==y&&l_(n,t,e,r,y,w,s,a),u=l<i.length?i[l]:null,d=c<o.length?o[c]:null}}(i,a,s,s[11],s[o+1],s[o+1]=function q9(n,t,e){if(null==e||""===e)return et;const r=[],i=Wn(e);if(Array.isArray(i))for(let o=0;o<i.length;o++)n(r,i[o],!0);else if("object"==typeof i)for(const o in i)i.hasOwnProperty(o)&&n(r,o,i[o]);else"string"==typeof i&&t(r,i);return r}(n,t,e),r,o)}}(zn,Gr,n,!0)}function Gr(n,t){for(let e=function R9(n){return function n_(n){Yt.key=0,Yt.keyEnd=0,Yt.value=0,Yt.valueEnd=0,Yt.textEnd=n.length}(n),e_(n,ms(n,0,Yt.textEnd))}(t);e>=0;e=e_(t,e))zn(n,Xy(t),!0)}function Er(n,t,e,r){const i=k(),o=Fe(),s=ai(2);o.firstUpdatePass&&s_(o,n,s,r),t!==_e&&gn(i,s,t)&&l_(o,o.data[En()],i,i[11],n,i[s+1]=function Z9(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=qe(Wn(n)))),n}(t,e),r,s)}function o_(n,t){return t>=n.expandoStartIndex}function s_(n,t,e,r){const i=n.data;if(null===i[e+1]){const o=i[En()],s=o_(n,e);u_(o,r)&&null===t&&!s&&(t=!1),t=function U9(n,t,e,r){const i=Yd(n);let o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(e=Ta(e=Df(null,n,t,e,r),t.attrs,r),o=null);else{const s=t.directiveStylingLast;if(-1===s||n[s]!==i)if(e=Df(i,n,t,e,r),null===o){let l=function z9(n,t,e){const r=e?t.classBindings:t.styleBindings;if(0!==li(r))return n[Cr(r)]}(n,t,r);void 0!==l&&Array.isArray(l)&&(l=Df(null,n,t,l[1],r),l=Ta(l,t.attrs,r),function G9(n,t,e,r){n[Cr(e?t.classBindings:t.styleBindings)]=r}(n,t,r,l))}else o=function W9(n,t,e){let r;const i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o<i;o++)r=Ta(r,n[o].hostAttrs,e);return Ta(r,t.attrs,e)}(n,t,r)}return void 0!==o&&(r?t.residualClasses=o:t.residualStyles=o),e}(i,o,t,r),function N9(n,t,e,r,i,o){let s=o?t.classBindings:t.styleBindings,a=Cr(s),l=li(s);n[r]=e;let u,c=!1;if(Array.isArray(e)){const d=e;u=d[1],(null===u||Ko(d,u)>0)&&(c=!0)}else u=e;if(i)if(0!==l){const f=Cr(n[a+1]);n[r+1]=cc(f,a),0!==f&&(n[f+1]=Bh(n[f+1],r)),n[a+1]=function K5(n,t){return 131071&n|t<<17}(n[a+1],r)}else n[r+1]=cc(a,0),0!==a&&(n[a+1]=Bh(n[a+1],r)),a=r;else n[r+1]=cc(l,0),0===a?a=r:n[l+1]=Bh(n[l+1],r),l=r;c&&(n[r+1]=Vh(n[r+1])),Jy(n,u,r,!0),Jy(n,u,r,!1),function O9(n,t,e,r,i){const o=i?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof t&&Ko(o,t)>=0&&(e[r+1]=jh(e[r+1]))}(t,u,n,r,o),s=cc(a,l),o?t.classBindings=s:t.styleBindings=s}(i,o,t,e,s,r)}}function Df(n,t,e,r,i){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<s&&(o=t[a],r=Ta(r,o.hostAttrs,i),o!==n);)a++;return null!==n&&(e.directiveStylingLast=a),r}function Ta(n,t,e){const r=e?1:2;let i=-1;if(null!==t)for(let o=0;o<t.length;o++){const s=t[o];"number"==typeof s?i=s:i===r&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),zn(n,s,!!e||t[++o]))}return void 0===n?null:n}function l_(n,t,e,r,i,o,s,a){if(!(3&t.type))return;const l=n.data,c=l[a+1];wc(function M0(n){return 1==(1&n)}(c)?c_(l,t,e,i,li(c),s):void 0)||(wc(o)||function E0(n){return 2==(2&n)}(c)&&(o=c_(l,null,e,i,a,s)),function Z3(n,t,e,r,i){const o=St(n);if(t)i?o?n.addClass(e,r):e.classList.add(r):o?n.removeClass(e,r):e.classList.remove(r);else{let s=-1===r.indexOf("-")?void 0:Gn.DashCase;if(null==i)o?n.removeStyle(e,r,s):e.style.removeProperty(r);else{const a="string"==typeof i&&i.endsWith("!important");a&&(i=i.slice(0,-10),s|=Gn.Important),o?n.setStyle(e,r,i,s):e.style.setProperty(r,i,a?"important":"")}}}(r,s,Rl(En(),e),i,o))}function c_(n,t,e,r,i,o){const s=null===t;let a;for(;i>0;){const l=n[i],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let f=e[i+1];f===_e&&(f=d?et:void 0);let p=d?ch(f,r):u===r?f:void 0;if(c&&!wc(p)&&(p=ch(l,r)),wc(p)&&(a=p,s))return a;const y=n[i+1];i=s?Cr(y):li(y)}if(null!==t){let l=o?t.residualClasses:t.residualStyles;null!=l&&(a=ch(l,r))}return a}function wc(n){return void 0!==n}function u_(n,t){return 0!=(n.flags&(t?16:32))}function pe(n,t=""){const e=k(),r=Fe(),i=n+20,o=r.firstCreatePass?Xo(r,i,1,t,null):r.data[i],s=e[i]=function Ch(n,t){return St(n)?n.createText(t):n.createTextNode(t)}(e[11],t);ic(r,e,s,o),Rr(o,!1)}function Wr(n){return _n("",n,""),Wr}function _n(n,t,e){const r=k(),i=function ss(n,t,e,r){return gn(n,Bo(),e)?t+ge(e)+r:_e}(r,n,t,e);return i!==_e&&ci(r,En(),i),_n}function Cc(n,t,e){const r=k();if(gn(r,Bo(),t)){const o=Fe(),s=pt();qn(o,s,r,n,t,function Y0(n,t,e){return(null===n||vr(n))&&(e=function Cb(n){for(;Array.isArray(n);){if("object"==typeof n[1])return n;n=n[0]}return null}(e[t.index])),e[11]}(Yd(o.data),s,r),e,!0)}return Cc}const bc="en-US";let P_=bc;function Sf(n,t,e,r,i){if(n=Se(n),Array.isArray(n))for(let o=0;o<n.length;o++)Sf(n[o],t,e,r,i);else{const o=Fe(),s=k();let a=rs(n)?n:Se(n.provide),l=iy(n);const c=qt(),u=1048575&c.providerIndexes,d=c.directiveStart,f=c.providerIndexes>>20;if(rs(n)||!n.multi){const p=new ia(l,i,I),y=Af(a,t,i?u:u+f,d);-1===y?(Kl(sa(c,s),o,a),Tf(o,n,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),e.push(p),s.push(p)):(e[y]=p,s[y]=p)}else{const p=Af(a,t,u+f,d),y=Af(a,t,u,u+f),w=p>=0&&e[p],b=y>=0&&e[y];if(i&&!b||!i&&!w){Kl(sa(c,s),o,a);const S=function p7(n,t,e,r,i){const o=new ia(n,e,I);return o.multi=[],o.index=t,o.componentProviders=0,t2(o,i,r&&!e),o}(i?f7:h7,e.length,i,r,l);!i&&b&&(e[y].providerFactory=S),Tf(o,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),e.push(S),s.push(S)}else Tf(o,n,p>-1?p:y,t2(e[i?y:p],l,!i&&r));!i&&r&&b&&e[y].componentProviders++}}}function Tf(n,t,e,r){const i=rs(t),o=function V6(n){return!!n.useClass}(t);if(i||o){const l=(o?Se(t.useClass):t).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!i&&t.multi){const u=c.indexOf(e);-1===u?c.push(e,[r,l]):c[u+1].push(r,l)}else c.push(e,l)}}}function t2(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function Af(n,t,e,r){for(let i=e;i<r;i++)if(t[i]===n)return i;return-1}function h7(n,t,e,r){return xf(this.multi,[])}function f7(n,t,e,r){const i=this.multi;let o;if(this.providerFactory){const s=this.providerFactory.componentProviders,a=aa(e,e[1],this.providerFactory.index,r);o=a.slice(0,s),xf(i,o);for(let l=s;l<a.length;l++)o.push(a[l])}else o=[],xf(i,o);return o}function xf(n,t){for(let e=0;e<n.length;e++)t.push((0,n[e])());return t}function nt(n,t=[]){return e=>{e.providersResolver=(r,i)=>function d7(n,t,e){const r=Fe();if(r.firstCreatePass){const i=vr(n);Sf(e,r.data,r.blueprint,i,!0),Sf(t,r.data,r.blueprint,i,!1)}}(r,i?i(n):n,t)}}class n2{}class y7{resolveComponentFactory(t){throw function g7(n){const t=Error(`No component factory found for ${qe(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let so=(()=>{class n{}return n.NULL=new y7,n})();function _7(){return vs(qt(),k())}function vs(n,t){return new kn(Hn(n,t))}let kn=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=_7,n})();function v7(n){return n instanceof kn?n.nativeElement:n}class ka{}let qr=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function C7(){const n=k(),e=Un(qt().index,n);return function w7(n){return n[11]}(Fr(e)?e:n)}(),n})(),b7=(()=>{class n{}return n.\u0275prov=oe({token:n,providedIn:"root",factory:()=>null}),n})();class Na{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const D7=new Na("13.3.12"),If={};function Tc(n,t,e,r,i=!1){for(;null!==e;){const o=t[e.index];if(null!==o&&r.push($t(o)),_r(o))for(let a=10;a<o.length;a++){const l=o[a],c=l[1].firstChild;null!==c&&Tc(l[1],l,c,r)}const s=e.type;if(8&s)Tc(n,t,e.child,r);else if(32&s){const a=_h(e,t);let l;for(;l=a();)r.push(l)}else if(16&s){const a=Y1(t,e);if(Array.isArray(a))r.push(...a);else{const l=ga(t[16]);Tc(l[1],l,a,r,!0)}}e=i?e.projectionNext:e.next}return r}class Oa{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,e=t[1];return Tc(e,t,e.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(_r(t)){const e=t[8],r=e?e.indexOf(this):-1;r>-1&&(Dh(t,r),Ql(e,r))}this._attachedToViewContainer=!1}H1(this._lView[1],this._lView)}onDestroy(t){V0(this._lView[1],this._lView,null,t)}markForCheck(){nf(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function of(n,t,e){const r=t[10];r.begin&&r.begin();try{ts(n,t,n.template,e)}catch(i){throw J0(t,i),i}finally{r.end&&r.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Y(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function V3(n,t){ya(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Y(902,"");this._appRef=t}}class E7 extends Oa{constructor(t){super(t),this._view=t}detectChanges(){K0(this._view)}checkNoChanges(){}get context(){return null}}class i2 extends so{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=cn(t);return new Pf(e,this.ngModule)}}function o2(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class Pf extends n2{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function W5(n){return n.map(G5).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return o2(this.componentDef.inputs)}get outputs(){return o2(this.componentDef.outputs)}create(t,e,r,i){const o=(i=i||this.ngModule)?function S7(n,t){return{get:(e,r,i)=>{const o=n.get(e,If,i);return o!==If||r===If?o:t.get(e,r,i)}}}(t,i.injector):t,s=o.get(ka,Gg),a=o.get(b7,null),l=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=r?function $0(n,t,e){if(St(n))return n.selectRootElement(t,e===gr.ShadowDom);let r="string"==typeof t?n.querySelector(t):t;return r.textContent="",r}(l,r,this.componentDef.encapsulation):bh(s.createRenderer(null,this.componentDef),c,function M7(n){const t=n.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(c)),d=this.componentDef.onPush?576:528,f=function gy(n,t){return{components:[],scheduler:n||F5,clean:I6,playerHandler:t||null,flags:0}}(),p=hc(0,null,null,1,0,null,null,null,null,null),y=ba(null,p,f,d,null,null,s,l,a,o);let w,b;Vl(y);try{const S=function py(n,t,e,r,i,o){const s=e[1];e[20]=n;const l=Xo(s,20,2,"#host",null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(pc(l,c,!0),null!==n&&(zl(i,n,c),null!==l.classes&&xh(i,n,l.classes),null!==l.styles&&X1(i,n,l.styles)));const u=r.createRenderer(n,t),d=ba(e,L0(t),null,t.onPush?64:16,e[20],l,r,u,o||null,null);return s.firstCreatePass&&(Kl(sa(l,e),s,t.type),z0(s,l),G0(l,e.length,1)),fc(e,d),e[20]=d}(u,this.componentDef,y,s,l);if(u)if(r)zl(l,u,["ng-version",D7.full]);else{const{attrs:E,classes:F}=function q5(n){const t=[],e=[];let r=1,i=2;for(;r<n.length;){let o=n[r];if("string"==typeof o)2===i?""!==o&&t.push(o,n[++r]):8===i&&e.push(o);else{if(!wr(i))break;i=o}r++}return{attrs:t,classes:e}}(this.componentDef.selectors[0]);E&&zl(l,u,E),F&&F.length>0&&xh(l,u,F.join(" "))}if(b=Gd(p,20),void 0!==e){const E=b.projection=[];for(let F=0;F<this.ngContentSelectors.length;F++){const G=e[F];E.push(null!=G?Array.from(G):null)}}w=function my(n,t,e,r,i){const o=e[1],s=function p6(n,t,e){const r=qt();n.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),W0(n,r,t,es(n,t,1,null),e));const i=aa(t,n,r.directiveStart,r);mn(i,t);const o=Hn(r,t);return o&&mn(o,t),i}(o,e,t);if(r.components.push(s),n[8]=s,i&&i.forEach(l=>l(s,t)),t.contentQueries){const l=qt();t.contentQueries(1,s,l.directiveStart)}const a=qt();return!o.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Ii(a.index),H0(e[1],a,0,a.directiveStart,a.directiveEnd,t),U0(t,s)),s}(S,this.componentDef,y,f,[Q6]),Da(p,y,null)}finally{Bl()}return new A7(this.componentType,w,vs(b,y),y,b)}}class A7 extends class m7{}{constructor(t,e,r,i,o){super(),this.location=r,this._rootLView=i,this._tNode=o,this.instance=e,this.hostView=this.changeDetectorRef=new E7(i),this.componentType=t}get injector(){return new Uo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class ws{}const Cs=new Map;class l2 extends ws{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new i2(this);const r=rr(t);this._bootstrapComponents=jr(r.bootstrap),this._r3Injector=ry(t,e,[{provide:ws,useValue:this},{provide:so,useValue:this.componentFactoryResolver}],qe(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=mt.THROW_IF_NOT_FOUND,r=ve.Default){return t===mt||t===ws||t===af?this:this._r3Injector.get(t,e,r)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class kf extends class I7{}{constructor(t){super(),this.moduleType=t,null!==rr(t)&&function P7(n){const t=new Set;!function e(r){const i=rr(r,!0),o=i.id;null!==o&&(function s2(n,t,e){if(t&&t!==e)throw new Error(`Duplicate module registered for ${n} - ${qe(t)} vs ${qe(t.name)}`)}(o,Cs.get(o),r),Cs.set(o,r));const s=jr(i.imports);for(const a of s)t.has(a)||(t.add(a),e(a))}(n)}(t)}create(t){return new l2(this.moduleType,t)}}function Nf(n,t,e,r){return c2(k(),Dn(),n,t,e,r)}function Fa(n,t){const e=n[t];return e===_e?void 0:e}function c2(n,t,e,r,i,o){const s=t+e;return gn(n,s,i)?Ur(n,s+1,o?r.call(o,i):r(i)):Fa(n,s+1)}function d2(n,t,e,r,i,o,s,a){const l=t+e;return function gc(n,t,e,r,i){const o=ro(n,t,e,r);return gn(n,t+2,i)||o}(n,l,i,o,s)?Ur(n,l+3,a?r.call(a,i,o,s):r(i,o,s)):Fa(n,l+3)}function xe(n,t){const e=Fe();let r;const i=n+20;e.firstCreatePass?(r=function j7(n,t){if(t)for(let e=t.length-1;e>=0;e--){const r=t[e];if(n===r.name)return r}}(t,e.pipeRegistry),e.data[i]=r,r.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(i,r.onDestroy)):r=e.data[i];const o=r.factory||(r.factory=Xi(r.type)),s=Si(I);try{const a=Wl(!1),l=o();return Wl(a),function l9(n,t,e,r){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=r}(e,k(),i,l),l}finally{Si(s)}}function Nn(n,t,e){const r=n+20,i=k(),o=Vo(i,r);return La(i,r)?c2(i,Dn(),t,o.transform,e,o):o.transform(e)}function lr(n,t,e,r){const i=n+20,o=k(),s=Vo(o,i);return La(o,i)?function u2(n,t,e,r,i,o,s){const a=t+e;return ro(n,a,i,o)?Ur(n,a+2,s?r.call(s,i,o):r(i,o)):Fa(n,a+2)}(o,Dn(),t,s.transform,e,r,s):s.transform(e,r)}function On(n,t,e,r,i){const o=n+20,s=k(),a=Vo(s,o);return La(s,o)?d2(s,Dn(),t,a.transform,e,r,i,a):a.transform(e,r,i)}function La(n,t){return n[1].data[t].pure}function Of(n){return t=>{setTimeout(n,void 0,t)}}const $e=class z7 extends Rt{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,r){var i,o,s;let a=t,l=e||(()=>null),c=r;if(t&&"object"==typeof t){const d=t;a=null===(i=d.next)||void 0===i?void 0:i.bind(d),l=null===(o=d.error)||void 0===o?void 0:o.bind(d),c=null===(s=d.complete)||void 0===s?void 0:s.bind(d)}this.__isAsync&&(l=Of(l),a&&(a=Of(a)),c&&(c=Of(c)));const u=super.subscribe({next:a,error:l,complete:c});return t instanceof It&&t.add(u),u}};function G7(){return this._results[is()]()}class Ff{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=is(),r=Ff.prototype;r[e]||(r[e]=G7)}get changes(){return this._changes||(this._changes=new $e)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const r=this;r.dirty=!1;const i=sr(t);(this._changesDetected=!function t3(n,t,e){if(n.length!==t.length)return!1;for(let r=0;r<n.length;r++){let i=n[r],o=t[r];if(e&&(i=e(i),o=e(o)),o!==i)return!1}return!0}(r._results,i,e))&&(r._results=i,r.length=i.length,r.last=i[this.length-1],r.first=i[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let Kr=(()=>{class n{}return n.__NG_ELEMENT_ID__=K7,n})();const W7=Kr,q7=class extends W7{constructor(t,e,r){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=r}createEmbeddedView(t){const e=this._declarationTContainer.tViews,r=ba(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const o=this._declarationLView[19];return null!==o&&(r[19]=o.createEmbeddedView(e)),Da(e,r,t),new Oa(r)}};function K7(){return Ac(qt(),k())}function Ac(n,t){return 4&n.type?new q7(t,n,vs(n,t)):null}let Sr=(()=>{class n{}return n.__NG_ELEMENT_ID__=Z7,n})();function Z7(){return g2(qt(),k())}const Q7=Sr,p2=class extends Q7{constructor(t,e,r){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=r}get element(){return vs(this._hostTNode,this._hostLView)}get injector(){return new Uo(this._hostTNode,this._hostLView)}get parentInjector(){const t=ql(this._hostTNode,this._hostLView);if(l1(t)){const e=Ho(t,this._hostLView),r=jo(t);return new Uo(e[1].data[r+8],e)}return new Uo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=m2(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,r){const i=t.createEmbeddedView(e||{});return this.insert(i,r),i}createComponent(t,e,r,i,o){const s=t&&!function ca(n){return"function"==typeof n}(t);let a;if(s)a=e;else{const d=e||{};a=d.index,r=d.injector,i=d.projectableNodes,o=d.ngModuleRef}const l=s?t:new Pf(cn(t)),c=r||this.parentInjector;if(!o&&null==l.ngModule){const f=(s?c:this.parentInjector).get(ws,null);f&&(o=f)}const u=l.create(c,i,void 0,o);return this.insert(u.hostView,a),u}insert(t,e){const r=t._lView,i=r[1];if(function Db(n){return _r(n[3])}(r)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const d=r[3],f=new p2(d,d[6],d[3]);f.detach(f.indexOf(t))}}const o=this._adjustIndex(e),s=this._lContainer;!function j3(n,t,e,r){const i=10+r,o=e.length;r>0&&(e[i-1][4]=t),r<o-10?(t[4]=e[i],_1(e,10+r,t)):(e.push(t),t[4]=null),t[3]=e;const s=t[17];null!==s&&e!==s&&function H3(n,t){const e=n[9];t[16]!==t[3][3][16]&&(n[2]=!0),null===e?n[9]=[t]:e.push(t)}(s,t);const a=t[19];null!==a&&a.insertView(n),t[2]|=128}(i,r,s,o);const a=Sh(o,s),l=r[11],c=rc(l,s[7]);return null!==c&&function $3(n,t,e,r,i,o){r[0]=i,r[6]=t,ya(n,r,e,1,i,o)}(i,s[6],l,r,c,a),t.attachToViewContainerRef(),_1(Lf(s),o,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=m2(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),r=Dh(this._lContainer,e);r&&(Ql(Lf(this._lContainer),e),H1(r[1],r))}detach(t){const e=this._adjustIndex(t,-1),r=Dh(this._lContainer,e);return r&&null!=Ql(Lf(this._lContainer),e)?new Oa(r):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}};function m2(n){return n[8]}function Lf(n){return n[8]||(n[8]=[])}function g2(n,t){let e;const r=t[n.index];if(_r(r))e=r;else{let i;if(8&n.type)i=$t(r);else{const o=t[11];i=o.createComment("");const s=Hn(n,t);eo(o,rc(o,s),i,function W3(n,t){return St(n)?n.nextSibling(t):t.nextSibling}(o,s),!1)}t[n.index]=e=q0(r,t,i,n),fc(t,e)}return new p2(e,n,t)}class Rf{constructor(t){this.queryList=t,this.matches=null}clone(){return new Rf(this.queryList)}setDirty(){this.queryList.setDirty()}}class $f{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const r=null!==t.contentQueries?t.contentQueries[0]:e.length,i=[];for(let o=0;o<r;o++){const s=e.getByIndex(o);i.push(this.queries[s.indexInDeclarationView].clone())}return new $f(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==C2(t,e).matches&&this.queries[e].setDirty()}}class y2{constructor(t,e,r=null){this.predicate=t,this.flags=e,this.read=r}}class Vf{constructor(t=[]){this.queries=t}elementStart(t,e){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let r=0;r<this.length;r++){const i=null!==e?e.length:0,o=this.getByIndex(r).embeddedTView(t,i);o&&(o.indexInDeclarationView=r,null!==e?e.push(o):e=[o])}return null!==e?new Vf(e):null}template(t,e){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Bf{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new Bf(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let r=t.parent;for(;null!==r&&8&r.type&&r.index!==e;)r=r.parent;return e===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){const o=r[i];this.matchTNodeWithReadOption(t,e,X7(e,o)),this.matchTNodeWithReadOption(t,e,Zl(e,t,o,!1,!1))}else r===Kr?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,Zl(e,t,r,!1,!1))}matchTNodeWithReadOption(t,e,r){if(null!==r){const i=this.metadata.read;if(null!==i)if(i===kn||i===Sr||i===Kr&&4&e.type)this.addMatch(e.index,-2);else{const o=Zl(e,t,i,!1,!1);null!==o&&this.addMatch(e.index,o)}else this.addMatch(e.index,r)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function X7(n,t){const e=n.localNames;if(null!==e)for(let r=0;r<e.length;r+=2)if(e[r]===t)return e[r+1];return null}function tE(n,t,e,r){return-1===e?function eE(n,t){return 11&n.type?vs(n,t):4&n.type?Ac(n,t):null}(t,n):-2===e?function nE(n,t,e){return e===kn?vs(t,n):e===Kr?Ac(t,n):e===Sr?g2(t,n):void 0}(n,t,r):aa(n,n[1],e,t)}function _2(n,t,e,r){const i=t[19].queries[r];if(null===i.matches){const o=n.data,s=e.matches,a=[];for(let l=0;l<s.length;l+=2){const c=s[l];a.push(c<0?null:tE(t,o[c],s[l+1],e.metadata.read))}i.matches=a}return i.matches}function jf(n,t,e,r){const i=n.queries.getByIndex(e),o=i.matches;if(null!==o){const s=_2(n,t,i,e);for(let a=0;a<o.length;a+=2){const l=o[a];if(l>0)r.push(s[a/2]);else{const c=o[a+1],u=t[-l];for(let d=10;d<u.length;d++){const f=u[d];f[17]===f[3]&&jf(f[1],f,c,r)}if(null!==u[9]){const d=u[9];for(let f=0;f<d.length;f++){const p=d[f];jf(p[1],p,c,r)}}}}}return r}function ao(n){const t=k(),e=Fe(),r=Xg();Jd(r+1);const i=C2(e,r);if(n.dirty&&Wg(t)===(2==(2&i.metadata.flags))){if(null===i.matches)n.reset([]);else{const o=i.crossesNgTemplate?jf(e,t,r,[]):_2(e,t,i,r);n.reset(o,v7),n.notifyOnChanges()}return!0}return!1}function lo(n,t,e){const r=Fe();r.firstCreatePass&&(function w2(n,t,e){null===n.queries&&(n.queries=new Vf),n.queries.track(new Bf(t,e))}(r,new y2(n,t,e),-1),2==(2&t)&&(r.staticViewQueries=!0)),function v2(n,t,e){const r=new Ff(4==(4&e));V0(n,t,r,r.destroy),null===t[19]&&(t[19]=new $f),t[19].queries.push(new Rf(r))}(r,k(),t)}function co(){return function iE(n,t){return n[19].queries[t].queryList}(k(),Xg())}function C2(n,t){return n.queries.getByIndex(t)}function uo(n,t){return Ac(n,t)}function Pc(...n){}const $2=new ae("Application Initializer");let qf=(()=>{class n{constructor(e){this.appInits=e,this.resolve=Pc,this.reject=Pc,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const e=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i<this.appInits.length;i++){const o=this.appInits[i]();if(vc(o))e.push(o);else if($y(o)){const s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{r()}).catch(i=>{this.reject(i)}),0===e.length&&r(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(U($2,8))},n.\u0275prov=oe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const $a=new ae("AppId",{providedIn:"root",factory:function V2(){return`${Kf()}${Kf()}${Kf()}`}});function Kf(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const B2=new ae("Platform Initializer"),Zf=new ae("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),bE=new ae("appBootstrapListener"),Oi=new ae("LocaleId",{providedIn:"root",factory:()=>Xl(Oi,ve.Optional|ve.SkipSelf)||function DE(){return"undefined"!=typeof $localize&&$localize.locale||bc}()}),TE=(()=>Promise.resolve(0))();function Qf(n){"undefined"==typeof Zone?TE.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class Jt{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new $e(!1),this.onMicrotaskEmpty=new $e(!1),this.onStable=new $e(!1),this.onError=new $e(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&e,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function AE(){let n=Ze.requestAnimationFrame,t=Ze.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function PE(n){const t=()=>{!function IE(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(Ze,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Jf(n),n.isCheckStableRunning=!0,Yf(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Jf(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,r,i,o,s,a)=>{try{return j2(n),e.invokeTask(i,o,s,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&t(),H2(n)}},onInvoke:(e,r,i,o,s,a,l)=>{try{return j2(n),e.invoke(i,o,s,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),H2(n)}},onHasTask:(e,r,i,o)=>{e.hasTask(i,o),r===i&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,Jf(n),Yf(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,r,i,o)=>(e.handleError(i,o),n.runOutsideAngular(()=>n.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Jt.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Jt.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,r){return this._inner.run(t,e,r)}runTask(t,e,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,xE,Pc,Pc);try{return o.runTask(s,e,r)}finally{o.cancelTask(s)}}runGuarded(t,e,r){return this._inner.runGuarded(t,e,r)}runOutsideAngular(t){return this._outer.run(t)}}const xE={};function Yf(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function Jf(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function j2(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function H2(n){n._nesting--,Yf(n)}class kE{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new $e,this.onMicrotaskEmpty=new $e,this.onStable=new $e,this.onError=new $e}run(t,e,r){return t.apply(e,r)}runGuarded(t,e,r){return t.apply(e,r)}runOutsideAngular(t){return t()}runTask(t,e,r,i){return t.apply(e,r)}}let Xf=(()=>{class n{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Jt.assertNotInAngularZone(),Qf(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Qf(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(e)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:i})}whenStable(e,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(e,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,r,i){return[]}}return n.\u0275fac=function(e){return new(e||n)(U(Jt))},n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})(),NE=(()=>{class n{constructor(){this._applications=new Map,ep.addToWindow(this)}registerApplication(e,r){this._applications.set(e,r)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,r=!0){return ep.findTestabilityInTree(this,e,r)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=oe({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();class OE{addToWindow(t){}findTestabilityInTree(t,e,r){return null}}let ep=new OE,ho=null;const U2=new ae("AllowMultipleToken"),z2=new ae("PlatformOnDestroy");function G2(n,t,e=[]){const r=`Platform: ${t}`,i=new ae(r);return(o=[])=>{let s=tp();if(!s||s.injector.get(U2,!1)){const a=[...e,...o,{provide:i,useValue:!0}];n?n(a):function $E(n){if(ho&&!ho.get(U2,!1))throw new Y(400,"");ho=n;const t=n.get(W2),e=n.get(B2,null);e&&e.forEach(r=>r())}(function BE(n=[],t){return mt.create({name:t,providers:[{provide:lf,useValue:"platform"},{provide:z2,useValue:()=>ho=null},...n]})}(a,r))}return function VE(n){const t=tp();if(!t)throw new Y(401,"");return t}()}}function tp(){var n;return null!==(n=null==ho?void 0:ho.get(W2))&&void 0!==n?n:null}let W2=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,r){const a=function jE(n,t){let e;return e="noop"===n?new kE:("zone.js"===n?void 0:n)||new Jt({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),e}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),l=[{provide:Jt,useValue:a}];return a.run(()=>{const c=mt.create({providers:l,parent:this.injector,name:e.moduleType.name}),u=e.create(c),d=u.injector.get(Ca,null);if(!d)throw new Y(402,"");return a.runOutsideAngular(()=>{const f=a.onError.subscribe({next:p=>{d.handleError(p)}});u.onDestroy(()=>{np(this._modules,u),f.unsubscribe()})}),function HE(n,t,e){try{const r=e();return vc(r)?r.catch(i=>{throw t.runOutsideAngular(()=>n.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>n.handleError(r)),r}}(d,a,()=>{const f=u.injector.get(qf);return f.runInitializers(),f.donePromise.then(()=>(function wD(n){Bn(n,"Expected localeId to be defined"),"string"==typeof n&&(P_=n.toLowerCase().replace(/_/g,"-"))}(u.injector.get(Oi,bc)||bc),this._moduleDoBootstrap(u),u))})})}bootstrapModule(e,r=[]){const i=q2({},r);return function LE(n,t,e){const r=new kf(e);return Promise.resolve(r)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(e){const r=e.injector.get(Va);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!e.instance.ngDoBootstrap)throw new Y(403,"");e.instance.ngDoBootstrap(r)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Y(404,"");this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const e=this._injector.get(z2,null);null==e||e(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(U(mt))},n.\u0275prov=oe({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function q2(n,t){return Array.isArray(t)?t.reduce(q2,n):Object.assign(Object.assign({},n),t)}let Va=(()=>{class n{constructor(e,r,i,o){this._zone=e,this._injector=r,this._exceptionHandler=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const s=new Lt(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new Lt(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{Jt.assertNotInAngularZone(),Qf(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{Jt.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=xg(s,a.pipe(function z4(n={}){const{connector:t=(()=>new Rt),resetOnError:e=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=n;return o=>{let s,a,l,c=0,u=!1,d=!1;const f=()=>{null==a||a.unsubscribe(),a=void 0},p=()=>{f(),s=l=void 0,u=d=!1},y=()=>{const w=s;p(),null==w||w.unsubscribe()};return Cn((w,b)=>{c++,!d&&!u&&f();const S=l=null!=l?l:t();b.add(()=>{c--,0===c&&!d&&!u&&(a=Td(y,i))}),S.subscribe(b),!s&&c>0&&(s=new Ys({next:E=>S.next(E),error:E=>{d=!0,f(),a=Td(p,e,E),S.error(E)},complete:()=>{u=!0,f(),a=Td(p,r),S.complete()}}),nr(w).subscribe(s))})(o)}}()))}bootstrap(e,r){if(!this._initStatus.done)throw new Y(405,"");let i;i=e instanceof n2?e:this._injector.get(so).resolveComponentFactory(e),this.componentTypes.push(i.componentType);const o=function RE(n){return n.isBoundToModule}(i)?void 0:this._injector.get(ws),a=i.create(mt.NULL,[],r||i.selector,o),l=a.location.nativeElement,c=a.injector.get(Xf,null),u=c&&a.injector.get(NE);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),np(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Y(101,"");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const r=e;this._views.push(r),r.attachToAppRef(this)}detachView(e){const r=e;np(this._views,r),r.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(bE,[]).concat(this._bootstrapListeners).forEach(i=>i(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(e){return new(e||n)(U(Jt),U(mt),U(Ca),U(qf))},n.\u0275prov=oe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function np(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let Z2=!0,Ba=(()=>{class n{}return n.__NG_ELEMENT_ID__=GE,n})();function GE(n){return function WE(n,t,e){if(Fl(n)&&!e){const r=Un(n.index,t);return new Oa(r,r)}return 47&n.type?new Oa(t[16],t):null}(qt(),k(),16==(16&n))}class ev{constructor(){}supports(t){return Ma(t)}create(t){return new JE(t)}}const YE=(n,t)=>t;class JE{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||YE}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,r=this._removalsHead,i=0,o=null;for(;e||r;){const s=!r||e&&e.currentIndex<nv(r,i,o)?e:r,a=nv(s,i,o),l=s.currentIndex;if(s===r)i--,r=r._nextRemoved;else if(e=e._next,null==s.previousIndex)i++;else{o||(o=[]);const c=a-i,u=l-i;if(c!=u){for(let f=0;f<c;f++){const p=f<o.length?o[f]:o[f]=0,y=p+f;u<=y&&y<c&&(o[f]=p+1)}o[s.previousIndex]=u-c}}a!==l&&t(s,a,l)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!Ma(t))throw new Y(900,"");return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let i,o,s,e=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)o=t[a],s=this._trackByFn(a,o),null!==e&&Object.is(e.trackById,s)?(r&&(e=this._verifyReinsertion(e,o,s,a)),Object.is(e.item,o)||this._addIdentityChange(e,o)):(e=this._mismatch(e,o,s,a),r=!0),e=e._next}else i=0,function s9(n,t){if(Array.isArray(n))for(let e=0;e<n.length;e++)t(n[e]);else{const e=n[is()]();let r;for(;!(r=e.next()).done;)t(r.value)}}(t,a=>{s=this._trackByFn(i,a),null!==e&&Object.is(e.trackById,s)?(r&&(e=this._verifyReinsertion(e,a,s,i)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,i),r=!0),e=e._next,i++}),this.length=i;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,r,i){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,i)):t=this._addAfter(new XE(e,r),o,i),t}_verifyReinsertion(t,e,r,i){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==o?t=this._reinsertAfter(o,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,o=t._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(t,e,r),this._addToMoves(t,r),t}_moveAfter(t,e,r){return this._unlink(t),this._insertAfter(t,e,r),this._addToMoves(t,r),t}_addAfter(t,e,r){return this._insertAfter(t,e,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,r){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new tv),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,r=t._next;return null===e?this._itHead=r:e._next=r,null===r?this._itTail=e:r._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new tv),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class XE{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class eM{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===e||e<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const e=t._prevDup,r=t._nextDup;return null===e?this._head=r:e._nextDup=r,null===r?this._tail=e:r._prevDup=e,null===this._head}}class tv{constructor(){this.map=new Map}put(t){const e=t.trackById;let r=this.map.get(e);r||(r=new eM,this.map.set(e,r)),r.add(t)}get(t,e){const i=this.map.get(t);return i?i.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function nv(n,t,e){const r=n.previousIndex;if(null===r)return r;let i=0;return e&&r<e.length&&(i=e[r]),r+t+i}function iv(){return new Oc([new ev])}let Oc=(()=>{class n{constructor(e){this.factories=e}static create(e,r){if(null!=r){const i=r.factories.slice();e=e.concat(i)}return new n(e)}static extend(e){return{provide:n,useFactory:r=>n.create(e,r||iv()),deps:[[n,new tc,new ec]]}}find(e){const r=this.factories.find(i=>i.supports(e));if(null!=r)return r;throw new Y(901,"")}}return n.\u0275prov=oe({token:n,providedIn:"root",factory:iv}),n})();const oM=G2(null,"core",[]);let sM=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(U(Va))},n.\u0275mod=ct({type:n}),n.\u0275inj=st({}),n})(),Fc=null;function po(){return Fc}const Vt=new ae("DocumentToken");function gv(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const r=e.indexOf("="),[i,o]=-1==r?[e,""]:[e.slice(0,r),e.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}class YM{constructor(t,e,r,i){this.$implicit=t,this.ngForOf=e,this.index=r,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Ds=(()=>{class n{constructor(e,r,i){this._viewContainer=e,this._template=r,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const r=this._viewContainer;e.forEachOperation((i,o,s)=>{if(null==i.previousIndex)r.createEmbeddedView(this._template,new YM(i.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===o?void 0:o);else if(null!==o){const a=r.get(o);r.move(a,s),yv(a,i)}});for(let i=0,o=r.length;i<o;i++){const a=r.get(i).context;a.index=i,a.count=o,a.ngForOf=this._ngForOf}e.forEachIdentityChange(i=>{yv(r.get(i.currentIndex),i)})}static ngTemplateContextGuard(e,r){return!0}}return n.\u0275fac=function(e){return new(e||n)(I(Sr),I(Kr),I(Oc))},n.\u0275dir=fe({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();function yv(n,t){n.context.$implicit=t.item}let Kn=(()=>{class n{constructor(e,r){this._viewContainer=e,this._context=new JM,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){_v("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){_v("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,r){return!0}}return n.\u0275fac=function(e){return new(e||n)(I(Sr),I(Kr))},n.\u0275dir=fe({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class JM{constructor(){this.$implicit=null,this.ngIf=null}}function _v(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${qe(t)}'.`)}let wv=(()=>{class n{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(e.ngTemplateOutlet){const r=this._viewContainerRef;this._viewRef&&r.remove(r.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?r.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(e){return new(e||n)(I(Sr))},n.\u0275dir=fe({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[Lr]}),n})();function Ar(n,t){return new Y(2100,"")}class rS{createSubscription(t,e){return t.subscribe({next:e,error:r=>{throw r}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class iS{createSubscription(t,e){return t.then(e,r=>{throw r})}dispose(t){}onDestroy(t){}}const oS=new iS,sS=new rS;let _p=(()=>{class n{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,r=>this._updateLatestValue(e,r))}_selectStrategy(e){if(vc(e))return oS;if(Ry(e))return sS;throw Ar()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,r){e===this._obj&&(this._latestValue=r,this._ref.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(I(Ba,16))},n.\u0275pipe=at({name:"async",type:n,pure:!1}),n})(),Cp=(()=>{class n{transform(e,r,i){if(null==e)return null;if(!this.supports(e))throw Ar();return e.slice(r,i)}supports(e){return"string"==typeof e||Array.isArray(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=at({name:"slice",type:n,pure:!1}),n})(),Gc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({}),n})();class Ev{}class bp extends class SS extends class cM{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function lM(n){Fc||(Fc=n)}(new bp)}onAndCancel(t,e,r){return t.addEventListener(e,r,!1),()=>{t.removeEventListener(e,r,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function TS(){return za=za||document.querySelector("base"),za?za.getAttribute("href"):null}();return null==e?null:function AS(n){Wc=Wc||document.createElement("a"),Wc.setAttribute("href",n);const t=Wc.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){za=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return gv(document.cookie,t)}}let Wc,za=null;const Mv=new ae("TRANSITION_ID"),IS=[{provide:$2,useFactory:function xS(n,t,e){return()=>{e.get(qf).donePromise.then(()=>{const r=po(),i=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let o=0;o<i.length;o++)r.remove(i[o])})}},deps:[Mv,Vt,mt],multi:!0}];class Dp{static init(){!function FE(n){ep=n}(new Dp)}addToWindow(t){Ze.getAngularTestability=(r,i=!0)=>{const o=t.findTestabilityInTree(r,i);if(null==o)throw new Error("Could not find testability for element.");return o},Ze.getAllAngularTestabilities=()=>t.getAllTestabilities(),Ze.getAllAngularRootElements=()=>t.getAllRootElements(),Ze.frameworkStabilizers||(Ze.frameworkStabilizers=[]),Ze.frameworkStabilizers.push(r=>{const i=Ze.getAllAngularTestabilities();let o=i.length,s=!1;const a=function(l){s=s||l,o--,0==o&&r(s)};i.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,e,r){if(null==e)return null;const i=t.getTestability(e);return null!=i?i:r?po().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let PS=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})();const qc=new ae("EventManagerPlugins");let Kc=(()=>{class n{constructor(e,r){this._zone=r,this._eventNameToPlugin=new Map,e.forEach(i=>i.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,r,i){return this._findPluginFor(r).addEventListener(e,r,i)}addGlobalEventListener(e,r,i){return this._findPluginFor(r).addGlobalEventListener(e,r,i)}getZone(){return this._zone}_findPluginFor(e){const r=this._eventNameToPlugin.get(e);if(r)return r;const i=this._plugins;for(let o=0;o<i.length;o++){const s=i[o];if(s.supports(e))return this._eventNameToPlugin.set(e,s),s}throw new Error(`No event manager plugin found for event ${e}`)}}return n.\u0275fac=function(e){return new(e||n)(U(qc),U(Jt))},n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})();class Sv{constructor(t){this._doc=t}addGlobalEventListener(t,e,r){const i=po().getGlobalEventTarget(this._doc,t);if(!i)throw new Error(`Unsupported event target ${i} for event ${e}`);return this.addEventListener(i,e,r)}}let Tv=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(e){const r=new Set;e.forEach(i=>{this._stylesSet.has(i)||(this._stylesSet.add(i),r.add(i))}),this.onStylesAdded(r)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})(),Ga=(()=>{class n extends Tv{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,r,i){e.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,i.push(r.appendChild(s))})}addHost(e){const r=[];this._addStylesToHost(this._stylesSet,e,r),this._hostNodes.set(e,r)}removeHost(e){const r=this._hostNodes.get(e);r&&r.forEach(Av),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((r,i)=>{this._addStylesToHost(e,i,r)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Av))}}return n.\u0275fac=function(e){return new(e||n)(U(Vt))},n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})();function Av(n){po().remove(n)}const Ep={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/MathML/"},Mp=/%COMP%/g;function Zc(n,t,e){for(let r=0;r<t.length;r++){let i=t[r];Array.isArray(i)?Zc(n,i,e):(i=i.replace(Mp,n),e.push(i))}return e}function Pv(n){return t=>{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let Qc=(()=>{class n{constructor(e,r,i){this.eventManager=e,this.sharedStylesHost=r,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new Sp(e)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;switch(r.encapsulation){case gr.Emulated:{let i=this.rendererByCompId.get(r.id);return i||(i=new RS(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,i)),i.applyToHost(e),i}case 1:case gr.ShadowDom:return new $S(this.eventManager,this.sharedStylesHost,e,r);default:if(!this.rendererByCompId.has(r.id)){const i=Zc(r.id,r.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(U(Kc),U(Ga),U($a))},n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})();class Sp{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(Ep[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,r){t&&t.insertBefore(e,r)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let r="string"==typeof t?document.querySelector(t):t;if(!r)throw new Error(`The selector "${t}" did not match any elements`);return e||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,r,i){if(i){e=i+":"+e;const o=Ep[i];o?t.setAttributeNS(o,e,r):t.setAttribute(e,r)}else t.setAttribute(e,r)}removeAttribute(t,e,r){if(r){const i=Ep[r];i?t.removeAttributeNS(i,e):t.removeAttribute(`${r}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,r,i){i&(Gn.DashCase|Gn.Important)?t.style.setProperty(e,r,i&Gn.Important?"important":""):t.style[e]=r}removeStyle(t,e,r){r&Gn.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,r){t[e]=r}setValue(t,e){t.nodeValue=e}listen(t,e,r){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,Pv(r)):this.eventManager.addEventListener(t,e,Pv(r))}}class RS extends Sp{constructor(t,e,r,i){super(t),this.component=r;const o=Zc(i+"-"+r.id,r.styles,[]);e.addStyles(o),this.contentAttr=function OS(n){return"_ngcontent-%COMP%".replace(Mp,n)}(i+"-"+r.id),this.hostAttr=function FS(n){return"_nghost-%COMP%".replace(Mp,n)}(i+"-"+r.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const r=super.createElement(t,e);return super.setAttribute(r,this.contentAttr,""),r}}class $S extends Sp{constructor(t,e,r,i){super(t),this.sharedStylesHost=e,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=Zc(i.id,i.styles,[]);for(let s=0;s<o.length;s++){const a=document.createElement("style");a.textContent=o[s],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,r){return super.insertBefore(this.nodeOrShadowRoot(t),e,r)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let VS=(()=>{class n extends Sv{constructor(e){super(e)}supports(e){return!0}addEventListener(e,r,i){return e.addEventListener(r,i,!1),()=>this.removeEventListener(e,r,i)}removeEventListener(e,r,i){return e.removeEventListener(r,i)}}return n.\u0275fac=function(e){return new(e||n)(U(Vt))},n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})();const Nv=["alt","control","meta","shift"],jS={"\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"},Ov={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},HS={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let US=(()=>{class n extends Sv{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,r,i){const o=n.parseEventName(r),s=n.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>po().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const r=e.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const o=n._normalizeKey(r.pop());let s="";if(Nv.forEach(l=>{const c=r.indexOf(l);c>-1&&(r.splice(c,1),s+=l+".")}),s+=o,0!=r.length||0===o.length)return null;const a={};return a.domEventName=i,a.fullKey=s,a}static getEventFullKey(e){let r="",i=function zS(n){let t=n.key;if(null==t){if(t=n.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===n.location&&Ov.hasOwnProperty(t)&&(t=Ov[t]))}return jS[t]||t}(e);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),Nv.forEach(o=>{o!=i&&HS[o](e)&&(r+=o+".")}),r+=i,r}static eventCallback(e,r,i){return o=>{n.getEventFullKey(o)===e&&i.runGuarded(()=>r(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(U(Vt))},n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})();const KS=G2(oM,"browser",[{provide:Zf,useValue:"browser"},{provide:B2,useValue:function GS(){bp.makeCurrent(),Dp.init()},multi:!0},{provide:Vt,useFactory:function qS(){return function vb(n){Ud=n}(document),document},deps:[]}]),ZS=[{provide:lf,useValue:"root"},{provide:Ca,useFactory:function WS(){return new Ca},deps:[]},{provide:qc,useClass:VS,multi:!0,deps:[Vt,Jt,Zf]},{provide:qc,useClass:US,multi:!0,deps:[Vt]},{provide:Qc,useClass:Qc,deps:[Kc,Ga,$a]},{provide:ka,useExisting:Qc},{provide:Tv,useExisting:Ga},{provide:Ga,useClass:Ga,deps:[Vt]},{provide:Xf,useClass:Xf,deps:[Jt]},{provide:Kc,useClass:Kc,deps:[qc,Jt]},{provide:Ev,useClass:PS,deps:[]}];let Fv=(()=>{class n{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:n,providers:[{provide:$a,useValue:e.appId},{provide:Mv,useExisting:$a},IS]}}}return n.\u0275fac=function(e){return new(e||n)(U(n,12))},n.\u0275mod=ct({type:n}),n.\u0275inj=st({providers:ZS,imports:[Gc,sM]}),n})();"undefined"!=typeof window&&window;let $v=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=oe({token:n,factory:function(e){let r=null;return r=e?new(e||n):U(Vv),r},providedIn:"root"}),n})(),Vv=(()=>{class n extends $v{constructor(e){super(),this._doc=e}sanitize(e,r){if(null==r)return null;switch(e){case tt.NONE:return r;case tt.HTML:return Vr(r,"HTML")?Wn(r):h0(this._doc,String(r)).toString();case tt.STYLE:return Vr(r,"Style")?Wn(r):r;case tt.SCRIPT:if(Vr(r,"Script"))return Wn(r);throw new Error("unsafe value used in a script context");case tt.URL:return r0(r),Vr(r,"URL")?Wn(r):_a(String(r));case tt.RESOURCE_URL:if(Vr(r,"ResourceURL"))return Wn(r);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function i5(n){return new X3(n)}(e)}bypassSecurityTrustStyle(e){return function o5(n){return new e5(n)}(e)}bypassSecurityTrustScript(e){return function s5(n){return new t5(n)}(e)}bypassSecurityTrustUrl(e){return function a5(n){return new n5(n)}(e)}bypassSecurityTrustResourceUrl(e){return function l5(n){return new r5(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(U(Vt))},n.\u0275prov=oe({token:n,factory:function(e){let r=null;return r=e?new e:function oT(n){return new Vv(n.get(Vt))}(U(mt)),r},providedIn:"root"}),n})();const Ap={now:()=>(Ap.delegate||Date).now(),delegate:void 0};class sT extends Rt{constructor(t=1/0,e=1/0,r=Ap){super(),this._bufferSize=t,this._windowTime=e,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,e)}next(t){const{isStopped:e,_buffer:r,_infiniteTimeWindow:i,_timestampProvider:o,_windowTime:s}=this;e||(r.push(t),!i&&r.push(o.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:i}=this,o=i.slice();for(let s=0;s<o.length&&!t.closed;s+=r?1:2)t.next(o[s]);return this._checkFinalizedStatuses(t),e}_trimBuffer(){const{_bufferSize:t,_timestampProvider:e,_buffer:r,_infiniteTimeWindow:i}=this,o=(i?1:2)*t;if(t<1/0&&o<r.length&&r.splice(0,r.length-o),!i){const s=e.now();let a=0;for(let l=1;l<r.length&&r[l]<=s;l+=2)a=l;a&&r.splice(0,a+1)}}}function mo(n,t){return Cn((e,r)=>{let i=null,o=0,s=!1;const a=()=>s&&!i&&r.complete();e.subscribe(an(r,l=>{null==i||i.unsubscribe();let c=0;const u=o++;nr(n(l,u)).subscribe(i=an(r,d=>r.next(t?t(l,d,u,c++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}const Yc={schedule(n,t){const e=setTimeout(n,t);return()=>clearTimeout(e)},scheduleBeforeRender(n){if("undefined"==typeof window)return Yc.schedule(n,0);if(void 0===window.requestAnimationFrame)return Yc.schedule(n,16);const t=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(t)}};let xp;function mT(n,t,e){let r=e;return function lT(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&t.some((i,o)=>!("*"===i||!function uT(n,t){if(!xp){const e=Element.prototype;xp=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&xp.call(n,t)}(n,i)||(r=o,0))),r}class yT{constructor(t,e){this.componentFactory=e.get(so).resolveComponentFactory(t)}create(t){return new _T(this.componentFactory,t)}}class _T{constructor(t,e){this.componentFactory=t,this.injector=e,this.eventEmitters=new sT(1),this.events=this.eventEmitters.pipe(mo(r=>xg(...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(Jt),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=Yc.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){this.runInZone(()=>{null!==this.componentRef?function dT(n,t){return n===t||n!=n&&t!=t}(e,this.getInputValue(t))&&(void 0!==e||!this.unchangedInputs.has(t))||(this.recordInputChange(t,e),this.unchangedInputs.delete(t),this.hasInputChanges=!0,this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)})}initializeComponent(t){const e=mt.create({providers:[],parent:this.injector}),r=function pT(n,t){const e=n.childNodes,r=t.map(()=>[]);let i=-1;t.some((o,s)=>"*"===o&&(i=s,!0));for(let o=0,s=e.length;o<s;++o){const a=e[o],l=mT(a,t,i);-1!==l&&r[l].push(a)}return r}(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,r,t),this.viewChangeDetectorRef=this.componentRef.injector.get(Ba),this.implementsOnChanges=function cT(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(Va).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:t})=>{this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map(({propName:r,templateName:i})=>t.instance[r].pipe(Pt(s=>({name:i,value:s}))));this.eventEmitters.next(e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}markViewForCheck(t){this.hasInputChanges&&(this.hasInputChanges=!1,t.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Yc.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const r=this.inputChanges[t];if(r)return void(r.currentValue=e);const i=this.unchangedInputs.has(t),o=i?void 0:this.getInputValue(t);this.inputChanges[t]=new jg(o,e,i)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class vT extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function xr(...n){return Ki(n,Js(n))}function Jc(n,t){return Cn((e,r)=>{let i=0;e.subscribe(an(r,o=>n.call(t,o,i++)&&r.next(o)))})}class Bv{}class jv{}class Zr{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const r=e.indexOf(":");if(r>0){const i=e.slice(0,r),o=i.toLowerCase(),s=e.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let r=t[e];const i=e.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(i,r),this.maybeSetNormalizedName(e,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Zr?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Zr;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Zr?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...r),this.headers.set(e,i);break;case"d":const o=t.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class bT{encodeKey(t){return Hv(t)}encodeValue(t){return Hv(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const ET=/%(\d[a-f0-9])/gi,MT={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Hv(n){return encodeURIComponent(n).replace(ET,(t,e)=>{var r;return null!==(r=MT[e])&&void 0!==r?r:t})}function Uv(n){return`${n}`}class hi{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new bT,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function DT(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(i=>{const o=i.indexOf("="),[s,a]=-1==o?[t.decodeKey(i),""]:[t.decodeKey(i.slice(0,o)),t.decodeValue(i.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const r=t.fromObject[e];this.map.set(e,Array.isArray(r)?r:[r])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(r=>{const i=t[r];Array.isArray(i)?i.forEach(o=>{e.push({param:r,value:o,op:"a"})}):e.push({param:r,value:i,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(r=>e+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new hi({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(Uv(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let r=this.map.get(t.param)||[];const i=r.indexOf(Uv(t.value));-1!==i&&r.splice(i,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class zv{constructor(t){this.defaultValue=t}}class ST{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function Gv(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function Wv(n){return"undefined"!=typeof Blob&&n instanceof Blob}function qv(n){return"undefined"!=typeof FormData&&n instanceof FormData}class Wa{constructor(t,e,r,i){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function TT(n){switch(n){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.headers||(this.headers=new Zr),this.context||(this.context=new ST),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a<e.length-1?"&":"")+s}}else this.params=new hi,this.urlWithParams=e}serializeBody(){return null===this.body?null:Gv(this.body)||Wv(this.body)||qv(this.body)||function AT(n){return"undefined"!=typeof URLSearchParams&&n instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof hi?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||qv(this.body)?null:Wv(this.body)?this.body.type||null:Gv(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof hi?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(t={}){var e;const r=t.method||this.method,i=t.url||this.url,o=t.responseType||this.responseType,s=void 0!==t.body?t.body:this.body,a=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,l=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let c=t.headers||this.headers,u=t.params||this.params;const d=null!==(e=t.context)&&void 0!==e?e:this.context;return void 0!==t.setHeaders&&(c=Object.keys(t.setHeaders).reduce((f,p)=>f.set(p,t.setHeaders[p]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((f,p)=>f.set(p,t.setParams[p]),u)),new Wa(r,i,s,{params:u,headers:c,context:d,reportProgress:l,responseType:o,withCredentials:a})}}var Ht=(()=>((Ht=Ht||{})[Ht.Sent=0]="Sent",Ht[Ht.UploadProgress=1]="UploadProgress",Ht[Ht.ResponseHeader=2]="ResponseHeader",Ht[Ht.DownloadProgress=3]="DownloadProgress",Ht[Ht.Response=4]="Response",Ht[Ht.User=5]="User",Ht))();class Ip{constructor(t,e=200,r="OK"){this.headers=t.headers||new Zr,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Pp extends Ip{constructor(t={}){super(t),this.type=Ht.ResponseHeader}clone(t={}){return new Pp({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Xc extends Ip{constructor(t={}){super(t),this.type=Ht.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Xc({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Kv extends Ip{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function kp(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let Np=(()=>{class n{constructor(e){this.handler=e}request(e,r,i={}){let o;if(e instanceof Wa)o=e;else{let l,c;l=i.headers instanceof Zr?i.headers:new Zr(i.headers),i.params&&(c=i.params instanceof hi?i.params:new hi({fromObject:i.params})),o=new Wa(e,r,void 0!==i.body?i.body:null,{headers:l,context:i.context,params:c,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=xr(o).pipe(function CT(n,t){return Ce(t)?Al(n,t,1):Al(n,1)}(l=>this.handler.handle(l)));if(e instanceof Wa||"events"===i.observe)return s;const a=s.pipe(Jc(l=>l instanceof Xc));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(Pt(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(Pt(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(Pt(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(Pt(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(e,r={}){return this.request("DELETE",e,r)}get(e,r={}){return this.request("GET",e,r)}head(e,r={}){return this.request("HEAD",e,r)}jsonp(e,r){return this.request("JSONP",e,{params:(new hi).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,r={}){return this.request("OPTIONS",e,r)}patch(e,r,i={}){return this.request("PATCH",e,kp(i,r))}post(e,r,i={}){return this.request("POST",e,kp(i,r))}put(e,r,i={}){return this.request("PUT",e,kp(i,r))}}return n.\u0275fac=function(e){return new(e||n)(U(Bv))},n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})();class Zv{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const eu=new ae("HTTP_INTERCEPTORS");let xT=(()=>{class n{intercept(e,r){return r.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})();const IT=/^\)\]\}',?\n/;let Qv=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Lt(r=>{const i=this.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach((p,y)=>i.setRequestHeader(p,y.join(","))),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const p=e.detectContentTypeHeader();null!==p&&i.setRequestHeader("Content-Type",p)}if(e.responseType){const p=e.responseType.toLowerCase();i.responseType="json"!==p?p:"text"}const o=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const p=i.statusText||"OK",y=new Zr(i.getAllResponseHeaders()),w=function PT(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(i)||e.url;return s=new Pp({headers:y,status:i.status,statusText:p,url:w}),s},l=()=>{let{headers:p,status:y,statusText:w,url:b}=a(),S=null;204!==y&&(S=void 0===i.response?i.responseText:i.response),0===y&&(y=S?200:0);let E=y>=200&&y<300;if("json"===e.responseType&&"string"==typeof S){const F=S;S=S.replace(IT,"");try{S=""!==S?JSON.parse(S):null}catch(G){S=F,E&&(E=!1,S={error:G,text:S})}}E?(r.next(new Xc({body:S,headers:p,status:y,statusText:w,url:b||void 0})),r.complete()):r.error(new Kv({error:S,headers:p,status:y,statusText:w,url:b||void 0}))},c=p=>{const{url:y}=a(),w=new Kv({error:p,status:i.status||0,statusText:i.statusText||"Unknown Error",url:y||void 0});r.error(w)};let u=!1;const d=p=>{u||(r.next(a()),u=!0);let y={type:Ht.DownloadProgress,loaded:p.loaded};p.lengthComputable&&(y.total=p.total),"text"===e.responseType&&!!i.responseText&&(y.partialText=i.responseText),r.next(y)},f=p=>{let y={type:Ht.UploadProgress,loaded:p.loaded};p.lengthComputable&&(y.total=p.total),r.next(y)};return i.addEventListener("load",l),i.addEventListener("error",c),i.addEventListener("timeout",c),i.addEventListener("abort",c),e.reportProgress&&(i.addEventListener("progress",d),null!==o&&i.upload&&i.upload.addEventListener("progress",f)),i.send(o),r.next({type:Ht.Sent}),()=>{i.removeEventListener("error",c),i.removeEventListener("abort",c),i.removeEventListener("load",l),i.removeEventListener("timeout",c),e.reportProgress&&(i.removeEventListener("progress",d),null!==o&&i.upload&&i.upload.removeEventListener("progress",f)),i.readyState!==i.DONE&&i.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(U(Ev))},n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})();const Op=new ae("XSRF_COOKIE_NAME"),Fp=new ae("XSRF_HEADER_NAME");class Yv{}let kT=(()=>{class n{constructor(e,r,i){this.doc=e,this.platform=r,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=gv(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(U(Vt),U(Zf),U(Op))},n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})(),Lp=(()=>{class n{constructor(e,r){this.tokenService=e,this.headerName=r}intercept(e,r){const i=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||i.startsWith("http://")||i.startsWith("https://"))return r.handle(e);const o=this.tokenService.getToken();return null!==o&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,o)})),r.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(U(Yv),U(Fp))},n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})(),NT=(()=>{class n{constructor(e,r){this.backend=e,this.injector=r,this.chain=null}handle(e){if(null===this.chain){const r=this.injector.get(eu,[]);this.chain=r.reduceRight((i,o)=>new Zv(i,o),this.backend)}return this.chain.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(U(jv),U(mt))},n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})(),OT=(()=>{class n{static disable(){return{ngModule:n,providers:[{provide:Lp,useClass:xT}]}}static withOptions(e={}){return{ngModule:n,providers:[e.cookieName?{provide:Op,useValue:e.cookieName}:[],e.headerName?{provide:Fp,useValue:e.headerName}:[]]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({providers:[Lp,{provide:eu,useExisting:Lp,multi:!0},{provide:Yv,useClass:kT},{provide:Op,useValue:"XSRF-TOKEN"},{provide:Fp,useValue:"X-XSRF-TOKEN"}]}),n})(),Jv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({providers:[Np,{provide:Bv,useClass:NT},Qv,{provide:jv,useExisting:Qv}],imports:[[OT.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),n})();class FT extends It{constructor(t,e){super()}schedule(t,e=0){return this}}const tu={setInterval(n,t,...e){const{delegate:r}=tu;return(null==r?void 0:r.setInterval)?r.setInterval(n,t,...e):setInterval(n,t,...e)},clearInterval(n){const{delegate:t}=tu;return((null==t?void 0:t.clearInterval)||clearInterval)(n)},delegate:void 0};class qa{constructor(t,e=qa.now){this.schedulerActionCtor=t,this.now=e}schedule(t,e=0,r){return new this.schedulerActionCtor(this,t).schedule(r,e)}}qa.now=Ap.now;const Xv=new class RT extends qa{constructor(t,e=qa.now){super(t,e),this.actions=[],this._active=!1}flush(t){const{actions:e}=this;if(this._active)return void e.push(t);let r;this._active=!0;do{if(r=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,r){for(;t=e.shift();)t.unsubscribe();throw r}}}(class LT extends FT{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){var r;if(this.closed)return this;this.state=t;const i=this.id,o=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(o,i,e)),this.pending=!0,this.delay=e,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(o,this.id,e),this}requestAsyncId(t,e,r=0){return tu.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,e,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return e;null!=e&&tu.clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(t,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let i,r=!1;try{this.work(t)}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:t,scheduler:e}=this,{actions:r}=e;this.work=this.state=this.scheduler=null,this.pending=!1,Ge(r,this),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null,super.unsubscribe()}}}),$T=Xv;function Ka(n,t=Xv){return Cn((e,r)=>{let i=null,o=null,s=null;const a=()=>{if(i){i.unsubscribe(),i=null;const c=o;o=null,r.next(c)}};function l(){const c=s+n,u=t.now();if(u<c)return i=this.schedule(void 0,c-u),void r.add(i);a()}e.subscribe(an(r,c=>{o=c,s=t.now(),i||(i=t.schedule(l,n),r.add(i))},()=>{a(),r.complete()},void 0,()=>{o=i=null}))})}function e8(n){return Cn((t,e)=>{nr(n).subscribe(an(e,()=>e.complete(),Zs)),!e.closed&&t.subscribe(e)})}class Qr extends Rt{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return!e.closed&&t.next(this._value),e}getValue(){const{hasError:t,thrownError:e,_value:r}=this;if(t)throw e;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}function t8(n=0,t,e=$T){let r=-1;return null!=t&&(Eg(t)?e=t:r=t),new Lt(i=>{let o=function VT(n){return n instanceof Date&&!isNaN(n)}(n)?+n-e.now():n;o<0&&(o=0);let s=0;return e.schedule(function(){i.closed||(i.next(s++),0<=r?this.schedule(void 0,r):i.complete())},o)})}function Es(n){return Cn((t,e)=>{let o,r=null,i=!1;r=t.subscribe(an(e,void 0,void 0,s=>{o=nr(n(s,Es(n)(t))),r?(r.unsubscribe(),r=null,o.subscribe(e)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(e))})}function n8(...n){return function jT(){return bg(1)}()(Ki(n,Js(n)))}function Rp(...n){const t=Js(n);return Cn((e,r)=>{(t?n8(n,e,t):n8(n,e)).subscribe(r)})}function r8(n,t,e){const r=Ce(n)||t||e?{next:n,error:t,complete:e}:n;return r?Cn((i,o)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;i.subscribe(an(o,l=>{var c;null===(c=r.next)||void 0===c||c.call(r,l),o.next(l)},()=>{var l;a=!1,null===(l=r.complete)||void 0===l||l.call(r),o.complete()},l=>{var c;a=!1,null===(c=r.error)||void 0===c||c.call(r,l),o.error(l)},()=>{var l,c;a&&(null===(l=r.unsubscribe)||void 0===l||l.call(r)),null===(c=r.finalize)||void 0===c||c.call(r)}))}):No}const{isArray:HT}=Array,{getPrototypeOf:UT,prototype:zT,keys:GT}=Object;function i8(n){if(1===n.length){const t=n[0];if(HT(t))return{args:t,keys:null};if(function WT(n){return n&&"object"==typeof n&&UT(n)===zT}(t)){const e=GT(t);return{args:e.map(r=>t[r]),keys:e}}}return{args:n,keys:null}}const{isArray:qT}=Array;function o8(n){return Pt(t=>function KT(n,t){return qT(t)?n(...t):n(t)}(n,t))}function s8(n,t){return n.reduce((e,r,i)=>(e[r]=t[i],e),{})}function $p(...n){const t=Js(n),e=Mg(n),{args:r,keys:i}=i8(n);if(0===r.length)return Ki([],t);const o=new Lt(function ZT(n,t,e=No){return r=>{a8(t,()=>{const{length:i}=n,o=new Array(i);let s=i,a=i;for(let l=0;l<i;l++)a8(t,()=>{const c=Ki(n[l],t);let u=!1;c.subscribe(an(r,d=>{o[l]=d,u||(u=!0,a--),a||r.next(e(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,t,i?s=>s8(i,s):No));return e?o.pipe(o8(e)):o}function a8(n,t,e){n?ri(e,n,t):t()}function l8(){return Cn((n,t)=>{let e,r=!1;n.subscribe(an(t,i=>{const o=e;e=i,r&&t.next([o,i]),r=!0}))})}const c8={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let nu;const JT=new Uint8Array(16);function XT(){if(!nu&&(nu="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!nu))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return nu(JT)}const un=[];for(let n=0;n<256;++n)un.push((n+256).toString(16).slice(1));const d8=function eA(n,t,e){if(c8.randomUUID&&!t&&!n)return c8.randomUUID();const r=(n=n||{}).random||(n.rng||XT)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){e=e||0;for(let i=0;i<16;++i)t[e+i]=r[i];return t}return function u8(n,t=0){return un[n[t+0]]+un[n[t+1]]+un[n[t+2]]+un[n[t+3]]+"-"+un[n[t+4]]+un[n[t+5]]+"-"+un[n[t+6]]+un[n[t+7]]+"-"+un[n[t+8]]+un[n[t+9]]+"-"+un[n[t+10]]+un[n[t+11]]+un[n[t+12]]+un[n[t+13]]+un[n[t+14]]+un[n[t+15]]}(r)};class h8{}const fi="*";function Ms(n,t){return{type:7,name:n,definitions:t,options:{}}}function Ir(n,t=null){return{type:4,styles:t,timings:n}}function f8(n,t=null){return{type:2,steps:n,options:t}}function At(n){return{type:6,styles:n,offset:null}}function Za(n,t,e){return{type:0,name:n,styles:t,options:e}}function Pr(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function p8(n){Promise.resolve(null).then(n)}class Qa{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){p8(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(r=>r()),e.length=0}}class m8{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,r=0,i=0;const o=this.players.length;0==o?p8(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++r==o&&this._onDestroy()}),s.onStart(()=>{++i==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(r=>{const i=r.totalTime?Math.min(1,e/r.totalTime):1;r.setPosition(i)})}getPosition(){const t=this.players.reduce((e,r)=>null===e||r.totalTime>e.totalTime?r:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(r=>r()),e.length=0}}var ru=Gt(791);let g8=(()=>{class n{constructor(e,r){this._renderer=e,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(e,r){this._renderer.setProperty(this._elementRef.nativeElement,e,r)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(I(qr),I(kn))},n.\u0275dir=fe({type:n}),n})(),go=(()=>{class n extends g8{}return n.\u0275fac=function(){let t;return function(r){return(t||(t=nn(n)))(r||n)}}(),n.\u0275dir=fe({type:n,features:[Le]}),n})();const Zn=new ae("NgValueAccessor"),rA={provide:Zn,useExisting:We(()=>Bp),multi:!0};let Bp=(()=>{class n extends go{writeValue(e){this.setProperty("checked",e)}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=nn(n)))(r||n)}}(),n.\u0275dir=fe({type:n,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,r){1&e&&ke("change",function(o){return r.onChange(o.target.checked)})("blur",function(){return r.onTouched()})},features:[nt([rA]),Le]}),n})();const iA={provide:Zn,useExisting:We(()=>iu),multi:!0},sA=new ae("CompositionEventMode");let iu=(()=>{class n extends g8{constructor(e,r,i){super(e,r),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function oA(){const n=po()?po().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(I(qr),I(kn),I(sA,8))},n.\u0275dir=fe({type:n,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(e,r){1&e&&ke("input",function(o){return r._handleInput(o.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(o){return r._compositionEnd(o.target.value)})},features:[nt([iA]),Le]}),n})();function Li(n){return null==n||0===n.length}function y8(n){return null!=n&&"number"==typeof n.length}const dn=new ae("NgValidators"),Ri=new ae("NgAsyncValidators"),aA=/^(?=.{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 pi{static min(t){return function _8(n){return t=>{if(Li(t.value)||Li(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e<n?{min:{min:n,actual:t.value}}:null}}(t)}static max(t){return function v8(n){return t=>{if(Li(t.value)||Li(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return function w8(n){return Li(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function C8(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function b8(n){return Li(n.value)||aA.test(n.value)?null:{email:!0}}(t)}static minLength(t){return D8(t)}static maxLength(t){return E8(t)}static pattern(t){return function M8(n){if(!n)return ou;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),r=>{if(Li(r.value))return null;const i=r.value;return t.test(i)?null:{pattern:{requiredPattern:e,actualValue:i}}}}(t)}static nullValidator(t){return null}static compose(t){return P8(t)}static composeAsync(t){return k8(t)}}function D8(n){return t=>Li(t.value)||!y8(t.value)?null:t.value.length<n?{minlength:{requiredLength:n,actualLength:t.value.length}}:null}function E8(n){return t=>y8(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}function ou(n){return null}function S8(n){return null!=n}function T8(n){const t=vc(n)?Ki(n):n;return $y(t),t}function A8(n){let t={};return n.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function x8(n,t){return t.map(e=>e(n))}function I8(n){return n.map(t=>function lA(n){return!n.validate}(t)?t:e=>t.validate(e))}function P8(n){if(!n)return null;const t=n.filter(S8);return 0==t.length?null:function(e){return A8(x8(e,t))}}function jp(n){return null!=n?P8(I8(n)):null}function k8(n){if(!n)return null;const t=n.filter(S8);return 0==t.length?null:function(e){return function nA(...n){const t=Mg(n),{args:e,keys:r}=i8(n),i=new Lt(o=>{const{length:s}=e;if(!s)return void o.complete();const a=new Array(s);let l=s,c=s;for(let u=0;u<s;u++){let d=!1;nr(e[u]).subscribe(an(o,f=>{d||(d=!0,c--),a[u]=f},()=>l--,void 0,()=>{(!l||!d)&&(c||o.next(r?s8(r,a):a),o.complete())}))}});return t?i.pipe(o8(t)):i}(x8(e,t).map(T8)).pipe(Pt(A8))}}function Hp(n){return null!=n?k8(I8(n)):null}function N8(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function O8(n){return n._rawValidators}function F8(n){return n._rawAsyncValidators}function Up(n){return n?Array.isArray(n)?n:[n]:[]}function su(n,t){return Array.isArray(n)?n.includes(t):n===t}function L8(n,t){const e=Up(t);return Up(n).forEach(i=>{su(e,i)||e.push(i)}),e}function R8(n,t){return Up(t).filter(e=>!su(n,e))}class $8{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(t){this._rawValidators=t||[],this._composedValidatorFn=jp(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Hp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class mi extends $8{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class xn extends $8{get formDirective(){return null}get path(){return null}}class V8{constructor(t){this._cd=t}is(t){var e,r,i;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(i=null===(r=this._cd)||void 0===r?void 0:r.control)||void 0===i?void 0:i[t])}}let Ya=(()=>{class n extends V8{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(I(mi,2))},n.\u0275dir=fe({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,r){2&e&&Dr("ng-untouched",r.is("untouched"))("ng-touched",r.is("touched"))("ng-pristine",r.is("pristine"))("ng-dirty",r.is("dirty"))("ng-valid",r.is("valid"))("ng-invalid",r.is("invalid"))("ng-pending",r.is("pending"))},features:[Le]}),n})(),zp=(()=>{class n extends V8{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(I(xn,10))},n.\u0275dir=fe({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,r){2&e&&Dr("ng-untouched",r.is("untouched"))("ng-touched",r.is("touched"))("ng-pristine",r.is("pristine"))("ng-dirty",r.is("dirty"))("ng-valid",r.is("valid"))("ng-invalid",r.is("invalid"))("ng-pending",r.is("pending"))("ng-submitted",r.is("submitted"))},features:[Le]}),n})();function lu(n,t){return[...t.path,n]}function Ja(n,t){qp(n,t),t.valueAccessor.writeValue(n.value),function gA(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&j8(n,t)})}(n,t),function _A(n,t){const e=(r,i)=>{t.valueAccessor.writeValue(r),i&&t.viewToModelUpdate(r)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function yA(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&j8(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function mA(n,t){if(t.valueAccessor.setDisabledState){const e=r=>{t.valueAccessor.setDisabledState(r)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function cu(n,t,e=!0){const r=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(r),t.valueAccessor.registerOnTouched(r)),du(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function uu(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function qp(n,t){const e=O8(n);null!==t.validator?n.setValidators(N8(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const r=F8(n);null!==t.asyncValidator?n.setAsyncValidators(N8(r,t.asyncValidator)):"function"==typeof r&&n.setAsyncValidators([r]);const i=()=>n.updateValueAndValidity();uu(t._rawValidators,i),uu(t._rawAsyncValidators,i)}function du(n,t){let e=!1;if(null!==n){if(null!==t.validator){const i=O8(n);if(Array.isArray(i)&&i.length>0){const o=i.filter(s=>s!==t.validator);o.length!==i.length&&(e=!0,n.setValidators(o))}}if(null!==t.asyncValidator){const i=F8(n);if(Array.isArray(i)&&i.length>0){const o=i.filter(s=>s!==t.asyncValidator);o.length!==i.length&&(e=!0,n.setAsyncValidators(o))}}}const r=()=>{};return uu(t._rawValidators,r),uu(t._rawAsyncValidators,r),e}function j8(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function Kp(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}function Zp(n,t){if(!t)return null;let e,r,i;return Array.isArray(t),t.forEach(o=>{o.constructor===iu?e=o:function CA(n){return Object.getPrototypeOf(n.constructor)===go}(o)?r=o:i=o}),i||r||e||null}function Qp(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}const Xa="VALID",hu="INVALID",Ss="PENDING",el="DISABLED";function Jp(n){return(fu(n)?n.validators:n)||null}function G8(n){return Array.isArray(n)?jp(n):n||null}function Xp(n,t){return(fu(t)?t.asyncValidators:n)||null}function W8(n){return Array.isArray(n)?Hp(n):n||null}function fu(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}const em=n=>n instanceof nm,pu=n=>n instanceof mu,q8=n=>n instanceof Y8;function K8(n){return em(n)?n.value:n.getRawValue()}function Z8(n,t){const e=pu(n),r=n.controls;if(!(e?Object.keys(r):r).length)throw new Y(1e3,"");if(!r[t])throw new Y(1001,"")}function Q8(n,t){pu(n),n._forEachChild((r,i)=>{if(void 0===t[i])throw new Y(1002,"")})}class tm{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=G8(this._rawValidators),this._composedAsyncValidatorFn=W8(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Xa}get invalid(){return this.status===hu}get pending(){return this.status==Ss}get disabled(){return this.status===el}get enabled(){return this.status!==el}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=G8(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=W8(t)}addValidators(t){this.setValidators(L8(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(L8(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(R8(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(R8(t,this._rawAsyncValidators))}hasValidator(t){return su(this._rawValidators,t)}hasAsyncValidator(t){return su(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Ss,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=el,this.errors=null,this._forEachChild(r=>{r.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Xa,this._forEachChild(r=>{r.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Xa||this.status===Ss)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?el:Xa}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Ss,this._hasOwnPendingAsyncValidator=!0;const e=T8(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function bA(n,t,e){if(null==t||(Array.isArray(t)||(t=t.split(e)),Array.isArray(t)&&0===t.length))return null;let r=n;return t.forEach(i=>{r=pu(r)?r.controls.hasOwnProperty(i)?r.controls[i]:null:q8(r)&&r.at(i)||null}),r}(this,t,".")}getError(t,e){const r=e?this.get(e):this;return r&&r.errors?r.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new $e,this.statusChanges=new $e}_calculateStatus(){return this._allControlsDisabled()?el:this.errors?hu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ss)?Ss:this._anyControlsHaveStatus(hu)?hu:Xa}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){fu(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class nm extends tm{constructor(t=null,e,r){super(Jp(e),Xp(r,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),fu(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Qp(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Qp(this._onDisabledChange,t)}_forEachChild(t){}_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(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class mu extends tm{constructor(t,e,r){super(Jp(e),Xp(r,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,r={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){Q8(this,t),Object.keys(t).forEach(r=>{Z8(this,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(r=>{this.controls[r]&&this.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((r,i)=>{r.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,r)=>(t[r]=K8(e),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,r)=>!!r._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const r=this.controls[e];r&&t(r,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const r=this.controls[e];if(this.contains(e)&&t(r))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,r)=>((e.enabled||this.disabled)&&(t[r]=e.value),t))}_reduceChildren(t,e){let r=t;return this._forEachChild((i,o)=>{r=e(r,i,o)}),r}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class Y8 extends tm{constructor(t,e,r){super(Jp(e),Xp(r,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,r={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){Q8(this,t),t.forEach((r,i)=>{Z8(this,i),this.at(i).setValue(r,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((r,i)=>{this.at(i)&&this.at(i).patchValue(r,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((r,i)=>{r.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>K8(t))}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((e,r)=>!!r._syncPendingControls()||e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,r)=>{t(e,r)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}let J8=(()=>{class n extends xn{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return lu(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=nn(n)))(r||n)}}(),n.\u0275dir=fe({type:n,features:[Le]}),n})();const MA={provide:mi,useExisting:We(()=>gu)},ew=(()=>Promise.resolve(null))();let gu=(()=>{class n extends mi{constructor(e,r,i,o,s){super(),this._changeDetectorRef=s,this.control=new nm,this._registered=!1,this.update=new $e,this._parent=e,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=Zp(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const r=e.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Kp(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Ja(this.control,this),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(e){ew.then(()=>{var r;this.control.setValue(e,{emitViewToModelChange:!1}),null===(r=this._changeDetectorRef)||void 0===r||r.markForCheck()})}_updateDisabled(e){const r=e.isDisabled.currentValue,i=""===r||r&&"false"!==r;ew.then(()=>{var o;i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),null===(o=this._changeDetectorRef)||void 0===o||o.markForCheck()})}_getPath(e){return this._parent?lu(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(I(xn,9),I(dn,10),I(Ri,10),I(Zn,10),I(Ba,8))},n.\u0275dir=fe({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[nt([MA]),Le,Lr]}),n})(),im=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})(),nw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({}),n})();const om=new ae("NgModelWithFormControlWarning"),PA={provide:xn,useExisting:We(()=>nl)};let nl=(()=>{class n extends xn{constructor(e,r){super(),this.validators=e,this.asyncValidators=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new $e,this._setValidators(e),this._setAsyncValidators(r)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(du(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const r=this.form.get(e.path);return Ja(r,e),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),r}getControl(e){return this.form.get(e.path)}removeControl(e){cu(e.control||null,e,!1),Qp(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,r){this.form.get(e.path).setValue(r)}onSubmit(e){return this.submitted=!0,function z8(n,t){n._syncPendingControls(),t.forEach(e=>{const r=e.control;"submit"===r.updateOn&&r._pendingChange&&(e.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const r=e.control,i=this.form.get(e.path);r!==i&&(cu(r||null,e),em(i)&&(Ja(i,e),e.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const r=this.form.get(e.path);(function H8(n,t){qp(n,t)})(r,e),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const r=this.form.get(e.path);r&&function vA(n,t){return du(n,t)}(r,e)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){qp(this.form,this),this._oldForm&&du(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(I(dn,10),I(Ri,10))},n.\u0275dir=fe({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,r){1&e&&ke("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[nt([PA]),Le,Lr]}),n})();const kA={provide:xn,useExisting:We(()=>yu)};let yu=(()=>{class n extends J8{constructor(e,r,i){super(),this._parent=e,this._setValidators(r),this._setAsyncValidators(i)}_checkParentType(){sw(this._parent)}}return n.\u0275fac=function(e){return new(e||n)(I(xn,13),I(dn,10),I(Ri,10))},n.\u0275dir=fe({type:n,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[nt([kA]),Le]}),n})();const NA={provide:xn,useExisting:We(()=>sm)};let sm=(()=>{class n extends xn{constructor(e,r,i){super(),this._parent=e,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 lu(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){sw(this._parent)}}return n.\u0275fac=function(e){return new(e||n)(I(xn,13),I(dn,10),I(Ri,10))},n.\u0275dir=fe({type:n,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[nt([NA]),Le]}),n})();function sw(n){return!(n instanceof yu||n instanceof nl||n instanceof sm)}const OA={provide:mi,useExisting:We(()=>_u)};let _u=(()=>{class n extends mi{constructor(e,r,i,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new $e,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=Zp(0,o)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),Kp(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return lu(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.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(I(xn,13),I(dn,10),I(Ri,10),I(Zn,10),I(om,8))},n.\u0275dir=fe({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[nt([OA]),Le,Lr]}),n})();function cw(n){return"number"==typeof n?n:parseInt(n,10)}let yo=(()=>{class n{constructor(){this._validator=ou}ngOnChanges(e){if(this.inputName in e){const r=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):ou,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,features:[Lr]}),n})();const qA={provide:dn,useExisting:We(()=>vu),multi:!0};let vu=(()=>{class n extends yo{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=e=>cw(e),this.createValidator=e=>D8(e)}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=nn(n)))(r||n)}}(),n.\u0275dir=fe({type:n,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(e,r){2&e&&yn("minlength",r._enabled?r.minlength:null)},inputs:{minlength:"minlength"},features:[nt([qA]),Le]}),n})();const KA={provide:dn,useExisting:We(()=>rl),multi:!0};let rl=(()=>{class n extends yo{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>cw(e),this.createValidator=e=>E8(e)}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=nn(n)))(r||n)}}(),n.\u0275dir=fe({type:n,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,r){2&e&&yn("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},features:[nt([KA]),Le]}),n})(),gw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({imports:[[nw]]}),n})(),yw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({imports:[gw]}),n})(),um=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:om,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({imports:[gw]}),n})(),_w=(()=>{class n{group(e,r=null){const i=this._reduceControls(e);let a,o=null,s=null;return null!=r&&(function QA(n){return void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn}(r)?(o=null!=r.validators?r.validators:null,s=null!=r.asyncValidators?r.asyncValidators:null,a=null!=r.updateOn?r.updateOn:void 0):(o=null!=r.validator?r.validator:null,s=null!=r.asyncValidator?r.asyncValidator:null)),new mu(i,{asyncValidators:s,updateOn:a,validators:o})}control(e,r,i){return new nm(e,r,i)}array(e,r,i){const o=e.map(s=>this._createControl(s));return new Y8(o,r,i)}_reduceControls(e){const r={};return Object.keys(e).forEach(i=>{r[i]=this._createControl(e[i])}),r}_createControl(e){return em(e)||pu(e)||q8(e)?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=oe({token:n,factory:n.\u0275fac,providedIn:um}),n})();const wu=new ae("ngx-mask config"),vw=new ae("new ngx-mask config"),ww=new ae("initial ngx-mask config"),YA={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,triggerOnMaskChange:!1,maskFilled:new $e,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")}}},JA=["Hh:m0:s0","Hh:m0","m0:s0"],XA=["percent","Hh","s0","m0","separator","d0/M0/0000","d0/M0","d0","M0"];let Cw=(()=>{class n{constructor(e){this._config=e,this.maskExpression="",this.actualValue="",this.shownMaskExpression="",this._formatWithSeparators=(r,i,o,s)=>{var a,l;let c=[],u="";if(Array.isArray(o)){const w=new RegExp(o.map(b=>"[\\^$.|?*+()".indexOf(b)>=0?`\\${b}`:b).join("|"));c=r.split(w),u=null!==(l=null===(a=r.match(w))||void 0===a?void 0:a[0])&&void 0!==l?l:""}else c=r.split(o),u=o;const d=c.length>1?`${u}${c[1]}`:"";let f=c[0];const p=this.separatorLimit.replace(/\s/g,"");p&&+p&&(f="-"===f[0]?`-${f.slice(1,f.length).slice(0,p.length)}`:f.slice(0,p.length));const y=/(\d+)(\d{3})/;for(;i&&y.test(f);)f=f.replace(y,"$1"+i+"$2");return void 0===s?f+d:0===s?f:f+d.substr(0,s+1)},this.percentage=r=>Number(r)>=0&&Number(r)<=100,this.getPrecision=r=>{const i=r.split(".");return i.length>1?Number(i[i.length-1]):1/0},this.checkAndRemoveSuffix=r=>{var i,o,s;for(let a=(null===(i=this.suffix)||void 0===i?void 0:i.length)-1;a>=0;a--){const l=this.suffix.substr(a,null===(o=this.suffix)||void 0===o?void 0:o.length);if(r.includes(l)&&(a-1<0||!r.includes(this.suffix.substr(a-1,null===(s=this.suffix)||void 0===s?void 0:s.length))))return r.replace(l,"")}return r},this.checkInputPrecision=(r,i,o)=>{if(i<1/0){if(Array.isArray(o)){const l=o.find(c=>c!==this.thousandSeparator);o=l||o[0]}const s=new RegExp(this._charToRegExpExpression(o)+`\\d{${i}}.*$`),a=r.match(s);a&&a[0].length-1>i&&(r=r.substring(0,r.length-(a[0].length-1-i))),0===i&&this._compareOrIncludes(r[r.length-1],o,this.thousandSeparator)&&(r=r.substring(0,r.length-1))}return r},this._shift=new Set,this.clearIfNotMatch=this._config.clearIfNotMatch,this.dropSpecialCharacters=this._config.dropSpecialCharacters,this.maskSpecialCharacters=this._config.specialCharacters,this.maskAvailablePatterns=this._config.patterns,this.prefix=this._config.prefix,this.suffix=this._config.suffix,this.thousandSeparator=this._config.thousandSeparator,this.decimalMarker=this._config.decimalMarker,this.hiddenInput=this._config.hiddenInput,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}applyMaskWithPattern(e,r){const[i,o]=r;return this.customPattern=o,this.applyMask(e,i)}applyMask(e,r,i=0,o=!1,s=!1,a=(()=>{})){var l,c;if(!r||"string"!=typeof e)return"";let u=0,d="",f=!1,p=!1,y=1,w=!1;e.slice(0,this.prefix.length)===this.prefix&&(e=e.slice(this.prefix.length,e.length)),this.suffix&&(null==e?void 0:e.length)>0&&(e=this.checkAndRemoveSuffix(e));const b=e.toString().split("");"IP"===r&&(this.ipError=b.filter(Z=>"."===Z).length<3&&b.length<7,r="099.099.099.099");const S=[];for(let Z=0;Z<e.length;Z++)(null===(l=e[Z])||void 0===l?void 0:l.match("\\d"))&&S.push(e[Z]);if("CPF_CNPJ"===r&&(this.cpfCnpjError=11!==S.length&&14!==S.length,r=S.length>11?"00.000.000/0000-00":"000.000.000-00"),r.startsWith("percent")){if(e.match("[a-z]|[A-Z]")||e.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)){e=this._stripToDecimal(e);const Z=this.getPrecision(r);e=this.checkInputPrecision(e,Z,this.decimalMarker)}e.indexOf(".")>0&&!this.percentage(e.substring(0,e.indexOf(".")))&&(e=`${e.substring(0,e.indexOf(".")-1)}${e.substring(e.indexOf("."),e.length)}`),d=this.percentage(e)?e:e.substring(0,e.length-1)}else if(r.startsWith("separator")){(e.match("[w\u0430-\u044f\u0410-\u042f]")||e.match("[\u0401\u0451\u0410-\u044f]")||e.match("[a-z]|[A-Z]")||e.match(/[-@#!$%\\^&*()_\xa3\xac'+|~=`{}\[\]:";<>.?\/]/)||e.match("[^A-Za-z0-9,]"))&&(e=this._stripToDecimal(e)),e=e.length>1&&"0"===e[0]&&!this._compareOrIncludes(e[1],this.decimalMarker,this.thousandSeparator)&&!s?e.slice(1,e.length):e,s&&(e=this._compareOrIncludes(e[e.length-1],this.decimalMarker,this.thousandSeparator)?e.slice(0,e.length-1):e);const Z=this._charToRegExpExpression(this.thousandSeparator);let Q='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(Z,"");if(Array.isArray(this.decimalMarker))for(const X of this.decimalMarker)Q=Q.replace(this._charToRegExpExpression(X),"");else Q=Q.replace(this._charToRegExpExpression(this.decimalMarker),"");const Re=new RegExp("["+Q+"]");(e.match(Re)||1===e.length&&this._compareOrIncludes(e,this.decimalMarker,this.thousandSeparator))&&(e=e.substring(0,e.length-1));const He=this.getPrecision(r),Qe=(e=this.checkInputPrecision(e,He,this.decimalMarker)).replace(new RegExp(Z,"g"),"");d=this._formatWithSeparators(Qe,this.thousandSeparator,this.decimalMarker,He);const te=d.indexOf(",")-e.indexOf(","),se=d.length-e.length;if(se>0&&","!==d[i]){p=!0;let X=0;do{this._shift.add(i+X),X++}while(X<se)}else 0!==te&&i>0&&!(d.indexOf(",")>=i&&i>3)||!(d.indexOf(".")>=i&&i>3)&&se<=0?(this._shift.clear(),p=!0,y=se,this._shift.add(i+=se)):this._shift.clear()}else for(let Z=0,Q=b[0];Z<b.length&&u!==r.length;Z++,Q=b[Z])if(this._checkSymbolMask(Q,r[u])&&"?"===r[u+1])d+=Q,u+=2;else if("*"===r[u+1]&&f&&this._checkSymbolMask(Q,r[u+2]))d+=Q,u+=3,f=!1;else if(this._checkSymbolMask(Q,r[u])&&"*"===r[u+1])d+=Q,f=!0;else if("?"===r[u+1]&&this._checkSymbolMask(Q,r[u+2]))d+=Q,u+=3;else if(this._checkSymbolMask(Q,r[u])){if("H"===r[u]&&Number(Q)>2){u+=1,this._shiftStep(r,u,b.length),Z--,this.leadZeroDateTime&&(d+="0");continue}if("h"===r[u]&&"2"===d&&Number(Q)>3){u+=1,Z--;continue}if("m"===r[u]&&Number(Q)>5){u+=1,this._shiftStep(r,u,b.length),Z--,this.leadZeroDateTime&&(d+="0");continue}if("s"===r[u]&&Number(Q)>5){u+=1,this._shiftStep(r,u,b.length),Z--,this.leadZeroDateTime&&(d+="0");continue}const Re=31;if("d"===r[u]&&(Number(Q)>3&&this.leadZeroDateTime||Number(e.slice(u,u+2))>Re||"/"===e[u+1])){u+=1,this._shiftStep(r,u,b.length),Z--,this.leadZeroDateTime&&(d+="0");continue}if("M"===r[u]){const Qe=0===u&&(Number(Q)>2||Number(e.slice(u,u+2))>12||"/"===e[u+1]),te=e.slice(u-3,u-1).includes("/")&&("/"===e[u-2]&&Number(e.slice(u-1,u+1))>12&&"/"!==e[u]||"/"===e[u]||"/"===e[u-3]&&Number(e.slice(u-2,u))>12&&"/"!==e[u-1]||"/"===e[u-1]),se=Number(e.slice(u-3,u-1))<=Re&&!e.slice(u-3,u-1).includes("/")&&"/"===e[u-1]&&(Number(e.slice(u,u+2))>12||"/"===e[u+1]),X=Number(e.slice(u-3,u-1))>Re&&!e.slice(u-3,u-1).includes("/")&&!e.slice(u-2,u).includes("/")&&Number(e.slice(u-2,u))>12,De=Number(e.slice(u-3,u-1))<=Re&&!e.slice(u-3,u-1).includes("/")&&"/"!==e[u-1]&&Number(e.slice(u-1,u+1))>12;if(Number(Q)>1&&this.leadZeroDateTime||Qe||te||se||X||De){u+=1,this._shiftStep(r,u,b.length),Z--,this.leadZeroDateTime&&(d+="0");continue}}d+=Q,u++}else" "===Q&&" "===r[u]?(d+=Q,u++):-1!==this.maskSpecialCharacters.indexOf(r[u])?(d+=r[u],u++,this._shiftStep(r,u,b.length),Z--):this.maskSpecialCharacters.indexOf(Q)>-1&&this.maskAvailablePatterns[r[u]]&&(null===(c=this.maskAvailablePatterns[r[u]])||void 0===c?void 0:c.optional)?(!!b[u]&&"099.099.099.099"!==r&&"000.000.000-00"!==r&&"00.000.000/0000-00"!==r&&!r.match(/^9+\.0+$/)&&(d+=b[u]),u++,Z--):"*"===this.maskExpression[u+1]&&this._findSpecialChar(this.maskExpression[u+2])&&this._findSpecialChar(Q)===this.maskExpression[u+2]&&f||"?"===this.maskExpression[u+1]&&this._findSpecialChar(this.maskExpression[u+2])&&this._findSpecialChar(Q)===this.maskExpression[u+2]&&f?(u+=3,d+=Q):this.showMaskTyped&&this.maskSpecialCharacters.indexOf(Q)<0&&Q!==this.placeHolderCharacter&&(w=!0);d.length+1===r.length&&-1!==this.maskSpecialCharacters.indexOf(r[r.length-1])&&(d+=r[r.length-1]);let E=i+1;for(;this._shift.has(E);)y++,E++;let F=o&&!r.startsWith("separator")?u:this._shift.has(i)?y:0;w&&F--,a(F,p),y<0&&this._shift.clear();let G=!1;s&&(G=b.every(Z=>this.maskSpecialCharacters.includes(Z)));let ie=`${this.prefix}${G?"":d}${this.suffix}`;return 0===d.length&&(ie=`${this.prefix}${d}`),ie}_findSpecialChar(e){return this.maskSpecialCharacters.find(r=>r===e)}_checkSymbolMask(e,r){return this.maskAvailablePatterns=this.customPattern?this.customPattern:this.maskAvailablePatterns,this.maskAvailablePatterns[r]&&this.maskAvailablePatterns[r].pattern&&this.maskAvailablePatterns[r].pattern.test(e)}_stripToDecimal(e){return e.split("").filter((r,i)=>r.match("^-?\\d")||r.match("\\s")||"."===r||","===r||"-"===r&&0===i&&this.allowNegativeNumbers).join("")}_charToRegExpExpression(e){return e&&(" "===e?"\\s":"[\\^$.|?*+()".indexOf(e)>=0?`\\${e}`:e)}_shiftStep(e,r,i){const o=/[*?]/g.test(e.slice(0,r))?i:r;this._shift.add(o+this.prefix.length||0)}_compareOrIncludes(e,r,i){return Array.isArray(r)?r.filter(o=>o!==i).includes(e):e===r}}return n.\u0275fac=function(e){return new(e||n)(U(wu))},n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})(),bw=(()=>{class n extends Cw{constructor(e,r,i,o){super(r),this.document=e,this._config=r,this._elementRef=i,this._renderer=o,this.maskExpression="",this.isNumberValue=!1,this.placeHolderCharacter="_",this.maskIsShown="",this.selStart=null,this.selEnd=null,this.writingValue=!1,this.maskChanged=!1,this.triggerOnMaskChange=!1,this.onChange=s=>{}}applyMask(e,r,i=0,o=!1,s=!1,a=(()=>{})){if(!r)return e!==this.actualValue?this.actualValue:e;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():"","IP"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(e||"#")),"CPF_CNPJ"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(e||"#")),!e&&this.showMaskTyped)return this.formControlResult(this.prefix),this.prefix+this.maskIsShown;const l=e&&"number"==typeof this.selStart?e[this.selStart]:"";let c="";if(this.hiddenInput&&!this.writingValue){let p=this.actualValue.split("");""!==e&&p.length?"number"==typeof this.selStart&&"number"==typeof this.selEnd&&(e.length>p.length?p.splice(this.selStart,0,l):e.length<p.length&&(p.length-e.length==1?p.splice(this.selStart-1,1):p.splice(this.selStart,this.selEnd-this.selStart))):p=[],this.showMaskTyped&&(e=this.removeMask(e)),c=this.actualValue.length&&p.length<=e.length?this.shiftTypedSymbols(p.join("")):e}c=Boolean(c)&&c.length?c:e;const u=super.applyMask(c,r,i,o,s,a);if(this.actualValue=this.getActualValue(u),"."===this.thousandSeparator&&"."===this.decimalMarker&&(this.decimalMarker=","),this.maskExpression.startsWith("separator")&&!0===this.dropSpecialCharacters&&(this.maskSpecialCharacters=this.maskSpecialCharacters.filter(p=>!this._compareOrIncludes(p,this.decimalMarker,this.thousandSeparator))),this.formControlResult(u),!this.showMaskTyped)return this.hiddenInput&&u&&u.length?this.hideInput(u,this.maskExpression):u;const d=u.length,f=this.prefix+this.maskIsShown;if(this.maskExpression.includes("H")){const p=this._numberSkipedSymbols(u);return u+f.slice(d+p)}return"IP"===this.maskExpression||"CPF_CNPJ"===this.maskExpression?u+f:u+f.slice(d)}_numberSkipedSymbols(e){const r=/(^|\D)(\d\D)/g;let i=r.exec(e),o=0;for(;null!=i;)o+=1,i=r.exec(e);return o}applyValueChanges(e,r,i,o=(()=>{})){const s=this._elementRef.nativeElement;s.value=this.applyMask(s.value,this.maskExpression,e,r,i,o),s!==this._getActiveElement()&&this.clearIfNotMatchFn()}hideInput(e,r){return e.split("").map((i,o)=>{var s,a;return this.maskAvailablePatterns&&this.maskAvailablePatterns[r[o]]&&(null===(s=this.maskAvailablePatterns[r[o]])||void 0===s?void 0:s.symbol)?null===(a=this.maskAvailablePatterns[r[o]])||void 0===a?void 0:a.symbol:i}).join("")}getActualValue(e){const r=e.split("").filter((i,o)=>this._checkSymbolMask(i,this.maskExpression[o])||this.maskSpecialCharacters.includes(this.maskExpression[o])&&i===this.maskExpression[o]);return r.join("")===e?r.join(""):e}shiftTypedSymbols(e){let r="";return(e&&e.split("").map((o,s)=>{if(this.maskSpecialCharacters.includes(e[s+1])&&e[s+1]!==this.maskExpression[s+1])return r=o,e[s+1];if(r.length){const a=r;return r="",a}return o})||[]).join("")}numberToString(e){return e||0===e?Number(e).toLocaleString("fullwide",{useGrouping:!1,maximumFractionDigits:20}):String(e)}showMaskInInput(e){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(e){if("IP"===this.maskExpression)return this._checkForIp(e);if("CPF_CNPJ"===this.maskExpression)return this._checkForCpfCnpj(e)}return this.maskExpression.replace(/\w/g,this.placeHolderCharacter)}return""}clearIfNotMatchFn(){const e=this._elementRef.nativeElement;this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==e.value.replace(/_/g,"").length&&(this.formElementProperty=["value",""],this.applyMask(e.value,this.maskExpression))}set formElementProperty([e,r]){Promise.resolve().then(()=>this._renderer.setProperty(this._elementRef.nativeElement,e,r))}checkSpecialCharAmount(e){return e.split("").filter(i=>this._findSpecialChar(i)).length}removeMask(e){return this._removeMask(this._removeSuffix(this._removePrefix(e)),this.maskSpecialCharacters.concat("_").concat(this.placeHolderCharacter))}_checkForIp(e){var r;if("#"===e)return`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`;const i=[];for(let o=0;o<e.length;o++)(null===(r=e[o])||void 0===r?void 0:r.match("\\d"))&&i.push(e[o]);return i.length<=3?`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`:i.length>3&&i.length<=6?`${this.placeHolderCharacter}.${this.placeHolderCharacter}`:i.length>6&&i.length<=9?this.placeHolderCharacter:""}_checkForCpfCnpj(e){var r;const i=`${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`,o=`${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("#"===e)return i;const s=[];for(let a=0;a<e.length;a++)(null===(r=e[a])||void 0===r?void 0:r.match("\\d"))&&s.push(e[a]);return s.length<=3?i.slice(s.length,i.length):s.length>3&&s.length<=6?i.slice(s.length+1,i.length):s.length>6&&s.length<=9?i.slice(s.length+2,i.length):s.length>9&&s.length<11?i.slice(s.length+3,i.length):11===s.length?"":12===s.length?o.slice(17===e.length?16:15,o.length):s.length>12&&s.length<=14?o.slice(s.length+4,o.length):""}_getActiveElement(e=this.document){var r;const i=null===(r=null==e?void 0:e.activeElement)||void 0===r?void 0:r.shadowRoot;return(null==i?void 0:i.activeElement)?this._getActiveElement(i):e.activeElement}formControlResult(e){this.writingValue||!this.triggerOnMaskChange&&this.maskChanged?this.maskChanged=!1:Array.isArray(this.dropSpecialCharacters)?this.onChange(this._toNumber(this._removeMask(this._removeSuffix(this._removePrefix(e)),this.dropSpecialCharacters))):this.onChange(this.dropSpecialCharacters?this._toNumber(this._checkSymbols(e)):this._removeSuffix(e))}_toNumber(e){if(!this.isNumberValue||""===e)return e;const r=Number(e);return Number.isNaN(r)?e:r}_removeMask(e,r){return e&&e.replace(this._regExpForRemove(r),"")}_removePrefix(e){return this.prefix?e&&e.replace(this.prefix,""):e}_removeSuffix(e){return this.suffix?e&&e.replace(this.suffix,""):e}_retrieveSeparatorValue(e){return this._removeMask(this._removeSuffix(this._removePrefix(e)),this.maskSpecialCharacters)}_regExpForRemove(e){return new RegExp(e.map(r=>`\\${r}`).join("|"),"gi")}_checkSymbols(e){if(""===e)return e;const r=this._retrieveSeparatorPrecision(this.maskExpression);let i=this._retrieveSeparatorValue(e);return"."!==this.decimalMarker&&!Array.isArray(this.decimalMarker)&&(i=i.replace(this.decimalMarker,".")),this.isNumberValue?r?e===this.decimalMarker?null:this._checkPrecision(this.maskExpression,i):Number(i):i}_retrieveSeparatorPrecision(e){const r=e.match(new RegExp("^separator\\.([^d]*)"));return r?Number(r[1]):null}_checkPrecision(e,r){return e.indexOf("2")>0?Number(r).toFixed(2):Number(r)}}return n.\u0275fac=function(e){return new(e||n)(U(Vt),U(wu),U(kn),U(qr))},n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})(),ex=(()=>{class n{constructor(e,r,i){this.document=e,this._maskService=r,this._config=i,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.triggerOnMaskChange=null,this.maskFilled=new $e,this._maskValue="",this._position=null,this._maskExpressionArray=[],this._justPasted=!1,this.onChange=o=>{},this.onTouch=()=>{}}ngOnChanges(e){const{maskExpression:r,specialCharacters:i,patterns:o,prefix:s,suffix:a,thousandSeparator:l,decimalMarker:c,dropSpecialCharacters:u,hiddenInput:d,showMaskTyped:f,placeHolderCharacter:p,shownMaskExpression:y,showTemplate:w,clearIfNotMatch:b,validation:S,separatorLimit:E,allowNegativeNumbers:F,leadZeroDateTime:G,triggerOnMaskChange:ie}=e;if(r&&(r.currentValue!==r.previousValue&&!r.firstChange&&(this._maskService.maskChanged=!0),r.currentValue&&r.currentValue.split("||").length>1?(this._maskExpressionArray=r.currentValue.split("||").sort((Z,Q)=>Z.length-Q.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.maskSpecialCharacters=i.currentValue||[]}o&&o.currentValue&&(this._maskService.maskAvailablePatterns=o.currentValue),s&&(this._maskService.prefix=s.currentValue),a&&(this._maskService.suffix=a.currentValue),l&&(this._maskService.thousandSeparator=l.currentValue),c&&(this._maskService.decimalMarker=c.currentValue),u&&(this._maskService.dropSpecialCharacters=u.currentValue),d&&(this._maskService.hiddenInput=d.currentValue),f&&(this._maskService.showMaskTyped=f.currentValue),p&&(this._maskService.placeHolderCharacter=p.currentValue),y&&(this._maskService.shownMaskExpression=y.currentValue),w&&(this._maskService.showTemplate=w.currentValue),b&&(this._maskService.clearIfNotMatch=b.currentValue),S&&(this._maskService.validation=S.currentValue),E&&(this._maskService.separatorLimit=E.currentValue),F&&(this._maskService.allowNegativeNumbers=F.currentValue,this._maskService.allowNegativeNumbers&&(this._maskService.maskSpecialCharacters=this._maskService.maskSpecialCharacters.filter(Z=>"-"!==Z))),G&&(this._maskService.leadZeroDateTime=G.currentValue),ie&&(this._maskService.triggerOnMaskChange=ie.currentValue),this._applyMask()}validate({value:e}){if(!this._maskService.validation||!this._maskValue)return null;if(this._maskService.ipError)return this._createValidationError(e);if(this._maskService.cpfCnpjError)return this._createValidationError(e);if(this._maskValue.startsWith("separator")||XA.includes(this._maskValue)||this._maskService.clearIfNotMatch)return null;if(JA.includes(this._maskValue))return this._validateTime(e);if(e&&e.toString().length>=1){let r=0;for(const i in this._maskService.maskAvailablePatterns)if(this._maskService.maskAvailablePatterns[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)&&e.toString().length>=this._maskValue.indexOf(i)||r===this._maskValue.length))return null;if(1===this._maskValue.indexOf("{")&&e.toString().length===this._maskValue.length+Number(this._maskValue.split("{")[1].split("}")[0])-4||1===this._maskValue.indexOf("*")||1===this._maskValue.indexOf("?"))return null;if(this._maskValue.indexOf("*")>1&&e.toString().length<this._maskValue.indexOf("*")||this._maskValue.indexOf("?")>1&&e.toString().length<this._maskValue.indexOf("?")||1===this._maskValue.indexOf("{"))return this._createValidationError(e);if(-1===this._maskValue.indexOf("*")||-1===this._maskValue.indexOf("?")){const i=this._maskService.dropSpecialCharacters?this._maskValue.length-this._maskService.checkSpecialCharAmount(this._maskValue)-r:this._maskValue.length-r;if(e.toString().length<i)return this._createValidationError(e)}}return e&&this.maskFilled.emit(),null}onPaste(){this._justPasted=!0}onModelChange(e){(""===e||null==e)&&this._maskService.actualValue&&(this._maskService.actualValue=this._maskService.getActualValue(""))}onInput(e){const r=e.target;if(this._inputValue=r.value,this._setMask(),!this._maskValue)return void this.onChange(r.value);const i=1===r.selectionStart?r.selectionStart+this._maskService.prefix.length:r.selectionStart;let o=0,s=!1;if(this._maskService.applyValueChanges(i,this._justPasted,"Backspace"===this._code||"Delete"===this._code,(l,c)=>{this._justPasted=!1,o=l,s=c}),this._getActiveElement()!==r)return;this._position=1===this._position&&1===this._inputValue.length?null:this._position;let a=this._position?this._inputValue.length+i+o:i+("Backspace"!==this._code||s?o:0);a>this._getActualInputLength()&&(a=this._getActualInputLength()),a<0&&(a=0),r.setSelectionRange(a,a),this._position=null}onBlur(){this._maskValue&&this._maskService.clearIfNotMatchFn(),this.onTouch()}onClick(e){if(!this._maskValue)return;const r=e.target;null!==r&&null!==r.selectionStart&&r.selectionStart===r.selectionEnd&&r.selectionStart>this._maskService.prefix.length&&38!==e.keyCode&&this._maskService.showMaskTyped&&(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.value&&r.value!==this._maskService.prefix?r.value:this._maskService.prefix+this._maskService.maskIsShown;r.value!==s&&(r.value=s),(r.selectionStart||r.selectionEnd)<=this._maskService.prefix.length?r.selectionStart=this._maskService.prefix.length:r.selectionEnd>this._getActualInputLength()&&(r.selectionEnd=this._getActualInputLength())}onKeyDown(e){var r;if(!this._maskValue)return;this._code=e.code?e.code:e.key;const i=e.target;if(this._inputValue=i.value,this._setMask(),38===e.keyCode&&e.preventDefault(),37===e.keyCode||8===e.keyCode||46===e.keyCode){if(8===e.keyCode&&0===i.value.length&&(i.selectionStart=i.selectionEnd),8===e.keyCode&&0!==i.selectionStart)if(this.specialCharacters=(null===(r=this.specialCharacters)||void 0===r?void 0:r.length)?this.specialCharacters:this._config.specialCharacters,this.prefix.length>1&&i.selectionStart<=this.prefix.length)i.setSelectionRange(this.prefix.length,i.selectionEnd);else if(this._inputValue.length!==i.selectionStart&&1!==i.selectionStart)for(;this.specialCharacters.includes(this._inputValue[i.selectionStart-1].toString())&&(this.prefix.length>=1&&i.selectionStart>this.prefix.length||0===this.prefix.length);)i.setSelectionRange(i.selectionStart-1,i.selectionEnd);this.checkSelectionOnDeletion(i),this._maskService.prefix.length&&i.selectionStart<=this._maskService.prefix.length&&i.selectionEnd<=this._maskService.prefix.length&&e.preventDefault();const o=i.selectionStart;8===e.keyCode&&!i.readOnly&&0===o&&i.selectionEnd===i.value.length&&0!==i.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<i.selectionStart?i.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length):(65===e.keyCode&&e.ctrlKey||65===e.keyCode&&e.metaKey)&&(i.setSelectionRange(0,this._getActualInputLength()),e.preventDefault()),this._maskService.selStart=i.selectionStart,this._maskService.selEnd=i.selectionEnd}writeValue(e){return Tl(this,void 0,void 0,function*(){"object"==typeof e&&null!==e&&"value"in e&&("disable"in e&&this.setDisabledState(Boolean(e.disable)),e=e.value),("number"==typeof e||this._maskValue.startsWith("separator"))&&(e=this._maskService.numberToString(e),Array.isArray(this.decimalMarker)||(e="."!==this.decimalMarker?e.replace(".",this.decimalMarker):e),this._maskService.isNumberValue=!0),"string"!=typeof e&&(e=""),this._inputValue=e,this._setMask(),e&&this._maskService.maskExpression||this._maskService.maskExpression&&(this._maskService.prefix||this._maskService.showMaskTyped)?(this._maskService.writingValue=!0,this._maskService.formElementProperty=["value",this._maskService.applyMask(e,this._maskService.maskExpression)],this._maskService.writingValue=!1):this._maskService.formElementProperty=["value",e],this._inputValue=e})}registerOnChange(e){this.onChange=e,this._maskService.onChange=this.onChange}registerOnTouched(e){this.onTouch=e}_getActiveElement(e=this.document){var r;const i=null===(r=null==e?void 0:e.activeElement)||void 0===r?void 0:r.shadowRoot;return(null==i?void 0:i.activeElement)?this._getActiveElement(i):e.activeElement}checkSelectionOnDeletion(e){e.selectionStart=Math.min(Math.max(this.prefix.length,e.selectionStart),this._inputValue.length-this.suffix.length),e.selectionEnd=Math.min(Math.max(this.prefix.length,e.selectionEnd),this._inputValue.length-this.suffix.length)}setDisabledState(e){this._maskService.formElementProperty=["disabled",e]}_repeatPatternSymbols(e){return e.match(/{[0-9]+}/)&&e.split("").reduce((r,i,o)=>{if(this._start="{"===i?o:this._start,"}"!==i)return this._maskService._findSpecialChar(i)?r+i:r;this._end=o;const s=Number(e.slice(this._start+1,this._end));return r+new Array(s+1).join(e[this._start-1])},"")||e}_applyMask(){this._maskService.maskExpression=this._repeatPatternSymbols(this._maskValue||""),this._maskService.formElementProperty=["value",this._maskService.applyMask(this._inputValue,this._maskService.maskExpression)]}_validateTime(e){const r=this._maskValue.split("").filter(i=>":"!==i).length;return e&&(0==+e[e.length-1]&&e.length<r||e.length<=r-2)?this._createValidationError(e):null}_getActualInputLength(){return this._maskService.actualValue.length||this._maskService.actualValue.length+this._maskService.prefix.length}_createValidationError(e){return{mask:{requiredMask:this._maskValue,actualValue:e}}}_setMask(){this._maskExpressionArray.length>0&&this._maskExpressionArray.some(e=>{var r,i;const o=(null===(r=this._maskService.removeMask(this._inputValue))||void 0===r?void 0:r.length)<=(null===(i=this._maskService.removeMask(e))||void 0===i?void 0:i.length);if(this._inputValue&&o)return this._maskValue=e,this.maskExpression=e,this._maskService.maskExpression=e,o;this._maskValue=this._maskExpressionArray[this._maskExpressionArray.length-1],this.maskExpression=this._maskExpressionArray[this._maskExpressionArray.length-1],this._maskService.maskExpression=this._maskExpressionArray[this._maskExpressionArray.length-1]})}}return n.\u0275fac=function(e){return new(e||n)(I(Vt),I(bw),I(wu))},n.\u0275dir=fe({type:n,selectors:[["input","mask",""],["textarea","mask",""]],hostBindings:function(e,r){1&e&&ke("paste",function(){return r.onPaste()})("ngModelChange",function(o){return r.onModelChange(o)})("input",function(o){return r.onInput(o)})("blur",function(){return r.onBlur()})("click",function(o){return r.onClick(o)})("keydown",function(o){return r.onKeyDown(o)})},inputs:{maskExpression:["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",triggerOnMaskChange:"triggerOnMaskChange"},outputs:{maskFilled:"maskFilled"},exportAs:["mask","ngxMask"],features:[nt([{provide:Zn,useExisting:We(()=>n),multi:!0},{provide:dn,useExisting:We(()=>n),multi:!0},bw]),Lr]}),n})();function tx(n,t){return Object.assign(Object.assign({},n),t instanceof Function?t():t)}let dm=(()=>{class n{static forRoot(e){return{ngModule:n,providers:[{provide:vw,useValue:e},{provide:ww,useValue:YA},{provide:wu,useFactory:tx,deps:[ww,vw]},Cw]}}static forChild(){return{ngModule:n}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({}),n})();const Dw="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};Dw.KeyboardEvent||(Dw.KeyboardEvent=function(n,t){});const Ew=["toast-component",""];function nx(n,t){if(1&n){const e=Sn();j(0,"button",5),ke("click",function(){return Wt(e),ne().remove()}),j(1,"span",6),pe(2,"\xd7"),z()()}}function rx(n,t){if(1&n&&(Zt(0),pe(1),Qt()),2&n){const e=ne(2);O(1),_n("[",e.duplicatesCount+1,"]")}}function ix(n,t){if(1&n&&(j(0,"div"),pe(1),J(2,rx,2,1,"ng-container",4),z()),2&n){const e=ne();ui(e.options.titleClass),yn("aria-label",e.title),O(1),_n(" ",e.title," "),O(1),R("ngIf",e.duplicatesCount)}}function ox(n,t){if(1&n&&je(0,"div",7),2&n){const e=ne();ui(e.options.messageClass),R("innerHTML",e.message,Lh)}}function sx(n,t){if(1&n&&(j(0,"div",8),pe(1),z()),2&n){const e=ne();ui(e.options.messageClass),yn("aria-label",e.message),O(1),_n(" ",e.message," ")}}function ax(n,t){if(1&n&&(j(0,"div"),je(1,"div",9),z()),2&n){const e=ne();O(1),gs("width",e.width+"%")}}function lx(n,t){if(1&n){const e=Sn();j(0,"button",5),ke("click",function(){return Wt(e),ne().remove()}),j(1,"span",6),pe(2,"\xd7"),z()()}}function cx(n,t){if(1&n&&(Zt(0),pe(1),Qt()),2&n){const e=ne(2);O(1),_n("[",e.duplicatesCount+1,"]")}}function ux(n,t){if(1&n&&(j(0,"div"),pe(1),J(2,cx,2,1,"ng-container",4),z()),2&n){const e=ne();ui(e.options.titleClass),yn("aria-label",e.title),O(1),_n(" ",e.title," "),O(1),R("ngIf",e.duplicatesCount)}}function dx(n,t){if(1&n&&je(0,"div",7),2&n){const e=ne();ui(e.options.messageClass),R("innerHTML",e.message,Lh)}}function hx(n,t){if(1&n&&(j(0,"div",8),pe(1),z()),2&n){const e=ne();ui(e.options.messageClass),yn("aria-label",e.message),O(1),_n(" ",e.message," ")}}function fx(n,t){if(1&n&&(j(0,"div"),je(1,"div",9),z()),2&n){const e=ne();O(1),gs("width",e.width+"%")}}class px{constructor(t,e){this.component=t,this.injector=e}attach(t,e){return this._attachedHost=t,t.attach(this,e)}detach(){const t=this._attachedHost;if(t)return this._attachedHost=void 0,t.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class Cu{constructor(t,e,r,i,o,s){this.toastId=t,this.config=e,this.message=r,this.title=i,this.toastType=o,this.toastRef=s,this._onTap=new Rt,this._onAction=new Rt,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(t){this._onAction.next(t)}onAction(){return this._onAction.asObservable()}}const Mw={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",payload:null},Sw=new ae("ToastConfig");class gx{constructor(t){this._overlayRef=t,this.duplicatesCount=0,this._afterClosed=new Rt,this._activate=new Rt,this._manualClose=new Rt,this._resetTimeout=new Rt,this._countDuplicate=new Rt}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(t,e){t&&this._resetTimeout.next(),e&&this._countDuplicate.next(++this.duplicatesCount)}}class yx{constructor(t,e){this._toastPackage=t,this._parentInjector=e}get(t,e,r){return t===Cu?this._toastPackage:this._parentInjector.get(t,e,r)}}class _x extends class mx{attach(t,e){return this._attachedPortal=t,this.attachComponentPortal(t,e)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(t){this._disposeFn=t}}{constructor(t,e,r){super(),this._hostDomElement=t,this._componentFactoryResolver=e,this._appRef=r}attachComponentPortal(t,e){const r=this._componentFactoryResolver.resolveComponentFactory(t.component);let i;return i=r.create(t.injector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()}),e?this._hostDomElement.insertBefore(this._getComponentRootNode(i),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(i)),i}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}class vx{constructor(t){this._portalHost=t}attach(t,e=!0){return this._portalHost.attach(t,e)}detach(){return this._portalHost.detach()}}let wx=(()=>{class n{constructor(e){this._document=e}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e=this._document.createElement("div");e.classList.add("overlay-container"),e.setAttribute("aria-live","polite"),this._document.body.appendChild(e),this._containerElement=e}}return n.\u0275fac=function(e){return new(e||n)(U(Vt))},n.\u0275prov=oe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Cx=(()=>{class n{constructor(e,r,i,o){this._overlayContainer=e,this._componentFactoryResolver=r,this._appRef=i,this._document=o,this._paneElements=new Map}create(e,r){return this._createOverlayRef(this.getPaneElement(e,r))}getPaneElement(e="",r){return this._paneElements.get(r)||this._paneElements.set(r,{}),this._paneElements.get(r)[e]||(this._paneElements.get(r)[e]=this._createPaneElement(e,r)),this._paneElements.get(r)[e]}_createPaneElement(e,r){const i=this._document.createElement("div");return i.id="toast-container",i.classList.add(e),i.classList.add("toast-container"),r?r.getContainerElement().appendChild(i):this._overlayContainer.getContainerElement().appendChild(i),i}_createPortalHost(e){return new _x(e,this._componentFactoryResolver,this._appRef)}_createOverlayRef(e){return new vx(this._createPortalHost(e))}}return n.\u0275fac=function(e){return new(e||n)(U(wx),U(so),U(Va),U(Vt))},n.\u0275prov=oe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),bu=(()=>{class n{constructor(e,r,i,o,s){this.overlay=r,this._injector=i,this.sanitizer=o,this.ngZone=s,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},e.default),e.config),e.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},e.default.iconClasses),e.config.iconClasses))}show(e,r,i={},o=""){return this._preBuildNotification(o,e,r,this.applyConfig(i))}success(e,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",e,r,this.applyConfig(i))}error(e,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",e,r,this.applyConfig(i))}info(e,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",e,r,this.applyConfig(i))}warning(e,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",e,r,this.applyConfig(i))}clear(e){for(const r of this.toasts)if(void 0!==e){if(r.toastId===e)return void r.toastRef.manualClose()}else r.toastRef.manualClose()}remove(e){const r=this._findToast(e);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(e="",r="",i,o){const{includeTitleDuplicates:s}=this.toastrConfig;for(const a of this.toasts){const l=s&&a.title===e;if((!s||l)&&a.message===r)return a.toastRef.onDuplicate(i,o),a}return null}applyConfig(e={}){return Object.assign(Object.assign({},this.toastrConfig),e)}_findToast(e){for(let r=0;r<this.toasts.length;r++)if(this.toasts[r].toastId===e)return{index:r,activeToast:this.toasts[r]};return null}_preBuildNotification(e,r,i,o){return o.onActivateTick?this.ngZone.run(()=>this._buildNotification(e,r,i,o)):this._buildNotification(e,r,i,o)}_buildNotification(e,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 a=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(a=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const l=this.overlay.create(o.positionClass,this.overlayContainer);this.index=this.index+1;let c=r;r&&o.enableHtml&&(c=this.sanitizer.sanitize(tt.HTML,r));const u=new gx(l),d=new Cu(this.index,o,c,i,e,u),f=new yx(d,this._injector),p=new px(o.toastComponent,f),y=l.attach(p,this.toastrConfig.newestOnTop);u.componentInstance=y.instance;const w={toastId:this.index,title:i||"",message:r||"",toastRef:u,onShown:u.afterActivate(),onHidden:u.afterClosed(),onTap:d.onTap(),onAction:d.onAction(),portal:y};return a||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{w.toastRef.activate()})),this.toasts.push(w),w}}return n.\u0275fac=function(e){return new(e||n)(U(Sw),U(Cx),U(mt),U($v),U(Jt))},n.\u0275prov=oe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),bx=(()=>{class n{constructor(e,r,i){this.toastrService=e,this.toastPackage=r,this.ngZone=i,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},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})}get displayStyle(){if("inactive"===this.state.value)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state=Object.assign(Object.assign({},this.state),{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 e=(new Date).getTime();this.width=(this.hideTime-e)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=Object.assign(Object.assign({},this.state),{value:"active"}),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=Object.assign(Object.assign({},this.state),{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&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=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=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(e,r){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(e),r)):this.timeout=setTimeout(()=>e(),r)}outsideInterval(e,r){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(e),r)):this.intervalId=setInterval(()=>e(),r)}runInsideAngular(e){this.ngZone?this.ngZone.run(()=>e()):e()}}return n.\u0275fac=function(e){return new(e||n)(I(bu),I(Cu),I(Jt))},n.\u0275cmp=Et({type:n,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(e,r){1&e&&ke("click",function(){return r.tapToast()})("mouseenter",function(){return r.stickAround()})("mouseleave",function(){return r.delayedHideToast()}),2&e&&(Cc("@flyInOut",r.state),ui(r.toastClasses),gs("display",r.displayStyle))},attrs:Ew,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(e,r){1&e&&(J(0,nx,3,0,"button",0),J(1,ix,3,5,"div",1),J(2,ox,1,3,"div",2),J(3,sx,2,4,"div",3),J(4,ax,2,2,"div",4)),2&e&&(R("ngIf",r.options.closeButton),O(1),R("ngIf",r.title),O(1),R("ngIf",r.message&&r.options.enableHtml),O(1),R("ngIf",r.message&&!r.options.enableHtml),O(1),R("ngIf",r.options.progressBar))},directives:[Kn],encapsulation:2,data:{animation:[Ms("flyInOut",[Za("inactive",At({opacity:0})),Za("active",At({opacity:1})),Za("removed",At({opacity:0})),Pr("inactive => active",Ir("{{ easeTime }}ms {{ easing }}")),Pr("active => removed",Ir("{{ easeTime }}ms {{ easing }}"))])]}}),n})();const Dx=Object.assign(Object.assign({},Mw),{toastComponent:bx});let Ex=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[{provide:Sw,useValue:{default:Dx,config:e}}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({imports:[[Gc]]}),n})(),Mx=(()=>{class n{constructor(e,r,i){this.toastrService=e,this.toastPackage=r,this.appRef=i,this.width=-1,this.toastClasses="",this.state="inactive",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})}get displayStyle(){if("inactive"===this.state)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state="active",!(!0===this.options.disableTimeOut||"timeOut"===this.options.disableTimeOut)&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const e=(new Date).getTime();this.width=(this.hideTime-e)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state="active",this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=(new Date).getTime()+(this.originalTimeout||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){"removed"!==this.state&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){"removed"!==this.state&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}}return n.\u0275fac=function(e){return new(e||n)(I(bu),I(Cu),I(Va))},n.\u0275cmp=Et({type:n,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(e,r){1&e&&ke("click",function(){return r.tapToast()})("mouseenter",function(){return r.stickAround()})("mouseleave",function(){return r.delayedHideToast()}),2&e&&(ui(r.toastClasses),gs("display",r.displayStyle))},attrs:Ew,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(e,r){1&e&&(J(0,lx,3,0,"button",0),J(1,ux,3,5,"div",1),J(2,dx,1,3,"div",2),J(3,hx,2,4,"div",3),J(4,fx,2,2,"div",4)),2&e&&(R("ngIf",r.options.closeButton),O(1),R("ngIf",r.title),O(1),R("ngIf",r.message&&r.options.enableHtml),O(1),R("ngIf",r.message&&!r.options.enableHtml),O(1),R("ngIf",r.options.progressBar))},directives:[Kn],encapsulation:2}),n})();Object.assign(Object.assign({},Mw),{toastComponent:Mx}),function(n){function t(c){for(var u,d,f=c[0],p=c[1],y=0,w=[];y<f.length;y++)d=f[y],Object.prototype.hasOwnProperty.call(r,d)&&r[d]&&w.push(r[d][0]),r[d]=0;for(u in p)Object.prototype.hasOwnProperty.call(p,u)&&(n[u]=p[u]);for(l&&l(c);w.length;)w.shift()()}var e={},r={0:0};function i(c){if(e[c])return e[c].exports;var u=e[c]={i:c,l:!1,exports:{}};return n[c].call(u.exports,u,u.exports,i),u.l=!0,u.exports}i.e=function(){return Promise.resolve()},i.m=n,i.c=e,i.d=function(c,u,d){i.o(c,u)||Object.defineProperty(c,u,{enumerable:!0,get:d})},i.r=function(c){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},i.t=function(c,u){if(1&u&&(c=i(c)),8&u||4&u&&"object"==typeof c&&c&&c.__esModule)return c;var d=Object.create(null);if(i.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:c}),2&u&&"string"!=typeof c)for(var f in c)i.d(d,f,function(p){return c[p]}.bind(null,f));return d},i.n=function(c){var u=c&&c.__esModule?function(){return c.default}:function(){return c};return i.d(u,"a",u),u},i.o=function(c,u){return Object.prototype.hasOwnProperty.call(c,u)},i.p="",i.oe=function(c){throw console.error(c),c};var o=window.webpackJsonp=window.webpackJsonp||[],s=o.push.bind(o);o.push=t,o=o.slice();for(var a=0;a<o.length;a++)t(o[a]);var l=s;i(i.s=103)}({103:function(n,t,e){e.r(t),function(r){var i=e(14);function o(y,w,b,S,E,F,G){try{var ie=y[F](G),Z=ie.value}catch(Q){return void b(Q)}ie.done?w(Z):Promise.resolve(Z).then(S,E)}function s(y){return function(){var w=this,b=arguments;return new Promise(function(S,E){var F=y.apply(w,b);function G(Z){o(F,S,E,G,ie,"next",Z)}function ie(Z){o(F,S,E,G,ie,"throw",Z)}G(void 0)})}}function a(y,w,b){return w in y?Object.defineProperty(y,w,{value:b,enumerable:!0,configurable:!0,writable:!0}):y[w]=b,y}function l(y,w){return b=y,(S=u(y,w,"get")).get?S.get.call(b):S.value;var b,S}function u(y,w,b){if(!w.has(y))throw new TypeError("attempted to "+b+" private field on non-instance");return w.get(y)}function d(){var y="https://applepay.cdn-apple.com/jsapi/v1/apple-pay-sdk.js",b=document.createElement("div"),S=y.slice(0,y.lastIndexOf("/"))||"",E=_=>{for(var m in b.setAttribute("data-"+_,""),b.dataset)return delete b.dataset[m],m},F=_=>{b.dataset[_]="";var m=b.attributes[0];return b.removeAttribute(m.name),m.name.slice(5)};function G(_){return S+_.replace(/^\.\//,"/")}function ie(){var _;try{return null===(_=window.ApplePaySession)||void 0===_?void 0:_.canMakePayments()}catch(m){return console.warn(m),!1}}var Z=!1;if("undefined"!=typeof window){var Q={get passive(){Z=!0}};window.addEventListener("testPassive",null,Q),window.removeEventListener("testPassive",null,Q)}var Re="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),He=[],Qe=!1,te=-1,se=void 0,X=void 0,De=void 0,we=function(_){return He.some(function(m){return!(!m.options.allowTouchMove||!m.options.allowTouchMove(_))})},N=function(_){var m=_||window.event;return!!we(m.target)||m.touches.length>1||(m.preventDefault&&m.preventDefault(),!1)},re=new WeakMap;class ee extends HTMLElement{constructor(){super(),re.set(this,{writable:!0,value:void 0}),a(this,"open",!1),a(this,"ready",!1),a(this,"url",me.url),a(this,"theme",me.theme),a(this,"locale",me.locale),this.close=this.close.bind(this)}connectedCallback(){var m=this;return s(function*(){(function c(y,w,b){(function(S,E,F){if(E.set)E.set.call(S,F);else{if(!E.writable)throw new TypeError("attempted to set read only private field");E.value=F}})(y,u(y,w,"set"),b)})(m,re,m.attachShadow({mode:"closed"})),m.update(),l(m,re).addEventListener("click",C=>{C.preventDefault(),C.stopPropagation();var M=C.target.closest('a[href*="'.concat("#apple-pay-close",'"]'));M&&C.currentTarget.contains(M)&&m.close()}),m.addEventListener("click",C=>m.close())})()}show(){(function(_,m){if(_){if(!He.some(function(M){return M.targetElement===_})){var C={targetElement:_,options:{}};He=[].concat(function(M){if(Array.isArray(M)){for(var V=0,H=Array(M.length);V<M.length;V++)H[V]=M[V];return H}return Array.from(M)}(He),[C]),Re?window.requestAnimationFrame(function(){if(void 0===X){X={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left};var M=window,V=M.scrollY,H=M.scrollX,ce=M.innerHeight;document.body.style.position="fixed",document.body.style.top=-V,document.body.style.left=-H,setTimeout(function(){return window.requestAnimationFrame(function(){var ze=ce-window.innerHeight;ze&&V>=ce&&(document.body.style.top=-(V+ze))})},300)}}):function(M){if(void 0===De)window,document;void 0===se&&(se=document.body.style.overflow,document.body.style.overflow="hidden")}(),Re&&(_.ontouchstart=function(M){1===M.targetTouches.length&&(te=M.targetTouches[0].clientY)},_.ontouchmove=function(M){var V,H,ze,ce;1===M.targetTouches.length&&(H=_,ce=(V=M).targetTouches[0].clientY-te,!we(V.target)&&(H&&0===H.scrollTop&&ce>0||(ze=H)&&ze.scrollHeight-ze.scrollTop<=ze.clientHeight&&ce<0?N(V):V.stopPropagation()))},Qe||(document.addEventListener("touchmove",N,Z?{passive:!1}:void 0),Qe=!0))}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")})(this.ownerDocument.body||this.ownerDocument.documentElement),this.setAttribute("open",""),this.open=!0;var m=l(this,re).querySelector("iframe");this.ready||(this.ready=!0,this.accessibilityTranslations(),Promise.race([new Promise(C=>m.onload=C),new Promise((C,M)=>setTimeout(M,10800))]).then(()=>{},()=>(console.error("Modal loading timeout. Check connection or try again later."),this.close())))}close(){var _;(_=this.ownerDocument.body||this.ownerDocument.documentElement)?(He=He.filter(function(m){return m.targetElement!==_}),Re&&(_.ontouchstart=null,_.ontouchmove=null,Qe&&0===He.length&&(document.removeEventListener("touchmove",N,Z?{passive:!1}:void 0),Qe=!1)),Re?function(){if(void 0!==X){var m=-parseInt(document.body.style.top,10),C=-parseInt(document.body.style.left,10);document.body.style.position=X.position,document.body.style.top=X.top,document.body.style.left=X.left,window.scrollTo(C,m),X=void 0}}():(void 0!==De&&(document.body.style.paddingRight=De,De=void 0),void 0!==se&&(document.body.style.overflow=se,se=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices."),this.removeAttribute("open"),this.open=!1}update(){l(this,re).innerHTML='<section class="dialog theme-'.concat(this.theme,'" role="dialog" aria-modal="true"><div class="content"><iframe src="').concat(this.url,'" frameBorder="0" scrolling="no" loading="lazy"></iframe></div><a class="close" data-accessibility="closeButton" href="').concat("#apple-pay-close",'"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M12.12,10l4.07-4.06a1.5,1.5,0,1,0-2.11-2.12L10,7.88,5.94,3.81A1.5,1.5,0,1,0,3.82,5.93L7.88,10,3.81,14.06a1.5,1.5,0,0,0,0,2.12,1.51,1.51,0,0,0,2.13,0L10,12.12l4.06,4.07a1.45,1.45,0,0,0,1.06.44,1.5,1.5,0,0,0,1.06-2.56Z"></path></svg></a></section><style>').concat(":host{font-family:var(--apple-pay-font-family, '-apple-system', 'SF Pro Display', 'SF Pro Icons', 'Helvetica Neue', 'Helvetica', 'Arial', 'sans-serif');position:fixed;overflow:scroll;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;visibility:hidden;background-color:rgba(50,50,50,.58);-ms-flex-pack:center;justify-content:center;padding:2rem 0;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;opacity:0;-webkit-transition:visibility 0s .28s, opacity .28s, z-index 0s .28s;transition:visibility 0s .28s, opacity .28s, z-index 0s .28s;z-index:-1}:host([open]){visibility:visible;opacity:1;-webkit-transition:visibility 0s, opacity .28s, z-index 0s 0s;transition:visibility 0s, opacity .28s, z-index 0s 0s;z-index:1728}.dialog{--apple-pay-modal-padding-top:22px;--apple-pay-modal-padding-bottom:22px;--apple-pay-modal-padding-inline:22px;border-radius:20px;border:none;background-color:white;padding:0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;position:relative;margin:auto;opacity:0;-webkit-transform:scale(.97) translateZ(0);transform:scale(.97) translateZ(0);-webkit-transition:all .108s .054s;transition:all .108s .054s}:host([open]) .dialog{opacity:1;-webkit-transform:scale(1) translateZ(0);transform:scale(1) translateZ(0)}.dialog.theme-dark{background-color:#000}@media (prefers-color-scheme: dark){.dialog.theme-auto{background-color:#000}}.dialog .content{-webkit-margin-start:var(--apple-pay-modal-padding-inline);margin-inline-start:var(--apple-pay-modal-padding-inline);-webkit-margin-end:var(--apple-pay-modal-padding-inline);margin-inline-end:var(--apple-pay-modal-padding-inline);margin-top:var(--apple-pay-modal-padding-top);margin-bottom:var(--apple-pay-modal-padding-bottom);position:relative}.dialog iframe{border:none;width:320px;height:750px}@media (min-width: 376px){.dialog iframe{width:360px;height:720px}}.dialog footer{-webkit-padding-start:var(--apple-pay-modal-padding-inline);padding-inline-start:var(--apple-pay-modal-padding-inline);-webkit-padding-end:var(--apple-pay-modal-padding-inline);padding-inline-end:var(--apple-pay-modal-padding-inline);padding-top:var(--apple-pay-modal-padding-top);padding-bottom:var(--apple-pay-modal-padding-bottom);position:absolute;bottom:0;left:0;right:0}.dialog .close{position:absolute;top:20px;right:20px;width:36px;height:36px;border-radius:36px;display:-ms-flexbox;display:flex;background-color:rgb(232, 232, 237);color:rgba(0, 0, 0, 0.56);-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;outline:none}.dialog .close:hover{background-color:rgb(236, 236, 240);color:rgba(0, 0, 0, 0.72)}.dialog .close svg{fill:currentColor;width:20px;height:20px}.theme-dark.dialog .close{background-color:#333336;color:rgba(255,255,255,0.8)}.theme-dark.dialog .close:hover{background-color:#37373a;color:#fff}@media (prefers-color-scheme: dark){.theme-auto.dialog .close{background-color:#333336;color:rgba(255,255,255,0.8)}.theme-auto.dialog .close:hover{background-color:#37373a;color:#fff}}","</style>"),this.setAttribute("theme",this.theme)}accessibilityTranslations(){var m=this;s(function*(){var C=yield(yield fetch(G("./merchandising-".concat(m.locale.split("-")[1].toLowerCase(),".json")))).json(),M=m.locale.split("-")[0],V=C.accessibility[M],H=/\{\{\s*([^\s]+)\s*\}\}/gi;l(m,re).querySelectorAll("[data-accessibility]").forEach(ce=>{var ze=ce.dataset.accessibility;ce.ariaLabel=V[ze].replaceAll(H,(Ct,Rn,ei)=>Rn),ce.alt=V[ze].replaceAll(H,(Ct,Rn,ei)=>Rn)})})()}static get observedAttributes(){return Ye}attributeChangedCallback(m,C,M){m=E(m),null==M?delete this[m]:this[m]="true"===M||"false"!==M&&(""===M||M),M!==C&&this.update()}}var me={theme:"auto",locale:"en-US",url:""},Ye=Object.keys(me).map(F);Object.assign(ee.prototype,me),customElements.define("apple-pay-merchandising-modal",ee);var Ue=document.createElement("apple-pay-merchandising-modal");document.contains(Ue)||(document.body||document.documentElement).appendChild(Ue);var Ee,xt,yt,Oe=function(_,m,C){if(!m.has(_))throw new TypeError("attempted to set private field on non-instance");return m.set(_,C),C},Me=function(_,m){if(!m.has(_))throw new TypeError("attempted to get private field on non-instance");return m.get(_)},dt={us:{text:{en:{badge:'<a class="info-circle" href="{{ modalUrl }}" style="display:block"><svg width="16" style="display:block" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path d="M29.9475268,59.5867724 C46.1333288,59.5867724 59.534715,46.15661 59.534715,29.9998218 C59.534715,13.8140198 46.1043387,0.412871288 29.9185367,0.412871288 C13.7617248,0.412871288 0.36059406,13.8140198 0.36059406,29.9998218 C0.36059406,46.15661 13.7907743,59.5867724 29.9475268,59.5867724 Z M29.9475268,54.6556041 C16.256299,54.6556041 5.32073466,43.6910496 5.32073466,29.9998218 C5.32073466,16.3085941 16.2273089,5.34403961 29.9185367,5.34403961 C43.6097644,5.34403961 54.5743189,16.3085941 54.6035429,29.9998218 C54.6325367,43.6910496 43.6387545,54.6556041 29.9475268,54.6556041 Z M29.6864971,19.673406 C31.8039624,19.673406 33.4573486,17.9909703 33.4573486,15.873505 C33.4573486,13.7559802 31.8039624,12.073604 29.6864971,12.073604 C27.5979624,12.073604 25.9155862,13.7559802 25.9155862,15.873505 C25.9155862,17.9909703 27.5979624,19.673406 29.6864971,19.673406 Z M24.8713486,45.9535605 L36.6770912,45.9535605 C37.8663981,45.9535605 38.7946159,45.0833585 38.7946159,43.8940991 C38.7946159,42.7628318 37.8663981,41.863604 36.6770912,41.863604 L33.0802991,41.863604 L33.0802991,27.0991486 C33.0802991,25.5327921 32.2970911,24.4885545 30.8177644,24.4885545 L25.3644773,24.4885545 C24.1751703,24.4885545 23.2469525,25.3877228 23.2469525,26.5189901 C23.2469525,27.7082971 24.1751703,28.5784753 25.3644773,28.5784753 L28.4682,28.5784753 L28.4682,41.863604 L24.8713486,41.863604 C23.6820416,41.863604 22.7538238,42.7628318 22.7538238,43.8940991 C22.7538238,45.0833585 23.6820416,45.9535605 24.8713486,45.9535605 Z" transform="translate(2 2)"></path></svg></a>',plain:'Pay in full or use Apple Pay Later to&nbsp;make {{ frequency }}&nbsp;interest\u2011free payments of&nbsp;{{ paymentsAmount }}. <a href="{{ modalUrl }}"><strong>Learn&nbsp;more</strong></a>',price:'Or {{ frequency }}&nbsp;interest\u2011free payments of&nbsp;{{ paymentsAmount }} with Apple Pay Later. <a href="{{ modalUrl }}"><strong>Learn&nbsp;more</strong></a>',checkout:'Pay in full or use Apple Pay Later to&nbsp;make {{ frequency }}&nbsp;interest\u2011free payments of&nbsp;{{ paymentsAmount }}. <a href="{{ modalUrl }}"><strong>Learn&nbsp;more</strong></a>'}},legal:{default:"No fees and no impact to credit fees eligibility.\nPayment options are subject to eligibility checks and approvals at checkout.\nLoans are issued by Apple Financing LLC, NMLS #2154940, and may not be available in all states.\nCA Residents: Loans issued by Apple Financing LLC are made or arranged pursuant to a California Finance Lenders Law license.",learnMore:"Apple Pay Later loans are subject to eligibility checks and approvals, are issued by Apple Financing LLC, NMLS #2154940, and may not be available in all states. CA residents: Loans are made or arranged pursuant to a California Finance Lenders Law license."},nativeContent:{en:{promoText:"Pay in full or use Apple Pay Later to make {frequency} interest\u2011free payments of {paymentsAmount}."}},modal:{en:{"large-title":"Apple Pay Later",intro:"Pay purchases in {{ frequency }} interest-free payments every 2 weeks. Available to use everywhere Apple Pay is accepted.",payments:"Example payments for",amount:"{{ paymentsAmount }} every 2 weeks",frequency:"{{ frequency }} payments",today:'Due Today <span style="float: right;">{{ paymentsAmount }}</span>',"2weeks":'In 2 Weeks <span style="float: right;">{{ paymentsAmount }}</span>',"4weeks":'In 4 Weeks <span style="float: right;">{{ paymentsAmount }}</span>',"6weeks":'In 6 Weeks <span style="float: right;">{{ lastPaymentAmount }}</span>',total:"Total Cost {{ amount }}",interest:"No Interest"}},learnMore:{en:{intro:"Pay 4 interest-free payments, every 2 weeks.",headline1:"Check out with Apple Pay",subheadline1:"Check out with Apple Pay online and select the Pay Later option to review your available payment plan.",headline2:"No Fees or Impact to Credit",subheadline2:"No fees or funny stuff. Checking your eligibility will never impact your credit.",headline3:"Pay 25% today",subheadline3:"Your first payment is due at checkout, the rest every 2 weeks for 6 weeks.",headline4:"Manage in Wallet",subheadline4:"After your purchase, you can relax and manage your remaining payments right in the Wallet app."}},accessibility:{en:{applePayLaterLogo:"Apple Pay Later",applePayIcon:"Apple Pay icon",priceTagIcon:"Price Tag icon",dollarSignIcon:"Dollar Sign icon",walletIcon:"Wallet icon",applePayLaterAppLogo:"Apple Pay Later Icon",closeButton:"Close Button"}},presets:{badge:{logoType:"pay_later",logoStyle:"none",logoAlign:"left"},plain:{logoType:"pay",logoAlign:"right",logoStyle:"black"},checkout:{logoType:"pay",logoAlign:"left",logoStyle:"white"},price:{logoType:"pay",logoAlign:"right",logoStyle:"black"},custom:{logoType:"none",logoAlign:"left",logoStyle:"none"}},currencyCode:"USD",method:{bnpl:{minAmount:50,maxAmount:1e3,frequency:4}}}},Ut={apple_pay_later_logo_black:'<svg xmlns="http://www.w3.org/2000/svg" width="476.234" height="99.409" viewBox="0 0 476.234 99.409" style="enable-background:new 0 0 476.234 99.409" xml:space="preserve"><path d="M105.946 5.505c14.176 0 24.048 9.771 24.048 23.998 0 14.277-10.074 24.1-24.402 24.1H89.896v24.96h-11.34V5.505h27.39zm-16.05 38.579h13.012c9.873 0 15.492-5.315 15.492-14.53 0-9.214-5.619-14.479-15.441-14.479H89.896v29.009zm43.164 19.341c0-9.316 7.139-15.037 19.796-15.746l14.581-.86v-4.101c0-5.924-4-9.468-10.683-9.468-6.329 0-10.278 3.037-11.24 7.797h-10.328c.607-9.62 8.81-16.708 21.973-16.708 12.911 0 21.163 6.835 21.163 17.518v36.706h-10.48v-8.759h-.253c-3.088 5.924-9.821 9.67-16.809 9.67-10.429 0-17.72-6.481-17.72-16.049zm34.377-4.81v-4.202l-13.113.81c-6.531.456-10.227 3.342-10.227 7.898 0 4.657 3.848 7.695 9.721 7.695 7.645 0 13.619-5.265 13.619-12.201zm20.779 39.541v-8.86c.81.202 2.632.202 3.544.202 5.062 0 7.797-2.126 9.467-7.594 0-.102.963-3.24.963-3.291l-19.24-53.312h11.847l13.468 43.339h.202l13.468-43.339h11.543L213.53 81.347c-4.556 12.911-9.821 17.062-20.858 17.062-.912 0-3.647-.101-4.456-.253zm112.339-19.594h-45.363V5.505h11.341V68.74h34.022v9.822zm4.937-15.137c0-9.316 7.139-15.037 19.796-15.746l14.581-.86v-4.101c0-5.924-4-9.468-10.683-9.468-6.329 0-10.278 3.037-11.24 7.797h-10.328c.607-9.62 8.81-16.708 21.973-16.708 12.911 0 21.163 6.835 21.163 17.518v36.706h-10.48v-8.759h-.253c-3.088 5.924-9.821 9.67-16.809 9.67-10.43 0-17.72-6.481-17.72-16.049zm34.377-4.81v-4.202l-13.113.81c-6.531.456-10.227 3.342-10.227 7.898 0 4.657 3.848 7.695 9.721 7.695 7.644 0 13.619-5.265 13.619-12.201zm35.649-45.921V25.3h10.125v8.658h-10.125v29.364c0 4.607 2.024 6.683 6.48 6.683 1.113 0 2.886-.101 3.594-.253v8.657c-1.215.305-3.645.507-6.075.507-10.784 0-14.986-4.101-14.986-14.379V33.959h-7.746v-8.658h7.746V12.694h10.987zm63.409 50.224c-1.519 9.721-10.733 16.657-22.935 16.657-15.645 0-25.111-10.581-25.111-27.391 0-16.707 9.619-27.846 24.656-27.846 14.783 0 23.997 10.43 23.997 26.58v3.747h-37.616v.658c0 9.265 5.568 15.391 14.327 15.391 6.228 0 10.835-3.139 12.303-7.797h10.379zM401.968 47.02h26.631c-.253-8.15-5.417-13.872-13.062-13.872s-13.012 5.823-13.569 13.872zm46.028-21.719h10.43v9.062h.253c1.772-6.227 6.531-9.923 12.81-9.923 1.569 0 2.937.253 3.746.405v10.176c-.86-.354-2.784-.607-4.911-.607-7.037 0-11.391 4.709-11.391 12.252v31.896h-10.937V25.301zm-400.1-6.172c-6.518-.482-12.048 3.641-15.133 3.641-3.13 0-7.956-3.537-13.074-3.44-6.719.098-12.912 3.91-16.377 9.926C-3.667 41.369 1.53 59.32 8.328 69.15c3.325 4.803 7.291 10.216 12.5 10.019 5.014-.197 6.911-3.243 12.972-3.243 6.057 0 7.766 3.243 13.068 3.146 5.397-.1 8.816-4.903 12.117-9.733 3.82-5.575 5.389-10.973 5.482-11.259-.119-.045-10.52-4.036-10.624-16.019-.094-10.018 8.177-14.834 8.553-15.066-4.693-6.914-11.945-7.677-14.5-7.866zm-4.022-6.489C46.642 9.294 48.505 4.634 47.992 0c-3.984.158-8.803 2.654-11.661 5.998-2.559 2.962-4.807 7.706-4.196 12.246 4.441.342 8.973-2.257 11.739-5.604z"/></svg>',apple_pay_later_mark_black:'<svg viewBox="0 0 299 106" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M283.698,0 L14.823,0 C14.257,0 13.69,0 13.125,0.003 C12.648,0.007 12.172,0.012 11.695,0.025 C10.656,0.053 9.608,0.115 8.582,0.299 C7.55304935,0.475289397 6.5561053,0.803896713 5.624,1.274 C3.75016438,2.22707876 2.22707876,3.75016438 1.274,5.624 C0.803057197,6.55646163 0.474412543,7.5541931 0.299,8.584 C0.113,9.611 0.052,10.658 0.024,11.696 C0.011,12.173 0.005,12.649 0,13.126 C0,13.69 0,14.256 0,14.823 L0,91.141 C0,91.708 0,92.273 0,92.84 C0.005,93.316 0.011,93.793 0.024,94.27 C0.052,95.306 0.114,96.354 0.299,97.38 C0.474052532,98.4097641 0.802361489,99.4074997 1.273,100.34 C1.74618424,101.271314 2.36382962,102.121842 3.103,102.86 C3.84090499,103.599466 4.69148278,104.217148 5.623,104.69 C6.57,105.173 7.54,105.48 8.583,105.667 C9.608,105.85 10.656,105.912 11.695,105.94 C12.172,105.951 12.648,105.958 13.125,105.96 C13.69,105.964 14.257,105.964 14.823,105.964 L283.698,105.964 C284.263,105.964 284.83,105.964 285.395,105.96 C285.87205,105.957616 286.349069,105.950949 286.826,105.94 C287.863,105.912 288.911,105.85 289.939,105.667 C290.968174,105.490543 291.96519,105.161238 292.897,104.69 C294.769895,103.735625 296.292625,102.212895 297.247,100.34 C297.73,99.393 298.036,98.423 298.221,97.38 C298.407,96.354 298.467,95.306 298.495,94.27 C298.508,93.793 298.515,93.316 298.517,92.84 C298.521,92.273 298.521,91.708 298.521,91.141 L298.521,14.824 C298.521,14.257 298.521,13.691 298.517,13.125 C298.515064,12.6485989 298.50773,12.172235 298.495,11.696 C298.467,10.658 298.407,9.611 298.221,8.584 C298.046831,7.55401695 297.71848,6.55615176 297.247,5.624 C296.293413,3.75053315 294.770467,2.22758663 292.897,1.274 C291.964782,0.80438048 290.967861,0.476117852 289.939,0.3 C288.911,0.115 287.863,0.054 286.826,0.026 C286.349085,0.0138870152 285.872062,0.00655331365 285.395,0.004 C284.83,0 284.263,0 283.698,0 Z" id="Outline" fill="rgba(255,255,255,.075)"></path><path d="M285.37,3.535 C285.822,3.538 286.275,3.543 286.73,3.555 C287.522,3.577 288.449,3.62 289.313,3.775 C290.063,3.91 290.693,4.115 291.297,4.423 C292.505746,5.03755904 293.487734,6.0205978 294.101,7.23 C294.407,7.83 294.611,8.456 294.746,9.213 C294.9,10.067 294.943,10.996 294.964,11.793 C294.977,12.243 294.983,12.693 294.984,13.153 C294.989,13.71 294.989,14.266 294.989,14.824 L294.989,91.142 C294.989,91.7 294.989,92.256 294.985,92.824 C294.983,93.274 294.977,93.724 294.965,94.174 C294.943,94.97 294.9,95.899 294.744,96.763 C294.630594,97.4502806 294.413097,98.1162614 294.099,98.738 C293.484409,99.9478082 292.501027,100.93084 291.291,101.545 C290.691,101.851 290.063,102.057 289.32,102.19 C288.438,102.347 287.473,102.39 286.746,102.41 C286.289,102.42 285.834,102.427 285.367,102.429 C284.812,102.433 284.254,102.433 283.698,102.433 L14.801,102.433 C14.251,102.433 13.701,102.433 13.141,102.429 C12.6909551,102.427046 12.240937,102.421046 11.791,102.411 C11.047,102.391 10.081,102.347 9.207,102.191 C8.51598039,102.075842 7.84638728,101.85669 7.221,101.541 C6.62111744,101.236271 6.07359362,100.837949 5.599,100.361 C5.12290857,99.8857571 4.72529217,99.3379376 4.421,98.738 C4.10640097,98.1127736 3.88826296,97.4435248 3.774,96.753 C3.619,95.89 3.576,94.965 3.554,94.175 C3.54269765,93.7234137 3.53603063,93.2717232 3.532,92.82 L3.532,91.493 L3.532,14.474 L3.532,13.149 C3.537,12.696 3.542,12.244 3.554,11.792 C3.576,11 3.619,10.075 3.776,9.205 C3.89017322,8.51586104 4.10797216,7.84796678 4.422,7.224 C4.726,6.626 5.122,6.08 5.602,5.602 C6.07772872,5.1254978 6.62583457,4.72724354 7.226,4.422 C7.8498075,4.10823092 8.5172811,3.89012212 9.206,3.775 C10.071,3.62 10.998,3.577 11.792,3.555 C12.244,3.543 12.697,3.538 13.146,3.535 L14.823,3.532 L283.698,3.532 L285.37,3.535 Z" id="Bg" fill="#000"></path><path d="M45.186,35.64 C46.603,33.868 47.566,31.488 47.312,29.055 C45.237,29.159 42.705,30.425 41.239,32.198 C39.923,33.718 38.759,36.198 39.062,38.528 C41.392,38.73 43.718,37.363 45.186,35.641 M47.285,38.983 C43.903,38.781 41.027,40.902 39.412,40.902 C37.796,40.902 35.322,39.084 32.648,39.133 C29.166,39.184 25.935,41.153 24.168,44.283 C20.534,50.547 23.209,59.839 26.743,64.94 C28.46,67.464 30.528,70.243 33.253,70.143 C35.828,70.042 36.837,68.475 39.967,68.475 C43.095,68.475 44.004,70.143 46.73,70.092 C49.557,70.042 51.324,67.567 53.04,65.041 C55.009,62.164 55.815,59.386 55.865,59.233 C55.815,59.183 50.415,57.111 50.365,50.9 C50.314,45.699 54.605,43.225 54.806,43.072 C52.383,39.488 48.597,39.084 47.286,38.982 M76.734,31.944 C84.084,31.944 89.204,37.011 89.204,44.388 C89.204,51.792 83.979,56.885 76.55,56.885 L68.41,56.885 L68.41,69.828 L62.53,69.828 L62.53,31.944 L76.734,31.944 Z M68.41,51.949 L75.157,51.949 C80.277,51.949 83.191,49.193 83.191,44.415 C83.191,39.637 80.277,36.906 75.183,36.906 L68.41,36.906 L68.41,51.95 L68.41,51.949 Z M90.74,61.979 C90.74,57.148 94.442,54.181 101.006,53.813 L108.566,53.367 L108.566,51.241 C108.566,48.169 106.492,46.331 103.027,46.331 C99.745,46.331 97.697,47.906 97.199,50.374 L91.843,50.374 C92.158,45.386 96.411,41.71 103.237,41.71 C109.932,41.71 114.211,45.255 114.211,50.794 L114.211,69.828 L108.776,69.828 L108.776,65.286 L108.646,65.286 C107.044,68.358 103.552,70.301 99.929,70.301 C94.521,70.301 90.74,66.941 90.74,61.979 L90.74,61.979 Z M108.566,59.485 L108.566,57.305 L101.766,57.725 C98.38,57.962 96.463,59.458 96.463,61.821 C96.463,64.236 98.459,65.811 101.504,65.811 C105.468,65.811 108.566,63.081 108.566,59.485 L108.566,59.485 Z M119.342,79.989 L119.342,75.394 C119.761,75.499 120.706,75.499 121.179,75.499 C123.804,75.499 125.222,74.397 126.088,71.561 C126.088,71.509 126.588,69.881 126.588,69.855 L116.611,42.209 L122.754,42.209 L129.738,64.683 L129.842,64.683 L136.827,42.209 L142.812,42.209 L132.468,71.272 C130.106,77.967 127.375,80.12 121.652,80.12 C121.179,80.12 119.761,80.067 119.342,79.989 L119.342,79.989 Z" id="Pay" fill="#fff"></path><path d="M181.896484,70 L181.896484,64.7792969 L164.204102,64.7792969 L164.204102,31.9521484 L158.113281,31.9521484 L158.113281,70 L181.896484,70 Z M194.369219,70.5009766 C198.113359,70.5009766 201.224688,68.734375 202.859453,65.8076172 L203.149492,65.8076172 L203.149492,70 L209.003008,70 L209.003008,50.6201172 C209.003008,44.8193359 204.784258,41.2333984 197.770586,41.2333984 C191.020586,41.2333984 186.696367,44.6347656 186.142656,49.4072266 L186.116289,49.6445312 L191.706133,49.6445312 L191.7325,49.4863281 C192.312578,47.4033203 194.342852,46.0585938 197.533281,46.0585938 C201.171953,46.0585938 203.149492,47.8251953 203.149492,50.8574219 L203.149492,53.1513672 L195.555742,53.5996094 C188.805742,53.9951172 185.008867,56.9746094 185.008867,61.9580078 L185.008867,62.0107422 C185.008867,67.1259766 188.884844,70.5009766 194.369219,70.5009766 Z M196.003984,65.8339844 C192.971758,65.8339844 190.88875,64.3046875 190.88875,61.7998047 L190.88875,61.7470703 C190.88875,59.3212891 192.708086,57.8974609 196.346758,57.6601562 L203.149492,57.2382812 L203.149492,59.5322266 C203.149492,63.1181641 200.090898,65.8339844 196.003984,65.8339844 Z M225.06168,70.3691406 C226.221836,70.3691406 227.302891,70.2373047 228.120273,70.1054688 L228.120273,65.5175781 C227.513828,65.5703125 227.012852,65.6230469 226.248203,65.6230469 C223.637852,65.6230469 222.451328,64.5683594 222.451328,61.6416016 L222.451328,46.4013672 L228.120273,46.4013672 L228.120273,41.7871094 L222.451328,41.7871094 L222.451328,34.5888672 L216.439609,34.5888672 L216.439609,41.7871094 L212.220859,41.7871094 L212.220859,46.4013672 L216.439609,46.4013672 L216.439609,62.5380859 C216.439609,68.0751953 219.102695,70.3691406 225.06168,70.3691406 Z M244.23168,70.5537109 C251.377187,70.5537109 255.464102,66.3876953 256.386953,62.3007812 L256.439687,62.0634766 L250.823477,62.0634766 L250.744375,62.2480469 C250.058828,64.0146484 247.870352,65.78125 244.363516,65.78125 C239.801992,65.78125 236.901602,62.6962891 236.796133,57.3964844 L256.729727,57.3964844 L256.729727,55.3925781 C256.729727,46.9023438 251.851797,41.2333984 243.941641,41.2333984 C236.005117,41.2333984 230.889883,47.1132812 230.889883,55.9462891 L230.889883,55.9726562 C230.889883,64.9111328 235.926016,70.5537109 244.23168,70.5537109 Z M250.928945,53.2568359 L236.875234,53.2568359 C237.376211,48.5371094 240.223867,46.0058594 243.968008,46.0058594 C247.738516,46.0058594 250.480703,48.3789062 250.928945,53.2568359 Z M267.093086,70 L267.093086,53.2568359 C267.093086,49.1171875 269.703438,46.5859375 273.71125,46.5859375 C274.818672,46.5859375 275.820625,46.7177734 276.585273,46.9023438 L276.585273,41.4970703 C276.05793,41.3916016 275.187813,41.2597656 274.317695,41.2597656 C270.810859,41.2597656 268.332344,43.1582031 267.356758,46.3222656 L267.093086,46.3222656 L267.093086,41.7871094 L261.186836,41.7871094 L261.186836,70 L267.093086,70 Z" id="Later" fill="#fff"></path></svg>',apple_pay_later_mark_none:'<svg viewBox="20 0 260 106" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M45.186,35.64 C46.603,33.868 47.566,31.488 47.312,29.055 C45.237,29.159 42.705,30.425 41.239,32.198 C39.923,33.718 38.759,36.198 39.062,38.528 C41.392,38.73 43.718,37.363 45.186,35.641 M47.285,38.983 C43.903,38.781 41.027,40.902 39.412,40.902 C37.796,40.902 35.322,39.084 32.648,39.133 C29.166,39.184 25.935,41.153 24.168,44.283 C20.534,50.547 23.209,59.839 26.743,64.94 C28.46,67.464 30.528,70.243 33.253,70.143 C35.828,70.042 36.837,68.475 39.967,68.475 C43.095,68.475 44.004,70.143 46.73,70.092 C49.557,70.042 51.324,67.567 53.04,65.041 C55.009,62.164 55.815,59.386 55.865,59.233 C55.815,59.183 50.415,57.111 50.365,50.9 C50.314,45.699 54.605,43.225 54.806,43.072 C52.383,39.488 48.597,39.084 47.286,38.982 M76.734,31.944 C84.084,31.944 89.204,37.011 89.204,44.388 C89.204,51.792 83.979,56.885 76.55,56.885 L68.41,56.885 L68.41,69.828 L62.53,69.828 L62.53,31.944 L76.734,31.944 Z M68.41,51.949 L75.157,51.949 C80.277,51.949 83.191,49.193 83.191,44.415 C83.191,39.637 80.277,36.906 75.183,36.906 L68.41,36.906 L68.41,51.95 L68.41,51.949 Z M90.74,61.979 C90.74,57.148 94.442,54.181 101.006,53.813 L108.566,53.367 L108.566,51.241 C108.566,48.169 106.492,46.331 103.027,46.331 C99.745,46.331 97.697,47.906 97.199,50.374 L91.843,50.374 C92.158,45.386 96.411,41.71 103.237,41.71 C109.932,41.71 114.211,45.255 114.211,50.794 L114.211,69.828 L108.776,69.828 L108.776,65.286 L108.646,65.286 C107.044,68.358 103.552,70.301 99.929,70.301 C94.521,70.301 90.74,66.941 90.74,61.979 L90.74,61.979 Z M108.566,59.485 L108.566,57.305 L101.766,57.725 C98.38,57.962 96.463,59.458 96.463,61.821 C96.463,64.236 98.459,65.811 101.504,65.811 C105.468,65.811 108.566,63.081 108.566,59.485 L108.566,59.485 Z M119.342,79.989 L119.342,75.394 C119.761,75.499 120.706,75.499 121.179,75.499 C123.804,75.499 125.222,74.397 126.088,71.561 C126.088,71.509 126.588,69.881 126.588,69.855 L116.611,42.209 L122.754,42.209 L129.738,64.683 L129.842,64.683 L136.827,42.209 L142.812,42.209 L132.468,71.272 C130.106,77.967 127.375,80.12 121.652,80.12 C121.179,80.12 119.761,80.067 119.342,79.989 L119.342,79.989 Z" id="Pay"></path><path d="M181.896484,70 L181.896484,64.7792969 L164.204102,64.7792969 L164.204102,31.9521484 L158.113281,31.9521484 L158.113281,70 L181.896484,70 Z M194.369219,70.5009766 C198.113359,70.5009766 201.224688,68.734375 202.859453,65.8076172 L203.149492,65.8076172 L203.149492,70 L209.003008,70 L209.003008,50.6201172 C209.003008,44.8193359 204.784258,41.2333984 197.770586,41.2333984 C191.020586,41.2333984 186.696367,44.6347656 186.142656,49.4072266 L186.116289,49.6445312 L191.706133,49.6445312 L191.7325,49.4863281 C192.312578,47.4033203 194.342852,46.0585938 197.533281,46.0585938 C201.171953,46.0585938 203.149492,47.8251953 203.149492,50.8574219 L203.149492,53.1513672 L195.555742,53.5996094 C188.805742,53.9951172 185.008867,56.9746094 185.008867,61.9580078 L185.008867,62.0107422 C185.008867,67.1259766 188.884844,70.5009766 194.369219,70.5009766 Z M196.003984,65.8339844 C192.971758,65.8339844 190.88875,64.3046875 190.88875,61.7998047 L190.88875,61.7470703 C190.88875,59.3212891 192.708086,57.8974609 196.346758,57.6601562 L203.149492,57.2382812 L203.149492,59.5322266 C203.149492,63.1181641 200.090898,65.8339844 196.003984,65.8339844 Z M225.06168,70.3691406 C226.221836,70.3691406 227.302891,70.2373047 228.120273,70.1054688 L228.120273,65.5175781 C227.513828,65.5703125 227.012852,65.6230469 226.248203,65.6230469 C223.637852,65.6230469 222.451328,64.5683594 222.451328,61.6416016 L222.451328,46.4013672 L228.120273,46.4013672 L228.120273,41.7871094 L222.451328,41.7871094 L222.451328,34.5888672 L216.439609,34.5888672 L216.439609,41.7871094 L212.220859,41.7871094 L212.220859,46.4013672 L216.439609,46.4013672 L216.439609,62.5380859 C216.439609,68.0751953 219.102695,70.3691406 225.06168,70.3691406 Z M244.23168,70.5537109 C251.377187,70.5537109 255.464102,66.3876953 256.386953,62.3007812 L256.439687,62.0634766 L250.823477,62.0634766 L250.744375,62.2480469 C250.058828,64.0146484 247.870352,65.78125 244.363516,65.78125 C239.801992,65.78125 236.901602,62.6962891 236.796133,57.3964844 L256.729727,57.3964844 L256.729727,55.3925781 C256.729727,46.9023438 251.851797,41.2333984 243.941641,41.2333984 C236.005117,41.2333984 230.889883,47.1132812 230.889883,55.9462891 L230.889883,55.9726562 C230.889883,64.9111328 235.926016,70.5537109 244.23168,70.5537109 Z M250.928945,53.2568359 L236.875234,53.2568359 C237.376211,48.5371094 240.223867,46.0058594 243.968008,46.0058594 C247.738516,46.0058594 250.480703,48.3789062 250.928945,53.2568359 Z M267.093086,70 L267.093086,53.2568359 C267.093086,49.1171875 269.703438,46.5859375 273.71125,46.5859375 C274.818672,46.5859375 275.820625,46.7177734 276.585273,46.9023438 L276.585273,41.4970703 C276.05793,41.3916016 275.187813,41.2597656 274.317695,41.2597656 C270.810859,41.2597656 268.332344,43.1582031 267.356758,46.3222656 L267.093086,46.3222656 L267.093086,41.7871094 L261.186836,41.7871094 L261.186836,70 L267.093086,70 Z" id="Later"></path></svg>',apple_pay_later_mark_white_outline:'<svg viewBox="0 0 299 106" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M283.698,0 L14.823,0 C14.257,0 13.69,0 13.125,0.003 C12.648,0.007 12.172,0.012 11.695,0.025 C10.656,0.053 9.608,0.115 8.582,0.299 C7.55304935,0.475289397 6.5561053,0.803896713 5.624,1.274 C3.75016438,2.22707876 2.22707876,3.75016438 1.274,5.624 C0.803057197,6.55646163 0.474412543,7.5541931 0.299,8.584 C0.113,9.611 0.052,10.658 0.024,11.696 C0.011,12.173 0.005,12.649 0,13.126 C0,13.69 0,14.256 0,14.823 L0,91.141 C0,91.708 0,92.273 0,92.84 C0.005,93.316 0.011,93.793 0.024,94.27 C0.052,95.306 0.114,96.354 0.299,97.38 C0.474052532,98.4097641 0.802361489,99.4074997 1.273,100.34 C1.74618424,101.271314 2.36382962,102.121842 3.103,102.86 C3.84090499,103.599466 4.69148278,104.217148 5.623,104.69 C6.57,105.173 7.54,105.48 8.583,105.667 C9.608,105.85 10.656,105.912 11.695,105.94 C12.172,105.951 12.648,105.958 13.125,105.96 C13.69,105.964 14.257,105.964 14.823,105.964 L283.698,105.964 C284.263,105.964 284.83,105.964 285.395,105.96 C285.87205,105.957616 286.349069,105.950949 286.826,105.94 C287.863,105.912 288.911,105.85 289.939,105.667 C290.968174,105.490543 291.96519,105.161238 292.897,104.69 C294.769895,103.735625 296.292625,102.212895 297.247,100.34 C297.73,99.393 298.036,98.423 298.221,97.38 C298.407,96.354 298.467,95.306 298.495,94.27 C298.508,93.793 298.515,93.316 298.517,92.84 C298.521,92.273 298.521,91.708 298.521,91.141 L298.521,14.824 C298.521,14.257 298.521,13.691 298.517,13.125 C298.515064,12.6485989 298.50773,12.172235 298.495,11.696 C298.467,10.658 298.407,9.611 298.221,8.584 C298.046831,7.55401695 297.71848,6.55615176 297.247,5.624 C296.293413,3.75053315 294.770467,2.22758663 292.897,1.274 C291.964782,0.80438048 290.967861,0.476117852 289.939,0.3 C288.911,0.115 287.863,0.054 286.826,0.026 C286.349085,0.0138870152 285.872062,0.00655331365 285.395,0.004 C284.83,0 284.263,0 283.698,0 Z" id="Outline" fill="#000000"></path><path d="M285.37,3.535 C285.822,3.538 286.275,3.543 286.73,3.555 C287.522,3.577 288.449,3.62 289.313,3.775 C290.063,3.91 290.693,4.115 291.297,4.423 C292.505746,5.03755904 293.487734,6.0205978 294.101,7.23 C294.407,7.83 294.611,8.456 294.746,9.213 C294.9,10.067 294.943,10.996 294.964,11.793 C294.977,12.243 294.983,12.693 294.984,13.153 C294.989,13.71 294.989,14.266 294.989,14.824 L294.989,91.142 C294.989,91.7 294.989,92.256 294.985,92.824 C294.983,93.274 294.977,93.724 294.965,94.174 C294.943,94.97 294.9,95.899 294.744,96.763 C294.630594,97.4502806 294.413097,98.1162614 294.099,98.738 C293.484409,99.9478082 292.501027,100.93084 291.291,101.545 C290.691,101.851 290.063,102.057 289.32,102.19 C288.438,102.347 287.473,102.39 286.746,102.41 C286.289,102.42 285.834,102.427 285.367,102.429 C284.812,102.433 284.254,102.433 283.698,102.433 L14.801,102.433 C14.251,102.433 13.701,102.433 13.141,102.429 C12.6909551,102.427046 12.240937,102.421046 11.791,102.411 C11.047,102.391 10.081,102.347 9.207,102.191 C8.51598039,102.075842 7.84638728,101.85669 7.221,101.541 C6.62111744,101.236271 6.07359362,100.837949 5.599,100.361 C5.12290857,99.8857571 4.72529217,99.3379376 4.421,98.738 C4.10640097,98.1127736 3.88826296,97.4435248 3.774,96.753 C3.619,95.89 3.576,94.965 3.554,94.175 C3.54269765,93.7234137 3.53603063,93.2717232 3.532,92.82 L3.532,91.493 L3.532,14.474 L3.532,13.149 C3.537,12.696 3.542,12.244 3.554,11.792 C3.576,11 3.619,10.075 3.776,9.205 C3.89017322,8.51586104 4.10797216,7.84796678 4.422,7.224 C4.726,6.626 5.122,6.08 5.602,5.602 C6.07772872,5.1254978 6.62583457,4.72724354 7.226,4.422 C7.8498075,4.10823092 8.5172811,3.89012212 9.206,3.775 C10.071,3.62 10.998,3.577 11.792,3.555 C12.244,3.543 12.697,3.538 13.146,3.535 L14.823,3.532 L283.698,3.532 L285.37,3.535 Z" id="Bg" fill="#FFFFFF"></path><path d="M45.186,35.64 C46.603,33.868 47.566,31.488 47.312,29.055 C45.237,29.159 42.705,30.425 41.239,32.198 C39.923,33.718 38.759,36.198 39.062,38.528 C41.392,38.73 43.718,37.363 45.186,35.641 M47.285,38.983 C43.903,38.781 41.027,40.902 39.412,40.902 C37.796,40.902 35.322,39.084 32.648,39.133 C29.166,39.184 25.935,41.153 24.168,44.283 C20.534,50.547 23.209,59.839 26.743,64.94 C28.46,67.464 30.528,70.243 33.253,70.143 C35.828,70.042 36.837,68.475 39.967,68.475 C43.095,68.475 44.004,70.143 46.73,70.092 C49.557,70.042 51.324,67.567 53.04,65.041 C55.009,62.164 55.815,59.386 55.865,59.233 C55.815,59.183 50.415,57.111 50.365,50.9 C50.314,45.699 54.605,43.225 54.806,43.072 C52.383,39.488 48.597,39.084 47.286,38.982 M76.734,31.944 C84.084,31.944 89.204,37.011 89.204,44.388 C89.204,51.792 83.979,56.885 76.55,56.885 L68.41,56.885 L68.41,69.828 L62.53,69.828 L62.53,31.944 L76.734,31.944 Z M68.41,51.949 L75.157,51.949 C80.277,51.949 83.191,49.193 83.191,44.415 C83.191,39.637 80.277,36.906 75.183,36.906 L68.41,36.906 L68.41,51.95 L68.41,51.949 Z M90.74,61.979 C90.74,57.148 94.442,54.181 101.006,53.813 L108.566,53.367 L108.566,51.241 C108.566,48.169 106.492,46.331 103.027,46.331 C99.745,46.331 97.697,47.906 97.199,50.374 L91.843,50.374 C92.158,45.386 96.411,41.71 103.237,41.71 C109.932,41.71 114.211,45.255 114.211,50.794 L114.211,69.828 L108.776,69.828 L108.776,65.286 L108.646,65.286 C107.044,68.358 103.552,70.301 99.929,70.301 C94.521,70.301 90.74,66.941 90.74,61.979 L90.74,61.979 Z M108.566,59.485 L108.566,57.305 L101.766,57.725 C98.38,57.962 96.463,59.458 96.463,61.821 C96.463,64.236 98.459,65.811 101.504,65.811 C105.468,65.811 108.566,63.081 108.566,59.485 L108.566,59.485 Z M119.342,79.989 L119.342,75.394 C119.761,75.499 120.706,75.499 121.179,75.499 C123.804,75.499 125.222,74.397 126.088,71.561 C126.088,71.509 126.588,69.881 126.588,69.855 L116.611,42.209 L122.754,42.209 L129.738,64.683 L129.842,64.683 L136.827,42.209 L142.812,42.209 L132.468,71.272 C130.106,77.967 127.375,80.12 121.652,80.12 C121.179,80.12 119.761,80.067 119.342,79.989 L119.342,79.989 Z" id="Pay" fill="#000000"></path><path d="M181.896484,70 L181.896484,64.7792969 L164.204102,64.7792969 L164.204102,31.9521484 L158.113281,31.9521484 L158.113281,70 L181.896484,70 Z M194.369219,70.5009766 C198.113359,70.5009766 201.224688,68.734375 202.859453,65.8076172 L203.149492,65.8076172 L203.149492,70 L209.003008,70 L209.003008,50.6201172 C209.003008,44.8193359 204.784258,41.2333984 197.770586,41.2333984 C191.020586,41.2333984 186.696367,44.6347656 186.142656,49.4072266 L186.116289,49.6445312 L191.706133,49.6445312 L191.7325,49.4863281 C192.312578,47.4033203 194.342852,46.0585938 197.533281,46.0585938 C201.171953,46.0585938 203.149492,47.8251953 203.149492,50.8574219 L203.149492,53.1513672 L195.555742,53.5996094 C188.805742,53.9951172 185.008867,56.9746094 185.008867,61.9580078 L185.008867,62.0107422 C185.008867,67.1259766 188.884844,70.5009766 194.369219,70.5009766 Z M196.003984,65.8339844 C192.971758,65.8339844 190.88875,64.3046875 190.88875,61.7998047 L190.88875,61.7470703 C190.88875,59.3212891 192.708086,57.8974609 196.346758,57.6601562 L203.149492,57.2382812 L203.149492,59.5322266 C203.149492,63.1181641 200.090898,65.8339844 196.003984,65.8339844 Z M225.06168,70.3691406 C226.221836,70.3691406 227.302891,70.2373047 228.120273,70.1054688 L228.120273,65.5175781 C227.513828,65.5703125 227.012852,65.6230469 226.248203,65.6230469 C223.637852,65.6230469 222.451328,64.5683594 222.451328,61.6416016 L222.451328,46.4013672 L228.120273,46.4013672 L228.120273,41.7871094 L222.451328,41.7871094 L222.451328,34.5888672 L216.439609,34.5888672 L216.439609,41.7871094 L212.220859,41.7871094 L212.220859,46.4013672 L216.439609,46.4013672 L216.439609,62.5380859 C216.439609,68.0751953 219.102695,70.3691406 225.06168,70.3691406 Z M244.23168,70.5537109 C251.377187,70.5537109 255.464102,66.3876953 256.386953,62.3007812 L256.439687,62.0634766 L250.823477,62.0634766 L250.744375,62.2480469 C250.058828,64.0146484 247.870352,65.78125 244.363516,65.78125 C239.801992,65.78125 236.901602,62.6962891 236.796133,57.3964844 L256.729727,57.3964844 L256.729727,55.3925781 C256.729727,46.9023438 251.851797,41.2333984 243.941641,41.2333984 C236.005117,41.2333984 230.889883,47.1132812 230.889883,55.9462891 L230.889883,55.9726562 C230.889883,64.9111328 235.926016,70.5537109 244.23168,70.5537109 Z M250.928945,53.2568359 L236.875234,53.2568359 C237.376211,48.5371094 240.223867,46.0058594 243.968008,46.0058594 C247.738516,46.0058594 250.480703,48.3789062 250.928945,53.2568359 Z M267.093086,70 L267.093086,53.2568359 C267.093086,49.1171875 269.703438,46.5859375 273.71125,46.5859375 C274.818672,46.5859375 275.820625,46.7177734 276.585273,46.9023438 L276.585273,41.4970703 C276.05793,41.3916016 275.187813,41.2597656 274.317695,41.2597656 C270.810859,41.2597656 268.332344,43.1582031 267.356758,46.3222656 L267.093086,46.3222656 L267.093086,41.7871094 L261.186836,41.7871094 L261.186836,70 L267.093086,70 Z" id="Later" fill="#000000"></path></svg>',apple_pay_later_mark_white:'<svg viewBox="0 0 299 106" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M283.698,0 L14.823,0 C14.257,0 13.69,0 13.125,0.003 C12.648,0.007 12.172,0.012 11.695,0.025 C10.656,0.053 9.608,0.115 8.582,0.299 C7.55304935,0.475289397 6.5561053,0.803896713 5.624,1.274 C3.75016438,2.22707876 2.22707876,3.75016438 1.274,5.624 C0.803057197,6.55646163 0.474412543,7.5541931 0.299,8.584 C0.113,9.611 0.052,10.658 0.024,11.696 C0.011,12.173 0.005,12.649 0,13.126 C0,13.69 0,14.256 0,14.823 L0,91.141 C0,91.708 0,92.273 0,92.84 C0.005,93.316 0.011,93.793 0.024,94.27 C0.052,95.306 0.114,96.354 0.299,97.38 C0.474052532,98.4097641 0.802361489,99.4074997 1.273,100.34 C1.74618424,101.271314 2.36382962,102.121842 3.103,102.86 C3.84090499,103.599466 4.69148278,104.217148 5.623,104.69 C6.57,105.173 7.54,105.48 8.583,105.667 C9.608,105.85 10.656,105.912 11.695,105.94 C12.172,105.951 12.648,105.958 13.125,105.96 C13.69,105.964 14.257,105.964 14.823,105.964 L283.698,105.964 C284.263,105.964 284.83,105.964 285.395,105.96 C285.87205,105.957616 286.349069,105.950949 286.826,105.94 C287.863,105.912 288.911,105.85 289.939,105.667 C290.968174,105.490543 291.96519,105.161238 292.897,104.69 C294.769895,103.735625 296.292625,102.212895 297.247,100.34 C297.73,99.393 298.036,98.423 298.221,97.38 C298.407,96.354 298.467,95.306 298.495,94.27 C298.508,93.793 298.515,93.316 298.517,92.84 C298.521,92.273 298.521,91.708 298.521,91.141 L298.521,14.824 C298.521,14.257 298.521,13.691 298.517,13.125 C298.515064,12.6485989 298.50773,12.172235 298.495,11.696 C298.467,10.658 298.407,9.611 298.221,8.584 C298.046831,7.55401695 297.71848,6.55615176 297.247,5.624 C296.293413,3.75053315 294.770467,2.22758663 292.897,1.274 C291.964782,0.80438048 290.967861,0.476117852 289.939,0.3 C288.911,0.115 287.863,0.054 286.826,0.026 C286.349085,0.0138870152 285.872062,0.00655331365 285.395,0.004 C284.83,0 284.263,0 283.698,0 Z" id="Outline" fill="rgba(0,0,0,.075)"></path><path d="M285.37,3.535 C285.822,3.538 286.275,3.543 286.73,3.555 C287.522,3.577 288.449,3.62 289.313,3.775 C290.063,3.91 290.693,4.115 291.297,4.423 C292.505746,5.03755904 293.487734,6.0205978 294.101,7.23 C294.407,7.83 294.611,8.456 294.746,9.213 C294.9,10.067 294.943,10.996 294.964,11.793 C294.977,12.243 294.983,12.693 294.984,13.153 C294.989,13.71 294.989,14.266 294.989,14.824 L294.989,91.142 C294.989,91.7 294.989,92.256 294.985,92.824 C294.983,93.274 294.977,93.724 294.965,94.174 C294.943,94.97 294.9,95.899 294.744,96.763 C294.630594,97.4502806 294.413097,98.1162614 294.099,98.738 C293.484409,99.9478082 292.501027,100.93084 291.291,101.545 C290.691,101.851 290.063,102.057 289.32,102.19 C288.438,102.347 287.473,102.39 286.746,102.41 C286.289,102.42 285.834,102.427 285.367,102.429 C284.812,102.433 284.254,102.433 283.698,102.433 L14.801,102.433 C14.251,102.433 13.701,102.433 13.141,102.429 C12.6909551,102.427046 12.240937,102.421046 11.791,102.411 C11.047,102.391 10.081,102.347 9.207,102.191 C8.51598039,102.075842 7.84638728,101.85669 7.221,101.541 C6.62111744,101.236271 6.07359362,100.837949 5.599,100.361 C5.12290857,99.8857571 4.72529217,99.3379376 4.421,98.738 C4.10640097,98.1127736 3.88826296,97.4435248 3.774,96.753 C3.619,95.89 3.576,94.965 3.554,94.175 C3.54269765,93.7234137 3.53603063,93.2717232 3.532,92.82 L3.532,91.493 L3.532,14.474 L3.532,13.149 C3.537,12.696 3.542,12.244 3.554,11.792 C3.576,11 3.619,10.075 3.776,9.205 C3.89017322,8.51586104 4.10797216,7.84796678 4.422,7.224 C4.726,6.626 5.122,6.08 5.602,5.602 C6.07772872,5.1254978 6.62583457,4.72724354 7.226,4.422 C7.8498075,4.10823092 8.5172811,3.89012212 9.206,3.775 C10.071,3.62 10.998,3.577 11.792,3.555 C12.244,3.543 12.697,3.538 13.146,3.535 L14.823,3.532 L283.698,3.532 L285.37,3.535 Z" id="Bg" fill="#FFFFFF"></path><path d="M45.186,35.64 C46.603,33.868 47.566,31.488 47.312,29.055 C45.237,29.159 42.705,30.425 41.239,32.198 C39.923,33.718 38.759,36.198 39.062,38.528 C41.392,38.73 43.718,37.363 45.186,35.641 M47.285,38.983 C43.903,38.781 41.027,40.902 39.412,40.902 C37.796,40.902 35.322,39.084 32.648,39.133 C29.166,39.184 25.935,41.153 24.168,44.283 C20.534,50.547 23.209,59.839 26.743,64.94 C28.46,67.464 30.528,70.243 33.253,70.143 C35.828,70.042 36.837,68.475 39.967,68.475 C43.095,68.475 44.004,70.143 46.73,70.092 C49.557,70.042 51.324,67.567 53.04,65.041 C55.009,62.164 55.815,59.386 55.865,59.233 C55.815,59.183 50.415,57.111 50.365,50.9 C50.314,45.699 54.605,43.225 54.806,43.072 C52.383,39.488 48.597,39.084 47.286,38.982 M76.734,31.944 C84.084,31.944 89.204,37.011 89.204,44.388 C89.204,51.792 83.979,56.885 76.55,56.885 L68.41,56.885 L68.41,69.828 L62.53,69.828 L62.53,31.944 L76.734,31.944 Z M68.41,51.949 L75.157,51.949 C80.277,51.949 83.191,49.193 83.191,44.415 C83.191,39.637 80.277,36.906 75.183,36.906 L68.41,36.906 L68.41,51.95 L68.41,51.949 Z M90.74,61.979 C90.74,57.148 94.442,54.181 101.006,53.813 L108.566,53.367 L108.566,51.241 C108.566,48.169 106.492,46.331 103.027,46.331 C99.745,46.331 97.697,47.906 97.199,50.374 L91.843,50.374 C92.158,45.386 96.411,41.71 103.237,41.71 C109.932,41.71 114.211,45.255 114.211,50.794 L114.211,69.828 L108.776,69.828 L108.776,65.286 L108.646,65.286 C107.044,68.358 103.552,70.301 99.929,70.301 C94.521,70.301 90.74,66.941 90.74,61.979 L90.74,61.979 Z M108.566,59.485 L108.566,57.305 L101.766,57.725 C98.38,57.962 96.463,59.458 96.463,61.821 C96.463,64.236 98.459,65.811 101.504,65.811 C105.468,65.811 108.566,63.081 108.566,59.485 L108.566,59.485 Z M119.342,79.989 L119.342,75.394 C119.761,75.499 120.706,75.499 121.179,75.499 C123.804,75.499 125.222,74.397 126.088,71.561 C126.088,71.509 126.588,69.881 126.588,69.855 L116.611,42.209 L122.754,42.209 L129.738,64.683 L129.842,64.683 L136.827,42.209 L142.812,42.209 L132.468,71.272 C130.106,77.967 127.375,80.12 121.652,80.12 C121.179,80.12 119.761,80.067 119.342,79.989 L119.342,79.989 Z" id="Pay" fill="#000000"></path><path d="M181.896484,70 L181.896484,64.7792969 L164.204102,64.7792969 L164.204102,31.9521484 L158.113281,31.9521484 L158.113281,70 L181.896484,70 Z M194.369219,70.5009766 C198.113359,70.5009766 201.224688,68.734375 202.859453,65.8076172 L203.149492,65.8076172 L203.149492,70 L209.003008,70 L209.003008,50.6201172 C209.003008,44.8193359 204.784258,41.2333984 197.770586,41.2333984 C191.020586,41.2333984 186.696367,44.6347656 186.142656,49.4072266 L186.116289,49.6445312 L191.706133,49.6445312 L191.7325,49.4863281 C192.312578,47.4033203 194.342852,46.0585938 197.533281,46.0585938 C201.171953,46.0585938 203.149492,47.8251953 203.149492,50.8574219 L203.149492,53.1513672 L195.555742,53.5996094 C188.805742,53.9951172 185.008867,56.9746094 185.008867,61.9580078 L185.008867,62.0107422 C185.008867,67.1259766 188.884844,70.5009766 194.369219,70.5009766 Z M196.003984,65.8339844 C192.971758,65.8339844 190.88875,64.3046875 190.88875,61.7998047 L190.88875,61.7470703 C190.88875,59.3212891 192.708086,57.8974609 196.346758,57.6601562 L203.149492,57.2382812 L203.149492,59.5322266 C203.149492,63.1181641 200.090898,65.8339844 196.003984,65.8339844 Z M225.06168,70.3691406 C226.221836,70.3691406 227.302891,70.2373047 228.120273,70.1054688 L228.120273,65.5175781 C227.513828,65.5703125 227.012852,65.6230469 226.248203,65.6230469 C223.637852,65.6230469 222.451328,64.5683594 222.451328,61.6416016 L222.451328,46.4013672 L228.120273,46.4013672 L228.120273,41.7871094 L222.451328,41.7871094 L222.451328,34.5888672 L216.439609,34.5888672 L216.439609,41.7871094 L212.220859,41.7871094 L212.220859,46.4013672 L216.439609,46.4013672 L216.439609,62.5380859 C216.439609,68.0751953 219.102695,70.3691406 225.06168,70.3691406 Z M244.23168,70.5537109 C251.377187,70.5537109 255.464102,66.3876953 256.386953,62.3007812 L256.439687,62.0634766 L250.823477,62.0634766 L250.744375,62.2480469 C250.058828,64.0146484 247.870352,65.78125 244.363516,65.78125 C239.801992,65.78125 236.901602,62.6962891 236.796133,57.3964844 L256.729727,57.3964844 L256.729727,55.3925781 C256.729727,46.9023438 251.851797,41.2333984 243.941641,41.2333984 C236.005117,41.2333984 230.889883,47.1132812 230.889883,55.9462891 L230.889883,55.9726562 C230.889883,64.9111328 235.926016,70.5537109 244.23168,70.5537109 Z M250.928945,53.2568359 L236.875234,53.2568359 C237.376211,48.5371094 240.223867,46.0058594 243.968008,46.0058594 C247.738516,46.0058594 250.480703,48.3789062 250.928945,53.2568359 Z M267.093086,70 L267.093086,53.2568359 C267.093086,49.1171875 269.703438,46.5859375 273.71125,46.5859375 C274.818672,46.5859375 275.820625,46.7177734 276.585273,46.9023438 L276.585273,41.4970703 C276.05793,41.3916016 275.187813,41.2597656 274.317695,41.2597656 C270.810859,41.2597656 268.332344,43.1582031 267.356758,46.3222656 L267.093086,46.3222656 L267.093086,41.7871094 L261.186836,41.7871094 L261.186836,70 L267.093086,70 Z" id="Later" fill="#000000"></path></svg>',apple_pay_mark_black:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 165.521 105.965"><path fill="rgba(255,255,255,.075)" d="M150.698 0H14.823c-.566 0-1.133 0-1.698.003-.477.004-.953.009-1.43.022-1.039.028-2.087.09-3.113.274a10.51 10.51 0 0 0-2.958.975 9.932 9.932 0 0 0-4.35 4.35 10.463 10.463 0 0 0-.975 2.96C.113 9.611.052 10.658.024 11.696c-.013.477-.019.953-.022 1.43C0 13.69 0 14.256 0 14.823v76.318c0 .567 0 1.132.002 1.699.003.476.009.953.022 1.43.028 1.036.09 2.084.275 3.11a10.46 10.46 0 0 0 .974 2.96 9.897 9.897 0 0 0 1.83 2.52 9.874 9.874 0 0 0 2.52 1.83c.947.483 1.917.79 2.96.977 1.025.183 2.073.245 3.112.273.477.011.953.018 1.43.02.565.004 1.132.004 1.698.004h135.875c.565 0 1.132 0 1.697-.004a79.71 79.71 0 0 0 1.431-.02c1.037-.028 2.085-.09 3.113-.273a10.478 10.478 0 0 0 2.958-.977 9.955 9.955 0 0 0 4.35-4.35c.483-.947.789-1.917.974-2.96.186-1.026.246-2.074.274-3.11.013-.477.02-.954.022-1.43.004-.567.004-1.132.004-1.699V14.824c0-.567 0-1.133-.004-1.699a63.067 63.067 0 0 0-.022-1.429c-.028-1.038-.088-2.085-.274-3.112a10.4 10.4 0 0 0-.974-2.96 9.941 9.941 0 0 0-4.35-4.35A10.52 10.52 0 0 0 156.939.3c-1.028-.185-2.076-.246-3.113-.274a71.413 71.413 0 0 0-1.431-.022C151.83 0 151.263 0 150.698 0z"/><path fill="black" d="m150.698 3.532 1.672.003c.452.003.905.008 1.36.02.792.022 1.719.065 2.583.22.75.135 1.38.34 1.984.648a6.392 6.392 0 0 1 2.804 2.807c.306.6.51 1.226.645 1.983.154.854.197 1.783.218 2.58.013.45.019.9.02 1.36.005.557.005 1.113.005 1.671v76.318c0 .558 0 1.114-.004 1.682-.002.45-.008.9-.02 1.35-.022.796-.065 1.725-.221 2.589a6.855 6.855 0 0 1-.645 1.975 6.397 6.397 0 0 1-2.808 2.807c-.6.306-1.228.512-1.971.645-.882.157-1.847.2-2.574.22-.457.01-.912.017-1.379.019-.555.004-1.113.004-1.669.004H14.801c-.55 0-1.1 0-1.66-.004a75.086 75.086 0 0 1-1.35-.018c-.744-.02-1.71-.064-2.584-.22a6.938 6.938 0 0 1-1.986-.65 6.337 6.337 0 0 1-1.622-1.18 6.355 6.355 0 0 1-1.178-1.623 6.935 6.935 0 0 1-.647-1.985c-.155-.863-.198-1.788-.22-2.578a66.017 66.017 0 0 1-.02-1.355l-.002-1.327V14.474l.002-1.325c.003-.453.008-.905.02-1.357.022-.792.065-1.717.222-2.587a6.924 6.924 0 0 1 .646-1.981c.304-.598.7-1.144 1.18-1.622a6.385 6.385 0 0 1 1.624-1.18 6.96 6.96 0 0 1 1.98-.647c.865-.155 1.792-.198 2.586-.22.452-.012.905-.017 1.354-.02l1.677-.003h135.875"/><path fill="white" d="M45.186 35.64c1.417-1.772 2.38-4.152 2.126-6.585-2.075.104-4.607 1.37-6.073 3.143-1.316 1.52-2.48 4-2.177 6.33 2.33.202 4.656-1.165 6.124-2.887M47.285 38.983c-3.382-.202-6.258 1.919-7.873 1.919-1.616 0-4.09-1.818-6.764-1.769-3.482.051-6.713 2.02-8.48 5.15-3.634 6.264-.959 15.556 2.575 20.657 1.717 2.524 3.785 5.303 6.51 5.203 2.575-.101 3.584-1.668 6.714-1.668 3.128 0 4.037 1.668 6.763 1.617 2.827-.05 4.594-2.525 6.31-5.051 1.969-2.877 2.775-5.655 2.825-5.808-.05-.05-5.45-2.122-5.5-8.333-.051-5.201 4.24-7.675 4.441-7.828-2.423-3.584-6.209-3.988-7.52-4.09M76.734 31.944c7.35 0 12.47 5.067 12.47 12.444 0 7.404-5.225 12.497-12.654 12.497h-8.14v12.943h-5.88V31.944h14.204zM68.41 51.949h6.747c5.12 0 8.034-2.756 8.034-7.534 0-4.778-2.914-7.509-8.008-7.509h-6.773V51.95zM90.74 61.979c0-4.831 3.702-7.798 10.266-8.166l7.56-.446v-2.126c0-3.072-2.074-4.91-5.539-4.91-3.282 0-5.33 1.575-5.828 4.043h-5.356c.315-4.988 4.568-8.664 11.394-8.664 6.695 0 10.974 3.545 10.974 9.084v19.034h-5.435v-4.542h-.13c-1.602 3.072-5.094 5.015-8.717 5.015-5.408 0-9.189-3.36-9.189-8.322zm17.826-2.494v-2.18l-6.8.42c-3.386.237-5.303 1.733-5.303 4.096 0 2.415 1.996 3.99 5.041 3.99 3.964 0 7.062-2.73 7.062-6.326zM119.342 79.989v-4.595c.419.105 1.364.105 1.837.105 2.625 0 4.043-1.102 4.909-3.938 0-.052.5-1.68.5-1.706l-9.977-27.646h6.143l6.984 22.474h.104l6.985-22.474h5.985l-10.344 29.063c-2.362 6.695-5.093 8.848-10.816 8.848-.473 0-1.891-.053-2.31-.131z"/></svg>',apple_pay_mark_none:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 165.521 105.965"><path fill="black" d="M45.186 35.64c1.417-1.772 2.38-4.152 2.126-6.585-2.075.104-4.607 1.37-6.073 3.143-1.316 1.52-2.48 4-2.177 6.33 2.33.202 4.656-1.165 6.124-2.887M47.285 38.983c-3.382-.202-6.258 1.919-7.873 1.919-1.616 0-4.09-1.818-6.764-1.769-3.482.051-6.713 2.02-8.48 5.15-3.634 6.264-.959 15.556 2.575 20.657 1.717 2.524 3.785 5.303 6.51 5.203 2.575-.101 3.584-1.668 6.714-1.668 3.128 0 4.037 1.668 6.763 1.617 2.827-.05 4.594-2.525 6.31-5.051 1.969-2.877 2.775-5.655 2.825-5.808-.05-.05-5.45-2.122-5.5-8.333-.051-5.201 4.24-7.675 4.441-7.828-2.423-3.584-6.209-3.988-7.52-4.09M76.734 31.944c7.35 0 12.47 5.067 12.47 12.444 0 7.404-5.225 12.497-12.654 12.497h-8.14v12.943h-5.88V31.944h14.204zM68.41 51.949h6.747c5.12 0 8.034-2.756 8.034-7.534 0-4.778-2.914-7.509-8.008-7.509h-6.773V51.95zM90.74 61.979c0-4.831 3.702-7.798 10.266-8.166l7.56-.446v-2.126c0-3.072-2.074-4.91-5.539-4.91-3.282 0-5.33 1.575-5.828 4.043h-5.356c.315-4.988 4.568-8.664 11.394-8.664 6.695 0 10.974 3.545 10.974 9.084v19.034h-5.435v-4.542h-.13c-1.602 3.072-5.094 5.015-8.717 5.015-5.408 0-9.189-3.36-9.189-8.322zm17.826-2.494v-2.18l-6.8.42c-3.386.237-5.303 1.733-5.303 4.096 0 2.415 1.996 3.99 5.041 3.99 3.964 0 7.062-2.73 7.062-6.326zM119.342 79.989v-4.595c.419.105 1.364.105 1.837.105 2.625 0 4.043-1.102 4.909-3.938 0-.052.5-1.68.5-1.706l-9.977-27.646h6.143l6.984 22.474h.104l6.985-22.474h5.985l-10.344 29.063c-2.362 6.695-5.093 8.848-10.816 8.848-.473 0-1.891-.053-2.31-.131z"/></svg>',apple_pay_mark_white_outline:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 165.521 105.965"><path d="M150.698 0H14.823c-.566 0-1.133 0-1.698.003-.477.004-.953.009-1.43.022-1.039.028-2.087.09-3.113.274a10.51 10.51 0 0 0-2.958.975 9.932 9.932 0 0 0-4.35 4.35 10.463 10.463 0 0 0-.975 2.96C.113 9.611.052 10.658.024 11.696c-.013.477-.019.953-.022 1.43C0 13.69 0 14.256 0 14.823v76.318c0 .567 0 1.132.002 1.699.003.476.009.953.022 1.43.028 1.036.09 2.084.275 3.11a10.46 10.46 0 0 0 .974 2.96 9.897 9.897 0 0 0 1.83 2.52 9.874 9.874 0 0 0 2.52 1.83c.947.483 1.917.79 2.96.977 1.025.183 2.073.245 3.112.273.477.011.953.018 1.43.02.565.004 1.132.004 1.698.004h135.875c.565 0 1.132 0 1.697-.004a79.71 79.71 0 0 0 1.431-.02c1.037-.028 2.085-.09 3.113-.273a10.478 10.478 0 0 0 2.958-.977 9.955 9.955 0 0 0 4.35-4.35c.483-.947.789-1.917.974-2.96.186-1.026.246-2.074.274-3.11.013-.477.02-.954.022-1.43.004-.567.004-1.132.004-1.699V14.824c0-.567 0-1.133-.004-1.699a63.067 63.067 0 0 0-.022-1.429c-.028-1.038-.088-2.085-.274-3.112a10.4 10.4 0 0 0-.974-2.96 9.941 9.941 0 0 0-4.35-4.35A10.52 10.52 0 0 0 156.939.3c-1.028-.185-2.076-.246-3.113-.274a71.413 71.413 0 0 0-1.431-.022C151.83 0 151.263 0 150.698 0z"/><path fill="white" d="m150.698 3.532 1.672.003c.452.003.905.008 1.36.02.792.022 1.719.065 2.583.22.75.135 1.38.34 1.984.648a6.392 6.392 0 0 1 2.804 2.807c.306.6.51 1.226.645 1.983.154.854.197 1.783.218 2.58.013.45.019.9.02 1.36.005.557.005 1.113.005 1.671v76.318c0 .558 0 1.114-.004 1.682-.002.45-.008.9-.02 1.35-.022.796-.065 1.725-.221 2.589a6.855 6.855 0 0 1-.645 1.975 6.397 6.397 0 0 1-2.808 2.807c-.6.306-1.228.512-1.971.645-.882.157-1.847.2-2.574.22-.457.01-.912.017-1.379.019-.555.004-1.113.004-1.669.004H14.801c-.55 0-1.1 0-1.66-.004a75.086 75.086 0 0 1-1.35-.018c-.744-.02-1.71-.064-2.584-.22a6.938 6.938 0 0 1-1.986-.65 6.337 6.337 0 0 1-1.622-1.18 6.355 6.355 0 0 1-1.178-1.623 6.935 6.935 0 0 1-.647-1.985c-.155-.863-.198-1.788-.22-2.578a66.017 66.017 0 0 1-.02-1.355l-.002-1.327V14.474l.002-1.325c.003-.453.008-.905.02-1.357.022-.792.065-1.717.222-2.587a6.924 6.924 0 0 1 .646-1.981c.304-.598.7-1.144 1.18-1.622a6.385 6.385 0 0 1 1.624-1.18 6.96 6.96 0 0 1 1.98-.647c.865-.155 1.792-.198 2.586-.22.452-.012.905-.017 1.354-.02l1.677-.003h135.875"/><path fill="black" d="M45.186 35.64c1.417-1.772 2.38-4.152 2.126-6.585-2.075.104-4.607 1.37-6.073 3.143-1.316 1.52-2.48 4-2.177 6.33 2.33.202 4.656-1.165 6.124-2.887M47.285 38.983c-3.382-.202-6.258 1.919-7.873 1.919-1.616 0-4.09-1.818-6.764-1.769-3.482.051-6.713 2.02-8.48 5.15-3.634 6.264-.959 15.556 2.575 20.657 1.717 2.524 3.785 5.303 6.51 5.203 2.575-.101 3.584-1.668 6.714-1.668 3.128 0 4.037 1.668 6.763 1.617 2.827-.05 4.594-2.525 6.31-5.051 1.969-2.877 2.775-5.655 2.825-5.808-.05-.05-5.45-2.122-5.5-8.333-.051-5.201 4.24-7.675 4.441-7.828-2.423-3.584-6.209-3.988-7.52-4.09M76.734 31.944c7.35 0 12.47 5.067 12.47 12.444 0 7.404-5.225 12.497-12.654 12.497h-8.14v12.943h-5.88V31.944h14.204zM68.41 51.949h6.747c5.12 0 8.034-2.756 8.034-7.534 0-4.778-2.914-7.509-8.008-7.509h-6.773V51.95zM90.74 61.979c0-4.831 3.702-7.798 10.266-8.166l7.56-.446v-2.126c0-3.072-2.074-4.91-5.539-4.91-3.282 0-5.33 1.575-5.828 4.043h-5.356c.315-4.988 4.568-8.664 11.394-8.664 6.695 0 10.974 3.545 10.974 9.084v19.034h-5.435v-4.542h-.13c-1.602 3.072-5.094 5.015-8.717 5.015-5.408 0-9.189-3.36-9.189-8.322zm17.826-2.494v-2.18l-6.8.42c-3.386.237-5.303 1.733-5.303 4.096 0 2.415 1.996 3.99 5.041 3.99 3.964 0 7.062-2.73 7.062-6.326zM119.342 79.989v-4.595c.419.105 1.364.105 1.837.105 2.625 0 4.043-1.102 4.909-3.938 0-.052.5-1.68.5-1.706l-9.977-27.646h6.143l6.984 22.474h.104l6.985-22.474h5.985l-10.344 29.063c-2.362 6.695-5.093 8.848-10.816 8.848-.473 0-1.891-.053-2.31-.131z"/></svg>',apple_pay_mark_white:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 165.521 105.965"><path fill="rgba(0,0,0,.075)" d="M150.698 0H14.823c-.566 0-1.133 0-1.698.003-.477.004-.953.009-1.43.022-1.039.028-2.087.09-3.113.274a10.51 10.51 0 0 0-2.958.975 9.932 9.932 0 0 0-4.35 4.35 10.463 10.463 0 0 0-.975 2.96C.113 9.611.052 10.658.024 11.696c-.013.477-.019.953-.022 1.43C0 13.69 0 14.256 0 14.823v76.318c0 .567 0 1.132.002 1.699.003.476.009.953.022 1.43.028 1.036.09 2.084.275 3.11a10.46 10.46 0 0 0 .974 2.96 9.897 9.897 0 0 0 1.83 2.52 9.874 9.874 0 0 0 2.52 1.83c.947.483 1.917.79 2.96.977 1.025.183 2.073.245 3.112.273.477.011.953.018 1.43.02.565.004 1.132.004 1.698.004h135.875c.565 0 1.132 0 1.697-.004a79.71 79.71 0 0 0 1.431-.02c1.037-.028 2.085-.09 3.113-.273a10.478 10.478 0 0 0 2.958-.977 9.955 9.955 0 0 0 4.35-4.35c.483-.947.789-1.917.974-2.96.186-1.026.246-2.074.274-3.11.013-.477.02-.954.022-1.43.004-.567.004-1.132.004-1.699V14.824c0-.567 0-1.133-.004-1.699a63.067 63.067 0 0 0-.022-1.429c-.028-1.038-.088-2.085-.274-3.112a10.4 10.4 0 0 0-.974-2.96 9.941 9.941 0 0 0-4.35-4.35A10.52 10.52 0 0 0 156.939.3c-1.028-.185-2.076-.246-3.113-.274a71.413 71.413 0 0 0-1.431-.022C151.83 0 151.263 0 150.698 0z"/><path fill="white" d="m150.698 3.532 1.672.003c.452.003.905.008 1.36.02.792.022 1.719.065 2.583.22.75.135 1.38.34 1.984.648a6.392 6.392 0 0 1 2.804 2.807c.306.6.51 1.226.645 1.983.154.854.197 1.783.218 2.58.013.45.019.9.02 1.36.005.557.005 1.113.005 1.671v76.318c0 .558 0 1.114-.004 1.682-.002.45-.008.9-.02 1.35-.022.796-.065 1.725-.221 2.589a6.855 6.855 0 0 1-.645 1.975 6.397 6.397 0 0 1-2.808 2.807c-.6.306-1.228.512-1.971.645-.882.157-1.847.2-2.574.22-.457.01-.912.017-1.379.019-.555.004-1.113.004-1.669.004H14.801c-.55 0-1.1 0-1.66-.004a75.086 75.086 0 0 1-1.35-.018c-.744-.02-1.71-.064-2.584-.22a6.938 6.938 0 0 1-1.986-.65 6.337 6.337 0 0 1-1.622-1.18 6.355 6.355 0 0 1-1.178-1.623 6.935 6.935 0 0 1-.647-1.985c-.155-.863-.198-1.788-.22-2.578a66.017 66.017 0 0 1-.02-1.355l-.002-1.327V14.474l.002-1.325c.003-.453.008-.905.02-1.357.022-.792.065-1.717.222-2.587a6.924 6.924 0 0 1 .646-1.981c.304-.598.7-1.144 1.18-1.622a6.385 6.385 0 0 1 1.624-1.18 6.96 6.96 0 0 1 1.98-.647c.865-.155 1.792-.198 2.586-.22.452-.012.905-.017 1.354-.02l1.677-.003h135.875"/><path fill="black" d="M45.186 35.64c1.417-1.772 2.38-4.152 2.126-6.585-2.075.104-4.607 1.37-6.073 3.143-1.316 1.52-2.48 4-2.177 6.33 2.33.202 4.656-1.165 6.124-2.887M47.285 38.983c-3.382-.202-6.258 1.919-7.873 1.919-1.616 0-4.09-1.818-6.764-1.769-3.482.051-6.713 2.02-8.48 5.15-3.634 6.264-.959 15.556 2.575 20.657 1.717 2.524 3.785 5.303 6.51 5.203 2.575-.101 3.584-1.668 6.714-1.668 3.128 0 4.037 1.668 6.763 1.617 2.827-.05 4.594-2.525 6.31-5.051 1.969-2.877 2.775-5.655 2.825-5.808-.05-.05-5.45-2.122-5.5-8.333-.051-5.201 4.24-7.675 4.441-7.828-2.423-3.584-6.209-3.988-7.52-4.09M76.734 31.944c7.35 0 12.47 5.067 12.47 12.444 0 7.404-5.225 12.497-12.654 12.497h-8.14v12.943h-5.88V31.944h14.204zM68.41 51.949h6.747c5.12 0 8.034-2.756 8.034-7.534 0-4.778-2.914-7.509-8.008-7.509h-6.773V51.95zM90.74 61.979c0-4.831 3.702-7.798 10.266-8.166l7.56-.446v-2.126c0-3.072-2.074-4.91-5.539-4.91-3.282 0-5.33 1.575-5.828 4.043h-5.356c.315-4.988 4.568-8.664 11.394-8.664 6.695 0 10.974 3.545 10.974 9.084v19.034h-5.435v-4.542h-.13c-1.602 3.072-5.094 5.015-8.717 5.015-5.408 0-9.189-3.36-9.189-8.322zm17.826-2.494v-2.18l-6.8.42c-3.386.237-5.303 1.733-5.303 4.096 0 2.415 1.996 3.99 5.041 3.99 3.964 0 7.062-2.73 7.062-6.326zM119.342 79.989v-4.595c.419.105 1.364.105 1.837.105 2.625 0 4.043-1.102 4.909-3.938 0-.052.5-1.68.5-1.706l-9.977-27.646h6.143l6.984 22.474h.104l6.985-22.474h5.985l-10.344 29.063c-2.362 6.695-5.093 8.848-10.816 8.848-.473 0-1.891-.053-2.31-.131z"/></svg>'},In=/\{\{\s*([^\s]+)\s*\}\}/gi;"undefined"==typeof WEBVIEW&&(r.WEBVIEW=!1);class Nt extends HTMLElement{constructor(){super(),this.locale=en.locale,this.countryCode=en.countryCode,this.currencyCode=en.currencyCode,this.type=en.type,this.modalType=en.modalType,this.debug=!1,Ee.set(this,void 0),xt.set(this,void 0),yt.set(this,void 0),Oe(this,yt,new Promise(m=>setTimeout(m)).then(()=>Nt.getData({countryCode:this.countryCode,amount:this.amount,currencyCode:this.currencyCode,locale:this.locale})).then(m=>{var C=new Event("load");return this.dispatchEvent(C),this.data=m,new Promise(M=>setTimeout(M))},m=>{console.warn("Apple Pay Merchandising: unable to fetch merchandising data",m),this.disable()}).then(()=>{Oe(this,Ee,this.ownerDocument.createElement("div")),Me(this,Ee).className="theme-".concat(this.theme," content"),Oe(this,xt,this.attachShadow({mode:"closed"})),Me(this,xt).innerHTML="<style>".concat(":host{font-family:var(--apple-pay-font-family, '-apple-system', 'SF Pro Display', 'SF Pro Icons', 'Helvetica Neue', 'Helvetica', 'Arial', 'sans-serif');font-size:var(--apple-pay-font-size, 13px);line-height:1.33;max-width:var(--apple-pay-width, 340px);display:inline-block}:host([disabled]),:host([hidden]){display:none!important;margin:0}:host>*{display:none}*{-webkit-box-sizing:border-box;box-sizing:border-box}.content{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:start;align-items:flex-start;margin:0 auto;color:inherit;gap:.75ex}.theme-dark.content .paymark.align-left.type-pay_later.style-none{-webkit-filter:invert(1);filter:invert(1)}.theme-dark.content .theme-dark.text .info-circle{-webkit-filter:invert(1);filter:invert(1)}.paymark{-ms-flex-order:2;order:2;margin:.054em 0 0}.paymark.align-left{-ms-flex-order:0;order:0;margin-right:.75ex}.paymark.align-right{margin-left:.75ex}.paymark.type-none{display:none}.paymark.style-none{margin:0}.content p{-ms-flex-order:1;order:1;margin:0}.content .text{-ms-flex-positive:1;flex-grow:1;margin:0 auto;-ms-flex-item-align:center;align-self:center}a{color:var(--apple-pay-link-color, #0066CC);text-decoration:none}@media (hover: hover){a:hover{text-decoration:underline}}.theme-dark{color:var(--apple-pay-text-color-dark, #F5F5F7)}.theme-light{color:var(--apple-pay-text-color, #1D1D1F)}.theme-dark a{color:var(--apple-pay-link-color-dark, #2997FF)}.theme-light a{color:var(--apple-pay-link-color, #0066CC)}.paymark svg,.paymark img{display:block;height:2rem}","</style>"),Me(this,xt).appendChild(Me(this,Ee)),Me(this,xt).addEventListener("click",m=>{var C,M,V=m.target.closest('a[href*="'.concat(this.data.modalUrl,'"]'));V&&m.currentTarget.contains(V)&&(m.preventDefault(),WEBVIEW?null===(M=null===(C=webkit.messageHandlers)||void 0===C?void 0:C.applePayDetails)||void 0===M||M.postMessage("show-modal"):(Ue.setAttribute("locale",this.locale),Ue.setAttribute("theme",this.theme),Ue.setAttribute("url",this.data.modalUrl),Ue.show()))})}))}connectedCallback(){var m=this;return s(function*(){yield Me(m,yt),m.ready=!0,m.classList.add("ready"),m.update()})()}disconnectedCallback(){var m=this;return s(function*(){yield Me(m,yt),m.disable()})()}disable(){var m,C;(null===(m=Me(this,xt))||void 0===m?void 0:m.contains(Me(this,Ee)))&&(null===(C=Me(this,xt))||void 0===C||C.removeChild(Me(this,Ee))),this.setAttribute("disabled",""),this.setAttribute("hidden",""),this.disabled=!0}enable(){var m;null===(m=Me(this,xt))||void 0===m||m.appendChild(Me(this,Ee)),this.disabled=!1,this.removeAttribute("disabled"),this.removeAttribute("hidden")}update(){var m=this;return s(function*(){if(m.ready)if(m.debug||(yield Nt.isEligible(m))){m.enable();var C=m.data=yield Nt.getData(m),M=yield Nt.fetchData(m),V=M.presets[m.type||en.type]||M.presets.custom;"custom"===m.type&&(C.promoText=m.innerHTML);var H=new Intl.NumberFormat(m.locale,{style:"currency",currency:m.currencyCode,minimumFractionDigits:Number.isInteger(C.paymentsAmount)?0:2,currencyDisplay:"narrowSymbol"}),ce=Object.assign(Object.assign(Object.assign({},C),V),{paymentsAmount:H.format(C.paymentsAmount),hideLogo:C.logo?"":"hidden",hideText:C.promoText?"":"hidden",theme:m.theme||en.theme,modalUrl:C.modalUrl}),ze='<div class="paymark align-{{ logoAlign }} type-{{ logoType }} style-{{ logoStyle }}" {{ hideLogo }}>{{ logo }}</div><p class="theme-{{ theme }} text" {{ hideText }}>'.concat(C.promoText,"</p>");Me(m,Ee).innerHTML=ze.replace(In,(Ct,Rn)=>ce[Rn])}else m.disable()})()}static get observedAttributes(){return Hi}attributeChangedCallback(m,C,M){m=E(m),null==M?delete this[m]:this[m]="true"===M||"false"!==M&&(""===M||M),C!==M&&this.update()}static fetchData({countryCode:m}){return s(function*(){var C,M=m.toLowerCase();try{C=dt[M]||(dt[M]=yield(yield fetch(G("./merchandising-".concat(M,".json")))).json())}catch(V){throw Error("Apple Pay Merchandising: unable to fetch merchandising data")}return C})()}static getData({countryCode:m,locale:C,amount:M,modalType:V="learn-more",theme:H="light",type:ce="plain"}){return s(function*(){var ze,Ct=yield Nt.fetchData({countryCode:m}),Rn=(Ct.text[C]||Ct.text[C.slice(0,2)]||Ct.text[Object.keys(Ct.text)[0]])[ce]||"",ei=null===(ze=Object.entries(Ct.method).find(([,Gi])=>Gi.minAmount<=M&&Gi.maxAmount>=M))||void 0===ze?void 0:ze[1],zi=Ct.presets[ce||en.type]||Ct.presets.custom,Ao=Math.round(M/ei.frequency*100)/100,Gs=location.hostname||window.frames.top.document.location.hostname;if(C.split("-")[1].toLowerCase()!==m.toLowerCase())throw Error("Apple Pay Merchandising: unsupported locale");return Object.assign({logo:"none"===zi.logoType?"":Ut["apple_".concat(zi.logoType,"_mark_").concat(zi.logoStyle)],promoText:Rn,paymentsAmount:Ao,lastPaymentAmount:M-Ao*(ei.frequency-1),modalUrl:G("./".concat(V,".html"))+"#data=".concat(btoa(JSON.stringify(Object.assign({amount:M,theme:H,locale:C,referrerUrl:Gs},ei))))},ei)})()}static isEligible({amount:m,currencyCode:C,countryCode:M}){return s(function*(){if(!function(H={}){try{return new PaymentRequest([{supportedMethods:"https://apple.com/apple-pay",data:{version:15,features:["applePayLater"],merchantIdentifier:"",countryCode:H.countryCode,supportedNetworks:["masterCard"],merchantCapabilities:["supports3DS"]}}],{total:{label:"applePayLater",amount:{currency:H.currencyCode,value:"0.00"}}}),!0}catch(ce){return!1}}({currencyCode:C,countryCode:M}))return!1;var V=yield Nt.fetchData({countryCode:M});return C===V.currencyCode&&Object.entries(V.method).some(([,H])=>H.minAmount<=m&&H.maxAmount>=m)})()}}Ee=new WeakMap,xt=new WeakMap,yt=new WeakMap;var en={merchantToken:null,amount:null,type:"plain",locale:"en-US",modalType:"learn-more",countryCode:"US",currencyCode:"USD",debug:!1,theme:"auto"},Hi=Object.keys(en).map(F);customElements.define("apple-pay-merchandising",Nt),window.ApplePayMerchandising=Nt;var Jr=["ar-AB","ca-ES","cs-CZ","da-DK","de-DE","el-GR","en-US","en-AU","en-GB","es-ES","es-MX","fi-FI","fr-CA","fr-FR","he-IL","hi-IN","hr-HR","hu-HU","id-ID","it-IT","ja-JP","ko-KR","ms-MY","nb-NO","nl-NL","pl-PL","pt-BR","pt-PT","ro-RO","ru-RU","sk-SK","sv-SE","th-TH","tr-TR","uk-UA","vi-VN","zh-CN","zh-HK","zh-TW"];function gi(_){return(null==_?void 0:_.includes("-"))&&!!Jr.find(m=>m===_)}function _t(_){if(_){var m=_.trim().replace("_","-").split("-"),C=m[0].toLowerCase();return 1===m.length?C:C+"-"+m[1].toUpperCase()}}function rn(_,m=!0){var H,ce,C=null==_?void 0:_.includes("-");if(C){var M=Jr.find(H=>H===_);if(M)return M}if(_&&(!C||m)){var V=(ce=null==(H=_)?void 0:H.split("-")[0],Jr.find(ze=>new RegExp("^".concat(ce),"g").test(ze)));if(V)return V}}function yi(_){var m=function dl(_){var m=((void 0===navigator.languages?[navigator.language]:navigator.languages)||[]).map(_t),C=null==_?void 0:_.closest("[lang]"),M=(null==C?void 0:C.lang)?_t(C.lang):void 0;return M&&m.unshift(M),m}(_).reduce((C,M)=>{if(C&&C.includes("-"))return C;if(!C){if(gi(M))return M;var V=(ce=null==(H=M)?void 0:H.split("-")[0])&&Jr.find(ze=>ze.startsWith(ce))?ce:void 0;if(V)return V}var H,ce;return C&&!C.includes("-")&&M.startsWith(C)&&gi(M)?M:C},void 0);return((null==m?void 0:m.includes("-"))?m:rn(m))||"en-US"}function hl(){try{return document.fonts.check("15px -apple-system")}catch(_){return!1}}function ht(_){return!!document.getElementById(vt(_))}function Fs(_){var m=document.createElement("style");m.id=vt(_),m.innerHTML="@font-face{"+"font-family:apple-pay-btn-".concat(_,";")+"src:url(".concat(Ju("./assets/1.0.0/fonts/".concat(_,".woff2")),') format("woff2"),')+"url(".concat(Ju("./assets/1.0.0/fonts/".concat(_,".woff")),') format("woff");')+"font-display:block;}",document.head.appendChild(m)}function vt(_){return"apple-pay-btn-font-".concat(_)}function Ju(_){return S+_.replace(/^\.\//,"/")}var qm=["add-money","book","buy","check-out","continue","contribute","donate","order","pay","plain","reload","rent","set-up","subscribe","support","tip","top-up"];function fl(_){return qm.includes(_)}function Km(_){switch(_){case"add-money":return"a";case"book":return"bo";case"buy":return"bu";case"check-out":return"ch";case"continue":return"ci";case"contribute":return"co";case"donate":return"d";case"order":return"o";case"pay":return"pa";case"plain":return"p";case"reload":return"rl";case"rent":return"rn";case"set-up":return"se";case"subscribe":return"sb";case"support":return"sp";case"tip":return"ti";case"top-up":return"to"}}function Xu(_,m){var C=[..._.l[Km(m)]],M=C[0].t.startsWith("%@")?0:1;return(C=C.map(V=>Object.assign(Object.assign({},V),{t:V.t.replace(/%@/g,"")}))).splice(M,0,{t:"%@"}),_.rtl&&C.reverse(),C}function Zm(_,m){if("plain"===m)return"Apple Pay";var C=Xu(_,m);return _.rtl&&C.reverse(),C.reduce((M,V)=>M+("%@"===V.t?"Apple Pay":V.t),"")}function Ls(_,m,C,M,V){var ce,H=m.t.replace(/\s/g,"&#160;");return'<text x="'.concat(_,'" y="').concat(function(ce){switch(ce){case"ja-JP":return 20;case"ko-KR":return 19.6}return 19.5}(M),'" ')+"".concat(C?'direction="rtl" unicode-bidi="bidi-override" text-anchor="end"':""," ")+"".concat(V?'style="letter-spacing:'.concat(V,';"'):""," ")+"".concat("hi-IN"!==(ce=M)&&"th-TH"!==ce?'height="'.concat(m.h,'" width="').concat(m.w,'" ').concat(C?"":'textLength="'.concat(m.w,'"')):"",">")+"".concat(H,"</text>")}function pl(_,m,C,M,V){var H='<?xml version="1.0" encoding="UTF-8"?>\n<svg class="logo" viewBox="0 0 105 43" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <title>Apple Logo</title>\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g fill="#FFF">\n <path d="M19.4028,5.5674 C20.6008,4.0684 21.4138,2.0564 21.1998,0.0004 C19.4458,0.0874 17.3058,1.1574 16.0668,2.6564 C14.9538,3.9414 13.9688,6.0374 14.2258,8.0074 C16.1948,8.1784 18.1618,7.0244 19.4028,5.5674"></path>\n <path d="M21.1772,8.3926 C18.3182,8.2226 15.8872,10.0156 14.5212,10.0156 C13.1552,10.0156 11.0642,8.4786 8.8022,8.5196 C5.8592,8.5626 3.1282,10.2276 1.6342,12.8746 C-1.4378,18.1696 0.8232,26.0246 3.8112,30.3376 C5.2622,32.4716 7.0102,34.8206 9.3142,34.7366 C11.4912,34.6506 12.3442,33.3266 14.9902,33.3266 C17.6352,33.3266 18.4042,34.7366 20.7082,34.6936 C23.0972,34.6506 24.5922,32.5586 26.0422,30.4226 C27.7072,27.9906 28.3882,25.6426 28.4312,25.5126 C28.3882,25.4706 23.8232,23.7186 23.7812,18.4676 C23.7382,14.0706 27.3652,11.9786 27.5362,11.8496 C25.4882,8.8196 22.2872,8.4786 21.1772,8.3926"></path>\n <path d="M85.5508,43.0381 L85.5508,39.1991 C85.8628,39.2421 86.6158,39.2871 87.0158,39.2871 C89.2138,39.2871 90.4558,38.3551 91.2108,35.9581 L91.6548,34.5371 L83.2428,11.2321 L88.4368,11.2321 L94.2958,30.1421 L94.4068,30.1421 L100.2668,11.2321 L105.3278,11.2321 L96.6048,35.7141 C94.6078,41.3291 92.3208,43.1721 87.4828,43.1721 C87.1048,43.1721 85.8838,43.1271 85.5508,43.0381"></path>\n <path d="M42.6499,19.3555 L48.3549,19.3555 C52.6829,19.3555 55.1469,17.0255 55.1469,12.9855 C55.1469,8.9455 52.6829,6.6375 48.3769,6.6375 L42.6499,6.6375 L42.6499,19.3555 Z M49.6869,2.4425 C55.9009,2.4425 60.2289,6.7265 60.2289,12.9625 C60.2289,19.2225 55.8129,23.5285 49.5309,23.5285 L42.6499,23.5285 L42.6499,34.4705 L37.6779,34.4705 L37.6779,2.4425 L49.6869,2.4425 Z"></path>\n <path d="M76.5547,25.7705 L76.5547,23.9715 L71.0287,24.3275 C67.9207,24.5275 66.3007,25.6815 66.3007,27.7015 C66.3007,29.6545 67.9887,30.9195 70.6287,30.9195 C74.0027,30.9195 76.5547,28.7665 76.5547,25.7705 M61.4617,27.8345 C61.4617,23.7285 64.5917,21.3755 70.3627,21.0205 L76.5547,20.6425 L76.5547,18.8675 C76.5547,16.2705 74.8457,14.8495 71.8057,14.8495 C69.2967,14.8495 67.4777,16.1375 67.0997,18.1125 L62.6167,18.1125 C62.7497,13.9615 66.6567,10.9435 71.9387,10.9435 C77.6207,10.9435 81.3267,13.9175 81.3267,18.5345 L81.3267,34.4705 L76.7327,34.4705 L76.7327,30.6305 L76.6217,30.6305 C75.3127,33.1395 72.4267,34.7145 69.2967,34.7145 C64.6807,34.7145 61.4617,31.9625 61.4617,27.8345"></path>\n </g>\n </g>\n</svg>'.replace("<svg","<svg ".concat(V?'id="'.concat(V,'"'):"",' x="').concat(_,'" y="').concat(m,'" height="').concat(C,'" width="').concat(35,'"'));return"black"!==M&&(H=H.replace('fill="#FFF"','fill="#000"')),H}function ed(_){var m=Xu(_.metadata,_.buttonType),C=_.metadata.ls,{width:M,domStr:V}=m.reduce((H,ce,ze)=>{var Ct;if("%@"===ce.t){ze>0&&new RegExp(/\s$/).test(H.prev)&&(H.width=H.width+1);var Rn=0===ze||ze===m.length-1;return{domStr:H.domStr+pl(H.width+.2,7.92,15,_.buttonStyle),width:H.width+35+(Rn?.2:.4),prev:ce.t}}return"%@"===H.prev&&(null===(Ct=ce.t)||void 0===Ct?void 0:Ct.startsWith(" "))?H.width=H.width+1:"%@"===H.prev&&(H.width=H.width+.2),{domStr:H.domStr+Ls(H.width,ce,!!_.metadata.rtl,_.locale,C),width:H.width+ce.w,prev:ce.t}},{width:12.5,domStr:"",prev:""});return{width:M+12.5,domStr:V}}function td(_,m=!1){return'<svg id="svg-logo" viewBox="0 0 '.concat(35," ").concat(15,'" ').concat(m?'class="hidden"':"",">\n ").concat(pl(0,3.85,7.3,_,"svg-logo"),"\n </svg>")}function fr(_){if("plain"===_.buttonType)return td(_.buttonStyle,!1);var{width:m,domStr:C}=ed(_),M=hl();return'<svg id="svg-text" viewBox="0 0 '.concat(m,' 28.571" aria-hidden="true">\n <defs>\n <style>\n text {\n fill: ').concat("black"===_.buttonStyle?"#FFF":"#000",";\n font-family: ").concat(M?"-apple-system":"apple-pay-btn-".concat(_.locale),";\n font-size: ").concat(_.metadata.s,";\n font-weight: ").concat(_.metadata.w||500,";\n }\n </style>\n </defs>\n <g>\n ").concat(C,"\n </g>\n </svg>\n ").concat(td(_.buttonStyle,!0))}var _i,_,Qm={"en-US":{l:{a:[{w:110.86,h:18,t:"Add Money with %@"}],bo:[{w:68.8,h:18,t:"Book with %@"}],bu:[{w:60.39,h:18,t:"Buy with %@"}],ch:[{w:102.89,h:18,t:"Check out with %@"}],ci:[{w:95.58,h:18,t:"Continue with %@"}],co:[{w:105.94,h:18,t:"Contribute with %@"}],d:[{w:83,h:18,t:"Donate with %@"}],o:[{w:72.86,h:18,t:"Order with %@"}],pa:[{w:59,h:18,t:"Pay with %@"}],rl:[{w:80.89,h:18,t:"Reload with %@"}],rn:[{w:65.67,h:18,t:"Rent with %@"}],se:[{w:45.88,h:18,t:"Set up %@"}],sb:[{w:102.14,h:18,t:"Subscribe with %@"}],sp:[{w:88.67,h:18,t:"Support with %@"}],ti:[{w:55.58,h:18,t:"Tip with %@"}],to:[{w:81.66,h:18,t:"Top Up with %@"}]},s:"15px",ls:"0.22px"},"fr-FR":{l:{a:[{w:159.45,h:18,t:"Ajouter de l\u2019argent avec %@"}],bo:[{w:96.92,h:18,t:"R\xe9server avec %@"}],bu:[{w:90.47,h:18,t:"Acheter avec %@"}],ch:[{w:75.22,h:18,t:"Payer avec %@"}],ci:[{w:108.56,h:18,t:"Poursuivre avec %@"}],co:[{w:109.41,h:18,t:"Contribuer avec %@"}],d:[{w:118.92,h:18,t:"Faire un don avec %@"}],o:[{w:120.53,h:18,t:"Commander avec %@"}],pa:[{w:75.22,h:18,t:"Payer avec %@"}],rl:[{w:106.7,h:18,t:"Recharger avec %@"}],rn:[{w:75.95,h:18,t:"Louer avec %@"}],se:[{w:74.19,h:18,t:"Configurer %@"}],sb:[{w:105.61,h:18,t:"S\u2019abonner avec %@"}],sp:[{w:93.98,h:18,t:"Soutenir avec %@"}],ti:[{w:173.25,h:18,t:"Laisser un pourboire avec %@"}],to:[{w:106.7,h:18,t:"Recharger avec %@"}]},s:"15px",ls:"0.22px"},"el-GR":{l:{a:[{w:190.19,h:18,t:"\u03a0\u03c1\u03bf\u03c3\u03b8\u03ae\u03ba\u03b7 \u03c7\u03c1\u03b7\u03bc\u03ac\u03c4\u03c9\u03bd \u03bc\u03ad\u03c3\u03c9 %@"}],bo:[{w:106,h:18,t:"\u039a\u03c1\u03ac\u03c4\u03b7\u03c3\u03b7 \u03bc\u03ad\u03c3\u03c9 %@"}],bu:[{w:87.64,h:18,t:"\u0391\u03b3\u03bf\u03c1\u03ac \u03bc\u03ad\u03c3\u03c9 %@"}],ch:[{w:109.66,h:18,t:"\u03a0\u03bb\u03b7\u03c1\u03c9\u03bc\u03ae \u03bc\u03ad\u03c3\u03c9 %@"}],ci:[{w:95.81,h:18,t:"\u03a3\u03c5\u03bd\u03ad\u03c7\u03b5\u03b9\u03b1 \u03bc\u03b5 \xab"},{w:9.42,h:18,t:"\xbb"}],co:[{w:127.23,h:18,t:"\u03a3\u03c5\u03bd\u03b5\u03b9\u03c3\u03c6\u03bf\u03c1\u03ac \u03bc\u03ad\u03c3\u03c9 %@"}],d:[{w:90.83,h:18,t:"\u0394\u03c9\u03c1\u03b5\u03ac \u03bc\u03ad\u03c3\u03c9 %@"}],o:[{w:127.36,h:18,t:"\u03a0\u03b1\u03c1\u03b1\u03b3\u03b3\u03b5\u03bb\u03af\u03b1 \u03bc\u03ad\u03c3\u03c9 %@"}],pa:[{w:89.17,h:18,t:"\u03a0\u03bb\u03b7\u03c1\u03c9\u03bc\u03ae \u03bc\u03b5 %@"}],rl:[{w:153.41,h:18,t:"\u0395\u03c0\u03b1\u03bd\u03b1\u03c6\u03cc\u03c1\u03c4\u03c9\u03c3\u03b7 \u03bc\u03ad\u03c3\u03c9 %@"}],rn:[{w:113.61,h:18,t:"\u0395\u03bd\u03bf\u03b9\u03ba\u03af\u03b1\u03c3\u03b7 \u03bc\u03ad\u03c3\u03c9 %@"}],se:[{w:92.92,h:18,t:"\u0394\u03b9\u03b1\u03bc\u03cc\u03c1\u03c6\u03c9\u03c3\u03b7 %@"}],sb:[{w:112.38,h:18,t:"\u03a3\u03c5\u03bd\u03b4\u03c1\u03bf\u03bc\u03ae \u03bc\u03ad\u03c3\u03c9 %@"}],sp:[{w:126.31,h:18,t:"\u03a5\u03c0\u03bf\u03c3\u03c4\u03ae\u03c1\u03b9\u03be\u03b7 \u03bc\u03ad\u03c3\u03c9 %@"}],ti:[{w:132.8,h:18,t:"\u03a6\u03b9\u03bb\u03bf\u03b4\u03ce\u03c1\u03b7\u03bc\u03b1 \u03bc\u03ad\u03c3\u03c9 %@"}],to:[{w:116.41,h:18,t:"\u0391\u03bd\u03b1\u03bd\u03ad\u03c9\u03c3\u03b7 \u03bc\u03ad\u03c3\u03c9 %@"}]},s:"15px",ls:"0.22px"},"zh-HK":{l:{a:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u589e\u503c"}],bo:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8a02\u4f4d"}],bu:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8cfc\u8cb7"}],ch:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u7d50\u5e33"}],ci:[{w:32.61,h:18,t:"\u4f7f\u7528 "},{w:32.61,h:18,t:" \u7e7c\u7e8c"}],co:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u6350\u8d08"}],d:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u6350\u6b3e"}],o:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8a02\u8cfc"}],pa:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u4ed8\u6b3e"}],rl:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u589e\u503c"}],rn:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u79df\u501f"}],se:[{w:32.61,h:18,t:"\u8a2d\u5b9a %@"}],sb:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8a02\u95b2"}],sp:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u652f\u6301"}],ti:[{w:17.81,h:18,t:"\u7528 "},{w:62.2,h:18,t:" \u652f\u4ed8\u8cbc\u58eb"}],to:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u589e\u503c"}]},s:"14.8px"},"zh-CN":{l:{a:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u5145\u503c"}],bo:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u9884\u8ba2"}],bu:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8d2d\u4e70"}],ch:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u7ed3\u8d26"}],ci:[{w:32.61,h:18,t:"\u901a\u8fc7 "},{w:32.61,h:18,t:" \u7ee7\u7eed"}],co:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u6350\u8d60"}],d:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u6350\u6b3e"}],o:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8ba2\u8d2d"}],pa:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u652f\u4ed8"}],rl:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u5145\u503c"}],rn:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u79df\u501f"}],se:[{w:32.61,h:18,t:"\u8bbe\u7f6e %@"}],sb:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8ba2\u9605"}],sp:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u652f\u6301"}],ti:[{w:17.81,h:18,t:"\u7528 "},{w:47.41,h:18,t:" \u4ed8\u5c0f\u8d39"}],to:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u5145\u503c"}]},s:"14.8px"},"pt-BR":{l:{a:[{w:152.69,h:18,t:"Adicione Dinheiro com %@"}],bo:[{w:94.23,h:18,t:"Reservar com %@"}],bu:[{w:93.73,h:18,t:"Comprar com %@"}],ch:[{w:73.58,h:18,t:"Pagar com %@"}],ci:[{w:101.13,h:18,t:"Continuar com %@"}],co:[{w:101.52,h:18,t:"Contribua com %@"}],d:[{w:67.33,h:18,t:"Doar com %@"}],o:[{w:119.66,h:18,t:"Encomendar com %@"}],pa:[{w:73.58,h:18,t:"Pagar com %@"}],rl:[{w:108.69,h:18,t:"Recarregar com %@"}],rn:[{w:78.98,h:18,t:"Alugar com %@"}],se:[{w:74.22,h:18,t:"Configurar %@"}],sb:[{w:85.17,h:18,t:"Assinar com %@"}],sp:[{w:78.98,h:18,t:"Apoiar com %@"}],ti:[{w:108.94,h:18,t:"Dar gorjeta com %@"}],to:[{w:108.69,h:18,t:"Recarregar com %@"}]},s:"15px",ls:"0.22px"},"en-AU":{l:{a:[{w:110.86,h:18,t:"Add Money with %@"}],bo:[{w:68.8,h:18,t:"Book with %@"}],bu:[{w:60.39,h:18,t:"Buy with %@"}],ch:[{w:102.89,h:18,t:"Check out with %@"}],ci:[{w:95.58,h:18,t:"Continue with %@"}],co:[{w:105.94,h:18,t:"Contribute with %@"}],d:[{w:83,h:18,t:"Donate with %@"}],o:[{w:72.86,h:18,t:"Order with %@"}],pa:[{w:59,h:18,t:"Pay with %@"}],rl:[{w:80.89,h:18,t:"Reload with %@"}],rn:[{w:65.67,h:18,t:"Rent with %@"}],se:[{w:45.88,h:18,t:"Set up %@"}],sb:[{w:102.14,h:18,t:"Subscribe with %@"}],sp:[{w:88.67,h:18,t:"Support with %@"}],ti:[{w:55.58,h:18,t:"Tip with %@"}],to:[{w:81.66,h:18,t:"Top Up with %@"}]},s:"15px",ls:"0.22px"},"he-IL":{l:{a:[{w:148.58,h:17.22,t:"\u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05db\u05e1\u05e3 \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea %@"}],bo:[{w:111.2,h:17.22,t:"\u05d4\u05d6\u05de\u05df/\u05d9 \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea %@"}],bu:[{w:112.61,h:17,t:"\u05e8\u05db\u05d9\u05e9\u05d4 \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea %@"}],ch:[{w:68.77,h:17.22,t:"\u05dc\u05e7\u05d5\u05e4\u05d4 \u05e2\u05dd %@"}],ci:[{w:77.39,h:17.22,t:"\u05d4\u05de\u05e9\u05da/\u05d9 \u05e2\u05dd %@"}],co:[{w:69.34,h:17,t:"\u05dc\u05ea\u05e8\u05d5\u05dd \u05e2\u05dd %@"}],d:[{w:70.98,h:17,t:"\u05ea\u05e8\u05d5\u05dd/\u05d9 \u05e2\u05dd %@"}],o:[{w:113.98,h:17.22,t:"\u05dc\u05d4\u05d6\u05de\u05d9\u05df \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea %@"}],pa:[{w:109.45,h:17,t:"\u05e9\u05dc\u05dd/\u05d9 \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea %@"}],rl:[{w:63.39,h:17.22,t:"\u05dc\u05d8\u05e2\u05d5\u05df \u05e2\u05dd %@"}],rn:[{w:110.7,h:17,t:"\u05dc\u05e9\u05db\u05d5\u05e8 \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea %@"}],se:[{w:76.44,h:17,t:"\u05dc\u05d4\u05d2\u05d3\u05d9\u05e8 \u05d0\u05ea %@"}],sb:[{w:108.44,h:17,t:"\u05e8\u05d9\u05e9\u05d5\u05dd \u05db\u05de\u05d9\u05e0\u05d5\u05d9 \u05e2\u05dd %@"}],sp:[{w:112.34,h:17.22,t:"\u05dc\u05ea\u05de\u05d5\u05da \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea %@"}],ti:[{w:150.63,h:17,t:"\u05dc\u05d4\u05e9\u05d0\u05d9\u05e8 \u05d8\u05d9\u05e4 \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea %@"}],to:[{w:106,h:17,t:"\u05dc\u05de\u05dc\u05d0 \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea %@"}]},s:"14px",rtl:!0,w:700},"ar-AB":{l:{a:[{w:99.73,h:15,t:"\u0625\u0636\u0627\u0641\u0629 \u0645\u0627\u0644 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],bo:[{w:72.73,h:15,t:"\u062d\u062c\u0632 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],bu:[{w:74.05,h:15,t:"\u0634\u0631\u0627\u0621 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],ch:[{w:111.41,h:15,t:"\u062f\u0641\u0639 \u0627\u0644\u062d\u0633\u0627\u0628 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],ci:[{w:33.95,h:15,t:"\u0645\u062a\u0627\u0628\u0639\u0629 %@"}],co:[{w:51.61,h:15,t:"\u0645\u0633\u0627\u0647\u0645\u0629 \u0628\u0640 %@"}],d:[{w:73.14,h:15,t:"\u062a\u0628\u0631\u0639 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],o:[{w:74.09,h:15,t:"\u0637\u0644\u0628 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],pa:[{w:69.69,h:15,t:"\u062f\u0641\u0639 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],rl:[{w:112.33,h:15,t:"\u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u062a\u0639\u0628\u0626\u0629 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],rn:[{w:88.36,h:15,t:"\u0627\u0633\u062a\u0626\u062c\u0627\u0631 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],se:[{w:29.02,h:15,t:"\u0625\u0639\u062f\u0627\u062f %@"}],sb:[{w:85.2,h:15,t:"\u0627\u0634\u062a\u0631\u0627\u0643 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],sp:[{w:71.73,h:15.08,t:"\u062f\u0639\u0645 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],ti:[{w:113.48,h:15,t:"\u062f\u0641\u0639 \u0627\u0644\u0625\u0643\u0631\u0627\u0645\u064a\u0629 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],to:[{w:112.78,h:15,t:"\u062a\u0639\u0628\u0626\u0629 \u0627\u0644\u0631\u0635\u064a\u062f \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}]},s:"12px",rtl:!0,w:700},"da-DK":{l:{a:[{w:113.38,h:18,t:"Tilf\xf8j penge med %@"}],bo:[{w:72.86,h:18,t:"Bestil med %@"}],bu:[{w:62.19,h:18,t:"K\xf8b med %@"}],ch:[{w:69.8,h:18,t:"Betal med %@"}],ci:[{w:88.09,h:18,t:"Forts\xe6t med %@"}],co:[{w:79.16,h:18,t:"Bidrag med %@"}],d:[{w:76.38,h:18,t:"Doner med %@"}],o:[{w:72.86,h:18,t:"Bestil med %@"}],pa:[{w:69.8,h:18,t:"Betal med %@"}],rl:[{w:87.45,h:18,t:"Tank op med %@"}],rn:[{w:55.41,h:18,t:"Lej med %@"}],se:[{w:43.45,h:18,t:"Indstil %@"}],sb:[{w:93.02,h:18,t:"Abonner med %@"}],sp:[{w:63.41,h:18,t:"St\xf8t med %@"}],ti:[{w:143.91,h:18,t:"Giv drikkepenge med %@"}],to:[{w:84.28,h:18,t:"Fyld op med %@"}]},s:"15px",ls:"0.22px"},"es-MX":{l:{a:[{w:129.58,h:18,t:"Agregar dinero con %@"}],bo:[{w:90.03,h:18,t:"Reservar con %@"}],bu:[{w:89.53,h:18,t:"Comprar con %@"}],ch:[{w:69.38,h:18,t:"Pagar con %@"}],ci:[{w:96.92,h:18,t:"Continuar con %@"}],co:[{w:97.92,h:18,t:"Contribuir con %@"}],d:[{w:71.52,h:18,t:"Donar con %@"}],o:[{w:65.34,h:18,t:"Pedir con %@"}],pa:[{w:69.38,h:18,t:"Pagar con %@"}],rl:[{w:91.2,h:18,t:"Recargar con %@"}],rn:[{w:75.05,h:18,t:"Rentar con %@"}],se:[{w:74.22,h:18,t:"Configurar %@"}],sb:[{w:105.81,h:18,t:"Suscribirse con %@"}],sp:[{w:78.77,h:18,t:"Apoyar con %@"}],ti:[{w:108.42,h:18,t:"Dar propina con %@"}],to:[{w:124.44,h:18,t:"Cubrir el resto con %@"}]},s:"15px",ls:"0.22px"},"uk-UA":{l:{a:[{w:121.47,h:18,t:"\u041f\u043e\u043f\u043e\u0432\u043d\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}],bo:[{w:113.38,h:18,t:"\u0417\u0430\u043c\u043e\u0432\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}],bu:[{w:94.89,h:18,t:"\u041a\u0443\u043f\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}],ch:[{w:119.34,h:18,t:"\u041e\u0444\u043e\u0440\u043c\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}],ci:[{w:101,h:18,t:"\u041f\u0440\u043e\u0434\u043e\u0432\u0436\u0438\u0442\u0438 \u0437 %@"}],co:[{w:155.2,h:18,t:"\u0417\u0440\u043e\u0431\u0438\u0442\u0438 \u0432\u043d\u0435\u0441\u043e\u043a \u0447\u0435\u0440\u0435\u0437 %@"}],d:[{w:145.48,h:18,t:"\u041f\u043e\u0436\u0435\u0440\u0442\u0432\u0443\u0432\u0430\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}],o:[{w:113.38,h:18,t:"\u0417\u0430\u043c\u043e\u0432\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}],pa:[{w:96.17,h:18,t:"\u041e\u043f\u043b\u0430\u0442\u0430 \u0447\u0435\u0440\u0435\u0437 %@"}],rl:[{w:121.47,h:18,t:"\u041f\u043e\u043f\u043e\u0432\u043d\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}],rn:[{w:129.73,h:18,t:"\u041e\u0440\u0435\u043d\u0434\u0443\u0432\u0430\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}],se:[{w:95.08,h:18,t:"\u041d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u0442\u0438 %@"}],sb:[{w:132.28,h:18,t:"\u041f\u0456\u0434\u043f\u0438\u0441\u0430\u0442\u0438\u0441\u044f \u0447\u0435\u0440\u0435\u0437 %@"}],sp:[{w:126.63,h:18,t:"\u041f\u0456\u0434\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}],ti:[{w:161.66,h:18,t:"\u0417\u0430\u043b\u0438\u0448\u0438\u0442\u0438 \u0447\u0430\u0439\u043e\u0432\u0456 \u0447\u0435\u0440\u0435\u0437 %@"}],to:[{w:121.47,h:18,t:"\u041f\u043e\u043f\u043e\u0432\u043d\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}]},s:"15px"},"tr-TR":{l:{a:[{w:82.14,h:18,t:"%@ ile Para Ekle"}],bo:[{w:134.94,h:18,t:"%@ ile Rezervasyon Yap"}],bu:[{w:72.36,h:18,t:"%@ ile Sat\u0131n Al"}],ch:[{w:49.59,h:18,t:"%@ ile \xd6de"}],ci:[{w:64.34,h:18,t:"%@ ile s\xfcrd\xfcr"}],co:[{w:113.28,h:18,t:"%@ ile Katk\u0131da Bulun"}],d:[{w:86.64,h:18,t:"%@ ile Ba\u011f\u0131\u015f Yap"}],o:[{w:92.42,h:18,t:"%@ ile Sipari\u015f Ver"}],pa:[{w:49.59,h:18,t:"%@ ile \xd6de"}],rl:[{w:114.63,h:18,t:"%@ ile Yeniden Y\xfckle"}],rn:[{w:59.02,h:18,t:"%@ ile Kirala"}],se:[{w:48.86,h:18,t:"Ayarla: %@"}],sb:[{w:83.16,h:18,t:"%@ ile Abone Ol"}],sp:[{w:86.34,h:18,t:"%@ ile Destek Ol"}],ti:[{w:91.27,h:18,t:"%@ ile Bah\u015fi\u015f Ver"}],to:[{w:66.09,h:18,t:"%@ ile Doldur"}]},s:"15px",ls:"0.22px"},"th-TH":{l:{a:[{w:64.11,h:15,t:"\u0e40\u0e15\u0e34\u0e21\u0e40\u0e07\u0e34\u0e19\u0e14\u0e49\u0e27\u0e22 %@"}],bo:[{w:45.84,h:15,t:"\u0e08\u0e2d\u0e07\u0e14\u0e49\u0e27\u0e22 %@"}],bu:[{w:40.47,h:18.41,t:"\u0e0b\u0e37\u0e49\u0e2d\u0e14\u0e49\u0e27\u0e22 %@"}],ch:[{w:69.86,h:15,t:"\u0e0a\u0e33\u0e23\u0e30\u0e40\u0e07\u0e34\u0e19\u0e14\u0e49\u0e27\u0e22 %@"}],ci:[{w:96.7,h:15,t:"\u0e14\u0e33\u0e40\u0e19\u0e34\u0e19\u0e01\u0e32\u0e23\u0e15\u0e48\u0e2d\u0e14\u0e49\u0e27\u0e22 %@"}],co:[{w:76.97,h:15,t:"\u0e21\u0e35\u0e2a\u0e48\u0e27\u0e19\u0e23\u0e48\u0e27\u0e21\u0e14\u0e49\u0e27\u0e22 %@"}],d:[{w:61.7,h:15,t:"\u0e1a\u0e23\u0e34\u0e08\u0e32\u0e04\u0e14\u0e49\u0e27\u0e22 %@"}],o:[{w:39.22,h:17.08,t:"\u0e2a\u0e31\u0e48\u0e07\u0e14\u0e49\u0e27\u0e22 %@"}],pa:[{w:51.52,h:15,t:"\u0e0a\u0e33\u0e23\u0e30\u0e14\u0e49\u0e27\u0e22 %@"}],rl:[{w:79.27,h:15.05,t:"\u0e42\u0e2b\u0e25\u0e14\u0e43\u0e2b\u0e21\u0e48\u0e14\u0e49\u0e27\u0e22 %@"}],rn:[{w:43.58,h:15,t:"\u0e40\u0e0a\u0e48\u0e32\u0e14\u0e49\u0e27\u0e22 %@"}],se:[{w:31.77,h:17.7,t:"\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32 %@"}],sb:[{w:70.42,h:15,t:"\u0e2a\u0e21\u0e31\u0e04\u0e23\u0e23\u0e31\u0e1a\u0e14\u0e49\u0e27\u0e22 %@"}],sp:[{w:73.39,h:15.64,t:"\u0e2a\u0e19\u0e31\u0e1a\u0e2a\u0e19\u0e38\u0e19\u0e14\u0e49\u0e27\u0e22 %@"}],ti:[{w:57.23,h:15,t:"\u0e43\u0e2b\u0e49\u0e17\u0e34\u0e1b\u0e14\u0e49\u0e27\u0e22 %@"}],to:[{w:45.75,h:15,t:"\u0e40\u0e15\u0e34\u0e21\u0e14\u0e49\u0e27\u0e22 %@"}]},s:"13px"},"ro-RO":{l:{a:[{w:114.67,h:18,t:"Ad\u0103uga\u021bi bani cu %@"}],bo:[{w:84.72,h:18,t:"Rezerva\u021bi cu %@"}],bu:[{w:92.45,h:18,t:"Cump\u0103ra\u021bi cu %@"}],ch:[{w:151.14,h:18,t:"Finaliza\u021bi tranzac\u021bia cu %@"}],ci:[{w:91.88,h:18,t:"Continua\u021bi cu %@"}],co:[{w:92.88,h:18,t:"Contribui\u021bi cu %@"}],d:[{w:66.47,h:18,t:"Dona\u021bi cu %@"}],o:[{w:95.94,h:18,t:"Comanda\u021bi cu %@"}],pa:[{w:60.25,h:18,t:"Pl\u0103ti\u021bi cu %@"}],rl:[{w:97.3,h:18,t:"Re\xeenc\u0103rca\u021bi cu %@"}],rn:[{w:80.72,h:18,t:"\xcenchiria\u021bi cu %@"}],se:[{w:77.58,h:18,t:"Configura\u021bi %@"}],sb:[{w:96.95,h:18,t:"Abona\u021bi\u2011v\u0103 cu %@"}],sp:[{w:92.88,h:18,t:"Contribui\u021bi cu %@"}],ti:[{w:110.34,h:18,t:"Oferi\u021bi bac\u0219i\u0219 cu %@"}],to:[{w:97.3,h:18,t:"Re\xeenc\u0103rca\u021bi cu %@"}]},s:"15px",ls:"0.22px"},"fi-FI":{l:{a:[{w:78.92,h:18,t:"Lis\xe4\xe4 rahaa "},{w:14.75,h:18,t:"lla"}],bo:[{w:74.11,h:18,t:"Tee varaus "},{w:14.75,h:18,t:"lla"}],bu:[{w:34.66,h:18,t:"Osta "},{w:14.75,h:18,t:"lla"}],ch:[{w:121.22,h:18,t:"Siirry maksamaan "},{w:14.75,h:18,t:"lla"}],ci:[{w:39.81,h:18,t:"Jatka "},{w:14.75,h:18,t:"lla"}],co:[{w:56.03,h:18,t:"Lahjoita "},{w:14.75,h:18,t:"lla"}],d:[{w:56.03,h:18,t:"Lahjoita "},{w:14.75,h:18,t:"lla"}],o:[{w:34.69,h:18,t:"Tilaa "},{w:14.75,h:18,t:"lla"}],pa:[{w:46.7,h:18,t:"Maksa "},{w:14.75,h:18,t:"lla"}],rl:[{w:40.13,h:18,t:"Lataa "},{w:14.75,h:18,t:"lla"}],rn:[{w:57.97,h:18,t:"Vuokraa "},{w:14.75,h:18,t:"lla"}],se:[{w:27.25,h:18,t:"Ota "},{w:61.7,h:18,t:" k\xe4ytt\xf6\xf6n"}],sb:[{w:34.69,h:18,t:"Tilaa "},{w:14.75,h:18,t:"lla"}],sp:[{w:27.2,h:18,t:"Tue "},{w:14.75,h:18,t:"lla"}],ti:[{w:70.44,h:18,t:"Anna tippi "},{w:14.75,h:18,t:"lla"}],to:[{w:68.19,h:18,t:"T\xe4ydenn\xe4 "},{w:14.75,h:18,t:"lla"}]},s:"15px",ls:"0.22px"},"pl-PL":{l:{a:[{w:91.52,h:18,t:"Dodaj \u015brodki ("},{w:5.16,h:18,t:")"}],bo:[{w:146.19,h:18,t:"Zarezerwuj, u\u017cywaj\u0105c %@"}],bu:[{w:98.39,h:18,t:"Kup, u\u017cywaj\u0105c %@"}],ch:[{w:175.7,h:18,t:"Sfinalizuj zakup, u\u017cywaj\u0105c %@"}],ci:[{w:80.53,h:18,t:"Kontynuuj - %@"}],co:[{w:92.56,h:18,t:"Wnie\u015b wk\u0142ad ("},{w:5.16,h:18,t:")"}],d:[{w:165.52,h:18,t:"Przeka\u017c datek, u\u017cywaj\u0105c %@"}],o:[{w:58.28,h:18,t:"Zam\xf3w ("},{w:5.16,h:18,t:")"}],pa:[{w:117.69,h:18,t:"Zap\u0142a\u0107, u\u017cywaj\u0105c %@"}],rl:[{w:114.61,h:18,t:"Uzupe\u0142nij \u015brodki ("},{w:5.16,h:18,t:")"}],rn:[{w:77.73,h:18,t:"Wypo\u017cycz ("},{w:5.16,h:18,t:")"}],se:[{w:79.19,h:18,t:"Skonfiguruj %@"}],sb:[{w:147.33,h:18,t:"Subskrybuj, u\u017cywaj\u0105c %@"}],sp:[{w:70.06,h:18,t:"Wesprzyj ("},{w:5.16,h:18,t:")"}],ti:[{w:89.44,h:18,t:"Daj napiwek ("},{w:5.16,h:18,t:")"}],to:[{w:59.44,h:18,t:"Do\u0142aduj ("},{w:5.16,h:18,t:")"}]},s:"15px",ls:"0.22px"},"zh-TW":{l:{a:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u5132\u503c"}],bo:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u9810\u7d04"}],bu:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8cfc\u8cb7"}],ch:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u7d50\u5e33"}],ci:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u7e7c\u7e8c"}],co:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u6350\u52a9"}],d:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u6350\u6b3e"}],o:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8a02\u8cfc"}],pa:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u4ed8\u6b3e"}],rl:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u5145\u503c"}],rn:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u79df\u501f"}],se:[{w:32.61,h:18,t:"\u8a2d\u5b9a %@"}],sb:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8a02\u95b1"}],sp:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u652f\u63f4"}],ti:[{w:17.81,h:18,t:"\u7528 "},{w:62.2,h:18,t:" \u652f\u4ed8\u5c0f\u8cbb"}],to:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u52a0\u503c"}]},s:"14.8px"},"fr-CA":{l:{a:[{w:154.91,h:18,t:"Ajouter des fonds avec %@"}],bo:[{w:96.92,h:18,t:"R\xe9server avec %@"}],bu:[{w:90.47,h:18,t:"Acheter avec %@"}],ch:[{w:75.22,h:18,t:"Payer avec %@"}],ci:[{w:108.56,h:18,t:"Poursuivre avec %@"}],co:[{w:109.41,h:18,t:"Contribuer avec %@"}],d:[{w:118.92,h:18,t:"Faire un don avec %@"}],o:[{w:120.53,h:18,t:"Commander avec %@"}],pa:[{w:75.22,h:18,t:"Payer avec %@"}],rl:[{w:106.7,h:18,t:"Recharger avec %@"}],rn:[{w:75.95,h:18,t:"Louer avec %@"}],se:[{w:74.19,h:18,t:"Configurer %@"}],sb:[{w:105.61,h:18,t:"S\u2019abonner avec %@"}],sp:[{w:93.98,h:18,t:"Soutenir avec %@"}],ti:[{w:174.38,h:18,t:"Donner un pourboire avec %@"}],to:[{w:106.7,h:18,t:"Recharger avec %@"}]},s:"15px",ls:"0.22px"},"en-GB":{l:{a:[{w:110.86,h:18,t:"Add Money with %@"}],bo:[{w:68.8,h:18,t:"Book with %@"}],bu:[{w:60.39,h:18,t:"Buy with %@"}],ch:[{w:102.89,h:18,t:"Check out with %@"}],ci:[{w:95.58,h:18,t:"Continue with %@"}],co:[{w:105.94,h:18,t:"Contribute with %@"}],d:[{w:83,h:18,t:"Donate with %@"}],o:[{w:72.86,h:18,t:"Order with %@"}],pa:[{w:59,h:18,t:"Pay with %@"}],rl:[{w:80.89,h:18,t:"Reload with %@"}],rn:[{w:65.67,h:18,t:"Rent with %@"}],se:[{w:45.88,h:18,t:"Set up %@"}],sb:[{w:102.14,h:18,t:"Subscribe with %@"}],sp:[{w:88.67,h:18,t:"Support with %@"}],ti:[{w:55.58,h:18,t:"Tip with %@"}],to:[{w:81.66,h:18,t:"Top Up with %@"}]},s:"15px",ls:"0.22px"},"es-ES":{l:{a:[{w:120.05,h:18,t:"A\xf1adir dinero con %@"}],bo:[{w:90.03,h:18,t:"Reservar con %@"}],bu:[{w:89.53,h:18,t:"Comprar con %@"}],ch:[{w:69.38,h:18,t:"Pagar con %@"}],ci:[{w:96.92,h:18,t:"Continuar con %@"}],co:[{w:97.92,h:18,t:"Contribuir con %@"}],d:[{w:71.52,h:18,t:"Donar con %@"}],o:[{w:65.34,h:18,t:"Pedir con %@"}],pa:[{w:69.38,h:18,t:"Pagar con %@"}],rl:[{w:91.2,h:18,t:"Recargar con %@"}],rn:[{w:81.73,h:18,t:"Alquilar con %@"}],se:[{w:74.22,h:18,t:"Configurar %@"}],sb:[{w:105.81,h:18,t:"Suscribirse con %@"}],sp:[{w:97.92,h:18,t:"Contribuir con %@"}],ti:[{w:108.42,h:18,t:"Dar propina con %@"}],to:[{w:91.2,h:18,t:"Recargar con %@"}]},s:"15px",ls:"0.22px"},"de-DE":{l:{a:[{w:58.7,h:18,t:"Geld mit "},{w:77.88,h:18,t:" hinzuf\xfcgen"}],bo:[{w:24.41,h:18,t:"Mit "},{w:53.23,h:18,t:" buchen"}],bu:[{w:24.41,h:18,t:"Mit "},{w:48.45,h:18,t:" kaufen"}],ch:[{w:24.41,h:18,t:"Mit "},{w:63.94,h:18,t:" bezahlen"}],ci:[{w:70.61,h:18,t:"Weiter mit %@"}],co:[{w:24.41,h:18,t:"Mit "},{w:66.64,h:18,t:" beitragen"}],d:[{w:24.41,h:18,t:"Mit "},{w:61,h:18,t:" spenden"}],o:[{w:24.41,h:18,t:"Mit "},{w:63.91,h:18,t:" bestellen"}],pa:[{w:24.41,h:18,t:"Mit "},{w:63.94,h:18,t:" bezahlen"}],rl:[{w:24.41,h:18,t:"Mit "},{w:86.28,h:18,t:" erneut laden"}],rn:[{w:24.41,h:18,t:"Mit "},{w:43.22,h:18,t:" leihen"}],se:[{w:69.55,h:18,t:"%@ einrichten"}],sb:[{w:24.41,h:18,t:"Mit "},{w:77.94,h:18,t:" abonnieren"}],sp:[{w:24.41,h:18,t:"Mit "},{w:87.59,h:18,t:" unterst\xfctzen"}],ti:[{w:64.16,h:18,t:"%@ Trinkgeld"}],to:[{w:24.41,h:18,t:"Mit "},{w:61.42,h:18,t:" auff\xfcllen"}]},s:"15px",ls:"0.22px"},"nb-NO":{l:{a:[{w:135.02,h:18,t:"Legg til penger med %@"}],bo:[{w:76.34,h:18,t:"Bestill med %@"}],bu:[{w:66.05,h:18,t:"Kj\xf8p med %@"}],ch:[{w:69.8,h:18,t:"Betal med %@"}],ci:[{w:62.28,h:18,t:"Fortsett i %@"}],co:[{w:70.47,h:18,t:"Bidra med %@"}],d:[{w:76.38,h:18,t:"Doner med %@"}],o:[{w:76.34,h:18,t:"Bestill med %@"}],pa:[{w:69.8,h:18,t:"Betal med %@"}],rl:[{w:78.59,h:18,t:"Fyll p\xe5 med %@"}],rn:[{w:55.41,h:18,t:"Lei med %@"}],se:[{w:72.77,h:18,t:"Konfigurer %@"}],sb:[{w:93.02,h:18,t:"Abonner med %@"}],sp:[{w:68.44,h:18,t:"St\xf8tt med %@"}],ti:[{w:85.83,h:18,t:"Gi driks med %@"}],to:[{w:78.59,h:18,t:"Fyll p\xe5 med %@"}]},s:"15px",ls:"0.22px"},"ca-ES":{l:{a:[{w:120.41,h:18,t:"Afegir diners amb %@"}],bo:[{w:94.61,h:18,t:"Reservar amb %@"}],bu:[{w:94.11,h:18,t:"Comprar amb %@"}],ch:[{w:73.97,h:18,t:"Pagar amb %@"}],ci:[{w:96.38,h:18,t:"Continua amb %@"}],co:[{w:102.52,h:18,t:"Contribuir amb %@"}],d:[{w:141.59,h:18,t:"Fer una donaci\xf3 amb %@"}],o:[{w:96.41,h:18,t:"Demanar amb %@"}],pa:[{w:73.97,h:18,t:"Pagar amb %@"}],rl:[{w:109.06,h:18,t:"Recarregar amb %@"}],rn:[{w:77.56,h:18,t:"Llogar amb %@"}],se:[{w:74.22,h:18,t:"Configurar %@"}],sb:[{w:117.7,h:18,t:"Subscriure\u2019s amb %@"}],sp:[{w:129.63,h:18,t:"Compatibilitat amb %@"}],ti:[{w:132.08,h:18,t:"Deixar propina amb %@"}],to:[{w:109.06,h:18,t:"Recarregar amb %@"}]},s:"15px",ls:"0.22px"},"ja-JP":{l:{a:[{w:75,h:18,t:"%@\u3067\u30c1\u30e3\u30fc\u30b8"}],bo:[{w:45,h:18,t:"%@\u3067\u4e88\u7d04"}],bu:[{w:45,h:18,t:"%@\u3067\u8cfc\u5165"}],ch:[{w:90,h:18,t:"%@\u3067\u8cfc\u5165\u306b\u9032\u3080"}],ci:[{w:60,h:18,t:"%@\u3067\u7d9a\u3051\u308b"}],co:[{w:45,h:18,t:"%@\u3067\u732e\u91d1"}],d:[{w:45,h:18,t:"%@\u3067\u5bc4\u4ed8"}],o:[{w:45,h:18,t:"%@\u3067\u6ce8\u6587"}],pa:[{w:60,h:18,t:"%@\u3067\u652f\u6255\u3046"}],rl:[{w:75,h:18,t:"%@\u3067\u30c1\u30e3\u30fc\u30b8"}],rn:[{w:75,h:18,t:"%@\u3067\u30ec\u30f3\u30bf\u30eb"}],se:[{w:45,h:18,t:"%@\u3092\u8a2d\u5b9a"}],sb:[{w:150,h:18,t:"%@\u3067\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3"}],sp:[{w:45,h:18,t:"%@\u3067\u652f\u63f4"}],ti:[{w:60,h:18,t:"%@\u3067\u30c1\u30c3\u30d7"}],to:[{w:75,h:18,t:"%@\u3067\u30c1\u30e3\u30fc\u30b8"}]},s:"15px",w:600},"vi-VN":{l:{a:[{w:95.7,h:18,t:"N\u1ea1p ti\u1ec1n b\u1eb1ng %@"}],bo:[{w:91.86,h:18,t:"\u0110\u1eb7t ch\u1ed7 b\u1eb1ng %@"}],bu:[{w:69.39,h:18,t:"Mua b\u1eb1ng %@"}],ch:[{w:115.56,h:18,t:"Thanh to\xe1n b\u1eb1ng %@"}],ci:[{w:93.8,h:18,t:"Ti\u1ebfp t\u1ee5c b\u1eb1ng %@"}],co:[{w:105.2,h:18,t:"\u0110\xf3ng g\xf3p b\u1eb1ng %@"}],d:[{w:113.02,h:18,t:"Quy\xean g\xf3p b\u1eb1ng %@"}],o:[{w:100.55,h:18,t:"\u0110\u1eb7t h\xe0ng b\u1eb1ng %@"}],pa:[{w:115.56,h:18,t:"Thanh to\xe1n b\u1eb1ng %@"}],rl:[{w:85.63,h:18,t:"N\u1ea1p l\u1ea1i b\u1eb1ng %@"}],rn:[{w:74.27,h:18,t:"Thu\xea b\u1eb1ng %@"}],se:[{w:60.72,h:18,t:"Thi\u1ebft l\u1eadp %@"}],sb:[{w:94.59,h:18,t:"\u0110\u0103ng k\xfd b\u1eb1ng %@"}],sp:[{w:81.38,h:18,t:"H\u1ed7 tr\u1ee3 b\u1eb1ng %@"}],ti:[{w:61,h:18,t:"Tip b\u1eb1ng %@"}],to:[{w:95.7,h:18,t:"N\u1ea1p ti\u1ec1n b\u1eb1ng %@"}]},s:"15px",ls:"0.22px"},"nl-NL":{l:{a:[{w:123.2,h:18,t:"Voeg geld toe met %@"}],bo:[{w:99.25,h:18,t:"Reserveer met %@"}],bu:[{w:66.8,h:18,t:"Koop met %@"}],ch:[{w:74.06,h:18,t:"Betaal met %@"}],ci:[{w:96.69,h:18,t:"Ga verder met %@"}],co:[{w:144.58,h:18,t:"Doe een bijdrage met %@"}],d:[{w:80.8,h:18,t:"Doneer met %@"}],o:[{w:73.63,h:18,t:"Bestel met %@"}],pa:[{w:74.06,h:18,t:"Betaal met %@"}],rl:[{w:125.09,h:18,t:"Laad opnieuw met %@"}],rn:[{w:64.84,h:18,t:"Huur met %@"}],se:[{w:82.33,h:18,t:"Configureer %@"}],sb:[{w:112.31,h:18,t:"Abonneer je met %@"}],sp:[{w:71.16,h:18,t:"Steun met %@"}],ti:[{w:92.61,h:18,t:"Geef fooi met %@"}],to:[{w:88.31,h:18,t:"Verhoog met %@"}]},s:"15px",ls:"0.22px"},"cs-CZ":{l:{a:[{w:114.92,h:18,t:"P\u0159idat hotovost s %@"}],bo:[{w:100.98,h:18,t:"Zarezervovat s %@"}],bu:[{w:56.98,h:18,t:"Koupit s %@"}],ch:[{w:65.02,h:18,t:"Zaplatit s %@"}],ci:[{w:88.44,h:18,t:"Pokra\u010dovat s %@"}],co:[{w:60.81,h:18,t:"P\u0159isp\u011bt s %@"}],d:[{w:65.84,h:18,t:"Darovat s %@"}],o:[{w:75.61,h:18,t:"Objednat s %@"}],pa:[{w:65.02,h:18,t:"Zaplatit s %@"}],rl:[{w:49.97,h:18,t:"Dob\xedt s %@"}],rn:[{w:68.38,h:18,t:"Vyp\u016fj\u010dit s %@"}],se:[{w:58.19,h:18,t:"Nastavit %@"}],sb:[{w:78.28,h:18,t:"P\u0159edplatit s %@"}],sp:[{w:70.45,h:18,t:"Podpo\u0159it s %@"}],ti:[{w:103.66,h:18,t:"D\xe1t spropitn\xe9 s %@"}],to:[{w:61.77,h:18,t:"Doplnit s %@"}]},s:"15px",ls:"0.22px"},"sv-SE":{l:{a:[{w:138.39,h:18,t:"L\xe4gg till pengar med %@"}],bo:[{w:69.44,h:18,t:"Boka med %@"}],bu:[{w:62.11,h:18,t:"K\xf6p med %@"}],ch:[{w:77.78,h:18,t:"Betala med %@"}],ci:[{w:88.16,h:18,t:"Forts\xe4tt med %@"}],co:[{w:70.47,h:18,t:"Bidra med %@"}],d:[{w:84.2,h:18,t:"Donera med %@"}],o:[{w:80.8,h:18,t:"Best\xe4ll med %@"}],pa:[{w:77.78,h:18,t:"Betala med %@"}],rl:[{w:78.59,h:18,t:"Fyll p\xe5 med %@"}],rn:[{w:59.63,h:18,t:"Hyr med %@"}],se:[{w:47.42,h:18,t:"St\xe4ll in %@"}],sb:[{w:121.25,h:18,t:"Prenumerera med %@"}],sp:[{w:67.13,h:18,t:"St\xf6d med %@"}],ti:[{w:98.45,h:18,t:"Ge dricks med %@"}],to:[{w:78.59,h:18,t:"Fyll p\xe5 med %@"}]},s:"15px",ls:"0.22px"},"it-IT":{l:{a:[{w:118.47,h:18,t:"Versa denaro con %@"}],bo:[{w:82.81,h:18,t:"Prenota con %@"}],bu:[{w:89.77,h:18,t:"Acquista con %@"}],ch:[{w:64.23,h:18,t:"Paga con %@"}],ci:[{w:91.78,h:18,t:"Continua con %@"}],co:[{w:111.69,h:18,t:"Contribuisci con %@"}],d:[{w:150.94,h:18,t:"Fai una donazione con %@"}],o:[{w:75.78,h:18,t:"Ordina con %@"}],pa:[{w:64.23,h:18,t:"Paga con %@"}],rl:[{w:84.5,h:18,t:"Ricarica con %@"}],rn:[{w:90.75,h:18,t:"Noleggia con %@"}],se:[{w:69.08,h:18,t:"Configura %@"}],sb:[{w:91.91,h:18,t:"Abbonati con %@"}],sp:[{w:84.77,h:18,t:"Sostieni con %@"}],ti:[{w:153.83,h:18,t:"Lascia una mancia con %@"}],to:[{w:84.5,h:18,t:"Ricarica con %@"}]},s:"15px",ls:"0.22px"},"hr-HR":{l:{a:[{w:145.14,h:18,t:"Dodaj novac koriste\u0107i %@"}],bo:[{w:128.28,h:18,t:"Rezerviraj koriste\u0107i %@"}],bu:[{w:92.84,h:18,t:"Kupi koriste\u0107i %@"}],ch:[{w:114.06,h:18,t:"Naplati koriste\u0107i: %@"}],ci:[{w:63.89,h:18,t:"Nastavi s %@"}],co:[{w:126.33,h:18,t:"Doprinesi koriste\u0107i %@"}],d:[{w:109.88,h:18,t:"Doniraj koriste\u0107i %@"}],o:[{w:106.19,h:18,t:"Naru\u010di koriste\u0107i %@"}],pa:[{w:91.72,h:18,t:"Plati koriste\u0107i %@"}],rl:[{w:110.16,h:18,t:"Napuni koriste\u0107i %@"}],rn:[{w:109.28,h:18,t:"Unajmi koriste\u0107i %@"}],se:[{w:48.05,h:18,t:"Podesi %@"}],sb:[{w:137.25,h:18,t:"Pretplati se koriste\u0107i %@"}],sp:[{w:104.63,h:18,t:"Podr\u017ei koriste\u0107i %@"}],ti:[{w:173.84,h:18,t:"Ostavi napojnicu koriste\u0107i %@"}],to:[{w:127.06,h:18,t:"Nadoplati koriste\u0107i %@"}]},s:"15px",ls:"0.22px"},"id-ID":{l:{a:[{w:146.39,h:18,t:"Tambah uang dengan %@"}],bo:[{w:97.41,h:18,t:"Pesan dengan %@"}],bu:[{w:81.23,h:18,t:"Beli dengan %@"}],ch:[{w:138.91,h:18,t:"Lanjut bayar dengan %@"}],ci:[{w:122.27,h:18,t:"Lanjutkan dengan %@"}],co:[{w:145.36,h:18,t:"Berkontribusi dengan %@"}],d:[{w:102.89,h:18,t:"Donasi dengan %@"}],o:[{w:94.8,h:18,t:"Order dengan %@"}],pa:[{w:94.91,h:18,t:"Bayar dengan %@"}],rl:[{w:113.94,h:18,t:"Isi Ulang dengan %@"}],rn:[{w:93.31,h:18,t:"Sewa dengan %@"}],se:[{w:31.2,h:18,t:"Atur %@"}],sb:[{w:149.42,h:18,t:"Berlangganan dengan %@"}],sp:[{w:108.81,h:18,t:"Dukung dengan %@"}],ti:[{w:103.34,h:18,t:"Beri tip dengan %@"}],to:[{w:147.81,h:18,t:"Tambah Dana dengan %@"}]},s:"15px",ls:"0.22px"},"hu-HU":{l:{a:[{w:160.58,h:18,t:"P\xe9nz hozz\xe1ad\xe1sa ezzel: %@"}],bo:[{w:113.28,h:18,t:"Lefoglal\xe1s ezzel: %@"}],bu:[{w:129.64,h:18,t:"Megv\xe1s\xe1rl\xe1s ezzel: %@"}],ch:[{w:116.84,h:18,t:"Kassz\xe1hoz ezzel: %@"}],ci:[{w:105.84,h:18,t:"Folytat\xe1s ezzel: %@"}],co:[{w:130.72,h:18,t:"Hozz\xe1j\xe1rul\xe1s ezzel: %@"}],d:[{w:139.45,h:18,t:"Adom\xe1nyoz\xe1s ezzel: %@"}],o:[{w:131.88,h:18,t:"Megrendel\xe9s ezzel: %@"}],pa:[{w:92.38,h:18,t:"Fizet\xe9s ezzel: %@"}],rl:[{w:109.23,h:18,t:"\xdajrat\xf6lt\xe9s ezzel: %@"}],rn:[{w:120.95,h:18,t:"K\xf6lcs\xf6nz\xe9s ezzel: %@"}],se:[{w:66.75,h:18,t:"%@ be\xe1ll\xedt\xe1sa"}],sb:[{w:109.69,h:18,t:"El\u0151fizet\xe9s ezzel: %@"}],sp:[{w:118.05,h:18,t:"T\xe1mogat\xe1s ezzel: %@"}],ti:[{w:108.28,h:18,t:"Borraval\xf3 ezzel: %@"}],to:[{w:101.67,h:18,t:"Felt\xf6lt\xe9s ezzel: %@"}]},s:"15px",ls:"0.22px"},"ru-RU":{l:{a:[{w:134.39,h:18,t:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0434\u0435\u043d\u044c\u0433\u0438 \u0441 %@"}],bo:[{w:77.81,h:18,t:"\u0417\u0430\u043a\u0430\u0437\u0430\u0442\u044c \u0441 %@"}],bu:[{w:63.44,h:18,t:"\u041a\u0443\u043f\u0438\u0442\u044c \u0441 %@"}],ch:[{w:81.38,h:18,t:"\u041e\u043f\u043b\u0430\u0442\u0438\u0442\u044c \u0441 %@"}],ci:[{w:103.5,h:18,t:"\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u0441 %@"}],co:[{w:89.8,h:18,t:"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0441 %@"}],d:[{w:116.05,h:18,t:"\u041f\u043e\u0436\u0435\u0440\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 %@"}],o:[{w:77.81,h:18,t:"\u0417\u0430\u043a\u0430\u0437\u0430\u0442\u044c \u0441 %@"}],pa:[{w:81.38,h:18,t:"\u041e\u043f\u043b\u0430\u0442\u0438\u0442\u044c \u0441 %@"}],rl:[{w:90.94,h:18,t:"\u041f\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441 %@"}],rn:[{w:98.55,h:18,t:"\u0410\u0440\u0435\u043d\u0434\u043e\u0432\u0430\u0442\u044c \u0441 %@"}],se:[{w:78.13,h:18,t:"\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c %@"}],sb:[{w:106.73,h:18,t:"\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u0441 %@"}],sp:[{w:103.39,h:18,t:"\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0441 %@"}],ti:[{w:144.09,h:18,t:"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0447\u0430\u0435\u0432\u044b\u0435 \u0441 %@"}],to:[{w:90.94,h:18,t:"\u041f\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441 %@"}]},s:"15px",ls:"0.22px"},"ko-KR":{l:{a:[{w:44.6,h:17,t:"%@ \ub85c \ucda9\uc804"}],bo:[{w:44.6,h:17,t:"%@ \ub85c \uc608\uc57d"}],bu:[{w:44.6,h:17,t:"%@ \ub85c \uad6c\uc785"}],ch:[{w:44.6,h:17,t:"%@ \ub85c \uacb0\uc81c"}],ci:[{w:73.04,h:17,t:"%@ \ub85c \uacc4\uc18d \uc9c4\ud589"}],co:[{w:69.16,h:17,t:"%@ \ub85c \ucc38\uc5ec\ud558\uae30"}],d:[{w:69.16,h:17,t:"%@ \ub85c \uae30\ubd80\ud558\uae30"}],o:[{w:44.6,h:17,t:"%@ \ub85c \uc8fc\ubb38"}],pa:[{w:44.6,h:17,t:"%@ \ub85c \uc9c0\ubd88"}],rl:[{w:44.6,h:17,t:"%@ \ub85c \ucda9\uc804"}],rn:[{w:44.6,h:17,t:"%@ \ub85c \ub300\uc5ec"}],se:[{w:28.45,h:17,t:"%@ \uc124\uc815"}],sb:[{w:44.6,h:17,t:"%@ \ub85c \uad6c\ub3c5"}],sp:[{w:69.16,h:17,t:"%@ \ub85c \uc9c0\uc6d0\ud558\uae30"}],ti:[{w:60.76,h:17,t:"%@ \ub85c \ud301 \uc9c0\ubd88"}],to:[{w:104.43,h:17,t:"%@ \ub85c \ucda9\uc804(top-up)"}]},s:"14.2px",w:600,ls:"1px"},"pt-PT":{l:{a:[{w:155.92,h:18,t:"Adicionar dinheiro com %@"}],bo:[{w:94.23,h:18,t:"Reservar com %@"}],bu:[{w:93.73,h:18,t:"Comprar com %@"}],ch:[{w:73.58,h:18,t:"Pagar com %@"}],ci:[{w:101.13,h:18,t:"Continuar com %@"}],co:[{w:102.14,h:18,t:"Contribuir com %@"}],d:[{w:156.5,h:18,t:"Fazer uma doa\xe7\xe3o com %@"}],o:[{w:119.66,h:18,t:"Encomendar com %@"}],pa:[{w:73.58,h:18,t:"Pagar com %@"}],rl:[{w:108.69,h:18,t:"Recarregar com %@"}],rn:[{w:78.98,h:18,t:"Alugar com %@"}],se:[{w:74.22,h:18,t:"Configurar %@"}],sb:[{w:85.17,h:18,t:"Assinar com %@"}],sp:[{w:78.98,h:18,t:"Apoiar com %@"}],ti:[{w:108.94,h:18,t:"Dar gorjeta com %@"}],to:[{w:93.81,h:18,t:"Carregar com %@"}]},s:"15px",ls:"0.22px"},"hi-IN":{l:{a:[{w:49.42,h:14.28,t:"%@ \u0938\u0947 \u0927\u0928 \u091c\u094b\u0921\u093c\u0947\u0902"}],bo:[{w:47.23,h:14.89,t:"%@ \u0938\u0947 \u092c\u0941\u0915 \u0915\u0930\u0947\u0902"}],bu:[{w:38.5,h:14.42,t:"%@ \u0938\u0947 \u0916\u093c\u0930\u0940\u0926\u0947\u0902"}],ch:[{w:96.38,h:14.28,t:"%@ \u0915\u0947 \u0938\u093e\u0925 \u091a\u0947\u0915\u0906\u0909\u091f \u0915\u0930\u0947\u0902"}],ci:[{w:75.66,h:14.42,t:"%@ \u0915\u0947 \u0938\u093e\u0925 \u091c\u093e\u0930\u0940 \u0930\u0916\u0947\u0902"}],co:[{w:65.02,h:14.28,t:"%@ \u0938\u0947 \u092f\u094b\u0917\u0926\u093e\u0928 \u0915\u0930\u0947\u0902"}],d:[{w:38.94,h:14.28,t:"%@ \u0938\u0947 \u0926\u093e\u0928 \u0926\u0947\u0902"}],o:[{w:55.03,h:14.34,t:"%@ \u0938\u0947 \u0911\u0930\u094d\u0921\u0930 \u0915\u0930\u0947\u0902"}],pa:[{w:61.91,h:14.89,t:"%@ \u0938\u0947 \u092d\u0941\u0917\u0924\u093e\u0928 \u0915\u0930\u0947\u0902"}],rl:[{w:58.19,h:14.42,t:"%@ \u0938\u0947 \u0930\u0940\u0932\u094b\u0921 \u0915\u0930\u0947\u0902"}],rn:[{w:67.59,h:14.42,t:"%@ \u0938\u0947 \u0915\u093f\u0930\u093e\u090f \u092a\u0930 \u0932\u0947\u0902"}],se:[{w:50.67,h:14.28,t:"%@ \u0938\u0947\u091f\u0905\u092a \u0915\u0930\u0947\u0902"}],sb:[{w:102.09,h:14.28,t:"%@ \u0915\u0947 \u0938\u093e\u0925 \u0938\u092c\u094d\u0938\u0915\u094d\u0930\u093e\u0907\u092c \u0915\u0930\u0947\u0902"}],sp:[{w:61.06,h:14.34,t:"%@ \u0938\u0947 \u0938\u092e\u0930\u094d\u0925\u0928 \u0915\u0930\u0947\u0902"}],ti:[{w:39.22,h:14.42,t:"%@ \u0938\u0947 \u091f\u093f\u092a \u0926\u0947\u0902"}],to:[{w:65.84,h:14.28,t:"%@ \u0938\u0947 \u091f\u0949\u092a \u0905\u092a \u0915\u0930\u0947\u0902"}]},s:"12px",w:600},"sk-SK":{l:{a:[{w:124.89,h:18,t:"Prida\u0165 peniaze cez %@"}],bo:[{w:104.45,h:18,t:"Rezervova\u0165 cez %@"}],bu:[{w:65.42,h:18,t:"K\xfapi\u0165 cez %@"}],ch:[{w:81.42,h:18,t:"Zaplati\u0165 cez %@"}],ci:[{w:100.61,h:18,t:"Pokra\u010dujte cez %@"}],co:[{w:80.69,h:18,t:"Prispie\u0165 cez %@"}],d:[{w:80.69,h:18,t:"Prispie\u0165 cez %@"}],o:[{w:92.02,h:18,t:"Objedna\u0165 cez %@"}],pa:[{w:81.42,h:18,t:"Zaplati\u0165 cez %@"}],rl:[{w:66.38,h:18,t:"Dobi\u0165 cez %@"}],rn:[{w:79.02,h:18,t:"Po\u017ei\u010da\u0165 cez %@"}],se:[{w:58.52,h:18,t:"Nastavi\u0165 %@"}],sb:[{w:93.55,h:18,t:"Odobera\u0165 cez %@"}],sp:[{w:86.86,h:18,t:"Podpori\u0165 cez %@"}],ti:[{w:119.8,h:18,t:"Da\u0165 sprepitn\xe9 cez %@"}],to:[{w:66.38,h:18,t:"Dobi\u0165 cez %@"}]},s:"15px",ls:"0.22px"},"ms-MY":{l:{a:[{w:151.3,h:18,t:"Tambah Wang dengan %@"}],bo:[{w:109.78,h:18,t:"Tempah dengan %@"}],bu:[{w:81.23,h:18,t:"Beli dengan %@"}],ch:[{w:94.91,h:18,t:"Bayar dengan %@"}],ci:[{w:117.09,h:18,t:"Teruskan dengan %@"}],co:[{w:144.94,h:18,t:"Sumbangkan dengan %@"}],d:[{w:101.03,h:18,t:"Derma dengan %@"}],o:[{w:97.41,h:18,t:"Pesan dengan %@"}],pa:[{w:94.91,h:18,t:"Bayar dengan %@"}],rl:[{w:122.72,h:18,t:"Isi semula dengan %@"}],rn:[{w:93.31,h:18,t:"Sewa dengan %@"}],se:[{w:64.88,h:18,t:"Sediakan %@"}],sb:[{w:114.98,h:18,t:"Langgan dengan %@"}],sp:[{w:107.3,h:18,t:"Sokong dengan %@"}],ti:[{w:127.48,h:18,t:"Berikan tip dengan %@"}],to:[{w:142.14,h:18,t:"Tambah Nilai dengan %@"}]},s:"15px",ls:"0.22px"}},Xr=[],ml="ResizeObserver loop completed with undelivered notifications.";(_=_i||(_i={})).BORDER_BOX="border-box",_.CONTENT_BOX="content-box",_.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box";var gl,Rs,pr=function(_){return Object.freeze(_)},yl=function(_,m){this.inlineSize=_,this.blockSize=m,pr(this)},vn=function(){function _(m,C,M,V){return this.x=m,this.y=C,this.width=M,this.height=V,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,pr(this)}return _.prototype.toJSON=function(){var m=this;return{x:m.x,y:m.y,top:m.top,right:m.right,bottom:m.bottom,left:m.left,width:m.width,height:m.height}},_.fromRect=function(m){return new _(m.x,m.y,m.width,m.height)},_}(),Eo=function(_){return _ instanceof SVGElement&&"getBBox"in _},Mo=function(_){if(Eo(_)){var m=_.getBBox();return!m.width&&!m.height}return!(_.offsetWidth||_.offsetHeight||_.getClientRects().length)},vi=function(_){var m,C;if(_ instanceof Element)return!0;var M=null===(C=null===(m=_)||void 0===m?void 0:m.ownerDocument)||void 0===C?void 0:C.defaultView;return!!(M&&_ instanceof M.Element)},wt="undefined"!=typeof window?window:{},Ve=new WeakMap,wi=/auto|scroll/,Ym=/^tb|vertical/,Jm=/msie|trident/i.test(wt.navigator&&wt.navigator.userAgent),Ln=function(_){return parseFloat(_||"0")},Ui=function(_,m,C){return void 0===_&&(_=0),void 0===m&&(m=0),void 0===C&&(C=!1),new yl((C?m:_)||0,(C?_:m)||0)},nd=pr({devicePixelContentBoxSize:Ui(),borderBoxSize:Ui(),contentBoxSize:Ui(),contentRect:new vn(0,0,0,0)}),rd=function(_,m){if(void 0===m&&(m=!1),Ve.has(_)&&!m)return Ve.get(_);if(Mo(_))return Ve.set(_,nd),nd;var C=getComputedStyle(_),M=Eo(_)&&_.ownerSVGElement&&_.getBBox(),V=!Jm&&"border-box"===C.boxSizing,H=Ym.test(C.writingMode||""),ce=!M&&wi.test(C.overflowY||""),ze=!M&&wi.test(C.overflowX||""),Ct=M?0:Ln(C.paddingTop),Rn=M?0:Ln(C.paddingRight),ei=M?0:Ln(C.paddingBottom),zi=M?0:Ln(C.paddingLeft),Ao=M?0:Ln(C.borderTopWidth),Gs=M?0:Ln(C.borderRightWidth),Gi=M?0:Ln(C.borderBottomWidth),ld=zi+Rn,cd=Ct+ei,Ws=(M?0:Ln(C.borderLeftWidth))+Gs,qs=Ao+Gi,ud=ze?_.offsetHeight-qs-_.clientHeight:0,Jn=ce?_.offsetWidth-Ws-_.clientWidth:0,dd=V?ld+Ws:0,Wi=V?cd+qs:0,xo=M?M.width:Ln(C.width)-dd-Jn,Io=M?M.height:Ln(C.height)-Wi-ud,El=xo+ld+Jn+Ws,Ml=Io+cd+ud+qs,hd=pr({devicePixelContentBoxSize:Ui(Math.round(xo*devicePixelRatio),Math.round(Io*devicePixelRatio),H),borderBoxSize:Ui(El,Ml,H),contentBoxSize:Ui(xo,Io,H),contentRect:new vn(zi,Ct,xo,Io)});return Ve.set(_,hd),hd},_l=function(_,m,C){var M=rd(_,C),V=M.borderBoxSize,H=M.contentBoxSize,ce=M.devicePixelContentBoxSize;switch(m){case _i.DEVICE_PIXEL_CONTENT_BOX:return ce;case _i.BORDER_BOX:return V;default:return H}},kr=function(_){var m=rd(_);this.target=_,this.contentRect=m.contentRect,this.borderBoxSize=pr([m.borderBoxSize]),this.contentBoxSize=pr([m.contentBoxSize]),this.devicePixelContentBoxSize=pr([m.devicePixelContentBoxSize])},vl=function(_){if(Mo(_))return 1/0;for(var m=0,C=_.parentNode;C;)m+=1,C=C.parentNode;return m},Xm=function(){var _=1/0,m=[];Xr.forEach(function(V){if(0!==V.activeTargets.length){var H=[];V.activeTargets.forEach(function(ce){var ze=new kr(ce.target),Ct=vl(ce.target);H.push(ze),ce.lastReportedSize=_l(ce.target,ce.observedBox),Ct<_&&(_=Ct)}),m.push(function(){V.callback.call(V.observer,H,V.observer)}),V.activeTargets.splice(0,V.activeTargets.length)}});for(var C=0,M=m;C<M.length;C++)(0,M[C])();return _},$s=function(_){Xr.forEach(function(m){m.activeTargets.splice(0,m.activeTargets.length),m.skippedTargets.splice(0,m.skippedTargets.length),m.observationTargets.forEach(function(C){C.isActive()&&(vl(C.target)>_?m.activeTargets.push(C):m.skippedTargets.push(C))})})},wl=[],Vs=0,Cl={attributes:!0,characterData:!0,childList:!0,subtree:!0},Bs=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Ci=function(_){return void 0===_&&(_=0),Date.now()+_},js=!1,So=new(function(){function _(){var m=this;this.stopped=!0,this.listener=function(){return m.schedule()}}return _.prototype.run=function(m){var C=this;if(void 0===m&&(m=250),!js){js=!0;var M,V=Ci(m);M=function(){var H=!1;try{H=function(){var _,m=0;for($s(m);Xr.some(function(C){return C.activeTargets.length>0});)m=Xm(),$s(m);return Xr.some(function(C){return C.skippedTargets.length>0})&&("function"==typeof ErrorEvent?_=new ErrorEvent("error",{message:ml}):((_=document.createEvent("Event")).initEvent("error",!1,!1),_.message=ml),window.dispatchEvent(_)),m>0}()}finally{if(js=!1,m=V-Ci(),!Vs)return;H?C.run(1e3):m>0?C.run(m):C.start()}},function(_){if(!gl){var m=0,C=document.createTextNode("");new MutationObserver(function(){return wl.splice(0).forEach(function(M){return M()})}).observe(C,{characterData:!0}),gl=function(){C.textContent=""+(m?m--:m++)}}wl.push(function(){requestAnimationFrame(M)}),gl()}()}},_.prototype.schedule=function(){this.stop(),this.run()},_.prototype.observe=function(){var m=this,C=function(){return m.observer&&m.observer.observe(document.body,Cl)};document.body?C():wt.addEventListener("DOMContentLoaded",C)},_.prototype.start=function(){var m=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Bs.forEach(function(C){return wt.addEventListener(C,m.listener,!0)}))},_.prototype.stop=function(){var m=this;this.stopped||(this.observer&&this.observer.disconnect(),Bs.forEach(function(C){return wt.removeEventListener(C,m.listener,!0)}),this.stopped=!0)},_}()),id=function(_){!Vs&&_>0&&So.start(),!(Vs+=_)&&So.stop()},od=function(){function _(m,C){this.target=m,this.observedBox=C||_i.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return _.prototype.isActive=function(){var m,C=_l(this.target,this.observedBox,!0);return Eo(m=this.target)||function(M){switch(M.tagName){case"INPUT":if("image"!==M.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(m)||"inline"!==getComputedStyle(m).display||(this.lastReportedSize=C),this.lastReportedSize.inlineSize!==C.inlineSize||this.lastReportedSize.blockSize!==C.blockSize},_}(),ng=function(_,m){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=_,this.callback=m},Hs=new WeakMap,bl=function(_,m){for(var C=0;C<_.length;C+=1)if(_[C].target===m)return C;return-1},Us=function(){function _(){}return _.connect=function(m,C){var M=new ng(m,C);Hs.set(m,M)},_.observe=function(m,C,M){var V=Hs.get(m),H=0===V.observationTargets.length;bl(V.observationTargets,C)<0&&(H&&Xr.push(V),V.observationTargets.push(new od(C,M&&M.box)),id(1),So.schedule())},_.unobserve=function(m,C){var M=Hs.get(m),V=bl(M.observationTargets,C);V>=0&&(1===M.observationTargets.length&&Xr.splice(Xr.indexOf(M),1),M.observationTargets.splice(V,1),id(-1))},_.disconnect=function(m){var C=this,M=Hs.get(m);M.observationTargets.slice().forEach(function(V){return C.unobserve(m,V.target)}),M.activeTargets.splice(0,M.activeTargets.length)},_}(),sd=function(){function _(m){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof m)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Us.connect(this,m)}return _.prototype.observe=function(m,C){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!vi(m))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Us.observe(this,m,C)},_.prototype.unobserve=function(m){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!vi(m))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Us.unobserve(this,m)},_.prototype.disconnect=function(){Us.disconnect(this)},_.toString=function(){return"function ResizeObserver () { [polyfill code] }"},_}();Rs=yi(document.documentElement),hl()||ht(Rs)||Fs(Rs);var Dl=hl(),zs=class extends HTMLElement{constructor(){super(),this.__registerHost(),Object(i.b)(this),this.logoOnly=!1,this.fontLoading=!Dl,this.buttonStyle="black",this.type="buy"}checkStyle(_,m){var C=bi(_,m);C!==_&&this.element.setAttribute("buttonstyle",C)}checkType(_,m){var C=To(_,m);C!==_&&this.element.setAttribute("type",C),this.metadata&&(this.minButtonWidth=this.getMinButtonWidth(this.metadata))}verifyLocaleAndSwapMetadata(_){this._locale=this.adjustLocaleAndSetLangIfNecessary(_),Dl||this.loadFontIfNecessary(this._locale),this.metadata=Qm[this._locale],this.minButtonWidth=this.getMinButtonWidth(this.metadata)}componentWillLoad(){var _=this;return s(function*(){var m=bi(_.buttonStyle);m!==_.buttonStyle&&_.element.setAttribute("buttonstyle",m);var C=To(_.type);C!==_.type&&_.element.setAttribute("type",C),_.verifyLocaleAndSwapMetadata(_.locale)})()}componentDidRender(){this.validateFontSize(this.container.offsetWidth)}componentDidLoad(){new sd((_,m)=>{for(var C of _){var{width:M}=C.contentRect;if("plain"===this.type)return;this.validateFontSize(M)}}).observe(this.container),this.element.addEventListener("click",_=>_.stopPropagation())}validateFontSize(_){var m,C,M,V;"plain"!==this.type&&(_<this.minButtonWidth?(null===(m=this.container.querySelector("#svg-text"))||void 0===m||m.classList.add("hidden"),null===(C=this.container.querySelector("#svg-logo"))||void 0===C||C.classList.remove("hidden")):(null===(M=this.container.querySelector("#svg-text"))||void 0===M||M.classList.remove("hidden"),null===(V=this.container.querySelector("#svg-logo"))||void 0===V||V.classList.add("hidden")))}getStyle(_){return":host(apple-pay-button){display:inline-block;width:var(--apple-pay-button-width, auto);"+"min-width:".concat("plain"===_?"100px":"140px",";")+"min-height:30px;"+(ie()?"":"display:none;")+"}"}loadFontIfNecessary(_){try{var m=document.fonts.check("15px apple-pay-btn-".concat(_)),C=ht(_);C||Fs(_),this.fontLoading=!C||!m,this.fontLoading&&document.fonts.ready.then(()=>setTimeout(()=>{this.fontLoading=!1},0))}catch(M){this.fontLoading=!1}}getMinButtonWidth(_){var H,m=To(this.type),{width:C,height:M}="plain"===(H=m)?{width:35,height:15}:{width:ed({metadata:_,buttonType:H}).width,height:18};return 15*C/M}adjustLocaleAndSetLangIfNecessary(_){var m=function(M){if(M){var V=rn(_t(M));if(V)return V}}(_);if(m){m!==_&&this.element.setAttribute("locale",m);var C=m.replace("_","-");this.element.setAttribute("lang",C)}else this.element.removeAttribute("locale"),this.element.removeAttribute("lang"),m=yi(this.element);return m}render(){var _=bi(this.buttonStyle),m=To(this.type);return Object(i.c)(i.a,{"aria-hidden":ie()?void 0:"true"},Object(i.c)("div",{class:"apple-pay-btn-wrapper ".concat(m," ").concat(this._locale),style:{visibility:this.fontLoading?"hidden":"visible"}},Object(i.c)("style",null,this.getStyle(m)),Object(i.c)("button",{"aria-label":Zm(this.metadata,m),class:"apple-pay-btn ".concat(_)},Object(i.c)("span",{ref:C=>this.container=C,innerHTML:fr({metadata:this.metadata,locale:this._locale,buttonStyle:_,buttonType:m})}))))}static get assetsDirs(){return["assets/1.0.0"]}get element(){return this}static get watchers(){return{buttonStyle:["checkStyle"],type:["checkType"],locale:["verifyLocaleAndSwapMetadata"]}}static get style(){return'.apple-pay-btn-wrapper{width:100%;min-height:30px;height:var(--apple-pay-button-height, 30px)}.apple-pay-btn-wrapper.plain{min-width:100px}.plain .apple-pay-btn{--apple-pay-button-width-default:100px}.apple-pay-btn-wrapper .apple-pay-btn{background-color:black;border:none;color:white;cursor:pointer;font-synthesis:none;-ms-flex-pack:center;justify-content:center;position:relative;margin:0;-webkit-box-sizing:var(--apple-pay-button-box-sizing, content-box);box-sizing:var(--apple-pay-button-box-sizing, content-box);min-height:30px;height:calc(var(--apple-pay-button-height, 30px));min-width:var(--apple-pay-button-width-default, 140px);width:100%;border-radius:var(--apple-pay-button-border-radius, 4px);padding:var(--apple-pay-button-padding, 0);-moz-font-feature-settings:kern;-moz-osx-font-smoothing:"grayscale";-webkit-font-smoothing:antialiased}.apple-pay-btn-wrapper .apple-pay-btn.white,.apple-pay-btn-wrapper .apple-pay-btn.white-outline{background-color:white;color:black}.apple-pay-btn-wrapper .apple-pay-btn.white-outline{border:1px solid black}.apple-pay-btn-wrapper .apple-pay-btn>span{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:100%}.apple-pay-btn-wrapper .apple-pay-btn>span>svg{max-width:100%;min-height:24px;min-width:50%;height:100%;-webkit-transform:translateZ(0) scale(1, 1);transform:translateZ(0) scale(1, 1)}.apple-pay-btn-wrapper .apple-pay-btn #svg-text.hidden,.apple-pay-btn-wrapper .apple-pay-btn #svg-logo.hidden{display:none}'}};function bi(_,m){var C=["black","white-outline","white"],M=_.trim();return C.includes(M)?M:m&&C.includes(m)?m:"black"}function To(_,m){var C=_.trim();return fl(C)?C:m&&fl(m)?m:"buy"}"undefined"!=typeof customElements&&[Object(i.d)(zs,[1,"apple-pay-button",{buttonStyle:[513,"buttonstyle"],type:[1537],locale:[1025],logoOnly:[32],fontLoading:[32]}])].forEach(_=>{customElements.get(_.is)||customElements.define(_.is,_,void 0)})}var f="https://applepay.cdn-apple.com/jsapi/v1/apple-pay-sdk.js";e.p=new URL(f.slice(0,f.lastIndexOf("/")));var y,w,b,S,p=!0;try{p=globalThis}catch(y){p=!1}window.customElements&&window.fetch&&Symbol("desc").description&&p?d():(y=e.p+"/polyfills.js",w=d,b=document.body,(S=document.createElement("script")).src=y,S.onload=w,S.onreadystatechange=w,b.appendChild(S))}.call(this,e(44))},104:function(n,t){function e(r){return Promise.resolve().then(function(){var i=new Error("Cannot find module '"+r+"'");throw i.code="MODULE_NOT_FOUND",i})}e.keys=function(){return[]},e.resolve=e,n.exports=e,e.id=104},14:function(n,t,e){var r,i,o;function Xr(h,g,v,D,T,x,P){try{var A=h[x](P),L=A.value}catch($){return void v($)}A.done?g(L):Promise.resolve(L).then(D,T)}function ml(h){return function(){var g=this,v=arguments;return new Promise(function(D,T){var x=h.apply(g,v);function P(L){Xr(x,D,T,P,A,"next",L)}function A(L){Xr(x,D,T,P,A,"throw",L)}P(void 0)})}}e.d(t,"a",function(){return js}),e.d(t,"b",function(){return qN}),e.d(t,"c",function(){return Bs}),e.d(t,"d",function(){return WN});var h,Rs=!1,pr=!1,yl=!1,vn=!1,Mo=!1,vi="undefined"!=typeof window?window:{},wt=vi.document||{head:{}},Ve={$flags$:0,$resourcesUrl$:"",jmp:h=>h(),raf:h=>requestAnimationFrame(h),ael:(h,g,v,D)=>h.addEventListener(g,v,D),rel:(h,g,v,D)=>h.removeEventListener(g,v,D),ce:(h,g)=>new CustomEvent(h,g)},Ym=(()=>{var h=!1;try{wt.addEventListener("e",null,Object.defineProperty({},"passive",{get(){h=!0}}))}catch(g){}return h})(),Jm=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(h){}return!1})(),Ln=(h,g,v,D)=>{v&&v.map(([T,x,P])=>{var A=nd(h,T),L=Ui(g,P),$=rd(T);Ve.ael(A,x,L,$),(g.$rmListeners$=g.$rmListeners$||[]).push(()=>Ve.rel(A,x,L,$))})},Ui=(h,g)=>v=>{try{h.$hostElement$[g](v)}catch(D){Di(D)}},nd=(h,g)=>4&g?wt:8&g?vi:16&g?wt.body:h,rd=h=>Ym?{passive:0!=(1&h),capture:0!=(2&h)}:0!=(2&h),_l="http://www.w3.org/1999/xlink",vl=new WeakMap,wl=(h,g)=>"sc-"+(g&&32&h.$flags$?h.$tagName$+"-"+g:h.$tagName$),Vs={},Cl=h=>"object"==(h=typeof h)||"function"===h,Bs=(h,g,...v)=>{var D=null,T=null,x=null,P=!1,A=!1,L=[],$=Ie=>{for(var Ot=0;Ot<Ie.length;Ot++)D=Ie[Ot],Array.isArray(D)?$(D):null!=D&&"boolean"!=typeof D&&((P="function"!=typeof h&&!Cl(D))&&(D=String(D)),P&&A?L[L.length-1].$text$+=D:L.push(P?Ci(null,D):D),A=P)};if($(v),g&&(g.key&&(T=g.key),g.name&&(x=g.name),1)){var de=g.className||g.class;de&&(g.class="object"!=typeof de?de:Object.keys(de).filter(Ie=>de[Ie]).join(" "))}if("function"==typeof h)return h(null===g?{}:g,L,id);var he=Ci(h,null);return he.$attrs$=g,L.length>0&&(he.$children$=L),he.$key$=T,he.$name$=x,he},Ci=(h,g)=>({$flags$:0,$tag$:h,$text$:g,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),js={},id={forEach:(h,g)=>h.map(od).forEach(g),map:(h,g)=>h.map(od).map(g).map(ng)},od=h=>({vattrs:h.$attrs$,vchildren:h.$children$,vkey:h.$key$,vname:h.$name$,vtag:h.$tag$,vtext:h.$text$}),ng=h=>{if("function"==typeof h.vtag){var g=Object.assign({},h.vattrs);return h.vkey&&(g.key=h.vkey),h.vname&&(g.name=h.vname),Bs(h.vtag,g,...h.vchildren||[])}var v=Ci(h.vtag,h.vtext);return v.$attrs$=h.vattrs,v.$children$=h.vchildren,v.$key$=h.vkey,v.$name$=h.vname,v},bl=(h,g,v,D,T,x)=>{if(v!==D){var P=qC(h,g),A=g.toLowerCase();if("class"===g){var L=h.classList,$=sd(v),de=sd(D);L.remove(...$.filter(zt=>zt&&!de.includes(zt))),L.add(...de.filter(zt=>zt&&!$.includes(zt)))}else if("style"===g){for(var he in v)D&&null!=D[he]||(he.includes("-")?h.style.removeProperty(he):h.style[he]="");for(var Ie in D)v&&D[Ie]===v[Ie]||(Ie.includes("-")?h.style.setProperty(Ie,D[Ie]):h.style[Ie]=D[Ie])}else if("key"!==g)if("ref"===g)D&&D(h);else if(h.__lookupSetter__(g)||"o"!==g[0]||"n"!==g[1]){var Ot=Cl(D);if((P||Ot&&null!==D)&&!T)try{if(h.tagName.includes("-"))h[g]=D;else{var on=null==D?"":D;"list"===g?P=!1:null!=v&&h[g]==on||(h[g]=on)}}catch(zt){}var Ft=!1;A!==(A=A.replace(/^xlink\:?/,""))&&(g=A,Ft=!0),null==D||!1===D?!1===D&&""!==h.getAttribute(g)||(Ft?h.removeAttributeNS(_l,g):h.removeAttribute(g)):(!P||4&x||T)&&!Ot&&(D=!0===D?"":D,Ft?h.setAttributeNS(_l,g,D):h.setAttribute(g,D))}else g="-"===g[2]?g.slice(3):qC(vi,A)?A.slice(2):A[2]+g.slice(3),v&&Ve.rel(h,g,v,!1),D&&Ve.ael(h,g,D,!1)}},Us=/\s/,sd=h=>h?h.split(Us):[],Dl=(h,g,v,D)=>{var T=11===g.$elm$.nodeType&&g.$elm$.host?g.$elm$.host:g.$elm$,x=h&&h.$attrs$||Vs,P=g.$attrs$||Vs;for(D in x)D in P||bl(T,D,x[D],void 0,v,g.$flags$);for(D in P)bl(T,D,x[D],P[D],v,g.$flags$)},zs=(h,g,v,D)=>{var T,x,P,A=g.$children$[v],L=0;if(!Rs&&(yl=!0,"slot"===A.$tag$&&(r&&D.classList.add(r+"-s"),A.$flags$|=A.$children$?2:1)),null!==A.$text$)T=A.$elm$=wt.createTextNode(A.$text$);else if(1&A.$flags$)T=A.$elm$=wt.createTextNode("");else{if(!vn&&(vn="svg"===A.$tag$),T=A.$elm$=wt.createElementNS(vn?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&A.$flags$?"slot-fb":A.$tag$),vn&&"foreignObject"===A.$tag$&&(vn=!1),Dl(null,A,vn),null!=r&&T["s-si"]!==r&&T.classList.add(T["s-si"]=r),A.$children$)for(L=0;L<A.$children$.length;++L)(x=zs(h,A,L,T))&&T.appendChild(x);"svg"===A.$tag$?vn=!1:"foreignObject"===T.tagName&&(vn=!0)}return T["s-hn"]=o,3&A.$flags$&&(T["s-sr"]=!0,T["s-cr"]=i,T["s-sn"]=A.$name$||"",(P=h&&h.$children$&&h.$children$[v])&&P.$tag$===A.$tag$&&h.$elm$&&bi(h.$elm$,!1)),T},bi=(h,g)=>{Ve.$flags$|=1;for(var v=h.childNodes,D=v.length-1;D>=0;D--){var T=v[D];T["s-hn"]!==o&&T["s-ol"]&&(C(T).insertBefore(T,m(T)),T["s-ol"].remove(),T["s-ol"]=void 0,yl=!0),g&&bi(T,g)}Ve.$flags$&=-2},To=(h,g,v,D,T,x)=>{var P,A=h["s-cr"]&&h["s-cr"].parentNode||h;for(A.shadowRoot&&A.tagName===o&&(A=A.shadowRoot);T<=x;++T)D[T]&&(P=zs(null,v,T,h))&&(D[T].$elm$=P,A.insertBefore(P,m(g)))},ad=(h,g,v,D,T)=>{for(;g<=v;++g)(D=h[g])&&(T=D.$elm$,Ct(D),pr=!0,T["s-ol"]?T["s-ol"].remove():bi(T,!0),T.remove())},_=(h,g)=>h.$tag$===g.$tag$&&("slot"===h.$tag$?h.$name$===g.$name$:h.$key$===g.$key$),m=h=>h&&h["s-ol"]||h,C=h=>(h["s-ol"]?h["s-ol"]:h).parentNode,M=(h,g)=>{var v,D=g.$elm$=h.$elm$,T=h.$children$,x=g.$children$,P=g.$tag$,A=g.$text$;null!==A?(v=D["s-cr"])?v.parentNode.textContent=A:h.$text$!==A&&(D.data=A):(vn="svg"===P||"foreignObject"!==P&&vn,"slot"===P||Dl(h,g,vn),null!==T&&null!==x?((L,$,de,he)=>{for(var Ie,Ot,on=0,Ft=0,zt=0,ti=0,Pn=$.length-1,bt=$[0],Nr=$[Pn],Ei=he.length-1,Xn=he[0],ni=he[Ei];on<=Pn&&Ft<=Ei;)if(null==bt)bt=$[++on];else if(null==Nr)Nr=$[--Pn];else if(null==Xn)Xn=he[++Ft];else if(null==ni)ni=he[--Ei];else if(_(bt,Xn))M(bt,Xn),bt=$[++on],Xn=he[++Ft];else if(_(Nr,ni))M(Nr,ni),Nr=$[--Pn],ni=he[--Ei];else if(_(bt,ni))"slot"!==bt.$tag$&&"slot"!==ni.$tag$||bi(bt.$elm$.parentNode,!1),M(bt,ni),L.insertBefore(bt.$elm$,Nr.$elm$.nextSibling),bt=$[++on],ni=he[--Ei];else if(_(Nr,Xn))"slot"!==bt.$tag$&&"slot"!==ni.$tag$||bi(Nr.$elm$.parentNode,!1),M(Nr,Xn),L.insertBefore(Nr.$elm$,bt.$elm$),Nr=$[--Pn],Xn=he[++Ft];else{for(zt=-1,ti=on;ti<=Pn;++ti)if($[ti]&&null!==$[ti].$key$&&$[ti].$key$===Xn.$key$){zt=ti;break}zt>=0?((Ot=$[zt]).$tag$!==Xn.$tag$?Ie=zs($&&$[Ft],de,zt,L):(M(Ot,Xn),$[zt]=void 0,Ie=Ot.$elm$),Xn=he[++Ft]):(Ie=zs($&&$[Ft],de,Ft,L),Xn=he[++Ft]),Ie&&C(bt.$elm$).insertBefore(Ie,m(bt.$elm$))}on>Pn?To(L,null==he[Ei+1]?null:he[Ei+1].$elm$,de,he,Ft,Ei):Ft>Ei&&ad($,on,Pn)})(D,T,g,x):null!==x?(null!==h.$text$&&(D.textContent=""),To(D,null,g,x,0,x.length-1)):null!==T&&ad(T,0,T.length-1),vn&&"svg"===P&&(vn=!1))},V=h=>{var g,v,D,T,x,P,A=h.childNodes;for(v=0,D=A.length;v<D;v++)if(1===(g=A[v]).nodeType){if(g["s-sr"])for(x=g["s-sn"],g.hidden=!1,T=0;T<D;T++)if(P=A[T].nodeType,A[T]["s-hn"]!==g["s-hn"]||""!==x){if(1===P&&x===A[T].getAttribute("slot")){g.hidden=!0;break}}else if(1===P||3===P&&""!==A[T].textContent.trim()){g.hidden=!0;break}V(g)}},H=[],ce=h=>{for(var g,v,D,T,x,P,A=0,L=h.childNodes,$=L.length;A<$;A++){if((g=L[A])["s-sr"]&&(v=g["s-cr"])&&v.parentNode)for(T=g["s-sn"],P=(D=v.parentNode.childNodes).length-1;P>=0;P--)(v=D[P])["s-cn"]||v["s-nr"]||v["s-hn"]===g["s-hn"]||(ze(v,T)?(x=H.find(de=>de.$nodeToRelocate$===v),pr=!0,v["s-sn"]=v["s-sn"]||T,x?x.$slotRefNode$=g:H.push({$slotRefNode$:g,$nodeToRelocate$:v}),v["s-sr"]&&H.map(de=>{ze(de.$nodeToRelocate$,v["s-sn"])&&(x=H.find(he=>he.$nodeToRelocate$===v))&&!de.$slotRefNode$&&(de.$slotRefNode$=x.$slotRefNode$)})):H.some(de=>de.$nodeToRelocate$===v)||H.push({$nodeToRelocate$:v}));1===g.nodeType&&ce(g)}},ze=(h,g)=>1===h.nodeType?null===h.getAttribute("slot")&&""===g||h.getAttribute("slot")===g:h["s-sn"]===g||""===g,Ct=h=>{h.$attrs$&&h.$attrs$.ref&&h.$attrs$.ref(null),h.$children$&&h.$children$.map(Ct)},Rn=(h,g)=>{var v=h.$hostElement$,D=h.$cmpMeta$,T=h.$vnode$||Ci(null,null),x=(h=>h&&h.$tag$===js)(g)?g:Bs(null,null,g);if(o=v.tagName,D.$attrsToReflect$&&(x.$attrs$=x.$attrs$||{},D.$attrsToReflect$.map(([Ot,on])=>x.$attrs$[on]=v[Ot])),x.$tag$=null,x.$flags$|=4,h.$vnode$=x,x.$elm$=T.$elm$=v.shadowRoot||v,r=v["s-sc"],i=v["s-cr"],Rs=0!=(1&D.$flags$),pr=!1,M(T,x),Ve.$flags$|=1,yl){var P,A,L,$,de,he;ce(x.$elm$);for(var Ie=0;Ie<H.length;Ie++)(A=(P=H[Ie]).$nodeToRelocate$)["s-ol"]||((L=wt.createTextNode(""))["s-nr"]=A,A.parentNode.insertBefore(A["s-ol"]=L,A));for(Ie=0;Ie<H.length;Ie++)if(A=(P=H[Ie]).$nodeToRelocate$,P.$slotRefNode$){for($=P.$slotRefNode$.parentNode,de=P.$slotRefNode$.nextSibling,L=A["s-ol"];L=L.previousSibling;)if((he=L["s-nr"])&&he["s-sn"]===A["s-sn"]&&$===he.parentNode&&(!(he=he.nextSibling)||!he["s-nr"])){de=he;break}(!de&&$!==A.parentNode||A.nextSibling!==de)&&A!==de&&(!A["s-hn"]&&A["s-ol"]&&(A["s-hn"]=A["s-ol"].parentNode.nodeName),$.insertBefore(A,de))}else 1===A.nodeType&&(A.hidden=!0)}pr&&V(x.$elm$),Ve.$flags$&=-2,H.length=0},Gi=(h,g)=>{h.$flags$|=16;return JN(()=>ld(h,g))},ld=(h,g)=>{var v,D=h.$hostElement$,x=D;return g?(Wi(D,"componentWillLoad"),v=Jn(x,"componentWillLoad")):(Wi(D,"componentWillUpdate"),v=Jn(x,"componentWillUpdate")),Wi(D,"componentWillRender"),v=dd(v,()=>Jn(x,"componentWillRender")),dd(v,()=>cd(h,x,g))},cd=(h=ml(function*(g,v,D){var T=g.$hostElement$;D&&(h=>{var g=h.$cmpMeta$,v=h.$hostElement$,D=g.$flags$,x=((h,g,v,D)=>{var T=wl(g,v),x=md.get(T);if(h=11===h.nodeType?h:wt,x)if("string"==typeof x){var P,A=vl.get(h=h.head||h);A||vl.set(h,A=new Set),A.has(T)||((P=wt.createElement("style")).innerHTML=x,h.insertBefore(P,h.querySelector("link")),A&&A.add(T))}else!h.adoptedStyleSheets.includes(x)&&(h.adoptedStyleSheets=[...h.adoptedStyleSheets,x]);return T})(v.shadowRoot?v.shadowRoot:v.getRootNode(),g,h.$modeName$);10&D&&(v["s-sc"]=x,v.classList.add(x+"-h"),2&D&&v.classList.add(x+"-s"))})(g);Ws(g,v,T),qs(g)}),function(g,v,D){return h.apply(this,arguments)}),Ws=(h,g,v)=>{try{g=g.render&&g.render(),h.$flags$&=-17,h.$flags$|=2,Rn(h,g)}catch(A){Di(A,h.$hostElement$)}return null},qs=h=>{var v=h.$hostElement$,T=v;Jn(T,"componentDidRender"),Wi(v,"componentDidRender"),64&h.$flags$?(Jn(T,"componentDidUpdate"),Wi(v,"componentDidUpdate")):(h.$flags$|=64,Jn(T,"componentDidLoad"),Wi(v,"componentDidLoad"))},Jn=(h,g,v)=>{if(h&&h[g])try{return h[g](v)}catch(D){Di(D)}},dd=(h,g)=>h&&h.then?h.then(g):g(),Wi=(h,g)=>{},UC=(h,g,v)=>{if(g.$members$){h.watchers&&(g.$watchers$=h.watchers);var D=Object.entries(g.$members$),T=h.prototype;D.map(([P,[A]])=>{(31&A||32&A)&&Object.defineProperty(T,P,{get(){return L=P,Ks(this).$instanceValues$.get(L);var L},set(L){((h,g,v,D)=>{var T,x,P=Ks(h),A=h,L=P.$instanceValues$.get(g),$=P.$flags$,de=A;if(x=D.$members$[g][0],(v=null==(T=v)||Cl(T)?T:4&x?"false"!==T&&(""===T||!!T):2&x?parseFloat(T):1&x?String(T):T)!==L&&(P.$instanceValues$.set(g,v),1)){if(D.$watchers$&&128&$){var he=D.$watchers$[g];he&&he.map(Ie=>{try{de[Ie](v,L,g)}catch(Ot){Di(Ot,A)}})}if(2==(18&$)){if(de.componentShouldUpdate&&!1===de.componentShouldUpdate(v,L,g))return;Gi(P,!1)}}})(this,P,L,g)},configurable:!0,enumerable:!0})});var x=new Map;T.attributeChangedCallback=function(P,A,L){Ve.jmp(()=>{var $=x.get(P);this[$]=(null!==L||"boolean"!=typeof this[$])&&L})},h.observedAttributes=D.filter(([P,A])=>15&A[0]).map(([P,A])=>{var L=A[1]||P;return x.set(L,P),512&A[0]&&g.$attrsToReflect$.push([P,L]),L})}return h},zC=function(){var h=ml(function*(g,v,D,T,x){if(0==(32&v.$flags$)&&(x=g.constructor,v.$flags$|=160,x.style)){var L=x.style;"string"!=typeof L&&(L=L[v.$modeName$=(h=>QN.map(g=>g(h)).find(g=>!!g))(g)]);var $=wl(D,v.$modeName$);if(!md.has($)){((h,g,v)=>{var D=md.get(h);Jm&&v?(D=D||new CSSStyleSheet).replace(g):D=g,md.set(h,D)})($,L,!!(1&D.$flags$))}}Gi(v,!0)});return function(g,v,D,T,x){return h.apply(this,arguments)}}(),WN=(h,g)=>{var v={$flags$:g[0],$tagName$:g[1]};v.$members$=g[2],v.$listeners$=g[3],v.$watchers$=h.$watchers$,v.$attrsToReflect$=[];var D=h.prototype.connectedCallback,T=h.prototype.disconnectedCallback;return Object.assign(h.prototype,{__registerHost(){KN(this,v)},connectedCallback(){(h=>{if(0==(1&Ve.$flags$)){var g=Ks(h),v=g.$cmpMeta$;1&g.$flags$?Ln(h,g,v.$listeners$):(g.$flags$|=1,12&v.$flags$&&(h=>{var g=h["s-cr"]=wt.createComment("");g["s-cn"]=!0,h.insertBefore(g,h.firstChild)})(h),zC(h,g,v))}})(this),D&&D.call(this)},disconnectedCallback(){(h=>{if(0==(1&Ve.$flags$)){var g=Ks(this);g.$rmListeners$&&(g.$rmListeners$.map(D=>D()),g.$rmListeners$=void 0)}})(),T&&T.call(this)}}),h.is=v.$tagName$,UC(h,v)},qN=h=>{h.attachShadow({mode:"open"})},WC=new WeakMap,Ks=h=>WC.get(h),KN=(h,g)=>{var v={$flags$:0,$hostElement$:h,$cmpMeta$:g,$instanceValues$:new Map};return Ln(h,v,g.$listeners$),WC.set(h,v)},qC=(h,g)=>g in h,Di=(h,g)=>(0,console.error)(h,g),md=new Map,QN=[],rg=[],Po=[],QC=h=>{for(var g=0;g<h.length;g++)try{h[g](performance.now())}catch(v){Di(v)}h.length=0},gd=()=>{QC(rg),QC(Po),(Mo=rg.length>0)&&Ve.raf(gd)},JN=((h,g)=>v=>{h.push(v),Mo||(Mo=!0,4&Ve.$flags$?(h=>{Promise.resolve(void 0).then(h)})(gd):Ve.raf(gd))})(Po)},195:function(n,t,e){e.r(t),e.d(t,"scopeCss",function(){return Qe});var r=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",i=new RegExp("(-shadowcsshost"+r,"gim"),o=new RegExp("(-shadowcsscontext"+r,"gim"),s=new RegExp("(-shadowcssslotted"+r,"gim"),a=/-shadowcsshost-no-combinator([^\s]*)/,l=[/::shadow/g,/::content/g],c=/-shadowcsshost/gim,u=/:host/gim,d=/::slotted/gim,f=/:host-context/gim,p=/\/\*\s*[\s\S]*?\*\//g,y=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,w=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,b=/([{}])/g,S=(te,se)=>{var X=E(te),De=0;return X.escapedString.replace(w,(...we)=>{var N=we[2],B="",W=we[4],re="";W&&W.startsWith("{%BLOCK%")&&(B=X.blocks[De++],W=W.substring(8),re="{");var ee=se({selector:N,content:B});return"".concat(we[1]).concat(ee.selector).concat(we[3]).concat(re).concat(ee.content).concat(W)})},E=te=>{for(var se=te.split(b),X=[],De=[],we=0,N=[],B=0;B<se.length;B++){var W=se[B];"}"===W&&we--,we>0?N.push(W):(N.length>0&&(De.push(N.join("")),X.push("%BLOCK%"),N=[]),X.push(W)),"{"===W&&we++}return N.length>0&&(De.push(N.join("")),X.push("%BLOCK%")),{escapedString:X.join(""),blocks:De}},F=(te,se,X)=>te.replace(se,(...De)=>{if(De[2]){for(var we=De[2].split(","),N=[],B=0;B<we.length;B++){var W=we[B].trim();if(!W)break;N.push(X("-shadowcsshost-no-combinator",W,De[3]))}return N.join(",")}return"-shadowcsshost-no-combinator"+De[3]}),G=(te,se,X)=>te+se.replace("-shadowcsshost","")+X,ie=(te,se,X)=>se.indexOf("-shadowcsshost")>-1?G(te,se,X):te+se+X+", "+se+" "+te+X,Re=(te,se,X,De,we)=>S(te,N=>{var ee,me,Ye,B=N.selector,W=N.content;return"@"!==N.selector[0]?(ee=se,me=X,Ye=De,B=N.selector.split(",").map(Ue=>Ye&&Ue.indexOf("."+Ye)>-1?Ue.trim():((te,se)=>{return!(X=se,X=X.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+X+")([>\\s~+[.,{:][\\s\\S]*)?$","m")).test(te);var X})(Ue,ee)?((te,se,X)=>{for(var De,we="."+(se=se.replace(/\[is=([^\]]*)\]/g,(Oe,...Me)=>Me[0])),N=Oe=>{var Me=Oe.trim();if(!Me)return"";if(Oe.indexOf("-shadowcsshost-no-combinator")>-1)Me=((In,Nt,en)=>{if(c.lastIndex=0,c.test(In)){var Hi=".".concat(en);return In.replace(a,(Jr,gi)=>gi.replace(/([^:]*)(:*)(.*)/,(_t,dl,rn,yi)=>dl+Hi+rn+yi)).replace(c,Hi+" ")}return Nt+" "+In})(Oe,se,X);else{var dt=Oe.replace(c,"");if(dt.length>0){var Ut=dt.match(/([^:]*)(:*)(.*)/);Ut&&(Me=Ut[1]+we+Ut[2]+Ut[3])}}return Me},B=(Oe=>{var Me=[],dt=0;return{content:(Oe=Oe.replace(/(\[[^\]]*\])/g,(Ut,In)=>{var Nt="__ph-".concat(dt,"__");return Me.push(In),dt++,Nt})).replace(/(:nth-[-\w]+)(\([^)]+\))/g,(Ut,In,Nt)=>{var en="__ph-".concat(dt,"__");return Me.push(Nt),dt++,In+en}),placeholders:Me}})(te),W="",re=0,ee=/( |>|\+|~(?!=))\s*/g,me=!((te=B.content).indexOf("-shadowcsshost-no-combinator")>-1);null!==(De=ee.exec(te));){var Ye=De[1],Ue=te.slice(re,De.index).trim(),Ee=(me=me||Ue.indexOf("-shadowcsshost-no-combinator")>-1)?N(Ue):Ue;W+="".concat(Ee," ").concat(Ye," "),re=ee.lastIndex}var xt,yt=te.substring(re);return W+=(me=me||yt.indexOf("-shadowcsshost-no-combinator")>-1)?N(yt):yt,xt=B.placeholders,W.replace(/__ph-(\d+)__/g,(Oe,Me)=>xt[+Me])})(Ue,ee,me).trim():Ue.trim()).join(", ")):(N.selector.startsWith("@media")||N.selector.startsWith("@supports")||N.selector.startsWith("@page")||N.selector.startsWith("@document"))&&(W=Re(N.content,se,X,De)),{selector:B.replace(/\s{2,}/g," ").trim(),content:W}}),Qe=(te,se,X)=>{var De=se+"-h",we=se+"-s",N=te.match(y)||[];te=te.replace(p,"");var B=[];if(X){var W=ee=>{var me="/*!@___".concat(B.length,"___*/"),Ye="/*!@".concat(ee.selector,"*/");return B.push({placeholder:me,comment:Ye}),ee.selector=me+ee.selector,ee};te=S(te,ee=>"@"!==ee.selector[0]?W(ee):((ee.selector.startsWith("@media")||ee.selector.startsWith("@supports")||ee.selector.startsWith("@page")||ee.selector.startsWith("@document"))&&(ee.content=S(ee.content,W)),ee))}var re=((te,se,X,De,we)=>{var B,N=((B,W)=>{var re="."+W+" > ",ee=[];return B=B.replace(s,(...me)=>{if(me[2]){for(var Ye=me[2].trim(),Ee=re+Ye+me[3],xt="",yt=me[4]-1;yt>=0;yt--){var Oe=me[5][yt];if("}"===Oe||","===Oe)break;xt=Oe+xt}var Me=xt+Ee,dt="".concat(xt.trimRight()).concat(Ee.trim());if(Me.trim()!==dt.trim()){var Ut="".concat(dt,", ").concat(Me);ee.push({orgSelector:Me,updatedSelector:Ut})}return Ee}return"-shadowcsshost-no-combinator"+me[3]}),{selectors:ee,cssText:B}})(te=(B=>F(B,o,ie))((B=te=te.replace(f,"-shadowcsscontext").replace(u,"-shadowcsshost").replace(d,"-shadowcssslotted"),te=F(B,i,G))),De);return te=(B=>l.reduce((W,re)=>W.replace(re," "),B))(te=N.cssText),se&&(te=Re(te,se,X,De)),{cssText:(te=(te=te.replace(/-shadowcsshost-no-combinator/g,".".concat(X))).replace(/>\s*\*\s+([^{, ]+)/gm," $1 ")).trim(),slottedSelectors:N.selectors}})(te,se,De,we);return te=[re.cssText,...N].join("\n"),X&&B.forEach(({placeholder:ee,comment:me})=>{te=te.replace(ee,me)}),re.slottedSelectors.forEach(ee=>{te=te.replace(ee.orgSelector,ee.updatedSelector)}),te}},44:function(n,t){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(r){"object"==typeof window&&(e=window)}n.exports=e}});let Sx=(()=>{class n{constructor(e,r){this.renderer=e,this.elRef=r,this.buttonClick=new $e,this.buttonStyle="white-outline",this.locale="en-US",this.type="continue"}ngAfterViewInit(){this.createButton()}ngOnDestroy(){this.buttonClickListener&&(this.buttonClickListener(),this.buttonClickListener=null)}createButton(){const e=this.renderer.createElement("apple-pay-button");this.renderer.setAttribute(e,"type",this.type),this.renderer.setAttribute(e,"buttonstyle",this.buttonStyle),this.renderer.setAttribute(e,"locale",this.locale),this.buttonClickListener=this.renderer.listen(e,"click",r=>this.buttonClick.emit(r)),this.renderer.appendChild(this.elRef.nativeElement,e),this.renderer.setStyle(e,"display","inline-block")}}return n.\u0275fac=function(e){return new(e||n)(I(qr),I(kn))},n.\u0275dir=fe({type:n,selectors:[["","motoApplePayButton",""]],inputs:{buttonStyle:"buttonStyle",locale:"locale",type:"type"},outputs:{buttonClick:"buttonClick"}}),n})(),Tx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({}),n})();const Ne=!1;function Tw(n){return new Y(3e3,Ne)}function aI(){return"undefined"!=typeof window&&void 0!==window.document}function hm(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function $i(n){switch(n.length){case 0:return new Qa;case 1:return n[0];default:return new m8(n)}}function Aw(n,t,e,r,i={},o={}){const s=[],a=[];let l=-1,c=null;if(r.forEach(u=>{const d=u.offset,f=d==l,p=f&&c||{};Object.keys(u).forEach(y=>{let w=y,b=u[y];if("offset"!==y)switch(w=t.normalizePropertyName(w,s),b){case"!":b=i[y];break;case fi:b=o[y];break;default:b=t.normalizeStyleValue(y,w,b,s)}p[w]=b}),f||a.push(p),c=p,l=d}),s.length)throw function Qx(n){return new Y(3502,Ne)}();return a}function fm(n,t,e,r){switch(t){case"start":n.onStart(()=>r(e&&pm(e,"start",n)));break;case"done":n.onDone(()=>r(e&&pm(e,"done",n)));break;case"destroy":n.onDestroy(()=>r(e&&pm(e,"destroy",n)))}}function pm(n,t,e){const r=e.totalTime,o=mm(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,null==r?n.totalTime:r,!!e.disabled),s=n._data;return null!=s&&(o._data=s),o}function mm(n,t,e,r,i="",o=0,s){return{element:n,triggerName:t,fromState:e,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function Qn(n,t,e){let r;return n instanceof Map?(r=n.get(t),r||n.set(t,r=e)):(r=n[t],r||(r=n[t]=e)),r}function xw(n){const t=n.indexOf(":");return[n.substring(1,t),n.substr(t+1)]}let gm=(n,t)=>!1,Iw=(n,t,e)=>[],Pw=null;function ym(n){const t=n.parentNode||n.host;return t===Pw?null:t}(hm()||"undefined"!=typeof Element)&&(aI()?(Pw=(()=>document.documentElement)(),gm=(n,t)=>{for(;t;){if(t===n)return!0;t=ym(t)}return!1}):gm=(n,t)=>n.contains(t),Iw=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const r=n.querySelector(t);return r?[r]:[]});let _o=null,kw=!1;function Nw(n){_o||(_o=function cI(){return"undefined"!=typeof document?document.body:null}()||{},kw=!!_o.style&&"WebkitAppearance"in _o.style);let t=!0;return _o.style&&!function lI(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in _o.style,!t&&kw&&(t="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in _o.style)),t}const Ow=gm,Fw=Iw;let Lw=(()=>{class n{validateStyleProperty(e){return Nw(e)}matchesElement(e,r){return!1}containsElement(e,r){return Ow(e,r)}getParentElement(e){return ym(e)}query(e,r,i){return Fw(e,r,i)}computeStyle(e,r,i){return i||""}animate(e,r,i,o,s,a=[],l){return new Qa(i,o)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})(),_m=(()=>{class n{}return n.NOOP=new Lw,n})();const vm="ng-enter",Eu="ng-leave",Mu="ng-trigger",Su=".ng-trigger",$w="ng-animating",wm=".ng-animating";function vo(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Cm(parseFloat(t[1]),t[2])}function Cm(n,t){return"s"===t?1e3*n:n}function Tu(n,t,e){return n.hasOwnProperty("duration")?n:function hI(n,t,e){let i,o=0,s="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(Tw()),{duration:0,delay:0,easing:""};i=Cm(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=Cm(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else i=n;if(!e){let a=!1,l=t.length;i<0&&(t.push(function Ax(){return new Y(3100,Ne)}()),a=!0),o<0&&(t.push(function xx(){return new Y(3101,Ne)}()),a=!0),a&&t.splice(l,0,Tw())}return{duration:i,delay:o,easing:s}}(n,t,e)}function Ts(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function Vi(n,t,e={}){if(t)for(let r in n)e[r]=n[r];else Ts(n,e);return e}function Bw(n,t,e){return e?t+":"+e+";":""}function jw(n){let t="";for(let e=0;e<n.style.length;e++){const r=n.style.item(e);t+=Bw(0,r,n.style.getPropertyValue(r))}for(const e in n.style)n.style.hasOwnProperty(e)&&!e.startsWith("_")&&(t+=Bw(0,mI(e),n.style[e]));n.setAttribute("style",t)}function Yr(n,t,e){n.style&&(Object.keys(t).forEach(r=>{const i=Dm(r);e&&!e.hasOwnProperty(r)&&(e[r]=n.style[i]),n.style[i]=t[r]}),hm()&&jw(n))}function wo(n,t){n.style&&(Object.keys(t).forEach(e=>{const r=Dm(e);n.style[r]=""}),hm()&&jw(n))}function il(n){return Array.isArray(n)?1==n.length?n[0]:f8(n):n}const bm=new RegExp("{{\\s*(.+?)\\s*}}","g");function Hw(n){let t=[];if("string"==typeof n){let e;for(;e=bm.exec(n);)t.push(e[1]);bm.lastIndex=0}return t}function Au(n,t,e){const r=n.toString(),i=r.replace(bm,(o,s)=>{let a=t[s];return t.hasOwnProperty(s)||(e.push(function Px(n){return new Y(3003,Ne)}()),a=""),a.toString()});return i==r?n:i}function xu(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const pI=/-+([a-z0-9])/g;function Dm(n){return n.replace(pI,(...t)=>t[1].toUpperCase())}function mI(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Yn(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw function kx(n){return new Y(3004,Ne)}()}}function Uw(n,t){return window.getComputedStyle(n)[t]}function CI(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(r=>function bI(n,t,e){if(":"==n[0]){const l=function DI(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,r)=>parseFloat(r)>parseFloat(e);case":decrement":return(e,r)=>parseFloat(r)<parseFloat(e);default:return t.push(function Wx(n){return new Y(3016,Ne)}()),"* => *"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const r=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return e.push(function Gx(n){return new Y(3015,Ne)}()),t;const i=r[1],o=r[2],s=r[3];t.push(zw(i,s));"<"==o[0]&&!("*"==i&&"*"==s)&&t.push(zw(s,i))}(r,e,t)):e.push(n),e}const Nu=new Set(["true","1"]),Ou=new Set(["false","0"]);function zw(n,t){const e=Nu.has(n)||Ou.has(n),r=Nu.has(t)||Ou.has(t);return(i,o)=>{let s="*"==n||n==i,a="*"==t||t==o;return!s&&e&&"boolean"==typeof i&&(s=i?Nu.has(n):Ou.has(n)),!a&&r&&"boolean"==typeof o&&(a=o?Nu.has(t):Ou.has(t)),s&&a}}const EI=new RegExp("s*:selfs*,?","g");function Em(n,t,e,r){return new MI(n).build(t,e,r)}class MI{constructor(t){this._driver=t}build(t,e,r){const i=new AI(e);this._resetContextStyleTimingState(i);const o=Yn(this,il(t),i);return i.unsupportedCSSPropertiesFound.size&&i.unsupportedCSSPropertiesFound.keys(),o}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let r=e.queryCount=0,i=e.depCount=0;const o=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push(function Ox(){return new Y(3006,Ne)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);r+=l.queryCount,i+=l.depCount,s.push(l)}else e.errors.push(function Fx(){return new Y(3007,Ne)}())}),{type:7,name:t.name,states:o,transitions:s,queryCount:r,depCount:i,options:null}}visitState(t,e){const r=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(r.containsDynamicStyles){const o=new Set,s=i||{};r.styles.forEach(a=>{if(Fu(a)){const l=a;Object.keys(l).forEach(c=>{Hw(l[c]).forEach(u=>{s.hasOwnProperty(u)||o.add(u)})})}}),o.size&&(xu(o.values()),e.errors.push(function Lx(n,t){return new Y(3008,Ne)}()))}return{type:0,name:t.name,style:r,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const r=Yn(this,il(t.animation),e);return{type:1,matchers:CI(t.expr,e.errors),animation:r,queryCount:e.queryCount,depCount:e.depCount,options:Co(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(r=>Yn(this,r,e)),options:Co(t.options)}}visitGroup(t,e){const r=e.currentTime;let i=0;const o=t.steps.map(s=>{e.currentTime=r;const a=Yn(this,s,e);return i=Math.max(i,e.currentTime),a});return e.currentTime=i,{type:3,steps:o,options:Co(t.options)}}visitAnimate(t,e){const r=function II(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Mm(Tu(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=Mm(0,0,"");return o.dynamic=!0,o.strValue=e,o}const i=Tu(e,t);return Mm(i.duration,i.delay,i.easing)}(t.timings,e.errors);e.currentAnimateTimings=r;let i,o=t.styles?t.styles:At({});if(5==o.type)i=this.visitKeyframes(o,e);else{let s=t.styles,a=!1;if(!s){a=!0;const c={};r.easing&&(c.easing=r.easing),s=At(c)}e.currentTime+=r.duration+r.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,i=l}return e.currentAnimateTimings=null,{type:4,timings:r,style:i,options:null}}visitStyle(t,e){const r=this._makeStyleAst(t,e);return this._validateStyleAst(r,e),r}_makeStyleAst(t,e){const r=[];Array.isArray(t.styles)?t.styles.forEach(s=>{"string"==typeof s?s==fi?r.push(s):e.errors.push(function Rx(n){return new Y(3002,Ne)}()):r.push(s)}):r.push(t.styles);let i=!1,o=null;return r.forEach(s=>{if(Fu(s)){const a=s,l=a.easing;if(l&&(o=l,delete a.easing),!i)for(let c in a)if(a[c].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:r,easing:o,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const r=e.currentAnimateTimings;let i=e.currentTime,o=e.currentTime;r&&o>0&&(o-=r.duration+r.delay),t.styles.forEach(s=>{"string"!=typeof s&&Object.keys(s).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete s[a],void e.unsupportedCSSPropertiesFound.add(a);const l=e.collectedStyles[e.currentQuerySelector],c=l[a];let u=!0;c&&(o!=i&&o>=c.startTime&&i<=c.endTime&&(e.errors.push(function $x(n,t,e,r,i){return new Y(3010,Ne)}()),u=!1),o=c.startTime),u&&(l[a]={startTime:o,endTime:i}),e.options&&function fI(n,t,e){const r=t.params||{},i=Hw(n);i.length&&i.forEach(o=>{r.hasOwnProperty(o)||e.push(function Ix(n){return new Y(3001,Ne)}())})}(s[a],e.options,e.errors)})})}visitKeyframes(t,e){const r={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function Vx(){return new Y(3011,Ne)}()),r;let o=0;const s=[];let a=!1,l=!1,c=0;const u=t.steps.map(S=>{const E=this._makeStyleAst(S,e);let F=null!=E.offset?E.offset:function xI(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(Fu(e)&&e.hasOwnProperty("offset")){const r=e;t=parseFloat(r.offset),delete r.offset}});else if(Fu(n)&&n.hasOwnProperty("offset")){const e=n;t=parseFloat(e.offset),delete e.offset}return t}(E.styles),G=0;return null!=F&&(o++,G=E.offset=F),l=l||G<0||G>1,a=a||G<c,c=G,s.push(G),E});l&&e.errors.push(function Bx(){return new Y(3012,Ne)}()),a&&e.errors.push(function jx(){return new Y(3200,Ne)}());const d=t.steps.length;let f=0;o>0&&o<d?e.errors.push(function Hx(){return new Y(3202,Ne)}()):0==o&&(f=1/(d-1));const p=d-1,y=e.currentTime,w=e.currentAnimateTimings,b=w.duration;return u.forEach((S,E)=>{const F=f>0?E==p?1:f*E:s[E],G=F*b;e.currentTime=y+w.delay+G,w.duration=G,this._validateStyleAst(S,e),S.offset=F,r.styles.push(S)}),r}visitReference(t,e){return{type:8,animation:Yn(this,il(t.animation),e),options:Co(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Co(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Co(t.options)}}visitQuery(t,e){const r=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[o,s]=function SI(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(EI,"")),n=n.replace(/@\*/g,Su).replace(/@\w+/g,e=>Su+"-"+e.substr(1)).replace(/:animating/g,wm),[n,t]}(t.selector);e.currentQuerySelector=r.length?r+" "+o:o,Qn(e.collectedStyles,e.currentQuerySelector,{});const a=Yn(this,il(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=r,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:Co(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function Ux(){return new Y(3013,Ne)}());const r="full"===t.timings?{duration:0,delay:0,easing:"full"}:Tu(t.timings,e.errors,!0);return{type:12,animation:Yn(this,il(t.animation),e),timings:r,options:null}}}class AI{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Fu(n){return!Array.isArray(n)&&"object"==typeof n}function Co(n){return n?(n=Ts(n)).params&&(n.params=function TI(n){return n?Ts(n):null}(n.params)):n={},n}function Mm(n,t,e){return{duration:n,delay:t,easing:e}}function Sm(n,t,e,r,i,o,s=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}class Lu{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let r=this._map.get(t);r||this._map.set(t,r=[]),r.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const NI=new RegExp(":enter","g"),FI=new RegExp(":leave","g");function Tm(n,t,e,r,i,o={},s={},a,l,c=[]){return(new LI).buildKeyframes(n,t,e,r,i,o,s,a,l,c)}class LI{buildKeyframes(t,e,r,i,o,s,a,l,c,u=[]){c=c||new Lu;const d=new Am(t,e,c,i,o,u,[]);d.options=l,d.currentTimeline.setStyles([s],null,d.errors,l),Yn(this,r,d);const f=d.timelines.filter(p=>p.containsAnimation());if(Object.keys(a).length){let p;for(let y=f.length-1;y>=0;y--){const w=f[y];if(w.element===e){p=w;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,l)}return f.length?f.map(p=>p.buildKeyframes()):[Sm(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const r=e.subInstructions.get(e.element);if(r){const i=e.createSubContext(t.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(r,i,i.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){const r=e.createSubContext(t.options);r.transformIntoNewTimeline(),this.visitReference(t.animation,r),e.transformIntoNewTimeline(r.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,r){let o=e.currentTimeline.currentTime;const s=null!=r.duration?vo(r.duration):null,a=null!=r.delay?vo(r.delay):null;return 0!==s&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(t,e){e.updateOptions(t.options,!0),Yn(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const r=e.subContextCount;let i=e;const o=t.options;if(o&&(o.params||o.delay)&&(i=e.createSubContext(o),i.transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Ru);const s=vo(o.delay);i.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>Yn(this,s,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const r=[];let i=e.currentTimeline.currentTime;const o=t.options&&t.options.delay?vo(t.options.delay):0;t.steps.forEach(s=>{const a=e.createSubContext(t.options);o&&a.delayNextStep(o),Yn(this,s,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const r=t.strValue;return Tu(e.params?Au(r,e.params,e.errors):r,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const r=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;r.delay&&(e.incrementTime(r.delay),i.snapshotCurrentStyles());const o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(r.duration),this.visitStyle(o,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const r=e.currentTimeline,i=e.currentAnimateTimings;!i&&r.getCurrentStyleProperties().length&&r.forwardFrame();const o=i&&i.easing||t.easing;t.isEmptyStep?r.applyEmptyStep(o):r.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const r=e.currentAnimateTimings,i=e.currentTimeline.duration,o=r.duration,a=e.createSubContext().currentTimeline;a.easing=r.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(i+o),e.previousNode=t}visitQuery(t,e){const r=e.currentTimeline.currentTime,i=t.options||{},o=i.delay?vo(i.delay):0;o&&(6===e.previousNode.type||0==r&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Ru);let s=r;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(t.options,c);o&&d.delayNextStep(o),c===e.element&&(l=d.currentTimeline),Yn(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const r=e.parentContext,i=e.currentTimeline,o=t.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=r.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;Yn(this,t.animation,e),e.previousNode=t,r.currentStaggerTime=i.currentTime-d+(i.startTime-r.currentTimeline.startTime)}}const Ru={};class Am{constructor(t,e,r,i,o,s,a,l){this._driver=t,this.element=e,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ru,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new $u(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const r=t;let i=this.options;null!=r.duration&&(i.duration=vo(r.duration)),null!=r.delay&&(i.delay=vo(r.delay));const o=r.params;if(o){let s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=Au(o[a],s,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const r=t.params={};Object.keys(e).forEach(i=>{r[i]=e[i]})}}return t}createSubContext(t=null,e,r){const i=e||this.element,o=new Am(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(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=Ru,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,r){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=r?r:0)+t.delay,easing:""},o=new RI(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(o),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,r,i,o,s){let a=[];if(i&&a.push(this.element),t.length>0){t=(t=t.replace(NI,"."+this._enterClassName)).replace(FI,"."+this._leaveClassName);let c=this._driver.query(this.element,t,1!=r);0!==r&&(c=r<0?c.slice(c.length+r,c.length):c.slice(0,r)),a.push(...c)}return!o&&0==a.length&&s.push(function zx(n){return new Y(3014,Ne)}()),a}}class $u{constructor(t,e,r,i){this._driver=t,this.element=e,this.startTime=r,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new $u(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||fi,this._currentKeyframe[e]=fi}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,r,i){e&&(this._previousKeyframe.easing=e);const o=i&&i.params||{},s=function $I(n,t){const e={};let r;return n.forEach(i=>{"*"===i?(r=r||Object.keys(t),r.forEach(o=>{e[o]=fi})):Vi(i,!1,e)}),e}(t,this._globalTimelineStyles);Object.keys(s).forEach(a=>{const l=Au(s[a],o,r);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:fi),this._updateStyle(a,l)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(r=>{this._currentKeyframe[r]=t[r]}),Object.keys(this._localTimelineStyles).forEach(r=>{this._currentKeyframe.hasOwnProperty(r)||(this._currentKeyframe[r]=this._localTimelineStyles[r])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const r=this._styleSummary[e],i=t._styleSummary[e];(!r||i.time>r.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,r=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((a,l)=>{const c=Vi(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?t.add(u):d==fi&&e.add(u)}),r||(c.offset=l/this.duration),i.push(c)});const o=t.size?xu(t.values()):[],s=e.size?xu(e.values()):[];if(r){const a=i[0],l=Ts(a);a.offset=0,l.offset=1,i=[a,l]}return Sm(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)}}class RI extends $u{constructor(t,e,r,i,o,s,a=!1){super(t,e,s.delay),this.keyframes=r,this.preStyleProps=i,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:r,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=r+e,a=e/s,l=Vi(t[0],!1);l.offset=0,o.push(l);const c=Vi(t[0],!1);c.offset=qw(a),o.push(c);const u=t.length-1;for(let d=1;d<=u;d++){let f=Vi(t[d],!1);f.offset=qw((e+f.offset*r)/s),o.push(f)}r=s,e=0,i="",t=o}return Sm(this.element,t,this.preStyleProps,this.postStyleProps,r,e,i,!0)}}function qw(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class xm{}class VI extends xm{normalizePropertyName(t,e){return Dm(t)}normalizeStyleValue(t,e,r,i){let o="";const s=r.toString().trim();if(BI[e]&&0!==r&&"0"!==r)if("number"==typeof r)o="px";else{const a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push(function Nx(n,t){return new Y(3005,Ne)}())}return s+o}}const BI=(()=>function jI(n){const t={};return n.forEach(e=>t[e]=!0),t}("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".split(",")))();function Kw(n,t,e,r,i,o,s,a,l,c,u,d,f){return{type:0,element:n,triggerName:t,isRemovalTransition:i,fromState:e,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:f}}const Im={};class Zw{constructor(t,e,r){this._triggerName=t,this.ast=e,this._stateStyles=r}match(t,e,r,i){return function HI(n,t,e,r,i){return n.some(o=>o(t,e,r,i))}(this.ast.matchers,t,e,r,i)}buildStyles(t,e,r){const i=this._stateStyles["*"],o=this._stateStyles[t],s=i?i.buildStyles(e,r):{};return o?o.buildStyles(e,r):s}build(t,e,r,i,o,s,a,l,c,u){const d=[],f=this.ast.options&&this.ast.options.params||Im,y=this.buildStyles(r,a&&a.params||Im,d),w=l&&l.params||Im,b=this.buildStyles(i,w,d),S=new Set,E=new Map,F=new Map,G="void"===i,ie={params:Object.assign(Object.assign({},f),w)},Z=u?[]:Tm(t,e,this.ast.animation,o,s,y,b,ie,c,d);let Q=0;if(Z.forEach(He=>{Q=Math.max(He.duration+He.delay,Q)}),d.length)return Kw(e,this._triggerName,r,i,G,y,b,[],[],E,F,Q,d);Z.forEach(He=>{const Qe=He.element,te=Qn(E,Qe,{});He.preStyleProps.forEach(X=>te[X]=!0);const se=Qn(F,Qe,{});He.postStyleProps.forEach(X=>se[X]=!0),Qe!==e&&S.add(Qe)});const Re=xu(S.values());return Kw(e,this._triggerName,r,i,G,y,b,Z,Re,E,F,Q)}}class UI{constructor(t,e,r){this.styles=t,this.defaultParams=e,this.normalizer=r}buildStyles(t,e){const r={},i=Ts(this.defaultParams);return Object.keys(t).forEach(o=>{const s=t[o];null!=s&&(i[o]=s)}),this.styles.styles.forEach(o=>{if("string"!=typeof o){const s=o;Object.keys(s).forEach(a=>{let l=s[a];l.length>1&&(l=Au(l,i,e));const c=this.normalizer.normalizePropertyName(a,e);l=this.normalizer.normalizeStyleValue(a,c,l,e),r[c]=l})}}),r}}class GI{constructor(t,e,r){this.name=t,this.ast=e,this._normalizer=r,this.transitionFactories=[],this.states={},e.states.forEach(i=>{this.states[i.name]=new UI(i.style,i.options&&i.options.params||{},r)}),Qw(this.states,"true","1"),Qw(this.states,"false","0"),e.transitions.forEach(i=>{this.transitionFactories.push(new Zw(t,i,this.states))}),this.fallbackTransition=function WI(n,t,e){return new Zw(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,r,i){return this.transitionFactories.find(s=>s.match(t,e,r,i))||null}matchStyles(t,e,r){return this.fallbackTransition.buildStyles(t,e,r)}}function Qw(n,t,e){n.hasOwnProperty(t)?n.hasOwnProperty(e)||(n[e]=n[t]):n.hasOwnProperty(e)&&(n[t]=n[e])}const qI=new Lu;class KI{constructor(t,e,r){this.bodyNode=t,this._driver=e,this._normalizer=r,this._animations={},this._playersById={},this.players=[]}register(t,e){const r=[],o=Em(this._driver,e,r,[]);if(r.length)throw function Yx(n){return new Y(3503,Ne)}();this._animations[t]=o}_buildPlayer(t,e,r){const i=t.element,o=Aw(0,this._normalizer,0,t.keyframes,e,r);return this._driver.animate(i,o,t.duration,t.delay,t.easing,[],!0)}create(t,e,r={}){const i=[],o=this._animations[t];let s;const a=new Map;if(o?(s=Tm(this._driver,e,o,vm,Eu,{},{},r,qI,i),s.forEach(u=>{const d=Qn(a,u.element,{});u.postStyleProps.forEach(f=>d[f]=null)})):(i.push(function Jx(){return new Y(3300,Ne)}()),s=[]),i.length)throw function Xx(n){return new Y(3504,Ne)}();a.forEach((u,d)=>{Object.keys(u).forEach(f=>{u[f]=this._driver.computeStyle(d,f,fi)})});const c=$i(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,{},d)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const r=this.players.indexOf(e);r>=0&&this.players.splice(r,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw function eI(n){return new Y(3301,Ne)}();return e}listen(t,e,r,i){const o=mm(e,"","","");return fm(this._getPlayer(t),r,o,i),()=>{}}command(t,e,r,i){if("register"==r)return void this.register(t,i[0]);if("create"==r)return void this.create(t,e,i[0]||{});const o=this._getPlayer(t);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(t)}}}const Yw="ng-animate-queued",Pm="ng-animate-disabled",XI=[],Jw={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},eP={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},dr="__ng_removed";class km{constructor(t,e=""){this.namespaceId=e;const r=t&&t.hasOwnProperty("value");if(this.value=function iP(n){return null!=n?n:null}(r?t.value:t),r){const o=Ts(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const r=this.options.params;Object.keys(e).forEach(i=>{null==r[i]&&(r[i]=e[i])})}}}const ol="void",Nm=new km(ol);class tP{constructor(t,e,r){this.id=t,this.hostElement=e,this._engine=r,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,hr(e,this._hostClassName)}listen(t,e,r,i){if(!this._triggers.hasOwnProperty(e))throw function tI(n,t){return new Y(3302,Ne)}();if(null==r||0==r.length)throw function nI(n){return new Y(3303,Ne)}();if(!function oP(n){return"start"==n||"done"==n}(r))throw function rI(n,t){return new Y(3400,Ne)}();const o=Qn(this._elementListeners,t,[]),s={name:e,phase:r,callback:i};o.push(s);const a=Qn(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(hr(t,Mu),hr(t,Mu+"-"+e),a[e]=Nm),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw function iI(n){return new Y(3401,Ne)}();return e}trigger(t,e,r,i=!0){const o=this._getTrigger(e),s=new Om(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(hr(t,Mu),hr(t,Mu+"-"+e),this._engine.statesByElement.set(t,a={}));let l=a[e];const c=new km(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[e]=c,l||(l=Nm),c.value!==ol&&l.value===c.value){if(!function lP(n,t){const e=Object.keys(n),r=Object.keys(t);if(e.length!=r.length)return!1;for(let i=0;i<e.length;i++){const o=e[i];if(!t.hasOwnProperty(o)||n[o]!==t[o])return!1}return!0}(l.params,c.params)){const w=[],b=o.matchStyles(l.value,l.params,w),S=o.matchStyles(c.value,c.params,w);w.length?this._engine.reportError(w):this._engine.afterFlush(()=>{wo(t,b),Yr(t,S)})}return}const f=Qn(this._engine.playersByElement,t,[]);f.forEach(w=>{w.namespaceId==this.id&&w.triggerName==e&&w.queued&&w.destroy()});let p=o.matchTransition(l.value,c.value,t,c.params),y=!1;if(!p){if(!i)return;p=o.fallbackTransition,y=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:p,fromState:l,toState:c,player:s,isFallbackTransition:y}),y||(hr(t,Yw),s.onStart(()=>{As(t,Yw)})),s.onDone(()=>{let w=this.players.indexOf(s);w>=0&&this.players.splice(w,1);const b=this._engine.playersByElement.get(t);if(b){let S=b.indexOf(s);S>=0&&b.splice(S,1)}}),this.players.push(s),f.push(s),s}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,r)=>{delete e[t]}),this._elementListeners.forEach((e,r)=>{this._elementListeners.set(r,e.filter(i=>i.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(r=>r.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const r=this._engine.driver.query(t,Su,!0);r.forEach(i=>{if(i[dr])return;const o=this._engine.fetchNamespacesByElement(i);o.size?o.forEach(s=>s.triggerLeaveAnimation(i,e,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(t,e,r,i){const o=this._engine.statesByElement.get(t),s=new Map;if(o){const a=[];if(Object.keys(o).forEach(l=>{if(s.set(l,o[l].value),this._triggers[l]){const c=this.trigger(t,l,ol,i);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,s),r&&$i(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),r=this._engine.statesByElement.get(t);if(e&&r){const i=new Set;e.forEach(o=>{const s=o.name;if(i.has(s))return;i.add(s);const l=this._triggers[s].fallbackTransition,c=r[s]||Nm,u=new km(ol),d=new Om(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(t,e){const r=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(r.totalAnimations){const o=r.players.length?r.playersByQueriedElement.get(t):[];if(o&&o.length)i=!0;else{let s=t;for(;s=s.parentNode;)if(r.statesByElement.get(s)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)r.markElementAsRemoved(this.id,t,!1,e);else{const o=t[dr];(!o||o===Jw)&&(r.afterFlush(()=>this.clearElementCache(t)),r.destroyInnerAnimations(t),r._onRemovalComplete(t,e))}}insertNode(t,e){hr(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];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(a=>{if(a.name==r.triggerName){const l=mm(o,r.triggerName,r.fromState.value,r.toState.value);l._data=t,fm(r.player,a.phase,l,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(r)}),this._queue=[],e.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(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(r=>r.element===t)||e,e}}class nP{constructor(t,e,r){this.bodyNode=t,this.driver=e,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)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(r=>{r.queued&&t.push(r)})}),t}createNamespace(t,e){const r=new tP(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(r,e):(this.newHostElements.set(e,r),this.collectEnterElement(e)),this._namespaceLookup[t]=r}_balanceNamespaceList(t,e){const r=this._namespaceList,i=this.namespacesByHostElement,o=r.length-1;if(o>=0){let s=!1;if(void 0!==this.driver.getParentElement){let a=this.driver.getParentElement(e);for(;a;){const l=i.get(a);if(l){const c=r.indexOf(l);r.splice(c+1,0,t),s=!0;break}a=this.driver.getParentElement(a)}}else for(let a=o;a>=0;a--)if(this.driver.containsElement(r[a].hostElement,e)){r.splice(a+1,0,t),s=!0;break}s||r.unshift(t)}else r.push(t);return i.set(e,t),t}register(t,e){let r=this._namespaceLookup[t];return r||(r=this.createNamespace(t,e)),r}registerTrigger(t,e,r){let i=this._namespaceLookup[t];i&&i.register(e,r)&&this.totalAnimations++}destroy(t,e){if(!t)return;const r=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(r.hostElement),delete this._namespaceLookup[t];const i=this._namespaceList.indexOf(r);i>=0&&this._namespaceList.splice(i,1)}),this.afterFlushAnimationsDone(()=>r.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,r=this.statesByElement.get(t);if(r){const i=Object.keys(r);for(let o=0;o<i.length;o++){const s=r[i[o]].namespaceId;if(s){const a=this._fetchNamespace(s);a&&e.add(a)}}}return e}trigger(t,e,r,i){if(Vu(e)){const o=this._fetchNamespace(t);if(o)return o.trigger(e,r,i),!0}return!1}insertNode(t,e,r,i){if(!Vu(e))return;const o=e[dr];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(e,r)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),hr(t,Pm)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),As(t,Pm))}removeNode(t,e,r,i){if(Vu(e)){const o=t?this._fetchNamespace(t):null;if(o?o.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),r){const s=this.namespacesByHostElement.get(e);s&&s.id!==t&&s.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,r,i,o){this.collectedLeaveElements.push(e),e[dr]={namespaceId:t,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,e,r,i,o){return Vu(e)?this._fetchNamespace(t).listen(e,r,i,o):()=>{}}_buildInstruction(t,e,r,i,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,r,i,t.fromState.options,t.toState.options,e,o)}destroyInnerAnimations(t){let e=this.driver.query(t,Su,!0);e.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,wm,!0),e.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return $i(this.players).onDone(()=>t());t()})}processLeaveNode(t){var e;const r=t[dr];if(r&&r.setForRemoval){if(t[dr]=Jw,r.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(r.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,r.setForRemoval)}(null===(e=t.classList)||void 0===e?void 0:e.contains(Pm))&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,i)=>this._balanceNamespaceList(r,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;r<this.collectedEnterElements.length;r++)hr(this.collectedEnterElements[r],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const r=[];try{e=this._flushAnimations(r,t)}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=[],e.length?$i(e).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(t){throw function oI(n){return new Y(3402,Ne)}()}_flushAnimations(t,e){const r=new Lu,i=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(N=>{u.add(N);const B=this.driver.query(N,".ng-animate-queued",!0);for(let W=0;W<B.length;W++)u.add(B[W])});const d=this.bodyNode,f=Array.from(this.statesByElement.keys()),p=tC(f,this.collectedEnterElements),y=new Map;let w=0;p.forEach((N,B)=>{const W=vm+w++;y.set(B,W),N.forEach(re=>hr(re,W))});const b=[],S=new Set,E=new Set;for(let N=0;N<this.collectedLeaveElements.length;N++){const B=this.collectedLeaveElements[N],W=B[dr];W&&W.setForRemoval&&(b.push(B),S.add(B),W.hasAnimation?this.driver.query(B,".ng-star-inserted",!0).forEach(re=>S.add(re)):E.add(B))}const F=new Map,G=tC(f,Array.from(S));G.forEach((N,B)=>{const W=Eu+w++;F.set(B,W),N.forEach(re=>hr(re,W))}),t.push(()=>{p.forEach((N,B)=>{const W=y.get(B);N.forEach(re=>As(re,W))}),G.forEach((N,B)=>{const W=F.get(B);N.forEach(re=>As(re,W))}),b.forEach(N=>{this.processLeaveNode(N)})});const ie=[],Z=[];for(let N=this._namespaceList.length-1;N>=0;N--)this._namespaceList[N].drainQueuedTransitions(e).forEach(W=>{const re=W.player,ee=W.element;if(ie.push(re),this.collectedEnterElements.length){const Oe=ee[dr];if(Oe&&Oe.setForMove){if(Oe.previousTriggersValues&&Oe.previousTriggersValues.has(W.triggerName)){const Me=Oe.previousTriggersValues.get(W.triggerName),dt=this.statesByElement.get(W.element);dt&&dt[W.triggerName]&&(dt[W.triggerName].value=Me)}return void re.destroy()}}const me=!d||!this.driver.containsElement(d,ee),Ye=F.get(ee),Ue=y.get(ee),Ee=this._buildInstruction(W,r,Ue,Ye,me);if(Ee.errors&&Ee.errors.length)return void Z.push(Ee);if(me)return re.onStart(()=>wo(ee,Ee.fromStyles)),re.onDestroy(()=>Yr(ee,Ee.toStyles)),void i.push(re);if(W.isFallbackTransition)return re.onStart(()=>wo(ee,Ee.fromStyles)),re.onDestroy(()=>Yr(ee,Ee.toStyles)),void i.push(re);const xt=[];Ee.timelines.forEach(Oe=>{Oe.stretchStartingKeyframe=!0,this.disabledNodes.has(Oe.element)||xt.push(Oe)}),Ee.timelines=xt,r.append(ee,Ee.timelines),s.push({instruction:Ee,player:re,element:ee}),Ee.queriedElements.forEach(Oe=>Qn(a,Oe,[]).push(re)),Ee.preStyleProps.forEach((Oe,Me)=>{const dt=Object.keys(Oe);if(dt.length){let Ut=l.get(Me);Ut||l.set(Me,Ut=new Set),dt.forEach(In=>Ut.add(In))}}),Ee.postStyleProps.forEach((Oe,Me)=>{const dt=Object.keys(Oe);let Ut=c.get(Me);Ut||c.set(Me,Ut=new Set),dt.forEach(In=>Ut.add(In))})});if(Z.length){const N=[];Z.forEach(B=>{N.push(function sI(n,t){return new Y(3505,Ne)}())}),ie.forEach(B=>B.destroy()),this.reportError(N)}const Q=new Map,Re=new Map;s.forEach(N=>{const B=N.element;r.has(B)&&(Re.set(B,B),this._beforeAnimationBuild(N.player.namespaceId,N.instruction,Q))}),i.forEach(N=>{const B=N.element;this._getPreviousPlayers(B,!1,N.namespaceId,N.triggerName,null).forEach(re=>{Qn(Q,B,[]).push(re),re.destroy()})});const He=b.filter(N=>rC(N,l,c)),Qe=new Map;eC(Qe,this.driver,E,c,fi).forEach(N=>{rC(N,l,c)&&He.push(N)});const se=new Map;p.forEach((N,B)=>{eC(se,this.driver,new Set(N),l,"!")}),He.forEach(N=>{const B=Qe.get(N),W=se.get(N);Qe.set(N,Object.assign(Object.assign({},B),W))});const X=[],De=[],we={};s.forEach(N=>{const{element:B,player:W,instruction:re}=N;if(r.has(B)){if(u.has(B))return W.onDestroy(()=>Yr(B,re.toStyles)),W.disabled=!0,W.overrideTotalTime(re.totalTime),void i.push(W);let ee=we;if(Re.size>1){let Ye=B;const Ue=[];for(;Ye=Ye.parentNode;){const Ee=Re.get(Ye);if(Ee){ee=Ee;break}Ue.push(Ye)}Ue.forEach(Ee=>Re.set(Ee,ee))}const me=this._buildAnimation(W.namespaceId,re,Q,o,se,Qe);if(W.setRealPlayer(me),ee===we)X.push(W);else{const Ye=this.playersByElement.get(ee);Ye&&Ye.length&&(W.parentPlayer=$i(Ye)),i.push(W)}}else wo(B,re.fromStyles),W.onDestroy(()=>Yr(B,re.toStyles)),De.push(W),u.has(B)&&i.push(W)}),De.forEach(N=>{const B=o.get(N.element);if(B&&B.length){const W=$i(B);N.setRealPlayer(W)}}),i.forEach(N=>{N.parentPlayer?N.syncPlayerEvents(N.parentPlayer):N.destroy()});for(let N=0;N<b.length;N++){const B=b[N],W=B[dr];if(As(B,Eu),W&&W.hasAnimation)continue;let re=[];if(a.size){let me=a.get(B);me&&me.length&&re.push(...me);let Ye=this.driver.query(B,wm,!0);for(let Ue=0;Ue<Ye.length;Ue++){let Ee=a.get(Ye[Ue]);Ee&&Ee.length&&re.push(...Ee)}}const ee=re.filter(me=>!me.destroyed);ee.length?sP(this,B,ee):this.processLeaveNode(B)}return b.length=0,X.forEach(N=>{this.players.push(N),N.onDone(()=>{N.destroy();const B=this.players.indexOf(N);this.players.splice(B,1)}),N.play()}),X}elementContainsData(t,e){let r=!1;const i=e[dr];return i&&i.setForRemoval&&(r=!0),this.playersByElement.has(e)&&(r=!0),this.playersByQueriedElement.has(e)&&(r=!0),this.statesByElement.has(e)&&(r=!0),this._fetchNamespace(t).elementContainsData(e)||r}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,r,i,o){let s=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(s=a)}else{const a=this.playersByElement.get(t);if(a){const l=!o||o==ol;a.forEach(c=>{c.queued||!l&&c.triggerName!=i||s.push(c)})}}return(r||i)&&(s=s.filter(a=>!(r&&r!=a.namespaceId||i&&i!=a.triggerName))),s}_beforeAnimationBuild(t,e,r){const o=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==o,d=Qn(r,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(p=>{const y=p.getRealPlayer();y.beforeDestroy&&y.beforeDestroy(),p.destroy(),d.push(p)})}wo(o,e.fromStyles)}_buildAnimation(t,e,r,i,o,s){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,f=e.timelines.map(y=>{const w=y.element;u.add(w);const b=w[dr];if(b&&b.removedBeforeQueried)return new Qa(y.duration,y.delay);const S=w!==l,E=function aP(n){const t=[];return nC(n,t),t}((r.get(w)||XI).map(Q=>Q.getRealPlayer())).filter(Q=>!!Q.element&&Q.element===w),F=o.get(w),G=s.get(w),ie=Aw(0,this._normalizer,0,y.keyframes,F,G),Z=this._buildPlayer(y,ie,E);if(y.subTimeline&&i&&d.add(w),S){const Q=new Om(t,a,w);Q.setRealPlayer(Z),c.push(Q)}return Z});c.forEach(y=>{Qn(this.playersByQueriedElement,y.element,[]).push(y),y.onDone(()=>function rP(n,t,e){let r;if(n instanceof Map){if(r=n.get(t),r){if(r.length){const i=r.indexOf(e);r.splice(i,1)}0==r.length&&n.delete(t)}}else if(r=n[t],r){if(r.length){const i=r.indexOf(e);r.splice(i,1)}0==r.length&&delete n[t]}return r}(this.playersByQueriedElement,y.element,y))}),u.forEach(y=>hr(y,$w));const p=$i(f);return p.onDestroy(()=>{u.forEach(y=>As(y,$w)),Yr(l,e.toStyles)}),d.forEach(y=>{Qn(i,y,[]).push(p)}),p}_buildPlayer(t,e,r){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,r):new Qa(t.duration,t.delay)}}class Om{constructor(t,e,r){this.namespaceId=t,this.triggerName=e,this.element=r,this._player=new Qa,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(r=>fm(t,e,void 0,r))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Qn(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Vu(n){return n&&1===n.nodeType}function Xw(n,t){const e=n.style.display;return n.style.display=null!=t?t:"none",e}function eC(n,t,e,r,i){const o=[];e.forEach(l=>o.push(Xw(l)));const s=[];r.forEach((l,c)=>{const u={};l.forEach(d=>{const f=u[d]=t.computeStyle(c,d,i);(!f||0==f.length)&&(c[dr]=eP,s.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>Xw(l,o[a++])),s}function tC(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const i=new Set(t),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:i.has(c)?1:s(c),o.set(a,l),l}return t.forEach(a=>{const l=s(a);1!==l&&e.get(l).push(a)}),e}function hr(n,t){var e;null===(e=n.classList)||void 0===e||e.add(t)}function As(n,t){var e;null===(e=n.classList)||void 0===e||e.remove(t)}function sP(n,t,e){$i(e).onDone(()=>n.processLeaveNode(t))}function nC(n,t){for(let e=0;e<n.length;e++){const r=n[e];r instanceof m8?nC(r.players,t):t.push(r)}}function rC(n,t,e){const r=e.get(n);if(!r)return!1;let i=t.get(n);return i?r.forEach(o=>i.add(o)):t.set(n,r),e.delete(n),!0}class Bu{constructor(t,e,r){this.bodyNode=t,this._driver=e,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(i,o)=>{},this._transitionEngine=new nP(t,e,r),this._timelineEngine=new KI(t,e,r),this._transitionEngine.onRemovalComplete=(i,o)=>this.onRemovalComplete(i,o)}registerTrigger(t,e,r,i,o){const s=t+"-"+i;let a=this._triggerCache[s];if(!a){const l=[],u=Em(this._driver,o,l,[]);if(l.length)throw function Zx(n,t){return new Y(3404,Ne)}();a=function zI(n,t,e){return new GI(n,t,e)}(i,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,i,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,r,i){this._transitionEngine.insertNode(t,e,r,i)}onRemove(t,e,r,i){this._transitionEngine.removeNode(t,e,i||!1,r)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,r,i){if("@"==r.charAt(0)){const[o,s]=xw(r);this._timelineEngine.command(o,e,s,i)}else this._transitionEngine.trigger(t,e,r,i)}listen(t,e,r,i,o){if("@"==r.charAt(0)){const[s,a]=xw(r);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(t,e,r,i,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let uP=(()=>{class n{constructor(e,r,i){this._element=e,this._startStyles=r,this._endStyles=i,this._state=0;let o=n.initialStylesByElement.get(e);o||n.initialStylesByElement.set(e,o={}),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Yr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Yr(this._element,this._initialStyles),this._endStyles&&(Yr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(wo(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(wo(this._element,this._endStyles),this._endStyles=null),Yr(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function Fm(n){let t=null;const e=Object.keys(n);for(let r=0;r<e.length;r++){const i=e[r];dP(i)&&(t=t||{},t[i]=n[i])}return t}function dP(n){return"display"===n||"position"===n}class iC{constructor(t,e,r,i){this.element=t,this.keyframes=e,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.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,r){return t.animate(e,r)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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}_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(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(r=>{"offset"!=r&&(t[r]=this._finished?e[r]:Uw(this.element,r))})}this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(r=>r()),e.length=0}}class hP{validateStyleProperty(t){return Nw(t)}matchesElement(t,e){return!1}containsElement(t,e){return Ow(t,e)}getParentElement(t){return ym(t)}query(t,e,r){return Fw(t,e,r)}computeStyle(t,e,r){return window.getComputedStyle(t)[e]}animate(t,e,r,i,o,s=[]){const l={duration:r,delay:i,fill:0==i?"both":"forwards"};o&&(l.easing=o);const c={},u=s.filter(f=>f instanceof iC);(function gI(n,t){return 0===n||0===t})(r,i)&&u.forEach(f=>{let p=f.currentSnapshot;Object.keys(p).forEach(y=>c[y]=p[y])}),e=function yI(n,t,e){const r=Object.keys(e);if(r.length&&t.length){let o=t[0],s=[];if(r.forEach(a=>{o.hasOwnProperty(a)||s.push(a),o[a]=e[a]}),s.length)for(var i=1;i<t.length;i++){let a=t[i];s.forEach(function(l){a[l]=Uw(n,l)})}}return t}(t,e=e.map(f=>Vi(f,!1)),c);const d=function cP(n,t){let e=null,r=null;return Array.isArray(t)&&t.length?(e=Fm(t[0]),t.length>1&&(r=Fm(t[t.length-1]))):t&&(e=Fm(t)),e||r?new uP(n,e,r):null}(t,e);return new iC(t,e,l,d)}}let fP=(()=>{class n extends h8{constructor(e,r){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(r.body,{id:"0",encapsulation:gr.None,styles:[],data:{animation:[]}})}build(e){const r=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(e)?f8(e):e;return oC(this._renderer,null,r,"register",[i]),new pP(r,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(U(ka),U(Vt))},n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})();class pP extends class tA{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new mP(this._id,t,e||{},this._renderer)}}class mP{constructor(t,e,r,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return oC(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function oC(n,t,e,r,i){return n.setProperty(t,`@@${e}:${r}`,i)}const sC="@.disabled";let gP=(()=>{class n{constructor(e,r,i){this.delegate=e,this.engine=r,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),r.onRemovalComplete=(o,s)=>{const a=null==s?void 0:s.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(e,r){const o=this.delegate.createRenderer(e,r);if(!(e&&r&&r.data&&r.data.animation)){let u=this._rendererCache.get(o);return u||(u=new aC("",o,this.engine),this._rendererCache.set(o,u)),u}const s=r.id,a=r.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,e,u.name,u)};return r.data.animation.forEach(l),new yP(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,r,i){e>=0&&e<this._microtaskId?this._zone.run(()=>r(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([r,i]))}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()}}return n.\u0275fac=function(e){return new(e||n)(U(ka),U(Bu),U(Jt))},n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})();class aC{constructor(t,e,r){this.namespaceId=t,this.delegate=e,this.engine=r,this.destroyNode=this.delegate.destroyNode?i=>e.destroyNode(i):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,r,i=!0){this.delegate.insertBefore(t,e,r),this.engine.onInsert(this.namespaceId,e,t,i)}removeChild(t,e,r){this.engine.onRemove(this.namespaceId,e,this.delegate,r)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,r,i){this.delegate.setAttribute(t,e,r,i)}removeAttribute(t,e,r){this.delegate.removeAttribute(t,e,r)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,r,i){this.delegate.setStyle(t,e,r,i)}removeStyle(t,e,r){this.delegate.removeStyle(t,e,r)}setProperty(t,e,r){"@"==e.charAt(0)&&e==sC?this.disableAnimations(t,!!r):this.delegate.setProperty(t,e,r)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,r){return this.delegate.listen(t,e,r)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class yP extends aC{constructor(t,e,r,i){super(e,r,i),this.factory=t,this.namespaceId=e}setProperty(t,e,r){"@"==e.charAt(0)?"."==e.charAt(1)&&e==sC?this.disableAnimations(t,r=void 0===r||!!r):this.engine.process(this.namespaceId,t,e.substr(1),r):this.delegate.setProperty(t,e,r)}listen(t,e,r){if("@"==e.charAt(0)){const i=function _P(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let o=e.substr(1),s="";return"@"!=o.charAt(0)&&([o,s]=function vP(n){const t=n.indexOf(".");return[n.substring(0,t),n.substr(t+1)]}(o)),this.engine.listen(this.namespaceId,i,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,r,a)})}return this.delegate.listen(t,e,r)}}let wP=(()=>{class n extends Bu{constructor(e,r,i){super(e.body,r,i)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(U(Vt),U(_m),U(xm))},n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})();const lC=new ae("AnimationModuleType"),cC=[{provide:h8,useClass:fP},{provide:xm,useFactory:function CP(){return new VI}},{provide:Bu,useClass:wP},{provide:ka,useFactory:function bP(n,t,e){return new gP(n,t,e)},deps:[Qc,Bu,Jt]}],uC=[{provide:_m,useFactory:()=>new hP},{provide:lC,useValue:"BrowserAnimations"},...cC],DP=[{provide:_m,useClass:Lw},{provide:lC,useValue:"NoopAnimations"},...cC];let EP=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?DP:uC}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({providers:uC,imports:[Fv]}),n})();const MP=hn(n=>function(){n(this),this.name="EmptyError",this.message="no elements in sequence"}),dC=new ae("MOTO_APPLE_PAYMENT_SERVICE_TOKEN"),TP=new ae("MOTO_APPLE_PAY_SESSION_VERSION_TOKEN",{factory:()=>10}),hC=new ae("MOTO_APPLE_PAY_MERCHANT_SERVICE_TOKEN"),Lm=new ae("MOTO_MERCHANT_INFO_SERVICE_TOKEN");let AP=(()=>{class n{constructor(e,r){this.http=e,this.merchantInfoService=r}validate(e,r){const{validationURL:i}=e,{merchantId:o}=r;return this.requestValidateMerchant(o,i)}requestValidateMerchant(e,r){return $p([this.merchantInfoService.getAuthToken(),this.merchantInfoService.getValidationUrl()]).pipe(mo(([i,o])=>this.http.post(o,{validationUrl:r},{params:{merchantId:e},headers:i?{Authorization:i}:null})))}}return n.\u0275fac=function(e){return new(e||n)(U(Np),U(Lm))},n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})();const fC=new ae("APPLE_PAY_SESSION_TOKEN",{factory:()=>Xl(Vt).defaultView.ApplePaySession}),xP=new ae("APPLE_PAY_SESSION_SUPPORT_TOKEN",{factory:()=>Boolean(Xl(fC))}),pC={merchantCapabilities:["supports3DS"],supportedNetworks:["visa","masterCard","amex","discover"]};let mC=(()=>{class n{constructor(e){this.applePaySession=e}canMakePayments(){return ApplePaySession.canMakePayments()}createPaySession(e,r,i){return new Lt(o=>{const s=a=>{o.error(a),console.error(a)};try{const a=new this.applePaySession(e,r),l=(c,u)=>{a.abort(),s({event:c,error:u})};a.onvalidatemerchant=c=>Tl(this,void 0,void 0,function*(){try{const u=yield function SP(n,t){const e="object"==typeof t;return new Promise((r,i)=>{let s,o=!1;n.subscribe({next:a=>{s=a,o=!0},error:i,complete:()=>{o?r(s):e?r(t.defaultValue):i(new MP)}})})}(i(c));a.completeMerchantValidation(u)}catch(u){l(c,u)}}),a.onpaymentmethodselected=c=>{const u={newTotal:Object.assign({},r.total)};a.completePaymentMethodSelection(u)},a.onshippingmethodselected=c=>{a.completeShippingMethodSelection({})},a.onshippingcontactselected=c=>{a.completeShippingContactSelection({})},a.onpaymentauthorized=c=>{a.completePayment({status:ApplePaySession.STATUS_SUCCESS}),o.next(c),o.complete()},a.oncancel=c=>{s(c)},a.begin()}catch(a){s(a)}})}}return n.\u0275fac=function(e){return new(e||n)(U(fC))},n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})(),gC=(()=>{class n{constructor(e,r,i){this.applePayVersion=e,this.nativeService=r,this.merchantService=i}canMakePayment(){return xr(this.nativeService.canMakePayments())}pay(e){const{version:r=this.applePayVersion}=e;return this.nativeService.createPaySession(r,this.mapData(e),o=>this.merchantService.validate(o,e))}mapData(e){const{total:r,countryCode:i,supportedNetworks:o=pC.supportedNetworks,merchantCapabilities:s=pC.merchantCapabilities}=e;return{countryCode:i,currencyCode:r.currency,supportedNetworks:o,merchantCapabilities:s,total:{amount:r.amount,label:r.label}}}}return n.\u0275fac=function(e){return new(e||n)(U(TP),U(mC),U(hC))},n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})();const PP={canMakePayment:()=>xr(!1),pay(n){throw new Error("not implemented")}},kP=[gC,mC,{provide:dC,deps:[xP,gC],useFactory:(n,t)=>n?t:PP}];let NP=(()=>{class n{static forRoot(){return{ngModule:n,providers:[...kP,{provide:hC,useClass:AP}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({imports:[[Jv]]}),n})();function OP(n,t){if(1&n){const e=Sn();j(0,"div",3)(1,"i",4),ke("click",function(){return Wt(e),ne().close()}),pe(2,"close"),z()()}}function FP(n,t){if(1&n&&(j(0,"div",1),je(1,"img",2),z()),2&n){const e=ne();O(1),R("src",e.src,Yo)("alt",e.alt)}}function LP(n,t){1&n&&(j(0,"span",10),pe(1,"\xb7"),z())}function RP(n,t){if(1&n&&(Zt(0),j(1,"a",8),pe(2),z(),J(3,LP,2,0,"span",9),Qt()),2&n){const e=t.$implicit,r=t.last;O(1),R("href",e.href,Yo),O(1),_n(" ",e.text," "),O(1),R("ngIf",!r)}}function $P(n,t){if(1&n&&(j(0,"div",6),J(1,RP,4,3,"ng-container",7),z()),2&n){const e=ne(2).ngIf;O(1),R("ngForOf",e.links)}}function VP(n,t){if(1&n&&(j(0,"p",11),pe(1),z()),2&n){const e=ne(2).ngIf;O(1),_n(" ",e.text," ")}}function BP(n,t){if(1&n&&(j(0,"div"),J(1,$P,2,1,"div",4),J(2,VP,2,1,"p",5),z()),2&n){const e=ne().ngIf;O(1),R("ngIf",null==e.links?null:e.links.length),O(1),R("ngIf",e.text)}}function jP(n,t){if(1&n&&(Zt(0),J(1,BP,3,2,"div",2),Qt()),2&n){const e=t.ngIf;O(1),R("ngIf",e.visible&&((null==e.links?null:e.links.length)||e.text))}}function HP(n,t){1&n&&(je(0,"moto-picture",16),xe(1,"image")),2&n&&R("src",Nn(1,1,"visa-secure.svg"))}function UP(n,t){1&n&&(je(0,"moto-picture",16),xe(1,"image")),2&n&&R("src",Nn(1,1,"master-card-secure.svg"))}function zP(n,t){if(1&n&&(j(0,"div",12)(1,"p",13),pe(2,"Your transactions are protected by"),z(),j(3,"div",14),J(4,HP,2,3,"moto-picture",15),J(5,UP,2,3,"moto-picture",15),z()()),2&n){const e=ne(2);O(4),R("ngIf",e.isVisaAvailable),O(1),R("ngIf",e.isMastercardAvailable)}}function GP(n,t){if(1&n&&(j(0,"div",1),J(1,jP,2,1,"ng-container",2),J(2,zP,6,2,"div",3),z()),2&n){const e=ne();O(1),R("ngIf",e.settings.merchantInfo),O(1),R("ngIf",e.isMastercardAvailable||e.isVisaAvailable)}}const WP=[[["prefix"]],[["suffix"]]],qP=["prefix","suffix"];function KP(n,t){1&n&&(j(0,"span",8),pe(1,"Invalid phone number"),z()),2&n&&R("@ANTransform",void 0)}function ZP(n,t){if(1&n&&(j(0,"div",2)(1,"div",3)(2,"h6",4),pe(3,"Phone"),z(),J(4,KP,2,1,"span",5),z(),j(5,"div",6),je(6,"moto-form-input",7),xe(7,"enum"),xe(8,"enum"),xe(9,"condition"),z()()),2&n){const e=ne();O(4),R("ngIf",e.isInvalidPhone),O(2),R("minlength",lr(7,5,"MIN_TEL","form-field-length"))("maxlength",lr(8,8,"MAX_TEL","form-field-length"))("validate",!1)("status",On(9,11,e.isInvalidPhone,"invalid","valid"))}}function QP(n,t){if(1&n&&(Zt(0),je(1,"moto-picture",14),Qt()),2&n){const e=t.ngIf;O(1),R("src",e)}}function YP(n,t){if(1&n&&(Zt(0),J(1,QP,2,1,"ng-container",13),xe(2,"brandLogo"),Qt()),2&n){const e=t.$implicit;O(1),R("ngIf",Nn(2,1,e))}}function JP(n,t){if(1&n&&(j(0,"div",2)(1,"div",10)(2,"h6",4),pe(3,"Payment methods"),z()(),j(4,"div",11),J(5,YP,3,3,"ng-container",12),z()()),2&n){const e=ne();O(5),R("ngForOf",e.settings.availableCardBrands)}}function XP(n,t){if(1&n&&(j(0,"span",15),pe(1),z()),2&n){const e=ne();R("@ANTransform",void 0),O(1),Wr(e.paymentsErrorMsg)}}function ek(n,t){if(1&n){const e=Sn();j(0,"div",16)(1,"moto-form-input",17),ke("paste",function(i){return Wt(e),ne().pasteCardNumber(i)}),xe(2,"cardInfo"),xe(3,"condition"),je(4,"moto-picture",18),xe(5,"cardInfo"),z(),je(6,"div",19),j(7,"div",20),je(8,"moto-form-input",21),xe(9,"condition"),je(10,"div",22),j(11,"moto-form-input",23),xe(12,"cardInfo"),xe(13,"cardInfo"),xe(14,"condition"),j(15,"div",24),xe(16,"cardInfo"),j(17,"i",25),pe(18,"error"),z()()()()()}if(2&n){const e=t.motoLet,r=ne();Dr("invalid",r.isInvalidCredentials),O(1),R("mask",On(2,17,e.cardNumber,"card-number-mask","0000 0000 0000 0000"))("transparent",!0)("validate",!1)("status",On(3,21,r.isInvalidCredentials,"invalid","valid")),O(3),R("src",lr(5,25,r.cardNumberValue,"logo")),O(4),R("transparent",!0)("validate",!1)("status",On(9,28,r.isInvalidCredentials,"invalid","valid")),O(3),R("mask",On(12,32,e.cardNumber,"code-mask","000"))("dropSpecialCharacters",!1)("placeholder",On(13,36,e.cardNumber,"code","CVV"))("transparent",!0)("validate",!1)("status",On(14,40,r.isInvalidCredentials,"invalid","valid")),O(4),yn("data-tooltip",On(16,44,e.cardNumber,"secure-text","CVC Card Verification Code"))}}function tk(n,t){1&n&&(j(0,"span",26),pe(1,"Invalid card holder name"),z()),2&n&&R("@ANTransform",void 0)}function nk(n,t){if(1&n){const e=Sn();j(0,"moto-pay-card",4),ke("select",function(i){return Wt(e),ne(2).selectCard(i)})("remove",function(i){return Wt(e),ne(2).removeCard(i)}),z()}2&n&&R("option",t.$implicit)}function rk(n,t){if(1&n&&(Zt(0),J(1,nk,1,1,"moto-pay-card",3),Qt()),2&n){const e=ne();O(1),R("ngForOf",e.cardOptions)}}function ik(n,t){1&n&&(j(0,"p",5),pe(1,"No cards yet..."),z())}function ok(n,t){if(1&n&&(j(0,"a",10),pe(1),z()),2&n){const e=ne(2).$implicit;R("href",e.link.href,Yo),O(1),Wr(e.link.text)}}function sk(n,t){if(1&n){const e=Sn();Zt(0),j(1,"label",5)(2,"input",6),ke("ngModelChange",function(i){Wt(e);const o=ne().index;return ne(3).checkboxesResults[o]=i})("ngModelChange",function(){return Wt(e),ne(4).onChange()}),z(),je(3,"span",7),j(4,"span",8),pe(5),J(6,ok,2,2,"a",9),z()(),Qt()}if(2&n){const e=ne(),r=e.index,i=e.$implicit,o=ne(3);O(2),R("name","chargee-term-"+r)("id","chargee-term-"+r)("ngModel",o.checkboxesResults[r]),O(1),Dr("invalid",o.isErrorSubmit&&!o.checkboxesResults[r]),O(2),_n(" ",i.text," "),O(1),R("ngIf",i.link)}}function ak(n,t){if(1&n&&(Zt(0),J(1,sk,7,7,"ng-container",2),Qt()),2&n){const e=t.$implicit;O(1),R("ngIf",e)}}function lk(n,t){if(1&n&&(Zt(0),J(1,ak,2,1,"ng-container",4),Qt()),2&n){const e=ne(2);O(1),R("ngForOf",e.chargeTerms.checkboxes)}}function ck(n,t){if(1&n&&(j(0,"p",11),pe(1),z()),2&n){const e=ne(2);O(1),_n(" ",e.chargeTerms.text," ")}}function uk(n,t){if(1&n&&(j(0,"div",1),J(1,lk,2,1,"ng-container",2),J(2,ck,2,1,"p",3),z()),2&n){const e=ne();O(1),R("ngIf",null==e.chargeTerms.checkboxes?null:e.chargeTerms.checkboxes.length),O(1),R("ngIf",null==e.chargeTerms?null:e.chargeTerms.text)}}const dk=function(n){return{$implicit:n}};function hk(n,t){if(1&n&&(_c(0,7),xe(1,"condition")),2&n){const e=t.$implicit,r=ne().motoLet;ne();const i=io(2);R("ngTemplateOutlet",On(1,2,e.logo,i,r[e.name]))("ngTemplateOutletContext",Nf(6,dk,e))}}function fk(n,t){if(1&n&&(j(0,"div",3)(1,"div",4)(2,"span",5),pe(3,"OR"),z()(),J(4,hk,2,8,"ng-container",6),z()),2&n){const e=ne();O(4),R("ngForOf",e.apms)("ngForTrackBy",e.trackByApm)}}function pk(n,t){if(1&n){const e=Sn();j(0,"div",8),ke("click",function(){const o=Wt(e).$implicit;return ne().pay(o)}),je(1,"img",9),z()}if(2&n){const e=t.$implicit;O(1),R("src",e.logo,Yo)("alt",e.name)}}function mk(n,t){if(1&n){const e=Sn();j(0,"div",10),ke("buttonClick",function(){const o=Wt(e).$implicit;return ne().pay(o)}),z()}}const gk=function(n){return{applepay:n}},yk=["cardFormRef"],_k=["additionalFormRef"],vk=["cardListRef"],wk=["chargeTermsRef"];function Ck(n,t){if(1&n){const e=Sn();Zt(0),j(1,"div",14),ke("click",function(){return Wt(e),ne(3).toggleCardList()}),j(2,"span",15),pe(3,"Manage cards"),z(),j(4,"i",16),pe(5,"keyboard_arrow_up"),z()(),j(6,"moto-pay-card-list",17,18),ke("select",function(){return Wt(e),ne(3).selectCard()})("remove",function(i){return Wt(e),ne(3).removeCard(i)}),xe(8,"condition"),z(),Qt()}if(2&n){const e=ne().motoLet,r=ne(2);O(4),Dr("active",r.viewState.isShowCardList),O(2),R("@ANToggleList",On(8,5,r.viewState.isShowCardList,"show","hide"))("childrenDetector",r.childrenDetector$)("cards",e)}}function bk(n,t){if(1&n&&(Zt(0),J(1,Ck,9,9,"ng-container",13),Qt()),2&n){const e=t.motoLet;O(1),R("ngIf",null==e?null:e.length)}}function Dk(n,t){if(1&n){const e=Sn();j(0,"button",19),ke("click",function(){return Wt(e),ne(2).showCardForm()}),j(1,"i",20),pe(2,"add"),z(),j(3,"span",21),pe(4,"Add new card"),z()()}}function Ek(n,t){if(1&n&&(je(0,"moto-pay-card-form",22,23),xe(2,"async")),2&n){const e=ne(2);R("@ANHeight",void 0)("settings",Nn(2,2,e.settings$))}}function Mk(n,t){if(1&n&&(je(0,"moto-pay-additional-form",22,24),xe(2,"async")),2&n){const e=ne(2);R("@ANHeight",void 0)("settings",Nn(2,2,e.settings$))}}function Sk(n,t){if(1&n&&(Zt(0),je(1,"div",25),j(2,"div",26),je(3,"moto-picture",27),xe(4,"cardInfo"),j(5,"span",28),pe(6),xe(7,"slice"),z()(),Qt()),2&n){const e=t.ngIf;O(3),R("src",lr(4,2,e.card.name,"logo")),O(3),_n(" \u2022\u2022",lr(7,5,e.card.name,-4)," ")}}function Tk(n,t){if(1&n){const e=Sn();Zt(0),j(1,"moto-pay-apm-list",29),ke("pay",function(i){return Wt(e),ne(3).apmSubmit(i)}),z(),Qt()}if(2&n){const e=ne().motoLet;O(1),R("apms",e)}}function Ak(n,t){if(1&n&&(Zt(0),J(1,Tk,2,1,"ng-container",13),Qt()),2&n){const e=t.motoLet;O(1),R("ngIf",null==e?null:e.length)}}function xk(n,t){if(1&n&&(Zt(0),je(1,"charge-terms",30,31),Qt()),2&n){const e=t.ngIf;O(1),R("chargeTerms",e)}}function Ik(n,t){if(1&n){const e=Sn();j(0,"div",1),J(1,bk,2,1,"ng-container",2),xe(2,"async"),J(3,Dk,5,0,"button",3),J(4,Ek,3,4,"moto-pay-card-form",4),J(5,Mk,3,4,"moto-pay-additional-form",4),j(6,"div",5)(7,"div",6)(8,"span",7),pe(9,"Total"),z(),j(10,"span",8),pe(11),xe(12,"currencySymbol"),xe(13,"price"),z()(),j(14,"button",9),ke("click",function(){return Wt(e),ne().submit()}),j(15,"div",10)(16,"div",11)(17,"span"),pe(18," Pay "),j(19,"span",12),pe(20),xe(21,"currencySymbol"),xe(22,"price"),z()()(),J(23,Sk,8,8,"ng-container",13),z()()(),J(24,Ak,2,1,"ng-container",2),xe(25,"async"),J(26,xk,3,1,"ng-container",13),xe(27,"async"),z()}if(2&n){const e=t.ngIf,r=ne();let i;O(1),R("motoLet",Nn(2,9,r.cards$)),O(2),R("ngIf",!r.viewState.isShowCardForm),O(1),R("ngIf",r.viewState.isShowCardForm),O(1),R("ngIf",r.viewState.isShowCardForm),O(6),Wr(lr(12,11,On(13,14,e.amount,e.tax,e.amountType),e.currency)),O(9),_n(" ",lr(21,18,On(22,21,e.amount,e.tax,e.amountType),e.currency)," "),O(3),R("ngIf",null==r.cardListRef?null:r.cardListRef.getSelectedCard()),O(1),R("motoLet",Nn(25,25,r.apms$)),O(2),R("ngIf",null==(i=Nn(27,27,r.settings$))?null:i.chargeTerms)}}function Pk(n,t){if(1&n&&(j(0,"p",4),pe(1),z()),2&n){const e=ne();O(1),_n(" ",e.description," ")}}const kk=["wrapper"];function Nk(n,t){1&n&&_c(0)}function Ok(n,t){1&n&&je(0,"moto-loader")}function Fk(n,t){1&n&&je(0,"div",12)}function Lk(n,t){if(1&n){const e=Sn();j(0,"div",4,5)(2,"div",6)(3,"moto-pay-header",7),ke("close",function(){return Wt(e),ne().close()}),z(),J(4,Nk,1,0,"ng-container",8),xe(5,"async"),je(6,"moto-pay-footer",9),J(7,Ok,1,0,"moto-loader",10),J(8,Fk,1,0,"div",11),z()()}if(2&n){const e=t.motoLet,r=ne(),i=io(5),o=io(3);O(3),R("showCloseButton",null==e?null:e.isCloseButtonVisible),O(1),R("ngIf",Nn(5,7,r.paymentResult$))("ngIfThen",i)("ngIfElse",o),O(2),R("settings",e),O(1),R("ngIf",r.isShowLoader),O(1),R("ngIf",!r.isShowLoader)}}function Rk(n,t){1&n&&je(0,"moto-pay-main")}function $k(n,t){if(1&n&&J(0,Rk,1,0,"moto-pay-main",13),2&n){const e=ne(),r=io(7);R("ngIf",!e.viewState.paymentErrorType&&!e.viewState.settingsErrorType)("ngIfElse",r)}}function Vk(n,t){if(1&n){const e=Sn();j(0,"moto-pay-result",14),ke("result",function(i){return Wt(e),ne().paid(i)}),xe(1,"async"),z()}2&n&&R("paymentResult",Nn(1,1,ne().paymentResult$))}function Bk(n,t){if(1&n&&je(0,"moto-pay-error",15),2&n){const e=ne();R("error",e.viewState.paymentErrorType||e.viewState.settingsErrorType)}}const jk=["paymentWrapperRef"],Hk=new zv(()=>!1),Uk=new zv(()=>!1);let yC=(()=>{class n{constructor(){this.detector$=new Rt}detectChanges(){this.detector$.next(null)}listenChangeDetection(){return this.detector$.asObservable()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=oe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),sl=(()=>{class n{constructor(e){this.injector=e,this.unsubscriber$=new Rt,this.childrenDetector$=new Rt}ngOnDestroy(){this.unsubscribe()}listenChildrenDetection(e){const r="local"===e,i="global"===e,o="full"===e;this.childrenDetector$.asObservable().pipe(Ka(10),this.untilDestroy()).subscribe(()=>{(r||o)&&this.localDetect(),(i||o)&&this.globalDetect()})}localDetect(){this.injector.get(Ba).detectChanges()}globalDetect(){this.injector.get(yC).detectChanges()}detect(){this.localDetect(),this.globalDetect()}untilDestroy(){return e8(this.unsubscriber$.asObservable())}unsubscribe(){this.unsubscriber$.next(null)}}return n.\u0275fac=function(e){return new(e||n)(I(mt))},n.\u0275cmp=Et({type:n,selectors:[["ng-component"]],decls:0,vars:0,template:function(e,r){},encapsulation:2}),n})();class zk{constructor(t,e){this.type=t,this.error=e}}class _C{getFullState(){return this.state}getState(t){return this.state[t]}setState(t,e){this.state[t]=e}}class Gk extends _C{constructor(){super(...arguments),this.destory$=new Rt,this.detector$=new Rt,this.action$=new Rt,this.error$=new Rt}untilDestroy(){return function n4(...n){return og(n)}(e8(this.destory$))}destroy(){this.destory$.next(null)}detect(){this.detector$.next(null)}listenChangeDetection(){return this.detector$.asObservable()}listenActions(){return this.action$.asObservable()}action(t){this.action$.next(t)}errorHandler(t){return e=>{this.error$.next(new zk(t,e))}}listenErrors(){return this.error$.asObservable()}getStream(t){return this.getSubject(t).asObservable()}getSubject(t){const e=this[t];if(!e)throw new Error(`Stream "${t}" not found!`);return e}emitToStream(t,e){this.getSubject(t).next(e)}getStreamValue(t){return this.getSubject(t).getValue()}}const vC=new ae("MOTO_PAY_APM_TOKEN");let Rm=(()=>{class n{constructor(e){this.apmMap=e.reduce((r,i)=>(r.set(i.name,i),r),new Map([]))}has(e){return this.apmMap.has(e)}get(e){return this.apmMap.get(e)}apmNames(){return Array.from(this.apmMap.keys())}}return n.\u0275fac=function(e){return new(e||n)(U(vC))},n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})(),xs=(()=>{class n extends Gk{constructor(e){super(),this.motoApmsService=e,this.state={isLoadCards:!1,isLoadApms:!1,isSentPayment:!1,isRemovedCard:!1,externalApms:new Set(this.motoApmsService.apmNames())},this.cards$=new Qr(null),this.apms$=new Qr(null),this.payment$=new Qr(null),this.settings$=new Qr(null),this.paymentResult$=new Qr(null)}getApiConfig(){var e;return null===(e=this.getStreamValue("settings$"))||void 0===e?void 0:e.urls}}return n.\u0275fac=function(e){return new(e||n)(U(Rm))},n.\u0275prov=oe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),wC=(()=>{class n extends _C{constructor(){super(...arguments),this.state={contentSize:null,paymentErrorType:null,settingsErrorType:null,window:null,isShowCardList:!0,isShowCardForm:!1}}inputTemplate(e,r){return`<input type="hidden" name="${e}" value="${r}" />`}formTemplate(e,r){return`<form action="${e}" method="post">${r}</form>`}makeFormTemplate({acsurl:e,md:r,paReq:i,termUrl:o}){const s=Object.entries({md:r,paReq:i,termUrl:o}).reduce((l,[c,u])=>l+`${this.inputTemplate(c,u)}\n`,"");return this.formTemplate(e,s)}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=nn(n)))(r||n)}}(),n.\u0275prov=oe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Is{constructor(t,e=null){this.type=t,this.payload=e}}function $m(n){return new hi({fromObject:n})}function Vm(n){const t=Object.entries(n).reduce((e,[r,i])=>(e[r]=String(i),e),{});return new Zr(t)}var Bi=(()=>{return(n=Bi||(Bi={}))[n.DEFAULT_ANIMATE_MS=0]="DEFAULT_ANIMATE_MS",Bi;var n})(),al=(()=>{return(n=al||(al={}))[n.MIN_CARD_NUMBER_LENGTH=13]="MIN_CARD_NUMBER_LENGTH",n[n.MAX_CARD_NUMBER_LENGTH=19]="MAX_CARD_NUMBER_LENGTH",al;var n})(),Hu=(()=>{return(n=Hu||(Hu={})).gbp="GBP",n.eur="EUR",n.nok="NOK",n.usd="USD",n.sgd="SGD",n.aud="AUD",n.cad="CAD",Hu;var n})(),ji=(()=>{return(n=ji||(ji={})).default="default-card-icon",n.mastercard="master-card-icon",n.maestro="maestro",n.visa="visa-card-icon-new",n.discover="discover",n.jcb="jcb",n["american-express"]="american-express",n.unionpay="unionpay",ji;var n})(),Uu=(()=>{return(n=Uu||(Uu={})).mastercard="CVC Card Verification Code",n.visa="CVV (Card Verification Value)",n["american-express"]="CID (Card Identification Number)",n.unionpay="CVN (Card Verification Number)",n.jcb="CVV (Card Verification Value)",n.maestro="CVV (Card Verification Value)",n.discover="CID (Card Identification Number)",Uu;var n})(),Ps=(()=>{return(n=Ps||(Ps={})).SUCCESS_TITLE="Successful",n.WARNING_TITLE="Warning",n.ERROR_TITLE="Attention!",n.INFO_TITLE="Information",Ps;var n})(),zu=(()=>{return(n=zu||(zu={}))[n.SMALL=1]="SMALL",n[n.MEDIUM=2]="MEDIUM",n[n.LARGE=3]="LARGE",n[n.EXTRA_LARGE=4]="EXTRA_LARGE",n[n.FULL_SCREEN=5]="FULL_SCREEN",zu;var n})();function ks(n,t,e=!0,r=0){const i=n[t[r]],o=t[r+1];if(!function Qk(n,t){return typeof n===t}(o,"string")&&r+1<t.length)throw new Error(`Invalid path key.The key type must be a string. \n Key: ${o}, \n Index: ${r+1},\n Path: ${JSON.stringify(t,(s,a)=>a||String("undefined"))}\n `);return o&&i?ks(i,t,e,r+1):e?function Yk(n){return JSON.parse(JSON.stringify(n))}(i):i}function bC(){const n=screen.height||window.innerHeight,t=screen.width||window.innerWidth,e=zu.FULL_SCREEN;return{timezoneOffsetUtcMinutes:(new Date).getTimezoneOffset(),locale:navigator.language,userAgent:navigator.userAgent,javaEnabled:navigator.javaEnabled()||!1,javaScriptEnabled:!0,colorDepth:screen.colorDepth,width:t,height:n,challengeWindowSize:e}}function Ns(n,t){return`${n.endsWith("/")?n.slice(0,-1):n}${t.startsWith("/")?t:`/${t}`}`}const DC="Watchdog fake error";const Xk=new ae("MOTO_PAY_SERVICE_TOKEN");var bo=(()=>{return(n=bo||(bo={}))[n.MAX_CARD_HOLDER=128]="MAX_CARD_HOLDER",n[n.MAX_TEL=30]="MAX_TEL",n[n.MIN_TEL=4]="MIN_TEL",bo;var n})(),Gu=(()=>((Gu||(Gu={})).APPLE_PAY="applepay",Gu))(),Wu=(()=>{return(n=Wu||(Wu={})).Customer="Customer",n.Merchant="Merchant",Wu;var n})(),qu=(()=>{return(n=qu||(qu={})).GrossWithoutGst="GrossWithoutGst",n.Net="Net",n.Gross="Gross",qu;var n})();let EC=(()=>{class n{constructor(e){this.dataService=e}getConfig(){return this.dataService.getApiConfig()}get(e){return this.getConfig()[e]}getFromPayment(e){return this.dataService.getStreamValue("payment$")[e]}}return n.\u0275fac=function(e){return new(e||n)(U(xs))},n.\u0275prov=oe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),tN=(()=>{class n{constructor(e=null,r,i){this.payService=e,this.http=r,this.config=i}getUserPaymentMethods(e,r){if(!r)return xr([]);const i=$m({merchantId:e}),o=Vm({Authorization:r}),a=Ns(this.config.get("billingProfiles"),"/api/UserPaymentMethods");return this.http.get(a,{params:i,headers:o}).pipe(Es(()=>xr([])))}getApmLogos(e,r,i){const o=$m({currency:i,payerId:r}),a=Ns(this.config.get("processing"),`/api/merchants/${e}/settings`);return this.http.get(a,{params:o}).pipe(Pt(l=>l.payments.filter(c=>"card"!=c.name)),Pt(l=>{const c=new Set;return l.filter(u=>!c.has(u.name)&&(c.add(u.name),!0))}),Es(()=>xr([])))}getPaymentInfo(e,r){const o=Ns(this.config.get("processing"),`/api/merchants/${e}/payments/${r}`);return this.http.get(o)}pay(e,r){const i=bC(),o=Object.assign({},i);e.ipAddress&&(o.ipAddress=e.ipAddress);const a={headers:Vm(o)},c=Ns(this.config.get("processing"),`/api/merchants/${e.merchantId}/payments`);let u=class eN{static build(t,e){var r,i,o,s,a,l,c;const u={amount:t.amount,amountType:t.amountType,tax:t.tax,currency:t.currency,description:null===(r=t.description)||void 0===r?void 0:r.substring(0,127),details:t.details?JSON.stringify(t.details):null,type:t.orderType},d=e.requisites,f=e.requisites,p={anchor:e.rebillAnchor,cardHolder:null==d?void 0:d.cardHolder,cardNumber:null==d?void 0:d.cardNumber,cvv:null==d?void 0:d.cvv,expiration:null==d?void 0:d.expiration,paymentToken:null==f?void 0:f.token,type:e.rebillAnchor?"rebill":e.paymentType},y={browserData:bC()},w={id:null!==(o=null!==(i=t.userId)&&void 0!==i?i:t.email)&&void 0!==o?o:d8().substring(0,36),email:null!==(s=t.email)&&void 0!==s?s:`${d8().replace("-","").substring(0,10)}@gmail.com`,phoneNumber:null!==(l=null===(a=e.additionalFields)||void 0===a?void 0:a.phoneNumber)&&void 0!==l?l:t.phoneNumber,ipAddress:t.ipAddress,deviceInfo:y,billingAddress:t.billingAddress};return{id:t.paymentId,initiator:null!==(c=t.initiator)&&void 0!==c?c:Wu.Customer,returnUrl:t.returnUrl,webhookUrl:t.webhookUrl,order:u,payer:w,requisites:p}}}.build(e,r);return Boolean(this.payService)?this.payService.pay(c,u,a):this.http.post(c,u,a)}removeCard(e,r,i){const o=$m({merchantId:r}),s=Vm({Authorization:i}),l=Ns(this.config.get("billingProfiles"),`/api/UserPaymentMethods/${e}`);return this.http.delete(l,{params:o,headers:s})}}return n.\u0275fac=function(e){return new(e||n)(U(Xk,8),U(Np),U(EC))},n.\u0275prov=oe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),MC=(()=>{class n{constructor(){this.initialized=!1,this.initializedPromise=new Promise(e=>{this.resolveInitialized=e})}initialize(){this.initialized||(this.initialized=!0,this.resolveInitialized())}waitForInitialization(){return Ki(this.initializedPromise)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=oe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),SC=(()=>{class n{constructor(e,r,i,o){this.apiService=e,this.motoApmsService=r,this.dataService=i,this.initializer=o,this.state={isLoadCards:!1,isLoadApms:!1,isSentPayment:!1,isRemovedCard:!1,externalApms:new Set(this.motoApmsService.apmNames())},this.cards$=new Qr(null),this.apms$=new Qr(null),this.payment$=new Qr(null),this.settings$=new Qr(null),this.paymentResult$=new Qr(null),this.apmRecover=()=>xr([])}initPaymentChangedListener(){this.dataService.getStream("payment$").pipe(Rp(null),r8(e=>this.dataService.action(new Is("change-payment",e))),Jc(Boolean),Ka(100),r8(e=>{this.dataService.setState("isLoadCards",!0),this.dataService.setState("isLoadApms",!0),this.dataService.detect()}),mo(e=>{const r=this.apiService.getUserPaymentMethods(e.merchantId,e.userAuthToken);return $p([r.pipe(Pt(s=>s.filter(a=>"card"===a.type.toLowerCase()).map(a=>a))),this.prepareApmsResponse(r.pipe(Pt(s=>s.filter(a=>"card"!==a.type.toLowerCase()).map(a=>a))))])}),this.dataService.untilDestroy()).subscribe(([e,r])=>{this.dataService.setState("isLoadCards",!1),this.dataService.setState("isLoadApms",!1),this.dataService.emitToStream("cards$",e),this.dataService.emitToStream("apms$",r),this.dataService.action(new Is("get-cards",e)),this.initializer.initialize()})}loadCards(){this.dataService.setState("isLoadCards",!0);const{merchantId:e,userAuthToken:r}=this.dataService.getStreamValue("payment$");this.apiService.getUserPaymentMethods(e,r).pipe(Pt(i=>i.filter(o=>"card"===o.type.toLowerCase()).map(o=>o))).subscribe(i=>{this.dataService.setState("isLoadCards",!1),this.dataService.emitToStream("cards$",i),this.dataService.action(new Is("get-cards",i))})}pay(e){this.dataService.setState("isSentPayment",!0);const r=this.dataService.getStreamValue("payment$");this.apiService.pay(r,e).subscribe({next:o=>{this.dataService.action(new Is("pay",o))},error:this.dataService.errorHandler("error-pay")})}alternativePay(e){this.dataService.setState("isSentPayment",!0);const r=s=>{this.dataService.action(new Is("pay",s))},{type:i}=e.requisites,o=this.motoApmsService.get(i);o.isAvailable().subscribe(s=>{if(!s)return void this.dataService.errorHandler("error-pay");const a=this.dataService.getStreamValue("payment$");o.pay(a,e).pipe(mo(l=>(e.requisites=Object.assign(Object.assign({},e.requisites),{token:l}),this.apiService.pay(a,e)))).subscribe({next:r,error:this.dataService.errorHandler("error-pay")})})}getPaymentInfo(e){const r=this.dataService.getStreamValue("payment$");return this.apiService.getPaymentInfo(r.merchantId,e)}removeCard(e){this.dataService.setState("isRemovedCard",!0);const{merchantId:r,userAuthToken:i}=this.dataService.getStreamValue("payment$");this.apiService.removeCard(e.id,r,i).subscribe(()=>{this.dataService.setState("isRemovedCard",!1),this.dataService.action(new Is("remove-card",e))})}prepareApmsResponse(e){return e.pipe(mo(r=>this.prepareApms(r)),Es(this.apmRecover))}prepareApms(e){const{merchantId:r,userId:i,currency:o}=this.dataService.getStreamValue("payment$");return this.apiService.getApmLogos(r,i,o).pipe(Pt(s=>{let a=this.joinUserApmsAndApms(e,s);return this.sortApms(a)}),function QT(n){return Cn((t,e)=>{let r=!1;t.subscribe(an(e,i=>{r=!0,e.next(i)},()=>{r||e.next(n),e.complete()}))})}([]),mo(s=>this.filterApms(s)))}joinUserApmsAndApms(e,r){return r.map(i=>{const o=e.findIndex(s=>s.name.toLocaleLowerCase()===i.name.toLocaleLowerCase());return o<0?{name:i.name,logo:i.logo,type:i.name}:Object.assign(Object.assign({},e[o]),{logo:i.logo})})}filterApms(e){const r=e.map(i=>this.motoApmsService.has(i.name)?this.motoApmsService.get(i.name).isAvailable().pipe(Pt(o=>o?i:null),Es(()=>xr(null))):xr(i));return r.length?$p(r).pipe(Pt(i=>i.filter(o=>o))):xr([])}sortApms(e){return e.sort((r,i)=>Number(!i.logo)-Number(!r.logo))}}return n.\u0275fac=function(e){return new(e||n)(U(tN),U(Rm),U(xs),U(MC))},n.\u0275prov=oe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),nN=(()=>{class n{constructor(){this._close=new $e,this.showCloseButton=!0}close(){this._close.emit()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Et({type:n,selectors:[["moto-pay-header"]],inputs:{showCloseButton:"showCloseButton"},outputs:{_close:"close"},decls:4,vars:1,consts:[[1,"__ndb-header"],[1,"__ndb-header-title","fz-24","fw-700"],["class","__ndb-header-close","data-tooltip","Close",4,"ngIf"],["data-tooltip","Close",1,"__ndb-header-close"],[1,"material-icons","pointer",3,"click"]],template:function(e,r){1&e&&(j(0,"header",0)(1,"h6",1),pe(2,"Checkout"),z(),J(3,OP,3,0,"div",2),z()),2&e&&(O(3),R("ngIf",r.showCloseButton))},directives:[Kn],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-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}),n})(),Os=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Et({type:n,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(e,r){1&e&&J(0,FP,2,2,"div",0),2&e&&R("ngIf",r.src)},directives:[Kn],styles:[".__ndb-picture[_ngcontent-%COMP%]{height:inherit;width:inherit}.__ndb-picture-tag[_ngcontent-%COMP%]{height:100%;width:100%;object-fit:cover}"],changeDetection:0}),n})();const Do={formErrorMessages:{cardNumber:"Invalid card number",expiration:"Invalid card date",cvv:"Invalid card code"},result:{icons:{rejected:"cancel",needAction:"hourglass_bottom",completed:"check_circle"},titleText:{rejected:"Something went wrong",needAction:"Awaiting confirmation",completed:"We placed your order \u{1f389}"},descriptionText:{rejected:"Payment failed.",needAction:"Wait.....",completed:null}},urls:{resources:"https://cdn.motopays.com"},keys:{postMessage:"__moto_pay_message"},error:{descriptionText:{"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","invalid-urls":'The field "urls" is required and processing/billingProfiles must to be set',"not-exist-settings":'Input parameter "settings" is required in the payment model'}}};let Bm=(()=>{class n{transform(e){return`${Do.urls.resources}/images/${e}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=at({name:"image",type:n,pure:!0}),n})(),rN=(()=>{class n{constructor(){}get isMastercardAvailable(){return this.isMastercardAvailableInternal()}get isVisaAvailable(){return this.isVisaAvailableInternal()}get isFooterVisible(){var e;return Boolean(null===(e=this.settings)||void 0===e?void 0:e.merchantInfo)||this.isMastercardAvailableInternal()||this.isVisaAvailableInternal()}isMastercardAvailableInternal(){var e,r,i;return null!==(i=null===(r=null===(e=this.settings)||void 0===e?void 0:e.availableCardBrands)||void 0===r?void 0:r.some(o=>"mastercard"==o))&&void 0!==i&&i}isVisaAvailableInternal(){var e,r,i;return null!==(i=null===(r=null===(e=this.settings)||void 0===e?void 0:e.availableCardBrands)||void 0===r?void 0:r.some(o=>"visa"==o))&&void 0!==i&&i}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Et({type:n,selectors:[["moto-pay-footer"]],inputs:{settings:"settings"},decls:1,vars:1,consts:[["class","__ndb-footer",4,"ngIf"],[1,"__ndb-footer"],[4,"ngIf"],["class","__ndb-footer-secure",4,"ngIf"],["class","__ndb-footer-links",4,"ngIf"],["class","__ndb-footer-description fz-11 fw-500 font-description",4,"ngIf"],[1,"__ndb-footer-links"],[4,"ngFor","ngForOf"],["target","_blank",1,"__ndb-footer-links-link","fz-12","fw-500","font-description",3,"href"],["class","__ndb-footer-links-separator fz-12 fw-500 font-description",4,"ngIf"],[1,"__ndb-footer-links-separator","fz-12","fw-500","font-description"],[1,"__ndb-footer-description","fz-11","fw-500","font-description"],[1,"__ndb-footer-secure"],[1,"__ndb-footer-secure-phrase","fz-12","fw-500","font-description"],[1,"__ndb-footer-secure-logos"],["class","__ndb-footer-secure-logos-logo",3,"src",4,"ngIf"],[1,"__ndb-footer-secure-logos-logo",3,"src"]],template:function(e,r){1&e&&J(0,GP,3,2,"div",0),2&e&&R("ngIf",r.isFooterVisible)},directives:[Os,Kn,Ds],pipes:[Bm],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-footer[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:28px;padding:0 28px 28px}@media (max-width: 768px){.__ndb-footer[_ngcontent-%COMP%]{padding-bottom:14px}}.__ndb-footer-menu[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:16px}.__ndb-footer-menu-logo[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.__ndb-footer-menu-logo-img[_ngcontent-%COMP%]{height:32px;width:32px}.__ndb-footer-menu-items[_ngcontent-%COMP%]{display:flex;align-items:center}.__ndb-footer-menu-items-dot[_ngcontent-%COMP%]{display:block;width:2px;height:2px;margin:0 5px;border-radius:50%;background-color:#a5aabe}.__ndb-footer-menu-items-link[_ngcontent-%COMP%]{transition:color .3s cubic-bezier(.25,.1,.25,1)}.__ndb-footer-menu-items-link[_ngcontent-%COMP%]:hover{color:#555b75!important}.__ndb-footer-links[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-wrap:wrap}.__ndb-footer-links-link[_ngcontent-%COMP%]{white-space:nowrap;text-decoration-line:underline}.__ndb-footer-links-separator[_ngcontent-%COMP%]{margin:0 10px;white-space:nowrap}.__ndb-footer-description[_ngcontent-%COMP%]{line-height:1.1;color:#000}.__ndb-footer-secure[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;gap:10px}.__ndb-footer-secure-phrase[_ngcontent-%COMP%]{color:#000}.__ndb-footer-secure-logos[_ngcontent-%COMP%]{display:flex;justify-content:center}.__ndb-footer-secure-logos-logo[_ngcontent-%COMP%]{height:40px}"],changeDetection:0}),n})();class jm{constructor(t){this.animationTime=Bi.DEFAULT_ANIMATE_MS,Object.assign(this,t)}}const iN=Ms("ANHeight",[Pr(":enter",[At({overflow:"hidden",height:"0px"}),Ir(Bi.DEFAULT_ANIMATE_MS,At({height:"*",overflow:"hidden"}))]),Pr(":leave",[At({height:"*",overflow:"hidden"}),Ir(Bi.DEFAULT_ANIMATE_MS,At({height:"0px",overflow:"hidden"}))])]),oN=Ms("ANScale",[Pr(":enter",[At({opacity:0,transform:"scale(0)"}),Ir(Bi.DEFAULT_ANIMATE_MS,At({opacity:1,transform:"scale(1)"}))]),Pr(":leave",Ir(Bi.DEFAULT_ANIMATE_MS,At({opacity:0,transform:"scale(0)"})))]),TC=n=>{const t=new jm({animationName:"ANTransform",fromStyles:{opacity:"0",transform:"translateY(-100%)"},toStyles:{opacity:"1",transform:"translateY(0%)"}}),e=Object.assign(t,n),{animationName:r,animationTime:i,fromStyles:o,toStyles:s}=e;return Ms(r,[Pr(":enter",[At(o),Ir(i,At(s))]),Pr(":leave",[At(s),Ir(i,At(o))])])},sN=n=>{const t=new jm({animationName:"ANStates",fromState:"a",toState:"b"}),e=Object.assign(t,n),{animationName:r,animationTime:i,fromStyles:o,toStyles:s,fromState:a,toState:l}=e;return Ms(r,[Za(a,At(o)),Za(l,At(s)),Pr(`${a}<=>${l}`,Ir(i))])},aN=n=>{const t=new jm({animationName:"ANStates"}),e=Object.assign(t,n),{animationName:r,animationTime:i,fromStyles:o,toStyles:s}=e;return Ms(r,[Pr(":enter",[At(o),Ir(i,At(s))]),Pr(":leave",[At(s),Ir(i,At(o))])])};let AC=(()=>{class n{constructor(){this.shadow=!0}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Et({type:n,selectors:[["moto-loader"]],hostVars:1,hostBindings:function(e,r){2&e&&Cc("@ANFade",r.fadeAnimation)},inputs:{shadow:"shadow"},decls:3,vars:5,consts:[[1,"__ndb-loader"],["alt","spinner",1,"__ndb-loader-picture",3,"src"]],template:function(e,r){1&e&&(j(0,"div",0),je(1,"moto-picture",1),xe(2,"image"),z()),2&e&&(Dr("shadow",r.shadow),O(1),R("src",Nn(2,3,"spinner-small.gif")))},directives:[Os],pipes:[Bm],styles:[".__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:[aN({animationName:"ANFade",fromStyles:{opacity:"0"},toStyles:{opacity:"1"}})]},changeDetection:0}),n})();const Hm=new ae("moto-window-document",{providedIn:"root",factory:()=>window});function xC(n){return n&&n.replace(/\s+/g," ").trim()}let Um=(()=>{class n{constructor(e,r){this.cdr=e,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.mask=null,this.validate=!0,this.dropSpecialCharacters=!0,this._paste=new $e}ngOnInit(){this.initFormControl()}initFormControl(){this.formControl=this.injector.get(mi)}get isInvalidControl(){return"invalid"===this.status||function cN(n){const{invalid:t,pristine:e,touched:r}=n;return t&&r&&!e}(this.formControl)&&this.validate}setValue(e){this.value=xC(e),this.onChange(e),this.cdr.detectChanges()}paste(e){e.stopPropagation(),setTimeout(()=>{this._paste.emit(e.target.value),this.cdr.detectChanges()})}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}writeValue(e){this.value=xC(e),this.cdr.detectChanges()}setDisabledState(e){this.disabled=e,this.cdr.detectChanges()}}return n.\u0275fac=function(e){return new(e||n)(I(Ba),I(mt))},n.\u0275cmp=Et({type:n,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:[nt([{provide:Zn,useExisting:We(()=>n),multi:!0}])],ngContentSelectors:qP,decls:8,vars:13,consts:[[1,"__ndb-form-control"],[1,"__ndb-form-control-affix"],[1,"__ndb-input-container"],[1,"__ndb-form-control-input",3,"type","placeholder","minlength","maxlength","mask","dropSpecialCharacters","ngModel","ngModelChange","blur","paste"],["inputRef",""]],template:function(e,r){1&e&&(function Hy(n){const t=k()[16][6];if(!t.projection){const r=t.projection=ua(n?n.length:1,null),i=r.slice();let o=t.child;for(;null!==o;){const s=n?k9(o,n):0;null!==s&&(i[s]?i[s].projectionNext=o:r[s]=o,i[s]=o),o=o.next}}}(WP),j(0,"div",0)(1,"div",1),Cf(2),z(),j(3,"div",2)(4,"input",3,4),ke("ngModelChange",function(o){return r.setValue(o)})("blur",function(){return r.onTouched()})("paste",function(o){return r.paste(o)}),z()(),j(6,"div",1),Cf(7,1),z()()),2&e&&(Dr("transparent",r.transparent)("invalid",r.isInvalidControl),O(4),R("type",r.type)("placeholder",r.placeholder)("minlength",r.minlength)("maxlength",r.maxlength)("mask",r.mask)("dropSpecialCharacters",r.dropSpecialCharacters)("ngModel",r.value),yn("data-locator",r.formControlName||r.placeholder)("autocomplete",r.autocomplete))},directives:[ex,iu,vu,rl,Ya,gu],styles:[""],changeDetection:0}),n})();const fN={"form-field-length":bo};let zm=(()=>{class n{transform(e,r){const o=fN[r][e];if(function Zk(n){return!function CC(n){return null==n}(n)}(o))return o;throw new Error(`Value of the key "${e}" of the enum does not exist.`)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=at({name:"enum",type:n,pure:!0}),n})(),cl=(()=>{class n{transform(e,r,i){return Boolean(e)?r:i}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=at({name:"condition",type:n,pure:!0}),n})(),IC=(()=>{class n extends sl{constructor(e,r){super(e),this.injector=e,this.fb=r,this.isErrorSubmit=!1}ngOnInit(){this.initForm(),this.initFormValueListener()}initForm(){this.form=this.fb.group({phoneNumber:[null,[pi.maxLength(bo.MAX_TEL),pi.minLength(bo.MIN_TEL)]]})}initFormValueListener(){this.form.valueChanges.pipe(Rp(null),Ka(50),l8(),Jc(([e,r])=>JSON.stringify(e)!==JSON.stringify(r)),this.untilDestroy()).subscribe(e=>{this.isErrorSubmit=!1,this.detect()})}get isInvalidForm(){return this.form.invalid}get isInvalidPhone(){return this.form.get("phoneNumber").invalid&&this.isErrorSubmit}getFormValue(){return this.form.value}setErrorSubmitStatus(e){this.isErrorSubmit=e,this.detect()}resetForm(){this.form.reset(),this.localDetect()}}return n.\u0275fac=function(e){return new(e||n)(I(mt),I(_w))},n.\u0275cmp=Et({type:n,selectors:[["moto-pay-additional-form"]],inputs:{settings:"settings"},exportAs:["additionalFormRef"],features:[Le],decls:2,vars:2,consts:[[1,"__ndb-form",3,"formGroup"],["class","__ndb-form-stage",4,"ngIf"],[1,"__ndb-form-stage"],[1,"__ndb-form-stage-header"],[1,"__ndb-form-stage-header-title","fz-14","fw-500"],["class","__ndb-form-stage-header-error fz-14 fw-500 font-error","data-locator","phone-error",4,"ngIf"],[1,"__ndb-form-stage-controls"],["formControlName","phoneNumber","placeholder","Phone number","autocomplete","tel","type","tel",3,"minlength","maxlength","validate","status"],["data-locator","phone-error",1,"__ndb-form-stage-header-error","fz-14","fw-500","font-error"]],template:function(e,r){1&e&&(j(0,"form",0),J(1,ZP,10,15,"div",1),z()),2&e&&(R("formGroup",r.form),O(1),R("ngIf",r.settings.isPhoneNumberFieldVisible))},directives:[Um,im,zp,nl,Kn,Ya,_u,vu,rl],pipes:[zm,cl],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-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:28px;margin-top:10px}.__ndb-form-stage[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}.__ndb-form-stage-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:10px}.__ndb-form-stage-controls_credentials[_ngcontent-%COMP%]{border:1px solid #c9ccd8;border-radius:4px;box-shadow:0 2px #29304d14}.__ndb-form-stage-controls_credentials.invalid[_ngcontent-%COMP%]{border-color:#eb001b}.__ndb-form-stage-controls_credentials.invalid[_ngcontent-%COMP%] .__ndb-form-stage-controls-separator[_ngcontent-%COMP%]{background-color:#eb001b}.__ndb-form-stage-controls_card-number-logo[_ngcontent-%COMP%]{height:24px;width:36px}.__ndb-form-stage-controls-separator[_ngcontent-%COMP%]{background-color:#c9ccd8}.__ndb-form-stage-controls-separator_x[_ngcontent-%COMP%]{height:.5px}.__ndb-form-stage-controls-separator_y[_ngcontent-%COMP%]{width:.5px}.__ndb-form-stage-controls-group[_ngcontent-%COMP%]{display:flex;border-top:none}.__ndb-form-stage-controls-group[_ngcontent-%COMP%] moto-form-input[_ngcontent-%COMP%]{width:50%}"],data:{animation:[TC()]},changeDetection:0}),n})();const pN={"american-express":[3,4]};class Ku{static luhnAlgorithm({value:t}){return Boolean(t)&&function mN(n){return/^\d+$/.test(n)&&!(n.split("").reverse().map(function(t,e){return t=parseInt(t,10),e%2==0?t:(t*=2)>9?t-9:t}).reduce(function(t,e){return t+e})%10)}(t)?null:{luhnAlgorithm:!0}}static cardExpiration({value:t}){const e={expiration:!0};if(t){if(t.length<4)return e;const i=+(new Date).getFullYear().toString().slice(-2),[o,s,a,l]=t.split(""),c=`${o}${s}`,f=+`${a}${l}`<i;return+c<1||+c>12||f?e:null}return e}static cardNumberLength({value:t}){const e=(null==t?void 0:t.length)||0;return e>=al.MIN_CARD_NUMBER_LENGTH&&e<=al.MAX_CARD_NUMBER_LENGTH?null:{cardLength:!0}}static cardCodeLength(t="cardNumber"){return({value:e,parent:r})=>{const i=null==r?void 0:r.get(t),[o]=ru(null==i?void 0:i.value),s=Boolean(null==o?void 0:o.code.size)&&Boolean(e),a=pN[null==o?void 0:o.type];return s&&((null==o?void 0:o.code.size)===(null==e?void 0:e.length)||(null==a?void 0:a.includes(null==e?void 0:e.length)))?null:{cardCodeLength:!0}}}}let ul=(()=>{class n{constructor(e,r){this.viewContainer=e,this.tpl=r,this.context={motoLet:null}}set _motoLet(e){this.context.motoLet=e}ngOnInit(){this.viewContainer.createEmbeddedView(this.tpl,this.context)}}return n.\u0275fac=function(e){return new(e||n)(I(Sr),I(Kr))},n.\u0275dir=fe({type:n,selectors:[["","motoLet",""]],inputs:{_motoLet:["motoLet","_motoLet"]}}),n})(),kC=(()=>{class n{transform(e){const r=ji[e];let i=null==r?void 0:r.toString();return i?(r==ji.visa&&(i+="-brand"),r==ji.mastercard&&(i+="-brand"),r?`${Do.urls.resources}/images/${i}.svg`:null):null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=at({name:"brandLogo",type:n,pure:!0}),n})(),Zu=(()=>{class n{transform(e,r,i=null){const[o]=ru(e);if(!o)return 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 Uu[o.type];case"code":return o.code.name;case"code-mask":{const{size:s}=o.code;return Array.from({length:s}).fill("0").join("")}}}getLogo(e){return e?`${Do.urls.resources}/images/${ji[e.type]||ji.default}.svg`:null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=at({name:"cardInfo",type:n,pure:!0}),n})(),NC=(()=>{class n extends sl{constructor(e,r){super(e),this.injector=e,this.fb=r,this.isErrorSubmit=!1,this.availableCardBrands=[],this.creadentialErrorMessages=ks(Do,["formErrorMessages"])}ngOnInit(){this.initForm(),this.initFormValueListener()}initForm(){this.form=this.fb.group({cardCredentials:this.fb.group({cardNumber:[null,[pi.required,Ku.luhnAlgorithm,Ku.cardNumberLength]],expiration:[null,[pi.required,pi.minLength(4),pi.maxLength(4),Ku.cardExpiration]],cvv:[null,[pi.required,Ku.cardCodeLength()]]}),cardHolder:[null,[pi.required,pi.maxLength(bo.MAX_CARD_HOLDER)]]})}initFormValueListener(){this.form.valueChanges.pipe(Rp(null),Ka(50),l8(),Jc(([e,r])=>JSON.stringify(e)!==JSON.stringify(r)),this.untilDestroy()).subscribe(e=>{this.isErrorSubmit=!1,this.detect()})}get isInvalidForm(){return this.form.invalid}get isInvalidCredentials(){return this.form.get("cardCredentials").invalid&&this.isErrorSubmit}get isInvalidHolder(){return this.form.get("cardHolder").invalid&&this.isErrorSubmit}pasteCardNumber(e){const r=function lN(n){return n.replace(/\s/g,"")}(e);this.form.get("cardCredentials").get("cardNumber").setValue(r,{onlySelf:!0}),function hN(n,t,e=null,r=!0){t.forEach(i=>{const o=n.get(i);o||function Kk(n){throw new Error(n)}(`Invalid form control name: "${i}"`),o.reset(e),r&&o.updateValueAndValidity()})}(this.form.get("cardCredentials"),["expiration","cvv"]),this.detect()}get paymentsErrorMsg(){const e=this.form.get("cardCredentials"),[r]=function dN(n){return function uN(n){return Object.entries(n.controls).filter(([t,e])=>e.invalid)}(n).map(([t])=>t)}(e);return r?this.creadentialErrorMessages[r]:null}getFormValue(){const{cardCredentials:e,cardHolder:r,phoneNumber:i}=this.form.value;return Object.assign(e,{cardHolder:r,phoneNumber:i})}get cardNumberValue(){return this.form.value.cardCredentials.cardNumber}setErrorSubmitStatus(e){this.isErrorSubmit=e,this.detect()}resetForm(){this.form.reset(),this.localDetect()}}return n.\u0275fac=function(e){return new(e||n)(I(mt),I(_w))},n.\u0275cmp=Et({type:n,selectors:[["moto-pay-card-form"]],inputs:{settings:"settings"},exportAs:["cardFormRef"],features:[Le],decls:17,vars:15,consts:[[1,"__ndb-form",3,"formGroup"],["class","__ndb-form-stage",4,"ngIf"],[1,"__ndb-form-stage"],[1,"__ndb-form-stage-header"],[1,"__ndb-form-stage-header-title","fz-14","fw-500"],["class","__ndb-form-stage-header-error fz-14 fw-500 font-error","data-locator","card-credentials-error",4,"ngIf"],["class","__ndb-form-stage-controls __ndb-form-stage-controls_credentials","formGroupName","cardCredentials",3,"invalid",4,"motoLet"],["class","__ndb-form-stage-header-error fz-14 fw-500 font-error","data-locator","card-holder-error",4,"ngIf"],[1,"__ndb-form-stage-controls"],["formControlName","cardHolder","placeholder","Name on card","autocomplete","cc-name",3,"maxlength","validate","status"],[1,"__ndb-form-stage-paymentsheader"],[1,"__ndb-form-stage-payments"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"__ndb-form-stage-controls_card-number-logo",3,"src"],["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"],["formControlName","cardNumber","placeholder","Card number","type","tel","autocomplete","cc-number",1,"__ndb-form-stage-controls_card-number",3,"mask","transparent","validate","status","paste"],["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"],["formControlName","expiration","placeholder","MM / YY","mask","00 / 00","type","tel","autocomplete","cc-exp",1,"__ndb-form-stage-controls_expiration",3,"transparent","validate","status"],[1,"__ndb-form-stage-controls-separator","__ndb-form-stage-controls-separator_y"],["formControlName","cvv","type","tel",1,"__ndb-form-stage-controls_cvv",3,"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"]],template:function(e,r){1&e&&(j(0,"form",0),J(1,JP,6,1,"div",1),j(2,"div",2)(3,"div",3)(4,"h6",4),pe(5," Payment details "),z(),J(6,XP,2,2,"span",5),z(),J(7,ek,19,48,"div",6),z(),j(8,"div",2)(9,"div",3)(10,"h6",4),pe(11,"Name on card"),z(),J(12,tk,2,1,"span",7),z(),j(13,"div",8),je(14,"moto-form-input",9),xe(15,"enum"),xe(16,"condition"),z()()()),2&e&&(R("formGroup",r.form),O(1),R("ngIf",null==r.settings||null==r.settings.availableCardBrands?null:r.settings.availableCardBrands.length),O(5),R("ngIf",r.isInvalidCredentials),O(1),R("motoLet",r.getFormValue()),O(5),R("ngIf",r.isInvalidHolder),O(2),R("maxlength",lr(15,8,"MAX_CARD_HOLDER","form-field-length"))("validate",!1)("status",On(16,11,r.isInvalidHolder,"invalid","valid")))},directives:[Os,Um,im,zp,nl,Kn,Ds,ul,yu,Ya,_u,rl],pipes:[kC,Zu,cl,zm],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-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:28px}.__ndb-form-stage[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}.__ndb-form-stage-payments[_ngcontent-%COMP%]{gap:10px;display:flex;justify-content:center}.__ndb-form-stage-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:10px}.__ndb-form-stage-paymentsheader[_ngcontent-%COMP%]{justify-content:center;display:flex;align-items:center;gap:10px}.__ndb-form-stage-controls_credentials[_ngcontent-%COMP%]{border:1px solid #c9ccd8;border-radius:4px;box-shadow:0 2px #29304d14}.__ndb-form-stage-controls_credentials.invalid[_ngcontent-%COMP%]{border-color:#eb001b}.__ndb-form-stage-controls_credentials.invalid[_ngcontent-%COMP%] .__ndb-form-stage-controls-separator[_ngcontent-%COMP%]{background-color:#eb001b}.__ndb-form-stage-controls_card-number-logo[_ngcontent-%COMP%]{height:24px;width:36px}.__ndb-form-stage-controls-separator[_ngcontent-%COMP%]{background-color:#c9ccd8}.__ndb-form-stage-controls-separator_x[_ngcontent-%COMP%]{height:.5px}.__ndb-form-stage-controls-separator_y[_ngcontent-%COMP%]{width:.5px}.__ndb-form-stage-controls-group[_ngcontent-%COMP%]{display:flex;border-top:none}.__ndb-form-stage-controls-group[_ngcontent-%COMP%] moto-form-input[_ngcontent-%COMP%]{width:50%}"],data:{animation:[TC()]},changeDetection:0}),n})();class gN{constructor(t,e=!1){this.card=t,this.selected=e}setSelected(t){this.selected=t}}let yN=(()=>{class n{constructor(){this.isOpenPopup=!1,this.popupid=function Wk(n=1){return window.crypto.getRandomValues(new Uint32Array(n)).toString()}(),this._select=new $e,this._remove=new $e}hidePopup(e){const r=e.closest("[data-card-popup]");(null==r?void 0:r.getAttribute("data-card-popup"))===this.popupid||this.setPopupState(!1)}setPopupState(e){this.isOpenPopup=e}select(){this.option.selected||this._select.emit(this.option)}remove(){this._remove.emit(this.option.card),this.setPopupState(!1)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Et({type:n,selectors:[["moto-pay-card"]],hostBindings:function(e,r){1&e&&ke("click",function(o){return r.hidePopup(o.target)},!1,m0)},inputs:{option:"option"},outputs:{_select:"select",_remove:"remove"},decls:16,vars:17,consts:[[1,"__ndb-card"],["data-locator","card-active-circle",1,"__ndb-card-active-circle",3,"click"],["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"]],template:function(e,r){1&e&&(j(0,"div",0)(1,"div",1),ke("click",function(){return r.select()}),z(),je(2,"moto-picture",2),xe(3,"cardInfo"),j(4,"span",3),pe(5),xe(6,"cardInfo"),z(),j(7,"span",4),pe(8),xe(9,"slice"),z(),j(10,"div",5)(11,"i",6),ke("click",function(){return r.setPopupState(!r.isOpenPopup)}),pe(12,"more_vert"),z(),j(13,"div",7)(14,"span",8),ke("click",function(){return r.remove()}),pe(15,"Remove card"),z()()()()),2&e&&(O(1),Dr("selected",r.option.selected),O(1),R("src",lr(3,8,r.option.card.name,"logo")),O(3),Wr(lr(6,11,r.option.card.name,"payment-system")),O(3),Wr(lr(9,14,r.option.card.name,-6)),O(2),yn("data-card-popup",r.popupid),O(3),Dr("open",r.isOpenPopup))},directives:[Os],pipes:[Zu,Cp],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[_ngcontent-%COMP%]{--ndb-card-border-inner: var(--ndb-card-border, $mercury);display:flex;align-items:center;border:1px solid var(--ndb-card-border-inner);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: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: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 show-popup{0%{opacity:0;transform:translate(-60%,50%)}to{opacity:1;transform:translate(-60%)}}@keyframes mobile-show-popup{0%{opacity:0;transform:translate(-70%,50%)}to{opacity:1;transform:translate(-70%)}}'],changeDetection:0}),n})(),OC=(()=>{class n{constructor(){this._select=new $e,this._remove=new $e}set _cards(e){if(e){e=this.sortCards(e);const r=this.transformToCardOptions(e);this.selectDefaultCard(r),this.cardOptions=r,this.childrenDetector$.next()}}selectDefaultCard(e){const r=this.getSelectedCard(),i=e.find(o=>o.card.id===(null==r?void 0:r.card.id))||e[0];i&&i.setSelected(!0)}sortCards(e){return e.concat().sort(r=>r.isDefault?-1:1)}transformToCardOptions(e){return e.map(r=>new gN(r))}selectCard(e){const r=this.cardOptions.find(i=>i.selected);null==r||r.setSelected(!1),e.setSelected(!0),this._select.emit(e)}resetSeleted(){const e=this.getSelectedCard();e&&e.setSelected(!1)}getSelectedCard(){var e;return null===(e=this.cardOptions)||void 0===e?void 0:e.find(r=>r.selected)}removeCard(e){this._remove.emit(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Et({type:n,selectors:[["moto-pay-card-list"]],inputs:{childrenDetector$:["childrenDetector","childrenDetector$"],_cards:["cards","_cards"]},outputs:{_select:"select",_remove:"remove"},exportAs:["cardListRef"],decls:4,vars:2,consts:[[1,"__ndb-card-list"],[4,"ngIf","ngIfElse"],["emptyTpl",""],["class","__ndb-card-list-item",3,"option","select","remove",4,"ngFor","ngForOf"],[1,"__ndb-card-list-item",3,"option","select","remove"],[1,"font-empty"]],template:function(e,r){if(1&e&&(j(0,"div",0),J(1,rk,2,1,"ng-container",1),z(),J(2,ik,2,0,"ng-template",null,2,uo)),2&e){const i=io(3);O(1),R("ngIf",null==r.cardOptions?null:r.cardOptions.length)("ngIfElse",i)}},directives:[yN,Kn,Ds],styles:[".__ndb-card-list[_ngcontent-%COMP%]{display:flex;flex-direction:column}.__ndb-card-list-item[_ngcontent-%COMP%]{width:100%}.__ndb-card-list-item[_ngcontent-%COMP%]:not(:first-child){margin-top:10px}"],changeDetection:0}),n})(),FC=(()=>{class n extends sl{constructor(){super(...arguments),this.checkboxesResults=[],this.isErrorSubmit=!1}termsApproved(){var e,r,i;return!(null===(r=null===(e=this.chargeTerms)||void 0===e?void 0:e.checkboxes)||void 0===r?void 0:r.length)||!(null===(i=this.chargeTerms)||void 0===i?void 0:i.visible)||this.chargeTerms.checkboxes.filter(o=>o).length===this.checkboxesResults.filter(o=>o).length}onChange(){this.isErrorSubmit=!1}setErrorSubmitStatus(e){this.isErrorSubmit=e,this.detect()}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=nn(n)))(r||n)}}(),n.\u0275cmp=Et({type:n,selectors:[["charge-terms"]],inputs:{chargeTerms:"chargeTerms"},features:[Le],decls:1,vars:1,consts:[["class","__ndb-chargeterms",4,"ngIf"],[1,"__ndb-chargeterms"],[4,"ngIf"],["class","__ndb-chargeterms-text fz-11 fw-500 font-description",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"__ndb-chargeterms-checkbox","fz-11","fw-500","font-description"],["type","checkbox",1,"__ndb-chargeterms-checkbox-input",3,"name","id","ngModel","ngModelChange"],[1,"__ndb-chargeterms-checkbox-checkmark"],[1,"__ndb-chargeterms-checkbox-text"],["target","_blank","class","__ndb-chargeterms-checkbox-link fz-12 fw-500 font-description",3,"href",4,"ngIf"],["target","_blank",1,"__ndb-chargeterms-checkbox-link","fz-12","fw-500","font-description",3,"href"],[1,"__ndb-chargeterms-text","fz-11","fw-500","font-description"]],template:function(e,r){1&e&&J(0,uk,3,2,"div",0),2&e&&R("ngIf",null==r.chargeTerms?null:r.chargeTerms.visible)},directives:[Kn,Ds,Bp,Ya,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-chargeterms[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;margin-top:28px}.__ndb-chargeterms-checkbox[_ngcontent-%COMP%]{display:block;cursor:pointer}.__ndb-chargeterms-checkbox-input[_ngcontent-%COMP%]{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.__ndb-chargeterms-checkbox[_ngcontent-%COMP%]:hover .__ndb-chargeterms-checkbox-input[_ngcontent-%COMP%] ~ .__ndb-chargeterms-checkbox-checkmark[_ngcontent-%COMP%]{background-color:#ccc}.__ndb-chargeterms-checkbox-input[_ngcontent-%COMP%]:checked ~ .__ndb-chargeterms-checkbox-checkmark[_ngcontent-%COMP%]{background-color:#2196f3}.__ndb-chargeterms-checkbox-input[_ngcontent-%COMP%]:checked ~ .__ndb-chargeterms-checkbox-checkmark[_ngcontent-%COMP%]:after{display:block;left:6px;top:3px;width:5px;height:10px;border:solid white;border-width:0 3px 3px 0;transform:rotate(45deg)}.__ndb-chargeterms-checkbox-text[_ngcontent-%COMP%]{display:inline;vertical-align:middle}.__ndb-chargeterms-checkbox-checkmark[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;height:20px;width:20px;background-color:#fff;border-radius:100px;border:1px solid #dcdcdc;margin-right:5px;transform:rotate(0)}.__ndb-chargeterms-checkbox-checkmark[_ngcontent-%COMP%]:after{content:"";position:absolute;display:none}.__ndb-chargeterms-checkbox-checkmark.invalid[_ngcontent-%COMP%]{border:1px solid red}.__ndb-chargeterms-checkbox-checkmark.invalid[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:-2px;border:2px solid red;pointer-events:none}.__ndb-chargeterms-checkbox-link[_ngcontent-%COMP%]{display:inline;margin-left:10px;white-space:nowrap;text-align:center;text-decoration-line:underline}.__ndb-chargeterms-text[_ngcontent-%COMP%]{margin-top:10px;line-height:1.1;color:#000}'],changeDetection:0}),n})(),bN=(()=>{class n{constructor(){this._pay=new $e}pay(e){this._pay.emit(e)}trackByApm(e,r){return r.name}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Et({type:n,selectors:[["moto-pay-apm-list"]],inputs:{apms:"apms"},outputs:{_pay:"pay"},decls:5,vars:3,consts:[["class","__ndb-apm-list",4,"motoLet"],["apmDefaultRef",""],["applePayRef",""],[1,"__ndb-apm-list"],[1,"__ndb-apm-list__delimiter"],[1,"__ndb-apm-list__delimiter-text","fz-12"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"__ndb-apm-list__item",3,"click"],[1,"__ndb-apm-list__item-img",3,"src","alt"],["motoApplePayButton","",1,"__ndb-apm-list__item--space_top-2","moto-apple-pay-button",3,"buttonClick"]],template:function(e,r){if(1&e&&(J(0,fk,5,2,"div",0),J(1,pk,2,2,"ng-template",null,1,uo),J(3,mk,1,0,"ng-template",null,2,uo)),2&e){const i=io(4);R("motoLet",Nf(1,gk,i))}},directives:[ul,Ds,wv,Sx],pipes:[cl],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-apm-list[_ngcontent-%COMP%]{padding-top:29px}.__ndb-apm-list__delimiter[_ngcontent-%COMP%]{position:relative;margin-bottom:25px;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:"";position:absolute;top:50%;height:1px;width:45%;background-color:#c9ccd8}.__ndb-apm-list__delimiter[_ngcontent-%COMP%]:before{left:0}.__ndb-apm-list__delimiter[_ngcontent-%COMP%]:after{right:0}.__ndb-apm-list__delimiter-text[_ngcontent-%COMP%]{font-weight:500;color:#636b8a}.__ndb-apm-list__item[_ngcontent-%COMP%]{position:relative;width:100%;height:60px;margin-bottom:10px;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;cursor:pointer}.__ndb-apm-list__item[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}.__ndb-apm-list__item[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px #2f45704d}.__ndb-apm-list__item-space_top-2[_ngcontent-%COMP%]{margin-top:10px}.__ndb-apm-list__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%}'],changeDetection:0}),n})(),LC=(()=>{class n{constructor(e){this.window=e}transform(e,r){const i=Hu[r];return Number(e).toLocaleString(this.window.navigator.language,{style:"currency",currency:i})}}return n.\u0275fac=function(e){return new(e||n)(I(Hm,16))},n.\u0275pipe=at({name:"currencySymbol",type:n,pure:!0}),n})(),RC=(()=>{class n{transform(e,r,i){return r&&i&&i==qu.Net?Math.abs(e)+Math.abs(r):e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=at({name:"price",type:n,pure:!0}),n})(),DN=(()=>{class n extends sl{constructor(e,r,i,o,s,a){super(r),this.window=e,this.injector=r,this.toastr=i,this.dataService=o,this.viewService=s,this.facadeService=a,this.postMessageKey=ks(Do,["keys","postMessage"]),this.externalApms=this.dataService.getState("externalApms"),this.cards$=this.dataService.getStream("cards$"),this.apms$=this.dataService.getStream("apms$"),this.payment$=this.dataService.getStream("payment$"),this.settings$=this.dataService.getStream("settings$"),this.viewState=this.viewService.getFullState()}ngOnInit(){this.updateCardTypes(),this.listenActions(),this.listenErrors(),this.listenChildrenDetection("local")}listenActions(){this.dataService.listenActions().pipe(this.untilDestroy()).subscribe(({type:e,payload:r})=>{switch(e){case"get-cards":this.afterGetCards(r);break;case"change-payment":this.afterChangePayment();break;case"pay":this.afterPay(r);break;case"remove-card":this.afterRemoveCard()}this.detect()})}listenErrors(){this.dataService.listenErrors().pipe(this.untilDestroy()).subscribe(({type:r})=>{switch(r){case"error-get-cards":this.dataService.setState("isLoadCards",!1);break;case"error-remove-card":this.dataService.setState("isRemovedCard",!1);break;case"error-pay":this.dataService.setState("isSentPayment",!1)}this.closeWindow(),this.detect()})}updateCardTypes(){ru.updateCard(ru.types.MAESTRO,{niceType:"Maestro",lengths:[13,16]})}openWindow(){const{window:e}=this.viewService.getFullState();if(!Boolean(e)){const r=this.window.open("","_blank");r.document.write(function CN(){let o='\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">payment processing</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>'.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?.threeDsData?.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}()),this.viewService.setState("window",r)}}closeWindow(){const e=this.viewService.getState("window");Boolean(e)&&(e.close(),this.viewService.setState("window",null))}defaultPay(e){this.facadeService.pay(e),this.openWindow()}toggleCardList(){this.viewService.setState("isShowCardList",!this.viewState.isShowCardList),this.detect()}showCardForm(){this.viewService.setState("isShowCardForm",!0),this.viewService.setState("isShowCardList",!1),this.cardListRef.resetSeleted(),this.detect()}get currentCardNumber(){const e=this.cardListRef.getSelectedCard(),{isShowCardForm:r}=this.viewState;return e?e.card.name:r?this.cardFormRef.getFormValue().cardNumber:null}selectCard(){this.viewService.setState("isShowCardForm",!1),this.detect()}removeCard(e){this.facadeService.removeCard(e),this.detect()}submit(){var e;const r=null===(e=this.cardListRef)||void 0===e?void 0:e.getSelectedCard();switch(!0){case Boolean(r):this.payWithCard(r.card);break;case Boolean(this.viewState.isShowCardForm):this.payWithForm();break;default:this.viewService.setState("isShowCardForm",!0),this.toastr.info("Please fill out the form",Ps.INFO_TITLE)}this.detect()}apmSubmit(e){if(this.checkChargeTermsInvalid())return this.detect();const r={requisites:e,paymentType:e.type,rebillAnchor:e.rebill};this.externalApms.has(e.type)?this.facadeService.alternativePay(r):this.defaultPay(r),this.detect()}payWithCard(e){if(this.checkChargeTermsInvalid())return this.detect();this.defaultPay({requisites:e,paymentType:"card",rebillAnchor:e.rebill}),this.detect()}payWithForm(){const e=this.checkCardFormInvalid(),r=this.checkChargeTermsInvalid();if(e||r)return this.detect();const i=this.cardFormRef.getFormValue(),o=this.additionalFormRef.getFormValue();this.defaultPay({requisites:i,paymentType:"card",additionalFields:o}),this.detect()}afterPay(e){var r;"needAction"===(null===(r=e.payment)||void 0===r?void 0:r.state)?(this.handleConfirmation(e.action),this.waitingPaymentCompleted(e)):this.showResultComponent(e)}showResultComponent(e){this.closeWindow(),this.dataService.setState("isSentPayment",!1),this.dataService.emitToStream("paymentResult$",e)}postRedirect(e){this.viewService.getState("window").postMessage({key:this.postMessageKey,type:"postRedirect",threeDsData:e})}apmRedirect(e){this.viewService.getState("window").postMessage({key:this.postMessageKey,type:"simpleRedirect",threeDsData:e})}handleConfirmation(e){switch(e.name){case"3ds":this.postRedirect(e.data);break;case"redirect":this.apmRedirect(e.data);break;default:throw new Error("Unexpected action name")}}checkCardFormInvalid(){return!!this.cardFormRef.isInvalidForm&&(this.cardFormRef.setErrorSubmitStatus(!0),!0)}checkChargeTermsInvalid(){return!(!this.chargeTermsRef||this.chargeTermsRef.termsApproved()||(this.chargeTermsRef.setErrorSubmitStatus(!0),0))}waitingPaymentCompleted(e){(function Jk(n,t,e){return n.pipe(Pt(r=>{if(t(r))return r;throw new Error(DC)}),function BT(n=1/0){let t;t=n&&"object"==typeof n?n:{count:n};const{count:e=1/0,delay:r,resetOnSuccess:i=!1}=t;return e<=0?No:Cn((o,s)=>{let l,a=0;const c=()=>{let u=!1;l=o.subscribe(an(s,d=>{i&&(a=0),s.next(d)},void 0,d=>{if(a++<e){const f=()=>{l?(l.unsubscribe(),l=null,c()):u=!0};if(null!=r){const p="number"==typeof r?t8(r):nr(r(d,a)),y=an(s,()=>{y.unsubscribe(),f()},()=>{s.complete()});p.subscribe(y)}else f()}else s.error(d)})),u&&(l.unsubscribe(),l=null,c())};c()})}({delay:r=>{if(r.message==DC)return t8(e);throw r}}))})(this.facadeService.getPaymentInfo(e.payment.paymentId),i=>"needAction"!=i.payment.state,1500).subscribe(i=>{var o;this.showResultComponent(i),null===(o=this.viewState.window)||void 0===o||o.close(),this.viewService.setState("window",null),this.detect()})}afterGetCards(e){e.length<1?(this.viewService.setState("isShowCardList",!1),this.viewService.setState("isShowCardForm",!0)):(this.viewService.setState("isShowCardForm",!1),this.viewService.setState("isShowCardList",!0))}afterRemoveCard(){this.facadeService.loadCards(),this.toastr.success("Card has been deleted",Ps.SUCCESS_TITLE)}afterChangePayment(){var e;null===(e=this.cardFormRef)||void 0===e||e.resetForm()}}return n.\u0275fac=function(e){return new(e||n)(I(Hm),I(mt),I(bu),I(xs),I(wC),I(SC))},n.\u0275cmp=Et({type:n,selectors:[["moto-pay-main"]],viewQuery:function(e,r){if(1&e&&(lo(yk,5,NC),lo(_k,5,IC),lo(vk,5,OC),lo(wk,5,FC)),2&e){let i;ao(i=co())&&(r.cardFormRef=i.first),ao(i=co())&&(r.additionalFormRef=i.first),ao(i=co())&&(r.cardListRef=i.first),ao(i=co())&&(r.chargeTermsRef=i.first)}},features:[Le],decls:2,vars:3,consts:[["class","__ndb-main",4,"ngIf"],[1,"__ndb-main"],[4,"motoLet"],["class","__ndb-main-show-form-btn full-width","data-locator","btn-add-new-card",3,"click",4,"ngIf"],["class","__ndb-main-card-form block",3,"settings",4,"ngIf"],[1,"__ndb-pay"],[1,"__ndb-pay-info"],[1,"__ndb-pay-title","fz-18","fw-600"],["data-locator","total-cost",1,"__ndb-pay-cost","fz-24","fw-700"],["data-locator","btn-submit",1,"__ndb-pay-btn","button-submit","full-width",3,"click"],[1,"__ndb-pay-btn-content"],[1,"__ndb-pay-btn-cost-side"],["data-locator","btn-submit-cost"],[4,"ngIf"],[1,"__ndb-main-toggle",3,"click"],[1,"fw-700"],[1,"material-icons","font-description","__ndb-main-toggle-icon"],[1,"__ndb-main-card-list","block",3,"childrenDetector","cards","select","remove"],["cardListRef",""],["data-locator","btn-add-new-card",1,"__ndb-main-show-form-btn","full-width",3,"click"],[1,"material-icons","fz-18"],[1,"text"],[1,"__ndb-main-card-form","block",3,"settings"],["cardFormRef",""],["additionalFormRef",""],[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"],[3,"apms","pay"],[3,"chargeTerms"],["chargeTermsRef",""]],template:function(e,r){1&e&&(J(0,Ik,28,29,"div",0),xe(1,"async")),2&e&&R("ngIf",Nn(1,1,r.payment$))},directives:[OC,NC,IC,Os,bN,FC,Kn,ul],pipes:[_p,cl,LC,RC,Zu,Cp],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}.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-main-toggle-icon.active[_ngcontent-%COMP%]{transform:rotate(-180deg)}.__ndb-main[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:28px}@media (max-width: 768px){.__ndb-main[_ngcontent-%COMP%]{padding:14px 20px 28px}}.__ndb-main-toggle[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px;cursor:pointer;-webkit-user-select:none;user-select:none;margin-bottom:28px}.__ndb-main-toggle-icon[_ngcontent-%COMP%]{transform:rotate(0);transition:transform .3s cubic-bezier(.25,.1,.25,1)}.__ndb-main-card-list[_ngcontent-%COMP%] .__ndb-card-list{padding-bottom:28px}.__ndb-main[_ngcontent-%COMP%] .__ndb-pay[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:14px;margin-top:28px}.__ndb-main[_ngcontent-%COMP%] .__ndb-pay-info[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center;justify-content:space-between;gap:20px}.__ndb-main[_ngcontent-%COMP%] .__ndb-pay-btn-content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:16px;width:100%}.__ndb-main[_ngcontent-%COMP%] .__ndb-pay-btn-separator[_ngcontent-%COMP%]{width:2px;height:18px;opacity:.3;background-color:var(--ndb-button-color)}.__ndb-main[_ngcontent-%COMP%] .__ndb-pay-btn-card-side[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}.__ndb-main[_ngcontent-%COMP%] .__ndb-pay-btn-card-side-logo[_ngcontent-%COMP%]{height:24px;width:36px}"],data:{animation:[iN,oN,sN({animationName:"ANToggleList",fromState:"hide",toState:"show",fromStyles:{height:"0px",overflow:"hidden"},toStyles:{height:"*"}})]},changeDetection:0}),n})(),EN=(()=>{class n{constructor(){this.resultTextsMap=ks(Do,["result"]),this.result=new $e}set _paymentResult(e){e&&(this.paymentResult=e,this.result.emit(this.paymentResult))}get state(){return this.paymentResult.payment.state}get icon(){return this.resultTextsMap.icons[this.state]||"info"}get title(){return this.resultTextsMap.titleText[this.state]||"Payment sent"}get description(){return this.resultTextsMap.descriptionText[this.state]||""}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Et({type:n,selectors:[["moto-pay-result"]],inputs:{_paymentResult:["paymentResult","_paymentResult"]},outputs:{result:"result"},decls:6,vars:3,consts:[[1,"__ndb-result"],[1,"material-icons-round","__ndb-result-icon"],[1,"__ndb-result-header","fz-24","fw-700"],["class","__ndb-result-description fz-14 fw-500 font-center",4,"ngIf"],[1,"__ndb-result-description","fz-14","fw-500","font-center"]],template:function(e,r){1&e&&(j(0,"div",0)(1,"i",1),pe(2),z(),j(3,"h6",2),pe(4),z(),J(5,Pk,2,1,"p",3),z()),2&e&&(O(2),Wr(r.icon),O(2),Wr(r.title),O(1),R("ngIf",r.description))},directives:[Kn],styles:[".__ndb-result[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:10px;padding:28px}@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}"],changeDetection:0}),n})(),MN=(()=>{class n{ngOnInit(){this.consoleErrorMsg()}consoleErrorMsg(){const e=ks(Do,["error","descriptionText",this.error]);console.error(e)}get isSettingsModelError(){return"invalid-urls"==this.error||"not-exist-settings"==this.error}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Et({type:n,selectors:[["moto-pay-error"]],inputs:{error:"error"},decls:7,vars:1,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(e,r){1&e&&(j(0,"div",0)(1,"i",1),pe(2,"cancel"),z(),j(3,"h6",2),pe(4),z(),j(5,"p",3),pe(6," You cannot make a payment! "),z()()),2&e&&(O(4),Wr(r.isSettingsModelError?"Invalid settings model":"Invalid payment model"))},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}),n})(),$C=(()=>{class n extends sl{constructor(e,r,i,o,s){super(e),this.injector=e,this.dataService=r,this.viewService=i,this.changeDetectorService=o,this.facadeService=s,this.resize$=new Rt,this.paymentResult$=this.dataService.getStream("paymentResult$"),this.settings$=this.dataService.getStream("settings$"),this.dataState=this.dataService.getFullState(),this.viewState=this.viewService.getFullState(),this._paid=new $e,this._viewChange=new $e,this._close=new $e}set _payment(e){this.checkedPaymentModel(e)}set _settings(e){this.checkedSettingsModel(e)}onWindowResize(e){this.resize$.next(e.innerWidth)}ngOnInit(){this.initActionsListener(),this.initChangeDetectinDataListener(),this.initChangeDetectionListener(),this.facadeService.initPaymentChangedListener(),this.resize$.pipe(Ka(100)).subscribe(()=>{this.emitWrapperSizeChanges()})}ngOnDestroy(){super.ngOnDestroy(),this.dataService.destroy()}emitWrapperSizeChanges(){var e;if(this.wrapperRef){const r=this.wrapperRef.nativeElement.getBoundingClientRect();(null===(e=this.viewService.getFullState().contentSize)||void 0===e?void 0:e.height)!==r.height&&(this.viewService.setState("contentSize",r),this._viewChange.emit(r),this.localDetect())}}initChangeDetectionListener(){this.changeDetectorService.listenChangeDetection().pipe(this.untilDestroy()).subscribe(()=>{setTimeout(()=>{this.emitWrapperSizeChanges()},50),this.localDetect()})}initChangeDetectinDataListener(){this.dataService.listenChangeDetection().pipe(this.untilDestroy()).subscribe(()=>this.localDetect())}initActionsListener(){this.dataService.listenActions().pipe(this.untilDestroy()).subscribe(e=>{this.detect()})}checkedSettingsModel(e){const r=this.validateSettingsModel(e);if(r)this.dataService.emitToStream("settings$",null),this.viewService.setState("settingsErrorType",r);else{const i=this.getPreparedSettingsModel(e);this.settings=i,this.dataService.emitToStream("settings$",i),this.viewService.setState("settingsErrorType",null)}this.localDetect()}checkedPaymentModel(e){const r=this.validatePaymentModel(e);if(r)this.dataService.emitToStream("payment$",null),this.viewService.setState("paymentErrorType",r);else{const i=this.getPreparedPaymentModel(e);this.payment=i,this.dataService.emitToStream("payment$",i),this.viewService.setState("paymentErrorType",null)}this.localDetect()}validateSettingsModel(e){return e?e.urls&&e.urls.billingProfiles&&e.urls.processing?null:"invalid-urls":"not-exist-settings"}validatePaymentModel(e){switch(!0){case!e:return"not-exist-payment";case!e.userId:return"not-exist-customer-id";case!e.paymentId:return"not-exist-payment-id";default:return null}}getPreparedPaymentModel(e){return e.userAuthToken&&!/^[^\s]+\s+/i.test(e.userAuthToken)&&(e.userAuthToken=`Bearer ${e.userAuthToken}`),e}getPreparedSettingsModel(e){return Object.assign(Object.assign({},{isPhoneNumberFieldVisible:!1,isCloseButtonVisible:!0,merchantInfo:null,chargeTerms:null,urls:null,availableCardBrands:["visa","mastercard"]}),e)}get isShowLoader(){return Object.values(this.dataState).includes(!0)}paid(e){this._paid.emit(e)}close(){this._close.emit()}reset(e){this.dataService.emitToStream("paymentResult$",null),this.checkedPaymentModel(e)}}return n.\u0275fac=function(e){return new(e||n)(I(mt),I(xs),I(wC),I(yC),I(SC))},n.\u0275cmp=Et({type:n,selectors:[["moto-pay-wrapper"]],viewQuery:function(e,r){if(1&e&&lo(kk,5),2&e){let i;ao(i=co())&&(r.wrapperRef=i.first)}},hostBindings:function(e,r){1&e&&ke("resize",function(o){return r.onWindowResize(o.target)},!1,p0)},inputs:{_payment:["payment","_payment"],_settings:["settings","_settings"]},outputs:{_paid:"paid",_viewChange:"viewChange",_close:"close"},features:[Le],decls:8,vars:3,consts:[["class","__ndb-wrapper__",4,"motoLet"],["mainTpl",""],["resultTpl",""],["errorTpl",""],[1,"__ndb-wrapper__"],["wrapper",""],[1,"__ndb-header-content"],[3,"showCloseButton","close"],[4,"ngIf","ngIfThen","ngIfElse"],[3,"settings"],[4,"ngIf"],["data-locator","form-loaded",4,"ngIf"],["data-locator","form-loaded"],[4,"ngIf","ngIfElse"],[3,"paymentResult","result"],[3,"error"]],template:function(e,r){1&e&&(J(0,Lk,9,9,"div",0),xe(1,"async"),J(2,$k,1,2,"ng-template",null,1,uo),J(4,Vk,2,3,"ng-template",null,2,uo),J(6,Bk,1,1,"ng-template",null,3,uo)),2&e&&R("motoLet",Nn(1,1,r.settings$))},directives:[nN,rN,AC,DN,EN,MN,ul,Kn],pipes:[_p],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-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}}[_nghost-%COMP%] .__ndb-header-content[_ngcontent-%COMP%]{margin:0 auto;position:relative;border:1px solid #c9ccd8;box-shadow:inset 0 -1px #29304d1a;border-radius:4px}[_nghost-%COMP%] .__ndb-header-content[_ngcontent-%COMP%] .__ndb-loader{border-radius:4px}"],changeDetection:0}),n})(),SN=(()=>{class n{constructor(){this.payment=null,this.settings=null,this._close=new $e,this._paid=new $e,this._viewChange=new $e,this._reset=(e=Object.assign({},this.payment))=>{this.paymentWrapperRef$.reset(e)}}get reset(){return this._reset}close(){this._close.emit()}paid(e){this._paid.emit(e)}viewChange(e){this._viewChange.emit(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Et({type:n,selectors:[["moto-pay"]],viewQuery:function(e,r){if(1&e&&lo(jk,5,$C),2&e){let i;ao(i=co())&&(r.paymentWrapperRef$=i.first)}},inputs:{payment:"payment",settings:"settings",reset:"reset"},outputs:{_close:"close",_paid:"paid",_viewChange:"viewChange"},exportAs:["motoPayRef"],decls:2,vars:2,consts:[[3,"payment","settings","paid","viewChange","close"],["paymentWrapperRef",""]],template:function(e,r){1&e&&(j(0,"moto-pay-wrapper",0,1),ke("paid",function(o){return r.paid(o)})("viewChange",function(o){return r.viewChange(o)})("close",function(){return r.close()}),z()),2&e&&R("payment",r.payment)("settings",r.settings)},directives:[$C],styles:[""]}),n})(),TN=(()=>{class n{constructor(){}intercept(e,r){return e.context.get(Uk),r.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})(),AN=(()=>{class n{constructor(e){this.toastr=e}intercept(e,r){return e.context.get(Hk)?r.handle(e):r.handle(e).pipe(Es(i=>{const{Errors:o}=i.error||{};let s=i.message;return o&&(s=o[0].Message),401==i.status&&(s="Not authorized (details in console)",console.error(i)),this.toastr.error(s,Ps.ERROR_TITLE),function YT(n,t){const e=Ce(n)?n:()=>n,r=i=>i.error(e());return new Lt(t?i=>t.schedule(r,0,i):r)}(()=>i)}))}}return n.\u0275fac=function(e){return new(e||n)(U(bu))},n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})();const xN=[Gc];let Qu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({imports:[xN,Gc]}),n})(),Yu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({}),n})(),VC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({imports:[[Qu,Yu]]}),n})(),BC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({}),n})();const ON=[dm.forRoot()];let Wm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({imports:[ON,dm]}),n})();const jC=[um,yw];[Um,(()=>{class n{constructor(){}registerOnChange(e){}registerOnTouched(e){}setDisabledState(e){}ngOnInit(){}writeValue(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Et({type:n,selectors:[["moto-form-textarea"]],features:[nt([{provide:Zn,useExisting:We(()=>n),multi:!0}])],decls:2,vars:0,consts:[[1,"__ndb-form-control"]],template:function(e,r){1&e&&(j(0,"div",0),je(1,"textarea"),z())},styles:[""],changeDetection:0}),n})()].concat(jC);let HC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({imports:[[...jC,Qu,Wm,Yu],um,yw]}),n})();const LN=[Qu,HC,VC,BC,Yu,Wm];let RN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({imports:[LN,Qu,HC,VC,BC,Yu,Wm]}),n})();const $N=new ae("LANGUAGE_TOKEN",{factory:()=>Xl(Hm).navigator.language});let VN=(()=>{class n{constructor(e,r,i){this.clientLanguage=e,this.applePayService=r,this.merchantInfoService=i,this.name=Gu.APPLE_PAY}get defaultCountryCode(){if(!this.clientLanguage)return"GB";if(this.clientLanguage.match(/-/)){const[e,r]=this.clientLanguage.split("-");return r}return this.clientLanguage}isAvailable(...e){return this.merchantInfoService.getAuthToken().pipe(Pt(r=>!!r),mo(r=>r?this.applePayService.canMakePayment():xr(!1)))}pay(e){const{amount:r,currency:i,description:o,billingAddress:s,merchantId:a}=e,l=Boolean(null==s?void 0:s.country)?s.country:this.defaultCountryCode,c={total:{amount:r.toString(),currency:i.toUpperCase(),label:o},countryCode:l.toUpperCase(),merchantId:a};return this.applePayService.pay(c).pipe(Pt(({payment:u})=>JSON.stringify(u)))}}return n.\u0275fac=function(e){return new(e||n)(U($N),U(dC),U(Lm))},n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})(),BN=(()=>{class n{constructor(e,r){this.injector=e,this.initializer=r}getValidationUrl(){return this.initializer.waitForInitialization().pipe(Pt(()=>{const e=this.injector.get(xs);return Ns(this.injector.get(EC).get("processing"),`api/applepay/${e.getStreamValue("payment$").merchantId}/merchantValidation`)}))}getAuthToken(){return this.initializer.waitForInitialization().pipe(Pt(()=>this.injector.get(xs).getStreamValue("payment$").userAuthToken))}}return n.\u0275fac=function(e){return new(e||n)(U(mt),U(MC))},n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})(),jN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ct({type:n}),n.\u0275inj=st({providers:[Rm,{provide:eu,useClass:TN,multi:!0},{provide:eu,useClass:AN,multi:!0},{provide:vC,useClass:VN,multi:!0},{provide:Lm,useClass:BN}],imports:[[Jv,EP,RN,Ex.forRoot(),NP.forRoot(),Tx]]}),n})(),HN=(()=>{class n{constructor(e){this.injector=e}ngDoBootstrap(e){const{injector:r}=this,i=function wT(n,t){const e=function fT(n,t){return t.get(so).resolveComponentFactory(n).inputs}(n,t.injector),r=t.strategyFactory||new yT(n,t.injector),i=function hT(n){const t={};return n.forEach(({propName:e,templateName:r})=>{t[function aT(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}(r)]=e}),t}(e);class o extends vT{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=r.create(this.injector||t.injector);e.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(i[a],c)}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 l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return o.observedAttributes=Object.keys(i),e.forEach(({propName:s})=>{Object.defineProperty(o.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(a){this.ngElementStrategy.setInputValue(s,a)},configurable:!0,enumerable:!0})}),o}(SN,{injector:r});customElements.define("moto-web-pay",i)}}return n.\u0275fac=function(e){return new(e||n)(U(mt))},n.\u0275mod=ct({type:n}),n.\u0275inj=st({imports:[[Fv,jN]]}),n})();(function zE(){Z2=!1})(),KS().bootstrapModule(HN).catch(n=>console.error(n))},791:function(er,ot,Gt){var Ce=this&&this.__assign||function(){return Ce=Object.assign||function(Be){for(var Je,ft=1,$n=arguments.length;ft<$n;ft++)for(var qi in Je=arguments[ft])Object.prototype.hasOwnProperty.call(Je,qi)&&(Be[qi]=Je[qi]);return Be},Ce.apply(this,arguments)},hn=Gt(251),Dt=Gt(273),Ge=Gt(87),It=Gt(95),tr=Gt(645),sn={},lt={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"},wn=[lt.VISA,lt.MASTERCARD,lt.AMERICAN_EXPRESS,lt.DINERS_CLUB,lt.DISCOVER,lt.JCB,lt.UNIONPAY,lt.MAESTRO,lt.ELO,lt.MIR,lt.HIPER,lt.HIPERCARD],fn=tr.clone(wn);function ko(Be){return sn[Be]||hn[Be]}function Qs(Be,Je){void 0===Je&&(Je=!1);var ft=fn.indexOf(Be);if(!Je&&-1===ft)throw new Error('"'+Be+'" is not a supported card type.');return ft}function Or(Be){var Je=[];if(!Ge.isValidInputType(Be))return Je;if(0===Be.length)return function Zs(){return fn.map(function(Be){return tr.clone(ko(Be))})}();fn.forEach(function($n){var qi=ko($n);Dt.addMatchingCardsToResults(Be,qi,Je)});var ft=It.findBestMatch(Je);return ft?[ft]:Je}Or.getTypeInfo=function(Be){return tr.clone(ko(Be))},Or.removeCard=function(Be){var Je=Qs(Be);fn.splice(Je,1)},Or.addCard=function(Be){var Je=Qs(Be.type,!0);sn[Be.type]=Be,-1===Je&&fn.push(Be.type)},Or.updateCard=function(Be,Je){var ft=sn[Be]||hn[Be];if(!ft)throw new Error('"'+Be+"\" is not a recognized type. Use `addCard` instead.'");if(Je.type&&ft.type!==Je.type)throw new Error("Cannot overwrite type parameter.");var $n=tr.clone(ft);$n=Ce(Ce({},$n),Je),sn[$n.type]=$n},Or.changeOrder=function(Be,Je){var ft=Qs(Be);fn.splice(ft,1),fn.splice(Je,0,Be)},Or.resetModifications=function(){fn=tr.clone(wn),sn={}},Or.types=lt,er.exports=Or},273:(er,ot,Gt)=>{Object.defineProperty(ot,"__esModule",{value:!0}),ot.addMatchingCardsToResults=void 0;var Ce=Gt(645),hn=Gt(694);ot.addMatchingCardsToResults=function Dt(Ge,It,tr){var sn,lt;for(sn=0;sn<It.patterns.length;sn++){var wn=It.patterns[sn];if(hn.matches(Ge,wn)){var fn=Ce.clone(It);lt=Array.isArray(wn)?String(wn[0]).length:String(wn).length,Ge.length>=lt&&(fn.matchStrength=lt),tr.push(fn);break}}}},251:er=>{er.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,[624,626],[62100,62182],[62184,62187],[62185,62197],[62200,62205],[622010,622999],622018,[622019,622999],[62207,62209],[622126,622925],[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}}}},645:(er,ot)=>{Object.defineProperty(ot,"__esModule",{value:!0}),ot.clone=void 0,ot.clone=function Gt(Ce){return Ce?JSON.parse(JSON.stringify(Ce)):null}},95:(er,ot)=>{Object.defineProperty(ot,"__esModule",{value:!0}),ot.findBestMatch=void 0,ot.findBestMatch=function Ce(hn){return function Gt(hn){var Dt=hn.filter(function(Ge){return Ge.matchStrength}).length;return Dt>0&&Dt===hn.length}(hn)?hn.reduce(function(Dt,Ge){return!Dt||Number(Dt.matchStrength)<Number(Ge.matchStrength)?Ge:Dt}):null}},87:(er,ot)=>{Object.defineProperty(ot,"__esModule",{value:!0}),ot.isValidInputType=void 0,ot.isValidInputType=function Gt(Ce){return"string"==typeof Ce||Ce instanceof String}},694:(er,ot)=>{Object.defineProperty(ot,"__esModule",{value:!0}),ot.matches=void 0,ot.matches=function hn(Dt,Ge){return Array.isArray(Ge)?function Gt(Dt,Ge,It){var tr=String(Ge).length,sn=Dt.substr(0,tr),lt=parseInt(sn,10);return Ge=parseInt(String(Ge).substr(0,sn.length),10),It=parseInt(String(It).substr(0,sn.length),10),lt>=Ge&&lt<=It}(Dt,Ge[0],Ge[1]):function Ce(Dt,Ge){return(Ge=String(Ge)).substring(0,Dt.length)===Dt.substring(0,Ge.length)}(Dt,Ge)}}},er=>{er(er.s=291)}]);