@motopays/pay-form 1.0.9 → 1.0.10-rc.1

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.
Files changed (3) hide show
  1. package/README.md +342 -198
  2. package/lib/index.js +1 -1
  3. package/package.json +19 -19
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:(Jn,ut,qt)=>{function Me(n){return"function"==typeof n}function dn(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 Mt=dn(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 qe(n,t){if(n){const e=n.indexOf(t);0<=e&&n.splice(e,1)}}class Nt{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 s of e)s.remove(this);else e.remove(this);const{initialTeardown:r}=this;if(Me(r))try{r()}catch(s){t=s instanceof Mt?s.errors:[s]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const s of i)try{pt(s)}catch(o){t=null!=t?t:[],o instanceof Mt?t=[...t,...o.errors]:t.push(o)}}if(t)throw new Mt(t)}}add(t){var e;if(t&&t!==this)if(this.closed)pt(t);else{if(t instanceof Nt){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)&&qe(e,t)}remove(t){const{_finalizers:e}=this;e&&qe(e,t),t instanceof Nt&&t._removeParent(this)}}Nt.EMPTY=(()=>{const n=new Nt;return n.closed=!0,n})();const Xn=Nt.EMPTY;function nn(n){return n instanceof Nt||n&&"closed"in n&&Me(n.remove)&&Me(n.add)&&Me(n.unsubscribe)}function pt(n){Me(n)?n():n.unsubscribe()}const _n={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},hn={setTimeout(n,t,...e){const{delegate:r}=hn;return(null==r?void 0:r.setTimeout)?r.setTimeout(n,t,...e):setTimeout(n,t,...e)},clearTimeout(n){const{delegate:t}=hn;return((null==t?void 0:t.clearTimeout)||clearTimeout)(n)},delegate:void 0};function xs(n){hn.setTimeout(()=>{const{onUnhandledError:t}=_n;if(!t)throw n;t(n)})}function Go(){}const Wo=Xe("C",void 0,void 0);function Xe(n,t,e){return{kind:n,value:t,error:e}}let _t=null;function Fn(n){if(_n.useDeprecatedSynchronousErrorHandling){const t=!_t;if(t&&(_t={errorThrown:!1,error:null}),n(),t){const{errorThrown:e,error:r}=_t;if(_t=null,e)throw r}}else n()}class yd extends Nt{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,nn(t)&&t.add(this)):this.destination=ZC}static create(t,e,r){return new qo(t,e,r)}next(t){this.isStopped?vd(function ze(n){return Xe("N",n,void 0)}(t),this):this._next(t)}error(t){this.isStopped?vd(function Lr(n){return Xe("E",void 0,n)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?vd(Wo,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 GC=Function.prototype.bind;function _d(n,t){return GC.call(n,t)}class WC{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next)try{e.next(t)}catch(r){bl(r)}}error(t){const{partialObserver:e}=this;if(e.error)try{e.error(t)}catch(r){bl(r)}else bl(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(e){bl(e)}}}class qo extends yd{constructor(t,e,r){let i;if(super(),Me(t)||!t)i={next:null!=t?t:void 0,error:null!=e?e:void 0,complete:null!=r?r:void 0};else{let s;this&&_n.useDeprecatedNextContext?(s=Object.create(t),s.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&_d(t.next,s),error:t.error&&_d(t.error,s),complete:t.complete&&_d(t.complete,s)}):i=t}this.destination=new WC(i)}}function bl(n){_n.useDeprecatedSynchronousErrorHandling?function Wi(n){_n.useDeprecatedSynchronousErrorHandling&&_t&&(_t.errorThrown=!0,_t.error=n)}(n):xs(n)}function vd(n,t){const{onStoppedNotification:e}=_n;e&&hn.setTimeout(()=>e(n,t))}const ZC={closed:!0,next:Go,error:function qC(n){throw n},complete:Go},wd="function"==typeof Symbol&&Symbol.observable||"@@observable";function Is(n){return n}function ng(n){return 0===n.length?Is:1===n.length?n[0]:function(e){return n.reduce((r,i)=>i(r),e)}}let $t=(()=>{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 s=function YC(n){return n&&n instanceof yd||function QC(n){return n&&Me(n.next)&&Me(n.error)&&Me(n.complete)}(n)&&nn(n)}(e)?e:new qo(e,r,i);return Fn(()=>{const{operator:o,source:a}=this;s.add(o?o.call(s,a):a?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(e){try{return this._subscribe(e)}catch(r){e.error(r)}}forEach(e,r){return new(r=rg(r))((i,s)=>{const o=new qo({next:a=>{try{e(a)}catch(l){s(l),o.unsubscribe()}},error:s,complete:i});this.subscribe(o)})}_subscribe(e){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(e)}[wd](){return this}pipe(...e){return ng(e)(this)}toPromise(e){return new(e=rg(e))((r,i)=>{let s;this.subscribe(o=>s=o,o=>i(o),()=>r(s))})}}return n.create=t=>new n(t),n})();function rg(n){var t;return null!==(t=null!=n?n:_n.Promise)&&void 0!==t?t:Promise}const JC=dn(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Vt=(()=>{class n extends $t{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const r=new ig(this,this);return r.operator=e,r}_throwIfClosed(){if(this.closed)throw new JC}next(e){Fn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(e)}})}error(e){Fn(()=>{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(){Fn(()=>{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:s}=this;return r||i?Xn:(this.currentObservers=null,s.push(e),new Nt(()=>{this.currentObservers=null,qe(s,e)}))}_checkFinalizedStatuses(e){const{hasError:r,thrownError:i,isStopped:s}=this;r?e.error(i):s&&e.complete()}asObservable(){const e=new $t;return e.source=this,e}}return n.create=(t,e)=>new ig(t,e),n})();class ig extends Vt{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:Xn}}function vn(n){return t=>{if(function XC(n){return Me(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 rn(n,t,e,r,i){return new e4(n,t,e,r,i)}class e4 extends yd{constructor(t,e,r,i,s,o){super(t),this.onFinalize=s,this.shouldUnsubscribe=o,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 Xt(n,t){return vn((e,r)=>{let i=0;e.subscribe(rn(r,s=>{r.next(n.call(t,s,i++))}))})}function Dl(n,t,e,r){return new(e||(e=Promise))(function(s,o){function a(u){try{c(r.next(u))}catch(d){o(d)}}function l(u){try{c(r.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):function i(s){return s instanceof e?s:new e(function(o){o(s)})}(u.value).then(a,l)}c((r=r.apply(n,t||[])).next())})}function Si(n){return this instanceof Si?(this.v=n,this):new Si(n)}function ag(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=e.apply(n,t||[]),s=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(f){r[f]&&(i[f]=function(p){return new Promise(function(m,w){s.push([f,p,m,w])>1||a(f,p)})})}function a(f,p){try{!function l(f){f.value instanceof Si?Promise.resolve(f.value.v).then(c,u):d(s[0][2],f)}(r[f](p))}catch(m){d(s[0][3],m)}}function c(f){a("next",f)}function u(f){a("throw",f)}function d(f,p){f(p),s.shift(),s.length&&a(s[0][0],s[0][1])}}function lg(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 Ed(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(s){e[s]=n[s]&&function(o){return new Promise(function(a,l){!function i(s,o,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},o)}(a,l,(o=n[s](o)).done,o.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const cg=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function ug(n){return Me(null==n?void 0:n.then)}function dg(n){return Me(n[wd])}function hg(n){return Symbol.asyncIterator&&Me(null==n?void 0:n[Symbol.asyncIterator])}function fg(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 pg=function C4(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function mg(n){return Me(null==n?void 0:n[pg])}function gg(n){return ag(this,arguments,function*(){const e=n.getReader();try{for(;;){const{value:r,done:i}=yield Si(e.read());if(i)return yield Si(void 0);yield yield Si(r)}}finally{e.releaseLock()}})}function yg(n){return Me(null==n?void 0:n.getReader)}function er(n){if(n instanceof $t)return n;if(null!=n){if(dg(n))return function b4(n){return new $t(t=>{const e=n[wd]();if(Me(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(cg(n))return function D4(n){return new $t(t=>{for(let e=0;e<n.length&&!t.closed;e++)t.next(n[e]);t.complete()})}(n);if(ug(n))return function E4(n){return new $t(t=>{n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,xs)})}(n);if(hg(n))return _g(n);if(mg(n))return function S4(n){return new $t(t=>{for(const e of n)if(t.next(e),t.closed)return;t.complete()})}(n);if(yg(n))return function M4(n){return _g(gg(n))}(n)}throw fg(n)}function _g(n){return new $t(t=>{(function T4(n,t){var e,r,i,s;return Dl(this,void 0,void 0,function*(){try{for(e=lg(n);!(r=yield e.next()).done;)if(t.next(r.value),t.closed)return}catch(o){i={error:o}}finally{try{r&&!r.done&&(s=e.return)&&(yield s.call(e))}finally{if(i)throw i.error}}t.complete()})})(n,t).catch(e=>t.error(e))})}function ii(n,t,e,r=0,i=!1){const s=t.schedule(function(){e(),i?n.add(this.schedule(null,r)):this.unsubscribe()},r);if(n.add(s),!i)return s}function El(n,t,e=1/0){return Me(t)?El((r,i)=>Xt((s,o)=>t(r,s,i,o))(er(n(r,i))),e):("number"==typeof t&&(e=t),vn((r,i)=>function A4(n,t,e,r,i,s,o,a){const l=[];let c=0,u=0,d=!1;const f=()=>{d&&!l.length&&!c&&t.complete()},p=w=>c<r?m(w):l.push(w),m=w=>{s&&t.next(w),c++;let E=!1;er(e(w,u++)).subscribe(rn(t,S=>{null==i||i(S),s?p(S):t.next(S)},()=>{E=!0},void 0,()=>{if(E)try{for(c--;l.length&&c<r;){const S=l.shift();o?ii(t,o,()=>m(S)):m(S)}f()}catch(S){t.error(S)}}))};return n.subscribe(rn(t,p,()=>{d=!0,f()})),()=>{null==a||a()}}(r,i,n,e)))}function vg(n=1/0){return El(Is,n)}const wg=new $t(n=>n.complete());function Cg(n){return n&&Me(n.schedule)}function Sd(n){return n[n.length-1]}function bg(n){return Me(Sd(n))?n.pop():void 0}function Zo(n){return Cg(Sd(n))?n.pop():void 0}function Dg(n,t=0){return vn((e,r)=>{e.subscribe(rn(r,i=>ii(r,n,()=>r.next(i),t),()=>ii(r,n,()=>r.complete(),t),i=>ii(r,n,()=>r.error(i),t)))})}function Eg(n,t=0){return vn((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 $t(e=>{ii(e,t,()=>{const r=n[Symbol.asyncIterator]();ii(e,t,()=>{r.next().then(i=>{i.done?e.complete():e.next(i.value)})},0,!0)})})}function Ps(n,t){return t?function L4(n,t){if(null!=n){if(dg(n))return function P4(n,t){return er(n).pipe(Eg(t),Dg(t))}(n,t);if(cg(n))return function N4(n,t){return new $t(e=>{let r=0;return t.schedule(function(){r===n.length?e.complete():(e.next(n[r++]),e.closed||this.schedule())})})}(n,t);if(ug(n))return function k4(n,t){return er(n).pipe(Eg(t),Dg(t))}(n,t);if(hg(n))return Sg(n,t);if(mg(n))return function O4(n,t){return new $t(e=>{let r;return ii(e,t,()=>{r=n[pg](),ii(e,t,()=>{let i,s;try{({value:i,done:s}=r.next())}catch(o){return void e.error(o)}s?e.complete():e.next(i)},0,!0)}),()=>Me(null==r?void 0:r.return)&&r.return()})}(n,t);if(yg(n))return function F4(n,t){return Sg(gg(n),t)}(n,t)}throw fg(n)}(n,t):er(n)}function Mg(...n){const t=Zo(n),e=function I4(n,t){return"number"==typeof Sd(n)?n.pop():t}(n,1/0),r=n;return r.length?1===r.length?er(r[0]):vg(e)(Ps(r,t)):wg}function Md(n,t,...e){if(!0===t)return void n();if(!1===t)return;const r=new qo({next:()=>{r.unsubscribe(),n()}});return t(...e).subscribe(r)}function et(n){for(let t in n)if(n[t]===et)return t;throw Error("Could not find renamed property on target object.")}function Td(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function Ke(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(Ke).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 Ad(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const $4=et({__forward_ref__:et});function Ze(n){return n.__forward_ref__=Ze,n.toString=function(){return Ke(this())},n}function xe(n){return Tg(n)?n():n}function Tg(n){return"function"==typeof n&&n.hasOwnProperty($4)&&n.__forward_ref__===Ze}class ee extends Error{constructor(t,e){super(function xd(n,t){return`NG0${Math.abs(n)}${t?": "+t:""}`}(t,e)),this.code=t}}function Ce(n){return"string"==typeof n?n:null==n?"":String(n)}function sn(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():Ce(n)}function Sl(n,t){const e=t?` in ${t}`:"";throw new ee(-201,`No provider for ${sn(n)} found${e}`)}function Rn(n,t){null==n&&function Qe(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 dt(n){return{providers:n.providers||[],imports:n.imports||[]}}function Id(n){return Ag(n,Ml)||Ag(n,Ig)}function Ag(n,t){return n.hasOwnProperty(t)?n[t]:null}function xg(n){return n&&(n.hasOwnProperty(Pd)||n.hasOwnProperty(G4))?n[Pd]:null}const Ml=et({\u0275prov:et}),Pd=et({\u0275inj:et}),Ig=et({ngInjectableDef:et}),G4=et({ngInjectorDef:et});var Ee=(()=>((Ee=Ee||{})[Ee.Default=0]="Default",Ee[Ee.Host=1]="Host",Ee[Ee.Self=2]="Self",Ee[Ee.SkipSelf=4]="SkipSelf",Ee[Ee.Optional=8]="Optional",Ee))();let kd;function Mi(n){const t=kd;return kd=n,t}function Pg(n,t,e){const r=Id(n);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:e&Ee.Optional?null:void 0!==t?t:void Sl(Ke(n),"Injector")}function Ti(n){return{toString:n}.toString()}var yr=(()=>((yr=yr||{})[yr.OnPush=0]="OnPush",yr[yr.Default=1]="Default",yr))(),_r=(()=>{return(n=_r||(_r={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",_r;var n})();const q4="undefined"!=typeof globalThis&&globalThis,Z4="undefined"!=typeof window&&window,K4="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Je=q4||"undefined"!=typeof global&&global||Z4||K4,ks={},tt=[],Tl=et({\u0275cmp:et}),Nd=et({\u0275dir:et}),Od=et({\u0275pipe:et}),kg=et({\u0275mod:et}),oi=et({\u0275fac:et}),Ko=et({__NG_ELEMENT_ID__:et});let Q4=0;function Ot(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===yr.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||tt,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||_r.Emulated,id:"c",styles:n.styles||tt,_:null,setInput:null,schemas:n.schemas||null,tView:null},i=n.directives,s=n.features,o=n.pipes;return r.id+=Q4++,r.inputs=Lg(n.inputs,e),r.outputs=Lg(n.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=i?()=>("function"==typeof i?i():i).map(Ng):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(Og):null,r})}function Ng(n){return on(n)||function Ai(n){return n[Nd]||null}(n)}function Og(n){return function qi(n){return n[Od]||null}(n)}const Fg={};function mt(n){return Ti(()=>{const t={type:n.type,bootstrap:n.bootstrap||tt,declarations:n.declarations||tt,imports:n.imports||tt,exports:n.exports||tt,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(Fg[n.id]=n.type),t})}function Lg(n,t){if(null==n)return ks;const e={};for(const r in n)if(n.hasOwnProperty(r)){let i=n[r],s=i;Array.isArray(i)&&(s=i[1],i=i[0]),e[i]=r,t&&(t[i]=s)}return e}const _e=Ot;function gt(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,onDestroy:n.type.prototype.ngOnDestroy||null}}function on(n){return n[Tl]||null}function tr(n,t){const e=n[kg]||null;if(!e&&!0===t)throw new Error(`Type ${Ke(n)} does not have '\u0275mod' property.`);return e}function Rr(n){return Array.isArray(n)&&"object"==typeof n[1]}function wr(n){return Array.isArray(n)&&!0===n[1]}function Rd(n){return 0!=(8&n.flags)}function Pl(n){return 2==(2&n.flags)}function kl(n){return 1==(1&n.flags)}function Cr(n){return null!==n.template}function n3(n){return 0!=(512&n[2])}function Yi(n,t){return n.hasOwnProperty(oi)?n[oi]:null}class $g{constructor(t,e,r){this.previousValue=t,this.currentValue=e,this.firstChange=r}isFirstChange(){return this.firstChange}}function $r(){return Vg}function Vg(n){return n.type.prototype.ngOnChanges&&(n.setInput=o3),s3}function s3(){const n=jg(this),t=null==n?void 0:n.current;if(t){const e=n.previous;if(e===ks)n.previous=t;else for(let r in t)e[r]=t[r];n.current=null,this.ngOnChanges(t)}}function o3(n,t,e,r){const i=jg(n)||function a3(n,t){return n[Bg]=t}(n,{previous:ks,current:null}),s=i.current||(i.current={}),o=i.previous,a=this.declaredInputs[e],l=o[a];s[a]=new $g(l&&l.currentValue,t,o===ks),n[r]=t}$r.ngInherit=!0;const Bg="__ngSimpleChanges__";function jg(n){return n[Bg]||null}let Hd;function Ud(){return void 0!==Hd?Hd:"undefined"!=typeof document?document:void 0}function At(n){return!!n.listen}const Hg={createRenderer:(n,t)=>Ud()};function Bt(n){for(;Array.isArray(n);)n=n[0];return n}function Nl(n,t){return Bt(t[n])}function Vn(n,t){return Bt(t[n.index])}function zd(n,t){return n.data[t]}function Rs(n,t){return n[t]}function Bn(n,t){const e=t[n];return Rr(e)?e:e[0]}function Ug(n){return 4==(4&n[2])}function Gd(n){return 128==(128&n[2])}function xi(n,t){return null==t?null:n[t]}function zg(n){n[18]=0}function Wd(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 be={lFrame:Xg(null),bindingsEnabled:!0};function Wg(){return be.bindingsEnabled}function O(){return be.lFrame.lView}function $e(){return be.lFrame.tView}function an(n){return be.lFrame.contextLView=n,n[8]}function Zt(){let n=qg();for(;null!==n&&64===n.type;)n=n.parent;return n}function qg(){return be.lFrame.currentTNode}function Vr(n,t){const e=be.lFrame;e.currentTNode=n,e.isParent=t}function qd(){return be.lFrame.isParent}function Zd(){be.lFrame.isParent=!1}function Cn(){const n=be.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function $s(){return be.lFrame.bindingIndex++}function li(n){const t=be.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function E3(n,t){const e=be.lFrame;e.bindingIndex=e.bindingRootIndex=n,Kd(t)}function Kd(n){be.lFrame.currentDirectiveIndex=n}function Qd(n){const t=be.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}function Qg(){return be.lFrame.currentQueryIndex}function Yd(n){be.lFrame.currentQueryIndex=n}function M3(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function Yg(n,t,e){if(e&Ee.SkipSelf){let i=t,s=n;for(;!(i=i.parent,null!==i||e&Ee.Host||(i=M3(s),null===i||(s=s[15],10&i.type))););if(null===i)return!1;t=i,n=s}const r=be.lFrame=Jg();return r.currentTNode=t,r.lView=n,!0}function Fl(n){const t=Jg(),e=n[1];be.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function Jg(){const n=be.lFrame,t=null===n?null:n.child;return null===t?Xg(n):t}function Xg(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 e1(){const n=be.lFrame;return be.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const t1=e1;function Ll(){const n=e1();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 bn(){return be.lFrame.selectedIndex}function Ii(n){be.lFrame.selectedIndex=n}function vt(){const n=be.lFrame;return zd(n.tView,n.selectedIndex)}function Rl(n,t){for(let e=t.directiveStart,r=t.directiveEnd;e<r;e++){const s=n.data[e].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(n.contentHooks||(n.contentHooks=[])).push(-e,o),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 $l(n,t,e){n1(n,t,3,e)}function Vl(n,t,e,r){(3&n[2])===e&&n1(n,t,e,r)}function Jd(n,t){let e=n[2];(3&e)===t&&(e&=2047,e+=1,n[2]=e)}function n1(n,t,e,r){const s=null!=r?r:-1,o=t.length-1;let a=0;for(let l=void 0!==r?65535&n[18]:0;l<o;l++)if("number"==typeof t[l+1]){if(a=t[l],null!=r&&a>=r)break}else t[l]<0&&(n[18]+=65536),(a<s||-1==s)&&(F3(n,e,t,l),n[18]=(4294901760&n[18])+l+2),l++}function F3(n,t,e,r){const i=e[r]<0,s=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{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class ea{constructor(t,e,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=r}}function Bl(n,t,e){const r=At(n);let i=0;for(;i<e.length;){const s=e[i];if("number"==typeof s){if(0!==s)break;i++;const o=e[i++],a=e[i++],l=e[i++];r?n.setAttribute(t,a,l,o):t.setAttributeNS(o,a,l)}else{const o=s,a=e[++i];eh(o)?r&&n.setProperty(t,o,a):r?n.setAttribute(t,o,a):t.setAttribute(o,a),i++}}return i}function r1(n){return 3===n||4===n||6===n}function eh(n){return 64===n.charCodeAt(0)}function jl(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||i1(n,e,i,null,-1===e||2===e?t[++r]:null)}}return n}function i1(n,t,e,r,i){let s=0,o=n.length;if(-1===t)o=-1;else for(;s<n.length;){const a=n[s++];if("number"==typeof a){if(a===t){o=-1;break}if(a>t){o=s-1;break}}}for(;s<n.length;){const a=n[s];if("number"==typeof a)break;if(a===e){if(null===r)return void(null!==i&&(n[s+1]=i));if(r===n[s+1])return void(n[s+2]=i)}s++,null!==r&&s++,null!==i&&s++}-1!==o&&(n.splice(o,0,t),s=o+1),n.splice(s++,0,e),null!==r&&n.splice(s++,0,r),null!==i&&n.splice(s++,0,i)}function s1(n){return-1!==n}function Vs(n){return 32767&n}function Bs(n,t){let e=function B3(n){return n>>16}(n),r=t;for(;e>0;)r=r[15],e--;return r}let th=!0;function Hl(n){const t=th;return th=n,t}let j3=0;function na(n,t){const e=rh(n,t);if(-1!==e)return e;const r=t[1];r.firstCreatePass&&(n.injectorIndex=t.length,nh(r.data,n),nh(t,null),nh(r.blueprint,null));const i=Ul(n,t),s=n.injectorIndex;if(s1(i)){const o=Vs(i),a=Bs(i,t),l=a[1].data;for(let c=0;c<8;c++)t[s+c]=a[o+c]|l[o+c]}return t[s+8]=i,s}function nh(n,t){n.push(0,0,0,0,0,0,0,0,t)}function rh(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function Ul(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,r=null,i=t;for(;null!==i;){const s=i[1],o=s.type;if(r=2===o?s.declTNode:1===o?i[6]:null,null===r)return-1;if(e++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|e<<16}return-1}function zl(n,t,e){!function H3(n,t,e){let r;"string"==typeof e?r=e.charCodeAt(0)||0:e.hasOwnProperty(Ko)&&(r=e[Ko]),null==r&&(r=e[Ko]=j3++);const i=255&r;t.data[n+(i>>5)]|=1<<i}(n,t,e)}function l1(n,t,e){if(e&Ee.Optional)return n;Sl(t,"NodeInjector")}function c1(n,t,e,r){if(e&Ee.Optional&&void 0===r&&(r=null),0==(e&(Ee.Self|Ee.Host))){const i=n[9],s=Mi(void 0);try{return i?i.get(t,r,e&Ee.Optional):Pg(t,r,e&Ee.Optional)}finally{Mi(s)}}return l1(r,t,e)}function u1(n,t,e,r=Ee.Default,i){if(null!==n){const s=function W3(n){if("string"==typeof n)return n.charCodeAt(0)||0;const t=n.hasOwnProperty(Ko)?n[Ko]:void 0;return"number"==typeof t?t>=0?255&t:z3:t}(e);if("function"==typeof s){if(!Yg(t,n,r))return r&Ee.Host?l1(i,e,r):c1(t,e,r,i);try{const o=s(r);if(null!=o||r&Ee.Optional)return o;Sl(e)}finally{t1()}}else if("number"==typeof s){let o=null,a=rh(n,t),l=-1,c=r&Ee.Host?t[16][6]:null;for((-1===a||r&Ee.SkipSelf)&&(l=-1===a?Ul(n,t):t[a+8],-1!==l&&f1(r,!1)?(o=t[1],a=Vs(l),t=Bs(l,t)):a=-1);-1!==a;){const u=t[1];if(h1(s,a,u.data)){const d=G3(a,t,e,o,r,c);if(d!==d1)return d}l=t[a+8],-1!==l&&f1(r,t[1].data[a+8]===c)&&h1(s,a,t)?(o=u,a=Vs(l),t=Bs(l,t)):a=-1}}}return c1(t,e,r,i)}const d1={};function z3(){return new js(Zt(),O())}function G3(n,t,e,r,i,s){const o=t[1],a=o.data[n+8],u=Gl(a,o,e,null==r?Pl(a)&&th:r!=o&&0!=(3&a.type),i&Ee.Host&&s===a);return null!==u?ra(t,o,u,a):d1}function Gl(n,t,e,r,i){const s=n.providerIndexes,o=t.data,a=1048575&s,l=n.directiveStart,u=s>>20,f=i?a+u:n.directiveEnd;for(let p=r?a:a+u;p<f;p++){const m=o[p];if(p<l&&e===m||p>=l&&m.type===e)return p}if(i){const p=o[l];if(p&&Cr(p)&&p.type===e)return l}return null}function ra(n,t,e,r){let i=n[e];const s=t.data;if(function L3(n){return n instanceof ea}(i)){const o=i;o.resolving&&function V4(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new ee(-200,`Circular dependency in DI detected for ${n}${e}`)}(sn(s[e]));const a=Hl(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?Mi(o.injectImpl):null;Yg(n,r,Ee.Default);try{i=n[e]=o.factory(void 0,s,n,r),t.firstCreatePass&&e>=r.directiveStart&&function O3(n,t,e){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=t.type.prototype;if(r){const o=Vg(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o)}i&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,i),s&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s))}(e,s[e],t)}finally{null!==l&&Mi(l),Hl(a),o.resolving=!1,t1()}}return i}function h1(n,t,e){return!!(e[t+(n>>5)]&1<<n)}function f1(n,t){return!(n&Ee.Self||n&Ee.Host&&t)}class js{constructor(t,e){this._tNode=t,this._lView=e}get(t,e,r){return u1(this._tNode,this._lView,t,r,e)}}function ln(n){return Ti(()=>{const t=n.prototype.constructor,e=t[oi]||ih(t),r=Object.prototype;let i=Object.getPrototypeOf(n.prototype).constructor;for(;i&&i!==r;){const s=i[oi]||ih(i);if(s&&s!==e)return s;i=Object.getPrototypeOf(i)}return s=>new s})}function ih(n){return Tg(n)?()=>{const t=ih(xe(n));return t&&t()}:Yi(n)}const Us="__parameters__";function Gs(n,t,e){return Ti(()=>{const r=function oh(n){return function(...e){if(n){const r=n(...e);for(const i in r)this[i]=r[i]}}}(t);function i(...s){if(this instanceof i)return r.apply(this,s),this;const o=new i(...s);return a.annotation=o,a;function a(l,c,u){const d=l.hasOwnProperty(Us)?l[Us]:Object.defineProperty(l,Us,{value:[]})[Us];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),l}}return e&&(i.prototype=Object.create(e.prototype)),i.prototype.ngMetadataName=n,i.annotationCls=i,i})}class ue{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 ir(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)),ir(r,t)):t!==n&&t.push(r)}return t}function Br(n,t){n.forEach(e=>Array.isArray(e)?Br(e,t):t(e))}function m1(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function Wl(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function oa(n,t){const e=[];for(let r=0;r<n;r++)e.push(t);return e}function jn(n,t,e){let r=Ws(n,t);return r>=0?n[1|r]=e:(r=~r,function Q3(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 lh(n,t){const e=Ws(n,t);if(e>=0)return n[1|e]}function Ws(n,t){return function _1(n,t,e){let r=0,i=n.length>>e;for(;i!==r;){const s=r+(i-r>>1),o=n[s<<e];if(t===o)return s<<e;o>t?i=s:r=s+1}return~(i<<e)}(n,t,1)}const aa={},uh="__NG_DI_FLAG__",Zl="ngTempTokenPath",rb=/\n/gm,w1="__source",sb=et({provide:String,useValue:et});let la;function C1(n){const t=la;return la=n,t}function ob(n,t=Ee.Default){if(void 0===la)throw new ee(203,"");return null===la?Pg(n,void 0,t):la.get(n,t&Ee.Optional?null:void 0,t)}function U(n,t=Ee.Default){return(function W4(){return kd}()||ob)(xe(n),t)}const Kl=U;function dh(n){const t=[];for(let e=0;e<n.length;e++){const r=xe(n[e]);if(Array.isArray(r)){if(0===r.length)throw new ee(900,"");let i,s=Ee.Default;for(let o=0;o<r.length;o++){const a=r[o],l=ab(a);"number"==typeof l?-1===l?i=a.token:s|=l:i=a}t.push(U(i,s))}else t.push(U(r))}return t}function ca(n,t){return n[uh]=t,n.prototype[uh]=t,n}function ab(n){return n[uh]}const Ql=ca(Gs("Optional"),8),Yl=ca(Gs("SkipSelf"),4);var Hn=(()=>((Hn=Hn||{})[Hn.Important=1]="Important",Hn[Hn.DashCase=2]="DashCase",Hn))();const x1="__ngContext__";function pn(n,t){n[x1]=t}function mh(n){const t=function da(n){return n[x1]||null}(n);return t?Array.isArray(t)?t:t.lView:null}function yh(n,t){return undefined(n,t)}function ha(n){const t=n[3];return wr(t)?t[3]:t}function _h(n){return L1(n[13])}function vh(n){return L1(n[4])}function L1(n){for(;null!==n&&!wr(n);)n=n[4];return n}function Zs(n,t,e,r,i){if(null!=r){let s,o=!1;wr(r)?s=r:Rr(r)&&(o=!0,r=r[0]);const a=Bt(r);0===n&&null!==e?null==i?H1(t,e,a):Ji(t,e,a,i||null,!0):1===n&&null!==e?Ji(t,e,a,i||null,!0):2===n?function Mh(n,t,e){const r=Xl(n,t);r&&function $b(n,t,e,r){At(n)?n.removeChild(t,e,r):t.removeChild(e)}(n,r,t,e)}(t,a,o):3===n&&t.destroyNode(a),null!=s&&function jb(n,t,e,r,i){const s=e[7];s!==Bt(e)&&Zs(t,n,r,s,i);for(let a=10;a<e.length;a++){const l=e[a];fa(l[1],l,n,t,r,s)}}(t,n,s,e,i)}}function Ch(n,t,e){if(At(n))return n.createElement(t,e);{const r=null!==e?function d3(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 $1(n,t){const e=n[9],r=e.indexOf(t),i=t[3];1024&t[2]&&(t[2]&=-1025,Wd(i,-1)),e.splice(r,1)}function bh(n,t){if(n.length<=10)return;const e=10+t,r=n[e];if(r){const i=r[17];null!==i&&i!==n&&$1(i,r),t>0&&(n[e-1][4]=r[4]);const s=Wl(n,10+t);!function Ib(n,t){fa(n,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);const o=s[19];null!==o&&o.detachView(s[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function V1(n,t){if(!(256&t[2])){const e=t[11];At(e)&&e.destroyNode&&fa(n,t,e,3,null,null),function Nb(n){let t=n[13];if(!t)return Dh(n[1],n);for(;t;){let e=null;if(Rr(t))e=t[13];else{const r=t[10];r&&(e=r)}if(!e){for(;t&&!t[4]&&t!==n;)Rr(t)&&Dh(t[1],t),t=t[3];null===t&&(t=n),Rr(t)&&Dh(t[1],t),e=t&&t[4]}t=e}}(t)}}function Dh(n,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function Rb(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 ea)){const s=e[r+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=i[s[o]],l=s[o+1];try{l.call(a)}finally{}}else try{s.call(i)}finally{}}}}(n,t),function Lb(n,t){const e=n.cleanup,r=t[7];let i=-1;if(null!==e)for(let s=0;s<e.length-1;s+=2)if("string"==typeof e[s]){const o=e[s+1],a="function"==typeof o?o(t):Bt(t[o]),l=r[i=e[s+2]],c=e[s+3];"boolean"==typeof c?a.removeEventListener(e[s],l,c):c>=0?r[i=c]():r[i=-c].unsubscribe(),s+=2}else{const o=r[i=e[s+1]];e[s].call(o)}if(null!==r){for(let s=i+1;s<r.length;s++)r[s]();t[7]=null}}(n,t),1===t[1].type&&At(t[11])&&t[11].destroy();const e=t[17];if(null!==e&&wr(t[3])){e!==t[3]&&$1(e,t);const r=t[19];null!==r&&r.detachView(n)}}}function B1(n,t,e){return function j1(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===_r.None||i===_r.Emulated)return null}return Vn(r,e)}(n,t.parent,e)}function Ji(n,t,e,r,i){At(n)?n.insertBefore(t,e,r,i):t.insertBefore(e,r,i)}function H1(n,t,e){At(n)?n.appendChild(t,e):t.appendChild(e)}function U1(n,t,e,r,i){null!==r?Ji(n,t,e,r,i):H1(n,t,e)}function Xl(n,t){return At(n)?n.parentNode(t):t.parentNode}function z1(n,t,e){return W1(n,t,e)}let nc,rc,W1=function G1(n,t,e){return 40&n.type?Vn(n,e):null};function ec(n,t,e,r){const i=B1(n,r,t),s=t[11],a=z1(r.parent||t[6],r,t);if(null!=i)if(Array.isArray(e))for(let l=0;l<e.length;l++)U1(s,i,e[l],a,!1);else U1(s,i,e,a,!1)}function tc(n,t){if(null!==t){const e=t.type;if(3&e)return Vn(t,n);if(4&e)return Sh(-1,n[t.index]);if(8&e){const r=t.child;if(null!==r)return tc(n,r);{const i=n[t.index];return wr(i)?Sh(-1,i):Bt(i)}}if(32&e)return yh(t,n)()||Bt(n[t.index]);{const r=Z1(n,t);return null!==r?Array.isArray(r)?r[0]:tc(ha(n[16]),r):tc(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 tc(r,i)}return t[7]}function Th(n,t,e,r,i,s,o){for(;null!=e;){const a=r[e.index],l=e.type;if(o&&0===t&&(a&&pn(Bt(a),r),e.flags|=4),64!=(64&e.flags))if(8&l)Th(n,t,e.child,r,i,s,!1),Zs(t,n,i,a,s);else if(32&l){const c=yh(e,r);let u;for(;u=c();)Zs(t,n,i,u,s);Zs(t,n,i,a,s)}else 16&l?K1(n,t,r,e,i,s):Zs(t,n,i,a,s);e=o?e.projectionNext:e.next}}function fa(n,t,e,r,i,s){Th(e,r,n.firstChild,t,i,s,!1)}function K1(n,t,e,r,i,s){const o=e[16],l=o[6].projection[r.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)Zs(t,n,i,l[c],s);else Th(n,t,l,o[3],i,s,!0)}function Q1(n,t,e){At(n)?n.setAttribute(t,"style",e):t.style.cssText=e}function Ah(n,t,e){At(n)?""===e?n.removeAttribute(t,"class"):n.setAttribute(t,"class",e):t.className=e}function Xi(n){var t;return(null===(t=function xh(){if(void 0===nc&&(nc=null,Je.trustedTypes))try{nc=Je.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return nc}())||void 0===t?void 0:t.createHTML(n))||n}function Y1(n){var t;return(null===(t=function Ih(){if(void 0===rc&&(rc=null,Je.trustedTypes))try{rc=Je.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return rc}())||void 0===t?void 0:t.createHTML(n))||n}class es{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Wb extends es{getTypeName(){return"HTML"}}class qb extends es{getTypeName(){return"Style"}}class Zb extends es{getTypeName(){return"Script"}}class Kb extends es{getTypeName(){return"URL"}}class Qb extends es{getTypeName(){return"ResourceURL"}}function Un(n){return n instanceof es?n.changingThisBreaksApplicationSecurity:n}function jr(n,t){const e=e0(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 e0(n){return n instanceof es&&n.getTypeName()||null}class n5{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(Xi(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class r5{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=Xi(t),e;const r=this.inertDocument.createElement("body");return r.innerHTML=Xi(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0<i;i--){const o=e.item(i).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&t.removeAttribute(o)}let r=t.firstChild;for(;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}const s5=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,o5=/^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 pa(n){return(n=String(n)).match(s5)||n.match(o5)?n:"unsafe:"+n}function Hr(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function ma(...n){const t={};for(const e of n)for(const r in e)e.hasOwnProperty(r)&&(t[r]=!0);return t}const r0=Hr("area,br,col,hr,img,wbr"),s0=Hr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),o0=Hr("rp,rt"),Ph=ma(r0,ma(s0,Hr("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),ma(o0,Hr("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),ma(o0,s0)),kh=Hr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Nh=Hr("srcset"),a0=ma(kh,Nh,Hr("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"),Hr("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")),a5=Hr("script,style,template");class l5{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(!Ph.hasOwnProperty(e))return this.sanitizedSomething=!0,!a5.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const r=t.attributes;for(let i=0;i<r.length;i++){const s=r.item(i),o=s.name,a=o.toLowerCase();if(!a0.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=s.value;kh[a]&&(l=pa(l)),Nh[a]&&(n=l,l=(n=String(n)).split(",").map(t=>pa(t.trim())).join(", ")),this.buf.push(" ",o,'="',l0(l),'"')}var n;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Ph.hasOwnProperty(e)&&!r0.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(l0(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 c5=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u5=/([^\#-~ |!])/g;function l0(n){return n.replace(/&/g,"&amp;").replace(c5,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(u5,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let ic;function c0(n,t){let e=null;try{ic=ic||function t0(n){const t=new r5(n);return function i5(){try{return!!(new window.DOMParser).parseFromString(Xi(""),"text/html")}catch(n){return!1}}()?new n5(t):t}(n);let r=t?String(t):"";e=ic.getInertBodyElement(r);let i=5,s=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=s,s=e.innerHTML,e=ic.getInertBodyElement(r)}while(r!==s);return Xi((new l5).sanitizeChildren(Oh(e)||e))}finally{if(e){const r=Oh(e)||e;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Oh(n){return"content"in n&&function d5(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var nt=(()=>((nt=nt||{})[nt.NONE=0]="NONE",nt[nt.HTML=1]="HTML",nt[nt.STYLE=2]="STYLE",nt[nt.SCRIPT=3]="SCRIPT",nt[nt.URL=4]="URL",nt[nt.RESOURCE_URL=5]="RESOURCE_URL",nt))();function Fh(n){const t=ya();return t?Y1(t.sanitize(nt.HTML,n)||""):jr(n,"HTML")?Y1(Un(n)):c0(Ud(),Ce(n))}function ga(n){const t=ya();return t?t.sanitize(nt.URL,n)||"":jr(n,"URL")?Un(n):pa(Ce(n))}function ya(){const n=O();return n&&n[12]}function Rh(n){return n.ngOriginalError}function C5(n,...t){n.error(...t)}class _a{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),r=function w5(n){return n&&n.ngErrorLogger||C5}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&Rh(t);for(;e&&Rh(e);)e=Rh(e);return e||null}}const A5=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Je))();function d0(n){return n.ownerDocument.defaultView}function h0(n){return n.ownerDocument}function Ur(n){return n instanceof Function?n():n}function p0(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 s=t.length;if(i+s===r||n.charCodeAt(i+s)<=32)return i}e=i+1}}const m0="ng-template";function I5(n,t,e){let r=0;for(;r<n.length;){let i=n[r++];if(e&&"class"===i){if(i=n[r],-1!==p0(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 g0(n){return 4===n.type&&n.value!==m0}function P5(n,t,e){return t===(4!==n.type||e?n.value:m0)}function k5(n,t,e){let r=4;const i=n.attrs||[],s=function F5(n){for(let t=0;t<n.length;t++)if(r1(n[t]))return t;return n.length}(i);let o=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!o)if(4&r){if(r=2|1&r,""!==l&&!P5(n,l,e)||""===l&&1===t.length){if(br(r))return!1;o=!0}}else{const c=8&r?l:t[++a];if(8&r&&null!==n.attrs){if(!I5(n.attrs,c,e)){if(br(r))return!1;o=!0}continue}const d=N5(8&r?"class":l,i,g0(n),e);if(-1===d){if(br(r))return!1;o=!0;continue}if(""!==c){let f;f=d>s?"":i[d+1].toLowerCase();const p=8&r?f:null;if(p&&-1!==p0(p,c,0)||2&r&&c!==f){if(br(r))return!1;o=!0}}}}else{if(!o&&!br(r)&&!br(l))return!1;if(o&&br(l))continue;o=!1,r=l|1&r}}return br(r)||o}function br(n){return 0==(1&n)}function N5(n,t,e,r){if(null===t)return-1;let i=0;if(r||!e){let s=!1;for(;i<t.length;){const o=t[i];if(o===n)return i;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=t[++i];for(;"string"==typeof a;)a=t[++i];continue}if(4===o)break;if(0===o){i+=4;continue}}i+=s?1:2}return-1}return function L5(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 y0(n,t,e=!1){for(let r=0;r<t.length;r++)if(k5(n,t[r],e))return!0;return!1}function R5(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 _0(n,t){return n?":not("+t.trim()+")":t}function $5(n){let t=n[0],e=1,r=2,i="",s=!1;for(;e<n.length;){let o=n[e];if("string"==typeof o)if(2&r){const a=n[++e];i+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?i+="."+o:4&r&&(i+=" "+o);else""!==i&&!br(o)&&(t+=_0(s,i),i=""),r=o,s=s||!br(r);e++}return""!==i&&(t+=_0(s,i)),t}const De={};function z(n){v0($e(),O(),bn()+n,!1)}function v0(n,t,e,r){if(!r)if(3==(3&t[2])){const s=n.preOrderCheckHooks;null!==s&&$l(t,s,e)}else{const s=n.preOrderHooks;null!==s&&Vl(t,s,0,e)}Ii(e)}function sc(n,t){return n<<17|t<<2}function Dr(n){return n>>17&32767}function $h(n){return 2|n}function ci(n){return(131068&n)>>2}function Vh(n,t){return-131069&n|t<<2}function Bh(n){return 1|n}function I0(n,t){const e=n.contentQueries;if(null!==e)for(let r=0;r<e.length;r+=2){const i=e[r],s=e[r+1];if(-1!==s){const o=n.data[s];Yd(i),o.contentQueries(2,t[s],s)}}}function va(n,t,e,r,i,s,o,a,l,c){const u=t.blueprint.slice();return u[0]=i,u[2]=140|r,zg(u),u[3]=u[15]=n,u[8]=e,u[10]=o||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]=s,u[16]=2==t.type?n[16]:u,u}function Qs(n,t,e,r,i){let s=n.data[t];if(null===s)s=function Kh(n,t,e,r,i){const s=qg(),o=qd(),l=n.data[t]=function n6(n,t,e,r,i,s){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:s,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,o?s:s&&s.parent,e,t,r,i);return null===n.firstChild&&(n.firstChild=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l)),l}(n,t,e,r,i),function D3(){return be.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=e,s.value=r,s.attrs=i;const o=function Xo(){const n=be.lFrame,t=n.currentTNode;return n.isParent?t:t.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return Vr(s,!0),s}function Ys(n,t,e,r){if(0===e)return-1;const i=t.length;for(let s=0;s<e;s++)t.push(r),n.blueprint.push(r),n.data.push(null);return i}function wa(n,t,e){Fl(t);try{const r=n.viewQuery;null!==r&&sf(1,r,e);const i=n.template;null!==i&&P0(n,t,i,1,e),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&I0(n,t),n.staticViewQueries&&sf(2,n.viewQuery,e);const s=n.components;null!==s&&function X5(n,t){for(let e=0;e<t.length;e++)w6(n,t[e])}(t,s)}catch(r){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),r}finally{t[2]&=-5,Ll()}}function Js(n,t,e,r){const i=t[2];if(256!=(256&i)){Fl(t);try{zg(t),function Zg(n){return be.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==e&&P0(n,t,e,2,r);const o=3==(3&i);if(o){const c=n.preOrderCheckHooks;null!==c&&$l(t,c,null)}else{const c=n.preOrderHooks;null!==c&&Vl(t,c,0,null),Jd(t,0)}if(function _6(n){for(let t=_h(n);null!==t;t=vh(t)){if(!t[2])continue;const e=t[9];for(let r=0;r<e.length;r++){const i=e[r],s=i[3];0==(1024&i[2])&&Wd(s,1),i[2]|=1024}}}(t),function y6(n){for(let t=_h(n);null!==t;t=vh(t))for(let e=10;e<t.length;e++){const r=t[e],i=r[1];Gd(r)&&Js(i,r,i.template,r[8])}}(t),null!==n.contentQueries&&I0(n,t),o){const c=n.contentCheckHooks;null!==c&&$l(t,c)}else{const c=n.contentHooks;null!==c&&Vl(t,c,1),Jd(t,1)}!function Y5(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 s=i,o=e[++r],a=e[++r];E3(o,s),a(2,t[s])}}}finally{Ii(-1)}}(n,t);const a=n.components;null!==a&&function J5(n,t){for(let e=0;e<t.length;e++)v6(n,t[e])}(t,a);const l=n.viewQuery;if(null!==l&&sf(2,l,r),o){const c=n.viewCheckHooks;null!==c&&$l(t,c)}else{const c=n.viewHooks;null!==c&&Vl(t,c,2),Jd(t,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),t[2]&=-73,1024&t[2]&&(t[2]&=-1025,Wd(t[3],-1))}finally{Ll()}}}function e6(n,t,e,r){const i=t[10],o=Ug(t);try{!o&&i.begin&&i.begin(),o&&wa(n,t,r),Js(n,t,e,r)}finally{!o&&i.end&&i.end()}}function P0(n,t,e,r,i){const s=bn(),o=2&r;try{Ii(-1),o&&t.length>20&&v0(n,t,20,!1),e(r,i)}finally{Ii(s)}}function k0(n,t,e){if(Rd(t)){const i=t.directiveEnd;for(let s=t.directiveStart;s<i;s++){const o=n.data[s];o.contentQueries&&o.contentQueries(1,e[s],s)}}}function Qh(n,t,e){!Wg()||(function c6(n,t,e,r){const i=e.directiveStart,s=e.directiveEnd;n.firstCreatePass||na(e,t),pn(r,t);const o=e.initialInputs;for(let a=i;a<s;a++){const l=n.data[a],c=Cr(l);c&&p6(t,e,l);const u=ra(t,n,a,e);pn(u,t),null!==o&&m6(0,a-i,u,l,0,o),c&&(Bn(e.index,t)[8]=u)}}(n,t,e,Vn(e,t)),128==(128&e.flags)&&function u6(n,t,e){const r=e.directiveStart,i=e.directiveEnd,o=e.index,a=function S3(){return be.lFrame.currentDirectiveIndex}();try{Ii(o);for(let l=r;l<i;l++){const c=n.data[l],u=t[l];Kd(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&B0(c,u)}}finally{Ii(-1),Kd(a)}}(n,t,e))}function Yh(n,t,e=Vn){const r=t.localNames;if(null!==r){let i=t.index+1;for(let s=0;s<r.length;s+=2){const o=r[s+1],a=-1===o?e(t,n):n[o];n[i++]=a}}}function N0(n){const t=n.tView;return null===t||t.incompleteFirstPass?n.tView=lc(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):t}function lc(n,t,e,r,i,s,o,a,l,c){const u=20+r,d=u+i,f=function t6(n,t){const e=[];for(let r=0;r<t;r++)e.push(r<n?null:De);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 s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:p,incompleteFirstPass:!1}}function L0(n,t,e,r){const i=W0(t);null===e?i.push(r):(i.push(e),n.firstCreatePass&&q0(n).push(r,i.length-1))}function R0(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 zn(n,t,e,r,i,s,o,a){const l=Vn(t,e);let u,c=t.inputs;!a&&null!=c&&(u=c[r])?(Q0(n,e,u,r,i),Pl(t)&&function s6(n,t){const e=Bn(t,n);16&e[2]||(e[2]|=64)}(e,t.index)):3&t.type&&(r=function i6(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(r),i=null!=o?o(i,t.value||"",r):i,At(s)?s.setProperty(l,r,i):eh(r)||(l.setProperty?l.setProperty(r,i):l[r]=i))}function Jh(n,t,e,r){let i=!1;if(Wg()){const s=function d6(n,t,e){const r=n.directiveRegistry;let i=null;if(r)for(let s=0;s<r.length;s++){const o=r[s];y0(e,o.selectors,!1)&&(i||(i=[]),zl(na(e,t),n,o.type),Cr(o)?(j0(n,e),i.unshift(o)):i.push(o))}return i}(n,t,e),o=null===r?null:{"":-1};if(null!==s){i=!0,H0(e,n.data.length,s.length);for(let u=0;u<s.length;u++){const d=s[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=Ys(n,t,s.length,null);for(let u=0;u<s.length;u++){const d=s[u];e.mergedAttrs=jl(e.mergedAttrs,d.hostAttrs),U0(n,e,t,c,d),f6(c,d,o),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 r6(n,t){const r=t.directiveEnd,i=n.data,s=t.attrs,o=[];let a=null,l=null;for(let c=t.directiveStart;c<r;c++){const u=i[c],d=u.inputs,f=null===s||g0(t)?null:g6(d,s);o.push(f),a=R0(d,c,a),l=R0(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(t.flags|=16),a.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=a,t.outputs=l}(n,e)}o&&function h6(n,t,e){if(t){const r=n.localNames=[];for(let i=0;i<t.length;i+=2){const s=e[t[i+1]];if(null==s)throw new ee(-301,!1);r.push(t[i],s)}}}(e,r,o)}return e.mergedAttrs=jl(e.mergedAttrs,e.attrs),i}function V0(n,t,e,r,i,s){const o=s.hostBindings;if(o){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~t.index;(function l6(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,o)}}function B0(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function j0(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function f6(n,t,e){if(e){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)e[t.exportAs[r]]=n;Cr(t)&&(e[""]=n)}}function H0(n,t,e){n.flags|=1,n.directiveStart=t,n.directiveEnd=t+e,n.providerIndexes=t}function U0(n,t,e,r,i){n.data[r]=i;const s=i.factory||(i.factory=Yi(i.type)),o=new ea(s,Cr(i),null);n.blueprint[r]=o,e[r]=o,V0(n,t,0,r,Ys(n,e,i.hostVars,De),i)}function p6(n,t,e){const r=Vn(t,n),i=N0(e),s=n[10],o=cc(n,va(n,i,null,e.onPush?64:16,r,t,s,s.createRenderer(r,e),null,null));n[t.index]=o}function zr(n,t,e,r,i,s){const o=Vn(n,t);!function Xh(n,t,e,r,i,s,o){if(null==s)At(n)?n.removeAttribute(t,i,e):t.removeAttribute(i);else{const a=null==o?Ce(s):o(s,r||"",i);At(n)?n.setAttribute(t,i,a,e):e?t.setAttributeNS(e,i,a):t.setAttribute(i,a)}}(t[11],o,s,n.value,e,r,i)}function m6(n,t,e,r,i,s){const o=s[t];if(null!==o){const a=r.setInput;for(let l=0;l<o.length;){const c=o[l++],u=o[l++],d=o[l++];null!==a?r.setInput(e,d,c,u):e[u]=d}}}function g6(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 z0(n,t,e,r){return new Array(n,!0,!1,t,null,0,r,e,null,null)}function v6(n,t){const e=Bn(t,n);if(Gd(e)){const r=e[1];80&e[2]?Js(r,e,r.template,e[8]):e[5]>0&&ef(e)}}function ef(n){for(let r=_h(n);null!==r;r=vh(r))for(let i=10;i<r.length;i++){const s=r[i];if(1024&s[2]){const o=s[1];Js(o,s,o.template,s[8])}else s[5]>0&&ef(s)}const e=n[1].components;if(null!==e)for(let r=0;r<e.length;r++){const i=Bn(e[r],n);Gd(i)&&i[5]>0&&ef(i)}}function w6(n,t){const e=Bn(t,n),r=e[1];(function C6(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 cc(n,t){return n[13]?n[14][4]=t:n[13]=t,n[14]=t,t}function tf(n){for(;n;){n[2]|=64;const t=ha(n);if(n3(n)&&!t)return n;n=t}return null}function G0(n){!function nf(n){for(let t=0;t<n.components.length;t++){const e=n.components[t],r=mh(e),i=r[1];e6(i,r,i.template,e)}}(n[8])}function sf(n,t,e){Yd(0),t(n,e)}const D6=(()=>Promise.resolve(null))();function W0(n){return n[7]||(n[7]=[])}function q0(n){return n.cleanup||(n.cleanup=[])}function K0(n,t){const e=n[9],r=e?e.get(_a,null):null;r&&r.handleError(t)}function Q0(n,t,e,r,i){for(let s=0;s<e.length;){const o=e[s++],a=e[s++],l=t[o],c=n.data[o];null!==c.setInput?c.setInput(l,i,r,a):l[a]=i}}function ui(n,t,e){const r=Nl(t,n);!function R1(n,t,e){At(n)?n.setValue(t,e):t.textContent=e}(n[11],r,e)}function uc(n,t,e){let r=e?n.styles:null,i=e?n.classes:null,s=0;if(null!==t)for(let o=0;o<t.length;o++){const a=t[o];"number"==typeof a?s=a:1==s?i=Ad(i,a):2==s&&(r=Ad(r,a+": "+t[++o]+";"))}e?n.styles=r:n.stylesWithoutHost=r,e?n.classes=i:n.classesWithoutHost=i}const of=new ue("INJECTOR",-1);class Y0{get(t,e=aa){if(e===aa){const r=new Error(`NullInjectorError: No provider for ${Ke(t)}!`);throw r.name="NullInjectorError",r}return e}}const af=new ue("Set Injector scope."),Ca={},M6={};let lf;function J0(){return void 0===lf&&(lf=new Y0),lf}function X0(n,t=null,e=null,r){const i=ey(n,t,e,r);return i._resolveInjectorDefTypes(),i}function ey(n,t=null,e=null,r){return new T6(n,e,t||J0(),r)}class T6{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 s=[];e&&Br(e,a=>this.processProvider(a,t,e)),Br([t],a=>this.processInjectorType(a,[],s)),this.records.set(of,Xs(void 0,this));const o=this.records.get(af);this.scope=null!=o?o.value:null,this.source=i||("object"==typeof t?null:Ke(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=aa,r=Ee.Default){this.assertNotDestroyed();const i=C1(this),s=Mi(void 0);try{if(!(r&Ee.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function F6(n){return"function"==typeof n||"object"==typeof n&&n instanceof ue}(t)&&Id(t);a=l&&this.injectableDefInScope(l)?Xs(cf(t),Ca):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&Ee.Self?J0():this.parent).get(t,e=r&Ee.Optional&&e===aa?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[Zl]=o[Zl]||[]).unshift(Ke(t)),i)throw o;return function lb(n,t,e,r){const i=n[Zl];throw t[w1]&&i.unshift(t[w1]),n.message=function cb(n,t,e,r=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let i=Ke(t);if(Array.isArray(t))i=t.map(Ke).join(" -> ");else if("object"==typeof t){let s=[];for(let o in t)if(t.hasOwnProperty(o)){let a=t[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):Ke(a)))}i=`{${s.join(", ")}}`}return`${e}${r?"("+r+")":""}[${i}]: ${n.replace(rb,"\n ")}`}("\n"+n.message,i,e,r),n.ngTokenPath=i,n[Zl]=null,n}(o,t,"R3InjectorError",this.source)}throw o}finally{Mi(s),C1(i)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((r,i)=>t.push(Ke(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ee(205,!1)}processInjectorType(t,e,r){if(!(t=xe(t)))return!1;let i=xg(t);const s=null==i&&t.ngModule||void 0,o=void 0===s?t:s,a=-1!==r.indexOf(o);if(void 0!==s&&(i=xg(s)),null==i)return!1;if(null!=i.imports&&!a){let u;r.push(o);try{Br(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];Br(p,m=>this.processProvider(m,f,p||tt))}}this.injectorDefTypes.add(o);const l=Yi(o)||(()=>new o);this.records.set(o,Xs(l,Ca));const c=i.providers;if(null!=c&&!a){const u=t;Br(c,d=>this.processProvider(d,u,c))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,r){let i=eo(t=xe(t))?t:xe(t&&t.provide);const s=function x6(n,t,e){return ny(n)?Xs(void 0,n.useValue):Xs(ty(n),Ca)}(t);if(eo(t)||!0!==t.multi)this.records.get(i);else{let o=this.records.get(i);o||(o=Xs(void 0,Ca,!0),o.factory=()=>dh(o.multi),this.records.set(i,o)),i=t,o.multi.push(t)}this.records.set(i,s)}hydrate(t,e){return e.value===Ca&&(e.value=M6,e.value=e.factory()),"object"==typeof e.value&&e.value&&function O6(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=xe(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function cf(n){const t=Id(n),e=null!==t?t.factory:Yi(n);if(null!==e)return e;if(n instanceof ue)throw new ee(204,!1);if(n instanceof Function)return function A6(n){const t=n.length;if(t>0)throw oa(t,"?"),new ee(204,!1);const e=function U4(n){const t=n&&(n[Ml]||n[Ig]);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 ee(204,!1)}function ty(n,t,e){let r;if(eo(n)){const i=xe(n);return Yi(i)||cf(i)}if(ny(n))r=()=>xe(n.useValue);else if(function P6(n){return!(!n||!n.useFactory)}(n))r=()=>n.useFactory(...dh(n.deps||[]));else if(function I6(n){return!(!n||!n.useExisting)}(n))r=()=>U(xe(n.useExisting));else{const i=xe(n&&(n.useClass||n.provide));if(!function N6(n){return!!n.deps}(n))return Yi(i)||cf(i);r=()=>new i(...dh(n.deps))}return r}function Xs(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function ny(n){return null!==n&&"object"==typeof n&&sb in n}function eo(n){return"function"==typeof n}let xt=(()=>{class n{static create(e,r){var i;if(Array.isArray(e))return X0({name:""},r,e,"");{const s=null!==(i=e.name)&&void 0!==i?i:"";return X0({name:s},e.parent,e.providers,s)}}}return n.THROW_IF_NOT_FOUND=aa,n.NULL=new Y0,n.\u0275prov=se({token:n,providedIn:"any",factory:()=>U(of)}),n.__NG_ELEMENT_ID__=-1,n})();function U6(n,t){Rl(mh(n)[1],Zt())}function Be(n){let t=function py(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),e=!0;const r=[n];for(;t;){let i;if(Cr(n))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new ee(903,"");i=t.\u0275dir}if(i){if(e){r.push(i);const o=n;o.inputs=hf(n.inputs),o.declaredInputs=hf(n.declaredInputs),o.outputs=hf(n.outputs);const a=i.hostBindings;a&&q6(n,a);const l=i.viewQuery,c=i.contentQueries;if(l&&G6(n,l),c&&W6(n,c),Td(n.inputs,i.inputs),Td(n.declaredInputs,i.declaredInputs),Td(n.outputs,i.outputs),Cr(i)&&i.data.animation){const u=n.data;u.animation=(u.animation||[]).concat(i.data.animation)}}const s=i.features;if(s)for(let o=0;o<s.length;o++){const a=s[o];a&&a.ngInherit&&a(n),a===Be&&(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=jl(i.hostAttrs,e=jl(e,i.hostAttrs))}}(r)}function hf(n){return n===ks?{}:n===tt?[]:n}function G6(n,t){const e=n.viewQuery;n.viewQuery=e?(r,i)=>{t(r,i),e(r,i)}:t}function W6(n,t){const e=n.contentQueries;n.contentQueries=e?(r,i,s)=>{t(r,i,s),e(r,i,s)}:t}function q6(n,t){const e=n.hostBindings;n.hostBindings=e?(r,i)=>{t(r,i),e(r,i)}:t}let dc=null;function to(){if(!dc){const n=Je.Symbol;if(n&&n.iterator)dc=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&&(dc=r)}}}return dc}function ba(n){return!!function ff(n){return null!==n&&("function"==typeof n||"object"==typeof n)}(n)&&(Array.isArray(n)||!(n instanceof Map)&&to()in n)}function Gr(n,t,e){return n[t]=e}function mn(n,t,e){return!Object.is(n[t],e)&&(n[t]=e,!0)}function ts(n,t,e,r){const i=mn(n,t,e);return mn(n,t+1,r)||i}function gn(n,t,e,r){const i=O();return mn(i,$s(),t)&&($e(),zr(vt(),i,n,t,e,r)),gn}function de(n,t,e,r,i,s,o,a){const l=O(),c=$e(),u=n+20,d=c.firstCreatePass?function e9(n,t,e,r,i,s,o,a,l){const c=t.consts,u=Qs(t,n,4,o||null,xi(c,a));Jh(t,e,u,xi(c,l)),Rl(t,u);const d=u.tViews=lc(2,u,r,i,s,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,s,o):c.data[u];Vr(d,!1);const f=l[11].createComment("");ec(c,l,f,d),pn(f,l),cc(l,l[u]=z0(f,l,f,d)),kl(d)&&Qh(c,l,d),null!=o&&Yh(l,d,a)}function ns(n){return Rs(function b3(){return be.lFrame.contextLView}(),20+n)}function P(n,t=Ee.Default){const e=O();return null===e?U(n,t):u1(Zt(),e,xe(n),t)}function G(n,t,e){const r=O();return mn(r,$s(),t)&&zn($e(),vt(),r,n,t,r[11],e,!1),G}function _f(n,t,e,r,i){const o=i?"class":"style";Q0(n,e,t.inputs[o],o,r)}function W(n,t,e,r){const i=O(),s=$e(),o=20+n,a=i[11],l=i[o]=Ch(a,t,function N3(){return be.lFrame.currentNamespace}()),c=s.firstCreatePass?function b9(n,t,e,r,i,s,o){const a=t.consts,c=Qs(t,n,2,i,xi(a,s));return Jh(t,e,c,xi(a,o)),null!==c.attrs&&uc(c,c.attrs,!1),null!==c.mergedAttrs&&uc(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(o,s,i,0,t,e,r):s.data[o];Vr(c,!0);const u=c.mergedAttrs;null!==u&&Bl(a,l,u);const d=c.classes;null!==d&&Ah(a,l,d);const f=c.styles;return null!==f&&Q1(a,l,f),64!=(64&c.flags)&&ec(s,i,l,c),0===function y3(){return be.lFrame.elementDepthCount}()&&pn(l,i),function _3(){be.lFrame.elementDepthCount++}(),kl(c)&&(Qh(s,i,c),k0(s,c,i)),null!==r&&Yh(i,c),W}function q(){let n=Zt();qd()?Zd():(n=n.parent,Vr(n,!1));const t=n;!function v3(){be.lFrame.elementDepthCount--}();const e=$e();return e.firstCreatePass&&(Rl(e,n),Rd(n)&&e.queries.elementEnd(n)),null!=t.classesWithoutHost&&function $3(n){return 0!=(16&n.flags)}(t)&&_f(e,t,O(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function V3(n){return 0!=(32&n.flags)}(t)&&_f(e,t,O(),t.stylesWithoutHost,!1),q}function ot(n,t,e,r){return W(n,t,e,r),q(),ot}function or(n,t,e){const r=O(),i=$e(),s=n+20,o=i.firstCreatePass?function D9(n,t,e,r,i){const s=t.consts,o=xi(s,r),a=Qs(t,n,8,"ng-container",o);return null!==o&&uc(a,o,!0),Jh(t,e,a,xi(s,i)),null!==t.queries&&t.queries.elementStart(t,a),a}(s,i,r,t,e):i.data[s];Vr(o,!0);const a=r[s]=r[11].createComment("");return ec(i,r,a,o),pn(a,r),kl(o)&&(Qh(i,r,o),k0(i,o,r)),null!=e&&Yh(r,o),or}function ar(){let n=Zt();const t=$e();return qd()?Zd():(n=n.parent,Vr(n,!1)),t.firstCreatePass&&(Rl(t,n),Rd(n)&&t.queries.elementEnd(n)),ar}function pc(n,t,e){return or(n,t,e),ar(),pc}function An(){return O()}function mc(n){return!!n&&"function"==typeof n.then}function Oy(n){return!!n&&"function"==typeof n.subscribe}const Fy=Oy;function Re(n,t,e,r){const i=O(),s=$e(),o=Zt();return function Ry(n,t,e,r,i,s,o,a){const l=kl(r),u=n.firstCreatePass&&q0(n),d=t[8],f=W0(t);let p=!0;if(3&r.type||a){const E=Vn(r,t),S=a?a(E):E,b=f.length,F=a?j=>a(Bt(j[r.index])):r.index;if(At(e)){let j=null;if(!a&&l&&(j=function E9(n,t,e,r){const i=n.cleanup;if(null!=i)for(let s=0;s<i.length-1;s+=2){const o=i[s];if(o===e&&i[s+1]===r){const a=t[7],l=i[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(n,t,i,r.index)),null!==j)(j.__ngLastListenerFn__||j).__ngNextListenerFn__=s,j.__ngLastListenerFn__=s,p=!1;else{s=vf(r,t,d,s,!1);const re=e.listen(S,i,s);f.push(s,re),u&&u.push(i,F,b,b+1)}}else s=vf(r,t,d,s,!0),S.addEventListener(i,s,o),f.push(s),u&&u.push(i,F,b,o)}else s=vf(r,t,d,s,!1);const m=r.outputs;let w;if(p&&null!==m&&(w=m[i])){const E=w.length;if(E)for(let S=0;S<E;S+=2){const ve=t[w[S]][w[S+1]].subscribe(s),Pe=f.length;f.push(s,ve),u&&u.push(i,r.index,Pe,-(Pe+1))}}}(s,i,i[11],o,n,t,!!e,r),Re}function $y(n,t,e,r){try{return!1!==e(r)}catch(i){return K0(n,i),!1}}function vf(n,t,e,r,i){return function s(o){if(o===Function)return r;const a=2&n.flags?Bn(n.index,t):t;0==(32&t[2])&&tf(a);let l=$y(t,0,r,o),c=s.__ngNextListenerFn__;for(;c;)l=$y(t,0,c,o)&&l,c=c.__ngNextListenerFn__;return i&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function pe(n=1){return function T3(n){return(be.lFrame.contextLView=function A3(n,t){for(;n>0;)t=t[15],n--;return t}(n,be.lFrame.contextLView))[8]}(n)}function S9(n,t){let e=null;const r=function O5(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 s=t[i];if("*"!==s){if(null===r?y0(n,s,!0):R5(r,s))return i}else e=i}return e}function wf(n,t=0,e){const r=O(),i=$e(),s=Qs(i,20+n,16,null,e||null);null===s.projection&&(s.projection=t),Zd(),64!=(64&s.flags)&&function Bb(n,t,e){K1(t[11],0,t,e,B1(n,e,t),z1(e.parent||t[6],e,t))}(i,r,s)}function Ky(n,t,e,r,i){const s=n[e+1],o=null===t;let a=r?Dr(s):ci(s),l=!1;for(;0!==a&&(!1===l||o);){const u=n[a+1];A9(n[a],t)&&(l=!0,n[a+1]=r?Bh(u):$h(u)),a=r?Dr(u):ci(u)}l&&(n[e+1]=r?$h(s):Bh(s))}function A9(n,t){return null===n||null==t||(Array.isArray(n)?n[1]:n)===t||!(!Array.isArray(n)||"string"!=typeof t)&&Ws(n,t)>=0}const Qt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Qy(n){return n.substring(Qt.key,Qt.keyEnd)}function Yy(n,t){const e=Qt.textEnd;return e===t?-1:(t=Qt.keyEnd=function k9(n,t,e){for(;t<e&&n.charCodeAt(t)>32;)t++;return t}(n,Qt.key=t,e),fo(n,t,e))}function fo(n,t,e){for(;t<e&&n.charCodeAt(t)<=32;)t++;return t}function po(n,t,e){return Sr(n,t,e,!1),po}function Wr(n,t){return Sr(n,t,null,!0),Wr}function di(n){!function Mr(n,t,e,r){const i=$e(),s=li(2);i.firstUpdatePass&&r_(i,null,s,r);const o=O();if(e!==De&&mn(o,s,e)){const a=i.data[bn()];if(a_(a,r)&&!n_(i,s)){let l=r?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Ad(l,e||"")),_f(i,a,o,e,r)}else!function j9(n,t,e,r,i,s,o,a){i===De&&(i=tt);let l=0,c=0,u=0<i.length?i[0]:null,d=0<s.length?s[0]:null;for(;null!==u||null!==d;){const f=l<i.length?i[l+1]:void 0,p=c<s.length?s[c+1]:void 0;let w,m=null;u===d?(l+=2,c+=2,f!==p&&(m=d,w=p)):null===d||null!==u&&u<d?(l+=2,m=u):(c+=2,m=d,w=p),null!==m&&s_(n,t,e,r,m,w,o,a),u=l<i.length?i[l]:null,d=c<s.length?s[c]:null}}(i,a,o,o[11],o[s+1],o[s+1]=function B9(n,t,e){if(null==e||""===e)return tt;const r=[],i=Un(e);if(Array.isArray(i))for(let s=0;s<i.length;s++)n(r,i[s],!0);else if("object"==typeof i)for(const s in i)i.hasOwnProperty(s)&&n(r,s,i[s]);else"string"==typeof i&&t(r,i);return r}(n,t,e),r,s)}}(jn,Zr,n,!0)}function Zr(n,t){for(let e=function I9(n){return function Xy(n){Qt.key=0,Qt.keyEnd=0,Qt.value=0,Qt.valueEnd=0,Qt.textEnd=n.length}(n),Yy(n,fo(n,0,Qt.textEnd))}(t);e>=0;e=Yy(t,e))jn(n,Qy(t),!0)}function Sr(n,t,e,r){const i=O(),s=$e(),o=li(2);s.firstUpdatePass&&r_(s,n,o,r),t!==De&&mn(i,o,t)&&s_(s,s.data[bn()],i,i[11],n,i[o+1]=function H9(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=Ke(Un(n)))),n}(t,e),r,o)}function n_(n,t){return t>=n.expandoStartIndex}function r_(n,t,e,r){const i=n.data;if(null===i[e+1]){const s=i[bn()],o=n_(n,e);a_(s,r)&&null===t&&!o&&(t=!1),t=function L9(n,t,e,r){const i=Qd(n);let s=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(e=Ea(e=bf(null,n,t,e,r),t.attrs,r),s=null);else{const o=t.directiveStylingLast;if(-1===o||n[o]!==i)if(e=bf(i,n,t,e,r),null===s){let l=function R9(n,t,e){const r=e?t.classBindings:t.styleBindings;if(0!==ci(r))return n[Dr(r)]}(n,t,r);void 0!==l&&Array.isArray(l)&&(l=bf(null,n,t,l[1],r),l=Ea(l,t.attrs,r),function $9(n,t,e,r){n[Dr(e?t.classBindings:t.styleBindings)]=r}(n,t,r,l))}else s=function V9(n,t,e){let r;const i=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<i;s++)r=Ea(r,n[s].hostAttrs,e);return Ea(r,t.attrs,e)}(n,t,r)}return void 0!==s&&(r?t.residualClasses=s:t.residualStyles=s),e}(i,s,t,r),function M9(n,t,e,r,i,s){let o=s?t.classBindings:t.styleBindings,a=Dr(o),l=ci(o);n[r]=e;let u,c=!1;if(Array.isArray(e)){const d=e;u=d[1],(null===u||Ws(d,u)>0)&&(c=!0)}else u=e;if(i)if(0!==l){const f=Dr(n[a+1]);n[r+1]=sc(f,a),0!==f&&(n[f+1]=Vh(n[f+1],r)),n[a+1]=function j5(n,t){return 131071&n|t<<17}(n[a+1],r)}else n[r+1]=sc(a,0),0!==a&&(n[a+1]=Vh(n[a+1],r)),a=r;else n[r+1]=sc(l,0),0===a?a=r:n[l+1]=Vh(n[l+1],r),l=r;c&&(n[r+1]=$h(n[r+1])),Ky(n,u,r,!0),Ky(n,u,r,!1),function T9(n,t,e,r,i){const s=i?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof t&&Ws(s,t)>=0&&(e[r+1]=Bh(e[r+1]))}(t,u,n,r,s),o=sc(a,l),s?t.classBindings=o:t.styleBindings=o}(i,s,t,e,o,r)}}function bf(n,t,e,r,i){let s=null;const o=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<o&&(s=t[a],r=Ea(r,s.hostAttrs,i),s!==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 s=0;s<t.length;s++){const o=t[s];"number"==typeof o?i=o:i===r&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),jn(n,o,!!e||t[++s]))}return void 0===n?null:n}function s_(n,t,e,r,i,s,o,a){if(!(3&t.type))return;const l=n.data,c=l[a+1];gc(function b0(n){return 1==(1&n)}(c)?o_(l,t,e,i,ci(c),o):void 0)||(gc(s)||function C0(n){return 2==(2&n)}(c)&&(s=o_(l,null,e,i,a,o)),function Hb(n,t,e,r,i){const s=At(n);if(t)i?s?n.addClass(e,r):e.classList.add(r):s?n.removeClass(e,r):e.classList.remove(r);else{let o=-1===r.indexOf("-")?void 0:Hn.DashCase;if(null==i)s?n.removeStyle(e,r,o):e.style.removeProperty(r);else{const a="string"==typeof i&&i.endsWith("!important");a&&(i=i.slice(0,-10),o|=Hn.Important),s?n.setStyle(e,r,i,o):e.style.setProperty(r,i,a?"important":"")}}}(r,o,Nl(bn(),e),i,s))}function o_(n,t,e,r,i,s){const o=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===De&&(f=d?tt:void 0);let p=d?lh(f,r):u===r?f:void 0;if(c&&!gc(p)&&(p=lh(l,r)),gc(p)&&(a=p,o))return a;const m=n[i+1];i=o?Dr(m):ci(m)}if(null!==t){let l=s?t.residualClasses:t.residualStyles;null!=l&&(a=lh(l,r))}return a}function gc(n){return void 0!==n}function a_(n,t){return 0!=(n.flags&(t?16:32))}function Ae(n,t=""){const e=O(),r=$e(),i=n+20,s=r.firstCreatePass?Qs(r,i,1,t,null):r.data[i],o=e[i]=function wh(n,t){return At(n)?n.createText(t):n.createTextNode(t)}(e[11],t);ec(r,e,o,s),Vr(s,!1)}function Oi(n){return xn("",n,""),Oi}function xn(n,t,e){const r=O(),i=function ro(n,t,e,r){return mn(n,$s(),e)?t+Ce(e)+r:De}(r,n,t,e);return i!==De&&ui(r,bn(),i),xn}function yc(n,t,e){const r=O();if(mn(r,$s(),t)){const s=$e(),o=vt();zn(s,o,r,n,t,function Z0(n,t,e){return(null===n||Cr(n))&&(e=function p3(n){for(;Array.isArray(n);){if("object"==typeof n[1])return n;n=n[0]}return null}(e[t.index])),e[11]}(Qd(s.data),o,r),e,!0)}return yc}const _c="en-US";let A_=_c;function Sf(n,t,e,r,i){if(n=xe(n),Array.isArray(n))for(let s=0;s<n.length;s++)Sf(n[s],t,e,r,i);else{const s=$e(),o=O();let a=eo(n)?n:xe(n.provide),l=ty(n);const c=Zt(),u=1048575&c.providerIndexes,d=c.directiveStart,f=c.providerIndexes>>20;if(eo(n)||!n.multi){const p=new ea(l,i,P),m=Tf(a,t,i?u:u+f,d);-1===m?(zl(na(c,o),s,a),Mf(s,n,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),e.push(p),o.push(p)):(e[m]=p,o[m]=p)}else{const p=Tf(a,t,u+f,d),m=Tf(a,t,u,u+f),w=p>=0&&e[p],E=m>=0&&e[m];if(i&&!E||!i&&!w){zl(na(c,o),s,a);const S=function a7(n,t,e,r,i){const s=new ea(n,e,P);return s.multi=[],s.index=t,s.componentProviders=0,J_(s,i,r&&!e),s}(i?o7:s7,e.length,i,r,l);!i&&E&&(e[m].providerFactory=S),Mf(s,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),e.push(S),o.push(S)}else Mf(s,n,p>-1?p:m,J_(e[i?m:p],l,!i&&r));!i&&r&&E&&e[m].componentProviders++}}}function Mf(n,t,e,r){const i=eo(t),s=function k6(n){return!!n.useClass}(t);if(i||s){const l=(s?xe(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 J_(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function Tf(n,t,e,r){for(let i=e;i<r;i++)if(t[i]===n)return i;return-1}function s7(n,t,e,r){return Af(this.multi,[])}function o7(n,t,e,r){const i=this.multi;let s;if(this.providerFactory){const o=this.providerFactory.componentProviders,a=ra(e,e[1],this.providerFactory.index,r);s=a.slice(0,o),Af(i,s);for(let l=o;l<a.length;l++)s.push(a[l])}else s=[],Af(i,s);return s}function Af(n,t){for(let e=0;e<n.length;e++)t.push((0,n[e])());return t}function rt(n,t=[]){return e=>{e.providersResolver=(r,i)=>function i7(n,t,e){const r=$e();if(r.firstCreatePass){const i=Cr(n);Sf(e,r.data,r.blueprint,i,!0),Sf(t,r.data,r.blueprint,i,!1)}}(r,i?i(n):n,t)}}class X_{}class u7{resolveComponentFactory(t){throw function c7(n){const t=Error(`No component factory found for ${Ke(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let is=(()=>{class n{}return n.NULL=new u7,n})();function d7(){return yo(Zt(),O())}function yo(n,t){return new In(Vn(n,t))}let In=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=d7,n})();function h7(n){return n instanceof In?n.nativeElement:n}class xa{}let Kr=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function p7(){const n=O(),e=Bn(Zt().index,n);return function f7(n){return n[11]}(Rr(e)?e:n)}(),n})(),m7=(()=>{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 g7=new Ia("13.3.12"),xf={};function Dc(n,t,e,r,i=!1){for(;null!==e;){const s=t[e.index];if(null!==s&&r.push(Bt(s)),wr(s))for(let a=10;a<s.length;a++){const l=s[a],c=l[1].firstChild;null!==c&&Dc(l[1],l,c,r)}const o=e.type;if(8&o)Dc(n,t,e.child,r);else if(32&o){const a=yh(e,t);let l;for(;l=a();)r.push(l)}else if(16&o){const a=Z1(t,e);if(Array.isArray(a))r.push(...a);else{const l=ha(t[16]);Dc(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 Dc(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(wr(t)){const e=t[8],r=e?e.indexOf(this):-1;r>-1&&(bh(t,r),Wl(e,r))}this._attachedToViewContainer=!1}V1(this._lView[1],this._lView)}onDestroy(t){L0(this._lView[1],this._lView,null,t)}markForCheck(){tf(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function rf(n,t,e){const r=t[10];r.begin&&r.begin();try{Js(n,t,n.template,e)}catch(i){throw K0(t,i),i}finally{r.end&&r.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ee(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function kb(n,t){fa(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new ee(902,"");this._appRef=t}}class y7 extends Pa{constructor(t){super(t),this._view=t}detectChanges(){G0(this._view)}checkNoChanges(){}get context(){return null}}class tv extends is{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=on(t);return new If(e,this.ngModule)}}function nv(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class If extends X_{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function V5(n){return n.map($5).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return nv(this.componentDef.inputs)}get outputs(){return nv(this.componentDef.outputs)}create(t,e,r,i){const s=(i=i||this.ngModule)?function v7(n,t){return{get:(e,r,i)=>{const s=n.get(e,xf,i);return s!==xf||r===xf?s:t.get(e,r,i)}}}(t,i.injector):t,o=s.get(xa,Hg),a=s.get(m7,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=r?function F0(n,t,e){if(At(n))return n.selectRootElement(t,e===_r.ShadowDom);let r="string"==typeof t?n.querySelector(t):t;return r.textContent="",r}(l,r,this.componentDef.encapsulation):Ch(o.createRenderer(null,this.componentDef),c,function _7(n){const t=n.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(c)),d=this.componentDef.onPush?576:528,f=function fy(n,t){return{components:[],scheduler:n||A5,clean:D6,playerHandler:t||null,flags:0}}(),p=lc(0,null,null,1,0,null,null,null,null,null),m=va(null,p,f,d,null,null,o,l,a,s);let w,E;Fl(m);try{const S=function dy(n,t,e,r,i,s){const o=e[1];e[20]=n;const l=Qs(o,20,2,"#host",null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(uc(l,c,!0),null!==n&&(Bl(i,n,c),null!==l.classes&&Ah(i,n,l.classes),null!==l.styles&&Q1(i,n,l.styles)));const u=r.createRenderer(n,t),d=va(e,N0(t),null,t.onPush?64:16,e[20],l,r,u,s||null,null);return o.firstCreatePass&&(zl(na(l,e),o,t.type),j0(o,l),H0(l,e.length,1)),cc(e,d),e[20]=d}(u,this.componentDef,m,o,l);if(u)if(r)Bl(l,u,["ng-version",g7.full]);else{const{attrs:b,classes:F}=function B5(n){const t=[],e=[];let r=1,i=2;for(;r<n.length;){let s=n[r];if("string"==typeof s)2===i?""!==s&&t.push(s,n[++r]):8===i&&e.push(s);else{if(!br(i))break;i=s}r++}return{attrs:t,classes:e}}(this.componentDef.selectors[0]);b&&Bl(l,u,b),F&&F.length>0&&Ah(l,u,F.join(" "))}if(E=zd(p,20),void 0!==e){const b=E.projection=[];for(let F=0;F<this.ngContentSelectors.length;F++){const j=e[F];b.push(null!=j?Array.from(j):null)}}w=function hy(n,t,e,r,i){const s=e[1],o=function a6(n,t,e){const r=Zt();n.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),U0(n,r,t,Ys(n,t,1,null),e));const i=ra(t,n,r.directiveStart,r);pn(i,t);const s=Vn(r,t);return s&&pn(s,t),i}(s,e,t);if(r.components.push(o),n[8]=o,i&&i.forEach(l=>l(o,t)),t.contentQueries){const l=Zt();t.contentQueries(1,o,l.directiveStart)}const a=Zt();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Ii(a.index),V0(e[1],a,0,a.directiveStart,a.directiveEnd,t),B0(t,o)),o}(S,this.componentDef,m,f,[U6]),wa(p,m,null)}finally{Ll()}return new C7(this.componentType,w,yo(E,m),m,E)}}class C7 extends class l7{}{constructor(t,e,r,i,s){super(),this.location=r,this._rootLView=i,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new y7(i),this.componentType=t}get injector(){return new js(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class _o{}const vo=new Map;class sv extends _o{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new tv(this);const r=tr(t);this._bootstrapComponents=Ur(r.bootstrap),this._r3Injector=ey(t,e,[{provide:_o,useValue:this},{provide:is,useValue:this.componentFactoryResolver}],Ke(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=xt.THROW_IF_NOT_FOUND,r=Ee.Default){return t===xt||t===_o||t===of?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 Pf extends class D7{}{constructor(t){super(),this.moduleType=t,null!==tr(t)&&function E7(n){const t=new Set;!function e(r){const i=tr(r,!0),s=i.id;null!==s&&(function rv(n,t,e){if(t&&t!==e)throw new Error(`Duplicate module registered for ${n} - ${Ke(t)} vs ${Ke(t.name)}`)}(s,vo.get(s),r),vo.set(s,r));const o=Ur(i.imports);for(const a of o)t.has(a)||(t.add(a),e(a))}(n)}(t)}create(t){return new sv(this.moduleType,t)}}function kf(n,t,e,r){return ov(O(),Cn(),n,t,e,r)}function ka(n,t){const e=n[t];return e===De?void 0:e}function ov(n,t,e,r,i,s){const o=t+e;return mn(n,o,i)?Gr(n,o+1,s?r.call(s,i):r(i)):ka(n,o+1)}function lv(n,t,e,r,i,s,o,a){const l=t+e;return function hc(n,t,e,r,i){const s=ts(n,t,e,r);return mn(n,t+2,i)||s}(n,l,i,s,o)?Gr(n,l+3,a?r.call(a,i,s,o):r(i,s,o)):ka(n,l+3)}function je(n,t){const e=$e();let r;const i=n+20;e.firstCreatePass?(r=function O7(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 s=r.factory||(r.factory=Yi(r.type)),o=Mi(P);try{const a=Hl(!1),l=s();return Hl(a),function t9(n,t,e,r){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=r}(e,O(),i,l),l}finally{Mi(o)}}function hi(n,t,e){const r=n+20,i=O(),s=Rs(i,r);return Na(i,r)?ov(i,Cn(),t,s.transform,e,s):s.transform(e)}function lr(n,t,e,r){const i=n+20,s=O(),o=Rs(s,i);return Na(s,i)?function av(n,t,e,r,i,s,o){const a=t+e;return ts(n,a,i,s)?Gr(n,a+2,o?r.call(o,i,s):r(i,s)):ka(n,a+2)}(s,Cn(),t,o.transform,e,r,o):o.transform(e,r)}function Pn(n,t,e,r,i){const s=n+20,o=O(),a=Rs(o,s);return Na(o,s)?lv(o,Cn(),t,a.transform,e,r,i,a):a.transform(e,r,i)}function Na(n,t){return n[1].data[t].pure}function Nf(n){return t=>{setTimeout(n,void 0,t)}}const He=class R7 extends Vt{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,r){var i,s,o;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===(s=d.error)||void 0===s?void 0:s.bind(d),c=null===(o=d.complete)||void 0===o?void 0:o.bind(d)}this.__isAsync&&(l=Nf(l),a&&(a=Nf(a)),c&&(c=Nf(c)));const u=super.subscribe({next:a,error:l,complete:c});return t instanceof Nt&&t.add(u),u}};function $7(){return this._results[to()]()}class Of{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=to(),r=Of.prototype;r[e]||(r[e]=$7)}get changes(){return this._changes||(this._changes=new He)}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=ir(t);(this._changesDetected=!function Z3(n,t,e){if(n.length!==t.length)return!1;for(let r=0;r<n.length;r++){let i=n[r],s=t[r];if(e&&(i=e(i),s=e(s)),s!==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 Qr=(()=>{class n{}return n.__NG_ELEMENT_ID__=j7,n})();const V7=Qr,B7=class extends V7{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 s=this._declarationLView[19];return null!==s&&(r[19]=s.createEmbeddedView(e)),wa(e,r,t),new Pa(r)}};function j7(){return Ec(Zt(),O())}function Ec(n,t){return 4&n.type?new B7(t,n,yo(n,t)):null}let Tr=(()=>{class n{}return n.__NG_ELEMENT_ID__=H7,n})();function H7(){return fv(Zt(),O())}const U7=Tr,dv=class extends U7{constructor(t,e,r){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=r}get element(){return yo(this._hostTNode,this._hostLView)}get injector(){return new js(this._hostTNode,this._hostLView)}get parentInjector(){const t=Ul(this._hostTNode,this._hostLView);if(s1(t)){const e=Bs(t,this._hostLView),r=Vs(t);return new js(e[1].data[r+8],e)}return new js(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=hv(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,s){const o=t&&!function sa(n){return"function"==typeof n}(t);let a;if(o)a=e;else{const d=e||{};a=d.index,r=d.injector,i=d.projectableNodes,s=d.ngModuleRef}const l=o?t:new If(on(t)),c=r||this.parentInjector;if(!s&&null==l.ngModule){const f=(o?c:this.parentInjector).get(_o,null);f&&(s=f)}const u=l.create(c,i,void 0,s);return this.insert(u.hostView,a),u}insert(t,e){const r=t._lView,i=r[1];if(function g3(n){return wr(n[3])}(r)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const d=r[3],f=new dv(d,d[6],d[3]);f.detach(f.indexOf(t))}}const s=this._adjustIndex(e),o=this._lContainer;!function Ob(n,t,e,r){const i=10+r,s=e.length;r>0&&(e[i-1][4]=t),r<s-10?(t[4]=e[i],m1(e,10+r,t)):(e.push(t),t[4]=null),t[3]=e;const o=t[17];null!==o&&e!==o&&function Fb(n,t){const e=n[9];t[16]!==t[3][3][16]&&(n[2]=!0),null===e?n[9]=[t]:e.push(t)}(o,t);const a=t[19];null!==a&&a.insertView(n),t[2]|=128}(i,r,o,s);const a=Sh(s,o),l=r[11],c=Xl(l,o[7]);return null!==c&&function Pb(n,t,e,r,i,s){r[0]=i,r[6]=t,fa(n,r,e,1,i,s)}(i,o[6],l,r,c,a),t.attachToViewContainerRef(),m1(Ff(o),s,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=hv(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),r=bh(this._lContainer,e);r&&(Wl(Ff(this._lContainer),e),V1(r[1],r))}detach(t){const e=this._adjustIndex(t,-1),r=bh(this._lContainer,e);return r&&null!=Wl(Ff(this._lContainer),e)?new Pa(r):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}};function hv(n){return n[8]}function Ff(n){return n[8]||(n[8]=[])}function fv(n,t){let e;const r=t[n.index];if(wr(r))e=r;else{let i;if(8&n.type)i=Bt(r);else{const s=t[11];i=s.createComment("");const o=Vn(n,t);Ji(s,Xl(s,o),i,function Vb(n,t){return At(n)?n.nextSibling(t):t.nextSibling}(s,o),!1)}t[n.index]=e=z0(r,t,i,n),cc(t,e)}return new dv(e,n,t)}class Lf{constructor(t){this.queryList=t,this.matches=null}clone(){return new Lf(this.queryList)}setDirty(){this.queryList.setDirty()}}class Rf{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 s=0;s<r;s++){const o=e.getByIndex(s);i.push(this.queries[o.indexInDeclarationView].clone())}return new Rf(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!==_v(t,e).matches&&this.queries[e].setDirty()}}class pv{constructor(t,e,r=null){this.predicate=t,this.flags=e,this.read=r}}class $f{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,s=this.getByIndex(r).embeddedTView(t,i);s&&(s.indexInDeclarationView=r,null!==e?e.push(s):e=[s])}return null!==e?new $f(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 Vf{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 Vf(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 s=r[i];this.matchTNodeWithReadOption(t,e,W7(e,s)),this.matchTNodeWithReadOption(t,e,Gl(e,t,s,!1,!1))}else r===Qr?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,Gl(e,t,r,!1,!1))}matchTNodeWithReadOption(t,e,r){if(null!==r){const i=this.metadata.read;if(null!==i)if(i===In||i===Tr||i===Qr&&4&e.type)this.addMatch(e.index,-2);else{const s=Gl(e,t,i,!1,!1);null!==s&&this.addMatch(e.index,s)}else this.addMatch(e.index,r)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function W7(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 Z7(n,t,e,r){return-1===e?function q7(n,t){return 11&n.type?yo(n,t):4&n.type?Ec(n,t):null}(t,n):-2===e?function K7(n,t,e){return e===In?yo(t,n):e===Qr?Ec(t,n):e===Tr?fv(t,n):void 0}(n,t,r):ra(n,n[1],e,t)}function mv(n,t,e,r){const i=t[19].queries[r];if(null===i.matches){const s=n.data,o=e.matches,a=[];for(let l=0;l<o.length;l+=2){const c=o[l];a.push(c<0?null:Z7(t,s[c],o[l+1],e.metadata.read))}i.matches=a}return i.matches}function Bf(n,t,e,r){const i=n.queries.getByIndex(e),s=i.matches;if(null!==s){const o=mv(n,t,i,e);for(let a=0;a<s.length;a+=2){const l=s[a];if(l>0)r.push(o[a/2]);else{const c=s[a+1],u=t[-l];for(let d=10;d<u.length;d++){const f=u[d];f[17]===f[3]&&Bf(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];Bf(p[1],p,c,r)}}}}}return r}function wo(n){const t=O(),e=$e(),r=Qg();Yd(r+1);const i=_v(e,r);if(n.dirty&&Ug(t)===(2==(2&i.metadata.flags))){if(null===i.matches)n.reset([]);else{const s=i.crossesNgTemplate?Bf(e,t,r,[]):mv(e,t,i,r);n.reset(s,h7),n.notifyOnChanges()}return!0}return!1}function Co(n,t,e){const r=$e();r.firstCreatePass&&(function yv(n,t,e){null===n.queries&&(n.queries=new $f),n.queries.track(new Vf(t,e))}(r,new pv(n,t,e),-1),2==(2&t)&&(r.staticViewQueries=!0)),function gv(n,t,e){const r=new Of(4==(4&e));L0(n,t,r,r.destroy),null===t[19]&&(t[19]=new Rf),t[19].queries.push(new Lf(r))}(r,O(),t)}function bo(){return function Y7(n,t){return n[19].queries[t].queryList}(O(),Qg())}function _v(n,t){return n.queries.getByIndex(t)}function ss(n,t){return Ec(n,t)}function Tc(...n){}const Fv=new ue("Application Initializer");let Wf=(()=>{class n{constructor(e){this.appInits=e,this.resolve=Tc,this.reject=Tc,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 s=this.appInits[i]();if(mc(s))e.push(s);else if(Fy(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});e.push(o)}}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(Fv,8))},n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Fa=new ue("AppId",{providedIn:"root",factory:function Lv(){return`${qf()}${qf()}${qf()}`}});function qf(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Rv=new ue("Platform Initializer"),Zf=new ue("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),mE=new ue("appBootstrapListener"),Fi=new ue("LocaleId",{providedIn:"root",factory:()=>Kl(Fi,Ee.Optional|Ee.SkipSelf)||function gE(){return"undefined"!=typeof $localize&&$localize.locale||_c}()}),wE=(()=>Promise.resolve(0))();function Kf(n){"undefined"==typeof Zone?wE.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 He(!1),this.onMicrotaskEmpty=new He(!1),this.onStable=new He(!1),this.onError=new He(!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 CE(){let n=Je.requestAnimationFrame,t=Je.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 EE(n){const t=()=>{!function DE(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(Je,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Yf(n),n.isCheckStableRunning=!0,Qf(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Yf(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,r,i,s,o,a)=>{try{return $v(n),e.invokeTask(i,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&t(),Vv(n)}},onInvoke:(e,r,i,s,o,a,l)=>{try{return $v(n),e.invoke(i,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),Vv(n)}},onHasTask:(e,r,i,s)=>{e.hasTask(i,s),r===i&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,Yf(n),Qf(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,r,i,s)=>(e.handleError(i,s),n.runOutsideAngular(()=>n.onError.emit(s)),!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 s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+i,t,bE,Tc,Tc);try{return s.runTask(o,e,r)}finally{s.cancelTask(o)}}runGuarded(t,e,r){return this._inner.runGuarded(t,e,r)}runOutsideAngular(t){return this._outer.run(t)}}const bE={};function Qf(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 Yf(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function $v(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function Vv(n){n._nesting--,Qf(n)}class SE{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new He,this.onMicrotaskEmpty=new He,this.onStable=new He,this.onError=new He}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 Jf=(()=>{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(),Kf(()=>{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())Kf(()=>{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 s=-1;r&&r>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),e(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:e,timeoutId:s,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(Yt))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})(),ME=(()=>{class n{constructor(){this._applications=new Map,Xf.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 Xf.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 TE{addToWindow(t){}findTestabilityInTree(t,e,r){return null}}let Xf=new TE,os=null;const Bv=new ue("AllowMultipleToken"),jv=new ue("PlatformOnDestroy");function Hv(n,t,e=[]){const r=`Platform: ${t}`,i=new ue(r);return(s=[])=>{let o=ep();if(!o||o.injector.get(Bv,!1)){const a=[...e,...s,{provide:i,useValue:!0}];n?n(a):function PE(n){if(os&&!os.get(Bv,!1))throw new ee(400,"");os=n;const t=n.get(Uv),e=n.get(Rv,null);e&&e.forEach(r=>r())}(function NE(n=[],t){return xt.create({name:t,providers:[{provide:af,useValue:"platform"},{provide:jv,useValue:()=>os=null},...n]})}(a,r))}return function kE(n){const t=ep();if(!t)throw new ee(401,"");return t}()}}function ep(){var n;return null!==(n=null==os?void 0:os.get(Uv))&&void 0!==n?n:null}let Uv=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,r){const a=function OE(n,t){let e;return e="noop"===n?new SE:("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=xt.create({providers:l,parent:this.injector,name:e.moduleType.name}),u=e.create(c),d=u.injector.get(_a,null);if(!d)throw new ee(402,"");return a.runOutsideAngular(()=>{const f=a.onError.subscribe({next:p=>{d.handleError(p)}});u.onDestroy(()=>{tp(this._modules,u),f.unsubscribe()})}),function FE(n,t,e){try{const r=e();return mc(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(Wf);return f.runInitializers(),f.donePromise.then(()=>(function fD(n){Rn(n,"Expected localeId to be defined"),"string"==typeof n&&(A_=n.toLowerCase().replace(/_/g,"-"))}(u.injector.get(Fi,_c)||_c),this._moduleDoBootstrap(u),u))})})}bootstrapModule(e,r=[]){const i=zv({},r);return function xE(n,t,e){const r=new Pf(e);return Promise.resolve(r)}(0,0,e).then(s=>this.bootstrapModuleFactory(s,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 ee(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 ee(404,"");this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const e=this._injector.get(jv,null);null==e||e(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(U(xt))},n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function zv(n,t){return Array.isArray(t)?t.reduce(zv,n):Object.assign(Object.assign({},n),t)}let La=(()=>{class n{constructor(e,r,i,s){this._zone=e,this._injector=r,this._exceptionHandler=i,this._initStatus=s,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 o=new $t(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new $t(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{Yt.assertNotInAngularZone(),Kf(()=>{!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=Mg(o,a.pipe(function R4(n={}){const{connector:t=(()=>new Vt),resetOnError:e=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=n;return s=>{let o,a,l,c=0,u=!1,d=!1;const f=()=>{null==a||a.unsubscribe(),a=void 0},p=()=>{f(),o=l=void 0,u=d=!1},m=()=>{const w=o;p(),null==w||w.unsubscribe()};return vn((w,E)=>{c++,!d&&!u&&f();const S=l=null!=l?l:t();E.add(()=>{c--,0===c&&!d&&!u&&(a=Md(m,i))}),S.subscribe(E),!o&&c>0&&(o=new qo({next:b=>S.next(b),error:b=>{d=!0,f(),a=Md(p,e,b),S.error(b)},complete:()=>{u=!0,f(),a=Md(p,r),S.complete()}}),er(w).subscribe(o))})(s)}}()))}bootstrap(e,r){if(!this._initStatus.done)throw new ee(405,"");let i;i=e instanceof X_?e:this._injector.get(is).resolveComponentFactory(e),this.componentTypes.push(i.componentType);const s=function IE(n){return n.isBoundToModule}(i)?void 0:this._injector.get(_o),a=i.create(xt.NULL,[],r||i.selector,s),l=a.location.nativeElement,c=a.injector.get(Jf,null),u=c&&a.injector.get(ME);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),tp(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new ee(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;tp(this._views,r),r.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(mE,[]).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(Yt),U(xt),U(_a),U(Wf))},n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function tp(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let Wv=!0,Ra=(()=>{class n{}return n.__NG_ELEMENT_ID__=$E,n})();function $E(n){return function VE(n,t,e){if(Pl(n)&&!e){const r=Bn(n.index,t);return new Pa(r,r)}return 47&n.type?new Pa(t[16],t):null}(Zt(),O(),16==(16&n))}class Yv{constructor(){}supports(t){return ba(t)}create(t){return new GE(t)}}const zE=(n,t)=>t;class GE{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,s=null;for(;e||r;){const o=!r||e&&e.currentIndex<Xv(r,i,s)?e:r,a=Xv(o,i,s),l=o.currentIndex;if(o===r)i--,r=r._nextRemoved;else if(e=e._next,null==o.previousIndex)i++;else{s||(s=[]);const c=a-i,u=l-i;if(c!=u){for(let f=0;f<c;f++){const p=f<s.length?s[f]:s[f]=0,m=p+f;u<=m&&m<c&&(s[f]=p+1)}s[o.previousIndex]=u-c}}a!==l&&t(o,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 ee(900,"");return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let i,s,o,e=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)s=t[a],o=this._trackByFn(a,s),null!==e&&Object.is(e.trackById,o)?(r&&(e=this._verifyReinsertion(e,s,o,a)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,o,a),r=!0),e=e._next}else i=0,function X6(n,t){if(Array.isArray(n))for(let e=0;e<n.length;e++)t(n[e]);else{const e=n[to()]();let r;for(;!(r=e.next()).done;)t(r.value)}}(t,a=>{o=this._trackByFn(i,a),null!==e&&Object.is(e.trackById,o)?(r&&(e=this._verifyReinsertion(e,a,o,i)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,o,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 s;return null===t?s=this._itTail:(s=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,s,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,i)):t=this._addAfter(new WE(e,r),s,i),t}_verifyReinsertion(t,e,r,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==s?t=this._reinsertAfter(s,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,s=t._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._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 Jv),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 Jv),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 WE{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 qE{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 Jv{constructor(){this.map=new Map}put(t){const e=t.trackById;let r=this.map.get(e);r||(r=new qE,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 Xv(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 t2(){return new Ic([new Yv])}let Ic=(()=>{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||t2()),deps:[[n,new Yl,new Ql]]}}find(e){const r=this.factories.find(i=>i.supports(e));if(null!=r)return r;throw new ee(901,"")}}return n.\u0275prov=se({token:n,providedIn:"root",factory:t2}),n})();const JE=Hv(null,"core",[]);let XE=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(U(La))},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({}),n})(),Pc=null;function ls(){return Pc}const jt=new ue("DocumentToken");function f2(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const r=e.indexOf("="),[i,s]=-1==r?[e,""]:[e.slice(0,r),e.slice(r+1)];if(i.trim()===t)return decodeURIComponent(s)}return null}class zS{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 jc=(()=>{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,s,o)=>{if(null==i.previousIndex)r.createEmbeddedView(this._template,new zS(i.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)r.remove(null===s?void 0:s);else if(null!==s){const a=r.get(s);r.move(a,o),p2(a,i)}});for(let i=0,s=r.length;i<s;i++){const a=r.get(i).context;a.index=i,a.count=s,a.ngForOf=this._ngForOf}e.forEachIdentityChange(i=>{p2(r.get(i.currentIndex),i)})}static ngTemplateContextGuard(e,r){return!0}}return n.\u0275fac=function(e){return new(e||n)(P(Tr),P(Qr),P(Ic))},n.\u0275dir=_e({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();function p2(n,t){n.context.$implicit=t.item}let dr=(()=>{class n{constructor(e,r){this._viewContainer=e,this._context=new GS,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){m2("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){m2("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)(P(Tr),P(Qr))},n.\u0275dir=_e({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class GS{constructor(){this.$implicit=null,this.ngIf=null}}function m2(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${Ke(t)}'.`)}let y2=(()=>{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)(P(Tr))},n.\u0275dir=_e({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[$r]}),n})();function xr(n,t){return new ee(2100,"")}class QS{createSubscription(t,e){return t.subscribe({next:e,error:r=>{throw r}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class YS{createSubscription(t,e){return t.then(e,r=>{throw r})}dispose(t){}onDestroy(t){}}const JS=new YS,XS=new QS;let yp=(()=>{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(mc(e))return JS;if(Oy(e))return XS;throw xr()}_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)(P(Ra,16))},n.\u0275pipe=gt({name:"async",type:n,pure:!1}),n})(),wp=(()=>{class n{transform(e,r,i){if(null==e)return null;if(!this.supports(e))throw xr();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=gt({name:"slice",type:n,pure:!1}),n})(),Hc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({}),n})();class C2{}class Cp extends class vM extends class nS{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function tS(n){Pc||(Pc=n)}(new Cp)}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 wM(){return ja=ja||document.querySelector("base"),ja?ja.getAttribute("href"):null}();return null==e?null:function CM(n){Uc=Uc||document.createElement("a"),Uc.setAttribute("href",n);const t=Uc.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){ja=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return f2(document.cookie,t)}}let Uc,ja=null;const b2=new ue("TRANSITION_ID"),DM=[{provide:Fv,useFactory:function bM(n,t,e){return()=>{e.get(Wf).donePromise.then(()=>{const r=ls(),i=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s<i.length;s++)r.remove(i[s])})}},deps:[b2,jt,xt],multi:!0}];class bp{static init(){!function AE(n){Xf=n}(new bp)}addToWindow(t){Je.getAngularTestability=(r,i=!0)=>{const s=t.findTestabilityInTree(r,i);if(null==s)throw new Error("Could not find testability for element.");return s},Je.getAllAngularTestabilities=()=>t.getAllTestabilities(),Je.getAllAngularRootElements=()=>t.getAllRootElements(),Je.frameworkStabilizers||(Je.frameworkStabilizers=[]),Je.frameworkStabilizers.push(r=>{const i=Je.getAllAngularTestabilities();let s=i.length,o=!1;const a=function(l){o=o||l,s--,0==s&&r(o)};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?ls().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let EM=(()=>{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 zc=new ue("EventManagerPlugins");let Gc=(()=>{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 s=0;s<i.length;s++){const o=i[s];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error(`No event manager plugin found for event ${e}`)}}return n.\u0275fac=function(e){return new(e||n)(U(zc),U(Yt))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();class D2{constructor(t){this._doc=t}addGlobalEventListener(t,e,r){const i=ls().getGlobalEventTarget(this._doc,t);if(!i)throw new Error(`Unsupported event target ${i} for event ${e}`);return this.addEventListener(i,e,r)}}let E2=(()=>{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 E2{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,r,i){e.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,i.push(r.appendChild(o))})}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(S2),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((r,i)=>{this._addStylesToHost(e,i,r)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(S2))}}return n.\u0275fac=function(e){return new(e||n)(U(jt))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();function S2(n){ls().remove(n)}const Dp={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/"},Ep=/%COMP%/g;function Wc(n,t,e){for(let r=0;r<t.length;r++){let i=t[r];Array.isArray(i)?Wc(n,i,e):(i=i.replace(Ep,n),e.push(i))}return e}function A2(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 _r.Emulated:{let i=this.rendererByCompId.get(r.id);return i||(i=new IM(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,i)),i.applyToHost(e),i}case 1:case _r.ShadowDom:return new PM(this.eventManager,this.sharedStylesHost,e,r);default:if(!this.rendererByCompId.has(r.id)){const i=Wc(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(Gc),U(Ha),U(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(Dp[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 s=Dp[i];s?t.setAttributeNS(s,e,r):t.setAttribute(e,r)}else t.setAttribute(e,r)}removeAttribute(t,e,r){if(r){const i=Dp[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&(Hn.DashCase|Hn.Important)?t.style.setProperty(e,r,i&Hn.Important?"important":""):t.style[e]=r}removeStyle(t,e,r){r&Hn.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,A2(r)):this.eventManager.addEventListener(t,e,A2(r))}}class IM extends Sp{constructor(t,e,r,i){super(t),this.component=r;const s=Wc(i+"-"+r.id,r.styles,[]);e.addStyles(s),this.contentAttr=function TM(n){return"_ngcontent-%COMP%".replace(Ep,n)}(i+"-"+r.id),this.hostAttr=function AM(n){return"_nghost-%COMP%".replace(Ep,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 PM 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 s=Wc(i.id,i.styles,[]);for(let o=0;o<s.length;o++){const a=document.createElement("style");a.textContent=s[o],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 kM=(()=>{class n extends D2{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(jt))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();const I2=["alt","control","meta","shift"],OM={"\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"},P2={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"},FM={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let LM=(()=>{class n extends D2{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,r,i){const s=n.parseEventName(r),o=n.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ls().onAndCancel(e,s.domEventName,o))}static parseEventName(e){const r=e.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const s=n._normalizeKey(r.pop());let o="";if(I2.forEach(l=>{const c=r.indexOf(l);c>-1&&(r.splice(c,1),o+=l+".")}),o+=s,0!=r.length||0===s.length)return null;const a={};return a.domEventName=i,a.fullKey=o,a}static getEventFullKey(e){let r="",i=function RM(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&&P2.hasOwnProperty(t)&&(t=P2[t]))}return OM[t]||t}(e);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),I2.forEach(s=>{s!=i&&FM[s](e)&&(r+=s+".")}),r+=i,r}static eventCallback(e,r,i){return s=>{n.getEventFullKey(s)===e&&i.runGuarded(()=>r(s))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(U(jt))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();const jM=Hv(JE,"browser",[{provide:Zf,useValue:"browser"},{provide:Rv,useValue:function $M(){Cp.makeCurrent(),bp.init()},multi:!0},{provide:jt,useFactory:function BM(){return function h3(n){Hd=n}(document),document},deps:[]}]),HM=[{provide:af,useValue:"root"},{provide:_a,useFactory:function VM(){return new _a},deps:[]},{provide:zc,useClass:kM,multi:!0,deps:[jt,Yt,Zf]},{provide:zc,useClass:LM,multi:!0,deps:[jt]},{provide:qc,useClass:qc,deps:[Gc,Ha,Fa]},{provide:xa,useExisting:qc},{provide:E2,useExisting:Ha},{provide:Ha,useClass:Ha,deps:[jt]},{provide:Jf,useClass:Jf,deps:[Yt]},{provide:Gc,useClass:Gc,deps:[zc,Yt]},{provide:C2,useClass:EM,deps:[]}];let k2=(()=>{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:b2,useExisting:Fa},DM]}}}return n.\u0275fac=function(e){return new(e||n)(U(n,12))},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({providers:HM,imports:[Hc,XE]}),n})();"undefined"!=typeof window&&window;let F2=(()=>{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):U(L2),r},providedIn:"root"}),n})(),L2=(()=>{class n extends F2{constructor(e){super(),this._doc=e}sanitize(e,r){if(null==r)return null;switch(e){case nt.NONE:return r;case nt.HTML:return jr(r,"HTML")?Un(r):c0(this._doc,String(r)).toString();case nt.STYLE:return jr(r,"Style")?Un(r):r;case nt.SCRIPT:if(jr(r,"Script"))return Un(r);throw new Error("unsafe value used in a script context");case nt.URL:return e0(r),jr(r,"URL")?Un(r):pa(String(r));case nt.RESOURCE_URL:if(jr(r,"ResourceURL"))return Un(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 Yb(n){return new Wb(n)}(e)}bypassSecurityTrustStyle(e){return function Jb(n){return new qb(n)}(e)}bypassSecurityTrustScript(e){return function Xb(n){return new Zb(n)}(e)}bypassSecurityTrustUrl(e){return function e5(n){return new Kb(n)}(e)}bypassSecurityTrustResourceUrl(e){return function t5(n){return new Qb(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(U(jt))},n.\u0275prov=se({token:n,factory:function(e){let r=null;return r=e?new e:function JM(n){return new L2(n.get(jt))}(U(xt)),r},providedIn:"root"}),n})();const Tp={now:()=>(Tp.delegate||Date).now(),delegate:void 0};class XM extends Vt{constructor(t=1/0,e=1/0,r=Tp){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:s,_windowTime:o}=this;e||(r.push(t),!i&&r.push(s.now()+o)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:i}=this,s=i.slice();for(let o=0;o<s.length&&!t.closed;o+=r?1:2)t.next(s[o]);return this._checkFinalizedStatuses(t),e}_trimBuffer(){const{_bufferSize:t,_timestampProvider:e,_buffer:r,_infiniteTimeWindow:i}=this,s=(i?1:2)*t;if(t<1/0&&s<r.length&&r.splice(0,r.length-s),!i){const o=e.now();let a=0;for(let l=1;l<r.length&&r[l]<=o;l+=2)a=l;a&&r.splice(0,a+1)}}}function Ua(n,t){return vn((e,r)=>{let i=null,s=0,o=!1;const a=()=>o&&!i&&r.complete();e.subscribe(rn(r,l=>{null==i||i.unsubscribe();let c=0;const u=s++;er(n(l,u)).subscribe(i=rn(r,d=>r.next(t?t(l,d,u,c++):d),()=>{i=null,a()}))},()=>{o=!0,a()}))})}const Zc={schedule(n,t){const e=setTimeout(n,t);return()=>clearTimeout(e)},scheduleBeforeRender(n){if("undefined"==typeof window)return Zc.schedule(n,0);if(void 0===window.requestAnimationFrame)return Zc.schedule(n,16);const t=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(t)}};let Ap;function lT(n,t,e){let r=e;return function tT(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&t.some((i,s)=>!("*"===i||!function rT(n,t){if(!Ap){const e=Element.prototype;Ap=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&Ap.call(n,t)}(n,i)||(r=s,0))),r}class uT{constructor(t,e){this.componentFactory=e.get(is).resolveComponentFactory(t)}create(t){return new dT(this.componentFactory,t)}}class dT{constructor(t,e){this.componentFactory=t,this.injector=e,this.eventEmitters=new XM(1),this.events=this.eventEmitters.pipe(Ua(r=>Mg(...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=Zc.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 iT(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=xt.create({providers:[],parent:this.injector}),r=function aT(n,t){const e=n.childNodes,r=t.map(()=>[]);let i=-1;t.some((s,o)=>"*"===s&&(i=o,!0));for(let s=0,o=e.length;s<o;++s){const a=e[s],l=lT(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 nT(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(Xt(o=>({name:i,value:o}))));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=Zc.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),s=i?void 0:this.getInputValue(t);this.inputChanges[t]=new $g(s,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 hT extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function Ir(...n){return Ps(n,Zo(n))}function Kc(n,t){return vn((e,r)=>{let i=0;e.subscribe(rn(r,s=>n.call(t,s,i++)&&r.next(s)))})}class R2{}class $2{}class Yr{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),s=i.toLowerCase(),o=e.slice(r+1).trim();this.maybeSetNormalizedName(i,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:()=>{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 Yr?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 Yr;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Yr?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 s=t.value;if(s){let o=this.headers.get(e);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}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 mT{encodeKey(t){return V2(t)}encodeValue(t){return V2(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const yT=/%(\d[a-f0-9])/gi,_T={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function V2(n){return encodeURIComponent(n).replace(yT,(t,e)=>{var r;return null!==(r=_T[e])&&void 0!==r?r:t})}function B2(n){return`${n}`}class pi{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new mT,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function gT(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(i=>{const s=i.indexOf("="),[o,a]=-1==s?[t.decodeKey(i),""]:[t.decodeKey(i.slice(0,s)),t.decodeValue(i.slice(s+1))],l=e.get(o)||[];l.push(a),e.set(o,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(s=>{e.push({param:r,value:s,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 pi({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(B2(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(B2(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 j2{constructor(t){this.defaultValue=t}}class vT{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 H2(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function U2(n){return"undefined"!=typeof Blob&&n instanceof Blob}function z2(n){return"undefined"!=typeof FormData&&n instanceof FormData}class za{constructor(t,e,r,i){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function wT(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,s=i):s=r,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new Yr),this.context||(this.context=new vT),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a<e.length-1?"&":"")+o}}else this.params=new pi,this.urlWithParams=e}serializeBody(){return null===this.body?null:H2(this.body)||U2(this.body)||z2(this.body)||function CT(n){return"undefined"!=typeof URLSearchParams&&n instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof pi?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||z2(this.body)?null:U2(this.body)?this.body.type||null:H2(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof pi?"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,s=t.responseType||this.responseType,o=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,o,{params:u,headers:c,context:d,reportProgress:l,responseType:s,withCredentials:a})}}var zt=(()=>((zt=zt||{})[zt.Sent=0]="Sent",zt[zt.UploadProgress=1]="UploadProgress",zt[zt.ResponseHeader=2]="ResponseHeader",zt[zt.DownloadProgress=3]="DownloadProgress",zt[zt.Response=4]="Response",zt[zt.User=5]="User",zt))();class xp{constructor(t,e=200,r="OK"){this.headers=t.headers||new Yr,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 Ip extends xp{constructor(t={}){super(t),this.type=zt.ResponseHeader}clone(t={}){return new Ip({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 Qc extends xp{constructor(t={}){super(t),this.type=zt.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Qc({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 G2 extends xp{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 Pp(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 kp=(()=>{class n{constructor(e){this.handler=e}request(e,r,i={}){let s;if(e instanceof za)s=e;else{let l,c;l=i.headers instanceof Yr?i.headers:new Yr(i.headers),i.params&&(c=i.params instanceof pi?i.params:new pi({fromObject:i.params})),s=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 o=Ir(s).pipe(function pT(n,t){return Me(t)?El(n,t,1):El(n,1)}(l=>this.handler.handle(l)));if(e instanceof za||"events"===i.observe)return o;const a=o.pipe(Kc(l=>l instanceof Qc));switch(i.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(Xt(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(Xt(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(Xt(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(Xt(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 pi).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,Pp(i,r))}post(e,r,i={}){return this.request("POST",e,Pp(i,r))}put(e,r,i={}){return this.request("PUT",e,Pp(i,r))}}return n.\u0275fac=function(e){return new(e||n)(U(R2))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();class W2{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Yc=new ue("HTTP_INTERCEPTORS");let bT=(()=>{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 DT=/^\)\]\}',?\n/;let q2=(()=>{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 $t(r=>{const i=this.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach((p,m)=>i.setRequestHeader(p,m.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 s=e.serializeBody();let o=null;const a=()=>{if(null!==o)return o;const p=i.statusText||"OK",m=new Yr(i.getAllResponseHeaders()),w=function ET(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 o=new Ip({headers:m,status:i.status,statusText:p,url:w}),o},l=()=>{let{headers:p,status:m,statusText:w,url:E}=a(),S=null;204!==m&&(S=void 0===i.response?i.responseText:i.response),0===m&&(m=S?200:0);let b=m>=200&&m<300;if("json"===e.responseType&&"string"==typeof S){const F=S;S=S.replace(DT,"");try{S=""!==S?JSON.parse(S):null}catch(j){S=F,b&&(b=!1,S={error:j,text:S})}}b?(r.next(new Qc({body:S,headers:p,status:m,statusText:w,url:E||void 0})),r.complete()):r.error(new G2({error:S,headers:p,status:m,statusText:w,url:E||void 0}))},c=p=>{const{url:m}=a(),w=new G2({error:p,status:i.status||0,statusText:i.statusText||"Unknown Error",url:m||void 0});r.error(w)};let u=!1;const d=p=>{u||(r.next(a()),u=!0);let m={type:zt.DownloadProgress,loaded:p.loaded};p.lengthComputable&&(m.total=p.total),"text"===e.responseType&&!!i.responseText&&(m.partialText=i.responseText),r.next(m)},f=p=>{let m={type:zt.UploadProgress,loaded:p.loaded};p.lengthComputable&&(m.total=p.total),r.next(m)};return i.addEventListener("load",l),i.addEventListener("error",c),i.addEventListener("timeout",c),i.addEventListener("abort",c),e.reportProgress&&(i.addEventListener("progress",d),null!==s&&i.upload&&i.upload.addEventListener("progress",f)),i.send(s),r.next({type:zt.Sent}),()=>{i.removeEventListener("error",c),i.removeEventListener("abort",c),i.removeEventListener("load",l),i.removeEventListener("timeout",c),e.reportProgress&&(i.removeEventListener("progress",d),null!==s&&i.upload&&i.upload.removeEventListener("progress",f)),i.readyState!==i.DONE&&i.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(U(C2))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();const Np=new ue("XSRF_COOKIE_NAME"),Op=new ue("XSRF_HEADER_NAME");class Z2{}let ST=(()=>{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=f2(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(U(jt),U(Zf),U(Np))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})(),Fp=(()=>{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 s=this.tokenService.getToken();return null!==s&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,s)})),r.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(U(Z2),U(Op))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})(),MT=(()=>{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(Yc,[]);this.chain=r.reduceRight((i,s)=>new W2(i,s),this.backend)}return this.chain.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(U($2),U(xt))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})(),TT=(()=>{class n{static disable(){return{ngModule:n,providers:[{provide:Fp,useClass:bT}]}}static withOptions(e={}){return{ngModule:n,providers:[e.cookieName?{provide:Np,useValue:e.cookieName}:[],e.headerName?{provide:Op,useValue:e.headerName}:[]]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({providers:[Fp,{provide:Yc,useExisting:Fp,multi:!0},{provide:Z2,useClass:ST},{provide:Np,useValue:"XSRF-TOKEN"},{provide:Op,useValue:"X-XSRF-TOKEN"}]}),n})(),K2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({providers:[kp,{provide:R2,useClass:MT},q2,{provide:$2,useExisting:q2}],imports:[[TT.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),n})();class AT extends Nt{constructor(t,e){super()}schedule(t,e=0){return this}}const Jc={setInterval(n,t,...e){const{delegate:r}=Jc;return(null==r?void 0:r.setInterval)?r.setInterval(n,t,...e):setInterval(n,t,...e)},clearInterval(n){const{delegate:t}=Jc;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=Tp.now;const Q2=new class IT 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 xT extends AT{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,s=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(s,i,e)),this.pending=!0,this.delay=e,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(s,this.id,e),this}requestAsyncId(t,e,r=0){return Jc.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&&Jc.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(s){r=!0,i=s||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,qe(r,this),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null,super.unsubscribe()}}}),PT=Q2;function Wa(n,t=Q2){return vn((e,r)=>{let i=null,s=null,o=null;const a=()=>{if(i){i.unsubscribe(),i=null;const c=s;s=null,r.next(c)}};function l(){const c=o+n,u=t.now();if(u<c)return i=this.schedule(void 0,c-u),void r.add(i);a()}e.subscribe(rn(r,c=>{s=c,o=t.now(),i||(i=t.schedule(l,n),r.add(i))},()=>{a(),r.complete()},void 0,()=>{s=i=null}))})}function Y2(n){return vn((t,e)=>{er(n).subscribe(rn(e,()=>e.complete(),Go)),!e.closed&&t.subscribe(e)})}class Jr extends Vt{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 J2(n=0,t,e=PT){let r=-1;return null!=t&&(Cg(t)?e=t:r=t),new $t(i=>{let s=function kT(n){return n instanceof Date&&!isNaN(n)}(n)?+n-e.now():n;s<0&&(s=0);let o=0;return e.schedule(function(){i.closed||(i.next(o++),0<=r?this.schedule(void 0,r):i.complete())},s)})}function Eo(n){return vn((t,e)=>{let s,r=null,i=!1;r=t.subscribe(rn(e,void 0,void 0,o=>{s=er(n(o,Eo(n)(t))),r?(r.unsubscribe(),r=null,s.subscribe(e)):i=!0})),i&&(r.unsubscribe(),r=null,s.subscribe(e))})}function X2(...n){return function OT(){return vg(1)}()(Ps(n,Zo(n)))}function Lp(...n){const t=Zo(n);return vn((e,r)=>{(t?X2(n,e,t):X2(n,e)).subscribe(r)})}function e8(n,t,e){const r=Me(n)||t||e?{next:n,error:t,complete:e}:n;return r?vn((i,s)=>{var o;null===(o=r.subscribe)||void 0===o||o.call(r);let a=!0;i.subscribe(rn(s,l=>{var c;null===(c=r.next)||void 0===c||c.call(r,l),s.next(l)},()=>{var l;a=!1,null===(l=r.complete)||void 0===l||l.call(r),s.complete()},l=>{var c;a=!1,null===(c=r.error)||void 0===c||c.call(r,l),s.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)}))}):Is}const{isArray:FT}=Array,{getPrototypeOf:LT,prototype:RT,keys:$T}=Object;function t8(n){if(1===n.length){const t=n[0];if(FT(t))return{args:t,keys:null};if(function VT(n){return n&&"object"==typeof n&&LT(n)===RT}(t)){const e=$T(t);return{args:e.map(r=>t[r]),keys:e}}}return{args:n,keys:null}}const{isArray:BT}=Array;function n8(n){return Xt(t=>function jT(n,t){return BT(t)?n(...t):n(t)}(n,t))}function r8(n,t){return n.reduce((e,r,i)=>(e[r]=t[i],e),{})}function i8(...n){const t=Zo(n),e=bg(n),{args:r,keys:i}=t8(n);if(0===r.length)return Ps([],t);const s=new $t(function HT(n,t,e=Is){return r=>{s8(t,()=>{const{length:i}=n,s=new Array(i);let o=i,a=i;for(let l=0;l<i;l++)s8(t,()=>{const c=Ps(n[l],t);let u=!1;c.subscribe(rn(r,d=>{s[l]=d,u||(u=!0,a--),a||r.next(e(s.slice()))},()=>{--o||r.complete()}))},r)},r)}}(r,t,i?o=>r8(i,o):Is));return e?s.pipe(n8(e)):s}function s8(n,t,e){n?ii(e,n,t):t()}function o8(){return vn((n,t)=>{let e,r=!1;n.subscribe(rn(t,i=>{const s=e;e=i,r&&t.next([s,i]),r=!0}))})}const a8={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let Xc;const GT=new Uint8Array(16);function WT(){if(!Xc&&(Xc="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Xc))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Xc(GT)}const cn=[];for(let n=0;n<256;++n)cn.push((n+256).toString(16).slice(1));const c8=function qT(n,t,e){if(a8.randomUUID&&!t&&!n)return a8.randomUUID();const r=(n=n||{}).random||(n.rng||WT)();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 l8(n,t=0){return cn[n[t+0]]+cn[n[t+1]]+cn[n[t+2]]+cn[n[t+3]]+"-"+cn[n[t+4]]+cn[n[t+5]]+"-"+cn[n[t+6]]+cn[n[t+7]]+"-"+cn[n[t+8]]+cn[n[t+9]]+"-"+cn[n[t+10]]+cn[n[t+11]]+cn[n[t+12]]+cn[n[t+13]]+cn[n[t+14]]+cn[n[t+15]]}(r)};class u8{}const mi="*";function So(n,t){return{type:7,name:n,definitions:t,options:{}}}function Pr(n,t=null){return{type:4,styles:t,timings:n}}function d8(n,t=null){return{type:2,steps:n,options:t}}function Pt(n){return{type:6,styles:n,offset:null}}function qa(n,t,e){return{type:0,name:n,styles:t,options:e}}function kr(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function h8(n){Promise.resolve(null).then(n)}class Za{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(){h8(()=>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 f8{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 s=this.players.length;0==s?h8(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==s&&this._onFinish()}),o.onDestroy(()=>{++r==s&&this._onDestroy()}),o.onStart(()=>{++i==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(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 eu=qt(791);let p8=(()=>{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)(P(Kr),P(In))},n.\u0275dir=_e({type:n}),n})(),cs=(()=>{class n extends p8{}return n.\u0275fac=function(){let t;return function(r){return(t||(t=ln(n)))(r||n)}}(),n.\u0275dir=_e({type:n,features:[Be]}),n})();const Gn=new ue("NgValueAccessor"),YT={provide:Gn,useExisting:Ze(()=>tu),multi:!0},XT=new ue("CompositionEventMode");let tu=(()=>{class n extends p8{constructor(e,r,i){super(e,r),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function JT(){const n=ls()?ls().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)(P(Kr),P(In),P(XT,8))},n.\u0275dir=_e({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&&Re("input",function(s){return r._handleInput(s.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(s){return r._compositionEnd(s.target.value)})},features:[rt([YT]),Be]}),n})();function Ri(n){return null==n||0===n.length}function g8(n){return null!=n&&"number"==typeof n.length}const un=new ue("NgValidators"),$i=new ue("NgAsyncValidators"),eA=/^(?=.{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 gi{static min(t){return function y8(n){return t=>{if(Ri(t.value)||Ri(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(Ri(t.value)||Ri(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 Ri(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 Ri(n.value)||eA.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 nu;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(Ri(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=>Ri(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 nu(n){return null}function S8(n){return null!=n}function M8(n){const t=mc(n)?Ps(n):n;return Fy(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 tA(n){return!n.validate}(t)?t:e=>t.validate(e))}function I8(n){if(!n)return null;const t=n.filter(S8);return 0==t.length?null:function(e){return T8(A8(e,t))}}function $p(n){return null!=n?I8(x8(n)):null}function P8(n){if(!n)return null;const t=n.filter(S8);return 0==t.length?null:function(e){return function KT(...n){const t=bg(n),{args:e,keys:r}=t8(n),i=new $t(s=>{const{length:o}=e;if(!o)return void s.complete();const a=new Array(o);let l=o,c=o;for(let u=0;u<o;u++){let d=!1;er(e[u]).subscribe(rn(s,f=>{d||(d=!0,c--),a[u]=f},()=>l--,void 0,()=>{(!l||!d)&&(c||s.next(r?r8(r,a):a),s.complete())}))}});return t?i.pipe(n8(t)):i}(A8(e,t).map(M8)).pipe(Xt(T8))}}function Vp(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 Bp(n){return n?Array.isArray(n)?n:[n]:[]}function ru(n,t){return Array.isArray(n)?n.includes(t):n===t}function F8(n,t){const e=Bp(t);return Bp(n).forEach(i=>{ru(e,i)||e.push(i)}),e}function L8(n,t){return Bp(t).filter(e=>!ru(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=$p(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Vp(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 yi extends R8{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Mn 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 iu=(()=>{class n extends $8{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(P(yi,2))},n.\u0275dir=_e({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,r){2&e&&Wr("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:[Be]}),n})(),jp=(()=>{class n extends $8{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(P(Mn,10))},n.\u0275dir=_e({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,r){2&e&&Wr("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:[Be]}),n})();function ou(n,t){return[...t.path,n]}function Ka(n,t){zp(n,t),t.valueAccessor.writeValue(n.value),function cA(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&B8(n,t)})}(n,t),function dA(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 uA(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&B8(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function lA(n,t){if(t.valueAccessor.setDisabledState){const e=r=>{t.valueAccessor.setDisabledState(r)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function au(n,t,e=!0){const r=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(r),t.valueAccessor.registerOnTouched(r)),cu(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function lu(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function zp(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();lu(t._rawValidators,i),lu(t._rawAsyncValidators,i)}function cu(n,t){let e=!1;if(null!==n){if(null!==t.validator){const i=N8(n);if(Array.isArray(i)&&i.length>0){const s=i.filter(o=>o!==t.validator);s.length!==i.length&&(e=!0,n.setValidators(s))}}if(null!==t.asyncValidator){const i=O8(n);if(Array.isArray(i)&&i.length>0){const s=i.filter(o=>o!==t.asyncValidator);s.length!==i.length&&(e=!0,n.setAsyncValidators(s))}}}const r=()=>{};return lu(t._rawValidators,r),lu(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 Gp(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}function Wp(n,t){if(!t)return null;let e,r,i;return Array.isArray(t),t.forEach(s=>{s.constructor===tu?e=s:function pA(n){return Object.getPrototypeOf(n.constructor)===cs}(s)?r=s:i=s}),i||r||e||null}function qp(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}const Qa="VALID",uu="INVALID",Mo="PENDING",Ya="DISABLED";function Kp(n){return(du(n)?n.validators:n)||null}function z8(n){return Array.isArray(n)?$p(n):n||null}function Qp(n,t){return(du(t)?t.asyncValidators:n)||null}function G8(n){return Array.isArray(n)?Vp(n):n||null}function du(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}const Yp=n=>n instanceof Xp,hu=n=>n instanceof fu,W8=n=>n instanceof Q8;function q8(n){return Yp(n)?n.value:n.getRawValue()}function Z8(n,t){const e=hu(n),r=n.controls;if(!(e?Object.keys(r):r).length)throw new ee(1e3,"");if(!r[t])throw new ee(1001,"")}function K8(n,t){hu(n),n._forEachChild((r,i)=>{if(void 0===t[i])throw new ee(1002,"")})}class Jp{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===Qa}get invalid(){return this.status===uu}get pending(){return this.status==Mo}get disabled(){return this.status===Ya}get enabled(){return this.status!==Ya}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 ru(this._rawValidators,t)}hasAsyncValidator(t){return ru(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=Mo,!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=Ya,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=Qa,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===Qa||this.status===Mo)&&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()?Ya:Qa}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Mo,this._hasOwnPendingAsyncValidator=!0;const e=M8(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 mA(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=hu(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 He,this.statusChanges=new He}_calculateStatus(){return this._allControlsDisabled()?Ya:this.errors?uu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Mo)?Mo:this._anyControlsHaveStatus(uu)?uu:Qa}_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){du(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Xp extends Jp{constructor(t=null,e,r){super(Kp(e),Qp(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}),du(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 fu extends Jp{constructor(t,e,r){super(Kp(e),Qp(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={}){K8(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]=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,s)=>{r=e(r,i,s)}),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 Jp{constructor(t,e,r){super(Kp(e),Qp(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={}){K8(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=>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 Mn{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return ou(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=ln(n)))(r||n)}}(),n.\u0275dir=_e({type:n,features:[Be]}),n})();const _A={provide:yi,useExisting:Ze(()=>tm)},X8=(()=>Promise.resolve(null))();let tm=(()=>{class n extends yi{constructor(e,r,i,s,o){super(),this._changeDetectorRef=o,this.control=new Xp,this._registered=!1,this.update=new He,this._parent=e,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=Wp(0,s)}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),Gp(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(){Ka(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 s;i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),null===(s=this._changeDetectorRef)||void 0===s||s.markForCheck()})}_getPath(e){return this._parent?ou(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(P(Mn,9),P(un,10),P($i,10),P(Gn,10),P(Ra,8))},n.\u0275dir=_e({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:[rt([_A]),Be,$r]}),n})(),nm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=_e({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=mt({type:n}),n.\u0275inj=dt({}),n})();const rm=new ue("NgModelWithFormControlWarning"),EA={provide:Mn,useExisting:Ze(()=>Xa)};let Xa=(()=>{class n extends Mn{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 He,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&&(cu(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 Ka(r,e),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),r}getControl(e){return this.form.get(e.path)}removeControl(e){au(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 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&&(au(r||null,e),Yp(i)&&(Ka(i,e),e.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const r=this.form.get(e.path);(function j8(n,t){zp(n,t)})(r,e),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const r=this.form.get(e.path);r&&function hA(n,t){return cu(n,t)}(r,e)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){zp(this.form,this),this._oldForm&&cu(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(P(un,10),P($i,10))},n.\u0275dir=_e({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,r){1&e&&Re("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[rt([EA]),Be,$r]}),n})();const SA={provide:Mn,useExisting:Ze(()=>pu)};let pu=(()=>{class n extends Y8{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)(P(Mn,13),P(un,10),P($i,10))},n.\u0275dir=_e({type:n,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[rt([SA]),Be]}),n})();const MA={provide:Mn,useExisting:Ze(()=>im)};let im=(()=>{class n extends Mn{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 ou(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){sw(this._parent)}}return n.\u0275fac=function(e){return new(e||n)(P(Mn,13),P(un,10),P($i,10))},n.\u0275dir=_e({type:n,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[rt([MA]),Be]}),n})();function sw(n){return!(n instanceof pu||n instanceof Xa||n instanceof im)}const TA={provide:yi,useExisting:Ze(()=>mu)};let mu=(()=>{class n extends yi{constructor(e,r,i,s,o){super(),this._ngModelWarningConfig=o,this._added=!1,this.update=new He,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=Wp(0,s)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),Gp(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 ou(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)(P(Mn,13),P(un,10),P($i,10),P(Gn,10),P(rm,8))},n.\u0275dir=_e({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[rt([TA]),Be,$r]}),n})();function lw(n){return"number"==typeof n?n:parseInt(n,10)}let us=(()=>{class n{constructor(){this._validator=nu}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):nu,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=_e({type:n,features:[$r]}),n})();const BA={provide:un,useExisting:Ze(()=>gu),multi:!0};let gu=(()=>{class n extends us{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=ln(n)))(r||n)}}(),n.\u0275dir=_e({type:n,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(e,r){2&e&&gn("minlength",r._enabled?r.minlength:null)},inputs:{minlength:"minlength"},features:[rt([BA]),Be]}),n})();const jA={provide:un,useExisting:Ze(()=>el),multi:!0};let el=(()=>{class n extends us{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=ln(n)))(r||n)}}(),n.\u0275dir=_e({type:n,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,r){2&e&&gn("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},features:[rt([jA]),Be]}),n})(),mw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[tw]]}),n})(),gw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[mw]}),n})(),lm=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:rm,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[mw]}),n})(),yw=(()=>{class n{group(e,r=null){const i=this._reduceControls(e);let a,s=null,o=null;return null!=r&&(function UA(n){return void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn}(r)?(s=null!=r.validators?r.validators:null,o=null!=r.asyncValidators?r.asyncValidators:null,a=null!=r.updateOn?r.updateOn:void 0):(s=null!=r.validator?r.validator:null,o=null!=r.asyncValidator?r.asyncValidator:null)),new fu(i,{asyncValidators:o,updateOn:a,validators:s})}control(e,r,i){return new Xp(e,r,i)}array(e,r,i){const s=e.map(o=>this._createControl(o));return new Q8(s,r,i)}_reduceControls(e){const r={};return Object.keys(e).forEach(i=>{r[i]=this._createControl(e[i])}),r}_createControl(e){return Yp(e)||hu(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:lm}),n})();const yu=new ue("ngx-mask config"),_w=new ue("new ngx-mask config"),vw=new ue("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,apm:!1,leadZero:!1,keepCharacterPositions:!1,triggerOnMaskChange:!1,inputTransformFn:n=>n,outputTransformFn:n=>n,maskFilled:new He,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")}}},GA=["Hh:m0:s0","Hh:m0","m0:s0"],WA=["percent","Hh","s0","m0","separator","d0/M0/0000","d0/M0","d0","M0"];let qA=(()=>{class n{constructor(e){this._config=e,this._shift=new Set,this.maskExpression="",this.actualValue="",this.showKeepCharacterExp="",this.shownMaskExpression="",this.deletedSpecialCharacter=!1,this._formatWithSeparators=(r,i,s,o)=>{var a,l,c;let u=[],d="";if(Array.isArray(s)){const E=new RegExp(s.map(S=>"[\\^$.|?*+()".indexOf(S)>=0?`\\${S}`:S).join("|"));u=r.split(E),d=null!==(l=null===(a=r.match(E))||void 0===a?void 0:a[0])&&void 0!==l?l:""}else u=r.split(s),d=s;const f=u.length>1?`${d}${u[1]}`:"";let p=null!==(c=u[0])&&void 0!==c?c:"";const m=this.separatorLimit.replace(/\s/g,"");m&&+m&&(p="-"===p[0]?`-${p.slice(1,p.length).slice(0,m.length)}`:p.slice(0,m.length));const w=/(\d+)(\d{3})/;for(;i&&w.test(p);)p=p.replace(w,"$1"+i+"$2");return void 0===o?p+f:0===o?p:p+f.substring(0,o+1)},this.percentage=r=>{const i=r.replace(",","."),s=Number(i);return!isNaN(s)&&s>=0&&s<=100},this.getPrecision=r=>{const i=r.split(".");return i.length>1?Number(i[i.length-1]):1/0},this.checkAndRemoveSuffix=r=>{var i,s,o,a;for(let l=(null===(i=this.suffix)||void 0===i?void 0:i.length)-1;l>=0;l--){const c=this.suffix.substring(l,null===(s=this.suffix)||void 0===s?void 0:s.length);if(r.includes(c)&&l!==(null===(o=this.suffix)||void 0===o?void 0:o.length)-1&&(l-1<0||!r.includes(this.suffix.substring(l-1,null===(a=this.suffix)||void 0===a?void 0:a.length))))return r.replace(c,"")}return r},this.checkInputPrecision=(r,i,s)=>{var o,a;if(i<1/0){if(Array.isArray(s)){const d=s.find(f=>f!==this.thousandSeparator);s=d||s[0]}const l=new RegExp(this._charToRegExpExpression(s)+`\\d{${i}}.*$`),c=r.match(l),u=null!==(a=c&&(null===(o=c[0])||void 0===o?void 0:o.length))&&void 0!==a?a:0;u-1>i&&(r=r.substring(0,r.length-(u-1-i))),0===i&&this._compareOrIncludes(r[r.length-1],s,this.thousandSeparator)&&(r=r.substring(0,r.length-1))}return r},this.dropSpecialCharacters=this._config.dropSpecialCharacters,this.hiddenInput=this._config.hiddenInput,this.clearIfNotMatch=this._config.clearIfNotMatch,this.specialCharacters=this._config.specialCharacters,this.patterns=this._config.patterns,this.prefix=this._config.prefix,this.suffix=this._config.suffix,this.thousandSeparator=this._config.thousandSeparator,this.decimalMarker=this._config.decimalMarker,this.showMaskTyped=this._config.showMaskTyped,this.placeHolderCharacter=this._config.placeHolderCharacter,this.validation=this._config.validation,this.separatorLimit=this._config.separatorLimit,this.allowNegativeNumbers=this._config.allowNegativeNumbers,this.leadZeroDateTime=this._config.leadZeroDateTime,this.leadZero=this._config.leadZero,this.apm=this._config.apm,this.inputTransformFn=this._config.inputTransformFn,this.outputTransformFn=this._config.outputTransformFn,this.keepCharacterPositions=this._config.keepCharacterPositions}applyMaskWithPattern(e,r){const[i,s]=r;return this.customPattern=s,this.applyMask(e,i)}applyMask(e,r,i=0,s=!1,o=!1,a=(()=>{})){var l,c,u,d,f,p,m,w,E,S,b,F,j,re,ve,Pe,Ve;if(!r||"string"!=typeof e)return"";let x=0,Y="",X=!1,ae=!1,ie=1,Se=!1;e.slice(0,this.prefix.length)===this.prefix&&!this.showMaskTyped&&(e=e.slice(this.prefix.length,e.length)),!!this.suffix&&(null==e?void 0:e.length)>0&&(e=this.checkAndRemoveSuffix(e)),"("===e&&this.prefix&&(e="");const oe=e.toString().split("");if(this.allowNegativeNumbers&&"-"===e.slice(x,x+1)&&(Y+=e.slice(x,x+1)),"IP"===r){const Z=e.split(".");this.ipError=this._validIP(Z),r="099.099.099.099"}const N=[];for(let Z=0;Z<e.length;Z++)(null===(l=e[Z])||void 0===l?void 0:l.match("\\d"))&&N.push(null!==(c=e[Z])&&void 0!==c?c:"");if("CPF_CNPJ"===r&&(this.cpfCnpjError=11!==N.length&&14!==N.length,r=N.length>11?"00.000.000/0000-00":"000.000.000-00"),r.startsWith("percent")){if(e.match("[a-z]|[A-Z]")||e.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)&&!o){e=this._stripToDecimal(e);const ke=this.getPrecision(r);e=this.checkInputPrecision(e,ke,this.decimalMarker)}const Z="string"==typeof this.decimalMarker?this.decimalMarker:".";if(e.indexOf(Z)>0&&!this.percentage(e.substring(0,e.indexOf(Z)))){let ke=e.substring(0,e.indexOf(Z)-1);this.allowNegativeNumbers&&"-"===e.slice(x,x+1)&&!o&&(ke=e.substring(0,e.indexOf(Z))),e=`${ke}${e.substring(e.indexOf(Z),e.length)}`}let J="";J=this.allowNegativeNumbers&&"-"===e.slice(x,x+1)?e.slice(x+1,x+e.length):e,Y=this.percentage(J)?this._splitPercentZero(e):this._splitPercentZero(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[0]&&this.allowNegativeNumbers?e.length>2&&"0"===e[1]&&e[2]!==this.thousandSeparator&&!this._compareOrIncludes(e[2],this.decimalMarker,this.thousandSeparator)&&!o?e.slice(0,e.length-1):e:e.length>1&&"0"===e[0]&&e[1]!==this.thousandSeparator&&!this._compareOrIncludes(e[1],this.decimalMarker,this.thousandSeparator)&&!o?e.slice(0,e.length-1):e,o&&(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 J='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(Z,"");if(Array.isArray(this.decimalMarker))for(const ce of this.decimalMarker)J=J.replace(this._charToRegExpExpression(ce),"");else J=J.replace(this._charToRegExpExpression(this.decimalMarker),"");const ke=new RegExp("["+J+"]");(e.match(ke)||1===e.length&&this._compareOrIncludes(e,this.decimalMarker,this.thousandSeparator))&&(e=e.substring(0,e.length-1));const le=this.getPrecision(r),Ye=(e=this.checkInputPrecision(e,le,this.decimalMarker)).replace(new RegExp(Z,"g"),"");Y=this._formatWithSeparators(Ye,this.thousandSeparator,this.decimalMarker,le);const Ge=Y.indexOf(",")-e.indexOf(","),we=Y.length-e.length;if(we>0&&Y[i]!==this.thousandSeparator){ae=!0;let ce=0;do{this._shift.add(i+ce),ce++}while(ce<we)}else Y[i-1]===this.decimalMarker||-4===we||-3===we||","===Y[i]?(this._shift.clear(),this._shift.add(i-1)):0!==Ge&&i>0&&!(Y.indexOf(",")>=i&&i>3)||!(Y.indexOf(".")>=i&&i>3)&&we<=0?(this._shift.clear(),ae=!0,ie=we,this._shift.add(i+=we)):this._shift.clear()}else for(let Z=0,J=oe[0];Z<oe.length&&x!==r.length;Z++,J=null!==(u=oe[Z])&&void 0!==u?u:""){const ke="*"in this.patterns;if(this._checkSymbolMask(J,null!==(d=r[x])&&void 0!==d?d:"")&&"?"===r[x+1])Y+=J,x+=2;else if("*"===r[x+1]&&X&&this._checkSymbolMask(J,null!==(f=r[x+2])&&void 0!==f?f:""))Y+=J,x+=3,X=!1;else if(this._checkSymbolMask(J,null!==(p=r[x])&&void 0!==p?p:"")&&"*"===r[x+1]&&!ke)Y+=J,X=!0;else if("?"===r[x+1]&&this._checkSymbolMask(J,null!==(m=r[x+2])&&void 0!==m?m:""))Y+=J,x+=3;else if(this._checkSymbolMask(J,null!==(w=r[x])&&void 0!==w?w:"")){if("H"===r[x]&&(this.apm?Number(J)>9:Number(J)>2)){i+=1,x+=1,this._shiftStep(r,x,oe.length),Z--,this.leadZeroDateTime&&(Y+="0");continue}if("h"===r[x]&&(this.apm?1===Y.length&&Number(Y)>1||"1"===Y&&Number(J)>2||1===e.slice(x-1,x).length&&Number(e.slice(x-1,x))>2||"1"===e.slice(x-1,x)&&Number(J)>2:"2"===Y&&Number(J)>3||("2"===Y.slice(x-2,x)||"2"===Y.slice(x-3,x)||"2"===Y.slice(x-4,x)||"2"===Y.slice(x-1,x))&&Number(J)>3&&x>10)){i+=1,x+=1,Z--;continue}if(("m"===r[x]||"s"===r[x])&&Number(J)>5){i+=1,x+=1,this._shiftStep(r,x,oe.length),Z--,this.leadZeroDateTime&&(Y+="0");continue}const le=31,Ye=e[x],Ge=e[x+1],we=e[x+2],ce=e[x-1],it=e[x-2],kt=e[x-3],Ct=e.slice(x-3,x-1),lt=e.slice(x-1,x+1),ht=e.slice(x,x+2),pr=e.slice(x-2,x);if("d"===r[x]){const Zn="M0"===r.slice(0,2),Kn="M0"===r.slice(0,2)&&this.specialCharacters.includes(it);if(Number(J)>3&&this.leadZeroDateTime||!Zn&&(Number(ht)>le||Number(lt)>le||this.specialCharacters.includes(Ge))||(Kn?Number(lt)>le||!this.specialCharacters.includes(Ye)&&this.specialCharacters.includes(we)||this.specialCharacters.includes(Ye):Number(ht)>le||this.specialCharacters.includes(Ge))){i+=1,x+=1,this._shiftStep(r,x,oe.length),Z--,this.leadZeroDateTime&&(Y+="0");continue}}if("M"===r[x]){const Kn=0===x&&(Number(J)>2||Number(ht)>12||this.specialCharacters.includes(Ge)),ft=r.slice(x+2,x+3),vs=Ct.includes(ft)&&(this.specialCharacters.includes(it)&&Number(lt)>12&&!this.specialCharacters.includes(Ye)||this.specialCharacters.includes(Ye)||this.specialCharacters.includes(kt)&&Number(pr)>12&&!this.specialCharacters.includes(ce)||this.specialCharacters.includes(ce)),Gt=Number(Ct)<=le&&!this.specialCharacters.includes(Ct)&&this.specialCharacters.includes(ce)&&(Number(ht)>12||this.specialCharacters.includes(Ge)),Nr=Number(ht)>12&&5===x||this.specialCharacters.includes(Ge)&&5===x,ws=Number(Ct)>le&&!this.specialCharacters.includes(Ct)&&!this.specialCharacters.includes(pr)&&Number(pr)>12,ct=Number(Ct)<=le&&!this.specialCharacters.includes(Ct)&&!this.specialCharacters.includes(ce)&&Number(lt)>12;if(Number(J)>1&&this.leadZeroDateTime||Kn||vs||ct||ws||Gt||Nr&&!this.leadZeroDateTime){i+=1,x+=1,this._shiftStep(r,x,oe.length),Z--,this.leadZeroDateTime&&(Y+="0");continue}}Y+=J,x++}else" "===J&&" "===r[x]||"/"===J&&"/"===r[x]?(Y+=J,x++):-1!==this.specialCharacters.indexOf(null!==(E=r[x])&&void 0!==E?E:"")?(Y+=r[x],x++,this._shiftStep(r,x,oe.length),Z--):"9"===r[x]&&this.showMaskTyped?this._shiftStep(r,x,oe.length):this.patterns[null!==(S=r[x])&&void 0!==S?S:""]&&(null===(F=this.patterns[null!==(b=r[x])&&void 0!==b?b:""])||void 0===F?void 0:F.optional)?(!!oe[x]&&"099.099.099.099"!==r&&"000.000.000-00"!==r&&"00.000.000/0000-00"!==r&&!r.match(/^9+\.0+$/)&&!(null===(re=this.patterns[null!==(j=r[x])&&void 0!==j?j:""])||void 0===re?void 0:re.optional)&&(Y+=oe[x]),r.includes("9*")&&r.includes("0*")&&x++,x++,Z--):"*"===this.maskExpression[x+1]&&this._findSpecialChar(null!==(ve=this.maskExpression[x+2])&&void 0!==ve?ve:"")&&this._findSpecialChar(J)===this.maskExpression[x+2]&&X||"?"===this.maskExpression[x+1]&&this._findSpecialChar(null!==(Pe=this.maskExpression[x+2])&&void 0!==Pe?Pe:"")&&this._findSpecialChar(J)===this.maskExpression[x+2]&&X?(x+=3,Y+=J):this.showMaskTyped&&this.specialCharacters.indexOf(J)<0&&J!==this.placeHolderCharacter&&1===this.placeHolderCharacter.length&&(Se=!0)}Y.length+1===r.length&&-1!==this.specialCharacters.indexOf(null!==(Ve=r[r.length-1])&&void 0!==Ve?Ve:"")&&(Y+=r[r.length-1]);let $=i+1;for(;this._shift.has($);)ie++,$++;let H=s&&!r.startsWith("separator")?x:this._shift.has(i)?ie:0;Se&&H--,a(H,ae),ie<0&&this._shift.clear();let ne=!1;o&&(ne=oe.every(Z=>this.specialCharacters.includes(Z)));let te=`${this.prefix}${ne?"":Y}${this.suffix}`;if(0===Y.length&&(te=this.dropSpecialCharacters?`${Y}`:`${this.prefix}${Y}`),Y.includes("-")&&this.prefix&&this.allowNegativeNumbers){if(o&&"-"===Y)return"";te=`-${this.prefix}${Y.split("-").join("")}${this.suffix}`}return te}_findDropSpecialChar(e){return Array.isArray(this.dropSpecialCharacters)?this.dropSpecialCharacters.find(r=>r===e):this._findSpecialChar(e)}_findSpecialChar(e){return this.specialCharacters.find(r=>r===e)}_checkSymbolMask(e,r){var i,s,o;return this.patterns=this.customPattern?this.customPattern:this.patterns,null!==(o=(null===(i=this.patterns[r])||void 0===i?void 0:i.pattern)&&(null===(s=this.patterns[r])||void 0===s?void 0:s.pattern.test(e)))&&void 0!==o&&o}_stripToDecimal(e){return e.split("").filter((r,i)=>{const s="string"==typeof this.decimalMarker?r===this.decimalMarker:this.decimalMarker.includes(r);return r.match("^-?\\d")||r===this.thousandSeparator||s||"-"===r&&0===i&&this.allowNegativeNumbers}).join("")}_charToRegExpExpression(e){return e&&(" "===e?"\\s":"[\\^$.|?*+()".indexOf(e)>=0?`\\${e}`:e)}_shiftStep(e,r,i){const s=/[*?]/g.test(e.slice(0,r))?i:r;this._shift.add(s+this.prefix.length||0)}_compareOrIncludes(e,r,i){return Array.isArray(r)?r.filter(s=>s!==i).includes(e):e===r}_validIP(e){return!(4===e.length&&!e.some((r,i)=>e.length!==i+1?""===r||Number(r)>255:""===r||Number(r.substring(0,3))>255))}_splitPercentZero(e){const r=e.indexOf("string"==typeof this.decimalMarker?this.decimalMarker:".");if(-1===r){const i=parseInt(e,10);return isNaN(i)?"":i.toString()}{const i=parseInt(e.substring(0,r),10),s=e.substring(r+1),o=isNaN(i)?"":i.toString(),a="string"==typeof this.decimalMarker?this.decimalMarker:".";return""===o?"":o+a+s}}}return n.\u0275fac=function(e){return new(e||n)(U(yu))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})(),cm=(()=>{class n extends qA{constructor(e,r,i,s){super(r),this.document=e,this._config=r,this._elementRef=i,this._renderer=s,this.isNumberValue=!1,this.maskIsShown="",this.selStart=null,this.selEnd=null,this.writingValue=!1,this.maskChanged=!1,this._maskExpressionArray=[],this.triggerOnMaskChange=!1,this._emitValue=!1,this._previousValue="",this._currentValue="",this.onChange=o=>{}}applyMask(e,r,i=0,s=!1,o=!1,a=(()=>{})){var l;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 c=e&&"number"==typeof this.selStart&&null!==(l=e[this.selStart])&&void 0!==l?l:"";let u="";if(void 0!==this.hiddenInput&&!this.writingValue){let m=e&&1===e.length?e.split(""):this.actualValue.split("");"object"==typeof this.selStart&&"object"==typeof this.selEnd?(this.selStart=Number(this.selStart),this.selEnd=Number(this.selEnd)):""!==e&&m.length?"number"==typeof this.selStart&&"number"==typeof this.selEnd&&(e.length>m.length?m.splice(this.selStart,0,c):e.length<m.length&&(m.length-e.length==1?m.splice(o?this.selStart-1:e.length-1,1):m.splice(this.selStart,this.selEnd-this.selStart))):m=[],this.showMaskTyped&&(this.hiddenInput||(e=this.removeMask(e))),u=this.actualValue.length&&m.length<=e.length?this.shiftTypedSymbols(m.join("")):e}if(s&&(this.hiddenInput||!this.hiddenInput)&&(u=e),this.deletedSpecialCharacter&&i&&(this.specialCharacters.includes(this.actualValue.slice(i,i+1))?i+=1:"M0"!==r.slice(i-1,i+1)&&(i-=2),this.deletedSpecialCharacter=!1),this.showMaskTyped&&1===this.placeHolderCharacter.length&&!this.leadZeroDateTime&&(e=this.removeMask(e)),u=this.maskChanged?e:Boolean(u)&&u.length?u:e,this.showMaskTyped&&this.keepCharacterPositions&&this.actualValue&&!s){const m=this.dropSpecialCharacters?this.removeMask(this.actualValue):this.actualValue;return this.formControlResult(m),this.actualValue?this.actualValue:this.prefix+this.maskIsShown+this.suffix}const d=super.applyMask(u,r,i,s,o,a);if(this.actualValue=this.getActualValue(d),"."===this.thousandSeparator&&"."===this.decimalMarker&&(this.decimalMarker=","),this.maskExpression.startsWith("separator")&&!0===this.dropSpecialCharacters&&(this.specialCharacters=this.specialCharacters.filter(m=>!this._compareOrIncludes(m,this.decimalMarker,this.thousandSeparator))),(d||""===d)&&(this._previousValue=this._currentValue,this._currentValue=d,this._emitValue=this._previousValue!==this._currentValue||this.maskChanged||this._previousValue===this._currentValue&&s),this._emitValue&&this.formControlResult(d),!this.showMaskTyped||this.showMaskTyped&&this.hiddenInput)return this.hiddenInput?o?this.hideInput(d,this.maskExpression):this.hideInput(d,this.maskExpression)+this.maskIsShown.slice(d.length):d;const f=d.length,p=this.prefix+this.maskIsShown;if(this.maskExpression.includes("H")){const m=this._numberSkipedSymbols(d);return d+p.slice(f+m)}return"IP"===this.maskExpression||"CPF_CNPJ"===this.maskExpression?d+p:d+p.slice(f)}_numberSkipedSymbols(e){const r=/(^|\D)(\d\D)/g;let i=r.exec(e),s=0;for(;null!=i;)s+=1,i=r.exec(e);return s}applyValueChanges(e,r,i,s=(()=>{})){var o;const a=null===(o=this._elementRef)||void 0===o?void 0:o.nativeElement;!a||(a.value=this.applyMask(a.value,this.maskExpression,e,r,i,s),a!==this._getActiveElement()&&this.clearIfNotMatchFn())}hideInput(e,r){return e.split("").map((i,s)=>{var o,a,l,c,u;return this.patterns&&this.patterns[null!==(o=r[s])&&void 0!==o?o:""]&&(null===(l=this.patterns[null!==(a=r[s])&&void 0!==a?a:""])||void 0===l?void 0:l.symbol)?null===(u=this.patterns[null!==(c=r[s])&&void 0!==c?c:""])||void 0===u?void 0:u.symbol:i}).join("")}getActualValue(e){const r=e.split("").filter((i,s)=>{var o;const a=null!==(o=this.maskExpression[s])&&void 0!==o?o:"";return this._checkSymbolMask(i,a)||this.specialCharacters.includes(a)&&i===a});return r.join("")===e?r.join(""):e}shiftTypedSymbols(e){let r="";return(e&&e.split("").map((s,o)=>{var a;if(this.specialCharacters.includes(null!==(a=e[o+1])&&void 0!==a?a:"")&&e[o+1]!==this.maskExpression[o+1])return r=s,e[o+1];if(r.length){const l=r;return r="",l}return s})||[]).join("")}numberToString(e){return!e&&0!==e||this.maskExpression.startsWith("separator")&&(this.leadZero||!this.dropSpecialCharacters)||this.maskExpression.startsWith("separator")&&this.separatorLimit.length>14&&String(e).length>14?String(e):Number(e).toLocaleString("fullwide",{useGrouping:!1,maximumFractionDigits:20}).replace("/-/","-")}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.placeHolderCharacter.length===this.maskExpression.length?this.placeHolderCharacter:this.maskExpression.replace(/\w/g,this.placeHolderCharacter)}return""}clearIfNotMatchFn(){var e;const r=null===(e=this._elementRef)||void 0===e?void 0:e.nativeElement;!r||this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==r.value.replace(this.placeHolderCharacter,"").length&&(this.formElementProperty=["value",""],this.applyMask("",this.maskExpression))}set formElementProperty([e,r]){!this._renderer||!this._elementRef||Promise.resolve().then(()=>{var i,s;return null===(i=this._renderer)||void 0===i?void 0:i.setProperty(null===(s=this._elementRef)||void 0===s?void 0:s.nativeElement,e,r)})}checkDropSpecialCharAmount(e){return e.split("").filter(i=>this._findDropSpecialChar(i)).length}removeMask(e){return this._removeMask(this._removeSuffix(this._removePrefix(e)),this.specialCharacters.concat("_").concat(this.placeHolderCharacter))}_checkForIp(e){var r;if("#"===e)return`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`;const i=[];for(let s=0;s<e.length;s++){const o=null!==(r=e[s])&&void 0!==r?r:"";!o||o.match("\\d")&&i.push(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}`,s=`${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 o=[];for(let a=0;a<e.length;a++){const l=null!==(r=e[a])&&void 0!==r?r:"";!l||l.match("\\d")&&o.push(l)}return o.length<=3?i.slice(o.length,i.length):o.length>3&&o.length<=6?i.slice(o.length+1,i.length):o.length>6&&o.length<=9?i.slice(o.length+2,i.length):o.length>9&&o.length<11?i.slice(o.length+3,i.length):11===o.length?"":12===o.length?s.slice(17===e.length?16:15,s.length):o.length>12&&o.length<=14?s.slice(o.length+4,s.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){if(this.writingValue||!this.triggerOnMaskChange&&this.maskChanged)return this.maskChanged&&this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeSuffix(this._removePrefix(e)))))),void(this.maskChanged=!1);Array.isArray(this.dropSpecialCharacters)?this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeMask(this._removeSuffix(this._removePrefix(e)),this.dropSpecialCharacters))))):this.onChange(this.outputTransformFn(this._toNumber(this.dropSpecialCharacters||!this.dropSpecialCharacters&&this.prefix===e?this._checkSymbols(this._removeSuffix(this._removePrefix(e))):e)))}_toNumber(e){if(!this.isNumberValue||""===e||this.maskExpression.startsWith("separator")&&(this.leadZero||!this.dropSpecialCharacters))return e;if(String(e).length>16&&this.separatorLimit.length>14)return String(e);const r=Number(e);if(this.maskExpression.startsWith("separator")&&Number.isNaN(r)){const i=String(e).replace(",",".");return Number(i)}return Number.isNaN(r)?e:r}_removeMask(e,r){return this.maskExpression.startsWith("percent")&&e.includes(".")?e: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){const r=Array.isArray(this.dropSpecialCharacters)?this.specialCharacters.filter(i=>this.dropSpecialCharacters.includes(i)):this.specialCharacters;return this._removeMask(e,r)}_regExpForRemove(e){return new RegExp(e.map(r=>`\\${r}`).join("|"),"gi")}_replaceDecimalMarkerToDot(e){const r=Array.isArray(this.decimalMarker)?this.decimalMarker:[this.decimalMarker];return e.replace(this._regExpForRemove(r),".")}_checkSymbols(e){if(""===e)return e;this.maskExpression.startsWith("percent")&&","===this.decimalMarker&&(e=e.replace(",","."));const r=this._retrieveSeparatorPrecision(this.maskExpression),i=this._replaceDecimalMarkerToDot(this._retrieveSeparatorValue(e));return this.isNumberValue&&r?e===this.decimalMarker?null:this.separatorLimit.length>14?String(i):this._checkPrecision(this.maskExpression,i):i}_retrieveSeparatorPrecision(e){const r=e.match(new RegExp("^separator\\.([^d]*)"));return r?Number(r[1]):null}_checkPrecision(e,r){const i=e.slice(10,11);return e.indexOf("2")>0||this.leadZero&&Number(i)>1?(","===this.decimalMarker&&this.leadZero&&(r=r.replace(",",".")),this.leadZero?Number(r).toFixed(Number(i)):Number(r).toFixed(2)):this.numberToString(r)}_repeatPatternSymbols(e){return e.match(/{[0-9]+}/)&&e.split("").reduce((r,i,s)=>{if(this._start="{"===i?s:this._start,"}"!==i)return this._findSpecialChar(i)?r+i:r;this._end=s;const o=Number(e.slice(this._start+1,this._end)),a=new Array(o+1).join(e[this._start-1]);if(e.slice(0,this._start).length>1&&e.includes("S")){const l=e.slice(0,this._start-1);return l.includes("{")?r+a:l+r+a}return r+a},"")||e}currentLocaleDecimalMarker(){return 1.1.toLocaleString().substring(1,2)}}return n.\u0275fac=function(e){return new(e||n)(U(jt),U(yu),U(In,8),U(Kr,8))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})(),ZA=(()=>{class n{constructor(e,r,i){this.document=e,this._config=r,this._maskService=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.leadZero=null,this.triggerOnMaskChange=null,this.apm=null,this.inputTransformFn=null,this.outputTransformFn=null,this.keepCharacterPositions=null,this.maskFilled=new He,this._maskValue="",this._position=null,this._maskExpressionArray=[],this._justPasted=!1,this._isComposing=!1,this.onChange=s=>{},this.onTouch=()=>{}}ngOnChanges(e){const{maskExpression:r,specialCharacters:i,patterns:s,prefix:o,suffix:a,thousandSeparator:l,decimalMarker:c,dropSpecialCharacters:u,hiddenInput:d,showMaskTyped:f,placeHolderCharacter:p,shownMaskExpression:m,showTemplate:w,clearIfNotMatch:E,validation:S,separatorLimit:b,allowNegativeNumbers:F,leadZeroDateTime:j,leadZero:re,triggerOnMaskChange:ve,apm:Pe,inputTransformFn:Ve,outputTransformFn:x,keepCharacterPositions:Y}=e;if(r&&(r.currentValue!==r.previousValue&&!r.firstChange&&(this._maskService.maskChanged=!0),F&&(this._maskService.allowNegativeNumbers=F.currentValue,this._maskService.allowNegativeNumbers&&(this._maskService.specialCharacters=this._maskService.specialCharacters.filter(X=>"-"!==X))),r.currentValue&&r.currentValue.split("||").length>1?(this._maskExpressionArray=r.currentValue.split("||").sort((X,ae)=>X.length-ae.length),this._setMask()):(this._maskExpressionArray=[],this._maskValue=r.currentValue||"",this._maskService.maskExpression=this._maskValue)),i){if(!i.currentValue||!Array.isArray(i.currentValue))return;this._maskService.specialCharacters=i.currentValue||[]}s&&s.currentValue&&(this._maskService.patterns=s.currentValue),Pe&&Pe.currentValue&&(this._maskService.apm=Pe.currentValue),o&&(this._maskService.prefix=o.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),m&&(this._maskService.shownMaskExpression=m.currentValue),w&&(this._maskService.showTemplate=w.currentValue),E&&(this._maskService.clearIfNotMatch=E.currentValue),S&&(this._maskService.validation=S.currentValue),b&&(this._maskService.separatorLimit=b.currentValue),j&&(this._maskService.leadZeroDateTime=j.currentValue),re&&(this._maskService.leadZero=re.currentValue),ve&&(this._maskService.triggerOnMaskChange=ve.currentValue),Ve&&(this._maskService.inputTransformFn=Ve.currentValue),x&&(this._maskService.outputTransformFn=x.currentValue),Y&&(this._maskService.keepCharacterPositions=Y.currentValue),this._applyMask()}validate({value:e}){var r,i,s;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")||WA.includes(this._maskValue)||this._maskService.clearIfNotMatch)return null;if(GA.includes(this._maskValue))return this._validateTime(e);if(e&&e.toString().length>=1){let o=0;if(this._maskValue.startsWith("percent"))return null;for(const a in this._maskService.patterns)if((null===(r=this._maskService.patterns[a])||void 0===r?void 0:r.optional)&&(this._maskValue.indexOf(a)!==this._maskValue.lastIndexOf(a)?o+=this._maskValue.split("").filter(c=>c===a).join("").length:-1!==this._maskValue.indexOf(a)&&o++,-1!==this._maskValue.indexOf(a)&&e.toString().length>=this._maskValue.indexOf(a)||o===this._maskValue.length))return null;if(1===this._maskValue.indexOf("{")&&e.toString().length===this._maskValue.length+Number((null!==(i=this._maskValue.split("{")[1])&&void 0!==i?i:"").split("}")[0])-4)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("?")){e="number"==typeof e?String(e):e;const a=this._maskValue.split("*"),l=this._maskService.dropSpecialCharacters?this._maskValue.length-this._maskService.checkDropSpecialCharAmount(this._maskValue)-o:this.prefix?this._maskValue.length+this.prefix.length-o:this._maskValue.length-o;if(1===a.length&&e.toString().length<l)return this._createValidationError(e);if(a.length>1){const c=a[a.length-1];if(c&&this._maskService.specialCharacters.includes(c[0])&&String(e).includes(null!==(s=c[0])&&void 0!==s?s:"")&&!this.dropSpecialCharacters){const u=e.split(c[0]);return u[u.length-1].length===c.length-1?null:this._createValidationError(e)}return(c&&!this._maskService.specialCharacters.includes(c[0])||!c||this._maskService.dropSpecialCharacters)&&e.length>=l-1?null:this._createValidationError(e)}}if(1===this._maskValue.indexOf("*")||1===this._maskValue.indexOf("?"))return null}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){var r,i,s,o;if(this._isComposing)return;const a=e.target,l=this._maskService.inputTransformFn(a.value);if("number"!==a.type)if("string"==typeof l||"number"==typeof l){if(a.value=l.toString(),this._inputValue=a.value,this._setMask(),!this._maskValue)return void this.onChange(a.value);let c=1===a.selectionStart?a.selectionStart+this._maskService.prefix.length:a.selectionStart;if(this.showMaskTyped&&this.keepCharacterPositions&&1===this._maskService.placeHolderCharacter.length){const p=a.value.slice(c-1,c),m=this.prefix.length,w=this._maskService._checkSymbolMask(p,null!==(r=this._maskService.maskExpression[c-1-m])&&void 0!==r?r:""),E=this._maskService._checkSymbolMask(p,null!==(i=this._maskService.maskExpression[c+1-m])&&void 0!==i?i:""),S=this._maskService.selStart===this._maskService.selEnd,b=null!==(s=Number(this._maskService.selStart)-m)&&void 0!==s?s:"",F=null!==(o=Number(this._maskService.selEnd)-m)&&void 0!==o?o:"";if("Backspace"===this._code)if(S){if(!this._maskService.specialCharacters.includes(this._maskService.maskExpression.slice(c-this.prefix.length,c+1-this.prefix.length))&&S)if(1===b&&this.prefix)this._maskService.actualValue=this.prefix+this._maskService.placeHolderCharacter+a.value.split(this.prefix).join("").split(this.suffix).join("")+this.suffix,c-=1;else{const j=a.value.substring(0,c),re=a.value.substring(c);this._maskService.actualValue=j+this._maskService.placeHolderCharacter+re}}else this._maskService.actualValue=this._maskService.selStart===m?this.prefix+this._maskService.maskIsShown.slice(0,F)+this._inputValue.split(this.prefix).join(""):this._maskService.selStart===this._maskService.maskIsShown.length+m?this._inputValue+this._maskService.maskIsShown.slice(b,F):this.prefix+this._inputValue.split(this.prefix).join("").slice(0,b)+this._maskService.maskIsShown.slice(b,F)+this._maskService.actualValue.slice(F+m,this._maskService.maskIsShown.length+m)+this.suffix;"Backspace"!==this._code&&(w||E||!S?this._maskService.specialCharacters.includes(a.value.slice(c,c+1))&&E&&!this._maskService.specialCharacters.includes(a.value.slice(c+1,c+2))?(this._maskService.actualValue=a.value.slice(0,c-1)+a.value.slice(c,c+1)+p+a.value.slice(c+2),c+=1):w&&(this._maskService.actualValue=a.value.slice(0,c-1)+p+a.value.slice(c+1).split(this.suffix).join("")+this.suffix):c=Number(a.selectionStart)-1)}let u=0,d=!1;if("Delete"===this._code&&(this._maskService.deletedSpecialCharacter=!0),this._inputValue.length>=this._maskService.maskExpression.length-1&&"Backspace"!==this._code&&"d0/M0/0000"===this._maskService.maskExpression&&c<10){const p=this._inputValue.slice(c-1,c);a.value=this._inputValue.slice(0,c-1)+p+this._inputValue.slice(c+1)}if("Hh:m0:s0"===this._maskService.maskExpression&&this.apm&&(this._justPasted&&"00"===a.value.slice(0,2)&&(a.value=a.value.slice(1,2)+a.value.slice(2,a.value.length)),a.value="00"===a.value?"0":a.value),this._maskService.applyValueChanges(c,this._justPasted,"Backspace"===this._code||"Delete"===this._code,(p,m)=>{this._justPasted=!1,u=p,d=m}),this._getActiveElement()!==a)return;this._maskExpressionArray.length&&(c="Backspace"===this._code?this.specialCharacters.includes(this._inputValue.slice(c-1,c))?c-1:c:1===a.selectionStart?a.selectionStart+this._maskService.prefix.length:a.selectionStart),this._position=1===this._position&&1===this._inputValue.length?null:this._position;let f=this._position?this._inputValue.length+c+u:c+("Backspace"!==this._code||d?u:0);f>this._getActualInputLength()&&(f=this._getActualInputLength()),f<0&&(f=0),a.setSelectionRange(f,f),this._position=null}else console.warn("Ngx-mask writeValue work with string | number, your current value:",typeof l);else this._maskService.applyValueChanges(a.value.length,this._justPasted,"Backspace"===this._code||"Delete"===this._code)}onCompositionStart(){this._isComposing=!0}onCompositionEnd(e){this._isComposing=!1,this._justPasted=!0,this.onInput(e)}onBlur(e){if(this._maskValue){const r=e.target;if(this.leadZero&&r.value.length>0&&"string"==typeof this.decimalMarker){const i=this._maskService.maskExpression,s=Number(this._maskService.maskExpression.slice(i.length-1,i.length));if(s>1){r.value=this.suffix?r.value.split(this.suffix).join(""):r.value;const o=r.value.split(this.decimalMarker)[1];r.value=r.value.includes(this.decimalMarker)?r.value+"0".repeat(s-o.length)+this.suffix:r.value+this.decimalMarker+"0".repeat(s)+this.suffix,this._maskService.actualValue=r.value}}this._maskService.clearIfNotMatchFn()}this.onTouch()}onClick(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.keepCharacterPositions&&(this._maskService.maskIsShown=this._maskService.showMaskInInput(),r.setSelectionRange&&this._maskService.prefix+this._maskService.maskIsShown===r.value?(r.focus(),r.setSelectionRange(0,0)):r.selectionStart>this._maskService.actualValue.length&&r.setSelectionRange(this._maskService.actualValue.length,this._maskService.actualValue.length));const o=r&&(r.value===this._maskService.prefix?this._maskService.prefix+this._maskService.maskIsShown:r.value);r&&r.value!==o&&(r.value=o),r&&"number"!==r.type&&(r.selectionStart||r.selectionEnd)<=this._maskService.prefix.length?r.selectionStart=this._maskService.prefix.length:r&&r.selectionEnd>this._getActualInputLength()&&(r.selectionEnd=this._getActualInputLength())}onKeyDown(e){var r,i;if(!this._maskValue)return;if(this._isComposing)return void("Enter"===e.key&&this.onCompositionEnd(e));this._code=e.code?e.code:e.key;const s=e.target;if(this._inputValue=s.value,this._setMask(),"number"!==s.type){if("ArrowUp"===e.key&&e.preventDefault(),"ArrowLeft"===e.key||"Backspace"===e.key||"Delete"===e.key){if("Backspace"===e.key&&0===s.value.length&&(s.selectionStart=s.selectionEnd),"Backspace"===e.key&&0!==s.selectionStart)if(this.specialCharacters=(null===(r=this.specialCharacters)||void 0===r?void 0:r.length)?this.specialCharacters:this._config.specialCharacters,this.prefix.length>1&&s.selectionStart<=this.prefix.length)s.setSelectionRange(this.prefix.length,s.selectionEnd);else if(this._inputValue.length!==s.selectionStart&&1!==s.selectionStart)for(;this.specialCharacters.includes((null!==(i=this._inputValue[s.selectionStart-1])&&void 0!==i?i:"").toString())&&(this.prefix.length>=1&&s.selectionStart>this.prefix.length||0===this.prefix.length);)s.setSelectionRange(s.selectionStart-1,s.selectionEnd);this.checkSelectionOnDeletion(s),this._maskService.prefix.length&&s.selectionStart<=this._maskService.prefix.length&&s.selectionEnd<=this._maskService.prefix.length&&e.preventDefault();const o=s.selectionStart;"Backspace"===e.key&&!s.readOnly&&0===o&&s.selectionEnd===s.value.length&&0!==s.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<s.selectionStart?s.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length):("KeyA"===e.code&&e.ctrlKey||"KeyA"===e.code&&e.metaKey)&&(s.setSelectionRange(0,this._getActualInputLength()),e.preventDefault()),this._maskService.selStart=s.selectionStart,this._maskService.selEnd=s.selectionEnd}}writeValue(e){var r;return Dl(this,void 0,void 0,function*(){if("object"==typeof e&&null!==e&&"value"in e&&("disable"in e&&this.setDisabledState(Boolean(e.disable)),e=e.value),null!==e&&(e=this.inputTransformFn?this.inputTransformFn(e):e),"string"==typeof e||"number"==typeof e||null===e){let i=e;if("number"==typeof i||this._maskValue.startsWith("separator")){i=String(i);const s=this._maskService.currentLocaleDecimalMarker();Array.isArray(this._maskService.decimalMarker)||(i=this._maskService.decimalMarker!==s?i.replace(s,this._maskService.decimalMarker):i),this._maskService.leadZero&&i&&this.maskExpression&&!1!==this.dropSpecialCharacters&&(i=this._maskService._checkPrecision(this._maskService.maskExpression,i)),","===this._maskService.decimalMarker&&(i=i.toString().replace(".",",")),(null===(r=this.maskExpression)||void 0===r?void 0:r.startsWith("separator"))&&this.leadZero&&requestAnimationFrame(()=>{var o;this._maskService.applyMask(null!==(o=null==i?void 0:i.toString())&&void 0!==o?o:"",this._maskService.maskExpression)}),this._maskService.isNumberValue=!0}"string"!=typeof i&&(i=""),this._inputValue=i,this._setMask(),i&&this._maskService.maskExpression||this._maskService.maskExpression&&(this._maskService.prefix||this._maskService.showMaskTyped)?("function"!=typeof this.inputTransformFn&&(this._maskService.writingValue=!0),this._maskService.formElementProperty=["value",this._maskService.applyMask(i,this._maskService.maskExpression)],"function"!=typeof this.inputTransformFn&&(this._maskService.writingValue=!1)):this._maskService.formElementProperty=["value",i],this._inputValue=i}else console.warn("Ngx-mask writeValue work with string | number, your current value:",typeof e)})}registerOnChange(e){this._maskService.onChange=this.onChange=e}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]}_applyMask(){this._maskService.maskExpression=this._maskService._repeatPatternSymbols(this._maskValue||""),this._maskService.formElementProperty=["value",this._maskService.applyMask(this._inputValue,this._maskService.maskExpression)]}_validateTime(e){var r;const i=this._maskValue.split("").filter(s=>":"!==s).length;return e&&(0==+(null!==(r=e[e.length-1])&&void 0!==r?r:-1)&&e.length<i||e.length<=i-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.some(e=>{var r,i,s,o;if(e.split("").some(l=>this._maskService.specialCharacters.includes(l))&&this._inputValue&&!e.includes("S")||e.includes("{")){const l=(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(l)return this._maskValue=this.maskExpression=this._maskService.maskExpression=e.includes("{")?this._maskService._repeatPatternSymbols(e):e,l;{const c=null!==(s=this._maskExpressionArray[this._maskExpressionArray.length-1])&&void 0!==s?s:"";this._maskValue=this.maskExpression=this._maskService.maskExpression=c.includes("{")?this._maskService._repeatPatternSymbols(c):c}}else{const l=null===(o=this._inputValue)||void 0===o?void 0:o.split("").every((c,u)=>{const d=e.charAt(u);return this._maskService._checkSymbolMask(c,d)});if(l)return this._maskValue=this.maskExpression=this._maskService.maskExpression=e,l}})}}return n.\u0275fac=function(e){return new(e||n)(P(jt),P(yu),P(cm))},n.\u0275dir=_e({type:n,selectors:[["input","mask",""],["textarea","mask",""]],hostBindings:function(e,r){1&e&&Re("paste",function(){return r.onPaste()})("ngModelChange",function(s){return r.onModelChange(s)})("input",function(s){return r.onInput(s)})("compositionstart",function(s){return r.onCompositionStart(s)})("compositionend",function(s){return r.onCompositionEnd(s)})("blur",function(s){return r.onBlur(s)})("click",function(s){return r.onClick(s)})("keydown",function(s){return r.onKeyDown(s)})},inputs:{maskExpression:["mask","maskExpression"],specialCharacters:"specialCharacters",patterns:"patterns",prefix:"prefix",suffix:"suffix",thousandSeparator:"thousandSeparator",decimalMarker:"decimalMarker",dropSpecialCharacters:"dropSpecialCharacters",hiddenInput:"hiddenInput",showMaskTyped:"showMaskTyped",placeHolderCharacter:"placeHolderCharacter",shownMaskExpression:"shownMaskExpression",showTemplate:"showTemplate",clearIfNotMatch:"clearIfNotMatch",validation:"validation",separatorLimit:"separatorLimit",allowNegativeNumbers:"allowNegativeNumbers",leadZeroDateTime:"leadZeroDateTime",leadZero:"leadZero",triggerOnMaskChange:"triggerOnMaskChange",apm:"apm",inputTransformFn:"inputTransformFn",outputTransformFn:"outputTransformFn",keepCharacterPositions:"keepCharacterPositions"},outputs:{maskFilled:"maskFilled"},exportAs:["mask","ngxMask"],features:[rt([{provide:Gn,useExisting:Ze(()=>n),multi:!0},{provide:un,useExisting:Ze(()=>n),multi:!0},cm]),$r]}),n})();function KA(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:yu,useFactory:KA,deps:[vw,_w]},cm]}}static forChild(){return{ngModule:n}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({}),n})();const ww=["toast-component",""];function QA(n,t){if(1&n){const e=An();W(0,"button",5),Re("click",function(){return an(e),pe().remove()}),W(1,"span",6),Ae(2,"\xd7"),q()()}}function YA(n,t){if(1&n&&(or(0),Ae(1),ar()),2&n){const e=pe(2);z(1),xn("[",e.duplicatesCount+1,"]")}}function JA(n,t){if(1&n&&(W(0,"div"),Ae(1),de(2,YA,2,1,"ng-container",4),q()),2&n){const e=pe();di(e.options.titleClass),gn("aria-label",e.title),z(1),xn(" ",e.title," "),z(1),G("ngIf",e.duplicatesCount)}}function XA(n,t){if(1&n&&ot(0,"div",7),2&n){const e=pe();di(e.options.messageClass),G("innerHTML",e.message,Fh)}}function ex(n,t){if(1&n&&(W(0,"div",8),Ae(1),q()),2&n){const e=pe();di(e.options.messageClass),gn("aria-label",e.message),z(1),xn(" ",e.message," ")}}function tx(n,t){if(1&n&&(W(0,"div"),ot(1,"div",9),q()),2&n){const e=pe();z(1),po("width",e.width+"%")}}function nx(n,t){if(1&n){const e=An();W(0,"button",5),Re("click",function(){return an(e),pe().remove()}),W(1,"span",6),Ae(2,"\xd7"),q()()}}function rx(n,t){if(1&n&&(or(0),Ae(1),ar()),2&n){const e=pe(2);z(1),xn("[",e.duplicatesCount+1,"]")}}function ix(n,t){if(1&n&&(W(0,"div"),Ae(1),de(2,rx,2,1,"ng-container",4),q()),2&n){const e=pe();di(e.options.titleClass),gn("aria-label",e.title),z(1),xn(" ",e.title," "),z(1),G("ngIf",e.duplicatesCount)}}function sx(n,t){if(1&n&&ot(0,"div",7),2&n){const e=pe();di(e.options.messageClass),G("innerHTML",e.message,Fh)}}function ox(n,t){if(1&n&&(W(0,"div",8),Ae(1),q()),2&n){const e=pe();di(e.options.messageClass),gn("aria-label",e.message),z(1),xn(" ",e.message," ")}}function ax(n,t){if(1&n&&(W(0,"div"),ot(1,"div",9),q()),2&n){const e=pe();z(1),po("width",e.width+"%")}}class lx{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 _u{constructor(t,e,r,i,s,o){this.toastId=t,this.config=e,this.message=r,this.title=i,this.toastType=s,this.toastRef=o,this._onTap=new Vt,this._onAction=new Vt,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 Cw={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},bw=new ue("ToastConfig");class ux{constructor(t){this._overlayRef=t,this.duplicatesCount=0,this._afterClosed=new Vt,this._activate=new Vt,this._manualClose=new Vt,this._resetTimeout=new Vt,this._countDuplicate=new Vt}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 dx{constructor(t,e){this._toastPackage=t,this._parentInjector=e}get(t,e,r){return t===_u?this._toastPackage:this._parentInjector.get(t,e,r)}}class hx extends class cx{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 fx{constructor(t){this._portalHost=t}attach(t,e=!0){return this._portalHost.attach(t,e)}detach(){return this._portalHost.detach()}}let px=(()=>{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(jt))},n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),mx=(()=>{class n{constructor(e,r,i,s){this._overlayContainer=e,this._componentFactoryResolver=r,this._appRef=i,this._document=s,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 hx(e,this._componentFactoryResolver,this._appRef)}_createOverlayRef(e){return new fx(this._createPortalHost(e))}}return n.\u0275fac=function(e){return new(e||n)(U(px),U(is),U(La),U(jt))},n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),vu=(()=>{class n{constructor(e,r,i,s,o){this.overlay=r,this._injector=i,this.sanitizer=s,this.ngZone=o,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={},s=""){return this._preBuildNotification(s,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,s){const{includeTitleDuplicates:o}=this.toastrConfig;for(const a of this.toasts){const l=o&&a.title===e;if((!o||l)&&a.message===r)return a.toastRef.onDuplicate(i,s),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,s){return s.onActivateTick?this.ngZone.run(()=>this._buildNotification(e,r,i,s)):this._buildNotification(e,r,i,s)}_buildNotification(e,r,i,s){if(!s.toastComponent)throw new Error("toastComponent required");const o=this.findDuplicate(i,r,this.toastrConfig.resetTimeoutOnDuplicate&&s.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&i||r)&&this.toastrConfig.preventDuplicates&&null!==o)return o;this.previousToastMessage=r;let a=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(a=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const l=this.overlay.create(s.positionClass,this.overlayContainer);this.index=this.index+1;let c=r;r&&s.enableHtml&&(c=this.sanitizer.sanitize(nt.HTML,r));const u=new ux(l),d=new _u(this.index,s,c,i,e,u),f=new dx(d,this._injector),p=new lx(s.toastComponent,f),m=l.attach(p,this.toastrConfig.newestOnTop);u.componentInstance=m.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:m};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(bw),U(mx),U(xt),U(F2),U(Yt))},n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),gx=(()=>{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(s=>{this.duplicatesCount=s})}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)(P(vu),P(_u),P(Yt))},n.\u0275cmp=Ot({type:n,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(e,r){1&e&&Re("click",function(){return r.tapToast()})("mouseenter",function(){return r.stickAround()})("mouseleave",function(){return r.delayedHideToast()}),2&e&&(yc("@flyInOut",r.state),di(r.toastClasses),po("display",r.displayStyle))},attrs:ww,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&&(de(0,QA,3,0,"button",0),de(1,JA,3,5,"div",1),de(2,XA,1,3,"div",2),de(3,ex,2,4,"div",3),de(4,tx,2,2,"div",4)),2&e&&(G("ngIf",r.options.closeButton),z(1),G("ngIf",r.title),z(1),G("ngIf",r.message&&r.options.enableHtml),z(1),G("ngIf",r.message&&!r.options.enableHtml),z(1),G("ngIf",r.options.progressBar))},directives:[dr],encapsulation:2,data:{animation:[So("flyInOut",[qa("inactive",Pt({opacity:0})),qa("active",Pt({opacity:1})),qa("removed",Pt({opacity:0})),kr("inactive => active",Pr("{{ easeTime }}ms {{ easing }}")),kr("active => removed",Pr("{{ easeTime }}ms {{ easing }}"))])]}}),n})();const yx=Object.assign(Object.assign({},Cw),{toastComponent:gx});let _x=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[{provide:bw,useValue:{default:yx,config:e}}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[Hc]]}),n})(),vx=(()=>{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(s=>{this.duplicatesCount=s})}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)(P(vu),P(_u),P(La))},n.\u0275cmp=Ot({type:n,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(e,r){1&e&&Re("click",function(){return r.tapToast()})("mouseenter",function(){return r.stickAround()})("mouseleave",function(){return r.delayedHideToast()}),2&e&&(di(r.toastClasses),po("display",r.displayStyle))},attrs:ww,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&&(de(0,nx,3,0,"button",0),de(1,ix,3,5,"div",1),de(2,sx,1,3,"div",2),de(3,ox,2,4,"div",3),de(4,ax,2,2,"div",4)),2&e&&(G("ngIf",r.options.closeButton),z(1),G("ngIf",r.title),z(1),G("ngIf",r.message&&r.options.enableHtml),z(1),G("ngIf",r.message&&!r.options.enableHtml),z(1),G("ngIf",r.options.progressBar))},directives:[dr],encapsulation:2}),n})();Object.assign(Object.assign({},Cw),{toastComponent:vx}),function(n){function t(c){for(var u,d,f=c[0],p=c[1],m=0,w=[];m<f.length;m++)d=f[m],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 s=window.webpackJsonp=window.webpackJsonp||[],o=s.push.bind(s);s.push=t,s=s.slice();for(var a=0;a<s.length;a++)t(s[a]);var l=o;i(i.s=103)}({103:function(n,t,e){e.r(t),function(r){var i=e(14);function s(m,w,E,S,b,F,j){try{var re=m[F](j),ve=re.value}catch(Pe){return void E(Pe)}re.done?w(ve):Promise.resolve(ve).then(S,b)}function o(m){return function(){var w=this,E=arguments;return new Promise(function(S,b){var F=m.apply(w,E);function j(ve){s(F,S,b,j,re,"next",ve)}function re(ve){s(F,S,b,j,re,"throw",ve)}j(void 0)})}}function a(m,w,E){return w in m?Object.defineProperty(m,w,{value:E,enumerable:!0,configurable:!0,writable:!0}):m[w]=E,m}function l(m,w){return E=m,(S=u(m,w,"get")).get?S.get.call(E):S.value;var E,S}function u(m,w,E){if(!w.has(m))throw new TypeError("attempted to "+E+" private field on non-instance");return w.get(m)}function d(){var m="https://applepay.cdn-apple.com/jsapi/v1/apple-pay-sdk.js",E=document.createElement("div"),S=m.slice(0,m.lastIndexOf("/"))||"",b=_=>{for(var g in E.setAttribute("data-"+_,""),E.dataset)return delete E.dataset[g],g},F=_=>{E.dataset[_]="";var g=E.attributes[0];return E.removeAttribute(g.name),g.name.slice(5)};function j(_){return S+_.replace(/^\.\//,"/")}function re(){var _;try{return null===(_=window.ApplePaySession)||void 0===_?void 0:_.canMakePayments()}catch(g){return console.warn(g),!1}}var ve=!1;if("undefined"!=typeof window){var Pe={get passive(){ve=!0}};window.addEventListener("testPassive",null,Pe),window.removeEventListener("testPassive",null,Pe)}var Ve="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),x=[],Y=!1,X=-1,ae=void 0,ie=void 0,Se=void 0,oe=function(_){return x.some(function(g){return!(!g.options.allowTouchMove||!g.options.allowTouchMove(_))})},N=function(_){var g=_||window.event;return!!oe(g.target)||g.touches.length>1||(g.preventDefault&&g.preventDefault(),!1)},ne=new WeakMap;class te extends HTMLElement{constructor(){super(),ne.set(this,{writable:!0,value:void 0}),a(this,"open",!1),a(this,"ready",!1),a(this,"url",Z.url),a(this,"theme",Z.theme),a(this,"locale",Z.locale),this.close=this.close.bind(this)}connectedCallback(){var g=this;return o(function*(){(function c(m,w,E){(function(S,b,F){if(b.set)b.set.call(S,F);else{if(!b.writable)throw new TypeError("attempted to set read only private field");b.value=F}})(m,u(m,w,"set"),E)})(g,ne,g.attachShadow({mode:"closed"})),g.update(),l(g,ne).addEventListener("click",C=>{C.preventDefault(),C.stopPropagation();var M=C.target.closest('a[href*="'.concat("#apple-pay-close",'"]'));M&&C.currentTarget.contains(M)&&g.close()}),g.addEventListener("click",C=>g.close())})()}show(){(function(_,g){if(_){if(!x.some(function(M){return M.targetElement===_})){var C={targetElement:_,options:{}};x=[].concat(function(M){if(Array.isArray(M)){for(var V=0,B=Array(M.length);V<M.length;V++)B[V]=M[V];return B}return Array.from(M)}(x),[C]),Ve?window.requestAnimationFrame(function(){if(void 0===ie){ie={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left};var M=window,V=M.scrollY,B=M.scrollX,fe=M.innerHeight;document.body.style.position="fixed",document.body.style.top=-V,document.body.style.left=-B,setTimeout(function(){return window.requestAnimationFrame(function(){var We=fe-window.innerHeight;We&&V>=fe&&(document.body.style.top=-(V+We))})},300)}}):function(M){if(void 0===Se)window,document;void 0===ae&&(ae=document.body.style.overflow,document.body.style.overflow="hidden")}(),Ve&&(_.ontouchstart=function(M){1===M.targetTouches.length&&(X=M.targetTouches[0].clientY)},_.ontouchmove=function(M){var V,B,We,fe;1===M.targetTouches.length&&(B=_,fe=(V=M).targetTouches[0].clientY-X,!oe(V.target)&&(B&&0===B.scrollTop&&fe>0||(We=B)&&We.scrollHeight-We.scrollTop<=We.clientHeight&&fe<0?N(V):V.stopPropagation()))},Y||(document.addEventListener("touchmove",N,ve?{passive:!1}:void 0),Y=!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 g=l(this,ne).querySelector("iframe");this.ready||(this.ready=!0,this.accessibilityTranslations(),Promise.race([new Promise(C=>g.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)?(x=x.filter(function(g){return g.targetElement!==_}),Ve&&(_.ontouchstart=null,_.ontouchmove=null,Y&&0===x.length&&(document.removeEventListener("touchmove",N,ve?{passive:!1}:void 0),Y=!1)),Ve?function(){if(void 0!==ie){var g=-parseInt(document.body.style.top,10),C=-parseInt(document.body.style.left,10);document.body.style.position=ie.position,document.body.style.top=ie.top,document.body.style.left=ie.left,window.scrollTo(C,g),ie=void 0}}():(void 0!==Se&&(document.body.style.paddingRight=Se,Se=void 0),void 0!==ae&&(document.body.style.overflow=ae,ae=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,ne).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 g=this;o(function*(){var C=yield(yield fetch(j("./merchandising-".concat(g.locale.split("-")[1].toLowerCase(),".json")))).json(),M=g.locale.split("-")[0],V=C.accessibility[M],B=/\{\{\s*([^\s]+)\s*\}\}/gi;l(g,ne).querySelectorAll("[data-accessibility]").forEach(fe=>{var We=fe.dataset.accessibility;fe.ariaLabel=V[We].replaceAll(B,(Et,On,ti)=>On),fe.alt=V[We].replaceAll(B,(Et,On,ti)=>On)})})()}static get observedAttributes(){return J}attributeChangedCallback(g,C,M){g=b(g),null==M?delete this[g]:this[g]="true"===M||"false"!==M&&(""===M||M),M!==C&&this.update()}}var Z={theme:"auto",locale:"en-US",url:""},J=Object.keys(Z).map(F);Object.assign(te.prototype,Z),customElements.define("apple-pay-merchandising-modal",te);var ke=document.createElement("apple-pay-merchandising-modal");document.contains(ke)||(document.body||document.documentElement).appendChild(ke);var le,Ye,Ge,we=function(_,g,C){if(!g.has(_))throw new TypeError("attempted to set private field on non-instance");return g.set(_,C),C},ce=function(_,g){if(!g.has(_))throw new TypeError("attempted to get private field on non-instance");return g.get(_)},it={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}}}},kt={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>'},Ct=/\{\{\s*([^\s]+)\s*\}\}/gi;"undefined"==typeof WEBVIEW&&(r.WEBVIEW=!1);class lt extends HTMLElement{constructor(){super(),this.locale=ht.locale,this.countryCode=ht.countryCode,this.currencyCode=ht.currencyCode,this.type=ht.type,this.modalType=ht.modalType,this.debug=!1,le.set(this,void 0),Ye.set(this,void 0),Ge.set(this,void 0),we(this,Ge,new Promise(g=>setTimeout(g)).then(()=>lt.getData({countryCode:this.countryCode,amount:this.amount,currencyCode:this.currencyCode,locale:this.locale})).then(g=>{var C=new Event("load");return this.dispatchEvent(C),this.data=g,new Promise(M=>setTimeout(M))},g=>{console.warn("Apple Pay Merchandising: unable to fetch merchandising data",g),this.disable()}).then(()=>{we(this,le,this.ownerDocument.createElement("div")),ce(this,le).className="theme-".concat(this.theme," content"),we(this,Ye,this.attachShadow({mode:"closed"})),ce(this,Ye).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>"),ce(this,Ye).appendChild(ce(this,le)),ce(this,Ye).addEventListener("click",g=>{var C,M,V=g.target.closest('a[href*="'.concat(this.data.modalUrl,'"]'));V&&g.currentTarget.contains(V)&&(g.preventDefault(),WEBVIEW?null===(M=null===(C=webkit.messageHandlers)||void 0===C?void 0:C.applePayDetails)||void 0===M||M.postMessage("show-modal"):(ke.setAttribute("locale",this.locale),ke.setAttribute("theme",this.theme),ke.setAttribute("url",this.data.modalUrl),ke.show()))})}))}connectedCallback(){var g=this;return o(function*(){yield ce(g,Ge),g.ready=!0,g.classList.add("ready"),g.update()})()}disconnectedCallback(){var g=this;return o(function*(){yield ce(g,Ge),g.disable()})()}disable(){var g,C;(null===(g=ce(this,Ye))||void 0===g?void 0:g.contains(ce(this,le)))&&(null===(C=ce(this,Ye))||void 0===C||C.removeChild(ce(this,le))),this.setAttribute("disabled",""),this.setAttribute("hidden",""),this.disabled=!0}enable(){var g;null===(g=ce(this,Ye))||void 0===g||g.appendChild(ce(this,le)),this.disabled=!1,this.removeAttribute("disabled"),this.removeAttribute("hidden")}update(){var g=this;return o(function*(){if(g.ready)if(g.debug||(yield lt.isEligible(g))){g.enable();var C=g.data=yield lt.getData(g),M=yield lt.fetchData(g),V=M.presets[g.type||ht.type]||M.presets.custom;"custom"===g.type&&(C.promoText=g.innerHTML);var B=new Intl.NumberFormat(g.locale,{style:"currency",currency:g.currencyCode,minimumFractionDigits:Number.isInteger(C.paymentsAmount)?0:2,currencyDisplay:"narrowSymbol"}),fe=Object.assign(Object.assign(Object.assign({},C),V),{paymentsAmount:B.format(C.paymentsAmount),hideLogo:C.logo?"":"hidden",hideText:C.promoText?"":"hidden",theme:g.theme||ht.theme,modalUrl:C.modalUrl}),We='<div class="paymark align-{{ logoAlign }} type-{{ logoType }} style-{{ logoStyle }}" {{ hideLogo }}>{{ logo }}</div><p class="theme-{{ theme }} text" {{ hideText }}>'.concat(C.promoText,"</p>");ce(g,le).innerHTML=We.replace(Ct,(Et,On)=>fe[On])}else g.disable()})()}static get observedAttributes(){return pr}attributeChangedCallback(g,C,M){g=b(g),null==M?delete this[g]:this[g]="true"===M||"false"!==M&&(""===M||M),C!==M&&this.update()}static fetchData({countryCode:g}){return o(function*(){var C,M=g.toLowerCase();try{C=it[M]||(it[M]=yield(yield fetch(j("./merchandising-".concat(M,".json")))).json())}catch(V){throw Error("Apple Pay Merchandising: unable to fetch merchandising data")}return C})()}static getData({countryCode:g,locale:C,amount:M,modalType:V="learn-more",theme:B="light",type:fe="plain"}){return o(function*(){var We,Et=yield lt.fetchData({countryCode:g}),On=(Et.text[C]||Et.text[C.slice(0,2)]||Et.text[Object.keys(Et.text)[0]])[fe]||"",ti=null===(We=Object.entries(Et.method).find(([,zi])=>zi.minAmount<=M&&zi.maxAmount>=M))||void 0===We?void 0:We[1],Ui=Et.presets[fe||ht.type]||Et.presets.custom,Ss=Math.round(M/ti.frequency*100)/100,jo=location.hostname||window.frames.top.document.location.hostname;if(C.split("-")[1].toLowerCase()!==g.toLowerCase())throw Error("Apple Pay Merchandising: unsupported locale");return Object.assign({logo:"none"===Ui.logoType?"":kt["apple_".concat(Ui.logoType,"_mark_").concat(Ui.logoStyle)],promoText:On,paymentsAmount:Ss,lastPaymentAmount:M-Ss*(ti.frequency-1),modalUrl:j("./".concat(V,".html"))+"#data=".concat(btoa(JSON.stringify(Object.assign({amount:M,theme:B,locale:C,referrerUrl:jo},ti))))},ti)})()}static isEligible({amount:g,currencyCode:C,countryCode:M}){return o(function*(){if(!function(B={}){try{return new PaymentRequest([{supportedMethods:"https://apple.com/apple-pay",data:{version:15,features:["applePayLater"],merchantIdentifier:"",countryCode:B.countryCode,supportedNetworks:["masterCard"],merchantCapabilities:["supports3DS"]}}],{total:{label:"applePayLater",amount:{currency:B.currencyCode,value:"0.00"}}}),!0}catch(fe){return!1}}({currencyCode:C,countryCode:M}))return!1;var V=yield lt.fetchData({countryCode:M});return C===V.currencyCode&&Object.entries(V.method).some(([,B])=>B.minAmount<=g&&B.maxAmount>=g)})()}}le=new WeakMap,Ye=new WeakMap,Ge=new WeakMap;var ht={merchantToken:null,amount:null,type:"plain",locale:"en-US",modalType:"learn-more",countryCode:"US",currencyCode:"USD",debug:!1,theme:"auto"},pr=Object.keys(ht).map(F);customElements.define("apple-pay-merchandising",lt),window.ApplePayMerchandising=lt;var Zn=["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 Kn(_){return(null==_?void 0:_.includes("-"))&&!!Zn.find(g=>g===_)}function ft(_){if(_){var g=_.trim().replace("_","-").split("-"),C=g[0].toLowerCase();return 1===g.length?C:C+"-"+g[1].toUpperCase()}}function Gt(_,g=!0){var B,fe,C=null==_?void 0:_.includes("-");if(C){var M=Zn.find(B=>B===_);if(M)return M}if(_&&(!C||g)){var V=(fe=null==(B=_)?void 0:B.split("-")[0],Zn.find(We=>new RegExp("^".concat(fe),"g").test(We)));if(V)return V}}function Nr(_){var g=function vs(_){var g=((void 0===navigator.languages?[navigator.language]:navigator.languages)||[]).map(ft),C=null==_?void 0:_.closest("[lang]"),M=(null==C?void 0:C.lang)?ft(C.lang):void 0;return M&&g.unshift(M),g}(_).reduce((C,M)=>{if(C&&C.includes("-"))return C;if(!C){if(Kn(M))return M;var V=(fe=null==(B=M)?void 0:B.split("-")[0])&&Zn.find(We=>We.startsWith(fe))?fe:void 0;if(V)return V}var B,fe;return C&&!C.includes("-")&&M.startsWith(C)&&Kn(M)?M:C},void 0);return((null==g?void 0:g.includes("-"))?g:Gt(g))||"en-US"}function ws(){try{return document.fonts.check("15px -apple-system")}catch(_){return!1}}function ct(_){return!!document.getElementById(bt(_))}function Po(_){var g=document.createElement("style");g.id=bt(_),g.innerHTML="@font-face{"+"font-family:apple-pay-btn-".concat(_,";")+"src:url(".concat(Yu("./assets/1.0.0/fonts/".concat(_,".woff2")),') format("woff2"),')+"url(".concat(Yu("./assets/1.0.0/fonts/".concat(_,".woff")),') format("woff");')+"font-display:block;}",document.head.appendChild(g)}function bt(_){return"apple-pay-btn-font-".concat(_)}function Yu(_){return S+_.replace(/^\.\//,"/")}var zm=["add-money","book","buy","check-out","continue","contribute","donate","order","pay","plain","reload","rent","set-up","subscribe","support","tip","top-up"];function cl(_){return zm.includes(_)}function Gm(_){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 Ju(_,g){var C=[..._.l[Gm(g)]],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 Wm(_,g){if("plain"===g)return"Apple Pay";var C=Ju(_,g);return _.rtl&&C.reverse(),C.reduce((M,V)=>M+("%@"===V.t?"Apple Pay":V.t),"")}function ko(_,g,C,M,V){var fe,B=g.t.replace(/\s/g,"&#160;");return'<text x="'.concat(_,'" y="').concat(function(fe){switch(fe){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"!==(fe=M)&&"th-TH"!==fe?'height="'.concat(g.h,'" width="').concat(g.w,'" ').concat(C?"":'textLength="'.concat(g.w,'"')):"",">")+"".concat(B,"</text>")}function ul(_,g,C,M,V){var B='<?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(g,'" height="').concat(C,'" width="').concat(35,'"'));return"black"!==M&&(B=B.replace('fill="#FFF"','fill="#000"')),B}function Xu(_){var g=Ju(_.metadata,_.buttonType),C=_.metadata.ls,{width:M,domStr:V}=g.reduce((B,fe,We)=>{var Et;if("%@"===fe.t){We>0&&new RegExp(/\s$/).test(B.prev)&&(B.width=B.width+1);var On=0===We||We===g.length-1;return{domStr:B.domStr+ul(B.width+.2,7.92,15,_.buttonStyle),width:B.width+35+(On?.2:.4),prev:fe.t}}return"%@"===B.prev&&(null===(Et=fe.t)||void 0===Et?void 0:Et.startsWith(" "))?B.width=B.width+1:"%@"===B.prev&&(B.width=B.width+.2),{domStr:B.domStr+ko(B.width,fe,!!_.metadata.rtl,_.locale,C),width:B.width+fe.w,prev:fe.t}},{width:12.5,domStr:"",prev:""});return{width:M+12.5,domStr:V}}function ed(_,g=!1){return'<svg id="svg-logo" viewBox="0 0 '.concat(35," ").concat(15,'" ').concat(g?'class="hidden"':"",">\n ").concat(ul(0,3.85,7.3,_,"svg-logo"),"\n </svg>")}function mr(_){if("plain"===_.buttonType)return ed(_.buttonStyle,!1);var{width:g,domStr:C}=Xu(_),M=ws();return'<svg id="svg-text" viewBox="0 0 '.concat(g,' 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(ed(_.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"}},ei=[],dl="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 hl,No,gr=function(_){return Object.freeze(_)},fl=function(_,g){this.inlineSize=_,this.blockSize=g,gr(this)},yn=function(){function _(g,C,M,V){return this.x=g,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,gr(this)}return _.prototype.toJSON=function(){var g=this;return{x:g.x,y:g.y,top:g.top,right:g.right,bottom:g.bottom,left:g.left,width:g.width,height:g.height}},_.fromRect=function(g){return new _(g.x,g.y,g.width,g.height)},_}(),Cs=function(_){return _ instanceof SVGElement&&"getBBox"in _},bs=function(_){if(Cs(_)){var g=_.getBBox();return!g.width&&!g.height}return!(_.offsetWidth||_.offsetHeight||_.getClientRects().length)},vi=function(_){var g,C;if(_ instanceof Element)return!0;var M=null===(C=null===(g=_)||void 0===g?void 0:g.ownerDocument)||void 0===C?void 0:C.defaultView;return!!(M&&_ instanceof M.Element)},Dt="undefined"!=typeof window?window:{},Ue=new WeakMap,wi=/auto|scroll/,Zm=/^tb|vertical/,Km=/msie|trident/i.test(Dt.navigator&&Dt.navigator.userAgent),Nn=function(_){return parseFloat(_||"0")},Hi=function(_,g,C){return void 0===_&&(_=0),void 0===g&&(g=0),void 0===C&&(C=!1),new fl((C?g:_)||0,(C?_:g)||0)},td=gr({devicePixelContentBoxSize:Hi(),borderBoxSize:Hi(),contentBoxSize:Hi(),contentRect:new yn(0,0,0,0)}),nd=function(_,g){if(void 0===g&&(g=!1),Ue.has(_)&&!g)return Ue.get(_);if(bs(_))return Ue.set(_,td),td;var C=getComputedStyle(_),M=Cs(_)&&_.ownerSVGElement&&_.getBBox(),V=!Km&&"border-box"===C.boxSizing,B=Zm.test(C.writingMode||""),fe=!M&&wi.test(C.overflowY||""),We=!M&&wi.test(C.overflowX||""),Et=M?0:Nn(C.paddingTop),On=M?0:Nn(C.paddingRight),ti=M?0:Nn(C.paddingBottom),Ui=M?0:Nn(C.paddingLeft),Ss=M?0:Nn(C.borderTopWidth),jo=M?0:Nn(C.borderRightWidth),zi=M?0:Nn(C.borderBottomWidth),ad=Ui+On,ld=Et+ti,Ho=(M?0:Nn(C.borderLeftWidth))+jo,Uo=Ss+zi,cd=We?_.offsetHeight-Uo-_.clientHeight:0,Qn=fe?_.offsetWidth-Ho-_.clientWidth:0,ud=V?ad+Ho:0,Gi=V?ld+Uo:0,Ms=M?M.width:Nn(C.width)-ud-Qn,Ts=M?M.height:Nn(C.height)-Gi-cd,wl=Ms+ad+Qn+Ho,Cl=Ts+ld+cd+Uo,dd=gr({devicePixelContentBoxSize:Hi(Math.round(Ms*devicePixelRatio),Math.round(Ts*devicePixelRatio),B),borderBoxSize:Hi(wl,Cl,B),contentBoxSize:Hi(Ms,Ts,B),contentRect:new yn(Ui,Et,Ms,Ts)});return Ue.set(_,dd),dd},pl=function(_,g,C){var M=nd(_,C),V=M.borderBoxSize,B=M.contentBoxSize,fe=M.devicePixelContentBoxSize;switch(g){case _i.DEVICE_PIXEL_CONTENT_BOX:return fe;case _i.BORDER_BOX:return V;default:return B}},Or=function(_){var g=nd(_);this.target=_,this.contentRect=g.contentRect,this.borderBoxSize=gr([g.borderBoxSize]),this.contentBoxSize=gr([g.contentBoxSize]),this.devicePixelContentBoxSize=gr([g.devicePixelContentBoxSize])},ml=function(_){if(bs(_))return 1/0;for(var g=0,C=_.parentNode;C;)g+=1,C=C.parentNode;return g},Qm=function(){var _=1/0,g=[];ei.forEach(function(V){if(0!==V.activeTargets.length){var B=[];V.activeTargets.forEach(function(fe){var We=new Or(fe.target),Et=ml(fe.target);B.push(We),fe.lastReportedSize=pl(fe.target,fe.observedBox),Et<_&&(_=Et)}),g.push(function(){V.callback.call(V.observer,B,V.observer)}),V.activeTargets.splice(0,V.activeTargets.length)}});for(var C=0,M=g;C<M.length;C++)(0,M[C])();return _},Oo=function(_){ei.forEach(function(g){g.activeTargets.splice(0,g.activeTargets.length),g.skippedTargets.splice(0,g.skippedTargets.length),g.observationTargets.forEach(function(C){C.isActive()&&(ml(C.target)>_?g.activeTargets.push(C):g.skippedTargets.push(C))})})},gl=[],Fo=0,yl={attributes:!0,characterData:!0,childList:!0,subtree:!0},Lo=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Ci=function(_){return void 0===_&&(_=0),Date.now()+_},Ro=!1,Ds=new(function(){function _(){var g=this;this.stopped=!0,this.listener=function(){return g.schedule()}}return _.prototype.run=function(g){var C=this;if(void 0===g&&(g=250),!Ro){Ro=!0;var M,V=Ci(g);M=function(){var B=!1;try{B=function(){var _,g=0;for(Oo(g);ei.some(function(C){return C.activeTargets.length>0});)g=Qm(),Oo(g);return ei.some(function(C){return C.skippedTargets.length>0})&&("function"==typeof ErrorEvent?_=new ErrorEvent("error",{message:dl}):((_=document.createEvent("Event")).initEvent("error",!1,!1),_.message=dl),window.dispatchEvent(_)),g>0}()}finally{if(Ro=!1,g=V-Ci(),!Fo)return;B?C.run(1e3):g>0?C.run(g):C.start()}},function(_){if(!hl){var g=0,C=document.createTextNode("");new MutationObserver(function(){return gl.splice(0).forEach(function(M){return M()})}).observe(C,{characterData:!0}),hl=function(){C.textContent=""+(g?g--:g++)}}gl.push(function(){requestAnimationFrame(M)}),hl()}()}},_.prototype.schedule=function(){this.stop(),this.run()},_.prototype.observe=function(){var g=this,C=function(){return g.observer&&g.observer.observe(document.body,yl)};document.body?C():Dt.addEventListener("DOMContentLoaded",C)},_.prototype.start=function(){var g=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Lo.forEach(function(C){return Dt.addEventListener(C,g.listener,!0)}))},_.prototype.stop=function(){var g=this;this.stopped||(this.observer&&this.observer.disconnect(),Lo.forEach(function(C){return Dt.removeEventListener(C,g.listener,!0)}),this.stopped=!0)},_}()),rd=function(_){!Fo&&_>0&&Ds.start(),!(Fo+=_)&&Ds.stop()},id=function(){function _(g,C){this.target=g,this.observedBox=C||_i.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return _.prototype.isActive=function(){var g,C=pl(this.target,this.observedBox,!0);return Cs(g=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}(g)||"inline"!==getComputedStyle(g).display||(this.lastReportedSize=C),this.lastReportedSize.inlineSize!==C.inlineSize||this.lastReportedSize.blockSize!==C.blockSize},_}(),Xm=function(_,g){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=_,this.callback=g},$o=new WeakMap,_l=function(_,g){for(var C=0;C<_.length;C+=1)if(_[C].target===g)return C;return-1},Vo=function(){function _(){}return _.connect=function(g,C){var M=new Xm(g,C);$o.set(g,M)},_.observe=function(g,C,M){var V=$o.get(g),B=0===V.observationTargets.length;_l(V.observationTargets,C)<0&&(B&&ei.push(V),V.observationTargets.push(new id(C,M&&M.box)),rd(1),Ds.schedule())},_.unobserve=function(g,C){var M=$o.get(g),V=_l(M.observationTargets,C);V>=0&&(1===M.observationTargets.length&&ei.splice(ei.indexOf(M),1),M.observationTargets.splice(V,1),rd(-1))},_.disconnect=function(g){var C=this,M=$o.get(g);M.observationTargets.slice().forEach(function(V){return C.unobserve(g,V.target)}),M.activeTargets.splice(0,M.activeTargets.length)},_}(),sd=function(){function _(g){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof g)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Vo.connect(this,g)}return _.prototype.observe=function(g,C){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!vi(g))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Vo.observe(this,g,C)},_.prototype.unobserve=function(g){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!vi(g))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Vo.unobserve(this,g)},_.prototype.disconnect=function(){Vo.disconnect(this)},_.toString=function(){return"function ResizeObserver () { [polyfill code] }"},_}();No=Nr(document.documentElement),ws()||ct(No)||Po(No);var vl=ws(),Bo=class extends HTMLElement{constructor(){super(),this.__registerHost(),Object(i.b)(this),this.logoOnly=!1,this.fontLoading=!vl,this.buttonStyle="black",this.type="buy"}checkStyle(_,g){var C=bi(_,g);C!==_&&this.element.setAttribute("buttonstyle",C)}checkType(_,g){var C=Es(_,g);C!==_&&this.element.setAttribute("type",C),this.metadata&&(this.minButtonWidth=this.getMinButtonWidth(this.metadata))}verifyLocaleAndSwapMetadata(_){this._locale=this.adjustLocaleAndSetLangIfNecessary(_),vl||this.loadFontIfNecessary(this._locale),this.metadata=qm[this._locale],this.minButtonWidth=this.getMinButtonWidth(this.metadata)}componentWillLoad(){var _=this;return o(function*(){var g=bi(_.buttonStyle);g!==_.buttonStyle&&_.element.setAttribute("buttonstyle",g);var C=Es(_.type);C!==_.type&&_.element.setAttribute("type",C),_.verifyLocaleAndSwapMetadata(_.locale)})()}componentDidRender(){this.validateFontSize(this.container.offsetWidth)}componentDidLoad(){new sd((_,g)=>{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 g,C,M,V;"plain"!==this.type&&(_<this.minButtonWidth?(null===(g=this.container.querySelector("#svg-text"))||void 0===g||g.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;"+(re()?"":"display:none;")+"}"}loadFontIfNecessary(_){try{var g=document.fonts.check("15px apple-pay-btn-".concat(_)),C=ct(_);C||Po(_),this.fontLoading=!C||!g,this.fontLoading&&document.fonts.ready.then(()=>setTimeout(()=>{this.fontLoading=!1},0))}catch(M){this.fontLoading=!1}}getMinButtonWidth(_){var B,g=Es(this.type),{width:C,height:M}="plain"===(B=g)?{width:35,height:15}:{width:Xu({metadata:_,buttonType:B}).width,height:18};return 15*C/M}adjustLocaleAndSetLangIfNecessary(_){var g=function(M){if(M){var V=Gt(ft(M));if(V)return V}}(_);if(g){g!==_&&this.element.setAttribute("locale",g);var C=g.replace("_","-");this.element.setAttribute("lang",C)}else this.element.removeAttribute("locale"),this.element.removeAttribute("lang"),g=Nr(this.element);return g}render(){var _=bi(this.buttonStyle),g=Es(this.type);return Object(i.c)(i.a,{"aria-hidden":re()?void 0:"true"},Object(i.c)("div",{class:"apple-pay-btn-wrapper ".concat(g," ").concat(this._locale),style:{visibility:this.fontLoading?"hidden":"visible"}},Object(i.c)("style",null,this.getStyle(g)),Object(i.c)("button",{"aria-label":Wm(this.metadata,g),class:"apple-pay-btn ".concat(_)},Object(i.c)("span",{ref:C=>this.container=C,innerHTML:mr({metadata:this.metadata,locale:this._locale,buttonStyle:_,buttonType:g})}))))}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(_,g){var C=["black","white-outline","white"],M=_.trim();return C.includes(M)?M:g&&C.includes(g)?g:"black"}function Es(_,g){var C=_.trim();return cl(C)?C:g&&cl(g)?g:"buy"}"undefined"!=typeof customElements&&[Object(i.d)(Bo,[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 m,w,E,S,p=!0;try{p=globalThis}catch(m){p=!1}window.customElements&&window.fetch&&Symbol("desc").description&&p?d():(m=e.p+"/polyfills.js",w=d,E=document.body,(S=document.createElement("script")).src=m,S.onload=w,S.onreadystatechange=w,E.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,s;function ei(h,y,v,D,T,I,k){try{var A=h[I](k),L=A.value}catch(R){return void v(R)}A.done?y(L):Promise.resolve(L).then(D,T)}function dl(h){return function(){var y=this,v=arguments;return new Promise(function(D,T){var I=h.apply(y,v);function k(L){ei(I,D,T,k,A,"next",L)}function A(L){ei(I,D,T,k,A,"throw",L)}k(void 0)})}}e.d(t,"a",function(){return Ro}),e.d(t,"b",function(){return xN}),e.d(t,"c",function(){return Lo}),e.d(t,"d",function(){return AN});var h,No=!1,gr=!1,fl=!1,yn=!1,bs=!1,vi="undefined"!=typeof window?window:{},Dt=vi.document||{head:{}},Ue={$flags$:0,$resourcesUrl$:"",jmp:h=>h(),raf:h=>requestAnimationFrame(h),ael:(h,y,v,D)=>h.addEventListener(y,v,D),rel:(h,y,v,D)=>h.removeEventListener(y,v,D),ce:(h,y)=>new CustomEvent(h,y)},Zm=(()=>{var h=!1;try{Dt.addEventListener("e",null,Object.defineProperty({},"passive",{get(){h=!0}}))}catch(y){}return h})(),Km=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(h){}return!1})(),Nn=(h,y,v,D)=>{v&&v.map(([T,I,k])=>{var A=td(h,T),L=Hi(y,k),R=nd(T);Ue.ael(A,I,L,R),(y.$rmListeners$=y.$rmListeners$||[]).push(()=>Ue.rel(A,I,L,R))})},Hi=(h,y)=>v=>{try{h.$hostElement$[y](v)}catch(D){Di(D)}},td=(h,y)=>4&y?Dt:8&y?vi:16&y?Dt.body:h,nd=h=>Zm?{passive:0!=(1&h),capture:0!=(2&h)}:0!=(2&h),pl="http://www.w3.org/1999/xlink",ml=new WeakMap,gl=(h,y)=>"sc-"+(y&&32&h.$flags$?h.$tagName$+"-"+y:h.$tagName$),Fo={},yl=h=>"object"==(h=typeof h)||"function"===h,Lo=(h,y,...v)=>{var D=null,T=null,I=null,k=!1,A=!1,L=[],R=Oe=>{for(var Lt=0;Lt<Oe.length;Lt++)D=Oe[Lt],Array.isArray(D)?R(D):null!=D&&"boolean"!=typeof D&&((k="function"!=typeof h&&!yl(D))&&(D=String(D)),k&&A?L[L.length-1].$text$+=D:L.push(k?Ci(null,D):D),A=k)};if(R(v),y&&(y.key&&(T=y.key),y.name&&(I=y.name),1)){var ge=y.className||y.class;ge&&(y.class="object"!=typeof ge?ge:Object.keys(ge).filter(Oe=>ge[Oe]).join(" "))}if("function"==typeof h)return h(null===y?{}:y,L,rd);var ye=Ci(h,null);return ye.$attrs$=y,L.length>0&&(ye.$children$=L),ye.$key$=T,ye.$name$=I,ye},Ci=(h,y)=>({$flags$:0,$tag$:h,$text$:y,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),Ro={},rd={forEach:(h,y)=>h.map(id).forEach(y),map:(h,y)=>h.map(id).map(y).map(Xm)},id=h=>({vattrs:h.$attrs$,vchildren:h.$children$,vkey:h.$key$,vname:h.$name$,vtag:h.$tag$,vtext:h.$text$}),Xm=h=>{if("function"==typeof h.vtag){var y=Object.assign({},h.vattrs);return h.vkey&&(y.key=h.vkey),h.vname&&(y.name=h.vname),Lo(h.vtag,y,...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},_l=(h,y,v,D,T,I)=>{if(v!==D){var k=BC(h,y),A=y.toLowerCase();if("class"===y){var L=h.classList,R=sd(v),ge=sd(D);L.remove(...R.filter(Wt=>Wt&&!ge.includes(Wt))),L.add(...ge.filter(Wt=>Wt&&!R.includes(Wt)))}else if("style"===y){for(var ye in v)D&&null!=D[ye]||(ye.includes("-")?h.style.removeProperty(ye):h.style[ye]="");for(var Oe in D)v&&D[Oe]===v[Oe]||(Oe.includes("-")?h.style.setProperty(Oe,D[Oe]):h.style[Oe]=D[Oe])}else if("key"!==y)if("ref"===y)D&&D(h);else if(h.__lookupSetter__(y)||"o"!==y[0]||"n"!==y[1]){var Lt=yl(D);if((k||Lt&&null!==D)&&!T)try{if(h.tagName.includes("-"))h[y]=D;else{var tn=null==D?"":D;"list"===y?k=!1:null!=v&&h[y]==tn||(h[y]=tn)}}catch(Wt){}var Rt=!1;A!==(A=A.replace(/^xlink\:?/,""))&&(y=A,Rt=!0),null==D||!1===D?!1===D&&""!==h.getAttribute(y)||(Rt?h.removeAttributeNS(pl,y):h.removeAttribute(y)):(!k||4&I||T)&&!Lt&&(D=!0===D?"":D,Rt?h.setAttributeNS(pl,y,D):h.setAttribute(y,D))}else y="-"===y[2]?y.slice(3):BC(vi,A)?A.slice(2):A[2]+y.slice(3),v&&Ue.rel(h,y,v,!1),D&&Ue.ael(h,y,D,!1)}},Vo=/\s/,sd=h=>h?h.split(Vo):[],vl=(h,y,v,D)=>{var T=11===y.$elm$.nodeType&&y.$elm$.host?y.$elm$.host:y.$elm$,I=h&&h.$attrs$||Fo,k=y.$attrs$||Fo;for(D in I)D in k||_l(T,D,I[D],void 0,v,y.$flags$);for(D in k)_l(T,D,I[D],k[D],v,y.$flags$)},Bo=(h,y,v,D)=>{var T,I,k,A=y.$children$[v],L=0;if(!No&&(fl=!0,"slot"===A.$tag$&&(r&&D.classList.add(r+"-s"),A.$flags$|=A.$children$?2:1)),null!==A.$text$)T=A.$elm$=Dt.createTextNode(A.$text$);else if(1&A.$flags$)T=A.$elm$=Dt.createTextNode("");else{if(!yn&&(yn="svg"===A.$tag$),T=A.$elm$=Dt.createElementNS(yn?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&A.$flags$?"slot-fb":A.$tag$),yn&&"foreignObject"===A.$tag$&&(yn=!1),vl(null,A,yn),null!=r&&T["s-si"]!==r&&T.classList.add(T["s-si"]=r),A.$children$)for(L=0;L<A.$children$.length;++L)(I=Bo(h,A,L,T))&&T.appendChild(I);"svg"===A.$tag$?yn=!1:"foreignObject"===T.tagName&&(yn=!0)}return T["s-hn"]=s,3&A.$flags$&&(T["s-sr"]=!0,T["s-cr"]=i,T["s-sn"]=A.$name$||"",(k=h&&h.$children$&&h.$children$[v])&&k.$tag$===A.$tag$&&h.$elm$&&bi(h.$elm$,!1)),T},bi=(h,y)=>{Ue.$flags$|=1;for(var v=h.childNodes,D=v.length-1;D>=0;D--){var T=v[D];T["s-hn"]!==s&&T["s-ol"]&&(C(T).insertBefore(T,g(T)),T["s-ol"].remove(),T["s-ol"]=void 0,fl=!0),y&&bi(T,y)}Ue.$flags$&=-2},Es=(h,y,v,D,T,I)=>{var k,A=h["s-cr"]&&h["s-cr"].parentNode||h;for(A.shadowRoot&&A.tagName===s&&(A=A.shadowRoot);T<=I;++T)D[T]&&(k=Bo(null,v,T,h))&&(D[T].$elm$=k,A.insertBefore(k,g(y)))},od=(h,y,v,D,T)=>{for(;y<=v;++y)(D=h[y])&&(T=D.$elm$,Et(D),gr=!0,T["s-ol"]?T["s-ol"].remove():bi(T,!0),T.remove())},_=(h,y)=>h.$tag$===y.$tag$&&("slot"===h.$tag$?h.$name$===y.$name$:h.$key$===y.$key$),g=h=>h&&h["s-ol"]||h,C=h=>(h["s-ol"]?h["s-ol"]:h).parentNode,M=(h,y)=>{var v,D=y.$elm$=h.$elm$,T=h.$children$,I=y.$children$,k=y.$tag$,A=y.$text$;null!==A?(v=D["s-cr"])?v.parentNode.textContent=A:h.$text$!==A&&(D.data=A):(yn="svg"===k||"foreignObject"!==k&&yn,"slot"===k||vl(h,y,yn),null!==T&&null!==I?((L,R,ge,ye)=>{for(var Oe,Lt,tn=0,Rt=0,Wt=0,ni=0,Tn=R.length-1,St=R[0],Fr=R[Tn],Ei=ye.length-1,Yn=ye[0],ri=ye[Ei];tn<=Tn&&Rt<=Ei;)if(null==St)St=R[++tn];else if(null==Fr)Fr=R[--Tn];else if(null==Yn)Yn=ye[++Rt];else if(null==ri)ri=ye[--Ei];else if(_(St,Yn))M(St,Yn),St=R[++tn],Yn=ye[++Rt];else if(_(Fr,ri))M(Fr,ri),Fr=R[--Tn],ri=ye[--Ei];else if(_(St,ri))"slot"!==St.$tag$&&"slot"!==ri.$tag$||bi(St.$elm$.parentNode,!1),M(St,ri),L.insertBefore(St.$elm$,Fr.$elm$.nextSibling),St=R[++tn],ri=ye[--Ei];else if(_(Fr,Yn))"slot"!==St.$tag$&&"slot"!==ri.$tag$||bi(Fr.$elm$.parentNode,!1),M(Fr,Yn),L.insertBefore(Fr.$elm$,St.$elm$),Fr=R[--Tn],Yn=ye[++Rt];else{for(Wt=-1,ni=tn;ni<=Tn;++ni)if(R[ni]&&null!==R[ni].$key$&&R[ni].$key$===Yn.$key$){Wt=ni;break}Wt>=0?((Lt=R[Wt]).$tag$!==Yn.$tag$?Oe=Bo(R&&R[Rt],ge,Wt,L):(M(Lt,Yn),R[Wt]=void 0,Oe=Lt.$elm$),Yn=ye[++Rt]):(Oe=Bo(R&&R[Rt],ge,Rt,L),Yn=ye[++Rt]),Oe&&C(St.$elm$).insertBefore(Oe,g(St.$elm$))}tn>Tn?Es(L,null==ye[Ei+1]?null:ye[Ei+1].$elm$,ge,ye,Rt,Ei):Rt>Ei&&od(R,tn,Tn)})(D,T,y,I):null!==I?(null!==h.$text$&&(D.textContent=""),Es(D,null,y,I,0,I.length-1)):null!==T&&od(T,0,T.length-1),yn&&"svg"===k&&(yn=!1))},V=h=>{var y,v,D,T,I,k,A=h.childNodes;for(v=0,D=A.length;v<D;v++)if(1===(y=A[v]).nodeType){if(y["s-sr"])for(I=y["s-sn"],y.hidden=!1,T=0;T<D;T++)if(k=A[T].nodeType,A[T]["s-hn"]!==y["s-hn"]||""!==I){if(1===k&&I===A[T].getAttribute("slot")){y.hidden=!0;break}}else if(1===k||3===k&&""!==A[T].textContent.trim()){y.hidden=!0;break}V(y)}},B=[],fe=h=>{for(var y,v,D,T,I,k,A=0,L=h.childNodes,R=L.length;A<R;A++){if((y=L[A])["s-sr"]&&(v=y["s-cr"])&&v.parentNode)for(T=y["s-sn"],k=(D=v.parentNode.childNodes).length-1;k>=0;k--)(v=D[k])["s-cn"]||v["s-nr"]||v["s-hn"]===y["s-hn"]||(We(v,T)?(I=B.find(ge=>ge.$nodeToRelocate$===v),gr=!0,v["s-sn"]=v["s-sn"]||T,I?I.$slotRefNode$=y:B.push({$slotRefNode$:y,$nodeToRelocate$:v}),v["s-sr"]&&B.map(ge=>{We(ge.$nodeToRelocate$,v["s-sn"])&&(I=B.find(ye=>ye.$nodeToRelocate$===v))&&!ge.$slotRefNode$&&(ge.$slotRefNode$=I.$slotRefNode$)})):B.some(ge=>ge.$nodeToRelocate$===v)||B.push({$nodeToRelocate$:v}));1===y.nodeType&&fe(y)}},We=(h,y)=>1===h.nodeType?null===h.getAttribute("slot")&&""===y||h.getAttribute("slot")===y:h["s-sn"]===y||""===y,Et=h=>{h.$attrs$&&h.$attrs$.ref&&h.$attrs$.ref(null),h.$children$&&h.$children$.map(Et)},On=(h,y)=>{var v=h.$hostElement$,D=h.$cmpMeta$,T=h.$vnode$||Ci(null,null),I=(h=>h&&h.$tag$===Ro)(y)?y:Lo(null,null,y);if(s=v.tagName,D.$attrsToReflect$&&(I.$attrs$=I.$attrs$||{},D.$attrsToReflect$.map(([Lt,tn])=>I.$attrs$[tn]=v[Lt])),I.$tag$=null,I.$flags$|=4,h.$vnode$=I,I.$elm$=T.$elm$=v.shadowRoot||v,r=v["s-sc"],i=v["s-cr"],No=0!=(1&D.$flags$),gr=!1,M(T,I),Ue.$flags$|=1,fl){var k,A,L,R,ge,ye;fe(I.$elm$);for(var Oe=0;Oe<B.length;Oe++)(A=(k=B[Oe]).$nodeToRelocate$)["s-ol"]||((L=Dt.createTextNode(""))["s-nr"]=A,A.parentNode.insertBefore(A["s-ol"]=L,A));for(Oe=0;Oe<B.length;Oe++)if(A=(k=B[Oe]).$nodeToRelocate$,k.$slotRefNode$){for(R=k.$slotRefNode$.parentNode,ge=k.$slotRefNode$.nextSibling,L=A["s-ol"];L=L.previousSibling;)if((ye=L["s-nr"])&&ye["s-sn"]===A["s-sn"]&&R===ye.parentNode&&(!(ye=ye.nextSibling)||!ye["s-nr"])){ge=ye;break}(!ge&&R!==A.parentNode||A.nextSibling!==ge)&&A!==ge&&(!A["s-hn"]&&A["s-ol"]&&(A["s-hn"]=A["s-ol"].parentNode.nodeName),R.insertBefore(A,ge))}else 1===A.nodeType&&(A.hidden=!0)}gr&&V(I.$elm$),Ue.$flags$&=-2,B.length=0},zi=(h,y)=>{h.$flags$|=16;return ON(()=>ad(h,y))},ad=(h,y)=>{var v,D=h.$hostElement$,I=D;return y?(Gi(D,"componentWillLoad"),v=Qn(I,"componentWillLoad")):(Gi(D,"componentWillUpdate"),v=Qn(I,"componentWillUpdate")),Gi(D,"componentWillRender"),v=ud(v,()=>Qn(I,"componentWillRender")),ud(v,()=>ld(h,I,y))},ld=(h=dl(function*(y,v,D){var T=y.$hostElement$;D&&(h=>{var y=h.$cmpMeta$,v=h.$hostElement$,D=y.$flags$,I=((h,y,v,D)=>{var T=gl(y,v),I=pd.get(T);if(h=11===h.nodeType?h:Dt,I)if("string"==typeof I){var k,A=ml.get(h=h.head||h);A||ml.set(h,A=new Set),A.has(T)||((k=Dt.createElement("style")).innerHTML=I,h.insertBefore(k,h.querySelector("link")),A&&A.add(T))}else!h.adoptedStyleSheets.includes(I)&&(h.adoptedStyleSheets=[...h.adoptedStyleSheets,I]);return T})(v.shadowRoot?v.shadowRoot:v.getRootNode(),y,h.$modeName$);10&D&&(v["s-sc"]=I,v.classList.add(I+"-h"),2&D&&v.classList.add(I+"-s"))})(y);Ho(y,v,T),Uo(y)}),function(y,v,D){return h.apply(this,arguments)}),Ho=(h,y,v)=>{try{y=y.render&&y.render(),h.$flags$&=-17,h.$flags$|=2,On(h,y)}catch(A){Di(A,h.$hostElement$)}return null},Uo=h=>{var v=h.$hostElement$,T=v;Qn(T,"componentDidRender"),Gi(v,"componentDidRender"),64&h.$flags$?(Qn(T,"componentDidUpdate"),Gi(v,"componentDidUpdate")):(h.$flags$|=64,Qn(T,"componentDidLoad"),Gi(v,"componentDidLoad"))},Qn=(h,y,v)=>{if(h&&h[y])try{return h[y](v)}catch(D){Di(D)}},ud=(h,y)=>h&&h.then?h.then(y):y(),Gi=(h,y)=>{},LC=(h,y,v)=>{if(y.$members$){h.watchers&&(y.$watchers$=h.watchers);var D=Object.entries(y.$members$),T=h.prototype;D.map(([k,[A]])=>{(31&A||32&A)&&Object.defineProperty(T,k,{get(){return L=k,zo(this).$instanceValues$.get(L);var L},set(L){((h,y,v,D)=>{var T,I,k=zo(h),A=h,L=k.$instanceValues$.get(y),R=k.$flags$,ge=A;if(I=D.$members$[y][0],(v=null==(T=v)||yl(T)?T:4&I?"false"!==T&&(""===T||!!T):2&I?parseFloat(T):1&I?String(T):T)!==L&&(k.$instanceValues$.set(y,v),1)){if(D.$watchers$&&128&R){var ye=D.$watchers$[y];ye&&ye.map(Oe=>{try{ge[Oe](v,L,y)}catch(Lt){Di(Lt,A)}})}if(2==(18&R)){if(ge.componentShouldUpdate&&!1===ge.componentShouldUpdate(v,L,y))return;zi(k,!1)}}})(this,k,L,y)},configurable:!0,enumerable:!0})});var I=new Map;T.attributeChangedCallback=function(k,A,L){Ue.jmp(()=>{var R=I.get(k);this[R]=(null!==L||"boolean"!=typeof this[R])&&L})},h.observedAttributes=D.filter(([k,A])=>15&A[0]).map(([k,A])=>{var L=A[1]||k;return I.set(L,k),512&A[0]&&y.$attrsToReflect$.push([k,L]),L})}return h},RC=function(){var h=dl(function*(y,v,D,T,I){if(0==(32&v.$flags$)&&(I=y.constructor,v.$flags$|=160,I.style)){var L=I.style;"string"!=typeof L&&(L=L[v.$modeName$=(h=>kN.map(y=>y(h)).find(y=>!!y))(y)]);var R=gl(D,v.$modeName$);if(!pd.has(R)){((h,y,v)=>{var D=pd.get(h);Km&&v?(D=D||new CSSStyleSheet).replace(y):D=y,pd.set(h,D)})(R,L,!!(1&D.$flags$))}}zi(v,!0)});return function(y,v,D,T,I){return h.apply(this,arguments)}}(),AN=(h,y)=>{var v={$flags$:y[0],$tagName$:y[1]};v.$members$=y[2],v.$listeners$=y[3],v.$watchers$=h.$watchers$,v.$attrsToReflect$=[];var D=h.prototype.connectedCallback,T=h.prototype.disconnectedCallback;return Object.assign(h.prototype,{__registerHost(){IN(this,v)},connectedCallback(){(h=>{if(0==(1&Ue.$flags$)){var y=zo(h),v=y.$cmpMeta$;1&y.$flags$?Nn(h,y,v.$listeners$):(y.$flags$|=1,12&v.$flags$&&(h=>{var y=h["s-cr"]=Dt.createComment("");y["s-cn"]=!0,h.insertBefore(y,h.firstChild)})(h),RC(h,y,v))}})(this),D&&D.call(this)},disconnectedCallback(){(h=>{if(0==(1&Ue.$flags$)){var y=zo(this);y.$rmListeners$&&(y.$rmListeners$.map(D=>D()),y.$rmListeners$=void 0)}})(),T&&T.call(this)}}),h.is=v.$tagName$,LC(h,v)},xN=h=>{h.attachShadow({mode:"open"})},VC=new WeakMap,zo=h=>VC.get(h),IN=(h,y)=>{var v={$flags$:0,$hostElement$:h,$cmpMeta$:y,$instanceValues$:new Map};return Nn(h,v,y.$listeners$),VC.set(h,v)},BC=(h,y)=>y in h,Di=(h,y)=>(0,console.error)(h,y),pd=new Map,kN=[],eg=[],As=[],UC=h=>{for(var y=0;y<h.length;y++)try{h[y](performance.now())}catch(v){Di(v)}h.length=0},md=()=>{UC(eg),UC(As),(bs=eg.length>0)&&Ue.raf(md)},ON=((h,y)=>v=>{h.push(v),bs||(bs=!0,4&Ue.$flags$?(h=>{Promise.resolve(void 0).then(h)})(md):Ue.raf(md))})(As)},195:function(n,t,e){e.r(t),e.d(t,"scopeCss",function(){return Y});var r=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",i=new RegExp("(-shadowcsshost"+r,"gim"),s=new RegExp("(-shadowcsscontext"+r,"gim"),o=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,m=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,w=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,E=/([{}])/g,S=(X,ae)=>{var ie=b(X),Se=0;return ie.escapedString.replace(w,(...oe)=>{var N=oe[2],$="",H=oe[4],ne="";H&&H.startsWith("{%BLOCK%")&&($=ie.blocks[Se++],H=H.substring(8),ne="{");var te=ae({selector:N,content:$});return"".concat(oe[1]).concat(te.selector).concat(oe[3]).concat(ne).concat(te.content).concat(H)})},b=X=>{for(var ae=X.split(E),ie=[],Se=[],oe=0,N=[],$=0;$<ae.length;$++){var H=ae[$];"}"===H&&oe--,oe>0?N.push(H):(N.length>0&&(Se.push(N.join("")),ie.push("%BLOCK%"),N=[]),ie.push(H)),"{"===H&&oe++}return N.length>0&&(Se.push(N.join("")),ie.push("%BLOCK%")),{escapedString:ie.join(""),blocks:Se}},F=(X,ae,ie)=>X.replace(ae,(...Se)=>{if(Se[2]){for(var oe=Se[2].split(","),N=[],$=0;$<oe.length;$++){var H=oe[$].trim();if(!H)break;N.push(ie("-shadowcsshost-no-combinator",H,Se[3]))}return N.join(",")}return"-shadowcsshost-no-combinator"+Se[3]}),j=(X,ae,ie)=>X+ae.replace("-shadowcsshost","")+ie,re=(X,ae,ie)=>ae.indexOf("-shadowcsshost")>-1?j(X,ae,ie):X+ae+ie+", "+ae+" "+X+ie,Ve=(X,ae,ie,Se,oe)=>S(X,N=>{var te,Z,J,$=N.selector,H=N.content;return"@"!==N.selector[0]?(te=ae,Z=ie,J=Se,$=N.selector.split(",").map(ke=>J&&ke.indexOf("."+J)>-1?ke.trim():((X,ae)=>{return!(ie=ae,ie=ie.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+ie+")([>\\s~+[.,{:][\\s\\S]*)?$","m")).test(X);var ie})(ke,te)?((X,ae,ie)=>{for(var Se,oe="."+(ae=ae.replace(/\[is=([^\]]*)\]/g,(we,...ce)=>ce[0])),N=we=>{var ce=we.trim();if(!ce)return"";if(we.indexOf("-shadowcsshost-no-combinator")>-1)ce=((Ct,lt,ht)=>{if(c.lastIndex=0,c.test(Ct)){var pr=".".concat(ht);return Ct.replace(a,(Zn,Kn)=>Kn.replace(/([^:]*)(:*)(.*)/,(ft,vs,Gt,Nr)=>vs+pr+Gt+Nr)).replace(c,pr+" ")}return lt+" "+Ct})(we,ae,ie);else{var it=we.replace(c,"");if(it.length>0){var kt=it.match(/([^:]*)(:*)(.*)/);kt&&(ce=kt[1]+oe+kt[2]+kt[3])}}return ce},$=(we=>{var ce=[],it=0;return{content:(we=we.replace(/(\[[^\]]*\])/g,(kt,Ct)=>{var lt="__ph-".concat(it,"__");return ce.push(Ct),it++,lt})).replace(/(:nth-[-\w]+)(\([^)]+\))/g,(kt,Ct,lt)=>{var ht="__ph-".concat(it,"__");return ce.push(lt),it++,Ct+ht}),placeholders:ce}})(X),H="",ne=0,te=/( |>|\+|~(?!=))\s*/g,Z=!((X=$.content).indexOf("-shadowcsshost-no-combinator")>-1);null!==(Se=te.exec(X));){var J=Se[1],ke=X.slice(ne,Se.index).trim(),le=(Z=Z||ke.indexOf("-shadowcsshost-no-combinator")>-1)?N(ke):ke;H+="".concat(le," ").concat(J," "),ne=te.lastIndex}var Ye,Ge=X.substring(ne);return H+=(Z=Z||Ge.indexOf("-shadowcsshost-no-combinator")>-1)?N(Ge):Ge,Ye=$.placeholders,H.replace(/__ph-(\d+)__/g,(we,ce)=>Ye[+ce])})(ke,te,Z).trim():ke.trim()).join(", ")):(N.selector.startsWith("@media")||N.selector.startsWith("@supports")||N.selector.startsWith("@page")||N.selector.startsWith("@document"))&&(H=Ve(N.content,ae,ie,Se)),{selector:$.replace(/\s{2,}/g," ").trim(),content:H}}),Y=(X,ae,ie)=>{var Se=ae+"-h",oe=ae+"-s",N=X.match(m)||[];X=X.replace(p,"");var $=[];if(ie){var H=te=>{var Z="/*!@___".concat($.length,"___*/"),J="/*!@".concat(te.selector,"*/");return $.push({placeholder:Z,comment:J}),te.selector=Z+te.selector,te};X=S(X,te=>"@"!==te.selector[0]?H(te):((te.selector.startsWith("@media")||te.selector.startsWith("@supports")||te.selector.startsWith("@page")||te.selector.startsWith("@document"))&&(te.content=S(te.content,H)),te))}var ne=((X,ae,ie,Se,oe)=>{var $,N=(($,H)=>{var ne="."+H+" > ",te=[];return $=$.replace(o,(...Z)=>{if(Z[2]){for(var J=Z[2].trim(),le=ne+J+Z[3],Ye="",Ge=Z[4]-1;Ge>=0;Ge--){var we=Z[5][Ge];if("}"===we||","===we)break;Ye=we+Ye}var ce=Ye+le,it="".concat(Ye.trimRight()).concat(le.trim());if(ce.trim()!==it.trim()){var kt="".concat(it,", ").concat(ce);te.push({orgSelector:ce,updatedSelector:kt})}return le}return"-shadowcsshost-no-combinator"+Z[3]}),{selectors:te,cssText:$}})(X=($=>F($,s,re))(($=X=X.replace(f,"-shadowcsscontext").replace(u,"-shadowcsshost").replace(d,"-shadowcssslotted"),X=F($,i,j))),Se);return X=($=>l.reduce((H,ne)=>H.replace(ne," "),$))(X=N.cssText),ae&&(X=Ve(X,ae,ie,Se)),{cssText:(X=(X=X.replace(/-shadowcsshost-no-combinator/g,".".concat(ie))).replace(/>\s*\*\s+([^{, ]+)/gm," $1 ")).trim(),slottedSelectors:N.selectors}})(X,ae,Se,oe);return X=[ne.cssText,...N].join("\n"),ie&&$.forEach(({placeholder:te,comment:Z})=>{X=X.replace(te,Z)}),ne.slottedSelectors.forEach(te=>{X=X.replace(te.orgSelector,te.updatedSelector)}),X}},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 wx=(()=>{class n{constructor(e,r){this.renderer=e,this.elRef=r,this.buttonClick=new He,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)(P(Kr),P(In))},n.\u0275dir=_e({type:n,selectors:[["","motoApplePayButton",""]],inputs:{buttonStyle:"buttonStyle",locale:"locale",type:"type"},outputs:{buttonClick:"buttonClick"}}),n})(),Cx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({}),n})();const Le=!1;function Dw(n){return new ee(3e3,Le)}function tI(){return"undefined"!=typeof window&&void 0!==window.document}function dm(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Vi(n){switch(n.length){case 0:return new Za;case 1:return n[0];default:return new f8(n)}}function Ew(n,t,e,r,i={},s={}){const o=[],a=[];let l=-1,c=null;if(r.forEach(u=>{const d=u.offset,f=d==l,p=f&&c||{};Object.keys(u).forEach(m=>{let w=m,E=u[m];if("offset"!==m)switch(w=t.normalizePropertyName(w,o),E){case"!":E=i[m];break;case mi:E=s[m];break;default:E=t.normalizeStyleValue(m,w,E,o)}p[w]=E}),f||a.push(p),c=p,l=d}),o.length)throw function zx(n){return new ee(3502,Le)}();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,s=pm(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,null==r?n.totalTime:r,!!e.disabled),o=n._data;return null!=o&&(s._data=o),s}function pm(n,t,e,r,i="",s=0,o){return{element:n,triggerName:t,fromState:e,toState:r,phaseName:i,totalTime:s,disabled:!!o}}function Wn(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 Sw(n){const t=n.indexOf(":");return[n.substring(1,t),n.substr(t+1)]}let mm=(n,t)=>!1,Mw=(n,t,e)=>[],Tw=null;function gm(n){const t=n.parentNode||n.host;return t===Tw?null:t}(dm()||"undefined"!=typeof Element)&&(tI()?(Tw=(()=>document.documentElement)(),mm=(n,t)=>{for(;t;){if(t===n)return!0;t=gm(t)}return!1}):mm=(n,t)=>n.contains(t),Mw=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const r=n.querySelector(t);return r?[r]:[]});let ds=null,Aw=!1;function xw(n){ds||(ds=function rI(){return"undefined"!=typeof document?document.body:null}()||{},Aw=!!ds.style&&"WebkitAppearance"in ds.style);let t=!0;return ds.style&&!function nI(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in ds.style,!t&&Aw&&(t="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in ds.style)),t}const Iw=mm,Pw=Mw;let kw=(()=>{class n{validateStyleProperty(e){return xw(e)}matchesElement(e,r){return!1}containsElement(e,r){return Iw(e,r)}getParentElement(e){return gm(e)}query(e,r,i){return Pw(e,r,i)}computeStyle(e,r,i){return i||""}animate(e,r,i,s,o,a=[],l){return new Za(i,s)}}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 kw,n})();const _m="ng-enter",Cu="ng-leave",bu="ng-trigger",Du=".ng-trigger",Ow="ng-animating",vm=".ng-animating";function hs(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 Eu(n,t,e){return n.hasOwnProperty("duration")?n:function oI(n,t,e){let i,s=0,o="";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(Dw()),{duration:0,delay:0,easing:""};i=wm(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=wm(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else i=n;if(!e){let a=!1,l=t.length;i<0&&(t.push(function bx(){return new ee(3100,Le)}()),a=!0),s<0&&(t.push(function Dx(){return new ee(3101,Le)}()),a=!0),a&&t.splice(l,0,Dw())}return{duration:i,delay:s,easing:o}}(n,t,e)}function To(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function Bi(n,t,e={}){if(t)for(let r in n)e[r]=n[r];else To(n,e);return e}function Lw(n,t,e){return e?t+":"+e+";":""}function Rw(n){let t="";for(let e=0;e<n.style.length;e++){const r=n.style.item(e);t+=Lw(0,r,n.style.getPropertyValue(r))}for(const e in n.style)n.style.hasOwnProperty(e)&&!e.startsWith("_")&&(t+=Lw(0,cI(e),n.style[e]));n.setAttribute("style",t)}function Xr(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()&&Rw(n))}function fs(n,t){n.style&&(Object.keys(t).forEach(e=>{const r=bm(e);n.style[r]=""}),dm()&&Rw(n))}function tl(n){return Array.isArray(n)?1==n.length?n[0]:d8(n):n}const Cm=new RegExp("{{\\s*(.+?)\\s*}}","g");function $w(n){let t=[];if("string"==typeof n){let e;for(;e=Cm.exec(n);)t.push(e[1]);Cm.lastIndex=0}return t}function Su(n,t,e){const r=n.toString(),i=r.replace(Cm,(s,o)=>{let a=t[o];return t.hasOwnProperty(o)||(e.push(function Sx(n){return new ee(3003,Le)}()),a=""),a.toString()});return i==r?n:i}function Mu(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const lI=/-+([a-z0-9])/g;function bm(n){return n.replace(lI,(...t)=>t[1].toUpperCase())}function cI(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function qn(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 Mx(n){return new ee(3004,Le)}()}}function Vw(n,t){return window.getComputedStyle(n)[t]}function mI(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(r=>function gI(n,t,e){if(":"==n[0]){const l=function yI(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 Bx(n){return new ee(3016,Le)}()),"* => *"}}(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 Vx(n){return new ee(3015,Le)}()),t;const i=r[1],s=r[2],o=r[3];t.push(Bw(i,o));"<"==s[0]&&!("*"==i&&"*"==o)&&t.push(Bw(o,i))}(r,e,t)):e.push(n),e}const Iu=new Set(["true","1"]),Pu=new Set(["false","0"]);function Bw(n,t){const e=Iu.has(n)||Pu.has(n),r=Iu.has(t)||Pu.has(t);return(i,s)=>{let o="*"==n||n==i,a="*"==t||t==s;return!o&&e&&"boolean"==typeof i&&(o=i?Iu.has(n):Pu.has(n)),!a&&r&&"boolean"==typeof s&&(a=s?Iu.has(t):Pu.has(t)),o&&a}}const _I=new RegExp("s*:selfs*,?","g");function Dm(n,t,e,r){return new vI(n).build(t,e,r)}class vI{constructor(t){this._driver=t}build(t,e,r){const i=new bI(e);this._resetContextStyleTimingState(i);const s=qn(this,tl(t),i);return i.unsupportedCSSPropertiesFound.size&&i.unsupportedCSSPropertiesFound.keys(),s}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let r=e.queryCount=0,i=e.depCount=0;const s=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push(function Ax(){return new ee(3006,Le)}()),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,s.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,o.push(l)}else e.errors.push(function xx(){return new ee(3007,Le)}())}),{type:7,name:t.name,states:s,transitions:o,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 s=new Set,o=i||{};r.styles.forEach(a=>{if(ku(a)){const l=a;Object.keys(l).forEach(c=>{$w(l[c]).forEach(u=>{o.hasOwnProperty(u)||s.add(u)})})}}),s.size&&(Mu(s.values()),e.errors.push(function Ix(n,t){return new ee(3008,Le)}()))}return{type:0,name:t.name,style:r,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const r=qn(this,tl(t.animation),e);return{type:1,matchers:mI(t.expr,e.errors),animation:r,queryCount:e.queryCount,depCount:e.depCount,options:ps(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(r=>qn(this,r,e)),options:ps(t.options)}}visitGroup(t,e){const r=e.currentTime;let i=0;const s=t.steps.map(o=>{e.currentTime=r;const a=qn(this,o,e);return i=Math.max(i,e.currentTime),a});return e.currentTime=i,{type:3,steps:s,options:ps(t.options)}}visitAnimate(t,e){const r=function EI(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Em(Eu(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=Em(0,0,"");return s.dynamic=!0,s.strValue=e,s}const i=Eu(e,t);return Em(i.duration,i.delay,i.easing)}(t.timings,e.errors);e.currentAnimateTimings=r;let i,s=t.styles?t.styles:Pt({});if(5==s.type)i=this.visitKeyframes(s,e);else{let o=t.styles,a=!1;if(!o){a=!0;const c={};r.easing&&(c.easing=r.easing),o=Pt(c)}e.currentTime+=r.duration+r.delay;const l=this.visitStyle(o,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(o=>{"string"==typeof o?o==mi?r.push(o):e.errors.push(function Px(n){return new ee(3002,Le)}()):r.push(o)}):r.push(t.styles);let i=!1,s=null;return r.forEach(o=>{if(ku(o)){const a=o,l=a.easing;if(l&&(s=l,delete a.easing),!i)for(let c in a)if(a[c].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:r,easing:s,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const r=e.currentAnimateTimings;let i=e.currentTime,s=e.currentTime;r&&s>0&&(s-=r.duration+r.delay),t.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete o[a],void e.unsupportedCSSPropertiesFound.add(a);const l=e.collectedStyles[e.currentQuerySelector],c=l[a];let u=!0;c&&(s!=i&&s>=c.startTime&&i<=c.endTime&&(e.errors.push(function kx(n,t,e,r,i){return new ee(3010,Le)}()),u=!1),s=c.startTime),u&&(l[a]={startTime:s,endTime:i}),e.options&&function aI(n,t,e){const r=t.params||{},i=$w(n);i.length&&i.forEach(s=>{r.hasOwnProperty(s)||e.push(function Ex(n){return new ee(3001,Le)}())})}(o[a],e.options,e.errors)})})}visitKeyframes(t,e){const r={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function Nx(){return new ee(3011,Le)}()),r;let s=0;const o=[];let a=!1,l=!1,c=0;const u=t.steps.map(S=>{const b=this._makeStyleAst(S,e);let F=null!=b.offset?b.offset:function DI(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(ku(e)&&e.hasOwnProperty("offset")){const r=e;t=parseFloat(r.offset),delete r.offset}});else if(ku(n)&&n.hasOwnProperty("offset")){const e=n;t=parseFloat(e.offset),delete e.offset}return t}(b.styles),j=0;return null!=F&&(s++,j=b.offset=F),l=l||j<0||j>1,a=a||j<c,c=j,o.push(j),b});l&&e.errors.push(function Ox(){return new ee(3012,Le)}()),a&&e.errors.push(function Fx(){return new ee(3200,Le)}());const d=t.steps.length;let f=0;s>0&&s<d?e.errors.push(function Lx(){return new ee(3202,Le)}()):0==s&&(f=1/(d-1));const p=d-1,m=e.currentTime,w=e.currentAnimateTimings,E=w.duration;return u.forEach((S,b)=>{const F=f>0?b==p?1:f*b:o[b],j=F*E;e.currentTime=m+w.delay+j,w.duration=j,this._validateStyleAst(S,e),S.offset=F,r.styles.push(S)}),r}visitReference(t,e){return{type:8,animation:qn(this,tl(t.animation),e),options:ps(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:ps(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:ps(t.options)}}visitQuery(t,e){const r=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[s,o]=function wI(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(_I,"")),n=n.replace(/@\*/g,Du).replace(/@\w+/g,e=>Du+"-"+e.substr(1)).replace(/:animating/g,vm),[n,t]}(t.selector);e.currentQuerySelector=r.length?r+" "+s:s,Wn(e.collectedStyles,e.currentQuerySelector,{});const a=qn(this,tl(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=r,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:a,originalSelector:t.selector,options:ps(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function Rx(){return new ee(3013,Le)}());const r="full"===t.timings?{duration:0,delay:0,easing:"full"}:Eu(t.timings,e.errors,!0);return{type:12,animation:qn(this,tl(t.animation),e),timings:r,options:null}}}class bI{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 ku(n){return!Array.isArray(n)&&"object"==typeof n}function ps(n){return n?(n=To(n)).params&&(n.params=function CI(n){return n?To(n):null}(n.params)):n={},n}function Em(n,t,e){return{duration:n,delay:t,easing:e}}function Sm(n,t,e,r,i,s,o=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:r,duration:i,delay:s,totalTime:i+s,easing:o,subTimeline:a}}class Nu{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 TI=new RegExp(":enter","g"),xI=new RegExp(":leave","g");function Mm(n,t,e,r,i,s={},o={},a,l,c=[]){return(new II).buildKeyframes(n,t,e,r,i,s,o,a,l,c)}class II{buildKeyframes(t,e,r,i,s,o,a,l,c,u=[]){c=c||new Nu;const d=new Tm(t,e,c,i,s,u,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),qn(this,r,d);const f=d.timelines.filter(p=>p.containsAnimation());if(Object.keys(a).length){let p;for(let m=f.length-1;m>=0;m--){const w=f[m];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),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(r,i,i.options);s!=o&&e.transformIntoNewTimeline(o)}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 s=e.currentTimeline.currentTime;const o=null!=r.duration?hs(r.duration):null,a=null!=r.delay?hs(r.delay):null;return 0!==o&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),qn(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const r=e.subContextCount;let i=e;const s=t.options;if(s&&(s.params||s.delay)&&(i=e.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Ou);const o=hs(s.delay);i.delayNextStep(o)}t.steps.length&&(t.steps.forEach(o=>qn(this,o,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const r=[];let i=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?hs(t.options.delay):0;t.steps.forEach(o=>{const a=e.createSubContext(t.options);s&&a.delayNextStep(s),qn(this,o,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const r=t.strValue;return Eu(e.params?Su(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 s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(r.duration),this.visitStyle(s,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 s=i&&i.easing||t.easing;t.isEmptyStep?r.applyEmptyStep(s):r.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const r=e.currentAnimateTimings,i=e.currentTimeline.duration,s=r.duration,a=e.createSubContext().currentTimeline;a.easing=r.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(i+s),e.previousNode=t}visitQuery(t,e){const r=e.currentTimeline.currentTime,i=t.options||{},s=i.delay?hs(i.delay):0;s&&(6===e.previousNode.type||0==r&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Ou);let o=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);s&&d.delayNextStep(s),c===e.element&&(l=d.currentTimeline),qn(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const r=e.parentContext,i=e.currentTimeline,s=t.timings,o=Math.abs(s.duration),a=o*(e.currentQueryTotal-1);let l=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=r.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;qn(this,t.animation,e),e.previousNode=t,r.currentStaggerTime=i.currentTime-d+(i.startTime-r.currentTimeline.startTime)}}const Ou={};class Tm{constructor(t,e,r,i,s,o,a,l){this._driver=t,this.element=e,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ou,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Fu(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=hs(r.duration)),null!=r.delay&&(i.delay=hs(r.delay));const s=r.params;if(s){let o=i.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=Su(s[a],o,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,s=new Tm(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=Ou,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:""},s=new PI(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,r,i,s,o){let a=[];if(i&&a.push(this.element),t.length>0){t=(t=t.replace(TI,"."+this._enterClassName)).replace(xI,"."+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!s&&0==a.length&&o.push(function $x(n){return new ee(3014,Le)}()),a}}class Fu{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 Fu(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]||mi,this._currentKeyframe[e]=mi}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,r,i){e&&(this._previousKeyframe.easing=e);const s=i&&i.params||{},o=function kI(n,t){const e={};let r;return n.forEach(i=>{"*"===i?(r=r||Object.keys(t),r.forEach(s=>{e[s]=mi})):Bi(i,!1,e)}),e}(t,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=Su(o[a],s,r);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:mi),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=Bi(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?t.add(u):d==mi&&e.add(u)}),r||(c.offset=l/this.duration),i.push(c)});const s=t.size?Mu(t.values()):[],o=e.size?Mu(e.values()):[];if(r){const a=i[0],l=To(a);a.offset=0,l.offset=1,i=[a,l]}return Sm(this.element,i,s,o,this.duration,this.startTime,this.easing,!1)}}class PI extends Fu{constructor(t,e,r,i,s,o,a=!1){super(t,e,o.delay),this.keyframes=r,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:r,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],o=r+e,a=e/o,l=Bi(t[0],!1);l.offset=0,s.push(l);const c=Bi(t[0],!1);c.offset=Uw(a),s.push(c);const u=t.length-1;for(let d=1;d<=u;d++){let f=Bi(t[d],!1);f.offset=Uw((e+f.offset*r)/o),s.push(f)}r=o,e=0,i="",t=s}return Sm(this.element,t,this.preStyleProps,this.postStyleProps,r,e,i,!0)}}function Uw(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class Am{}class NI extends Am{normalizePropertyName(t,e){return bm(t)}normalizeStyleValue(t,e,r,i){let s="";const o=r.toString().trim();if(OI[e]&&0!==r&&"0"!==r)if("number"==typeof r)s="px";else{const a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push(function Tx(n,t){return new ee(3005,Le)}())}return o+s}}const OI=(()=>function FI(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 zw(n,t,e,r,i,s,o,a,l,c,u,d,f){return{type:0,element:n,triggerName:t,isRemovalTransition:i,fromState:e,fromStyles:s,toState:r,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:f}}const xm={};class Gw{constructor(t,e,r){this._triggerName=t,this.ast=e,this._stateStyles=r}match(t,e,r,i){return function LI(n,t,e,r,i){return n.some(s=>s(t,e,r,i))}(this.ast.matchers,t,e,r,i)}buildStyles(t,e,r){const i=this._stateStyles["*"],s=this._stateStyles[t],o=i?i.buildStyles(e,r):{};return s?s.buildStyles(e,r):o}build(t,e,r,i,s,o,a,l,c,u){const d=[],f=this.ast.options&&this.ast.options.params||xm,m=this.buildStyles(r,a&&a.params||xm,d),w=l&&l.params||xm,E=this.buildStyles(i,w,d),S=new Set,b=new Map,F=new Map,j="void"===i,re={params:Object.assign(Object.assign({},f),w)},ve=u?[]:Mm(t,e,this.ast.animation,s,o,m,E,re,c,d);let Pe=0;if(ve.forEach(x=>{Pe=Math.max(x.duration+x.delay,Pe)}),d.length)return zw(e,this._triggerName,r,i,j,m,E,[],[],b,F,Pe,d);ve.forEach(x=>{const Y=x.element,X=Wn(b,Y,{});x.preStyleProps.forEach(ie=>X[ie]=!0);const ae=Wn(F,Y,{});x.postStyleProps.forEach(ie=>ae[ie]=!0),Y!==e&&S.add(Y)});const Ve=Mu(S.values());return zw(e,this._triggerName,r,i,j,m,E,ve,Ve,b,F,Pe)}}class RI{constructor(t,e,r){this.styles=t,this.defaultParams=e,this.normalizer=r}buildStyles(t,e){const r={},i=To(this.defaultParams);return Object.keys(t).forEach(s=>{const o=t[s];null!=o&&(i[s]=o)}),this.styles.styles.forEach(s=>{if("string"!=typeof s){const o=s;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=Su(l,i,e));const c=this.normalizer.normalizePropertyName(a,e);l=this.normalizer.normalizeStyleValue(a,c,l,e),r[c]=l})}}),r}}class VI{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 RI(i.style,i.options&&i.options.params||{},r)}),Ww(this.states,"true","1"),Ww(this.states,"false","0"),e.transitions.forEach(i=>{this.transitionFactories.push(new Gw(t,i,this.states))}),this.fallbackTransition=function BI(n,t,e){return new Gw(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,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(o=>o.match(t,e,r,i))||null}matchStyles(t,e,r){return this.fallbackTransition.buildStyles(t,e,r)}}function Ww(n,t,e){n.hasOwnProperty(t)?n.hasOwnProperty(e)||(n[e]=n[t]):n.hasOwnProperty(e)&&(n[t]=n[e])}const jI=new Nu;class HI{constructor(t,e,r){this.bodyNode=t,this._driver=e,this._normalizer=r,this._animations={},this._playersById={},this.players=[]}register(t,e){const r=[],s=Dm(this._driver,e,r,[]);if(r.length)throw function Gx(n){return new ee(3503,Le)}();this._animations[t]=s}_buildPlayer(t,e,r){const i=t.element,s=Ew(0,this._normalizer,0,t.keyframes,e,r);return this._driver.animate(i,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,r={}){const i=[],s=this._animations[t];let o;const a=new Map;if(s?(o=Mm(this._driver,e,s,_m,Cu,{},{},r,jI,i),o.forEach(u=>{const d=Wn(a,u.element,{});u.postStyleProps.forEach(f=>d[f]=null)})):(i.push(function Wx(){return new ee(3300,Le)}()),o=[]),i.length)throw function qx(n){return new ee(3504,Le)}();a.forEach((u,d)=>{Object.keys(u).forEach(f=>{u[f]=this._driver.computeStyle(d,f,mi)})});const c=Vi(o.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 Zx(n){return new ee(3301,Le)}();return e}listen(t,e,r,i){const s=pm(e,"","","");return hm(this._getPlayer(t),r,s,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 s=this._getPlayer(t);switch(r){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const qw="ng-animate-queued",Im="ng-animate-disabled",qI=[],Zw={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ZI={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},hr="__ng_removed";class Pm{constructor(t,e=""){this.namespaceId=e;const r=t&&t.hasOwnProperty("value");if(this.value=function JI(n){return null!=n?n:null}(r?t.value:t),r){const s=To(t);delete s.value,this.options=s}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 nl="void",km=new Pm(nl);class KI{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,fr(e,this._hostClassName)}listen(t,e,r,i){if(!this._triggers.hasOwnProperty(e))throw function Kx(n,t){return new ee(3302,Le)}();if(null==r||0==r.length)throw function Qx(n){return new ee(3303,Le)}();if(!function XI(n){return"start"==n||"done"==n}(r))throw function Yx(n,t){return new ee(3400,Le)}();const s=Wn(this._elementListeners,t,[]),o={name:e,phase:r,callback:i};s.push(o);const a=Wn(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(fr(t,bu),fr(t,bu+"-"+e),a[e]=km),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.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 Jx(n){return new ee(3401,Le)}();return e}trigger(t,e,r,i=!0){const s=this._getTrigger(e),o=new Nm(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(fr(t,bu),fr(t,bu+"-"+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!==nl&&l.value===c.value){if(!function nP(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 s=e[i];if(!t.hasOwnProperty(s)||n[s]!==t[s])return!1}return!0}(l.params,c.params)){const w=[],E=s.matchStyles(l.value,l.params,w),S=s.matchStyles(c.value,c.params,w);w.length?this._engine.reportError(w):this._engine.afterFlush(()=>{fs(t,E),Xr(t,S)})}return}const f=Wn(this._engine.playersByElement,t,[]);f.forEach(w=>{w.namespaceId==this.id&&w.triggerName==e&&w.queued&&w.destroy()});let p=s.matchTransition(l.value,c.value,t,c.params),m=!1;if(!p){if(!i)return;p=s.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:p,fromState:l,toState:c,player:o,isFallbackTransition:m}),m||(fr(t,qw),o.onStart(()=>{Ao(t,qw)})),o.onDone(()=>{let w=this.players.indexOf(o);w>=0&&this.players.splice(w,1);const E=this._engine.playersByElement.get(t);if(E){let S=E.indexOf(o);S>=0&&E.splice(S,1)}}),this.players.push(o),f.push(o),o}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,Du,!0);r.forEach(i=>{if(i[hr])return;const s=this._engine.fetchNamespacesByElement(i);s.size?s.forEach(o=>o.triggerLeaveAnimation(i,e,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(t,e,r,i){const s=this._engine.statesByElement.get(t),o=new Map;if(s){const a=[];if(Object.keys(s).forEach(l=>{if(o.set(l,s[l].value),this._triggers[l]){const c=this.trigger(t,l,nl,i);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,o),r&&Vi(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(s=>{const o=s.name;if(i.has(o))return;i.add(o);const l=this._triggers[o].fallbackTransition,c=r[o]||km,u=new Pm(nl),d=new Nm(this.id,o,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:o,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 s=r.players.length?r.playersByQueriedElement.get(t):[];if(s&&s.length)i=!0;else{let o=t;for(;o=o.parentNode;)if(r.statesByElement.get(o)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)r.markElementAsRemoved(this.id,t,!1,e);else{const s=t[hr];(!s||s===Zw)&&(r.afterFlush(()=>this.clearElementCache(t)),r.destroyInnerAnimations(t),r._onRemovalComplete(t,e))}}insertNode(t,e){fr(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(r=>{const i=r.player;if(i.destroyed)return;const s=r.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==r.triggerName){const l=pm(s,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 s=r.transition.ast.depCount,o=i.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(r.element,i.element)?1:-1})}destroy(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 QI{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,s)=>{}}_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 KI(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,s=r.length-1;if(s>=0){let o=!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),o=!0;break}a=this.driver.getParentElement(a)}}else for(let a=s;a>=0;a--)if(this.driver.containsElement(r[a].hostElement,e)){r.splice(a+1,0,t),o=!0;break}o||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 s=0;s<i.length;s++){const o=r[i[s]].namespaceId;if(o){const a=this._fetchNamespace(o);a&&e.add(a)}}}return e}trigger(t,e,r,i){if(Lu(e)){const s=this._fetchNamespace(t);if(s)return s.trigger(e,r,i),!0}return!1}insertNode(t,e,r,i){if(!Lu(e))return;const s=e[hr];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(t){const o=this._fetchNamespace(t);o&&o.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),fr(t,Im)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Ao(t,Im))}removeNode(t,e,r,i){if(Lu(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),r){const o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,r,i,s){this.collectedLeaveElements.push(e),e[hr]={namespaceId:t,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:s}}listen(t,e,r,i,s){return Lu(e)?this._fetchNamespace(t).listen(e,r,i,s):()=>{}}_buildInstruction(t,e,r,i,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,r,i,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,Du,!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 Vi(this.players).onDone(()=>t());t()})}processLeaveNode(t){var e;const r=t[hr];if(r&&r.setForRemoval){if(t[hr]=Zw,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++)fr(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?Vi(e).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(t){throw function Xx(n){return new ee(3402,Le)}()}_flushAnimations(t,e){const r=new Nu,i=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(N=>{u.add(N);const $=this.driver.query(N,".ng-animate-queued",!0);for(let H=0;H<$.length;H++)u.add($[H])});const d=this.bodyNode,f=Array.from(this.statesByElement.keys()),p=Yw(f,this.collectedEnterElements),m=new Map;let w=0;p.forEach((N,$)=>{const H=_m+w++;m.set($,H),N.forEach(ne=>fr(ne,H))});const E=[],S=new Set,b=new Set;for(let N=0;N<this.collectedLeaveElements.length;N++){const $=this.collectedLeaveElements[N],H=$[hr];H&&H.setForRemoval&&(E.push($),S.add($),H.hasAnimation?this.driver.query($,".ng-star-inserted",!0).forEach(ne=>S.add(ne)):b.add($))}const F=new Map,j=Yw(f,Array.from(S));j.forEach((N,$)=>{const H=Cu+w++;F.set($,H),N.forEach(ne=>fr(ne,H))}),t.push(()=>{p.forEach((N,$)=>{const H=m.get($);N.forEach(ne=>Ao(ne,H))}),j.forEach((N,$)=>{const H=F.get($);N.forEach(ne=>Ao(ne,H))}),E.forEach(N=>{this.processLeaveNode(N)})});const re=[],ve=[];for(let N=this._namespaceList.length-1;N>=0;N--)this._namespaceList[N].drainQueuedTransitions(e).forEach(H=>{const ne=H.player,te=H.element;if(re.push(ne),this.collectedEnterElements.length){const we=te[hr];if(we&&we.setForMove){if(we.previousTriggersValues&&we.previousTriggersValues.has(H.triggerName)){const ce=we.previousTriggersValues.get(H.triggerName),it=this.statesByElement.get(H.element);it&&it[H.triggerName]&&(it[H.triggerName].value=ce)}return void ne.destroy()}}const Z=!d||!this.driver.containsElement(d,te),J=F.get(te),ke=m.get(te),le=this._buildInstruction(H,r,ke,J,Z);if(le.errors&&le.errors.length)return void ve.push(le);if(Z)return ne.onStart(()=>fs(te,le.fromStyles)),ne.onDestroy(()=>Xr(te,le.toStyles)),void i.push(ne);if(H.isFallbackTransition)return ne.onStart(()=>fs(te,le.fromStyles)),ne.onDestroy(()=>Xr(te,le.toStyles)),void i.push(ne);const Ye=[];le.timelines.forEach(we=>{we.stretchStartingKeyframe=!0,this.disabledNodes.has(we.element)||Ye.push(we)}),le.timelines=Ye,r.append(te,le.timelines),o.push({instruction:le,player:ne,element:te}),le.queriedElements.forEach(we=>Wn(a,we,[]).push(ne)),le.preStyleProps.forEach((we,ce)=>{const it=Object.keys(we);if(it.length){let kt=l.get(ce);kt||l.set(ce,kt=new Set),it.forEach(Ct=>kt.add(Ct))}}),le.postStyleProps.forEach((we,ce)=>{const it=Object.keys(we);let kt=c.get(ce);kt||c.set(ce,kt=new Set),it.forEach(Ct=>kt.add(Ct))})});if(ve.length){const N=[];ve.forEach($=>{N.push(function eI(n,t){return new ee(3505,Le)}())}),re.forEach($=>$.destroy()),this.reportError(N)}const Pe=new Map,Ve=new Map;o.forEach(N=>{const $=N.element;r.has($)&&(Ve.set($,$),this._beforeAnimationBuild(N.player.namespaceId,N.instruction,Pe))}),i.forEach(N=>{const $=N.element;this._getPreviousPlayers($,!1,N.namespaceId,N.triggerName,null).forEach(ne=>{Wn(Pe,$,[]).push(ne),ne.destroy()})});const x=E.filter(N=>Xw(N,l,c)),Y=new Map;Qw(Y,this.driver,b,c,mi).forEach(N=>{Xw(N,l,c)&&x.push(N)});const ae=new Map;p.forEach((N,$)=>{Qw(ae,this.driver,new Set(N),l,"!")}),x.forEach(N=>{const $=Y.get(N),H=ae.get(N);Y.set(N,Object.assign(Object.assign({},$),H))});const ie=[],Se=[],oe={};o.forEach(N=>{const{element:$,player:H,instruction:ne}=N;if(r.has($)){if(u.has($))return H.onDestroy(()=>Xr($,ne.toStyles)),H.disabled=!0,H.overrideTotalTime(ne.totalTime),void i.push(H);let te=oe;if(Ve.size>1){let J=$;const ke=[];for(;J=J.parentNode;){const le=Ve.get(J);if(le){te=le;break}ke.push(J)}ke.forEach(le=>Ve.set(le,te))}const Z=this._buildAnimation(H.namespaceId,ne,Pe,s,ae,Y);if(H.setRealPlayer(Z),te===oe)ie.push(H);else{const J=this.playersByElement.get(te);J&&J.length&&(H.parentPlayer=Vi(J)),i.push(H)}}else fs($,ne.fromStyles),H.onDestroy(()=>Xr($,ne.toStyles)),Se.push(H),u.has($)&&i.push(H)}),Se.forEach(N=>{const $=s.get(N.element);if($&&$.length){const H=Vi($);N.setRealPlayer(H)}}),i.forEach(N=>{N.parentPlayer?N.syncPlayerEvents(N.parentPlayer):N.destroy()});for(let N=0;N<E.length;N++){const $=E[N],H=$[hr];if(Ao($,Cu),H&&H.hasAnimation)continue;let ne=[];if(a.size){let Z=a.get($);Z&&Z.length&&ne.push(...Z);let J=this.driver.query($,vm,!0);for(let ke=0;ke<J.length;ke++){let le=a.get(J[ke]);le&&le.length&&ne.push(...le)}}const te=ne.filter(Z=>!Z.destroyed);te.length?eP(this,$,te):this.processLeaveNode($)}return E.length=0,ie.forEach(N=>{this.players.push(N),N.onDone(()=>{N.destroy();const $=this.players.indexOf(N);this.players.splice($,1)}),N.play()}),ie}elementContainsData(t,e){let r=!1;const i=e[hr];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,s){let o=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(o=a)}else{const a=this.playersByElement.get(t);if(a){const l=!s||s==nl;a.forEach(c=>{c.queued||!l&&c.triggerName!=i||o.push(c)})}}return(r||i)&&(o=o.filter(a=>!(r&&r!=a.namespaceId||i&&i!=a.triggerName))),o}_beforeAnimationBuild(t,e,r){const s=e.element,o=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==s,d=Wn(r,c,[]);this._getPreviousPlayers(c,u,o,a,e.toState).forEach(p=>{const m=p.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),p.destroy(),d.push(p)})}fs(s,e.fromStyles)}_buildAnimation(t,e,r,i,s,o){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,f=e.timelines.map(m=>{const w=m.element;u.add(w);const E=w[hr];if(E&&E.removedBeforeQueried)return new Za(m.duration,m.delay);const S=w!==l,b=function tP(n){const t=[];return Jw(n,t),t}((r.get(w)||qI).map(Pe=>Pe.getRealPlayer())).filter(Pe=>!!Pe.element&&Pe.element===w),F=s.get(w),j=o.get(w),re=Ew(0,this._normalizer,0,m.keyframes,F,j),ve=this._buildPlayer(m,re,b);if(m.subTimeline&&i&&d.add(w),S){const Pe=new Nm(t,a,w);Pe.setRealPlayer(ve),c.push(Pe)}return ve});c.forEach(m=>{Wn(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>function YI(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,m.element,m))}),u.forEach(m=>fr(m,Ow));const p=Vi(f);return p.onDestroy(()=>{u.forEach(m=>Ao(m,Ow)),Xr(l,e.toStyles)}),d.forEach(m=>{Wn(i,m,[]).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 Za(t.duration,t.delay)}}class Nm{constructor(t,e,r){this.namespaceId=t,this.triggerName=e,this.element=r,this._player=new Za,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){Wn(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 Lu(n){return n&&1===n.nodeType}function Kw(n,t){const e=n.style.display;return n.style.display=null!=t?t:"none",e}function Qw(n,t,e,r,i){const s=[];e.forEach(l=>s.push(Kw(l)));const o=[];r.forEach((l,c)=>{const u={};l.forEach(d=>{const f=u[d]=t.computeStyle(c,d,i);(!f||0==f.length)&&(c[hr]=ZI,o.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>Kw(l,s[a++])),o}function Yw(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const i=new Set(t),s=new Map;function o(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:i.has(c)?1:o(c),s.set(a,l),l}return t.forEach(a=>{const l=o(a);1!==l&&e.get(l).push(a)}),e}function fr(n,t){var e;null===(e=n.classList)||void 0===e||e.add(t)}function Ao(n,t){var e;null===(e=n.classList)||void 0===e||e.remove(t)}function eP(n,t,e){Vi(e).onDone(()=>n.processLeaveNode(t))}function Jw(n,t){for(let e=0;e<n.length;e++){const r=n[e];r instanceof f8?Jw(r.players,t):t.push(r)}}function Xw(n,t,e){const r=e.get(n);if(!r)return!1;let i=t.get(n);return i?r.forEach(s=>i.add(s)):t.set(n,r),e.delete(n),!0}class Ru{constructor(t,e,r){this.bodyNode=t,this._driver=e,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(i,s)=>{},this._transitionEngine=new QI(t,e,r),this._timelineEngine=new HI(t,e,r),this._transitionEngine.onRemovalComplete=(i,s)=>this.onRemovalComplete(i,s)}registerTrigger(t,e,r,i,s){const o=t+"-"+i;let a=this._triggerCache[o];if(!a){const l=[],u=Dm(this._driver,s,l,[]);if(l.length)throw function Ux(n,t){return new ee(3404,Le)}();a=function $I(n,t,e){return new VI(n,t,e)}(i,u,this._normalizer),this._triggerCache[o]=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[s,o]=Sw(r);this._timelineEngine.command(s,e,o,i)}else this._transitionEngine.trigger(t,e,r,i)}listen(t,e,r,i,s){if("@"==r.charAt(0)){const[o,a]=Sw(r);return this._timelineEngine.listen(o,e,a,s)}return this._transitionEngine.listen(t,e,r,i,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let iP=(()=>{class n{constructor(e,r,i){this._element=e,this._startStyles=r,this._endStyles=i,this._state=0;let s=n.initialStylesByElement.get(e);s||n.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&Xr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Xr(this._element,this._initialStyles),this._endStyles&&(Xr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(fs(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(fs(this._element,this._endStyles),this._endStyles=null),Xr(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];sP(i)&&(t=t||{},t[i]=n[i])}return t}function sP(n){return"display"===n||"position"===n}class eC{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]:Vw(this.element,r))})}this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(r=>r()),e.length=0}}class oP{validateStyleProperty(t){return xw(t)}matchesElement(t,e){return!1}containsElement(t,e){return Iw(t,e)}getParentElement(t){return gm(t)}query(t,e,r){return Pw(t,e,r)}computeStyle(t,e,r){return window.getComputedStyle(t)[e]}animate(t,e,r,i,s,o=[]){const l={duration:r,delay:i,fill:0==i?"both":"forwards"};s&&(l.easing=s);const c={},u=o.filter(f=>f instanceof eC);(function uI(n,t){return 0===n||0===t})(r,i)&&u.forEach(f=>{let p=f.currentSnapshot;Object.keys(p).forEach(m=>c[m]=p[m])}),e=function dI(n,t,e){const r=Object.keys(e);if(r.length&&t.length){let s=t[0],o=[];if(r.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=e[a]}),o.length)for(var i=1;i<t.length;i++){let a=t[i];o.forEach(function(l){a[l]=Vw(n,l)})}}return t}(t,e=e.map(f=>Bi(f,!1)),c);const d=function rP(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 iP(n,e,r):null}(t,e);return new eC(t,e,l,d)}}let aP=(()=>{class n extends u8{constructor(e,r){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(r.body,{id:"0",encapsulation:_r.None,styles:[],data:{animation:[]}})}build(e){const r=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(e)?d8(e):e;return tC(this._renderer,null,r,"register",[i]),new lP(r,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(U(xa),U(jt))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();class lP extends class ZT{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new cP(this._id,t,e||{},this._renderer)}}class cP{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 tC(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 tC(n,t,e,r,i){return n.setProperty(t,`@@${e}:${r}`,i)}const nC="@.disabled";let uP=(()=>{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=(s,o)=>{const a=null==o?void 0:o.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(e,r){const s=this.delegate.createRenderer(e,r);if(!(e&&r&&r.data&&r.data.animation)){let u=this._rendererCache.get(s);return u||(u=new rC("",s,this.engine),this._rendererCache.set(s,u)),u}const o=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(o,a,e,u.name,u)};return r.data.animation.forEach(l),new dP(this,a,s,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(s=>{const[o,a]=s;o(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(xa),U(Ru),U(Yt))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();class rC{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==nC?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 dP extends rC{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==nC?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 hP(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let s=e.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function fP(n){const t=n.indexOf(".");return[n.substring(0,t),n.substr(t+1)]}(s)),this.engine.listen(this.namespaceId,i,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,r,a)})}return this.delegate.listen(t,e,r)}}let pP=(()=>{class n extends Ru{constructor(e,r,i){super(e.body,r,i)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(U(jt),U(ym),U(Am))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();const iC=new ue("AnimationModuleType"),sC=[{provide:u8,useClass:aP},{provide:Am,useFactory:function mP(){return new NI}},{provide:Ru,useClass:pP},{provide:xa,useFactory:function gP(n,t,e){return new uP(n,t,e)},deps:[qc,Ru,Yt]}],oC=[{provide:ym,useFactory:()=>new oP},{provide:iC,useValue:"BrowserAnimations"},...sC],yP=[{provide:ym,useClass:kw},{provide:iC,useValue:"NoopAnimations"},...sC];let _P=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?yP:oC}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({providers:oC,imports:[k2]}),n})();const vP=dn(n=>function(){n(this),this.name="EmptyError",this.message="no elements in sequence"}),aC=new ue("MOTO_APPLE_PAYMENT_SERVICE_TOKEN"),CP=new ue("MOTO_APPLE_PAY_SESSION_VERSION_TOKEN",{factory:()=>10}),lC=new ue("MOTO_APPLE_PAY_MERCHANT_URL_TOKEN",{factory:()=>"/merchantValidation"}),cC=new ue("MOTO_APPLE_PAY_MERCHANT_SERVICE_TOKEN");let bP=(()=>{class n{constructor(e,r){this.merchantApiUrl=e,this.http=r}validate(e,r){const{validationURL:i}=e,{merchantId:s}=r;return this.requestValidateMerchant(s,i)}requestValidateMerchant(e,r){return this.http.post(this.merchantApiUrl,{validationUrl:r},{params:{merchantId:e}})}}return n.\u0275fac=function(e){return new(e||n)(U(lC),U(kp))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();const uC=new ue("APPLE_PAY_SESSION_TOKEN",{factory:()=>Kl(jt).defaultView.ApplePaySession}),DP=new ue("APPLE_PAY_SESSION_SUPPORT_TOKEN",{factory:()=>Boolean(Kl(uC))}),dC={merchantCapabilities:["supports3DS"],supportedNetworks:["visa","masterCard","amex","discover"]};let hC=(()=>{class n{constructor(e){this.applePaySession=e}canMakePayments(){return ApplePaySession.canMakePayments()}createPaySession(e,r,i){return new $t(s=>{const o=a=>{s.error(a),console.error(a)};try{const a=new this.applePaySession(e,r),l=(c,u)=>{a.abort(),o({event:c,error:u})};a.onvalidatemerchant=c=>Dl(this,void 0,void 0,function*(){try{const u=yield function wP(n,t){const e="object"==typeof t;return new Promise((r,i)=>{let o,s=!1;n.subscribe({next:a=>{o=a,s=!0},error:i,complete:()=>{s?r(o):e?r(t.defaultValue):i(new vP)}})})}(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}),s.next(c),s.complete()},a.oncancel=c=>{o(c)},a.begin()}catch(a){o(a)}})}}return n.\u0275fac=function(e){return new(e||n)(U(uC))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})(),fC=(()=>{class n{constructor(e,r,i){this.applePayVersion=e,this.nativeService=r,this.merchantService=i}canMakePayment(){return Ir(this.nativeService.canMakePayments())}pay(e){const{version:r=this.applePayVersion}=e;return this.nativeService.createPaySession(r,this.mapData(e),s=>this.merchantService.validate(s,e))}mapData(e){const{total:r,countryCode:i,supportedNetworks:s=dC.supportedNetworks,merchantCapabilities:o=dC.merchantCapabilities}=e;return{countryCode:i,currencyCode:r.currency,supportedNetworks:s,merchantCapabilities:o,total:{amount:r.amount,label:r.label}}}}return n.\u0275fac=function(e){return new(e||n)(U(CP),U(hC),U(cC))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();const SP={canMakePayment:()=>Ir(!1),pay(n){throw new Error("not implemented")}},MP=[fC,hC,{provide:aC,deps:[DP,fC],useFactory:(n,t)=>n?t:SP}];let TP=(()=>{class n{static forRoot(){return{ngModule:n,providers:[...MP,{provide:cC,useClass:bP}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[K2]]}),n})();function AP(n,t){if(1&n){const e=An();W(0,"div",3)(1,"i",4),Re("click",function(){return an(e),pe().close()}),Ae(2,"close"),q()()}}function xP(n,t){1&n&&(W(0,"span",8),Ae(1,"\xb7"),q())}function IP(n,t){if(1&n&&(or(0),W(1,"a",6),Ae(2),q(),de(3,xP,2,0,"span",7),ar()),2&n){const e=t.$implicit,r=t.last;z(1),G("href",e.href,ga),z(1),xn(" ",e.text," "),z(1),G("ngIf",!r)}}function PP(n,t){if(1&n&&(W(0,"div",4),de(1,IP,4,3,"ng-container",5),q()),2&n){const e=pe(2);z(1),G("ngForOf",e.links)}}function kP(n,t){if(1&n&&(W(0,"p",9),Ae(1),q()),2&n){const e=pe(2);z(1),xn(" ",e.description," ")}}function NP(n,t){if(1&n&&(W(0,"div",1),de(1,PP,2,1,"div",2),de(2,kP,2,1,"p",3),q()),2&n){const e=pe();z(1),G("ngIf",null==e.links?null:e.links.length),z(1),G("ngIf",e.description)}}function OP(n,t){if(1&n&&(W(0,"div",1),ot(1,"img",2),q()),2&n){const e=pe();z(1),G("src",e.src,ga)("alt",e.alt)}}const FP=[[["prefix"]],[["suffix"]]],LP=["prefix","suffix"];function RP(n,t){1&n&&(W(0,"span",8),Ae(1,"Invalid phone number"),q()),2&n&&G("@ANTransform",void 0)}function $P(n,t){if(1&n&&(W(0,"div",2)(1,"div",3)(2,"h6",4),Ae(3,"Phone"),q(),de(4,RP,2,1,"span",5),q(),W(5,"div",6),ot(6,"moto-form-input",7),je(7,"enum"),je(8,"enum"),je(9,"condition"),q()()),2&n){const e=pe();z(4),G("ngIf",e.isInvalidPhone),z(2),G("minlength",lr(7,5,"MIN_TEL","form-field-length"))("maxlength",lr(8,8,"MAX_TEL","form-field-length"))("validate",!1)("status",Pn(9,11,e.isInvalidPhone,"invalid","valid"))}}function VP(n,t){if(1&n&&(W(0,"span",9),Ae(1),q()),2&n){const e=pe();G("@ANTransform",void 0),z(1),Oi(e.paymentsErrorMsg)}}function BP(n,t){if(1&n){const e=An();W(0,"div",10)(1,"moto-form-input",11),Re("paste",function(i){return an(e),pe().pasteCardNumber(i)}),je(2,"cardInfo"),je(3,"condition"),ot(4,"moto-picture",12),je(5,"cardInfo"),q(),ot(6,"div",13),W(7,"div",14),ot(8,"moto-form-input",15),je(9,"condition"),ot(10,"div",16),W(11,"moto-form-input",17),je(12,"cardInfo"),je(13,"cardInfo"),je(14,"condition"),W(15,"div",18),je(16,"cardInfo"),W(17,"i",19),Ae(18,"error"),q()()()()()}if(2&n){const e=t.motoLet,r=pe();Wr("invalid",r.isInvalidCredentials),z(1),G("mask",Pn(2,17,e.cardNumber,"card-number-mask","0000 0000 0000 0000"))("transparent",!0)("validate",!1)("status",Pn(3,21,r.isInvalidCredentials,"invalid","valid")),z(3),G("src",lr(5,25,r.cardNumberValue,"logo")),z(4),G("transparent",!0)("validate",!1)("status",Pn(9,28,r.isInvalidCredentials,"invalid","valid")),z(3),G("mask",Pn(12,32,e.cardNumber,"code-mask","000"))("dropSpecialCharacters",!1)("placeholder",Pn(13,36,e.cardNumber,"code","CVV"))("transparent",!0)("validate",!1)("status",Pn(14,40,r.isInvalidCredentials,"invalid","valid")),z(4),gn("data-tooltip",Pn(16,44,e.cardNumber,"secure-text","CVC Card Verification Code"))}}function jP(n,t){1&n&&(W(0,"span",20),Ae(1,"Invalid card holder name"),q()),2&n&&G("@ANTransform",void 0)}function HP(n,t){if(1&n){const e=An();W(0,"moto-pay-card",4),Re("select",function(i){return an(e),pe(2).selectCard(i)})("remove",function(i){return an(e),pe(2).removeCard(i)}),q()}2&n&&G("option",t.$implicit)}function UP(n,t){if(1&n&&(or(0),de(1,HP,1,1,"moto-pay-card",3),ar()),2&n){const e=pe();z(1),G("ngForOf",e.cardOptions)}}function zP(n,t){1&n&&(W(0,"p",5),Ae(1,"No cards yet..."),q())}const GP=function(n){return{$implicit:n}};function WP(n,t){if(1&n&&(pc(0,7),je(1,"condition")),2&n){const e=t.$implicit,r=pe().motoLet;pe();const i=ns(2);G("ngTemplateOutlet",Pn(1,2,e.logo,i,r[e.name]))("ngTemplateOutletContext",kf(6,GP,e))}}function qP(n,t){if(1&n&&(W(0,"div",3)(1,"div",4)(2,"span",5),Ae(3,"OR"),q()(),de(4,WP,2,8,"ng-container",6),q()),2&n){const e=pe();z(4),G("ngForOf",e.apms)("ngForTrackBy",e.trackByApm)}}function ZP(n,t){if(1&n){const e=An();W(0,"div",8),Re("click",function(){const s=an(e).$implicit;return pe().pay(s)}),ot(1,"img",9),q()}if(2&n){const e=t.$implicit;z(1),G("src",e.logo,ga)("alt",e.name)}}function KP(n,t){if(1&n){const e=An();W(0,"div",10),Re("buttonClick",function(){const s=an(e).$implicit;return pe().pay(s)}),q()}}const QP=function(n){return{applepay:n}},YP=["cardFormRef"],JP=["additionalFormRef"],XP=["cardListRef"];function ek(n,t){if(1&n){const e=An();or(0),W(1,"div",15),Re("click",function(){return an(e),pe(3).toggleCardList()}),W(2,"span",16),Ae(3,"Manage cards"),q(),W(4,"i",17),Ae(5,"keyboard_arrow_up"),q()(),W(6,"moto-pay-card-list",18,19),Re("select",function(){return an(e),pe(3).selectCard()})("remove",function(i){return an(e),pe(3).removeCard(i)}),je(8,"condition"),q(),ar()}if(2&n){const e=pe().motoLet,r=pe(2);z(4),Wr("active",r.viewState.isShowCardList),z(2),G("@ANToggleList",Pn(8,5,r.viewState.isShowCardList,"show","hide"))("childrenDetector",r.childrenDetector$)("cards",e)}}function tk(n,t){if(1&n&&(or(0),de(1,ek,9,9,"ng-container",14),ar()),2&n){const e=t.motoLet;z(1),G("ngIf",null==e?null:e.length)}}function nk(n,t){if(1&n){const e=An();W(0,"button",20),Re("click",function(){return an(e),pe(2).showCardForm()}),W(1,"i",21),Ae(2,"add"),q(),W(3,"span",22),Ae(4,"Add new card"),q()()}}function rk(n,t){1&n&&ot(0,"moto-pay-card-form",23,24),2&n&&G("@ANHeight",void 0)}function ik(n,t){if(1&n&&(ot(0,"moto-pay-additional-form",25,26),je(2,"async")),2&n){const e=pe(2);G("@ANHeight",void 0)("fieldSettings",hi(2,2,e.settings$))}}function sk(n,t){if(1&n&&(or(0),ot(1,"div",27),W(2,"div",28),ot(3,"moto-picture",29),je(4,"cardInfo"),W(5,"span",30),Ae(6),je(7,"slice"),q()(),ar()),2&n){const e=t.ngIf;z(3),G("src",lr(4,2,e.card.name,"logo")),z(3),xn(" \u2022\u2022",lr(7,5,e.card.name,-4)," ")}}function ok(n,t){if(1&n){const e=An();or(0),W(1,"moto-pay-apm-list",31),Re("pay",function(i){return an(e),pe(3).apmSubmit(i)}),q(),ar()}if(2&n){const e=pe().motoLet;z(1),G("apms",e)}}function ak(n,t){if(1&n&&(or(0),de(1,ok,2,1,"ng-container",14),ar()),2&n){const e=t.motoLet;z(1),G("ngIf",null==e?null:e.length)}}function lk(n,t){if(1&n){const e=An();W(0,"div",1),de(1,tk,2,1,"ng-container",2),je(2,"async"),de(3,nk,5,0,"button",3),de(4,rk,2,1,"moto-pay-card-form",4),de(5,ik,3,4,"moto-pay-additional-form",5),W(6,"div",6)(7,"div",7)(8,"span",8),Ae(9,"Total"),q(),W(10,"span",9),Ae(11),je(12,"currencySymbol"),je(13,"price"),q()(),W(14,"button",10),Re("click",function(){return an(e),pe().submit()}),W(15,"div",11)(16,"div",12)(17,"span"),Ae(18," Pay "),W(19,"span",13),Ae(20),je(21,"currencySymbol"),je(22,"price"),q()()(),de(23,sk,8,8,"ng-container",14),q()()(),de(24,ak,2,1,"ng-container",2),je(25,"async"),q()}if(2&n){const e=t.ngIf,r=pe();z(1),G("motoLet",hi(2,8,r.cards$)),z(2),G("ngIf",!r.viewState.isShowCardForm),z(1),G("ngIf",r.viewState.isShowCardForm),z(1),G("ngIf",r.viewState.isShowCardForm),z(6),Oi(lr(12,10,Pn(13,13,e.amount,e.tax,e.amountType),e.currency)),z(9),xn(" ",lr(21,17,Pn(22,20,e.amount,e.tax,e.amountType),e.currency)," "),z(3),G("ngIf",null==r.cardListRef?null:r.cardListRef.getSelectedCard()),z(1),G("motoLet",hi(25,24,r.apms$))}}function ck(n,t){if(1&n&&(W(0,"p",4),Ae(1),q()),2&n){const e=pe();z(1),xn(" ",e.description," ")}}const uk=["wrapper"];function dk(n,t){1&n&&pc(0)}function hk(n,t){if(1&n&&ot(0,"moto-pay-footer",12),2&n){const e=pe().motoLet;G("description",null==e?null:e.merchantInfo)("links",null==e?null:e.merchantLinks)}}function fk(n,t){1&n&&ot(0,"moto-loader")}function pk(n,t){1&n&&ot(0,"div",13)}function mk(n,t){if(1&n){const e=An();W(0,"div",4,5)(2,"div",6)(3,"moto-pay-header",7),Re("close",function(){return an(e),pe().close()}),q(),de(4,dk,1,0,"ng-container",8),je(5,"async"),de(6,hk,1,2,"moto-pay-footer",9),de(7,fk,1,0,"moto-loader",10),de(8,pk,1,0,"div",11),q()()}if(2&n){const e=t.motoLet,r=pe(),i=ns(5),s=ns(3);z(3),G("showCloseButton",null==e?null:e.isCloseButtonVisible),z(1),G("ngIf",hi(5,7,r.paymentResult$))("ngIfThen",i)("ngIfElse",s),z(2),G("ngIf",null==e?null:e.isMerchantInfoVisible),z(1),G("ngIf",r.isShowLoader),z(1),G("ngIf",!r.isShowLoader)}}function gk(n,t){1&n&&ot(0,"moto-pay-main")}function yk(n,t){if(1&n&&de(0,gk,1,0,"moto-pay-main",14),2&n){const e=pe(),r=ns(7);G("ngIf",!e.viewState.paymentErrorType)("ngIfElse",r)}}function _k(n,t){if(1&n){const e=An();W(0,"moto-pay-result",15),Re("result",function(i){return an(e),pe().paid(i)}),je(1,"async"),q()}2&n&&G("paymentResult",hi(1,1,pe().paymentResult$))}function vk(n,t){1&n&&ot(0,"moto-pay-error",16),2&n&&G("error",pe().viewState.paymentErrorType)}const wk=["paymentWrapperRef"],Ck=new j2(()=>!1),bk=new j2(()=>!1);class Dk{constructor(t){this.defaultValues={isPhoneNumberFieldVisible:!1,isEmailFieldVisible:!1,isCloseButtonVisible:!0,isMerchantInfoVisible:!0,merchantInfo:null,merchantLinks:null},this._settings=Object.assign(Object.assign({},this.defaultValues),t)}get settings(){return this._settings}}let pC=(()=>{class n{constructor(){this.detector$=new Vt}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})(),Vu=(()=>{class n{constructor(e){this.injector=e,this.unsubscriber$=new Vt,this.childrenDetector$=new Vt}ngOnDestroy(){this.unsubscribe()}listenChildrenDetection(e){const r="local"===e,i="global"===e,s="full"===e;this.childrenDetector$.asObservable().pipe(Wa(10),this.untilDestroy()).subscribe(()=>{(r||s)&&this.localDetect(),(i||s)&&this.globalDetect()})}localDetect(){this.injector.get(Ra).detectChanges()}globalDetect(){this.injector.get(pC).detectChanges()}detect(){this.localDetect(),this.globalDetect()}untilDestroy(){return Y2(this.unsubscriber$.asObservable())}unsubscribe(){this.unsubscriber$.next(null)}}return n.\u0275fac=function(e){return new(e||n)(P(xt))},n.\u0275cmp=Ot({type:n,selectors:[["ng-component"]],decls:0,vars:0,template:function(e,r){},encapsulation:2}),n})();var ms=(()=>{return(n=ms||(ms={})).Test="test",n.Qa1="qa1",n.Qa2="qa2",n.Qa3="qa3",n.Dev="dev",n.Stage="stage",n.Live="live",n.Prod="prod",ms;var n})(),gs=(()=>{return(n=gs||(gs={}))[n.MAX_CARD_HOLDER=128]="MAX_CARD_HOLDER",n[n.MAX_TEL=30]="MAX_TEL",n[n.MIN_TEL=4]="MIN_TEL",gs;var n})(),Bu=(()=>((Bu||(Bu={})).APPLE_PAY="applepay",Bu))(),ju=(()=>{return(n=ju||(ju={})).Customer="Customer",n.Merchant="Merchant",ju;var n})(),Hu=(()=>{return(n=Hu||(Hu={})).GrossWithoutGst="GrossWithoutGst",n.Net="Net",n.Gross="Gross",Hu;var n})();class Sk{constructor(t,e){this.type=t,this.error=e}}class mC{getFullState(){return this.state}getState(t){return this.state[t]}setState(t,e){this.state[t]=e}}class Mk extends mC{constructor(){super(...arguments),this.destory$=new Vt,this.detector$=new Vt,this.action$=new Vt,this.error$=new Vt}untilDestroy(){return function KC(...n){return ng(n)}(Y2(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 Sk(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 gC=new ue("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)(U(gC))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})(),Tk=(()=>{class n{getApiConfig(e){return e==ms.Live?{BILLING_PROFILES_HOST:"https://billingprofiles.motopays.com",PROCESSING_HOST:"https://processing.motopays.com"}:e==ms.Prod?{BILLING_PROFILES_HOST:"https://billingprofiles.dating.com",PROCESSING_HOST:"https://processing.dating.com"}:{BILLING_PROFILES_HOST:`https://billingprofiles.${e}.motopays.com`,PROCESSING_HOST:`https://processing.${e}.motopays.com`}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Uu=(()=>{class n extends Mk{constructor(e,r){super(),this.motoApmsService=e,this.motoApiConfigService=r,this.state={isLoadCards:!1,isLoadApms:!1,isSentPayment:!1,isRemovedCard:!1,externalApms:new Set(this.motoApmsService.apmNames())},this.cards$=new Jr(null),this.apms$=new Jr(null),this.payment$=new Jr(null),this.settings$=new Jr(null),this.paymentResult$=new Jr(null)}getApiConfig(){const{env:e}=this.getStreamValue("payment$")||{};return this.motoApiConfigService.getApiConfig(e)}}return n.\u0275fac=function(e){return new(e||n)(U(Fm),U(Tk))},n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),yC=(()=>{class n extends mC{constructor(){super(...arguments),this.state={contentSize:null,paymentErrorType: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:s}){const o=Object.entries({md:r,paReq:i,termUrl:s}).reduce((l,[c,u])=>l+`${this.inputTemplate(c,u)}\n`,"");return this.formTemplate(e,o)}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=ln(n)))(r||n)}}(),n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class xo{constructor(t,e=null){this.type=t,this.payload=e}}function Lm(n){return new pi({fromObject:n})}function Rm(n){const t=Object.entries(n).reduce((e,[r,i])=>(e[r]=String(i),e),{});return new Yr(t)}var ji=(()=>{return(n=ji||(ji={}))[n.DEFAULT_ANIMATE_MS=0]="DEFAULT_ANIMATE_MS",ji;var n})(),il=(()=>{return(n=il||(il={}))[n.MIN_CARD_NUMBER_LENGTH=13]="MIN_CARD_NUMBER_LENGTH",n[n.MAX_CARD_NUMBER_LENGTH=19]="MAX_CARD_NUMBER_LENGTH",il;var n})(),zu=(()=>{return(n=zu||(zu={})).gbp="GBP",n.eur="EUR",n.nok="NOK",n.usd="USD",n.sgd="SGD",n.aud="AUD",n.cad="CAD",zu;var n})(),sl=(()=>{return(n=sl||(sl={})).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",sl;var n})(),Gu=(()=>{return(n=Gu||(Gu={})).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)",Gu;var n})(),Io=(()=>{return(n=Io||(Io={})).SUCCESS_TITLE="Successful",n.WARNING_TITLE="Warning",n.ERROR_TITLE="Attention!",n.INFO_TITLE="Information",Io;var n})(),Wu=(()=>{return(n=Wu||(Wu={}))[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",Wu;var n})();function ys(n,t,e=!0,r=0){const i=n[t[r]],s=t[r+1];if(!function kk(n,t){return typeof n===t}(s,"string")&&r+1<t.length)throw new Error(`Invalid path key.The key type must be a string. \n Key: ${s}, \n Index: ${r+1},\n Path: ${JSON.stringify(t,(o,a)=>a||String("undefined"))}\n `);return s&&i?ys(i,t,e,r+1):e?function Nk(n){return JSON.parse(JSON.stringify(n))}(i):i}function vC(){const n=screen.height||window.innerHeight,t=screen.width||window.innerWidth,e=Wu.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}}const wC="Watchdog fake error";const Fk=new ue("MOTO_PAY_SERVICE_TOKEN");let Rk=(()=>{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(Uu))},n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),$k=(()=>{class n{constructor(e=null,r,i){this.payService=e,this.http=r,this.config=i}getUserPaymentMethods(e,r){if(!r)return Ir([]);const i=Lm({merchantId:e}),s=Rm({Authorization:r}),a=`${this.config.get("BILLING_PROFILES_HOST")}/api/UserPaymentMethods`;return this.http.get(a,{params:i,headers:s}).pipe(Eo(()=>Ir([])))}getApmLogos(e,r,i){const s=Lm({currency:i,payerId:r}),a=`${this.config.get("PROCESSING_HOST")}/api/merchants/${e}/settings`;return this.http.get(a,{params:s}).pipe(Xt(l=>l.payments.filter(c=>"card"!=c.name)),Eo(()=>Ir([])))}getPaymentInfo(e,r){const s=`${this.config.get("PROCESSING_HOST")}/api/merchants/${e}/payments/${r}`;return this.http.get(s)}pay(e,r){const i=vC(),s=Object.assign({},i);e.ipAddress&&(s.ipAddress=e.ipAddress);const a={headers:Rm(s)},c=`${this.config.get("PROCESSING_HOST")}/api/merchants/${e.merchantId}/payments`;let u=class Lk{static build(t,e){var r,i,s,o,a,l,c;const u={amount:t.amount,amountType:t.amountType,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},m={browserData:vC()},w={id:null!==(s=null!==(i=t.customerId)&&void 0!==i?i:t.email)&&void 0!==s?s:c8().substring(0,36),email:null!==(o=t.email)&&void 0!==o?o:`${c8().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:m,billingAddress:t.billingAddress};return{id:t.paymentId,initiator:null!==(c=t.initiator)&&void 0!==c?c:ju.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 s=Lm({merchantId:r}),o=Rm({Authorization:i}),l=`${this.config.get("BILLING_PROFILES_HOST")}/api/UserPaymentMethods/${e}`;return this.http.delete(l,{params:s,headers:o})}}return n.\u0275fac=function(e){return new(e||n)(U(Fk,8),U(kp),U(Rk))},n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),CC=(()=>{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 Jr(null),this.apms$=new Jr(null),this.payment$=new Jr(null),this.settings$=new Jr(null),this.paymentResult$=new Jr(null),this.apmRecover=()=>Ir([])}initPaymentChangedListener(){this.dataService.getStream("payment$").pipe(Lp(null),e8(e=>this.dataService.action(new xo("change-payment",e))),Kc(Boolean),Wa(100),e8(e=>{this.dataService.setState("isLoadCards",!0),this.dataService.setState("isLoadApms",!0),this.dataService.detect()}),Ua(e=>{const r=this.apiService.getUserPaymentMethods(e.merchantId,e.customerAuthToken);return i8([r.pipe(Xt(o=>o.filter(a=>"card"===a.type.toLowerCase()).map(a=>a))),this.prepareApmsResponse(r.pipe(Xt(o=>o.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 xo("get-cards",e))})}loadCards(){this.dataService.setState("isLoadCards",!0);const{merchantId:e,customerAuthToken:r}=this.dataService.getStreamValue("payment$");this.apiService.getUserPaymentMethods(e,r).pipe(Xt(i=>i.filter(s=>"card"===s.type.toLowerCase()).map(s=>s))).subscribe(i=>{this.dataService.setState("isLoadCards",!1),this.dataService.emitToStream("cards$",i),this.dataService.action(new xo("get-cards",i))})}pay(e){this.dataService.setState("isSentPayment",!0);const r=this.dataService.getStreamValue("payment$");this.apiService.pay(r,e).subscribe({next:s=>{this.dataService.action(new xo("pay",s))},error:this.dataService.errorHandler("error-pay")})}alternativePay(e){this.dataService.setState("isSentPayment",!0);const r=o=>{this.dataService.action(new xo("pay",o))},{type:i}=e.requisites,s=this.motoApmsService.get(i);s.isAvailable().subscribe(o=>{if(!o)return void this.dataService.errorHandler("error-pay");const a=this.dataService.getStreamValue("payment$");s.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,customerAuthToken:i}=this.dataService.getStreamValue("payment$");this.apiService.removeCard(e.id,r,i).subscribe(()=>{this.dataService.setState("isRemovedCard",!1),this.dataService.action(new xo("remove-card",e))})}prepareApmsResponse(e){return e.pipe(Ua(r=>this.prepareApms(r)),Eo(this.apmRecover))}prepareApms(e){const{merchantId:r,customerId:i,currency:s}=this.dataService.getStreamValue("payment$");return this.apiService.getApmLogos(r,i,s).pipe(Xt(o=>{let a=this.joinUserApmsAndApms(e,o);return this.sortApms(a)}),function UT(n){return vn((t,e)=>{let r=!1;t.subscribe(rn(e,i=>{r=!0,e.next(i)},()=>{r||e.next(n),e.complete()}))})}([]),Ua(o=>this.filterApms(o)))}joinUserApmsAndApms(e,r){return r.map(i=>{const s=e.findIndex(o=>o.name.toLocaleLowerCase()===i.name.toLocaleLowerCase());return s<0?{name:i.name,logo:i.logo,type:i.name}:Object.assign(Object.assign({},e[s]),{logo:i.logo})})}filterApms(e){const r=e.map(i=>this.motoApmsService.has(i.name)?this.motoApmsService.get(i.name).isAvailable().pipe(Xt(s=>s?i:null),Eo(()=>Ir(null))):Ir(i));return r.length?i8(r).pipe(Xt(i=>i.filter(s=>s))):Ir([])}sortApms(e){return e.sort((r,i)=>Number(!i.logo)-Number(!r.logo))}}return n.\u0275fac=function(e){return new(e||n)(U($k),U(Fm),U(Uu))},n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Vk=(()=>{class n{constructor(){this._close=new He,this.showCloseButton=!0}close(){this._close.emit()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ot({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&&(W(0,"header",0)(1,"h6",1),Ae(2,"Checkout"),q(),de(3,AP,3,0,"div",2),q()),2&e&&(z(3),G("ngIf",r.showCloseButton))},directives:[dr],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})(),Bk=(()=>{class n{constructor(){this.description=null,this.links=null}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ot({type:n,selectors:[["moto-pay-footer"]],inputs:{description:"description",links:"links"},decls:1,vars:1,consts:[["class","__ndb-footer",4,"ngIf"],[1,"__ndb-footer"],["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-link fz-12 fw-500 font-description",4,"ngIf"],[1,"__ndb-footer-links-link","fz-12","fw-500","font-description"],[1,"__ndb-footer-description","fz-11","fw-500","font-description"]],template:function(e,r){1&e&&de(0,NP,3,2,"div",0),2&e&&G("ngIf",(null==r.links?null:r.links.length)||r.description)},directives:[dr,jc],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:15px;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;flex-wrap:wrap}.__ndb-footer-links-link[_ngcontent-%COMP%]{margin-right:10px;white-space:nowrap}.__ndb-footer-description[_ngcontent-%COMP%]{line-height:1.1}"],changeDetection:0}),n})();class $m{constructor(t){this.animationTime=ji.DEFAULT_ANIMATE_MS,Object.assign(this,t)}}const jk=So("ANHeight",[kr(":enter",[Pt({overflow:"hidden",height:"0px"}),Pr(ji.DEFAULT_ANIMATE_MS,Pt({height:"*",overflow:"hidden"}))]),kr(":leave",[Pt({height:"*",overflow:"hidden"}),Pr(ji.DEFAULT_ANIMATE_MS,Pt({height:"0px",overflow:"hidden"}))])]),Hk=So("ANScale",[kr(":enter",[Pt({opacity:0,transform:"scale(0)"}),Pr(ji.DEFAULT_ANIMATE_MS,Pt({opacity:1,transform:"scale(1)"}))]),kr(":leave",Pr(ji.DEFAULT_ANIMATE_MS,Pt({opacity:0,transform:"scale(0)"})))]),bC=n=>{const t=new $m({animationName:"ANTransform",fromStyles:{opacity:"0",transform:"translateY(-100%)"},toStyles:{opacity:"1",transform:"translateY(0%)"}}),e=Object.assign(t,n),{animationName:r,animationTime:i,fromStyles:s,toStyles:o}=e;return So(r,[kr(":enter",[Pt(s),Pr(i,Pt(o))]),kr(":leave",[Pt(o),Pr(i,Pt(s))])])},Uk=n=>{const t=new $m({animationName:"ANStates",fromState:"a",toState:"b"}),e=Object.assign(t,n),{animationName:r,animationTime:i,fromStyles:s,toStyles:o,fromState:a,toState:l}=e;return So(r,[qa(a,Pt(s)),qa(l,Pt(o)),kr(`${a}<=>${l}`,Pr(i))])},zk=n=>{const t=new $m({animationName:"ANStates"}),e=Object.assign(t,n),{animationName:r,animationTime:i,fromStyles:s,toStyles:o}=e;return So(r,[kr(":enter",[Pt(s),Pr(i,Pt(o))]),kr(":leave",[Pt(o),Pr(i,Pt(s))])])};let ol=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ot({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&&de(0,OP,2,2,"div",0),2&e&&G("ngIf",r.src)},directives:[dr],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 _s={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 "customerId" is required in the payment model',"invalid-env":`The field "env" in the payment model can only be of these types: "${Object.values(ms).join(", ")}"`,"not-exist-payment-id":"The field paymentId is required in the payment model"}}};let DC=(()=>{class n{transform(e){return`${_s.urls.resources}/images/${e}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=gt({name:"image",type:n,pure:!0}),n})(),EC=(()=>{class n{constructor(){this.shadow=!0}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ot({type:n,selectors:[["moto-loader"]],hostVars:1,hostBindings:function(e,r){2&e&&yc("@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&&(W(0,"div",0),ot(1,"moto-picture",1),je(2,"image"),q()),2&e&&(Wr("shadow",r.shadow),z(1),G("src",hi(2,3,"spinner-small.gif")))},directives:[ol],pipes:[DC],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:[zk({animationName:"ANFade",fromStyles:{opacity:"0"},toStyles:{opacity:"1"}})]},changeDetection:0}),n})();const Vm=new ue("moto-window-document",{providedIn:"root",factory:()=>window});function SC(n){return n&&n.replace(/\s+/g," ").trim()}let Bm=(()=>{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 He}ngOnInit(){this.initFormControl()}initFormControl(){this.formControl=this.injector.get(yi)}get isInvalidControl(){return"invalid"===this.status||function Wk(n){const{invalid:t,pristine:e,touched:r}=n;return t&&r&&!e}(this.formControl)&&this.validate}setValue(e){this.value=SC(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=SC(e),this.cdr.detectChanges()}setDisabledState(e){this.disabled=e,this.cdr.detectChanges()}}return n.\u0275fac=function(e){return new(e||n)(P(Ra),P(xt))},n.\u0275cmp=Ot({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:[rt([{provide:Gn,useExisting:Ze(()=>n),multi:!0}])],ngContentSelectors:LP,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 Vy(n){const t=O()[16][6];if(!t.projection){const r=t.projection=oa(n?n.length:1,null),i=r.slice();let s=t.child;for(;null!==s;){const o=n?S9(s,n):0;null!==o&&(i[o]?i[o].projectionNext=s:r[o]=s,i[o]=s),s=s.next}}}(FP),W(0,"div",0)(1,"div",1),wf(2),q(),W(3,"div",2)(4,"input",3,4),Re("ngModelChange",function(s){return r.setValue(s)})("blur",function(){return r.onTouched()})("paste",function(s){return r.paste(s)}),q()(),W(6,"div",1),wf(7,1),q()()),2&e&&(Wr("transparent",r.transparent)("invalid",r.isInvalidControl),z(4),G("type",r.type)("placeholder",r.placeholder)("minlength",r.minlength)("maxlength",r.maxlength)("mask",r.mask)("dropSpecialCharacters",r.dropSpecialCharacters)("ngModel",r.value),gn("data-locator",r.formControlName||r.placeholder)("autocomplete",r.autocomplete))},directives:[ZA,tu,gu,el,iu,tm],styles:[""],changeDetection:0}),n})();const Qk={"form-field-length":gs};let jm=(()=>{class n{transform(e,r){const s=Qk[r][e];if(function Pk(n){return!function _C(n){return null==n}(n)}(s))return s;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=gt({name:"enum",type:n,pure:!0}),n})(),al=(()=>{class n{transform(e,r,i){return Boolean(e)?r:i}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=gt({name:"condition",type:n,pure:!0}),n})(),MC=(()=>{class n extends Vu{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,[gi.maxLength(gs.MAX_TEL),gi.minLength(gs.MIN_TEL)]]})}initFormValueListener(){this.form.valueChanges.pipe(Lp(null),Wa(50),o8(),Kc(([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)(P(xt),P(yw))},n.\u0275cmp=Ot({type:n,selectors:[["moto-pay-additional-form"]],inputs:{fieldSettings:"fieldSettings"},exportAs:["additionalFormRef"],features:[Be],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&&(W(0,"form",0),de(1,$P,10,15,"div",1),q()),2&e&&(G("formGroup",r.form),z(1),G("ngIf",r.fieldSettings.settings.isPhoneNumberFieldVisible))},directives:[Bm,nm,jp,Xa,dr,iu,mu,gu,el],pipes:[jm,al],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:[bC()]},changeDetection:0}),n})();const Yk={"american-express":[3,4]};class qu{static luhnAlgorithm({value:t}){return Boolean(t)&&function Jk(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),[s,o,a,l]=t.split(""),c=`${s}${o}`,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>=il.MIN_CARD_NUMBER_LENGTH&&e<=il.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),[s]=eu(null==i?void 0:i.value),o=Boolean(null==s?void 0:s.code.size)&&Boolean(e),a=Yk[null==s?void 0:s.type];return o&&((null==s?void 0:s.code.size)===(null==e?void 0:e.length)||(null==a?void 0:a.includes(null==e?void 0:e.length)))?null:{cardCodeLength:!0}}}}let ll=(()=>{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)(P(Tr),P(Qr))},n.\u0275dir=_e({type:n,selectors:[["","motoLet",""]],inputs:{_motoLet:["motoLet","_motoLet"]}}),n})(),Zu=(()=>{class n{transform(e,r,i=null){const[s]=eu(e);if(!s)return i;switch(r){case"logo":return this.getLogo(s);case"payment-system":return s.niceType;case"card-number-mask":return"0000 0000 0000 0000 000";case"secure-text":return Gu[s.type];case"code":return s.code.name;case"code-mask":{const{size:o}=s.code;return Array.from({length:o}).fill("0").join("")}}}getLogo(e){return e?`${_s.urls.resources}/images/${sl[e.type]||sl.default}.svg`:null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=gt({name:"cardInfo",type:n,pure:!0}),n})(),TC=(()=>{class n extends Vu{constructor(e,r){super(e),this.injector=e,this.fb=r,this.isErrorSubmit=!1,this.creadentialErrorMessages=ys(_s,["formErrorMessages"])}ngOnInit(){this.initForm(),this.initFormValueListener()}initForm(){this.form=this.fb.group({cardCredentials:this.fb.group({cardNumber:[null,[gi.required,qu.luhnAlgorithm,qu.cardNumberLength]],expiration:[null,[gi.required,gi.minLength(4),gi.maxLength(4),qu.cardExpiration]],cvv:[null,[gi.required,qu.cardCodeLength()]]}),cardHolder:[null,[gi.required,gi.maxLength(gs.MAX_CARD_HOLDER)]]})}initFormValueListener(){this.form.valueChanges.pipe(Lp(null),Wa(50),o8(),Kc(([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 Gk(n){return n.replace(/\s/g,"")}(e);this.form.get("cardCredentials").get("cardNumber").setValue(r,{onlySelf:!0}),function Kk(n,t,e=null,r=!0){t.forEach(i=>{const s=n.get(i);s||function Ik(n){throw new Error(n)}(`Invalid form control name: "${i}"`),s.reset(e),r&&s.updateValueAndValidity()})}(this.form.get("cardCredentials"),["expiration","cvv"]),this.detect()}get paymentsErrorMsg(){const e=this.form.get("cardCredentials"),[r]=function Zk(n){return function qk(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)(P(xt),P(yw))},n.\u0275cmp=Ot({type:n,selectors:[["moto-pay-card-form"]],exportAs:["cardFormRef"],features:[Be],decls:16,vars:14,consts:[[1,"__ndb-form",3,"formGroup"],[1,"__ndb-form-stage"],[1,"__ndb-form-stage-header"],[1,"__ndb-form-stage-header-title","fz-14","fw-500"],["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"],["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&&(W(0,"form",0)(1,"div",1)(2,"div",2)(3,"h6",3),Ae(4," Payment details "),q(),de(5,VP,2,2,"span",4),q(),de(6,BP,19,48,"div",5),q(),W(7,"div",1)(8,"div",2)(9,"h6",3),Ae(10,"Name on card"),q(),de(11,jP,2,1,"span",6),q(),W(12,"div",7),ot(13,"moto-form-input",8),je(14,"enum"),je(15,"condition"),q()()()),2&e&&(G("formGroup",r.form),z(5),G("ngIf",r.isInvalidCredentials),z(1),G("motoLet",r.getFormValue()),z(5),G("ngIf",r.isInvalidHolder),z(2),G("maxlength",lr(14,7,"MAX_CARD_HOLDER","form-field-length"))("validate",!1)("status",Pn(15,10,r.isInvalidHolder,"invalid","valid")))},directives:[Bm,ol,nm,jp,Xa,dr,ll,pu,iu,mu,el],pipes:[Zu,al,jm],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-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:[bC()]},changeDetection:0}),n})();class Xk{constructor(t,e=!1){this.card=t,this.selected=e}setSelected(t){this.selected=t}}let eN=(()=>{class n{constructor(){this.isOpenPopup=!1,this.popupid=function Ak(n=1){return window.crypto.getRandomValues(new Uint32Array(n)).toString()}(),this._select=new He,this._remove=new He}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=Ot({type:n,selectors:[["moto-pay-card"]],hostBindings:function(e,r){1&e&&Re("click",function(s){return r.hidePopup(s.target)},!1,h0)},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&&(W(0,"div",0)(1,"div",1),Re("click",function(){return r.select()}),q(),ot(2,"moto-picture",2),je(3,"cardInfo"),W(4,"span",3),Ae(5),je(6,"cardInfo"),q(),W(7,"span",4),Ae(8),je(9,"slice"),q(),W(10,"div",5)(11,"i",6),Re("click",function(){return r.setPopupState(!r.isOpenPopup)}),Ae(12,"more_vert"),q(),W(13,"div",7)(14,"span",8),Re("click",function(){return r.remove()}),Ae(15,"Remove card"),q()()()()),2&e&&(z(1),Wr("selected",r.option.selected),z(1),G("src",lr(3,8,r.option.card.name,"logo")),z(3),Oi(lr(6,11,r.option.card.name,"payment-system")),z(3),Oi(lr(9,14,r.option.card.name,-6)),z(2),gn("data-card-popup",r.popupid),z(3),Wr("open",r.isOpenPopup))},directives:[ol],pipes:[Zu,wp],styles:['[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff}.__ndb-card[_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})(),AC=(()=>{class n{constructor(){this._select=new He,this._remove=new He}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(s=>s.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 Xk(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=Ot({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&&(W(0,"div",0),de(1,UP,2,1,"ng-container",1),q(),de(2,zP,2,0,"ng-template",null,2,ss)),2&e){const i=ns(3);z(1),G("ngIf",null==r.cardOptions?null:r.cardOptions.length)("ngIfElse",i)}},directives:[eN,dr,jc],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})(),sN=(()=>{class n{constructor(){this._pay=new He}pay(e){this._pay.emit(e)}trackByApm(e,r){return r.name}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ot({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&&(de(0,qP,5,2,"div",0),de(1,ZP,2,2,"ng-template",null,1,ss),de(3,KP,1,0,"ng-template",null,2,ss)),2&e){const i=ns(4);G("motoLet",kf(1,QP,i))}},directives:[ll,jc,y2,wx],pipes:[al],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})(),xC=(()=>{class n{constructor(e){this.window=e}transform(e,r){const i=zu[r];return Number(e).toLocaleString(this.window.navigator.language,{style:"currency",currency:i})}}return n.\u0275fac=function(e){return new(e||n)(P(Vm,16))},n.\u0275pipe=gt({name:"currencySymbol",type:n,pure:!0}),n})(),IC=(()=>{class n{transform(e,r,i){return r&&i&&i==Hu.Net?Math.abs(e)+Math.abs(r):e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=gt({name:"price",type:n,pure:!0}),n})(),oN=(()=>{class n extends Vu{constructor(e,r,i,s,o,a){super(r),this.window=e,this.injector=r,this.toastr=i,this.dataService=s,this.viewService=o,this.facadeService=a,this.postMessageKey=ys(_s,["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(){eu.updateCard(eu.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 iN(){let s='\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 s=s.replace("</body>","<script>\n\n const messageKey = '__moto_pay_message';\n\n function inputTemplate(name, value) {\n return `<input type=\"hidden\" name=\"${name}\" value=\"${value}\" />`;\n }\n \n function formTemplate(redirectUrl, inputsTpl) {\n return `<form action=\"${redirectUrl}\" method=\"post\">${inputsTpl}</form>`;\n }\n \n function makeFormTemplate(threeDsData) {\n const inputsTemplate = Object.entries(threeDsData).reduce((accum, [key, value]) => {\n const inputTpl = inputTemplate(key, value);\n return (accum += `${inputTpl}\n`);\n }, '');\n const template = formTemplate(threeDsData.acsurl, inputsTemplate);\n return template;\n }\n \n function simpleRedirect(url) {\n window.location.replace(url);\n }\n \n function postRedirect(threeDsData) {\n const template = makeFormTemplate(threeDsData);\n \n setTimeout(() => {\n document.body.innerHTML = template;\n const form = document.body.querySelector('form');\n form.submit();\n });\n }\n \n function onMessageReceived(event) {\n if (event.data && event.data.key == messageKey) {\n if (event.data.type == 'simpleRedirect') {\n simpleRedirect(event.data?.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>"),s}()),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",Io.INFO_TITLE)}this.detect()}apmSubmit(e){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){this.defaultPay({requisites:e,paymentType:"card",rebillAnchor:e.rebill}),this.detect()}payWithForm(){if(this.cardFormRef.isInvalidForm)this.cardFormRef.setErrorSubmitStatus(!0);else{const e=this.cardFormRef.getFormValue(),r=this.additionalFormRef.getFormValue();this.defaultPay({requisites:e,paymentType:"card",additionalFields:r})}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")}}waitingPaymentCompleted(e){(function Ok(n,t,e){return n.pipe(Xt(r=>{if(t(r))return r;throw new Error(wC)}),function NT(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?Is:vn((s,o)=>{let l,a=0;const c=()=>{let u=!1;l=s.subscribe(rn(o,d=>{i&&(a=0),o.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?J2(r):er(r(d,a)),m=rn(o,()=>{m.unsubscribe(),f()},()=>{o.complete()});p.subscribe(m)}else f()}else o.error(d)})),u&&(l.unsubscribe(),l=null,c())};c()})}({delay:r=>{if(r.message==wC)return J2(e);throw r}}))})(this.facadeService.getPaymentInfo(e.payment.paymentId),i=>"needAction"!=i.payment.state,1500).subscribe(i=>{var s;this.showResultComponent(i),null===(s=this.viewState.window)||void 0===s||s.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",Io.SUCCESS_TITLE)}afterChangePayment(){var e;null===(e=this.cardFormRef)||void 0===e||e.resetForm()}}return n.\u0275fac=function(e){return new(e||n)(P(Vm),P(xt),P(vu),P(Uu),P(yC),P(CC))},n.\u0275cmp=Ot({type:n,selectors:[["moto-pay-main"]],viewQuery:function(e,r){if(1&e&&(Co(YP,5,TC),Co(JP,5,MC),Co(XP,5,AC)),2&e){let i;wo(i=bo())&&(r.cardFormRef=i.first),wo(i=bo())&&(r.additionalFormRef=i.first),wo(i=bo())&&(r.cardListRef=i.first)}},features:[Be],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",4,"ngIf"],["class","__ndb-main-card-form block",3,"fieldSettings",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"],["cardFormRef",""],[1,"__ndb-main-card-form","block",3,"fieldSettings"],["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"]],template:function(e,r){1&e&&(de(0,lk,26,26,"div",0),je(1,"async")),2&e&&G("ngIf",hi(1,1,r.payment$))},directives:[AC,TC,MC,ol,sN,dr,ll],pipes:[yp,al,xC,IC,Zu,wp],styles:["[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff}.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:[jk,Hk,Uk({animationName:"ANToggleList",fromState:"hide",toState:"show",fromStyles:{height:"0px",overflow:"hidden"},toStyles:{height:"*"}})]},changeDetection:0}),n})(),aN=(()=>{class n{constructor(){this.resultTextsMap=ys(_s,["result"]),this.result=new He}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=Ot({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&&(W(0,"div",0)(1,"i",1),Ae(2),q(),W(3,"h6",2),Ae(4),q(),de(5,ck,2,1,"p",3),q()),2&e&&(z(2),Oi(r.icon),z(2),Oi(r.title),z(1),G("ngIf",r.description))},directives:[dr],styles:[".__ndb-result[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:10px;padding:28px 28px 0}@media (max-width: 768px){.__ndb-result[_ngcontent-%COMP%]{padding:14px 20px 0}}.__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})(),lN=(()=>{class n{ngOnInit(){this.consoleErrorMsg()}consoleErrorMsg(){const e=ys(_s,["error","descriptionText",this.error]);console.error(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ot({type:n,selectors:[["moto-pay-error"]],inputs:{error:"error"},decls:7,vars:0,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&&(W(0,"div",0)(1,"i",1),Ae(2,"cancel"),q(),W(3,"h6",2),Ae(4,"Invalid payment model"),q(),W(5,"p",3),Ae(6," You cannot make a payment! "),q()())},styles:[".__ndb-error-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:10px;padding:28px 28px 0}@media (max-width: 768px){.__ndb-error-content[_ngcontent-%COMP%]{padding:14px 20px 0}}.__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})(),PC=(()=>{class n extends Vu{constructor(e,r,i,s,o){super(e),this.injector=e,this.dataService=r,this.viewService=i,this.changeDetectorService=s,this.facadeService=o,this.resize$=new Vt,this.paymentResult$=this.dataService.getStream("paymentResult$"),this.settings$=this.dataService.getStream("settings$").pipe(Xt(a=>null==a?void 0:a.settings)),this.dataState=this.dataService.getFullState(),this.viewState=this.viewService.getFullState(),this._paid=new He,this._viewChange=new He,this._close=new He}set _payment(e){this.checkedPaymentModel(e)}set _settings(e){this.preparePaymentSettings(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()})}preparePaymentSettings(e){this.settings=e;const r=new Dk(e);this.dataService.emitToStream("settings$",r)}checkedPaymentModel(e){const r=this.validatePaymentModel(e);r?(this.dataService.emitToStream("payment$",null),this.viewService.setState("paymentErrorType",r)):(this.payment=e,this.dataService.emitToStream("payment$",e),this.viewService.setState("paymentErrorType",null)),this.localDetect()}validatePaymentModel(e){switch(!0){case!e:return"not-exist-payment";case!e.customerId:return"not-exist-customer-id";case function Ek({env:n}){return Object.values(ms).findIndex(t=>t===n)<0}(e):return"invalid-env";case!e.paymentId:return"not-exist-payment-id";default:return null}}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)(P(xt),P(Uu),P(yC),P(pC),P(CC))},n.\u0275cmp=Ot({type:n,selectors:[["moto-pay-wrapper"]],viewQuery:function(e,r){if(1&e&&Co(uk,5),2&e){let i;wo(i=bo())&&(r.wrapperRef=i.first)}},hostBindings:function(e,r){1&e&&Re("resize",function(s){return r.onWindowResize(s.target)},!1,d0)},inputs:{_payment:["payment","_payment"],_settings:["settings","_settings"]},outputs:{_paid:"paid",_viewChange:"viewChange",_close:"close"},features:[Be],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,"description","links",4,"ngIf"],[4,"ngIf"],["data-locator","form-loaded",4,"ngIf"],[3,"description","links"],["data-locator","form-loaded"],[4,"ngIf","ngIfElse"],[3,"paymentResult","result"],[3,"error"]],template:function(e,r){1&e&&(de(0,mk,9,9,"div",0),je(1,"async"),de(2,yk,1,2,"ng-template",null,1,ss),de(4,_k,2,3,"ng-template",null,2,ss),de(6,vk,1,1,"ng-template",null,3,ss)),2&e&&G("motoLet",hi(1,1,r.settings$))},directives:[Vk,Bk,EC,oN,aN,lN,ll,dr],pipes:[yp],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})(),cN=(()=>{class n{constructor(){this.payment=null,this.settings=null,this._close=new He,this._paid=new He,this._viewChange=new He,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=Ot({type:n,selectors:[["moto-pay"]],viewQuery:function(e,r){if(1&e&&Co(wk,5,PC),2&e){let i;wo(i=bo())&&(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&&(W(0,"moto-pay-wrapper",0,1),Re("paid",function(s){return r.paid(s)})("viewChange",function(s){return r.viewChange(s)})("close",function(){return r.close()}),q()),2&e&&G("payment",r.payment)("settings",r.settings)},directives:[PC],styles:[""]}),n})(),uN=(()=>{class n{constructor(){}intercept(e,r){return e.context.get(bk),r.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})(),dN=(()=>{class n{constructor(e){this.toastr=e}intercept(e,r){return e.context.get(Ck)?r.handle(e):r.handle(e).pipe(Eo(i=>{const{Errors:s}=i.error||{};let o=i.message;return s&&(o=s[0].Message),401==i.status&&(o="Not authorized (details in console)",console.error(i)),this.toastr.error(o,Io.ERROR_TITLE),function zT(n,t){const e=Me(n)?n:()=>n,r=i=>i.error(e());return new $t(t?i=>t.schedule(r,0,i):r)}(()=>i)}))}}return n.\u0275fac=function(e){return new(e||n)(U(vu))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();const hN=[Hc];let Ku=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[hN,Hc]}),n})(),Qu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({}),n})(),kC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[Ku,Qu]]}),n})(),NC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({}),n})();const yN=[um.forRoot()];let Um=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[yN,um]}),n})();const OC=[lm,gw];[Bm,(()=>{class n{constructor(){}registerOnChange(e){}registerOnTouched(e){}setDisabledState(e){}ngOnInit(){}writeValue(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ot({type:n,selectors:[["moto-form-textarea"]],features:[rt([{provide:Gn,useExisting:Ze(()=>n),multi:!0}])],decls:2,vars:0,consts:[[1,"__ndb-form-control"]],template:function(e,r){1&e&&(W(0,"div",0),ot(1,"textarea"),q())},styles:[""],changeDetection:0}),n})()].concat(OC);let FC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[...OC,Ku,Um,Qu],lm,gw]}),n})();const vN=[Ku,FC,kC,NC,Qu,Um];let wN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[vN,Ku,FC,kC,NC,Qu,Um]}),n})();const CN=new ue("LANGUAGE_TOKEN",{factory:()=>Kl(Vm).navigator.language});let bN=(()=>{class n{constructor(e,r){this.clientLanguage=e,this.applePayService=r,this.name=Bu.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 Ir(!1)}pay(e){const{amount:r,currency:i,description:s,billingAddress:o,merchantId:a}=e,l=Boolean(null==o?void 0:o.country)?o.country:this.defaultCountryCode,c={total:{amount:r.toString(),currency:i.toUpperCase(),label:s},countryCode:l.toUpperCase(),merchantId:a};return this.applePayService.pay(c).pipe(Xt(({payment:u})=>JSON.stringify(u)))}}return n.\u0275fac=function(e){return new(e||n)(U(CN),U(aC))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})(),DN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({providers:[Fm,{provide:Yc,useClass:uN,multi:!0},{provide:Yc,useClass:dN,multi:!0},{provide:gC,useClass:bN,multi:!0},{provide:lC,useValue:ys(_s,["urls","merchantUrl"])}],imports:[[K2,_P,wN,_x.forRoot(),TP.forRoot(),Cx]]}),n})(),EN=(()=>{class n{constructor(e){this.injector=e}ngDoBootstrap(e){const{injector:r}=this,i=function fT(n,t){const e=function oT(n,t){return t.get(is).resolveComponentFactory(n).inputs}(n,t.injector),r=t.strategyFactory||new uT(n,t.injector),i=function sT(n){const t={};return n.forEach(({propName:e,templateName:r})=>{t[function eT(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}(r)]=e}),t}(e);class s extends hT{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 s.observedAttributes=Object.keys(i),e.forEach(({propName:o})=>{Object.defineProperty(s.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(a){this.ngElementStrategy.setInputValue(o,a)},configurable:!0,enumerable:!0})}),s}(cN,{injector:r});customElements.define("moto-web-pay",i)}}return n.\u0275fac=function(e){return new(e||n)(U(xt))},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[k2,DN]]}),n})();(function RE(){Wv=!1})(),jM().bootstrapModule(EN).catch(n=>console.error(n))},791:function(Jn,ut,qt){var Me=this&&this.__assign||function(){return Me=Object.assign||function(ze){for(var Xe,_t=1,Fn=arguments.length;_t<Fn;_t++)for(var Wi in Xe=arguments[_t])Object.prototype.hasOwnProperty.call(Xe,Wi)&&(ze[Wi]=Xe[Wi]);return ze},Me.apply(this,arguments)},dn=qt(251),Mt=qt(273),qe=qt(87),Nt=qt(95),Xn=qt(645),nn={},pt={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"},_n=[pt.VISA,pt.MASTERCARD,pt.AMERICAN_EXPRESS,pt.DINERS_CLUB,pt.DISCOVER,pt.JCB,pt.UNIONPAY,pt.MAESTRO,pt.ELO,pt.MIR,pt.HIPER,pt.HIPERCARD],hn=Xn.clone(_n);function xs(ze){return nn[ze]||dn[ze]}function Wo(ze,Xe){void 0===Xe&&(Xe=!1);var _t=hn.indexOf(ze);if(!Xe&&-1===_t)throw new Error('"'+ze+'" is not a supported card type.');return _t}function Lr(ze){var Xe=[];if(!qe.isValidInputType(ze))return Xe;if(0===ze.length)return function Go(){return hn.map(function(ze){return Xn.clone(xs(ze))})}();hn.forEach(function(Fn){var Wi=xs(Fn);Mt.addMatchingCardsToResults(ze,Wi,Xe)});var _t=Nt.findBestMatch(Xe);return _t?[_t]:Xe}Lr.getTypeInfo=function(ze){return Xn.clone(xs(ze))},Lr.removeCard=function(ze){var Xe=Wo(ze);hn.splice(Xe,1)},Lr.addCard=function(ze){var Xe=Wo(ze.type,!0);nn[ze.type]=ze,-1===Xe&&hn.push(ze.type)},Lr.updateCard=function(ze,Xe){var _t=nn[ze]||dn[ze];if(!_t)throw new Error('"'+ze+"\" is not a recognized type. Use `addCard` instead.'");if(Xe.type&&_t.type!==Xe.type)throw new Error("Cannot overwrite type parameter.");var Fn=Xn.clone(_t);Fn=Me(Me({},Fn),Xe),nn[Fn.type]=Fn},Lr.changeOrder=function(ze,Xe){var _t=Wo(ze);hn.splice(_t,1),hn.splice(Xe,0,ze)},Lr.resetModifications=function(){hn=Xn.clone(_n),nn={}},Lr.types=pt,Jn.exports=Lr},273:(Jn,ut,qt)=>{Object.defineProperty(ut,"__esModule",{value:!0}),ut.addMatchingCardsToResults=void 0;var Me=qt(645),dn=qt(694);ut.addMatchingCardsToResults=function Mt(qe,Nt,Xn){var nn,pt;for(nn=0;nn<Nt.patterns.length;nn++){var _n=Nt.patterns[nn];if(dn.matches(qe,_n)){var hn=Me.clone(Nt);pt=Array.isArray(_n)?String(_n[0]).length:String(_n).length,qe.length>=pt&&(hn.matchStrength=pt),Xn.push(hn);break}}}},251:Jn=>{Jn.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:(Jn,ut)=>{Object.defineProperty(ut,"__esModule",{value:!0}),ut.clone=void 0,ut.clone=function qt(Me){return Me?JSON.parse(JSON.stringify(Me)):null}},95:(Jn,ut)=>{Object.defineProperty(ut,"__esModule",{value:!0}),ut.findBestMatch=void 0,ut.findBestMatch=function Me(dn){return function qt(dn){var Mt=dn.filter(function(qe){return qe.matchStrength}).length;return Mt>0&&Mt===dn.length}(dn)?dn.reduce(function(Mt,qe){return!Mt||Number(Mt.matchStrength)<Number(qe.matchStrength)?qe:Mt}):null}},87:(Jn,ut)=>{Object.defineProperty(ut,"__esModule",{value:!0}),ut.isValidInputType=void 0,ut.isValidInputType=function qt(Me){return"string"==typeof Me||Me instanceof String}},694:(Jn,ut)=>{Object.defineProperty(ut,"__esModule",{value:!0}),ut.matches=void 0,ut.matches=function dn(Mt,qe){return Array.isArray(qe)?function qt(Mt,qe,Nt){var Xn=String(qe).length,nn=Mt.substr(0,Xn),pt=parseInt(nn,10);return qe=parseInt(String(qe).substr(0,nn.length),10),Nt=parseInt(String(Nt).substr(0,nn.length),10),pt>=qe&&pt<=Nt}(Mt,qe[0],qe[1]):function Me(Mt,qe){return(qe=String(qe)).substring(0,Mt.length)===Mt.substring(0,qe.length)}(Mt,qe)}}},Jn=>{Jn(Jn.s=291)}]);
3
+ "use strict";(self.webpackChunkweb_component=self.webpackChunkweb_component||[]).push([[179],{853:(rr,lt,Qt)=>{function be(n){return"function"==typeof n}function gn(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 Mt=gn(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 Ke(n,t){if(n){const e=n.indexOf(t);0<=e&&n.splice(e,1)}}class Ot{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 s of e)s.remove(this);else e.remove(this);const{initialTeardown:r}=this;if(be(r))try{r()}catch(s){t=s instanceof Mt?s.errors:[s]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const s of i)try{ut(s)}catch(o){t=null!=t?t:[],o instanceof Mt?t=[...t,...o.errors]:t.push(o)}}if(t)throw new Mt(t)}}add(t){var e;if(t&&t!==this)if(this.closed)ut(t);else{if(t instanceof Ot){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)&&Ke(e,t)}remove(t){const{_finalizers:e}=this;e&&Ke(e,t),t instanceof Ot&&t._removeParent(this)}}Ot.EMPTY=(()=>{const n=new Ot;return n.closed=!0,n})();const ir=Ot.EMPTY;function an(n){return n instanceof Ot||n&&"closed"in n&&be(n.remove)&&be(n.add)&&be(n.unsubscribe)}function ut(n){be(n)?n():n.unsubscribe()}const Cn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},mn={setTimeout(n,t,...e){const{delegate:r}=mn;return(null==r?void 0:r.setTimeout)?r.setTimeout(n,t,...e):setTimeout(n,t,...e)},clearTimeout(n){const{delegate:t}=mn;return((null==t?void 0:t.clearTimeout)||clearTimeout)(n)},delegate:void 0};function Hs(n){mn.setTimeout(()=>{const{onUnhandledError:t}=Cn;if(!t)throw n;t(n)})}function ha(){}const fa=et("C",void 0,void 0);function et(n,t,e){return{kind:n,value:t,error:e}}let mt=null;function jn(n){if(Cn.useDeprecatedSynchronousErrorHandling){const t=!mt;if(t&&(mt={errorThrown:!1,error:null}),n(),t){const{errorThrown:e,error:r}=mt;if(mt=null,e)throw r}}else n()}class Zd extends Ot{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,an(t)&&t.add(this)):this.destination=Y3}static create(t,e,r){return new pa(t,e,r)}next(t){this.isStopped?Yd(function ze(n){return et("N",n,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Yd(function Br(n){return et("E",void 0,n)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Yd(fa,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 K3=Function.prototype.bind;function Qd(n,t){return K3.call(n,t)}class Z3{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next)try{e.next(t)}catch(r){Gl(r)}}error(t){const{partialObserver:e}=this;if(e.error)try{e.error(t)}catch(r){Gl(r)}else Gl(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(e){Gl(e)}}}class pa extends Zd{constructor(t,e,r){let i;if(super(),be(t)||!t)i={next:null!=t?t:void 0,error:null!=e?e:void 0,complete:null!=r?r:void 0};else{let s;this&&Cn.useDeprecatedNextContext?(s=Object.create(t),s.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&Qd(t.next,s),error:t.error&&Qd(t.error,s),complete:t.complete&&Qd(t.complete,s)}):i=t}this.destination=new Z3(i)}}function Gl(n){Cn.useDeprecatedSynchronousErrorHandling?function is(n){Cn.useDeprecatedSynchronousErrorHandling&&mt&&(mt.errorThrown=!0,mt.error=n)}(n):Hs(n)}function Yd(n,t){const{onStoppedNotification:e}=Cn;e&&mn.setTimeout(()=>e(n,t))}const Y3={closed:!0,next:ha,error:function Q3(n){throw n},complete:ha},Jd="function"==typeof Symbol&&Symbol.observable||"@@observable";function Us(n){return n}function Um(n){return 0===n.length?Us:1===n.length?n[0]:function(e){return n.reduce((r,i)=>i(r),e)}}let jt=(()=>{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 s=function e4(n){return n&&n instanceof Zd||function X3(n){return n&&be(n.next)&&be(n.error)&&be(n.complete)}(n)&&an(n)}(e)?e:new pa(e,r,i);return jn(()=>{const{operator:o,source:a}=this;s.add(o?o.call(s,a):a?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(e){try{return this._subscribe(e)}catch(r){e.error(r)}}forEach(e,r){return new(r=zm(r))((i,s)=>{const o=new pa({next:a=>{try{e(a)}catch(l){s(l),o.unsubscribe()}},error:s,complete:i});this.subscribe(o)})}_subscribe(e){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(e)}[Jd](){return this}pipe(...e){return Um(e)(this)}toPromise(e){return new(e=zm(e))((r,i)=>{let s;this.subscribe(o=>s=o,o=>i(o),()=>r(s))})}}return n.create=t=>new n(t),n})();function zm(n){var t;return null!==(t=null!=n?n:Cn.Promise)&&void 0!==t?t:Promise}const t4=gn(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Ht=(()=>{class n extends jt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const r=new Gm(this,this);return r.operator=e,r}_throwIfClosed(){if(this.closed)throw new t4}next(e){jn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(e)}})}error(e){jn(()=>{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(){jn(()=>{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:s}=this;return r||i?ir:(this.currentObservers=null,s.push(e),new Ot(()=>{this.currentObservers=null,Ke(s,e)}))}_checkFinalizedStatuses(e){const{hasError:r,thrownError:i,isStopped:s}=this;r?e.error(i):s&&e.complete()}asObservable(){const e=new jt;return e.source=this,e}}return n.create=(t,e)=>new Gm(t,e),n})();class Gm extends Ht{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:ir}}function Dn(n){return t=>{if(function n4(n){return be(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 ln(n,t,e,r,i){return new r4(n,t,e,r,i)}class r4 extends Zd{constructor(t,e,r,i,s,o){super(t),this.onFinalize=s,this.shouldUnsubscribe=o,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 kt(n,t){return Dn((e,r)=>{let i=0;e.subscribe(ln(r,s=>{r.next(n.call(t,s,i++))}))})}function ql(n,t,e,r){return new(e||(e=Promise))(function(s,o){function a(u){try{c(r.next(u))}catch(d){o(d)}}function l(u){try{c(r.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):function i(s){return s instanceof e?s:new e(function(o){o(s)})}(u.value).then(a,l)}c((r=r.apply(n,t||[])).next())})}function Oi(n){return this instanceof Oi?(this.v=n,this):new Oi(n)}function Km(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=e.apply(n,t||[]),s=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(h){r[h]&&(i[h]=function(p){return new Promise(function(g,_){s.push([h,p,g,_])>1||a(h,p)})})}function a(h,p){try{!function l(h){h.value instanceof Oi?Promise.resolve(h.value.v).then(c,u):d(s[0][2],h)}(r[h](p))}catch(g){d(s[0][3],g)}}function c(h){a("next",h)}function u(h){a("throw",h)}function d(h,p){h(p),s.shift(),s.length&&a(s[0][0],s[0][1])}}function Zm(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 nh(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(s){e[s]=n[s]&&function(o){return new Promise(function(a,l){!function i(s,o,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},o)}(a,l,(o=n[s](o)).done,o.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Qm=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function Ym(n){return be(null==n?void 0:n.then)}function Jm(n){return be(n[Jd])}function Xm(n){return Symbol.asyncIterator&&be(null==n?void 0:n[Symbol.asyncIterator])}function e1(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 t1=function E4(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function n1(n){return be(null==n?void 0:n[t1])}function r1(n){return Km(this,arguments,function*(){const e=n.getReader();try{for(;;){const{value:r,done:i}=yield Oi(e.read());if(i)return yield Oi(void 0);yield yield Oi(r)}}finally{e.releaseLock()}})}function i1(n){return be(null==n?void 0:n.getReader)}function sr(n){if(n instanceof jt)return n;if(null!=n){if(Jm(n))return function S4(n){return new jt(t=>{const e=n[Jd]();if(be(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(Qm(n))return function M4(n){return new jt(t=>{for(let e=0;e<n.length&&!t.closed;e++)t.next(n[e]);t.complete()})}(n);if(Ym(n))return function T4(n){return new jt(t=>{n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,Hs)})}(n);if(Xm(n))return s1(n);if(n1(n))return function A4(n){return new jt(t=>{for(const e of n)if(t.next(e),t.closed)return;t.complete()})}(n);if(i1(n))return function x4(n){return s1(r1(n))}(n)}throw e1(n)}function s1(n){return new jt(t=>{(function I4(n,t){var e,r,i,s;return ql(this,void 0,void 0,function*(){try{for(e=Zm(n);!(r=yield e.next()).done;)if(t.next(r.value),t.closed)return}catch(o){i={error:o}}finally{try{r&&!r.done&&(s=e.return)&&(yield s.call(e))}finally{if(i)throw i.error}}t.complete()})})(n,t).catch(e=>t.error(e))})}function ci(n,t,e,r=0,i=!1){const s=t.schedule(function(){e(),i?n.add(this.schedule(null,r)):this.unsubscribe()},r);if(n.add(s),!i)return s}function Wl(n,t,e=1/0){return be(t)?Wl((r,i)=>kt((s,o)=>t(r,s,i,o))(sr(n(r,i))),e):("number"==typeof t&&(e=t),Dn((r,i)=>function P4(n,t,e,r,i,s,o,a){const l=[];let c=0,u=0,d=!1;const h=()=>{d&&!l.length&&!c&&t.complete()},p=_=>c<r?g(_):l.push(_),g=_=>{s&&t.next(_),c++;let C=!1;sr(e(_,u++)).subscribe(ln(t,S=>{null==i||i(S),s?p(S):t.next(S)},()=>{C=!0},void 0,()=>{if(C)try{for(c--;l.length&&c<r;){const S=l.shift();o?ci(t,o,()=>g(S)):g(S)}h()}catch(S){t.error(S)}}))};return n.subscribe(ln(t,p,()=>{d=!0,h()})),()=>{null==a||a()}}(r,i,n,e)))}function o1(n=1/0){return Wl(Us,n)}const a1=new jt(n=>n.complete());function l1(n){return n&&be(n.schedule)}function rh(n){return n[n.length-1]}function c1(n){return be(rh(n))?n.pop():void 0}function ga(n){return l1(rh(n))?n.pop():void 0}function u1(n,t=0){return Dn((e,r)=>{e.subscribe(ln(r,i=>ci(r,n,()=>r.next(i),t),()=>ci(r,n,()=>r.complete(),t),i=>ci(r,n,()=>r.error(i),t)))})}function d1(n,t=0){return Dn((e,r)=>{r.add(n.schedule(()=>e.subscribe(r),t))})}function h1(n,t){if(!n)throw new Error("Iterable cannot be null");return new jt(e=>{ci(e,t,()=>{const r=n[Symbol.asyncIterator]();ci(e,t,()=>{r.next().then(i=>{i.done?e.complete():e.next(i.value)})},0,!0)})})}function ss(n,t){return t?function V4(n,t){if(null!=n){if(Jm(n))return function k4(n,t){return sr(n).pipe(d1(t),u1(t))}(n,t);if(Qm(n))return function F4(n,t){return new jt(e=>{let r=0;return t.schedule(function(){r===n.length?e.complete():(e.next(n[r++]),e.closed||this.schedule())})})}(n,t);if(Ym(n))return function R4(n,t){return sr(n).pipe(d1(t),u1(t))}(n,t);if(Xm(n))return h1(n,t);if(n1(n))return function L4(n,t){return new jt(e=>{let r;return ci(e,t,()=>{r=n[t1](),ci(e,t,()=>{let i,s;try{({value:i,done:s}=r.next())}catch(o){return void e.error(o)}s?e.complete():e.next(i)},0,!0)}),()=>be(null==r?void 0:r.return)&&r.return()})}(n,t);if(i1(n))return function $4(n,t){return h1(r1(n),t)}(n,t)}throw e1(n)}(n,t):sr(n)}function f1(...n){const t=ga(n),e=function O4(n,t){return"number"==typeof rh(n)?n.pop():t}(n,1/0),r=n;return r.length?1===r.length?sr(r[0]):o1(e)(ss(r,t)):a1}function ih(n,t,...e){if(!0===t)return void n();if(!1===t)return;const r=new pa({next:()=>{r.unsubscribe(),n()}});return t(...e).subscribe(r)}function tt(n){for(let t in n)if(n[t]===tt)return t;throw Error("Could not find renamed property on target object.")}function sh(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 oh(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const j4=tt({__forward_ref__:tt});function Ze(n){return n.__forward_ref__=Ze,n.toString=function(){return Qe(this())},n}function Te(n){return p1(n)?n():n}function p1(n){return"function"==typeof n&&n.hasOwnProperty(j4)&&n.__forward_ref__===Ze}class ee extends Error{constructor(t,e){super(function ah(n,t){return`NG0${Math.abs(n)}${t?": "+t:""}`}(t,e)),this.code=t}}function me(n){return"string"==typeof n?n:null==n?"":String(n)}function cn(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():me(n)}function Kl(n,t){const e=t?` in ${t}`:"";throw new ee(-201,`No provider for ${cn(n)} found${e}`)}function Un(n,t){null==n&&function Ye(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 ct(n){return{providers:n.providers||[],imports:n.imports||[]}}function lh(n){return g1(n,Zl)||g1(n,y1)}function g1(n,t){return n.hasOwnProperty(t)?n[t]:null}function m1(n){return n&&(n.hasOwnProperty(ch)||n.hasOwnProperty(K4))?n[ch]:null}const Zl=tt({\u0275prov:tt}),ch=tt({\u0275inj:tt}),y1=tt({ngInjectableDef:tt}),K4=tt({ngInjectorDef:tt});var _e=(()=>((_e=_e||{})[_e.Default=0]="Default",_e[_e.Host=1]="Host",_e[_e.Self=2]="Self",_e[_e.SkipSelf=4]="SkipSelf",_e[_e.Optional=8]="Optional",_e))();let uh;function ki(n){const t=uh;return uh=n,t}function v1(n,t,e){const r=lh(n);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:e&_e.Optional?null:void 0!==t?t:void Kl(Qe(n),"Injector")}function Ri(n){return{toString:n}.toString()}var Cr=(()=>((Cr=Cr||{})[Cr.OnPush=0]="OnPush",Cr[Cr.Default=1]="Default",Cr))(),Dr=(()=>{return(n=Dr||(Dr={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",Dr;var n})();const Q4="undefined"!=typeof globalThis&&globalThis,Y4="undefined"!=typeof window&&window,J4="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Je=Q4||"undefined"!=typeof global&&global||Y4||J4,zs={},nt=[],Ql=tt({\u0275cmp:tt}),dh=tt({\u0275dir:tt}),hh=tt({\u0275pipe:tt}),_1=tt({\u0275mod:tt}),di=tt({\u0275fac:tt}),ma=tt({__NG_ELEMENT_ID__:tt});let X4=0;function Rt(n){return Ri(()=>{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===Cr.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||nt,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Dr.Emulated,id:"c",styles:n.styles||nt,_:null,setInput:null,schemas:n.schemas||null,tView:null},i=n.directives,s=n.features,o=n.pipes;return r.id+=X4++,r.inputs=D1(n.inputs,e),r.outputs=D1(n.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=i?()=>("function"==typeof i?i():i).map(w1):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(b1):null,r})}function w1(n){return un(n)||function Fi(n){return n[dh]||null}(n)}function b1(n){return function os(n){return n[hh]||null}(n)}const C1={};function dt(n){return Ri(()=>{const t={type:n.type,bootstrap:n.bootstrap||nt,declarations:n.declarations||nt,imports:n.imports||nt,exports:n.exports||nt,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(C1[n.id]=n.type),t})}function D1(n,t){if(null==n)return zs;const e={};for(const r in n)if(n.hasOwnProperty(r)){let i=n[r],s=i;Array.isArray(i)&&(s=i[1],i=i[0]),e[i]=r,t&&(t[i]=s)}return e}const pe=Rt;function ht(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,onDestroy:n.type.prototype.ngOnDestroy||null}}function un(n){return n[Ql]||null}function or(n,t){const e=n[_1]||null;if(!e&&!0===t)throw new Error(`Type ${Qe(n)} does not have '\u0275mod' property.`);return e}function jr(n){return Array.isArray(n)&&"object"==typeof n[1]}function Sr(n){return Array.isArray(n)&&!0===n[1]}function gh(n){return 0!=(8&n.flags)}function ec(n){return 2==(2&n.flags)}function tc(n){return 1==(1&n.flags)}function Mr(n){return null!==n.template}function sC(n){return 0!=(512&n[2])}function us(n,t){return n.hasOwnProperty(di)?n[di]:null}class S1{constructor(t,e,r){this.previousValue=t,this.currentValue=e,this.firstChange=r}isFirstChange(){return this.firstChange}}function Hr(){return M1}function M1(n){return n.type.prototype.ngOnChanges&&(n.setInput=cC),lC}function lC(){const n=A1(this),t=null==n?void 0:n.current;if(t){const e=n.previous;if(e===zs)n.previous=t;else for(let r in t)e[r]=t[r];n.current=null,this.ngOnChanges(t)}}function cC(n,t,e,r){const i=A1(n)||function uC(n,t){return n[T1]=t}(n,{previous:zs,current:null}),s=i.current||(i.current={}),o=i.previous,a=this.declaredInputs[e],l=o[a];s[a]=new S1(l&&l.currentValue,t,o===zs),n[r]=t}Hr.ngInherit=!0;const T1="__ngSimpleChanges__";function A1(n){return n[T1]||null}let wh;function bh(){return void 0!==wh?wh:"undefined"!=typeof document?document:void 0}function At(n){return!!n.listen}const x1={createRenderer:(n,t)=>bh()};function Ut(n){for(;Array.isArray(n);)n=n[0];return n}function nc(n,t){return Ut(t[n])}function Gn(n,t){return Ut(t[n.index])}function Ch(n,t){return n.data[t]}function Zs(n,t){return n[t]}function qn(n,t){const e=t[n];return jr(e)?e:e[0]}function I1(n){return 4==(4&n[2])}function Dh(n){return 128==(128&n[2])}function Li(n,t){return null==t?null:n[t]}function P1(n){n[18]=0}function Eh(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:B1(null),bindingsEnabled:!0};function O1(){return ye.bindingsEnabled}function k(){return ye.lFrame.lView}function Ve(){return ye.lFrame.tView}function dn(n){return ye.lFrame.contextLView=n,n[8]}function Yt(){let n=k1();for(;null!==n&&64===n.type;)n=n.parent;return n}function k1(){return ye.lFrame.currentTNode}function Ur(n,t){const e=ye.lFrame;e.currentTNode=n,e.isParent=t}function Sh(){return ye.lFrame.isParent}function Mh(){ye.lFrame.isParent=!1}function Sn(){const n=ye.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function Qs(){return ye.lFrame.bindingIndex++}function fi(n){const t=ye.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function TC(n,t){const e=ye.lFrame;e.bindingIndex=e.bindingRootIndex=n,Th(t)}function Th(n){ye.lFrame.currentDirectiveIndex=n}function Ah(n){const t=ye.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}function L1(){return ye.lFrame.currentQueryIndex}function xh(n){ye.lFrame.currentQueryIndex=n}function xC(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function $1(n,t,e){if(e&_e.SkipSelf){let i=t,s=n;for(;!(i=i.parent,null!==i||e&_e.Host||(i=xC(s),null===i||(s=s[15],10&i.type))););if(null===i)return!1;t=i,n=s}const r=ye.lFrame=V1();return r.currentTNode=t,r.lView=n,!0}function ic(n){const t=V1(),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 V1(){const n=ye.lFrame,t=null===n?null:n.child;return null===t?B1(n):t}function B1(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 j1(){const n=ye.lFrame;return ye.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const H1=j1;function sc(){const n=j1();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 Mn(){return ye.lFrame.selectedIndex}function $i(n){ye.lFrame.selectedIndex=n}function yt(){const n=ye.lFrame;return Ch(n.tView,n.selectedIndex)}function oc(n,t){for(let e=t.directiveStart,r=t.directiveEnd;e<r;e++){const s=n.data[e].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(n.contentHooks||(n.contentHooks=[])).push(-e,o),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 ac(n,t,e){U1(n,t,3,e)}function lc(n,t,e,r){(3&n[2])===e&&U1(n,t,e,r)}function Ih(n,t){let e=n[2];(3&e)===t&&(e&=2047,e+=1,n[2]=e)}function U1(n,t,e,r){const s=null!=r?r:-1,o=t.length-1;let a=0;for(let l=void 0!==r?65535&n[18]:0;l<o;l++)if("number"==typeof t[l+1]){if(a=t[l],null!=r&&a>=r)break}else t[l]<0&&(n[18]+=65536),(a<s||-1==s)&&($C(n,e,t,l),n[18]=(4294901760&n[18])+l+2),l++}function $C(n,t,e,r){const i=e[r]<0,s=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{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class ba{constructor(t,e,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=r}}function cc(n,t,e){const r=At(n);let i=0;for(;i<e.length;){const s=e[i];if("number"==typeof s){if(0!==s)break;i++;const o=e[i++],a=e[i++],l=e[i++];r?n.setAttribute(t,a,l,o):t.setAttributeNS(o,a,l)}else{const o=s,a=e[++i];Nh(o)?r&&n.setProperty(t,o,a):r?n.setAttribute(t,o,a):t.setAttribute(o,a),i++}}return i}function z1(n){return 3===n||4===n||6===n}function Nh(n){return 64===n.charCodeAt(0)}function uc(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||G1(n,e,i,null,-1===e||2===e?t[++r]:null)}}return n}function G1(n,t,e,r,i){let s=0,o=n.length;if(-1===t)o=-1;else for(;s<n.length;){const a=n[s++];if("number"==typeof a){if(a===t){o=-1;break}if(a>t){o=s-1;break}}}for(;s<n.length;){const a=n[s];if("number"==typeof a)break;if(a===e){if(null===r)return void(null!==i&&(n[s+1]=i));if(r===n[s+1])return void(n[s+2]=i)}s++,null!==r&&s++,null!==i&&s++}-1!==o&&(n.splice(o,0,t),s=o+1),n.splice(s++,0,e),null!==r&&n.splice(s++,0,r),null!==i&&n.splice(s++,0,i)}function q1(n){return-1!==n}function Ys(n){return 32767&n}function Js(n,t){let e=function UC(n){return n>>16}(n),r=t;for(;e>0;)r=r[15],e--;return r}let Oh=!0;function dc(n){const t=Oh;return Oh=n,t}let zC=0;function Da(n,t){const e=Rh(n,t);if(-1!==e)return e;const r=t[1];r.firstCreatePass&&(n.injectorIndex=t.length,kh(r.data,n),kh(t,null),kh(r.blueprint,null));const i=hc(n,t),s=n.injectorIndex;if(q1(i)){const o=Ys(i),a=Js(i,t),l=a[1].data;for(let c=0;c<8;c++)t[s+c]=a[o+c]|l[o+c]}return t[s+8]=i,s}function kh(n,t){n.push(0,0,0,0,0,0,0,0,t)}function Rh(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function hc(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,r=null,i=t;for(;null!==i;){const s=i[1],o=s.type;if(r=2===o?s.declTNode:1===o?i[6]:null,null===r)return-1;if(e++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|e<<16}return-1}function fc(n,t,e){!function GC(n,t,e){let r;"string"==typeof e?r=e.charCodeAt(0)||0:e.hasOwnProperty(ma)&&(r=e[ma]),null==r&&(r=e[ma]=zC++);const i=255&r;t.data[n+(i>>5)]|=1<<i}(n,t,e)}function Z1(n,t,e){if(e&_e.Optional)return n;Kl(t,"NodeInjector")}function Q1(n,t,e,r){if(e&_e.Optional&&void 0===r&&(r=null),0==(e&(_e.Self|_e.Host))){const i=n[9],s=ki(void 0);try{return i?i.get(t,r,e&_e.Optional):v1(t,r,e&_e.Optional)}finally{ki(s)}}return Z1(r,t,e)}function Y1(n,t,e,r=_e.Default,i){if(null!==n){const s=function ZC(n){if("string"==typeof n)return n.charCodeAt(0)||0;const t=n.hasOwnProperty(ma)?n[ma]:void 0;return"number"==typeof t?t>=0?255&t:WC:t}(e);if("function"==typeof s){if(!$1(t,n,r))return r&_e.Host?Z1(i,e,r):Q1(t,e,r,i);try{const o=s(r);if(null!=o||r&_e.Optional)return o;Kl(e)}finally{H1()}}else if("number"==typeof s){let o=null,a=Rh(n,t),l=-1,c=r&_e.Host?t[16][6]:null;for((-1===a||r&_e.SkipSelf)&&(l=-1===a?hc(n,t):t[a+8],-1!==l&&e0(r,!1)?(o=t[1],a=Ys(l),t=Js(l,t)):a=-1);-1!==a;){const u=t[1];if(X1(s,a,u.data)){const d=KC(a,t,e,o,r,c);if(d!==J1)return d}l=t[a+8],-1!==l&&e0(r,t[1].data[a+8]===c)&&X1(s,a,t)?(o=u,a=Ys(l),t=Js(l,t)):a=-1}}}return Q1(t,e,r,i)}const J1={};function WC(){return new Xs(Yt(),k())}function KC(n,t,e,r,i,s){const o=t[1],a=o.data[n+8],u=pc(a,o,e,null==r?ec(a)&&Oh:r!=o&&0!=(3&a.type),i&_e.Host&&s===a);return null!==u?Ea(t,o,u,a):J1}function pc(n,t,e,r,i){const s=n.providerIndexes,o=t.data,a=1048575&s,l=n.directiveStart,u=s>>20,h=i?a+u:n.directiveEnd;for(let p=r?a:a+u;p<h;p++){const g=o[p];if(p<l&&e===g||p>=l&&g.type===e)return p}if(i){const p=o[l];if(p&&Mr(p)&&p.type===e)return l}return null}function Ea(n,t,e,r){let i=n[e];const s=t.data;if(function VC(n){return n instanceof ba}(i)){const o=i;o.resolving&&function H4(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new ee(-200,`Circular dependency in DI detected for ${n}${e}`)}(cn(s[e]));const a=dc(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?ki(o.injectImpl):null;$1(n,r,_e.Default);try{i=n[e]=o.factory(void 0,s,n,r),t.firstCreatePass&&e>=r.directiveStart&&function LC(n,t,e){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=t.type.prototype;if(r){const o=M1(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o)}i&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,i),s&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s))}(e,s[e],t)}finally{null!==l&&ki(l),dc(a),o.resolving=!1,H1()}}return i}function X1(n,t,e){return!!(e[t+(n>>5)]&1<<n)}function e0(n,t){return!(n&_e.Self||n&_e.Host&&t)}class Xs{constructor(t,e){this._tNode=t,this._lView=e}get(t,e,r){return Y1(this._tNode,this._lView,t,r,e)}}function hn(n){return Ri(()=>{const t=n.prototype.constructor,e=t[di]||Fh(t),r=Object.prototype;let i=Object.getPrototypeOf(n.prototype).constructor;for(;i&&i!==r;){const s=i[di]||Fh(i);if(s&&s!==e)return s;i=Object.getPrototypeOf(i)}return s=>new s})}function Fh(n){return p1(n)?()=>{const t=Fh(Te(n));return t&&t()}:us(n)}const to="__parameters__";function ro(n,t,e){return Ri(()=>{const r=function $h(n){return function(...e){if(n){const r=n(...e);for(const i in r)this[i]=r[i]}}}(t);function i(...s){if(this instanceof i)return r.apply(this,s),this;const o=new i(...s);return a.annotation=o,a;function a(l,c,u){const d=l.hasOwnProperty(to)?l[to]:Object.defineProperty(l,to,{value:[]})[to];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),l}}return e&&(i.prototype=Object.create(e.prototype)),i.prototype.ngMetadataName=n,i.annotationCls=i,i})}class oe{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 cr(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)),cr(r,t)):t!==n&&t.push(r)}return t}function zr(n,t){n.forEach(e=>Array.isArray(e)?zr(e,t):t(e))}function n0(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function gc(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function Ta(n,t){const e=[];for(let r=0;r<n;r++)e.push(t);return e}function Wn(n,t,e){let r=io(n,t);return r>=0?n[1|r]=e:(r=~r,function XC(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 Bh(n,t){const e=io(n,t);if(e>=0)return n[1|e]}function io(n,t){return function o0(n,t,e){let r=0,i=n.length>>e;for(;i!==r;){const s=r+(i-r>>1),o=n[s<<e];if(t===o)return s<<e;o>t?i=s:r=s+1}return~(i<<e)}(n,t,1)}const Aa={},Hh="__NG_DI_FLAG__",yc="ngTempTokenPath",o6=/\n/gm,l0="__source",l6=tt({provide:String,useValue:tt});let xa;function c0(n){const t=xa;return xa=n,t}function c6(n,t=_e.Default){if(void 0===xa)throw new ee(203,"");return null===xa?v1(n,void 0,t):xa.get(n,t&_e.Optional?null:void 0,t)}function U(n,t=_e.Default){return(function Z4(){return uh}()||c6)(Te(n),t)}const vc=U;function Uh(n){const t=[];for(let e=0;e<n.length;e++){const r=Te(n[e]);if(Array.isArray(r)){if(0===r.length)throw new ee(900,"");let i,s=_e.Default;for(let o=0;o<r.length;o++){const a=r[o],l=u6(a);"number"==typeof l?-1===l?i=a.token:s|=l:i=a}t.push(U(i,s))}else t.push(U(r))}return t}function Ia(n,t){return n[Hh]=t,n.prototype[Hh]=t,n}function u6(n){return n[Hh]}const _c=Ia(ro("Optional"),8),wc=Ia(ro("SkipSelf"),4);var Kn=(()=>((Kn=Kn||{})[Kn.Important=1]="Important",Kn[Kn.DashCase=2]="DashCase",Kn))();const y0="__ngContext__";function vn(n,t){n[y0]=t}function Wh(n){const t=function Na(n){return n[y0]||null}(n);return t?Array.isArray(t)?t:t.lView:null}function Zh(n,t){return undefined(n,t)}function Oa(n){const t=n[3];return Sr(t)?t[3]:t}function Qh(n){return E0(n[13])}function Yh(n){return E0(n[4])}function E0(n){for(;null!==n&&!Sr(n);)n=n[4];return n}function oo(n,t,e,r,i){if(null!=r){let s,o=!1;Sr(r)?s=r:jr(r)&&(o=!0,r=r[0]);const a=Ut(r);0===n&&null!==e?null==i?I0(t,e,a):ds(t,e,a,i||null,!0):1===n&&null!==e?ds(t,e,a,i||null,!0):2===n?function sf(n,t,e){const r=Cc(n,t);r&&function j6(n,t,e,r){At(n)?n.removeChild(t,e,r):t.removeChild(e)}(n,r,t,e)}(t,a,o):3===n&&t.destroyNode(a),null!=s&&function z6(n,t,e,r,i){const s=e[7];s!==Ut(e)&&oo(t,n,r,s,i);for(let a=10;a<e.length;a++){const l=e[a];ka(l[1],l,n,t,r,s)}}(t,n,s,e,i)}}function Xh(n,t,e){if(At(n))return n.createElement(t,e);{const r=null!==e?function pC(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 M0(n,t){const e=n[9],r=e.indexOf(t),i=t[3];1024&t[2]&&(t[2]&=-1025,Eh(i,-1)),e.splice(r,1)}function ef(n,t){if(n.length<=10)return;const e=10+t,r=n[e];if(r){const i=r[17];null!==i&&i!==n&&M0(i,r),t>0&&(n[e-1][4]=r[4]);const s=gc(n,10+t);!function O6(n,t){ka(n,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);const o=s[19];null!==o&&o.detachView(s[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function T0(n,t){if(!(256&t[2])){const e=t[11];At(e)&&e.destroyNode&&ka(n,t,e,3,null,null),function F6(n){let t=n[13];if(!t)return tf(n[1],n);for(;t;){let e=null;if(jr(t))e=t[13];else{const r=t[10];r&&(e=r)}if(!e){for(;t&&!t[4]&&t!==n;)jr(t)&&tf(t[1],t),t=t[3];null===t&&(t=n),jr(t)&&tf(t[1],t),e=t&&t[4]}t=e}}(t)}}function tf(n,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function B6(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 ba)){const s=e[r+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=i[s[o]],l=s[o+1];try{l.call(a)}finally{}}else try{s.call(i)}finally{}}}}(n,t),function V6(n,t){const e=n.cleanup,r=t[7];let i=-1;if(null!==e)for(let s=0;s<e.length-1;s+=2)if("string"==typeof e[s]){const o=e[s+1],a="function"==typeof o?o(t):Ut(t[o]),l=r[i=e[s+2]],c=e[s+3];"boolean"==typeof c?a.removeEventListener(e[s],l,c):c>=0?r[i=c]():r[i=-c].unsubscribe(),s+=2}else{const o=r[i=e[s+1]];e[s].call(o)}if(null!==r){for(let s=i+1;s<r.length;s++)r[s]();t[7]=null}}(n,t),1===t[1].type&&At(t[11])&&t[11].destroy();const e=t[17];if(null!==e&&Sr(t[3])){e!==t[3]&&M0(e,t);const r=t[19];null!==r&&r.detachView(n)}}}function A0(n,t,e){return function x0(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===Dr.None||i===Dr.Emulated)return null}return Gn(r,e)}(n,t.parent,e)}function ds(n,t,e,r,i){At(n)?n.insertBefore(t,e,r,i):t.insertBefore(e,r,i)}function I0(n,t,e){At(n)?n.appendChild(t,e):t.appendChild(e)}function P0(n,t,e,r,i){null!==r?ds(n,t,e,r,i):I0(n,t,e)}function Cc(n,t){return At(n)?n.parentNode(t):t.parentNode}function N0(n,t,e){return k0(n,t,e)}let Sc,Mc,k0=function O0(n,t,e){return 40&n.type?Gn(n,e):null};function Dc(n,t,e,r){const i=A0(n,r,t),s=t[11],a=N0(r.parent||t[6],r,t);if(null!=i)if(Array.isArray(e))for(let l=0;l<e.length;l++)P0(s,i,e[l],a,!1);else P0(s,i,e,a,!1)}function Ec(n,t){if(null!==t){const e=t.type;if(3&e)return Gn(t,n);if(4&e)return rf(-1,n[t.index]);if(8&e){const r=t.child;if(null!==r)return Ec(n,r);{const i=n[t.index];return Sr(i)?rf(-1,i):Ut(i)}}if(32&e)return Zh(t,n)()||Ut(n[t.index]);{const r=F0(n,t);return null!==r?Array.isArray(r)?r[0]:Ec(Oa(n[16]),r):Ec(n,t.next)}}return null}function F0(n,t){return null!==t?n[16][6].projection[t.projection]:null}function rf(n,t){const e=10+n+1;if(e<t.length){const r=t[e],i=r[1].firstChild;if(null!==i)return Ec(r,i)}return t[7]}function of(n,t,e,r,i,s,o){for(;null!=e;){const a=r[e.index],l=e.type;if(o&&0===t&&(a&&vn(Ut(a),r),e.flags|=4),64!=(64&e.flags))if(8&l)of(n,t,e.child,r,i,s,!1),oo(t,n,i,a,s);else if(32&l){const c=Zh(e,r);let u;for(;u=c();)oo(t,n,i,u,s);oo(t,n,i,a,s)}else 16&l?L0(n,t,r,e,i,s):oo(t,n,i,a,s);e=o?e.projectionNext:e.next}}function ka(n,t,e,r,i,s){of(e,r,n.firstChild,t,i,s,!1)}function L0(n,t,e,r,i,s){const o=e[16],l=o[6].projection[r.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)oo(t,n,i,l[c],s);else of(n,t,l,o[3],i,s,!0)}function $0(n,t,e){At(n)?n.setAttribute(t,"style",e):t.style.cssText=e}function af(n,t,e){At(n)?""===e?n.removeAttribute(t,"class"):n.setAttribute(t,"class",e):t.className=e}function hs(n){var t;return(null===(t=function lf(){if(void 0===Sc&&(Sc=null,Je.trustedTypes))try{Sc=Je.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 V0(n){var t;return(null===(t=function cf(){if(void 0===Mc&&(Mc=null,Je.trustedTypes))try{Mc=Je.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return Mc}())||void 0===t?void 0:t.createHTML(n))||n}class fs{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Z6 extends fs{getTypeName(){return"HTML"}}class Q6 extends fs{getTypeName(){return"Style"}}class Y6 extends fs{getTypeName(){return"Script"}}class J6 extends fs{getTypeName(){return"URL"}}class X6 extends fs{getTypeName(){return"ResourceURL"}}function Zn(n){return n instanceof fs?n.changingThisBreaksApplicationSecurity:n}function Gr(n,t){const e=H0(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 H0(n){return n instanceof fs&&n.getTypeName()||null}class s5{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(hs(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class o5{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=hs(t),e;const r=this.inertDocument.createElement("body");return r.innerHTML=hs(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0<i;i--){const o=e.item(i).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&t.removeAttribute(o)}let r=t.firstChild;for(;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}const l5=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,c5=/^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 Ra(n){return(n=String(n)).match(l5)||n.match(c5)?n:"unsafe:"+n}function z0(n){return(n=String(n)).split(",").map(t=>Ra(t.trim())).join(", ")}function qr(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function Fa(...n){const t={};for(const e of n)for(const r in e)e.hasOwnProperty(r)&&(t[r]=!0);return t}const G0=qr("area,br,col,hr,img,wbr"),q0=qr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),W0=qr("rp,rt"),uf=Fa(G0,Fa(q0,qr("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")),Fa(W0,qr("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")),Fa(W0,q0)),df=qr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),hf=qr("srcset"),K0=Fa(df,hf,qr("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"),qr("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")),u5=qr("script,style,template");class d5{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(!uf.hasOwnProperty(e))return this.sanitizedSomething=!0,!u5.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const r=t.attributes;for(let i=0;i<r.length;i++){const s=r.item(i),o=s.name,a=o.toLowerCase();if(!K0.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=s.value;df[a]&&(l=Ra(l)),hf[a]&&(l=z0(l)),this.buf.push(" ",o,'="',Z0(l),'"')}return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();uf.hasOwnProperty(e)&&!G0.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(Z0(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 h5=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f5=/([^\#-~ |!])/g;function Z0(n){return n.replace(/&/g,"&amp;").replace(h5,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(f5,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Tc;function Q0(n,t){let e=null;try{Tc=Tc||function U0(n){const t=new o5(n);return function a5(){try{return!!(new window.DOMParser).parseFromString(hs(""),"text/html")}catch(n){return!1}}()?new s5(t):t}(n);let r=t?String(t):"";e=Tc.getInertBodyElement(r);let i=5,s=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=s,s=e.innerHTML,e=Tc.getInertBodyElement(r)}while(r!==s);return hs((new d5).sanitizeChildren(ff(e)||e))}finally{if(e){const r=ff(e)||e;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function ff(n){return"content"in n&&function p5(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var rt=(()=>((rt=rt||{})[rt.NONE=0]="NONE",rt[rt.HTML=1]="HTML",rt[rt.STYLE=2]="STYLE",rt[rt.SCRIPT=3]="SCRIPT",rt[rt.URL=4]="URL",rt[rt.RESOURCE_URL=5]="RESOURCE_URL",rt))();function pf(n){const t=$a();return t?V0(t.sanitize(rt.HTML,n)||""):Gr(n,"HTML")?V0(Zn(n)):Q0(bh(),me(n))}function La(n){const t=$a();return t?t.sanitize(rt.URL,n)||"":Gr(n,"URL")?Zn(n):Ra(me(n))}function $a(){const n=k();return n&&n[12]}function mf(n){return n.ngOriginalError}function E5(n,...t){n.error(...t)}class Va{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),r=function D5(n){return n&&n.ngErrorLogger||E5}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&mf(t);for(;e&&mf(e);)e=mf(e);return e||null}}const P5=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Je))();function J0(n){return n.ownerDocument.defaultView}function X0(n){return n.ownerDocument}function Wr(n){return n instanceof Function?n():n}function ty(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 s=t.length;if(i+s===r||n.charCodeAt(i+s)<=32)return i}e=i+1}}const ny="ng-template";function O5(n,t,e){let r=0;for(;r<n.length;){let i=n[r++];if(e&&"class"===i){if(i=n[r],-1!==ty(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 ry(n){return 4===n.type&&n.value!==ny}function k5(n,t,e){return t===(4!==n.type||e?n.value:ny)}function R5(n,t,e){let r=4;const i=n.attrs||[],s=function $5(n){for(let t=0;t<n.length;t++)if(z1(n[t]))return t;return n.length}(i);let o=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!o)if(4&r){if(r=2|1&r,""!==l&&!k5(n,l,e)||""===l&&1===t.length){if(Tr(r))return!1;o=!0}}else{const c=8&r?l:t[++a];if(8&r&&null!==n.attrs){if(!O5(n.attrs,c,e)){if(Tr(r))return!1;o=!0}continue}const d=F5(8&r?"class":l,i,ry(n),e);if(-1===d){if(Tr(r))return!1;o=!0;continue}if(""!==c){let h;h=d>s?"":i[d+1].toLowerCase();const p=8&r?h:null;if(p&&-1!==ty(p,c,0)||2&r&&c!==h){if(Tr(r))return!1;o=!0}}}}else{if(!o&&!Tr(r)&&!Tr(l))return!1;if(o&&Tr(l))continue;o=!1,r=l|1&r}}return Tr(r)||o}function Tr(n){return 0==(1&n)}function F5(n,t,e,r){if(null===t)return-1;let i=0;if(r||!e){let s=!1;for(;i<t.length;){const o=t[i];if(o===n)return i;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=t[++i];for(;"string"==typeof a;)a=t[++i];continue}if(4===o)break;if(0===o){i+=4;continue}}i+=s?1:2}return-1}return function V5(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 iy(n,t,e=!1){for(let r=0;r<t.length;r++)if(R5(n,t[r],e))return!0;return!1}function B5(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 sy(n,t){return n?":not("+t.trim()+")":t}function j5(n){let t=n[0],e=1,r=2,i="",s=!1;for(;e<n.length;){let o=n[e];if("string"==typeof o)if(2&r){const a=n[++e];i+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?i+="."+o:4&r&&(i+=" "+o);else""!==i&&!Tr(o)&&(t+=sy(s,i),i=""),r=o,s=s||!Tr(r);e++}return""!==i&&(t+=sy(s,i)),t}const ve={};function G(n){oy(Ve(),k(),Mn()+n,!1)}function oy(n,t,e,r){if(!r)if(3==(3&t[2])){const s=n.preOrderCheckHooks;null!==s&&ac(t,s,e)}else{const s=n.preOrderHooks;null!==s&&lc(t,s,0,e)}$i(e)}function Ac(n,t){return n<<17|t<<2}function Ar(n){return n>>17&32767}function yf(n){return 2|n}function pi(n){return(131068&n)>>2}function vf(n,t){return-131069&n|t<<2}function _f(n){return 1|n}function yy(n,t){const e=n.contentQueries;if(null!==e)for(let r=0;r<e.length;r+=2){const i=e[r],s=e[r+1];if(-1!==s){const o=n.data[s];xh(i),o.contentQueries(2,t[s],s)}}}function Ba(n,t,e,r,i,s,o,a,l,c){const u=t.blueprint.slice();return u[0]=i,u[2]=140|r,P1(u),u[3]=u[15]=n,u[8]=e,u[10]=o||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]=s,u[16]=2==t.type?n[16]:u,u}function lo(n,t,e,r,i){let s=n.data[t];if(null===s)s=function Af(n,t,e,r,i){const s=k1(),o=Sh(),l=n.data[t]=function s9(n,t,e,r,i,s){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:s,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,o?s:s&&s.parent,e,t,r,i);return null===n.firstChild&&(n.firstChild=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l)),l}(n,t,e,r,i),function MC(){return ye.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=e,s.value=r,s.attrs=i;const o=function wa(){const n=ye.lFrame,t=n.currentTNode;return n.isParent?t:t.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return Ur(s,!0),s}function co(n,t,e,r){if(0===e)return-1;const i=t.length;for(let s=0;s<e;s++)t.push(r),n.blueprint.push(r),n.data.push(null);return i}function ja(n,t,e){ic(t);try{const r=n.viewQuery;null!==r&&Lf(1,r,e);const i=n.template;null!==i&&vy(n,t,i,1,e),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&yy(n,t),n.staticViewQueries&&Lf(2,n.viewQuery,e);const s=n.components;null!==s&&function n9(n,t){for(let e=0;e<t.length;e++)D9(n,t[e])}(t,s)}catch(r){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),r}finally{t[2]&=-5,sc()}}function uo(n,t,e,r){const i=t[2];if(256!=(256&i)){ic(t);try{P1(t),function R1(n){return ye.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==e&&vy(n,t,e,2,r);const o=3==(3&i);if(o){const c=n.preOrderCheckHooks;null!==c&&ac(t,c,null)}else{const c=n.preOrderHooks;null!==c&&lc(t,c,0,null),Ih(t,0)}if(function b9(n){for(let t=Qh(n);null!==t;t=Yh(t)){if(!t[2])continue;const e=t[9];for(let r=0;r<e.length;r++){const i=e[r],s=i[3];0==(1024&i[2])&&Eh(s,1),i[2]|=1024}}}(t),function w9(n){for(let t=Qh(n);null!==t;t=Yh(t))for(let e=10;e<t.length;e++){const r=t[e],i=r[1];Dh(r)&&uo(i,r,i.template,r[8])}}(t),null!==n.contentQueries&&yy(n,t),o){const c=n.contentCheckHooks;null!==c&&ac(t,c)}else{const c=n.contentHooks;null!==c&&lc(t,c,1),Ih(t,1)}!function e9(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)$i(~i);else{const s=i,o=e[++r],a=e[++r];TC(o,s),a(2,t[s])}}}finally{$i(-1)}}(n,t);const a=n.components;null!==a&&function t9(n,t){for(let e=0;e<t.length;e++)C9(n,t[e])}(t,a);const l=n.viewQuery;if(null!==l&&Lf(2,l,r),o){const c=n.viewCheckHooks;null!==c&&ac(t,c)}else{const c=n.viewHooks;null!==c&&lc(t,c,2),Ih(t,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),t[2]&=-73,1024&t[2]&&(t[2]&=-1025,Eh(t[3],-1))}finally{sc()}}}function r9(n,t,e,r){const i=t[10],o=I1(t);try{!o&&i.begin&&i.begin(),o&&ja(n,t,r),uo(n,t,e,r)}finally{!o&&i.end&&i.end()}}function vy(n,t,e,r,i){const s=Mn(),o=2&r;try{$i(-1),o&&t.length>20&&oy(n,t,20,!1),e(r,i)}finally{$i(s)}}function _y(n,t,e){if(gh(t)){const i=t.directiveEnd;for(let s=t.directiveStart;s<i;s++){const o=n.data[s];o.contentQueries&&o.contentQueries(1,e[s],s)}}}function xf(n,t,e){!O1()||(function h9(n,t,e,r){const i=e.directiveStart,s=e.directiveEnd;n.firstCreatePass||Da(e,t),vn(r,t);const o=e.initialInputs;for(let a=i;a<s;a++){const l=n.data[a],c=Mr(l);c&&y9(t,e,l);const u=Ea(t,n,a,e);vn(u,t),null!==o&&v9(0,a-i,u,l,0,o),c&&(qn(e.index,t)[8]=u)}}(n,t,e,Gn(e,t)),128==(128&e.flags)&&function f9(n,t,e){const r=e.directiveStart,i=e.directiveEnd,o=e.index,a=function AC(){return ye.lFrame.currentDirectiveIndex}();try{$i(o);for(let l=r;l<i;l++){const c=n.data[l],u=t[l];Th(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&Ty(c,u)}}finally{$i(-1),Th(a)}}(n,t,e))}function If(n,t,e=Gn){const r=t.localNames;if(null!==r){let i=t.index+1;for(let s=0;s<r.length;s+=2){const o=r[s+1],a=-1===o?e(t,n):n[o];n[i++]=a}}}function wy(n){const t=n.tView;return null===t||t.incompleteFirstPass?n.tView=Pc(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):t}function Pc(n,t,e,r,i,s,o,a,l,c){const u=20+r,d=u+i,h=function i9(n,t){const e=[];for(let r=0;r<t;r++)e.push(r<n?null:ve);return e}(u,d),p="function"==typeof c?c():c;return h[1]={type:n,blueprint:h,template:e,queries:null,viewQuery:a,declTNode:t,data:h.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 s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:p,incompleteFirstPass:!1}}function Dy(n,t,e,r){const i=Oy(t);null===e?i.push(r):(i.push(e),n.firstCreatePass&&ky(n).push(r,i.length-1))}function Ey(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,s,o,a){const l=Gn(t,e);let u,c=t.inputs;!a&&null!=c&&(u=c[r])?(Ly(n,e,u,r,i),ec(t)&&function l9(n,t){const e=qn(t,n);16&e[2]||(e[2]|=64)}(e,t.index)):3&t.type&&(r=function a9(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(r),i=null!=o?o(i,t.value||"",r):i,At(s)?s.setProperty(l,r,i):Nh(r)||(l.setProperty?l.setProperty(r,i):l[r]=i))}function Pf(n,t,e,r){let i=!1;if(O1()){const s=function p9(n,t,e){const r=n.directiveRegistry;let i=null;if(r)for(let s=0;s<r.length;s++){const o=r[s];iy(e,o.selectors,!1)&&(i||(i=[]),fc(Da(e,t),n,o.type),Mr(o)?(Ay(n,e),i.unshift(o)):i.push(o))}return i}(n,t,e),o=null===r?null:{"":-1};if(null!==s){i=!0,xy(e,n.data.length,s.length);for(let u=0;u<s.length;u++){const d=s[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=co(n,t,s.length,null);for(let u=0;u<s.length;u++){const d=s[u];e.mergedAttrs=uc(e.mergedAttrs,d.hostAttrs),Iy(n,e,t,c,d),m9(c,d,o),null!==d.contentQueries&&(e.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(e.flags|=128);const h=d.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e.index),a=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e.index),l=!0),c++}!function o9(n,t){const r=t.directiveEnd,i=n.data,s=t.attrs,o=[];let a=null,l=null;for(let c=t.directiveStart;c<r;c++){const u=i[c],d=u.inputs,h=null===s||ry(t)?null:_9(d,s);o.push(h),a=Ey(d,c,a),l=Ey(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(t.flags|=16),a.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=a,t.outputs=l}(n,e)}o&&function g9(n,t,e){if(t){const r=n.localNames=[];for(let i=0;i<t.length;i+=2){const s=e[t[i+1]];if(null==s)throw new ee(-301,!1);r.push(t[i],s)}}}(e,r,o)}return e.mergedAttrs=uc(e.mergedAttrs,e.attrs),i}function My(n,t,e,r,i,s){const o=s.hostBindings;if(o){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~t.index;(function d9(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,o)}}function Ty(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function Ay(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function m9(n,t,e){if(e){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)e[t.exportAs[r]]=n;Mr(t)&&(e[""]=n)}}function xy(n,t,e){n.flags|=1,n.directiveStart=t,n.directiveEnd=t+e,n.providerIndexes=t}function Iy(n,t,e,r,i){n.data[r]=i;const s=i.factory||(i.factory=us(i.type)),o=new ba(s,Mr(i),null);n.blueprint[r]=o,e[r]=o,My(n,t,0,r,co(n,e,i.hostVars,ve),i)}function y9(n,t,e){const r=Gn(t,n),i=wy(e),s=n[10],o=Nc(n,Ba(n,i,null,e.onPush?64:16,r,t,s,s.createRenderer(r,e),null,null));n[t.index]=o}function Kr(n,t,e,r,i,s){const o=Gn(n,t);!function Nf(n,t,e,r,i,s,o){if(null==s)At(n)?n.removeAttribute(t,i,e):t.removeAttribute(i);else{const a=null==o?me(s):o(s,r||"",i);At(n)?n.setAttribute(t,i,a,e):e?t.setAttributeNS(e,i,a):t.setAttribute(i,a)}}(t[11],o,s,n.value,e,r,i)}function v9(n,t,e,r,i,s){const o=s[t];if(null!==o){const a=r.setInput;for(let l=0;l<o.length;){const c=o[l++],u=o[l++],d=o[l++];null!==a?r.setInput(e,d,c,u):e[u]=d}}}function _9(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 Py(n,t,e,r){return new Array(n,!0,!1,t,null,0,r,e,null,null)}function C9(n,t){const e=qn(t,n);if(Dh(e)){const r=e[1];80&e[2]?uo(r,e,r.template,e[8]):e[5]>0&&Of(e)}}function Of(n){for(let r=Qh(n);null!==r;r=Yh(r))for(let i=10;i<r.length;i++){const s=r[i];if(1024&s[2]){const o=s[1];uo(o,s,o.template,s[8])}else s[5]>0&&Of(s)}const e=n[1].components;if(null!==e)for(let r=0;r<e.length;r++){const i=qn(e[r],n);Dh(i)&&i[5]>0&&Of(i)}}function D9(n,t){const e=qn(t,n),r=e[1];(function E9(n,t){for(let e=t.length;e<n.blueprint.length;e++)t.push(n.blueprint[e])})(r,e),ja(r,e,e[8])}function Nc(n,t){return n[13]?n[14][4]=t:n[13]=t,n[14]=t,t}function kf(n){for(;n;){n[2]|=64;const t=Oa(n);if(sC(n)&&!t)return n;n=t}return null}function Ny(n){!function Rf(n){for(let t=0;t<n.components.length;t++){const e=n.components[t],r=Wh(e),i=r[1];r9(i,r,i.template,e)}}(n[8])}function Lf(n,t,e){xh(0),t(n,e)}const M9=(()=>Promise.resolve(null))();function Oy(n){return n[7]||(n[7]=[])}function ky(n){return n.cleanup||(n.cleanup=[])}function Fy(n,t){const e=n[9],r=e?e.get(Va,null):null;r&&r.handleError(t)}function Ly(n,t,e,r,i){for(let s=0;s<e.length;){const o=e[s++],a=e[s++],l=t[o],c=n.data[o];null!==c.setInput?c.setInput(l,i,r,a):l[a]=i}}function gi(n,t,e){const r=nc(t,n);!function S0(n,t,e){At(n)?n.setValue(t,e):t.textContent=e}(n[11],r,e)}function Oc(n,t,e){let r=e?n.styles:null,i=e?n.classes:null,s=0;if(null!==t)for(let o=0;o<t.length;o++){const a=t[o];"number"==typeof a?s=a:1==s?i=oh(i,a):2==s&&(r=oh(r,a+": "+t[++o]+";"))}e?n.styles=r:n.stylesWithoutHost=r,e?n.classes=i:n.classesWithoutHost=i}const $f=new oe("INJECTOR",-1);class $y{get(t,e=Aa){if(e===Aa){const r=new Error(`NullInjectorError: No provider for ${Qe(t)}!`);throw r.name="NullInjectorError",r}return e}}const Vf=new oe("Set Injector scope."),Ha={},x9={};let Bf;function Vy(){return void 0===Bf&&(Bf=new $y),Bf}function By(n,t=null,e=null,r){const i=jy(n,t,e,r);return i._resolveInjectorDefTypes(),i}function jy(n,t=null,e=null,r){return new I9(n,e,t||Vy(),r)}class I9{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 s=[];e&&zr(e,a=>this.processProvider(a,t,e)),zr([t],a=>this.processInjectorType(a,[],s)),this.records.set($f,ho(void 0,this));const o=this.records.get(Vf);this.scope=null!=o?o.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=Aa,r=_e.Default){this.assertNotDestroyed();const i=c0(this),s=ki(void 0);try{if(!(r&_e.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function $9(n){return"function"==typeof n||"object"==typeof n&&n instanceof oe}(t)&&lh(t);a=l&&this.injectableDefInScope(l)?ho(jf(t),Ha):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&_e.Self?Vy():this.parent).get(t,e=r&_e.Optional&&e===Aa?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[yc]=o[yc]||[]).unshift(Qe(t)),i)throw o;return function d6(n,t,e,r){const i=n[yc];throw t[l0]&&i.unshift(t[l0]),n.message=function h6(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 s=[];for(let o in t)if(t.hasOwnProperty(o)){let a=t[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):Qe(a)))}i=`{${s.join(", ")}}`}return`${e}${r?"("+r+")":""}[${i}]: ${n.replace(o6,"\n ")}`}("\n"+n.message,i,e,r),n.ngTokenPath=i,n[yc]=null,n}(o,t,"R3InjectorError",this.source)}throw o}finally{ki(s),c0(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 ee(205,!1)}processInjectorType(t,e,r){if(!(t=Te(t)))return!1;let i=m1(t);const s=null==i&&t.ngModule||void 0,o=void 0===s?t:s,a=-1!==r.indexOf(o);if(void 0!==s&&(i=m1(s)),null==i)return!1;if(null!=i.imports&&!a){let u;r.push(o);try{zr(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:h,providers:p}=u[d];zr(p,g=>this.processProvider(g,h,p||nt))}}this.injectorDefTypes.add(o);const l=us(o)||(()=>new o);this.records.set(o,ho(l,Ha));const c=i.providers;if(null!=c&&!a){const u=t;zr(c,d=>this.processProvider(d,u,c))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,r){let i=fo(t=Te(t))?t:Te(t&&t.provide);const s=function N9(n,t,e){return Uy(n)?ho(void 0,n.useValue):ho(Hy(n),Ha)}(t);if(fo(t)||!0!==t.multi)this.records.get(i);else{let o=this.records.get(i);o||(o=ho(void 0,Ha,!0),o.factory=()=>Uh(o.multi),this.records.set(i,o)),i=t,o.multi.push(t)}this.records.set(i,s)}hydrate(t,e){return e.value===Ha&&(e.value=x9,e.value=e.factory()),"object"==typeof e.value&&e.value&&function L9(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=Te(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function jf(n){const t=lh(n),e=null!==t?t.factory:us(n);if(null!==e)return e;if(n instanceof oe)throw new ee(204,!1);if(n instanceof Function)return function P9(n){const t=n.length;if(t>0)throw Ta(t,"?"),new ee(204,!1);const e=function q4(n){const t=n&&(n[Zl]||n[y1]);if(t){const e=function W4(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 ee(204,!1)}function Hy(n,t,e){let r;if(fo(n)){const i=Te(n);return us(i)||jf(i)}if(Uy(n))r=()=>Te(n.useValue);else if(function k9(n){return!(!n||!n.useFactory)}(n))r=()=>n.useFactory(...Uh(n.deps||[]));else if(function O9(n){return!(!n||!n.useExisting)}(n))r=()=>U(Te(n.useExisting));else{const i=Te(n&&(n.useClass||n.provide));if(!function F9(n){return!!n.deps}(n))return us(i)||jf(i);r=()=>new i(...Uh(n.deps))}return r}function ho(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function Uy(n){return null!==n&&"object"==typeof n&&l6 in n}function fo(n){return"function"==typeof n}let vt=(()=>{class n{static create(e,r){var i;if(Array.isArray(e))return By({name:""},r,e,"");{const s=null!==(i=e.name)&&void 0!==i?i:"";return By({name:s},e.parent,e.providers,s)}}}return n.THROW_IF_NOT_FOUND=Aa,n.NULL=new $y,n.\u0275prov=se({token:n,providedIn:"any",factory:()=>U($f)}),n.__NG_ELEMENT_ID__=-1,n})();function q9(n,t){oc(Wh(n)[1],Yt())}function Be(n){let t=function tv(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),e=!0;const r=[n];for(;t;){let i;if(Mr(n))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new ee(903,"");i=t.\u0275dir}if(i){if(e){r.push(i);const o=n;o.inputs=zf(n.inputs),o.declaredInputs=zf(n.declaredInputs),o.outputs=zf(n.outputs);const a=i.hostBindings;a&&Q9(n,a);const l=i.viewQuery,c=i.contentQueries;if(l&&K9(n,l),c&&Z9(n,c),sh(n.inputs,i.inputs),sh(n.declaredInputs,i.declaredInputs),sh(n.outputs,i.outputs),Mr(i)&&i.data.animation){const u=n.data;u.animation=(u.animation||[]).concat(i.data.animation)}}const s=i.features;if(s)for(let o=0;o<s.length;o++){const a=s[o];a&&a.ngInherit&&a(n),a===Be&&(e=!1)}}t=Object.getPrototypeOf(t)}!function W9(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=uc(i.hostAttrs,e=uc(e,i.hostAttrs))}}(r)}function zf(n){return n===zs?{}:n===nt?[]:n}function K9(n,t){const e=n.viewQuery;n.viewQuery=e?(r,i)=>{t(r,i),e(r,i)}:t}function Z9(n,t){const e=n.contentQueries;n.contentQueries=e?(r,i,s)=>{t(r,i,s),e(r,i,s)}:t}function Q9(n,t){const e=n.hostBindings;n.hostBindings=e?(r,i)=>{t(r,i),e(r,i)}:t}let kc=null;function po(){if(!kc){const n=Je.Symbol;if(n&&n.iterator)kc=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&&(kc=r)}}}return kc}function Ua(n){return!!function Gf(n){return null!==n&&("function"==typeof n||"object"==typeof n)}(n)&&(Array.isArray(n)||!(n instanceof Map)&&po()in n)}function Zr(n,t,e){return n[t]=e}function _n(n,t,e){return!Object.is(n[t],e)&&(n[t]=e,!0)}function ps(n,t,e,r){const i=_n(n,t,e);return _n(n,t+1,r)||i}function wn(n,t,e,r){const i=k();return _n(i,Qs(),t)&&(Ve(),Kr(yt(),i,n,t,e,r)),wn}function ae(n,t,e,r,i,s,o,a){const l=k(),c=Ve(),u=n+20,d=c.firstCreatePass?function rD(n,t,e,r,i,s,o,a,l){const c=t.consts,u=lo(t,n,4,o||null,Li(c,a));Pf(t,e,u,Li(c,l)),oc(t,u);const d=u.tViews=Pc(2,u,r,i,s,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,s,o):c.data[u];Ur(d,!1);const h=l[11].createComment("");Dc(c,l,h,d),vn(h,l),Nc(l,l[u]=Py(h,l,h,d)),tc(d)&&xf(c,l,d),null!=o&&If(l,d,a)}function gs(n){return Zs(function SC(){return ye.lFrame.contextLView}(),20+n)}function I(n,t=_e.Default){const e=k();return null===e?U(n,t):Y1(Yt(),e,Te(n),t)}function q(n,t,e){const r=k();return _n(r,Qs(),t)&&Qn(Ve(),yt(),r,n,t,r[11],e,!1),q}function Qf(n,t,e,r,i){const o=i?"class":"style";Ly(n,e,t.inputs[o],o,r)}function W(n,t,e,r){const i=k(),s=Ve(),o=20+n,a=i[11],l=i[o]=Xh(a,t,function FC(){return ye.lFrame.currentNamespace}()),c=s.firstCreatePass?function SD(n,t,e,r,i,s,o){const a=t.consts,c=lo(t,n,2,i,Li(a,s));return Pf(t,e,c,Li(a,o)),null!==c.attrs&&Oc(c,c.attrs,!1),null!==c.mergedAttrs&&Oc(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(o,s,i,0,t,e,r):s.data[o];Ur(c,!0);const u=c.mergedAttrs;null!==u&&cc(a,l,u);const d=c.classes;null!==d&&af(a,l,d);const h=c.styles;return null!==h&&$0(a,l,h),64!=(64&c.flags)&&Dc(s,i,l,c),0===function wC(){return ye.lFrame.elementDepthCount}()&&vn(l,i),function bC(){ye.lFrame.elementDepthCount++}(),tc(c)&&(xf(s,i,c),_y(s,c,i)),null!==r&&If(i,c),W}function K(){let n=Yt();Sh()?Mh():(n=n.parent,Ur(n,!1));const t=n;!function CC(){ye.lFrame.elementDepthCount--}();const e=Ve();return e.firstCreatePass&&(oc(e,n),gh(n)&&e.queries.elementEnd(n)),null!=t.classesWithoutHost&&function jC(n){return 0!=(16&n.flags)}(t)&&Qf(e,t,k(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function HC(n){return 0!=(32&n.flags)}(t)&&Qf(e,t,k(),t.stylesWithoutHost,!1),K}function ot(n,t,e,r){return W(n,t,e,r),K(),ot}function dr(n,t,e){const r=k(),i=Ve(),s=n+20,o=i.firstCreatePass?function MD(n,t,e,r,i){const s=t.consts,o=Li(s,r),a=lo(t,n,8,"ng-container",o);return null!==o&&Oc(a,o,!0),Pf(t,e,a,Li(s,i)),null!==t.queries&&t.queries.elementStart(t,a),a}(s,i,r,t,e):i.data[s];Ur(o,!0);const a=r[s]=r[11].createComment("");return Dc(i,r,a,o),vn(a,r),tc(o)&&(xf(i,r,o),_y(i,o,r)),null!=e&&If(r,o),dr}function hr(){let n=Yt();const t=Ve();return Sh()?Mh():(n=n.parent,Ur(n,!1)),t.firstCreatePass&&(oc(t,n),gh(n)&&t.queries.elementEnd(n)),hr}function Lc(n,t,e){return dr(n,t,e),hr(),Lc}function kn(){return k()}function $c(n){return!!n&&"function"==typeof n.then}function bv(n){return!!n&&"function"==typeof n.subscribe}const Cv=bv;function Le(n,t,e,r){const i=k(),s=Ve(),o=Yt();return function Ev(n,t,e,r,i,s,o,a){const l=tc(r),u=n.firstCreatePass&&ky(n),d=t[8],h=Oy(t);let p=!0;if(3&r.type||a){const C=Gn(r,t),S=a?a(C):C,D=h.length,R=a?j=>a(Ut(j[r.index])):r.index;if(At(e)){let j=null;if(!a&&l&&(j=function TD(n,t,e,r){const i=n.cleanup;if(null!=i)for(let s=0;s<i.length-1;s+=2){const o=i[s];if(o===e&&i[s+1]===r){const a=t[7],l=i[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(n,t,i,r.index)),null!==j)(j.__ngLastListenerFn__||j).__ngNextListenerFn__=s,j.__ngLastListenerFn__=s,p=!1;else{s=Yf(r,t,d,s,!1);const ne=e.listen(S,i,s);h.push(s,ne),u&&u.push(i,R,D,D+1)}}else s=Yf(r,t,d,s,!0),S.addEventListener(i,s,o),h.push(s),u&&u.push(i,R,D,o)}else s=Yf(r,t,d,s,!1);const g=r.outputs;let _;if(p&&null!==g&&(_=g[i])){const C=_.length;if(C)for(let S=0;S<C;S+=2){const O=t[_[S]][_[S+1]].subscribe(s),Z=h.length;h.push(s,O),u&&u.push(i,r.index,Z,-(Z+1))}}}(s,i,i[11],o,n,t,!!e,r),Le}function Sv(n,t,e,r){try{return!1!==e(r)}catch(i){return Fy(n,i),!1}}function Yf(n,t,e,r,i){return function s(o){if(o===Function)return r;const a=2&n.flags?qn(n.index,t):t;0==(32&t[2])&&kf(a);let l=Sv(t,0,r,o),c=s.__ngNextListenerFn__;for(;c;)l=Sv(t,0,c,o)&&l,c=c.__ngNextListenerFn__;return i&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function ue(n=1){return function IC(n){return(ye.lFrame.contextLView=function PC(n,t){for(;n>0;)t=t[15],n--;return t}(n,ye.lFrame.contextLView))[8]}(n)}function AD(n,t){let e=null;const r=function L5(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 s=t[i];if("*"!==s){if(null===r?iy(n,s,!0):B5(r,s))return i}else e=i}return e}function Jf(n,t=0,e){const r=k(),i=Ve(),s=lo(i,20+n,16,null,e||null);null===s.projection&&(s.projection=t),Mh(),64!=(64&s.flags)&&function U6(n,t,e){L0(t[11],0,t,e,A0(n,e,t),N0(e.parent||t[6],e,t))}(i,r,s)}function Fv(n,t,e,r,i){const s=n[e+1],o=null===t;let a=r?Ar(s):pi(s),l=!1;for(;0!==a&&(!1===l||o);){const u=n[a+1];PD(n[a],t)&&(l=!0,n[a+1]=r?_f(u):yf(u)),a=r?Ar(u):pi(u)}l&&(n[e+1]=r?yf(s):_f(s))}function PD(n,t){return null===n||null==t||(Array.isArray(n)?n[1]:n)===t||!(!Array.isArray(n)||"string"!=typeof t)&&io(n,t)>=0}const Xt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Lv(n){return n.substring(Xt.key,Xt.keyEnd)}function $v(n,t){const e=Xt.textEnd;return e===t?-1:(t=Xt.keyEnd=function RD(n,t,e){for(;t<e&&n.charCodeAt(t)>32;)t++;return t}(n,Xt.key=t,e),So(n,t,e))}function So(n,t,e){for(;t<e&&n.charCodeAt(t)<=32;)t++;return t}function Mo(n,t,e){return Ir(n,t,e,!1),Mo}function Qr(n,t){return Ir(n,t,null,!0),Qr}function mi(n){!function Pr(n,t,e,r){const i=Ve(),s=fi(2);i.firstUpdatePass&&zv(i,null,s,r);const o=k();if(e!==ve&&_n(o,s,e)){const a=i.data[Mn()];if(Kv(a,r)&&!Uv(i,s)){let l=r?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=oh(l,e||"")),Qf(i,a,o,e,r)}else!function zD(n,t,e,r,i,s,o,a){i===ve&&(i=nt);let l=0,c=0,u=0<i.length?i[0]:null,d=0<s.length?s[0]:null;for(;null!==u||null!==d;){const h=l<i.length?i[l+1]:void 0,p=c<s.length?s[c+1]:void 0;let _,g=null;u===d?(l+=2,c+=2,h!==p&&(g=d,_=p)):null===d||null!==u&&u<d?(l+=2,g=u):(c+=2,g=d,_=p),null!==g&&qv(n,t,e,r,g,_,o,a),u=l<i.length?i[l]:null,d=c<s.length?s[c]:null}}(i,a,o,o[11],o[s+1],o[s+1]=function UD(n,t,e){if(null==e||""===e)return nt;const r=[],i=Zn(e);if(Array.isArray(i))for(let s=0;s<i.length;s++)n(r,i[s],!0);else if("object"==typeof i)for(const s in i)i.hasOwnProperty(s)&&n(r,s,i[s]);else"string"==typeof i&&t(r,i);return r}(n,t,e),r,s)}}(Wn,Jr,n,!0)}function Jr(n,t){for(let e=function OD(n){return function Bv(n){Xt.key=0,Xt.keyEnd=0,Xt.value=0,Xt.valueEnd=0,Xt.textEnd=n.length}(n),$v(n,So(n,0,Xt.textEnd))}(t);e>=0;e=$v(t,e))Wn(n,Lv(t),!0)}function Ir(n,t,e,r){const i=k(),s=Ve(),o=fi(2);s.firstUpdatePass&&zv(s,n,o,r),t!==ve&&_n(i,o,t)&&qv(s,s.data[Mn()],i,i[11],n,i[o+1]=function GD(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=Qe(Zn(n)))),n}(t,e),r,o)}function Uv(n,t){return t>=n.expandoStartIndex}function zv(n,t,e,r){const i=n.data;if(null===i[e+1]){const s=i[Mn()],o=Uv(n,e);Kv(s,r)&&null===t&&!o&&(t=!1),t=function VD(n,t,e,r){const i=Ah(n);let s=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(e=Ga(e=ep(null,n,t,e,r),t.attrs,r),s=null);else{const o=t.directiveStylingLast;if(-1===o||n[o]!==i)if(e=ep(i,n,t,e,r),null===s){let l=function BD(n,t,e){const r=e?t.classBindings:t.styleBindings;if(0!==pi(r))return n[Ar(r)]}(n,t,r);void 0!==l&&Array.isArray(l)&&(l=ep(null,n,t,l[1],r),l=Ga(l,t.attrs,r),function jD(n,t,e,r){n[Ar(e?t.classBindings:t.styleBindings)]=r}(n,t,r,l))}else s=function HD(n,t,e){let r;const i=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<i;s++)r=Ga(r,n[s].hostAttrs,e);return Ga(r,t.attrs,e)}(n,t,r)}return void 0!==s&&(r?t.residualClasses=s:t.residualStyles=s),e}(i,s,t,r),function xD(n,t,e,r,i,s){let o=s?t.classBindings:t.styleBindings,a=Ar(o),l=pi(o);n[r]=e;let u,c=!1;if(Array.isArray(e)){const d=e;u=d[1],(null===u||io(d,u)>0)&&(c=!0)}else u=e;if(i)if(0!==l){const h=Ar(n[a+1]);n[r+1]=Ac(h,a),0!==h&&(n[h+1]=vf(n[h+1],r)),n[a+1]=function z5(n,t){return 131071&n|t<<17}(n[a+1],r)}else n[r+1]=Ac(a,0),0!==a&&(n[a+1]=vf(n[a+1],r)),a=r;else n[r+1]=Ac(l,0),0===a?a=r:n[l+1]=vf(n[l+1],r),l=r;c&&(n[r+1]=yf(n[r+1])),Fv(n,u,r,!0),Fv(n,u,r,!1),function ID(n,t,e,r,i){const s=i?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof t&&io(s,t)>=0&&(e[r+1]=_f(e[r+1]))}(t,u,n,r,s),o=Ac(a,l),s?t.classBindings=o:t.styleBindings=o}(i,s,t,e,o,r)}}function ep(n,t,e,r,i){let s=null;const o=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<o&&(s=t[a],r=Ga(r,s.hostAttrs,i),s!==n);)a++;return null!==n&&(e.directiveStylingLast=a),r}function Ga(n,t,e){const r=e?1:2;let i=-1;if(null!==t)for(let s=0;s<t.length;s++){const o=t[s];"number"==typeof o?i=o:i===r&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),Wn(n,o,!!e||t[++s]))}return void 0===n?null:n}function qv(n,t,e,r,i,s,o,a){if(!(3&t.type))return;const l=n.data,c=l[a+1];Vc(function cy(n){return 1==(1&n)}(c)?Wv(l,t,e,i,pi(c),o):void 0)||(Vc(s)||function ly(n){return 2==(2&n)}(c)&&(s=Wv(l,null,e,i,a,o)),function G6(n,t,e,r,i){const s=At(n);if(t)i?s?n.addClass(e,r):e.classList.add(r):s?n.removeClass(e,r):e.classList.remove(r);else{let o=-1===r.indexOf("-")?void 0:Kn.DashCase;if(null==i)s?n.removeStyle(e,r,o):e.style.removeProperty(r);else{const a="string"==typeof i&&i.endsWith("!important");a&&(i=i.slice(0,-10),o|=Kn.Important),s?n.setStyle(e,r,i,o):e.style.setProperty(r,i,a?"important":"")}}}(r,o,nc(Mn(),e),i,s))}function Wv(n,t,e,r,i,s){const o=null===t;let a;for(;i>0;){const l=n[i],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[i+1];h===ve&&(h=d?nt:void 0);let p=d?Bh(h,r):u===r?h:void 0;if(c&&!Vc(p)&&(p=Bh(l,r)),Vc(p)&&(a=p,o))return a;const g=n[i+1];i=o?Ar(g):pi(g)}if(null!==t){let l=s?t.residualClasses:t.residualStyles;null!=l&&(a=Bh(l,r))}return a}function Vc(n){return void 0!==n}function Kv(n,t){return 0!=(n.flags&(t?16:32))}function De(n,t=""){const e=k(),r=Ve(),i=n+20,s=r.firstCreatePass?lo(r,i,1,t,null):r.data[i],o=e[i]=function Jh(n,t){return At(n)?n.createText(t):n.createTextNode(t)}(e[11],t);Dc(r,e,o,s),Ur(s,!1)}function Hi(n){return Rn("",n,""),Hi}function Rn(n,t,e){const r=k(),i=function mo(n,t,e,r){return _n(n,Qs(),e)?t+me(e)+r:ve}(r,n,t,e);return i!==ve&&gi(r,Mn(),i),Rn}function Bc(n,t,e){const r=k();if(_n(r,Qs(),t)){const s=Ve(),o=yt();Qn(s,o,r,n,t,function Ry(n,t,e){return(null===n||Mr(n))&&(e=function yC(n){for(;Array.isArray(n);){if("object"==typeof n[1])return n;n=n[0]}return null}(e[t.index])),e[11]}(Ah(s.data),o,r),e,!0)}return Bc}const jc="en-US";let g2=jc;function rp(n,t,e,r,i){if(n=Te(n),Array.isArray(n))for(let s=0;s<n.length;s++)rp(n[s],t,e,r,i);else{const s=Ve(),o=k();let a=fo(n)?n:Te(n.provide),l=Hy(n);const c=Yt(),u=1048575&c.providerIndexes,d=c.directiveStart,h=c.providerIndexes>>20;if(fo(n)||!n.multi){const p=new ba(l,i,I),g=sp(a,t,i?u:u+h,d);-1===g?(fc(Da(c,o),s,a),ip(s,n,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),e.push(p),o.push(p)):(e[g]=p,o[g]=p)}else{const p=sp(a,t,u+h,d),g=sp(a,t,u,u+h),_=p>=0&&e[p],C=g>=0&&e[g];if(i&&!C||!i&&!_){fc(Da(c,o),s,a);const S=function uE(n,t,e,r,i){const s=new ba(n,e,I);return s.multi=[],s.index=t,s.componentProviders=0,V2(s,i,r&&!e),s}(i?cE:lE,e.length,i,r,l);!i&&C&&(e[g].providerFactory=S),ip(s,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),e.push(S),o.push(S)}else ip(s,n,p>-1?p:g,V2(e[i?g:p],l,!i&&r));!i&&r&&C&&e[g].componentProviders++}}}function ip(n,t,e,r){const i=fo(t),s=function R9(n){return!!n.useClass}(t);if(i||s){const l=(s?Te(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 V2(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function sp(n,t,e,r){for(let i=e;i<r;i++)if(t[i]===n)return i;return-1}function lE(n,t,e,r){return op(this.multi,[])}function cE(n,t,e,r){const i=this.multi;let s;if(this.providerFactory){const o=this.providerFactory.componentProviders,a=Ea(e,e[1],this.providerFactory.index,r);s=a.slice(0,o),op(i,s);for(let l=o;l<a.length;l++)s.push(a[l])}else s=[],op(i,s);return s}function op(n,t){for(let e=0;e<n.length;e++)t.push((0,n[e])());return t}function it(n,t=[]){return e=>{e.providersResolver=(r,i)=>function aE(n,t,e){const r=Ve();if(r.firstCreatePass){const i=Mr(n);rp(e,r.data,r.blueprint,i,!0),rp(t,r.data,r.blueprint,i,!1)}}(r,i?i(n):n,t)}}class B2{}class fE{resolveComponentFactory(t){throw function hE(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 ys=(()=>{class n{}return n.NULL=new fE,n})();function pE(){return xo(Yt(),k())}function xo(n,t){return new Fn(Gn(n,t))}let Fn=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=pE,n})();function gE(n){return n instanceof Fn?n.nativeElement:n}class Qa{}let Xr=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function yE(){const n=k(),e=qn(Yt().index,n);return function mE(n){return n[11]}(jr(e)?e:n)}(),n})(),vE=(()=>{class n{}return n.\u0275prov=se({token:n,providedIn:"root",factory:()=>null}),n})();class Ya{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const _E=new Ya("13.3.12"),ap={};function qc(n,t,e,r,i=!1){for(;null!==e;){const s=t[e.index];if(null!==s&&r.push(Ut(s)),Sr(s))for(let a=10;a<s.length;a++){const l=s[a],c=l[1].firstChild;null!==c&&qc(l[1],l,c,r)}const o=e.type;if(8&o)qc(n,t,e.child,r);else if(32&o){const a=Zh(e,t);let l;for(;l=a();)r.push(l)}else if(16&o){const a=F0(t,e);if(Array.isArray(a))r.push(...a);else{const l=Oa(t[16]);qc(l[1],l,a,r,!0)}}e=i?e.projectionNext:e.next}return r}class Ja{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 qc(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(Sr(t)){const e=t[8],r=e?e.indexOf(this):-1;r>-1&&(ef(t,r),gc(e,r))}this._attachedToViewContainer=!1}T0(this._lView[1],this._lView)}onDestroy(t){Dy(this._lView[1],this._lView,null,t)}markForCheck(){kf(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function Ff(n,t,e){const r=t[10];r.begin&&r.begin();try{uo(n,t,n.template,e)}catch(i){throw Fy(t,i),i}finally{r.end&&r.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ee(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function R6(n,t){ka(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new ee(902,"");this._appRef=t}}class wE extends Ja{constructor(t){super(t),this._view=t}detectChanges(){Ny(this._view)}checkNoChanges(){}get context(){return null}}class H2 extends ys{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=un(t);return new lp(e,this.ngModule)}}function U2(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class lp extends B2{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function H5(n){return n.map(j5).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return U2(this.componentDef.inputs)}get outputs(){return U2(this.componentDef.outputs)}create(t,e,r,i){const s=(i=i||this.ngModule)?function CE(n,t){return{get:(e,r,i)=>{const s=n.get(e,ap,i);return s!==ap||r===ap?s:t.get(e,r,i)}}}(t,i.injector):t,o=s.get(Qa,x1),a=s.get(vE,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=r?function Cy(n,t,e){if(At(n))return n.selectRootElement(t,e===Dr.ShadowDom);let r="string"==typeof t?n.querySelector(t):t;return r.textContent="",r}(l,r,this.componentDef.encapsulation):Xh(o.createRenderer(null,this.componentDef),c,function bE(n){const t=n.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(c)),d=this.componentDef.onPush?576:528,h=function ev(n,t){return{components:[],scheduler:n||P5,clean:M9,playerHandler:t||null,flags:0}}(),p=Pc(0,null,null,1,0,null,null,null,null,null),g=Ba(null,p,h,d,null,null,o,l,a,s);let _,C;ic(g);try{const S=function Jy(n,t,e,r,i,s){const o=e[1];e[20]=n;const l=lo(o,20,2,"#host",null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(Oc(l,c,!0),null!==n&&(cc(i,n,c),null!==l.classes&&af(i,n,l.classes),null!==l.styles&&$0(i,n,l.styles)));const u=r.createRenderer(n,t),d=Ba(e,wy(t),null,t.onPush?64:16,e[20],l,r,u,s||null,null);return o.firstCreatePass&&(fc(Da(l,e),o,t.type),Ay(o,l),xy(l,e.length,1)),Nc(e,d),e[20]=d}(u,this.componentDef,g,o,l);if(u)if(r)cc(l,u,["ng-version",_E.full]);else{const{attrs:D,classes:R}=function U5(n){const t=[],e=[];let r=1,i=2;for(;r<n.length;){let s=n[r];if("string"==typeof s)2===i?""!==s&&t.push(s,n[++r]):8===i&&e.push(s);else{if(!Tr(i))break;i=s}r++}return{attrs:t,classes:e}}(this.componentDef.selectors[0]);D&&cc(l,u,D),R&&R.length>0&&af(l,u,R.join(" "))}if(C=Ch(p,20),void 0!==e){const D=C.projection=[];for(let R=0;R<this.ngContentSelectors.length;R++){const j=e[R];D.push(null!=j?Array.from(j):null)}}_=function Xy(n,t,e,r,i){const s=e[1],o=function u9(n,t,e){const r=Yt();n.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),Iy(n,r,t,co(n,t,1,null),e));const i=Ea(t,n,r.directiveStart,r);vn(i,t);const s=Gn(r,t);return s&&vn(s,t),i}(s,e,t);if(r.components.push(o),n[8]=o,i&&i.forEach(l=>l(o,t)),t.contentQueries){const l=Yt();t.contentQueries(1,o,l.directiveStart)}const a=Yt();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||($i(a.index),My(e[1],a,0,a.directiveStart,a.directiveEnd,t),Ty(t,o)),o}(S,this.componentDef,g,h,[q9]),ja(p,g,null)}finally{sc()}return new EE(this.componentType,_,xo(C,g),g,C)}}class EE extends class dE{}{constructor(t,e,r,i,s){super(),this.location=r,this._rootLView=i,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new wE(i),this.componentType=t}get injector(){return new Xs(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class Io{}const Po=new Map;class q2 extends Io{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new H2(this);const r=or(t);this._bootstrapComponents=Wr(r.bootstrap),this._r3Injector=jy(t,e,[{provide:Io,useValue:this},{provide:ys,useValue:this.componentFactoryResolver}],Qe(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=vt.THROW_IF_NOT_FOUND,r=_e.Default){return t===vt||t===Io||t===$f?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 cp extends class ME{}{constructor(t){super(),this.moduleType=t,null!==or(t)&&function TE(n){const t=new Set;!function e(r){const i=or(r,!0),s=i.id;null!==s&&(function z2(n,t,e){if(t&&t!==e)throw new Error(`Duplicate module registered for ${n} - ${Qe(t)} vs ${Qe(t.name)}`)}(s,Po.get(s),r),Po.set(s,r));const o=Wr(i.imports);for(const a of o)t.has(a)||(t.add(a),e(a))}(n)}(t)}create(t){return new q2(this.moduleType,t)}}function up(n,t,e,r){return W2(k(),Sn(),n,t,e,r)}function Xa(n,t){const e=n[t];return e===ve?void 0:e}function W2(n,t,e,r,i,s){const o=t+e;return _n(n,o,i)?Zr(n,o+1,s?r.call(s,i):r(i)):Xa(n,o+1)}function Z2(n,t,e,r,i,s,o,a){const l=t+e;return function Rc(n,t,e,r,i){const s=ps(n,t,e,r);return _n(n,t+2,i)||s}(n,l,i,s,o)?Zr(n,l+3,a?r.call(a,i,s,o):r(i,s,o)):Xa(n,l+3)}function je(n,t){const e=Ve();let r;const i=n+20;e.firstCreatePass?(r=function LE(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 s=r.factory||(r.factory=us(r.type)),o=ki(I);try{const a=dc(!1),l=s();return dc(a),function iD(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{ki(o)}}function yi(n,t,e){const r=n+20,i=k(),s=Zs(i,r);return el(i,r)?W2(i,Sn(),t,s.transform,e,s):s.transform(e)}function fr(n,t,e,r){const i=n+20,s=k(),o=Zs(s,i);return el(s,i)?function K2(n,t,e,r,i,s,o){const a=t+e;return ps(n,a,i,s)?Zr(n,a+2,o?r.call(o,i,s):r(i,s)):Xa(n,a+2)}(s,Sn(),t,o.transform,e,r,o):o.transform(e,r)}function Ln(n,t,e,r,i){const s=n+20,o=k(),a=Zs(o,s);return el(o,s)?Z2(o,Sn(),t,a.transform,e,r,i,a):a.transform(e,r,i)}function el(n,t){return n[1].data[t].pure}function dp(n){return t=>{setTimeout(n,void 0,t)}}const He=class BE extends Ht{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,r){var i,s,o;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===(s=d.error)||void 0===s?void 0:s.bind(d),c=null===(o=d.complete)||void 0===o?void 0:o.bind(d)}this.__isAsync&&(l=dp(l),a&&(a=dp(a)),c&&(c=dp(c)));const u=super.subscribe({next:a,error:l,complete:c});return t instanceof Ot&&t.add(u),u}};function jE(){return this._results[po()]()}class hp{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=po(),r=hp.prototype;r[e]||(r[e]=jE)}get changes(){return this._changes||(this._changes=new He)}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=cr(t);(this._changesDetected=!function YC(n,t,e){if(n.length!==t.length)return!1;for(let r=0;r<n.length;r++){let i=n[r],s=t[r];if(e&&(i=e(i),s=e(s)),s!==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 ei=(()=>{class n{}return n.__NG_ELEMENT_ID__=zE,n})();const HE=ei,UE=class extends HE{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 s=this._declarationLView[19];return null!==s&&(r[19]=s.createEmbeddedView(e)),ja(e,r,t),new Ja(r)}};function zE(){return Wc(Yt(),k())}function Wc(n,t){return 4&n.type?new UE(t,n,xo(n,t)):null}let Nr=(()=>{class n{}return n.__NG_ELEMENT_ID__=GE,n})();function GE(){return e_(Yt(),k())}const qE=Nr,J2=class extends qE{constructor(t,e,r){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=r}get element(){return xo(this._hostTNode,this._hostLView)}get injector(){return new Xs(this._hostTNode,this._hostLView)}get parentInjector(){const t=hc(this._hostTNode,this._hostLView);if(q1(t)){const e=Js(t,this._hostLView),r=Ys(t);return new Xs(e[1].data[r+8],e)}return new Xs(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=X2(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,s){const o=t&&!function Ma(n){return"function"==typeof n}(t);let a;if(o)a=e;else{const d=e||{};a=d.index,r=d.injector,i=d.projectableNodes,s=d.ngModuleRef}const l=o?t:new lp(un(t)),c=r||this.parentInjector;if(!s&&null==l.ngModule){const h=(o?c:this.parentInjector).get(Io,null);h&&(s=h)}const u=l.create(c,i,void 0,s);return this.insert(u.hostView,a),u}insert(t,e){const r=t._lView,i=r[1];if(function _C(n){return Sr(n[3])}(r)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const d=r[3],h=new J2(d,d[6],d[3]);h.detach(h.indexOf(t))}}const s=this._adjustIndex(e),o=this._lContainer;!function L6(n,t,e,r){const i=10+r,s=e.length;r>0&&(e[i-1][4]=t),r<s-10?(t[4]=e[i],n0(e,10+r,t)):(e.push(t),t[4]=null),t[3]=e;const o=t[17];null!==o&&e!==o&&function $6(n,t){const e=n[9];t[16]!==t[3][3][16]&&(n[2]=!0),null===e?n[9]=[t]:e.push(t)}(o,t);const a=t[19];null!==a&&a.insertView(n),t[2]|=128}(i,r,o,s);const a=rf(s,o),l=r[11],c=Cc(l,o[7]);return null!==c&&function k6(n,t,e,r,i,s){r[0]=i,r[6]=t,ka(n,r,e,1,i,s)}(i,o[6],l,r,c,a),t.attachToViewContainerRef(),n0(fp(o),s,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=X2(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),r=ef(this._lContainer,e);r&&(gc(fp(this._lContainer),e),T0(r[1],r))}detach(t){const e=this._adjustIndex(t,-1),r=ef(this._lContainer,e);return r&&null!=gc(fp(this._lContainer),e)?new Ja(r):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}};function X2(n){return n[8]}function fp(n){return n[8]||(n[8]=[])}function e_(n,t){let e;const r=t[n.index];if(Sr(r))e=r;else{let i;if(8&n.type)i=Ut(r);else{const s=t[11];i=s.createComment("");const o=Gn(n,t);ds(s,Cc(s,o),i,function H6(n,t){return At(n)?n.nextSibling(t):t.nextSibling}(s,o),!1)}t[n.index]=e=Py(r,t,i,n),Nc(t,e)}return new J2(e,n,t)}class pp{constructor(t){this.queryList=t,this.matches=null}clone(){return new pp(this.queryList)}setDirty(){this.queryList.setDirty()}}class gp{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 s=0;s<r;s++){const o=e.getByIndex(s);i.push(this.queries[o.indexInDeclarationView].clone())}return new gp(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!==s_(t,e).matches&&this.queries[e].setDirty()}}class t_{constructor(t,e,r=null){this.predicate=t,this.flags=e,this.read=r}}class mp{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,s=this.getByIndex(r).embeddedTView(t,i);s&&(s.indexInDeclarationView=r,null!==e?e.push(s):e=[s])}return null!==e?new mp(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 yp{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 yp(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 s=r[i];this.matchTNodeWithReadOption(t,e,ZE(e,s)),this.matchTNodeWithReadOption(t,e,pc(e,t,s,!1,!1))}else r===ei?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,pc(e,t,r,!1,!1))}matchTNodeWithReadOption(t,e,r){if(null!==r){const i=this.metadata.read;if(null!==i)if(i===Fn||i===Nr||i===ei&&4&e.type)this.addMatch(e.index,-2);else{const s=pc(e,t,i,!1,!1);null!==s&&this.addMatch(e.index,s)}else this.addMatch(e.index,r)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function ZE(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 YE(n,t,e,r){return-1===e?function QE(n,t){return 11&n.type?xo(n,t):4&n.type?Wc(n,t):null}(t,n):-2===e?function JE(n,t,e){return e===Fn?xo(t,n):e===ei?Wc(t,n):e===Nr?e_(t,n):void 0}(n,t,r):Ea(n,n[1],e,t)}function n_(n,t,e,r){const i=t[19].queries[r];if(null===i.matches){const s=n.data,o=e.matches,a=[];for(let l=0;l<o.length;l+=2){const c=o[l];a.push(c<0?null:YE(t,s[c],o[l+1],e.metadata.read))}i.matches=a}return i.matches}function vp(n,t,e,r){const i=n.queries.getByIndex(e),s=i.matches;if(null!==s){const o=n_(n,t,i,e);for(let a=0;a<s.length;a+=2){const l=s[a];if(l>0)r.push(o[a/2]);else{const c=s[a+1],u=t[-l];for(let d=10;d<u.length;d++){const h=u[d];h[17]===h[3]&&vp(h[1],h,c,r)}if(null!==u[9]){const d=u[9];for(let h=0;h<d.length;h++){const p=d[h];vp(p[1],p,c,r)}}}}}return r}function No(n){const t=k(),e=Ve(),r=L1();xh(r+1);const i=s_(e,r);if(n.dirty&&I1(t)===(2==(2&i.metadata.flags))){if(null===i.matches)n.reset([]);else{const s=i.crossesNgTemplate?vp(e,t,r,[]):n_(e,t,i,r);n.reset(s,gE),n.notifyOnChanges()}return!0}return!1}function Oo(n,t,e){const r=Ve();r.firstCreatePass&&(function i_(n,t,e){null===n.queries&&(n.queries=new mp),n.queries.track(new yp(t,e))}(r,new t_(n,t,e),-1),2==(2&t)&&(r.staticViewQueries=!0)),function r_(n,t,e){const r=new hp(4==(4&e));Dy(n,t,r,r.destroy),null===t[19]&&(t[19]=new gp),t[19].queries.push(new pp(r))}(r,k(),t)}function ko(){return function eS(n,t){return n[19].queries[t].queryList}(k(),L1())}function s_(n,t){return n.queries.getByIndex(t)}function vs(n,t){return Wc(n,t)}function Qc(...n){}const C_=new oe("Application Initializer");let Ep=(()=>{class n{constructor(e){this.appInits=e,this.resolve=Qc,this.reject=Qc,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 s=this.appInits[i]();if($c(s))e.push(s);else if(Cv(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});e.push(o)}}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(C_,8))},n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const nl=new oe("AppId",{providedIn:"root",factory:function D_(){return`${Sp()}${Sp()}${Sp()}`}});function Sp(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const E_=new oe("Platform Initializer"),Mp=new oe("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),vS=new oe("appBootstrapListener"),Ui=new oe("LocaleId",{providedIn:"root",factory:()=>vc(Ui,_e.Optional|_e.SkipSelf)||function _S(){return"undefined"!=typeof $localize&&$localize.locale||jc}()}),DS=(()=>Promise.resolve(0))();function Tp(n){"undefined"==typeof Zone?DS.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class en{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new He(!1),this.onMicrotaskEmpty=new He(!1),this.onStable=new He(!1),this.onError=new He(!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 ES(){let n=Je.requestAnimationFrame,t=Je.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 TS(n){const t=()=>{!function MS(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(Je,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,xp(n),n.isCheckStableRunning=!0,Ap(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),xp(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,r,i,s,o,a)=>{try{return S_(n),e.invokeTask(i,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&t(),M_(n)}},onInvoke:(e,r,i,s,o,a,l)=>{try{return S_(n),e.invoke(i,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),M_(n)}},onHasTask:(e,r,i,s)=>{e.hasTask(i,s),r===i&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,xp(n),Ap(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,r,i,s)=>(e.handleError(i,s),n.runOutsideAngular(()=>n.onError.emit(s)),!1)})}(i)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!en.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(en.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 s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+i,t,SS,Qc,Qc);try{return s.runTask(o,e,r)}finally{s.cancelTask(o)}}runGuarded(t,e,r){return this._inner.runGuarded(t,e,r)}runOutsideAngular(t){return this._outer.run(t)}}const SS={};function Ap(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 xp(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function S_(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function M_(n){n._nesting--,Ap(n)}class AS{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new He,this.onMicrotaskEmpty=new He,this.onStable=new He,this.onError=new He}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 Ip=(()=>{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:()=>{en.assertNotInAngularZone(),Tp(()=>{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())Tp(()=>{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 s=-1;r&&r>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),e(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:e,timeoutId:s,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(en))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})(),xS=(()=>{class n{constructor(){this._applications=new Map,Pp.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 Pp.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 IS{addToWindow(t){}findTestabilityInTree(t,e,r){return null}}let Pp=new IS,_s=null;const T_=new oe("AllowMultipleToken"),A_=new oe("PlatformOnDestroy");function x_(n,t,e=[]){const r=`Platform: ${t}`,i=new oe(r);return(s=[])=>{let o=Np();if(!o||o.injector.get(T_,!1)){const a=[...e,...s,{provide:i,useValue:!0}];n?n(a):function kS(n){if(_s&&!_s.get(T_,!1))throw new ee(400,"");_s=n;const t=n.get(I_),e=n.get(E_,null);e&&e.forEach(r=>r())}(function FS(n=[],t){return vt.create({name:t,providers:[{provide:Vf,useValue:"platform"},{provide:A_,useValue:()=>_s=null},...n]})}(a,r))}return function RS(n){const t=Np();if(!t)throw new ee(401,"");return t}()}}function Np(){var n;return null!==(n=null==_s?void 0:_s.get(I_))&&void 0!==n?n:null}let I_=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,r){const a=function LS(n,t){let e;return e="noop"===n?new AS:("zone.js"===n?void 0:n)||new en({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:en,useValue:a}];return a.run(()=>{const c=vt.create({providers:l,parent:this.injector,name:e.moduleType.name}),u=e.create(c),d=u.injector.get(Va,null);if(!d)throw new ee(402,"");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:p=>{d.handleError(p)}});u.onDestroy(()=>{Op(this._modules,u),h.unsubscribe()})}),function $S(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 h=u.injector.get(Ep);return h.runInitializers(),h.donePromise.then(()=>(function m7(n){Un(n,"Expected localeId to be defined"),"string"==typeof n&&(g2=n.toLowerCase().replace(/_/g,"-"))}(u.injector.get(Ui,jc)||jc),this._moduleDoBootstrap(u),u))})})}bootstrapModule(e,r=[]){const i=P_({},r);return function NS(n,t,e){const r=new cp(e);return Promise.resolve(r)}(0,0,e).then(s=>this.bootstrapModuleFactory(s,i))}_moduleDoBootstrap(e){const r=e.injector.get(rl);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!e.instance.ngDoBootstrap)throw new ee(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 ee(404,"");this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const e=this._injector.get(A_,null);null==e||e(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(U(vt))},n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function P_(n,t){return Array.isArray(t)?t.reduce(P_,n):Object.assign(Object.assign({},n),t)}let rl=(()=>{class n{constructor(e,r,i,s){this._zone=e,this._injector=r,this._exceptionHandler=i,this._initStatus=s,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 o=new jt(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new jt(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{en.assertNotInAngularZone(),Tp(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{en.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=f1(o,a.pipe(function B4(n={}){const{connector:t=(()=>new Ht),resetOnError:e=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=n;return s=>{let o,a,l,c=0,u=!1,d=!1;const h=()=>{null==a||a.unsubscribe(),a=void 0},p=()=>{h(),o=l=void 0,u=d=!1},g=()=>{const _=o;p(),null==_||_.unsubscribe()};return Dn((_,C)=>{c++,!d&&!u&&h();const S=l=null!=l?l:t();C.add(()=>{c--,0===c&&!d&&!u&&(a=ih(g,i))}),S.subscribe(C),!o&&c>0&&(o=new pa({next:D=>S.next(D),error:D=>{d=!0,h(),a=ih(p,e,D),S.error(D)},complete:()=>{u=!0,h(),a=ih(p,r),S.complete()}}),sr(_).subscribe(o))})(s)}}()))}bootstrap(e,r){if(!this._initStatus.done)throw new ee(405,"");let i;i=e instanceof B2?e:this._injector.get(ys).resolveComponentFactory(e),this.componentTypes.push(i.componentType);const s=function OS(n){return n.isBoundToModule}(i)?void 0:this._injector.get(Io),a=i.create(vt.NULL,[],r||i.selector,s),l=a.location.nativeElement,c=a.injector.get(Ip,null),u=c&&a.injector.get(xS);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),Op(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new ee(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;Op(this._views,r),r.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(vS,[]).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(en),U(vt),U(Va),U(Ep))},n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Op(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let O_=!0,il=(()=>{class n{}return n.__NG_ELEMENT_ID__=jS,n})();function jS(n){return function HS(n,t,e){if(ec(n)&&!e){const r=qn(n.index,t);return new Ja(r,r)}return 47&n.type?new Ja(t[16],t):null}(Yt(),k(),16==(16&n))}class $_{constructor(){}supports(t){return Ua(t)}create(t){return new KS(t)}}const WS=(n,t)=>t;class KS{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||WS}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,s=null;for(;e||r;){const o=!r||e&&e.currentIndex<B_(r,i,s)?e:r,a=B_(o,i,s),l=o.currentIndex;if(o===r)i--,r=r._nextRemoved;else if(e=e._next,null==o.previousIndex)i++;else{s||(s=[]);const c=a-i,u=l-i;if(c!=u){for(let h=0;h<c;h++){const p=h<s.length?s[h]:s[h]=0,g=p+h;u<=g&&g<c&&(s[h]=p+1)}s[o.previousIndex]=u-c}}a!==l&&t(o,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=[]),!Ua(t))throw new ee(900,"");return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let i,s,o,e=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)s=t[a],o=this._trackByFn(a,s),null!==e&&Object.is(e.trackById,o)?(r&&(e=this._verifyReinsertion(e,s,o,a)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,o,a),r=!0),e=e._next}else i=0,function nD(n,t){if(Array.isArray(n))for(let e=0;e<n.length;e++)t(n[e]);else{const e=n[po()]();let r;for(;!(r=e.next()).done;)t(r.value)}}(t,a=>{o=this._trackByFn(i,a),null!==e&&Object.is(e.trackById,o)?(r&&(e=this._verifyReinsertion(e,a,o,i)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,o,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 s;return null===t?s=this._itTail:(s=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,s,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,i)):t=this._addAfter(new ZS(e,r),s,i),t}_verifyReinsertion(t,e,r,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==s?t=this._reinsertAfter(s,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,s=t._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._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 V_),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 V_),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 ZS{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 QS{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 V_{constructor(){this.map=new Map}put(t){const e=t.trackById;let r=this.map.get(e);r||(r=new QS,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 B_(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 H_(){return new Xc([new $_])}let Xc=(()=>{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||H_()),deps:[[n,new wc,new _c]]}}find(e){const r=this.factories.find(i=>i.supports(e));if(null!=r)return r;throw new ee(901,"")}}return n.\u0275prov=se({token:n,providedIn:"root",factory:H_}),n})();const tM=x_(null,"core",[]);let nM=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(U(rl))},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({}),n})(),eu=null;function bs(){return eu}const zt=new oe("DocumentToken");function ew(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const r=e.indexOf("="),[i,s]=-1==r?[e,""]:[e.slice(0,r),e.slice(r+1)];if(i.trim()===t)return decodeURIComponent(s)}return null}class WM{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 uu=(()=>{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,s,o)=>{if(null==i.previousIndex)r.createEmbeddedView(this._template,new WM(i.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)r.remove(null===s?void 0:s);else if(null!==s){const a=r.get(s);r.move(a,o),tw(a,i)}});for(let i=0,s=r.length;i<s;i++){const a=r.get(i).context;a.index=i,a.count=s,a.ngForOf=this._ngForOf}e.forEachIdentityChange(i=>{tw(r.get(i.currentIndex),i)})}static ngTemplateContextGuard(e,r){return!0}}return n.\u0275fac=function(e){return new(e||n)(I(Nr),I(ei),I(Xc))},n.\u0275dir=pe({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();function tw(n,t){n.context.$implicit=t.item}let mr=(()=>{class n{constructor(e,r){this._viewContainer=e,this._context=new KM,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){nw("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){nw("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(Nr),I(ei))},n.\u0275dir=pe({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class KM{constructor(){this.$implicit=null,this.ngIf=null}}function nw(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${Qe(t)}'.`)}let iw=(()=>{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(Nr))},n.\u0275dir=pe({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[Hr]}),n})();function kr(n,t){return new ee(2100,"")}class XM{createSubscription(t,e){return t.subscribe({next:e,error:r=>{throw r}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class eT{createSubscription(t,e){return t.then(e,r=>{throw r})}dispose(t){}onDestroy(t){}}const tT=new eT,nT=new XM;let Zp=(()=>{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 tT;if(bv(e))return nT;throw kr()}_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(il,16))},n.\u0275pipe=ht({name:"async",type:n,pure:!1}),n})(),Jp=(()=>{class n{transform(e,r,i){if(null==e)return null;if(!this.supports(e))throw kr();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=ht({name:"slice",type:n,pure:!1}),n})(),du=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({}),n})();class lw{}class Xp extends class CT extends class sM{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function iM(n){eu||(eu=n)}(new Xp)}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 DT(){return ll=ll||document.querySelector("base"),ll?ll.getAttribute("href"):null}();return null==e?null:function ET(n){hu=hu||document.createElement("a"),hu.setAttribute("href",n);const t=hu.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){ll=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return ew(document.cookie,t)}}let hu,ll=null;const cw=new oe("TRANSITION_ID"),MT=[{provide:C_,useFactory:function ST(n,t,e){return()=>{e.get(Ep).donePromise.then(()=>{const r=bs(),i=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s<i.length;s++)r.remove(i[s])})}},deps:[cw,zt,vt],multi:!0}];class eg{static init(){!function PS(n){Pp=n}(new eg)}addToWindow(t){Je.getAngularTestability=(r,i=!0)=>{const s=t.findTestabilityInTree(r,i);if(null==s)throw new Error("Could not find testability for element.");return s},Je.getAllAngularTestabilities=()=>t.getAllTestabilities(),Je.getAllAngularRootElements=()=>t.getAllRootElements(),Je.frameworkStabilizers||(Je.frameworkStabilizers=[]),Je.frameworkStabilizers.push(r=>{const i=Je.getAllAngularTestabilities();let s=i.length,o=!1;const a=function(l){o=o||l,s--,0==s&&r(o)};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?bs().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let TT=(()=>{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 fu=new oe("EventManagerPlugins");let pu=(()=>{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 s=0;s<i.length;s++){const o=i[s];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error(`No event manager plugin found for event ${e}`)}}return n.\u0275fac=function(e){return new(e||n)(U(fu),U(en))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();class uw{constructor(t){this._doc=t}addGlobalEventListener(t,e,r){const i=bs().getGlobalEventTarget(this._doc,t);if(!i)throw new Error(`Unsupported event target ${i} for event ${e}`);return this.addEventListener(i,e,r)}}let dw=(()=>{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})(),cl=(()=>{class n extends dw{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,r,i){e.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,i.push(r.appendChild(o))})}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(hw),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((r,i)=>{this._addStylesToHost(e,i,r)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(hw))}}return n.\u0275fac=function(e){return new(e||n)(U(zt))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();function hw(n){bs().remove(n)}const tg={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/"},ng=/%COMP%/g;function gu(n,t,e){for(let r=0;r<t.length;r++){let i=t[r];Array.isArray(i)?gu(n,i,e):(i=i.replace(ng,n),e.push(i))}return e}function gw(n){return t=>{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let mu=(()=>{class n{constructor(e,r,i){this.eventManager=e,this.sharedStylesHost=r,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new rg(e)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;switch(r.encapsulation){case Dr.Emulated:{let i=this.rendererByCompId.get(r.id);return i||(i=new OT(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,i)),i.applyToHost(e),i}case 1:case Dr.ShadowDom:return new kT(this.eventManager,this.sharedStylesHost,e,r);default:if(!this.rendererByCompId.has(r.id)){const i=gu(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(pu),U(cl),U(nl))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();class rg{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(tg[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 s=tg[i];s?t.setAttributeNS(s,e,r):t.setAttribute(e,r)}else t.setAttribute(e,r)}removeAttribute(t,e,r){if(r){const i=tg[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&(Kn.DashCase|Kn.Important)?t.style.setProperty(e,r,i&Kn.Important?"important":""):t.style[e]=r}removeStyle(t,e,r){r&Kn.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,gw(r)):this.eventManager.addEventListener(t,e,gw(r))}}class OT extends rg{constructor(t,e,r,i){super(t),this.component=r;const s=gu(i+"-"+r.id,r.styles,[]);e.addStyles(s),this.contentAttr=function IT(n){return"_ngcontent-%COMP%".replace(ng,n)}(i+"-"+r.id),this.hostAttr=function PT(n){return"_nghost-%COMP%".replace(ng,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 kT extends rg{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 s=gu(i.id,i.styles,[]);for(let o=0;o<s.length;o++){const a=document.createElement("style");a.textContent=s[o],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 RT=(()=>{class n extends uw{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(zt))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();const yw=["alt","control","meta","shift"],LT={"\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"},vw={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"},$T={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let VT=(()=>{class n extends uw{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,r,i){const s=n.parseEventName(r),o=n.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>bs().onAndCancel(e,s.domEventName,o))}static parseEventName(e){const r=e.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const s=n._normalizeKey(r.pop());let o="";if(yw.forEach(l=>{const c=r.indexOf(l);c>-1&&(r.splice(c,1),o+=l+".")}),o+=s,0!=r.length||0===s.length)return null;const a={};return a.domEventName=i,a.fullKey=o,a}static getEventFullKey(e){let r="",i=function BT(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&&vw.hasOwnProperty(t)&&(t=vw[t]))}return LT[t]||t}(e);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),yw.forEach(s=>{s!=i&&$T[s](e)&&(r+=s+".")}),r+=i,r}static eventCallback(e,r,i){return s=>{n.getEventFullKey(s)===e&&i.runGuarded(()=>r(s))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(U(zt))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();const zT=x_(tM,"browser",[{provide:Mp,useValue:"browser"},{provide:E_,useValue:function jT(){Xp.makeCurrent(),eg.init()},multi:!0},{provide:zt,useFactory:function UT(){return function gC(n){wh=n}(document),document},deps:[]}]),GT=[{provide:Vf,useValue:"root"},{provide:Va,useFactory:function HT(){return new Va},deps:[]},{provide:fu,useClass:RT,multi:!0,deps:[zt,en,Mp]},{provide:fu,useClass:VT,multi:!0,deps:[zt]},{provide:mu,useClass:mu,deps:[pu,cl,nl]},{provide:Qa,useExisting:mu},{provide:dw,useExisting:cl},{provide:cl,useClass:cl,deps:[zt]},{provide:Ip,useClass:Ip,deps:[en]},{provide:pu,useClass:pu,deps:[fu,en]},{provide:lw,useClass:TT,deps:[]}];let _w=(()=>{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:nl,useValue:e.appId},{provide:cw,useExisting:nl},MT]}}}return n.\u0275fac=function(e){return new(e||n)(U(n,12))},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({providers:GT,imports:[du,nM]}),n})();"undefined"!=typeof window&&window;let Cw=(()=>{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):U(Dw),r},providedIn:"root"}),n})(),Dw=(()=>{class n extends Cw{constructor(e){super(),this._doc=e}sanitize(e,r){if(null==r)return null;switch(e){case rt.NONE:return r;case rt.HTML:return Gr(r,"HTML")?Zn(r):Q0(this._doc,String(r)).toString();case rt.STYLE:return Gr(r,"Style")?Zn(r):r;case rt.SCRIPT:if(Gr(r,"Script"))return Zn(r);throw new Error("unsafe value used in a script context");case rt.URL:return H0(r),Gr(r,"URL")?Zn(r):Ra(String(r));case rt.RESOURCE_URL:if(Gr(r,"ResourceURL"))return Zn(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 e5(n){return new Z6(n)}(e)}bypassSecurityTrustStyle(e){return function t5(n){return new Q6(n)}(e)}bypassSecurityTrustScript(e){return function n5(n){return new Y6(n)}(e)}bypassSecurityTrustUrl(e){return function r5(n){return new J6(n)}(e)}bypassSecurityTrustResourceUrl(e){return function i5(n){return new X6(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(U(zt))},n.\u0275prov=se({token:n,factory:function(e){let r=null;return r=e?new e:function tA(n){return new Dw(n.get(zt))}(U(vt)),r},providedIn:"root"}),n})();const sg={now:()=>(sg.delegate||Date).now(),delegate:void 0};class nA extends Ht{constructor(t=1/0,e=1/0,r=sg){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:s,_windowTime:o}=this;e||(r.push(t),!i&&r.push(s.now()+o)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:i}=this,s=i.slice();for(let o=0;o<s.length&&!t.closed;o+=r?1:2)t.next(s[o]);return this._checkFinalizedStatuses(t),e}_trimBuffer(){const{_bufferSize:t,_timestampProvider:e,_buffer:r,_infiniteTimeWindow:i}=this,s=(i?1:2)*t;if(t<1/0&&s<r.length&&r.splice(0,r.length-s),!i){const o=e.now();let a=0;for(let l=1;l<r.length&&r[l]<=o;l+=2)a=l;a&&r.splice(0,a+1)}}}function Fo(n,t){return Dn((e,r)=>{let i=null,s=0,o=!1;const a=()=>o&&!i&&r.complete();e.subscribe(ln(r,l=>{null==i||i.unsubscribe();let c=0;const u=s++;sr(n(l,u)).subscribe(i=ln(r,d=>r.next(t?t(l,d,u,c++):d),()=>{i=null,a()}))},()=>{o=!0,a()}))})}const yu={schedule(n,t){const e=setTimeout(n,t);return()=>clearTimeout(e)},scheduleBeforeRender(n){if("undefined"==typeof window)return yu.schedule(n,0);if(void 0===window.requestAnimationFrame)return yu.schedule(n,16);const t=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(t)}};let og;function dA(n,t,e){let r=e;return function iA(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&t.some((i,s)=>!("*"===i||!function oA(n,t){if(!og){const e=Element.prototype;og=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&og.call(n,t)}(n,i)||(r=s,0))),r}class fA{constructor(t,e){this.componentFactory=e.get(ys).resolveComponentFactory(t)}create(t){return new pA(this.componentFactory,t)}}class pA{constructor(t,e){this.componentFactory=t,this.injector=e,this.eventEmitters=new nA(1),this.events=this.eventEmitters.pipe(Fo(r=>f1(...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(en),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=yu.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 aA(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=vt.create({providers:[],parent:this.injector}),r=function uA(n,t){const e=n.childNodes,r=t.map(()=>[]);let i=-1;t.some((s,o)=>"*"===s&&(i=o,!0));for(let s=0,o=e.length;s<o;++s){const a=e[s],l=dA(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(il),this.implementsOnChanges=function sA(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(rl).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(kt(o=>({name:i,value:o}))));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=yu.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),s=i?void 0:this.getInputValue(t);this.inputChanges[t]=new S1(s,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 gA extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function Yn(...n){return ss(n,ga(n))}function vu(n,t){return Dn((e,r)=>{let i=0;e.subscribe(ln(r,s=>n.call(t,s,i++)&&r.next(s)))})}class Sw{}class Mw{}class ti{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),s=i.toLowerCase(),o=e.slice(r+1).trim();this.maybeSetNormalizedName(i,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:()=>{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 ti?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 ti;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof ti?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 s=t.value;if(s){let o=this.headers.get(e);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}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 yA{encodeKey(t){return Tw(t)}encodeValue(t){return Tw(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const _A=/%(\d[a-f0-9])/gi,wA={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Tw(n){return encodeURIComponent(n).replace(_A,(t,e)=>{var r;return null!==(r=wA[e])&&void 0!==r?r:t})}function Aw(n){return`${n}`}class _i{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new yA,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function vA(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(i=>{const s=i.indexOf("="),[o,a]=-1==s?[t.decodeKey(i),""]:[t.decodeKey(i.slice(0,s)),t.decodeValue(i.slice(s+1))],l=e.get(o)||[];l.push(a),e.set(o,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(s=>{e.push({param:r,value:s,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 _i({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(Aw(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(Aw(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 xw{constructor(t){this.defaultValue=t}}class bA{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 Iw(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function Pw(n){return"undefined"!=typeof Blob&&n instanceof Blob}function Nw(n){return"undefined"!=typeof FormData&&n instanceof FormData}class ul{constructor(t,e,r,i){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function CA(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,s=i):s=r,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new ti),this.context||(this.context=new bA),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a<e.length-1?"&":"")+o}}else this.params=new _i,this.urlWithParams=e}serializeBody(){return null===this.body?null:Iw(this.body)||Pw(this.body)||Nw(this.body)||function DA(n){return"undefined"!=typeof URLSearchParams&&n instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof _i?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||Nw(this.body)?null:Pw(this.body)?this.body.type||null:Iw(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof _i?"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,s=t.responseType||this.responseType,o=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((h,p)=>h.set(p,t.setHeaders[p]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((h,p)=>h.set(p,t.setParams[p]),u)),new ul(r,i,o,{params:u,headers:c,context:d,reportProgress:l,responseType:s,withCredentials:a})}}var Wt=(()=>((Wt=Wt||{})[Wt.Sent=0]="Sent",Wt[Wt.UploadProgress=1]="UploadProgress",Wt[Wt.ResponseHeader=2]="ResponseHeader",Wt[Wt.DownloadProgress=3]="DownloadProgress",Wt[Wt.Response=4]="Response",Wt[Wt.User=5]="User",Wt))();class ag{constructor(t,e=200,r="OK"){this.headers=t.headers||new ti,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 lg extends ag{constructor(t={}){super(t),this.type=Wt.ResponseHeader}clone(t={}){return new lg({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 _u extends ag{constructor(t={}){super(t),this.type=Wt.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new _u({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 Ow extends ag{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 cg(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 ug=(()=>{class n{constructor(e){this.handler=e}request(e,r,i={}){let s;if(e instanceof ul)s=e;else{let l,c;l=i.headers instanceof ti?i.headers:new ti(i.headers),i.params&&(c=i.params instanceof _i?i.params:new _i({fromObject:i.params})),s=new ul(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 o=Yn(s).pipe(function Ew(n,t){return be(t)?Wl(n,t,1):Wl(n,1)}(l=>this.handler.handle(l)));if(e instanceof ul||"events"===i.observe)return o;const a=o.pipe(vu(l=>l instanceof _u));switch(i.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(kt(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(kt(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(kt(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(kt(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 _i).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,cg(i,r))}post(e,r,i={}){return this.request("POST",e,cg(i,r))}put(e,r,i={}){return this.request("PUT",e,cg(i,r))}}return n.\u0275fac=function(e){return new(e||n)(U(Sw))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();class kw{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const wu=new oe("HTTP_INTERCEPTORS");let EA=(()=>{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 SA=/^\)\]\}',?\n/;let Rw=(()=>{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 jt(r=>{const i=this.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach((p,g)=>i.setRequestHeader(p,g.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 s=e.serializeBody();let o=null;const a=()=>{if(null!==o)return o;const p=i.statusText||"OK",g=new ti(i.getAllResponseHeaders()),_=function MA(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 o=new lg({headers:g,status:i.status,statusText:p,url:_}),o},l=()=>{let{headers:p,status:g,statusText:_,url:C}=a(),S=null;204!==g&&(S=void 0===i.response?i.responseText:i.response),0===g&&(g=S?200:0);let D=g>=200&&g<300;if("json"===e.responseType&&"string"==typeof S){const R=S;S=S.replace(SA,"");try{S=""!==S?JSON.parse(S):null}catch(j){S=R,D&&(D=!1,S={error:j,text:S})}}D?(r.next(new _u({body:S,headers:p,status:g,statusText:_,url:C||void 0})),r.complete()):r.error(new Ow({error:S,headers:p,status:g,statusText:_,url:C||void 0}))},c=p=>{const{url:g}=a(),_=new Ow({error:p,status:i.status||0,statusText:i.statusText||"Unknown Error",url:g||void 0});r.error(_)};let u=!1;const d=p=>{u||(r.next(a()),u=!0);let g={type:Wt.DownloadProgress,loaded:p.loaded};p.lengthComputable&&(g.total=p.total),"text"===e.responseType&&!!i.responseText&&(g.partialText=i.responseText),r.next(g)},h=p=>{let g={type:Wt.UploadProgress,loaded:p.loaded};p.lengthComputable&&(g.total=p.total),r.next(g)};return i.addEventListener("load",l),i.addEventListener("error",c),i.addEventListener("timeout",c),i.addEventListener("abort",c),e.reportProgress&&(i.addEventListener("progress",d),null!==s&&i.upload&&i.upload.addEventListener("progress",h)),i.send(s),r.next({type:Wt.Sent}),()=>{i.removeEventListener("error",c),i.removeEventListener("abort",c),i.removeEventListener("load",l),i.removeEventListener("timeout",c),e.reportProgress&&(i.removeEventListener("progress",d),null!==s&&i.upload&&i.upload.removeEventListener("progress",h)),i.readyState!==i.DONE&&i.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(U(lw))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();const dg=new oe("XSRF_COOKIE_NAME"),hg=new oe("XSRF_HEADER_NAME");class Fw{}let TA=(()=>{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=ew(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(U(zt),U(Mp),U(dg))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})(),fg=(()=>{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 s=this.tokenService.getToken();return null!==s&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,s)})),r.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(U(Fw),U(hg))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})(),AA=(()=>{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(wu,[]);this.chain=r.reduceRight((i,s)=>new kw(i,s),this.backend)}return this.chain.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(U(Mw),U(vt))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})(),xA=(()=>{class n{static disable(){return{ngModule:n,providers:[{provide:fg,useClass:EA}]}}static withOptions(e={}){return{ngModule:n,providers:[e.cookieName?{provide:dg,useValue:e.cookieName}:[],e.headerName?{provide:hg,useValue:e.headerName}:[]]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({providers:[fg,{provide:wu,useExisting:fg,multi:!0},{provide:Fw,useClass:TA},{provide:dg,useValue:"XSRF-TOKEN"},{provide:hg,useValue:"X-XSRF-TOKEN"}]}),n})(),Lw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({providers:[ug,{provide:Sw,useClass:AA},Rw,{provide:Mw,useExisting:Rw}],imports:[[xA.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),n})();class IA extends Ot{constructor(t,e){super()}schedule(t,e=0){return this}}const bu={setInterval(n,t,...e){const{delegate:r}=bu;return(null==r?void 0:r.setInterval)?r.setInterval(n,t,...e):setInterval(n,t,...e)},clearInterval(n){const{delegate:t}=bu;return((null==t?void 0:t.clearInterval)||clearInterval)(n)},delegate:void 0};class dl{constructor(t,e=dl.now){this.schedulerActionCtor=t,this.now=e}schedule(t,e=0,r){return new this.schedulerActionCtor(this,t).schedule(r,e)}}dl.now=sg.now;const $w=new class NA extends dl{constructor(t,e=dl.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 PA extends IA{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,s=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(s,i,e)),this.pending=!0,this.delay=e,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(s,this.id,e),this}requestAsyncId(t,e,r=0){return bu.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&&bu.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(s){r=!0,i=s||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,Ke(r,this),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null,super.unsubscribe()}}}),OA=$w;function hl(n,t=$w){return Dn((e,r)=>{let i=null,s=null,o=null;const a=()=>{if(i){i.unsubscribe(),i=null;const c=s;s=null,r.next(c)}};function l(){const c=o+n,u=t.now();if(u<c)return i=this.schedule(void 0,c-u),void r.add(i);a()}e.subscribe(ln(r,c=>{s=c,o=t.now(),i||(i=t.schedule(l,n),r.add(i))},()=>{a(),r.complete()},void 0,()=>{s=i=null}))})}function Vw(n){return Dn((t,e)=>{sr(n).subscribe(ln(e,()=>e.complete(),ha)),!e.closed&&t.subscribe(e)})}class ni extends Ht{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 Bw(n=0,t,e=OA){let r=-1;return null!=t&&(l1(t)?e=t:r=t),new jt(i=>{let s=function kA(n){return n instanceof Date&&!isNaN(n)}(n)?+n-e.now():n;s<0&&(s=0);let o=0;return e.schedule(function(){i.closed||(i.next(o++),0<=r?this.schedule(void 0,r):i.complete())},s)})}function Cs(n){return Dn((t,e)=>{let s,r=null,i=!1;r=t.subscribe(ln(e,void 0,void 0,o=>{s=sr(n(o,Cs(n)(t))),r?(r.unsubscribe(),r=null,s.subscribe(e)):i=!0})),i&&(r.unsubscribe(),r=null,s.subscribe(e))})}function jw(...n){return function FA(){return o1(1)}()(ss(n,ga(n)))}function pg(...n){const t=ga(n);return Dn((e,r)=>{(t?jw(n,e,t):jw(n,e)).subscribe(r)})}function Hw(n,t,e){const r=be(n)||t||e?{next:n,error:t,complete:e}:n;return r?Dn((i,s)=>{var o;null===(o=r.subscribe)||void 0===o||o.call(r);let a=!0;i.subscribe(ln(s,l=>{var c;null===(c=r.next)||void 0===c||c.call(r,l),s.next(l)},()=>{var l;a=!1,null===(l=r.complete)||void 0===l||l.call(r),s.complete()},l=>{var c;a=!1,null===(c=r.error)||void 0===c||c.call(r,l),s.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)}))}):Us}const{isArray:LA}=Array,{getPrototypeOf:$A,prototype:VA,keys:BA}=Object;function Uw(n){if(1===n.length){const t=n[0];if(LA(t))return{args:t,keys:null};if(function jA(n){return n&&"object"==typeof n&&$A(n)===VA}(t)){const e=BA(t);return{args:e.map(r=>t[r]),keys:e}}}return{args:n,keys:null}}const{isArray:HA}=Array;function zw(n){return kt(t=>function UA(n,t){return HA(t)?n(...t):n(t)}(n,t))}function Gw(n,t){return n.reduce((e,r,i)=>(e[r]=t[i],e),{})}function gg(...n){const t=ga(n),e=c1(n),{args:r,keys:i}=Uw(n);if(0===r.length)return ss([],t);const s=new jt(function zA(n,t,e=Us){return r=>{qw(t,()=>{const{length:i}=n,s=new Array(i);let o=i,a=i;for(let l=0;l<i;l++)qw(t,()=>{const c=ss(n[l],t);let u=!1;c.subscribe(ln(r,d=>{s[l]=d,u||(u=!0,a--),a||r.next(e(s.slice()))},()=>{--o||r.complete()}))},r)},r)}}(r,t,i?o=>Gw(i,o):Us));return e?s.pipe(zw(e)):s}function qw(n,t,e){n?ci(e,n,t):t()}function Ww(){return Dn((n,t)=>{let e,r=!1;n.subscribe(ln(t,i=>{const s=e;e=i,r&&t.next([s,i]),r=!0}))})}const Kw={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let Cu;const WA=new Uint8Array(16);function KA(){if(!Cu&&(Cu="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Cu))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Cu(WA)}const fn=[];for(let n=0;n<256;++n)fn.push((n+256).toString(16).slice(1));const Qw=function ZA(n,t,e){if(Kw.randomUUID&&!t&&!n)return Kw.randomUUID();const r=(n=n||{}).random||(n.rng||KA)();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 Zw(n,t=0){return fn[n[t+0]]+fn[n[t+1]]+fn[n[t+2]]+fn[n[t+3]]+"-"+fn[n[t+4]]+fn[n[t+5]]+"-"+fn[n[t+6]]+fn[n[t+7]]+"-"+fn[n[t+8]]+fn[n[t+9]]+"-"+fn[n[t+10]]+fn[n[t+11]]+fn[n[t+12]]+fn[n[t+13]]+fn[n[t+14]]+fn[n[t+15]]}(r)};function wi(n){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(n)}function YA(n,t){return n&t}function Du(n,t){return n|t}function Yw(n,t){return n^t}function Jw(n,t){return n&~t}function JA(n){if(0==n)return-1;var t=0;return 0==(65535&n)&&(n>>=16,t+=16),0==(255&n)&&(n>>=8,t+=8),0==(15&n)&&(n>>=4,t+=4),0==(3&n)&&(n>>=2,t+=2),0==(1&n)&&++t,t}function XA(n){for(var t=0;0!=n;)n&=n-1,++t;return t}var Lo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Eu(n){var t,e,r="";for(t=0;t+3<=n.length;t+=3)e=parseInt(n.substring(t,t+3),16),r+=Lo.charAt(e>>6)+Lo.charAt(63&e);for(t+1==n.length?(e=parseInt(n.substring(t,t+1),16),r+=Lo.charAt(e<<2)):t+2==n.length&&(e=parseInt(n.substring(t,t+2),16),r+=Lo.charAt(e>>2)+Lo.charAt((3&e)<<4));(3&r.length)>0;)r+="=";return r}function mg(n){var e,t="",r=0,i=0;for(e=0;e<n.length&&"="!=n.charAt(e);++e){var s=Lo.indexOf(n.charAt(e));s<0||(0==r?(t+=wi(s>>2),i=3&s,r=1):1==r?(t+=wi(i<<2|s>>4),i=15&s,r=2):2==r?(t+=wi(i),t+=wi(s>>2),i=3&s,r=3):(t+=wi(i<<2|s>>4),t+=wi(15&s),r=0))}return 1==r&&(t+=wi(i<<2)),t}var $o,Ds,yg={decode:function(n){var t;if(void 0===Ds){var r="= \f\n\r\t\xa0\u2028\u2029";for(Ds=Object.create(null),t=0;t<64;++t)Ds["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)]=t;for(Ds["-"]=62,Ds._=63,t=0;t<r.length;++t)Ds[r.charAt(t)]=-1}var i=[],s=0,o=0;for(t=0;t<n.length;++t){var a=n.charAt(t);if("="==a)break;if(-1!=(a=Ds[a])){if(void 0===a)throw new Error("Illegal character at offset "+t);s|=a,++o>=4?(i[i.length]=s>>16,i[i.length]=s>>8&255,i[i.length]=255&s,s=0,o=0):s<<=6}}switch(o){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:i[i.length]=s>>10;break;case 3:i[i.length]=s>>16,i[i.length]=s>>8&255}return i},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(n){var t=yg.re.exec(n);if(t)if(t[1])n=t[1];else{if(!t[2])throw new Error("RegExp out of sync");n=t[2]}return yg.decode(n)}},Vo=1e13,fl=function(){function n(t){this.buf=[+t||0]}return n.prototype.mulAdd=function(t,e){var s,o,r=this.buf,i=r.length;for(s=0;s<i;++s)(o=r[s]*t+e)<Vo?e=0:o-=(e=0|o/Vo)*Vo,r[s]=o;e>0&&(r[s]=e)},n.prototype.sub=function(t){var i,s,e=this.buf,r=e.length;for(i=0;i<r;++i)(s=e[i]-t)<0?(s+=Vo,t=1):t=0,e[i]=s;for(;0===e[e.length-1];)e.pop()},n.prototype.toString=function(t){if(10!=(t||10))throw new Error("only base 10 is supported");for(var e=this.buf,r=e[e.length-1].toString(),i=e.length-2;i>=0;--i)r+=(Vo+e[i]).toString().substring(1);return r},n.prototype.valueOf=function(){for(var t=this.buf,e=0,r=t.length-1;r>=0;--r)e=e*Vo+t[r];return e},n.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},n}(),tx=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,nx=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function Bo(n,t){return n.length>t&&(n=n.substring(0,t)+"\u2026"),n}var Gi,vg=function(){function n(t,e){this.hexDigits="0123456789ABCDEF",t instanceof n?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=e)}return n.prototype.get=function(t){if(void 0===t&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return"string"==typeof this.enc?this.enc.charCodeAt(t):this.enc[t]},n.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)},n.prototype.hexDump=function(t,e,r){for(var i="",s=t;s<e;++s)if(i+=this.hexByte(this.get(s)),!0!==r)switch(15&s){case 7:i+=" ";break;case 15:i+="\n";break;default:i+=" "}return i},n.prototype.isASCII=function(t,e){for(var r=t;r<e;++r){var i=this.get(r);if(i<32||i>176)return!1}return!0},n.prototype.parseStringISO=function(t,e){for(var r="",i=t;i<e;++i)r+=String.fromCharCode(this.get(i));return r},n.prototype.parseStringUTF=function(t,e){for(var r="",i=t;i<e;){var s=this.get(i++);r+=String.fromCharCode(s<128?s:s>191&&s<224?(31&s)<<6|63&this.get(i++):(15&s)<<12|(63&this.get(i++))<<6|63&this.get(i++))}return r},n.prototype.parseStringBMP=function(t,e){for(var i,s,r="",o=t;o<e;)i=this.get(o++),s=this.get(o++),r+=String.fromCharCode(i<<8|s);return r},n.prototype.parseTime=function(t,e,r){var i=this.parseStringISO(t,e),s=(r?tx:nx).exec(i);return s?(r&&(s[1]=+s[1],s[1]+=+s[1]<70?2e3:1900),i=s[1]+"-"+s[2]+"-"+s[3]+" "+s[4],s[5]&&(i+=":"+s[5],s[6]&&(i+=":"+s[6],s[7]&&(i+="."+s[7]))),s[8]&&(i+=" UTC","Z"!=s[8]&&(i+=s[8],s[9]&&(i+=":"+s[9]))),i):"Unrecognized time: "+i},n.prototype.parseInteger=function(t,e){for(var o,r=this.get(t),i=r>127,s=i?255:0,a="";r==s&&++t<e;)r=this.get(t);if(0==(o=e-t))return i?-1:0;if(o>4){for(a=r,o<<=3;0==(128&(+a^s));)a=+a<<1,--o;a="("+o+" bit)\n"}i&&(r-=256);for(var l=new fl(r),c=t+1;c<e;++c)l.mulAdd(256,this.get(c));return a+l.toString()},n.prototype.parseBitString=function(t,e,r){for(var i=this.get(t),o="("+((e-t-1<<3)-i)+" bit)\n",a="",l=t+1;l<e;++l){for(var c=this.get(l),u=l==e-1?i:0,d=7;d>=u;--d)a+=c>>d&1?"1":"0";if(a.length>r)return o+Bo(a,r)}return o+a},n.prototype.parseOctetString=function(t,e,r){if(this.isASCII(t,e))return Bo(this.parseStringISO(t,e),r);var i=e-t,s="("+i+" byte)\n";i>(r/=2)&&(e=t+r);for(var o=t;o<e;++o)s+=this.hexByte(this.get(o));return i>r&&(s+="\u2026"),s},n.prototype.parseOID=function(t,e,r){for(var i="",s=new fl,o=0,a=t;a<e;++a){var l=this.get(a);if(s.mulAdd(128,127&l),o+=7,!(128&l)){if(""===i)if((s=s.simplify())instanceof fl)s.sub(80),i="2."+s.toString();else{var c=s<80?s<40?0:1:2;i=c+"."+(s-40*c)}else i+="."+s.toString();if(i.length>r)return Bo(i,r);s=new fl,o=0}}return o>0&&(i+=".incomplete"),i},n}(),rx=function(){function n(t,e,r,i,s){if(!(i instanceof t8))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=r,this.tag=i,this.sub=s}return n.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},n.prototype.content=function(t){if(void 0===this.tag)return null;void 0===t&&(t=1/0);var e=this.posContent(),r=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+r,t);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(e)?"false":"true";case 2:return this.stream.parseInteger(e,e+r);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+r,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+r,t);case 6:return this.stream.parseOID(e,e+r,t);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return Bo(this.stream.parseStringUTF(e,e+r),t);case 18:case 19:case 20:case 21:case 22:case 26:return Bo(this.stream.parseStringISO(e,e+r),t);case 30:return Bo(this.stream.parseStringBMP(e,e+r),t);case 23:case 24:return this.stream.parseTime(e,e+r,23==this.tag.tagNumber)}return null},n.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},n.prototype.toPrettyString=function(t){void 0===t&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":this.tag.isUniversal()&&(3==this.tag.tagNumber||4==this.tag.tagNumber)&&null!==this.sub&&(e+=" (encapsulates)"),e+="\n",null!==this.sub){t+=" ";for(var r=0,i=this.sub.length;r<i;++r)e+=this.sub[r].toPrettyString(t)}return e},n.prototype.posStart=function(){return this.stream.pos},n.prototype.posContent=function(){return this.stream.pos+this.header},n.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},n.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},n.decodeLength=function(t){var e=t.get(),r=127&e;if(r==e)return r;if(r>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(0===r)return null;e=0;for(var i=0;i<r;++i)e=256*e+t.get();return e},n.prototype.getHexStringValue=function(){return this.toHexString().substr(2*this.header,2*this.length)},n.decode=function(t){var e;e=t instanceof vg?t:new vg(t,0);var r=new vg(e),i=new t8(e),s=n.decodeLength(e),o=e.pos,a=o-r.pos,l=null,c=function(){var d=[];if(null!==s){for(var h=o+s;e.pos<h;)d[d.length]=n.decode(e);if(e.pos!=h)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var p=n.decode(e);if(p.tag.isEOC())break;d[d.length]=p}s=o-e.pos}catch(g){throw new Error("Exception while decoding undefined length content: "+g)}return d};if(i.tagConstructed)l=c();else if(i.isUniversal()&&(3==i.tagNumber||4==i.tagNumber))try{if(3==i.tagNumber&&0!=e.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");l=c();for(var u=0;u<l.length;++u)if(l[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(d){l=null}if(null===l){if(null===s)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);e.pos=o+Math.abs(s)}return new n(r,a,s,i,l)},n}(),t8=function(){function n(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=0!=(32&e),this.tagNumber=31&e,31==this.tagNumber){var r=new fl;do{e=t.get(),r.mulAdd(128,127&e)}while(128&e);this.tagNumber=r.simplify()}}return n.prototype.isUniversal=function(){return 0===this.tagClass},n.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},n}(),In=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],sx=(1<<26)/In[In.length-1],xe=function(){function n(t,e,r){null!=t&&("number"==typeof t?this.fromNumber(t,e,r):this.fromString(t,null==e&&"string"!=typeof t?256:e))}return n.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var i,r=(1<<e)-1,s=!1,o="",a=this.t,l=this.DB-a*this.DB%e;if(a-- >0)for(l<this.DB&&(i=this[a]>>l)>0&&(s=!0,o=wi(i));a>=0;)l<e?(i=(this[a]&(1<<l)-1)<<e-l,i|=this[--a]>>(l+=this.DB-e)):(i=this[a]>>(l-=e)&r,l<=0&&(l+=this.DB,--a)),i>0&&(s=!0),s&&(o+=wi(i));return s?o:"0"},n.prototype.negate=function(){var t=Re();return n.ZERO.subTo(this,t),t},n.prototype.abs=function(){return this.s<0?this.negate():this},n.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var r=this.t;if(0!=(e=r-t.t))return this.s<0?-e:e;for(;--r>=0;)if(0!=(e=this[r]-t[r]))return e;return 0},n.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+Mu(this[this.t-1]^this.s&this.DM)},n.prototype.mod=function(t){var e=Re();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(n.ZERO)>0&&t.subTo(e,e),e},n.prototype.modPowInt=function(t,e){var r;return r=t<256||e.isEven()?new r8(e):new i8(e),this.exp(t,r)},n.prototype.clone=function(){var t=Re();return this.copyTo(t),t},n.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},n.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},n.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},n.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},n.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var i,r=this.DB-t*this.DB%8,s=0;if(t-- >0)for(r<this.DB&&(i=this[t]>>r)!=(this.s&this.DM)>>r&&(e[s++]=i|this.s<<this.DB-r);t>=0;)r<8?(i=(this[t]&(1<<r)-1)<<8-r,i|=this[--t]>>(r+=this.DB-8)):(i=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),0!=(128&i)&&(i|=-256),0==s&&(128&this.s)!=(128&i)&&++s,(s>0||i!=this.s)&&(e[s++]=i);return e},n.prototype.equals=function(t){return 0==this.compareTo(t)},n.prototype.min=function(t){return this.compareTo(t)<0?this:t},n.prototype.max=function(t){return this.compareTo(t)>0?this:t},n.prototype.and=function(t){var e=Re();return this.bitwiseTo(t,YA,e),e},n.prototype.or=function(t){var e=Re();return this.bitwiseTo(t,Du,e),e},n.prototype.xor=function(t){var e=Re();return this.bitwiseTo(t,Yw,e),e},n.prototype.andNot=function(t){var e=Re();return this.bitwiseTo(t,Jw,e),e},n.prototype.not=function(){for(var t=Re(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},n.prototype.shiftLeft=function(t){var e=Re();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},n.prototype.shiftRight=function(t){var e=Re();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},n.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+JA(this[t]);return this.s<0?this.t*this.DB:-1},n.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,r=0;r<this.t;++r)t+=XA(this[r]^e);return t},n.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:0!=(this[e]&1<<t%this.DB)},n.prototype.setBit=function(t){return this.changeBit(t,Du)},n.prototype.clearBit=function(t){return this.changeBit(t,Jw)},n.prototype.flipBit=function(t){return this.changeBit(t,Yw)},n.prototype.add=function(t){var e=Re();return this.addTo(t,e),e},n.prototype.subtract=function(t){var e=Re();return this.subTo(t,e),e},n.prototype.multiply=function(t){var e=Re();return this.multiplyTo(t,e),e},n.prototype.divide=function(t){var e=Re();return this.divRemTo(t,e,null),e},n.prototype.remainder=function(t){var e=Re();return this.divRemTo(t,null,e),e},n.prototype.divideAndRemainder=function(t){var e=Re(),r=Re();return this.divRemTo(t,e,r),[e,r]},n.prototype.modPow=function(t,e){var i,o,r=t.bitLength(),s=qi(1);if(r<=0)return s;i=r<18?1:r<48?3:r<144?4:r<768?5:6,o=r<8?new r8(e):e.isEven()?new ax(e):new i8(e);var a=[],l=3,c=i-1,u=(1<<i)-1;if(a[1]=o.convert(this),i>1){var d=Re();for(o.sqrTo(a[1],d);l<=u;)a[l]=Re(),o.mulTo(d,a[l-2],a[l]),l+=2}var p,C,h=t.t-1,g=!0,_=Re();for(r=Mu(t[h])-1;h>=0;){for(r>=c?p=t[h]>>r-c&u:(p=(t[h]&(1<<r+1)-1)<<c-r,h>0&&(p|=t[h-1]>>this.DB+r-c)),l=i;0==(1&p);)p>>=1,--l;if((r-=l)<0&&(r+=this.DB,--h),g)a[p].copyTo(s),g=!1;else{for(;l>1;)o.sqrTo(s,_),o.sqrTo(_,s),l-=2;l>0?o.sqrTo(s,_):(C=s,s=_,_=C),o.mulTo(_,a[p],s)}for(;h>=0&&0==(t[h]&1<<r);)o.sqrTo(s,_),C=s,s=_,_=C,--r<0&&(r=this.DB-1,--h)}return o.revert(s)},n.prototype.modInverse=function(t){var e=t.isEven();if(this.isEven()&&e||0==t.signum())return n.ZERO;for(var r=t.clone(),i=this.clone(),s=qi(1),o=qi(0),a=qi(0),l=qi(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),e?((!s.isEven()||!o.isEven())&&(s.addTo(this,s),o.subTo(t,o)),s.rShiftTo(1,s)):o.isEven()||o.subTo(t,o),o.rShiftTo(1,o);for(;i.isEven();)i.rShiftTo(1,i),e?((!a.isEven()||!l.isEven())&&(a.addTo(this,a),l.subTo(t,l)),a.rShiftTo(1,a)):l.isEven()||l.subTo(t,l),l.rShiftTo(1,l);r.compareTo(i)>=0?(r.subTo(i,r),e&&s.subTo(a,s),o.subTo(l,o)):(i.subTo(r,i),e&&a.subTo(s,a),l.subTo(o,l))}return 0!=i.compareTo(n.ONE)?n.ZERO:l.compareTo(t)>=0?l.subtract(t):l.signum()<0?(l.addTo(t,l),l.signum()<0?l.add(t):l):l},n.prototype.pow=function(t){return this.exp(t,new ox)},n.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(e.compareTo(r)<0){var i=e;e=r,r=i}var s=e.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)return e;for(s<o&&(o=s),o>0&&(e.rShiftTo(o,e),r.rShiftTo(o,r));e.signum()>0;)(s=e.getLowestSetBit())>0&&e.rShiftTo(s,e),(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),e.compareTo(r)>=0?(e.subTo(r,e),e.rShiftTo(1,e)):(r.subTo(e,r),r.rShiftTo(1,r));return o>0&&r.lShiftTo(o,r),r},n.prototype.isProbablePrime=function(t){var e,r=this.abs();if(1==r.t&&r[0]<=In[In.length-1]){for(e=0;e<In.length;++e)if(r[0]==In[e])return!0;return!1}if(r.isEven())return!1;for(e=1;e<In.length;){for(var i=In[e],s=e+1;s<In.length&&i<sx;)i*=In[s++];for(i=r.modInt(i);e<s;)if(i%In[e++]==0)return!1}return r.millerRabin(t)},n.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},n.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},n.prototype.fromString=function(t,e){var r;if(16==e)r=4;else if(8==e)r=3;else if(256==e)r=8;else if(2==e)r=1;else if(32==e)r=5;else{if(4!=e)return void this.fromRadix(t,e);r=2}this.t=0,this.s=0;for(var i=t.length,s=!1,o=0;--i>=0;){var a=8==r?255&+t[i]:o8(t,i);a<0?"-"==t.charAt(i)&&(s=!0):(s=!1,0==o?this[this.t++]=a:o+r>this.DB?(this[this.t-1]|=(a&(1<<this.DB-o)-1)<<o,this[this.t++]=a>>this.DB-o):this[this.t-1]|=a<<o,(o+=r)>=this.DB&&(o-=this.DB))}8==r&&0!=(128&+t[0])&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),s&&n.ZERO.subTo(this,this)},n.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},n.prototype.dlShiftTo=function(t,e){var r;for(r=this.t-1;r>=0;--r)e[r+t]=this[r];for(r=t-1;r>=0;--r)e[r]=0;e.t=this.t+t,e.s=this.s},n.prototype.drShiftTo=function(t,e){for(var r=t;r<this.t;++r)e[r-t]=this[r];e.t=Math.max(this.t-t,0),e.s=this.s},n.prototype.lShiftTo=function(t,e){for(var r=t%this.DB,i=this.DB-r,s=(1<<i)-1,o=Math.floor(t/this.DB),a=this.s<<r&this.DM,l=this.t-1;l>=0;--l)e[l+o+1]=this[l]>>i|a,a=(this[l]&s)<<r;for(l=o-1;l>=0;--l)e[l]=0;e[o]=a,e.t=this.t+o+1,e.s=this.s,e.clamp()},n.prototype.rShiftTo=function(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t)e.t=0;else{var i=t%this.DB,s=this.DB-i,o=(1<<i)-1;e[0]=this[r]>>i;for(var a=r+1;a<this.t;++a)e[a-r-1]|=(this[a]&o)<<s,e[a-r]=this[a]>>i;i>0&&(e[this.t-r-1]|=(this.s&o)<<s),e.t=this.t-r,e.clamp()}},n.prototype.subTo=function(t,e){for(var r=0,i=0,s=Math.min(t.t,this.t);r<s;)i+=this[r]-t[r],e[r++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i-=t.s;r<this.t;)i+=this[r],e[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<t.t;)i-=t[r],e[r++]=i&this.DM,i>>=this.DB;i-=t.s}e.s=i<0?-1:0,i<-1?e[r++]=this.DV+i:i>0&&(e[r++]=i),e.t=r,e.clamp()},n.prototype.multiplyTo=function(t,e){var r=this.abs(),i=t.abs(),s=r.t;for(e.t=s+i.t;--s>=0;)e[s]=0;for(s=0;s<i.t;++s)e[s+r.t]=r.am(0,i[s],e,s,0,r.t);e.s=0,e.clamp(),this.s!=t.s&&n.ZERO.subTo(e,e)},n.prototype.squareTo=function(t){for(var e=this.abs(),r=t.t=2*e.t;--r>=0;)t[r]=0;for(r=0;r<e.t-1;++r){var i=e.am(r,e[r],t,2*r,0,1);(t[r+e.t]+=e.am(r+1,2*e[r],t,2*r+1,i,e.t-r-1))>=e.DV&&(t[r+e.t]-=e.DV,t[r+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(r,e[r],t,2*r,0,1)),t.s=0,t.clamp()},n.prototype.divRemTo=function(t,e,r){var i=t.abs();if(!(i.t<=0)){var s=this.abs();if(s.t<i.t)return null!=e&&e.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=Re());var o=Re(),a=this.s,l=t.s,c=this.DB-Mu(i[i.t-1]);c>0?(i.lShiftTo(c,o),s.lShiftTo(c,r)):(i.copyTo(o),s.copyTo(r));var u=o.t,d=o[u-1];if(0!=d){var h=d*(1<<this.F1)+(u>1?o[u-2]>>this.F2:0),p=this.FV/h,g=(1<<this.F1)/h,_=1<<this.F2,C=r.t,S=C-u,D=null==e?Re():e;for(o.dlShiftTo(S,D),r.compareTo(D)>=0&&(r[r.t++]=1,r.subTo(D,r)),n.ONE.dlShiftTo(u,D),D.subTo(o,o);o.t<u;)o[o.t++]=0;for(;--S>=0;){var R=r[--C]==d?this.DM:Math.floor(r[C]*p+(r[C-1]+_)*g);if((r[C]+=o.am(0,R,r,S,0,u))<R)for(o.dlShiftTo(S,D),r.subTo(D,r);r[C]<--R;)r.subTo(D,r)}null!=e&&(r.drShiftTo(u,e),a!=l&&n.ZERO.subTo(e,e)),r.t=u,r.clamp(),c>0&&r.rShiftTo(c,r),a<0&&n.ZERO.subTo(r,r)}}},n.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},n.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},n.prototype.exp=function(t,e){if(t>4294967295||t<1)return n.ONE;var r=Re(),i=Re(),s=e.convert(this),o=Mu(t)-1;for(s.copyTo(r);--o>=0;)if(e.sqrTo(r,i),(t&1<<o)>0)e.mulTo(i,s,r);else{var a=r;r=i,i=a}return e.revert(r)},n.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},n.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),r=Math.pow(t,e),i=qi(r),s=Re(),o=Re(),a="";for(this.divRemTo(i,s,o);s.signum()>0;)a=(r+o.intValue()).toString(t).substr(1)+a,s.divRemTo(i,s,o);return o.intValue().toString(t)+a},n.prototype.fromRadix=function(t,e){this.fromInt(0),null==e&&(e=10);for(var r=this.chunkSize(e),i=Math.pow(e,r),s=!1,o=0,a=0,l=0;l<t.length;++l){var c=o8(t,l);c<0?"-"==t.charAt(l)&&0==this.signum()&&(s=!0):(a=e*a+c,++o>=r&&(this.dMultiply(i),this.dAddOffset(a,0),o=0,a=0))}o>0&&(this.dMultiply(Math.pow(e,o)),this.dAddOffset(a,0)),s&&n.ZERO.subTo(this,this)},n.prototype.fromNumber=function(t,e,r){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(n.ONE.shiftLeft(t-1),Du,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(n.ONE.shiftLeft(t-1),this);else{var i=[],s=7&t;i.length=1+(t>>3),e.nextBytes(i),s>0?i[0]&=(1<<s)-1:i[0]=0,this.fromString(i,256)}},n.prototype.bitwiseTo=function(t,e,r){var i,s,o=Math.min(t.t,this.t);for(i=0;i<o;++i)r[i]=e(this[i],t[i]);if(t.t<this.t){for(s=t.s&this.DM,i=o;i<this.t;++i)r[i]=e(this[i],s);r.t=this.t}else{for(s=this.s&this.DM,i=o;i<t.t;++i)r[i]=e(s,t[i]);r.t=t.t}r.s=e(this.s,t.s),r.clamp()},n.prototype.changeBit=function(t,e){var r=n.ONE.shiftLeft(t);return this.bitwiseTo(r,e,r),r},n.prototype.addTo=function(t,e){for(var r=0,i=0,s=Math.min(t.t,this.t);r<s;)i+=this[r]+t[r],e[r++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i+=t.s;r<this.t;)i+=this[r],e[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<t.t;)i+=t[r],e[r++]=i&this.DM,i>>=this.DB;i+=t.s}e.s=i<0?-1:0,i>0?e[r++]=i:i<-1&&(e[r++]=this.DV+i),e.t=r,e.clamp()},n.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},n.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},n.prototype.multiplyLowerTo=function(t,e,r){var i=Math.min(this.t+t.t,e);for(r.s=0,r.t=i;i>0;)r[--i]=0;for(var s=r.t-this.t;i<s;++i)r[i+this.t]=this.am(0,t[i],r,i,0,this.t);for(s=Math.min(t.t,e);i<s;++i)this.am(0,t[i],r,i,0,e-i);r.clamp()},n.prototype.multiplyUpperTo=function(t,e,r){--e;var i=r.t=this.t+t.t-e;for(r.s=0;--i>=0;)r[i]=0;for(i=Math.max(e-this.t,0);i<t.t;++i)r[this.t+i-e]=this.am(e-i,t[i],r,0,0,this.t+i-e);r.clamp(),r.drShiftTo(1,r)},n.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,r=this.s<0?t-1:0;if(this.t>0)if(0==e)r=this[0]%t;else for(var i=this.t-1;i>=0;--i)r=(e*r+this[i])%t;return r},n.prototype.millerRabin=function(t){var e=this.subtract(n.ONE),r=e.getLowestSetBit();if(r<=0)return!1;var i=e.shiftRight(r);(t=t+1>>1)>In.length&&(t=In.length);for(var s=Re(),o=0;o<t;++o){s.fromInt(In[Math.floor(Math.random()*In.length)]);var a=s.modPow(i,this);if(0!=a.compareTo(n.ONE)&&0!=a.compareTo(e)){for(var l=1;l++<r&&0!=a.compareTo(e);)if(0==(a=a.modPowInt(2,this)).compareTo(n.ONE))return!1;if(0!=a.compareTo(e))return!1}}return!0},n.prototype.square=function(){var t=Re();return this.squareTo(t),t},n.prototype.gcda=function(t,e){var r=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(r.compareTo(i)<0){var s=r;r=i,i=s}var o=r.getLowestSetBit(),a=i.getLowestSetBit();if(a<0)e(r);else{o<a&&(a=o),a>0&&(r.rShiftTo(a,r),i.rShiftTo(a,i));var l=function(){(o=r.getLowestSetBit())>0&&r.rShiftTo(o,r),(o=i.getLowestSetBit())>0&&i.rShiftTo(o,i),r.compareTo(i)>=0?(r.subTo(i,r),r.rShiftTo(1,r)):(i.subTo(r,i),i.rShiftTo(1,i)),r.signum()>0?setTimeout(l,0):(a>0&&i.lShiftTo(a,i),setTimeout(function(){e(i)},0))};setTimeout(l,10)}},n.prototype.fromNumberAsync=function(t,e,r,i){if("number"==typeof e)if(t<2)this.fromInt(1);else{this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(n.ONE.shiftLeft(t-1),Du,this),this.isEven()&&this.dAddOffset(1,0);var s=this,o=function(){s.dAddOffset(2,0),s.bitLength()>t&&s.subTo(n.ONE.shiftLeft(t-1),s),s.isProbablePrime(e)?setTimeout(function(){i()},0):setTimeout(o,0)};setTimeout(o,0)}else{var a=[],l=7&t;a.length=1+(t>>3),e.nextBytes(a),l>0?a[0]&=(1<<l)-1:a[0]=0,this.fromString(a,256)}},n}(),ox=function(){function n(){}return n.prototype.convert=function(t){return t},n.prototype.revert=function(t){return t},n.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r)},n.prototype.sqrTo=function(t,e){t.squareTo(e)},n}(),r8=function(){function n(t){this.m=t}return n.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},n.prototype.revert=function(t){return t},n.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},n.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},n.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},n}(),i8=function(){function n(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return n.prototype.convert=function(t){var e=Re();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(xe.ZERO)>0&&this.m.subTo(e,e),e},n.prototype.revert=function(t){var e=Re();return t.copyTo(e),this.reduce(e),e},n.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var r=32767&t[e],i=r*this.mpl+((r*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[r=e+this.m.t]+=this.m.am(0,i,t,e,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},n.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},n.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},n}(),ax=function(){function n(t){this.m=t,this.r2=Re(),this.q3=Re(),xe.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return n.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=Re();return t.copyTo(e),this.reduce(e),e},n.prototype.revert=function(t){return t},n.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},n.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},n.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},n}();function Re(){return new xe(null)}function It(n,t){return new xe(n,t)}var s8="undefined"!=typeof navigator;s8&&"Microsoft Internet Explorer"==navigator.appName?(xe.prototype.am=function(t,e,r,i,s,o){for(var a=32767&e,l=e>>15;--o>=0;){var c=32767&this[t],u=this[t++]>>15,d=l*c+u*a;s=((c=a*c+((32767&d)<<15)+r[i]+(1073741823&s))>>>30)+(d>>>15)+l*u+(s>>>30),r[i++]=1073741823&c}return s},Gi=30):s8&&"Netscape"!=navigator.appName?(xe.prototype.am=function(t,e,r,i,s,o){for(;--o>=0;){var a=e*this[t++]+r[i]+s;s=Math.floor(a/67108864),r[i++]=67108863&a}return s},Gi=26):(xe.prototype.am=function(t,e,r,i,s,o){for(var a=16383&e,l=e>>14;--o>=0;){var c=16383&this[t],u=this[t++]>>14,d=l*c+u*a;s=((c=a*c+((16383&d)<<14)+r[i]+s)>>28)+(d>>14)+l*u,r[i++]=268435455&c}return s},Gi=28),xe.prototype.DB=Gi,xe.prototype.DM=(1<<Gi)-1,xe.prototype.DV=1<<Gi,xe.prototype.FV=Math.pow(2,52),xe.prototype.F1=52-Gi,xe.prototype.F2=2*Gi-52;var jo,yr,Su=[];for(jo="0".charCodeAt(0),yr=0;yr<=9;++yr)Su[jo++]=yr;for(jo="a".charCodeAt(0),yr=10;yr<36;++yr)Su[jo++]=yr;for(jo="A".charCodeAt(0),yr=10;yr<36;++yr)Su[jo++]=yr;function o8(n,t){var e=Su[n.charCodeAt(t)];return null==e?-1:e}function qi(n){var t=Re();return t.fromInt(n),t}function Mu(n){var e,t=1;return 0!=(e=n>>>16)&&(n=e,t+=16),0!=(e=n>>8)&&(n=e,t+=8),0!=(e=n>>4)&&(n=e,t+=4),0!=(e=n>>2)&&(n=e,t+=2),0!=(e=n>>1)&&(n=e,t+=1),t}xe.ZERO=qi(0),xe.ONE=qi(1);var Tu,Rr,lx=function(){function n(){this.i=0,this.j=0,this.S=[]}return n.prototype.init=function(t){var e,r,i;for(e=0;e<256;++e)this.S[e]=e;for(r=0,e=0;e<256;++e)i=this.S[e],this.S[e]=this.S[r=r+this.S[e]+t[e%t.length]&255],this.S[r]=i;this.i=0,this.j=0},n.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},n}(),Wi=null;if(null==Wi){Wi=[],Rr=0;var Au=void 0;if("undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues){var wg=new Uint32Array(256);for(window.crypto.getRandomValues(wg),Au=0;Au<wg.length;++Au)Wi[Rr++]=255&wg[Au]}var xu=0,Iu=function(n){if((xu=xu||0)>=256||Rr>=256)window.removeEventListener?window.removeEventListener("mousemove",Iu,!1):window.detachEvent&&window.detachEvent("onmousemove",Iu);else try{Wi[Rr++]=255&n.x+n.y,xu+=1}catch(e){}};"undefined"!=typeof window&&(window.addEventListener?window.addEventListener("mousemove",Iu,!1):window.attachEvent&&window.attachEvent("onmousemove",Iu))}function ux(){if(null==Tu){for(Tu=function cx(){return new lx}();Rr<256;){var n=Math.floor(65536*Math.random());Wi[Rr++]=255&n}for(Tu.init(Wi),Rr=0;Rr<Wi.length;++Rr)Wi[Rr]=0;Rr=0}return Tu.next()}var bg=function(){function n(){}return n.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=ux()},n}(),fx=function(){function n(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return n.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},n.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);for(var e=t.mod(this.p).modPow(this.dmp1,this.p),r=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(r)<0;)e=e.add(this.p);return e.subtract(r).multiply(this.coeff).mod(this.p).multiply(this.q).add(r)},n.prototype.setPublic=function(t,e){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=It(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},n.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3,r=function hx(n,t){if(t<n.length+11)return console.error("Message too long for RSA"),null;for(var e=[],r=n.length-1;r>=0&&t>0;){var i=n.charCodeAt(r--);i<128?e[--t]=i:i>127&&i<2048?(e[--t]=63&i|128,e[--t]=i>>6|192):(e[--t]=63&i|128,e[--t]=i>>6&63|128,e[--t]=i>>12|224)}e[--t]=0;for(var s=new bg,o=[];t>2;){for(o[0]=0;0==o[0];)s.nextBytes(o);e[--t]=o[0]}return e[--t]=2,e[--t]=0,new xe(e)}(t,e);if(null==r)return null;var i=this.doPublic(r);if(null==i)return null;for(var s=i.toString(16),o=s.length,a=0;a<2*e-o;a++)s="0"+s;return s},n.prototype.setPrivate=function(t,e,r){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=It(t,16),this.e=parseInt(e,16),this.d=It(r,16)):console.error("Invalid RSA private key")},n.prototype.setPrivateEx=function(t,e,r,i,s,o,a,l){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=It(t,16),this.e=parseInt(e,16),this.d=It(r,16),this.p=It(i,16),this.q=It(s,16),this.dmp1=It(o,16),this.dmq1=It(a,16),this.coeff=It(l,16)):console.error("Invalid RSA private key")},n.prototype.generate=function(t,e){var r=new bg,i=t>>1;this.e=parseInt(e,16);for(var s=new xe(e,16);;){for(;this.p=new xe(t-i,1,r),0!=this.p.subtract(xe.ONE).gcd(s).compareTo(xe.ONE)||!this.p.isProbablePrime(10););for(;this.q=new xe(i,1,r),0!=this.q.subtract(xe.ONE).gcd(s).compareTo(xe.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var a=this.p.subtract(xe.ONE),l=this.q.subtract(xe.ONE),c=a.multiply(l);if(0==c.gcd(s).compareTo(xe.ONE)){this.n=this.p.multiply(this.q),this.d=s.modInverse(c),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(l),this.coeff=this.q.modInverse(this.p);break}}},n.prototype.decrypt=function(t){var e=It(t,16),r=this.doPrivate(e);return null==r?null:function px(n,t){for(var e=n.toByteArray(),r=0;r<e.length&&0==e[r];)++r;if(e.length-r!=t-1||2!=e[r])return null;for(++r;0!=e[r];)if(++r>=e.length)return null;for(var i="";++r<e.length;){var s=255&e[r];s<128?i+=String.fromCharCode(s):s>191&&s<224?(i+=String.fromCharCode((31&s)<<6|63&e[r+1]),++r):(i+=String.fromCharCode((15&s)<<12|(63&e[r+1])<<6|63&e[r+2]),r+=2)}return i}(r,this.n.bitLength()+7>>3)},n.prototype.generateAsync=function(t,e,r){var i=new bg,s=t>>1;this.e=parseInt(e,16);var o=new xe(e,16),a=this,l=function(){var c=function(){if(a.p.compareTo(a.q)<=0){var h=a.p;a.p=a.q,a.q=h}var p=a.p.subtract(xe.ONE),g=a.q.subtract(xe.ONE),_=p.multiply(g);0==_.gcd(o).compareTo(xe.ONE)?(a.n=a.p.multiply(a.q),a.d=o.modInverse(_),a.dmp1=a.d.mod(p),a.dmq1=a.d.mod(g),a.coeff=a.q.modInverse(a.p),setTimeout(function(){r()},0)):setTimeout(l,0)},u=function(){a.q=Re(),a.q.fromNumberAsync(s,1,i,function(){a.q.subtract(xe.ONE).gcda(o,function(h){0==h.compareTo(xe.ONE)&&a.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(u,0)})})},d=function(){a.p=Re(),a.p.fromNumberAsync(t-s,1,i,function(){a.p.subtract(xe.ONE).gcda(o,function(h){0==h.compareTo(xe.ONE)&&a.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(d,0)})})};setTimeout(d,0)};setTimeout(l,0)},n.prototype.sign=function(t,e,r){var i=function gx(n){return Pu[n]||""}(r),o=function dx(n,t){if(t<n.length+22)return console.error("Message too long for RSA"),null;for(var e=t-n.length-6,r="",i=0;i<e;i+=2)r+="ff";return It("0001"+r+"00"+n,16)}(i+e(t).toString(),this.n.bitLength()/4);if(null==o)return null;var a=this.doPrivate(o);if(null==a)return null;var l=a.toString(16);return 0==(1&l.length)?l:"0"+l},n.prototype.verify=function(t,e,r){var i=It(e,16),s=this.doPublic(i);if(null==s)return null;var a=function mx(n){for(var t in Pu)if(Pu.hasOwnProperty(t)){var e=Pu[t],r=e.length;if(n.substr(0,r)==e)return n.substr(r)}return n}(s.toString(16).replace(/^1f+00/,""));return a==r(t).toString()},n}(),Pu={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"},Lt={};Lt.lang={extend:function(n,t,e){if(!t||!n)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=t.prototype,n.prototype=new r,n.prototype.constructor=n,n.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),e){var i;for(i in e)n.prototype[i]=e[i];var s=function(){},o=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(s=function(a,l){for(i=0;i<o.length;i+=1){var c=o[i],u=l[c];"function"==typeof u&&u!=Object.prototype[c]&&(a[c]=u)}})}catch(a){}s(n.prototype,e)}}};var N={};(void 0===N.asn1||!N.asn1)&&(N.asn1={}),N.asn1.ASN1Util=new function(){this.integerToByteHex=function(n){var t=n.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(n){var t=n.toString(16);if("-"!=t.substr(0,1))t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var r=t.substr(1).length;r%2==1?r+=1:t.match(/^[0-7]/)||(r+=2);for(var i="",s=0;s<r;s++)i+="f";t=new xe(i,16).xor(n).add(xe.ONE).toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(n,t){return hextopem(n,t)},this.newObject=function(n){var e=N.asn1,r=e.DERBoolean,i=e.DERInteger,s=e.DERBitString,o=e.DEROctetString,a=e.DERNull,l=e.DERObjectIdentifier,c=e.DEREnumerated,u=e.DERUTF8String,d=e.DERNumericString,h=e.DERPrintableString,p=e.DERTeletexString,g=e.DERIA5String,_=e.DERUTCTime,C=e.DERGeneralizedTime,S=e.DERSequence,D=e.DERSet,R=e.DERTaggedObject,j=e.ASN1Util.newObject,ne=Object.keys(n);if(1!=ne.length)throw"key of param shall be only one.";var O=ne[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+O+":"))throw"undefined key: "+O;if("bool"==O)return new r(n[O]);if("int"==O)return new i(n[O]);if("bitstr"==O)return new s(n[O]);if("octstr"==O)return new o(n[O]);if("null"==O)return new a(n[O]);if("oid"==O)return new l(n[O]);if("enum"==O)return new c(n[O]);if("utf8str"==O)return new u(n[O]);if("numstr"==O)return new d(n[O]);if("prnstr"==O)return new h(n[O]);if("telstr"==O)return new p(n[O]);if("ia5str"==O)return new g(n[O]);if("utctime"==O)return new _(n[O]);if("gentime"==O)return new C(n[O]);if("seq"==O){for(var Z=n[O],Ie=[],Pe=0;Pe<Z.length;Pe++){var Ge=j(Z[Pe]);Ie.push(Ge)}return new S({array:Ie})}if("set"==O){for(Z=n[O],Ie=[],Pe=0;Pe<Z.length;Pe++)Ge=j(Z[Pe]),Ie.push(Ge);return new D({array:Ie})}if("tag"==O){var Q=n[O];if("[object Array]"===Object.prototype.toString.call(Q)&&3==Q.length){var ie=j(Q[2]);return new R({tag:Q[0],explicit:Q[1],obj:ie})}var X={};if(void 0!==Q.explicit&&(X.explicit=Q.explicit),void 0!==Q.tag&&(X.tag=Q.tag),void 0===Q.obj)throw"obj shall be specified for 'tag'.";return X.obj=j(Q.obj),new R(X)}},this.jsonToASN1HEX=function(n){return this.newObject(n).getEncodedHex()}},N.asn1.ASN1Util.oidHexToInt=function(n){for(var i="",t=parseInt(n.substr(0,2),16),s=(i=Math.floor(t/40)+"."+t%40,""),o=2;o<n.length;o+=2){var l=("00000000"+parseInt(n.substr(o,2),16).toString(2)).slice(-8);s+=l.substr(1,7),"0"==l.substr(0,1)&&(i=i+"."+new xe(s,2).toString(10),s="")}return i},N.asn1.ASN1Util.oidIntToHex=function(n){var t=function(a){var l=a.toString(16);return 1==l.length&&(l="0"+l),l},e=function(a){var l="",u=new xe(a,10).toString(2),d=7-u.length%7;7==d&&(d=0);for(var h="",p=0;p<d;p++)h+="0";for(u=h+u,p=0;p<u.length-1;p+=7){var g=u.substr(p,7);p!=u.length-7&&(g="1"+g),l+=t(parseInt(g,2))}return l};if(!n.match(/^[0-9.]+$/))throw"malformed oid string: "+n;var r="",i=n.split("."),s=40*parseInt(i[0])+parseInt(i[1]);r+=t(s),i.splice(0,2);for(var o=0;o<i.length;o++)r+=e(i[o]);return r},N.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+"".length+",v="+this.hV;var s=this.hV.length/2,o=s.toString(16);if(o.length%2==1&&(o="0"+o),s<128)return o;var a=o.length/2;if(a>15)throw"ASN.1 length too long to represent by 8x: n = "+s.toString(16);return(128+a).toString(16)+o},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},N.asn1.DERAbstractString=function(n){N.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(r){this.hTLV=null,this.isModified=!0,this.s=r,this.hV=stohex(this.s)},this.setStringHex=function(r){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.getFreshValueHex=function(){return this.hV},void 0!==n&&("string"==typeof n?this.setString(n):void 0!==n.str?this.setString(n.str):void 0!==n.hex&&this.setStringHex(n.hex))},Lt.lang.extend(N.asn1.DERAbstractString,N.asn1.ASN1Object),N.asn1.DERAbstractTime=function(n){N.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(r){return utc=r.getTime()+6e4*r.getTimezoneOffset(),new Date(utc)},this.formatDate=function(r,i,s){var o=this.zeroPadding,a=this.localDateToUTC(r),l=String(a.getFullYear());"utc"==i&&(l=l.substr(2,2));var g=l+o(String(a.getMonth()+1),2)+o(String(a.getDate()),2)+o(String(a.getHours()),2)+o(String(a.getMinutes()),2)+o(String(a.getSeconds()),2);if(!0===s){var _=a.getMilliseconds();if(0!=_){var C=o(String(_),3);g=g+"."+(C=C.replace(/[0]+$/,""))}}return g+"Z"},this.zeroPadding=function(r,i){return r.length>=i?r:new Array(i-r.length+1).join("0")+r},this.getString=function(){return this.s},this.setString=function(r){this.hTLV=null,this.isModified=!0,this.s=r,this.hV=stohex(r)},this.setByDateValue=function(r,i,s,o,a,l){var c=new Date(Date.UTC(r,i-1,s,o,a,l,0));this.setByDate(c)},this.getFreshValueHex=function(){return this.hV}},Lt.lang.extend(N.asn1.DERAbstractTime,N.asn1.ASN1Object),N.asn1.DERAbstractStructured=function(n){N.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,void 0!==n&&void 0!==n.array&&(this.asn1Array=n.array)},Lt.lang.extend(N.asn1.DERAbstractStructured,N.asn1.ASN1Object),N.asn1.DERBoolean=function(){N.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Lt.lang.extend(N.asn1.DERBoolean,N.asn1.ASN1Object),N.asn1.DERInteger=function(n){N.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=N.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new xe(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==n&&(void 0!==n.bigint?this.setByBigInteger(n.bigint):void 0!==n.int?this.setByInteger(n.int):"number"==typeof n?this.setByInteger(n):void 0!==n.hex&&this.setValueHex(n.hex))},Lt.lang.extend(N.asn1.DERInteger,N.asn1.ASN1Object),N.asn1.DERBitString=function(n){if(void 0!==n&&void 0!==n.obj){var t=N.asn1.ASN1Util.newObject(n.obj);n.hex="00"+t.getEncodedHex()}N.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,r){if(e<0||7<e)throw"unused bits shall be from 0 to 7: u = "+e;var i="0"+e;this.hTLV=null,this.isModified=!0,this.hV=i+r},this.setByBinaryString=function(e){var r=8-(e=e.replace(/0+$/,"")).length%8;8==r&&(r=0);for(var i=0;i<=r;i++)e+="0";var s="";for(i=0;i<e.length-1;i+=8){var o=e.substr(i,8),a=parseInt(o,2).toString(16);1==a.length&&(a="0"+a),s+=a}this.hTLV=null,this.isModified=!0,this.hV="0"+r+s},this.setByBooleanArray=function(e){for(var r="",i=0;i<e.length;i++)r+=1==e[i]?"1":"0";this.setByBinaryString(r)},this.newFalseArray=function(e){for(var r=new Array(e),i=0;i<e;i++)r[i]=!1;return r},this.getFreshValueHex=function(){return this.hV},void 0!==n&&("string"==typeof n&&n.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(n):void 0!==n.hex?this.setHexValueIncludingUnusedBits(n.hex):void 0!==n.bin?this.setByBinaryString(n.bin):void 0!==n.array&&this.setByBooleanArray(n.array))},Lt.lang.extend(N.asn1.DERBitString,N.asn1.ASN1Object),N.asn1.DEROctetString=function(n){if(void 0!==n&&void 0!==n.obj){var t=N.asn1.ASN1Util.newObject(n.obj);n.hex=t.getEncodedHex()}N.asn1.DEROctetString.superclass.constructor.call(this,n),this.hT="04"},Lt.lang.extend(N.asn1.DEROctetString,N.asn1.DERAbstractString),N.asn1.DERNull=function(){N.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Lt.lang.extend(N.asn1.DERNull,N.asn1.ASN1Object),N.asn1.DERObjectIdentifier=function(n){var t=function(r){var i=r.toString(16);return 1==i.length&&(i="0"+i),i},e=function(r){var i="",o=new xe(r,10).toString(2),a=7-o.length%7;7==a&&(a=0);for(var l="",c=0;c<a;c++)l+="0";for(o=l+o,c=0;c<o.length-1;c+=7){var u=o.substr(c,7);c!=o.length-7&&(u="1"+u),i+=t(parseInt(u,2))}return i};N.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(r){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueOidString=function(r){if(!r.match(/^[0-9.]+$/))throw"malformed oid string: "+r;var i="",s=r.split("."),o=40*parseInt(s[0])+parseInt(s[1]);i+=t(o),s.splice(0,2);for(var a=0;a<s.length;a++)i+=e(s[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(r){var i=N.asn1.x509.OID.name2oid(r);if(""===i)throw"DERObjectIdentifier oidName undefined: "+r;this.setValueOidString(i)},this.getFreshValueHex=function(){return this.hV},void 0!==n&&("string"==typeof n?n.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(n):this.setValueName(n):void 0!==n.oid?this.setValueOidString(n.oid):void 0!==n.hex?this.setValueHex(n.hex):void 0!==n.name&&this.setValueName(n.name))},Lt.lang.extend(N.asn1.DERObjectIdentifier,N.asn1.ASN1Object),N.asn1.DEREnumerated=function(n){N.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=N.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new xe(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==n&&(void 0!==n.int?this.setByInteger(n.int):"number"==typeof n?this.setByInteger(n):void 0!==n.hex&&this.setValueHex(n.hex))},Lt.lang.extend(N.asn1.DEREnumerated,N.asn1.ASN1Object),N.asn1.DERUTF8String=function(n){N.asn1.DERUTF8String.superclass.constructor.call(this,n),this.hT="0c"},Lt.lang.extend(N.asn1.DERUTF8String,N.asn1.DERAbstractString),N.asn1.DERNumericString=function(n){N.asn1.DERNumericString.superclass.constructor.call(this,n),this.hT="12"},Lt.lang.extend(N.asn1.DERNumericString,N.asn1.DERAbstractString),N.asn1.DERPrintableString=function(n){N.asn1.DERPrintableString.superclass.constructor.call(this,n),this.hT="13"},Lt.lang.extend(N.asn1.DERPrintableString,N.asn1.DERAbstractString),N.asn1.DERTeletexString=function(n){N.asn1.DERTeletexString.superclass.constructor.call(this,n),this.hT="14"},Lt.lang.extend(N.asn1.DERTeletexString,N.asn1.DERAbstractString),N.asn1.DERIA5String=function(n){N.asn1.DERIA5String.superclass.constructor.call(this,n),this.hT="16"},Lt.lang.extend(N.asn1.DERIA5String,N.asn1.DERAbstractString),N.asn1.DERUTCTime=function(n){N.asn1.DERUTCTime.superclass.constructor.call(this,n),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==n&&(void 0!==n.str?this.setString(n.str):"string"==typeof n&&n.match(/^[0-9]{12}Z$/)?this.setString(n):void 0!==n.hex?this.setStringHex(n.hex):void 0!==n.date&&this.setByDate(n.date))},Lt.lang.extend(N.asn1.DERUTCTime,N.asn1.DERAbstractTime),N.asn1.DERGeneralizedTime=function(n){N.asn1.DERGeneralizedTime.superclass.constructor.call(this,n),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==n&&(void 0!==n.str?this.setString(n.str):"string"==typeof n&&n.match(/^[0-9]{14}Z$/)?this.setString(n):void 0!==n.hex?this.setStringHex(n.hex):void 0!==n.date&&this.setByDate(n.date),!0===n.millis&&(this.withMillis=!0))},Lt.lang.extend(N.asn1.DERGeneralizedTime,N.asn1.DERAbstractTime),N.asn1.DERSequence=function(n){N.asn1.DERSequence.superclass.constructor.call(this,n),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++)t+=this.asn1Array[e].getEncodedHex();return this.hV=t,this.hV}},Lt.lang.extend(N.asn1.DERSequence,N.asn1.DERAbstractStructured),N.asn1.DERSet=function(n){N.asn1.DERSet.superclass.constructor.call(this,n),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++)t.push(this.asn1Array[e].getEncodedHex());return 1==this.sortFlag&&t.sort(),this.hV=t.join(""),this.hV},void 0!==n&&void 0!==n.sortflag&&0==n.sortflag&&(this.sortFlag=!1)},Lt.lang.extend(N.asn1.DERSet,N.asn1.DERAbstractStructured),N.asn1.DERTaggedObject=function(n){N.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,r){this.hT=e,this.isExplicit=t,this.asn1Object=r,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=r.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},void 0!==n&&(void 0!==n.tag&&(this.hT=n.tag),void 0!==n.explicit&&(this.isExplicit=n.explicit),void 0!==n.obj&&(this.asn1Object=n.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},Lt.lang.extend(N.asn1.DERTaggedObject,N.asn1.ASN1Object);var Cg,n,yx=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),l8=function(n){function t(e){var r=n.call(this)||this;return e&&("string"==typeof e?r.parseKey(e):(t.hasPrivateKeyProperty(e)||t.hasPublicKeyProperty(e))&&r.parsePropertiesFrom(e)),r}return yx(t,n),t.prototype.parseKey=function(e){try{var r=0,i=0,o=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(e)?function(n){var t;if(void 0===$o){var e="0123456789ABCDEF",r=" \f\n\r\t\xa0\u2028\u2029";for($o={},t=0;t<16;++t)$o[e.charAt(t)]=t;for(e=e.toLowerCase(),t=10;t<16;++t)$o[e.charAt(t)]=t;for(t=0;t<r.length;++t)$o[r.charAt(t)]=-1}var i=[],s=0,o=0;for(t=0;t<n.length;++t){var a=n.charAt(t);if("="==a)break;if(-1!=(a=$o[a])){if(void 0===a)throw new Error("Illegal character at offset "+t);s|=a,++o>=2?(i[i.length]=s,s=0,o=0):s<<=4}}if(o)throw new Error("Hex encoding incomplete: 4 bits missing");return i}(e):yg.unarmor(e),a=rx.decode(o);if(3===a.sub.length&&(a=a.sub[2].sub[0]),9===a.sub.length){r=a.sub[1].getHexStringValue(),this.n=It(r,16),i=a.sub[2].getHexStringValue(),this.e=parseInt(i,16);var l=a.sub[3].getHexStringValue();this.d=It(l,16);var c=a.sub[4].getHexStringValue();this.p=It(c,16);var u=a.sub[5].getHexStringValue();this.q=It(u,16);var d=a.sub[6].getHexStringValue();this.dmp1=It(d,16);var h=a.sub[7].getHexStringValue();this.dmq1=It(h,16);var p=a.sub[8].getHexStringValue();this.coeff=It(p,16)}else{if(2!==a.sub.length)return!1;if(a.sub[0].sub){var _=a.sub[1].sub[0];r=_.sub[0].getHexStringValue(),this.n=It(r,16),i=_.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else r=a.sub[0].getHexStringValue(),this.n=It(r,16),i=a.sub[1].getHexStringValue(),this.e=parseInt(i,16)}return!0}catch(C){return!1}},t.prototype.getPrivateBaseKey=function(){var e={array:[new N.asn1.DERInteger({int:0}),new N.asn1.DERInteger({bigint:this.n}),new N.asn1.DERInteger({int:this.e}),new N.asn1.DERInteger({bigint:this.d}),new N.asn1.DERInteger({bigint:this.p}),new N.asn1.DERInteger({bigint:this.q}),new N.asn1.DERInteger({bigint:this.dmp1}),new N.asn1.DERInteger({bigint:this.dmq1}),new N.asn1.DERInteger({bigint:this.coeff})]};return new N.asn1.DERSequence(e).getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return Eu(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var e=new N.asn1.DERSequence({array:[new N.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new N.asn1.DERNull]}),r=new N.asn1.DERSequence({array:[new N.asn1.DERInteger({bigint:this.n}),new N.asn1.DERInteger({int:this.e})]}),i=new N.asn1.DERBitString({hex:"00"+r.getEncodedHex()});return new N.asn1.DERSequence({array:[e,i]}).getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return Eu(this.getPublicBaseKey())},t.wordwrap=function(e,r){return r=r||64,e?e.match(RegExp("(.{1,"+r+"})( +|$\n?)|(.{1,"+r+"})","g")).join("\n"):e},t.prototype.getPrivateKey=function(){var e="-----BEGIN RSA PRIVATE KEY-----\n";return(e+=t.wordwrap(this.getPrivateBaseKeyB64())+"\n")+"-----END RSA PRIVATE KEY-----"},t.prototype.getPublicKey=function(){var e="-----BEGIN PUBLIC KEY-----\n";return(e+=t.wordwrap(this.getPublicBaseKeyB64())+"\n")+"-----END PUBLIC KEY-----"},t.hasPublicKeyProperty=function(e){return(e=e||{}).hasOwnProperty("n")&&e.hasOwnProperty("e")},t.hasPrivateKeyProperty=function(e){return(e=e||{}).hasOwnProperty("n")&&e.hasOwnProperty("e")&&e.hasOwnProperty("d")&&e.hasOwnProperty("p")&&e.hasOwnProperty("q")&&e.hasOwnProperty("dmp1")&&e.hasOwnProperty("dmq1")&&e.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function(e){this.n=e.n,this.e=e.e,e.hasOwnProperty("d")&&(this.d=e.d,this.p=e.p,this.q=e.q,this.dmp1=e.dmp1,this.dmq1=e.dmq1,this.coeff=e.coeff)},t}(fx),vx="undefined"!=typeof process?null===(Cg=process.env)||void 0===Cg?void 0:Cg.npm_package_version:void 0;!function(){function n(t){void 0===t&&(t={}),this.default_key_size=(t=t||{}).default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}n.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new l8(t)},n.prototype.setPrivateKey=function(t){this.setKey(t)},n.prototype.setPublicKey=function(t){this.setKey(t)},n.prototype.decrypt=function(t){try{return this.getKey().decrypt(mg(t))}catch(e){return!1}},n.prototype.encrypt=function(t){try{return Eu(this.getKey().encrypt(t))}catch(e){return!1}},n.prototype.sign=function(t,e,r){try{return Eu(this.getKey().sign(t,e,r))}catch(i){return!1}},n.prototype.verify=function(t,e,r){try{return this.getKey().verify(t,mg(e),r)}catch(i){return!1}},n.prototype.getKey=function(t){if(!this.key){if(this.key=new l8,t&&"[object Function]"==={}.toString.call(t))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},n.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},n.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},n.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},n.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},n.version=vx}();const bx=gn(n=>function(){n(this),this.name="EmptyError",this.message="no elements in sequence"}),c8=new oe("MOTO_APPLE_PAYMENT_SERVICE_TOKEN"),Dx=new oe("MOTO_APPLE_PAY_SESSION_VERSION_TOKEN",{factory:()=>10}),u8=new oe("MOTO_APPLE_PAY_MERCHANT_SERVICE_TOKEN"),Dg=new oe("MOTO_MERCHANT_INFO_SERVICE_TOKEN");let Ex=(()=>{class n{constructor(e,r){this.http=e,this.merchantInfoService=r}validate(e,r){const{validationURL:i}=e,{merchantId:s}=r;try{return this.requestValidateMerchant(s,i)}catch(o){throw console.log("Error when validating"),console.error(o),o}}requestValidateMerchant(e,r){return gg([this.merchantInfoService.getAuthToken(),this.merchantInfoService.getValidationUrl()]).pipe(Fo(([i,s])=>{const o=i?{Authorization:i}:null;console.log("Token: "+i),console.log("Url: "+s),console.log("ValidationUrl: "+r);var a=this.http.post(s,{validationUrl:r},{params:{merchantId:e},headers:o});return console.log("Session: "),console.log(a),a}),Cs(i=>(console.log("Error on validation"),console.log(i),console.error(i),Yn(null))))}}return n.\u0275fac=function(e){return new(e||n)(U(ug),U(Dg))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();const d8=new oe("APPLE_PAY_SESSION_TOKEN",{factory:()=>vc(zt).defaultView.ApplePaySession}),Sx=new oe("APPLE_PAY_SESSION_SUPPORT_TOKEN",{factory:()=>Boolean(vc(d8))}),h8={merchantCapabilities:["supports3DS"],supportedNetworks:["visa","masterCard","amex","discover"]};let f8=(()=>{class n{constructor(e){this.applePaySession=e}canMakePayments(){return ApplePaySession.canMakePayments()}createPaySession(e,r,i){return new jt(s=>{const o=a=>{s.error(a),console.error(a)};try{const a=new this.applePaySession(e,r),l=(c,u)=>{console.log("Abort"),console.log(c),console.log(u),a.abort(),o({event:c,error:u})};a.onvalidatemerchant=c=>ql(this,void 0,void 0,function*(){try{console.log("Validation started");const u=yield function Cx(n,t){const e="object"==typeof t;return new Promise((r,i)=>{let o,s=!1;n.subscribe({next:a=>{o=a,s=!0},error:i,complete:()=>{s?r(o):e?r(t.defaultValue):i(new bx)}})})}(i(c));a.completeMerchantValidation(u),console.log("Validation ended")}catch(u){l(c,u)}}),a.onpaymentmethodselected=c=>{console.log("Selection started");const u={newTotal:Object.assign({},r.total)};a.completePaymentMethodSelection(u),console.log("Selection ended")},a.onshippingmethodselected=c=>{console.log("Shipping method started"),a.completeShippingMethodSelection({}),console.log("Selection method ended")},a.onshippingcontactselected=c=>{console.log("Shipping contact started"),a.completeShippingContactSelection({}),console.log("Shipping contact ended")},a.onpaymentauthorized=c=>{console.log("Payment auth started"),a.completePayment({status:ApplePaySession.STATUS_SUCCESS}),s.next(c),s.complete(),console.log("Payment auth ended")},a.oncancel=c=>{console.log("On cancel"),console.log(c),o(c)},a.begin()}catch(a){o(a)}})}}return n.\u0275fac=function(e){return new(e||n)(U(d8))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})(),p8=(()=>{class n{constructor(e,r,i){this.applePayVersion=e,this.nativeService=r,this.merchantService=i}canMakePayment(){return Yn(this.nativeService.canMakePayments())}pay(e){const{version:r=this.applePayVersion}=e;return this.nativeService.createPaySession(r,this.mapData(e),s=>this.merchantService.validate(s,e))}mapData(e){const{total:r,countryCode:i,supportedNetworks:s=h8.supportedNetworks,merchantCapabilities:o=h8.merchantCapabilities}=e;return{countryCode:i,currencyCode:r.currency,supportedNetworks:s,merchantCapabilities:o,total:{amount:r.amount,label:r.label}}}}return n.\u0275fac=function(e){return new(e||n)(U(Dx),U(f8),U(u8))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();const Tx={canMakePayment:()=>Yn(!1),pay(n){throw new Error("not implemented")}},Ax=[p8,f8,{provide:c8,deps:[Sx,p8],useFactory:(n,t)=>n?t:Tx}];let xx=(()=>{class n{static forRoot(){return{ngModule:n,providers:[...Ax,{provide:u8,useClass:Ex}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[[Lw]]}),n})();class g8{}const bi="*";function Ho(n,t){return{type:7,name:n,definitions:t,options:{}}}function Fr(n,t=null){return{type:4,styles:t,timings:n}}function m8(n,t=null){return{type:2,steps:n,options:t}}function Pt(n){return{type:6,styles:n,offset:null}}function pl(n,t,e){return{type:0,name:n,styles:t,options:e}}function Lr(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function y8(n){Promise.resolve(null).then(n)}class gl{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(){y8(()=>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 v8{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 s=this.players.length;0==s?y8(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==s&&this._onFinish()}),o.onDestroy(()=>{++r==s&&this._onDestroy()}),o.onStart(()=>{++i==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(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=Qt(791);let _8=(()=>{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(Xr),I(Fn))},n.\u0275dir=pe({type:n}),n})(),Es=(()=>{class n extends _8{}return n.\u0275fac=function(){let t;return function(r){return(t||(t=hn(n)))(r||n)}}(),n.\u0275dir=pe({type:n,features:[Be]}),n})();const Jn=new oe("NgValueAccessor"),Ox={provide:Jn,useExisting:Ze(()=>Ou),multi:!0},Rx=new oe("CompositionEventMode");let Ou=(()=>{class n extends _8{constructor(e,r,i){super(e,r),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function kx(){const n=bs()?bs().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(Xr),I(Fn),I(Rx,8))},n.\u0275dir=pe({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&&Le("input",function(s){return r._handleInput(s.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(s){return r._compositionEnd(s.target.value)})},features:[it([Ox]),Be]}),n})();function Ki(n){return null==n||0===n.length}function b8(n){return null!=n&&"number"==typeof n.length}const pn=new oe("NgValidators"),Zi=new oe("NgAsyncValidators"),Fx=/^(?=.{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 Ci{static min(t){return function C8(n){return t=>{if(Ki(t.value)||Ki(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 D8(n){return t=>{if(Ki(t.value)||Ki(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 E8(n){return Ki(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function S8(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function M8(n){return Ki(n.value)||Fx.test(n.value)?null:{email:!0}}(t)}static minLength(t){return T8(t)}static maxLength(t){return A8(t)}static pattern(t){return function x8(n){if(!n)return ku;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(Ki(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 R8(t)}static composeAsync(t){return F8(t)}}function T8(n){return t=>Ki(t.value)||!b8(t.value)?null:t.value.length<n?{minlength:{requiredLength:n,actualLength:t.value.length}}:null}function A8(n){return t=>b8(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}function ku(n){return null}function I8(n){return null!=n}function P8(n){const t=$c(n)?ss(n):n;return Cv(t),t}function N8(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 O8(n,t){return t.map(e=>e(n))}function k8(n){return n.map(t=>function Lx(n){return!n.validate}(t)?t:e=>t.validate(e))}function R8(n){if(!n)return null;const t=n.filter(I8);return 0==t.length?null:function(e){return N8(O8(e,t))}}function Sg(n){return null!=n?R8(k8(n)):null}function F8(n){if(!n)return null;const t=n.filter(I8);return 0==t.length?null:function(e){return function Px(...n){const t=c1(n),{args:e,keys:r}=Uw(n),i=new jt(s=>{const{length:o}=e;if(!o)return void s.complete();const a=new Array(o);let l=o,c=o;for(let u=0;u<o;u++){let d=!1;sr(e[u]).subscribe(ln(s,h=>{d||(d=!0,c--),a[u]=h},()=>l--,void 0,()=>{(!l||!d)&&(c||s.next(r?Gw(r,a):a),s.complete())}))}});return t?i.pipe(zw(t)):i}(O8(e,t).map(P8)).pipe(kt(N8))}}function Mg(n){return null!=n?F8(k8(n)):null}function L8(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function $8(n){return n._rawValidators}function V8(n){return n._rawAsyncValidators}function Tg(n){return n?Array.isArray(n)?n:[n]:[]}function Ru(n,t){return Array.isArray(n)?n.includes(t):n===t}function B8(n,t){const e=Tg(t);return Tg(n).forEach(i=>{Ru(e,i)||e.push(i)}),e}function j8(n,t){return Tg(t).filter(e=>!Ru(n,e))}class H8{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=Sg(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Mg(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 Di extends H8{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Pn extends H8{get formDirective(){return null}get path(){return null}}class U8{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 Fu=(()=>{class n extends U8{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(I(Di,2))},n.\u0275dir=pe({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,r){2&e&&Qr("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:[Be]}),n})(),Ag=(()=>{class n extends U8{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(I(Pn,10))},n.\u0275dir=pe({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,r){2&e&&Qr("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:[Be]}),n})();function $u(n,t){return[...t.path,n]}function ml(n,t){Pg(n,t),t.valueAccessor.writeValue(n.value),function Gx(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&G8(n,t)})}(n,t),function Wx(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 qx(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&G8(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function zx(n,t){if(t.valueAccessor.setDisabledState){const e=r=>{t.valueAccessor.setDisabledState(r)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function Vu(n,t,e=!0){const r=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(r),t.valueAccessor.registerOnTouched(r)),ju(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function Bu(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function Pg(n,t){const e=$8(n);null!==t.validator?n.setValidators(L8(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const r=V8(n);null!==t.asyncValidator?n.setAsyncValidators(L8(r,t.asyncValidator)):"function"==typeof r&&n.setAsyncValidators([r]);const i=()=>n.updateValueAndValidity();Bu(t._rawValidators,i),Bu(t._rawAsyncValidators,i)}function ju(n,t){let e=!1;if(null!==n){if(null!==t.validator){const i=$8(n);if(Array.isArray(i)&&i.length>0){const s=i.filter(o=>o!==t.validator);s.length!==i.length&&(e=!0,n.setValidators(s))}}if(null!==t.asyncValidator){const i=V8(n);if(Array.isArray(i)&&i.length>0){const s=i.filter(o=>o!==t.asyncValidator);s.length!==i.length&&(e=!0,n.setAsyncValidators(s))}}}const r=()=>{};return Bu(t._rawValidators,r),Bu(t._rawAsyncValidators,r),e}function G8(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function Ng(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}function Og(n,t){if(!t)return null;let e,r,i;return Array.isArray(t),t.forEach(s=>{s.constructor===Ou?e=s:function Qx(n){return Object.getPrototypeOf(n.constructor)===Es}(s)?r=s:i=s}),i||r||e||null}function kg(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}const yl="VALID",Hu="INVALID",Uo="PENDING",vl="DISABLED";function Fg(n){return(Uu(n)?n.validators:n)||null}function Z8(n){return Array.isArray(n)?Sg(n):n||null}function Lg(n,t){return(Uu(t)?t.asyncValidators:n)||null}function Q8(n){return Array.isArray(n)?Mg(n):n||null}function Uu(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}const $g=n=>n instanceof Bg,zu=n=>n instanceof Gu,Y8=n=>n instanceof tb;function J8(n){return $g(n)?n.value:n.getRawValue()}function X8(n,t){const e=zu(n),r=n.controls;if(!(e?Object.keys(r):r).length)throw new ee(1e3,"");if(!r[t])throw new ee(1001,"")}function eb(n,t){zu(n),n._forEachChild((r,i)=>{if(void 0===t[i])throw new ee(1002,"")})}class Vg{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=Q8(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===yl}get invalid(){return this.status===Hu}get pending(){return this.status==Uo}get disabled(){return this.status===vl}get enabled(){return this.status!==vl}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=Q8(t)}addValidators(t){this.setValidators(B8(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(B8(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(j8(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(j8(t,this._rawAsyncValidators))}hasValidator(t){return Ru(this._rawValidators,t)}hasAsyncValidator(t){return Ru(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=Uo,!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=vl,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=yl,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===yl||this.status===Uo)&&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()?vl:yl}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Uo,this._hasOwnPendingAsyncValidator=!0;const e=P8(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 Yx(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=zu(r)?r.controls.hasOwnProperty(i)?r.controls[i]:null:Y8(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 He,this.statusChanges=new He}_calculateStatus(){return this._allControlsDisabled()?vl:this.errors?Hu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Uo)?Uo:this._anyControlsHaveStatus(Hu)?Hu:yl}_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){Uu(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Bg extends Vg{constructor(t=null,e,r){super(Fg(e),Lg(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}),Uu(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){kg(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){kg(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 Gu extends Vg{constructor(t,e,r){super(Fg(e),Lg(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={}){eb(this,t),Object.keys(t).forEach(r=>{X8(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]=J8(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,s)=>{r=e(r,i,s)}),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 tb extends Vg{constructor(t,e,r){super(Fg(e),Lg(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={}){eb(this,t),t.forEach((r,i)=>{X8(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=>J8(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 nb=(()=>{class n extends Pn{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return $u(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=hn(n)))(r||n)}}(),n.\u0275dir=pe({type:n,features:[Be]}),n})();const eI={provide:Di,useExisting:Ze(()=>Hg)},ib=(()=>Promise.resolve(null))();let Hg=(()=>{class n extends Di{constructor(e,r,i,s,o){super(),this._changeDetectorRef=o,this.control=new Bg,this._registered=!1,this.update=new He,this._parent=e,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=Og(0,s)}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),Ng(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(){ml(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){ib.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;ib.then(()=>{var s;i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),null===(s=this._changeDetectorRef)||void 0===s||s.markForCheck()})}_getPath(e){return this._parent?$u(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(I(Pn,9),I(pn,10),I(Zi,10),I(Jn,10),I(il,8))},n.\u0275dir=pe({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:[it([eI]),Be,Hr]}),n})(),Ug=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=pe({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})(),ob=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({}),n})();const zg=new oe("NgModelWithFormControlWarning"),oI={provide:Pn,useExisting:Ze(()=>wl)};let wl=(()=>{class n extends Pn{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 He,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&&(ju(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 ml(r,e),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),r}getControl(e){return this.form.get(e.path)}removeControl(e){Vu(e.control||null,e,!1),kg(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 K8(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&&(Vu(r||null,e),$g(i)&&(ml(i,e),e.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const r=this.form.get(e.path);(function q8(n,t){Pg(n,t)})(r,e),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const r=this.form.get(e.path);r&&function Kx(n,t){return ju(n,t)}(r,e)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Pg(this.form,this),this._oldForm&&ju(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(I(pn,10),I(Zi,10))},n.\u0275dir=pe({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,r){1&e&&Le("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[it([oI]),Be,Hr]}),n})();const aI={provide:Pn,useExisting:Ze(()=>qu)};let qu=(()=>{class n extends nb{constructor(e,r,i){super(),this._parent=e,this._setValidators(r),this._setAsyncValidators(i)}_checkParentType(){ub(this._parent)}}return n.\u0275fac=function(e){return new(e||n)(I(Pn,13),I(pn,10),I(Zi,10))},n.\u0275dir=pe({type:n,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[it([aI]),Be]}),n})();const lI={provide:Pn,useExisting:Ze(()=>Gg)};let Gg=(()=>{class n extends Pn{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 $u(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){ub(this._parent)}}return n.\u0275fac=function(e){return new(e||n)(I(Pn,13),I(pn,10),I(Zi,10))},n.\u0275dir=pe({type:n,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[it([lI]),Be]}),n})();function ub(n){return!(n instanceof qu||n instanceof wl||n instanceof Gg)}const cI={provide:Di,useExisting:Ze(()=>Wu)};let Wu=(()=>{class n extends Di{constructor(e,r,i,s,o){super(),this._ngModelWarningConfig=o,this._added=!1,this.update=new He,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=Og(0,s)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),Ng(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 $u(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(Pn,13),I(pn,10),I(Zi,10),I(Jn,10),I(zg,8))},n.\u0275dir=pe({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[it([cI]),Be,Hr]}),n})();function fb(n){return"number"==typeof n?n:parseInt(n,10)}let Ss=(()=>{class n{constructor(){this._validator=ku}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):ku,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=pe({type:n,features:[Hr]}),n})();const CI={provide:pn,useExisting:Ze(()=>Ku),multi:!0};let Ku=(()=>{class n extends Ss{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=e=>fb(e),this.createValidator=e=>T8(e)}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=hn(n)))(r||n)}}(),n.\u0275dir=pe({type:n,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(e,r){2&e&&wn("minlength",r._enabled?r.minlength:null)},inputs:{minlength:"minlength"},features:[it([CI]),Be]}),n})();const DI={provide:pn,useExisting:Ze(()=>bl),multi:!0};let bl=(()=>{class n extends Ss{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>fb(e),this.createValidator=e=>A8(e)}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=hn(n)))(r||n)}}(),n.\u0275dir=pe({type:n,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,r){2&e&&wn("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},features:[it([DI]),Be]}),n})(),wb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[[ob]]}),n})(),bb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[wb]}),n})(),Zg=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:zg,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[wb]}),n})(),Cb=(()=>{class n{group(e,r=null){const i=this._reduceControls(e);let a,s=null,o=null;return null!=r&&(function SI(n){return void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn}(r)?(s=null!=r.validators?r.validators:null,o=null!=r.asyncValidators?r.asyncValidators:null,a=null!=r.updateOn?r.updateOn:void 0):(s=null!=r.validator?r.validator:null,o=null!=r.asyncValidator?r.asyncValidator:null)),new Gu(i,{asyncValidators:o,updateOn:a,validators:s})}control(e,r,i){return new Bg(e,r,i)}array(e,r,i){const s=e.map(o=>this._createControl(o));return new tb(s,r,i)}_reduceControls(e){const r={};return Object.keys(e).forEach(i=>{r[i]=this._createControl(e[i])}),r}_createControl(e){return $g(e)||zu(e)||Y8(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:Zg}),n})();const Zu=new oe("ngx-mask config"),Db=new oe("new ngx-mask config"),Eb=new oe("initial ngx-mask config"),MI={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 He,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")}}},TI=["Hh:m0:s0","Hh:m0","m0:s0"],AI=["percent","Hh","s0","m0","separator","d0/M0/0000","d0/M0","d0","M0"];let Sb=(()=>{class n{constructor(e){this._config=e,this.maskExpression="",this.actualValue="",this.shownMaskExpression="",this._formatWithSeparators=(r,i,s,o)=>{var a,l;let c=[],u="";if(Array.isArray(s)){const _=new RegExp(s.map(C=>"[\\^$.|?*+()".indexOf(C)>=0?`\\${C}`:C).join("|"));c=r.split(_),u=null!==(l=null===(a=r.match(_))||void 0===a?void 0:a[0])&&void 0!==l?l:""}else c=r.split(s),u=s;const d=c.length>1?`${u}${c[1]}`:"";let h=c[0];const p=this.separatorLimit.replace(/\s/g,"");p&&+p&&(h="-"===h[0]?`-${h.slice(1,h.length).slice(0,p.length)}`:h.slice(0,p.length));const g=/(\d+)(\d{3})/;for(;i&&g.test(h);)h=h.replace(g,"$1"+i+"$2");return void 0===o?h+d:0===o?h:h+d.substr(0,o+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,s,o;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===(s=this.suffix)||void 0===s?void 0:s.length);if(r.includes(l)&&(a-1<0||!r.includes(this.suffix.substr(a-1,null===(o=this.suffix)||void 0===o?void 0:o.length))))return r.replace(l,"")}return r},this.checkInputPrecision=(r,i,s)=>{if(i<1/0){if(Array.isArray(s)){const l=s.find(c=>c!==this.thousandSeparator);s=l||s[0]}const o=new RegExp(this._charToRegExpExpression(s)+`\\d{${i}}.*$`),a=r.match(o);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],s,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,s]=r;return this.customPattern=s,this.applyMask(e,i)}applyMask(e,r,i=0,s=!1,o=!1,a=(()=>{})){var l,c;if(!r||"string"!=typeof e)return"";let u=0,d="",h=!1,p=!1,g=1,_=!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 C=e.toString().split("");"IP"===r&&(this.ipError=C.filter(O=>"."===O).length<3&&C.length<7,r="099.099.099.099");const S=[];for(let O=0;O<e.length;O++)(null===(l=e[O])||void 0===l?void 0:l.match("\\d"))&&S.push(e[O]);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 O=this.getPrecision(r);e=this.checkInputPrecision(e,O,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)&&!o?e.slice(1,e.length):e,o&&(e=this._compareOrIncludes(e[e.length-1],this.decimalMarker,this.thousandSeparator)?e.slice(0,e.length-1):e);const O=this._charToRegExpExpression(this.thousandSeparator);let Z='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(O,"");if(Array.isArray(this.decimalMarker))for(const X of this.decimalMarker)Z=Z.replace(this._charToRegExpExpression(X),"");else Z=Z.replace(this._charToRegExpExpression(this.decimalMarker),"");const Ie=new RegExp("["+Z+"]");(e.match(Ie)||1===e.length&&this._compareOrIncludes(e,this.decimalMarker,this.thousandSeparator))&&(e=e.substring(0,e.length-1));const Pe=this.getPrecision(r),Ge=(e=this.checkInputPrecision(e,Pe,this.decimalMarker)).replace(new RegExp(O,"g"),"");d=this._formatWithSeparators(Ge,this.thousandSeparator,this.decimalMarker,Pe);const Q=d.indexOf(",")-e.indexOf(","),ie=d.length-e.length;if(ie>0&&","!==d[i]){p=!0;let X=0;do{this._shift.add(i+X),X++}while(X<ie)}else 0!==Q&&i>0&&!(d.indexOf(",")>=i&&i>3)||!(d.indexOf(".")>=i&&i>3)&&ie<=0?(this._shift.clear(),p=!0,g=ie,this._shift.add(i+=ie)):this._shift.clear()}else for(let O=0,Z=C[0];O<C.length&&u!==r.length;O++,Z=C[O])if(this._checkSymbolMask(Z,r[u])&&"?"===r[u+1])d+=Z,u+=2;else if("*"===r[u+1]&&h&&this._checkSymbolMask(Z,r[u+2]))d+=Z,u+=3,h=!1;else if(this._checkSymbolMask(Z,r[u])&&"*"===r[u+1])d+=Z,h=!0;else if("?"===r[u+1]&&this._checkSymbolMask(Z,r[u+2]))d+=Z,u+=3;else if(this._checkSymbolMask(Z,r[u])){if("H"===r[u]&&Number(Z)>2){u+=1,this._shiftStep(r,u,C.length),O--,this.leadZeroDateTime&&(d+="0");continue}if("h"===r[u]&&"2"===d&&Number(Z)>3){u+=1,O--;continue}if("m"===r[u]&&Number(Z)>5){u+=1,this._shiftStep(r,u,C.length),O--,this.leadZeroDateTime&&(d+="0");continue}if("s"===r[u]&&Number(Z)>5){u+=1,this._shiftStep(r,u,C.length),O--,this.leadZeroDateTime&&(d+="0");continue}const Ie=31;if("d"===r[u]&&(Number(Z)>3&&this.leadZeroDateTime||Number(e.slice(u,u+2))>Ie||"/"===e[u+1])){u+=1,this._shiftStep(r,u,C.length),O--,this.leadZeroDateTime&&(d+="0");continue}if("M"===r[u]){const Ge=0===u&&(Number(Z)>2||Number(e.slice(u,u+2))>12||"/"===e[u+1]),Q=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]),ie=Number(e.slice(u-3,u-1))<=Ie&&!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))>Ie&&!e.slice(u-3,u-1).includes("/")&&!e.slice(u-2,u).includes("/")&&Number(e.slice(u-2,u))>12,Ee=Number(e.slice(u-3,u-1))<=Ie&&!e.slice(u-3,u-1).includes("/")&&"/"!==e[u-1]&&Number(e.slice(u-1,u+1))>12;if(Number(Z)>1&&this.leadZeroDateTime||Ge||Q||ie||X||Ee){u+=1,this._shiftStep(r,u,C.length),O--,this.leadZeroDateTime&&(d+="0");continue}}d+=Z,u++}else" "===Z&&" "===r[u]?(d+=Z,u++):-1!==this.maskSpecialCharacters.indexOf(r[u])?(d+=r[u],u++,this._shiftStep(r,u,C.length),O--):this.maskSpecialCharacters.indexOf(Z)>-1&&this.maskAvailablePatterns[r[u]]&&(null===(c=this.maskAvailablePatterns[r[u]])||void 0===c?void 0:c.optional)?(!!C[u]&&"099.099.099.099"!==r&&"000.000.000-00"!==r&&"00.000.000/0000-00"!==r&&!r.match(/^9+\.0+$/)&&(d+=C[u]),u++,O--):"*"===this.maskExpression[u+1]&&this._findSpecialChar(this.maskExpression[u+2])&&this._findSpecialChar(Z)===this.maskExpression[u+2]&&h||"?"===this.maskExpression[u+1]&&this._findSpecialChar(this.maskExpression[u+2])&&this._findSpecialChar(Z)===this.maskExpression[u+2]&&h?(u+=3,d+=Z):this.showMaskTyped&&this.maskSpecialCharacters.indexOf(Z)<0&&Z!==this.placeHolderCharacter&&(_=!0);d.length+1===r.length&&-1!==this.maskSpecialCharacters.indexOf(r[r.length-1])&&(d+=r[r.length-1]);let D=i+1;for(;this._shift.has(D);)g++,D++;let R=s&&!r.startsWith("separator")?u:this._shift.has(i)?g:0;_&&R--,a(R,p),g<0&&this._shift.clear();let j=!1;o&&(j=C.every(O=>this.maskSpecialCharacters.includes(O)));let ne=`${this.prefix}${j?"":d}${this.suffix}`;return 0===d.length&&(ne=`${this.prefix}${d}`),ne}_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 s=/[*?]/g.test(e.slice(0,r))?i:r;this._shift.add(s+this.prefix.length||0)}_compareOrIncludes(e,r,i){return Array.isArray(r)?r.filter(s=>s!==i).includes(e):e===r}}return n.\u0275fac=function(e){return new(e||n)(U(Zu))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})(),Mb=(()=>{class n extends Sb{constructor(e,r,i,s){super(r),this.document=e,this._config=r,this._elementRef=i,this._renderer=s,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=o=>{}}applyMask(e,r,i=0,s=!1,o=!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,s,o,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,h=this.prefix+this.maskIsShown;if(this.maskExpression.includes("H")){const p=this._numberSkipedSymbols(u);return u+h.slice(d+p)}return"IP"===this.maskExpression||"CPF_CNPJ"===this.maskExpression?u+h:u+h.slice(d)}_numberSkipedSymbols(e){const r=/(^|\D)(\d\D)/g;let i=r.exec(e),s=0;for(;null!=i;)s+=1,i=r.exec(e);return s}applyValueChanges(e,r,i,s=(()=>{})){const o=this._elementRef.nativeElement;o.value=this.applyMask(o.value,this.maskExpression,e,r,i,s),o!==this._getActiveElement()&&this.clearIfNotMatchFn()}hideInput(e,r){return e.split("").map((i,s)=>{var o,a;return this.maskAvailablePatterns&&this.maskAvailablePatterns[r[s]]&&(null===(o=this.maskAvailablePatterns[r[s]])||void 0===o?void 0:o.symbol)?null===(a=this.maskAvailablePatterns[r[s]])||void 0===a?void 0:a.symbol:i}).join("")}getActualValue(e){const r=e.split("").filter((i,s)=>this._checkSymbolMask(i,this.maskExpression[s])||this.maskSpecialCharacters.includes(this.maskExpression[s])&&i===this.maskExpression[s]);return r.join("")===e?r.join(""):e}shiftTypedSymbols(e){let r="";return(e&&e.split("").map((s,o)=>{if(this.maskSpecialCharacters.includes(e[o+1])&&e[o+1]!==this.maskExpression[o+1])return r=s,e[o+1];if(r.length){const a=r;return r="",a}return s})||[]).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 s=0;s<e.length;s++)(null===(r=e[s])||void 0===r?void 0:r.match("\\d"))&&i.push(e[s]);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}`,s=`${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 o=[];for(let a=0;a<e.length;a++)(null===(r=e[a])||void 0===r?void 0:r.match("\\d"))&&o.push(e[a]);return o.length<=3?i.slice(o.length,i.length):o.length>3&&o.length<=6?i.slice(o.length+1,i.length):o.length>6&&o.length<=9?i.slice(o.length+2,i.length):o.length>9&&o.length<11?i.slice(o.length+3,i.length):11===o.length?"":12===o.length?s.slice(17===e.length?16:15,s.length):o.length>12&&o.length<=14?s.slice(o.length+4,s.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(zt),U(Zu),U(Fn),U(Xr))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})(),xI=(()=>{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 He,this._maskValue="",this._position=null,this._maskExpressionArray=[],this._justPasted=!1,this.onChange=s=>{},this.onTouch=()=>{}}ngOnChanges(e){const{maskExpression:r,specialCharacters:i,patterns:s,prefix:o,suffix:a,thousandSeparator:l,decimalMarker:c,dropSpecialCharacters:u,hiddenInput:d,showMaskTyped:h,placeHolderCharacter:p,shownMaskExpression:g,showTemplate:_,clearIfNotMatch:C,validation:S,separatorLimit:D,allowNegativeNumbers:R,leadZeroDateTime:j,triggerOnMaskChange:ne}=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((O,Z)=>O.length-Z.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||[]}s&&s.currentValue&&(this._maskService.maskAvailablePatterns=s.currentValue),o&&(this._maskService.prefix=o.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),h&&(this._maskService.showMaskTyped=h.currentValue),p&&(this._maskService.placeHolderCharacter=p.currentValue),g&&(this._maskService.shownMaskExpression=g.currentValue),_&&(this._maskService.showTemplate=_.currentValue),C&&(this._maskService.clearIfNotMatch=C.currentValue),S&&(this._maskService.validation=S.currentValue),D&&(this._maskService.separatorLimit=D.currentValue),R&&(this._maskService.allowNegativeNumbers=R.currentValue,this._maskService.allowNegativeNumbers&&(this._maskService.maskSpecialCharacters=this._maskService.maskSpecialCharacters.filter(O=>"-"!==O))),j&&(this._maskService.leadZeroDateTime=j.currentValue),ne&&(this._maskService.triggerOnMaskChange=ne.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")||AI.includes(this._maskValue)||this._maskService.clearIfNotMatch)return null;if(TI.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(o=>o===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 s=0,o=!1;if(this._maskService.applyValueChanges(i,this._justPasted,"Backspace"===this._code||"Delete"===this._code,(l,c)=>{this._justPasted=!1,s=l,o=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+s:i+("Backspace"!==this._code||o?s: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 o=r.value&&r.value!==this._maskService.prefix?r.value:this._maskService.prefix+this._maskService.maskIsShown;r.value!==o&&(r.value=o),(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 s=i.selectionStart;8===e.keyCode&&!i.readOnly&&0===s&&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 ql(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,s)=>{if(this._start="{"===i?s:this._start,"}"!==i)return this._maskService._findSpecialChar(i)?r+i:r;this._end=s;const o=Number(e.slice(this._start+1,this._end));return r+new Array(o+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 s=(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&&s)return this._maskValue=e,this.maskExpression=e,this._maskService.maskExpression=e,s;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(zt),I(Mb),I(Zu))},n.\u0275dir=pe({type:n,selectors:[["input","mask",""],["textarea","mask",""]],hostBindings:function(e,r){1&e&&Le("paste",function(){return r.onPaste()})("ngModelChange",function(s){return r.onModelChange(s)})("input",function(s){return r.onInput(s)})("blur",function(){return r.onBlur()})("click",function(s){return r.onClick(s)})("keydown",function(s){return r.onKeyDown(s)})},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:[it([{provide:Jn,useExisting:Ze(()=>n),multi:!0},{provide:pn,useExisting:Ze(()=>n),multi:!0},Mb]),Hr]}),n})();function II(n,t){return Object.assign(Object.assign({},n),t instanceof Function?t():t)}let Qg=(()=>{class n{static forRoot(e){return{ngModule:n,providers:[{provide:Db,useValue:e},{provide:Eb,useValue:MI},{provide:Zu,useFactory:II,deps:[Eb,Db]},Sb]}}static forChild(){return{ngModule:n}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({}),n})();const Tb="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};Tb.KeyboardEvent||(Tb.KeyboardEvent=function(n,t){});const Ab=["toast-component",""];function PI(n,t){if(1&n){const e=kn();W(0,"button",5),Le("click",function(){return dn(e),ue().remove()}),W(1,"span",6),De(2,"\xd7"),K()()}}function NI(n,t){if(1&n&&(dr(0),De(1),hr()),2&n){const e=ue(2);G(1),Rn("[",e.duplicatesCount+1,"]")}}function OI(n,t){if(1&n&&(W(0,"div"),De(1),ae(2,NI,2,1,"ng-container",4),K()),2&n){const e=ue();mi(e.options.titleClass),wn("aria-label",e.title),G(1),Rn(" ",e.title," "),G(1),q("ngIf",e.duplicatesCount)}}function kI(n,t){if(1&n&&ot(0,"div",7),2&n){const e=ue();mi(e.options.messageClass),q("innerHTML",e.message,pf)}}function RI(n,t){if(1&n&&(W(0,"div",8),De(1),K()),2&n){const e=ue();mi(e.options.messageClass),wn("aria-label",e.message),G(1),Rn(" ",e.message," ")}}function FI(n,t){if(1&n&&(W(0,"div"),ot(1,"div",9),K()),2&n){const e=ue();G(1),Mo("width",e.width+"%")}}function LI(n,t){if(1&n){const e=kn();W(0,"button",5),Le("click",function(){return dn(e),ue().remove()}),W(1,"span",6),De(2,"\xd7"),K()()}}function $I(n,t){if(1&n&&(dr(0),De(1),hr()),2&n){const e=ue(2);G(1),Rn("[",e.duplicatesCount+1,"]")}}function VI(n,t){if(1&n&&(W(0,"div"),De(1),ae(2,$I,2,1,"ng-container",4),K()),2&n){const e=ue();mi(e.options.titleClass),wn("aria-label",e.title),G(1),Rn(" ",e.title," "),G(1),q("ngIf",e.duplicatesCount)}}function BI(n,t){if(1&n&&ot(0,"div",7),2&n){const e=ue();mi(e.options.messageClass),q("innerHTML",e.message,pf)}}function jI(n,t){if(1&n&&(W(0,"div",8),De(1),K()),2&n){const e=ue();mi(e.options.messageClass),wn("aria-label",e.message),G(1),Rn(" ",e.message," ")}}function HI(n,t){if(1&n&&(W(0,"div"),ot(1,"div",9),K()),2&n){const e=ue();G(1),Mo("width",e.width+"%")}}class UI{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 Qu{constructor(t,e,r,i,s,o){this.toastId=t,this.config=e,this.message=r,this.title=i,this.toastType=s,this.toastRef=o,this._onTap=new Ht,this._onAction=new Ht,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 xb={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},Ib=new oe("ToastConfig");class GI{constructor(t){this._overlayRef=t,this.duplicatesCount=0,this._afterClosed=new Ht,this._activate=new Ht,this._manualClose=new Ht,this._resetTimeout=new Ht,this._countDuplicate=new Ht}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 qI{constructor(t,e){this._toastPackage=t,this._parentInjector=e}get(t,e,r){return t===Qu?this._toastPackage:this._parentInjector.get(t,e,r)}}class WI extends class zI{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 KI{constructor(t){this._portalHost=t}attach(t,e=!0){return this._portalHost.attach(t,e)}detach(){return this._portalHost.detach()}}let ZI=(()=>{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(zt))},n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),QI=(()=>{class n{constructor(e,r,i,s){this._overlayContainer=e,this._componentFactoryResolver=r,this._appRef=i,this._document=s,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 WI(e,this._componentFactoryResolver,this._appRef)}_createOverlayRef(e){return new KI(this._createPortalHost(e))}}return n.\u0275fac=function(e){return new(e||n)(U(ZI),U(ys),U(rl),U(zt))},n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Yu=(()=>{class n{constructor(e,r,i,s,o){this.overlay=r,this._injector=i,this.sanitizer=s,this.ngZone=o,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={},s=""){return this._preBuildNotification(s,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,s){const{includeTitleDuplicates:o}=this.toastrConfig;for(const a of this.toasts){const l=o&&a.title===e;if((!o||l)&&a.message===r)return a.toastRef.onDuplicate(i,s),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,s){return s.onActivateTick?this.ngZone.run(()=>this._buildNotification(e,r,i,s)):this._buildNotification(e,r,i,s)}_buildNotification(e,r,i,s){if(!s.toastComponent)throw new Error("toastComponent required");const o=this.findDuplicate(i,r,this.toastrConfig.resetTimeoutOnDuplicate&&s.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&i||r)&&this.toastrConfig.preventDuplicates&&null!==o)return o;this.previousToastMessage=r;let a=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(a=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const l=this.overlay.create(s.positionClass,this.overlayContainer);this.index=this.index+1;let c=r;r&&s.enableHtml&&(c=this.sanitizer.sanitize(rt.HTML,r));const u=new GI(l),d=new Qu(this.index,s,c,i,e,u),h=new qI(d,this._injector),p=new UI(s.toastComponent,h),g=l.attach(p,this.toastrConfig.newestOnTop);u.componentInstance=g.instance;const _={toastId:this.index,title:i||"",message:r||"",toastRef:u,onShown:u.afterActivate(),onHidden:u.afterClosed(),onTap:d.onTap(),onAction:d.onAction(),portal:g};return a||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{_.toastRef.activate()})),this.toasts.push(_),_}}return n.\u0275fac=function(e){return new(e||n)(U(Ib),U(QI),U(vt),U(Cw),U(en))},n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),YI=(()=>{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(s=>{this.duplicatesCount=s})}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(Yu),I(Qu),I(en))},n.\u0275cmp=Rt({type:n,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(e,r){1&e&&Le("click",function(){return r.tapToast()})("mouseenter",function(){return r.stickAround()})("mouseleave",function(){return r.delayedHideToast()}),2&e&&(Bc("@flyInOut",r.state),mi(r.toastClasses),Mo("display",r.displayStyle))},attrs:Ab,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&&(ae(0,PI,3,0,"button",0),ae(1,OI,3,5,"div",1),ae(2,kI,1,3,"div",2),ae(3,RI,2,4,"div",3),ae(4,FI,2,2,"div",4)),2&e&&(q("ngIf",r.options.closeButton),G(1),q("ngIf",r.title),G(1),q("ngIf",r.message&&r.options.enableHtml),G(1),q("ngIf",r.message&&!r.options.enableHtml),G(1),q("ngIf",r.options.progressBar))},directives:[mr],encapsulation:2,data:{animation:[Ho("flyInOut",[pl("inactive",Pt({opacity:0})),pl("active",Pt({opacity:1})),pl("removed",Pt({opacity:0})),Lr("inactive => active",Fr("{{ easeTime }}ms {{ easing }}")),Lr("active => removed",Fr("{{ easeTime }}ms {{ easing }}"))])]}}),n})();const JI=Object.assign(Object.assign({},xb),{toastComponent:YI});let XI=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[{provide:Ib,useValue:{default:JI,config:e}}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[[du]]}),n})(),eP=(()=>{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(s=>{this.duplicatesCount=s})}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(Yu),I(Qu),I(rl))},n.\u0275cmp=Rt({type:n,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(e,r){1&e&&Le("click",function(){return r.tapToast()})("mouseenter",function(){return r.stickAround()})("mouseleave",function(){return r.delayedHideToast()}),2&e&&(mi(r.toastClasses),Mo("display",r.displayStyle))},attrs:Ab,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&&(ae(0,LI,3,0,"button",0),ae(1,VI,3,5,"div",1),ae(2,BI,1,3,"div",2),ae(3,jI,2,4,"div",3),ae(4,HI,2,2,"div",4)),2&e&&(q("ngIf",r.options.closeButton),G(1),q("ngIf",r.title),G(1),q("ngIf",r.message&&r.options.enableHtml),G(1),q("ngIf",r.message&&!r.options.enableHtml),G(1),q("ngIf",r.options.progressBar))},directives:[mr],encapsulation:2}),n})();Object.assign(Object.assign({},xb),{toastComponent:eP}),function(n){function t(c){for(var u,d,h=c[0],p=c[1],g=0,_=[];g<h.length;g++)d=h[g],Object.prototype.hasOwnProperty.call(r,d)&&r[d]&&_.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);_.length;)_.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 h in c)i.d(d,h,function(p){return c[p]}.bind(null,h));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 s=window.webpackJsonp=window.webpackJsonp||[],o=s.push.bind(s);s.push=t,s=s.slice();for(var a=0;a<s.length;a++)t(s[a]);var l=o;i(i.s=103)}({103:function(n,t,e){e.r(t),function(r){var i=e(14);function s(g,_,C,S,D,R,j){try{var ne=g[R](j),O=ne.value}catch(Z){return void C(Z)}ne.done?_(O):Promise.resolve(O).then(S,D)}function o(g){return function(){var _=this,C=arguments;return new Promise(function(S,D){var R=g.apply(_,C);function j(O){s(R,S,D,j,ne,"next",O)}function ne(O){s(R,S,D,j,ne,"throw",O)}j(void 0)})}}function a(g,_,C){return _ in g?Object.defineProperty(g,_,{value:C,enumerable:!0,configurable:!0,writable:!0}):g[_]=C,g}function l(g,_){return C=g,(S=u(g,_,"get")).get?S.get.call(C):S.value;var C,S}function u(g,_,C){if(!_.has(g))throw new TypeError("attempted to "+C+" private field on non-instance");return _.get(g)}function d(){var g="https://applepay.cdn-apple.com/jsapi/v1/apple-pay-sdk.js",C=document.createElement("div"),S=g.slice(0,g.lastIndexOf("/"))||"",D=v=>{for(var m in C.setAttribute("data-"+v,""),C.dataset)return delete C.dataset[m],m},R=v=>{C.dataset[v]="";var m=C.attributes[0];return C.removeAttribute(m.name),m.name.slice(5)};function j(v){return S+v.replace(/^\.\//,"/")}function ne(){var v;try{return null===(v=window.ApplePaySession)||void 0===v?void 0:v.canMakePayments()}catch(m){return console.warn(m),!1}}var O=!1;if("undefined"!=typeof window){var Z={get passive(){O=!0}};window.addEventListener("testPassive",null,Z),window.removeEventListener("testPassive",null,Z)}var Ie="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),Pe=[],Ge=!1,Q=-1,ie=void 0,X=void 0,Ee=void 0,we=function(v){return Pe.some(function(m){return!(!m.options.allowTouchMove||!m.options.allowTouchMove(v))})},F=function(v){var m=v||window.event;return!!we(m.target)||m.touches.length>1||(m.preventDefault&&m.preventDefault(),!1)},re=new WeakMap;class te extends HTMLElement{constructor(){super(),re.set(this,{writable:!0,value:void 0}),a(this,"open",!1),a(this,"ready",!1),a(this,"url",ge.url),a(this,"theme",ge.theme),a(this,"locale",ge.locale),this.close=this.close.bind(this)}connectedCallback(){var m=this;return o(function*(){(function c(g,_,C){(function(S,D,R){if(D.set)D.set.call(S,R);else{if(!D.writable)throw new TypeError("attempted to set read only private field");D.value=R}})(g,u(g,_,"set"),C)})(m,re,m.attachShadow({mode:"closed"})),m.update(),l(m,re).addEventListener("click",b=>{b.preventDefault(),b.stopPropagation();var M=b.target.closest('a[href*="'.concat("#apple-pay-close",'"]'));M&&b.currentTarget.contains(M)&&m.close()}),m.addEventListener("click",b=>m.close())})()}show(){(function(v,m){if(v){if(!Pe.some(function(M){return M.targetElement===v})){var b={targetElement:v,options:{}};Pe=[].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)}(Pe),[b]),Ie?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 We=ce-window.innerHeight;We&&V>=ce&&(document.body.style.top=-(V+We))})},300)}}):function(M){if(void 0===Ee)window,document;void 0===ie&&(ie=document.body.style.overflow,document.body.style.overflow="hidden")}(),Ie&&(v.ontouchstart=function(M){1===M.targetTouches.length&&(Q=M.targetTouches[0].clientY)},v.ontouchmove=function(M){var V,H,We,ce;1===M.targetTouches.length&&(H=v,ce=(V=M).targetTouches[0].clientY-Q,!we(V.target)&&(H&&0===H.scrollTop&&ce>0||(We=H)&&We.scrollHeight-We.scrollTop<=We.clientHeight&&ce<0?F(V):V.stopPropagation()))},Ge||(document.addEventListener("touchmove",F,O?{passive:!1}:void 0),Ge=!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(b=>m.onload=b),new Promise((b,M)=>setTimeout(M,10800))]).then(()=>{},()=>(console.error("Modal loading timeout. Check connection or try again later."),this.close())))}close(){var v;(v=this.ownerDocument.body||this.ownerDocument.documentElement)?(Pe=Pe.filter(function(m){return m.targetElement!==v}),Ie&&(v.ontouchstart=null,v.ontouchmove=null,Ge&&0===Pe.length&&(document.removeEventListener("touchmove",F,O?{passive:!1}:void 0),Ge=!1)),Ie?function(){if(void 0!==X){var m=-parseInt(document.body.style.top,10),b=-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(b,m),X=void 0}}():(void 0!==Ee&&(document.body.style.paddingRight=Ee,Ee=void 0),void 0!==ie&&(document.body.style.overflow=ie,ie=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;o(function*(){var b=yield(yield fetch(j("./merchandising-".concat(m.locale.split("-")[1].toLowerCase(),".json")))).json(),M=m.locale.split("-")[0],V=b.accessibility[M],H=/\{\{\s*([^\s]+)\s*\}\}/gi;l(m,re).querySelectorAll("[data-accessibility]").forEach(ce=>{var We=ce.dataset.accessibility;ce.ariaLabel=V[We].replaceAll(H,(Et,Bn,oi)=>Bn),ce.alt=V[We].replaceAll(H,(Et,Bn,oi)=>Bn)})})()}static get observedAttributes(){return Xe}attributeChangedCallback(m,b,M){m=D(m),null==M?delete this[m]:this[m]="true"===M||"false"!==M&&(""===M||M),M!==b&&this.update()}}var ge={theme:"auto",locale:"en-US",url:""},Xe=Object.keys(ge).map(R);Object.assign(te.prototype,ge),customElements.define("apple-pay-merchandising-modal",te);var qe=document.createElement("apple-pay-merchandising-modal");document.contains(qe)||(document.body||document.documentElement).appendChild(qe);var Se,Nt,wt,$e=function(v,m,b){if(!m.has(v))throw new TypeError("attempted to set private field on non-instance");return m.set(v,b),b},Me=function(v,m){if(!m.has(v))throw new TypeError("attempted to get private field on non-instance");return m.get(v)},pt={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}}}},Kt={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>'},Nn=/\{\{\s*([^\s]+)\s*\}\}/gi;"undefined"==typeof WEBVIEW&&(r.WEBVIEW=!1);class $t extends HTMLElement{constructor(){super(),this.locale=nn.locale,this.countryCode=nn.countryCode,this.currencyCode=nn.currencyCode,this.type=nn.type,this.modalType=nn.modalType,this.debug=!1,Se.set(this,void 0),Nt.set(this,void 0),wt.set(this,void 0),$e(this,wt,new Promise(m=>setTimeout(m)).then(()=>$t.getData({countryCode:this.countryCode,amount:this.amount,currencyCode:this.currencyCode,locale:this.locale})).then(m=>{var b=new Event("load");return this.dispatchEvent(b),this.data=m,new Promise(M=>setTimeout(M))},m=>{console.warn("Apple Pay Merchandising: unable to fetch merchandising data",m),this.disable()}).then(()=>{$e(this,Se,this.ownerDocument.createElement("div")),Me(this,Se).className="theme-".concat(this.theme," content"),$e(this,Nt,this.attachShadow({mode:"closed"})),Me(this,Nt).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,Nt).appendChild(Me(this,Se)),Me(this,Nt).addEventListener("click",m=>{var b,M,V=m.target.closest('a[href*="'.concat(this.data.modalUrl,'"]'));V&&m.currentTarget.contains(V)&&(m.preventDefault(),WEBVIEW?null===(M=null===(b=webkit.messageHandlers)||void 0===b?void 0:b.applePayDetails)||void 0===M||M.postMessage("show-modal"):(qe.setAttribute("locale",this.locale),qe.setAttribute("theme",this.theme),qe.setAttribute("url",this.data.modalUrl),qe.show()))})}))}connectedCallback(){var m=this;return o(function*(){yield Me(m,wt),m.ready=!0,m.classList.add("ready"),m.update()})()}disconnectedCallback(){var m=this;return o(function*(){yield Me(m,wt),m.disable()})()}disable(){var m,b;(null===(m=Me(this,Nt))||void 0===m?void 0:m.contains(Me(this,Se)))&&(null===(b=Me(this,Nt))||void 0===b||b.removeChild(Me(this,Se))),this.setAttribute("disabled",""),this.setAttribute("hidden",""),this.disabled=!0}enable(){var m;null===(m=Me(this,Nt))||void 0===m||m.appendChild(Me(this,Se)),this.disabled=!1,this.removeAttribute("disabled"),this.removeAttribute("hidden")}update(){var m=this;return o(function*(){if(m.ready)if(m.debug||(yield $t.isEligible(m))){m.enable();var b=m.data=yield $t.getData(m),M=yield $t.fetchData(m),V=M.presets[m.type||nn.type]||M.presets.custom;"custom"===m.type&&(b.promoText=m.innerHTML);var H=new Intl.NumberFormat(m.locale,{style:"currency",currency:m.currencyCode,minimumFractionDigits:Number.isInteger(b.paymentsAmount)?0:2,currencyDisplay:"narrowSymbol"}),ce=Object.assign(Object.assign(Object.assign({},b),V),{paymentsAmount:H.format(b.paymentsAmount),hideLogo:b.logo?"":"hidden",hideText:b.promoText?"":"hidden",theme:m.theme||nn.theme,modalUrl:b.modalUrl}),We='<div class="paymark align-{{ logoAlign }} type-{{ logoType }} style-{{ logoStyle }}" {{ hideLogo }}>{{ logo }}</div><p class="theme-{{ theme }} text" {{ hideText }}>'.concat(b.promoText,"</p>");Me(m,Se).innerHTML=We.replace(Nn,(Et,Bn)=>ce[Bn])}else m.disable()})()}static get observedAttributes(){return Xi}attributeChangedCallback(m,b,M){m=D(m),null==M?delete this[m]:this[m]="true"===M||"false"!==M&&(""===M||M),b!==M&&this.update()}static fetchData({countryCode:m}){return o(function*(){var b,M=m.toLowerCase();try{b=pt[M]||(pt[M]=yield(yield fetch(j("./merchandising-".concat(M,".json")))).json())}catch(V){throw Error("Apple Pay Merchandising: unable to fetch merchandising data")}return b})()}static getData({countryCode:m,locale:b,amount:M,modalType:V="learn-more",theme:H="light",type:ce="plain"}){return o(function*(){var We,Et=yield $t.fetchData({countryCode:m}),Bn=(Et.text[b]||Et.text[b.slice(0,2)]||Et.text[Object.keys(Et.text)[0]])[ce]||"",oi=null===(We=Object.entries(Et.method).find(([,ns])=>ns.minAmount<=M&&ns.maxAmount>=M))||void 0===We?void 0:We[1],ts=Et.presets[ce||nn.type]||Et.presets.custom,$s=Math.round(M/oi.frequency*100)/100,la=location.hostname||window.frames.top.document.location.hostname;if(b.split("-")[1].toLowerCase()!==m.toLowerCase())throw Error("Apple Pay Merchandising: unsupported locale");return Object.assign({logo:"none"===ts.logoType?"":Kt["apple_".concat(ts.logoType,"_mark_").concat(ts.logoStyle)],promoText:Bn,paymentsAmount:$s,lastPaymentAmount:M-$s*(oi.frequency-1),modalUrl:j("./".concat(V,".html"))+"#data=".concat(btoa(JSON.stringify(Object.assign({amount:M,theme:H,locale:b,referrerUrl:la},oi))))},oi)})()}static isEligible({amount:m,currencyCode:b,countryCode:M}){return o(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:b,countryCode:M}))return!1;var V=yield $t.fetchData({countryCode:M});return b===V.currencyCode&&Object.entries(V.method).some(([,H])=>H.minAmount<=m&&H.maxAmount>=m)})()}}Se=new WeakMap,Nt=new WeakMap,wt=new WeakMap;var nn={merchantToken:null,amount:null,type:"plain",locale:"en-US",modalType:"learn-more",countryCode:"US",currencyCode:"USD",debug:!1,theme:"auto"},Xi=Object.keys(nn).map(R);customElements.define("apple-pay-merchandising",$t),window.ApplePayMerchandising=$t;var ii=["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 Ei(v){return(null==v?void 0:v.includes("-"))&&!!ii.find(m=>m===v)}function bt(v){if(v){var m=v.trim().replace("_","-").split("-"),b=m[0].toLowerCase();return 1===m.length?b:b+"-"+m[1].toUpperCase()}}function sn(v,m=!0){var H,ce,b=null==v?void 0:v.includes("-");if(b){var M=ii.find(H=>H===v);if(M)return M}if(v&&(!b||m)){var V=(ce=null==(H=v)?void 0:H.split("-")[0],ii.find(We=>new RegExp("^".concat(ce),"g").test(We)));if(V)return V}}function Si(v){var m=function Il(v){var m=((void 0===navigator.languages?[navigator.language]:navigator.languages)||[]).map(bt),b=null==v?void 0:v.closest("[lang]"),M=(null==b?void 0:b.lang)?bt(b.lang):void 0;return M&&m.unshift(M),m}(v).reduce((b,M)=>{if(b&&b.includes("-"))return b;if(!b){if(Ei(M))return M;var V=(ce=null==(H=M)?void 0:H.split("-")[0])&&ii.find(We=>We.startsWith(ce))?ce:void 0;if(V)return V}var H,ce;return b&&!b.includes("-")&&M.startsWith(b)&&Ei(M)?M:b},void 0);return((null==m?void 0:m.includes("-"))?m:sn(m))||"en-US"}function Pl(){try{return document.fonts.check("15px -apple-system")}catch(v){return!1}}function gt(v){return!!document.getElementById(Ct(v))}function Jo(v){var m=document.createElement("style");m.id=Ct(v),m.innerHTML="@font-face{"+"font-family:apple-pay-btn-".concat(v,";")+"src:url(".concat(xd("./assets/1.0.0/fonts/".concat(v,".woff2")),') format("woff2"),')+"url(".concat(xd("./assets/1.0.0/fonts/".concat(v,".woff")),') format("woff");')+"font-display:block;}",document.head.appendChild(m)}function Ct(v){return"apple-pay-btn-font-".concat(v)}function xd(v){return S+v.replace(/^\.\//,"/")}var Pm=["add-money","book","buy","check-out","continue","contribute","donate","order","pay","plain","reload","rent","set-up","subscribe","support","tip","top-up"];function Nl(v){return Pm.includes(v)}function Nm(v){switch(v){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 Id(v,m){var b=[...v.l[Nm(m)]],M=b[0].t.startsWith("%@")?0:1;return(b=b.map(V=>Object.assign(Object.assign({},V),{t:V.t.replace(/%@/g,"")}))).splice(M,0,{t:"%@"}),v.rtl&&b.reverse(),b}function Om(v,m){if("plain"===m)return"Apple Pay";var b=Id(v,m);return v.rtl&&b.reverse(),b.reduce((M,V)=>M+("%@"===V.t?"Apple Pay":V.t),"")}function Xo(v,m,b,M,V){var ce,H=m.t.replace(/\s/g,"&#160;");return'<text x="'.concat(v,'" y="').concat(function(ce){switch(ce){case"ja-JP":return 20;case"ko-KR":return 19.6}return 19.5}(M),'" ')+"".concat(b?'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(b?"":'textLength="'.concat(m.w,'"')):"",">")+"".concat(H,"</text>")}function Ol(v,m,b,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(v,'" y="').concat(m,'" height="').concat(b,'" width="').concat(35,'"'));return"black"!==M&&(H=H.replace('fill="#FFF"','fill="#000"')),H}function Pd(v){var m=Id(v.metadata,v.buttonType),b=v.metadata.ls,{width:M,domStr:V}=m.reduce((H,ce,We)=>{var Et;if("%@"===ce.t){We>0&&new RegExp(/\s$/).test(H.prev)&&(H.width=H.width+1);var Bn=0===We||We===m.length-1;return{domStr:H.domStr+Ol(H.width+.2,7.92,15,v.buttonStyle),width:H.width+35+(Bn?.2:.4),prev:ce.t}}return"%@"===H.prev&&(null===(Et=ce.t)||void 0===Et?void 0:Et.startsWith(" "))?H.width=H.width+1:"%@"===H.prev&&(H.width=H.width+.2),{domStr:H.domStr+Xo(H.width,ce,!!v.metadata.rtl,v.locale,b),width:H.width+ce.w,prev:ce.t}},{width:12.5,domStr:"",prev:""});return{width:M+12.5,domStr:V}}function Nd(v,m=!1){return'<svg id="svg-logo" viewBox="0 0 '.concat(35," ").concat(15,'" ').concat(m?'class="hidden"':"",">\n ").concat(Ol(0,3.85,7.3,v,"svg-logo"),"\n </svg>")}function wr(v){if("plain"===v.buttonType)return Nd(v.buttonStyle,!1);var{width:m,domStr:b}=Pd(v),M=Pl();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"===v.buttonStyle?"#FFF":"#000",";\n font-family: ").concat(M?"-apple-system":"apple-pay-btn-".concat(v.locale),";\n font-size: ").concat(v.metadata.s,";\n font-weight: ").concat(v.metadata.w||500,";\n }\n </style>\n </defs>\n <g>\n ").concat(b,"\n </g>\n </svg>\n ").concat(Nd(v.buttonStyle,!0))}var Mi,v,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"}},si=[],kl="ResizeObserver loop completed with undelivered notifications.";(v=Mi||(Mi={})).BORDER_BOX="border-box",v.CONTENT_BOX="content-box",v.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box";var Rl,ea,br=function(v){return Object.freeze(v)},Fl=function(v,m){this.inlineSize=v,this.blockSize=m,br(this)},bn=function(){function v(m,b,M,V){return this.x=m,this.y=b,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,br(this)}return v.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}},v.fromRect=function(m){return new v(m.x,m.y,m.width,m.height)},v}(),ks=function(v){return v instanceof SVGElement&&"getBBox"in v},Rs=function(v){if(ks(v)){var m=v.getBBox();return!m.width&&!m.height}return!(v.offsetWidth||v.offsetHeight||v.getClientRects().length)},Ti=function(v){var m,b;if(v instanceof Element)return!0;var M=null===(b=null===(m=v)||void 0===m?void 0:m.ownerDocument)||void 0===b?void 0:b.defaultView;return!!(M&&v instanceof M.Element)},Dt="undefined"!=typeof window?window:{},Ue=new WeakMap,Ai=/auto|scroll/,Rm=/^tb|vertical/,Fm=/msie|trident/i.test(Dt.navigator&&Dt.navigator.userAgent),Vn=function(v){return parseFloat(v||"0")},es=function(v,m,b){return void 0===v&&(v=0),void 0===m&&(m=0),void 0===b&&(b=!1),new Fl((b?m:v)||0,(b?v:m)||0)},Od=br({devicePixelContentBoxSize:es(),borderBoxSize:es(),contentBoxSize:es(),contentRect:new bn(0,0,0,0)}),kd=function(v,m){if(void 0===m&&(m=!1),Ue.has(v)&&!m)return Ue.get(v);if(Rs(v))return Ue.set(v,Od),Od;var b=getComputedStyle(v),M=ks(v)&&v.ownerSVGElement&&v.getBBox(),V=!Fm&&"border-box"===b.boxSizing,H=Rm.test(b.writingMode||""),ce=!M&&Ai.test(b.overflowY||""),We=!M&&Ai.test(b.overflowX||""),Et=M?0:Vn(b.paddingTop),Bn=M?0:Vn(b.paddingRight),oi=M?0:Vn(b.paddingBottom),ts=M?0:Vn(b.paddingLeft),$s=M?0:Vn(b.borderTopWidth),la=M?0:Vn(b.borderRightWidth),ns=M?0:Vn(b.borderBottomWidth),Vd=ts+Bn,Bd=Et+oi,ca=(M?0:Vn(b.borderLeftWidth))+la,ua=$s+ns,jd=We?v.offsetHeight-ua-v.clientHeight:0,tr=ce?v.offsetWidth-ca-v.clientWidth:0,Hd=V?Vd+ca:0,rs=V?Bd+ua:0,Vs=M?M.width:Vn(b.width)-Hd-tr,Bs=M?M.height:Vn(b.height)-rs-jd,Ul=Vs+Vd+tr+ca,zl=Bs+Bd+jd+ua,Ud=br({devicePixelContentBoxSize:es(Math.round(Vs*devicePixelRatio),Math.round(Bs*devicePixelRatio),H),borderBoxSize:es(Ul,zl,H),contentBoxSize:es(Vs,Bs,H),contentRect:new bn(ts,Et,Vs,Bs)});return Ue.set(v,Ud),Ud},Ll=function(v,m,b){var M=kd(v,b),V=M.borderBoxSize,H=M.contentBoxSize,ce=M.devicePixelContentBoxSize;switch(m){case Mi.DEVICE_PIXEL_CONTENT_BOX:return ce;case Mi.BORDER_BOX:return V;default:return H}},$r=function(v){var m=kd(v);this.target=v,this.contentRect=m.contentRect,this.borderBoxSize=br([m.borderBoxSize]),this.contentBoxSize=br([m.contentBoxSize]),this.devicePixelContentBoxSize=br([m.devicePixelContentBoxSize])},$l=function(v){if(Rs(v))return 1/0;for(var m=0,b=v.parentNode;b;)m+=1,b=b.parentNode;return m},Lm=function(){var v=1/0,m=[];si.forEach(function(V){if(0!==V.activeTargets.length){var H=[];V.activeTargets.forEach(function(ce){var We=new $r(ce.target),Et=$l(ce.target);H.push(We),ce.lastReportedSize=Ll(ce.target,ce.observedBox),Et<v&&(v=Et)}),m.push(function(){V.callback.call(V.observer,H,V.observer)}),V.activeTargets.splice(0,V.activeTargets.length)}});for(var b=0,M=m;b<M.length;b++)(0,M[b])();return v},ta=function(v){si.forEach(function(m){m.activeTargets.splice(0,m.activeTargets.length),m.skippedTargets.splice(0,m.skippedTargets.length),m.observationTargets.forEach(function(b){b.isActive()&&($l(b.target)>v?m.activeTargets.push(b):m.skippedTargets.push(b))})})},Vl=[],na=0,Bl={attributes:!0,characterData:!0,childList:!0,subtree:!0},ra=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],xi=function(v){return void 0===v&&(v=0),Date.now()+v},ia=!1,Fs=new(function(){function v(){var m=this;this.stopped=!0,this.listener=function(){return m.schedule()}}return v.prototype.run=function(m){var b=this;if(void 0===m&&(m=250),!ia){ia=!0;var M,V=xi(m);M=function(){var H=!1;try{H=function(){var v,m=0;for(ta(m);si.some(function(b){return b.activeTargets.length>0});)m=Lm(),ta(m);return si.some(function(b){return b.skippedTargets.length>0})&&("function"==typeof ErrorEvent?v=new ErrorEvent("error",{message:kl}):((v=document.createEvent("Event")).initEvent("error",!1,!1),v.message=kl),window.dispatchEvent(v)),m>0}()}finally{if(ia=!1,m=V-xi(),!na)return;H?b.run(1e3):m>0?b.run(m):b.start()}},function(v){if(!Rl){var m=0,b=document.createTextNode("");new MutationObserver(function(){return Vl.splice(0).forEach(function(M){return M()})}).observe(b,{characterData:!0}),Rl=function(){b.textContent=""+(m?m--:m++)}}Vl.push(function(){requestAnimationFrame(M)}),Rl()}()}},v.prototype.schedule=function(){this.stop(),this.run()},v.prototype.observe=function(){var m=this,b=function(){return m.observer&&m.observer.observe(document.body,Bl)};document.body?b():Dt.addEventListener("DOMContentLoaded",b)},v.prototype.start=function(){var m=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),ra.forEach(function(b){return Dt.addEventListener(b,m.listener,!0)}))},v.prototype.stop=function(){var m=this;this.stopped||(this.observer&&this.observer.disconnect(),ra.forEach(function(b){return Dt.removeEventListener(b,m.listener,!0)}),this.stopped=!0)},v}()),Rd=function(v){!na&&v>0&&Fs.start(),!(na+=v)&&Fs.stop()},Fd=function(){function v(m,b){this.target=m,this.observedBox=b||Mi.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return v.prototype.isActive=function(){var m,b=Ll(this.target,this.observedBox,!0);return ks(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=b),this.lastReportedSize.inlineSize!==b.inlineSize||this.lastReportedSize.blockSize!==b.blockSize},v}(),Bm=function(v,m){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=v,this.callback=m},sa=new WeakMap,jl=function(v,m){for(var b=0;b<v.length;b+=1)if(v[b].target===m)return b;return-1},oa=function(){function v(){}return v.connect=function(m,b){var M=new Bm(m,b);sa.set(m,M)},v.observe=function(m,b,M){var V=sa.get(m),H=0===V.observationTargets.length;jl(V.observationTargets,b)<0&&(H&&si.push(V),V.observationTargets.push(new Fd(b,M&&M.box)),Rd(1),Fs.schedule())},v.unobserve=function(m,b){var M=sa.get(m),V=jl(M.observationTargets,b);V>=0&&(1===M.observationTargets.length&&si.splice(si.indexOf(M),1),M.observationTargets.splice(V,1),Rd(-1))},v.disconnect=function(m){var b=this,M=sa.get(m);M.observationTargets.slice().forEach(function(V){return b.unobserve(m,V.target)}),M.activeTargets.splice(0,M.activeTargets.length)},v}(),Ld=function(){function v(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.");oa.connect(this,m)}return v.prototype.observe=function(m,b){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ti(m))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");oa.observe(this,m,b)},v.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(!Ti(m))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");oa.unobserve(this,m)},v.prototype.disconnect=function(){oa.disconnect(this)},v.toString=function(){return"function ResizeObserver () { [polyfill code] }"},v}();ea=Si(document.documentElement),Pl()||gt(ea)||Jo(ea);var Hl=Pl(),aa=class extends HTMLElement{constructor(){super(),this.__registerHost(),Object(i.b)(this),this.logoOnly=!1,this.fontLoading=!Hl,this.buttonStyle="black",this.type="buy"}checkStyle(v,m){var b=Ii(v,m);b!==v&&this.element.setAttribute("buttonstyle",b)}checkType(v,m){var b=Ls(v,m);b!==v&&this.element.setAttribute("type",b),this.metadata&&(this.minButtonWidth=this.getMinButtonWidth(this.metadata))}verifyLocaleAndSwapMetadata(v){this._locale=this.adjustLocaleAndSetLangIfNecessary(v),Hl||this.loadFontIfNecessary(this._locale),this.metadata=km[this._locale],this.minButtonWidth=this.getMinButtonWidth(this.metadata)}componentWillLoad(){var v=this;return o(function*(){var m=Ii(v.buttonStyle);m!==v.buttonStyle&&v.element.setAttribute("buttonstyle",m);var b=Ls(v.type);b!==v.type&&v.element.setAttribute("type",b),v.verifyLocaleAndSwapMetadata(v.locale)})()}componentDidRender(){this.validateFontSize(this.container.offsetWidth)}componentDidLoad(){new Ld((v,m)=>{for(var b of v){var{width:M}=b.contentRect;if("plain"===this.type)return;this.validateFontSize(M)}}).observe(this.container),this.element.addEventListener("click",v=>v.stopPropagation())}validateFontSize(v){var m,b,M,V;"plain"!==this.type&&(v<this.minButtonWidth?(null===(m=this.container.querySelector("#svg-text"))||void 0===m||m.classList.add("hidden"),null===(b=this.container.querySelector("#svg-logo"))||void 0===b||b.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(v){return":host(apple-pay-button){display:inline-block;width:var(--apple-pay-button-width, auto);"+"min-width:".concat("plain"===v?"100px":"140px",";")+"min-height:30px;"+(ne()?"":"display:none;")+"}"}loadFontIfNecessary(v){try{var m=document.fonts.check("15px apple-pay-btn-".concat(v)),b=gt(v);b||Jo(v),this.fontLoading=!b||!m,this.fontLoading&&document.fonts.ready.then(()=>setTimeout(()=>{this.fontLoading=!1},0))}catch(M){this.fontLoading=!1}}getMinButtonWidth(v){var H,m=Ls(this.type),{width:b,height:M}="plain"===(H=m)?{width:35,height:15}:{width:Pd({metadata:v,buttonType:H}).width,height:18};return 15*b/M}adjustLocaleAndSetLangIfNecessary(v){var m=function(M){if(M){var V=sn(bt(M));if(V)return V}}(v);if(m){m!==v&&this.element.setAttribute("locale",m);var b=m.replace("_","-");this.element.setAttribute("lang",b)}else this.element.removeAttribute("locale"),this.element.removeAttribute("lang"),m=Si(this.element);return m}render(){var v=Ii(this.buttonStyle),m=Ls(this.type);return Object(i.c)(i.a,{"aria-hidden":ne()?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":Om(this.metadata,m),class:"apple-pay-btn ".concat(v)},Object(i.c)("span",{ref:b=>this.container=b,innerHTML:wr({metadata:this.metadata,locale:this._locale,buttonStyle:v,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 Ii(v,m){var b=["black","white-outline","white"],M=v.trim();return b.includes(M)?M:m&&b.includes(m)?m:"black"}function Ls(v,m){var b=v.trim();return Nl(b)?b:m&&Nl(m)?m:"buy"}"undefined"!=typeof customElements&&[Object(i.d)(aa,[1,"apple-pay-button",{buttonStyle:[513,"buttonstyle"],type:[1537],locale:[1025],logoOnly:[32],fontLoading:[32]}])].forEach(v=>{customElements.get(v.is)||customElements.define(v.is,v,void 0)})}var h="https://applepay.cdn-apple.com/jsapi/v1/apple-pay-sdk.js";e.p=new URL(h.slice(0,h.lastIndexOf("/")));var g,_,C,S,p=!0;try{p=globalThis}catch(g){p=!1}window.customElements&&window.fetch&&Symbol("desc").description&&p?d():(g=e.p+"/polyfills.js",_=d,C=document.body,(S=document.createElement("script")).src=g,S.onload=_,S.onreadystatechange=_,C.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,s;function si(f,y,w,E,T,x,P){try{var A=f[x](P),L=A.value}catch($){return void w($)}A.done?y(L):Promise.resolve(L).then(E,T)}function kl(f){return function(){var y=this,w=arguments;return new Promise(function(E,T){var x=f.apply(y,w);function P(L){si(x,E,T,P,A,"next",L)}function A(L){si(x,E,T,P,A,"throw",L)}P(void 0)})}}e.d(t,"a",function(){return ia}),e.d(t,"b",function(){return nR}),e.d(t,"c",function(){return ra}),e.d(t,"d",function(){return tR});var f,ea=!1,br=!1,Fl=!1,bn=!1,Rs=!1,Ti="undefined"!=typeof window?window:{},Dt=Ti.document||{head:{}},Ue={$flags$:0,$resourcesUrl$:"",jmp:f=>f(),raf:f=>requestAnimationFrame(f),ael:(f,y,w,E)=>f.addEventListener(y,w,E),rel:(f,y,w,E)=>f.removeEventListener(y,w,E),ce:(f,y)=>new CustomEvent(f,y)},Rm=(()=>{var f=!1;try{Dt.addEventListener("e",null,Object.defineProperty({},"passive",{get(){f=!0}}))}catch(y){}return f})(),Fm=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(f){}return!1})(),Vn=(f,y,w,E)=>{w&&w.map(([T,x,P])=>{var A=Od(f,T),L=es(y,P),$=kd(T);Ue.ael(A,x,L,$),(y.$rmListeners$=y.$rmListeners$||[]).push(()=>Ue.rel(A,x,L,$))})},es=(f,y)=>w=>{try{f.$hostElement$[y](w)}catch(E){Pi(E)}},Od=(f,y)=>4&y?Dt:8&y?Ti:16&y?Dt.body:f,kd=f=>Rm?{passive:0!=(1&f),capture:0!=(2&f)}:0!=(2&f),Ll="http://www.w3.org/1999/xlink",$l=new WeakMap,Vl=(f,y)=>"sc-"+(y&&32&f.$flags$?f.$tagName$+"-"+y:f.$tagName$),na={},Bl=f=>"object"==(f=typeof f)||"function"===f,ra=(f,y,...w)=>{var E=null,T=null,x=null,P=!1,A=!1,L=[],$=Oe=>{for(var Vt=0;Vt<Oe.length;Vt++)E=Oe[Vt],Array.isArray(E)?$(E):null!=E&&"boolean"!=typeof E&&((P="function"!=typeof f&&!Bl(E))&&(E=String(E)),P&&A?L[L.length-1].$text$+=E:L.push(P?xi(null,E):E),A=P)};if($(w),y&&(y.key&&(T=y.key),y.name&&(x=y.name),1)){var he=y.className||y.class;he&&(y.class="object"!=typeof he?he:Object.keys(he).filter(Oe=>he[Oe]).join(" "))}if("function"==typeof f)return f(null===y?{}:y,L,Rd);var fe=xi(f,null);return fe.$attrs$=y,L.length>0&&(fe.$children$=L),fe.$key$=T,fe.$name$=x,fe},xi=(f,y)=>({$flags$:0,$tag$:f,$text$:y,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),ia={},Rd={forEach:(f,y)=>f.map(Fd).forEach(y),map:(f,y)=>f.map(Fd).map(y).map(Bm)},Fd=f=>({vattrs:f.$attrs$,vchildren:f.$children$,vkey:f.$key$,vname:f.$name$,vtag:f.$tag$,vtext:f.$text$}),Bm=f=>{if("function"==typeof f.vtag){var y=Object.assign({},f.vattrs);return f.vkey&&(y.key=f.vkey),f.vname&&(y.name=f.vname),ra(f.vtag,y,...f.vchildren||[])}var w=xi(f.vtag,f.vtext);return w.$attrs$=f.vattrs,w.$children$=f.vchildren,w.$key$=f.vkey,w.$name$=f.vname,w},jl=(f,y,w,E,T,x)=>{if(w!==E){var P=U3(f,y),A=y.toLowerCase();if("class"===y){var L=f.classList,$=Ld(w),he=Ld(E);L.remove(...$.filter(Zt=>Zt&&!he.includes(Zt))),L.add(...he.filter(Zt=>Zt&&!$.includes(Zt)))}else if("style"===y){for(var fe in w)E&&null!=E[fe]||(fe.includes("-")?f.style.removeProperty(fe):f.style[fe]="");for(var Oe in E)w&&E[Oe]===w[Oe]||(Oe.includes("-")?f.style.setProperty(Oe,E[Oe]):f.style[Oe]=E[Oe])}else if("key"!==y)if("ref"===y)E&&E(f);else if(f.__lookupSetter__(y)||"o"!==y[0]||"n"!==y[1]){var Vt=Bl(E);if((P||Vt&&null!==E)&&!T)try{if(f.tagName.includes("-"))f[y]=E;else{var on=null==E?"":E;"list"===y?P=!1:null!=w&&f[y]==on||(f[y]=on)}}catch(Zt){}var Bt=!1;A!==(A=A.replace(/^xlink\:?/,""))&&(y=A,Bt=!0),null==E||!1===E?!1===E&&""!==f.getAttribute(y)||(Bt?f.removeAttributeNS(Ll,y):f.removeAttribute(y)):(!P||4&x||T)&&!Vt&&(E=!0===E?"":E,Bt?f.setAttributeNS(Ll,y,E):f.setAttribute(y,E))}else y="-"===y[2]?y.slice(3):U3(Ti,A)?A.slice(2):A[2]+y.slice(3),w&&Ue.rel(f,y,w,!1),E&&Ue.ael(f,y,E,!1)}},oa=/\s/,Ld=f=>f?f.split(oa):[],Hl=(f,y,w,E)=>{var T=11===y.$elm$.nodeType&&y.$elm$.host?y.$elm$.host:y.$elm$,x=f&&f.$attrs$||na,P=y.$attrs$||na;for(E in x)E in P||jl(T,E,x[E],void 0,w,y.$flags$);for(E in P)jl(T,E,x[E],P[E],w,y.$flags$)},aa=(f,y,w,E)=>{var T,x,P,A=y.$children$[w],L=0;if(!ea&&(Fl=!0,"slot"===A.$tag$&&(r&&E.classList.add(r+"-s"),A.$flags$|=A.$children$?2:1)),null!==A.$text$)T=A.$elm$=Dt.createTextNode(A.$text$);else if(1&A.$flags$)T=A.$elm$=Dt.createTextNode("");else{if(!bn&&(bn="svg"===A.$tag$),T=A.$elm$=Dt.createElementNS(bn?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&A.$flags$?"slot-fb":A.$tag$),bn&&"foreignObject"===A.$tag$&&(bn=!1),Hl(null,A,bn),null!=r&&T["s-si"]!==r&&T.classList.add(T["s-si"]=r),A.$children$)for(L=0;L<A.$children$.length;++L)(x=aa(f,A,L,T))&&T.appendChild(x);"svg"===A.$tag$?bn=!1:"foreignObject"===T.tagName&&(bn=!0)}return T["s-hn"]=s,3&A.$flags$&&(T["s-sr"]=!0,T["s-cr"]=i,T["s-sn"]=A.$name$||"",(P=f&&f.$children$&&f.$children$[w])&&P.$tag$===A.$tag$&&f.$elm$&&Ii(f.$elm$,!1)),T},Ii=(f,y)=>{Ue.$flags$|=1;for(var w=f.childNodes,E=w.length-1;E>=0;E--){var T=w[E];T["s-hn"]!==s&&T["s-ol"]&&(b(T).insertBefore(T,m(T)),T["s-ol"].remove(),T["s-ol"]=void 0,Fl=!0),y&&Ii(T,y)}Ue.$flags$&=-2},Ls=(f,y,w,E,T,x)=>{var P,A=f["s-cr"]&&f["s-cr"].parentNode||f;for(A.shadowRoot&&A.tagName===s&&(A=A.shadowRoot);T<=x;++T)E[T]&&(P=aa(null,w,T,f))&&(E[T].$elm$=P,A.insertBefore(P,m(y)))},$d=(f,y,w,E,T)=>{for(;y<=w;++y)(E=f[y])&&(T=E.$elm$,Et(E),br=!0,T["s-ol"]?T["s-ol"].remove():Ii(T,!0),T.remove())},v=(f,y)=>f.$tag$===y.$tag$&&("slot"===f.$tag$?f.$name$===y.$name$:f.$key$===y.$key$),m=f=>f&&f["s-ol"]||f,b=f=>(f["s-ol"]?f["s-ol"]:f).parentNode,M=(f,y)=>{var w,E=y.$elm$=f.$elm$,T=f.$children$,x=y.$children$,P=y.$tag$,A=y.$text$;null!==A?(w=E["s-cr"])?w.parentNode.textContent=A:f.$text$!==A&&(E.data=A):(bn="svg"===P||"foreignObject"!==P&&bn,"slot"===P||Hl(f,y,bn),null!==T&&null!==x?((L,$,he,fe)=>{for(var Oe,Vt,on=0,Bt=0,Zt=0,ai=0,On=$.length-1,St=$[0],Vr=$[On],Ni=fe.length-1,nr=fe[0],li=fe[Ni];on<=On&&Bt<=Ni;)if(null==St)St=$[++on];else if(null==Vr)Vr=$[--On];else if(null==nr)nr=fe[++Bt];else if(null==li)li=fe[--Ni];else if(v(St,nr))M(St,nr),St=$[++on],nr=fe[++Bt];else if(v(Vr,li))M(Vr,li),Vr=$[--On],li=fe[--Ni];else if(v(St,li))"slot"!==St.$tag$&&"slot"!==li.$tag$||Ii(St.$elm$.parentNode,!1),M(St,li),L.insertBefore(St.$elm$,Vr.$elm$.nextSibling),St=$[++on],li=fe[--Ni];else if(v(Vr,nr))"slot"!==St.$tag$&&"slot"!==li.$tag$||Ii(Vr.$elm$.parentNode,!1),M(Vr,nr),L.insertBefore(Vr.$elm$,St.$elm$),Vr=$[--On],nr=fe[++Bt];else{for(Zt=-1,ai=on;ai<=On;++ai)if($[ai]&&null!==$[ai].$key$&&$[ai].$key$===nr.$key$){Zt=ai;break}Zt>=0?((Vt=$[Zt]).$tag$!==nr.$tag$?Oe=aa($&&$[Bt],he,Zt,L):(M(Vt,nr),$[Zt]=void 0,Oe=Vt.$elm$),nr=fe[++Bt]):(Oe=aa($&&$[Bt],he,Bt,L),nr=fe[++Bt]),Oe&&b(St.$elm$).insertBefore(Oe,m(St.$elm$))}on>On?Ls(L,null==fe[Ni+1]?null:fe[Ni+1].$elm$,he,fe,Bt,Ni):Bt>Ni&&$d($,on,On)})(E,T,y,x):null!==x?(null!==f.$text$&&(E.textContent=""),Ls(E,null,y,x,0,x.length-1)):null!==T&&$d(T,0,T.length-1),bn&&"svg"===P&&(bn=!1))},V=f=>{var y,w,E,T,x,P,A=f.childNodes;for(w=0,E=A.length;w<E;w++)if(1===(y=A[w]).nodeType){if(y["s-sr"])for(x=y["s-sn"],y.hidden=!1,T=0;T<E;T++)if(P=A[T].nodeType,A[T]["s-hn"]!==y["s-hn"]||""!==x){if(1===P&&x===A[T].getAttribute("slot")){y.hidden=!0;break}}else if(1===P||3===P&&""!==A[T].textContent.trim()){y.hidden=!0;break}V(y)}},H=[],ce=f=>{for(var y,w,E,T,x,P,A=0,L=f.childNodes,$=L.length;A<$;A++){if((y=L[A])["s-sr"]&&(w=y["s-cr"])&&w.parentNode)for(T=y["s-sn"],P=(E=w.parentNode.childNodes).length-1;P>=0;P--)(w=E[P])["s-cn"]||w["s-nr"]||w["s-hn"]===y["s-hn"]||(We(w,T)?(x=H.find(he=>he.$nodeToRelocate$===w),br=!0,w["s-sn"]=w["s-sn"]||T,x?x.$slotRefNode$=y:H.push({$slotRefNode$:y,$nodeToRelocate$:w}),w["s-sr"]&&H.map(he=>{We(he.$nodeToRelocate$,w["s-sn"])&&(x=H.find(fe=>fe.$nodeToRelocate$===w))&&!he.$slotRefNode$&&(he.$slotRefNode$=x.$slotRefNode$)})):H.some(he=>he.$nodeToRelocate$===w)||H.push({$nodeToRelocate$:w}));1===y.nodeType&&ce(y)}},We=(f,y)=>1===f.nodeType?null===f.getAttribute("slot")&&""===y||f.getAttribute("slot")===y:f["s-sn"]===y||""===y,Et=f=>{f.$attrs$&&f.$attrs$.ref&&f.$attrs$.ref(null),f.$children$&&f.$children$.map(Et)},Bn=(f,y)=>{var w=f.$hostElement$,E=f.$cmpMeta$,T=f.$vnode$||xi(null,null),x=(f=>f&&f.$tag$===ia)(y)?y:ra(null,null,y);if(s=w.tagName,E.$attrsToReflect$&&(x.$attrs$=x.$attrs$||{},E.$attrsToReflect$.map(([Vt,on])=>x.$attrs$[on]=w[Vt])),x.$tag$=null,x.$flags$|=4,f.$vnode$=x,x.$elm$=T.$elm$=w.shadowRoot||w,r=w["s-sc"],i=w["s-cr"],ea=0!=(1&E.$flags$),br=!1,M(T,x),Ue.$flags$|=1,Fl){var P,A,L,$,he,fe;ce(x.$elm$);for(var Oe=0;Oe<H.length;Oe++)(A=(P=H[Oe]).$nodeToRelocate$)["s-ol"]||((L=Dt.createTextNode(""))["s-nr"]=A,A.parentNode.insertBefore(A["s-ol"]=L,A));for(Oe=0;Oe<H.length;Oe++)if(A=(P=H[Oe]).$nodeToRelocate$,P.$slotRefNode$){for($=P.$slotRefNode$.parentNode,he=P.$slotRefNode$.nextSibling,L=A["s-ol"];L=L.previousSibling;)if((fe=L["s-nr"])&&fe["s-sn"]===A["s-sn"]&&$===fe.parentNode&&(!(fe=fe.nextSibling)||!fe["s-nr"])){he=fe;break}(!he&&$!==A.parentNode||A.nextSibling!==he)&&A!==he&&(!A["s-hn"]&&A["s-ol"]&&(A["s-hn"]=A["s-ol"].parentNode.nodeName),$.insertBefore(A,he))}else 1===A.nodeType&&(A.hidden=!0)}br&&V(x.$elm$),Ue.$flags$&=-2,H.length=0},ns=(f,y)=>{f.$flags$|=16;return aR(()=>Vd(f,y))},Vd=(f,y)=>{var w,E=f.$hostElement$,x=E;return y?(rs(E,"componentWillLoad"),w=tr(x,"componentWillLoad")):(rs(E,"componentWillUpdate"),w=tr(x,"componentWillUpdate")),rs(E,"componentWillRender"),w=Hd(w,()=>tr(x,"componentWillRender")),Hd(w,()=>Bd(f,x,y))},Bd=(f=kl(function*(y,w,E){var T=y.$hostElement$;E&&(f=>{var y=f.$cmpMeta$,w=f.$hostElement$,E=y.$flags$,x=((f,y,w,E)=>{var T=Vl(y,w),x=qd.get(T);if(f=11===f.nodeType?f:Dt,x)if("string"==typeof x){var P,A=$l.get(f=f.head||f);A||$l.set(f,A=new Set),A.has(T)||((P=Dt.createElement("style")).innerHTML=x,f.insertBefore(P,f.querySelector("link")),A&&A.add(T))}else!f.adoptedStyleSheets.includes(x)&&(f.adoptedStyleSheets=[...f.adoptedStyleSheets,x]);return T})(w.shadowRoot?w.shadowRoot:w.getRootNode(),y,f.$modeName$);10&E&&(w["s-sc"]=x,w.classList.add(x+"-h"),2&E&&w.classList.add(x+"-s"))})(y);ca(y,w,T),ua(y)}),function(y,w,E){return f.apply(this,arguments)}),ca=(f,y,w)=>{try{y=y.render&&y.render(),f.$flags$&=-17,f.$flags$|=2,Bn(f,y)}catch(A){Pi(A,f.$hostElement$)}return null},ua=f=>{var w=f.$hostElement$,T=w;tr(T,"componentDidRender"),rs(w,"componentDidRender"),64&f.$flags$?(tr(T,"componentDidUpdate"),rs(w,"componentDidUpdate")):(f.$flags$|=64,tr(T,"componentDidLoad"),rs(w,"componentDidLoad"))},tr=(f,y,w)=>{if(f&&f[y])try{return f[y](w)}catch(E){Pi(E)}},Hd=(f,y)=>f&&f.then?f.then(y):y(),rs=(f,y)=>{},V3=(f,y,w)=>{if(y.$members$){f.watchers&&(y.$watchers$=f.watchers);var E=Object.entries(y.$members$),T=f.prototype;E.map(([P,[A]])=>{(31&A||32&A)&&Object.defineProperty(T,P,{get(){return L=P,da(this).$instanceValues$.get(L);var L},set(L){((f,y,w,E)=>{var T,x,P=da(f),A=f,L=P.$instanceValues$.get(y),$=P.$flags$,he=A;if(x=E.$members$[y][0],(w=null==(T=w)||Bl(T)?T:4&x?"false"!==T&&(""===T||!!T):2&x?parseFloat(T):1&x?String(T):T)!==L&&(P.$instanceValues$.set(y,w),1)){if(E.$watchers$&&128&$){var fe=E.$watchers$[y];fe&&fe.map(Oe=>{try{he[Oe](w,L,y)}catch(Vt){Pi(Vt,A)}})}if(2==(18&$)){if(he.componentShouldUpdate&&!1===he.componentShouldUpdate(w,L,y))return;ns(P,!1)}}})(this,P,L,y)},configurable:!0,enumerable:!0})});var x=new Map;T.attributeChangedCallback=function(P,A,L){Ue.jmp(()=>{var $=x.get(P);this[$]=(null!==L||"boolean"!=typeof this[$])&&L})},f.observedAttributes=E.filter(([P,A])=>15&A[0]).map(([P,A])=>{var L=A[1]||P;return x.set(L,P),512&A[0]&&y.$attrsToReflect$.push([P,L]),L})}return f},B3=function(){var f=kl(function*(y,w,E,T,x){if(0==(32&w.$flags$)&&(x=y.constructor,w.$flags$|=160,x.style)){var L=x.style;"string"!=typeof L&&(L=L[w.$modeName$=(f=>sR.map(y=>y(f)).find(y=>!!y))(y)]);var $=Vl(E,w.$modeName$);if(!qd.has($)){((f,y,w)=>{var E=qd.get(f);Fm&&w?(E=E||new CSSStyleSheet).replace(y):E=y,qd.set(f,E)})($,L,!!(1&E.$flags$))}}ns(w,!0)});return function(y,w,E,T,x){return f.apply(this,arguments)}}(),tR=(f,y)=>{var w={$flags$:y[0],$tagName$:y[1]};w.$members$=y[2],w.$listeners$=y[3],w.$watchers$=f.$watchers$,w.$attrsToReflect$=[];var E=f.prototype.connectedCallback,T=f.prototype.disconnectedCallback;return Object.assign(f.prototype,{__registerHost(){rR(this,w)},connectedCallback(){(f=>{if(0==(1&Ue.$flags$)){var y=da(f),w=y.$cmpMeta$;1&y.$flags$?Vn(f,y,w.$listeners$):(y.$flags$|=1,12&w.$flags$&&(f=>{var y=f["s-cr"]=Dt.createComment("");y["s-cn"]=!0,f.insertBefore(y,f.firstChild)})(f),B3(f,y,w))}})(this),E&&E.call(this)},disconnectedCallback(){(f=>{if(0==(1&Ue.$flags$)){var y=da(this);y.$rmListeners$&&(y.$rmListeners$.map(E=>E()),y.$rmListeners$=void 0)}})(),T&&T.call(this)}}),f.is=w.$tagName$,V3(f,w)},nR=f=>{f.attachShadow({mode:"open"})},H3=new WeakMap,da=f=>H3.get(f),rR=(f,y)=>{var w={$flags$:0,$hostElement$:f,$cmpMeta$:y,$instanceValues$:new Map};return Vn(f,w,y.$listeners$),H3.set(f,w)},U3=(f,y)=>y in f,Pi=(f,y)=>(0,console.error)(f,y),qd=new Map,sR=[],jm=[],js=[],q3=f=>{for(var y=0;y<f.length;y++)try{f[y](performance.now())}catch(w){Pi(w)}f.length=0},Wd=()=>{q3(jm),q3(js),(Rs=jm.length>0)&&Ue.raf(Wd)},aR=((f,y)=>w=>{f.push(w),Rs||(Rs=!0,4&Ue.$flags$?(f=>{Promise.resolve(void 0).then(f)})(Wd):Ue.raf(Wd))})(js)},195:function(n,t,e){e.r(t),e.d(t,"scopeCss",function(){return Ge});var r=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",i=new RegExp("(-shadowcsshost"+r,"gim"),s=new RegExp("(-shadowcsscontext"+r,"gim"),o=new RegExp("(-shadowcssslotted"+r,"gim"),a=/-shadowcsshost-no-combinator([^\s]*)/,l=[/::shadow/g,/::content/g],c=/-shadowcsshost/gim,u=/:host/gim,d=/::slotted/gim,h=/:host-context/gim,p=/\/\*\s*[\s\S]*?\*\//g,g=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,_=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,C=/([{}])/g,S=(Q,ie)=>{var X=D(Q),Ee=0;return X.escapedString.replace(_,(...we)=>{var F=we[2],B="",z=we[4],re="";z&&z.startsWith("{%BLOCK%")&&(B=X.blocks[Ee++],z=z.substring(8),re="{");var te=ie({selector:F,content:B});return"".concat(we[1]).concat(te.selector).concat(we[3]).concat(re).concat(te.content).concat(z)})},D=Q=>{for(var ie=Q.split(C),X=[],Ee=[],we=0,F=[],B=0;B<ie.length;B++){var z=ie[B];"}"===z&&we--,we>0?F.push(z):(F.length>0&&(Ee.push(F.join("")),X.push("%BLOCK%"),F=[]),X.push(z)),"{"===z&&we++}return F.length>0&&(Ee.push(F.join("")),X.push("%BLOCK%")),{escapedString:X.join(""),blocks:Ee}},R=(Q,ie,X)=>Q.replace(ie,(...Ee)=>{if(Ee[2]){for(var we=Ee[2].split(","),F=[],B=0;B<we.length;B++){var z=we[B].trim();if(!z)break;F.push(X("-shadowcsshost-no-combinator",z,Ee[3]))}return F.join(",")}return"-shadowcsshost-no-combinator"+Ee[3]}),j=(Q,ie,X)=>Q+ie.replace("-shadowcsshost","")+X,ne=(Q,ie,X)=>ie.indexOf("-shadowcsshost")>-1?j(Q,ie,X):Q+ie+X+", "+ie+" "+Q+X,Ie=(Q,ie,X,Ee,we)=>S(Q,F=>{var te,ge,Xe,B=F.selector,z=F.content;return"@"!==F.selector[0]?(te=ie,ge=X,Xe=Ee,B=F.selector.split(",").map(qe=>Xe&&qe.indexOf("."+Xe)>-1?qe.trim():((Q,ie)=>{return!(X=ie,X=X.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+X+")([>\\s~+[.,{:][\\s\\S]*)?$","m")).test(Q);var X})(qe,te)?((Q,ie,X)=>{for(var Ee,we="."+(ie=ie.replace(/\[is=([^\]]*)\]/g,($e,...Me)=>Me[0])),F=$e=>{var Me=$e.trim();if(!Me)return"";if($e.indexOf("-shadowcsshost-no-combinator")>-1)Me=((Nn,$t,nn)=>{if(c.lastIndex=0,c.test(Nn)){var Xi=".".concat(nn);return Nn.replace(a,(ii,Ei)=>Ei.replace(/([^:]*)(:*)(.*)/,(bt,Il,sn,Si)=>Il+Xi+sn+Si)).replace(c,Xi+" ")}return $t+" "+Nn})($e,ie,X);else{var pt=$e.replace(c,"");if(pt.length>0){var Kt=pt.match(/([^:]*)(:*)(.*)/);Kt&&(Me=Kt[1]+we+Kt[2]+Kt[3])}}return Me},B=($e=>{var Me=[],pt=0;return{content:($e=$e.replace(/(\[[^\]]*\])/g,(Kt,Nn)=>{var $t="__ph-".concat(pt,"__");return Me.push(Nn),pt++,$t})).replace(/(:nth-[-\w]+)(\([^)]+\))/g,(Kt,Nn,$t)=>{var nn="__ph-".concat(pt,"__");return Me.push($t),pt++,Nn+nn}),placeholders:Me}})(Q),z="",re=0,te=/( |>|\+|~(?!=))\s*/g,ge=!((Q=B.content).indexOf("-shadowcsshost-no-combinator")>-1);null!==(Ee=te.exec(Q));){var Xe=Ee[1],qe=Q.slice(re,Ee.index).trim(),Se=(ge=ge||qe.indexOf("-shadowcsshost-no-combinator")>-1)?F(qe):qe;z+="".concat(Se," ").concat(Xe," "),re=te.lastIndex}var Nt,wt=Q.substring(re);return z+=(ge=ge||wt.indexOf("-shadowcsshost-no-combinator")>-1)?F(wt):wt,Nt=B.placeholders,z.replace(/__ph-(\d+)__/g,($e,Me)=>Nt[+Me])})(qe,te,ge).trim():qe.trim()).join(", ")):(F.selector.startsWith("@media")||F.selector.startsWith("@supports")||F.selector.startsWith("@page")||F.selector.startsWith("@document"))&&(z=Ie(F.content,ie,X,Ee)),{selector:B.replace(/\s{2,}/g," ").trim(),content:z}}),Ge=(Q,ie,X)=>{var Ee=ie+"-h",we=ie+"-s",F=Q.match(g)||[];Q=Q.replace(p,"");var B=[];if(X){var z=te=>{var ge="/*!@___".concat(B.length,"___*/"),Xe="/*!@".concat(te.selector,"*/");return B.push({placeholder:ge,comment:Xe}),te.selector=ge+te.selector,te};Q=S(Q,te=>"@"!==te.selector[0]?z(te):((te.selector.startsWith("@media")||te.selector.startsWith("@supports")||te.selector.startsWith("@page")||te.selector.startsWith("@document"))&&(te.content=S(te.content,z)),te))}var re=((Q,ie,X,Ee,we)=>{var B,F=((B,z)=>{var re="."+z+" > ",te=[];return B=B.replace(o,(...ge)=>{if(ge[2]){for(var Xe=ge[2].trim(),Se=re+Xe+ge[3],Nt="",wt=ge[4]-1;wt>=0;wt--){var $e=ge[5][wt];if("}"===$e||","===$e)break;Nt=$e+Nt}var Me=Nt+Se,pt="".concat(Nt.trimRight()).concat(Se.trim());if(Me.trim()!==pt.trim()){var Kt="".concat(pt,", ").concat(Me);te.push({orgSelector:Me,updatedSelector:Kt})}return Se}return"-shadowcsshost-no-combinator"+ge[3]}),{selectors:te,cssText:B}})(Q=(B=>R(B,s,ne))((B=Q=Q.replace(h,"-shadowcsscontext").replace(u,"-shadowcsshost").replace(d,"-shadowcssslotted"),Q=R(B,i,j))),Ee);return Q=(B=>l.reduce((z,re)=>z.replace(re," "),B))(Q=F.cssText),ie&&(Q=Ie(Q,ie,X,Ee)),{cssText:(Q=(Q=Q.replace(/-shadowcsshost-no-combinator/g,".".concat(X))).replace(/>\s*\*\s+([^{, ]+)/gm," $1 ")).trim(),slottedSelectors:F.selectors}})(Q,ie,Ee,we);return Q=[re.cssText,...F].join("\n"),X&&B.forEach(({placeholder:te,comment:ge})=>{Q=Q.replace(te,ge)}),re.slottedSelectors.forEach(te=>{Q=Q.replace(te.orgSelector,te.updatedSelector)}),Q}},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 tP=(()=>{class n{constructor(e,r){this.renderer=e,this.elRef=r,this.buttonClick=new He,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(Xr),I(Fn))},n.\u0275dir=pe({type:n,selectors:[["","motoApplePayButton",""]],inputs:{buttonStyle:"buttonStyle",locale:"locale",type:"type"},outputs:{buttonClick:"buttonClick"}}),n})(),nP=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({}),n})();const Fe=!1;function Pb(n){return new ee(3e3,Fe)}function FP(){return"undefined"!=typeof window&&void 0!==window.document}function Yg(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Qi(n){switch(n.length){case 0:return new gl;case 1:return n[0];default:return new v8(n)}}function Nb(n,t,e,r,i={},s={}){const o=[],a=[];let l=-1,c=null;if(r.forEach(u=>{const d=u.offset,h=d==l,p=h&&c||{};Object.keys(u).forEach(g=>{let _=g,C=u[g];if("offset"!==g)switch(_=t.normalizePropertyName(_,o),C){case"!":C=i[g];break;case bi:C=s[g];break;default:C=t.normalizeStyleValue(g,_,C,o)}p[_]=C}),h||a.push(p),c=p,l=d}),o.length)throw function SP(n){return new ee(3502,Fe)}();return a}function Jg(n,t,e,r){switch(t){case"start":n.onStart(()=>r(e&&Xg(e,"start",n)));break;case"done":n.onDone(()=>r(e&&Xg(e,"done",n)));break;case"destroy":n.onDestroy(()=>r(e&&Xg(e,"destroy",n)))}}function Xg(n,t,e){const r=e.totalTime,s=em(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,null==r?n.totalTime:r,!!e.disabled),o=n._data;return null!=o&&(s._data=o),s}function em(n,t,e,r,i="",s=0,o){return{element:n,triggerName:t,fromState:e,toState:r,phaseName:i,totalTime:s,disabled:!!o}}function Xn(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 Ob(n){const t=n.indexOf(":");return[n.substring(1,t),n.substr(t+1)]}let tm=(n,t)=>!1,kb=(n,t,e)=>[],Rb=null;function nm(n){const t=n.parentNode||n.host;return t===Rb?null:t}(Yg()||"undefined"!=typeof Element)&&(FP()?(Rb=(()=>document.documentElement)(),tm=(n,t)=>{for(;t;){if(t===n)return!0;t=nm(t)}return!1}):tm=(n,t)=>n.contains(t),kb=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const r=n.querySelector(t);return r?[r]:[]});let Ms=null,Fb=!1;function Lb(n){Ms||(Ms=function $P(){return"undefined"!=typeof document?document.body:null}()||{},Fb=!!Ms.style&&"WebkitAppearance"in Ms.style);let t=!0;return Ms.style&&!function LP(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in Ms.style,!t&&Fb&&(t="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in Ms.style)),t}const $b=tm,Vb=kb;let Bb=(()=>{class n{validateStyleProperty(e){return Lb(e)}matchesElement(e,r){return!1}containsElement(e,r){return $b(e,r)}getParentElement(e){return nm(e)}query(e,r,i){return Vb(e,r,i)}computeStyle(e,r,i){return i||""}animate(e,r,i,s,o,a=[],l){return new gl(i,s)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})(),rm=(()=>{class n{}return n.NOOP=new Bb,n})();const im="ng-enter",Xu="ng-leave",ed="ng-trigger",td=".ng-trigger",Hb="ng-animating",sm=".ng-animating";function Ts(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:om(parseFloat(t[1]),t[2])}function om(n,t){return"s"===t?1e3*n:n}function nd(n,t,e){return n.hasOwnProperty("duration")?n:function jP(n,t,e){let i,s=0,o="";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(Pb()),{duration:0,delay:0,easing:""};i=om(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=om(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else i=n;if(!e){let a=!1,l=t.length;i<0&&(t.push(function rP(){return new ee(3100,Fe)}()),a=!0),s<0&&(t.push(function iP(){return new ee(3101,Fe)}()),a=!0),a&&t.splice(l,0,Pb())}return{duration:i,delay:s,easing:o}}(n,t,e)}function zo(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function Yi(n,t,e={}){if(t)for(let r in n)e[r]=n[r];else zo(n,e);return e}function zb(n,t,e){return e?t+":"+e+";":""}function Gb(n){let t="";for(let e=0;e<n.style.length;e++){const r=n.style.item(e);t+=zb(0,r,n.style.getPropertyValue(r))}for(const e in n.style)n.style.hasOwnProperty(e)&&!e.startsWith("_")&&(t+=zb(0,zP(e),n.style[e]));n.setAttribute("style",t)}function ri(n,t,e){n.style&&(Object.keys(t).forEach(r=>{const i=lm(r);e&&!e.hasOwnProperty(r)&&(e[r]=n.style[i]),n.style[i]=t[r]}),Yg()&&Gb(n))}function As(n,t){n.style&&(Object.keys(t).forEach(e=>{const r=lm(e);n.style[r]=""}),Yg()&&Gb(n))}function Cl(n){return Array.isArray(n)?1==n.length?n[0]:m8(n):n}const am=new RegExp("{{\\s*(.+?)\\s*}}","g");function qb(n){let t=[];if("string"==typeof n){let e;for(;e=am.exec(n);)t.push(e[1]);am.lastIndex=0}return t}function rd(n,t,e){const r=n.toString(),i=r.replace(am,(s,o)=>{let a=t[o];return t.hasOwnProperty(o)||(e.push(function oP(n){return new ee(3003,Fe)}()),a=""),a.toString()});return i==r?n:i}function id(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const UP=/-+([a-z0-9])/g;function lm(n){return n.replace(UP,(...t)=>t[1].toUpperCase())}function zP(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function er(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 aP(n){return new ee(3004,Fe)}()}}function Wb(n,t){return window.getComputedStyle(n)[t]}function QP(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(r=>function YP(n,t,e){if(":"==n[0]){const l=function JP(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 bP(n){return new ee(3016,Fe)}()),"* => *"}}(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 wP(n){return new ee(3015,Fe)}()),t;const i=r[1],s=r[2],o=r[3];t.push(Kb(i,o));"<"==s[0]&&!("*"==i&&"*"==o)&&t.push(Kb(o,i))}(r,e,t)):e.push(n),e}const ld=new Set(["true","1"]),cd=new Set(["false","0"]);function Kb(n,t){const e=ld.has(n)||cd.has(n),r=ld.has(t)||cd.has(t);return(i,s)=>{let o="*"==n||n==i,a="*"==t||t==s;return!o&&e&&"boolean"==typeof i&&(o=i?ld.has(n):cd.has(n)),!a&&r&&"boolean"==typeof s&&(a=s?ld.has(t):cd.has(t)),o&&a}}const XP=new RegExp("s*:selfs*,?","g");function cm(n,t,e,r){return new eN(n).build(t,e,r)}class eN{constructor(t){this._driver=t}build(t,e,r){const i=new rN(e);this._resetContextStyleTimingState(i);const s=er(this,Cl(t),i);return i.unsupportedCSSPropertiesFound.size&&i.unsupportedCSSPropertiesFound.keys(),s}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let r=e.queryCount=0,i=e.depCount=0;const s=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push(function cP(){return new ee(3006,Fe)}()),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,s.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,o.push(l)}else e.errors.push(function uP(){return new ee(3007,Fe)}())}),{type:7,name:t.name,states:s,transitions:o,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 s=new Set,o=i||{};r.styles.forEach(a=>{if(ud(a)){const l=a;Object.keys(l).forEach(c=>{qb(l[c]).forEach(u=>{o.hasOwnProperty(u)||s.add(u)})})}}),s.size&&(id(s.values()),e.errors.push(function dP(n,t){return new ee(3008,Fe)}()))}return{type:0,name:t.name,style:r,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const r=er(this,Cl(t.animation),e);return{type:1,matchers:QP(t.expr,e.errors),animation:r,queryCount:e.queryCount,depCount:e.depCount,options:xs(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(r=>er(this,r,e)),options:xs(t.options)}}visitGroup(t,e){const r=e.currentTime;let i=0;const s=t.steps.map(o=>{e.currentTime=r;const a=er(this,o,e);return i=Math.max(i,e.currentTime),a});return e.currentTime=i,{type:3,steps:s,options:xs(t.options)}}visitAnimate(t,e){const r=function sN(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return um(nd(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=um(0,0,"");return s.dynamic=!0,s.strValue=e,s}const i=nd(e,t);return um(i.duration,i.delay,i.easing)}(t.timings,e.errors);e.currentAnimateTimings=r;let i,s=t.styles?t.styles:Pt({});if(5==s.type)i=this.visitKeyframes(s,e);else{let o=t.styles,a=!1;if(!o){a=!0;const c={};r.easing&&(c.easing=r.easing),o=Pt(c)}e.currentTime+=r.duration+r.delay;const l=this.visitStyle(o,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(o=>{"string"==typeof o?o==bi?r.push(o):e.errors.push(function hP(n){return new ee(3002,Fe)}()):r.push(o)}):r.push(t.styles);let i=!1,s=null;return r.forEach(o=>{if(ud(o)){const a=o,l=a.easing;if(l&&(s=l,delete a.easing),!i)for(let c in a)if(a[c].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:r,easing:s,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const r=e.currentAnimateTimings;let i=e.currentTime,s=e.currentTime;r&&s>0&&(s-=r.duration+r.delay),t.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete o[a],void e.unsupportedCSSPropertiesFound.add(a);const l=e.collectedStyles[e.currentQuerySelector],c=l[a];let u=!0;c&&(s!=i&&s>=c.startTime&&i<=c.endTime&&(e.errors.push(function fP(n,t,e,r,i){return new ee(3010,Fe)}()),u=!1),s=c.startTime),u&&(l[a]={startTime:s,endTime:i}),e.options&&function HP(n,t,e){const r=t.params||{},i=qb(n);i.length&&i.forEach(s=>{r.hasOwnProperty(s)||e.push(function sP(n){return new ee(3001,Fe)}())})}(o[a],e.options,e.errors)})})}visitKeyframes(t,e){const r={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function pP(){return new ee(3011,Fe)}()),r;let s=0;const o=[];let a=!1,l=!1,c=0;const u=t.steps.map(S=>{const D=this._makeStyleAst(S,e);let R=null!=D.offset?D.offset:function iN(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(ud(e)&&e.hasOwnProperty("offset")){const r=e;t=parseFloat(r.offset),delete r.offset}});else if(ud(n)&&n.hasOwnProperty("offset")){const e=n;t=parseFloat(e.offset),delete e.offset}return t}(D.styles),j=0;return null!=R&&(s++,j=D.offset=R),l=l||j<0||j>1,a=a||j<c,c=j,o.push(j),D});l&&e.errors.push(function gP(){return new ee(3012,Fe)}()),a&&e.errors.push(function mP(){return new ee(3200,Fe)}());const d=t.steps.length;let h=0;s>0&&s<d?e.errors.push(function yP(){return new ee(3202,Fe)}()):0==s&&(h=1/(d-1));const p=d-1,g=e.currentTime,_=e.currentAnimateTimings,C=_.duration;return u.forEach((S,D)=>{const R=h>0?D==p?1:h*D:o[D],j=R*C;e.currentTime=g+_.delay+j,_.duration=j,this._validateStyleAst(S,e),S.offset=R,r.styles.push(S)}),r}visitReference(t,e){return{type:8,animation:er(this,Cl(t.animation),e),options:xs(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:xs(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:xs(t.options)}}visitQuery(t,e){const r=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[s,o]=function tN(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(XP,"")),n=n.replace(/@\*/g,td).replace(/@\w+/g,e=>td+"-"+e.substr(1)).replace(/:animating/g,sm),[n,t]}(t.selector);e.currentQuerySelector=r.length?r+" "+s:s,Xn(e.collectedStyles,e.currentQuerySelector,{});const a=er(this,Cl(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=r,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:a,originalSelector:t.selector,options:xs(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function vP(){return new ee(3013,Fe)}());const r="full"===t.timings?{duration:0,delay:0,easing:"full"}:nd(t.timings,e.errors,!0);return{type:12,animation:er(this,Cl(t.animation),e),timings:r,options:null}}}class rN{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 ud(n){return!Array.isArray(n)&&"object"==typeof n}function xs(n){return n?(n=zo(n)).params&&(n.params=function nN(n){return n?zo(n):null}(n.params)):n={},n}function um(n,t,e){return{duration:n,delay:t,easing:e}}function dm(n,t,e,r,i,s,o=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:r,duration:i,delay:s,totalTime:i+s,easing:o,subTimeline:a}}class dd{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 lN=new RegExp(":enter","g"),uN=new RegExp(":leave","g");function hm(n,t,e,r,i,s={},o={},a,l,c=[]){return(new dN).buildKeyframes(n,t,e,r,i,s,o,a,l,c)}class dN{buildKeyframes(t,e,r,i,s,o,a,l,c,u=[]){c=c||new dd;const d=new fm(t,e,c,i,s,u,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),er(this,r,d);const h=d.timelines.filter(p=>p.containsAnimation());if(Object.keys(a).length){let p;for(let g=h.length-1;g>=0;g--){const _=h[g];if(_.element===e){p=_;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,l)}return h.length?h.map(p=>p.buildKeyframes()):[dm(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),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(r,i,i.options);s!=o&&e.transformIntoNewTimeline(o)}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 s=e.currentTimeline.currentTime;const o=null!=r.duration?Ts(r.duration):null,a=null!=r.delay?Ts(r.delay):null;return 0!==o&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),er(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const r=e.subContextCount;let i=e;const s=t.options;if(s&&(s.params||s.delay)&&(i=e.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=hd);const o=Ts(s.delay);i.delayNextStep(o)}t.steps.length&&(t.steps.forEach(o=>er(this,o,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const r=[];let i=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?Ts(t.options.delay):0;t.steps.forEach(o=>{const a=e.createSubContext(t.options);s&&a.delayNextStep(s),er(this,o,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const r=t.strValue;return nd(e.params?rd(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 s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(r.duration),this.visitStyle(s,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 s=i&&i.easing||t.easing;t.isEmptyStep?r.applyEmptyStep(s):r.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const r=e.currentAnimateTimings,i=e.currentTimeline.duration,s=r.duration,a=e.createSubContext().currentTimeline;a.easing=r.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(i+s),e.previousNode=t}visitQuery(t,e){const r=e.currentTimeline.currentTime,i=t.options||{},s=i.delay?Ts(i.delay):0;s&&(6===e.previousNode.type||0==r&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=hd);let o=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);s&&d.delayNextStep(s),c===e.element&&(l=d.currentTimeline),er(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const r=e.parentContext,i=e.currentTimeline,s=t.timings,o=Math.abs(s.duration),a=o*(e.currentQueryTotal-1);let l=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=r.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;er(this,t.animation,e),e.previousNode=t,r.currentStaggerTime=i.currentTime-d+(i.startTime-r.currentTimeline.startTime)}}const hd={};class fm{constructor(t,e,r,i,s,o,a,l){this._driver=t,this.element=e,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=hd,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new fd(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=Ts(r.duration)),null!=r.delay&&(i.delay=Ts(r.delay));const s=r.params;if(s){let o=i.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=rd(s[a],o,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,s=new fm(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=hd,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:""},s=new hN(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,r,i,s,o){let a=[];if(i&&a.push(this.element),t.length>0){t=(t=t.replace(lN,"."+this._enterClassName)).replace(uN,"."+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!s&&0==a.length&&o.push(function _P(n){return new ee(3014,Fe)}()),a}}class fd{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 fd(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]||bi,this._currentKeyframe[e]=bi}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,r,i){e&&(this._previousKeyframe.easing=e);const s=i&&i.params||{},o=function fN(n,t){const e={};let r;return n.forEach(i=>{"*"===i?(r=r||Object.keys(t),r.forEach(s=>{e[s]=bi})):Yi(i,!1,e)}),e}(t,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=rd(o[a],s,r);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:bi),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=Yi(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?t.add(u):d==bi&&e.add(u)}),r||(c.offset=l/this.duration),i.push(c)});const s=t.size?id(t.values()):[],o=e.size?id(e.values()):[];if(r){const a=i[0],l=zo(a);a.offset=0,l.offset=1,i=[a,l]}return dm(this.element,i,s,o,this.duration,this.startTime,this.easing,!1)}}class hN extends fd{constructor(t,e,r,i,s,o,a=!1){super(t,e,o.delay),this.keyframes=r,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:r,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],o=r+e,a=e/o,l=Yi(t[0],!1);l.offset=0,s.push(l);const c=Yi(t[0],!1);c.offset=Yb(a),s.push(c);const u=t.length-1;for(let d=1;d<=u;d++){let h=Yi(t[d],!1);h.offset=Yb((e+h.offset*r)/o),s.push(h)}r=o,e=0,i="",t=s}return dm(this.element,t,this.preStyleProps,this.postStyleProps,r,e,i,!0)}}function Yb(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class pm{}class pN extends pm{normalizePropertyName(t,e){return lm(t)}normalizeStyleValue(t,e,r,i){let s="";const o=r.toString().trim();if(gN[e]&&0!==r&&"0"!==r)if("number"==typeof r)s="px";else{const a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push(function lP(n,t){return new ee(3005,Fe)}())}return o+s}}const gN=(()=>function mN(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 Jb(n,t,e,r,i,s,o,a,l,c,u,d,h){return{type:0,element:n,triggerName:t,isRemovalTransition:i,fromState:e,fromStyles:s,toState:r,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const gm={};class Xb{constructor(t,e,r){this._triggerName=t,this.ast=e,this._stateStyles=r}match(t,e,r,i){return function yN(n,t,e,r,i){return n.some(s=>s(t,e,r,i))}(this.ast.matchers,t,e,r,i)}buildStyles(t,e,r){const i=this._stateStyles["*"],s=this._stateStyles[t],o=i?i.buildStyles(e,r):{};return s?s.buildStyles(e,r):o}build(t,e,r,i,s,o,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||gm,g=this.buildStyles(r,a&&a.params||gm,d),_=l&&l.params||gm,C=this.buildStyles(i,_,d),S=new Set,D=new Map,R=new Map,j="void"===i,ne={params:Object.assign(Object.assign({},h),_)},O=u?[]:hm(t,e,this.ast.animation,s,o,g,C,ne,c,d);let Z=0;if(O.forEach(Pe=>{Z=Math.max(Pe.duration+Pe.delay,Z)}),d.length)return Jb(e,this._triggerName,r,i,j,g,C,[],[],D,R,Z,d);O.forEach(Pe=>{const Ge=Pe.element,Q=Xn(D,Ge,{});Pe.preStyleProps.forEach(X=>Q[X]=!0);const ie=Xn(R,Ge,{});Pe.postStyleProps.forEach(X=>ie[X]=!0),Ge!==e&&S.add(Ge)});const Ie=id(S.values());return Jb(e,this._triggerName,r,i,j,g,C,O,Ie,D,R,Z)}}class vN{constructor(t,e,r){this.styles=t,this.defaultParams=e,this.normalizer=r}buildStyles(t,e){const r={},i=zo(this.defaultParams);return Object.keys(t).forEach(s=>{const o=t[s];null!=o&&(i[s]=o)}),this.styles.styles.forEach(s=>{if("string"!=typeof s){const o=s;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=rd(l,i,e));const c=this.normalizer.normalizePropertyName(a,e);l=this.normalizer.normalizeStyleValue(a,c,l,e),r[c]=l})}}),r}}class wN{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 vN(i.style,i.options&&i.options.params||{},r)}),e3(this.states,"true","1"),e3(this.states,"false","0"),e.transitions.forEach(i=>{this.transitionFactories.push(new Xb(t,i,this.states))}),this.fallbackTransition=function bN(n,t,e){return new Xb(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,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(o=>o.match(t,e,r,i))||null}matchStyles(t,e,r){return this.fallbackTransition.buildStyles(t,e,r)}}function e3(n,t,e){n.hasOwnProperty(t)?n.hasOwnProperty(e)||(n[e]=n[t]):n.hasOwnProperty(e)&&(n[t]=n[e])}const CN=new dd;class DN{constructor(t,e,r){this.bodyNode=t,this._driver=e,this._normalizer=r,this._animations={},this._playersById={},this.players=[]}register(t,e){const r=[],s=cm(this._driver,e,r,[]);if(r.length)throw function MP(n){return new ee(3503,Fe)}();this._animations[t]=s}_buildPlayer(t,e,r){const i=t.element,s=Nb(0,this._normalizer,0,t.keyframes,e,r);return this._driver.animate(i,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,r={}){const i=[],s=this._animations[t];let o;const a=new Map;if(s?(o=hm(this._driver,e,s,im,Xu,{},{},r,CN,i),o.forEach(u=>{const d=Xn(a,u.element,{});u.postStyleProps.forEach(h=>d[h]=null)})):(i.push(function TP(){return new ee(3300,Fe)}()),o=[]),i.length)throw function AP(n){return new ee(3504,Fe)}();a.forEach((u,d)=>{Object.keys(u).forEach(h=>{u[h]=this._driver.computeStyle(d,h,bi)})});const c=Qi(o.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 xP(n){return new ee(3301,Fe)}();return e}listen(t,e,r,i){const s=em(e,"","","");return Jg(this._getPlayer(t),r,s,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 s=this._getPlayer(t);switch(r){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const t3="ng-animate-queued",mm="ng-animate-disabled",AN=[],n3={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},xN={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},vr="__ng_removed";class ym{constructor(t,e=""){this.namespaceId=e;const r=t&&t.hasOwnProperty("value");if(this.value=function ON(n){return null!=n?n:null}(r?t.value:t),r){const s=zo(t);delete s.value,this.options=s}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 Dl="void",vm=new ym(Dl);class IN{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,_r(e,this._hostClassName)}listen(t,e,r,i){if(!this._triggers.hasOwnProperty(e))throw function IP(n,t){return new ee(3302,Fe)}();if(null==r||0==r.length)throw function PP(n){return new ee(3303,Fe)}();if(!function kN(n){return"start"==n||"done"==n}(r))throw function NP(n,t){return new ee(3400,Fe)}();const s=Xn(this._elementListeners,t,[]),o={name:e,phase:r,callback:i};s.push(o);const a=Xn(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(_r(t,ed),_r(t,ed+"-"+e),a[e]=vm),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.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 OP(n){return new ee(3401,Fe)}();return e}trigger(t,e,r,i=!0){const s=this._getTrigger(e),o=new _m(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(_r(t,ed),_r(t,ed+"-"+e),this._engine.statesByElement.set(t,a={}));let l=a[e];const c=new ym(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[e]=c,l||(l=vm),c.value!==Dl&&l.value===c.value){if(!function LN(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 s=e[i];if(!t.hasOwnProperty(s)||n[s]!==t[s])return!1}return!0}(l.params,c.params)){const _=[],C=s.matchStyles(l.value,l.params,_),S=s.matchStyles(c.value,c.params,_);_.length?this._engine.reportError(_):this._engine.afterFlush(()=>{As(t,C),ri(t,S)})}return}const h=Xn(this._engine.playersByElement,t,[]);h.forEach(_=>{_.namespaceId==this.id&&_.triggerName==e&&_.queued&&_.destroy()});let p=s.matchTransition(l.value,c.value,t,c.params),g=!1;if(!p){if(!i)return;p=s.fallbackTransition,g=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:p,fromState:l,toState:c,player:o,isFallbackTransition:g}),g||(_r(t,t3),o.onStart(()=>{Go(t,t3)})),o.onDone(()=>{let _=this.players.indexOf(o);_>=0&&this.players.splice(_,1);const C=this._engine.playersByElement.get(t);if(C){let S=C.indexOf(o);S>=0&&C.splice(S,1)}}),this.players.push(o),h.push(o),o}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,td,!0);r.forEach(i=>{if(i[vr])return;const s=this._engine.fetchNamespacesByElement(i);s.size?s.forEach(o=>o.triggerLeaveAnimation(i,e,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(t,e,r,i){const s=this._engine.statesByElement.get(t),o=new Map;if(s){const a=[];if(Object.keys(s).forEach(l=>{if(o.set(l,s[l].value),this._triggers[l]){const c=this.trigger(t,l,Dl,i);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,o),r&&Qi(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(s=>{const o=s.name;if(i.has(o))return;i.add(o);const l=this._triggers[o].fallbackTransition,c=r[o]||vm,u=new ym(Dl),d=new _m(this.id,o,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:o,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 s=r.players.length?r.playersByQueriedElement.get(t):[];if(s&&s.length)i=!0;else{let o=t;for(;o=o.parentNode;)if(r.statesByElement.get(o)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)r.markElementAsRemoved(this.id,t,!1,e);else{const s=t[vr];(!s||s===n3)&&(r.afterFlush(()=>this.clearElementCache(t)),r.destroyInnerAnimations(t),r._onRemovalComplete(t,e))}}insertNode(t,e){_r(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(r=>{const i=r.player;if(i.destroyed)return;const s=r.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==r.triggerName){const l=em(s,r.triggerName,r.fromState.value,r.toState.value);l._data=t,Jg(r.player,a.phase,l,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(r)}),this._queue=[],e.sort((r,i)=>{const s=r.transition.ast.depCount,o=i.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(r.element,i.element)?1:-1})}destroy(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 PN{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,s)=>{}}_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 IN(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,s=r.length-1;if(s>=0){let o=!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),o=!0;break}a=this.driver.getParentElement(a)}}else for(let a=s;a>=0;a--)if(this.driver.containsElement(r[a].hostElement,e)){r.splice(a+1,0,t),o=!0;break}o||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 s=0;s<i.length;s++){const o=r[i[s]].namespaceId;if(o){const a=this._fetchNamespace(o);a&&e.add(a)}}}return e}trigger(t,e,r,i){if(pd(e)){const s=this._fetchNamespace(t);if(s)return s.trigger(e,r,i),!0}return!1}insertNode(t,e,r,i){if(!pd(e))return;const s=e[vr];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(t){const o=this._fetchNamespace(t);o&&o.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),_r(t,mm)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Go(t,mm))}removeNode(t,e,r,i){if(pd(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),r){const o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,r,i,s){this.collectedLeaveElements.push(e),e[vr]={namespaceId:t,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:s}}listen(t,e,r,i,s){return pd(e)?this._fetchNamespace(t).listen(e,r,i,s):()=>{}}_buildInstruction(t,e,r,i,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,r,i,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,td,!0);e.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,sm,!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 Qi(this.players).onDone(()=>t());t()})}processLeaveNode(t){var e;const r=t[vr];if(r&&r.setForRemoval){if(t[vr]=n3,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(mm))&&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++)_r(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?Qi(e).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(t){throw function kP(n){return new ee(3402,Fe)}()}_flushAnimations(t,e){const r=new dd,i=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(F=>{u.add(F);const B=this.driver.query(F,".ng-animate-queued",!0);for(let z=0;z<B.length;z++)u.add(B[z])});const d=this.bodyNode,h=Array.from(this.statesByElement.keys()),p=s3(h,this.collectedEnterElements),g=new Map;let _=0;p.forEach((F,B)=>{const z=im+_++;g.set(B,z),F.forEach(re=>_r(re,z))});const C=[],S=new Set,D=new Set;for(let F=0;F<this.collectedLeaveElements.length;F++){const B=this.collectedLeaveElements[F],z=B[vr];z&&z.setForRemoval&&(C.push(B),S.add(B),z.hasAnimation?this.driver.query(B,".ng-star-inserted",!0).forEach(re=>S.add(re)):D.add(B))}const R=new Map,j=s3(h,Array.from(S));j.forEach((F,B)=>{const z=Xu+_++;R.set(B,z),F.forEach(re=>_r(re,z))}),t.push(()=>{p.forEach((F,B)=>{const z=g.get(B);F.forEach(re=>Go(re,z))}),j.forEach((F,B)=>{const z=R.get(B);F.forEach(re=>Go(re,z))}),C.forEach(F=>{this.processLeaveNode(F)})});const ne=[],O=[];for(let F=this._namespaceList.length-1;F>=0;F--)this._namespaceList[F].drainQueuedTransitions(e).forEach(z=>{const re=z.player,te=z.element;if(ne.push(re),this.collectedEnterElements.length){const $e=te[vr];if($e&&$e.setForMove){if($e.previousTriggersValues&&$e.previousTriggersValues.has(z.triggerName)){const Me=$e.previousTriggersValues.get(z.triggerName),pt=this.statesByElement.get(z.element);pt&&pt[z.triggerName]&&(pt[z.triggerName].value=Me)}return void re.destroy()}}const ge=!d||!this.driver.containsElement(d,te),Xe=R.get(te),qe=g.get(te),Se=this._buildInstruction(z,r,qe,Xe,ge);if(Se.errors&&Se.errors.length)return void O.push(Se);if(ge)return re.onStart(()=>As(te,Se.fromStyles)),re.onDestroy(()=>ri(te,Se.toStyles)),void i.push(re);if(z.isFallbackTransition)return re.onStart(()=>As(te,Se.fromStyles)),re.onDestroy(()=>ri(te,Se.toStyles)),void i.push(re);const Nt=[];Se.timelines.forEach($e=>{$e.stretchStartingKeyframe=!0,this.disabledNodes.has($e.element)||Nt.push($e)}),Se.timelines=Nt,r.append(te,Se.timelines),o.push({instruction:Se,player:re,element:te}),Se.queriedElements.forEach($e=>Xn(a,$e,[]).push(re)),Se.preStyleProps.forEach(($e,Me)=>{const pt=Object.keys($e);if(pt.length){let Kt=l.get(Me);Kt||l.set(Me,Kt=new Set),pt.forEach(Nn=>Kt.add(Nn))}}),Se.postStyleProps.forEach(($e,Me)=>{const pt=Object.keys($e);let Kt=c.get(Me);Kt||c.set(Me,Kt=new Set),pt.forEach(Nn=>Kt.add(Nn))})});if(O.length){const F=[];O.forEach(B=>{F.push(function RP(n,t){return new ee(3505,Fe)}())}),ne.forEach(B=>B.destroy()),this.reportError(F)}const Z=new Map,Ie=new Map;o.forEach(F=>{const B=F.element;r.has(B)&&(Ie.set(B,B),this._beforeAnimationBuild(F.player.namespaceId,F.instruction,Z))}),i.forEach(F=>{const B=F.element;this._getPreviousPlayers(B,!1,F.namespaceId,F.triggerName,null).forEach(re=>{Xn(Z,B,[]).push(re),re.destroy()})});const Pe=C.filter(F=>a3(F,l,c)),Ge=new Map;i3(Ge,this.driver,D,c,bi).forEach(F=>{a3(F,l,c)&&Pe.push(F)});const ie=new Map;p.forEach((F,B)=>{i3(ie,this.driver,new Set(F),l,"!")}),Pe.forEach(F=>{const B=Ge.get(F),z=ie.get(F);Ge.set(F,Object.assign(Object.assign({},B),z))});const X=[],Ee=[],we={};o.forEach(F=>{const{element:B,player:z,instruction:re}=F;if(r.has(B)){if(u.has(B))return z.onDestroy(()=>ri(B,re.toStyles)),z.disabled=!0,z.overrideTotalTime(re.totalTime),void i.push(z);let te=we;if(Ie.size>1){let Xe=B;const qe=[];for(;Xe=Xe.parentNode;){const Se=Ie.get(Xe);if(Se){te=Se;break}qe.push(Xe)}qe.forEach(Se=>Ie.set(Se,te))}const ge=this._buildAnimation(z.namespaceId,re,Z,s,ie,Ge);if(z.setRealPlayer(ge),te===we)X.push(z);else{const Xe=this.playersByElement.get(te);Xe&&Xe.length&&(z.parentPlayer=Qi(Xe)),i.push(z)}}else As(B,re.fromStyles),z.onDestroy(()=>ri(B,re.toStyles)),Ee.push(z),u.has(B)&&i.push(z)}),Ee.forEach(F=>{const B=s.get(F.element);if(B&&B.length){const z=Qi(B);F.setRealPlayer(z)}}),i.forEach(F=>{F.parentPlayer?F.syncPlayerEvents(F.parentPlayer):F.destroy()});for(let F=0;F<C.length;F++){const B=C[F],z=B[vr];if(Go(B,Xu),z&&z.hasAnimation)continue;let re=[];if(a.size){let ge=a.get(B);ge&&ge.length&&re.push(...ge);let Xe=this.driver.query(B,sm,!0);for(let qe=0;qe<Xe.length;qe++){let Se=a.get(Xe[qe]);Se&&Se.length&&re.push(...Se)}}const te=re.filter(ge=>!ge.destroyed);te.length?RN(this,B,te):this.processLeaveNode(B)}return C.length=0,X.forEach(F=>{this.players.push(F),F.onDone(()=>{F.destroy();const B=this.players.indexOf(F);this.players.splice(B,1)}),F.play()}),X}elementContainsData(t,e){let r=!1;const i=e[vr];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,s){let o=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(o=a)}else{const a=this.playersByElement.get(t);if(a){const l=!s||s==Dl;a.forEach(c=>{c.queued||!l&&c.triggerName!=i||o.push(c)})}}return(r||i)&&(o=o.filter(a=>!(r&&r!=a.namespaceId||i&&i!=a.triggerName))),o}_beforeAnimationBuild(t,e,r){const s=e.element,o=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==s,d=Xn(r,c,[]);this._getPreviousPlayers(c,u,o,a,e.toState).forEach(p=>{const g=p.getRealPlayer();g.beforeDestroy&&g.beforeDestroy(),p.destroy(),d.push(p)})}As(s,e.fromStyles)}_buildAnimation(t,e,r,i,s,o){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(g=>{const _=g.element;u.add(_);const C=_[vr];if(C&&C.removedBeforeQueried)return new gl(g.duration,g.delay);const S=_!==l,D=function FN(n){const t=[];return o3(n,t),t}((r.get(_)||AN).map(Z=>Z.getRealPlayer())).filter(Z=>!!Z.element&&Z.element===_),R=s.get(_),j=o.get(_),ne=Nb(0,this._normalizer,0,g.keyframes,R,j),O=this._buildPlayer(g,ne,D);if(g.subTimeline&&i&&d.add(_),S){const Z=new _m(t,a,_);Z.setRealPlayer(O),c.push(Z)}return O});c.forEach(g=>{Xn(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>function NN(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,g.element,g))}),u.forEach(g=>_r(g,Hb));const p=Qi(h);return p.onDestroy(()=>{u.forEach(g=>Go(g,Hb)),ri(l,e.toStyles)}),d.forEach(g=>{Xn(i,g,[]).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 gl(t.duration,t.delay)}}class _m{constructor(t,e,r){this.namespaceId=t,this.triggerName=e,this.element=r,this._player=new gl,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=>Jg(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){Xn(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 pd(n){return n&&1===n.nodeType}function r3(n,t){const e=n.style.display;return n.style.display=null!=t?t:"none",e}function i3(n,t,e,r,i){const s=[];e.forEach(l=>s.push(r3(l)));const o=[];r.forEach((l,c)=>{const u={};l.forEach(d=>{const h=u[d]=t.computeStyle(c,d,i);(!h||0==h.length)&&(c[vr]=xN,o.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>r3(l,s[a++])),o}function s3(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const i=new Set(t),s=new Map;function o(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:i.has(c)?1:o(c),s.set(a,l),l}return t.forEach(a=>{const l=o(a);1!==l&&e.get(l).push(a)}),e}function _r(n,t){var e;null===(e=n.classList)||void 0===e||e.add(t)}function Go(n,t){var e;null===(e=n.classList)||void 0===e||e.remove(t)}function RN(n,t,e){Qi(e).onDone(()=>n.processLeaveNode(t))}function o3(n,t){for(let e=0;e<n.length;e++){const r=n[e];r instanceof v8?o3(r.players,t):t.push(r)}}function a3(n,t,e){const r=e.get(n);if(!r)return!1;let i=t.get(n);return i?r.forEach(s=>i.add(s)):t.set(n,r),e.delete(n),!0}class gd{constructor(t,e,r){this.bodyNode=t,this._driver=e,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(i,s)=>{},this._transitionEngine=new PN(t,e,r),this._timelineEngine=new DN(t,e,r),this._transitionEngine.onRemovalComplete=(i,s)=>this.onRemovalComplete(i,s)}registerTrigger(t,e,r,i,s){const o=t+"-"+i;let a=this._triggerCache[o];if(!a){const l=[],u=cm(this._driver,s,l,[]);if(l.length)throw function EP(n,t){return new ee(3404,Fe)}();a=function _N(n,t,e){return new wN(n,t,e)}(i,u,this._normalizer),this._triggerCache[o]=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[s,o]=Ob(r);this._timelineEngine.command(s,e,o,i)}else this._transitionEngine.trigger(t,e,r,i)}listen(t,e,r,i,s){if("@"==r.charAt(0)){const[o,a]=Ob(r);return this._timelineEngine.listen(o,e,a,s)}return this._transitionEngine.listen(t,e,r,i,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let VN=(()=>{class n{constructor(e,r,i){this._element=e,this._startStyles=r,this._endStyles=i,this._state=0;let s=n.initialStylesByElement.get(e);s||n.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&ri(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ri(this._element,this._initialStyles),this._endStyles&&(ri(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(As(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(As(this._element,this._endStyles),this._endStyles=null),ri(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function wm(n){let t=null;const e=Object.keys(n);for(let r=0;r<e.length;r++){const i=e[r];BN(i)&&(t=t||{},t[i]=n[i])}return t}function BN(n){return"display"===n||"position"===n}class l3{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]:Wb(this.element,r))})}this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(r=>r()),e.length=0}}class jN{validateStyleProperty(t){return Lb(t)}matchesElement(t,e){return!1}containsElement(t,e){return $b(t,e)}getParentElement(t){return nm(t)}query(t,e,r){return Vb(t,e,r)}computeStyle(t,e,r){return window.getComputedStyle(t)[e]}animate(t,e,r,i,s,o=[]){const l={duration:r,delay:i,fill:0==i?"both":"forwards"};s&&(l.easing=s);const c={},u=o.filter(h=>h instanceof l3);(function GP(n,t){return 0===n||0===t})(r,i)&&u.forEach(h=>{let p=h.currentSnapshot;Object.keys(p).forEach(g=>c[g]=p[g])}),e=function qP(n,t,e){const r=Object.keys(e);if(r.length&&t.length){let s=t[0],o=[];if(r.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=e[a]}),o.length)for(var i=1;i<t.length;i++){let a=t[i];o.forEach(function(l){a[l]=Wb(n,l)})}}return t}(t,e=e.map(h=>Yi(h,!1)),c);const d=function $N(n,t){let e=null,r=null;return Array.isArray(t)&&t.length?(e=wm(t[0]),t.length>1&&(r=wm(t[t.length-1]))):t&&(e=wm(t)),e||r?new VN(n,e,r):null}(t,e);return new l3(t,e,l,d)}}let HN=(()=>{class n extends g8{constructor(e,r){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(r.body,{id:"0",encapsulation:Dr.None,styles:[],data:{animation:[]}})}build(e){const r=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(e)?m8(e):e;return c3(this._renderer,null,r,"register",[i]),new UN(r,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(U(Qa),U(zt))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();class UN extends class Ix{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new zN(this._id,t,e||{},this._renderer)}}class zN{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 c3(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 c3(n,t,e,r,i){return n.setProperty(t,`@@${e}:${r}`,i)}const u3="@.disabled";let GN=(()=>{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=(s,o)=>{const a=null==o?void 0:o.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(e,r){const s=this.delegate.createRenderer(e,r);if(!(e&&r&&r.data&&r.data.animation)){let u=this._rendererCache.get(s);return u||(u=new d3("",s,this.engine),this._rendererCache.set(s,u)),u}const o=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(o,a,e,u.name,u)};return r.data.animation.forEach(l),new qN(this,a,s,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(s=>{const[o,a]=s;o(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(Qa),U(gd),U(en))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();class d3{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==u3?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 qN extends d3{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==u3?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 WN(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let s=e.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function KN(n){const t=n.indexOf(".");return[n.substring(0,t),n.substr(t+1)]}(s)),this.engine.listen(this.namespaceId,i,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,r,a)})}return this.delegate.listen(t,e,r)}}let ZN=(()=>{class n extends gd{constructor(e,r,i){super(e.body,r,i)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(U(zt),U(rm),U(pm))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();const h3=new oe("AnimationModuleType"),f3=[{provide:g8,useClass:HN},{provide:pm,useFactory:function QN(){return new pN}},{provide:gd,useClass:ZN},{provide:Qa,useFactory:function YN(n,t,e){return new GN(n,t,e)},deps:[mu,gd,en]}],p3=[{provide:rm,useFactory:()=>new jN},{provide:h3,useValue:"BrowserAnimations"},...f3],JN=[{provide:rm,useClass:Bb},{provide:h3,useValue:"NoopAnimations"},...f3];let XN=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?JN:p3}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({providers:p3,imports:[_w]}),n})();function eO(n,t){if(1&n){const e=kn();W(0,"div",3)(1,"i",4),Le("click",function(){return dn(e),ue().close()}),De(2,"close"),K()()}}function tO(n,t){1&n&&(W(0,"span",8),De(1,"\xb7"),K())}function nO(n,t){if(1&n&&(dr(0),W(1,"a",6),De(2),K(),ae(3,tO,2,0,"span",7),hr()),2&n){const e=t.$implicit,r=t.last;G(1),q("href",e.href,La),G(1),Rn(" ",e.text," "),G(1),q("ngIf",!r)}}function rO(n,t){if(1&n&&(W(0,"div",4),ae(1,nO,4,3,"ng-container",5),K()),2&n){const e=ue(2);G(1),q("ngForOf",e.links)}}function iO(n,t){if(1&n&&(W(0,"p",9),De(1),K()),2&n){const e=ue(2);G(1),Rn(" ",e.description," ")}}function sO(n,t){if(1&n&&(W(0,"div",1),ae(1,rO,2,1,"div",2),ae(2,iO,2,1,"p",3),K()),2&n){const e=ue();G(1),q("ngIf",null==e.links?null:e.links.length),G(1),q("ngIf",e.description)}}function oO(n,t){if(1&n&&(W(0,"div",1),ot(1,"img",2),K()),2&n){const e=ue();G(1),q("src",e.src,La)("alt",e.alt)}}const aO=[[["prefix"]],[["suffix"]]],lO=["prefix","suffix"];function cO(n,t){1&n&&(W(0,"span",8),De(1,"Invalid phone number"),K()),2&n&&q("@ANTransform",void 0)}function uO(n,t){if(1&n&&(W(0,"div",2)(1,"div",3)(2,"h6",4),De(3,"Phone"),K(),ae(4,cO,2,1,"span",5),K(),W(5,"div",6),ot(6,"moto-form-input",7),je(7,"enum"),je(8,"enum"),je(9,"condition"),K()()),2&n){const e=ue();G(4),q("ngIf",e.isInvalidPhone),G(2),q("minlength",fr(7,5,"MIN_TEL","form-field-length"))("maxlength",fr(8,8,"MAX_TEL","form-field-length"))("validate",!1)("status",Ln(9,11,e.isInvalidPhone,"invalid","valid"))}}function dO(n,t){if(1&n&&(W(0,"span",9),De(1),K()),2&n){const e=ue();q("@ANTransform",void 0),G(1),Hi(e.paymentsErrorMsg)}}function hO(n,t){if(1&n){const e=kn();W(0,"div",10)(1,"moto-form-input",11),Le("paste",function(i){return dn(e),ue().pasteCardNumber(i)}),je(2,"cardInfo"),je(3,"condition"),ot(4,"moto-picture",12),je(5,"cardInfo"),K(),ot(6,"div",13),W(7,"div",14),ot(8,"moto-form-input",15),je(9,"condition"),ot(10,"div",16),W(11,"moto-form-input",17),je(12,"cardInfo"),je(13,"cardInfo"),je(14,"condition"),W(15,"div",18),je(16,"cardInfo"),W(17,"i",19),De(18,"error"),K()()()()()}if(2&n){const e=t.motoLet,r=ue();Qr("invalid",r.isInvalidCredentials),G(1),q("mask",Ln(2,17,e.cardNumber,"card-number-mask","0000 0000 0000 0000"))("transparent",!0)("validate",!1)("status",Ln(3,21,r.isInvalidCredentials,"invalid","valid")),G(3),q("src",fr(5,25,r.cardNumberValue,"logo")),G(4),q("transparent",!0)("validate",!1)("status",Ln(9,28,r.isInvalidCredentials,"invalid","valid")),G(3),q("mask",Ln(12,32,e.cardNumber,"code-mask","000"))("dropSpecialCharacters",!1)("placeholder",Ln(13,36,e.cardNumber,"code","CVV"))("transparent",!0)("validate",!1)("status",Ln(14,40,r.isInvalidCredentials,"invalid","valid")),G(4),wn("data-tooltip",Ln(16,44,e.cardNumber,"secure-text","CVC Card Verification Code"))}}function fO(n,t){1&n&&(W(0,"span",20),De(1,"Invalid card holder name"),K()),2&n&&q("@ANTransform",void 0)}function pO(n,t){if(1&n){const e=kn();W(0,"moto-pay-card",4),Le("select",function(i){return dn(e),ue(2).selectCard(i)})("remove",function(i){return dn(e),ue(2).removeCard(i)}),K()}2&n&&q("option",t.$implicit)}function gO(n,t){if(1&n&&(dr(0),ae(1,pO,1,1,"moto-pay-card",3),hr()),2&n){const e=ue();G(1),q("ngForOf",e.cardOptions)}}function mO(n,t){1&n&&(W(0,"p",5),De(1,"No cards yet..."),K())}const yO=function(n){return{$implicit:n}};function vO(n,t){if(1&n&&(Lc(0,7),je(1,"condition")),2&n){const e=t.$implicit,r=ue().motoLet;ue();const i=gs(2);q("ngTemplateOutlet",Ln(1,2,e.logo,i,r[e.name]))("ngTemplateOutletContext",up(6,yO,e))}}function _O(n,t){if(1&n&&(W(0,"div",3)(1,"div",4)(2,"span",5),De(3,"OR"),K()(),ae(4,vO,2,8,"ng-container",6),K()),2&n){const e=ue();G(4),q("ngForOf",e.apms)("ngForTrackBy",e.trackByApm)}}function wO(n,t){if(1&n){const e=kn();W(0,"div",8),Le("click",function(){const s=dn(e).$implicit;return ue().pay(s)}),ot(1,"img",9),K()}if(2&n){const e=t.$implicit;G(1),q("src",e.logo,La)("alt",e.name)}}function bO(n,t){if(1&n){const e=kn();W(0,"div",10),Le("buttonClick",function(){const s=dn(e).$implicit;return ue().pay(s)}),K()}}const CO=function(n){return{applepay:n}},DO=["cardFormRef"],EO=["additionalFormRef"],SO=["cardListRef"];function MO(n,t){if(1&n){const e=kn();dr(0),W(1,"div",15),Le("click",function(){return dn(e),ue(3).toggleCardList()}),W(2,"span",16),De(3,"Manage cards"),K(),W(4,"i",17),De(5,"keyboard_arrow_up"),K()(),W(6,"moto-pay-card-list",18,19),Le("select",function(){return dn(e),ue(3).selectCard()})("remove",function(i){return dn(e),ue(3).removeCard(i)}),je(8,"condition"),K(),hr()}if(2&n){const e=ue().motoLet,r=ue(2);G(4),Qr("active",r.viewState.isShowCardList),G(2),q("@ANToggleList",Ln(8,5,r.viewState.isShowCardList,"show","hide"))("childrenDetector",r.childrenDetector$)("cards",e)}}function TO(n,t){if(1&n&&(dr(0),ae(1,MO,9,9,"ng-container",14),hr()),2&n){const e=t.motoLet;G(1),q("ngIf",null==e?null:e.length)}}function AO(n,t){if(1&n){const e=kn();W(0,"button",20),Le("click",function(){return dn(e),ue(2).showCardForm()}),W(1,"i",21),De(2,"add"),K(),W(3,"span",22),De(4,"Add new card"),K()()}}function xO(n,t){1&n&&ot(0,"moto-pay-card-form",23,24),2&n&&q("@ANHeight",void 0)}function IO(n,t){if(1&n&&(ot(0,"moto-pay-additional-form",25,26),je(2,"async")),2&n){const e=ue(2);q("@ANHeight",void 0)("fieldSettings",yi(2,2,e.settings$))}}function PO(n,t){if(1&n&&(dr(0),ot(1,"div",27),W(2,"div",28),ot(3,"moto-picture",29),je(4,"cardInfo"),W(5,"span",30),De(6),je(7,"slice"),K()(),hr()),2&n){const e=t.ngIf;G(3),q("src",fr(4,2,e.card.name,"logo")),G(3),Rn(" \u2022\u2022",fr(7,5,e.card.name,-4)," ")}}function NO(n,t){if(1&n){const e=kn();dr(0),W(1,"moto-pay-apm-list",31),Le("pay",function(i){return dn(e),ue(3).apmSubmit(i)}),K(),hr()}if(2&n){const e=ue().motoLet;G(1),q("apms",e)}}function OO(n,t){if(1&n&&(dr(0),ae(1,NO,2,1,"ng-container",14),hr()),2&n){const e=t.motoLet;G(1),q("ngIf",null==e?null:e.length)}}function kO(n,t){if(1&n){const e=kn();W(0,"div",1),ae(1,TO,2,1,"ng-container",2),je(2,"async"),ae(3,AO,5,0,"button",3),ae(4,xO,2,1,"moto-pay-card-form",4),ae(5,IO,3,4,"moto-pay-additional-form",5),W(6,"div",6)(7,"div",7)(8,"span",8),De(9,"Total"),K(),W(10,"span",9),De(11),je(12,"currencySymbol"),je(13,"price"),K()(),W(14,"button",10),Le("click",function(){return dn(e),ue().submit()}),W(15,"div",11)(16,"div",12)(17,"span"),De(18," Pay "),W(19,"span",13),De(20),je(21,"currencySymbol"),je(22,"price"),K()()(),ae(23,PO,8,8,"ng-container",14),K()()(),ae(24,OO,2,1,"ng-container",2),je(25,"async"),K()}if(2&n){const e=t.ngIf,r=ue();G(1),q("motoLet",yi(2,8,r.cards$)),G(2),q("ngIf",!r.viewState.isShowCardForm),G(1),q("ngIf",r.viewState.isShowCardForm),G(1),q("ngIf",r.viewState.isShowCardForm),G(6),Hi(fr(12,10,Ln(13,13,e.amount,e.tax,e.amountType),e.currency)),G(9),Rn(" ",fr(21,17,Ln(22,20,e.amount,e.tax,e.amountType),e.currency)," "),G(3),q("ngIf",null==r.cardListRef?null:r.cardListRef.getSelectedCard()),G(1),q("motoLet",yi(25,24,r.apms$))}}function RO(n,t){if(1&n&&(W(0,"p",4),De(1),K()),2&n){const e=ue();G(1),Rn(" ",e.description," ")}}const FO=["wrapper"];function LO(n,t){1&n&&Lc(0)}function $O(n,t){if(1&n&&ot(0,"moto-pay-footer",12),2&n){const e=ue().motoLet;q("description",null==e?null:e.merchantInfo)("links",null==e?null:e.merchantLinks)}}function VO(n,t){1&n&&ot(0,"moto-loader")}function BO(n,t){1&n&&ot(0,"div",13)}function jO(n,t){if(1&n){const e=kn();W(0,"div",4,5)(2,"div",6)(3,"moto-pay-header",7),Le("close",function(){return dn(e),ue().close()}),K(),ae(4,LO,1,0,"ng-container",8),je(5,"async"),ae(6,$O,1,2,"moto-pay-footer",9),ae(7,VO,1,0,"moto-loader",10),ae(8,BO,1,0,"div",11),K()()}if(2&n){const e=t.motoLet,r=ue(),i=gs(5),s=gs(3);G(3),q("showCloseButton",null==e?null:e.isCloseButtonVisible),G(1),q("ngIf",yi(5,7,r.paymentResult$))("ngIfThen",i)("ngIfElse",s),G(2),q("ngIf",null==e?null:e.isMerchantInfoVisible),G(1),q("ngIf",r.isShowLoader),G(1),q("ngIf",!r.isShowLoader)}}function HO(n,t){1&n&&ot(0,"moto-pay-main")}function UO(n,t){if(1&n&&ae(0,HO,1,0,"moto-pay-main",14),2&n){const e=ue(),r=gs(7);q("ngIf",!e.viewState.paymentErrorType)("ngIfElse",r)}}function zO(n,t){if(1&n){const e=kn();W(0,"moto-pay-result",15),Le("result",function(i){return dn(e),ue().paid(i)}),je(1,"async"),K()}2&n&&q("paymentResult",yi(1,1,ue().paymentResult$))}function GO(n,t){1&n&&ot(0,"moto-pay-error",16),2&n&&q("error",ue().viewState.paymentErrorType)}const qO=["paymentWrapperRef"],WO=new xw(()=>!1),KO=new xw(()=>!1);class ZO{constructor(t){this.defaultValues={isPhoneNumberFieldVisible:!1,isEmailFieldVisible:!1,isCloseButtonVisible:!0,isMerchantInfoVisible:!0,merchantInfo:null,merchantLinks:null},this._settings=Object.assign(Object.assign({},this.defaultValues),t)}get settings(){return this._settings}}let g3=(()=>{class n{constructor(){this.detector$=new Ht}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})(),yd=(()=>{class n{constructor(e){this.injector=e,this.unsubscriber$=new Ht,this.childrenDetector$=new Ht}ngOnDestroy(){this.unsubscribe()}listenChildrenDetection(e){const r="local"===e,i="global"===e,s="full"===e;this.childrenDetector$.asObservable().pipe(hl(10),this.untilDestroy()).subscribe(()=>{(r||s)&&this.localDetect(),(i||s)&&this.globalDetect()})}localDetect(){this.injector.get(il).detectChanges()}globalDetect(){this.injector.get(g3).detectChanges()}detect(){this.localDetect(),this.globalDetect()}untilDestroy(){return Vw(this.unsubscriber$.asObservable())}unsubscribe(){this.unsubscriber$.next(null)}}return n.\u0275fac=function(e){return new(e||n)(I(vt))},n.\u0275cmp=Rt({type:n,selectors:[["ng-component"]],decls:0,vars:0,template:function(e,r){},encapsulation:2}),n})();var Is=(()=>(function(n){n.Dev="dev",n.Stage="stage",n.Live="live",n.Prod="prod"}(Is||(Is={})),Is))(),vd=(()=>(function(n){n.Test="test",n.Qa1="qa1",n.Qa2="qa2",n.Qa3="qa3"}(vd||(vd={})),vd))(),Ps=(()=>(function(n){n[n.MAX_CARD_HOLDER=128]="MAX_CARD_HOLDER",n[n.MAX_TEL=30]="MAX_TEL",n[n.MIN_TEL=4]="MIN_TEL"}(Ps||(Ps={})),Ps))(),_d=(()=>(function(n){n.APPLE_PAY="applepay"}(_d||(_d={})),_d))(),wd=(()=>(function(n){n.Customer="Customer",n.Merchant="Merchant"}(wd||(wd={})),wd))(),bd=(()=>(function(n){n.GrossWithoutGst="GrossWithoutGst",n.Net="Net",n.Gross="Gross"}(bd||(bd={})),bd))();class YO{constructor(t,e){this.type=t,this.error=e}}class m3{getFullState(){return this.state}getState(t){return this.state[t]}setState(t,e){this.state[t]=e}}class JO extends m3{constructor(){super(...arguments),this.destory$=new Ht,this.detector$=new Ht,this.action$=new Ht,this.error$=new Ht}untilDestroy(){return function J3(...n){return Um(n)}(Vw(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 YO(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 y3=new oe("MOTO_PAY_APM_TOKEN"),v3=function(n){const t=[],e=JSON.stringify(n,function(r,i){if("object"==typeof i){if(-1!=t.indexOf(i))return"__cycle__";t.push(i)}return i});return console.log("Cyclic"),e},Ns=function(n,t){let e=n;return t&&(e+=`: ${v3(t)}`),console.log(e),t},qo=function(n,t){return console.log("le"),console.error(v3(n)),t&&console.log(t),t},bm=new class XO{constructor(){this._initialized=!1,this._initializedPromise=new Promise(t=>{this._resolveInitialized=t})}set initialized(t){this._initialized=t,t&&this._resolveInitialized()}get initialized(){return this._initialized}waitForInitialization(){return ss(this._initializedPromise)}};let Cm=(()=>{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){try{return this.apmMap.get(e)}catch(r){return Ns("Error occured when get apmService",this.apmMap),qo(r),null}}apmNames(){return Array.from(this.apmMap.keys())}}return n.\u0275fac=function(e){return new(e||n)(U(y3))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})(),ek=(()=>{class n{getApiConfig(e,r){var i,s,o,a,l,c;let u={BILLING_PROFILES_HOST:null==r?void 0:r.billingProfiles,PROCESSING_HOST:null==r?void 0:r.processing};return e==Is.Live?(null!==(i=u.BILLING_PROFILES_HOST)&&void 0!==i||(u.BILLING_PROFILES_HOST="https://billingprofiles.motopays.com"),null!==(s=u.PROCESSING_HOST)&&void 0!==s||(u.PROCESSING_HOST="https://processing.motopays.com")):e==Is.Prod?(null!==(o=u.BILLING_PROFILES_HOST)&&void 0!==o||(u.BILLING_PROFILES_HOST="https://billingprofiles.dating.com"),null!==(a=u.PROCESSING_HOST)&&void 0!==a||(u.PROCESSING_HOST="https://processing.dating.com")):(null!==(l=u.BILLING_PROFILES_HOST)&&void 0!==l||(u.BILLING_PROFILES_HOST=`https://billingprofiles.${e}.motopays.com`),null!==(c=u.PROCESSING_HOST)&&void 0!==c||(u.PROCESSING_HOST=`https://processing.${e}.motopays.com`)),u}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Wo=(()=>{class n extends JO{constructor(e,r){super(),this.motoApmsService=e,this.motoApiConfigService=r,this.state={isLoadCards:!1,isLoadApms:!1,isSentPayment:!1,isRemovedCard:!1,externalApms:new Set(this.motoApmsService.apmNames())},this.cards$=new ni(null),this.apms$=new ni(null),this.payment$=new ni(null),this.settings$=new ni(null),this.paymentResult$=new ni(null)}getApiConfig(){const{env:e,customEndpoints:r}=this.getStreamValue("payment$")||{};return this.motoApiConfigService.getApiConfig(e,r)}}return n.\u0275fac=function(e){return new(e||n)(U(Cm),U(ek))},n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_3=(()=>{class n extends m3{constructor(){super(...arguments),this.state={contentSize:null,paymentErrorType: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:s}){const o=Object.entries({md:r,paReq:i,termUrl:s}).reduce((l,[c,u])=>l+`${this.inputTemplate(c,u)}\n`,"");return this.formTemplate(e,o)}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=hn(n)))(r||n)}}(),n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Ko{constructor(t,e=null){this.type=t,this.payload=e}}function Dm(n){return new _i({fromObject:n})}function Em(n){const t=Object.entries(n).reduce((e,[r,i])=>(e[r]=String(i),e),{});return new ti(t)}var Ji=(()=>(function(n){n[n.DEFAULT_ANIMATE_MS=0]="DEFAULT_ANIMATE_MS"}(Ji||(Ji={})),Ji))(),Sl=(()=>(function(n){n[n.MIN_CARD_NUMBER_LENGTH=13]="MIN_CARD_NUMBER_LENGTH",n[n.MAX_CARD_NUMBER_LENGTH=19]="MAX_CARD_NUMBER_LENGTH"}(Sl||(Sl={})),Sl))(),Cd=(()=>(function(n){n.gbp="GBP",n.eur="EUR",n.nok="NOK",n.usd="USD",n.sgd="SGD",n.aud="AUD",n.cad="CAD"}(Cd||(Cd={})),Cd))(),Ml=(()=>(function(n){n.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"}(Ml||(Ml={})),Ml))(),Dd=(()=>(function(n){n.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)"}(Dd||(Dd={})),Dd))(),Zo=(()=>(function(n){n.SUCCESS_TITLE="Successful",n.WARNING_TITLE="Warning",n.ERROR_TITLE="Attention!",n.INFO_TITLE="Information"}(Zo||(Zo={})),Zo))(),Ed=(()=>(function(n){n[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"}(Ed||(Ed={})),Ed))();function Qo(n,t,e=!0,r=0){const i=n[t[r]],s=t[r+1];if(!function sk(n,t){return typeof n===t}(s,"string")&&r+1<t.length)throw new Error(`Invalid path key.The key type must be a string. \n Key: ${s}, \n Index: ${r+1},\n Path: ${JSON.stringify(t,(o,a)=>a||String("undefined"))}\n `);return s&&i?Qo(i,t,e,r+1):e?function ok(n){return JSON.parse(JSON.stringify(n))}(i):i}function b3(){const n=screen.height||window.innerHeight,t=screen.width||window.innerWidth,e=Ed.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 Os(n,t){return`${n.endsWith("/")?n.slice(0,-1):n}${t.startsWith("/")?t:`/${t}`}`}const C3="Watchdog fake error";const lk=new oe("MOTO_PAY_SERVICE_TOKEN");let D3=(()=>{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(Wo))},n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),uk=(()=>{class n{constructor(e=null,r,i,s){this.payService=e,this.applePayMerchInfoService=r,this.http=i,this.config=s,this.secretId=2}getUserPaymentMethods(e,r){if(!r)return Yn([]);const i=Dm({merchantId:e}),s=Em({Authorization:r}),a=Os(this.config.get("BILLING_PROFILES_HOST"),"/api/UserPaymentMethods");return this.http.get(a,{params:i,headers:s}).pipe(Cs(()=>Yn([])))}getApmLogos(e,r,i){const s=Dm({currency:i,payerId:r});console.log(this.applePayMerchInfoService.getValidationUrl());const a=Os(this.config.get("PROCESSING_HOST"),`/api/merchants/${e}/settings`);return this.http.get(a,{params:s}).pipe(kt(l=>l.payments.filter(c=>"card"!=c.name)),kt(l=>{const c=new Set;return l.filter(u=>!c.has(u.name)&&(c.add(u.name),!0))}),Cs(()=>Yn([])))}getPaymentInfo(e,r){const s=Os(this.config.get("PROCESSING_HOST"),`/api/merchants/${e}/payments/${r}`);return this.http.get(s)}pay(e,r){const i=b3(),s=Object.assign({},i);e.ipAddress&&(s.ipAddress=e.ipAddress);const a={headers:Em(s)},c=Os(this.config.get("PROCESSING_HOST"),`/api/merchants/${e.merchantId}/payments`);let u=class ck{static build(t,e){var r,i,s,o,a,l,c;const u={amount:t.amount,amountType:t.amountType,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,h=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==h?void 0:h.token,type:e.rebillAnchor?"rebill":e.paymentType},g={browserData:b3()},_={id:null!==(s=null!==(i=t.customerId)&&void 0!==i?i:t.email)&&void 0!==s?s:Qw().substring(0,36),email:null!==(o=t.email)&&void 0!==o?o:`${Qw().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:g,billingAddress:t.billingAddress};return{id:t.paymentId,initiator:null!==(c=t.initiator)&&void 0!==c?c:wd.Customer,returnUrl:t.returnUrl,webhookUrl:t.webhookUrl,order:u,payer:_,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 s=Dm({merchantId:r}),o=Em({Authorization:i}),l=Os(this.config.get("BILLING_PROFILES_HOST"),`/api/UserPaymentMethods/${e}`);return this.http.delete(l,{params:s,headers:o})}getSecretKey(){const r=Os(this.config.get("PROCESSING_HOST"),`/api/security/key/${this.secretId}`);return this.http.get(r)}}return n.\u0275fac=function(e){return new(e||n)(U(lk,8),U(Dg),U(ug),U(D3))},n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),E3=(()=>{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 ni(null),this.apms$=new ni(null),this.payment$=new ni(null),this.settings$=new ni(null),this.paymentResult$=new ni(null),this.apmRecover=()=>Yn([])}initPaymentChangedListener(){this.dataService.getStream("payment$").pipe(pg(null),Hw(e=>this.dataService.action(new Ko("change-payment",e))),vu(Boolean),hl(100),Hw(e=>{this.dataService.setState("isLoadCards",!0),this.dataService.setState("isLoadApms",!0),this.dataService.detect()}),Fo(e=>{const r=this.apiService.getUserPaymentMethods(e.merchantId,e.customerAuthToken);return gg([r.pipe(kt(o=>o.filter(a=>"card"===a.type.toLowerCase()).map(a=>a))),this.prepareApmsResponse(r.pipe(kt(o=>o.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 Ko("get-cards",e)),bm.initialized=!0})}loadCards(){this.dataService.setState("isLoadCards",!0);const{merchantId:e,customerAuthToken:r}=this.dataService.getStreamValue("payment$");this.apiService.getUserPaymentMethods(e,r).pipe(kt(i=>i.filter(s=>"card"===s.type.toLowerCase()).map(s=>s))).subscribe(i=>{this.dataService.setState("isLoadCards",!1),this.dataService.emitToStream("cards$",i),this.dataService.action(new Ko("get-cards",i))})}pay(e){this.dataService.setState("isSentPayment",!0);const r=this.dataService.getStreamValue("payment$");this.apiService.pay(r,e).subscribe({next:s=>{this.dataService.action(new Ko("pay",s))},error:this.dataService.errorHandler("error-pay")})}alternativePay(e){this.dataService.setState("isSentPayment",!0);const r=o=>{this.dataService.action(new Ko("pay",o))},{type:i}=e.requisites,s=this.motoApmsService.get(i);s.isAvailable().subscribe(o=>{if(!o)return void this.dataService.errorHandler("error-pay");const a=this.dataService.getStreamValue("payment$");s.pay(a,e).pipe(Fo(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,customerAuthToken:i}=this.dataService.getStreamValue("payment$");this.apiService.removeCard(e.id,r,i).subscribe(()=>{this.dataService.setState("isRemovedCard",!1),this.dataService.action(new Ko("remove-card",e))})}prepareApmsResponse(e){return e.pipe(Fo(r=>this.prepareApms(r)),Cs(this.apmRecover))}prepareApms(e){const{merchantId:r,customerId:i,currency:s}=this.dataService.getStreamValue("payment$");return this.apiService.getApmLogos(r,i,s).pipe(kt(o=>{let a=this.joinUserApmsAndApms(e,o);return this.sortApms(a)}),function GA(n){return Dn((t,e)=>{let r=!1;t.subscribe(ln(e,i=>{r=!0,e.next(i)},()=>{r||e.next(n),e.complete()}))})}([]),Fo(o=>this.filterApms(o)))}joinUserApmsAndApms(e,r){return r.map(i=>{const s=e.findIndex(o=>o.name.toLocaleLowerCase()===i.name.toLocaleLowerCase());return s<0?{name:i.name,logo:i.logo,type:i.name}:Object.assign(Object.assign({},e[s]),{logo:i.logo})})}filterApms(e){const r=e.map(i=>{if(!this.motoApmsService.has(i.name))return Ns(`${i.name} is not in apms`),Yn(i);try{return this.motoApmsService.get(i.name).isAvailable().pipe(kt(s=>Ns(`Is ${i.name} available: `,s)?i:null),Cs(s=>qo(s,Yn(null))))}catch(s){return Ns("error when get 1"),qo(s),Yn(null)}});return r.length?gg(r).pipe(kt(i=>i.filter(s=>s))):Yn([])}sortApms(e){return e.sort((r,i)=>Number(!i.logo)-Number(!r.logo))}}return n.\u0275fac=function(e){return new(e||n)(U(uk),U(Cm),U(Wo))},n.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),dk=(()=>{class n{constructor(){this._close=new He,this.showCloseButton=!0}close(){this._close.emit()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Rt({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&&(W(0,"header",0)(1,"h6",1),De(2,"Checkout"),K(),ae(3,eO,3,0,"div",2),K()),2&e&&(G(3),q("ngIf",r.showCloseButton))},directives:[mr],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})(),hk=(()=>{class n{constructor(){this.description=null,this.links=null}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Rt({type:n,selectors:[["moto-pay-footer"]],inputs:{description:"description",links:"links"},decls:1,vars:1,consts:[["class","__ndb-footer",4,"ngIf"],[1,"__ndb-footer"],["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-link fz-12 fw-500 font-description",4,"ngIf"],[1,"__ndb-footer-links-link","fz-12","fw-500","font-description"],[1,"__ndb-footer-description","fz-11","fw-500","font-description"]],template:function(e,r){1&e&&ae(0,sO,3,2,"div",0),2&e&&q("ngIf",(null==r.links?null:r.links.length)||r.description)},directives:[mr,uu],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:15px;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;flex-wrap:wrap}.__ndb-footer-links-link[_ngcontent-%COMP%]{margin-right:10px;white-space:nowrap}.__ndb-footer-description[_ngcontent-%COMP%]{line-height:1.1}"],changeDetection:0}),n})();class Sm{constructor(t){this.animationTime=Ji.DEFAULT_ANIMATE_MS,Object.assign(this,t)}}const fk=Ho("ANHeight",[Lr(":enter",[Pt({overflow:"hidden",height:"0px"}),Fr(Ji.DEFAULT_ANIMATE_MS,Pt({height:"*",overflow:"hidden"}))]),Lr(":leave",[Pt({height:"*",overflow:"hidden"}),Fr(Ji.DEFAULT_ANIMATE_MS,Pt({height:"0px",overflow:"hidden"}))])]),pk=Ho("ANScale",[Lr(":enter",[Pt({opacity:0,transform:"scale(0)"}),Fr(Ji.DEFAULT_ANIMATE_MS,Pt({opacity:1,transform:"scale(1)"}))]),Lr(":leave",Fr(Ji.DEFAULT_ANIMATE_MS,Pt({opacity:0,transform:"scale(0)"})))]),S3=n=>{const t=new Sm({animationName:"ANTransform",fromStyles:{opacity:"0",transform:"translateY(-100%)"},toStyles:{opacity:"1",transform:"translateY(0%)"}}),e=Object.assign(t,n),{animationName:r,animationTime:i,fromStyles:s,toStyles:o}=e;return Ho(r,[Lr(":enter",[Pt(s),Fr(i,Pt(o))]),Lr(":leave",[Pt(o),Fr(i,Pt(s))])])},gk=n=>{const t=new Sm({animationName:"ANStates",fromState:"a",toState:"b"}),e=Object.assign(t,n),{animationName:r,animationTime:i,fromStyles:s,toStyles:o,fromState:a,toState:l}=e;return Ho(r,[pl(a,Pt(s)),pl(l,Pt(o)),Lr(`${a}<=>${l}`,Fr(i))])},mk=n=>{const t=new Sm({animationName:"ANStates"}),e=Object.assign(t,n),{animationName:r,animationTime:i,fromStyles:s,toStyles:o}=e;return Ho(r,[Lr(":enter",[Pt(s),Fr(i,Pt(o))]),Lr(":leave",[Pt(o),Fr(i,Pt(s))])])};let Tl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Rt({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&&ae(0,oO,2,2,"div",0),2&e&&q("ngIf",r.src)},directives:[mr],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 Yo={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 "customerId" is required in the payment model',"invalid-env":`The field "env" in the payment model can only be of these types: "${Object.values(Is).join(", ")}"`,"not-exist-payment-id":"The field paymentId is required in the payment model"}}};let M3=(()=>{class n{transform(e){return`${Yo.urls.resources}/images/${e}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=ht({name:"image",type:n,pure:!0}),n})(),T3=(()=>{class n{constructor(){this.shadow=!0}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Rt({type:n,selectors:[["moto-loader"]],hostVars:1,hostBindings:function(e,r){2&e&&Bc("@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&&(W(0,"div",0),ot(1,"moto-picture",1),je(2,"image"),K()),2&e&&(Qr("shadow",r.shadow),G(1),q("src",yi(2,3,"spinner-small.gif")))},directives:[Tl],pipes:[M3],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:[mk({animationName:"ANFade",fromStyles:{opacity:"0"},toStyles:{opacity:"1"}})]},changeDetection:0}),n})();const Mm=new oe("moto-window-document",{providedIn:"root",factory:()=>window});function A3(n){return n&&n.replace(/\s+/g," ").trim()}let Tm=(()=>{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 He}ngOnInit(){this.initFormControl()}initFormControl(){this.formControl=this.injector.get(Di)}get isInvalidControl(){return"invalid"===this.status||function vk(n){const{invalid:t,pristine:e,touched:r}=n;return t&&r&&!e}(this.formControl)&&this.validate}setValue(e){this.value=A3(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=A3(e),this.cdr.detectChanges()}setDisabledState(e){this.disabled=e,this.cdr.detectChanges()}}return n.\u0275fac=function(e){return new(e||n)(I(il),I(vt))},n.\u0275cmp=Rt({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:[it([{provide:Jn,useExisting:Ze(()=>n),multi:!0}])],ngContentSelectors:lO,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 Mv(n){const t=k()[16][6];if(!t.projection){const r=t.projection=Ta(n?n.length:1,null),i=r.slice();let s=t.child;for(;null!==s;){const o=n?AD(s,n):0;null!==o&&(i[o]?i[o].projectionNext=s:r[o]=s,i[o]=s),s=s.next}}}(aO),W(0,"div",0)(1,"div",1),Jf(2),K(),W(3,"div",2)(4,"input",3,4),Le("ngModelChange",function(s){return r.setValue(s)})("blur",function(){return r.onTouched()})("paste",function(s){return r.paste(s)}),K()(),W(6,"div",1),Jf(7,1),K()()),2&e&&(Qr("transparent",r.transparent)("invalid",r.isInvalidControl),G(4),q("type",r.type)("placeholder",r.placeholder)("minlength",r.minlength)("maxlength",r.maxlength)("mask",r.mask)("dropSpecialCharacters",r.dropSpecialCharacters)("ngModel",r.value),wn("data-locator",r.formControlName||r.placeholder)("autocomplete",r.autocomplete))},directives:[xI,Ou,Ku,bl,Fu,Hg],styles:[""],changeDetection:0}),n})();const Ck={"form-field-length":Ps};let Am=(()=>{class n{transform(e,r){const s=Ck[r][e];if(function ik(n){return!function w3(n){return null==n}(n)}(s))return s;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=ht({name:"enum",type:n,pure:!0}),n})(),Al=(()=>{class n{transform(e,r,i){return Boolean(e)?r:i}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=ht({name:"condition",type:n,pure:!0}),n})(),x3=(()=>{class n extends yd{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,[Ci.maxLength(Ps.MAX_TEL),Ci.minLength(Ps.MIN_TEL)]]})}initFormValueListener(){this.form.valueChanges.pipe(pg(null),hl(50),Ww(),vu(([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(vt),I(Cb))},n.\u0275cmp=Rt({type:n,selectors:[["moto-pay-additional-form"]],inputs:{fieldSettings:"fieldSettings"},exportAs:["additionalFormRef"],features:[Be],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&&(W(0,"form",0),ae(1,uO,10,15,"div",1),K()),2&e&&(q("formGroup",r.form),G(1),q("ngIf",r.fieldSettings.settings.isPhoneNumberFieldVisible))},directives:[Tm,Ug,Ag,wl,mr,Fu,Wu,Ku,bl],pipes:[Am,Al],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:[S3()]},changeDetection:0}),n})();const Dk={"american-express":[3,4]};class Sd{static luhnAlgorithm({value:t}){return Boolean(t)&&function Ek(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),[s,o,a,l]=t.split(""),c=`${s}${o}`,h=+`${a}${l}`<i;return+c<1||+c>12||h?e:null}return e}static cardNumberLength({value:t}){const e=(null==t?void 0:t.length)||0;return e>=Sl.MIN_CARD_NUMBER_LENGTH&&e<=Sl.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),[s]=Nu(null==i?void 0:i.value),o=Boolean(null==s?void 0:s.code.size)&&Boolean(e),a=Dk[null==s?void 0:s.type];return o&&((null==s?void 0:s.code.size)===(null==e?void 0:e.length)||(null==a?void 0:a.includes(null==e?void 0:e.length)))?null:{cardCodeLength:!0}}}}let xl=(()=>{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(Nr),I(ei))},n.\u0275dir=pe({type:n,selectors:[["","motoLet",""]],inputs:{_motoLet:["motoLet","_motoLet"]}}),n})(),Md=(()=>{class n{transform(e,r,i=null){const[s]=Nu(e);if(!s)return i;switch(r){case"logo":return this.getLogo(s);case"payment-system":return s.niceType;case"card-number-mask":return"0000 0000 0000 0000 000";case"secure-text":return Dd[s.type];case"code":return s.code.name;case"code-mask":{const{size:o}=s.code;return Array.from({length:o}).fill("0").join("")}}}getLogo(e){return e?`${Yo.urls.resources}/images/${Ml[e.type]||Ml.default}.svg`:null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=ht({name:"cardInfo",type:n,pure:!0}),n})(),I3=(()=>{class n extends yd{constructor(e,r){super(e),this.injector=e,this.fb=r,this.isErrorSubmit=!1,this.creadentialErrorMessages=Qo(Yo,["formErrorMessages"])}ngOnInit(){this.initForm(),this.initFormValueListener()}initForm(){this.form=this.fb.group({cardCredentials:this.fb.group({cardNumber:[null,[Ci.required,Sd.luhnAlgorithm,Sd.cardNumberLength]],expiration:[null,[Ci.required,Ci.minLength(4),Ci.maxLength(4),Sd.cardExpiration]],cvv:[null,[Ci.required,Sd.cardCodeLength()]]}),cardHolder:[null,[Ci.required,Ci.maxLength(Ps.MAX_CARD_HOLDER)]]})}initFormValueListener(){this.form.valueChanges.pipe(pg(null),hl(50),Ww(),vu(([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 yk(n){return n.replace(/\s/g,"")}(e);this.form.get("cardCredentials").get("cardNumber").setValue(r,{onlySelf:!0}),function bk(n,t,e=null,r=!0){t.forEach(i=>{const s=n.get(i);s||function rk(n){throw new Error(n)}(`Invalid form control name: "${i}"`),s.reset(e),r&&s.updateValueAndValidity()})}(this.form.get("cardCredentials"),["expiration","cvv"]),this.detect()}get paymentsErrorMsg(){const e=this.form.get("cardCredentials"),[r]=function wk(n){return function _k(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(vt),I(Cb))},n.\u0275cmp=Rt({type:n,selectors:[["moto-pay-card-form"]],exportAs:["cardFormRef"],features:[Be],decls:16,vars:14,consts:[[1,"__ndb-form",3,"formGroup"],[1,"__ndb-form-stage"],[1,"__ndb-form-stage-header"],[1,"__ndb-form-stage-header-title","fz-14","fw-500"],["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"],["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&&(W(0,"form",0)(1,"div",1)(2,"div",2)(3,"h6",3),De(4," Payment details "),K(),ae(5,dO,2,2,"span",4),K(),ae(6,hO,19,48,"div",5),K(),W(7,"div",1)(8,"div",2)(9,"h6",3),De(10,"Name on card"),K(),ae(11,fO,2,1,"span",6),K(),W(12,"div",7),ot(13,"moto-form-input",8),je(14,"enum"),je(15,"condition"),K()()()),2&e&&(q("formGroup",r.form),G(5),q("ngIf",r.isInvalidCredentials),G(1),q("motoLet",r.getFormValue()),G(5),q("ngIf",r.isInvalidHolder),G(2),q("maxlength",fr(14,7,"MAX_CARD_HOLDER","form-field-length"))("validate",!1)("status",Ln(15,10,r.isInvalidHolder,"invalid","valid")))},directives:[Tm,Tl,Ug,Ag,wl,mr,xl,qu,Fu,Wu,bl],pipes:[Md,Al,Am],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-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:[S3()]},changeDetection:0}),n})();class Sk{constructor(t,e=!1){this.card=t,this.selected=e}setSelected(t){this.selected=t}}let Mk=(()=>{class n{constructor(){this.isOpenPopup=!1,this.popupid=function tk(n=1){return window.crypto.getRandomValues(new Uint32Array(n)).toString()}(),this._select=new He,this._remove=new He}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=Rt({type:n,selectors:[["moto-pay-card"]],hostBindings:function(e,r){1&e&&Le("click",function(s){return r.hidePopup(s.target)},!1,X0)},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&&(W(0,"div",0)(1,"div",1),Le("click",function(){return r.select()}),K(),ot(2,"moto-picture",2),je(3,"cardInfo"),W(4,"span",3),De(5),je(6,"cardInfo"),K(),W(7,"span",4),De(8),je(9,"slice"),K(),W(10,"div",5)(11,"i",6),Le("click",function(){return r.setPopupState(!r.isOpenPopup)}),De(12,"more_vert"),K(),W(13,"div",7)(14,"span",8),Le("click",function(){return r.remove()}),De(15,"Remove card"),K()()()()),2&e&&(G(1),Qr("selected",r.option.selected),G(1),q("src",fr(3,8,r.option.card.name,"logo")),G(3),Hi(fr(6,11,r.option.card.name,"payment-system")),G(3),Hi(fr(9,14,r.option.card.name,-6)),G(2),wn("data-card-popup",r.popupid),G(3),Qr("open",r.isOpenPopup))},directives:[Tl],pipes:[Md,Jp],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})(),P3=(()=>{class n{constructor(){this._select=new He,this._remove=new He}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(s=>s.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 Sk(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=Rt({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&&(W(0,"div",0),ae(1,gO,2,1,"ng-container",1),K(),ae(2,mO,2,0,"ng-template",null,2,vs)),2&e){const i=gs(3);G(1),q("ngIf",null==r.cardOptions?null:r.cardOptions.length)("ngIfElse",i)}},directives:[Mk,mr,uu],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})(),Pk=(()=>{class n{constructor(){this._pay=new He}pay(e){this._pay.emit(e)}trackByApm(e,r){return r.name}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Rt({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&&(ae(0,_O,5,2,"div",0),ae(1,wO,2,2,"ng-template",null,1,vs),ae(3,bO,1,0,"ng-template",null,2,vs)),2&e){const i=gs(4);q("motoLet",up(1,CO,i))}},directives:[xl,uu,iw,tP],pipes:[Al],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})(),N3=(()=>{class n{constructor(e){this.window=e}transform(e,r){const i=Cd[r];return Number(e).toLocaleString(this.window.navigator.language,{style:"currency",currency:i})}}return n.\u0275fac=function(e){return new(e||n)(I(Mm,16))},n.\u0275pipe=ht({name:"currencySymbol",type:n,pure:!0}),n})(),O3=(()=>{class n{transform(e,r,i){return r&&i&&i==bd.Net?Math.abs(e)+Math.abs(r):e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=ht({name:"price",type:n,pure:!0}),n})(),Nk=(()=>{class n extends yd{constructor(e,r,i,s,o,a){super(r),this.window=e,this.injector=r,this.toastr=i,this.dataService=s,this.viewService=o,this.facadeService=a,this.postMessageKey=Qo(Yo,["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 Ik(){let s='\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 s=s.replace("</body>","<script>\n\n const messageKey = '__moto_pay_message';\n\n function inputTemplate(name, value) {\n return `<input type=\"hidden\" name=\"${name}\" value=\"${value}\" />`;\n }\n \n function formTemplate(redirectUrl, inputsTpl) {\n return `<form action=\"${redirectUrl}\" method=\"post\">${inputsTpl}</form>`;\n }\n \n function makeFormTemplate(threeDsData) {\n const inputsTemplate = Object.entries(threeDsData).reduce((accum, [key, value]) => {\n const inputTpl = inputTemplate(key, value);\n return (accum += `${inputTpl}\n`);\n }, '');\n const template = formTemplate(threeDsData.acsurl, inputsTemplate);\n return template;\n }\n \n function simpleRedirect(url) {\n window.location.replace(url);\n }\n \n function postRedirect(threeDsData) {\n const template = makeFormTemplate(threeDsData);\n \n setTimeout(() => {\n document.body.innerHTML = template;\n const form = document.body.querySelector('form');\n form.submit();\n });\n }\n \n function onMessageReceived(event) {\n if (event.data && event.data.key == messageKey) {\n if (event.data.type == 'simpleRedirect') {\n simpleRedirect(event.data?.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>"),s}()),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",Zo.INFO_TITLE)}this.detect()}apmSubmit(e){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){this.defaultPay({requisites:e,paymentType:"card",rebillAnchor:e.rebill}),this.detect()}payWithForm(){if(this.cardFormRef.isInvalidForm)this.cardFormRef.setErrorSubmitStatus(!0);else{const e=this.cardFormRef.getFormValue(),r=this.additionalFormRef.getFormValue();this.defaultPay({requisites:e,paymentType:"card",additionalFields:r})}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")}}waitingPaymentCompleted(e){(function ak(n,t,e){return n.pipe(kt(r=>{if(t(r))return r;throw new Error(C3)}),function RA(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?Us:Dn((s,o)=>{let l,a=0;const c=()=>{let u=!1;l=s.subscribe(ln(o,d=>{i&&(a=0),o.next(d)},void 0,d=>{if(a++<e){const h=()=>{l?(l.unsubscribe(),l=null,c()):u=!0};if(null!=r){const p="number"==typeof r?Bw(r):sr(r(d,a)),g=ln(o,()=>{g.unsubscribe(),h()},()=>{o.complete()});p.subscribe(g)}else h()}else o.error(d)})),u&&(l.unsubscribe(),l=null,c())};c()})}({delay:r=>{if(r.message==C3)return Bw(e);throw r}}))})(this.facadeService.getPaymentInfo(e.payment.paymentId),i=>"needAction"!=i.payment.state,1500).subscribe(i=>{var s;this.showResultComponent(i),null===(s=this.viewState.window)||void 0===s||s.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",Zo.SUCCESS_TITLE)}afterChangePayment(){var e;null===(e=this.cardFormRef)||void 0===e||e.resetForm()}}return n.\u0275fac=function(e){return new(e||n)(I(Mm),I(vt),I(Yu),I(Wo),I(_3),I(E3))},n.\u0275cmp=Rt({type:n,selectors:[["moto-pay-main"]],viewQuery:function(e,r){if(1&e&&(Oo(DO,5,I3),Oo(EO,5,x3),Oo(SO,5,P3)),2&e){let i;No(i=ko())&&(r.cardFormRef=i.first),No(i=ko())&&(r.additionalFormRef=i.first),No(i=ko())&&(r.cardListRef=i.first)}},features:[Be],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",4,"ngIf"],["class","__ndb-main-card-form block",3,"fieldSettings",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"],["cardFormRef",""],[1,"__ndb-main-card-form","block",3,"fieldSettings"],["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"]],template:function(e,r){1&e&&(ae(0,kO,26,26,"div",0),je(1,"async")),2&e&&q("ngIf",yi(1,1,r.payment$))},directives:[P3,I3,x3,Tl,Pk,mr,xl],pipes:[Zp,Al,N3,O3,Md,Jp],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:[fk,pk,gk({animationName:"ANToggleList",fromState:"hide",toState:"show",fromStyles:{height:"0px",overflow:"hidden"},toStyles:{height:"*"}})]},changeDetection:0}),n})(),Ok=(()=>{class n{constructor(){this.resultTextsMap=Qo(Yo,["result"]),this.result=new He}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=Rt({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&&(W(0,"div",0)(1,"i",1),De(2),K(),W(3,"h6",2),De(4),K(),ae(5,RO,2,1,"p",3),K()),2&e&&(G(2),Hi(r.icon),G(2),Hi(r.title),G(1),q("ngIf",r.description))},directives:[mr],styles:[".__ndb-result[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:10px;padding:28px 28px 0}@media (max-width: 768px){.__ndb-result[_ngcontent-%COMP%]{padding:14px 20px 0}}.__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})(),kk=(()=>{class n{ngOnInit(){this.consoleErrorMsg()}consoleErrorMsg(){const e=Qo(Yo,["error","descriptionText",this.error]);console.error(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Rt({type:n,selectors:[["moto-pay-error"]],inputs:{error:"error"},decls:7,vars:0,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&&(W(0,"div",0)(1,"i",1),De(2,"cancel"),K(),W(3,"h6",2),De(4,"Invalid payment model"),K(),W(5,"p",3),De(6," You cannot make a payment! "),K()())},styles:[".__ndb-error-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:10px;padding:28px 28px 0}@media (max-width: 768px){.__ndb-error-content[_ngcontent-%COMP%]{padding:14px 20px 0}}.__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})(),k3=(()=>{class n extends yd{constructor(e,r,i,s,o){super(e),this.injector=e,this.dataService=r,this.viewService=i,this.changeDetectorService=s,this.facadeService=o,this.resize$=new Ht,this.paymentResult$=this.dataService.getStream("paymentResult$"),this.settings$=this.dataService.getStream("settings$").pipe(kt(a=>null==a?void 0:a.settings)),this.dataState=this.dataService.getFullState(),this.viewState=this.viewService.getFullState(),this._paid=new He,this._viewChange=new He,this._close=new He}set _payment(e){this.checkedPaymentModel(e)}set _settings(e){this.preparePaymentSettings(e)}onWindowResize(e){this.resize$.next(e.innerWidth)}ngOnInit(){this.initActionsListener(),this.initChangeDetectinDataListener(),this.initChangeDetectionListener(),this.facadeService.initPaymentChangedListener(),this.resize$.pipe(hl(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()})}preparePaymentSettings(e){this.settings=e;const r=new ZO(e);this.dataService.emitToStream("settings$",r)}checkedPaymentModel(e){const r=this.validatePaymentModel(e);r?(this.dataService.emitToStream("payment$",null),this.viewService.setState("paymentErrorType",r)):(this.payment=e,this.dataService.emitToStream("payment$",e),this.viewService.setState("paymentErrorType",null)),this.localDetect()}validatePaymentModel(e){switch(!0){case!e:return"not-exist-payment";case!e.customerId:return"not-exist-customer-id";case function QO({env:n}){return Object.values(Is).findIndex(t=>t===n)<0&&Object.values(vd).findIndex(t=>t===n)<0}(e):return"invalid-env";case!e.paymentId:return"not-exist-payment-id";default:return null}}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(vt),I(Wo),I(_3),I(g3),I(E3))},n.\u0275cmp=Rt({type:n,selectors:[["moto-pay-wrapper"]],viewQuery:function(e,r){if(1&e&&Oo(FO,5),2&e){let i;No(i=ko())&&(r.wrapperRef=i.first)}},hostBindings:function(e,r){1&e&&Le("resize",function(s){return r.onWindowResize(s.target)},!1,J0)},inputs:{_payment:["payment","_payment"],_settings:["settings","_settings"]},outputs:{_paid:"paid",_viewChange:"viewChange",_close:"close"},features:[Be],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,"description","links",4,"ngIf"],[4,"ngIf"],["data-locator","form-loaded",4,"ngIf"],[3,"description","links"],["data-locator","form-loaded"],[4,"ngIf","ngIfElse"],[3,"paymentResult","result"],[3,"error"]],template:function(e,r){1&e&&(ae(0,jO,9,9,"div",0),je(1,"async"),ae(2,UO,1,2,"ng-template",null,1,vs),ae(4,zO,2,3,"ng-template",null,2,vs),ae(6,GO,1,1,"ng-template",null,3,vs)),2&e&&q("motoLet",yi(1,1,r.settings$))},directives:[dk,hk,T3,Nk,Ok,kk,xl,mr],pipes:[Zp],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})(),Rk=(()=>{class n{constructor(){this.payment=null,this.settings=null,this._close=new He,this._paid=new He,this._viewChange=new He,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=Rt({type:n,selectors:[["moto-pay"]],viewQuery:function(e,r){if(1&e&&Oo(qO,5,k3),2&e){let i;No(i=ko())&&(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&&(W(0,"moto-pay-wrapper",0,1),Le("paid",function(s){return r.paid(s)})("viewChange",function(s){return r.viewChange(s)})("close",function(){return r.close()}),K()),2&e&&q("payment",r.payment)("settings",r.settings)},directives:[k3],styles:[""]}),n})(),Fk=(()=>{class n{constructor(){}intercept(e,r){return e.context.get(KO),r.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})(),Lk=(()=>{class n{constructor(e){this.toastr=e}intercept(e,r){return e.context.get(WO)?r.handle(e):r.handle(e).pipe(Cs(i=>{const{Errors:s}=i.error||{};let o=i.message;return qo(i),s&&(o=s[0].Message),401==i.status&&(o="Not authorized (details in console)",console.error(i)),this.toastr.error(o,Zo.ERROR_TITLE),function qA(n,t){const e=be(n)?n:()=>n,r=i=>i.error(e());return new jt(t?i=>t.schedule(r,0,i):r)}(()=>i)}))}}return n.\u0275fac=function(e){return new(e||n)(U(Yu))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})();const $k=[du];let Td=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[$k,du]}),n})(),Ad=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({}),n})(),R3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[[Td,Ad]]}),n})(),F3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({}),n})();const Uk=[Qg.forRoot()];let Im=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[Uk,Qg]}),n})();const zk=[Tm,(()=>{class n{constructor(){}registerOnChange(e){}registerOnTouched(e){}setDisabledState(e){}ngOnInit(){}writeValue(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Rt({type:n,selectors:[["moto-form-textarea"]],features:[it([{provide:Jn,useExisting:Ze(()=>n),multi:!0}])],decls:2,vars:0,consts:[[1,"__ndb-form-control"]],template:function(e,r){1&e&&(W(0,"div",0),ot(1,"textarea"),K())},styles:[""],changeDetection:0}),n})()],L3=[Zg,bb];zk.concat(L3);let $3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[[...L3,Td,Im,Ad],Zg,bb]}),n})();const Gk=[Td,$3,R3,F3,Ad,Im];let qk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[Gk,Td,$3,R3,F3,Ad,Im]}),n})();const Wk=new oe("LANGUAGE_TOKEN",{factory:()=>vc(Mm).navigator.language});let Kk=(()=>{class n{constructor(e,r){this.clientLanguage=e,this.applePayService=r,this.name=_d.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){try{return this.applePayService.canMakePayment()}catch(r){return Ns("error when get 2"),qo(r),Yn(null)}}pay(e){Ns("pay");try{const{amount:r,currency:i,description:s,billingAddress:o,merchantId:a}=e,l=Boolean(null==o?void 0:o.country)?o.country:this.defaultCountryCode,c={total:{amount:r.toString(),currency:i.toUpperCase(),label:s},countryCode:l.toUpperCase(),merchantId:a};return this.applePayService.pay(c).pipe(kt(({payment:u})=>JSON.stringify(u)))}catch(r){throw Ns("On pay"),qo(r),r}}}return n.\u0275fac=function(e){return new(e||n)(U(Wk),U(c8))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})(),Zk=(()=>{class n{constructor(e){this.injector=e}getValidationUrl(){return bm.waitForInitialization().pipe(kt(()=>{const e=this.injector.get(Wo);return Os(this.injector.get(D3).get("PROCESSING_HOST"),`api/applepay/${e.getStreamValue("payment$").merchantId}/merchantValidation`)}))}getAuthToken(){return bm.waitForInitialization().pipe(kt(()=>this.injector.get(Wo).getStreamValue("payment$").customerAuthToken))}}return n.\u0275fac=function(e){return new(e||n)(U(vt))},n.\u0275prov=se({token:n,factory:n.\u0275fac}),n})(),Qk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({providers:[Cm,{provide:wu,useClass:Fk,multi:!0},{provide:wu,useClass:Lk,multi:!0},{provide:y3,useClass:Kk,multi:!0},{provide:Dg,useClass:Zk}],imports:[[Lw,XN,qk,XI.forRoot(),xx.forRoot(),nP]]}),n})(),Yk=(()=>{class n{constructor(e){this.injector=e}ngDoBootstrap(e){const{injector:r}=this,i=function mA(n,t){const e=function cA(n,t){return t.get(ys).resolveComponentFactory(n).inputs}(n,t.injector),r=t.strategyFactory||new fA(n,t.injector),i=function lA(n){const t={};return n.forEach(({propName:e,templateName:r})=>{t[function rA(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}(r)]=e}),t}(e);class s extends gA{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 s.observedAttributes=Object.keys(i),e.forEach(({propName:o})=>{Object.defineProperty(s.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(a){this.ngElementStrategy.setInputValue(o,a)},configurable:!0,enumerable:!0})}),s}(Rk,{injector:r});customElements.define("moto-web-pay",i)}}return n.\u0275fac=function(e){return new(e||n)(U(vt))},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[[_w,Qk]]}),n})();(function BS(){O_=!1})(),zT().bootstrapModule(Yk).catch(n=>console.error(n))},791:function(rr,lt,Qt){var be=this&&this.__assign||function(){return be=Object.assign||function(ze){for(var et,mt=1,jn=arguments.length;mt<jn;mt++)for(var is in et=arguments[mt])Object.prototype.hasOwnProperty.call(et,is)&&(ze[is]=et[is]);return ze},be.apply(this,arguments)},gn=Qt(251),Mt=Qt(273),Ke=Qt(87),Ot=Qt(95),ir=Qt(645),an={},ut={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"},Cn=[ut.VISA,ut.MASTERCARD,ut.AMERICAN_EXPRESS,ut.DINERS_CLUB,ut.DISCOVER,ut.JCB,ut.UNIONPAY,ut.MAESTRO,ut.ELO,ut.MIR,ut.HIPER,ut.HIPERCARD],mn=ir.clone(Cn);function Hs(ze){return an[ze]||gn[ze]}function fa(ze,et){void 0===et&&(et=!1);var mt=mn.indexOf(ze);if(!et&&-1===mt)throw new Error('"'+ze+'" is not a supported card type.');return mt}function Br(ze){var et=[];if(!Ke.isValidInputType(ze))return et;if(0===ze.length)return function ha(){return mn.map(function(ze){return ir.clone(Hs(ze))})}();mn.forEach(function(jn){var is=Hs(jn);Mt.addMatchingCardsToResults(ze,is,et)});var mt=Ot.findBestMatch(et);return mt?[mt]:et}Br.getTypeInfo=function(ze){return ir.clone(Hs(ze))},Br.removeCard=function(ze){var et=fa(ze);mn.splice(et,1)},Br.addCard=function(ze){var et=fa(ze.type,!0);an[ze.type]=ze,-1===et&&mn.push(ze.type)},Br.updateCard=function(ze,et){var mt=an[ze]||gn[ze];if(!mt)throw new Error('"'+ze+"\" is not a recognized type. Use `addCard` instead.'");if(et.type&&mt.type!==et.type)throw new Error("Cannot overwrite type parameter.");var jn=ir.clone(mt);jn=be(be({},jn),et),an[jn.type]=jn},Br.changeOrder=function(ze,et){var mt=fa(ze);mn.splice(mt,1),mn.splice(et,0,ze)},Br.resetModifications=function(){mn=ir.clone(Cn),an={}},Br.types=ut,rr.exports=Br},273:(rr,lt,Qt)=>{Object.defineProperty(lt,"__esModule",{value:!0}),lt.addMatchingCardsToResults=void 0;var be=Qt(645),gn=Qt(694);lt.addMatchingCardsToResults=function Mt(Ke,Ot,ir){var an,ut;for(an=0;an<Ot.patterns.length;an++){var Cn=Ot.patterns[an];if(gn.matches(Ke,Cn)){var mn=be.clone(Ot);ut=Array.isArray(Cn)?String(Cn[0]).length:String(Cn).length,Ke.length>=ut&&(mn.matchStrength=ut),ir.push(mn);break}}}},251:rr=>{rr.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:(rr,lt)=>{Object.defineProperty(lt,"__esModule",{value:!0}),lt.clone=void 0,lt.clone=function Qt(be){return be?JSON.parse(JSON.stringify(be)):null}},95:(rr,lt)=>{Object.defineProperty(lt,"__esModule",{value:!0}),lt.findBestMatch=void 0,lt.findBestMatch=function be(gn){return function Qt(gn){var Mt=gn.filter(function(Ke){return Ke.matchStrength}).length;return Mt>0&&Mt===gn.length}(gn)?gn.reduce(function(Mt,Ke){return!Mt||Number(Mt.matchStrength)<Number(Ke.matchStrength)?Ke:Mt}):null}},87:(rr,lt)=>{Object.defineProperty(lt,"__esModule",{value:!0}),lt.isValidInputType=void 0,lt.isValidInputType=function Qt(be){return"string"==typeof be||be instanceof String}},694:(rr,lt)=>{Object.defineProperty(lt,"__esModule",{value:!0}),lt.matches=void 0,lt.matches=function gn(Mt,Ke){return Array.isArray(Ke)?function Qt(Mt,Ke,Ot){var ir=String(Ke).length,an=Mt.substr(0,ir),ut=parseInt(an,10);return Ke=parseInt(String(Ke).substr(0,an.length),10),Ot=parseInt(String(Ot).substr(0,an.length),10),ut>=Ke&&ut<=Ot}(Mt,Ke[0],Ke[1]):function be(Mt,Ke){return(Ke=String(Ke)).substring(0,Mt.length)===Mt.substring(0,Ke.length)}(Mt,Ke)}}},rr=>{rr(rr.s=853)}]);