@alma/widgets 1.1.0 → 2.1.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.
- package/CHANGELOG.md +79 -0
- package/README.md +56 -1
- package/dist/assets/fonts/Eina04-Bold.ttf +0 -0
- package/dist/assets/fonts/Eina04-Bold.woff +0 -0
- package/dist/assets/fonts/PublicSans-VariableFont_wght.ttf +0 -0
- package/dist/types/Widgets/EligibilityModal/index.d.ts +9 -0
- package/dist/types/Widgets/EligibilityModal/modal.test.d.ts +1 -0
- package/dist/types/Widgets/PaymentPlan.d.ts +11 -0
- package/dist/types/Widgets/button.test.d.ts +1 -0
- package/dist/types/assets/Logo.d.ts +8 -0
- package/dist/types/components/Loader/index.d.ts +5 -0
- package/dist/types/components/Modal/index.d.ts +12 -0
- package/dist/types/consts.d.ts +6 -0
- package/dist/types/hooks/useButtonAnimation.d.ts +6 -0
- package/dist/types/hooks/useFetchEligibility.d.ts +3 -0
- package/dist/types/index.d.ts +6 -7
- package/dist/types/intl/IntlProvider.d.ts +8 -0
- package/dist/types/intl/utils.d.ts +2 -0
- package/dist/types/setupTests.d.ts +1 -0
- package/dist/types/test/index.d.ts +7 -0
- package/dist/types/types.d.ts +60 -13
- package/dist/types/utils/fetch.d.ts +6 -0
- package/dist/types/utils/filterEligibility.d.ts +3 -0
- package/dist/types/utils/index.d.ts +4 -9
- package/dist/types/utils/paymentPlanStrings.d.ts +4 -0
- package/dist/types/widgets_controller.d.ts +8 -7
- package/dist/widgets.css +5 -0
- package/dist/widgets.js +2 -0
- package/dist/widgets.js.map +1 -0
- package/dist/widgets.m.js +2 -0
- package/dist/widgets.m.js.map +1 -0
- package/dist/widgets.modern.js +2 -0
- package/dist/widgets.modern.js.map +1 -0
- package/dist/widgets.umd.js +2 -0
- package/dist/widgets.umd.js.map +1 -0
- package/package.json +31 -16
- package/dist/alma-widgets.css +0 -2
- package/dist/alma-widgets.js +0 -2
- package/dist/alma-widgets.js.map +0 -1
- package/dist/alma-widgets.m.js +0 -2
- package/dist/alma-widgets.m.js.map +0 -1
- package/dist/alma-widgets.modern.js +0 -2
- package/dist/alma-widgets.modern.js.map +0 -1
- package/dist/alma-widgets.umd.js +0 -2
- package/dist/alma-widgets.umd.js.map +0 -1
- package/dist/types/assets/alma.svg.d.ts +0 -2
- package/dist/types/assets/cards/cb.svg.d.ts +0 -2
- package/dist/types/assets/cards/mastercard.svg.d.ts +0 -2
- package/dist/types/assets/cards/visa.svg.d.ts +0 -2
- package/dist/types/components/Amount.d.ts +0 -9
- package/dist/types/components/CardLogo.d.ts +0 -7
- package/dist/types/components/Modal.d.ts +0 -6
- package/dist/types/widgets/HowItWorks/HowItWorks.d.ts +0 -16
- package/dist/types/widgets/HowItWorks/HowItWorksRenderer.d.ts +0 -14
- package/dist/types/widgets/HowItWorks/components/PaymentPlan/Installment.d.ts +0 -7
- package/dist/types/widgets/HowItWorks/components/PaymentPlan/InstallmentPlaceholder.d.ts +0 -4
- package/dist/types/widgets/HowItWorks/components/PaymentPlan/PaymentPlan.d.ts +0 -6
- package/dist/types/widgets/HowItWorks/components/PlanIntro.d.ts +0 -5
- package/dist/types/widgets/HowItWorks/components/PlanSelector/PlanSelector.d.ts +0 -9
- package/dist/types/widgets/HowItWorks/components/PlanSelector/PlanSelectorItems.d.ts +0 -10
- package/dist/types/widgets/HowItWorks/types.d.ts +0 -7
- package/dist/types/widgets/PaymentPlans/PaymentPlans.d.ts +0 -16
- package/dist/types/widgets/PaymentPlans/PaymentPlansRenderer.d.ts +0 -16
- package/dist/types/widgets/PaymentPlans/components/PlanPill.d.ts +0 -10
- package/dist/types/widgets/PaymentPlans/components/PlanPillPlaceholder.d.ts +0 -5
- package/dist/types/widgets/PaymentPlans/components/PlanSummary.d.ts +0 -9
- package/dist/types/widgets/PaymentPlans/components/plansPlaceholders.d.ts +0 -12
- package/dist/types/widgets/PaymentPlans/types.d.ts +0 -20
- package/dist/types/widgets/Widget.d.ts +0 -14
- package/dist/types/widgets/config.d.ts +0 -26
- package/dist/types/widgets/index.d.ts +0 -2
package/dist/alma-widgets.umd.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).Alma={})}(this,function(t){var e=Math.ceil,n=Math.floor,r=function(t){return isNaN(t=+t)?0:(t>0?n:e)(t)},o=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},i=function(t){return function(e,n){var i,a,c=String(o(e)),u=r(n),s=c.length;return u<0||u>=s?t?"":void 0:(i=c.charCodeAt(u))<55296||i>56319||u+1===s||(a=c.charCodeAt(u+1))<56320||a>57343?t?c.charAt(u):i:t?c.slice(u,u+2):a-56320+(i-55296<<10)+65536}},a={codeAt:i(!1),charAt:i(!0)},c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function u(t,e,n){return t(n={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},n.exports),n.exports}var s=function(t){return t&&t.Math==Math&&t},l=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof c&&c)||function(){return this}()||Function("return this")(),f=function(t){try{return!!t()}catch(t){return!0}},p=!f(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),h=function(t){return"object"==typeof t?null!==t:"function"==typeof t},d=l.document,v=h(d)&&h(d.createElement),m=function(t){return v?d.createElement(t):{}},y=!p&&!f(function(){return 7!=Object.defineProperty(m("div"),"a",{get:function(){return 7}}).a}),g=function(t){if(!h(t))throw TypeError(String(t)+" is not an object");return t},w=function(t,e){if(!h(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!h(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!h(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!h(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},_=Object.defineProperty,b={f:p?_:function(t,e,n){if(g(t),e=w(e,!0),g(n),y)try{return _(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},x=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},C=p?function(t,e,n){return b.f(t,e,x(1,n))}:function(t,e,n){return t[e]=n,t},S=function(t,e){try{C(l,t,e)}catch(n){l[t]=e}return e},E=l["__core-js_shared__"]||S("__core-js_shared__",{}),O=Function.toString;"function"!=typeof E.inspectSource&&(E.inspectSource=function(t){return O.call(t)});var j,A,k,P=E.inspectSource,L=l.WeakMap,T="function"==typeof L&&/native code/.test(P(L)),N={}.hasOwnProperty,M=function(t,e){return N.call(t,e)},R=u(function(t){(t.exports=function(t,e){return E[t]||(E[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.8.1",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})}),I=0,D=Math.random(),F=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++I+D).toString(36)},U=R("keys"),H=function(t){return U[t]||(U[t]=F(t))},z={};if(T){var q=E.state||(E.state=new(0,l.WeakMap)),B=q.get,V=q.has,W=q.set;j=function(t,e){return e.facade=t,W.call(q,t,e),e},A=function(t){return B.call(q,t)||{}},k=function(t){return V.call(q,t)}}else{var G=H("state");z[G]=!0,j=function(t,e){return e.facade=t,C(t,G,e),e},A=function(t){return M(t,G)?t[G]:{}},k=function(t){return M(t,G)}}var K,Y,J,X={set:j,get:A,has:k,enforce:function(t){return k(t)?A(t):j(t,{})},getterFor:function(t){return function(e){var n;if(!h(e)||(n=A(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},$={}.propertyIsEnumerable,Z=Object.getOwnPropertyDescriptor,Q={f:Z&&!$.call({1:2},1)?function(t){var e=Z(this,t);return!!e&&e.enumerable}:$},tt={}.toString,et=function(t){return tt.call(t).slice(8,-1)},nt="".split,rt=f(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==et(t)?nt.call(t,""):Object(t)}:Object,ot=function(t){return rt(o(t))},it=Object.getOwnPropertyDescriptor,at={f:p?it:function(t,e){if(t=ot(t),e=w(e,!0),y)try{return it(t,e)}catch(t){}if(M(t,e))return x(!Q.f.call(t,e),t[e])}},ct=u(function(t){var e=X.get,n=X.enforce,r=String(String).split("String");(t.exports=function(t,e,o,i){var a,c=!!i&&!!i.unsafe,u=!!i&&!!i.enumerable,s=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof e||M(o,"name")||C(o,"name",e),(a=n(o)).source||(a.source=r.join("string"==typeof e?e:""))),t!==l?(c?!s&&t[e]&&(u=!0):delete t[e],u?t[e]=o:C(t,e,o)):u?t[e]=o:S(e,o)})(Function.prototype,"toString",function(){return"function"==typeof this&&e(this).source||P(this)})}),ut=l,st=function(t){return"function"==typeof t?t:void 0},lt=function(t,e){return arguments.length<2?st(ut[t])||st(l[t]):ut[t]&&ut[t][e]||l[t]&&l[t][e]},ft=Math.min,pt=function(t){return t>0?ft(r(t),9007199254740991):0},ht=Math.max,dt=Math.min,vt=function(t){return function(e,n,o){var i,a=ot(e),c=pt(a.length),u=function(t,e){var n=r(t);return n<0?ht(n+e,0):dt(n,e)}(o,c);if(t&&n!=n){for(;c>u;)if((i=a[u++])!=i)return!0}else for(;c>u;u++)if((t||u in a)&&a[u]===n)return t||u||0;return!t&&-1}},mt=(vt(!0),vt(!1)),yt=function(t,e){var n,r=ot(t),o=0,i=[];for(n in r)!M(z,n)&&M(r,n)&&i.push(n);for(;e.length>o;)M(r,n=e[o++])&&(~mt(i,n)||i.push(n));return i},gt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],wt=gt.concat("length","prototype"),_t={f:Object.getOwnPropertyNames||function(t){return yt(t,wt)}},bt={f:Object.getOwnPropertySymbols},xt=lt("Reflect","ownKeys")||function(t){var e=_t.f(g(t)),n=bt.f;return n?e.concat(n(t)):e},Ct=function(t,e){for(var n=xt(e),r=b.f,o=at.f,i=0;i<n.length;i++){var a=n[i];M(t,a)||r(t,a,o(e,a))}},St=/#|\.prototype\./,Et=function(t,e){var n=jt[Ot(t)];return n==kt||n!=At&&("function"==typeof e?f(e):!!e)},Ot=Et.normalize=function(t){return String(t).replace(St,".").toLowerCase()},jt=Et.data={},At=Et.NATIVE="N",kt=Et.POLYFILL="P",Pt=Et,Lt=at.f,Tt=function(t,e){var n,r,o,i,a,c=t.target,u=t.global,s=t.stat;if(n=u?l:s?l[c]||S(c,{}):(l[c]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=Lt(n,r))&&a.value:n[r],!Pt(u?r:c+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ct(i,o)}(t.sham||o&&o.sham)&&C(i,"sham",!0),ct(n,r,i,t)}},Nt=function(t){return Object(o(t))},Mt=!f(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Rt=H("IE_PROTO"),It=Object.prototype,Dt=Mt?Object.getPrototypeOf:function(t){return t=Nt(t),M(t,Rt)?t[Rt]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?It:null},Ft=!!Object.getOwnPropertySymbols&&!f(function(){return!String(Symbol())}),Ut=Ft&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ht=R("wks"),zt=l.Symbol,qt=Ut?zt:zt&&zt.withoutSetter||F,Bt=function(t){return M(Ht,t)||(Ht[t]=Ft&&M(zt,t)?zt[t]:qt("Symbol."+t)),Ht[t]},Vt=Bt("iterator"),Wt=!1;[].keys&&("next"in(J=[].keys())?(Y=Dt(Dt(J)))!==Object.prototype&&(K=Y):Wt=!0),null==K&&(K={}),M(K,Vt)||C(K,Vt,function(){return this});var Gt,Kt={IteratorPrototype:K,BUGGY_SAFARI_ITERATORS:Wt},Yt=Object.keys||function(t){return yt(t,gt)},Jt=p?Object.defineProperties:function(t,e){g(t);for(var n,r=Yt(e),o=r.length,i=0;o>i;)b.f(t,n=r[i++],e[n]);return t},Xt=lt("document","documentElement"),$t=H("IE_PROTO"),Zt=function(){},Qt=function(t){return"<script>"+t+"<\/script>"},te=function(){try{Gt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;te=Gt?function(t){t.write(Qt("")),t.close();var e=t.parentWindow.Object;return t=null,e}(Gt):((e=m("iframe")).style.display="none",Xt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Qt("document.F=Object")),t.close(),t.F);for(var n=gt.length;n--;)delete te.prototype[gt[n]];return te()};z[$t]=!0;var ee=Object.create||function(t,e){var n;return null!==t?(Zt.prototype=g(t),n=new Zt,Zt.prototype=null,n[$t]=t):n=te(),void 0===e?n:Jt(n,e)},ne=b.f,re=Bt("toStringTag"),oe=function(t,e,n){t&&!M(t=n?t:t.prototype,re)&&ne(t,re,{configurable:!0,value:e})},ie={},ae=Kt.IteratorPrototype,ce=function(){return this},ue=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return g(n),function(t){if(!h(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),se=Kt.IteratorPrototype,le=Kt.BUGGY_SAFARI_ITERATORS,fe=Bt("iterator"),pe=function(){return this},he=a.charAt,de=X.set,ve=X.getterFor("String Iterator");!function(t,e,n,r,o,i,a){!function(t,e,n){t.prototype=ee(ae,{next:x(1,function(){var t,e=ve(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=he(n,r),e.index+=t.length,{value:t,done:!1})})}),oe(t,"String Iterator",!1),ie["String Iterator"]=ce}(n);var c,u,s,l=function(t){if(void 0===t&&h)return h;if(!le&&t in f)return f[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},f=t.prototype,p=f[fe]||f["@@iterator"]||void 0,h=!le&&p||l(void 0);if(p&&(c=Dt(p.call(new t)),se!==Object.prototype&&c.next&&(Dt(c)!==se&&(ue?ue(c,se):"function"!=typeof c[fe]&&C(c,fe,pe)),oe(c,"String Iterator",!0))),f[fe]!==h&&C(f,fe,h),void(ie.String=h))if(void(u={values:l("values"),keys:l("keys"),entries:l("entries")}))for(s in u)(le||!(s in f))&&ct(f,s,u[s]);else Tt({target:"String",proto:!0,forced:le||!1},u)}(String,0,function(t){de(this,{type:"String Iterator",string:String(t),index:0})});var me=function(t,e,n){if(function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function")}(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}},ye=function(t,e,n,r){try{return r?e(g(n)[0],n[1]):e(n)}catch(e){throw function(t){var e=t.return;void 0!==e&&g(e.call(t))}(t),e}},ge=Bt("iterator"),we=Array.prototype,_e=function(t){return void 0!==t&&(ie.Array===t||we[ge]===t)},be=function(t,e,n){var r=w(e);r in t?b.f(t,r,x(0,n)):t[r]=n},xe={};xe[Bt("toStringTag")]="z";var Ce="[object z]"===String(xe),Se=Bt("toStringTag"),Ee="Arguments"==et(function(){return arguments}()),Oe=Ce?et:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Se))?n:Ee?et(e):"Object"==(r=et(e))&&"function"==typeof e.callee?"Arguments":r},je=Bt("iterator"),Ae=function(t){if(null!=t)return t[je]||t["@@iterator"]||ie[Oe(t)]},ke=Bt("iterator"),Pe=!1;try{var Le=0,Te={next:function(){return{done:!!Le++}},return:function(){Pe=!0}};Te[ke]=function(){return this},Array.from(Te,function(){throw 2})}catch(t){}var Ne,Me=!function(t,e){if(!Pe)return!1;var n=!1;try{var r={};r[ke]=function(){return{next:function(){return{done:n=!0}}}},Array.from(r)}catch(t){}return n}();Tt({target:"Array",stat:!0,forced:Me},{from:function(t){var e,n,r,o,i,a,c=Nt(t),u="function"==typeof this?this:Array,s=arguments.length,l=s>1?arguments[1]:void 0,f=void 0!==l,p=Ae(c),h=0;if(f&&(l=me(l,s>2?arguments[2]:void 0,2)),null==p||u==Array&&_e(p))for(n=new u(e=pt(c.length));e>h;h++)a=f?l(c[h],h):c[h],be(n,h,a);else for(i=(o=p.call(c)).next,n=new u;!(r=i.call(o)).done;h++)a=f?ye(o,l,[r.value,h],!0):r.value,be(n,h,a);return n.length=h,n}}),"function"!=typeof(Ne=window.Element.prototype).matches&&(Ne.matches=Ne.msMatchesSelector||Ne.mozMatchesSelector||Ne.webkitMatchesSelector||function(t){for(var e=(this.document||this.ownerDocument).querySelectorAll(t),n=0;e[n]&&e[n]!==this;)++n;return Boolean(e[n])}),"function"!=typeof Ne.closest&&(Ne.closest=function(t){for(var e=this;e&&1===e.nodeType;){if(e.matches(t))return e;e=e.parentNode}return null}),"".trim||(String.prototype.trim=function(){return this.replace(/^[\s]+|[\s]+$/g,"")}),function(t){t.DOMException||((DOMException=function(t){this.message=t}).prototype=new Error);var e,n,r=/[\11\12\14\15\40]/,o=0,i=function(t,e){if(""===e)throw new DOMException("Failed to execute '"+t+"' on 'DOMTokenList': The token provided must not be empty.");if(-1!==(o=e.search(r)))throw new DOMException("Failed to execute '"+t+"' on 'DOMTokenList': The token provided ('"+e[o]+"') contains HTML space characters, which are not valid in tokens.")};"function"!=typeof DOMTokenList&&function(t){var e=t.document,n=t.Object,o=n.prototype.hasOwnProperty,a=n.defineProperty,c=0,u=0,s=function(){if(!c)throw TypeError("Illegal constructor")};function l(){var e=t.event,n=e.propertyName;if(!u&&("className"===n||"classList"===n&&!a)){var o=e.srcElement,i=o[" uCLp"],c=""+o[n],s=c.trim().split(r),l=o["classList"===n?" uCL":"classList"],f=i.length;t:for(var p=0,h=i.length=s.length,d=0;p!==h;++p){for(var v=0;v!==p;++v)if(s[v]===s[p]){d++;continue t}l[p-d]=s[p]}for(var m=h-d;m<f;++m)delete l[m];if("classList"!==n)return;u=1,o.classList=l,o.className=c,u=0,l.length=s.length-d}}function f(t){if(!t||!("innerHTML"in t))throw TypeError("Illegal invocation");t.detachEvent("onpropertychange",l),c=1;try{var e=function(){};e.prototype=new s}finally{c=0}var n=e.prototype,o=new e;t:for(var i=t.className.trim().split(r),f=0,p=i.length,h=0;f!==p;++f){for(var d=0;d!==f;++d)if(i[d]===i[f]){h++;continue t}this[f-h]=i[f]}n.length=p-h,n.value=t.className,n[" uCL"]=t,a?(a(t,"classList",{enumerable:1,get:function(){return o},configurable:0,set:function(e){u=1,t.className=n.value=e+="",u=0;var i=e.trim().split(r),a=n.length;t:for(var c=0,s=n.length=i.length,l=0;c!==s;++c){for(var f=0;f!==c;++f)if(i[f]===i[c]){l++;continue t}o[c-l]=i[c]}for(var p=s-l;p<a;++p)delete o[p]}}),a(t," uCLp",{enumerable:0,configurable:0,writeable:0,value:e.prototype}),a(n," uCL",{enumerable:0,configurable:0,writeable:0,value:t})):(t.classList=o,t[" uCL"]=o,t[" uCLp"]=e.prototype),t.attachEvent("onpropertychange",l)}s.prototype.toString=s.prototype.toLocaleString=function(){return this.value},s.prototype.add=function(){t:for(var t=0,e=arguments.length,n="",r=this[" uCL"],o=r[" uCLp"];t!==e;++t){i("add",n=arguments[t]+"");for(var a=0,c=o.length,s=n;a!==c;++a){if(this[a]===n)continue t;s+=" "+this[a]}this[c]=n,o.length+=1,o.value=s}u=1,r.className=o.value,u=0},s.prototype.remove=function(){for(var t=0,e=arguments.length,n="",r=this[" uCL"],o=r[" uCLp"];t!==e;++t){i("remove",n=arguments[t]+"");for(var a=0,c=o.length,s="",l=0;a!==c;++a)l?this[a-1]=this[a]:this[a]!==n?s+=this[a]+" ":l=1;l&&(delete this[c],o.length-=1,o.value=s)}u=1,r.className=o.value,u=0},t.DOMTokenList=s;try{t.Object.defineProperty(t.Element.prototype,"classList",{enumerable:1,get:function(t){return o.call(this,"classList")||f(this),this.classList},configurable:0,set:function(t){this.className=t}})}catch(n){t[" uCL"]=f,e.documentElement.firstChild.appendChild(e.createElement("style")).styleSheet.cssText='_*{x-uCLp:expression(!this.hasOwnProperty("classList")&&window[" uCL"](this))}[class]{x-uCLp/**/:expression(!this.hasOwnProperty("classList")&&window[" uCL"](this))}'}}(t),e=t.DOMTokenList.prototype,n=t.document.createElement("div").classList,e.item||(e.item=function(t){return function(t){return void 0===t?null:t}(this[t])}),e.toggle&&!1===n.toggle("a",0)||(e.toggle=function(t){if(arguments.length>1)return this[arguments[1]?"add":"remove"](t),!!arguments[1];var e=this.value;return this.remove(e),e===this.value&&(this.add(t),!0)}),e.replace&&"boolean"==typeof n.replace("a","b")||(e.replace=function(t,e){i("replace",t),i("replace",e);var n=this.value;return this.remove(t),this.value!==n&&(this.add(e),!0)}),e.contains||(e.contains=function(t){for(var e=0,n=this.length;e!==n;++e)if(this[e]===t)return!0;return!1}),e.forEach||(e.forEach=function(t){if(1===arguments.length)for(var e=0,n=this.length;e!==n;++e)t(this[e],e,this);else{e=0,n=this.length;for(var r=arguments[1];e!==n;++e)t.call(r,this[e],e,this)}}),e.entries||(e.entries=function(){var t=this;return{next:function(){return 0<t.length?{value:[0,t[0]],done:!1}:{done:!0}}}}),e.values||(e.values=function(){var t=this;return{next:function(){return 0<t.length?{value:t[0],done:!1}:{done:!0}}}}),e.keys||(e.keys=function(){var t=this;return{next:function(){return 0<t.length?{value:0,done:!1}:{done:!0}}}})}(window);var Re=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}},Ie=Object.prototype.toString;function De(t){return"[object Array]"===Ie.call(t)}function Fe(t){return void 0===t}function Ue(t){return null!==t&&"object"==typeof t}function He(t){if("[object Object]"!==Ie.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function ze(t){return"[object Function]"===Ie.call(t)}function qe(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),De(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}var Be={isArray:De,isArrayBuffer:function(t){return"[object ArrayBuffer]"===Ie.call(t)},isBuffer:function(t){return null!==t&&!Fe(t)&&null!==t.constructor&&!Fe(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:Ue,isPlainObject:He,isUndefined:Fe,isDate:function(t){return"[object Date]"===Ie.call(t)},isFile:function(t){return"[object File]"===Ie.call(t)},isBlob:function(t){return"[object Blob]"===Ie.call(t)},isFunction:ze,isStream:function(t){return Ue(t)&&ze(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:qe,merge:function t(){var e={};function n(n,r){e[r]=He(e[r])&&He(n)?t(e[r],n):He(n)?t({},n):De(n)?n.slice():n}for(var r=0,o=arguments.length;r<o;r++)qe(arguments[r],n);return e},extend:function(t,e,n){return qe(e,function(e,r){t[r]=n&&"function"==typeof e?Re(e,n):e}),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}};function Ve(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var We=function(t,e,n){if(!e)return t;var r;if(n)r=n(e);else if(Be.isURLSearchParams(e))r=e.toString();else{var o=[];Be.forEach(e,function(t,e){null!=t&&(Be.isArray(t)?e+="[]":t=[t],Be.forEach(t,function(t){Be.isDate(t)?t=t.toISOString():Be.isObject(t)&&(t=JSON.stringify(t)),o.push(Ve(e)+"="+Ve(t))}))}),r=o.join("&")}if(r){var i=t.indexOf("#");-1!==i&&(t=t.slice(0,i)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t};function Ge(){this.handlers=[]}Ge.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},Ge.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},Ge.prototype.forEach=function(t){Be.forEach(this.handlers,function(e){null!==e&&t(e)})};var Ke=Ge,Ye=function(t,e,n){return Be.forEach(n,function(n){t=n(t,e)}),t},Je=function(t){return!(!t||!t.__CANCEL__)},Xe=function(t,e){Be.forEach(t,function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])})},$e=function(t,e,n,r,o){return function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}(new Error(t),e,n,r,o)},Ze=Be.isStandardBrowserEnv()?{write:function(t,e,n,r,o,i){var a=[];a.push(t+"="+encodeURIComponent(e)),Be.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Be.isString(r)&&a.push("path="+r),Be.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},Qe=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],tn=Be.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=r(window.location.href),function(e){var n=Be.isString(e)?r(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0},en={"Content-Type":"application/x-www-form-urlencoded"};function nn(t,e){!Be.isUndefined(t)&&Be.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var rn,on={adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(rn=function(t){return new Promise(function(e,n){var r=t.data,o=t.headers;Be.isFormData(r)&&delete o["Content-Type"],(Be.isBlob(r)||Be.isFile(r))&&r.type&&delete o["Content-Type"];var i=new XMLHttpRequest;if(t.auth){var a=t.auth.username||"",c=unescape(encodeURIComponent(t.auth.password))||"";o.Authorization="Basic "+btoa(a+":"+c)}var u,s,l=(s=t.url,(u=t.baseURL)&&!/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(s)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(u,s):s);if(i.open(t.method.toUpperCase(),We(l,t.params,t.paramsSerializer),!0),i.timeout=t.timeout,i.onreadystatechange=function(){if(i&&4===i.readyState&&(0!==i.status||i.responseURL&&0===i.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in i?function(t){var e,n,r,o={};return t?(Be.forEach(t.split("\n"),function(t){if(r=t.indexOf(":"),e=Be.trim(t.substr(0,r)).toLowerCase(),n=Be.trim(t.substr(r+1)),e){if(o[e]&&Qe.indexOf(e)>=0)return;o[e]="set-cookie"===e?(o[e]?o[e]:[]).concat([n]):o[e]?o[e]+", "+n:n}}),o):o}(i.getAllResponseHeaders()):null;!function(t,e,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?e($e("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}(e,n,{data:t.responseType&&"text"!==t.responseType?i.response:i.responseText,status:i.status,statusText:i.statusText,headers:r,config:t,request:i}),i=null}},i.onabort=function(){i&&(n($e("Request aborted",t,"ECONNABORTED",i)),i=null)},i.onerror=function(){n($e("Network Error",t,null,i)),i=null},i.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n($e(e,t,"ECONNABORTED",i)),i=null},Be.isStandardBrowserEnv()){var f=(t.withCredentials||tn(l))&&t.xsrfCookieName?Ze.read(t.xsrfCookieName):void 0;f&&(o[t.xsrfHeaderName]=f)}if("setRequestHeader"in i&&Be.forEach(o,function(t,e){void 0===r&&"content-type"===e.toLowerCase()?delete o[e]:i.setRequestHeader(e,t)}),Be.isUndefined(t.withCredentials)||(i.withCredentials=!!t.withCredentials),t.responseType)try{i.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&i.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&i.upload&&i.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){i&&(i.abort(),n(t),i=null)}),r||(r=null),i.send(r)})}),rn),transformRequest:[function(t,e){return Xe(e,"Accept"),Xe(e,"Content-Type"),Be.isFormData(t)||Be.isArrayBuffer(t)||Be.isBuffer(t)||Be.isStream(t)||Be.isFile(t)||Be.isBlob(t)?t:Be.isArrayBufferView(t)?t.buffer:Be.isURLSearchParams(t)?(nn(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):Be.isObject(t)?(nn(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Be.forEach(["delete","get","head"],function(t){on.headers[t]={}}),Be.forEach(["post","put","patch"],function(t){on.headers[t]=Be.merge(en)});var an=on;function cn(t){t.cancelToken&&t.cancelToken.throwIfRequested()}var un=function(t){return cn(t),t.headers=t.headers||{},t.data=Ye(t.data,t.headers,t.transformRequest),t.headers=Be.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Be.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]}),(t.adapter||an.adapter)(t).then(function(e){return cn(t),e.data=Ye(e.data,e.headers,t.transformResponse),e},function(e){return Je(e)||(cn(t),e&&e.response&&(e.response.data=Ye(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})},sn=function(t,e){e=e||{};var n={},r=["url","method","data"],o=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function c(t,e){return Be.isPlainObject(t)&&Be.isPlainObject(e)?Be.merge(t,e):Be.isPlainObject(e)?Be.merge({},e):Be.isArray(e)?e.slice():e}function u(r){Be.isUndefined(e[r])?Be.isUndefined(t[r])||(n[r]=c(void 0,t[r])):n[r]=c(t[r],e[r])}Be.forEach(r,function(t){Be.isUndefined(e[t])||(n[t]=c(void 0,e[t]))}),Be.forEach(o,u),Be.forEach(i,function(r){Be.isUndefined(e[r])?Be.isUndefined(t[r])||(n[r]=c(void 0,t[r])):n[r]=c(void 0,e[r])}),Be.forEach(a,function(r){r in e?n[r]=c(t[r],e[r]):r in t&&(n[r]=c(void 0,t[r]))});var s=r.concat(o).concat(i).concat(a),l=Object.keys(t).concat(Object.keys(e)).filter(function(t){return-1===s.indexOf(t)});return Be.forEach(l,u),n};function ln(t){this.defaults=t,this.interceptors={request:new Ke,response:new Ke}}ln.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=sn(this.defaults,t)).method=t.method?t.method.toLowerCase():this.defaults.method?this.defaults.method.toLowerCase():"get";var e=[un,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});e.length;)n=n.then(e.shift(),e.shift());return n},ln.prototype.getUri=function(t){return t=sn(this.defaults,t),We(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},Be.forEach(["delete","get","head","options"],function(t){ln.prototype[t]=function(e,n){return this.request(sn(n||{},{method:t,url:e}))}}),Be.forEach(["post","put","patch"],function(t){ln.prototype[t]=function(e,n,r){return this.request(sn(r||{},{method:t,url:e,data:n}))}});var fn=ln;function pn(t){this.message=t}pn.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},pn.prototype.__CANCEL__=!0;var hn=pn;function dn(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var n=this;t(function(t){n.reason||(n.reason=new hn(t),e(n.reason))})}dn.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},dn.source=function(){var t;return{token:new dn(function(e){t=e}),cancel:t}};var vn=dn;function mn(t){var e=new fn(t),n=Re(fn.prototype.request,e);return Be.extend(n,fn.prototype,e),Be.extend(n,e),n}var yn=mn(an);yn.Axios=fn,yn.create=function(t){return mn(sn(yn.defaults,t))},yn.Cancel=hn,yn.CancelToken=vn,yn.isCancel=Je,yn.all=function(t){return Promise.all(t)},yn.spread=function(t){return function(e){return t.apply(null,e)}};var gn=yn;gn.default=yn;var wn=gn,_n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function bn(t,e,n){return t(n={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},n.exports),n.exports}var xn=function(t){return t&&t.Math==Math&&t},Cn=xn("object"==typeof globalThis&&globalThis)||xn("object"==typeof window&&window)||xn("object"==typeof self&&self)||xn("object"==typeof _n&&_n)||Function("return this")(),Sn=function(t){try{return!!t()}catch(t){return!0}},En=!Sn(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),On=function(t){return"object"==typeof t?null!==t:"function"==typeof t},jn=Cn.document,An=On(jn)&&On(jn.createElement),kn=function(t){return An?jn.createElement(t):{}},Pn=!En&&!Sn(function(){return 7!=Object.defineProperty(kn("div"),"a",{get:function(){return 7}}).a}),Ln=function(t){if(!On(t))throw TypeError(String(t)+" is not an object");return t},Tn=function(t,e){if(!On(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!On(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!On(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!On(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},Nn=Object.defineProperty,Mn={f:En?Nn:function(t,e,n){if(Ln(t),e=Tn(e,!0),Ln(n),Pn)try{return Nn(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Rn=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},In=En?function(t,e,n){return Mn.f(t,e,Rn(1,n))}:function(t,e,n){return t[e]=n,t},Dn=function(t,e){try{In(Cn,t,e)}catch(n){Cn[t]=e}return e},Fn=Cn["__core-js_shared__"]||Dn("__core-js_shared__",{}),Un=bn(function(t){(t.exports=function(t,e){return Fn[t]||(Fn[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})}),Hn={}.hasOwnProperty,zn=function(t,e){return Hn.call(t,e)},qn=0,Bn=Math.random(),Vn=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++qn+Bn).toString(36)},Wn=!!Object.getOwnPropertySymbols&&!Sn(function(){return!String(Symbol())}),Gn=Wn&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Kn=Un("wks"),Yn=Cn.Symbol,Jn=Gn?Yn:Yn&&Yn.withoutSetter||Vn,Xn=function(t){return zn(Kn,t)||(Kn[t]=Wn&&zn(Yn,t)?Yn[t]:Jn("Symbol."+t)),Kn[t]},$n={};$n[Xn("toStringTag")]="z";var Zn="[object z]"===String($n),Qn=Function.toString;"function"!=typeof Fn.inspectSource&&(Fn.inspectSource=function(t){return Qn.call(t)});var tr,er,nr,rr=Fn.inspectSource,or=Cn.WeakMap,ir="function"==typeof or&&/native code/.test(rr(or)),ar=Un("keys"),cr=function(t){return ar[t]||(ar[t]=Vn(t))},ur={};if(ir){var sr=new Cn.WeakMap,lr=sr.get,fr=sr.has,pr=sr.set;tr=function(t,e){return pr.call(sr,t,e),e},er=function(t){return lr.call(sr,t)||{}},nr=function(t){return fr.call(sr,t)}}else{var hr=cr("state");ur[hr]=!0,tr=function(t,e){return In(t,hr,e),e},er=function(t){return zn(t,hr)?t[hr]:{}},nr=function(t){return zn(t,hr)}}var dr={set:tr,get:er,has:nr,enforce:function(t){return nr(t)?er(t):tr(t,{})},getterFor:function(t){return function(e){var n;if(!On(e)||(n=er(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},vr=bn(function(t){var e=dr.get,n=dr.enforce,r=String(String).split("String");(t.exports=function(t,e,o,i){var a=!!i&&!!i.unsafe,c=!!i&&!!i.enumerable,u=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof e||zn(o,"name")||In(o,"name",e),n(o).source=r.join("string"==typeof e?e:"")),t!==Cn?(a?!u&&t[e]&&(c=!0):delete t[e],c?t[e]=o:In(t,e,o)):c?t[e]=o:Dn(e,o)})(Function.prototype,"toString",function(){return"function"==typeof this&&e(this).source||rr(this)})}),mr={}.toString,yr=function(t){return mr.call(t).slice(8,-1)},gr=Xn("toStringTag"),wr="Arguments"==yr(function(){return arguments}()),_r=Zn?yr:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),gr))?n:wr?yr(e):"Object"==(r=yr(e))&&"function"==typeof e.callee?"Arguments":r};Zn||vr(Object.prototype,"toString",Zn?{}.toString:function(){return"[object "+_r(this)+"]"},{unsafe:!0});var br,xr,Cr,Sr=Math.ceil,Er=Math.floor,Or=function(t){return isNaN(t=+t)?0:(t>0?Er:Sr)(t)},jr=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},Ar=function(t){return function(e,n){var r,o,i=String(jr(e)),a=Or(n),c=i.length;return a<0||a>=c?t?"":void 0:(r=i.charCodeAt(a))<55296||r>56319||a+1===c||(o=i.charCodeAt(a+1))<56320||o>57343?t?i.charAt(a):r:t?i.slice(a,a+2):o-56320+(r-55296<<10)+65536}},kr={codeAt:Ar(!1),charAt:Ar(!0)},Pr={}.propertyIsEnumerable,Lr=Object.getOwnPropertyDescriptor,Tr={f:Lr&&!Pr.call({1:2},1)?function(t){var e=Lr(this,t);return!!e&&e.enumerable}:Pr},Nr="".split,Mr=Sn(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==yr(t)?Nr.call(t,""):Object(t)}:Object,Rr=function(t){return Mr(jr(t))},Ir=Object.getOwnPropertyDescriptor,Dr={f:En?Ir:function(t,e){if(t=Rr(t),e=Tn(e,!0),Pn)try{return Ir(t,e)}catch(t){}if(zn(t,e))return Rn(!Tr.f.call(t,e),t[e])}},Fr=Cn,Ur=function(t){return"function"==typeof t?t:void 0},Hr=function(t,e){return arguments.length<2?Ur(Fr[t])||Ur(Cn[t]):Fr[t]&&Fr[t][e]||Cn[t]&&Cn[t][e]},zr=Math.min,qr=function(t){return t>0?zr(Or(t),9007199254740991):0},Br=Math.max,Vr=Math.min,Wr=function(t,e,n){for(var r=Rr(t),o=qr(r.length),i=function(t,e){var n=Or(t);return n<0?Br(n+e,0):Vr(n,e)}(n,o);o>i;i++)if(i in r&&r[i]===e)return i||0;return-1},Gr=function(t,e){var n,r=Rr(t),o=0,i=[];for(n in r)!zn(ur,n)&&zn(r,n)&&i.push(n);for(;e.length>o;)zn(r,n=e[o++])&&(~Wr(i,n)||i.push(n));return i},Kr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Yr=Kr.concat("length","prototype"),Jr={f:Object.getOwnPropertyNames||function(t){return Gr(t,Yr)}},Xr={f:Object.getOwnPropertySymbols},$r=Hr("Reflect","ownKeys")||function(t){var e=Jr.f(Ln(t)),n=Xr.f;return n?e.concat(n(t)):e},Zr=function(t,e){for(var n=$r(e),r=Mn.f,o=Dr.f,i=0;i<n.length;i++){var a=n[i];zn(t,a)||r(t,a,o(e,a))}},Qr=/#|\.prototype\./,to=function(t,e){var n=no[eo(t)];return n==oo||n!=ro&&("function"==typeof e?Sn(e):!!e)},eo=to.normalize=function(t){return String(t).replace(Qr,".").toLowerCase()},no=to.data={},ro=to.NATIVE="N",oo=to.POLYFILL="P",io=to,ao=Dr.f,co=function(t,e){var n,r,o,i,a,c=t.target,u=t.global,s=t.stat;if(n=u?Cn:s?Cn[c]||Dn(c,{}):(Cn[c]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=ao(n,r))&&a.value:n[r],!io(u?r:c+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Zr(i,o)}(t.sham||o&&o.sham)&&In(i,"sham",!0),vr(n,r,i,t)}},uo=function(t){return Object(jr(t))},so=!Sn(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),lo=cr("IE_PROTO"),fo=Object.prototype,po=so?Object.getPrototypeOf:function(t){return t=uo(t),zn(t,lo)?t[lo]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?fo:null},ho=Xn("iterator"),vo=!1;[].keys&&("next"in(Cr=[].keys())?(xr=po(po(Cr)))!==Object.prototype&&(br=xr):vo=!0),null==br&&(br={}),zn(br,ho)||In(br,ho,function(){return this});var mo,yo={IteratorPrototype:br,BUGGY_SAFARI_ITERATORS:vo},go=Object.keys||function(t){return Gr(t,Kr)},wo=En?Object.defineProperties:function(t,e){Ln(t);for(var n,r=go(e),o=r.length,i=0;o>i;)Mn.f(t,n=r[i++],e[n]);return t},_o=Hr("document","documentElement"),bo=cr("IE_PROTO"),xo=function(){},Co=function(t){return"<script>"+t+"<\/script>"},So=function(){try{mo=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;So=mo?function(t){t.write(Co("")),t.close();var e=t.parentWindow.Object;return t=null,e}(mo):((e=kn("iframe")).style.display="none",_o.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Co("document.F=Object")),t.close(),t.F);for(var n=Kr.length;n--;)delete So.prototype[Kr[n]];return So()};ur[bo]=!0;var Eo=Object.create||function(t,e){var n;return null!==t?(xo.prototype=Ln(t),n=new xo,xo.prototype=null,n[bo]=t):n=So(),void 0===e?n:wo(n,e)},Oo=Mn.f,jo=Xn("toStringTag"),Ao=function(t,e,n){t&&!zn(t=n?t:t.prototype,jo)&&Oo(t,jo,{configurable:!0,value:e})},ko={},Po=yo.IteratorPrototype,Lo=function(){return this},To=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Ln(n),function(t){if(!On(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),No=yo.IteratorPrototype,Mo=yo.BUGGY_SAFARI_ITERATORS,Ro=Xn("iterator"),Io=function(){return this},Do=function(t,e,n,r,o,i,a){!function(t,e,n){var r=e+" Iterator";t.prototype=Eo(Po,{next:Rn(1,n)}),Ao(t,r,!1),ko[r]=Lo}(n,e,r);var c,u,s,l=function(t){if(t===o&&v)return v;if(!Mo&&t in h)return h[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,h=t.prototype,d=h[Ro]||h["@@iterator"]||o&&h[o],v=!Mo&&d||l(o),m="Array"==e&&h.entries||d;if(m&&(c=po(m.call(new t)),No!==Object.prototype&&c.next&&(po(c)!==No&&(To?To(c,No):"function"!=typeof c[Ro]&&In(c,Ro,Io)),Ao(c,f,!0))),"values"==o&&d&&"values"!==d.name&&(p=!0,v=function(){return d.call(this)}),h[Ro]!==v&&In(h,Ro,v),ko[e]=v,o)if(u={values:l("values"),keys:i?v:l("keys"),entries:l("entries")},a)for(s in u)(Mo||p||!(s in h))&&vr(h,s,u[s]);else co({target:e,proto:!0,forced:Mo||p},u);return u},Fo=kr.charAt,Uo=dr.set,Ho=dr.getterFor("String Iterator");Do(String,"String",function(t){Uo(this,{type:"String Iterator",string:String(t),index:0})},function(){var t,e=Ho(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Fo(n,r),e.index+=t.length,{value:t,done:!1})});var zo={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},qo=Xn("unscopables"),Bo=Array.prototype;null==Bo[qo]&&Mn.f(Bo,qo,{configurable:!0,value:Eo(null)});var Vo=function(t){Bo[qo][t]=!0},Wo=dr.set,Go=dr.getterFor("Array Iterator"),Ko=Do(Array,"Array",function(t,e){Wo(this,{type:"Array Iterator",target:Rr(t),index:0,kind:e})},function(){var t=Go(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");ko.Arguments=ko.Array,Vo("keys"),Vo("values"),Vo("entries");var Yo=Xn("iterator"),Jo=Xn("toStringTag"),Xo=Ko.values;for(var $o in zo){var Zo=Cn[$o],Qo=Zo&&Zo.prototype;if(Qo){if(Qo[Yo]!==Xo)try{In(Qo,Yo,Xo)}catch(ru){Qo[Yo]=Xo}if(Qo[Jo]||In(Qo,Jo,$o),zo[$o])for(var ti in Ko)if(Qo[ti]!==Ko[ti])try{In(Qo,ti,Ko[ti])}catch(ru){Qo[ti]=Ko[ti]}}}var ei=Cn.Promise,ni=function(t,e,n){for(var r in e)vr(t,r,e[r],n);return t},ri=Xn("species"),oi=function(t){var e=Hr(t);En&&e&&!e[ri]&&(0,Mn.f)(e,ri,{configurable:!0,get:function(){return this}})},ii=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},ai=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t},ci=Xn("iterator"),ui=Array.prototype,si=function(t,e,n){if(ii(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}},li=Xn("iterator"),fi=function(t,e,n,r){try{return r?e(Ln(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&Ln(o.call(t)),e}},pi=bn(function(t){var e=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,n,r,o,i){var a,c,u,s,l,f,p,h,d=si(n,r,o?2:1);if(i)a=t;else{if("function"!=typeof(c=function(t){if(null!=t)return t[li]||t["@@iterator"]||ko[_r(t)]}(t)))throw TypeError("Target is not iterable");if(void 0!==(h=c)&&(ko.Array===h||ui[ci]===h)){for(u=0,s=qr(t.length);s>u;u++)if((l=o?d(Ln(p=t[u])[0],p[1]):d(t[u]))&&l instanceof e)return l;return new e(!1)}a=c.call(t)}for(f=a.next;!(p=f.call(a)).done;)if("object"==typeof(l=fi(a,d,p.value,o))&&l&&l instanceof e)return l;return new e(!1)}).stop=function(t){return new e(!0,t)}}),hi=Xn("iterator"),di=!1;try{var vi=0,mi={next:function(){return{done:!!vi++}},return:function(){di=!0}};mi[hi]=function(){return this},Array.from(mi,function(){throw 2})}catch(ru){}var yi,gi,wi,_i=function(t,e){if(!e&&!di)return!1;var n=!1;try{var r={};r[hi]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},bi=Xn("species"),xi=function(t,e){var n,r=Ln(t).constructor;return void 0===r||null==(n=Ln(r)[bi])?e:ii(n)},Ci=Hr("navigator","userAgent")||"",Si=/(iphone|ipod|ipad).*applewebkit/i.test(Ci),Ei=Cn.location,Oi=Cn.setImmediate,ji=Cn.clearImmediate,Ai=Cn.process,ki=Cn.MessageChannel,Pi=Cn.Dispatch,Li=0,Ti={},Ni=function(t){if(Ti.hasOwnProperty(t)){var e=Ti[t];delete Ti[t],e()}},Mi=function(t){return function(){Ni(t)}},Ri=function(t){Ni(t.data)},Ii=function(t){Cn.postMessage(t+"",Ei.protocol+"//"+Ei.host)};Oi&&ji||(Oi=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return Ti[++Li]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},yi(Li),Li},ji=function(t){delete Ti[t]},"process"==yr(Ai)?yi=function(t){Ai.nextTick(Mi(t))}:Pi&&Pi.now?yi=function(t){Pi.now(Mi(t))}:ki&&!Si?(wi=(gi=new ki).port2,gi.port1.onmessage=Ri,yi=si(wi.postMessage,wi,1)):!Cn.addEventListener||"function"!=typeof postMessage||Cn.importScripts||Sn(Ii)||"file:"===Ei.protocol?yi="onreadystatechange"in kn("script")?function(t){_o.appendChild(kn("script")).onreadystatechange=function(){_o.removeChild(this),Ni(t)}}:function(t){setTimeout(Mi(t),0)}:(yi=Ii,Cn.addEventListener("message",Ri,!1)));var Di,Fi,Ui,Hi,zi,qi,Bi,Vi,Wi={set:Oi,clear:ji},Gi=Dr.f,Ki=Wi.set,Yi=Cn.MutationObserver||Cn.WebKitMutationObserver,Ji=Cn.process,Xi=Cn.Promise,$i="process"==yr(Ji),Zi=Gi(Cn,"queueMicrotask"),Qi=Zi&&Zi.value;Qi||(Di=function(){var t,e;for($i&&(t=Ji.domain)&&t.exit();Fi;){e=Fi.fn,Fi=Fi.next;try{e()}catch(t){throw Fi?Hi():Ui=void 0,t}}Ui=void 0,t&&t.enter()},$i?Hi=function(){Ji.nextTick(Di)}:Yi&&!Si?(zi=!0,qi=document.createTextNode(""),new Yi(Di).observe(qi,{characterData:!0}),Hi=function(){qi.data=zi=!zi}):Xi&&Xi.resolve?(Bi=Xi.resolve(void 0),Vi=Bi.then,Hi=function(){Vi.call(Bi,Di)}):Hi=function(){Ki.call(Cn,Di)});var ta,ea,na=Qi||function(t){var e={fn:t,next:void 0};Ui&&(Ui.next=e),Fi||(Fi=e,Hi()),Ui=e},ra=function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=ii(e),this.reject=ii(n)},oa={f:function(t){return new ra(t)}},ia=function(t,e){if(Ln(t),On(e)&&e.constructor===t)return e;var n=oa.f(t);return(0,n.resolve)(e),n.promise},aa=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},ca=Cn.process,ua=ca&&ca.versions,sa=ua&&ua.v8;sa?ea=(ta=sa.split("."))[0]+ta[1]:Ci&&(!(ta=Ci.match(/Edge\/(\d+)/))||ta[1]>=74)&&(ta=Ci.match(/Chrome\/(\d+)/))&&(ea=ta[1]);var la,fa,pa,ha,da=ea&&+ea,va=Wi.set,ma=Xn("species"),ya="Promise",ga=dr.get,wa=dr.set,_a=dr.getterFor(ya),ba=ei,xa=Cn.TypeError,Ca=Cn.document,Sa=Cn.process,Ea=Hr("fetch"),Oa=oa.f,ja=Oa,Aa="process"==yr(Sa),ka=!!(Ca&&Ca.createEvent&&Cn.dispatchEvent),Pa=io(ya,function(){if(rr(ba)===String(ba)){if(66===da)return!0;if(!Aa&&"function"!=typeof PromiseRejectionEvent)return!0}if(da>=51&&/native code/.test(ba))return!1;var t=ba.resolve(1),e=function(t){t(function(){},function(){})};return(t.constructor={})[ma]=e,!(t.then(function(){})instanceof e)}),La=Pa||!_i(function(t){ba.all(t).catch(function(){})}),Ta=function(t){var e;return!(!On(t)||"function"!=typeof(e=t.then))&&e},Na=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;na(function(){for(var o=e.value,i=1==e.state,a=0;r.length>a;){var c,u,s,l=r[a++],f=i?l.ok:l.fail,p=l.resolve,h=l.reject,d=l.domain;try{f?(i||(2===e.rejection&&Da(t,e),e.rejection=1),!0===f?c=o:(d&&d.enter(),c=f(o),d&&(d.exit(),s=!0)),c===l.promise?h(xa("Promise-chain cycle")):(u=Ta(c))?u.call(c,p,h):p(c)):h(o)}catch(t){d&&!s&&d.exit(),h(t)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&Ra(t,e)})}},Ma=function(t,e,n){var r,o;ka?((r=Ca.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),Cn.dispatchEvent(r)):r={promise:e,reason:n},(o=Cn["on"+t])?o(r):"unhandledrejection"===t&&function(t,e){var n=Cn.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},Ra=function(t,e){va.call(Cn,function(){var n,r=e.value;if(Ia(e)&&(n=aa(function(){Aa?Sa.emit("unhandledRejection",r,t):Ma("unhandledrejection",t,r)}),e.rejection=Aa||Ia(e)?2:1,n.error))throw n.value})},Ia=function(t){return 1!==t.rejection&&!t.parent},Da=function(t,e){va.call(Cn,function(){Aa?Sa.emit("rejectionHandled",t):Ma("rejectionhandled",t,e.value)})},Fa=function(t,e,n,r){return function(o){t(e,n,o,r)}},Ua=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=2,Na(t,e,!0))},Ha=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw xa("Promise can't be resolved itself");var o=Ta(n);o?na(function(){var r={done:!1};try{o.call(n,Fa(Ha,t,r,e),Fa(Ua,t,r,e))}catch(n){Ua(t,r,n,e)}}):(e.value=n,e.state=1,Na(t,e,!1))}catch(n){Ua(t,{done:!1},n,e)}}};Pa&&(ba=function(t){ai(this,ba,ya),ii(t),la.call(this);var e=ga(this);try{t(Fa(Ha,this,e),Fa(Ua,this,e))}catch(t){Ua(this,e,t)}},(la=function(t){wa(this,{type:ya,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=ni(ba.prototype,{then:function(t,e){var n=_a(this),r=Oa(xi(this,ba));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=Aa?Sa.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Na(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),fa=function(){var t=new la,e=ga(t);this.promise=t,this.resolve=Fa(Ha,t,e),this.reject=Fa(Ua,t,e)},oa.f=Oa=function(t){return t===ba||t===pa?new fa(t):ja(t)},"function"==typeof ei&&(ha=ei.prototype.then,vr(ei.prototype,"then",function(t,e){var n=this;return new ba(function(t,e){ha.call(n,t,e)}).then(t,e)},{unsafe:!0}),"function"==typeof Ea&&co({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return ia(ba,Ea.apply(Cn,arguments))}}))),co({global:!0,wrap:!0,forced:Pa},{Promise:ba}),Ao(ba,ya,!1),oi(ya),pa=Hr(ya),co({target:ya,stat:!0,forced:Pa},{reject:function(t){var e=Oa(this);return e.reject.call(void 0,t),e.promise}}),co({target:ya,stat:!0,forced:Pa},{resolve:function(t){return ia(this,t)}}),co({target:ya,stat:!0,forced:La},{all:function(t){var e=this,n=Oa(e),r=n.resolve,o=n.reject,i=aa(function(){var n=ii(e.resolve),i=[],a=0,c=1;pi(t,function(t){var u=a++,s=!1;i.push(void 0),c++,n.call(e,t).then(function(t){s||(s=!0,i[u]=t,--c||r(i))},o)}),--c||r(i)});return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=Oa(e),r=n.reject,o=aa(function(){var o=ii(e.resolve);pi(t,function(t){o.call(e,t).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}}),co({target:"Promise",stat:!0},{allSettled:function(t){var e=this,n=oa.f(e),r=n.resolve,o=n.reject,i=aa(function(){var n=ii(e.resolve),o=[],i=0,a=1;pi(t,function(t){var c=i++,u=!1;o.push(void 0),a++,n.call(e,t).then(function(t){u||(u=!0,o[c]={status:"fulfilled",value:t},--a||r(o))},function(t){u||(u=!0,o[c]={status:"rejected",reason:t},--a||r(o))})}),--a||r(o)});return i.error&&o(i.value),n.promise}});var za=!!ei&&Sn(function(){ei.prototype.finally.call({then:function(){}},function(){})});co({target:"Promise",proto:!0,real:!0,forced:za},{finally:function(t){var e=xi(this,Hr("Promise")),n="function"==typeof t;return this.then(n?function(n){return ia(e,t()).then(function(){return n})}:t,n?function(n){return ia(e,t()).then(function(){throw n})}:t)}}),"function"!=typeof ei||ei.prototype.finally||vr(ei.prototype,"finally",Hr("Promise").prototype.finally);var qa=Sn(function(){go(1)});co({target:"Object",stat:!0,forced:qa},{keys:function(t){return go(uo(t))}});var Ba=function(t,e){var n=[][t];return!!n&&Sn(function(){n.call(null,e||function(){throw 1},1)})},Va=[].join,Wa=Mr!=Object,Ga=Ba("join",",");co({target:"Array",proto:!0,forced:Wa||!Ga},{join:function(t){return Va.call(Rr(this),void 0===t?",":t)}});var Ka=Function.call,Ya=function(t,e,n){return si(Ka,Cn[t].prototype[e],n)},Ja=(Ya("Array","join"),Array.isArray||function(t){return"Array"==yr(t)}),Xa=Xn("species"),$a=function(t,e){var n;return Ja(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!Ja(n.prototype)?On(n)&&null===(n=n[Xa])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},Za=[].push,Qa=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,a=5==t||i;return function(c,u,s,l){for(var f,p,h=uo(c),d=Mr(h),v=si(u,s,3),m=qr(d.length),y=0,g=l||$a,w=e?g(c,m):n?g(c,0):void 0;m>y;y++)if((a||y in d)&&(p=v(f=d[y],y,h),t))if(e)w[y]=p;else if(p)switch(t){case 3:return!0;case 5:return f;case 6:return y;case 2:Za.call(w,f)}else if(o)return!1;return i?-1:r||o?o:w}},tc={forEach:Qa(0),map:Qa(1),filter:Qa(2),some:Qa(3),every:Qa(4),find:Qa(5),findIndex:Qa(6)},ec=Object.defineProperty,nc={},rc=function(t){throw t},oc=tc.forEach,ic=Ba("forEach"),ac=function(t,e){if(zn(nc,"forEach"))return nc.forEach;e||(e={});var n=[].forEach,r=!!zn(e,"ACCESSORS")&&e.ACCESSORS,o=zn(e,0)?e[0]:rc,i=zn(e,1)?e[1]:void 0;return nc.forEach=!!n&&!Sn(function(){if(r&&!En)return!0;var t={length:-1};r?ec(t,1,{enumerable:!0,get:rc}):t[1]=1,n.call(t,o,i)})}(),cc=ic&&ac?[].forEach:function(t){return oc(this,t,arguments.length>1?arguments[1]:void 0)};co({target:"Array",proto:!0,forced:[].forEach!=cc},{forEach:cc}),Ya("Array","forEach");var uc,sc=!Sn(function(){return Object.isExtensible(Object.preventExtensions({}))}),lc=bn(function(t){var e=Mn.f,n=Vn("meta"),r=0,o=Object.isExtensible||function(){return!0},i=function(t){e(t,n,{value:{objectID:"O"+ ++r,weakData:{}}})},a=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!On(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!zn(t,n)){if(!o(t))return"F";if(!e)return"E";i(t)}return t[n].objectID},getWeakData:function(t,e){if(!zn(t,n)){if(!o(t))return!0;if(!e)return!1;i(t)}return t[n].weakData},onFreeze:function(t){return sc&&a.REQUIRED&&o(t)&&!zn(t,n)&&i(t),t}};ur[n]=!0}),fc=Mn.f,pc=lc.fastKey,hc=dr.set,dc=dr.getterFor,vc=(function(t,e,n){var r=-1!=="Map".indexOf("Map"),o=-1!=="Map".indexOf("Weak"),i=r?"set":"add",a=Cn.Map,c=a&&a.prototype,u=a,s={},l=function(t){var e=c[t];vr(c,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(o&&!On(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return o&&!On(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(o&&!On(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(io("Map","function"!=typeof a||!(o||c.forEach&&!Sn(function(){(new a).entries().next()}))))u=n.getConstructor(e,"Map",r,i),lc.REQUIRED=!0;else if(io("Map",!0)){var f=new u,p=f[i](o?{}:-0,1)!=f,h=Sn(function(){f.has(1)}),d=_i(function(t){new a(t)}),v=!o&&Sn(function(){for(var t=new a,e=5;e--;)t[i](e,e);return!t.has(-0)});d||((u=e(function(t,e){ai(t,u,"Map");var n=function(t,e,n){var r,o;return To&&"function"==typeof(r=e.constructor)&&r!==n&&On(o=r.prototype)&&o!==n.prototype&&To(t,o),t}(new a,t,u);return null!=e&&pi(e,n[i],n,r),n})).prototype=c,c.constructor=u),(h||v)&&(l("delete"),l("has"),r&&l("get")),(v||p)&&l(i),o&&c.clear&&delete c.clear}s.Map=u,co({global:!0,forced:u!=a},s),Ao(u,"Map"),o||n.setStrong(u,"Map",r)}(0,function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},{getConstructor:function(t,e,n,r){var o=t(function(t,i){ai(t,o,e),hc(t,{type:e,index:Eo(null),first:void 0,last:void 0,size:0}),En||(t.size=0),null!=i&&pi(i,t[r],t,n)}),i=dc(e),a=function(t,e,n){var r,o,a=i(t),u=c(t,e);return u?u.value=n:(a.last=u={index:o=pc(e,!0),key:e,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=u),r&&(r.next=u),En?a.size++:t.size++,"F"!==o&&(a.index[o]=u)),t},c=function(t,e){var n,r=i(t),o=pc(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return ni(o.prototype,{clear:function(){for(var t=i(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,En?t.size=0:this.size=0},delete:function(t){var e=i(this),n=c(this,t);if(n){var r=n.next,o=n.previous;delete e.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),e.first==n&&(e.first=r),e.last==n&&(e.last=o),En?e.size--:this.size--}return!!n},forEach:function(t){for(var e,n=i(this),r=si(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!c(this,t)}}),ni(o.prototype,n?{get:function(t){var e=c(this,t);return e&&e.value},set:function(t,e){return a(this,0===t?0:t,e)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),En&&fc(o.prototype,"size",{get:function(){return i(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=dc(e),i=dc(r);Do(t,e,function(t,e){hc(this,{type:r,target:t,state:o(t),kind:e,last:void 0})},function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),oi(e)}}),Xn("match")),mc=function(t){if(function(t){var e;return On(t)&&(void 0!==(e=t[vc])?!!e:"RegExp"==yr(t))}(t))throw TypeError("The method doesn't accept regular expressions");return t},yc=Xn("match"),gc=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[yc]=!1,"/./"[t](e)}catch(t){}}return!1},wc=Dr.f,_c="".startsWith,bc=Math.min,xc=gc("startsWith"),Cc=!(xc||(uc=wc(String.prototype,"startsWith"),!uc||uc.writable));co({target:"String",proto:!0,forced:!Cc&&!xc},{startsWith:function(t){var e=String(jr(this));mc(t);var n=qr(bc(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return _c?_c.call(e,r,n):e.slice(n,n+r.length)===r}}),Ya("String","startsWith");var Sc=Dr.f,Ec="".endsWith,Oc=Math.min,jc=gc("endsWith"),Ac=!jc&&!!function(){var t=Sc(String.prototype,"endsWith");return t&&!t.writable}();function kc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Pc(t,e,n){return e&&kc(t.prototype,e),n&&kc(t,n),t}function Lc(){return(Lc=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Tc(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function Nc(t){return(Nc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Mc(t,e){return(Mc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Rc(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function Ic(t,e,n){return(Ic=Rc()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&Mc(o,n.prototype),o}).apply(null,arguments)}function Dc(t){var e="function"==typeof Map?new Map:void 0;return(Dc=function(t){if(null===t||-1===Function.toString.call(t).indexOf("[native code]"))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return Ic(t,arguments,Nc(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Mc(n,t)})(t)}co({target:"String",proto:!0,forced:!Ac&&!jc},{endsWith:function(t){var e=String(jr(this));mc(t);var n=arguments.length>1?arguments[1]:void 0,r=qr(e.length),o=void 0===n?r:Oc(qr(n),r),i=String(t);return Ec?Ec.call(e,i,o):e.slice(o-i.length,o)===i}}),Ya("String","endsWith"),bn(function(t){var e=function(t){var e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var o=Object.create((e&&e.prototype instanceof f?e:f).prototype),i=new C(r||[]);return o._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=_(a,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(t,n,i),o}function s(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var l={};function f(){}function p(){}function h(){}var d={};d[o]=function(){return this};var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&n.call(m,o)&&(d=m);var y=h.prototype=f.prototype=Object.create(d);function g(t){["next","throw","return"].forEach(function(e){c(t,e,function(t){return this._invoke(e,t)})})}function w(t,e){var r;this._invoke=function(o,i){function a(){return new e(function(r,a){!function r(o,i,a,c){var u=s(t[o],t,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then(function(t){r("next",t,a,c)},function(t){r("throw",t,a,c)}):e.resolve(f).then(function(t){l.value=t,a(l)},function(t){return r("throw",t,a,c)})}c(u.arg)}(o,i,r,a)})}return r=r?r.then(a,a):a()}}function _(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,l;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function S(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:E}}function E(){return{value:void 0,done:!0}}return p.prototype=y.constructor=h,h.constructor=p,p.displayName=c(h,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,c(t,a,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},g(w.prototype),w.prototype[i]=function(){return this},t.AsyncIterator=w,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new w(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then(function(t){return t.done?t.value:a.next()})},g(y),c(y,a,"Generator"),y[o]=function(){return this},y.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=S,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}),function(t){t.LIVE="live",t.TEST="test"}(t.ApiMode||(t.ApiMode={}));var Fc=function(){function t(t,e){this.userAgentComponents=[],this.credentials=t,this.config=e}var e=t.prototype;return e.urlFor=function(t){return(this.apiRoot.endsWith("/")?this.apiRoot.slice(0,-1):this.apiRoot)+"/"+(t.startsWith("/")?t.slice(1):t)},e.addUserAgentComponent=function(t,e){this.userAgentComponents.push(e?t+"/"+e:t)},Pc(t,[{key:"apiRoot",get:function(){return this.config.apiRoot[this.mode].trim()}},{key:"mode",get:function(){return this.config.mode},set:function(t){this.config.mode=t}},{key:"logger",get:function(){return this.config.logger}},{key:"userAgentString",get:function(){return this.userAgentComponents.reverse().join("; ")}}]),t}(),Uc=function(){function t(t){this.response=t}return Pc(t,[{key:"statusCode",get:function(){return this.response.status}},{key:"data",get:function(){return this.response.data}}]),t}(),Hc=function(t){function e(e,n,r){var o;return(o=t.call(this)||this).message=e,o.request=n,o.response=r,o}return Tc(e,t),e}(Dc(Error)),zc=function(){function t(t,e){this.context=t,this.url=e,this.headers={"X-Alma-Agent":this.context.userAgentString,Accept:"application/json"},this.params={},this.body=null}var e=t.prototype;return e.setBody=function(t){return this.body=t,this},e.setQueryParams=function(t){return this.params=t,this},e.requestConfig=function(t){var e={url:this.url,headers:this.headers,params:this.params,method:t};return this.body&&(e.data=this.body),this.context.credentials.configureCredentials(e)},e.sendRequest=function(e){return wn.request(this.requestConfig(e)).then(t.processResponse).catch(this.processErrorResponse)},e.get=function(){return this.body=null,this.sendRequest("get")},e.post=function(){return this.sendRequest("post")},e.put=function(){return this.sendRequest("put")},t.processResponse=function(t){return new Uc(t)},e.processErrorResponse=function(t){var e,n="Unknown error";throw t.response?(e=new Uc(t.response)).data&&(n=e.data.message||e.data.error):n=t.name+": "+t.message,new Hc(n,this,e)},t}(),qc=function(){function t(t){this.context=t}return t.prototype.request=function(t){return new zc(this.context,this.context.urlFor(t))},Pc(t,[{key:"logger",get:function(){return this.context.logger}}]),t}(),Bc=function(t){function e(){return t.apply(this,arguments)||this}return Tc(e,t),Pc(e,[{key:"isEligible",get:function(){return this.eligible}}]),e}(function(){function t(t){var e=this;this.data=t,Object.keys(t).forEach(function(n){return e[n]=t[n]})}return Pc(t,[{key:"rawData",get:function(){return this.data}}]),t}()),Vc=function(t){function e(){return t.apply(this,arguments)||this}Tc(e,t);var n=e.prototype;return n.eligibility=function(t){try{return Promise.resolve(this.request("/v1/payments/eligibility").setBody(t).post()).then(function(t){var e=t.statusCode>=500,n=t.data;return!e&&Array.isArray(n)?(n=n.sort(function(t,e){return t.installments_count-e.installments_count})).map(function(t){return new Bc(t)}):new Bc(!e&&n&&"object"==typeof n?n:{eligible:!1})})}catch(t){return Promise.reject(t)}},n.create=function(t){try{return Promise.resolve(this.request("/v1/payments").setBody(t).post()).then(function(t){return t.data})}catch(t){return Promise.reject(t)}},e}(qc),Wc=function(){function t(t){if(!t.trim())throw new Error("An API key is required to instantiate a new Client");this.apiKey=t}return t.prototype.configureCredentials=function(t){return Lc({},t,{headers:Lc({},t.headers,{Authorization:"Alma-Auth "+this.apiKey})})},t}(),Gc=function(){function t(t){if(!t.trim())throw new Error("A merchant ID is required to instantiate a new Client");this.merchantId=t}return t.prototype.configureCredentials=function(t){return Lc({},t,{headers:Lc({},t.headers,{Authorization:"Alma-Merchant-Auth "+this.merchantId})})},t}(),Kc=function(){function e(t,n){void 0===n&&(n={}),this.endpoints=new Map;var r=e.initConfig(t,n);this.context=new Fc(t,r),this.initUserAgent()}e.withApiKey=function(t,n){return void 0===n&&(n={}),new e(new Wc(t),n)},e.withMerchantId=function(t,n){return void 0===n&&(n={}),new e(new Gc(t),n)},e.initConfig=function(e,n){var r,o,i={apiRoot:(r={},r[t.ApiMode.TEST]="https://api.sandbox.getalma.eu",r[t.ApiMode.LIVE]="https://api.getalma.eu",r),mode:t.ApiMode.LIVE,logger:console},a=n.apiRoot,c=n.mode;if("string"==typeof a)n.apiRoot=((o={})[t.ApiMode.TEST]=a,o[t.ApiMode.LIVE]=a,o);else if(a&&(!a[t.ApiMode.TEST]||!a[t.ApiMode.LIVE]))throw new Error("ClientOptions `apiRoot` must be a string or an object with ApiMode values as keys");if(c&&c!==t.ApiMode.LIVE&&c!==t.ApiMode.TEST)throw new Error("ClientOptions `mode` must be an ApiMode value");return!c&&e instanceof Wc&&(n.mode=e.apiKey.indexOf("_live_",2)>0?t.ApiMode.LIVE:t.ApiMode.TEST),Lc({},i,n)};var n=e.prototype;return n.initUserAgent=function(){this.addUserAgentComponent("JavaScript"),this.addUserAgentComponent("Alma for JS","1.1.1")},n.addUserAgentComponent=function(t,e){this.context.addUserAgentComponent(t,e)},n.endpoint=function(t){var e=this.endpoints.get(t);return e||(e=new t(this.context),this.endpoints.set(t,e)),e},Pc(e,[{key:"payments",get:function(){return this.endpoint(Vc)}},{key:"mode",get:function(){return this.context.mode},set:function(t){this.context.mode=t}}]),e}();function Yc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Jc(t,e,n){return e&&Yc(t.prototype,e),n&&Yc(t,n),t}function Xc(){return(Xc=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function $c(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function Zc(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Qc(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Zc(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zc(t,void 0):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=t[Symbol.iterator]()).next.bind(n)}var tu,eu,nu,ru,ou,iu=function(){function t(t){this.almaClient=t,this.widgets=[]}var e=t.prototype;return e.add=function(t,e){var n=new t(this.almaClient,e);return this.widgets.push(n),n},e.render=function(){try{for(var t,e=[],n=Qc(this.widgets);!(t=n()).done;)e.push(t.value.render());return Promise.resolve(Promise.all(e)).then(function(){})}catch(t){return Promise.reject(t)}},t}(),au={},cu=[],uu=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function su(t,e){for(var n in e)t[n]=e[n];return t}function lu(t){var e=t.parentNode;e&&e.removeChild(t)}function fu(t,e,n,r,o){var i={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++tu.__v:o};return null!=tu.vnode&&tu.vnode(i),i}function pu(t){return t.children}function hu(t,e){this.props=t,this.context=e}function du(t,e){if(null==e)return t.__?du(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?du(t):null}function vu(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return vu(t)}}function mu(t){(!t.__d&&(t.__d=!0)&&eu.push(t)&&!yu.__r++||ru!==tu.debounceRendering)&&((ru=tu.debounceRendering)||nu)(yu)}function yu(){for(var t;yu.__r=eu.length;)t=eu.sort(function(t,e){return t.__v.__b-e.__v.__b}),eu=[],t.some(function(t){var e,n,r,o,i,a,c;t.__d&&(a=(i=(e=t).__v).__e,(c=e.__P)&&(n=[],(r=su({},i)).__v=i.__v+1,o=Su(c,i,r,e.__n,void 0!==c.ownerSVGElement,null!=i.__h?[a]:null,n,null==a?du(i):a,i.__h),Eu(n,i),o!=a&&vu(i)))})}function gu(t,e,n,r,o,i,a,c,u,s){var l,f,p,h,d,v,m,y=r&&r.__k||cu,g=y.length;for(u==au&&(u=null!=a?a[0]:g?du(r,0):null),n.__k=[],l=0;l<e.length;l++)if(null!=(h=n.__k[l]=null==(h=e[l])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h?fu(null,h,null,null,h):Array.isArray(h)?fu(pu,{children:h},null,null,null):null!=h.__e||null!=h.__c?fu(h.type,h.props,h.key,null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(p=y[l])||p&&h.key==p.key&&h.type===p.type)y[l]=void 0;else for(f=0;f<g;f++){if((p=y[f])&&h.key==p.key&&h.type===p.type){y[f]=void 0;break}p=null}d=Su(t,h,p=p||au,o,i,a,c,u,s),(f=h.ref)&&p.ref!=f&&(m||(m=[]),p.ref&&m.push(p.ref,null,h),m.push(f,h.__c||d,h)),null!=d?(null==v&&(v=d),u=wu(t,h,p,y,a,d,u),s||"option"!=n.type?"function"==typeof n.type&&(n.__d=u):t.value=""):u&&p.__e==u&&u.parentNode!=t&&(u=du(p))}if(n.__e=v,null!=a&&"function"!=typeof n.type)for(l=a.length;l--;)null!=a[l]&&lu(a[l]);for(l=g;l--;)null!=y[l]&&ju(y[l],y[l]);if(m)for(l=0;l<m.length;l++)Ou(m[l],m[++l],m[++l])}function wu(t,e,n,r,o,i,a){var c,u,s;if(void 0!==e.__d)c=e.__d,e.__d=void 0;else if(o==n||i!=a||null==i.parentNode)t:if(null==a||a.parentNode!==t)t.appendChild(i),c=null;else{for(u=a,s=0;(u=u.nextSibling)&&s<r.length;s+=2)if(u==i)break t;t.insertBefore(i,a),c=a}return void 0!==c?c:i.nextSibling}function _u(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||uu.test(e)?n:n+"px"}function bu(t,e,n,r,o){var i,a,c;if(o&&"className"==e&&(e="class"),"style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||_u(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||_u(t.style,e,n[e])}else"o"===e[0]&&"n"===e[1]?(i=e!==(e=e.replace(/Capture$/,"")),(a=e.toLowerCase())in t&&(e=a),e=e.slice(2),t.l||(t.l={}),t.l[e+i]=n,c=i?Cu:xu,n?r||t.addEventListener(e,c,i):t.removeEventListener(e,c,i)):"list"!==e&&"tagName"!==e&&"form"!==e&&"type"!==e&&"size"!==e&&"download"!==e&&"href"!==e&&!o&&e in t?t[e]=null==n?"":n:"function"!=typeof n&&"dangerouslySetInnerHTML"!==e&&(e!==(e=e.replace(/xlink:?/,""))?null==n||!1===n?t.removeAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase()):t.setAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase(),n):null==n||!1===n&&!/^ar/.test(e)?t.removeAttribute(e):t.setAttribute(e,n))}function xu(t){this.l[t.type+!1](tu.event?tu.event(t):t)}function Cu(t){this.l[t.type+!0](tu.event?tu.event(t):t)}function Su(t,e,n,r,o,i,a,c,u){var s,l,f,p,h,d,v,m,y,g,w,_=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(u=n.__h,c=e.__e=n.__e,e.__h=null,i=[c]),(s=tu.__b)&&s(e);try{t:if("function"==typeof _){if(m=e.props,y=(s=_.contextType)&&r[s.__c],g=s?y?y.props.value:s.__:r,n.__c?v=(l=e.__c=n.__c).__=l.__E:("prototype"in _&&_.prototype.render?e.__c=l=new _(m,g):(e.__c=l=new hu(m,g),l.constructor=_,l.render=Au),y&&y.sub(l),l.props=m,l.state||(l.state={}),l.context=g,l.__n=r,f=l.__d=!0,l.__h=[]),null==l.__s&&(l.__s=l.state),null!=_.getDerivedStateFromProps&&(l.__s==l.state&&(l.__s=su({},l.__s)),su(l.__s,_.getDerivedStateFromProps(m,l.__s))),p=l.props,h=l.state,f)null==_.getDerivedStateFromProps&&null!=l.componentWillMount&&l.componentWillMount(),null!=l.componentDidMount&&l.__h.push(l.componentDidMount);else{if(null==_.getDerivedStateFromProps&&m!==p&&null!=l.componentWillReceiveProps&&l.componentWillReceiveProps(m,g),!l.__e&&null!=l.shouldComponentUpdate&&!1===l.shouldComponentUpdate(m,l.__s,g)||e.__v===n.__v){l.props=m,l.state=l.__s,e.__v!==n.__v&&(l.__d=!1),l.__v=e,e.__e=n.__e,e.__k=n.__k,l.__h.length&&a.push(l),function t(e,n,r){var o,i;for(o=0;o<e.__k.length;o++)(i=e.__k[o])&&(i.__=e,i.__e&&("function"==typeof i.type&&i.__k.length>1&&t(i,n,r),n=wu(r,i,i,e.__k,null,i.__e,n),"function"==typeof e.type&&(e.__d=n)))}(e,c,t);break t}null!=l.componentWillUpdate&&l.componentWillUpdate(m,l.__s,g),null!=l.componentDidUpdate&&l.__h.push(function(){l.componentDidUpdate(p,h,d)})}l.context=g,l.props=m,l.state=l.__s,(s=tu.__r)&&s(e),l.__d=!1,l.__v=e,l.__P=t,s=l.render(l.props,l.state,l.context),l.state=l.__s,null!=l.getChildContext&&(r=su(su({},r),l.getChildContext())),f||null==l.getSnapshotBeforeUpdate||(d=l.getSnapshotBeforeUpdate(p,h)),w=null!=s&&s.type==pu&&null==s.key?s.props.children:s,gu(t,Array.isArray(w)?w:[w],e,n,r,o,i,a,c,u),l.base=e.__e,e.__h=null,l.__h.length&&a.push(l),v&&(l.__E=l.__=null),l.__e=!1}else null==i&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=function(t,e,n,r,o,i,a,c){var u,s,l,f,p,h=n.props,d=e.props;if(o="svg"===e.type||o,null!=i)for(u=0;u<i.length;u++)if(null!=(s=i[u])&&((null===e.type?3===s.nodeType:s.localName===e.type)||t==s)){t=s,i[u]=null;break}if(null==t){if(null===e.type)return document.createTextNode(d);t=o?document.createElementNS("http://www.w3.org/2000/svg",e.type):document.createElement(e.type,d.is&&{is:d.is}),i=null,c=!1}if(null===e.type)h===d||c&&t.data===d||(t.data=d);else{if(null!=i&&(i=cu.slice.call(t.childNodes)),l=(h=n.props||au).dangerouslySetInnerHTML,f=d.dangerouslySetInnerHTML,!c){if(null!=i)for(h={},p=0;p<t.attributes.length;p++)h[t.attributes[p].name]=t.attributes[p].value;(f||l)&&(f&&(l&&f.__html==l.__html||f.__html===t.innerHTML)||(t.innerHTML=f&&f.__html||""))}(function(t,e,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in e||bu(t,i,null,n[i],r);for(i in e)o&&"function"!=typeof e[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===e[i]||bu(t,i,e[i],n[i],r)})(t,d,h,o,c),f?e.__k=[]:(u=e.props.children,gu(t,Array.isArray(u)?u:[u],e,n,r,"foreignObject"!==e.type&&o,i,a,au,c)),c||("value"in d&&void 0!==(u=d.value)&&(u!==t.value||"progress"===e.type&&!u)&&bu(t,"value",u,h.value,!1),"checked"in d&&void 0!==(u=d.checked)&&u!==t.checked&&bu(t,"checked",u,h.checked,!1))}return t}(n.__e,e,n,r,o,i,a,u);(s=tu.diffed)&&s(e)}catch(t){e.__v=null,(u||null!=i)&&(e.__e=c,e.__h=!!u,i[i.indexOf(c)]=null),tu.__e(t,e,n)}return e.__e}function Eu(t,e){tu.__c&&tu.__c(e,t),t.some(function(e){try{t=e.__h,e.__h=[],t.some(function(t){t.call(e)})}catch(t){tu.__e(t,e.__v)}})}function Ou(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){tu.__e(t,n)}}function ju(t,e,n){var r,o,i;if(tu.unmount&&tu.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||Ou(r,null,e)),n||"function"==typeof t.type||(n=null!=(o=t.__e)),t.__e=t.__d=void 0,null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){tu.__e(t,e)}r.base=r.__P=null}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&ju(r[i],e,n);null!=o&&lu(o)}function Au(t,e,n){return this.constructor(t,n)}function ku(t,e,n){var r,o,i;tu.__&&tu.__(t,e),o=(r=n===ou)?null:n&&n.__k||e.__k,t=function(t,e,n){var r,o,i,a=arguments,c={};for(i in e)"key"==i?r=e[i]:"ref"==i?o=e[i]:c[i]=e[i];if(arguments.length>3)for(n=[n],i=3;i<arguments.length;i++)n.push(a[i]);if(null!=n&&(c.children=n),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===c[i]&&(c[i]=t.defaultProps[i]);return fu(t,c,r,o,null)}(pu,null,[t]),i=[],Su(e,(r?e:n||e).__k=t,o||au,au,void 0!==e.ownerSVGElement,n&&!r?[n]:o?null:e.childNodes.length?cu.slice.call(e.childNodes):null,i,n||au,r),Eu(i,t)}function Pu(t,e,n,r,o){var i,a,c={type:t,props:e,key:n,ref:e&&e.ref,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:++tu.__v,__source:r,__self:o};if("function"==typeof t&&(i=t.defaultProps))for(a in i)void 0===e[a]&&(e[a]=i[a]);return tu.vnode&&tu.vnode(c),c}tu={__e:function(t,e){for(var n,r,o,i=e.__h;e=e.__;)if((n=e.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(t)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(t),o=n.__d),o)return e.__h=i,n.__E=n}catch(e){t=e}throw t},__v:0},hu.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=su({},this.state),"function"==typeof t&&(t=t(su({},n),this.props)),t&&su(n,t),null!=t&&this.__v&&(e&&this.__h.push(e),mu(this))},hu.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),mu(this))},hu.prototype.render=pu,eu=[],nu="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,yu.__r=0,ou=au;var Lu,Tu,Nu,Mu,Ru,Iu=Object.prototype,Du=Function.prototype.toString,Fu=Iu.hasOwnProperty,Uu=Du.call(Object),Hu=Iu.toString,zu=(Lu=Object.getPrototypeOf,Tu=Object,function(t){return Lu(Tu(t))}),qu=function(t){if(!function(t){return!!t&&"object"==typeof t}(t)||"[object Object]"!=Hu.call(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t))return!1;var e=zu(t);if(null===e)return!0;var n=Fu.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Du.call(n)==Uu},Bu=function(){function t(t,e){this.almaClient=t,this.config=function(t,e){var n={},r=[t,e];function o(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];Object.prototype.hasOwnProperty.call(e,i)&&(qu(e[i])?(t[i]&&qu(t[i])||(t[i]={}),o(t[i],e[i])):t[i]=e[i])}return t}for(var i=0;i<2;i++)o(n,r[i]);return n}(this.defaultConfig(),e)}return t.prototype.render=function(){try{var t=this;return Promise.resolve(t.renderComponent()).then(function(e){ku(Pu("div",{className:"alma-widget-root "+t.config.classes.root,children:e}),t.container)})}catch(t){return Promise.reject(t)}},Jc(t,[{key:"container",get:function(){var t;if("string"==typeof this.config.container){var e=document.querySelector(this.config.container);if(!e)throw new Error("Container element '"+this.config.container+"' not found");t=e}else t=this.config.container;return t}}]),t}(),Vu=u(function(t){!function(){var e={}.hasOwnProperty;function n(){for(var t=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)t.push(o);else if(Array.isArray(o)&&o.length){var a=n.apply(null,o);a&&t.push(a)}else if("object"===i)for(var c in o)e.call(o,c)&&o[c]&&t.push(c)}}return t.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n}()}),Wu=0,Gu=[],Ku=tu.__b,Yu=tu.__r,Ju=tu.diffed,Xu=tu.__c,$u=tu.unmount;function Zu(t,e){tu.__h&&tu.__h(Mu,t,Wu||e),Wu=0;var n=Mu.__H||(Mu.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function Qu(t){return Wu=1,ts(cs,t)}function ts(t,e,n){var r=Zu(Nu++,2);return r.t=t,r.__c||(r.__=[n?n(e):cs(void 0,e),function(t){var e=r.t(r.__[0],t);r.__[0]!==e&&(r.__=[e,r.__[1]],r.__c.setState({}))}],r.__c=Mu),r.__}function es(t,e){var n=Zu(Nu++,3);!tu.__s&&as(n.__H,e)&&(n.__=t,n.__H=e,Mu.__H.__h.push(n))}function ns(){Gu.forEach(function(t){if(t.__P)try{t.__H.__h.forEach(os),t.__H.__h.forEach(is),t.__H.__h=[]}catch(e){t.__H.__h=[],tu.__e(e,t.__v)}}),Gu=[]}tu.__b=function(t){Mu=null,Ku&&Ku(t)},tu.__r=function(t){Yu&&Yu(t),Nu=0;var e=(Mu=t.__c).__H;e&&(e.__h.forEach(os),e.__h.forEach(is),e.__h=[])},tu.diffed=function(t){Ju&&Ju(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(1!==Gu.push(e)&&Ru===tu.requestAnimationFrame||((Ru=tu.requestAnimationFrame)||function(t){var e,n=function(){clearTimeout(r),rs&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);rs&&(e=requestAnimationFrame(n))})(ns)),Mu=void 0},tu.__c=function(t,e){e.some(function(t){try{t.__h.forEach(os),t.__h=t.__h.filter(function(t){return!t.__||is(t)})}catch(n){e.some(function(t){t.__h&&(t.__h=[])}),e=[],tu.__e(n,t.__v)}}),Xu&&Xu(t,e)},tu.unmount=function(t){$u&&$u(t);var e=t.__c;if(e&&e.__H)try{e.__H.__.forEach(os)}catch(t){tu.__e(t,e.__v)}};var rs="function"==typeof requestAnimationFrame;function os(t){var e=Mu;"function"==typeof t.__c&&t.__c(),Mu=e}function is(t){var e=Mu;t.__c=t.__(),Mu=e}function as(t,e){return!t||t.length!==e.length||e.some(function(e,n){return e!==t[n]})}function cs(t,e){return"function"==typeof e?e(t):e}var us=function(t){var e=t.closeCallback,n=t.children;return es(function(){var t=function(t){var n;"escape"!==(null==(n=t.key)?void 0:n.toLowerCase())&&27!==t.keyCode||null==e||e()};return document.addEventListener("keyup",t),function(){document.removeEventListener("keyup",t)}},[e]),Pu("div",{className:"atw-inset-0 atw-flex atw-fixed atw-justify-center atw-items-center atw-z-50 atw-bg-black atw-bg-opacity-50",children:n})};function ss(t){return null==t.find(function(t){return t.customer_fee>0||t.customer_interest>0})}function ls(t){var e=t.plan;return e?Pu("p",{className:"atw-my-8 atw-text-lg",children:["Paiement ",ss(e)?"sans frais,":null," par carte bancaire, en ",e.length," ","échéances :"]}):Pu("div",{className:"atw-my-8 atw-space-y-2 atw-animate-pulse",children:[Pu("div",{className:"atw-h-4 atw-bg-orange-900 atw-rounded-sm atw-opacity-15",children:" "}),Pu("div",{className:"atw-h-4 atw-bg-orange-900 atw-rounded-sm atw-opacity-15",children:" "})]})}function fs(t){var e=t.color;return Pu("svg",{className:t.className,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Pu("path",{d:"M12.5964 11.404L9.41445 8.22205L12.5964 5.04007C12.7732 4.86329 12.7732 4.50974 12.5964 4.33296L11.8893 3.62585C11.6904 3.42698 11.359 3.44908 11.1822 3.62585L8.00023 6.80783L4.81825 3.62585C4.61938 3.42698 4.28792 3.44908 4.11114 3.62585L3.40404 4.33296C3.20516 4.53183 3.20516 4.84119 3.40404 5.04007L6.58602 8.22205L3.40404 11.404C3.20516 11.6029 3.20517 11.9123 3.40404 12.1111L4.11115 12.8182C4.28792 12.995 4.61938 13.0171 4.81825 12.8182L8.00023 9.63626L11.1822 12.8182C11.359 12.995 11.6904 13.0171 11.8893 12.8182L12.5964 12.1111C12.7732 11.9344 12.7732 11.5808 12.5964 11.404Z",fill:void 0===e?"#fff":e})})}var ps=["atw-group","atw-inline-block","atw-transition-all","duration-200","atw-border-b-2","atw-text-sm","atw-mr-3"],hs=["atw-flex","atw-p-2","atw-text-white","atw-rounded-sm","atw-my-4","atw-transition-colors","atw-duration-200"," atw-select-none"];function ds(){return Pu("li",{className:Vu.apply(void 0,ps.concat([".atw-animate-pulse","atw-border-orange-900","atw-opacity-50","atw-text-orange-900"])),children:Pu("span",{className:Vu.apply(void 0,hs.concat(["atw-bg-orange-900"])),children:Pu(fs,{})})})}function vs(t){var e=t.n,n=t.selected,r=t.onSelect;return Pu("li",{className:Vu.apply(void 0,ps.concat([n?"atw-border-red":"atw-border-transparent","atw-cursor-pointer"])),onClick:function(t){t.preventDefault(),t.stopPropagation(),r(e)},children:Pu("span",{className:Vu.apply(void 0,hs.concat([n?"atw-bg-red":"atw-bg-blue",{"group-hover:atw-bg-red":!n}])),children:[e,Pu(fs,{className:"plan-selector-multiplier"})]})})}function ms(t){var e,n=t.selectedPlan,r=t.installmentsCounts,o=t.onSelect;return e=0===r.length?Pu(ds,{}):r.map(function(t){return Pu(vs,{selected:t===n,n:t,onSelect:o},t)}),Pu("ul",{className:"atw-flex atw-justify-center",children:e})}function ys(t){return Number((t/100).toFixed(2))}function gs(t){return String(ys(t)).replace(".",",")}function ws(t,e){return t.getUTCDate()===e.getUTCDate()&&t.getUTCMonth()===e.getUTCMonth()&&t.getUTCFullYear()===e.getUTCFullYear()}function _s(t,e,n){return void 0===e&&(e=!1),void 0===n&&(n=!1),function(t){return ws(t,new Date)}(t)&&!n?"aujourd'hui":function(t){var e=new Date;return ws(t,new Date(e.setDate(e.getDate()-1)))}(t)&&!n?"hier":(e?"le ":"")+t.toLocaleDateString()}function bs(t,e){var n=t.getDate();return t.setMonth(t.getMonth()+ +e),t.getDate()!=n&&t.setDate(0),t}function xs(t){var e=t.currency,n=void 0===e?"€":e;return Pu("span",{className:t.className,children:[gs(t.cents)," ",n]})}function Cs(t){var e=t.installment,n=e.purchase_amount+e.customer_fee+e.customer_interest,r=Vu("atw-flex","atw-flex-row","atw-justify-between",{"atw-pb-4":0===e.customer_fee}),o=null;return e.customer_fee>0&&(o=Pu("div",{className:"atw-flex atw-flex-row atw-justify-end atw-pb-4",children:Pu("span",{className:"atw-text-xs",children:["Dont frais : ",Pu(xs,{cents:e.customer_fee})]})})),Pu(pu,{children:[Pu("div",{className:r,children:[Pu("span",{className:"atw-capitalize",children:_s(new Date(1e3*e.due_date),!0)}),Pu(xs,{className:"alma-title-text",cents:n})]}),o]})}function Ss(t){return Pu("div",{className:"atw-flex atw-flex-row atw-justify-between",children:[Pu("span",{className:"atw-capitalize",children:t.label}),Pu("span",{children:[Pu("span",{className:"atw-inline-block atw-w-8 atw-bg-orange-900 atw-rounded-sm atw-opacity-25",children:" "})," €"]})]})}function Es(t){return t.map(function(t){return t.purchase_amount+t.customer_fee+t.customer_interest}).reduce(function(t,e){return t+e})}function Os(t){var e=t.plan;if(!e){var n=new Date;return Pu("div",{className:"atw-space-y-4 atw-animate-pulse atw-text-orange-900 atw-opacity-25",children:[Pu(Ss,{label:_s(n,!0)}),Pu(Ss,{label:_s(bs(n,1),!0)}),Pu(Ss,{label:_s(bs(n,2),!0)}),Pu("hr",{className:"atw-border-orange-900 atw-opacity-25"}),Pu(Ss,{label:"Total"})]})}return Pu("div",{children:[e.map(function(t,e){return Pu(Cs,{installment:t},e)}),Pu("hr",{className:"atw-border-blue atw-opacity-50"}),Pu("div",{className:"atw-flex atw-flex-row atw-justify-between atw-pt-4 alma-title-text",children:[Pu("span",{children:"Total"}),Pu(xs,{cents:Es(e)})]})]})}const js="data:image/svg+xml,%3csvg width='114' height='62' viewBox='0 0 114 62' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg clip-path='url(%23clip0)'%3e%3cpath d='M18.1985 26.5444V26.2495H14.0374C12.0793 26.2495 10.627 26.4461 9.68054 26.8394C8.76673 27.1998 8.30982 28.0027 8.30982 29.248C8.30982 31.116 9.61526 32.0499 12.2261 32.0499C14.4128 32.0499 15.9467 31.5911 16.8278 30.6736C17.7416 29.7232 18.1985 28.3468 18.1985 26.5444ZM10.6107 37.4571C7.54288 37.4571 5.27467 36.7034 3.80605 35.1959C2.33743 33.6557 1.60312 31.6731 1.60312 29.248C1.60312 26.3314 2.54956 24.2341 4.44245 22.956C6.33534 21.6452 9.22363 20.9898 13.1073 20.9898H18.1985V19.9083C18.1985 17.4833 16.6646 16.2708 13.5969 16.2708C10.8554 16.2708 9.33786 17.3194 9.04414 19.4168H2.19057C2.41902 16.8934 3.46337 14.7797 5.32363 13.0756C7.18388 11.3715 9.99058 10.5195 13.7437 10.5195C17.4642 10.5195 20.2709 11.3551 22.1638 13.0264C24.0567 14.6978 25.0032 17.0573 25.0032 20.1049V36.8673H18.8349V34.0162C17.3663 36.3102 14.6249 37.4571 10.6107 37.4571Z' fill='%2300425E'/%3e%3cpath d='M40.6279 30.8702V36.8181C39.9426 36.9164 39.2246 36.9656 38.4739 36.9656C35.7651 36.9656 33.8396 36.3921 32.6974 35.2451C31.5551 34.0654 30.984 32.181 30.984 29.5921V0H37.9354V29.1006C37.9354 29.7232 38.0497 30.182 38.2781 30.4769C38.5066 30.7719 38.9798 30.9193 39.6978 30.9193C39.861 30.9193 40.0405 30.9193 40.2363 30.9193C40.4647 30.8866 40.5953 30.8702 40.6279 30.8702Z' fill='%2300425E'/%3e%3cpath d='M68.0988 22.2187V36.8673H61.1473V21.5796C61.1473 18.2042 59.7766 16.5165 57.0352 16.5165C55.436 16.5165 54.1958 17.0081 53.3147 17.9912C52.4661 18.9744 52.0419 20.3343 52.0419 22.0712V36.8673H45.0904V11.1093H51.5034V14.2553C52.8414 11.7648 55.3055 10.5195 58.8954 10.5195C62.2896 10.5195 64.7699 11.732 66.3364 14.157C68.523 11.732 71.3624 10.5195 74.8544 10.5195C77.857 10.5195 80.1578 11.4534 81.757 13.3214C83.3561 15.1893 84.1557 17.6799 84.1557 20.7931V36.8673H77.2042V21.5796C77.2042 18.2042 75.8335 16.5165 73.0921 16.5165C71.4603 16.5165 70.2201 17.0245 69.3716 18.0404C68.523 19.0235 68.0988 20.4163 68.0988 22.2187Z' fill='%2300425E'/%3e%3cpath d='M105.541 26.5444V26.2495H101.38C99.4221 26.2495 97.9698 26.4461 97.0234 26.8394C96.1096 27.1998 95.6526 28.0027 95.6526 29.248C95.6526 31.116 96.9581 32.0499 99.569 32.0499C101.756 32.0499 103.289 31.5911 104.171 30.6736C105.084 29.7232 105.541 28.3468 105.541 26.5444ZM97.9535 37.4571C94.8857 37.4571 92.6175 36.7034 91.1489 35.1959C89.6803 33.6557 88.9459 31.6731 88.9459 29.248C88.9459 26.3314 89.8924 24.2341 91.7853 22.956C93.6782 21.6452 96.5665 20.9898 100.45 20.9898H105.541V19.9083C105.541 17.4833 104.007 16.2708 100.94 16.2708C98.1983 16.2708 96.6807 17.3194 96.387 19.4168H89.5334C89.7618 16.8934 90.8062 14.7797 92.6665 13.0756C94.5267 11.3715 97.3334 10.5195 101.087 10.5195C104.807 10.5195 107.614 11.3551 109.507 13.0264C111.4 14.6978 112.346 17.0573 112.346 20.1049V36.8673H106.178V34.0162C104.709 36.3102 101.968 37.4571 97.9535 37.4571Z' fill='%2300425E'/%3e%3crect y='53.7429' width='114' height='8.14286' fill='%23FF414D'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0'%3e%3crect width='114' height='61.8857' fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";var As={visa:"Visa",mastercard:"Mastercard",cb:"Cartes Bancaires"},ks={cb:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='16' viewBox='0 0 24 16'%3e%3cdefs%3e%3clinearGradient id='cardcb' x1='5.842%25' x2='95.393%25' y1='81.753%25' y2='17.344%25'%3e%3cstop offset='0%25' stop-color='%2339B54A'%3e%3c/stop%3e %3cstop offset='100%25' stop-color='%230A5296'%3e%3c/stop%3e%3c/linearGradient%3e%3c/defs%3e %3cg fill='none' fill-rule='nonzero'%3e%3cpath fill='url(%23cardcb)' d='M22.621 16H1.38C.627 16 0 15.392 0 14.662V1.338C0 .608.627 0 1.379 0H22.62C23.373 0 24 .608 24 1.338v13.324c-.063.73-.627 1.338-1.379 1.338z'%3e%3c/path%3e %3cg fill='white'%3e%3cpath d='M19.094 4.03h-6.437V8h6.498c1.165 0 2.084-.889 2.084-2.015-.06-1.066-.98-1.955-2.145-1.955zM19.094 8.593h-6.437v3.97h6.498c1.165 0 2.084-.889 2.084-2.015-.06-1.067-.98-1.955-2.145-1.955zM7.017 8.06h4.966c-.245-2.371-2.391-4.267-4.966-4.267-2.758 0-5.027 2.074-5.027 4.681s2.269 4.682 5.027 4.682c2.698 0 4.904-2.015 5.027-4.563H7.017v-.534z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",visa:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='16' viewBox='0 0 24 16'%3e%3cg fill='none' fill-rule='nonzero'%3e%3cpath fill='%23FCFCFC' d='M22.684 16H1.38C.627 16 0 15.39 0 14.656V1.344C0 .61.627 0 1.379 0H22.62C23.373 0 24 .61 24 1.344v13.374c0 .671-.564 1.282-1.316 1.282z'%3e%3c/path%3e %3cpath fill='%23005098' d='M8.889 10.726l.948-5.393h1.482l-.949 5.393zM15.704 5.452a3.658 3.658 0 0 0-1.304-.237c-1.481 0-2.489.71-2.489 1.778 0 .77.711 1.185 1.304 1.481.592.237.77.415.77.652 0 .355-.474.533-.889.533-.592 0-.889-.059-1.363-.296l-.177-.06-.178 1.186c.355.178 1.007.296 1.659.296 1.54 0 2.548-.71 2.548-1.837 0-.592-.415-1.067-1.244-1.481-.534-.237-.83-.415-.83-.652 0-.237.237-.474.83-.474.474 0 .83.118 1.126.178l.118.059.119-1.126M19.496 5.333H18.37c-.355 0-.592.119-.77.474l-2.193 4.919h1.541s.237-.652.296-.83h1.897c.059.178.178.83.178.83h1.362l-1.185-5.393zM17.66 8.77l.593-1.481s.118-.296.178-.533l.118.474s.296 1.303.356 1.54h-1.245zM7.644 5.333L6.222 9.007l-.178-.77C5.748 7.348 4.92 6.459 4.03 5.985l1.303 4.682h1.541l2.311-5.393h-1.54'%3e%3c/path%3e %3cpath fill='%23F6A500' d='M4.919 5.333h-2.37v.119c1.836.474 3.08 1.54 3.555 2.844L5.57 5.807c-.118-.414-.355-.474-.651-.474'%3e%3c/path%3e %3cpath fill='%230A5296' d='M23.937 3.23H0V1.316C0 .598.627 0 1.379 0H22.62C23.373 0 24 .598 24 1.316V3.23h-.063z'%3e%3c/path%3e %3cpath fill='%23F4A428' d='M.063 13H24v1.8c0 .655-.625 1.2-1.375 1.2H1.375C.625 16 0 15.455 0 14.8V13h.063z'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",mastercard:"data:image/svg+xml,%3csvg width='24px' height='16px' viewBox='0 0 24 16' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cg id='Parcours-1C-B' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3e%3cg id='mobile-1C-Paiement-V1' transform='translate(-269.000000%2c -313.000000)'%3e%3cg id='mastercard' transform='translate(269.000000%2c 313.000000)'%3e%3crect id='Rectangle' fill='white' x='0' y='0' width='24' height='16' rx='1'%3e%3c/rect%3e %3cg id='Group-6' transform='translate(4.000000%2c 3.000000)'%3e%3ccircle id='Oval-4-Copy' fill='%23EA001B' cx='5.05263158' cy='5.05263158' r='5.05263158'%3e%3c/circle%3e %3ccircle id='Oval-4' fill-opacity='0.25' fill='%23F79F1A' cx='10.9473684' cy='5.05263158' r='5.05263158'%3e%3c/circle%3e %3ccircle id='Oval-4-Copy-2' fill-opacity='0.9' fill='%23F79F1A' cx='10.9473684' cy='5.05263158' r='5.05263158'%3e%3c/circle%3e %3ccircle id='Oval-4-Copy-3' fill-opacity='0.3' fill='%23EA001B' cx='5.05263158' cy='5.05263158' r='5.05263158'%3e%3c/circle%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e"};function Ps(t){var e=t.brand,n=t.alt;return Pu("img",{className:"atw-h-full",src:ks[e],alt:void 0===n?As[e]:n})}function Ls(t){var e=t.almaClient,n=t.purchaseAmount,r=t.installmentsCounts,o=t.samplePlans,i=void 0===o?[]:o,a=t.closeCallback,c=Qu(0),u=c[0],s=c[1],l=Qu(i),f=l[0],p=l[1];es(function(){var t=f.map(function(t){return t.length}).reduce(function(t,e){return 3!==t&&e>t?e:t},0);s(t)},[f]),es(function(){f.length||function(t,e,n){try{return Promise.resolve(t.payments.eligibility({payment:{purchase_amount:e,installments_count:n}})).then(function(t){return t.filter(function(t){return t.eligible}).map(function(t){return t.payment_plan})})}catch(t){return Promise.reject(t)}}(e,n,r).then(p).catch(function(){return null})},[n,r,f]);var h=function(t,e){return t.find(function(t){return t.length===e})||null}(f,u);return Pu(us,{closeCallback:a,children:Pu("div",{className:"atw-overflow-auto atw-relative atw-flex atw-flex-row atw-flex-wrap atw-rounded-sm atw-shadow-lg atw-w-screen atw-h-screen md:atw-h-800 lg:atw-w-11/12 md:atw-max-w-4xl atw-max-h-screen atw-bg-white atw-text-base",children:[Pu("button",{onClick:a,className:"atw-text-3xl atw-opacity-50 hover:atw-opacity-100 focus:atw-opacity-100 atw-absolute atw-top-3 atw-right-4 atw-outline-none atw-transform hover:atw-scale-125 focus:atw-scale-125 atw-transition-transform atw-duration-100",children:"×"}),Pu("div",{className:"atw-w-full md:atw-w-1/2 atw-p-8",children:[Pu("img",{className:"atw-h-8",src:js,alt:"Alma"}),Pu("div",{className:"alma-title-text atw-text-5xl atw-font-bold atw-mt-8",children:["Payer avec Alma c'est simple ",Pu("br",{}),"et ",Pu("span",{className:"alma-text-highlight-md",children:"immédiat"})]}),Pu("ul",{className:"alma-howItWorks__steps atw-my-10",children:[Pu("li",{className:"atw-pl-8 atw-mb-5",children:"Validez votre panier"}),Pu("li",{className:"atw-pl-8 atw-mb-5",children:"Sélectionnez l'option de paiement en plusieurs fois Alma"}),Pu("li",{className:"atw-pl-8 atw-mb-5",children:"Entrez votre numéro de carte bancaire, et c'est tout !"})]}),Pu("p",{children:Pu("a",{href:"https://getalma.eu/customers",target:"_blank",className:"atw-text-xs atw-underline",children:"Une question ? Visitez notre page dédiée"})}),Pu("p",{className:"atw-mt-7 atw-space-x-3",children:[Pu("span",{className:"atw-inline-block atw-h-10 atw-border atw-border-orange atw-rounded-md atw-p-2",children:Pu(Ps,{brand:"cb"})}),Pu("span",{className:"atw-inline-block atw-h-10 atw-border atw-border-orange atw-rounded-md atw-p-2",children:Pu(Ps,{brand:"visa"})}),Pu("span",{className:"atw-inline-block atw-h-10 atw-border atw-border-orange atw-rounded-md atw-p-1",children:Pu(Ps,{brand:"mastercard"})})]})]}),Pu("div",{className:"alma-howItWorks__planPanel atw-w-full md:atw-w-1/2 atw-p-8 atw-pb-24 md:atw-pb-8 md:atw-pt-8 atw-flex atw-flex-col atw-align-center atw-bg-beige",children:[Pu("div",{className:"atw-flex-grow",children:[Pu(ms,{installmentsCounts:f.map(function(t){return t.length}),selectedPlan:u,onSelect:s}),Pu(ls,{plan:h}),Pu(Os,{plan:h})]}),Pu("div",{className:"atw-mt-8 atw-fixed md:atw-relative atw-shadow-above-md md:atw-shadow-none atw-p-4 md:atw-p-0 atw-bg-beige md:atw-bg-transparent atw-bottom-0 atw-left-0 atw-right-0",children:[Pu("div",{className:"atw-shadow-xl atw-rounded-sm",children:Pu("button",{onClick:a,className:"atw-w-full atw-uppercase atw-bg-red atw-text-white atw-h-12 atw-rounded-sm alma-title-text atw-bg-gradient-to-b atw-from-red atw-via-red atw-to-red-700 atw-outline-none hover:atw-shadow-outline-red focus:atw-shadow-outline-red",children:"J'ai compris"})}),h&&h.length>4&&Pu("div",{className:"atw-font-light atw-mt-6",children:"Un crédit vous engage et doit être remboursé. Vérifiez vos capacités de remboursement avant de vous engager."})]})]})]})})}function Ts(t){var e=t.eligibility,n=t.purchaseAmount;return e.eligible?function(t){var e=t.payment_plan,n=e[1].purchase_amount+e[1].customer_fee;return Pu("span",{className:"atw-leading-relaxed",children:[Pu(xs,{cents:e[0].purchase_amount+e[0].customer_fee})," puis ",e.length-1,"×",Pu(xs,{cents:n})]})}(e):function(t,e){var n=e.constraints.purchase_amount;return Pu("span",e.reasons||!n?{children:"Indisponible"}:t<n.minimum?{children:["Dès ",Pu(xs,{cents:n.minimum})]}:{children:["Jusqu'à ",Pu(xs,{cents:n.maximum})]})}(n,e)}var Ns=["atw-flex","atw-p-1","atw-text-white","atw-rounded-sm","atw-transition-colors","atw-duration-500","atw-select-none"];function Ms(t){var e=t.isActive,n=t.eligibility,r=t.mouseEnterCallback,o=n.eligible;return Pu("span",{className:Vu("atw-inline-block","atw-h-7"),children:Pu("span",{className:Vu("atw-inline-block","atw-transition-all","atw-duration-500","atw-border-b-2",{"atw-border-red":e&&o,"atw-border-opacity-100":e&&o,"atw-border-blue":!e||!o,"atw-border-opacity-50":e&&!o,"atw-border-opacity-0":!e},e?"atw-h-7":"atw-h-6"),children:Pu("span",{className:Vu.apply(void 0,Ns.concat([{"atw-bg-red":e&&o,"atw-bg-blue":!e||!o,"atw-bg-opacity-50":e&&!o,"atw-bg-opacity-25":!e&&!o}])),onMouseEnter:r,children:[n.installments_count,Pu(fs,{className:"plan-pill-multiplier"})]})})})}function Rs(t){var e=t.plan;return Pu("span",{className:"atw-animate-pulse atw-h-7",children:Pu("span",{className:Vu.apply(void 0,Ns.concat(["atw-bg-blue","atw-opacity-25","atw-w-full atw-h-6"])),children:[e.installmentsCount,Pu(fs,{className:"plan-pill-multiplier"})]})})}function Is(t){return t.eligible||void 0===t.reasons}var Ds=function(t,e){return{key:t,value:e}};function Fs(t){return{shownPlan:0,autoRotate:t.length>0,showTooltip:!1,showInfoModal:!1,modalContent:null}}function Us(t,e){var n;return Xc({},t,((n={})[e.key]=e.value,n))}function Hs(t){return function(){t(Ds("showTooltip",!0)),t(Ds("autoRotate",!1))}}function zs(t){return function(){t(Ds("showTooltip",!1)),t(Ds("autoRotate",!0))}}function qs(t){var e,n,r,o,i=t.almaClient,a=t.purchaseAmount,c=t.queriedPlans,u=t.results,s=t.transitionDelay,l=t.error,f=t.errorRetryCallback,p=u.filter(function(t){return t.eligible}),h=p.length>0,d=ts(Us,u,Fs),v=d[0],m=d[1];if(es(function(){m(Ds("autoRotate",u.length>0))},[u]),v.autoRotate&&s&&u.length>1&&es(function(){var t=window.setTimeout(n,e);return function(){return clearTimeout(t)}},[e=s,n=function(){m(Ds("shownPlan",(v.shownPlan+1)%u.length))}]),function(t,e){var n=Zu(Nu++,4);!tu.__s&&as(n.__H,e)&&(n.__=function(){if(v.showInfoModal&&h){var t=document.createElement("div");return t.className="alma-widget-root",document.body.appendChild(t),ku(Pu(Ls,{almaClient:i,purchaseAmount:a,installmentsCounts:p.map(function(t){return t.installments_count}),closeCallback:function(){return m(Ds("showInfoModal",!1))},samplePlans:p.map(function(t){return t.payment_plan})}),t),function(){return document.body.removeChild(t)}}},n.__H=e,Mu.__h.push(n))}(0,[v.showInfoModal,h]),0===u.length||l){var y=function(t){var e=t.error,n=t.errorRetryCallback;return{planPills:t.queriedPlans.map(function(t,e){return Pu(Rs,{plan:t},e)}),planSummary:Pu("span",e?{children:[Pu("span",{className:"atw-text-xs",children:"ERREUR"})," ",Pu("span",{className:"atw-text-blue atw-underline",onClick:n,children:"réessayer"})]}:{className:"atw-animate-pulse",children:Pu("span",{className:"atw-inline-block atw-h-4 atw-bg-blue atw-opacity-25 atw-rounded-sm atw-w-full",children:" "})})}}({error:l,queriedPlans:c,errorRetryCallback:f});r=y.planPills,o=y.planSummary}else{var g=v.shownPlan;r=u.filter(Is).map(function(t,e){return Pu(Ms,{eligibility:t,isActive:g===e,mouseEnterCallback:function(){return m(Ds("shownPlan",e))}},e)}),o=Pu(Ts,{purchaseAmount:a,eligibility:u[g]})}return Pu("div",{onMouseEnter:Hs(m),onMouseLeave:zs(m),onClick:function(){return!l&&h&&m(Ds("showInfoModal",!0))},children:[Pu("p",{className:Vu(!l&&v.showTooltip&&h?"atw-opacity-100":"atw-opacity-0","atw-transition-opacity","atw-duration-200","atw-my-1","atw-pl-1","atw-text-xs","atw-font-normal","atw-text-right"),children:"cliquez pour plus d'infos"}),Pu("div",{className:"atw-bg-white atw-cursor-pointer atw-flex atw-flex-row atw-items-center atw-flex-wrap atw-text-xs atw-p-2 atw-pb-0 atw-rounded-md atw-border atw-border-blue atw-border-opacity-50",children:[Pu("img",{className:"atw-h-5 atw-mb-2",src:js,alt:"Alma"}),Pu("span",{className:"atw-flex atw-flex-row atw-space-x-1 atw-mx-2 atw-mb-1",children:r}),Pu("span",{className:"atw-inline-block atw-mb-2 atw-flex-grow atw-text-sm",children:o})]})]})}var Bs,Vs,Ws=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).results=[],r.loading=!1,r.fetchError=!1,r}$c(e,t);var n=e.prototype;return n.defaultConfig=function(){return{purchaseAmount:100,transitionDelay:5500,plans:[{installmentsCount:3,minAmount:1e4,maxAmount:2e5},{installmentsCount:4,minAmount:1e4,maxAmount:2e5}],templates:{planSummary:null},classes:{root:"alma-paymentPlans"}}},n.fetchResults=function(){try{for(var t,e,n=this,r=function(){n.results=o.map(function(t){return"number"==typeof t?e[t]:t}).filter(Boolean)},o=[],i=n.config,a=i.purchaseAmount,c=[],u=Qc(i.plans);!(t=u()).done;){var s=t.value;a<s.minAmount||a>s.maxAmount?o.push(new Bc({eligible:!1,installments_count:s.installmentsCount,constraints:{purchase_amount:{minimum:s.minAmount,maximum:s.maxAmount}}})):(c.push(s.installmentsCount),o.push(c.length-1))}var l=function(t,r){try{var o=Promise.resolve(n.almaClient.payments.eligibility({payment:{purchase_amount:a,installments_count:c}})).then(function(t){e=t})}catch(t){return r(t)}return o&&o.then?o.then(void 0,r):o}(0,function(t){var r;null==(r=console)||null==r.error||r.error(t),n.fetchError=!0,e=[]});return Promise.resolve(l&&l.then?l.then(r):r())}catch(t){return Promise.reject(t)}},n.renderComponent=function(){try{var t=this;t.results.length||t.loading||t.fetchError||(t.loading=!0,t.fetchResults().then(function(){t.loading=!1,t.render()}));var e=t.config;return Promise.resolve(Pu(qs,{almaClient:t.almaClient,purchaseAmount:e.purchaseAmount,queriedPlans:e.plans,results:t.results,transitionDelay:e.transitionDelay,error:t.fetchError,errorRetryCallback:function(){t.fetchError=!1,t.render()}}))}catch(t){return Promise.reject(t)}},e}(Bu),Gs=function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).samplePlans=[],r._show=r.config.show,r}$c(e,t);var n=e.prototype;return n.defaultConfig=function(){return{show:!1,samplePurchaseAmount:3e4,sampleInstallmentsCounts:[3,4],classes:{root:"alma-howItWorks"},templates:{}}},n.open=function(){this.show=!0},n.close=function(){this.show=!1},n.renderComponent=function(){try{return Promise.resolve(this.show?Pu(Ls,{almaClient:this.almaClient,purchaseAmount:this.config.samplePurchaseAmount,installmentsCounts:this.config.sampleInstallmentsCounts,closeCallback:this.close.bind(this)}):null)}catch(t){return Promise.reject(t)}},Jc(e,[{key:"show",get:function(){return this._show},set:function(t){this.show!==t&&(this._show=t,this.render())}}]),e}(Bu);(Bs=t.Widgets||(t.Widgets={})).initialize=function(t,e){var n=Kc.withMerchantId(t,{mode:e});return new iu(n)},Bs.PaymentPlans=Ws,Bs.HowItWorks=Gs,(Vs=t.Utils||(t.Utils={})).priceToCents=function(t){return Math.round(100*t)},Vs.priceFromCents=ys,Vs.formatCents=gs});
|
|
2
|
-
//# sourceMappingURL=alma-widgets.umd.js.map
|