@alma/widgets 3.3.6 → 3.3.7
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/dist/raw/widgets.js +30 -30
- package/dist/raw/widgets.m.js +30 -30
- package/dist/raw/widgets.modern.js +30 -30
- package/dist/raw/widgets.umd.js +30 -30
- package/dist/widgets.js +1 -1
- package/dist/widgets.js.map +1 -1
- package/dist/widgets.m.js +1 -1
- package/dist/widgets.m.js.map +1 -1
- package/dist/widgets.modern.js +1 -1
- package/dist/widgets.modern.js.map +1 -1
- package/dist/widgets.umd.js +1 -1
- package/dist/widgets.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/widgets.umd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).Alma={})}(this,function(e){var t=function(e){try{return!!e()}catch(e){return!0}},n=!t(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),r=Function.prototype,o=r.call,a=n&&r.bind.bind(o,o),i=n?function(e){return e&&a(e)}:function(e){return e&&function(){return o.apply(e,arguments)}},l=Math.ceil,u=Math.floor,s=Math.trunc||function(e){var t=+e;return(t>0?u:l)(t)},c=function(e){var t=+e;return t!=t||0===t?0:s(t)},f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function p(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},n.exports),n.exports}var m,h,y=function(e){return e&&e.Math==Math&&e},g=y("object"==typeof globalThis&&globalThis)||y("object"==typeof window&&window)||y("object"==typeof self&&self)||y("object"==typeof f&&f)||function(){return this}()||Function("return this")(),v=Object.defineProperty,b=function(e,t){try{v(g,e,{value:t,configurable:!0,writable:!0})}catch(n){g[e]=t}return t},E=g["__core-js_shared__"]||b("__core-js_shared__",{}),w=p(function(e){(e.exports=function(e,t){return E[e]||(E[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.22.8",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.8/LICENSE",source:"https://github.com/zloirock/core-js"})}),S=TypeError,_=function(e){if(null==e)throw S("Can't call method on "+e);return e},C=Object,O=function(e){return C(_(e))},k=i({}.hasOwnProperty),P=Object.hasOwn||function(e,t){return k(O(e),t)},T=0,x=Math.random(),A=i(1..toString),N=function(e){return"Symbol("+(void 0===e?"":e)+")_"+A(++T+x,36)},M=function(e){return"function"==typeof e},L=function(e){return M(e)?e:void 0},R=function(e,t){return arguments.length<2?L(g[e]):g[e]&&g[e][t]},I=R("navigator","userAgent")||"",D=g.process,F=g.Deno,j=D&&D.versions||F&&F.version,H=j&&j.v8;H&&(h=(m=H.split("."))[0]>0&&m[0]<4?1:+(m[0]+m[1])),!h&&I&&(!(m=I.match(/Edge\/(\d+)/))||m[1]>=74)&&(m=I.match(/Chrome\/(\d+)/))&&(h=+m[1]);var B=h,U=!!Object.getOwnPropertySymbols&&!t(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&B&&B<41}),z=U&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,G=w("wks"),V=g.Symbol,W=V&&V.for,$=z?V:V&&V.withoutSetter||N,q=function(e){if(!P(G,e)||!U&&"string"!=typeof G[e]){var t="Symbol."+e;G[e]=U&&P(V,e)?V[e]:z&&W?W(t):$(t)}return G[e]},Q={};Q[q("toStringTag")]="z";var K="[object z]"===String(Q),X=i({}.toString),Y=i("".slice),Z=function(e){return Y(X(e),8,-1)},J=q("toStringTag"),ee=Object,te="Arguments"==Z(function(){return arguments}()),ne=K?Z:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=ee(e),J))?n:te?Z(t):"Object"==(r=Z(t))&&M(t.callee)?"Arguments":r},re=String,oe=function(e){if("Symbol"===ne(e))throw TypeError("Cannot convert a Symbol value to a string");return re(e)},ae=i("".charAt),ie=i("".charCodeAt),le=i("".slice),ue=function(e){return function(t,n){var r,o,a=oe(_(t)),i=c(n),l=a.length;return i<0||i>=l?e?"":void 0:(r=ie(a,i))<55296||r>56319||i+1===l||(o=ie(a,i+1))<56320||o>57343?e?ae(a,i):r:e?le(a,i,i+2):o-56320+(r-55296<<10)+65536}},se={codeAt:ue(!1),charAt:ue(!0)},ce=i(Function.toString);M(E.inspectSource)||(E.inspectSource=function(e){return ce(e)});var fe,de,pe,me=E.inspectSource,he=g.WeakMap,ye=M(he)&&/native code/.test(me(he)),ge=function(e){return"object"==typeof e?null!==e:M(e)},ve=!t(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),be=g.document,Ee=ge(be)&&ge(be.createElement),we=function(e){return Ee?be.createElement(e):{}},Se=!ve&&!t(function(){return 7!=Object.defineProperty(we("div"),"a",{get:function(){return 7}}).a}),_e=ve&&t(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),Ce=String,Oe=TypeError,ke=function(e){if(ge(e))return e;throw Oe(Ce(e)+" is not an object")},Pe=Function.prototype.call,Te=n?Pe.bind(Pe):function(){return Pe.apply(Pe,arguments)},xe=i({}.isPrototypeOf),Ae=Object,Ne=z?function(e){return"symbol"==typeof e}:function(e){var t=R("Symbol");return M(t)&&xe(t.prototype,Ae(e))},Me=String,Le=function(e){try{return Me(e)}catch(e){return"Object"}},Re=TypeError,Ie=function(e){if(M(e))return e;throw Re(Le(e)+" is not a function")},De=function(e,t){var n=e[t];return null==n?void 0:Ie(n)},Fe=TypeError,je=TypeError,He=q("toPrimitive"),Be=function(e){var t=function(e,t){if(!ge(e)||Ne(e))return e;var n,r=De(e,He);if(r){if(void 0===t&&(t="default"),n=Te(r,e,t),!ge(n)||Ne(n))return n;throw je("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&M(n=e.toString)&&!ge(r=Te(n,e)))return r;if(M(n=e.valueOf)&&!ge(r=Te(n,e)))return r;if("string"!==t&&M(n=e.toString)&&!ge(r=Te(n,e)))return r;throw Fe("Can't convert object to primitive value")}(e,t)}(e,"string");return Ne(t)?t:t+""},Ue=TypeError,ze=Object.defineProperty,Ge=Object.getOwnPropertyDescriptor,Ve={f:ve?_e?function(e,t,n){if(ke(e),t=Be(t),ke(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=Ge(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return ze(e,t,n)}:ze:function(e,t,n){if(ke(e),t=Be(t),ke(n),Se)try{return ze(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Ue("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},We=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},$e=ve?function(e,t,n){return Ve.f(e,t,We(1,n))}:function(e,t,n){return e[t]=n,e},qe=w("keys"),Qe=function(e){return qe[e]||(qe[e]=N(e))},Ke={},Xe=g.TypeError;if(ye||E.state){var Ye=E.state||(E.state=new(0,g.WeakMap)),Ze=i(Ye.get),Je=i(Ye.has),et=i(Ye.set);fe=function(e,t){if(Je(Ye,e))throw new Xe("Object already initialized");return t.facade=e,et(Ye,e,t),t},de=function(e){return Ze(Ye,e)||{}},pe=function(e){return Je(Ye,e)}}else{var tt=Qe("state");Ke[tt]=!0,fe=function(e,t){if(P(e,tt))throw new Xe("Object already initialized");return t.facade=e,$e(e,tt,t),t},de=function(e){return P(e,tt)?e[tt]:{}},pe=function(e){return P(e,tt)}}var nt,rt={set:fe,get:de,has:pe,enforce:function(e){return pe(e)?de(e):fe(e,{})},getterFor:function(e){return function(t){var n;if(!ge(t)||(n=de(t)).type!==e)throw Xe("Incompatible receiver, "+e+" required");return n}}},ot={}.propertyIsEnumerable,at=Object.getOwnPropertyDescriptor,it={f:at&&!ot.call({1:2},1)?function(e){var t=at(this,e);return!!t&&t.enumerable}:ot},lt=Object,ut=i("".split),st=t(function(){return!lt("z").propertyIsEnumerable(0)})?function(e){return"String"==Z(e)?ut(e,""):lt(e)}:lt,ct=function(e){return st(_(e))},ft=Object.getOwnPropertyDescriptor,dt={f:ve?ft:function(e,t){if(e=ct(e),t=Be(t),Se)try{return ft(e,t)}catch(e){}if(P(e,t))return We(!Te(it.f,e,t),e[t])}},pt=Function.prototype,mt=ve&&Object.getOwnPropertyDescriptor,ht=P(pt,"name"),yt={EXISTS:ht,PROPER:ht&&"something"===function(){}.name,CONFIGURABLE:ht&&(!ve||ve&&mt(pt,"name").configurable)},gt=p(function(e){var n=yt.CONFIGURABLE,r=rt.enforce,o=rt.get,a=Object.defineProperty,i=ve&&!t(function(){return 8!==a(function(){},"length",{value:8}).length}),l=String(String).split("String"),u=e.exports=function(e,t,o){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),o&&o.getter&&(t="get "+t),o&&o.setter&&(t="set "+t),(!P(e,"name")||n&&e.name!==t)&&a(e,"name",{value:t,configurable:!0}),i&&o&&P(o,"arity")&&e.length!==o.arity&&a(e,"length",{value:o.arity});try{o&&P(o,"constructor")&&o.constructor?ve&&a(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var u=r(e);return P(u,"source")||(u.source=l.join("string"==typeof t?t:"")),e};Function.prototype.toString=u(function(){return M(this)&&o(this).source||me(this)},"toString")}),vt=function(e,t,n,r){r||(r={});var o=r.enumerable,a=void 0!==r.name?r.name:t;return M(n)&>(n,a,r),r.global?o?e[t]=n:b(t,n):(r.unsafe?e[t]&&(o=!0):delete e[t],o?e[t]=n:$e(e,t,n)),e},bt=Math.max,Et=Math.min,wt=Math.min,St=function(e){return(t=e.length)>0?wt(c(t),9007199254740991):0;var t},_t=function(e){return function(t,n,r){var o,a=ct(t),i=St(a),l=function(e,t){var n=c(e);return n<0?bt(n+t,0):Et(n,t)}(r,i);if(e&&n!=n){for(;i>l;)if((o=a[l++])!=o)return!0}else for(;i>l;l++)if((e||l in a)&&a[l]===n)return e||l||0;return!e&&-1}},Ct=(_t(!0),_t(!1)),Ot=i([].push),kt=function(e,t){var n,r=ct(e),o=0,a=[];for(n in r)!P(Ke,n)&&P(r,n)&&Ot(a,n);for(;t.length>o;)P(r,n=t[o++])&&(~Ct(a,n)||Ot(a,n));return a},Pt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Tt=Pt.concat("length","prototype"),xt={f:Object.getOwnPropertyNames||function(e){return kt(e,Tt)}},At={f:Object.getOwnPropertySymbols},Nt=i([].concat),Mt=R("Reflect","ownKeys")||function(e){var t=xt.f(ke(e)),n=At.f;return n?Nt(t,n(e)):t},Lt=function(e,t,n){for(var r=Mt(t),o=Ve.f,a=dt.f,i=0;i<r.length;i++){var l=r[i];P(e,l)||n&&P(n,l)||o(e,l,a(t,l))}},Rt=/#|\.prototype\./,It=function(e,n){var r=Ft[Dt(e)];return r==Ht||r!=jt&&(M(n)?t(n):!!n)},Dt=It.normalize=function(e){return String(e).replace(Rt,".").toLowerCase()},Ft=It.data={},jt=It.NATIVE="N",Ht=It.POLYFILL="P",Bt=It,Ut=dt.f,zt=function(e,t){var n,r,o,a,i,l=e.target,u=e.global,s=e.stat;if(n=u?g:s?g[l]||b(l,{}):(g[l]||{}).prototype)for(r in t){if(a=t[r],o=e.dontCallGetSet?(i=Ut(n,r))&&i.value:n[r],!Bt(u?r:l+(s?".":"#")+r,e.forced)&&void 0!==o){if(typeof a==typeof o)continue;Lt(a,o)}(e.sham||o&&o.sham)&&$e(a,"sham",!0),vt(n,r,a,e)}},Gt=Object.keys||function(e){return kt(e,Pt)},Vt={f:ve&&!_e?Object.defineProperties:function(e,t){ke(e);for(var n,r=ct(t),o=Gt(t),a=o.length,i=0;a>i;)Ve.f(e,n=o[i++],r[n]);return e}},Wt=R("document","documentElement"),$t=Qe("IE_PROTO"),qt=function(){},Qt=function(e){return"<script>"+e+"<\/script>"},Kt=function(e){e.write(Qt("")),e.close();var t=e.parentWindow.Object;return e=null,t},Xt=function(){try{nt=new ActiveXObject("htmlfile")}catch(e){}var e,t;Xt="undefined"!=typeof document?document.domain&&nt?Kt(nt):((t=we("iframe")).style.display="none",Wt.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Qt("document.F=Object")),e.close(),e.F):Kt(nt);for(var n=Pt.length;n--;)delete Xt.prototype[Pt[n]];return Xt()};Ke[$t]=!0;var Yt,Zt,Jt,en=Object.create||function(e,t){var n;return null!==e?(qt.prototype=ke(e),n=new qt,qt.prototype=null,n[$t]=e):n=Xt(),void 0===t?n:Vt.f(n,t)},tn=!t(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),nn=Qe("IE_PROTO"),rn=Object,on=rn.prototype,an=tn?rn.getPrototypeOf:function(e){var t=O(e);if(P(t,nn))return t[nn];var n=t.constructor;return M(n)&&t instanceof n?n.prototype:t instanceof rn?on:null},ln=q("iterator"),un=!1;[].keys&&("next"in(Jt=[].keys())?(Zt=an(an(Jt)))!==Object.prototype&&(Yt=Zt):un=!0),(null==Yt||t(function(){var e={};return Yt[ln].call(e)!==e}))&&(Yt={}),M(Yt[ln])||vt(Yt,ln,function(){return this});var sn={IteratorPrototype:Yt,BUGGY_SAFARI_ITERATORS:un},cn=Ve.f,fn=q("toStringTag"),dn=function(e,t,n){e&&!n&&(e=e.prototype),e&&!P(e,fn)&&cn(e,fn,{configurable:!0,value:t})},pn={},mn=sn.IteratorPrototype,hn=function(){return this},yn=String,gn=TypeError,vn=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=i(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return ke(n),function(e){if("object"==typeof e||M(e))return e;throw gn("Can't set "+yn(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),bn=sn.IteratorPrototype,En=sn.BUGGY_SAFARI_ITERATORS,wn=q("iterator"),Sn=function(){return this},_n=se.charAt,Cn=rt.set,On=rt.getterFor("String Iterator");!function(e,t,n,r,o,a,i){!function(e,t,n,r){e.prototype=en(mn,{next:We(1,function(){var e,t=On(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=_n(n,r),t.index+=e.length,{value:e,done:!1})})}),dn(e,"String Iterator",!1),pn["String Iterator"]=hn}(n);var l,u,s,c=function(e){if(void 0===e&&p)return p;if(!En&&e in f)return f[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=e.prototype,d=f[wn]||f["@@iterator"]||void 0,p=!En&&d||c(void 0);if(void(d&&(l=an(d.call(new e)))!==Object.prototype&&l.next&&(an(l)!==bn&&(vn?vn(l,bn):M(l[wn])||vt(l,wn,Sn)),dn(l,"String Iterator",!0))))if(void(u={values:c("values"),keys:c("keys"),entries:c("entries")}))for(s in u)(En||!(s in f))&&vt(f,s,u[s]);else zt({target:"String",proto:!0,forced:En||!1},u);f[wn]!==p&&vt(f,wn,p,{name:void 0}),pn.String=p}(String,0,function(e){Cn(this,{type:"String Iterator",string:oe(e),index:0})});var kn=i(i.bind),Pn=function(e,t){return Ie(e),void 0===t?e:n?kn(e,t):function(){return e.apply(t,arguments)}},Tn=function(e,t,n,r){try{return r?t(ke(n)[0],n[1]):t(n)}catch(t){!function(e,t,n){var r;ke(e);try{if(!(r=De(e,"return")))throw n;r=Te(r,e)}catch(e){r=e}throw n}(e,0,t)}},xn=q("iterator"),An=Array.prototype,Nn=function(e){return void 0!==e&&(pn.Array===e||An[xn]===e)},Mn=function(){},Ln=[],Rn=R("Reflect","construct"),In=/^\s*(?:class|function)\b/,Dn=i(In.exec),Fn=!In.exec(Mn),jn=function(e){if(!M(e))return!1;try{return Rn(Mn,Ln,e),!0}catch(e){return!1}},Hn=function(e){if(!M(e))return!1;switch(ne(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Fn||!!Dn(In,me(e))}catch(e){return!0}};Hn.sham=!0;var Bn=!Rn||t(function(){var e;return jn(jn.call)||!jn(Object)||!jn(function(){e=!0})||e})?Hn:jn,Un=function(e,t,n){var r=Be(t);r in e?Ve.f(e,r,We(0,n)):e[r]=n},zn=q("iterator"),Gn=function(e){if(null!=e)return De(e,zn)||De(e,"@@iterator")||pn[ne(e)]},Vn=TypeError,Wn=function(e,t){var n=arguments.length<2?Gn(e):t;if(Ie(n))return ke(Te(n,e));throw Vn(Le(e)+" is not iterable")},$n=Array,qn=q("iterator"),Qn=!1;try{var Kn=0,Xn={next:function(){return{done:!!Kn++}},return:function(){Qn=!0}};Xn[qn]=function(){return this},Array.from(Xn,function(){throw 2})}catch(e){}var Yn,Zn,Jn,er=!function(e,t){if(!Qn)return!1;var n=!1;try{var r={};r[qn]=function(){return{next:function(){return{done:n=!0}}}},Array.from(r)}catch(e){}return n}();function tr(e){return Number((e/100).toFixed(2))}zt({target:"Array",stat:!0,forced:er},{from:function(e){var t=O(e),n=Bn(this),r=arguments.length,o=r>1?arguments[1]:void 0,a=void 0!==o;a&&(o=Pn(o,r>2?arguments[2]:void 0));var i,l,u,s,c,f,d=Gn(t),p=0;if(!d||this===$n&&Nn(d))for(i=St(t),l=n?new this(i):$n(i);i>p;p++)f=a?o(t[p],p):t[p],Un(l,p,f);else for(c=(s=Wn(t,d)).next,l=n?new this:[];!(u=Te(c,s)).done;p++)f=a?Tn(s,o,[u.value,p],!0):u.value,Un(l,p,f);return l.length=p,l}}),function(e){e.PaymentPlans="PaymentPlans",e.Modal="Modal"}(Yn||(Yn={})),function(e){e.PENDING="pending",e.SUCCESS="success",e.FAILED="failed"}(Zn||(Zn={})),function(e){e.en="en",e["fr-FR"]="fr-FR",e.fr="fr",e["de-DE"]="de-DE",e.de="de",e.it="it",e["it-IT"]="it-IT",e.es="es",e["es-ES"]="es-ES",e.pt="pt",e["pt-PT"]="pt-PT",e.nl="nl",e["nl-NL"]="nl-NL",e["nl-BE"]="nl-BE"}(Jn||(Jn={}));var nr,rr=function(e){return 1===(null==e?void 0:e.installments_count)&&0===(null==e?void 0:e.deferred_days)&&0===(null==e?void 0:e.deferred_months)};"function"!=typeof(nr=window.Element.prototype).matches&&(nr.matches=nr.msMatchesSelector||nr.mozMatchesSelector||nr.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=0;t[n]&&t[n]!==this;)++n;return Boolean(t[n])}),"function"!=typeof nr.closest&&(nr.closest=function(e){for(var t=this;t&&1===t.nodeType;){if(t.matches(e))return t;t=t.parentNode}return null}),"".trim||(String.prototype.trim=function(){return this.replace(/^[\s]+|[\s]+$/g,"")}),function(e){e.DOMException||((DOMException=function(e){this.message=e}).prototype=new Error);var t,n,r=/[\11\12\14\15\40]/,o=0,a=function(e,t){if(""===t)throw new DOMException("Failed to execute '"+e+"' on 'DOMTokenList': The token provided must not be empty.");if(-1!==(o=t.search(r)))throw new DOMException("Failed to execute '"+e+"' on 'DOMTokenList': The token provided ('"+t[o]+"') contains HTML space characters, which are not valid in tokens.")};"function"!=typeof DOMTokenList&&function(e){var t=e.document,n=e.Object,o=n.prototype.hasOwnProperty,i=n.defineProperty,l=0,u=0,s=function(){if(!l)throw TypeError("Illegal constructor")};function c(){var t=e.event,n=t.propertyName;if(!u&&("className"===n||"classList"===n&&!i)){var o=t.srcElement,a=o[" uCLp"],l=""+o[n],s=l.trim().split(r),c=o["classList"===n?" uCL":"classList"],f=a.length;e:for(var d=0,p=a.length=s.length,m=0;d!==p;++d){for(var h=0;h!==d;++h)if(s[h]===s[d]){m++;continue e}c[d-m]=s[d]}for(var y=p-m;y<f;++y)delete c[y];if("classList"!==n)return;u=1,o.classList=c,o.className=l,u=0,c.length=s.length-m}}function f(e){if(!e||!("innerHTML"in e))throw TypeError("Illegal invocation");e.detachEvent("onpropertychange",c),l=1;try{var t=function(){};t.prototype=new s}finally{l=0}var n=t.prototype,o=new t;e:for(var a=e.className.trim().split(r),f=0,d=a.length,p=0;f!==d;++f){for(var m=0;m!==f;++m)if(a[m]===a[f]){p++;continue e}this[f-p]=a[f]}n.length=d-p,n.value=e.className,n[" uCL"]=e,i?(i(e,"classList",{enumerable:1,get:function(){return o},configurable:0,set:function(t){u=1,e.className=n.value=t+="",u=0;var a=t.trim().split(r),i=n.length;e:for(var l=0,s=n.length=a.length,c=0;l!==s;++l){for(var f=0;f!==l;++f)if(a[f]===a[l]){c++;continue e}o[l-c]=a[l]}for(var d=s-c;d<i;++d)delete o[d]}}),i(e," uCLp",{enumerable:0,configurable:0,writeable:0,value:t.prototype}),i(n," uCL",{enumerable:0,configurable:0,writeable:0,value:e})):(e.classList=o,e[" uCL"]=o,e[" uCLp"]=t.prototype),e.attachEvent("onpropertychange",c)}s.prototype.toString=s.prototype.toLocaleString=function(){return this.value},s.prototype.add=function(){e:for(var e=0,t=arguments.length,n="",r=this[" uCL"],o=r[" uCLp"];e!==t;++e){a("add",n=arguments[e]+"");for(var i=0,l=o.length,s=n;i!==l;++i){if(this[i]===n)continue e;s+=" "+this[i]}this[l]=n,o.length+=1,o.value=s}u=1,r.className=o.value,u=0},s.prototype.remove=function(){for(var e=0,t=arguments.length,n="",r=this[" uCL"],o=r[" uCLp"];e!==t;++e){a("remove",n=arguments[e]+"");for(var i=0,l=o.length,s="",c=0;i!==l;++i)c?this[i-1]=this[i]:this[i]!==n?s+=this[i]+" ":c=1;c&&(delete this[l],o.length-=1,o.value=s)}u=1,r.className=o.value,u=0},e.DOMTokenList=s;try{e.Object.defineProperty(e.Element.prototype,"classList",{enumerable:1,get:function(e){return o.call(this,"classList")||f(this),this.classList},configurable:0,set:function(e){this.className=e}})}catch(n){e[" uCL"]=f,t.documentElement.firstChild.appendChild(t.createElement("style")).styleSheet.cssText='_*{x-uCLp:expression(!this.hasOwnProperty("classList")&&window[" uCL"](this))}[class]{x-uCLp/**/:expression(!this.hasOwnProperty("classList")&&window[" uCL"](this))}'}}(e),t=e.DOMTokenList.prototype,n=e.document.createElement("div").classList,t.item||(t.item=function(e){return function(e){return void 0===e?null:e}(this[e])}),t.toggle&&!1===n.toggle("a",0)||(t.toggle=function(e){if(arguments.length>1)return this[arguments[1]?"add":"remove"](e),!!arguments[1];var t=this.value;return this.remove(t),t===this.value&&(this.add(e),!0)}),t.replace&&"boolean"==typeof n.replace("a","b")||(t.replace=function(e,t){a("replace",e),a("replace",t);var n=this.value;return this.remove(e),this.value!==n&&(this.add(t),!0)}),t.contains||(t.contains=function(e){for(var t=0,n=this.length;t!==n;++t)if(this[t]===e)return!0;return!1}),t.forEach||(t.forEach=function(e){if(1===arguments.length)for(var t=0,n=this.length;t!==n;++t)e(this[t],t,this);else{t=0,n=this.length;for(var r=arguments[1];t!==n;++t)e.call(r,this[t],t,this)}}),t.entries||(t.entries=function(){var e=this;return{next:function(){return 0<e.length?{value:[0,e[0]],done:!1}:{done:!0}}}}),t.values||(t.values=function(){var e=this;return{next:function(){return 0<e.length?{value:e[0],done:!1}:{done:!0}}}}),t.keys||(t.keys=function(){var e=this;return{next:function(){return 0<e.length?{value:0,done:!1}:{done:!0}}}})}(window);var or=Object.getOwnPropertySymbols,ar=Object.prototype.hasOwnProperty,ir=Object.prototype.propertyIsEnumerable;function lr(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var ur=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,o=lr(e),a=1;a<arguments.length;a++){for(var i in n=Object(arguments[a]))ar.call(n,i)&&(o[i]=n[i]);if(or){r=or(n);for(var l=0;l<r.length;l++)ir.call(n,r[l])&&(o[r[l]]=n[r[l]])}}return o},sr=p(function(e,t){var n=60103,r=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,a=60110,i=60112;t.Suspense=60113;var l=60115,u=60116;if("function"==typeof Symbol&&Symbol.for){var s=Symbol.for;n=s("react.element"),r=s("react.portal"),t.Fragment=s("react.fragment"),t.StrictMode=s("react.strict_mode"),t.Profiler=s("react.profiler"),o=s("react.provider"),a=s("react.context"),i=s("react.forward_ref"),t.Suspense=s("react.suspense"),l=s("react.memo"),u=s("react.lazy")}var c="function"==typeof Symbol&&Symbol.iterator;function f(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p={};function m(e,t,n){this.props=e,this.context=t,this.refs=p,this.updater=n||d}function h(){}function y(e,t,n){this.props=e,this.context=t,this.refs=p,this.updater=n||d}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(f(85));this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},h.prototype=m.prototype;var g=y.prototype=new h;g.constructor=y,ur(g,m.prototype),g.isPureReactComponent=!0;var v={current:null},b=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function w(e,t,r){var o,a={},i=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(i=""+t.key),t)b.call(t,o)&&!E.hasOwnProperty(o)&&(a[o]=t[o]);var u=arguments.length-2;if(1===u)a.children=r;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];a.children=s}if(e&&e.defaultProps)for(o in u=e.defaultProps)void 0===a[o]&&(a[o]=u[o]);return{$$typeof:n,type:e,key:i,ref:l,props:a,_owner:v.current}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var _=/\/+/g;function C(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function O(e,t,o){if(null==e)return e;var a=[],i=0;return function e(t,o,a,i,l){var u=typeof t;"undefined"!==u&&"boolean"!==u||(t=null);var s=!1;if(null===t)s=!0;else switch(u){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case n:case r:s=!0}}if(s)return l=l(s=t),t=""===i?"."+C(s,0):i,Array.isArray(l)?(a="",null!=t&&(a=t.replace(_,"$&/")+"/"),e(l,o,a,"",function(e){return e})):null!=l&&(S(l)&&(l=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(l,a+(!l.key||s&&s.key===l.key?"":(""+l.key).replace(_,"$&/")+"/")+t)),o.push(l)),1;if(s=0,i=""===i?".":i+":",Array.isArray(t))for(var d=0;d<t.length;d++){var p=i+C(u=t[d],d);s+=e(u,o,a,p,l)}else if("function"==typeof(p=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=c&&e[c]||e["@@iterator"])?e:null}(t)))for(t=p.call(t),d=0;!(u=t.next()).done;)s+=e(u=u.value,o,a,p=i+C(u,d++),l);else if("object"===u)throw o=""+t,Error(f(31,"[object Object]"===o?"object with keys {"+Object.keys(t).join(", ")+"}":o));return s}(e,a,"","",function(e){return t.call(o,e,i++)}),a}function k(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)})}if(1===e._status)return e._result;throw e._result}var P={current:null};function T(){var e=P.current;if(null===e)throw Error(f(321));return e}var x={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:v,IsSomeRendererActing:{current:!1},assign:ur};t.Children={map:O,forEach:function(e,t,n){O(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return O(e,function(){t++}),t},toArray:function(e){return O(e,function(e){return e})||[]},only:function(e){if(!S(e))throw Error(f(143));return e}},t.Component=m,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=x,t.cloneElement=function(e,t,r){if(null==e)throw Error(f(267,e));var o=ur({},e.props),a=e.key,i=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,l=v.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(s in t)b.call(t,s)&&!E.hasOwnProperty(s)&&(o[s]=void 0===t[s]&&void 0!==u?u[s]:t[s])}var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){u=Array(s);for(var c=0;c<s;c++)u[c]=arguments[c+2];o.children=u}return{$$typeof:n,type:e.type,key:a,ref:i,props:o,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:a,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=w,t.createFactory=function(e){var t=w.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:i,render:e}},t.isValidElement=S,t.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:k}},t.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return T().useCallback(e,t)},t.useContext=function(e,t){return T().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return T().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return T().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return T().useLayoutEffect(e,t)},t.useMemo=function(e,t){return T().useMemo(e,t)},t.useReducer=function(e,t,n){return T().useReducer(e,t,n)},t.useRef=function(e){return T().useRef(e)},t.useState=function(e){return T().useState(e)},t.version="17.0.2"}),cr=(p(function(e,t){}),p(function(e){e.exports=sr})),fr=function(e,t){return(fr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function dr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}fr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var pr=function(){return(pr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function mr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function hr(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var yr="function"==typeof Symbol&&Symbol.for,gr=yr?Symbol.for("react.element"):60103,vr=yr?Symbol.for("react.portal"):60106,br=yr?Symbol.for("react.fragment"):60107,Er=yr?Symbol.for("react.strict_mode"):60108,wr=yr?Symbol.for("react.profiler"):60114,Sr=yr?Symbol.for("react.provider"):60109,_r=yr?Symbol.for("react.context"):60110,Cr=yr?Symbol.for("react.async_mode"):60111,Or=yr?Symbol.for("react.concurrent_mode"):60111,kr=yr?Symbol.for("react.forward_ref"):60112,Pr=yr?Symbol.for("react.suspense"):60113,Tr=yr?Symbol.for("react.suspense_list"):60120,xr=yr?Symbol.for("react.memo"):60115,Ar=yr?Symbol.for("react.lazy"):60116,Nr=yr?Symbol.for("react.block"):60121,Mr=yr?Symbol.for("react.fundamental"):60117,Lr=yr?Symbol.for("react.responder"):60118,Rr=yr?Symbol.for("react.scope"):60119;function Ir(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case gr:switch(e=e.type){case Cr:case Or:case br:case wr:case Er:case Pr:return e;default:switch(e=e&&e.$$typeof){case _r:case kr:case Ar:case xr:case Sr:return e;default:return t}}case vr:return t}}}function Dr(e){return Ir(e)===Or}var Fr,jr,Hr,Br={AsyncMode:Cr,ConcurrentMode:Or,ContextConsumer:_r,ContextProvider:Sr,Element:gr,ForwardRef:kr,Fragment:br,Lazy:Ar,Memo:xr,Portal:vr,Profiler:wr,StrictMode:Er,Suspense:Pr,isAsyncMode:function(e){return Dr(e)||Ir(e)===Cr},isConcurrentMode:Dr,isContextConsumer:function(e){return Ir(e)===_r},isContextProvider:function(e){return Ir(e)===Sr},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===gr},isForwardRef:function(e){return Ir(e)===kr},isFragment:function(e){return Ir(e)===br},isLazy:function(e){return Ir(e)===Ar},isMemo:function(e){return Ir(e)===xr},isPortal:function(e){return Ir(e)===vr},isProfiler:function(e){return Ir(e)===wr},isStrictMode:function(e){return Ir(e)===Er},isSuspense:function(e){return Ir(e)===Pr},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===br||e===Or||e===wr||e===Er||e===Pr||e===Tr||"object"==typeof e&&null!==e&&(e.$$typeof===Ar||e.$$typeof===xr||e.$$typeof===Sr||e.$$typeof===_r||e.$$typeof===kr||e.$$typeof===Mr||e.$$typeof===Lr||e.$$typeof===Rr||e.$$typeof===Nr)},typeOf:Ir};function Ur(e,t,n){if(void 0===n&&(n=Error),!e)throw new n(t)}function zr(e){return e.type===jr.literal}function Gr(e){return e.type===jr.argument}function Vr(e){return e.type===jr.number}function Wr(e){return e.type===jr.date}function $r(e){return e.type===jr.time}function qr(e){return e.type===jr.select}function Qr(e){return e.type===jr.plural}function Kr(e){return e.type===jr.pound}function Xr(e){return e.type===jr.tag}function Yr(e){return!(!e||"object"!=typeof e||e.type!==Hr.number)}function Zr(e){return!(!e||"object"!=typeof e||e.type!==Hr.dateTime)}p(function(e,t){}),p(function(e){e.exports=Br}),function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(Fr||(Fr={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(jr||(jr={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(Hr||(Hr={}));var Jr=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,eo=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function to(e){var t={};return e.replace(eo,function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"short":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var no=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,ro=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,oo=/^(@+)?(\+|#+)?[rs]?$/g,ao=/(\*)(0+)|(#+)(0+)|(0+)/g,io=/^(0+)$/;function lo(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(oo,function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""}),t}function uo(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function so(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!io.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function co(e){return uo(e)||{}}function fo(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=pr(pr(pr({},t),{notation:"scientific"}),o.options.reduce(function(e,t){return pr(pr({},e),co(t))},{}));continue;case"engineering":t=pr(pr(pr({},t),{notation:"engineering"}),o.options.reduce(function(e,t){return pr(pr({},e),co(t))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(ao,function(e,n,r,o,a,i){if(n)t.minimumIntegerDigits=r.length;else{if(o&&a)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""});continue}if(io.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(ro.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(ro,function(e,n,r,o,a,i){return"*"===r?t.minimumFractionDigits=n.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:a&&i?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+i.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""});var a=o.options[0];"w"===a?t=pr(pr({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=pr(pr({},t),lo(a)))}else if(oo.test(o.stem))t=pr(pr({},t),lo(o.stem));else{var i=uo(o.stem);i&&(t=pr(pr({},t),i));var l=so(o.stem);l&&(t=pr(pr({},t),l))}}return t}var po,mo={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function ho(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(mo[n||""]||mo[r||""]||mo["".concat(r,"-001")]||mo["001"])[0]}var yo=new RegExp("^".concat(Jr.source,"*")),go=new RegExp("".concat(Jr.source,"*$"));function vo(e,t){return{start:e,end:t}}var bo=!!String.prototype.startsWith,Eo=!!String.fromCodePoint,wo=!!Object.fromEntries,So=!!String.prototype.codePointAt,_o=!!String.prototype.trimStart,Co=!!String.prototype.trimEnd,Oo=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ko=!0;try{ko="a"===(null===(po=Ro("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===po?void 0:po[0])}catch(e){ko=!1}var Po,To=bo?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},xo=Eo?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",o=e.length,a=0;o>a;){if((n=e[a++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},Ao=wo?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];t[o[0]]=o[1]}return t},No=So?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,o=e.charCodeAt(t);return o<55296||o>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?o:r-56320+(o-55296<<10)+65536}},Mo=_o?function(e){return e.trimStart()}:function(e){return e.replace(yo,"")},Lo=Co?function(e){return e.trimEnd()}:function(e){return e.replace(go,"")};function Ro(e,t){return new RegExp(e,t)}if(ko){var Io=Ro("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Po=function(e,t){var n;return Io.lastIndex=t,null!==(n=Io.exec(e)[1])&&void 0!==n?n:""}}else Po=function(e,t){for(var n=[];;){var r=No(e,t);if(void 0===r||Ho(r)||Bo(r))break;n.push(r),t+=r>=65536?2:1}return xo.apply(void 0,n)};var Do=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var o=this.char();if(123===o){if((a=this.parseArgument(e,n)).err)return a;r.push(a.val)}else{if(125===o&&e>0)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(Fr.UNMATCHED_CLOSING_TAG,vo(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Fo(this.peek()||0)){if((a=this.parseTag(e,t)).err)return a;r.push(a.val)}else{var a;if((a=this.parseLiteral(e,t)).err)return a;r.push(a.val)}}else{var i=this.clonePosition();this.bump(),r.push({type:jr.pound,location:vo(i,this.clonePosition())})}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:jr.literal,value:"<".concat(r,"/>"),location:vo(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var a=o.val,i=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Fo(this.char()))return this.error(Fr.INVALID_TAG,vo(i,this.clonePosition()));var l=this.clonePosition();return r!==this.parseTagName()?this.error(Fr.UNMATCHED_CLOSING_TAG,vo(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:jr.tag,value:r,children:a,location:vo(n,this.clonePosition())},err:null}:this.error(Fr.INVALID_TAG,vo(i,this.clonePosition())))}return this.error(Fr.UNCLOSED_TAG,vo(n,this.clonePosition()))}return this.error(Fr.INVALID_TAG,vo(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&jo(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o)r+=o;else{var a=this.tryParseUnquoted(e,t);if(a)r+=a;else{var i=this.tryParseLeftAngleBracket();if(!i)break;r+=i}}}var l=vo(n,this.clonePosition());return{val:{type:jr.literal,value:r,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Fo(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return xo.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),xo(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Fr.EXPECT_ARGUMENT_CLOSING_BRACE,vo(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Fr.EMPTY_ARGUMENT,vo(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(Fr.MALFORMED_ARGUMENT,vo(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Fr.EXPECT_ARGUMENT_CLOSING_BRACE,vo(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:jr.argument,value:r,location:vo(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Fr.EXPECT_ARGUMENT_CLOSING_BRACE,vo(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(Fr.MALFORMED_ARGUMENT,vo(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=Po(this.message,t);return this.bumpTo(t+n.length),{value:n,location:vo(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var o,a=this.clonePosition(),i=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(i){case"":return this.error(Fr.EXPECT_ARGUMENT_TYPE,vo(a,l));case"number":case"date":case"time":this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var s=this.clonePosition();if((g=this.parseSimpleArgStyleIfPossible()).err)return g;if(0===(p=Lo(g.val)).length)return this.error(Fr.EXPECT_ARGUMENT_STYLE,vo(this.clonePosition(),this.clonePosition()));u={style:p,styleLocation:vo(s,this.clonePosition())}}if((v=this.tryParseArgumentClose(r)).err)return v;var c=vo(r,this.clonePosition());if(u&&To(null==u?void 0:u.style,"::",0)){var f=Mo(u.style.slice(2));if("number"===i)return(g=this.parseNumberSkeletonFromString(f,u.styleLocation)).err?g:{val:{type:jr.number,value:n,location:c,style:g.val},err:null};if(0===f.length)return this.error(Fr.EXPECT_DATE_TIME_SKELETON,c);var d=f;this.locale&&(d=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if("j"===o){for(var a=0;r+1<e.length&&e.charAt(r+1)===o;)a++,r++;var i=1+(1&a),l=a<2?1:3+(a>>1),u=ho(t);for("H"!=u&&"k"!=u||(l=0);l-- >0;)n+="a";for(;i-- >0;)n=u+n}else n+="J"===o?"H":o}return n}(f,this.locale));var p={type:Hr.dateTime,pattern:d,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?to(d):{}};return{val:{type:"date"===i?jr.date:jr.time,value:n,location:c,style:p},err:null}}return{val:{type:"number"===i?jr.number:"date"===i?jr.date:jr.time,value:n,location:c,style:null!==(o=null==u?void 0:u.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":var m=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Fr.EXPECT_SELECT_ARGUMENT_OPTIONS,vo(m,pr({},m)));this.bumpSpace();var h=this.parseIdentifierIfPossible(),y=0;if("select"!==i&&"offset"===h.value){if(!this.bumpIf(":"))return this.error(Fr.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,vo(this.clonePosition(),this.clonePosition()));var g;if(this.bumpSpace(),(g=this.tryParseDecimalInteger(Fr.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Fr.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return g;this.bumpSpace(),h=this.parseIdentifierIfPossible(),y=g.val}var v,b=this.tryParsePluralOrSelectOptions(e,i,t,h);if(b.err)return b;if((v=this.tryParseArgumentClose(r)).err)return v;var E=vo(r,this.clonePosition());return"select"===i?{val:{type:jr.select,value:n,options:Ao(b.val),location:E},err:null}:{val:{type:jr.plural,value:n,options:Ao(b.val),offset:y,pluralType:"plural"===i?"cardinal":"ordinal",location:E},err:null};default:return this.error(Fr.INVALID_ARGUMENT_TYPE,vo(a,l))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(Fr.EXPECT_ARGUMENT_CLOSING_BRACE,vo(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Fr.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,vo(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(no).filter(function(e){return e.length>0});n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var a=o[0],i=o.slice(1),l=0,u=i;l<u.length;l++)if(0===u[l].length)throw new Error("Invalid number skeleton");t.push({stem:a,options:i})}return t}(e)}catch(e){return this.error(Fr.INVALID_NUMBER_SKELETON,t)}return{val:{type:Hr.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?fo(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var o,a=!1,i=[],l=new Set,u=r.value,s=r.location;;){if(0===u.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var f=this.tryParseDecimalInteger(Fr.EXPECT_PLURAL_ARGUMENT_SELECTOR,Fr.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;s=vo(c,this.clonePosition()),u=this.message.slice(c.offset,this.offset())}if(l.has(u))return this.error("select"===t?Fr.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Fr.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,s);"other"===u&&(a=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?Fr.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Fr.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,vo(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,n);if(p.err)return p;var m=this.tryParseArgumentClose(d);if(m.err)return m;i.push([u,{value:p.val,location:vo(d,this.clonePosition())}]),l.add(u),this.bumpSpace(),u=(o=this.parseIdentifierIfPossible()).value,s=o.location}return 0===i.length?this.error("select"===t?Fr.EXPECT_SELECT_ARGUMENT_SELECTOR:Fr.EXPECT_PLURAL_ARGUMENT_SELECTOR,vo(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(Fr.MISSING_OTHER_CLAUSE,vo(this.clonePosition(),this.clonePosition())):{val:i,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,a=0;!this.isEOF();){var i=this.char();if(!(i>=48&&i<=57))break;o=!0,a=10*a+(i-48),this.bump()}var l=vo(r,this.clonePosition());return o?Oo(a*=n)?{val:a,err:null}:this.error(t,l):this.error(e,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=No(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(To(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ho(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function Fo(e){return e>=97&&e<=122||e>=65&&e<=90}function jo(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Ho(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function Bo(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function Uo(e,t){void 0===t&&(t={}),t=pr({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Do(e,t).parse();if(n.err){var r=SyntaxError(Fr[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||function e(t){t.forEach(function(t){if(delete t.location,qr(t)||Qr(t))for(var n in t.options)delete t.options[n].location,e(t.options[n].value);else Vr(t)&&Yr(t.style)||(Wr(t)||$r(t))&&Zr(t.style)?delete t.style.location:Xr(t)&&e(t.children)})}(n.val),n.val}function zo(e,t){return(t&&t.strategy?t.strategy:$o)(e,{cache:t&&t.cache?t.cache:Xo,serializer:t&&t.serializer?t.serializer:qo})}function Go(e,t,n,r){var o,a=null==(o=r)||"number"==typeof o||"boolean"==typeof o?r:n(r),i=t.get(a);return void 0===i&&(i=e.call(this,r),t.set(a,i)),i}function Vo(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),a=t.get(o);return void 0===a&&(a=e.apply(this,r),t.set(o,a)),a}function Wo(e,t,n,r,o){return n.bind(t,e,r,o)}function $o(e,t){return Wo(e,this,1===e.length?Go:Vo,t.cache.create(),t.serializer)}var qo=function(){return JSON.stringify(arguments)};function Qo(){this.cache=Object.create(null)}Qo.prototype.get=function(e){return this.cache[e]},Qo.prototype.set=function(e,t){this.cache[e]=t};var Ko,Xo={create:function(){return new Qo}},Yo={variadic:function(e,t){return Wo(e,this,Vo,t.cache.create(),t.serializer)},monadic:function(e,t){return Wo(e,this,Go,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(Ko||(Ko={}));var Zo,Jo=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.code=n,o.originalMessage=r,o}return dr(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),ea=function(e){function t(t,n,r,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),Ko.INVALID_VALUE,o)||this}return dr(t,e),t}(Jo),ta=function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),Ko.INVALID_VALUE,r)||this}return dr(t,e),t}(Jo),na=function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),Ko.MISSING_VALUE,n)||this}return dr(t,e),t}(Jo);function ra(e){return"function"==typeof e}function oa(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(Zo||(Zo={}));var aa,ia=function(){function e(t,n,r,o){var a,i,l,u=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=u.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce(function(e,t){return e.length&&t.type===Zo.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return function e(t,n,r,o,a,i,l){if(1===t.length&&zr(t[0]))return[{type:Zo.literal,value:t[0].value}];for(var u=[],s=0,c=t;s<c.length;s++){var f=c[s];if(zr(f))u.push({type:Zo.literal,value:f.value});else if(Kr(f))"number"==typeof i&&u.push({type:Zo.literal,value:r.getNumberFormat(n).format(i)});else{var d=f.value;if(!a||!(d in a))throw new na(d,l);var p=a[d];if(Gr(f))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),u.push({type:"string"==typeof p?Zo.literal:Zo.object,value:p});else if(Wr(f)){var m="string"==typeof f.style?o.date[f.style]:Zr(f.style)?f.style.parsedOptions:void 0;u.push({type:Zo.literal,value:r.getDateTimeFormat(n,m).format(p)})}else if($r(f))m="string"==typeof f.style?o.time[f.style]:Zr(f.style)?f.style.parsedOptions:o.time.medium,u.push({type:Zo.literal,value:r.getDateTimeFormat(n,m).format(p)});else if(Vr(f))(m="string"==typeof f.style?o.number[f.style]:Yr(f.style)?f.style.parsedOptions:void 0)&&m.scale&&(p*=m.scale||1),u.push({type:Zo.literal,value:r.getNumberFormat(n,m).format(p)});else{if(Xr(f)){var h=f.children,y=f.value,g=a[y];if(!ra(g))throw new ta(y,"function",l);var v=g(e(h,n,r,o,a,i).map(function(e){return e.value}));Array.isArray(v)||(v=[v]),u.push.apply(u,v.map(function(e){return{type:"string"==typeof e?Zo.literal:Zo.object,value:e}}))}if(qr(f)){if(!(b=f.options[p]||f.options.other))throw new ea(f.value,p,Object.keys(f.options),l);u.push.apply(u,e(b.value,n,r,o,a))}else if(Qr(f)){var b;if(!(b=f.options["=".concat(p)])){if(!Intl.PluralRules)throw new Jo('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Ko.MISSING_INTL_API,l);var E=r.getPluralRules(n,{type:f.pluralType}).select(p-(f.offset||0));b=f.options[E]||f.options.other}if(!b)throw new ea(f.value,p,Object.keys(f.options),l);u.push.apply(u,e(b.value,n,r,o,a,p-(f.offset||0)))}}}}return(w=u).length<2?w:w.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===Zo.literal&&t.type===Zo.literal?n.value+=t.value:e.push(t),e},[]);var w}(u.ast,u.locales,u.formatters,u.formats,e,void 0,u.message)},this.resolvedOptions=function(){return{locale:u.resolvedLocale.toString()}},this.getAst=function(){return u.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:null==o?void 0:o.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(i=e.formats,(l=r)?Object.keys(i).reduce(function(e,t){var n,r;return e[t]=(n=i[t],(r=l[t])?pr(pr(pr({},n||{}),r||{}),Object.keys(n).reduce(function(e,t){return e[t]=pr(pr({},n[t]),r[t]||{}),e},{})):n),e},pr({},i)):i),this.formatters=o&&o.formatters||(void 0===(a=this.formatterCache)&&(a={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:zo(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,hr([void 0],t,!1)))},{cache:oa(a.number),strategy:Yo.variadic}),getDateTimeFormat:zo(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,hr([void 0],t,!1)))},{cache:oa(a.dateTime),strategy:Yo.variadic}),getPluralRules:zo(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,hr([void 0],t,!1)))},{cache:oa(a.pluralRules),strategy:Yo.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},e.__parse=Uo,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(aa||(aa={}));var la=function(e){function t(n,r,o){var a=this,i=o?o instanceof Error?o:new Error(String(o)):void 0;return(a=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r," \n").concat(i?"\n".concat(i.message,"\n").concat(i.stack):""))||this).code=n,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a,t),a}return dr(t,e),t}(Error),ua=function(e){function t(t,n){return e.call(this,aa.UNSUPPORTED_FORMATTER,t,n)||this}return dr(t,e),t}(la),sa=function(e){function t(t,n){return e.call(this,aa.INVALID_CONFIG,t,n)||this}return dr(t,e),t}(la),ca=function(e){function t(t,n){return e.call(this,aa.MISSING_DATA,t,n)||this}return dr(t,e),t}(la),fa=function(e){function t(t,n,r){return e.call(this,aa.FORMAT_ERROR,"".concat(t," \nLocale: ").concat(n,"\n"),r)||this}return dr(t,e),t}(la),da=function(e){function t(t,n,r,o){var a=e.call(this,"".concat(t," \nMessageID: ").concat(null==r?void 0:r.id,"\nDefault Message: ").concat(null==r?void 0:r.defaultMessage,"\nDescription: ").concat(null==r?void 0:r.description," \n"),n,o)||this;return a.descriptor=r,a}return dr(t,e),t}(fa),pa=function(e){function t(t,n){var r=e.call(this,aa.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(n,'", using ').concat(t.defaultMessage?"default message":"id"," as fallback."))||this;return r.descriptor=t,r}return dr(t,e),t}(la);function ma(e,t,n){return void 0===n&&(n={}),t.reduce(function(t,r){return r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t},{})}var ha={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){},onWarn:function(e){}};function ya(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function ga(e,t,n,r){var o,a=e&&e[t];if(a&&(o=a[n]),o)return o;r(new ua("No ".concat(t," format named: ").concat(n)))}function va(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=pr({timeZone:t},e[r]),n},{})}function ba(e,t){return Object.keys(pr(pr({},e),t)).reduce(function(n,r){return n[r]=pr(pr({},e[r]||{}),t[r]||{}),n},{})}function Ea(e,t){if(!t)return e;var n=ia.formats;return pr(pr(pr({},n),e),{date:ba(va(n.date,t),va(e.date||{},t)),time:ba(va(n.time,t),va(e.time||{},t))})}function wa(e,t,n,r,o){var a=e.locale,i=e.formats,l=e.messages,u=e.defaultLocale,s=e.defaultFormats,c=e.fallbackOnEmptyString,f=e.onError,d=e.timeZone,p=e.defaultRichTextElements;void 0===n&&(n={id:""});var m=n.id,h=n.defaultMessage;Ur(!!m,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var y=String(m),g=l&&Object.prototype.hasOwnProperty.call(l,y)&&l[y];if(Array.isArray(g)&&1===g.length&&g[0].type===jr.literal)return g[0].value;if(!r&&g&&"string"==typeof g&&!p)return g.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=pr(pr({},p),r||{}),i=Ea(i,d),s=Ea(s,d),!g){if(!1===c&&""===g)return g;if((!h||a&&a.toLowerCase()!==u.toLowerCase())&&f(new pa(n,a)),h)try{return t.getMessageFormat(h,u,s,o).format(r)}catch(e){return f(new da('Error formatting default message for: "'.concat(y,'", rendering default message verbatim'),a,n,e)),"string"==typeof h?h:y}return y}try{return t.getMessageFormat(g,a,i,pr({formatters:t},o||{})).format(r)}catch(e){f(new da('Error formatting message: "'.concat(y,'", using ').concat(h?"default message":"id"," as fallback."),a,n,e))}if(h)try{return t.getMessageFormat(h,u,s,o).format(r)}catch(e){f(new da('Error formatting the default message for: "'.concat(y,'", rendering message verbatim'),a,n,e))}return"string"==typeof g?g:"string"==typeof h?h:y}var Sa=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem"];function _a(e,t,n,r){var o=e.locale,a=e.formats,i=e.onError,l=e.timeZone;void 0===r&&(r={});var u=r.format,s=pr(pr({},l&&{timeZone:l}),u&&ga(a,t,u,i)),c=ma(r,Sa,s);return"time"!==t||c.hour||c.minute||c.second||c.timeStyle||c.dateStyle||(c=pr(pr({},c),{hour:"numeric",minute:"numeric"})),n(o,c)}function Ca(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],a=n[1],i=void 0===a?{}:a,l="string"==typeof o?new Date(o||0):o;try{return _a(e,"date",t,i).format(l)}catch(t){e.onError(new la(aa.FORMAT_ERROR,"Error formatting date.",t))}return String(l)}function Oa(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],a=n[1],i=void 0===a?{}:a,l="string"==typeof o?new Date(o||0):o;try{return _a(e,"time",t,i).format(l)}catch(t){e.onError(new la(aa.FORMAT_ERROR,"Error formatting time.",t))}return String(l)}function ka(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],a=n[1],i=n[2],l=void 0===i?{}:i,u=e.timeZone,s=e.locale,c=e.onError,f=ma(l,Sa,u?{timeZone:u}:{});try{return t(s,f).formatRange(o,a)}catch(e){c(new la(aa.FORMAT_ERROR,"Error formatting date time range.",e))}return String(o)}function Pa(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],a=n[1],i=void 0===a?{}:a,l="string"==typeof o?new Date(o||0):o;try{return _a(e,"date",t,i).formatToParts(l)}catch(t){e.onError(new la(aa.FORMAT_ERROR,"Error formatting date.",t))}return[]}function Ta(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],a=n[1],i=void 0===a?{}:a,l="string"==typeof o?new Date(o||0):o;try{return _a(e,"time",t,i).formatToParts(l)}catch(t){e.onError(new la(aa.FORMAT_ERROR,"Error formatting time.",t))}return[]}var xa=["localeMatcher","style","type","fallback"];function Aa(e,t,n,r){var o=e.locale,a=e.onError;Intl.DisplayNames||a(new Jo('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',Ko.MISSING_INTL_API));var i=ma(r,xa);try{return t(o,i).of(n)}catch(e){a(new la(aa.FORMAT_ERROR,"Error formatting display name.",e))}}var Na=["localeMatcher","type","style"],Ma=Date.now();function La(e,t,n,r){void 0===r&&(r={});var o=Ra(e,t,n,r).reduce(function(e,t){var n=t.value;return"string"!=typeof n?e.push(n):"string"==typeof e[e.length-1]?e[e.length-1]+=n:e.push(n),e},[]);return 1===o.length?o[0]:o}function Ra(e,t,n,r){var o=e.locale,a=e.onError;void 0===r&&(r={}),Intl.ListFormat||a(new Jo('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',Ko.MISSING_INTL_API));var i=ma(r,Na);try{var l={},u=n.map(function(e,t){if("object"==typeof e){var n=function(e){return"".concat(Ma,"_").concat(e,"_").concat(Ma)}(t);return l[n]=e,n}return String(e)});return t(o,i).formatToParts(u).map(function(e){return"literal"===e.type?e:pr(pr({},e),{value:l[e.value]||e.value})})}catch(e){a(new la(aa.FORMAT_ERROR,"Error formatting list.",e))}return n}var Ia=["localeMatcher","type"];function Da(e,t,n,r){var o=e.locale,a=e.onError;void 0===r&&(r={}),Intl.PluralRules||a(new Jo('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Ko.MISSING_INTL_API));var i=ma(r,Ia);try{return t(o,i).select(n)}catch(e){a(new fa("Error formatting plural.",o,e))}return"other"}var Fa=["numeric","style"];function ja(e,t,n,r,o){void 0===o&&(o={}),r||(r="second"),Intl.RelativeTimeFormat||e.onError(new Jo('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',Ko.MISSING_INTL_API));try{return function(e,t,n){var r=e.locale;void 0===n&&(n={});var o=n.format,a=!!o&&ga(e.formats,"relative",o,e.onError)||{};return t(r,ma(n,Fa,a))}(e,t,o).format(n,r)}catch(t){e.onError(new fa("Error formatting relative time.",e.locale,t))}return String(n)}var Ha=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function Ba(e,t,n){var r=e.locale;void 0===n&&(n={});var o=n.format,a=o&&ga(e.formats,"number",o,e.onError)||{};return t(r,ma(n,Ha,a))}function Ua(e,t,n,r){void 0===r&&(r={});try{return Ba(e,t,r).format(n)}catch(t){e.onError(new la(aa.FORMAT_ERROR,"Error formatting number.",t))}return String(n)}function za(e,t,n,r){void 0===r&&(r={});try{return Ba(e,t,r).formatToParts(n)}catch(t){e.onError(new la(aa.FORMAT_ERROR,"Error formatting number.",t))}return[]}function Ga(e){Ur(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Va=pr(pr({},ha),{textComponent:cr.Fragment});function Wa(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var a=0;a<o;a++){var i=n[a];if(e[i]!==t[i]||!Object.prototype.hasOwnProperty.call(t,i))return!1}return!0}var $a,qa,Qa=cr.createContext(null),Ka=Qa.Provider,Xa=Qa;function Ya(){var e=cr.useContext(Xa);return Ga(e),e}function Za(e){var t=function(t){var n=Ya(),r=t.value,o=t.children,a=mr(t,["value","children"]),i=n[e](r,a);return"function"==typeof o?o(i):cr.createElement(n.textComponent||cr.Fragment,null,i)};return t.displayName=$a[e],t}function Ja(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}function ei(e){return e?Object.keys(e).reduce(function(t,n){var r,o=e[n];return t[n]=ra(o)?(r=o,function(e){return r(cr.Children.toArray(e))}):o,t},{}):e}!function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"}($a||($a={})),function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"}(qa||(qa={}));var ti=function(e,t,n,r){for(var o=[],a=4;a<arguments.length;a++)o[a-4]=arguments[a];var i=ei(r),l=wa.apply(void 0,hr([e,t,n,i],o,!1));return Array.isArray(l)?cr.Children.toArray(l):l},ni=function(e,t){var n=e.defaultRichTextElements,r=mr(e,["defaultRichTextElements"]),o=ei(n),a=function(e,t){var n=function(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,o=zo(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,hr([void 0],t,!1)))},{cache:ya(e.dateTime),strategy:Yo.variadic}),a=zo(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,hr([void 0],t,!1)))},{cache:ya(e.number),strategy:Yo.variadic}),i=zo(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,hr([void 0],t,!1)))},{cache:ya(e.pluralRules),strategy:Yo.variadic});return{getDateTimeFormat:o,getNumberFormat:a,getMessageFormat:zo(function(e,t,n,r){return new ia(e,t,n,pr({formatters:{getNumberFormat:a,getDateTimeFormat:o,getPluralRules:i}},r||{}))},{cache:ya(e.message),strategy:Yo.variadic}),getRelativeTimeFormat:zo(function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new(t.bind.apply(t,hr([void 0],e,!1)))},{cache:ya(e.relativeTime),strategy:Yo.variadic}),getPluralRules:i,getListFormat:zo(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,hr([void 0],e,!1)))},{cache:ya(e.list),strategy:Yo.variadic}),getDisplayNames:zo(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(r.bind.apply(r,hr([void 0],e,!1)))},{cache:ya(e.displayNames),strategy:Yo.variadic})}}(t),r=pr(pr({},ha),e),o=r.locale,a=r.defaultLocale,i=r.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&i?i(new ca('Missing locale data for locale: "'.concat(o,'" in Intl.NumberFormat. Using default locale: "').concat(a,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&i&&i(new ca('Missing locale data for locale: "'.concat(o,'" in Intl.DateTimeFormat. Using default locale: "').concat(a,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(i&&i(new sa('"locale" was not configured, using "'.concat(a,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),function(e){var t;e.onWarn&&e.defaultRichTextElements&&"string"==typeof((t=e.messages||{})?t[Object.keys(t)[0]]:void 0)&&e.onWarn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}(r),pr(pr({},r),{formatters:n,formatNumber:Ua.bind(null,r,n.getNumberFormat),formatNumberToParts:za.bind(null,r,n.getNumberFormat),formatRelativeTime:ja.bind(null,r,n.getRelativeTimeFormat),formatDate:Ca.bind(null,r,n.getDateTimeFormat),formatDateToParts:Pa.bind(null,r,n.getDateTimeFormat),formatTime:Oa.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:ka.bind(null,r,n.getDateTimeFormat),formatTimeToParts:Ta.bind(null,r,n.getDateTimeFormat),formatPlural:Da.bind(null,r,n.getPluralRules),formatMessage:wa.bind(null,r,n),$t:wa.bind(null,r,n),formatList:La.bind(null,r,n.getListFormat),formatListToParts:Ra.bind(null,r,n.getListFormat),formatDisplayName:Aa.bind(null,r,n.getDisplayNames)})}(pr(pr(pr({},Va),r),{defaultRichTextElements:o}),t);return pr(pr({},a),{formatMessage:ti.bind(null,{locale:a.locale,timeZone:a.timeZone,fallbackOnEmptyString:a.fallbackOnEmptyString,formats:a.formats,defaultLocale:a.defaultLocale,defaultFormats:a.defaultFormats,messages:a.messages,onError:a.onError,defaultRichTextElements:o},a.formatters)})},ri=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},t.state={cache:t.cache,intl:ni(Ja(t.props),t.cache),prevConfig:Ja(t.props)},t}return dr(t,e),t.getDerivedStateFromProps=function(e,t){var n=t.prevConfig,r=t.cache,o=Ja(e);return Wa(n,o)?null:{intl:ni(o,r),prevConfig:o}},t.prototype.render=function(){return Ga(this.state.intl),cr.createElement(Ka,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=Va,t}(cr.PureComponent);function oi(e){var t=Ya(),n=t.textComponent,r=e.children,o=e.tagName,a=void 0===o?void 0===n?cr.Fragment:n:o,i=(0,t.formatMessage)({id:e.id,description:e.description,defaultMessage:e.defaultMessage},e.values,{ignoreTag:e.ignoreTag});return"function"==typeof r?r(Array.isArray(i)?i:[i]):a?cr.createElement(a,null,cr.Children.toArray(i)):cr.createElement(cr.Fragment,null,i)}oi.displayName="FormattedMessage";var ai=cr.memo(oi,function(e,t){var n=e.values,r=mr(e,["values"]),o=t.values,a=mr(t,["values"]);return Wa(o,n)&&Wa(r,a)});ai.displayName="MemoizedFormattedMessage";var ii=Za("formatDate"),li=(Za("formatTime"),Za("formatNumber")),ui=(Za("formatList"),Za("formatDisplayName"),{"credit-features.credit-cost-display":"{creditCost} (APR {taegPercentage})","credit-features.information":"Ein Kredit verpflichtet Sie und muss zurückgezahlt werden. Prüfen Sie Ihre Rückzahlungsfähigkeit, bevor Sie sich verpflichten.","credit-features.total-credit-cost":"Davon Kreditkosten","eligibility-modal.bullet-1":"Wählen Sie <strong>Alma</strong> beim Check-out. ","eligibility-modal.bullet-2":"Lassen Sie sich führen und bestätigen Sie Ihre Zahlung in <strong>2 Minuten.</strong>","eligibility-modal.bullet-3":"<strong>Verlieren Sie nicht die Kontrolle,</strong> indem Sie Ihre Fälligkeitstermine nach Ihrem eigenen Tempo vor- oder zurückverlegen.","eligibility-modal.no-eligibility":"Ups, die Prüfung hat anscheinend nicht funktioniert.","eligibility-modal.p1x-bullet-1":"Wählen Sie <strong>Alma - Jetzt bezahlen</strong> zum Zeitpunkt der Zahlung.","eligibility-modal.p1x-bullet-2":"Tragen Sie Ihre <strong>Kreditkarteninformationen ein.</strong>","eligibility-modal.p1x-bullet-3":"<strong> Ihre Zahlung wird sofort bestätigt! </strong>","eligibility-modal.title-deferred-plan":"Zahlen Sie mit Alma in Raten oder später.","eligibility-modal.title-normal":"Zahlen Sie mit Alma in mehreren Raten.","eligibility-modal.title-pay-now":"Bezahlen Sie mit Alma bar per Kreditkarte.","installments.today":"Heute","installments.total-amount":"Gesamtsumme","installments.total-fees":"Davon Kosten","payment-plan-strings.day-abbreviation":"T{deferredDays}","payment-plan-strings.default-message":"Bezahlen Sie zinsfrei in mehreren Raten mit Alma.","payment-plan-strings.deferred":"{totalAmount} zu zahlen am {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Bis zu {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"Ab {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} dann {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} dann {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(0% Finanzierung)","payment-plan-strings.pay-now":"Jetzt bezahlen {totalAmount}","payment-plan-strings.pay.now.button":"Jetzt bezahlen"}),si={"credit-features.credit-cost-display":"{creditCost} (APR {taegPercentage})","credit-features.information":"A loan commits you and must be repaid. Check your ability to repay before committing yourself.","credit-features.total-credit-cost":"Of which cost of credit","eligibility-modal.bullet-1":"Choose <strong>Alma</strong> at checkout.","eligibility-modal.bullet-2":"Let us guide you and validate your payment in <strong>2 minutes.</strong>","eligibility-modal.bullet-3":"<strong>Stay in control</strong> by moving your deadlines forward or backward at your own pace.","eligibility-modal.no-eligibility":"Oops, looks like the simulation didn't work.","eligibility-modal.p1x-bullet-1":"Choose <strong>Alma - Pay now</strong> at checkout.","eligibility-modal.p1x-bullet-2":"Fill in your <strong>credit card information.</strong>","eligibility-modal.p1x-bullet-3":"<strong>The validation </strong> of your payment is instantaneous!","eligibility-modal.title-deferred-plan":"Pay in installments or later by credit card with Alma.","eligibility-modal.title-normal":"Pay in installments by credit card with Alma.","eligibility-modal.title-pay-now":"Pay cash by credit card with Alma.","installments.today":"Today","installments.total-amount":"Total","installments.total-fees":"Of which costs (incl. VAT)","payment-plan-strings.day-abbreviation":"D{deferredDays}","payment-plan-strings.default-message":"Pay in installments with Alma","payment-plan-strings.deferred":"{totalAmount} to pay the {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Until {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"From {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} then {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} then {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(free of charge)","payment-plan-strings.pay-now":"Pay now {totalAmount}","payment-plan-strings.pay.now.button":"Pay now"},ci={"credit-features.credit-cost-display":"{creditCost} (TAE {taegPercentage})","credit-features.information":"Un préstamo te compromete y debe ser devuelto. Comprueba tu capacidad financiera antes de comprometerte.","credit-features.total-credit-cost":"Coste de crédito (incl. en el total)","eligibility-modal.bullet-1":"Elige <strong>Alma</strong> como método de pago.","eligibility-modal.bullet-2":"Déjese guiar y valide su pago en <strong>2 minutos.</strong>","eligibility-modal.bullet-3":"<strong>Mantenga el control</strong> adelantando o retrasando los plazos a su propio ritmo.","eligibility-modal.no-eligibility":"Uy, parece que la simulación no ha funcionado.","eligibility-modal.p1x-bullet-1":"Elija <strong>Alma - Pagar ahora</strong> en la caja.","eligibility-modal.p1x-bullet-2":"Introduzca los datos de su tarjeta de crédito en <strong>.</strong>","eligibility-modal.p1x-bullet-3":"<strong>¡La validación </strong> de su pago es instantánea!","eligibility-modal.title-deferred-plan":"Paga a plazos o posteriormente con tarjeta bancaria con Alma.","eligibility-modal.title-normal":"Pagar a plazos con tarjeta bancaria con Alma.","eligibility-modal.title-pay-now":"Pague en efectivo con tarjeta de crédito con Alma.","installments.today":"Hoy","installments.total-amount":"Total","installments.total-fees":"De los cuales, costes (IVA incluido)","payment-plan-strings.day-abbreviation":"D{deferredDays}","payment-plan-strings.default-message":"Pagar a plazos con Alma","payment-plan-strings.deferred":"{totalAmount} a pagar el {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Hasta {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"Desde {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} hoy, después {numberOfRemainingInstallments} mensualidad de {othersInstallmentAmount}} other {{firstInstallmentAmount} hoy, después {numberOfRemainingInstallments} mensualidades de {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} plazos de {totalAmount}","payment-plan-strings.no-fee":"(sin intereses)","payment-plan-strings.pay-now":"Pague ahora {totalAmount}","payment-plan-strings.pay.now.button":"Pagar ahora"},fi={"credit-features.credit-cost-display":"{creditCost} (TAEG {taegPercentage})","credit-features.information":"Un crédit vous engage et doit être remboursé. Vérifiez vos capacités de remboursement avant de vous engager.","credit-features.total-credit-cost":"Dont coût du crédit","eligibility-modal.bullet-1":"Choisissez <strong>Alma</strong> au moment du paiement.","eligibility-modal.bullet-2":"Laissez-vous guider et validez votre paiement en <strong>2 minutes.</strong>","eligibility-modal.bullet-3":"<strong>Gardez le contrôle</strong> en avançant ou reculant vos échéances à votre rythme.","eligibility-modal.no-eligibility":"Oups, il semblerait que la simulation n'ait pas fonctionné.","eligibility-modal.p1x-bullet-1":"Choisissez <strong>Alma - Payer maintenant</strong> au moment du paiement.","eligibility-modal.p1x-bullet-2":"Renseignez les informations de votre <strong>carte bancaire.</strong>","eligibility-modal.p1x-bullet-3":"<strong>La validation </strong> de votre paiement est instantanée !","eligibility-modal.title-deferred-plan":"Payez en plusieurs fois ou plus tard par carte bancaire avec Alma.","eligibility-modal.title-normal":"Payez en plusieurs fois par carte bancaire avec Alma.","eligibility-modal.title-pay-now":"Payez comptant par carte bancaire avec Alma.","installments.today":"Aujourd'hui","installments.total-amount":"Total","installments.total-fees":"Dont frais (TTC)","payment-plan-strings.day-abbreviation":"J{deferredDays}","payment-plan-strings.default-message":"Payez en plusieurs fois avec Alma","payment-plan-strings.deferred":"{totalAmount} à payer le {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Jusqu'à {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"À partir de {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(sans frais)","payment-plan-strings.pay-now":"Payer maintenant {totalAmount}","payment-plan-strings.pay.now.button":"Payer maintenant"},di={"credit-features.credit-cost-display":"{creditCost} (TAEG {taegPercentage})","credit-features.information":"Un pagamento rateale ti impegna e deve essere ripagato. Verifica la tua disponibilità finanziaria prima di impegnarti.","credit-features.total-credit-cost":"Di cui commissioni","eligibility-modal.bullet-1":"Seleziona <strong>Alma</strong> come metodo di pagamento.","eligibility-modal.bullet-2":"Segui le istruzioni e completa l'acquisto <strong>in meno di 2 minuti.</strong>","eligibility-modal.bullet-3":"<strong>Gestisci il tuo piano di pagamento</strong> e modifica le scadenze secondo le tue esigenze.","eligibility-modal.no-eligibility":"Ops, sembra che qualcosa non abbia funzionato.","eligibility-modal.p1x-bullet-1":"Scegli <strong>Alma - Paga ora</strong> alla cassa.","eligibility-modal.p1x-bullet-2":"Inserisci i dati della tua <strong>carta bancaria.</strong>","eligibility-modal.p1x-bullet-3":"Ricevi la conferma di pagamento <strong>istantaneamente!</strong>","eligibility-modal.title-deferred-plan":"Paga a rate con Alma, senza registrazione.","eligibility-modal.title-normal":"Paga a rate con Alma, senza registrazione.","eligibility-modal.title-pay-now":"Pagare in contanti con carta di credito con Alma.","installments.today":"Oggi","installments.total-amount":"Totale","installments.total-fees":"Di cui commissioni","payment-plan-strings.day-abbreviation":"G{deferredDays}","payment-plan-strings.default-message":"Paga a rate con Alma, senza registrazione.","payment-plan-strings.deferred":"{totalAmount} da pagare il {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Disponibile fino a {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"Pagamento rateale disponibile a partire da {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {Oggi paghi {firstInstallmentAmount} poi tra {numberOfRemainingInstallments} mese {othersInstallmentAmount}} other {Oggi paghi {firstInstallmentAmount} poi {numberOfRemainingInstallments} rate mensili di {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"In {installmentsCount} rate mensili di {totalAmount}","payment-plan-strings.no-fee":"(senza interessi)","payment-plan-strings.pay-now":"Paga ora {totalAmount}","payment-plan-strings.pay.now.button":"Paga ora"},pi={"credit-features.credit-cost-display":"{creditCost} (gemiddeld rente percentage {taegPercentage})","credit-features.information":"Een lening is bindend en moet worden terugbetaald. Ga na of je het kunt terugbetalen voordat je jezelf vastlegt.","credit-features.total-credit-cost":"Waarvan kredietkosten","eligibility-modal.bullet-1":"Kies <strong>Alma</strong> bij het afrekenen.","eligibility-modal.bullet-2":"Laat ons je begeleiden en jouw betaling valideren in <strong>2 minuten.</strong>","eligibility-modal.bullet-3":"<strong>Behoudt de controle</strong> door jouw deadlines op je eigen tempo vooruit of achteruit te schuiven.","eligibility-modal.no-eligibility":"Oeps, het lijkt erop dat de simulatie niet werkte.","eligibility-modal.p1x-bullet-1":"Kies <strong>Alma - Betaal nu</strong> bij het afrekenen.","eligibility-modal.p1x-bullet-2":"Vul jouw <strong>creditcardgegevens </strong> in.","eligibility-modal.p1x-bullet-3":"<strong>De bevestiging </strong> van jouw betaling is onmiddellijk!","eligibility-modal.title-deferred-plan":"Betaal in termijnen of later via iDEAL of per creditcard met Alma.","eligibility-modal.title-normal":"Betaal in termijnen met iDEAL of creditcard bij Alma.","eligibility-modal.title-pay-now":"Betaal contant met creditcard bij Alma.","installments.today":"Tegenwoordig","installments.total-amount":"Totaal","installments.total-fees":"Waarvan kosten (incl. BTW)","payment-plan-strings.day-abbreviation":"D{deferredDays}","payment-plan-strings.default-message":"Betaal in termijnen met Alma","payment-plan-strings.deferred":"{totalAmount} te betalen op {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Tot {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"Van {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} dan {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} dan {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(zonder kosten)","payment-plan-strings.pay-now":"Betaal nu {totalAmount}","payment-plan-strings.pay.now.button":"Betaal nu"},mi={"credit-features.credit-cost-display":"{creditCost} (TAEG {taegPercentage})","credit-features.information":"Um crédito é um compromisso e deve ser reembolsado. Verifique a sua capacidade de pagar antes de se comprometer.","credit-features.total-credit-cost":"Incluindo custo do crédito","eligibility-modal.bullet-1":"Escolha a <strong>Alma</strong> no checkout.","eligibility-modal.bullet-2":"Deixe-nos guiá-lo e validar o seu pagamento em <strong>2 minutos.</strong>","eligibility-modal.bullet-3":"<strong>Mantenha o controlo</strong> avançando ou recuando os seus prazos ao seu próprio ritmo.","eligibility-modal.no-eligibility":"Ups, parece que a simulação não funcionou.","eligibility-modal.p1x-bullet-1":"Escolha <strong>Alma - Pague agora</strong> no checkout.","eligibility-modal.p1x-bullet-2":"Preencha as informações do seu <strong>cartão de crédito.</strong>","eligibility-modal.p1x-bullet-3":"<strong>A validação </strong> do seu pagamento é instantânea!","eligibility-modal.title-deferred-plan":"Pagar em prestações ou mais tarde por cartão de crédito com Alma.","eligibility-modal.title-normal":"Pagar em prestações por cartão de crédito com Alma.","eligibility-modal.title-pay-now":"Pagar a dinheiro ou com cartão de crédito com a Alma.","installments.today":"Hoje","installments.total-amount":"Total","installments.total-fees":"Dos quais custos (incl. IVA)","payment-plan-strings.day-abbreviation":"D{deferredDays}","payment-plan-strings.default-message":"Pague em prestações através da Alma","payment-plan-strings.deferred":"{totalAmount} a pagar em {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Até {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"A partir de {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} depois {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} depois {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(sem encargos)","payment-plan-strings.pay-now":"Pagar agora {totalAmount}","payment-plan-strings.pay.now.button":"Pagar agora"},hi=function(e){switch(e.slice(0,2)){case Jn.fr:return fi;case Jn.es:return ci;case Jn.it:return di;case Jn.de:return ui;case Jn.pt:return mi;case Jn.nl:return pi;case Jn.en:default:return si}},yi=function(e){var t=e.children,n=e.locale;return cr.createElement(ri,{messages:hi(n),locale:n,defaultLocale:"en"},t)},gi=p(function(e,t){var n,r,o,a;if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var l=Date,u=l.now();t.unstable_now=function(){return l.now()-u}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,c=null,f=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(f,0),e}};n=function(e){null!==s?setTimeout(n,0,e):(s=e,setTimeout(f,0))},r=function(e,t){c=setTimeout(e,t)},o=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,p=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var h=!1,y=null,g=-1,v=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):v=0<e?Math.floor(1e3/e):5};var E=new MessageChannel,w=E.port2;E.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();b=e+v;try{y(!0,e)?w.postMessage(null):(h=!1,y=null)}catch(e){throw w.postMessage(null),e}}else h=!1},n=function(e){y=e,h||(h=!0,w.postMessage(null))},r=function(e,n){g=d(function(){e(t.unstable_now())},n)},o=function(){p(g),g=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<O(o,t)))break e;e[r]=t,e[n]=o,n=r}}function _(e){return void 0===(e=e[0])?null:e}function C(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var a=2*(r+1)-1,i=e[a],l=a+1,u=e[l];if(void 0!==i&&0>O(i,n))void 0!==u&&0>O(u,i)?(e[r]=u,e[l]=n,r=l):(e[r]=i,e[a]=n,r=a);else{if(!(void 0!==u&&0>O(u,n)))break e;e[r]=u,e[l]=n,r=l}}}return t}return null}function O(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var k=[],P=[],T=1,x=null,A=3,N=!1,M=!1,L=!1;function R(e){for(var t=_(P);null!==t;){if(null===t.callback)C(P);else{if(!(t.startTime<=e))break;C(P),t.sortIndex=t.expirationTime,S(k,t)}t=_(P)}}function I(e){if(L=!1,R(e),!M)if(null!==_(k))M=!0,n(D);else{var t=_(P);null!==t&&r(I,t.startTime-e)}}function D(e,n){M=!1,L&&(L=!1,o()),N=!0;var a=A;try{for(R(n),x=_(k);null!==x&&(!(x.expirationTime>n)||e&&!t.unstable_shouldYield());){var i=x.callback;if("function"==typeof i){x.callback=null,A=x.priorityLevel;var l=i(x.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?x.callback=l:x===_(k)&&C(k),R(n)}else C(k);x=_(k)}if(null!==x)var u=!0;else{var s=_(P);null!==s&&r(I,s.startTime-n),u=!1}return u}finally{x=null,A=a,N=!1}}var F=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){M||N||(M=!0,n(D))},t.unstable_getCurrentPriorityLevel=function(){return A},t.unstable_getFirstCallbackNode=function(){return _(k)},t.unstable_next=function(e){switch(A){case 1:case 2:case 3:var t=3;break;default:t=A}var n=A;A=t;try{return e()}finally{A=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=F,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=A;A=e;try{return t()}finally{A=n}},t.unstable_scheduleCallback=function(e,a,i){var l=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?l+i:l,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return e={id:T++,callback:a,priorityLevel:e,startTime:i,expirationTime:u=i+u,sortIndex:-1},i>l?(e.sortIndex=i,S(P,e),null===_(k)&&e===_(P)&&(L?o():L=!0,r(I,i-l))):(e.sortIndex=u,S(k,e),M||N||(M=!0,n(D))),e},t.unstable_wrapCallback=function(e){var t=A;return function(){var n=A;A=t;try{return e.apply(this,arguments)}finally{A=n}}}}),vi=(p(function(e,t){}),p(function(e){e.exports=gi}));function bi(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!cr)throw Error(bi(227));var Ei=new Set,wi={};function Si(e,t){_i(e,t),_i(e+"Capture",t)}function _i(e,t){for(wi[e]=t,e=0;e<t.length;e++)Ei.add(t[e])}var Ci=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Oi=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ki=Object.prototype.hasOwnProperty,Pi={},Ti={};function xi(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var Ai={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ai[e]=new xi(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ai[t]=new xi(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ai[e]=new xi(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ai[e]=new xi(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ai[e]=new xi(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Ai[e]=new xi(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Ai[e]=new xi(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Ai[e]=new xi(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Ai[e]=new xi(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ni=/[\-:]([a-z])/g;function Mi(e){return e[1].toUpperCase()}function Li(e,t,n,r){var o=Ai.hasOwnProperty(t)?Ai[t]:null;(null!==o?0===o.type:!r&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!ki.call(Ti,e)||!ki.call(Pi,e)&&(Oi.test(e)?Ti[e]=!0:(Pi[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ni,Mi);Ai[t]=new xi(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ni,Mi);Ai[t]=new xi(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ni,Mi);Ai[t]=new xi(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Ai[e]=new xi(e,1,!1,e.toLowerCase(),null,!1,!1)}),Ai.xlinkHref=new xi("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Ai[e]=new xi(e,1,!1,e.toLowerCase(),null,!0,!0)});var Ri=cr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ii=60103,Di=60106,Fi=60107,ji=60108,Hi=60114,Bi=60109,Ui=60110,zi=60112,Gi=60113,Vi=60120,Wi=60115,$i=60116,qi=60121,Qi=60128,Ki=60129,Xi=60130,Yi=60131;if("function"==typeof Symbol&&Symbol.for){var Zi=Symbol.for;Ii=Zi("react.element"),Di=Zi("react.portal"),Fi=Zi("react.fragment"),ji=Zi("react.strict_mode"),Hi=Zi("react.profiler"),Bi=Zi("react.provider"),Ui=Zi("react.context"),zi=Zi("react.forward_ref"),Gi=Zi("react.suspense"),Vi=Zi("react.suspense_list"),Wi=Zi("react.memo"),$i=Zi("react.lazy"),qi=Zi("react.block"),Zi("react.scope"),Qi=Zi("react.opaque.id"),Ki=Zi("react.debug_trace_mode"),Xi=Zi("react.offscreen"),Yi=Zi("react.legacy_hidden")}var Ji,el="function"==typeof Symbol&&Symbol.iterator;function tl(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=el&&e[el]||e["@@iterator"])?e:null}function nl(e){if(void 0===Ji)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ji=t&&t[1]||""}return"\n"+Ji+e}var rl=!1;function ol(e,t){if(!e||rl)return"";rl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var o=e.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,l=a.length-1;1<=i&&0<=l&&o[i]!==a[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==a[l]){if(1!==i||1!==l)do{if(i--,0>--l||o[i]!==a[l])return"\n"+o[i].replace(" at new "," at ")}while(1<=i&&0<=l);break}}}finally{rl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?nl(e):""}function al(e){switch(e.tag){case 5:return nl(e.type);case 16:return nl("Lazy");case 13:return nl("Suspense");case 19:return nl("SuspenseList");case 0:case 2:case 15:return ol(e.type,!1);case 11:return ol(e.type.render,!1);case 22:return ol(e.type._render,!1);case 1:return ol(e.type,!0);default:return""}}function il(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Fi:return"Fragment";case Di:return"Portal";case Hi:return"Profiler";case ji:return"StrictMode";case Gi:return"Suspense";case Vi:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Ui:return(e.displayName||"Context")+".Consumer";case Bi:return(e._context.displayName||"Context")+".Provider";case zi:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case Wi:return il(e.type);case qi:return il(e._render);case $i:t=e._payload,e=e._init;try{return il(e(t))}catch(e){}}return null}function ll(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ul(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function sl(e){e._valueTracker||(e._valueTracker=function(e){var t=ul(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function cl(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ul(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function fl(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function dl(e,t){var n=t.checked;return ur({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function pl(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ll(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function ml(e,t){null!=(t=t.checked)&&Li(e,"checked",t,!1)}function hl(e,t){ml(e,t);var n=ll(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?gl(e,t.type,n):t.hasOwnProperty("defaultValue")&&gl(e,t.type,ll(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function yl(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(("submit"===r||"reset"===r)&&null==t.value)return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function gl(e,t,n){"number"===t&&fl(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function vl(e,t){return e=ur({children:void 0},t),(t=function(e){var t="";return cr.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(t.children))&&(e.children=t),e}function bl(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ll(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function El(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(bi(91));return ur({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function wl(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(bi(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(bi(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ll(n)}}function Sl(e,t){var n=ll(t.value),r=ll(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function _l(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Cl="http://www.w3.org/1999/xhtml";function Ol(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function kl(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Ol(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Pl,Tl=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n)})}:e}(function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((Pl=Pl||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Pl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function xl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Al={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Nl=["Webkit","ms","Moz","O"];function Ml(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Al.hasOwnProperty(e)&&Al[e]?(""+t).trim():t+"px"}function Ll(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=Ml(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(Al).forEach(function(e){Nl.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Al[t]=Al[e]})});var Rl=ur({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Il(e,t){if(t){if(Rl[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(bi(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(bi(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(bi(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(bi(62))}}function Dl(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Fl(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var jl=null,Hl=null,Bl=null;function Ul(e){if(e=uf(e)){if("function"!=typeof jl)throw Error(bi(280));var t=e.stateNode;t&&(t=cf(t),jl(e.stateNode,e.type,t))}}function zl(e){Hl?Bl?Bl.push(e):Bl=[e]:Hl=e}function Gl(){if(Hl){var e=Hl,t=Bl;if(Bl=Hl=null,Ul(e),t)for(e=0;e<t.length;e++)Ul(t[e])}}function Vl(e,t){return e(t)}function Wl(e,t,n,r,o){return e(t,n,r,o)}function $l(){}var ql=Vl,Ql=!1,Kl=!1;function Xl(){null===Hl&&null===Bl||($l(),Gl())}function Yl(e,t){var n=e.stateNode;if(null===n)return null;var r=cf(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(bi(231,t,typeof n));return n}var Zl=!1;if(Ci)try{var Jl={};Object.defineProperty(Jl,"passive",{get:function(){Zl=!0}}),window.addEventListener("test",Jl,Jl),window.removeEventListener("test",Jl,Jl)}catch(e){Zl=!1}function eu(e,t,n,r,o,a,i,l,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}var tu=!1,nu=null,ru=!1,ou=null,au={onError:function(e){tu=!0,nu=e}};function iu(e,t,n,r,o,a,i,l,u){tu=!1,nu=null,eu.apply(au,arguments)}function lu(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function uu(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function su(e){if(lu(e)!==e)throw Error(bi(188))}function cu(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=lu(e)))throw Error(bi(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return su(o),e;if(a===r)return su(o),t;a=a.sibling}throw Error(bi(188))}if(n.return!==r.return)n=o,r=a;else{for(var i=!1,l=o.child;l;){if(l===n){i=!0,n=o,r=a;break}if(l===r){i=!0,r=o,n=a;break}l=l.sibling}if(!i){for(l=a.child;l;){if(l===n){i=!0,n=a,r=o;break}if(l===r){i=!0,r=a,n=o;break}l=l.sibling}if(!i)throw Error(bi(189))}}if(n.alternate!==r)throw Error(bi(190))}if(3!==n.tag)throw Error(bi(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}var fu,du,pu,mu,hu=!1,yu=[],gu=null,vu=null,bu=null,Eu=new Map,wu=new Map,Su=[],_u="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Cu(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:o,targetContainers:[r]}}function Ou(e,t){switch(e){case"focusin":case"focusout":gu=null;break;case"dragenter":case"dragleave":vu=null;break;case"mouseover":case"mouseout":bu=null;break;case"pointerover":case"pointerout":Eu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":wu.delete(t.pointerId)}}function ku(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e=Cu(t,n,r,o,a),null!==t&&null!==(t=uf(t))&&du(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Pu(e){var t=lf(e.target);if(null!==t){var n=lu(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=uu(n)))return e.blockedOn=t,void mu(e.lanePriority,function(){vi.unstable_runWithPriority(e.priority,function(){pu(n)})})}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Tu(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=us(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=uf(n))&&du(t),e.blockedOn=n,!1;t.shift()}return!0}function xu(e,t,n){Tu(e)&&n.delete(t)}function Au(){for(hu=!1;0<yu.length;){var e=yu[0];if(null!==e.blockedOn){null!==(e=uf(e.blockedOn))&&fu(e);break}for(var t=e.targetContainers;0<t.length;){var n=us(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&yu.shift()}null!==gu&&Tu(gu)&&(gu=null),null!==vu&&Tu(vu)&&(vu=null),null!==bu&&Tu(bu)&&(bu=null),Eu.forEach(xu),wu.forEach(xu)}function Nu(e,t){e.blockedOn===t&&(e.blockedOn=null,hu||(hu=!0,vi.unstable_scheduleCallback(vi.unstable_NormalPriority,Au)))}function Mu(e){function t(t){return Nu(t,e)}if(0<yu.length){Nu(yu[0],e);for(var n=1;n<yu.length;n++){var r=yu[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==gu&&Nu(gu,e),null!==vu&&Nu(vu,e),null!==bu&&Nu(bu,e),Eu.forEach(t),wu.forEach(t),n=0;n<Su.length;n++)(r=Su[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Su.length&&null===(n=Su[0]).blockedOn;)Pu(n),null===n.blockedOn&&Su.shift()}function Lu(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ru={animationend:Lu("Animation","AnimationEnd"),animationiteration:Lu("Animation","AnimationIteration"),animationstart:Lu("Animation","AnimationStart"),transitionend:Lu("Transition","TransitionEnd")},Iu={},Du={};function Fu(e){if(Iu[e])return Iu[e];if(!Ru[e])return e;var t,n=Ru[e];for(t in n)if(n.hasOwnProperty(t)&&t in Du)return Iu[e]=n[t];return e}Ci&&(Du=document.createElement("div").style,"AnimationEvent"in window||(delete Ru.animationend.animation,delete Ru.animationiteration.animation,delete Ru.animationstart.animation),"TransitionEvent"in window||delete Ru.transitionend.transition);var ju=Fu("animationend"),Hu=Fu("animationiteration"),Bu=Fu("animationstart"),Uu=Fu("transitionend"),zu=new Map,Gu=new Map,Vu=["abort","abort",ju,"animationEnd",Hu,"animationIteration",Bu,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Uu,"transitionEnd","waiting","waiting"];function Wu(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];o="on"+(o[0].toUpperCase()+o.slice(1)),Gu.set(r,t),zu.set(r,o),Si(o,[r])}}(0,vi.unstable_now)();var $u=8;function qu(e){if(0!=(1&e))return $u=15,1;if(0!=(2&e))return $u=14,2;if(0!=(4&e))return $u=13,4;var t=24&e;return 0!==t?($u=12,t):0!=(32&e)?($u=11,32):0!=(t=192&e)?($u=10,t):0!=(256&e)?($u=9,256):0!=(t=3584&e)?($u=8,t):0!=(4096&e)?($u=7,4096):0!=(t=4186112&e)?($u=6,t):0!=(t=62914560&e)?($u=5,t):67108864&e?($u=4,67108864):0!=(134217728&e)?($u=3,134217728):0!=(t=805306368&e)?($u=2,t):0!=(1073741824&e)?($u=1,1073741824):($u=8,e)}function Qu(e,t){var n=e.pendingLanes;if(0===n)return $u=0;var r=0,o=0,a=e.expiredLanes,i=e.suspendedLanes,l=e.pingedLanes;if(0!==a)r=a,o=$u=15;else if(0!=(a=134217727&n)){var u=a&~i;0!==u?(r=qu(u),o=$u):0!=(l&=a)&&(r=qu(l),o=$u)}else 0!=(a=n&~i)?(r=qu(a),o=$u):0!==l&&(r=qu(l),o=$u);if(0===r)return 0;if(r=n&((0>(r=31-Ju(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&i)){if(qu(t),o<=$u)return t;$u=o}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)r|=e[n=31-Ju(t)],t&=~(o=1<<n);return r}function Ku(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Xu(e){return e&-e}function Yu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Zu(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ju(t)]=n}var Ju=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(es(e)/ts|0)|0},es=Math.log,ts=Math.LN2,ns=vi.unstable_UserBlockingPriority,rs=vi.unstable_runWithPriority,os=!0;function as(e,t,n,r){Ql||$l();var o=ls,a=Ql;Ql=!0;try{Wl(o,e,t,n,r)}finally{(Ql=a)||Xl()}}function is(e,t,n,r){rs(ns,ls.bind(null,e,t,n,r))}function ls(e,t,n,r){var o;if(os)if((o=0==(4&t))&&0<yu.length&&-1<_u.indexOf(e))e=Cu(null,e,t,n,r),yu.push(e);else{var a=us(e,t,n,r);if(null===a)o&&Ou(e,r);else{if(o){if(-1<_u.indexOf(e))return e=Cu(a,e,t,n,r),void yu.push(e);if(function(e,t,n,r,o){switch(t){case"focusin":return gu=ku(gu,e,t,n,r,o),!0;case"dragenter":return vu=ku(vu,e,t,n,r,o),!0;case"mouseover":return bu=ku(bu,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Eu.set(a,ku(Eu.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return wu.set(a=o.pointerId,ku(wu.get(a)||null,e,t,n,r,o)),!0}return!1}(a,e,t,n,r))return;Ou(e,r)}Hc(e,t,r,null,n)}}}function us(e,t,n,r){var o=Fl(r);if(null!==(o=lf(o))){var a=lu(o);if(null===a)o=null;else{var i=a.tag;if(13===i){if(null!==(o=uu(a)))return o;o=null}else if(3===i){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;o=null}else a!==o&&(o=null)}}return Hc(e,t,r,o,n),null}var ss=null,cs=null,fs=null;function ds(){if(fs)return fs;var e,t,n=cs,r=n.length,o="value"in ss?ss.value:ss.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return fs=o.slice(e,1<t?1-t:void 0)}function ps(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function ms(){return!0}function hs(){return!1}function ys(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(this[i]=(t=e[i])?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?ms:hs,this.isPropagationStopped=hs,this}return ur(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ms)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ms)},persist:function(){},isPersistent:ms}),t}var gs,vs,bs,Es={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ws=ys(Es),Ss=ur({},Es,{view:0,detail:0}),_s=ys(Ss),Cs=ur({},Ss,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Is,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==bs&&(bs&&"mousemove"===e.type?(gs=e.screenX-bs.screenX,vs=e.screenY-bs.screenY):vs=gs=0,bs=e),gs)},movementY:function(e){return"movementY"in e?e.movementY:vs}}),Os=ys(Cs),ks=ys(ur({},Cs,{dataTransfer:0})),Ps=ys(ur({},Ss,{relatedTarget:0})),Ts=ys(ur({},Es,{animationName:0,elapsedTime:0,pseudoElement:0})),xs=ys(ur({},Es,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),As=ys(ur({},Es,{data:0})),Ns={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ms={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Ls={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Rs(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Ls[e])&&!!t[e]}function Is(){return Rs}var Ds=ys(ur({},Ss,{key:function(e){if(e.key){var t=Ns[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=ps(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Ms[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Is,charCode:function(e){return"keypress"===e.type?ps(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ps(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Fs=ys(ur({},Cs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),js=ys(ur({},Ss,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Is})),Hs=ys(ur({},Es,{propertyName:0,elapsedTime:0,pseudoElement:0})),Bs=ys(ur({},Cs,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Us=[9,13,27,32],zs=Ci&&"CompositionEvent"in window,Gs=null;Ci&&"documentMode"in document&&(Gs=document.documentMode);var Vs=Ci&&"TextEvent"in window&&!Gs,Ws=Ci&&(!zs||Gs&&8<Gs&&11>=Gs),$s=String.fromCharCode(32),qs=!1;function Qs(e,t){switch(e){case"keyup":return-1!==Us.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ks(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Xs=!1,Ys={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Zs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Ys[e.type]:"textarea"===t}function Js(e,t,n,r){zl(r),0<(t=Uc(t,"onChange")).length&&(n=new ws("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ec=null,tc=null;function nc(e){Lc(e,0)}function rc(e){if(cl(sf(e)))return e}function oc(e,t){if("change"===e)return t}var ac=!1;if(Ci){var ic;if(Ci){var lc="oninput"in document;if(!lc){var uc=document.createElement("div");uc.setAttribute("oninput","return;"),lc="function"==typeof uc.oninput}ic=lc}else ic=!1;ac=ic&&(!document.documentMode||9<document.documentMode)}function sc(){ec&&(ec.detachEvent("onpropertychange",cc),tc=ec=null)}function cc(e){if("value"===e.propertyName&&rc(tc)){var t=[];if(Js(t,tc,e,Fl(e)),e=nc,Ql)e(t);else{Ql=!0;try{Vl(e,t)}finally{Ql=!1,Xl()}}}}function fc(e,t,n){"focusin"===e?(sc(),tc=n,(ec=t).attachEvent("onpropertychange",cc)):"focusout"===e&&sc()}function dc(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return rc(tc)}function pc(e,t){if("click"===e)return rc(t)}function mc(e,t){if("input"===e||"change"===e)return rc(t)}var hc="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},yc=Object.prototype.hasOwnProperty;function gc(e,t){if(hc(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!yc.call(t,n[r])||!hc(e[n[r]],t[n[r]]))return!1;return!0}function vc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function bc(e,t){var n,r=vc(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=vc(r)}}function Ec(){for(var e=window,t=fl();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=fl((e=t.contentWindow).document)}return t}function wc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var Sc=Ci&&"documentMode"in document&&11>=document.documentMode,_c=null,Cc=null,Oc=null,kc=!1;function Pc(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;kc||null==_c||_c!==fl(r)||(r="selectionStart"in(r=_c)&&wc(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Oc&&gc(Oc,r)||(Oc=r,0<(r=Uc(Cc,"onSelect")).length&&(t=new ws("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=_c)))}Wu("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Wu("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Wu(Vu,2);for(var Tc="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),xc=0;xc<Tc.length;xc++)Gu.set(Tc[xc],0);_i("onMouseEnter",["mouseout","mouseover"]),_i("onMouseLeave",["mouseout","mouseover"]),_i("onPointerEnter",["pointerout","pointerover"]),_i("onPointerLeave",["pointerout","pointerover"]),Si("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Si("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Si("onBeforeInput",["compositionend","keypress","textInput","paste"]),Si("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Si("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Si("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ac="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Nc=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ac));function Mc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,i,l,u){if(iu.apply(this,arguments),tu){if(!tu)throw Error(bi(198));var s=nu;tu=!1,nu=null,ru||(ru=!0,ou=s)}}(r,t,void 0,e),e.currentTarget=null}function Lc(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],u=l.instance,s=l.currentTarget;if(l=l.listener,u!==a&&o.isPropagationStopped())break e;Mc(o,l,s),a=u}else for(i=0;i<r.length;i++){if(u=(l=r[i]).instance,s=l.currentTarget,l=l.listener,u!==a&&o.isPropagationStopped())break e;Mc(o,l,s),a=u}}}if(ru)throw e=ou,ru=!1,ou=null,e}function Rc(e,t){var n=ff(t),r=e+"__bubble";n.has(r)||(jc(t,e,2,!1),n.add(r))}var Ic="_reactListening"+Math.random().toString(36).slice(2);function Dc(e){e[Ic]||(e[Ic]=!0,Ei.forEach(function(t){Nc.has(t)||Fc(t,!1,e,null),Fc(t,!0,e,null)}))}function Fc(e,t,n,r){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,a=n;if("selectionchange"===e&&9!==n.nodeType&&(a=n.ownerDocument),null!==r&&!t&&Nc.has(e)){if("scroll"!==e)return;o|=2,a=r}var i=ff(a),l=e+"__"+(t?"capture":"bubble");i.has(l)||(t&&(o|=4),jc(a,e,o,t),i.add(l))}function jc(e,t,n,r){var o=Gu.get(t);switch(void 0===o?2:o){case 0:o=as;break;case 1:o=is;break;default:o=ls}n=o.bind(null,t,n,e),o=void 0,!Zl||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),e.addEventListener(t,n,r?void 0===o||{capture:!0,passive:o}:void 0!==o&&{passive:o})}function Hc(e,t,n,r,o){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var u=i.tag;if((3===u||4===u)&&((u=i.stateNode.containerInfo)===o||8===u.nodeType&&u.parentNode===o))return;i=i.return}for(;null!==l;){if(null===(i=lf(l)))return;if(5===(u=i.tag)||6===u){r=a=i;continue e}l=l.parentNode}}r=r.return}!function(e,t,n){if(Kl)return e();Kl=!0;try{ql(e,void 0,void 0)}finally{Kl=!1,Xl()}}(function(){var r=a,o=Fl(n),i=[];e:{var l=zu.get(e);if(void 0!==l){var u=ws,s=e;switch(e){case"keypress":if(0===ps(n))break e;case"keydown":case"keyup":u=Ds;break;case"focusin":s="focus",u=Ps;break;case"focusout":s="blur",u=Ps;break;case"beforeblur":case"afterblur":u=Ps;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=Os;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=ks;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=js;break;case ju:case Hu:case Bu:u=Ts;break;case Uu:u=Hs;break;case"scroll":u=_s;break;case"wheel":u=Bs;break;case"copy":case"cut":case"paste":u=xs;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Fs}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==l?l+"Capture":null:l;c=[];for(var p,m=r;null!==m;){var h=(p=m).stateNode;if(5===p.tag&&null!==h&&(p=h,null!==d&&null!=(h=Yl(m,d))&&c.push(Bc(m,h,p))),f)break;m=m.return}0<c.length&&(l=new u(l,s,null,n,o),i.push({event:l,listeners:c}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(s=n.relatedTarget||n.fromElement)||!lf(s)&&!s[of])&&(u||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,u?(u=r,null!==(s=(s=n.relatedTarget||n.toElement)?lf(s):null)&&(s!==(f=lu(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(u=null,s=r),u!==s)){if(c=Os,h="onMouseLeave",d="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(c=Fs,h="onPointerLeave",d="onPointerEnter",m="pointer"),f=null==u?l:sf(u),p=null==s?l:sf(s),(l=new c(h,m+"leave",u,n,o)).target=f,l.relatedTarget=p,h=null,lf(o)===r&&((c=new c(d,m+"enter",s,n,o)).target=p,c.relatedTarget=f,h=c),f=h,u&&s)e:{for(d=s,m=0,p=c=u;p;p=zc(p))m++;for(p=0,h=d;h;h=zc(h))p++;for(;0<m-p;)c=zc(c),m--;for(;0<p-m;)d=zc(d),p--;for(;m--;){if(c===d||null!==d&&c===d.alternate)break e;c=zc(c),d=zc(d)}c=null}else c=null;null!==u&&Gc(i,l,u,c,!1),null!==s&&null!==f&&Gc(i,f,s,c,!0)}if("select"===(u=(l=r?sf(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===u&&"file"===l.type)var y=oc;else if(Zs(l))if(ac)y=mc;else{y=dc;var g=fc}else(u=l.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(y=pc);switch(y&&(y=y(e,r))?Js(i,y,n,o):(g&&g(e,l,r),"focusout"===e&&(g=l._wrapperState)&&g.controlled&&"number"===l.type&&gl(l,"number",l.value)),g=r?sf(r):window,e){case"focusin":(Zs(g)||"true"===g.contentEditable)&&(_c=g,Cc=r,Oc=null);break;case"focusout":Oc=Cc=_c=null;break;case"mousedown":kc=!0;break;case"contextmenu":case"mouseup":case"dragend":kc=!1,Pc(i,n,o);break;case"selectionchange":if(Sc)break;case"keydown":case"keyup":Pc(i,n,o)}var v;if(zs)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Xs?Qs(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Ws&&"ko"!==n.locale&&(Xs||"onCompositionStart"!==b?"onCompositionEnd"===b&&Xs&&(v=ds()):(cs="value"in(ss=o)?ss.value:ss.textContent,Xs=!0)),0<(g=Uc(r,b)).length&&(b=new As(b,e,null,n,o),i.push({event:b,listeners:g}),(v||null!==(v=Ks(n)))&&(b.data=v))),(v=Vs?function(e,t){switch(e){case"compositionend":return Ks(t);case"keypress":return 32!==t.which?null:(qs=!0,$s);case"textInput":return(e=t.data)===$s&&qs?null:e;default:return null}}(e,n):function(e,t){if(Xs)return"compositionend"===e||!zs&&Qs(e,t)?(e=ds(),fs=cs=ss=null,Xs=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ws&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&0<(r=Uc(r,"onBeforeInput")).length&&(o=new As("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=v)}Lc(i,t)})}function Bc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Uc(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=Yl(e,n))&&r.unshift(Bc(e,a,o)),null!=(a=Yl(e,t))&&r.push(Bc(e,a,o))),e=e.return}return r}function zc(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gc(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var l=n,u=l.alternate,s=l.stateNode;if(null!==u&&u===r)break;5===l.tag&&null!==s&&(l=s,o?null!=(u=Yl(n,a))&&i.unshift(Bc(n,u,l)):o||null!=(u=Yl(n,a))&&i.push(Bc(n,u,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}function Vc(){}var Wc=null,$c=null;function qc(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Qc(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Kc="function"==typeof setTimeout?setTimeout:void 0,Xc="function"==typeof clearTimeout?clearTimeout:void 0;function Yc(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function Zc(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Jc(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var ef=0,tf=Math.random().toString(36).slice(2),nf="__reactFiber$"+tf,rf="__reactProps$"+tf,of="__reactContainer$"+tf,af="__reactEvents$"+tf;function lf(e){var t=e[nf];if(t)return t;for(var n=e.parentNode;n;){if(t=n[of]||n[nf]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Jc(e);null!==e;){if(n=e[nf])return n;e=Jc(e)}return t}n=(e=n).parentNode}return null}function uf(e){return!(e=e[nf]||e[of])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function sf(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(bi(33))}function cf(e){return e[rf]||null}function ff(e){var t=e[af];return void 0===t&&(t=e[af]=new Set),t}var df=[],pf=-1;function mf(e){return{current:e}}function hf(e){0>pf||(e.current=df[pf],df[pf]=null,pf--)}function yf(e,t){pf++,df[pf]=e.current,e.current=t}var gf={},vf=mf(gf),bf=mf(!1),Ef=gf;function wf(e,t){var n=e.type.contextTypes;if(!n)return gf;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Sf(e){return null!=e.childContextTypes}function _f(){hf(bf),hf(vf)}function Cf(e,t,n){if(vf.current!==gf)throw Error(bi(168));yf(vf,t),yf(bf,n)}function Of(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(bi(108,il(t)||"Unknown",o));return ur({},n,r)}function kf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gf,Ef=vf.current,yf(vf,e),yf(bf,bf.current),!0}function Pf(e,t,n){var r=e.stateNode;if(!r)throw Error(bi(169));n?(e=Of(e,t,Ef),r.__reactInternalMemoizedMergedChildContext=e,hf(bf),hf(vf),yf(vf,e)):hf(bf),yf(bf,n)}var Tf=null,xf=null,Af=vi.unstable_runWithPriority,Nf=vi.unstable_scheduleCallback,Mf=vi.unstable_cancelCallback,Lf=vi.unstable_shouldYield,Rf=vi.unstable_requestPaint,If=vi.unstable_now,Df=vi.unstable_getCurrentPriorityLevel,Ff=vi.unstable_ImmediatePriority,jf=vi.unstable_UserBlockingPriority,Hf=vi.unstable_NormalPriority,Bf=vi.unstable_LowPriority,Uf=vi.unstable_IdlePriority,zf={},Gf=void 0!==Rf?Rf:function(){},Vf=null,Wf=null,$f=!1,qf=If(),Qf=1e4>qf?If:function(){return If()-qf};function Kf(){switch(Df()){case Ff:return 99;case jf:return 98;case Hf:return 97;case Bf:return 96;case Uf:return 95;default:throw Error(bi(332))}}function Xf(e){switch(e){case 99:return Ff;case 98:return jf;case 97:return Hf;case 96:return Bf;case 95:return Uf;default:throw Error(bi(332))}}function Yf(e,t){return e=Xf(e),Af(e,t)}function Zf(e,t,n){return e=Xf(e),Nf(e,t,n)}function Jf(){if(null!==Wf){var e=Wf;Wf=null,Mf(e)}ed()}function ed(){if(!$f&&null!==Vf){$f=!0;var e=0;try{var t=Vf;Yf(99,function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}}),Vf=null}catch(t){throw null!==Vf&&(Vf=Vf.slice(e+1)),Nf(Ff,Jf),t}finally{$f=!1}}}var td=Ri.ReactCurrentBatchConfig;function nd(e,t){if(e&&e.defaultProps){for(var n in t=ur({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var rd=mf(null),od=null,ad=null,id=null;function ld(){id=ad=od=null}function ud(e){var t=rd.current;hf(rd),e.type._context._currentValue=t}function sd(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function cd(e,t){od=e,id=ad=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Up=!0),e.firstContext=null)}function fd(e,t){if(id!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(id=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ad){if(null===od)throw Error(bi(308));ad=t,od.dependencies={lanes:0,firstContext:t,responders:null}}else ad=ad.next=t;return e._currentValue}var dd=!1;function pd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function md(e,t){t.updateQueue===(e=e.updateQueue)&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function hd(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function yd(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function gd(e,t){var n=e.updateQueue,r=e.alternate;if(null===r||n!==(r=r.updateQueue))null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t;else{var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;e.updateQueue=n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects}}}function vd(e,t,n,r){var o=e.updateQueue;dd=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var u=l,s=u.next;u.next=null,null===i?a=s:i.next=s,i=u;var c=e.alternate;if(null!==c){var f=(c=c.updateQueue).lastBaseUpdate;f!==i&&(null===f?c.firstBaseUpdate=s:f.next=s,c.lastBaseUpdate=u)}}if(null!==a){for(f=o.baseState,i=0,c=s=u=null;;){var d=a.eventTime;if((r&(l=a.lane))===l){null!==c&&(c=c.next={eventTime:d,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var p=e,m=a;switch(l=t,d=n,m.tag){case 1:if("function"==typeof(p=m.payload)){f=p.call(d,f,l);break e}f=p;break e;case 3:p.flags=-4097&p.flags|64;case 0:if(null==(l="function"==typeof(p=m.payload)?p.call(d,f,l):p))break e;f=ur({},f,l);break e;case 2:dd=!0}}null!==a.callback&&(e.flags|=32,null===(l=o.effects)?o.effects=[a]:l.push(a))}else d={eventTime:d,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===c?(s=c=d,u=f):c=c.next=d,i|=l;if(null===(a=a.next)){if(null===(l=o.shared.pending))break;a=l.next,l.next=null,o.lastBaseUpdate=l,o.shared.pending=null}}null===c&&(u=f),o.baseState=u,o.firstBaseUpdate=s,o.lastBaseUpdate=c,Bm|=i,e.lanes=i,e.memoizedState=f}}function bd(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(bi(191,o));o.call(r)}}}var Ed=(new cr.Component).refs;function wd(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:ur({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Sd={isMounted:function(e){return!!(e=e._reactInternals)&&lu(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=sh(),o=ch(e),a=hd(r,o);a.payload=t,null!=n&&(a.callback=n),yd(e,a),fh(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=sh(),o=ch(e),a=hd(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),yd(e,a),fh(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=sh(),r=ch(e),o=hd(n,r);o.tag=2,null!=t&&(o.callback=t),yd(e,o),fh(e,r,n)}};function _d(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!(t.prototype&&t.prototype.isPureReactComponent&&gc(n,r)&&gc(o,a))}function Cd(e,t,n){var r=!1,o=gf,a=t.contextType;return"object"==typeof a&&null!==a?a=fd(a):(o=Sf(t)?Ef:vf.current,a=(r=null!=(r=t.contextTypes))?wf(e,o):gf),t=new t(n,a),e.memoizedState=null!=t.state?t.state:null,t.updater=Sd,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function Od(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Sd.enqueueReplaceState(t,t.state,null)}function kd(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Ed,pd(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=fd(a):(a=Sf(t)?Ef:vf.current,o.context=wf(e,a)),vd(e,n,o,r),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(wd(e,t,a,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Sd.enqueueReplaceState(o,o.state,null),vd(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4)}var Pd=Array.isArray;function Td(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(bi(309));var r=n.stateNode}if(!r)throw Error(bi(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=r.refs;t===Ed&&(t=r.refs={}),null===e?delete t[o]:t[o]=e})._stringRef=o,t)}if("string"!=typeof e)throw Error(bi(284));if(!n._owner)throw Error(bi(290,e))}return e}function xd(e,t){if("textarea"!==e.type)throw Error(bi(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Ad(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)e.set(null!==t.key?t.key:t.index,t),t=t.sibling;return e}function o(e,t){return(e=Gh(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function i(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=qh(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=Td(e,t,n),r.return=e,r):((r=Vh(n.type,n.key,n.props,null,e.mode,r)).ref=Td(e,t,n),r.return=e,r)}function s(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Qh(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function c(e,t,n,r,a){return null===t||7!==t.tag?((t=Wh(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=qh(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Ii:return(n=Vh(t.type,t.key,t.props,null,e.mode,n)).ref=Td(e,null,t),n.return=e,n;case Di:return(t=Qh(t,e.mode,n)).return=e,t}if(Pd(t)||tl(t))return(t=Wh(t,e.mode,n,null)).return=e,t;xd(e,t)}return null}function d(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Ii:return n.key===o?n.type===Fi?c(e,t,n.props.children,r,o):u(e,t,n,r):null;case Di:return n.key===o?s(e,t,n,r):null}if(Pd(n)||tl(n))return null!==o?null:c(e,t,n,r,null);xd(e,n)}return null}function p(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Ii:return e=e.get(null===r.key?n:r.key)||null,r.type===Fi?c(t,e,r.props.children,o,r.key):u(t,e,r,o);case Di:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(Pd(r)||tl(r))return c(t,e=e.get(n)||null,r,o,null);xd(t,r)}return null}function m(o,i,l,u){for(var s=null,c=null,m=i,h=i=0,y=null;null!==m&&h<l.length;h++){m.index>h?(y=m,m=null):y=m.sibling;var g=d(o,m,l[h],u);if(null===g){null===m&&(m=y);break}e&&m&&null===g.alternate&&t(o,m),i=a(g,i,h),null===c?s=g:c.sibling=g,c=g,m=y}if(h===l.length)return n(o,m),s;if(null===m){for(;h<l.length;h++)null!==(m=f(o,l[h],u))&&(i=a(m,i,h),null===c?s=m:c.sibling=m,c=m);return s}for(m=r(o,m);h<l.length;h++)null!==(y=p(m,o,h,l[h],u))&&(e&&null!==y.alternate&&m.delete(null===y.key?h:y.key),i=a(y,i,h),null===c?s=y:c.sibling=y,c=y);return e&&m.forEach(function(e){return t(o,e)}),s}function h(o,i,l,u){var s=tl(l);if("function"!=typeof s)throw Error(bi(150));if(null==(l=s.call(l)))throw Error(bi(151));for(var c=s=null,m=i,h=i=0,y=null,g=l.next();null!==m&&!g.done;h++,g=l.next()){m.index>h?(y=m,m=null):y=m.sibling;var v=d(o,m,g.value,u);if(null===v){null===m&&(m=y);break}e&&m&&null===v.alternate&&t(o,m),i=a(v,i,h),null===c?s=v:c.sibling=v,c=v,m=y}if(g.done)return n(o,m),s;if(null===m){for(;!g.done;h++,g=l.next())null!==(g=f(o,g.value,u))&&(i=a(g,i,h),null===c?s=g:c.sibling=g,c=g);return s}for(m=r(o,m);!g.done;h++,g=l.next())null!==(g=p(m,o,h,g.value,u))&&(e&&null!==g.alternate&&m.delete(null===g.key?h:g.key),i=a(g,i,h),null===c?s=g:c.sibling=g,c=g);return e&&m.forEach(function(e){return t(o,e)}),s}return function(e,r,a,l){var u="object"==typeof a&&null!==a&&a.type===Fi&&null===a.key;u&&(a=a.props.children);var s="object"==typeof a&&null!==a;if(s)switch(a.$$typeof){case Ii:e:{for(s=a.key,u=r;null!==u;){if(u.key===s){switch(u.tag){case 7:if(a.type===Fi){n(e,u.sibling),(r=o(u,a.props.children)).return=e,e=r;break e}break;default:if(u.elementType===a.type){n(e,u.sibling),(r=o(u,a.props)).ref=Td(e,u,a),r.return=e,e=r;break e}}n(e,u);break}t(e,u),u=u.sibling}a.type===Fi?((r=Wh(a.props.children,e.mode,l,a.key)).return=e,e=r):((l=Vh(a.type,a.key,a.props,null,e.mode,l)).ref=Td(e,r,a),l.return=e,e=l)}return i(e);case Di:e:{for(u=a.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=o(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Qh(a,e.mode,l)).return=e,e=r}return i(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,a)).return=e,e=r):(n(e,r),(r=qh(a,e.mode,l)).return=e,e=r),i(e);if(Pd(a))return m(e,r,a,l);if(tl(a))return h(e,r,a,l);if(s&&xd(e,a),void 0===a&&!u)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(bi(152,il(e.type)||"Component"))}return n(e,r)}}var Nd=Ad(!0),Md=Ad(!1),Ld={},Rd=mf(Ld),Id=mf(Ld),Dd=mf(Ld);function Fd(e){if(e===Ld)throw Error(bi(174));return e}function jd(e,t){switch(yf(Dd,t),yf(Id,e),yf(Rd,Ld),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:kl(null,"");break;default:t=kl(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}hf(Rd),yf(Rd,t)}function Hd(){hf(Rd),hf(Id),hf(Dd)}function Bd(e){Fd(Dd.current);var t=Fd(Rd.current),n=kl(t,e.type);t!==n&&(yf(Id,e),yf(Rd,n))}function Ud(e){Id.current===e&&(hf(Rd),hf(Id))}var zd=mf(0);function Gd(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Vd=null,Wd=null,$d=!1;function qd(e,t){var n=Uh(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Qd(e,t){switch(e.tag){case 5:return null!==(t=1!==t.nodeType||e.type.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Kd(e){if($d){var t=Wd;if(t){var n=t;if(!Qd(e,t)){if(!(t=Zc(n.nextSibling))||!Qd(e,t))return e.flags=-1025&e.flags|2,$d=!1,void(Vd=e);qd(Vd,n)}Vd=e,Wd=Zc(t.firstChild)}else e.flags=-1025&e.flags|2,$d=!1,Vd=e}}function Xd(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Vd=e}function Yd(e){if(e!==Vd)return!1;if(!$d)return Xd(e),$d=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Qc(t,e.memoizedProps))for(t=Wd;t;)qd(e,t),t=Zc(t.nextSibling);if(Xd(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(bi(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Wd=Zc(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Wd=null}}else Wd=Vd?Zc(e.stateNode.nextSibling):null;return!0}function Zd(){Wd=Vd=null,$d=!1}var Jd=[];function ep(){for(var e=0;e<Jd.length;e++)Jd[e]._workInProgressVersionPrimary=null;Jd.length=0}var tp=Ri.ReactCurrentDispatcher,np=Ri.ReactCurrentBatchConfig,rp=0,op=null,ap=null,ip=null,lp=!1,up=!1;function sp(){throw Error(bi(321))}function cp(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!hc(e[n],t[n]))return!1;return!0}function fp(e,t,n,r,o,a){if(rp=a,op=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,tp.current=null===e||null===e.memoizedState?Fp:jp,e=n(r,o),up){a=0;do{if(up=!1,!(25>a))throw Error(bi(301));a+=1,ip=ap=null,t.updateQueue=null,tp.current=Hp,e=n(r,o)}while(up)}if(tp.current=Dp,t=null!==ap&&null!==ap.next,rp=0,ip=ap=op=null,lp=!1,t)throw Error(bi(300));return e}function dp(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ip?op.memoizedState=ip=e:ip=ip.next=e,ip}function pp(){if(null===ap){var e=op.alternate;e=null!==e?e.memoizedState:null}else e=ap.next;var t=null===ip?op.memoizedState:ip.next;if(null!==t)ip=t,ap=e;else{if(null===e)throw Error(bi(310));e={memoizedState:(ap=e).memoizedState,baseState:ap.baseState,baseQueue:ap.baseQueue,queue:ap.queue,next:null},null===ip?op.memoizedState=ip=e:ip=ip.next=e}return ip}function mp(e,t){return"function"==typeof t?t(e):t}function hp(e){var t=pp(),n=t.queue;if(null===n)throw Error(bi(311));n.lastRenderedReducer=e;var r=ap,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var i=o.next;o.next=a.next,a.next=i}r.baseQueue=o=a,n.pending=null}if(null!==o){r=r.baseState;var l=i=a=null,u=o=o.next;do{var s=u.lane;if((rp&s)===s)null!==l&&(l=l.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var c={lane:s,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===l?(i=l=c,a=r):l=l.next=c,op.lanes|=s,Bm|=s}u=u.next}while(null!==u&&u!==o);null===l?a=r:l.next=i,hc(r,t.memoizedState)||(Up=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function yp(e){var t=pp(),n=t.queue;if(null===n)throw Error(bi(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var i=o=o.next;do{a=e(a,i.action),i=i.next}while(i!==o);hc(a,t.memoizedState)||(Up=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function gp(e,t,n){var r=t._getVersion;r=r(t._source);var o=t._workInProgressVersionPrimary;if(null!==o?e=o===r:(e=(rp&(e=e.mutableReadLanes))===e)&&(t._workInProgressVersionPrimary=r,Jd.push(t)),e)return n(t._source);throw Jd.push(t),Error(bi(350))}function vp(e,t,n,r){var o=Mm;if(null===o)throw Error(bi(349));var a=t._getVersion,i=a(t._source),l=tp.current,u=l.useState(function(){return gp(o,t,n)}),s=u[1],c=u[0];u=ip;var f=e.memoizedState,d=f.refs,p=d.getSnapshot,m=f.source;f=f.subscribe;var h=op;return e.memoizedState={refs:d,source:t,subscribe:r},l.useEffect(function(){d.getSnapshot=n,d.setSnapshot=s;var e=a(t._source);if(!hc(i,e)){e=n(t._source),hc(c,e)||(s(e),e=ch(h),o.mutableReadLanes|=e&o.pendingLanes),o.entangledLanes|=e=o.mutableReadLanes;for(var r=o.entanglements,l=e;0<l;){var u=31-Ju(l),f=1<<u;r[u]|=e,l&=~f}}},[n,t,r]),l.useEffect(function(){return r(t._source,function(){var e=d.getSnapshot,n=d.setSnapshot;try{n(e(t._source));var r=ch(h);o.mutableReadLanes|=r&o.pendingLanes}catch(e){n(function(){throw e})}})},[t,r]),hc(p,n)&&hc(m,t)&&hc(f,r)||((e={pending:null,dispatch:null,lastRenderedReducer:mp,lastRenderedState:c}).dispatch=s=Ip.bind(null,op,e),u.queue=e,u.baseQueue=null,c=gp(o,t,n),u.memoizedState=u.baseState=c),c}function bp(e,t,n){return vp(pp(),e,t,n)}function Ep(e){var t=dp();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:mp,lastRenderedState:e}).dispatch=Ip.bind(null,op,e),[t.memoizedState,e]}function wp(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=op.updateQueue)?(op.updateQueue=t={lastEffect:null},t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Sp(e){return dp().memoizedState={current:e}}function _p(){return pp().memoizedState}function Cp(e,t,n,r){var o=dp();op.flags|=e,o.memoizedState=wp(1|t,n,void 0,void 0===r?null:r)}function Op(e,t,n,r){var o=pp();r=void 0===r?null:r;var a=void 0;if(null!==ap){var i=ap.memoizedState;if(a=i.destroy,null!==r&&cp(r,i.deps))return void wp(t,n,a,r)}op.flags|=e,o.memoizedState=wp(1|t,n,a,r)}function kp(e,t){return Cp(516,4,e,t)}function Pp(e,t){return Op(516,4,e,t)}function Tp(e,t){return Op(4,2,e,t)}function xp(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ap(e,t,n){return n=null!=n?n.concat([e]):null,Op(4,2,xp.bind(null,t,e),n)}function Np(){}function Mp(e,t){var n=pp();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&cp(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Lp(e,t){var n=pp();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&cp(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Rp(e,t){var n=Kf();Yf(98>n?98:n,function(){e(!0)}),Yf(97<n?97:n,function(){var n=np.transition;np.transition=1;try{e(!1),t()}finally{np.transition=n}})}function Ip(e,t,n){var r=sh(),o=ch(e),a={lane:o,action:n,eagerReducer:null,eagerState:null,next:null},i=t.pending;if(null===i?a.next=a:(a.next=i.next,i.next=a),t.pending=a,i=e.alternate,e===op||null!==i&&i===op)up=lp=!0;else{if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var l=t.lastRenderedState,u=i(l,n);if(a.eagerReducer=i,a.eagerState=u,hc(u,l))return}catch(e){}fh(e,o,r)}}var Dp={readContext:fd,useCallback:sp,useContext:sp,useEffect:sp,useImperativeHandle:sp,useLayoutEffect:sp,useMemo:sp,useReducer:sp,useRef:sp,useState:sp,useDebugValue:sp,useDeferredValue:sp,useTransition:sp,useMutableSource:sp,useOpaqueIdentifier:sp,unstable_isNewReconciler:!1},Fp={readContext:fd,useCallback:function(e,t){return dp().memoizedState=[e,void 0===t?null:t],e},useContext:fd,useEffect:kp,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Cp(4,2,xp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Cp(4,2,e,t)},useMemo:function(e,t){var n=dp();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=dp();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Ip.bind(null,op,e),[r.memoizedState,e]},useRef:Sp,useState:Ep,useDebugValue:Np,useDeferredValue:function(e){var t=Ep(e),n=t[0],r=t[1];return kp(function(){var t=np.transition;np.transition=1;try{r(e)}finally{np.transition=t}},[e]),n},useTransition:function(){var e=Ep(!1),t=e[0];return Sp(e=Rp.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=dp();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},vp(r,e,t,n)},useOpaqueIdentifier:function(){if($d){var e=!1,t=function(e){return{$$typeof:Qi,toString:e,valueOf:e}}(function(){throw e||(e=!0,n("r:"+(ef++).toString(36))),Error(bi(355))}),n=Ep(t)[1];return 0==(2&op.mode)&&(op.flags|=516,wp(5,function(){n("r:"+(ef++).toString(36))},void 0,null)),t}return Ep(t="r:"+(ef++).toString(36)),t},unstable_isNewReconciler:!1},jp={readContext:fd,useCallback:Mp,useContext:fd,useEffect:Pp,useImperativeHandle:Ap,useLayoutEffect:Tp,useMemo:Lp,useReducer:hp,useRef:_p,useState:function(){return hp(mp)},useDebugValue:Np,useDeferredValue:function(e){var t=hp(mp),n=t[0],r=t[1];return Pp(function(){var t=np.transition;np.transition=1;try{r(e)}finally{np.transition=t}},[e]),n},useTransition:function(){var e=hp(mp)[0];return[_p().current,e]},useMutableSource:bp,useOpaqueIdentifier:function(){return hp(mp)[0]},unstable_isNewReconciler:!1},Hp={readContext:fd,useCallback:Mp,useContext:fd,useEffect:Pp,useImperativeHandle:Ap,useLayoutEffect:Tp,useMemo:Lp,useReducer:yp,useRef:_p,useState:function(){return yp(mp)},useDebugValue:Np,useDeferredValue:function(e){var t=yp(mp),n=t[0],r=t[1];return Pp(function(){var t=np.transition;np.transition=1;try{r(e)}finally{np.transition=t}},[e]),n},useTransition:function(){var e=yp(mp)[0];return[_p().current,e]},useMutableSource:bp,useOpaqueIdentifier:function(){return yp(mp)[0]},unstable_isNewReconciler:!1},Bp=Ri.ReactCurrentOwner,Up=!1;function zp(e,t,n,r){t.child=null===e?Md(t,null,n,r):Nd(t,e.child,n,r)}function Gp(e,t,n,r,o){n=n.render;var a=t.ref;return cd(t,o),r=fp(e,t,n,r,a,o),null===e||Up?(t.flags|=1,zp(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,lm(e,t,o))}function Vp(e,t,n,r,o,a){if(null===e){var i=n.type;return"function"!=typeof i||zh(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Vh(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Wp(e,t,i,r,o,a))}return i=e.child,0==(o&a)&&(n=null!==(n=n.compare)?n:gc)(o=i.memoizedProps,r)&&e.ref===t.ref?lm(e,t,a):(t.flags|=1,(e=Gh(i,r)).ref=t.ref,e.return=t,t.child=e)}function Wp(e,t,n,r,o,a){if(null!==e&&gc(e.memoizedProps,r)&&e.ref===t.ref){if(Up=!1,0==(a&o))return t.lanes=e.lanes,lm(e,t,a);0!=(16384&e.flags)&&(Up=!0)}return Qp(e,t,n,r,a)}function $p(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},bh(0,n);else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},bh(0,e),null;t.memoizedState={baseLanes:0},bh(0,null!==a?a.baseLanes:n)}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,bh(0,r);return zp(e,t,o,n),t.child}function qp(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Qp(e,t,n,r,o){var a=Sf(n)?Ef:vf.current;return a=wf(t,a),cd(t,o),n=fp(e,t,n,r,a,o),null===e||Up?(t.flags|=1,zp(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,lm(e,t,o))}function Kp(e,t,n,r,o){if(Sf(n)){var a=!0;kf(t)}else a=!1;if(cd(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),Cd(t,n,r),kd(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var u=i.context,s=n.contextType;s="object"==typeof s&&null!==s?fd(s):wf(t,s=Sf(n)?Ef:vf.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;f||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==r||u!==s)&&Od(t,i,r,s),dd=!1;var d=t.memoizedState;i.state=d,vd(t,r,i,o),u=t.memoizedState,l!==r||d!==u||bf.current||dd?("function"==typeof c&&(wd(t,n,c,r),u=t.memoizedState),(l=dd||_d(t,n,l,r,d,u,s))?(f||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4)):("function"==typeof i.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=s,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4),r=!1)}else{i=t.stateNode,md(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:nd(t.type,l),i.props=s,f=t.pendingProps,d=i.context,u="object"==typeof(u=n.contextType)&&null!==u?fd(u):wf(t,u=Sf(n)?Ef:vf.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==f||d!==u)&&Od(t,i,r,u),dd=!1,i.state=d=t.memoizedState,vd(t,r,i,o);var m=t.memoizedState;l!==f||d!==m||bf.current||dd?("function"==typeof p&&(wd(t,n,p,r),m=t.memoizedState),(s=dd||_d(t,n,s,r,d,m,u))?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,m,u),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,m,u)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=m),i.props=r,i.state=m,i.context=u,r=s):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Xp(e,t,n,r,a,o)}function Xp(e,t,n,r,o,a){qp(e,t);var i=0!=(64&t.flags);if(!r&&!i)return o&&Pf(t,n,!1),lm(e,t,a);r=t.stateNode,Bp.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Nd(t,e.child,null,a),t.child=Nd(t,null,l,a)):zp(e,t,l,a),t.memoizedState=r.state,o&&Pf(t,n,!0),t.child}function Yp(e){var t=e.stateNode;t.pendingContext?Cf(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Cf(0,t.context,!1),jd(e,t.containerInfo)}var Zp,Jp,em,tm={dehydrated:null,retryLane:0};function nm(e,t,n){var r,o=t.pendingProps,a=zd.current,i=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(i=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),yf(zd,1&a),null===e?(void 0!==o.fallback&&Kd(t),e=o.children,a=o.fallback,i?(e=rm(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=tm,e):"number"==typeof o.unstable_expectedLoadTime?(e=rm(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=tm,t.lanes=33554432,e):((n=$h({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):i?(o=function(e,t,n,r,o){var a=t.mode,i=e.child;e=i.sibling;var l={mode:"hidden",children:n};return 0==(2&a)&&t.child!==i?((n=t.child).childLanes=0,n.pendingProps=l,null!==(i=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=i,i.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Gh(i,l),null!==e?r=Gh(e,r):(r=Wh(r,a,o,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}(e,t,o.children,o.fallback,n),(i=t.child).memoizedState=null===(a=e.child.memoizedState)?{baseLanes:n}:{baseLanes:a.baseLanes|n},i.childLanes=e.childLanes&~n,t.memoizedState=tm,o):(n=function(e,t,n,r){var o=e.child;return e=o.sibling,n=Gh(o,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}(e,t,o.children,n),t.memoizedState=null,n)}function rm(e,t,n,r){var o=e.mode,a=e.child;return t={mode:"hidden",children:t},0==(2&o)&&null!==a?(a.childLanes=0,a.pendingProps=t):a=$h(t,o,0,null),n=Wh(n,o,r,null),a.return=e,n.return=e,a.sibling=n,e.child=a,n}function om(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),sd(e.return,t)}function am(e,t,n,r,o,a){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,lastEffect:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o,i.lastEffect=a)}function im(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(zp(e,t,r.children,n),0!=(2&(r=zd.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&om(e,n);else if(19===e.tag)om(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(yf(zd,r),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Gd(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),am(t,!1,o,n,a,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Gd(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}am(t,!0,n,null,a,t.lastEffect);break;case"together":am(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function lm(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Bm|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(bi(153));if(null!==t.child){for(n=Gh(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)(n=n.sibling=Gh(e=e.sibling,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function um(e,t){if(!$d)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function sm(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return Sf(t.type)&&_f(),null;case 3:return Hd(),hf(bf),hf(vf),ep(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Yd(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Ud(t);var o=Fd(Dd.current);if(n=t.type,null!==e&&null!=t.stateNode)Jp(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(bi(166));return null}if(e=Fd(Rd.current),Yd(t)){n=t.type;var a=t.memoizedProps;switch((r=t.stateNode)[nf]=t,r[rf]=a,n){case"dialog":Rc("cancel",r),Rc("close",r);break;case"iframe":case"object":case"embed":Rc("load",r);break;case"video":case"audio":for(e=0;e<Ac.length;e++)Rc(Ac[e],r);break;case"source":Rc("error",r);break;case"img":case"image":case"link":Rc("error",r),Rc("load",r);break;case"details":Rc("toggle",r);break;case"input":pl(r,a),Rc("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Rc("invalid",r);break;case"textarea":wl(r,a),Rc("invalid",r)}for(var i in Il(n,a),e=null,a)a.hasOwnProperty(i)&&(o=a[i],"children"===i?"string"==typeof o?r.textContent!==o&&(e=["children",o]):"number"==typeof o&&r.textContent!==""+o&&(e=["children",""+o]):wi.hasOwnProperty(i)&&null!=o&&"onScroll"===i&&Rc("scroll",r));switch(n){case"input":sl(r),yl(r,a,!0);break;case"textarea":sl(r),_l(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Vc)}t.updateQueue=r=e,null!==r&&(t.flags|=4)}else{switch(i=9===o.nodeType?o:o.ownerDocument,e===Cl&&(e=Ol(n)),e===Cl?"script"===n?((e=i.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),"select"===n&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[nf]=t,e[rf]=r,Zp(e,t),t.stateNode=e,i=Dl(n,r),n){case"dialog":Rc("cancel",e),Rc("close",e),o=r;break;case"iframe":case"object":case"embed":Rc("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ac.length;o++)Rc(Ac[o],e);o=r;break;case"source":Rc("error",e),o=r;break;case"img":case"image":case"link":Rc("error",e),Rc("load",e),o=r;break;case"details":Rc("toggle",e),o=r;break;case"input":pl(e,r),o=dl(e,r),Rc("invalid",e);break;case"option":o=vl(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=ur({},r,{value:void 0}),Rc("invalid",e);break;case"textarea":wl(e,r),o=El(e,r),Rc("invalid",e);break;default:o=r}Il(n,o);var l=o;for(a in l)if(l.hasOwnProperty(a)){var u=l[a];"style"===a?Ll(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&Tl(e,u):"children"===a?"string"==typeof u?("textarea"!==n||""!==u)&&xl(e,u):"number"==typeof u&&xl(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(wi.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Rc("scroll",e):null!=u&&Li(e,a,u,i))}switch(n){case"input":sl(e),yl(e,r,!1);break;case"textarea":sl(e),_l(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ll(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?bl(e,!!r.multiple,a,!1):null!=r.defaultValue&&bl(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Vc)}qc(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)em(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(bi(166));n=Fd(Dd.current),Fd(Rd.current),Yd(t)?(n=t.memoizedProps,(r=t.stateNode)[nf]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[nf]=t,t.stateNode=r)}return null;case 13:return hf(zd),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Yd(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&zd.current)?0===Fm&&(Fm=3):(0!==Fm&&3!==Fm||(Fm=4),null===Mm||0==(134217727&Bm)&&0==(134217727&Um)||hh(Mm,Rm))),(r||n)&&(t.flags|=4),null);case 4:return Hd(),null===e&&Dc(t.stateNode.containerInfo),null;case 10:return ud(t),null;case 17:return Sf(t.type)&&_f(),null;case 19:if(hf(zd),null===(r=t.memoizedState))return null;if(a=0!=(64&t.flags),null===(i=r.rendering))if(a)um(r,!1);else{if(0!==Fm||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(i=Gd(e))){for(t.flags|=64,um(r,!1),null!==(a=i.updateQueue)&&(t.updateQueue=a,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=2,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,null===(i=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,a.type=i.type,a.dependencies=null===(e=i.dependencies)?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return yf(zd,1&zd.current|2),t.child}e=e.sibling}null!==r.tail&&Qf()>Wm&&(t.flags|=64,a=!0,um(r,!1),t.lanes=33554432)}else{if(!a)if(null!==(e=Gd(i))){if(t.flags|=64,a=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),um(r,!0),null===r.tail&&"hidden"===r.tailMode&&!i.alternate&&!$d)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Qf()-r.renderingStartTime>Wm&&1073741824!==n&&(t.flags|=64,a=!0,um(r,!1),t.lanes=33554432);r.isBackwards?(i.sibling=t.child,t.child=i):(null!==(n=r.last)?n.sibling=i:t.child=i,r.last=i)}return null!==r.tail?(r.rendering=n=r.tail,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Qf(),n.sibling=null,t=zd.current,yf(zd,a?1&t|2:1&t),n):null;case 23:case 24:return Eh(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(bi(156,t.tag))}function cm(e){switch(e.tag){case 1:Sf(e.type)&&_f();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Hd(),hf(bf),hf(vf),ep(),0!=(64&(t=e.flags)))throw Error(bi(285));return e.flags=-4097&t|64,e;case 5:return Ud(e),null;case 13:return hf(zd),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return hf(zd),null;case 4:return Hd(),null;case 10:return ud(e),null;case 23:case 24:return Eh(),null;default:return null}}function fm(e,t){try{var n="",r=t;do{n+=al(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o}}function dm(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}Zp=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Jp=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Fd(Rd.current);var a,i=null;switch(n){case"input":o=dl(e,o),r=dl(e,r),i=[];break;case"option":o=vl(e,o),r=vl(e,r),i=[];break;case"select":o=ur({},o,{value:void 0}),r=ur({},r,{value:void 0}),i=[];break;case"textarea":o=El(e,o),r=El(e,r),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Vc)}for(s in Il(n,r),n=null,o)if(!r.hasOwnProperty(s)&&o.hasOwnProperty(s)&&null!=o[s])if("style"===s){var l=o[s];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(wi.hasOwnProperty(s)?i||(i=[]):(i=i||[]).push(s,null));for(s in r){var u=r[s];if(l=null!=o?o[s]:void 0,r.hasOwnProperty(s)&&u!==l&&(null!=u||null!=l))if("style"===s)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(i||(i=[]),i.push(s,n)),n=u;else"dangerouslySetInnerHTML"===s?(l=l?l.__html:void 0,null!=(u=u?u.__html:void 0)&&l!==u&&(i=i||[]).push(s,u)):"children"===s?"string"!=typeof u&&"number"!=typeof u||(i=i||[]).push(s,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(wi.hasOwnProperty(s)?(null!=u&&"onScroll"===s&&Rc("scroll",e),i||l===u||(i=[])):"object"==typeof u&&null!==u&&u.$$typeof===Qi?u.toString():(i=i||[]).push(s,u))}n&&(i=i||[]).push("style",n);var s=i;(t.updateQueue=s)&&(t.flags|=4)}},em=function(e,t,n,r){n!==r&&(t.flags|=4)};var pm="function"==typeof WeakMap?WeakMap:Map;function mm(e,t,n){(n=hd(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Km||(Km=!0,Xm=r),dm(0,t)},n}function hm(e,t,n){(n=hd(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return dm(0,t),r(o)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Ym?Ym=new Set([this]):Ym.add(this),dm(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ym="function"==typeof WeakSet?WeakSet:Set;function gm(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Fh(e,t)}else t.current=null}function vm(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:nd(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Yc(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(bi(163))}function bm(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var o=e;r=o.next,0!=(4&(o=o.tag))&&0!=(1&o)&&(Rh(n,e),Lh(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:nd(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&bd(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}bd(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&qc(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Mu(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(bi(163))}function Em(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=null!=o&&o.hasOwnProperty("display")?o.display:null,r.style.display=Ml("display",o)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function wm(e,t){if(xf&&"function"==typeof xf.onCommitFiberUnmount)try{xf.onCommitFiberUnmount(Tf,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,o=r.destroy;if(r=r.tag,void 0!==o)if(0!=(4&r))Rh(t,n);else{r=t;try{o()}catch(e){Fh(r,e)}}n=n.next}while(n!==e)}break;case 1:if(gm(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Fh(t,e)}break;case 5:gm(t);break;case 4:Om(e,t)}}function Sm(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function _m(e){return 5===e.tag||3===e.tag||4===e.tag}function Cm(e){e:{for(var t=e.return;null!==t;){if(_m(t))break e;t=t.return}throw Error(bi(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(bi(161))}16&n.flags&&(xl(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||_m(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?function e(t,n,r){var o=t.tag,a=5===o||6===o;if(a)t=a?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=Vc));else if(4!==o&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var o=t.tag,a=5===o||6===o;if(a)t=a?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==o&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function Om(e,t){for(var n,r,o=t,a=!1;;){if(!a){a=o.return;e:for(;;){if(null===a)throw Error(bi(160));switch(n=a.stateNode,a.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}a=a.return}a=!0}if(5===o.tag||6===o.tag){e:for(var i=e,l=o,u=l;;)if(wm(i,u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===l)break e;for(;null===u.sibling;){if(null===u.return||u.return===l)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(l=o.stateNode,8===(i=n).nodeType?i.parentNode.removeChild(l):i.removeChild(l)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,r=!0,o.child.return=o,o=o.child;continue}}else if(wm(e,o),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(a=!1)}o.sibling.return=o.return,o=o.sibling}}function km(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var o=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[rf]=r,"input"===e&&"radio"===r.type&&null!=r.name&&ml(n,r),Dl(e,o),t=Dl(e,r),o=0;o<a.length;o+=2){var i=a[o],l=a[o+1];"style"===i?Ll(n,l):"dangerouslySetInnerHTML"===i?Tl(n,l):"children"===i?xl(n,l):Li(n,i,l,t)}switch(e){case"input":hl(n,r);break;case"textarea":Sl(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(a=r.value)?bl(n,!!r.multiple,a,!1):e!==!!r.multiple&&(null!=r.defaultValue?bl(n,!!r.multiple,r.defaultValue,!0):bl(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(bi(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,Mu(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(Vm=Qf(),Em(t.child,!0)),void Pm(t);case 19:return void Pm(t);case 17:return;case 23:case 24:return void Em(t,null!==t.memoizedState)}throw Error(bi(163))}function Pm(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ym),t.forEach(function(t){var r=Hh.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}var Tm=Math.ceil,xm=Ri.ReactCurrentDispatcher,Am=Ri.ReactCurrentOwner,Nm=0,Mm=null,Lm=null,Rm=0,Im=0,Dm=mf(0),Fm=0,jm=null,Hm=0,Bm=0,Um=0,zm=0,Gm=null,Vm=0,Wm=Infinity;function $m(){Wm=Qf()+500}var qm,Qm=null,Km=!1,Xm=null,Ym=null,Zm=!1,Jm=null,eh=90,th=[],nh=[],rh=null,oh=0,ah=null,ih=-1,lh=0,uh=0;function sh(){return 0!=(48&Nm)?Qf():-1!==ih?ih:ih=Qf()}function ch(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Kf()?1:2;if(0===lh&&(lh=Hm),0!==td.transition){0!==uh&&(uh=null!==Gm?Gm.pendingLanes:0),e=lh;var t=4186112&~uh;return 0==(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=Kf(),function e(t,n){switch(t){case 15:return 1;case 14:return 2;case 12:return 0===(t=Xu(24&~n))?e(10,n):t;case 10:return 0===(t=Xu(192&~n))?e(8,n):t;case 8:return 0===(t=Xu(3584&~n))&&0===(t=Xu(4186112&~n))&&(t=512),t;case 2:return 0===(n=Xu(805306368&~n))&&(n=268435456),n}throw Error(bi(358,t))}(0!=(4&Nm)&&98===e?12:e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),lh)}function fh(e,t,n){if(50<oh)throw oh=0,ah=null,Error(bi(185));if(null===(e=dh(e,t)))return null;Zu(e,t,n),e===Mm&&(Um|=t,4===Fm&&hh(e,Rm));var r=Kf();1===t?0!=(8&Nm)&&0==(48&Nm)?yh(e):(ph(e,n),0===Nm&&($m(),Jf())):(0==(4&Nm)||98!==r&&99!==r||(null===rh?rh=new Set([e]):rh.add(e)),ph(e,n)),Gm=e}function dh(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function ph(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes;0<i;){var l=31-Ju(i),u=1<<l,s=a[l];-1===s?0!=(u&r)&&0==(u&o)||(s=t,qu(u),a[l]=10<=$u?s+250:6<=$u?s+5e3:-1):s<=t&&(e.expiredLanes|=u),i&=~u}if(r=Qu(e,e===Mm?Rm:0),t=$u,0===r)null!==n&&(n!==zf&&Mf(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==zf&&Mf(n)}15===t?(n=yh.bind(null,e),null===Vf?(Vf=[n],Wf=Nf(Ff,ed)):Vf.push(n),n=zf):n=14===t?Zf(99,yh.bind(null,e)):Zf(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(bi(358,e))}}(t),mh.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function mh(e){if(ih=-1,uh=lh=0,0!=(48&Nm))throw Error(bi(327));var t=e.callbackNode;if(Mh()&&e.callbackNode!==t)return null;var n=Qu(e,e===Mm?Rm:0);if(0===n)return null;var r=n,o=Nm;Nm|=16;var a=_h();for(Mm===e&&Rm===r||($m(),wh(e,r));;)try{kh();break}catch(t){Sh(e,t)}if(ld(),xm.current=a,Nm=o,null!==Lm?r=0:(Mm=null,Rm=0,r=Fm),0!=(Hm&Um))wh(e,0);else if(0!==r){if(2===r&&(Nm|=64,e.hydrate&&(e.hydrate=!1,Yc(e.containerInfo)),0!==(n=Ku(e))&&(r=Ch(e,n))),1===r)throw t=jm,wh(e,0),hh(e,n),ph(e,Qf()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(bi(345));case 2:xh(e);break;case 3:if(hh(e,n),(62914560&n)===n&&10<(r=Vm+500-Qf())){if(0!==Qu(e,0))break;if(((o=e.suspendedLanes)&n)!==n){sh(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Kc(xh.bind(null,e),r);break}xh(e);break;case 4:if(hh(e,n),(4186112&n)===n)break;for(r=e.eventTimes,o=-1;0<n;){var i=31-Ju(n);a=1<<i,(i=r[i])>o&&(o=i),n&=~a}if(n=o,10<(n=(120>(n=Qf()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Tm(n/1960))-n)){e.timeoutHandle=Kc(xh.bind(null,e),n);break}xh(e);break;case 5:xh(e);break;default:throw Error(bi(329))}}return ph(e,Qf()),e.callbackNode===t?mh.bind(null,e):null}function hh(e,t){for(t&=~zm,e.suspendedLanes|=t&=~Um,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ju(t),r=1<<n;e[n]=-1,t&=~r}}function yh(e){if(0!=(48&Nm))throw Error(bi(327));if(Mh(),e===Mm&&0!=(e.expiredLanes&Rm)){var t=Rm,n=Ch(e,t);0!=(Hm&Um)&&(n=Ch(e,t=Qu(e,t)))}else n=Ch(e,t=Qu(e,0));if(0!==e.tag&&2===n&&(Nm|=64,e.hydrate&&(e.hydrate=!1,Yc(e.containerInfo)),0!==(t=Ku(e))&&(n=Ch(e,t))),1===n)throw n=jm,wh(e,0),hh(e,t),ph(e,Qf()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,xh(e),ph(e,Qf()),null}function gh(e,t){var n=Nm;Nm|=1;try{return e(t)}finally{0===(Nm=n)&&($m(),Jf())}}function vh(e,t){var n=Nm;Nm&=-2,Nm|=8;try{return e(t)}finally{0===(Nm=n)&&($m(),Jf())}}function bh(e,t){yf(Dm,Im),Im|=t,Hm|=t}function Eh(){Im=Dm.current,hf(Dm)}function wh(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Xc(n)),null!==Lm)for(n=Lm.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&_f();break;case 3:Hd(),hf(bf),hf(vf),ep();break;case 5:Ud(r);break;case 4:Hd();break;case 13:case 19:hf(zd);break;case 10:ud(r);break;case 23:case 24:Eh()}n=n.return}Mm=e,Lm=Gh(e.current,null),Rm=Im=Hm=t,Fm=0,jm=null,zm=Um=Bm=0}function Sh(e,t){for(;;){var n=Lm;try{if(ld(),tp.current=Dp,lp){for(var r=op.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}lp=!1}if(rp=0,ip=ap=op=null,up=!1,Am.current=null,null===n||null===n.return){Fm=1,jm=t,Lm=null;break}e:{var a=e,i=n.return,l=n,u=t;if(t=Rm,l.flags|=2048,l.firstEffect=l.lastEffect=null,null!==u&&"object"==typeof u&&"function"==typeof u.then){var s=u;if(0==(2&l.mode)){var c=l.alternate;c?(l.updateQueue=c.updateQueue,l.memoizedState=c.memoizedState,l.lanes=c.lanes):(l.updateQueue=null,l.memoizedState=null)}var f=0!=(1&zd.current),d=i;do{var p;if(p=13===d.tag){var m=d.memoizedState;if(null!==m)p=null!==m.dehydrated;else{var h=d.memoizedProps;p=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!f)}}if(p){var y=d.updateQueue;if(null===y){var g=new Set;g.add(s),d.updateQueue=g}else y.add(s);if(0==(2&d.mode)){if(d.flags|=64,l.flags|=16384,l.flags&=-2981,1===l.tag)if(null===l.alternate)l.tag=17;else{var v=hd(-1,1);v.tag=2,yd(l,v)}l.lanes|=1;break e}u=void 0,l=t;var b=a.pingCache;if(null===b?(b=a.pingCache=new pm,u=new Set,b.set(s,u)):void 0===(u=b.get(s))&&(u=new Set,b.set(s,u)),!u.has(l)){u.add(l);var E=jh.bind(null,a,s,l);s.then(E,E)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);u=Error((il(l.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Fm&&(Fm=2),u=fm(u,l),d=i;do{switch(d.tag){case 3:a=u,d.flags|=4096,d.lanes|=t&=-t,gd(d,mm(0,a,t));break e;case 1:a=u;var w=d.stateNode;if(0==(64&d.flags)&&("function"==typeof d.type.getDerivedStateFromError||null!==w&&"function"==typeof w.componentDidCatch&&(null===Ym||!Ym.has(w)))){d.flags|=4096,d.lanes|=t&=-t,gd(d,hm(d,a,t));break e}}d=d.return}while(null!==d)}Th(n)}catch(e){t=e,Lm===n&&null!==n&&(Lm=n=n.return);continue}break}}function _h(){var e=xm.current;return xm.current=Dp,null===e?Dp:e}function Ch(e,t){var n=Nm;Nm|=16;var r=_h();for(Mm===e&&Rm===t||wh(e,t);;)try{Oh();break}catch(t){Sh(e,t)}if(ld(),Nm=n,xm.current=r,null!==Lm)throw Error(bi(261));return Mm=null,Rm=0,Fm}function Oh(){for(;null!==Lm;)Ph(Lm)}function kh(){for(;null!==Lm&&!Lf();)Ph(Lm)}function Ph(e){var t=qm(e.alternate,e,Im);e.memoizedProps=e.pendingProps,null===t?Th(e):Lm=t,Am.current=null}function Th(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=sm(n,t,Im)))return void(Lm=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Im)||0==(4&n.mode)){for(var r=0,o=n.child;null!==o;)r|=o.lanes|o.childLanes,o=o.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=cm(t)))return n.flags&=2047,void(Lm=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Lm=t);Lm=t=e}while(null!==t);0===Fm&&(Fm=5)}function xh(e){var t=Kf();return Yf(99,Ah.bind(null,e,t)),null}function Ah(e,t){do{Mh()}while(null!==Jm);if(0!=(48&Nm))throw Error(bi(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(bi(177));e.callbackNode=null;var r=n.lanes|n.childLanes,o=r,a=e.pendingLanes&~o;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=o,e.mutableReadLanes&=o,e.entangledLanes&=o,o=e.entanglements;for(var i=e.eventTimes,l=e.expirationTimes;0<a;){var u=31-Ju(a),s=1<<u;o[u]=0,i[u]=-1,l[u]=-1,a&=~s}if(null!==rh&&0==(24&r)&&rh.has(e)&&rh.delete(e),e===Mm&&(Lm=Mm=null,Rm=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(o=Nm,Nm|=32,Am.current=null,Wc=os,wc(i=Ec())){if("selectionStart"in i)l={start:i.selectionStart,end:i.selectionEnd};else if((s=(l=(l=i.ownerDocument)&&l.defaultView||window).getSelection&&l.getSelection())&&0!==s.rangeCount){l=s.anchorNode,a=s.anchorOffset,u=s.focusNode,s=s.focusOffset;var c=0,f=-1,d=-1,p=0,m=0,h=i,y=null;e:for(;;){for(var g;h!==l||0!==a&&3!==h.nodeType||(f=c+a),h!==u||0!==s&&3!==h.nodeType||(d=c+s),3===h.nodeType&&(c+=h.nodeValue.length),null!==(g=h.firstChild);)y=h,h=g;for(;;){if(h===i)break e;if(y===l&&++p===a&&(f=c),y===u&&++m===s&&(d=c),null!==(g=h.nextSibling))break;y=(h=y).parentNode}h=g}l=-1===f||-1===d?null:{start:f,end:d}}else l=null;l=l||{start:0,end:0}}else l=null;$c={focusedElem:i,selectionRange:l},os=!1,Qm=r;do{try{Nh()}catch(e){if(null===Qm)throw Error(bi(330));Fh(Qm,e),Qm=Qm.nextEffect}}while(null!==Qm);Qm=r;do{try{for(i=e;null!==Qm;){var v=Qm.flags;if(16&v&&xl(Qm.stateNode,""),128&v){var b=Qm.alternate;if(null!==b){var E=b.ref;null!==E&&("function"==typeof E?E(null):E.current=null)}}switch(1038&v){case 2:Cm(Qm),Qm.flags&=-3;break;case 6:Cm(Qm),Qm.flags&=-3,km(Qm.alternate,Qm);break;case 1024:Qm.flags&=-1025;break;case 1028:Qm.flags&=-1025,km(Qm.alternate,Qm);break;case 4:km(Qm.alternate,Qm);break;case 8:Om(i,l=Qm);var w=l.alternate;Sm(l),null!==w&&Sm(w)}Qm=Qm.nextEffect}}catch(e){if(null===Qm)throw Error(bi(330));Fh(Qm,e),Qm=Qm.nextEffect}}while(null!==Qm);if(E=$c,b=Ec(),i=E.selectionRange,b!==(v=E.focusedElem)&&v&&v.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(v.ownerDocument.documentElement,v)){null!==i&&wc(v)&&(b=i.start,void 0===(E=i.end)&&(E=b),"selectionStart"in v?(v.selectionStart=b,v.selectionEnd=Math.min(E,v.value.length)):(E=(b=v.ownerDocument||document)&&b.defaultView||window).getSelection&&(E=E.getSelection(),l=v.textContent.length,w=Math.min(i.start,l),i=void 0===i.end?w:Math.min(i.end,l),!E.extend&&w>i&&(l=i,i=w,w=l),l=bc(v,w),a=bc(v,i),l&&a&&(1!==E.rangeCount||E.anchorNode!==l.node||E.anchorOffset!==l.offset||E.focusNode!==a.node||E.focusOffset!==a.offset)&&((b=b.createRange()).setStart(l.node,l.offset),E.removeAllRanges(),w>i?(E.addRange(b),E.extend(a.node,a.offset)):(b.setEnd(a.node,a.offset),E.addRange(b))))),b=[];for(E=v;E=E.parentNode;)1===E.nodeType&&b.push({element:E,left:E.scrollLeft,top:E.scrollTop});for("function"==typeof v.focus&&v.focus(),v=0;v<b.length;v++)(E=b[v]).element.scrollLeft=E.left,E.element.scrollTop=E.top}os=!!Wc,$c=Wc=null,e.current=n,Qm=r;do{try{for(v=e;null!==Qm;){var S=Qm.flags;if(36&S&&bm(v,Qm.alternate,Qm),128&S){b=void 0;var _=Qm.ref;if(null!==_){var C=Qm.stateNode;switch(Qm.tag){case 5:b=C;break;default:b=C}"function"==typeof _?_(b):_.current=b}}Qm=Qm.nextEffect}}catch(e){if(null===Qm)throw Error(bi(330));Fh(Qm,e),Qm=Qm.nextEffect}}while(null!==Qm);Qm=null,Gf(),Nm=o}else e.current=n;if(Zm)Zm=!1,Jm=e,eh=t;else for(Qm=r;null!==Qm;)t=Qm.nextEffect,Qm.nextEffect=null,8&Qm.flags&&((S=Qm).sibling=null,S.stateNode=null),Qm=t;if(0===(r=e.pendingLanes)&&(Ym=null),1===r?e===ah?oh++:(oh=0,ah=e):oh=0,n=n.stateNode,xf&&"function"==typeof xf.onCommitFiberRoot)try{xf.onCommitFiberRoot(Tf,n,void 0,64==(64&n.current.flags))}catch(e){}if(ph(e,Qf()),Km)throw Km=!1,e=Xm,Xm=null,e;return 0!=(8&Nm)||Jf(),null}function Nh(){for(;null!==Qm;){var e=Qm.flags;0!=(256&e)&&vm(Qm.alternate,Qm),0==(512&e)||Zm||(Zm=!0,Zf(97,function(){return Mh(),null})),Qm=Qm.nextEffect}}function Mh(){if(90!==eh){var e=97<eh?97:eh;return eh=90,Yf(e,Ih)}return!1}function Lh(e,t){th.push(t,e),Zm||(Zm=!0,Zf(97,function(){return Mh(),null}))}function Rh(e,t){nh.push(t,e),Zm||(Zm=!0,Zf(97,function(){return Mh(),null}))}function Ih(){if(null===Jm)return!1;var e=Jm;if(Jm=null,0!=(48&Nm))throw Error(bi(331));var t=Nm;Nm|=32;var n=nh;nh=[];for(var r=0;r<n.length;r+=2){var o=n[r],a=n[r+1],i=o.destroy;if(o.destroy=void 0,"function"==typeof i)try{i()}catch(e){if(null===a)throw Error(bi(330));Fh(a,e)}}for(n=th,th=[],r=0;r<n.length;r+=2){o=n[r],a=n[r+1];try{var l=o.create;o.destroy=l()}catch(e){if(null===a)throw Error(bi(330));Fh(a,e)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return Nm=t,Jf(),!0}function Dh(e,t,n){yd(e,t=mm(0,t=fm(n,t),1)),t=sh(),null!==(e=dh(e,1))&&(Zu(e,1,t),ph(e,t))}function Fh(e,t){if(3===e.tag)Dh(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Dh(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ym||!Ym.has(r))){var o=hm(n,e=fm(t,e),1);if(yd(n,o),o=sh(),null!==(n=dh(n,1)))Zu(n,1,o),ph(n,o);else if("function"==typeof r.componentDidCatch&&(null===Ym||!Ym.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function jh(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=sh(),e.pingedLanes|=e.suspendedLanes&n,Mm===e&&(Rm&n)===n&&(4===Fm||3===Fm&&(62914560&Rm)===Rm&&500>Qf()-Vm?wh(e,0):zm|=n),ph(e,t)}function Hh(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Kf()?1:2:(0===lh&&(lh=Hm),0===(t=Xu(62914560&~lh))&&(t=4194304))),n=sh(),null!==(e=dh(e,t))&&(Zu(e,t,n),ph(e,n))}function Bh(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Uh(e,t,n,r){return new Bh(e,t,n,r)}function zh(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Gh(e,t){var n=e.alternate;return null===n?((n=Uh(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.dependencies=null===(t=e.dependencies)?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Vh(e,t,n,r,o,a){var i=2;if(r=e,"function"==typeof e)zh(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case Fi:return Wh(n.children,o,a,t);case Ki:i=8,o|=16;break;case ji:i=8,o|=1;break;case Hi:return(e=Uh(12,n,t,8|o)).elementType=Hi,e.type=Hi,e.lanes=a,e;case Gi:return(e=Uh(13,n,t,o)).type=Gi,e.elementType=Gi,e.lanes=a,e;case Vi:return(e=Uh(19,n,t,o)).elementType=Vi,e.lanes=a,e;case Xi:return $h(n,o,a,t);case Yi:return(e=Uh(24,n,t,o)).elementType=Yi,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Bi:i=10;break e;case Ui:i=9;break e;case zi:i=11;break e;case Wi:i=14;break e;case $i:i=16,r=null;break e;case qi:i=22;break e}throw Error(bi(130,null==e?e:typeof e,""))}return(t=Uh(i,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Wh(e,t,n,r){return(e=Uh(7,e,r,t)).lanes=n,e}function $h(e,t,n,r){return(e=Uh(23,e,r,t)).elementType=Xi,e.lanes=n,e}function qh(e,t,n){return(e=Uh(6,e,null,t)).lanes=n,e}function Qh(e,t,n){return(t=Uh(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Kh(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Yu(0),this.expirationTimes=Yu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yu(0),this.mutableSourceEagerHydrationData=null}function Xh(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Di,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Yh(e,t,n,r){var o=t.current,a=sh(),i=ch(o);e:if(n){t:{if(lu(n=n._reactInternals)!==n||1!==n.tag)throw Error(bi(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(Sf(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(bi(171))}if(1===n.tag){var u=n.type;if(Sf(u)){n=Of(n,u,l);break e}}n=l}else n=gf;return null===t.context?t.context=n:t.pendingContext=n,(t=hd(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),yd(o,t),fh(o,i,a),i}function Zh(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Jh(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function ey(e,t){Jh(e,t),(e=e.alternate)&&Jh(e,t)}function ty(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Kh(e,t,null!=n&&!0===n.hydrate),t=Uh(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,pd(t),e[of]=n.current,Dc(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var o=(t=r[e])._getVersion;o=o(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,o]:n.mutableSourceEagerHydrationData.push(t,o)}this._internalRoot=n}function ny(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ry(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a._internalRoot;if("function"==typeof o){var l=o;o=function(){var e=Zh(i);l.call(e)}}Yh(t,i,e,o)}else{if(a=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new ty(e,0,t?{hydrate:!0}:void 0)}(n,r),i=a._internalRoot,"function"==typeof o){var u=o;o=function(){var e=Zh(i);u.call(e)}}vh(function(){Yh(t,i,e,o)})}return Zh(i)}function oy(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ny(t))throw Error(bi(200));return Xh(e,t,null,n)}qm=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||bf.current)Up=!0;else{if(0==(n&r)){switch(Up=!1,t.tag){case 3:Yp(t),Zd();break;case 5:Bd(t);break;case 1:Sf(t.type)&&kf(t);break;case 4:jd(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;yf(rd,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?nm(e,t,n):(yf(zd,1&zd.current),null!==(t=lm(e,t,n))?t.sibling:null);yf(zd,1&zd.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return im(e,t,n);t.flags|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),yf(zd,zd.current),r)break;return null;case 23:case 24:return t.lanes=0,$p(e,t,n)}return lm(e,t,n)}Up=0!=(16384&e.flags)}else Up=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=wf(t,vf.current),cd(t,n),o=fp(null,t,r,e,o,n),t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Sf(r)){var a=!0;kf(t)}else a=!1;t.memoizedState=null!=o.state?o.state:null,pd(t);var i=r.getDerivedStateFromProps;"function"==typeof i&&wd(t,r,i,e),o.updater=Sd,t.stateNode=o,o._reactInternals=t,kd(t,r,e,n),t=Xp(null,t,r,!0,a,n)}else t.tag=0,zp(null,t,o,n),t=t.child;return t;case 16:o=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=(a=o._init)(o._payload),t.type=o,a=t.tag=function(e){if("function"==typeof e)return zh(e)?1:0;if(null!=e){if((e=e.$$typeof)===zi)return 11;if(e===Wi)return 14}return 2}(o),e=nd(o,e),a){case 0:t=Qp(null,t,o,e,n);break e;case 1:t=Kp(null,t,o,e,n);break e;case 11:t=Gp(null,t,o,e,n);break e;case 14:t=Vp(null,t,o,nd(o.type,e),r,n);break e}throw Error(bi(306,o,""))}return t;case 0:return o=t.pendingProps,Qp(e,t,r=t.type,o=t.elementType===r?o:nd(r,o),n);case 1:return o=t.pendingProps,Kp(e,t,r=t.type,o=t.elementType===r?o:nd(r,o),n);case 3:if(Yp(t),r=t.updateQueue,null===e||null===r)throw Error(bi(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,md(e,t),vd(t,r,null,n),(r=t.memoizedState.element)===o)Zd(),t=lm(e,t,n);else{if((a=(o=t.stateNode).hydrate)&&(Wd=Zc(t.stateNode.containerInfo.firstChild),Vd=t,a=$d=!0),a){if(null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o<e.length;o+=2)(a=e[o])._workInProgressVersionPrimary=e[o+1],Jd.push(a);for(n=Md(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else zp(e,t,r,n),Zd();t=t.child}return t;case 5:return Bd(t),null===e&&Kd(t),a=null!==e?e.memoizedProps:null,i=(o=t.pendingProps).children,Qc(r=t.type,o)?i=null:null!==a&&Qc(r,a)&&(t.flags|=16),qp(e,t),zp(e,t,i,n),t.child;case 6:return null===e&&Kd(t),null;case 13:return nm(e,t,n);case 4:return jd(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Nd(t,null,r,n):zp(e,t,r,n),t.child;case 11:return o=t.pendingProps,Gp(e,t,r=t.type,o=t.elementType===r?o:nd(r,o),n);case 7:return zp(e,t,t.pendingProps,n),t.child;case 8:case 12:return zp(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.memoizedProps,a=(o=t.pendingProps).value;var l=t.type._context;if(yf(rd,l._currentValue),l._currentValue=a,null!==i)if(0==(a=hc(l=i.value,a)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,a):1073741823))){if(i.children===o.children&&!bf.current){t=lm(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){i=l.child;for(var s=u.firstContext;null!==s;){if(s.context===r&&0!=(s.observedBits&a)){1===l.tag&&((s=hd(-1,n&-n)).tag=2,yd(l,s)),l.lanes|=n,null!==(s=l.alternate)&&(s.lanes|=n),sd(l.return,n),u.lanes|=n;break}s=s.next}}else i=10===l.tag&&l.type===t.type?null:l.child;if(null!==i)i.return=l;else for(i=l;null!==i;){if(i===t){i=null;break}if(null!==(l=i.sibling)){l.return=i.return,i=l;break}i=i.return}l=i}zp(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(a=t.pendingProps).children,cd(t,n),r=r(o=fd(o,a.unstable_observedBits)),t.flags|=1,zp(e,t,r,n),t.child;case 14:return a=nd(o=t.type,t.pendingProps),Vp(e,t,o,a=nd(o.type,a),r,n);case 15:return Wp(e,t,t.type,t.pendingProps,r,n);case 17:return o=t.pendingProps,o=t.elementType===(r=t.type)?o:nd(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Sf(r)?(e=!0,kf(t)):e=!1,cd(t,n),Cd(t,r,o),kd(t,r,o,n),Xp(null,t,r,!0,e,n);case 19:return im(e,t,n);case 23:case 24:return $p(e,t,n)}throw Error(bi(156,t.tag))},ty.prototype.render=function(e){Yh(e,this._internalRoot,null,null)},ty.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Yh(null,e,null,function(){t[of]=null})},fu=function(e){13===e.tag&&(fh(e,4,sh()),ey(e,4))},du=function(e){13===e.tag&&(fh(e,67108864,sh()),ey(e,67108864))},pu=function(e){if(13===e.tag){var t=sh(),n=ch(e);fh(e,n,t),ey(e,n)}},mu=function(e,t){return t()},jl=function(e,t,n){switch(t){case"input":if(hl(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=cf(r);if(!o)throw Error(bi(90));cl(r),hl(r,o)}}}break;case"textarea":Sl(e,n);break;case"select":null!=(t=n.value)&&bl(e,!!n.multiple,t,!1)}},Vl=gh,Wl=function(e,t,n,r,o){var a=Nm;Nm|=4;try{return Yf(98,e.bind(null,t,n,r,o))}finally{0===(Nm=a)&&($m(),Jf())}},$l=function(){0==(49&Nm)&&(function(){if(null!==rh){var e=rh;rh=null,e.forEach(function(e){e.expiredLanes|=24&e.pendingLanes,ph(e,Qf())})}Jf()}(),Mh())},ql=function(e,t){var n=Nm;Nm|=2;try{return e(t)}finally{0===(Nm=n)&&($m(),Jf())}};var ay={Events:[uf,sf,cf,zl,Gl,Mh,{current:!1}]},iy={findFiberByHostInstance:lf,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},ly={bundleType:iy.bundleType,version:iy.version,rendererPackageName:iy.rendererPackageName,rendererConfig:iy.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ri.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=cu(e))?null:e.stateNode},findFiberByHostInstance:iy.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var uy=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uy.isDisabled&&uy.supportsFiber)try{Tf=uy.inject(ly),xf=uy}catch(e){}}var sy={__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ay,createPortal:oy,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(bi(188));throw Error(bi(268,Object.keys(e)))}return null===(e=cu(t))?null:e.stateNode},flushSync:function(e,t){var n=Nm;if(0!=(48&n))return e(t);Nm|=1;try{if(e)return Yf(99,e.bind(null,t))}finally{Nm=n,Jf()}},hydrate:function(e,t,n){if(!ny(t))throw Error(bi(200));return ry(null,e,t,!0,n)},render:function(e,t,n){if(!ny(t))throw Error(bi(200));return ry(null,e,t,!1,n)},unmountComponentAtNode:function(e){if(!ny(e))throw Error(bi(40));return!!e._reactRootContainer&&(vh(function(){ry(null,null,e,!1,function(){e._reactRootContainer=null,e[of]=null})}),!0)},unstable_batchedUpdates:gh,unstable_createPortal:function(e,t){return oy(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){if(!ny(n))throw Error(bi(200));if(null==e||void 0===e._reactInternals)throw Error(bi(38));return ry(e,t,n,!1,r)},version:"17.0.2"},cy=0,fy={__interactionsRef:null,__subscriberRef:null,unstable_clear:function(e){return e()},unstable_getCurrent:function(){return null},unstable_getThreadID:function(){return++cy},unstable_subscribe:function(){},unstable_trace:function(e,t,n){return n()},unstable_unsubscribe:function(){},unstable_wrap:function(e){return e}},dy=(p(function(e,t){}),p(function(e){e.exports=fy}),p(function(e,t){}),p(function(e){!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=sy}));function py(){return(py=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function my(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}var hy=function(e,t){return!!e.eligible&&!!t&&e.purchase_amount>=(null==t?void 0:t.minAmount)&&e.purchase_amount<=(null==t?void 0:t.maxAmount)},yy=function(e,t,n,r,o){var a,i,l=t.domain,u=t.merchantId,s=cr.useState([]),c=s[0],f=s[1],d=cr.useState(Zn.PENDING),p=d[0],m=d[1],h=null==n?void 0:n.map(function(e){return{installments_count:e.installmentsCount,deferred_days:null==e?void 0:e.deferredDays,deferred_months:null==e?void 0:e.deferredMonths}});return cr.useEffect(function(){if(p===Zn.PENDING){var t=null;r&&(t={country:r});var n=null;o&&(n={country:o}),function(e,t,n){void 0===e&&(e="");try{return Promise.resolve(fetch(e,{method:"POST",headers:py({"Content-Type":"application/json"},n),body:JSON.stringify(t)})).then(function(e){return e.json()})}catch(e){return Promise.reject(e)}}(l+"/v2/payments/eligibility",{purchase_amount:e,queries:h,billing_address:t,shipping_address:n},{Authorization:"Alma-Merchant-Auth "+u,"X-Alma-Agent":"Alma Widget/v3.3.6"}).then(function(e){f(e),m(Zn.SUCCESS)}).catch(function(){m(Zn.FAILED)})}},[p]),[(a=c,i=n,i?a.map(function(e){var t=30*(e.deferred_months?e.deferred_months:0)+(e.deferred_days?e.deferred_days:0),n=i.find(function(n){return e.installments_count===n.installmentsCount&&t===30*(n.deferredMonths?n.deferredMonths:0)+(n.deferredDays?n.deferredDays:0)});return py({},e,{eligible:hy(e,n)},function(e,t){var n,r=null==(n=e.constraints)?void 0:n.purchase_amount;return r&&t?{minAmount:Math.max(t.minAmount,null==r?void 0:r.minimum),maxAmount:Math.min(t.maxAmount,null==r?void 0:r.maximum)}:null!=t?t:{}}(e,n))}):a.filter(function(e){return!(1===e.installments_count&&0===e.deferred_days&&0===e.deferred_months)})),p]},gy=p(function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var a=typeof o;if("string"===a||"number"===a)e.push(o);else if(Array.isArray(o)){if(o.length){var i=n.apply(null,o);i&&e.push(i)}}else if("object"===a)if(o.toString===Object.prototype.toString)for(var l in o)t.call(o,l)&&o[l]&&e.push(l);else e.push(o.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}),vy="alma-eligibility-modal",by={desktopModal:vy+"-desktop-modal",mobileModal:vy+"-mobile-modal",leftSide:vy+"-left-side",bullet:vy+"-bullet",rightSide:vy+"-right-side",title:vy+"-title",info:vy+"-info",infoMessage:vy+"-info-message",eligibilityOptions:vy+"-eligibility-options",activeOption:vy+"-active-option",closeButton:vy+"-close-button",scheduleDetails:vy+"-schedule-details",scheduleTotal:vy+"-schedule-total",scheduleCredit:vy+"-schedule-credit",cardContainer:vy+"-card-logos",summary:vy+"-summary"},Ey=function(e){var t=e.currentPlan,n=Ya(),r=tr(t.purchase_amount+t.customer_total_cost_amount),o=tr(t.customer_total_cost_amount),a=(null==t?void 0:t.annual_interest_rate)&&t.annual_interest_rate/1e4||0,i=tr(t.customer_total_cost_amount),l=t.installments_count>4;return cr.createElement("div",{className:gy("_GTTk7",by.summary),"data-testid":"modal-summary"},cr.createElement("div",{className:gy("_34s2g",by.scheduleTotal)},cr.createElement(ai,{tagName:"div",id:"installments.total-amount",defaultMessage:"Total"}),cr.createElement(li,{value:r||0,style:"currency",currency:"EUR"})),cr.createElement("div",{className:gy("_W7qIA",by.scheduleCredit)},l?cr.createElement(cr.Fragment,null,cr.createElement(ai,{id:"credit-features.total-credit-cost",defaultMessage:"Dont coût du crédit"}),cr.createElement("span",{className:"_24KmE"},cr.createElement(ai,{id:"credit-features.credit-cost-display",defaultMessage:"{creditCost} (TAEG {taegPercentage})",values:{creditCost:n.formatNumber(o,{style:"currency",currency:"EUR"}),taegPercentage:n.formatNumber(a,{style:"percent",maximumFractionDigits:2})}}))):cr.createElement(cr.Fragment,null,cr.createElement(ai,{id:"installments.total-fees",defaultMessage:"Dont frais (TTC)",tagName:"div"}),cr.createElement("div",null,cr.createElement(li,{value:i,style:"currency",currency:"EUR"})))))},wy=function(e){return cr.createElement("div",{className:gy("_31lrj",e.className),"data-testid":"loader"},cr.createElement("svg",{width:"120",height:"134",viewBox:"0 0 120 134",fill:"none",xmlns:"http://www.w3.org/2000/svg"},cr.createElement("path",{d:"M83.8164 41.0325C79.1708 22.8241 69.3458 17 59.9939 17C50.642 17 40.8171 22.8241 36.1715 41.0325L16 117H35.8804C39.119 104.311 49.1016 97.2436 59.9939 97.2436C70.8863 97.2436 80.8689 104.324 84.1075 117H104L83.8164 41.0325ZM59.9939 79.5428C53.6623 79.5428 47.925 82.0552 43.6918 86.1283L55.0936 41.9207C56.1853 37.6953 57.7985 36.3503 60.0061 36.3503C62.2136 36.3503 63.8269 37.6953 64.9185 41.9207L76.3082 86.1283C72.075 82.0552 66.3256 79.5428 59.9939 79.5428Z",fill:"#FA5022"})))},Sy="function"==typeof Symbol&&Symbol.for,_y=Sy?Symbol.for("react.element"):60103,Cy=Sy?Symbol.for("react.portal"):60106,Oy=Sy?Symbol.for("react.fragment"):60107,ky=Sy?Symbol.for("react.strict_mode"):60108,Py=Sy?Symbol.for("react.profiler"):60114,Ty=Sy?Symbol.for("react.provider"):60109,xy=Sy?Symbol.for("react.context"):60110,Ay=Sy?Symbol.for("react.async_mode"):60111,Ny=Sy?Symbol.for("react.concurrent_mode"):60111,My=Sy?Symbol.for("react.forward_ref"):60112,Ly=Sy?Symbol.for("react.suspense"):60113,Ry=Sy?Symbol.for("react.suspense_list"):60120,Iy=Sy?Symbol.for("react.memo"):60115,Dy=Sy?Symbol.for("react.lazy"):60116,Fy=Sy?Symbol.for("react.block"):60121,jy=Sy?Symbol.for("react.fundamental"):60117,Hy=Sy?Symbol.for("react.responder"):60118,By=Sy?Symbol.for("react.scope"):60119;function Uy(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case _y:switch(e=e.type){case Ay:case Ny:case Oy:case Py:case ky:case Ly:return e;default:switch(e=e&&e.$$typeof){case xy:case My:case Dy:case Iy:case Ty:return e;default:return t}}case Cy:return t}}}function zy(e){return Uy(e)===Ny}var Gy={AsyncMode:Ay,ConcurrentMode:Ny,ContextConsumer:xy,ContextProvider:Ty,Element:_y,ForwardRef:My,Fragment:Oy,Lazy:Dy,Memo:Iy,Portal:Cy,Profiler:Py,StrictMode:ky,Suspense:Ly,isAsyncMode:function(e){return zy(e)||Uy(e)===Ay},isConcurrentMode:zy,isContextConsumer:function(e){return Uy(e)===xy},isContextProvider:function(e){return Uy(e)===Ty},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===_y},isForwardRef:function(e){return Uy(e)===My},isFragment:function(e){return Uy(e)===Oy},isLazy:function(e){return Uy(e)===Dy},isMemo:function(e){return Uy(e)===Iy},isPortal:function(e){return Uy(e)===Cy},isProfiler:function(e){return Uy(e)===Py},isStrictMode:function(e){return Uy(e)===ky},isSuspense:function(e){return Uy(e)===Ly},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===Oy||e===Ny||e===Py||e===ky||e===Ly||e===Ry||"object"==typeof e&&null!==e&&(e.$$typeof===Dy||e.$$typeof===Iy||e.$$typeof===Ty||e.$$typeof===xy||e.$$typeof===My||e.$$typeof===jy||e.$$typeof===Hy||e.$$typeof===By||e.$$typeof===Fy)},typeOf:Uy};function Vy(){}function Wy(){}p(function(e,t){}),p(function(e){e.exports=Gy}),Wy.resetWarningCache=Vy;var $y=p(function(e){e.exports=function(){function e(e,t,n,r,o,a){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==a){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Wy,resetWarningCache:Vy};return n.PropTypes=n,n}()}),qy=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce(function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])},[]).filter(o)};var n=/input|select|textarea|button|object|iframe/;function r(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var n=window.getComputedStyle(e);return t?"visible"!==n.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0:"none"==n.getPropertyValue("display")}catch(e){return console.warn("Failed to inspect element style"),!1}}function o(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var o=isNaN(t);return(o||t>=0)&&function(e,t){var o=e.nodeName.toLowerCase();return(n.test(o)&&!e.disabled||"a"===o&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),r(t))return!1;t=t.parentNode}return!0}(e)}(e,!o)}e.exports=t.default}),Qy=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){o=[]},t.log=function(){},t.handleBlur=l,t.handleFocus=u,t.markForFocusLater=function(){o.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==o.length&&(t=o.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){o.length>0&&o.pop()},t.setupScopedFocus=function(e){a=e,window.addEventListener?(window.addEventListener("blur",l,!1),document.addEventListener("focus",u,!0)):(window.attachEvent("onBlur",l),document.attachEvent("onFocus",u))},t.teardownScopedFocus=function(){a=null,window.addEventListener?(window.removeEventListener("blur",l),document.removeEventListener("focus",u)):(window.detachEvent("onBlur",l),document.detachEvent("onFocus",u))};var n,r=(n=qy)&&n.__esModule?n:{default:n},o=[],a=null,i=!1;function l(){i=!0}function u(){if(i){if(i=!1,!a)return;setTimeout(function(){a.contains(document.activeElement)||((0,r.default)(a)[0]||a).focus()},0)}}}),Ky=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,r.default)(e);if(n.length){var o=void 0,a=t.shiftKey,i=n[0],l=n[n.length-1],u=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return t.activeElement.shadowRoot?e(t.activeElement.shadowRoot):t.activeElement}();if(e===u){if(!a)return;o=l}if(l!==u||a||(o=i),i===u&&a&&(o=l),o)return t.preventDefault(),void o.focus();var s=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=s&&"Chrome"!=s[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var c=n.indexOf(u);if(c>-1&&(c+=a?-1:1),void 0===(o=n[c]))return t.preventDefault(),void(o=a?l:i).focus();t.preventDefault(),o.focus()}}else t.preventDefault()};var n,r=(n=qy)&&n.__esModule?n:{default:n};e.exports=t.default}),Xy=function(){},Yy=p(function(e){var t,n;n={canUseDOM:t=!("undefined"==typeof window||!window.document||!window.document.createElement),canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen},e.exports?e.exports=n:window.ExecutionEnvironment=n}),Zy=p(function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r=((n=Yy)&&n.__esModule?n:{default:n}).default,o=r.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=r.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=r.canUseDOM?window.NodeList:{},t.canUseDOM=r.canUseDOM,t.default=o}),Jy=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){o&&(o.removeAttribute?o.removeAttribute("aria-hidden"):null!=o.length?o.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(o).forEach(function(e){return e.removeAttribute("aria-hidden")})),o=null},t.log=function(){},t.assertNodeList=a,t.setElement=function(e){var t=e;if("string"==typeof t&&Zy.canUseDOM){var n=document.querySelectorAll(t);a(n,t),t=n}return o=t||o},t.validateElement=i,t.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var o,a=i(e)[Symbol.iterator]();!(t=(o=a.next()).done);t=!0)o.value.setAttribute("aria-hidden","true")}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}},t.show=function(e){var t=!0,n=!1,r=void 0;try{for(var o,a=i(e)[Symbol.iterator]();!(t=(o=a.next()).done);t=!0)o.value.removeAttribute("aria-hidden")}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}},t.documentNotReadyOrSSRTesting=function(){o=null};var n,r=(n=Xy)&&n.__esModule?n:{default:n},o=null;function a(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function i(e){var t=e||o;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,r.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}}),eg=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)o(e,n[t]);var a=document.body;for(var i in r)o(a,r[i]);n={},r={}},t.log=function(){};var n={},r={};function o(e,t){e.classList.remove(t)}t.add=function(e,t){return o=e.classList,a="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach(function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(a,e),o.add(e)});var o,a},t.remove=function(e,t){return o=e.classList,a="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach(function(e){!function(e,t){e[t]&&(e[t]-=1)}(a,e),0===a[e]&&o.remove(e)});var o,a}}),tg=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(r.openInstances.length),r.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")},t.resetState=function(){r=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach(function(n){return n(e,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},r=new n;t.default=r}),ng=(p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[o,a],t=0;t<e.length;t++){var n=e[t];n&&n.parentNode&&n.parentNode.removeChild(n)}o=a=null,i=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(i.length);for(var e=[o,a],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var n,r=(n=tg)&&n.__esModule?n:{default:n},o=void 0,a=void 0,i=[];function l(){0!==i.length&&i[i.length-1].focusContent()}r.default.subscribe(function(e,t){o||a||((o=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),o.style.position="absolute",o.style.opacity="0",o.setAttribute("tabindex","0"),o.addEventListener("focus",l),(a=o.cloneNode()).addEventListener("focus",l)),(i=t).length>0?(document.body.firstChild!==o&&document.body.insertBefore(o,document.body.firstChild),document.body.lastChild!==a&&document.body.appendChild(a)):(o.parentElement&&o.parentElement.removeChild(o),a.parentElement&&a.parentElement.removeChild(a))})}),p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=p($y),i=d(Qy),l=p(Ky),u=d(Jy),s=d(eg),c=p(Zy),f=p(tg);function d(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function p(e){return e&&e.__esModule?e:{default:e}}var m={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},h=0,y=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,o=e.htmlOpenClassName,a=e.bodyOpenClassName;a&&s.remove(document.body,a),o&&s.remove(document.getElementsByTagName("html")[0],o),r&&h>0&&0==(h-=1)&&u.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(i.returnFocus(n.props.preventScroll),i.teardownScopedFocus()):i.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),f.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(i.setupScopedFocus(n.node),i.markForFocusLater()),n.setState({isOpen:!0},function(){n.openAnimationFrame=requestAnimationFrame(function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})})}))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())})},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){9===e.keyCode&&(0,l.default)(n.content,e),n.props.shouldCloseOnEsc&&27===e.keyCode&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var o="object"===(void 0===t?"undefined":r(t))?t:{base:m[e],afterOpen:m[e]+"--after-open",beforeClose:m[e]+"--before-close"},a=o.base;return n.state.afterOpen&&(a=a+" "+o.afterOpen),n.state.beforeClose&&(a=a+" "+o.beforeClose),"string"==typeof t&&t?a+" "+t:a},n.attributesFromObject=function(e,t){return Object.keys(t).reduce(function(n,r){return n[e+"-"+r]=t[r],n},{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,o=e.bodyOpenClassName;o&&s.add(document.body,o),r&&s.add(document.getElementsByTagName("html")[0],r),n&&(h+=1,u.hide(t)),f.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,r=e.className,o=e.overlayClassName,a=e.defaultStyles,i=e.children,l=r?{}:a.content,u=o?{}:a.overlay;if(this.shouldBeClosed())return null;var s={ref:this.setOverlayRef,className:this.buildClassName("overlay",o),style:n({},u,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},c=n({id:t,ref:this.setContentRef,style:n({},l,this.props.style.content),className:this.buildClassName("content",r),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",n({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),f=this.props.contentElement(c,i);return this.props.overlayElement(s,f)}}]),t}(cr.Component);y.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},y.propTypes={isOpen:a.default.bool.isRequired,defaultStyles:a.default.shape({content:a.default.object,overlay:a.default.object}),style:a.default.shape({content:a.default.object,overlay:a.default.object}),className:a.default.oneOfType([a.default.string,a.default.object]),overlayClassName:a.default.oneOfType([a.default.string,a.default.object]),bodyOpenClassName:a.default.string,htmlOpenClassName:a.default.string,ariaHideApp:a.default.bool,appElement:a.default.oneOfType([a.default.instanceOf(c.default),a.default.instanceOf(Zy.SafeHTMLCollection),a.default.instanceOf(Zy.SafeNodeList),a.default.arrayOf(a.default.instanceOf(c.default))]),onAfterOpen:a.default.func,onAfterClose:a.default.func,onRequestClose:a.default.func,closeTimeoutMS:a.default.number,shouldFocusAfterRender:a.default.bool,shouldCloseOnOverlayClick:a.default.bool,shouldReturnFocusAfterClose:a.default.bool,preventScroll:a.default.bool,role:a.default.string,contentLabel:a.default.string,aria:a.default.object,data:a.default.object,children:a.default.node,shouldCloseOnEsc:a.default.bool,overlayRef:a.default.func,contentRef:a.default.func,id:a.default.string,overlayElement:a.default.func,contentElement:a.default.func,testId:a.default.string},t.default=y,e.exports=t.default}));function rg(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function og(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function ag(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}rg.__suppressDeprecationWarning=!0,og.__suppressDeprecationWarning=!0,ag.__suppressDeprecationWarning=!0;var ig=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=c(cr),a=c(dy),i=c($y),l=c(ng),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(Jy),s=c(Zy);function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var p=t.portalClassName="ReactModalPortal",m=t.bodyOpenClassName="ReactModal__Body--open",h=Zy.canUseDOM&&void 0!==a.default.createPortal,y=function(e){return document.createElement(e)},g=function(){return h?a.default.createPortal:a.default.unstable_renderSubtreeIntoContainer};function v(e){return e()}var b=function(e){function t(){var e,r,i;f(this,t);for(var u=arguments.length,s=Array(u),c=0;c<u;c++)s[c]=arguments[c];return r=i=d(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),i.removePortal=function(){!h&&a.default.unmountComponentAtNode(i.node);var e=v(i.props.parentSelector);e&&e.contains(i.node)?e.removeChild(i.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},i.portalRef=function(e){i.portal=e},i.renderPortal=function(e){var r=g()(i,o.default.createElement(l.default,n({defaultStyles:t.defaultStyles},e)),i.node);i.portalRef(r)},d(i,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){Zy.canUseDOM&&(h||(this.node=y("div")),this.node.className=this.props.portalClassName,v(this.props.parentSelector).appendChild(this.node),!h&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:v(e.parentSelector),nextParent:v(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(Zy.canUseDOM){var r=this.props,o=r.isOpen,a=r.portalClassName;e.portalClassName!==a&&(this.node.className=a);var i=n.prevParent,l=n.nextParent;l!==i&&(i.removeChild(this.node),l.appendChild(this.node)),(e.isOpen||o)&&!h&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(Zy.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return Zy.canUseDOM&&h?(!this.node&&h&&(this.node=y("div")),g()(o.default.createElement(l.default,n({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){u.setElement(e)}}]),t}(cr.Component);b.propTypes={isOpen:i.default.bool.isRequired,style:i.default.shape({content:i.default.object,overlay:i.default.object}),portalClassName:i.default.string,bodyOpenClassName:i.default.string,htmlOpenClassName:i.default.string,className:i.default.oneOfType([i.default.string,i.default.shape({base:i.default.string.isRequired,afterOpen:i.default.string.isRequired,beforeClose:i.default.string.isRequired})]),overlayClassName:i.default.oneOfType([i.default.string,i.default.shape({base:i.default.string.isRequired,afterOpen:i.default.string.isRequired,beforeClose:i.default.string.isRequired})]),appElement:i.default.oneOfType([i.default.instanceOf(s.default),i.default.instanceOf(Zy.SafeHTMLCollection),i.default.instanceOf(Zy.SafeNodeList),i.default.arrayOf(i.default.instanceOf(s.default))]),onAfterOpen:i.default.func,onRequestClose:i.default.func,closeTimeoutMS:i.default.number,ariaHideApp:i.default.bool,shouldFocusAfterRender:i.default.bool,shouldCloseOnOverlayClick:i.default.bool,shouldReturnFocusAfterClose:i.default.bool,preventScroll:i.default.bool,parentSelector:i.default.func,aria:i.default.object,data:i.default.object,role:i.default.string,contentLabel:i.default.string,shouldCloseOnEsc:i.default.bool,overlayRef:i.default.func,contentRef:i.default.func,id:i.default.string,overlayElement:i.default.func,contentElement:i.default.func},b.defaultProps={isOpen:!1,portalClassName:p,bodyOpenClassName:m,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return o.default.createElement("div",e,t)},contentElement:function(e,t){return o.default.createElement("div",e,t)}},b.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},function(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,r=null,o=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?o="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(o="UNSAFE_componentWillUpdate"),null!==n||null!==r||null!==o)throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+(e.displayName||e.name)+" uses "+("function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()")+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==r?"\n "+r:"")+(null!==o?"\n "+o:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks");if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=rg,t.componentWillReceiveProps=og),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=ag;var a=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){a.call(this,e,t,this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n)}}}(b),t.default=b}),lg=d(p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n,r=(n=ig)&&n.__esModule?n:{default:n};t.default=r.default,e.exports=t.default})),ug=p(function(e){!function(t){var n,r,o=!1;function a(e){if("undefined"!=typeof document&&!o){var t=document.documentElement;r=window.pageYOffset,t.style.width=document.documentElement.scrollHeight>window.innerHeight?"calc(100% - "+function(){if(void 0!==n)return n;var e=document.documentElement,t=document.createElement("div");return t.setAttribute("style","width:99px;height:99px;position:absolute;top:-9999px;overflow:scroll;"),e.appendChild(t),n=t.offsetWidth-t.clientWidth,e.removeChild(t),n}()+"px)":"100%",t.style.position="fixed",t.style.top=-r+"px",t.style.overflow="hidden",o=!0}}function i(){if("undefined"!=typeof document&&o){var e=document.documentElement;e.style.width="",e.style.position="",e.style.top="",e.style.overflow="",window.scroll(0,r),o=!1}}e.exports={on:a,off:i,toggle:function(){o?i():a()}}}()});function sg(e){var t=e.color;return cr.createElement("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},cr.createElement("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===t?"#fff":t}))}var cg=["children","isOpen","onClose","className","contentClassName","scrollable"],fg=function(e){var t,n=e.children,r=e.isOpen,o=e.onClose,a=e.className,i=e.contentClassName,l=e.scrollable,u=void 0!==l&&l,s=my(e,cg);return lg.setAppElement("body"),cr.createElement(lg,Object.assign({className:gy("_D8SjB",a),overlayClassName:"_1yxCb",onAfterOpen:function(){ug.on()},onAfterClose:function(){ug.off()},onRequestClose:o,isOpen:r,shouldCloseOnOverlayClick:!0,shouldCloseOnEsc:!0},s),cr.createElement("div",{className:"_12LLh"},cr.createElement("button",{onClick:o,className:gy("_3YRro",by.closeButton),"data-testid":"modal-close-button"},cr.createElement(sg,null))),cr.createElement("div",{className:gy("_ocM9x",i,(t={},t._1GP2F=u,t))},n))},dg=p(function(e,t){var n;n=e=>(()=>{var t={"./node_modules/css-mediaquery/index.js":(e,t)=>{t.match=function(e,t){return l(e).some(function(e){var n=e.inverse,r="all"===e.type||t.type===e.type;if(r&&n||!r&&!n)return!1;var o=e.expressions.every(function(e){var n=e.feature,r=e.modifier,o=e.value,a=t[n];if(!a)return!1;switch(n){case"orientation":case"scan":return a.toLowerCase()===o.toLowerCase();case"width":case"height":case"device-width":case"device-height":o=c(o),a=c(a);break;case"resolution":o=s(o),a=s(a);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":o=u(o),a=u(a);break;case"grid":case"color":case"color-index":case"monochrome":o=parseInt(o,10)||1,a=parseInt(a,10)||0}switch(r){case"min":return a>=o;case"max":return a<=o;default:return a===o}});return o&&!n||!o&&n})},t.parse=l;var n=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,r=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,o=/^(?:(min|max)-)?(.+)/,a=/(em|rem|px|cm|mm|in|pt|pc)?$/,i=/(dpi|dpcm|dppx)?$/;function l(e){return e.split(",").map(function(e){var t=(e=e.trim()).match(n),a=t[1],i=t[2],l=t[3]||"",u={};return u.inverse=!!a&&"not"===a.toLowerCase(),u.type=i?i.toLowerCase():"all",l=l.match(/\([^\)]+\)/g)||[],u.expressions=l.map(function(e){var t=e.match(r),n=t[1].toLowerCase().match(o);return{modifier:n[1],feature:n[2],value:t[2]}}),u})}function u(e){var t,n=Number(e);return n||(n=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),n}function s(e){var t=parseFloat(e);switch(String(e).match(i)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function c(e){var t=parseFloat(e);switch(String(e).match(a)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},"./node_modules/hyphenate-style-name/index.js":(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});var r=/[A-Z]/g,o=/^ms-/,a={};function i(e){return"-"+e.toLowerCase()}const l=function(e){if(a.hasOwnProperty(e))return a[e];var t=e.replace(r,i);return a[e]=o.test(t)?"-"+t:t}},"./node_modules/matchmediaquery/index.js":(e,t,n)=>{var r=n("./node_modules/css-mediaquery/index.js").match,o="undefined"!=typeof window?window.matchMedia:null;function a(e,t,n){var a=this;if(o&&!n){var i=o.call(window,e);this.matches=i.matches,this.media=i.media,i.addListener(l)}else this.matches=r(e,t),this.media=e;function l(e){a.matches=e.matches,a.media=e.media}this.addListener=function(e){i&&i.addListener(e)},this.removeListener=function(e){i&&i.removeListener(e)},this.dispose=function(){i&&i.removeListener(l)}}e.exports=function(e,t,n){return new a(e,t,n)}},"./node_modules/object-assign/index.js":e=>{var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,a){for(var i,l,u=o(e),s=1;s<arguments.length;s++){for(var c in i=Object(arguments[s]))n.call(i,c)&&(u[c]=i[c]);if(t){l=t(i);for(var f=0;f<l.length;f++)r.call(i,l[f])&&(u[l[f]]=i[l[f]])}}return u}},"./node_modules/prop-types/checkPropTypes.js":(e,t,n)=>{var r,o=n("./node_modules/prop-types/lib/ReactPropTypesSecret.js"),a={},i=n("./node_modules/prop-types/lib/has.js");function l(e,t,n,l,u){for(var s in e)if(i(e,s)){var c;try{if("function"!=typeof e[s]){var f=Error((l||"React class")+": "+n+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}c=e[s](t,s,l,n,null,o)}catch(e){c=e}if(!c||c instanceof Error||r((l||"React class")+": type specification of "+n+" `"+s+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof c+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),c instanceof Error&&!(c.message in a)){a[c.message]=!0;var d=u?u():"";r("Failed "+n+" type: "+c.message+(null!=d?d:""))}}}r=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}},l.resetWarningCache=function(){a={}},e.exports=l},"./node_modules/prop-types/factoryWithTypeCheckers.js":(e,t,n)=>{var r,o=n("./node_modules/react-is/index.js"),a=n("./node_modules/object-assign/index.js"),i=n("./node_modules/prop-types/lib/ReactPropTypesSecret.js"),l=n("./node_modules/prop-types/lib/has.js"),u=n("./node_modules/prop-types/checkPropTypes.js");function s(){return null}r=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}},e.exports=function(e,t){var n="function"==typeof Symbol&&Symbol.iterator,c={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:p(s),arrayOf:function(e){return p(function(t,n,r,o,a){if("function"!=typeof e)return new d("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var l=t[n];if(!Array.isArray(l))return new d("Invalid "+o+" `"+a+"` of type `"+g(l)+"` supplied to `"+r+"`, expected an array.");for(var u=0;u<l.length;u++){var s=e(l,u,r,o,a+"["+u+"]",i);if(s instanceof Error)return s}return null})},element:p(function(t,n,r,o,a){var i=t[n];return e(i)?null:new d("Invalid "+o+" `"+a+"` of type `"+g(i)+"` supplied to `"+r+"`, expected a single ReactElement.")}),elementType:p(function(e,t,n,r,a){var i=e[t];return o.isValidElementType(i)?null:new d("Invalid "+r+" `"+a+"` of type `"+g(i)+"` supplied to `"+n+"`, expected a single ReactElement type.")}),instanceOf:function(e){return p(function(t,n,r,o,a){var i;return t[n]instanceof e?null:new d("Invalid "+o+" `"+a+"` of type `"+((i=t[n]).constructor&&i.constructor.name?i.constructor.name:"<<anonymous>>")+"` supplied to `"+r+"`, expected instance of `"+(e.name||"<<anonymous>>")+"`.")})},node:p(function(e,t,n,r,o){return y(e[t])?null:new d("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")}),objectOf:function(e){return p(function(t,n,r,o,a){if("function"!=typeof e)return new d("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var u=t[n],s=g(u);if("object"!==s)return new d("Invalid "+o+" `"+a+"` of type `"+s+"` supplied to `"+r+"`, expected an object.");for(var c in u)if(l(u,c)){var f=e(u,c,r,o,a+"."+c,i);if(f instanceof Error)return f}return null})},oneOf:function(e){if(!Array.isArray(e))return r(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),s;function t(t,n,r,o,a){for(var i=t[n],l=0;l<e.length;l++)if(f(i,e[l]))return null;var u=JSON.stringify(e,function(e,t){return"symbol"===v(t)?String(t):t});return new d("Invalid "+o+" `"+a+"` of value `"+String(i)+"` supplied to `"+r+"`, expected one of "+u+".")}return p(t)},oneOfType:function(e){if(!Array.isArray(e))return r("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)return r("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+b(n)+" at index "+t+"."),s}return p(function(t,n,r,o,a){for(var u=[],s=0;s<e.length;s++){var c=(0,e[s])(t,n,r,o,a,i);if(null==c)return null;c.data&&l(c.data,"expectedType")&&u.push(c.data.expectedType)}return new d("Invalid "+o+" `"+a+"` supplied to `"+r+"`"+(u.length>0?", expected one of type ["+u.join(", ")+"]":"")+".")})},shape:function(e){return p(function(t,n,r,o,a){var l=t[n],u=g(l);if("object"!==u)return new d("Invalid "+o+" `"+a+"` of type `"+u+"` supplied to `"+r+"`, expected `object`.");for(var s in e){var c=e[s];if("function"!=typeof c)return h(r,o,a,s,v(c));var f=c(l,s,r,o,a+"."+s,i);if(f)return f}return null})},exact:function(e){return p(function(t,n,r,o,u){var s=t[n],c=g(s);if("object"!==c)return new d("Invalid "+o+" `"+u+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");var f=a({},t[n],e);for(var p in f){var m=e[p];if(l(e,p)&&"function"!=typeof m)return h(r,o,u,p,v(m));if(!m)return new d("Invalid "+o+" `"+u+"` key `"+p+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var y=m(s,p,r,o,u+"."+p,i);if(y)return y}return null})}};function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function p(e){var n={},o=0;function a(a,l,u,s,c,f,p){if(s=s||"<<anonymous>>",f=f||u,p!==i){if(t){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}if("undefined"!=typeof console){var h=s+":"+u;!n[h]&&o<3&&(r("You are manually calling a React.PropTypes validation function for the `"+f+"` prop on `"+s+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[h]=!0,o++)}}return null==l[u]?a?new d(null===l[u]?"The "+c+" `"+f+"` is marked as required in `"+s+"`, but its value is `null`.":"The "+c+" `"+f+"` is marked as required in `"+s+"`, but its value is `undefined`."):null:e(l,u,s,c,f)}var l=a.bind(null,!1);return l.isRequired=a.bind(null,!0),l}function m(e){return p(function(t,n,r,o,a,i){var l=t[n];return g(l)!==e?new d("Invalid "+o+" `"+a+"` of type `"+v(l)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null})}function h(e,t,n,r,o){return new d((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function y(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(y);if(null===t||e(t))return!0;var r=function(e){var t=e&&(n&&e[n]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(!r)return!1;var o,a=r.call(t);if(r!==t.entries){for(;!(o=a.next()).done;)if(!y(o.value))return!1}else for(;!(o=a.next()).done;){var i=o.value;if(i&&!y(i[1]))return!1}return!0;default:return!1}}function g(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function v(e){if(null==e)return""+e;var t=g(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function b(e){var t=v(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return d.prototype=Error.prototype,c.checkPropTypes=u,c.resetWarningCache=u.resetWarningCache,c.PropTypes=c,c}},"./node_modules/prop-types/index.js":(e,t,n)=>{var r=n("./node_modules/react-is/index.js");e.exports=n("./node_modules/prop-types/factoryWithTypeCheckers.js")(r.isElement,!0)},"./node_modules/prop-types/lib/ReactPropTypesSecret.js":e=>{e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},"./node_modules/prop-types/lib/has.js":e=>{e.exports=Function.call.bind(Object.prototype.hasOwnProperty)},"./node_modules/react-is/cjs/react-is.development.js":(e,t)=>{!function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case s:case c:case o:case i:case a:case d:return p;default:var y=p&&p.$$typeof;switch(y){case u:case f:case h:case m:case l:return y;default:return t}}case r:return t}}}var w=c,S=u,_=l,C=n,O=f,k=o,P=h,T=m,x=r,A=i,N=a,M=d,L=!1;function R(e){return E(e)===c}t.AsyncMode=s,t.ConcurrentMode=w,t.ContextConsumer=S,t.ContextProvider=_,t.Element=C,t.ForwardRef=O,t.Fragment=k,t.Lazy=P,t.Memo=T,t.Portal=x,t.Profiler=A,t.StrictMode=N,t.Suspense=M,t.isAsyncMode=function(e){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),R(e)||E(e)===s},t.isConcurrentMode=R,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return E(e)===f},t.isFragment=function(e){return E(e)===o},t.isLazy=function(e){return E(e)===h},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===r},t.isProfiler=function(e){return E(e)===i},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===c||e===i||e===a||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===g||e.$$typeof===v||e.$$typeof===b||e.$$typeof===y)},t.typeOf=E}()},"./node_modules/react-is/index.js":(e,t,n)=>{e.exports=n("./node_modules/react-is/cjs/react-is.development.js")},"./node_modules/shallow-equal/dist/index.esm.js":(e,t,n)=>{function r(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var a=0;a<o;a++){var i=n[a];if(e[i]!==t[i]||!Object.prototype.hasOwnProperty.call(t,i))return!1}return!0}function o(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}n.r(t),n.d(t,{shallowEqualArrays:()=>o,shallowEqualObjects:()=>r})},"./src/Component.ts":function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=o(n("./src/useMediaQuery.ts"));t.default=function(e){var t=e.children,n=e.device,o=e.onChange,i=r(e,["children","device","onChange"]),l=(0,a.default)(i,n,o);return"function"==typeof t?t(l):l?t:null}},"./src/Context.ts":(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var r=(0,n("react").createContext)(void 0);t.default=r},"./src/index.ts":function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Context=t.toQuery=t.useMediaQuery=t.default=void 0;var o=r(n("./src/useMediaQuery.ts"));t.useMediaQuery=o.default;var a=r(n("./src/Component.ts"));t.default=a.default;var i=r(n("./src/toQuery.ts"));t.toQuery=i.default;var l=r(n("./src/Context.ts"));t.Context=l.default},"./src/mediaQuery.ts":function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=a(n("./node_modules/prop-types/index.js")),l=i.default.oneOfType([i.default.string,i.default.number]),u={all:i.default.bool,grid:i.default.bool,aural:i.default.bool,braille:i.default.bool,handheld:i.default.bool,print:i.default.bool,projection:i.default.bool,screen:i.default.bool,tty:i.default.bool,tv:i.default.bool,embossed:i.default.bool},s={orientation:i.default.oneOf(["portrait","landscape"]),scan:i.default.oneOf(["progressive","interlace"]),aspectRatio:i.default.string,deviceAspectRatio:i.default.string,height:l,deviceHeight:l,width:l,deviceWidth:l,color:i.default.bool,colorIndex:i.default.bool,monochrome:i.default.bool,resolution:l,type:Object.keys(u)},c=o(s,["type"]),f=r({minAspectRatio:i.default.string,maxAspectRatio:i.default.string,minDeviceAspectRatio:i.default.string,maxDeviceAspectRatio:i.default.string,minHeight:l,maxHeight:l,minDeviceHeight:l,maxDeviceHeight:l,minWidth:l,maxWidth:l,minDeviceWidth:l,maxDeviceWidth:l,minColor:i.default.number,maxColor:i.default.number,minColorIndex:i.default.number,maxColorIndex:i.default.number,minMonochrome:i.default.number,maxMonochrome:i.default.number,minResolution:l,maxResolution:l},c),d=r(r({},u),f);t.default={all:d,types:u,matchers:s,features:f}},"./src/toQuery.ts":function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n("./node_modules/hyphenate-style-name/index.js")),a=r(n("./src/mediaQuery.ts"));t.default=function(e){var t=[];return Object.keys(a.default.all).forEach(function(n){var r=e[n];null!=r&&t.push(function(e,t){var n=(0,o.default)(e);return"number"==typeof t&&(t="".concat(t,"px")),!0===t?n:!1===t?"not ".concat(n):"(".concat(n,": ").concat(t,")")}(n,r))}),t.join(" and ")}},"./src/useMediaQuery.ts":function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n("react"),a=r(n("./node_modules/matchmediaquery/index.js")),i=r(n("./node_modules/hyphenate-style-name/index.js")),l=n("./node_modules/shallow-equal/dist/index.esm.js"),u=r(n("./src/toQuery.ts")),s=r(n("./src/Context.ts")),c=function(e){if(e)return Object.keys(e).reduce(function(t,n){return t[(0,i.default)(n)]=e[n],t},{})},f=function(){var e=(0,o.useRef)(!1);return(0,o.useEffect)(function(){e.current=!0},[]),e.current};t.default=function(e,t,n){var r=function(e){var t=(0,o.useContext)(s.default),n=function(){return c(e)||c(t)},r=(0,o.useState)(n),a=r[0],i=r[1];return(0,o.useEffect)(function(){var e=n();(0,l.shallowEqualObjects)(a,e)||i(e)},[e,t]),a}(t),i=function(e){var t=function(){return function(e){return e.query||(0,u.default)(e)}(e)},n=(0,o.useState)(t),r=n[0],a=n[1];return(0,o.useEffect)(function(){var e=t();r!==e&&a(e)},[e]),r}(e);if(!i)throw new Error("Invalid or missing MediaQuery!");var d=function(e,t){var n=function(){return(0,a.default)(e,t||{},!!t)},r=(0,o.useState)(n),i=r[0],l=r[1],u=f();return(0,o.useEffect)(function(){if(u){var e=n();return l(e),function(){e&&e.dispose()}}},[e,t]),i}(i,r),p=function(e){var t=(0,o.useState)(e.matches),n=t[0],r=t[1];return(0,o.useEffect)(function(){var t=function(e){r(e.matches)};return e.addListener(t),r(e.matches),function(){e.removeListener(t)}},[e]),n}(d),m=f();return(0,o.useEffect)(function(){m&&n&&n(p)},[p]),(0,o.useEffect)(function(){return function(){d&&d.dispose()}},[]),p}},react:t=>{t.exports=e}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={exports:{}};return t[e].call(a.exports,a,a.exports,r),a.exports}return r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r("./src/index.ts")})(),e.exports=n(cr)});function pg(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function mg(e){pg(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function hg(e){pg(1,arguments);var t=mg(e);return t.setHours(0,0,0,0),t}function yg(e,t){pg(2,arguments);var n=hg(e),r=hg(t);return n.getTime()===r.getTime()}function gg(e){return pg(1,arguments),1e3*e}var vg,bg,Eg,wg=function(e){var t=e.deferred_days,n=e.deferred_months,r=e.installments_count;return 1!==r||t||n?1===r&&t?cr.createElement(ai,{id:"payment-plan-strings.day-abbreviation",defaultMessage:"J{deferredDays}",values:{deferredDays:"+"+t}}):1===r&&n?cr.createElement(ai,{id:"payment-plan-strings.month-abbreviation",defaultMessage:"M{deferredMonths}",values:{deferredMonths:"+"+n}}):r+"x":cr.createElement(ai,{id:"payment-plan-strings.pay.now.button",defaultMessage:"Payer maintenant"})},Sg=function(e){var t;if(null!=(t=e.payment_plan)&&t.every(function(e){return 0===e.customer_fee&&0===e.customer_interest}))return cr.createElement(cr.Fragment,null," ",cr.createElement(ai,{id:"payment-plan-strings.no-fee",defaultMessage:"(sans frais)"}))},_g=function(e){var t=e.eligibilityPlans,n=e.currentPlanIndex,r=e.setCurrentPlanIndex;return cr.createElement("div",{className:gy("_1l2Oa",by.eligibilityOptions)},t.map(function(e,t){var o;return cr.createElement("button",{key:t,className:gy((o={},o[gy("_3rue7",by.activeOption)]=t===n,o)),onClick:function(){return r(t)}},cr.createElement("span",{className:"_2T78a"},wg(e)))}))},Cg=function(e){var t,n,r=e.installment,o=e.index;return cr.createElement("div",{className:"_z2Uiv","data-testid":"installment-"+o},cr.createElement("div",{className:"_2lJQy"},cr.createElement("div",{className:gy("_1Z9wr",(t={},t._2Nmkl=0===o,t))}),function(e){return pg(1,arguments),yg(e,Date.now())}(1e3*r.due_date)?cr.createElement(ai,{id:"installments.today",defaultMessage:"Aujourd'hui",tagName:"strong"}):cr.createElement(ii,{value:1e3*r.due_date,day:"numeric",month:"long",year:"numeric"})),cr.createElement("div",{className:gy((n={},n["_ezY-3"]=0===o,n))},cr.createElement(li,{value:r.total_amount/100,style:"currency",currency:"EUR"})))},Og=function(e){var t=e.currentPlan,n=t.installments_count>4;return cr.createElement(cr.Fragment,null,cr.createElement("div",{className:gy("_MPKjS",by.scheduleDetails),"data-testid":"modal-installments-element"},((null==t?void 0:t.payment_plan)||[]).map(function(e,t){return cr.createElement(Cg,{key:1e3*e.due_date,installment:e,index:t})}),n&&cr.createElement("div",{className:"_3a7er"},cr.createElement(ai,{id:"credit-features.information",defaultMessage:"Un crédit vous engage et doit être remboursé. Vérifiez vos capacités de remboursement avant de vous engager."}))))},kg=["color"],Pg=function(e){var t=e.color,n=void 0===t?"#FA5022":t,r=my(e,kg);return cr.createElement("svg",Object.assign({width:"50",height:"25",viewBox:"0 0 360 109",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),cr.createElement("path",{d:"M333.24 28.3462V38.4459C327.504 31.1018 319.176 26.5132 309.288 26.5132C290.208 26.5132 275.424 43.5497 275.424 64.5757C275.424 85.6018 290.208 102.638 309.288 102.638C319.872 102.638 328.668 97.3908 334.416 89.1241V100.817H352.668V28.3462H333.24ZM314.028 84.4876C303.42 84.4876 294.828 75.574 294.828 64.5757C294.828 53.5775 303.42 44.6639 314.028 44.6639C324.636 44.6639 333.228 53.5775 333.228 64.5757C333.228 75.574 324.636 84.4876 314.028 84.4876ZM109.5 8.23073H128.916V100.805H109.5V8.23073ZM151.248 59.7356C151.248 39.8117 163.5 26.5252 180.468 26.5252C191.004 26.5252 199.332 31.1976 204.348 39.1648C209.376 31.1976 217.692 26.5252 228.228 26.5252C245.196 26.5252 257.448 39.8117 257.448 59.7356V100.817H238.032V57.639C238.032 49.8635 232.872 44.7957 226.044 44.7957C219.216 44.7957 214.056 49.8755 214.056 57.639V100.817H194.64V57.639C194.64 49.8635 189.48 44.7957 182.652 44.7957C175.824 44.7957 170.664 49.8755 170.664 57.639V100.817H151.248V59.7356ZM74.34 29.101C69.744 11.9088 60.0241 6.40967 50.772 6.40967C41.5201 6.40967 31.8 11.9088 27.204 29.101L7.24805 100.829H26.916C30.12 88.8485 39.996 82.1753 50.772 82.1753C61.548 82.1753 71.424 88.8605 74.6281 100.829H94.3081L74.34 29.101ZM50.772 65.4623C44.508 65.4623 38.8321 67.8345 34.6441 71.6803L45.924 29.9397C47.0041 25.9501 48.6001 24.6802 50.784 24.6802C52.9681 24.6802 54.5641 25.9501 55.6441 29.9397L66.912 71.6803C62.724 67.8345 57.036 65.4623 50.772 65.4623Z",fill:n}))},Tg=function(){return cr.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"16",viewBox:"0 0 24 16"},cr.createElement("defs",null,cr.createElement("linearGradient",{id:"cardamex",x1:"10.914%",x2:"87.432%",y1:"86.279%",y2:"15.035%"},cr.createElement("stop",{offset:"0%",stopColor:"#3FA9F5"}),cr.createElement("stop",{offset:"100%",stopColor:"#0071BC"}))),cr.createElement("g",{fill:"none",fillRule:"evenodd"},cr.createElement("path",{fill:"url(#cardamex)",fillRule:"nonzero",d:"M22.559 16H1.379C.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.441 1.338z"}),cr.createElement("g",{fill:"#FFF"},cr.createElement("path",{d:"M10.115 8.711L8.889 6.044H7.295v3.852L5.517 6.044H4.17l-1.778 4.03h1.103l.368-.889h2.023l.368.89h2.084V7.11l1.349 2.963h.92l1.348-2.904v2.904h.98v-4.03H11.28l-1.165 2.667zm-5.272-.474H4.23l.613-1.422v.06l.613 1.362h-.613z"}),cr.createElement("path",{fillRule:"nonzero",d:"M19.372 7.94l.735-.77 1.042-1.185h-1.287L18.697 7.23l-1.164-1.245h-3.985v3.97h3.923l1.226-1.303 1.165 1.304h1.287L20.107 8.71l-.735-.77zM16.92 9.186h-2.33v-.77h2.268v-.77H14.59v-.712h2.33L18.084 8 16.92 9.185z"}))))},xg=function(){return cr.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"16",viewBox:"0 0 24 16"},cr.createElement("g",{fill:"none",fillRule:"nonzero"},cr.createElement("path",{fill:"#FCFCFC",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"})," ",cr.createElement("path",{fill:"#005098",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"}),cr.createElement("path",{fill:"#F6A500",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"}),cr.createElement("path",{fill:"#0A5296",d:"M23.937 3.23H0V1.316C0 .598.627 0 1.379 0H22.62C23.373 0 24 .598 24 1.316V3.23h-.063z"}),cr.createElement("path",{fill:"#F4A428",d:"M.063 13H24v1.8c0 .655-.625 1.2-1.375 1.2H1.375C.625 16 0 15.455 0 14.8V13h.063z"})))},Ag=function(){return cr.createElement("svg",{width:"24px",height:"16px",viewBox:"0 0 24 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},cr.createElement("g",{id:"Parcours-1C-B",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},cr.createElement("g",{id:"mobile-1C-Paiement-V1",transform:"translate(-269.000000, -313.000000)"},cr.createElement("g",{id:"mastercard",transform:"translate(269.000000, 313.000000)"},cr.createElement("rect",{id:"Rectangle",fill:"#FFFFFF",x:"0",y:"0",width:"24",height:"16",rx:"1"}),cr.createElement("g",{id:"Group-6",transform:"translate(4.000000, 3.000000)"},cr.createElement("circle",{id:"Oval-4-Copy",fill:"#EA001B",cx:"5.05263158",cy:"5.05263158",r:"5.05263158"}),cr.createElement("circle",{id:"Oval-4",fillOpacity:"0.25",fill:"#F79F1A",cx:"10.9473684",cy:"5.05263158",r:"5.05263158"}),cr.createElement("circle",{id:"Oval-4-Copy-2",fillOpacity:"0.9",fill:"#F79F1A",cx:"10.9473684",cy:"5.05263158",r:"5.05263158"}),cr.createElement("circle",{id:"Oval-4-Copy-3",fillOpacity:"0.3",fill:"#EA001B",cx:"5.05263158",cy:"5.05263158",r:"5.05263158"}))))))},Ng=function(){return cr.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"16",viewBox:"0 0 24 16"},cr.createElement("defs",null,cr.createElement("linearGradient",{id:"cardcb",x1:"5.842%",x2:"95.393%",y1:"81.753%",y2:"17.344%"},cr.createElement("stop",{offset:"0%",stopColor:"#39B54A"})," ",cr.createElement("stop",{offset:"100%",stopColor:"#0A5296"}))),cr.createElement("g",{fill:"none",fillRule:"nonzero"},cr.createElement("path",{fill:"url(#cardcb)",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"}),cr.createElement("g",{fill:"#FFF"},cr.createElement("path",{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"}))))},Mg={cardContainer:"_1N3yO"},Lg=function(e){var t=Array.from(new Set(e.cards));return cr.createElement("div",{"data-testid":"card-logos",className:gy(Mg.cardContainer,by.cardContainer)},t.map(function(e){return cr.createElement("div",{key:e,className:Mg.card,"data-testid":"card-logo-"+e},"cb"===e&&cr.createElement(Ng,null),"amex"===e&&cr.createElement(Tg,null),"mastercard"===e&&cr.createElement(Ag,null),"visa"===e&&cr.createElement(xg,null))}))},Rg=function(e){var t=e.isCurrentPlanP1X;return cr.createElement("div",{className:gy("_180ro",by.info),"data-testid":"modal-info-element"},cr.createElement("div",{className:"_1HqCO"},cr.createElement("div",{className:gy("_3B8wx",by.bullet)},"1"),cr.createElement("div",{className:by.infoMessage},cr.createElement(ai,t?{id:"eligibility-modal.p1x-bullet-1",defaultMessage:"Choisissez <strong>Alma - Payer maintenant</strong> au moment du paiement.",values:{strong:function(){return cr.createElement("strong",null,[].slice.call(arguments))}}}:{id:"eligibility-modal.bullet-1",defaultMessage:"Choisissez <strong>Alma</strong> au moment du paiement.",values:{strong:function(){return cr.createElement("strong",null,[].slice.call(arguments))}}}))),cr.createElement("div",{className:"_1HqCO"},cr.createElement("div",{className:gy("_3B8wx",by.bullet)},"2"),cr.createElement("div",{className:by.infoMessage},cr.createElement(ai,t?{id:"eligibility-modal.p1x-bullet-2",defaultMessage:"Renseignez les informations de votre <strong>carte bancaire.</strong>",values:{strong:function(){return cr.createElement("strong",null,[].slice.call(arguments))}}}:{id:"eligibility-modal.bullet-2",defaultMessage:"Laissez-vous guider et validez votre paiement en <strong>2 minutes.</strong>",values:{strong:function(){return cr.createElement("strong",null,[].slice.call(arguments))}}}))),cr.createElement("div",{className:"_1HqCO"},cr.createElement("div",{className:gy("_3B8wx",by.bullet)},"3"),cr.createElement("div",{className:by.infoMessage},cr.createElement(ai,t?{id:"eligibility-modal.p1x-bullet-3",defaultMessage:"<strong>La validation </strong> de votre paiement est instantanée !",values:{strong:function(){return cr.createElement("strong",null,[].slice.call(arguments))}}}:{id:"eligibility-modal.bullet-3",defaultMessage:"<strong>Gardez le contrôle</strong> en avançant ou reculant vos échéances à votre rythme.",values:{strong:function(){return cr.createElement("strong",null,[].slice.call(arguments))}}}))))},Ig=function(e){var t=e.isSomePlanDeferred,n=e.isCurrentPlanP1X;return cr.createElement("div",{className:gy("_3ERx-",by.title),"data-testid":"modal-title-element"},cr.createElement(ai,t?{id:"eligibility-modal.title-deferred-plan",defaultMessage:"Payez en plusieurs fois ou plus tard par carte bancaire avec Alma."}:n?{id:"eligibility-modal.title-pay-now",defaultMessage:"Payez comptant par carte bancaire avec Alma."}:{id:"eligibility-modal.title-normal",defaultMessage:"Payez en plusieurs fois par carte bancaire avec Alma."}))},Dg=function(e){var t=e.children,n=e.isSomePlanDeferred,r=e.cards,o=e.isCurrentPlanP1X;return cr.createElement("div",{className:gy("_21g6u",by.desktopModal),"data-testid":"modal-container"},cr.createElement("aside",{className:gy(["_3zaP5","_2SBRC",by.leftSide])},cr.createElement(Ig,{isSomePlanDeferred:n,isCurrentPlanP1X:o}),cr.createElement(Rg,{isCurrentPlanP1X:o}),r&&cr.createElement(Lg,{cards:r}),cr.createElement(Pg,{className:"_xW3wt",width:"75"})),cr.createElement("div",{className:gy("_3zaP5",by.rightSide)},t))},Fg=function(e){var t=e.children,n=e.isSomePlanDeferred,r=e.cards,o=e.isCurrentPlanP1X;return cr.createElement("div",{className:gy("_2G7Ch",by.mobileModal),"data-testid":"modal-container"},cr.createElement(Ig,{isSomePlanDeferred:n,isCurrentPlanP1X:o}),t,cr.createElement(Rg,{isCurrentPlanP1X:o}),r&&cr.createElement(Lg,{cards:r}),cr.createElement(Pg,{className:"_2779r",width:"75"}))},jg=function(e){var t=e.onClose,n=e.eligibilityPlans,r=e.status,o=e.cards,a=cr.useState(e.initialPlanIndex||0),i=a[0],l=a[1],u=dg.useMediaQuery({minWidth:800})?Dg:Fg,s=n.filter(function(e){return e.eligible}),c=s[i],f=n.some(function(e){return e.deferred_days>0||e.deferred_months>0});return cr.createElement(fg,{onClose:t,ariaHideApp:!1,scrollable:!0,isOpen:!0},cr.createElement(u,{isSomePlanDeferred:f,cards:o,isCurrentPlanP1X:rr(c)},r===Zn.PENDING&&cr.createElement("div",{className:"_2oTJq"},cr.createElement(wy,null)),r===Zn.SUCCESS&&0===s.length&&cr.createElement("div",{className:"_17qNJ"},cr.createElement(ai,{id:"eligibility-modal.no-eligibility",defaultMessage:"Oups, il semblerait que la simulation n'ait pas fonctionné."})),r===Zn.SUCCESS&&s.length>=1&&cr.createElement(cr.Fragment,null,cr.createElement(_g,{eligibilityPlans:s,currentPlanIndex:i,setCurrentPlanIndex:l}),cr.createElement("div",{className:"_2u9rj"},cr.createElement("div",{className:"_VRdAU"}),cr.createElement(Og,{currentPlan:c}),cr.createElement(Ey,{currentPlan:c})))))},Hg=function(e){var t=e.onClose,n=e.cards,r=yy(e.purchaseAmount,e.apiData,e.configPlans,e.customerBillingCountry,e.customerShippingCountry);return cr.createElement(jg,{initialPlanIndex:0,onClose:t,eligibilityPlans:r[0],status:r[1],cards:n})},Bg=function(e){return cr.createElement("div",{className:gy("_2SwwZ",e.className),"data-testid":"loader"},cr.createElement("div",{className:"_2qODo"}),cr.createElement("div",{className:"_2YO01"}))},Ug="alma-payment-plans",zg={container:Ug+"-container",eligibilityLine:Ug+"-eligibility-line",eligibilityOptions:Ug+"-eligibility-options",notEligibleOption:Ug+"-not-eligible-option",paymentInfo:Ug+"-payment-info",activeOption:Ug+"-active-option"},Gg=function(e){var t,n,r,o,a=e.hideIfNotEligible,i=e.monochrome,l=e.suggestedPaymentPlan,u=e.cards,s=e.transitionDelay,c=e.hideBorder,f=void 0!==c&&c,d=e.onModalClose,p=yy(e.purchaseAmount,e.apiData,e.configPlans,e.customerBillingCountry,e.customerShippingCountry),m=p[0],h=p[1],y=m.filter(function(e){return e.eligible}),g=function(e){var t=e.suggestedPaymentPlan,n=e.eligibilityPlans,r=Array.isArray(t)?t:[t],o=function(e){var t=r[e],o=n.findIndex(function(e){return e.installments_count===t&&e.eligible&&!e.deferred_days&&!e.deferred_months});if(-1!==o)return{v:o}};for(var a in r){var i=o(a);if("object"==typeof i)return i.v}return 0}({eligibilityPlans:m,suggestedPaymentPlan:null!=l?l:0}),v=void 0!==l,b=void 0!==s,E=cr.useState(!1),w=E[0],S=E[1],_=m.reduce(function(e,t,n){return t.eligible?[].concat(e,[n]):e},[]),C=function(e,t){var n=cr.useState(0),r=n[0],o=n[1],a=cr.useState(!0),i=a[0],l=a[1];return cr.useEffect(function(){var n,a=!0;if(-1!==t)return 0!==e.length&&(!e.includes(r)&&i&&o(e[0]),n=setTimeout(function(){i&&a&&o(e[e.includes(r)?(e.indexOf(r)+1)%e.length:0])},t)),function(){a=!1,clearTimeout(n)}},[e,r]),{current:r,onHover:function(e){o(e),l(!1)},onLeave:function(){l(!0)}}}(_,b?null!=s?s:5500:v?36e5:5500),O=C.current,k=C.onHover,P=C.onLeave;return cr.useEffect(function(){h===Zn.SUCCESS&&v&&(k(g),P())},[h]),h===Zn.PENDING?cr.createElement("div",{className:gy("_TSkFv","_1ZDMS")},cr.createElement(Bg,null)):a&&0===y.length||0===m.length||h===Zn.FAILED?null:cr.createElement(cr.Fragment,null,cr.createElement("div",{onClick:function(e){e.preventDefault(),y.length>0&&S(!0)},className:gy("_TSkFv",(t={},t._UksZa=y.length>0,t["_1lr-q"]=0===y.length,t._3_qcn=f,t),zg.container),"data-testid":"widget-button"},cr.createElement("div",{className:gy("_bMClc",zg.eligibilityLine)},cr.createElement(Pg,{className:"_LJ4nZ",color:i?"var(--off-black)":void 0}),cr.createElement("div",{className:gy("_17c_S",zg.eligibilityOptions)},m.map(function(e,t){var n,r=t===O;return cr.createElement("div",{key:t,onMouseEnter:function(){return k(t)},onTouchStart:function(){return k(t)},onMouseOut:P,onTouchEnd:P,className:gy("_2Kqjn",(n={},n[gy("_3dG_J",zg.activeOption)]=r,n._2hx83=i&&r,n[gy("_3O1bg",zg.notEligibleOption)]=!e.eligible,n))},wg(e))}))),cr.createElement("div",{className:gy("_25GrF",(n={},n[gy("_3O1bg",zg.notEligibleOption)]=m[O]&&!m[O].eligible,n),zg.paymentInfo)},0!==m.length&&function(e){var t=e.installments_count,n=e.minAmount,r=void 0===n?0:n,o=e.maxAmount,a=void 0===o?0:o,i=e.payment_plan,l=e.deferred_days+30*e.deferred_months;if(!e.eligible)return cr.createElement(ai,e.purchase_amount>a?{id:"payment-plan-strings.ineligible-greater-than-max",defaultMessage:"Jusqu'à {maxAmount}",values:{maxAmount:cr.createElement(li,{value:tr(a),style:"currency",currency:"EUR"})}}:{id:"payment-plan-strings.ineligible-lower-than-min",defaultMessage:"À partir de {minAmount}",values:{minAmount:cr.createElement(li,{value:tr(r),style:"currency",currency:"EUR"})}});if(!i)throw Error("No payment plan provided for payment in "+t+" installments. Please contact us if you see this error.");if(0!==l&&1===t)return cr.createElement(cr.Fragment,null,cr.createElement(ai,{id:"payment-plan-strings.deferred",defaultMessage:"{totalAmount} à payer le {dueDate}",values:{totalAmount:cr.createElement(li,{value:tr(i[0].total_amount),style:"currency",currency:"EUR"}),dueDate:cr.createElement(ii,{value:gg(i[0].due_date),day:"numeric",month:"long",year:"numeric"})}}),Sg(e));if(t>0){var u=null==i?void 0:i.every(function(e,t){return 0===t||e.total_amount===i[0].total_amount});return rr(e)?cr.createElement(cr.Fragment,null,cr.createElement(ai,{id:"payment-plan-strings.pay-now",defaultMessage:"Payer maintenant {totalAmount}",values:{totalAmount:cr.createElement(li,{value:tr(i[0].total_amount),style:"currency",currency:"EUR"}),installmentsCount:t}}),Sg(e)):cr.createElement(cr.Fragment,null,cr.createElement(ai,u?{id:"payment-plan-strings.multiple-installments-same-amount",defaultMessage:"{installmentsCount} x {totalAmount}",values:{totalAmount:cr.createElement(li,{value:tr(i[0].total_amount),style:"currency",currency:"EUR"}),installmentsCount:t}}:{id:"payment-plan-strings.multiple-installments",defaultMessage:"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}}}",values:{firstInstallmentAmount:cr.createElement(li,{value:tr(i[0].total_amount),style:"currency",currency:"EUR"}),numberOfRemainingInstallments:t-1,othersInstallmentAmount:cr.createElement(li,{value:tr(i[1].total_amount),style:"currency",currency:"EUR"})}}),Sg(e))}return cr.createElement(ai,{id:"payment-plan-strings.default-message",defaultMessage:"Payez en plusieurs fois avec Alma"})}(m[O]))),w&&cr.createElement(jg,{initialPlanIndex:(r=O,o=_.findIndex(function(e){return e===r}),-1===o?0:o),onClose:function(e){S(!1),d&&d(e)},eligibilityPlans:y,status:h,cards:u}))},Vg=function(){function e(e){this.apiData=e}return e.prototype.add=function(e,t){var n=this,r=document.querySelector(t.container);if(r&&dy.unmountComponentAtNode(r),e===Yn.PaymentPlans){var o=t.container,a=t.hideBorder,i=t.monochrome,l=t.locale;r&&dy.render(cr.createElement(yi,{locale:void 0===l?Jn.en:l},cr.createElement(Gg,{apiData:this.apiData,configPlans:t.plans,hideIfNotEligible:t.hideIfNotEligible,monochrome:void 0===i||i,purchaseAmount:t.purchaseAmount,suggestedPaymentPlan:t.suggestedPaymentPlan,cards:t.cards,customerBillingCountry:t.customerBillingCountry,customerShippingCountry:t.customerShippingCountry,transitionDelay:t.transitionDelay,hideBorder:void 0!==a&&a,onModalClose:t.onModalClose})),document.querySelector(o))}if(e===Yn.Modal){var u,s=t.container,c=t.clickableSelector,f=t.purchaseAmount,d=t.plans,p=t.locale,m=void 0===p?Jn.en:p,h=t.customerBillingCountry,y=t.customerShippingCountry,g=t.cards,v=t.onClose,b=function(e){r&&(dy.unmountComponentAtNode(r),v&&v(e))},E=function(){dy.render(cr.createElement(yi,{locale:m},cr.createElement(Hg,{purchaseAmount:f,apiData:n.apiData,configPlans:d,customerBillingCountry:h,customerShippingCountry:y,onClose:b,cards:g})),document.querySelector(s))};return c&&(null==(u=document.querySelector(c))||u.addEventListener("click",E,!1)),{open:E,close:b}}},e}();(vg=e.ApiMode||(e.ApiMode={})).LIVE="https://api.getalma.eu",vg.TEST="https://api.sandbox.getalma.eu",(bg=e.Widgets||(e.Widgets={})).initialize=function(e,t){return new Vg({domain:t,merchantId:e})},bg.PaymentPlans=Yn.PaymentPlans,bg.Modal=Yn.Modal,(Eg=e.Utils||(e.Utils={})).priceToCents=function(e){return Math.round(100*e)},Eg.priceFromCents=tr,Eg.formatCents=function(e){return String(tr(e)).replace(".",",")}});
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).Alma={})}(this,function(e){var t=function(e){try{return!!e()}catch(e){return!0}},n=!t(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),r=Function.prototype,a=r.call,o=n&&r.bind.bind(a,a),i=n?function(e){return e&&o(e)}:function(e){return e&&function(){return a.apply(e,arguments)}},l=Math.ceil,u=Math.floor,s=Math.trunc||function(e){var t=+e;return(t>0?u:l)(t)},c=function(e){var t=+e;return t!=t||0===t?0:s(t)},f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function p(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},n.exports),n.exports}var m,h,y=function(e){return e&&e.Math==Math&&e},g=y("object"==typeof globalThis&&globalThis)||y("object"==typeof window&&window)||y("object"==typeof self&&self)||y("object"==typeof f&&f)||function(){return this}()||Function("return this")(),v=Object.defineProperty,b=function(e,t){try{v(g,e,{value:t,configurable:!0,writable:!0})}catch(n){g[e]=t}return t},E=g["__core-js_shared__"]||b("__core-js_shared__",{}),w=p(function(e){(e.exports=function(e,t){return E[e]||(E[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.22.8",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.8/LICENSE",source:"https://github.com/zloirock/core-js"})}),S=TypeError,_=function(e){if(null==e)throw S("Can't call method on "+e);return e},C=Object,O=function(e){return C(_(e))},k=i({}.hasOwnProperty),P=Object.hasOwn||function(e,t){return k(O(e),t)},T=0,x=Math.random(),A=i(1..toString),N=function(e){return"Symbol("+(void 0===e?"":e)+")_"+A(++T+x,36)},M=function(e){return"function"==typeof e},L=function(e){return M(e)?e:void 0},R=function(e,t){return arguments.length<2?L(g[e]):g[e]&&g[e][t]},I=R("navigator","userAgent")||"",D=g.process,F=g.Deno,j=D&&D.versions||F&&F.version,H=j&&j.v8;H&&(h=(m=H.split("."))[0]>0&&m[0]<4?1:+(m[0]+m[1])),!h&&I&&(!(m=I.match(/Edge\/(\d+)/))||m[1]>=74)&&(m=I.match(/Chrome\/(\d+)/))&&(h=+m[1]);var B=h,U=!!Object.getOwnPropertySymbols&&!t(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&B&&B<41}),z=U&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,G=w("wks"),V=g.Symbol,W=V&&V.for,$=z?V:V&&V.withoutSetter||N,q=function(e){if(!P(G,e)||!U&&"string"!=typeof G[e]){var t="Symbol."+e;G[e]=U&&P(V,e)?V[e]:z&&W?W(t):$(t)}return G[e]},K={};K[q("toStringTag")]="z";var Q="[object z]"===String(K),X=i({}.toString),Z=i("".slice),Y=function(e){return Z(X(e),8,-1)},J=q("toStringTag"),ee=Object,te="Arguments"==Y(function(){return arguments}()),ne=Q?Y:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=ee(e),J))?n:te?Y(t):"Object"==(r=Y(t))&&M(t.callee)?"Arguments":r},re=String,ae=function(e){if("Symbol"===ne(e))throw TypeError("Cannot convert a Symbol value to a string");return re(e)},oe=i("".charAt),ie=i("".charCodeAt),le=i("".slice),ue=function(e){return function(t,n){var r,a,o=ae(_(t)),i=c(n),l=o.length;return i<0||i>=l?e?"":void 0:(r=ie(o,i))<55296||r>56319||i+1===l||(a=ie(o,i+1))<56320||a>57343?e?oe(o,i):r:e?le(o,i,i+2):a-56320+(r-55296<<10)+65536}},se={codeAt:ue(!1),charAt:ue(!0)},ce=i(Function.toString);M(E.inspectSource)||(E.inspectSource=function(e){return ce(e)});var fe,de,pe,me=E.inspectSource,he=g.WeakMap,ye=M(he)&&/native code/.test(me(he)),ge=function(e){return"object"==typeof e?null!==e:M(e)},ve=!t(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),be=g.document,Ee=ge(be)&&ge(be.createElement),we=function(e){return Ee?be.createElement(e):{}},Se=!ve&&!t(function(){return 7!=Object.defineProperty(we("div"),"a",{get:function(){return 7}}).a}),_e=ve&&t(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),Ce=String,Oe=TypeError,ke=function(e){if(ge(e))return e;throw Oe(Ce(e)+" is not an object")},Pe=Function.prototype.call,Te=n?Pe.bind(Pe):function(){return Pe.apply(Pe,arguments)},xe=i({}.isPrototypeOf),Ae=Object,Ne=z?function(e){return"symbol"==typeof e}:function(e){var t=R("Symbol");return M(t)&&xe(t.prototype,Ae(e))},Me=String,Le=function(e){try{return Me(e)}catch(e){return"Object"}},Re=TypeError,Ie=function(e){if(M(e))return e;throw Re(Le(e)+" is not a function")},De=function(e,t){var n=e[t];return null==n?void 0:Ie(n)},Fe=TypeError,je=TypeError,He=q("toPrimitive"),Be=function(e){var t=function(e,t){if(!ge(e)||Ne(e))return e;var n,r=De(e,He);if(r){if(void 0===t&&(t="default"),n=Te(r,e,t),!ge(n)||Ne(n))return n;throw je("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&M(n=e.toString)&&!ge(r=Te(n,e)))return r;if(M(n=e.valueOf)&&!ge(r=Te(n,e)))return r;if("string"!==t&&M(n=e.toString)&&!ge(r=Te(n,e)))return r;throw Fe("Can't convert object to primitive value")}(e,t)}(e,"string");return Ne(t)?t:t+""},Ue=TypeError,ze=Object.defineProperty,Ge=Object.getOwnPropertyDescriptor,Ve={f:ve?_e?function(e,t,n){if(ke(e),t=Be(t),ke(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=Ge(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return ze(e,t,n)}:ze:function(e,t,n){if(ke(e),t=Be(t),ke(n),Se)try{return ze(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Ue("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},We=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},$e=ve?function(e,t,n){return Ve.f(e,t,We(1,n))}:function(e,t,n){return e[t]=n,e},qe=w("keys"),Ke=function(e){return qe[e]||(qe[e]=N(e))},Qe={},Xe=g.TypeError;if(ye||E.state){var Ze=E.state||(E.state=new(0,g.WeakMap)),Ye=i(Ze.get),Je=i(Ze.has),et=i(Ze.set);fe=function(e,t){if(Je(Ze,e))throw new Xe("Object already initialized");return t.facade=e,et(Ze,e,t),t},de=function(e){return Ye(Ze,e)||{}},pe=function(e){return Je(Ze,e)}}else{var tt=Ke("state");Qe[tt]=!0,fe=function(e,t){if(P(e,tt))throw new Xe("Object already initialized");return t.facade=e,$e(e,tt,t),t},de=function(e){return P(e,tt)?e[tt]:{}},pe=function(e){return P(e,tt)}}var nt,rt={set:fe,get:de,has:pe,enforce:function(e){return pe(e)?de(e):fe(e,{})},getterFor:function(e){return function(t){var n;if(!ge(t)||(n=de(t)).type!==e)throw Xe("Incompatible receiver, "+e+" required");return n}}},at={}.propertyIsEnumerable,ot=Object.getOwnPropertyDescriptor,it={f:ot&&!at.call({1:2},1)?function(e){var t=ot(this,e);return!!t&&t.enumerable}:at},lt=Object,ut=i("".split),st=t(function(){return!lt("z").propertyIsEnumerable(0)})?function(e){return"String"==Y(e)?ut(e,""):lt(e)}:lt,ct=function(e){return st(_(e))},ft=Object.getOwnPropertyDescriptor,dt={f:ve?ft:function(e,t){if(e=ct(e),t=Be(t),Se)try{return ft(e,t)}catch(e){}if(P(e,t))return We(!Te(it.f,e,t),e[t])}},pt=Function.prototype,mt=ve&&Object.getOwnPropertyDescriptor,ht=P(pt,"name"),yt={EXISTS:ht,PROPER:ht&&"something"===function(){}.name,CONFIGURABLE:ht&&(!ve||ve&&mt(pt,"name").configurable)},gt=p(function(e){var n=yt.CONFIGURABLE,r=rt.enforce,a=rt.get,o=Object.defineProperty,i=ve&&!t(function(){return 8!==o(function(){},"length",{value:8}).length}),l=String(String).split("String"),u=e.exports=function(e,t,a){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),a&&a.getter&&(t="get "+t),a&&a.setter&&(t="set "+t),(!P(e,"name")||n&&e.name!==t)&&o(e,"name",{value:t,configurable:!0}),i&&a&&P(a,"arity")&&e.length!==a.arity&&o(e,"length",{value:a.arity});try{a&&P(a,"constructor")&&a.constructor?ve&&o(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var u=r(e);return P(u,"source")||(u.source=l.join("string"==typeof t?t:"")),e};Function.prototype.toString=u(function(){return M(this)&&a(this).source||me(this)},"toString")}),vt=function(e,t,n,r){r||(r={});var a=r.enumerable,o=void 0!==r.name?r.name:t;return M(n)&>(n,o,r),r.global?a?e[t]=n:b(t,n):(r.unsafe?e[t]&&(a=!0):delete e[t],a?e[t]=n:$e(e,t,n)),e},bt=Math.max,Et=Math.min,wt=Math.min,St=function(e){return(t=e.length)>0?wt(c(t),9007199254740991):0;var t},_t=function(e){return function(t,n,r){var a,o=ct(t),i=St(o),l=function(e,t){var n=c(e);return n<0?bt(n+t,0):Et(n,t)}(r,i);if(e&&n!=n){for(;i>l;)if((a=o[l++])!=a)return!0}else for(;i>l;l++)if((e||l in o)&&o[l]===n)return e||l||0;return!e&&-1}},Ct=(_t(!0),_t(!1)),Ot=i([].push),kt=function(e,t){var n,r=ct(e),a=0,o=[];for(n in r)!P(Qe,n)&&P(r,n)&&Ot(o,n);for(;t.length>a;)P(r,n=t[a++])&&(~Ct(o,n)||Ot(o,n));return o},Pt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Tt=Pt.concat("length","prototype"),xt={f:Object.getOwnPropertyNames||function(e){return kt(e,Tt)}},At={f:Object.getOwnPropertySymbols},Nt=i([].concat),Mt=R("Reflect","ownKeys")||function(e){var t=xt.f(ke(e)),n=At.f;return n?Nt(t,n(e)):t},Lt=function(e,t,n){for(var r=Mt(t),a=Ve.f,o=dt.f,i=0;i<r.length;i++){var l=r[i];P(e,l)||n&&P(n,l)||a(e,l,o(t,l))}},Rt=/#|\.prototype\./,It=function(e,n){var r=Ft[Dt(e)];return r==Ht||r!=jt&&(M(n)?t(n):!!n)},Dt=It.normalize=function(e){return String(e).replace(Rt,".").toLowerCase()},Ft=It.data={},jt=It.NATIVE="N",Ht=It.POLYFILL="P",Bt=It,Ut=dt.f,zt=function(e,t){var n,r,a,o,i,l=e.target,u=e.global,s=e.stat;if(n=u?g:s?g[l]||b(l,{}):(g[l]||{}).prototype)for(r in t){if(o=t[r],a=e.dontCallGetSet?(i=Ut(n,r))&&i.value:n[r],!Bt(u?r:l+(s?".":"#")+r,e.forced)&&void 0!==a){if(typeof o==typeof a)continue;Lt(o,a)}(e.sham||a&&a.sham)&&$e(o,"sham",!0),vt(n,r,o,e)}},Gt=Object.keys||function(e){return kt(e,Pt)},Vt={f:ve&&!_e?Object.defineProperties:function(e,t){ke(e);for(var n,r=ct(t),a=Gt(t),o=a.length,i=0;o>i;)Ve.f(e,n=a[i++],r[n]);return e}},Wt=R("document","documentElement"),$t=Ke("IE_PROTO"),qt=function(){},Kt=function(e){return"<script>"+e+"<\/script>"},Qt=function(e){e.write(Kt("")),e.close();var t=e.parentWindow.Object;return e=null,t},Xt=function(){try{nt=new ActiveXObject("htmlfile")}catch(e){}var e,t;Xt="undefined"!=typeof document?document.domain&&nt?Qt(nt):((t=we("iframe")).style.display="none",Wt.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Kt("document.F=Object")),e.close(),e.F):Qt(nt);for(var n=Pt.length;n--;)delete Xt.prototype[Pt[n]];return Xt()};Qe[$t]=!0;var Zt,Yt,Jt,en=Object.create||function(e,t){var n;return null!==e?(qt.prototype=ke(e),n=new qt,qt.prototype=null,n[$t]=e):n=Xt(),void 0===t?n:Vt.f(n,t)},tn=!t(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),nn=Ke("IE_PROTO"),rn=Object,an=rn.prototype,on=tn?rn.getPrototypeOf:function(e){var t=O(e);if(P(t,nn))return t[nn];var n=t.constructor;return M(n)&&t instanceof n?n.prototype:t instanceof rn?an:null},ln=q("iterator"),un=!1;[].keys&&("next"in(Jt=[].keys())?(Yt=on(on(Jt)))!==Object.prototype&&(Zt=Yt):un=!0),(null==Zt||t(function(){var e={};return Zt[ln].call(e)!==e}))&&(Zt={}),M(Zt[ln])||vt(Zt,ln,function(){return this});var sn={IteratorPrototype:Zt,BUGGY_SAFARI_ITERATORS:un},cn=Ve.f,fn=q("toStringTag"),dn=function(e,t,n){e&&!n&&(e=e.prototype),e&&!P(e,fn)&&cn(e,fn,{configurable:!0,value:t})},pn={},mn=sn.IteratorPrototype,hn=function(){return this},yn=String,gn=TypeError,vn=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=i(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return ke(n),function(e){if("object"==typeof e||M(e))return e;throw gn("Can't set "+yn(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),bn=sn.IteratorPrototype,En=sn.BUGGY_SAFARI_ITERATORS,wn=q("iterator"),Sn=function(){return this},_n=se.charAt,Cn=rt.set,On=rt.getterFor("String Iterator");!function(e,t,n,r,a,o,i){!function(e,t,n,r){e.prototype=en(mn,{next:We(1,function(){var e,t=On(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=_n(n,r),t.index+=e.length,{value:e,done:!1})})}),dn(e,"String Iterator",!1),pn["String Iterator"]=hn}(n);var l,u,s,c=function(e){if(void 0===e&&p)return p;if(!En&&e in f)return f[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=e.prototype,d=f[wn]||f["@@iterator"]||void 0,p=!En&&d||c(void 0);if(void(d&&(l=on(d.call(new e)))!==Object.prototype&&l.next&&(on(l)!==bn&&(vn?vn(l,bn):M(l[wn])||vt(l,wn,Sn)),dn(l,"String Iterator",!0))))if(void(u={values:c("values"),keys:c("keys"),entries:c("entries")}))for(s in u)(En||!(s in f))&&vt(f,s,u[s]);else zt({target:"String",proto:!0,forced:En||!1},u);f[wn]!==p&&vt(f,wn,p,{name:void 0}),pn.String=p}(String,0,function(e){Cn(this,{type:"String Iterator",string:ae(e),index:0})});var kn=i(i.bind),Pn=function(e,t){return Ie(e),void 0===t?e:n?kn(e,t):function(){return e.apply(t,arguments)}},Tn=function(e,t,n,r){try{return r?t(ke(n)[0],n[1]):t(n)}catch(t){!function(e,t,n){var r;ke(e);try{if(!(r=De(e,"return")))throw n;r=Te(r,e)}catch(e){r=e}throw n}(e,0,t)}},xn=q("iterator"),An=Array.prototype,Nn=function(e){return void 0!==e&&(pn.Array===e||An[xn]===e)},Mn=function(){},Ln=[],Rn=R("Reflect","construct"),In=/^\s*(?:class|function)\b/,Dn=i(In.exec),Fn=!In.exec(Mn),jn=function(e){if(!M(e))return!1;try{return Rn(Mn,Ln,e),!0}catch(e){return!1}},Hn=function(e){if(!M(e))return!1;switch(ne(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Fn||!!Dn(In,me(e))}catch(e){return!0}};Hn.sham=!0;var Bn=!Rn||t(function(){var e;return jn(jn.call)||!jn(Object)||!jn(function(){e=!0})||e})?Hn:jn,Un=function(e,t,n){var r=Be(t);r in e?Ve.f(e,r,We(0,n)):e[r]=n},zn=q("iterator"),Gn=function(e){if(null!=e)return De(e,zn)||De(e,"@@iterator")||pn[ne(e)]},Vn=TypeError,Wn=function(e,t){var n=arguments.length<2?Gn(e):t;if(Ie(n))return ke(Te(n,e));throw Vn(Le(e)+" is not iterable")},$n=Array,qn=q("iterator"),Kn=!1;try{var Qn=0,Xn={next:function(){return{done:!!Qn++}},return:function(){Kn=!0}};Xn[qn]=function(){return this},Array.from(Xn,function(){throw 2})}catch(e){}var Zn,Yn,Jn,er=!function(e,t){if(!Kn)return!1;var n=!1;try{var r={};r[qn]=function(){return{next:function(){return{done:n=!0}}}},Array.from(r)}catch(e){}return n}();function tr(e){return Number((e/100).toFixed(2))}zt({target:"Array",stat:!0,forced:er},{from:function(e){var t=O(e),n=Bn(this),r=arguments.length,a=r>1?arguments[1]:void 0,o=void 0!==a;o&&(a=Pn(a,r>2?arguments[2]:void 0));var i,l,u,s,c,f,d=Gn(t),p=0;if(!d||this===$n&&Nn(d))for(i=St(t),l=n?new this(i):$n(i);i>p;p++)f=o?a(t[p],p):t[p],Un(l,p,f);else for(c=(s=Wn(t,d)).next,l=n?new this:[];!(u=Te(c,s)).done;p++)f=o?Tn(s,a,[u.value,p],!0):u.value,Un(l,p,f);return l.length=p,l}}),function(e){e.PaymentPlans="PaymentPlans",e.Modal="Modal"}(Zn||(Zn={})),function(e){e.PENDING="pending",e.SUCCESS="success",e.FAILED="failed"}(Yn||(Yn={})),function(e){e.en="en",e["fr-FR"]="fr-FR",e.fr="fr",e["de-DE"]="de-DE",e.de="de",e.it="it",e["it-IT"]="it-IT",e.es="es",e["es-ES"]="es-ES",e.pt="pt",e["pt-PT"]="pt-PT",e.nl="nl",e["nl-NL"]="nl-NL",e["nl-BE"]="nl-BE"}(Jn||(Jn={}));var nr,rr=function(e){return 1===(null==e?void 0:e.installments_count)&&0===(null==e?void 0:e.deferred_days)&&0===(null==e?void 0:e.deferred_months)};"function"!=typeof(nr=window.Element.prototype).matches&&(nr.matches=nr.msMatchesSelector||nr.mozMatchesSelector||nr.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=0;t[n]&&t[n]!==this;)++n;return Boolean(t[n])}),"function"!=typeof nr.closest&&(nr.closest=function(e){for(var t=this;t&&1===t.nodeType;){if(t.matches(e))return t;t=t.parentNode}return null}),"".trim||(String.prototype.trim=function(){return this.replace(/^[\s]+|[\s]+$/g,"")}),function(e){e.DOMException||((DOMException=function(e){this.message=e}).prototype=new Error);var t,n,r=/[\11\12\14\15\40]/,a=0,o=function(e,t){if(""===t)throw new DOMException("Failed to execute '"+e+"' on 'DOMTokenList': The token provided must not be empty.");if(-1!==(a=t.search(r)))throw new DOMException("Failed to execute '"+e+"' on 'DOMTokenList': The token provided ('"+t[a]+"') contains HTML space characters, which are not valid in tokens.")};"function"!=typeof DOMTokenList&&function(e){var t=e.document,n=e.Object,a=n.prototype.hasOwnProperty,i=n.defineProperty,l=0,u=0,s=function(){if(!l)throw TypeError("Illegal constructor")};function c(){var t=e.event,n=t.propertyName;if(!u&&("className"===n||"classList"===n&&!i)){var a=t.srcElement,o=a[" uCLp"],l=""+a[n],s=l.trim().split(r),c=a["classList"===n?" uCL":"classList"],f=o.length;e:for(var d=0,p=o.length=s.length,m=0;d!==p;++d){for(var h=0;h!==d;++h)if(s[h]===s[d]){m++;continue e}c[d-m]=s[d]}for(var y=p-m;y<f;++y)delete c[y];if("classList"!==n)return;u=1,a.classList=c,a.className=l,u=0,c.length=s.length-m}}function f(e){if(!e||!("innerHTML"in e))throw TypeError("Illegal invocation");e.detachEvent("onpropertychange",c),l=1;try{var t=function(){};t.prototype=new s}finally{l=0}var n=t.prototype,a=new t;e:for(var o=e.className.trim().split(r),f=0,d=o.length,p=0;f!==d;++f){for(var m=0;m!==f;++m)if(o[m]===o[f]){p++;continue e}this[f-p]=o[f]}n.length=d-p,n.value=e.className,n[" uCL"]=e,i?(i(e,"classList",{enumerable:1,get:function(){return a},configurable:0,set:function(t){u=1,e.className=n.value=t+="",u=0;var o=t.trim().split(r),i=n.length;e:for(var l=0,s=n.length=o.length,c=0;l!==s;++l){for(var f=0;f!==l;++f)if(o[f]===o[l]){c++;continue e}a[l-c]=o[l]}for(var d=s-c;d<i;++d)delete a[d]}}),i(e," uCLp",{enumerable:0,configurable:0,writeable:0,value:t.prototype}),i(n," uCL",{enumerable:0,configurable:0,writeable:0,value:e})):(e.classList=a,e[" uCL"]=a,e[" uCLp"]=t.prototype),e.attachEvent("onpropertychange",c)}s.prototype.toString=s.prototype.toLocaleString=function(){return this.value},s.prototype.add=function(){e:for(var e=0,t=arguments.length,n="",r=this[" uCL"],a=r[" uCLp"];e!==t;++e){o("add",n=arguments[e]+"");for(var i=0,l=a.length,s=n;i!==l;++i){if(this[i]===n)continue e;s+=" "+this[i]}this[l]=n,a.length+=1,a.value=s}u=1,r.className=a.value,u=0},s.prototype.remove=function(){for(var e=0,t=arguments.length,n="",r=this[" uCL"],a=r[" uCLp"];e!==t;++e){o("remove",n=arguments[e]+"");for(var i=0,l=a.length,s="",c=0;i!==l;++i)c?this[i-1]=this[i]:this[i]!==n?s+=this[i]+" ":c=1;c&&(delete this[l],a.length-=1,a.value=s)}u=1,r.className=a.value,u=0},e.DOMTokenList=s;try{e.Object.defineProperty(e.Element.prototype,"classList",{enumerable:1,get:function(e){return a.call(this,"classList")||f(this),this.classList},configurable:0,set:function(e){this.className=e}})}catch(n){e[" uCL"]=f,t.documentElement.firstChild.appendChild(t.createElement("style")).styleSheet.cssText='_*{x-uCLp:expression(!this.hasOwnProperty("classList")&&window[" uCL"](this))}[class]{x-uCLp/**/:expression(!this.hasOwnProperty("classList")&&window[" uCL"](this))}'}}(e),t=e.DOMTokenList.prototype,n=e.document.createElement("div").classList,t.item||(t.item=function(e){return function(e){return void 0===e?null:e}(this[e])}),t.toggle&&!1===n.toggle("a",0)||(t.toggle=function(e){if(arguments.length>1)return this[arguments[1]?"add":"remove"](e),!!arguments[1];var t=this.value;return this.remove(t),t===this.value&&(this.add(e),!0)}),t.replace&&"boolean"==typeof n.replace("a","b")||(t.replace=function(e,t){o("replace",e),o("replace",t);var n=this.value;return this.remove(e),this.value!==n&&(this.add(t),!0)}),t.contains||(t.contains=function(e){for(var t=0,n=this.length;t!==n;++t)if(this[t]===e)return!0;return!1}),t.forEach||(t.forEach=function(e){if(1===arguments.length)for(var t=0,n=this.length;t!==n;++t)e(this[t],t,this);else{t=0,n=this.length;for(var r=arguments[1];t!==n;++t)e.call(r,this[t],t,this)}}),t.entries||(t.entries=function(){var e=this;return{next:function(){return 0<e.length?{value:[0,e[0]],done:!1}:{done:!0}}}}),t.values||(t.values=function(){var e=this;return{next:function(){return 0<e.length?{value:e[0],done:!1}:{done:!0}}}}),t.keys||(t.keys=function(){var e=this;return{next:function(){return 0<e.length?{value:0,done:!1}:{done:!0}}}})}(window);var ar=Object.getOwnPropertySymbols,or=Object.prototype.hasOwnProperty,ir=Object.prototype.propertyIsEnumerable;function lr(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var ur=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,a=lr(e),o=1;o<arguments.length;o++){for(var i in n=Object(arguments[o]))or.call(n,i)&&(a[i]=n[i]);if(ar){r=ar(n);for(var l=0;l<r.length;l++)ir.call(n,r[l])&&(a[r[l]]=n[r[l]])}}return a},sr=p(function(e,t){var n=60103,r=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,o=60110,i=60112;t.Suspense=60113;var l=60115,u=60116;if("function"==typeof Symbol&&Symbol.for){var s=Symbol.for;n=s("react.element"),r=s("react.portal"),t.Fragment=s("react.fragment"),t.StrictMode=s("react.strict_mode"),t.Profiler=s("react.profiler"),a=s("react.provider"),o=s("react.context"),i=s("react.forward_ref"),t.Suspense=s("react.suspense"),l=s("react.memo"),u=s("react.lazy")}var c="function"==typeof Symbol&&Symbol.iterator;function f(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p={};function m(e,t,n){this.props=e,this.context=t,this.refs=p,this.updater=n||d}function h(){}function y(e,t,n){this.props=e,this.context=t,this.refs=p,this.updater=n||d}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(f(85));this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},h.prototype=m.prototype;var g=y.prototype=new h;g.constructor=y,ur(g,m.prototype),g.isPureReactComponent=!0;var v={current:null},b=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function w(e,t,r){var a,o={},i=null,l=null;if(null!=t)for(a in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(i=""+t.key),t)b.call(t,a)&&!E.hasOwnProperty(a)&&(o[a]=t[a]);var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];o.children=s}if(e&&e.defaultProps)for(a in u=e.defaultProps)void 0===o[a]&&(o[a]=u[a]);return{$$typeof:n,type:e,key:i,ref:l,props:o,_owner:v.current}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var _=/\/+/g;function C(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function O(e,t,a){if(null==e)return e;var o=[],i=0;return function e(t,a,o,i,l){var u=typeof t;"undefined"!==u&&"boolean"!==u||(t=null);var s=!1;if(null===t)s=!0;else switch(u){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case n:case r:s=!0}}if(s)return l=l(s=t),t=""===i?"."+C(s,0):i,Array.isArray(l)?(o="",null!=t&&(o=t.replace(_,"$&/")+"/"),e(l,a,o,"",function(e){return e})):null!=l&&(S(l)&&(l=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(l,o+(!l.key||s&&s.key===l.key?"":(""+l.key).replace(_,"$&/")+"/")+t)),a.push(l)),1;if(s=0,i=""===i?".":i+":",Array.isArray(t))for(var d=0;d<t.length;d++){var p=i+C(u=t[d],d);s+=e(u,a,o,p,l)}else if("function"==typeof(p=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=c&&e[c]||e["@@iterator"])?e:null}(t)))for(t=p.call(t),d=0;!(u=t.next()).done;)s+=e(u=u.value,a,o,p=i+C(u,d++),l);else if("object"===u)throw a=""+t,Error(f(31,"[object Object]"===a?"object with keys {"+Object.keys(t).join(", ")+"}":a));return s}(e,o,"","",function(e){return t.call(a,e,i++)}),o}function k(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)})}if(1===e._status)return e._result;throw e._result}var P={current:null};function T(){var e=P.current;if(null===e)throw Error(f(321));return e}var x={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:v,IsSomeRendererActing:{current:!1},assign:ur};t.Children={map:O,forEach:function(e,t,n){O(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return O(e,function(){t++}),t},toArray:function(e){return O(e,function(e){return e})||[]},only:function(e){if(!S(e))throw Error(f(143));return e}},t.Component=m,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=x,t.cloneElement=function(e,t,r){if(null==e)throw Error(f(267,e));var a=ur({},e.props),o=e.key,i=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,l=v.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(s in t)b.call(t,s)&&!E.hasOwnProperty(s)&&(a[s]=void 0===t[s]&&void 0!==u?u[s]:t[s])}var s=arguments.length-2;if(1===s)a.children=r;else if(1<s){u=Array(s);for(var c=0;c<s;c++)u[c]=arguments[c+2];a.children=u}return{$$typeof:n,type:e.type,key:o,ref:i,props:a,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:o,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=w,t.createFactory=function(e){var t=w.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:i,render:e}},t.isValidElement=S,t.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:k}},t.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return T().useCallback(e,t)},t.useContext=function(e,t){return T().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return T().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return T().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return T().useLayoutEffect(e,t)},t.useMemo=function(e,t){return T().useMemo(e,t)},t.useReducer=function(e,t,n){return T().useReducer(e,t,n)},t.useRef=function(e){return T().useRef(e)},t.useState=function(e){return T().useState(e)},t.version="17.0.2"}),cr=(p(function(e,t){}),p(function(e){e.exports=sr})),fr=function(e,t){return(fr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function dr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}fr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var pr=function(){return(pr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function mr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function hr(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a<o;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}var yr="function"==typeof Symbol&&Symbol.for,gr=yr?Symbol.for("react.element"):60103,vr=yr?Symbol.for("react.portal"):60106,br=yr?Symbol.for("react.fragment"):60107,Er=yr?Symbol.for("react.strict_mode"):60108,wr=yr?Symbol.for("react.profiler"):60114,Sr=yr?Symbol.for("react.provider"):60109,_r=yr?Symbol.for("react.context"):60110,Cr=yr?Symbol.for("react.async_mode"):60111,Or=yr?Symbol.for("react.concurrent_mode"):60111,kr=yr?Symbol.for("react.forward_ref"):60112,Pr=yr?Symbol.for("react.suspense"):60113,Tr=yr?Symbol.for("react.suspense_list"):60120,xr=yr?Symbol.for("react.memo"):60115,Ar=yr?Symbol.for("react.lazy"):60116,Nr=yr?Symbol.for("react.block"):60121,Mr=yr?Symbol.for("react.fundamental"):60117,Lr=yr?Symbol.for("react.responder"):60118,Rr=yr?Symbol.for("react.scope"):60119;function Ir(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case gr:switch(e=e.type){case Cr:case Or:case br:case wr:case Er:case Pr:return e;default:switch(e=e&&e.$$typeof){case _r:case kr:case Ar:case xr:case Sr:return e;default:return t}}case vr:return t}}}function Dr(e){return Ir(e)===Or}var Fr,jr,Hr,Br={AsyncMode:Cr,ConcurrentMode:Or,ContextConsumer:_r,ContextProvider:Sr,Element:gr,ForwardRef:kr,Fragment:br,Lazy:Ar,Memo:xr,Portal:vr,Profiler:wr,StrictMode:Er,Suspense:Pr,isAsyncMode:function(e){return Dr(e)||Ir(e)===Cr},isConcurrentMode:Dr,isContextConsumer:function(e){return Ir(e)===_r},isContextProvider:function(e){return Ir(e)===Sr},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===gr},isForwardRef:function(e){return Ir(e)===kr},isFragment:function(e){return Ir(e)===br},isLazy:function(e){return Ir(e)===Ar},isMemo:function(e){return Ir(e)===xr},isPortal:function(e){return Ir(e)===vr},isProfiler:function(e){return Ir(e)===wr},isStrictMode:function(e){return Ir(e)===Er},isSuspense:function(e){return Ir(e)===Pr},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===br||e===Or||e===wr||e===Er||e===Pr||e===Tr||"object"==typeof e&&null!==e&&(e.$$typeof===Ar||e.$$typeof===xr||e.$$typeof===Sr||e.$$typeof===_r||e.$$typeof===kr||e.$$typeof===Mr||e.$$typeof===Lr||e.$$typeof===Rr||e.$$typeof===Nr)},typeOf:Ir};function Ur(e,t,n){if(void 0===n&&(n=Error),!e)throw new n(t)}function zr(e){return e.type===jr.literal}function Gr(e){return e.type===jr.argument}function Vr(e){return e.type===jr.number}function Wr(e){return e.type===jr.date}function $r(e){return e.type===jr.time}function qr(e){return e.type===jr.select}function Kr(e){return e.type===jr.plural}function Qr(e){return e.type===jr.pound}function Xr(e){return e.type===jr.tag}function Zr(e){return!(!e||"object"!=typeof e||e.type!==Hr.number)}function Yr(e){return!(!e||"object"!=typeof e||e.type!==Hr.dateTime)}p(function(e,t){}),p(function(e){e.exports=Br}),function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(Fr||(Fr={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(jr||(jr={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(Hr||(Hr={}));var Jr=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ea=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function ta(e){var t={};return e.replace(ea,function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"short":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var na=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,ra=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,aa=/^(@+)?(\+|#+)?[rs]?$/g,oa=/(\*)(0+)|(#+)(0+)|(0+)/g,ia=/^(0+)$/;function la(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(aa,function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""}),t}function ua(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function sa(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!ia.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function ca(e){return ua(e)||{}}function fa(e){for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];switch(a.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=a.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=a.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=pr(pr(pr({},t),{notation:"scientific"}),a.options.reduce(function(e,t){return pr(pr({},e),ca(t))},{}));continue;case"engineering":t=pr(pr(pr({},t),{notation:"engineering"}),a.options.reduce(function(e,t){return pr(pr({},e),ca(t))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(a.options[0]);continue;case"integer-width":if(a.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(oa,function(e,n,r,a,o,i){if(n)t.minimumIntegerDigits=r.length;else{if(a&&o)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""});continue}if(ia.test(a.stem))t.minimumIntegerDigits=a.stem.length;else if(ra.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(ra,function(e,n,r,a,o,i){return"*"===r?t.minimumFractionDigits=n.length:a&&"#"===a[0]?t.maximumFractionDigits=a.length:o&&i?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+i.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""});var o=a.options[0];"w"===o?t=pr(pr({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=pr(pr({},t),la(o)))}else if(aa.test(a.stem))t=pr(pr({},t),la(a.stem));else{var i=ua(a.stem);i&&(t=pr(pr({},t),i));var l=sa(a.stem);l&&(t=pr(pr({},t),l))}}return t}var da,pa={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function ma(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(pa[n||""]||pa[r||""]||pa["".concat(r,"-001")]||pa["001"])[0]}var ha=new RegExp("^".concat(Jr.source,"*")),ya=new RegExp("".concat(Jr.source,"*$"));function ga(e,t){return{start:e,end:t}}var va=!!String.prototype.startsWith,ba=!!String.fromCodePoint,Ea=!!Object.fromEntries,wa=!!String.prototype.codePointAt,Sa=!!String.prototype.trimStart,_a=!!String.prototype.trimEnd,Ca=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Oa=!0;try{Oa="a"===(null===(da=La("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===da?void 0:da[0])}catch(e){Oa=!1}var ka,Pa=va?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},Ta=ba?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",a=e.length,o=0;a>o;){if((n=e[o++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},xa=Ea?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];t[a[0]]=a[1]}return t},Aa=wa?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,a=e.charCodeAt(t);return a<55296||a>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?a:r-56320+(a-55296<<10)+65536}},Na=Sa?function(e){return e.trimStart()}:function(e){return e.replace(ha,"")},Ma=_a?function(e){return e.trimEnd()}:function(e){return e.replace(ya,"")};function La(e,t){return new RegExp(e,t)}if(Oa){var Ra=La("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ka=function(e,t){var n;return Ra.lastIndex=t,null!==(n=Ra.exec(e)[1])&&void 0!==n?n:""}}else ka=function(e,t){for(var n=[];;){var r=Aa(e,t);if(void 0===r||ja(r)||Ha(r))break;n.push(r),t+=r>=65536?2:1}return Ta.apply(void 0,n)};var Ia=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var a=this.char();if(123===a){if((o=this.parseArgument(e,n)).err)return o;r.push(o.val)}else{if(125===a&&e>0)break;if(35!==a||"plural"!==t&&"selectordinal"!==t){if(60===a&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(Fr.UNMATCHED_CLOSING_TAG,ga(this.clonePosition(),this.clonePosition()))}if(60===a&&!this.ignoreTag&&Da(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;r.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;r.push(o.val)}}else{var i=this.clonePosition();this.bump(),r.push({type:jr.pound,location:ga(i,this.clonePosition())})}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:jr.literal,value:"<".concat(r,"/>"),location:ga(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(e+1,t,!0);if(a.err)return a;var o=a.val,i=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Da(this.char()))return this.error(Fr.INVALID_TAG,ga(i,this.clonePosition()));var l=this.clonePosition();return r!==this.parseTagName()?this.error(Fr.UNMATCHED_CLOSING_TAG,ga(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:jr.tag,value:r,children:o,location:ga(n,this.clonePosition())},err:null}:this.error(Fr.INVALID_TAG,ga(i,this.clonePosition())))}return this.error(Fr.UNCLOSED_TAG,ga(n,this.clonePosition()))}return this.error(Fr.INVALID_TAG,ga(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&Fa(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var a=this.tryParseQuote(t);if(a)r+=a;else{var o=this.tryParseUnquoted(e,t);if(o)r+=o;else{var i=this.tryParseLeftAngleBracket();if(!i)break;r+=i}}}var l=ga(n,this.clonePosition());return{val:{type:jr.literal,value:r,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Da(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return Ta.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),Ta(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Fr.EXPECT_ARGUMENT_CLOSING_BRACE,ga(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Fr.EMPTY_ARGUMENT,ga(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(Fr.MALFORMED_ARGUMENT,ga(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Fr.EXPECT_ARGUMENT_CLOSING_BRACE,ga(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:jr.argument,value:r,location:ga(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Fr.EXPECT_ARGUMENT_CLOSING_BRACE,ga(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(Fr.MALFORMED_ARGUMENT,ga(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=ka(this.message,t);return this.bumpTo(t+n.length),{value:n,location:ga(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var a,o=this.clonePosition(),i=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(i){case"":return this.error(Fr.EXPECT_ARGUMENT_TYPE,ga(o,l));case"number":case"date":case"time":this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var s=this.clonePosition();if((g=this.parseSimpleArgStyleIfPossible()).err)return g;if(0===(p=Ma(g.val)).length)return this.error(Fr.EXPECT_ARGUMENT_STYLE,ga(this.clonePosition(),this.clonePosition()));u={style:p,styleLocation:ga(s,this.clonePosition())}}if((v=this.tryParseArgumentClose(r)).err)return v;var c=ga(r,this.clonePosition());if(u&&Pa(null==u?void 0:u.style,"::",0)){var f=Na(u.style.slice(2));if("number"===i)return(g=this.parseNumberSkeletonFromString(f,u.styleLocation)).err?g:{val:{type:jr.number,value:n,location:c,style:g.val},err:null};if(0===f.length)return this.error(Fr.EXPECT_DATE_TIME_SKELETON,c);var d=f;this.locale&&(d=function(e,t){for(var n="",r=0;r<e.length;r++){var a=e.charAt(r);if("j"===a){for(var o=0;r+1<e.length&&e.charAt(r+1)===a;)o++,r++;var i=1+(1&o),l=o<2?1:3+(o>>1),u=ma(t);for("H"!=u&&"k"!=u||(l=0);l-- >0;)n+="a";for(;i-- >0;)n=u+n}else n+="J"===a?"H":a}return n}(f,this.locale));var p={type:Hr.dateTime,pattern:d,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?ta(d):{}};return{val:{type:"date"===i?jr.date:jr.time,value:n,location:c,style:p},err:null}}return{val:{type:"number"===i?jr.number:"date"===i?jr.date:jr.time,value:n,location:c,style:null!==(a=null==u?void 0:u.style)&&void 0!==a?a:null},err:null};case"plural":case"selectordinal":case"select":var m=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Fr.EXPECT_SELECT_ARGUMENT_OPTIONS,ga(m,pr({},m)));this.bumpSpace();var h=this.parseIdentifierIfPossible(),y=0;if("select"!==i&&"offset"===h.value){if(!this.bumpIf(":"))return this.error(Fr.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ga(this.clonePosition(),this.clonePosition()));var g;if(this.bumpSpace(),(g=this.tryParseDecimalInteger(Fr.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Fr.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return g;this.bumpSpace(),h=this.parseIdentifierIfPossible(),y=g.val}var v,b=this.tryParsePluralOrSelectOptions(e,i,t,h);if(b.err)return b;if((v=this.tryParseArgumentClose(r)).err)return v;var E=ga(r,this.clonePosition());return"select"===i?{val:{type:jr.select,value:n,options:xa(b.val),location:E},err:null}:{val:{type:jr.plural,value:n,options:xa(b.val),offset:y,pluralType:"plural"===i?"cardinal":"ordinal",location:E},err:null};default:return this.error(Fr.INVALID_ARGUMENT_TYPE,ga(o,l))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(Fr.EXPECT_ARGUMENT_CLOSING_BRACE,ga(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Fr.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ga(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(na).filter(function(e){return e.length>0});n<r.length;n++){var a=r[n].split("/");if(0===a.length)throw new Error("Invalid number skeleton");for(var o=a[0],i=a.slice(1),l=0,u=i;l<u.length;l++)if(0===u[l].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:i})}return t}(e)}catch(e){return this.error(Fr.INVALID_NUMBER_SKELETON,t)}return{val:{type:Hr.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?fa(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var a,o=!1,i=[],l=new Set,u=r.value,s=r.location;;){if(0===u.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var f=this.tryParseDecimalInteger(Fr.EXPECT_PLURAL_ARGUMENT_SELECTOR,Fr.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;s=ga(c,this.clonePosition()),u=this.message.slice(c.offset,this.offset())}if(l.has(u))return this.error("select"===t?Fr.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Fr.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,s);"other"===u&&(o=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?Fr.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Fr.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ga(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,n);if(p.err)return p;var m=this.tryParseArgumentClose(d);if(m.err)return m;i.push([u,{value:p.val,location:ga(d,this.clonePosition())}]),l.add(u),this.bumpSpace(),u=(a=this.parseIdentifierIfPossible()).value,s=a.location}return 0===i.length?this.error("select"===t?Fr.EXPECT_SELECT_ARGUMENT_SELECTOR:Fr.EXPECT_PLURAL_ARGUMENT_SELECTOR,ga(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(Fr.MISSING_OTHER_CLAUSE,ga(this.clonePosition(),this.clonePosition())):{val:i,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var a=!1,o=0;!this.isEOF();){var i=this.char();if(!(i>=48&&i<=57))break;a=!0,o=10*o+(i-48),this.bump()}var l=ga(r,this.clonePosition());return a?Ca(o*=n)?{val:o,err:null}:this.error(t,l):this.error(e,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Aa(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(Pa(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ja(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function Da(e){return e>=97&&e<=122||e>=65&&e<=90}function Fa(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function ja(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function Ha(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function Ba(e,t){void 0===t&&(t={}),t=pr({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Ia(e,t).parse();if(n.err){var r=SyntaxError(Fr[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||function e(t){t.forEach(function(t){if(delete t.location,qr(t)||Kr(t))for(var n in t.options)delete t.options[n].location,e(t.options[n].value);else Vr(t)&&Zr(t.style)||(Wr(t)||$r(t))&&Yr(t.style)?delete t.style.location:Xr(t)&&e(t.children)})}(n.val),n.val}function Ua(e,t){return(t&&t.strategy?t.strategy:Wa)(e,{cache:t&&t.cache?t.cache:Qa,serializer:t&&t.serializer?t.serializer:$a})}function za(e,t,n,r){var a,o=null==(a=r)||"number"==typeof a||"boolean"==typeof a?r:n(r),i=t.get(o);return void 0===i&&(i=e.call(this,r),t.set(o,i)),i}function Ga(e,t,n){var r=Array.prototype.slice.call(arguments,3),a=n(r),o=t.get(a);return void 0===o&&(o=e.apply(this,r),t.set(a,o)),o}function Va(e,t,n,r,a){return n.bind(t,e,r,a)}function Wa(e,t){return Va(e,this,1===e.length?za:Ga,t.cache.create(),t.serializer)}var $a=function(){return JSON.stringify(arguments)};function qa(){this.cache=Object.create(null)}qa.prototype.get=function(e){return this.cache[e]},qa.prototype.set=function(e,t){this.cache[e]=t};var Ka,Qa={create:function(){return new qa}},Xa={variadic:function(e,t){return Va(e,this,Ga,t.cache.create(),t.serializer)},monadic:function(e,t){return Va(e,this,za,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(Ka||(Ka={}));var Za,Ya=function(e){function t(t,n,r){var a=e.call(this,t)||this;return a.code=n,a.originalMessage=r,a}return dr(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Ja=function(e){function t(t,n,r,a){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),Ka.INVALID_VALUE,a)||this}return dr(t,e),t}(Ya),eo=function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),Ka.INVALID_VALUE,r)||this}return dr(t,e),t}(Ya),to=function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),Ka.MISSING_VALUE,n)||this}return dr(t,e),t}(Ya);function no(e){return"function"==typeof e}function ro(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(Za||(Za={}));var ao,oo=function(){function e(t,n,r,a){var o,i,l,u=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=u.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce(function(e,t){return e.length&&t.type===Za.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return function e(t,n,r,a,o,i,l){if(1===t.length&&zr(t[0]))return[{type:Za.literal,value:t[0].value}];for(var u=[],s=0,c=t;s<c.length;s++){var f=c[s];if(zr(f))u.push({type:Za.literal,value:f.value});else if(Qr(f))"number"==typeof i&&u.push({type:Za.literal,value:r.getNumberFormat(n).format(i)});else{var d=f.value;if(!o||!(d in o))throw new to(d,l);var p=o[d];if(Gr(f))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),u.push({type:"string"==typeof p?Za.literal:Za.object,value:p});else if(Wr(f)){var m="string"==typeof f.style?a.date[f.style]:Yr(f.style)?f.style.parsedOptions:void 0;u.push({type:Za.literal,value:r.getDateTimeFormat(n,m).format(p)})}else if($r(f))m="string"==typeof f.style?a.time[f.style]:Yr(f.style)?f.style.parsedOptions:a.time.medium,u.push({type:Za.literal,value:r.getDateTimeFormat(n,m).format(p)});else if(Vr(f))(m="string"==typeof f.style?a.number[f.style]:Zr(f.style)?f.style.parsedOptions:void 0)&&m.scale&&(p*=m.scale||1),u.push({type:Za.literal,value:r.getNumberFormat(n,m).format(p)});else{if(Xr(f)){var h=f.children,y=f.value,g=o[y];if(!no(g))throw new eo(y,"function",l);var v=g(e(h,n,r,a,o,i).map(function(e){return e.value}));Array.isArray(v)||(v=[v]),u.push.apply(u,v.map(function(e){return{type:"string"==typeof e?Za.literal:Za.object,value:e}}))}if(qr(f)){if(!(b=f.options[p]||f.options.other))throw new Ja(f.value,p,Object.keys(f.options),l);u.push.apply(u,e(b.value,n,r,a,o))}else if(Kr(f)){var b;if(!(b=f.options["=".concat(p)])){if(!Intl.PluralRules)throw new Ya('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Ka.MISSING_INTL_API,l);var E=r.getPluralRules(n,{type:f.pluralType}).select(p-(f.offset||0));b=f.options[E]||f.options.other}if(!b)throw new Ja(f.value,p,Object.keys(f.options),l);u.push.apply(u,e(b.value,n,r,a,o,p-(f.offset||0)))}}}}return(w=u).length<2?w:w.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===Za.literal&&t.type===Za.literal?n.value+=t.value:e.push(t),e},[]);var w}(u.ast,u.locales,u.formatters,u.formats,e,void 0,u.message)},this.resolvedOptions=function(){return{locale:u.resolvedLocale.toString()}},this.getAst=function(){return u.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:null==a?void 0:a.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(i=e.formats,(l=r)?Object.keys(i).reduce(function(e,t){var n,r;return e[t]=(n=i[t],(r=l[t])?pr(pr(pr({},n||{}),r||{}),Object.keys(n).reduce(function(e,t){return e[t]=pr(pr({},n[t]),r[t]||{}),e},{})):n),e},pr({},i)):i),this.formatters=a&&a.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Ua(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,hr([void 0],t,!1)))},{cache:ro(o.number),strategy:Xa.variadic}),getDateTimeFormat:Ua(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,hr([void 0],t,!1)))},{cache:ro(o.dateTime),strategy:Xa.variadic}),getPluralRules:Ua(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,hr([void 0],t,!1)))},{cache:ro(o.pluralRules),strategy:Xa.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},e.__parse=Ba,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(ao||(ao={}));var io=function(e){function t(n,r,a){var o=this,i=a?a instanceof Error?a:new Error(String(a)):void 0;return(o=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r," \n").concat(i?"\n".concat(i.message,"\n").concat(i.stack):""))||this).code=n,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,t),o}return dr(t,e),t}(Error),lo=function(e){function t(t,n){return e.call(this,ao.UNSUPPORTED_FORMATTER,t,n)||this}return dr(t,e),t}(io),uo=function(e){function t(t,n){return e.call(this,ao.INVALID_CONFIG,t,n)||this}return dr(t,e),t}(io),so=function(e){function t(t,n){return e.call(this,ao.MISSING_DATA,t,n)||this}return dr(t,e),t}(io),co=function(e){function t(t,n,r){return e.call(this,ao.FORMAT_ERROR,"".concat(t," \nLocale: ").concat(n,"\n"),r)||this}return dr(t,e),t}(io),fo=function(e){function t(t,n,r,a){var o=e.call(this,"".concat(t," \nMessageID: ").concat(null==r?void 0:r.id,"\nDefault Message: ").concat(null==r?void 0:r.defaultMessage,"\nDescription: ").concat(null==r?void 0:r.description," \n"),n,a)||this;return o.descriptor=r,o}return dr(t,e),t}(co),po=function(e){function t(t,n){var r=e.call(this,ao.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(n,'", using ').concat(t.defaultMessage?"default message":"id"," as fallback."))||this;return r.descriptor=t,r}return dr(t,e),t}(io);function mo(e,t,n){return void 0===n&&(n={}),t.reduce(function(t,r){return r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t},{})}var ho={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){},onWarn:function(e){}};function yo(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function go(e,t,n,r){var a,o=e&&e[t];if(o&&(a=o[n]),a)return a;r(new lo("No ".concat(t," format named: ").concat(n)))}function vo(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=pr({timeZone:t},e[r]),n},{})}function bo(e,t){return Object.keys(pr(pr({},e),t)).reduce(function(n,r){return n[r]=pr(pr({},e[r]||{}),t[r]||{}),n},{})}function Eo(e,t){if(!t)return e;var n=oo.formats;return pr(pr(pr({},n),e),{date:bo(vo(n.date,t),vo(e.date||{},t)),time:bo(vo(n.time,t),vo(e.time||{},t))})}function wo(e,t,n,r,a){var o=e.locale,i=e.formats,l=e.messages,u=e.defaultLocale,s=e.defaultFormats,c=e.fallbackOnEmptyString,f=e.onError,d=e.timeZone,p=e.defaultRichTextElements;void 0===n&&(n={id:""});var m=n.id,h=n.defaultMessage;Ur(!!m,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var y=String(m),g=l&&Object.prototype.hasOwnProperty.call(l,y)&&l[y];if(Array.isArray(g)&&1===g.length&&g[0].type===jr.literal)return g[0].value;if(!r&&g&&"string"==typeof g&&!p)return g.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=pr(pr({},p),r||{}),i=Eo(i,d),s=Eo(s,d),!g){if(!1===c&&""===g)return g;if((!h||o&&o.toLowerCase()!==u.toLowerCase())&&f(new po(n,o)),h)try{return t.getMessageFormat(h,u,s,a).format(r)}catch(e){return f(new fo('Error formatting default message for: "'.concat(y,'", rendering default message verbatim'),o,n,e)),"string"==typeof h?h:y}return y}try{return t.getMessageFormat(g,o,i,pr({formatters:t},a||{})).format(r)}catch(e){f(new fo('Error formatting message: "'.concat(y,'", using ').concat(h?"default message":"id"," as fallback."),o,n,e))}if(h)try{return t.getMessageFormat(h,u,s,a).format(r)}catch(e){f(new fo('Error formatting the default message for: "'.concat(y,'", rendering message verbatim'),o,n,e))}return"string"==typeof g?g:"string"==typeof h?h:y}var So=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem"];function _o(e,t,n,r){var a=e.locale,o=e.formats,i=e.onError,l=e.timeZone;void 0===r&&(r={});var u=r.format,s=pr(pr({},l&&{timeZone:l}),u&&go(o,t,u,i)),c=mo(r,So,s);return"time"!==t||c.hour||c.minute||c.second||c.timeStyle||c.dateStyle||(c=pr(pr({},c),{hour:"numeric",minute:"numeric"})),n(a,c)}function Co(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=n[0],o=n[1],i=void 0===o?{}:o,l="string"==typeof a?new Date(a||0):a;try{return _o(e,"date",t,i).format(l)}catch(t){e.onError(new io(ao.FORMAT_ERROR,"Error formatting date.",t))}return String(l)}function Oo(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=n[0],o=n[1],i=void 0===o?{}:o,l="string"==typeof a?new Date(a||0):a;try{return _o(e,"time",t,i).format(l)}catch(t){e.onError(new io(ao.FORMAT_ERROR,"Error formatting time.",t))}return String(l)}function ko(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=n[0],o=n[1],i=n[2],l=void 0===i?{}:i,u=e.timeZone,s=e.locale,c=e.onError,f=mo(l,So,u?{timeZone:u}:{});try{return t(s,f).formatRange(a,o)}catch(e){c(new io(ao.FORMAT_ERROR,"Error formatting date time range.",e))}return String(a)}function Po(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=n[0],o=n[1],i=void 0===o?{}:o,l="string"==typeof a?new Date(a||0):a;try{return _o(e,"date",t,i).formatToParts(l)}catch(t){e.onError(new io(ao.FORMAT_ERROR,"Error formatting date.",t))}return[]}function To(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=n[0],o=n[1],i=void 0===o?{}:o,l="string"==typeof a?new Date(a||0):a;try{return _o(e,"time",t,i).formatToParts(l)}catch(t){e.onError(new io(ao.FORMAT_ERROR,"Error formatting time.",t))}return[]}var xo=["localeMatcher","style","type","fallback"];function Ao(e,t,n,r){var a=e.locale,o=e.onError;Intl.DisplayNames||o(new Ya('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',Ka.MISSING_INTL_API));var i=mo(r,xo);try{return t(a,i).of(n)}catch(e){o(new io(ao.FORMAT_ERROR,"Error formatting display name.",e))}}var No=["localeMatcher","type","style"],Mo=Date.now();function Lo(e,t,n,r){void 0===r&&(r={});var a=Ro(e,t,n,r).reduce(function(e,t){var n=t.value;return"string"!=typeof n?e.push(n):"string"==typeof e[e.length-1]?e[e.length-1]+=n:e.push(n),e},[]);return 1===a.length?a[0]:a}function Ro(e,t,n,r){var a=e.locale,o=e.onError;void 0===r&&(r={}),Intl.ListFormat||o(new Ya('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',Ka.MISSING_INTL_API));var i=mo(r,No);try{var l={},u=n.map(function(e,t){if("object"==typeof e){var n=function(e){return"".concat(Mo,"_").concat(e,"_").concat(Mo)}(t);return l[n]=e,n}return String(e)});return t(a,i).formatToParts(u).map(function(e){return"literal"===e.type?e:pr(pr({},e),{value:l[e.value]||e.value})})}catch(e){o(new io(ao.FORMAT_ERROR,"Error formatting list.",e))}return n}var Io=["localeMatcher","type"];function Do(e,t,n,r){var a=e.locale,o=e.onError;void 0===r&&(r={}),Intl.PluralRules||o(new Ya('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Ka.MISSING_INTL_API));var i=mo(r,Io);try{return t(a,i).select(n)}catch(e){o(new co("Error formatting plural.",a,e))}return"other"}var Fo=["numeric","style"];function jo(e,t,n,r,a){void 0===a&&(a={}),r||(r="second"),Intl.RelativeTimeFormat||e.onError(new Ya('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',Ka.MISSING_INTL_API));try{return function(e,t,n){var r=e.locale;void 0===n&&(n={});var a=n.format,o=!!a&&go(e.formats,"relative",a,e.onError)||{};return t(r,mo(n,Fo,o))}(e,t,a).format(n,r)}catch(t){e.onError(new co("Error formatting relative time.",e.locale,t))}return String(n)}var Ho=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function Bo(e,t,n){var r=e.locale;void 0===n&&(n={});var a=n.format,o=a&&go(e.formats,"number",a,e.onError)||{};return t(r,mo(n,Ho,o))}function Uo(e,t,n,r){void 0===r&&(r={});try{return Bo(e,t,r).format(n)}catch(t){e.onError(new io(ao.FORMAT_ERROR,"Error formatting number.",t))}return String(n)}function zo(e,t,n,r){void 0===r&&(r={});try{return Bo(e,t,r).formatToParts(n)}catch(t){e.onError(new io(ao.FORMAT_ERROR,"Error formatting number.",t))}return[]}function Go(e){Ur(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Vo=pr(pr({},ho),{textComponent:cr.Fragment});function Wo(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),a=n.length;if(r.length!==a)return!1;for(var o=0;o<a;o++){var i=n[o];if(e[i]!==t[i]||!Object.prototype.hasOwnProperty.call(t,i))return!1}return!0}var $o,qo,Ko=cr.createContext(null),Qo=Ko.Provider,Xo=Ko;function Zo(){var e=cr.useContext(Xo);return Go(e),e}function Yo(e){var t=function(t){var n=Zo(),r=t.value,a=t.children,o=mr(t,["value","children"]),i=n[e](r,o);return"function"==typeof a?a(i):cr.createElement(n.textComponent||cr.Fragment,null,i)};return t.displayName=$o[e],t}function Jo(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}function ei(e){return e?Object.keys(e).reduce(function(t,n){var r,a=e[n];return t[n]=no(a)?(r=a,function(e){return r(cr.Children.toArray(e))}):a,t},{}):e}!function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"}($o||($o={})),function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"}(qo||(qo={}));var ti=function(e,t,n,r){for(var a=[],o=4;o<arguments.length;o++)a[o-4]=arguments[o];var i=ei(r),l=wo.apply(void 0,hr([e,t,n,i],a,!1));return Array.isArray(l)?cr.Children.toArray(l):l},ni=function(e,t){var n=e.defaultRichTextElements,r=mr(e,["defaultRichTextElements"]),a=ei(n),o=function(e,t){var n=function(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,a=Ua(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,hr([void 0],t,!1)))},{cache:yo(e.dateTime),strategy:Xa.variadic}),o=Ua(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,hr([void 0],t,!1)))},{cache:yo(e.number),strategy:Xa.variadic}),i=Ua(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,hr([void 0],t,!1)))},{cache:yo(e.pluralRules),strategy:Xa.variadic});return{getDateTimeFormat:a,getNumberFormat:o,getMessageFormat:Ua(function(e,t,n,r){return new oo(e,t,n,pr({formatters:{getNumberFormat:o,getDateTimeFormat:a,getPluralRules:i}},r||{}))},{cache:yo(e.message),strategy:Xa.variadic}),getRelativeTimeFormat:Ua(function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new(t.bind.apply(t,hr([void 0],e,!1)))},{cache:yo(e.relativeTime),strategy:Xa.variadic}),getPluralRules:i,getListFormat:Ua(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,hr([void 0],e,!1)))},{cache:yo(e.list),strategy:Xa.variadic}),getDisplayNames:Ua(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(r.bind.apply(r,hr([void 0],e,!1)))},{cache:yo(e.displayNames),strategy:Xa.variadic})}}(t),r=pr(pr({},ho),e),a=r.locale,o=r.defaultLocale,i=r.onError;return a?!Intl.NumberFormat.supportedLocalesOf(a).length&&i?i(new so('Missing locale data for locale: "'.concat(a,'" in Intl.NumberFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(a).length&&i&&i(new so('Missing locale data for locale: "'.concat(a,'" in Intl.DateTimeFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(i&&i(new uo('"locale" was not configured, using "'.concat(o,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),function(e){var t;e.onWarn&&e.defaultRichTextElements&&"string"==typeof((t=e.messages||{})?t[Object.keys(t)[0]]:void 0)&&e.onWarn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}(r),pr(pr({},r),{formatters:n,formatNumber:Uo.bind(null,r,n.getNumberFormat),formatNumberToParts:zo.bind(null,r,n.getNumberFormat),formatRelativeTime:jo.bind(null,r,n.getRelativeTimeFormat),formatDate:Co.bind(null,r,n.getDateTimeFormat),formatDateToParts:Po.bind(null,r,n.getDateTimeFormat),formatTime:Oo.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:ko.bind(null,r,n.getDateTimeFormat),formatTimeToParts:To.bind(null,r,n.getDateTimeFormat),formatPlural:Do.bind(null,r,n.getPluralRules),formatMessage:wo.bind(null,r,n),$t:wo.bind(null,r,n),formatList:Lo.bind(null,r,n.getListFormat),formatListToParts:Ro.bind(null,r,n.getListFormat),formatDisplayName:Ao.bind(null,r,n.getDisplayNames)})}(pr(pr(pr({},Vo),r),{defaultRichTextElements:a}),t);return pr(pr({},o),{formatMessage:ti.bind(null,{locale:o.locale,timeZone:o.timeZone,fallbackOnEmptyString:o.fallbackOnEmptyString,formats:o.formats,defaultLocale:o.defaultLocale,defaultFormats:o.defaultFormats,messages:o.messages,onError:o.onError,defaultRichTextElements:a},o.formatters)})},ri=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},t.state={cache:t.cache,intl:ni(Jo(t.props),t.cache),prevConfig:Jo(t.props)},t}return dr(t,e),t.getDerivedStateFromProps=function(e,t){var n=t.prevConfig,r=t.cache,a=Jo(e);return Wo(n,a)?null:{intl:ni(a,r),prevConfig:a}},t.prototype.render=function(){return Go(this.state.intl),cr.createElement(Qo,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=Vo,t}(cr.PureComponent);function ai(e){var t=Zo(),n=t.textComponent,r=e.children,a=e.tagName,o=void 0===a?void 0===n?cr.Fragment:n:a,i=(0,t.formatMessage)({id:e.id,description:e.description,defaultMessage:e.defaultMessage},e.values,{ignoreTag:e.ignoreTag});return"function"==typeof r?r(Array.isArray(i)?i:[i]):o?cr.createElement(o,null,cr.Children.toArray(i)):cr.createElement(cr.Fragment,null,i)}ai.displayName="FormattedMessage";var oi=cr.memo(ai,function(e,t){var n=e.values,r=mr(e,["values"]),a=t.values,o=mr(t,["values"]);return Wo(a,n)&&Wo(r,o)});oi.displayName="MemoizedFormattedMessage";var ii=Yo("formatDate"),li=(Yo("formatTime"),Yo("formatNumber")),ui=(Yo("formatList"),Yo("formatDisplayName"),{"credit-features.credit-cost-display":"{creditCost} (APR {taegPercentage})","credit-features.information":"Ein Kredit verpflichtet Sie und muss zurückgezahlt werden. Prüfen Sie Ihre Rückzahlungsfähigkeit, bevor Sie sich verpflichten.","credit-features.total-credit-cost":"Davon Kreditkosten","eligibility-modal.bullet-1":"Wählen Sie <strong>Alma</strong> beim Check-out. ","eligibility-modal.bullet-2":"Lassen Sie sich führen und bestätigen Sie Ihre Zahlung in <strong>2 Minuten.</strong>","eligibility-modal.bullet-3":"<strong>Verlieren Sie nicht die Kontrolle,</strong> indem Sie Ihre Fälligkeitstermine nach Ihrem eigenen Tempo vor- oder zurückverlegen.","eligibility-modal.no-eligibility":"Ups, die Prüfung hat anscheinend nicht funktioniert.","eligibility-modal.p1x-bullet-1":"Wählen Sie <strong>Alma - Jetzt bezahlen</strong> zum Zeitpunkt der Zahlung.","eligibility-modal.p1x-bullet-2":"Tragen Sie Ihre <strong>Kreditkarteninformationen ein.</strong>","eligibility-modal.p1x-bullet-3":"<strong> Ihre Zahlung wird sofort bestätigt! </strong>","eligibility-modal.title-deferred-plan":"Zahlen Sie mit Alma in Raten oder später.","eligibility-modal.title-normal":"Zahlen Sie mit Alma in mehreren Raten.","eligibility-modal.title-pay-now":"Bezahlen Sie auf einmal mit Alma per Kreditkarte.","installments.today":"Heute","installments.total-amount":"Gesamtsumme","installments.total-fees":"Davon Kosten","payment-plan-strings.day-abbreviation":"T{deferredDays}","payment-plan-strings.default-message":"Bezahlen Sie zinsfrei in mehreren Raten mit Alma.","payment-plan-strings.deferred":"{totalAmount} zu zahlen am {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Bis zu {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"Ab {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} dann {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} dann {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(0% Finanzierung)","payment-plan-strings.pay-now":"Zahlen Sie jetzt {totalAmount}","payment-plan-strings.pay.now.button":"Jetzt bezahlen"}),si={"credit-features.credit-cost-display":"{creditCost} (APR {taegPercentage})","credit-features.information":"A loan commits you and must be repaid. Check your ability to repay before committing yourself.","credit-features.total-credit-cost":"Of which cost of credit","eligibility-modal.bullet-1":"Choose <strong>Alma</strong> at checkout.","eligibility-modal.bullet-2":"Let us guide you and validate your payment in <strong>2 minutes.</strong>","eligibility-modal.bullet-3":"<strong>Stay in control</strong> by moving your deadlines forward or backward at your own pace.","eligibility-modal.no-eligibility":"Oops, looks like the simulation didn't work.","eligibility-modal.p1x-bullet-1":"Choose <strong>Alma - Pay now</strong> at checkout.","eligibility-modal.p1x-bullet-2":"Fill in your <strong>credit card information.</strong>","eligibility-modal.p1x-bullet-3":"<strong>The validation </strong> of your payment is instantaneous!","eligibility-modal.title-deferred-plan":"Pay in installments or later by credit card with Alma.","eligibility-modal.title-normal":"Pay in installments by credit card with Alma.","eligibility-modal.title-pay-now":"Pay cash by credit card with Alma.","installments.today":"Today","installments.total-amount":"Total","installments.total-fees":"Of which costs (incl. VAT)","payment-plan-strings.day-abbreviation":"D{deferredDays}","payment-plan-strings.default-message":"Pay in installments with Alma","payment-plan-strings.deferred":"{totalAmount} to pay the {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Until {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"From {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} then {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} then {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(free of charge)","payment-plan-strings.pay-now":"Pay now {totalAmount}","payment-plan-strings.pay.now.button":"Pay now"},ci={"credit-features.credit-cost-display":"{creditCost} (TAE {taegPercentage})","credit-features.information":"Un préstamo te compromete y debe ser devuelto. Comprueba tu capacidad financiera antes de comprometerte.","credit-features.total-credit-cost":"Coste de crédito (incl. en el total)","eligibility-modal.bullet-1":"Elige <strong>Alma</strong> como método de pago.","eligibility-modal.bullet-2":"Déjate guiar y válida tu pago en <strong>2 minutos.</strong>","eligibility-modal.bullet-3":"<strong>Mantén el control</strong> adelantando o retrasando los plazos a su propio ritmo.","eligibility-modal.no-eligibility":"Uy, parece que la simulación no ha funcionado.","eligibility-modal.p1x-bullet-1":"Elije <strong>Alma - Pagar ahora</strong> al momento de la compra.","eligibility-modal.p1x-bullet-2":"Introduzca los datos de tu tarjeta bancaria en <strong>.</strong>","eligibility-modal.p1x-bullet-3":"<strong>¡La validación </strong> de tu pago es instantánea!","eligibility-modal.title-deferred-plan":"Paga a plazos o posteriormente con tarjeta bancaria con Alma.","eligibility-modal.title-normal":"Pagar a plazos con tarjeta bancaria con Alma.","eligibility-modal.title-pay-now":"Paga de contado con tu tarjeta bancaria a través de alma.","installments.today":"Hoy","installments.total-amount":"Total","installments.total-fees":"De los cuales, costes (IVA incluido)","payment-plan-strings.day-abbreviation":"D{deferredDays}","payment-plan-strings.default-message":"Pagar a plazos con Alma","payment-plan-strings.deferred":"{totalAmount} a pagar el {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Hasta {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"Desde {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} hoy, después {numberOfRemainingInstallments} mensualidad de {othersInstallmentAmount}} other {{firstInstallmentAmount} hoy, después {numberOfRemainingInstallments} mensualidades de {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} plazos de {totalAmount}","payment-plan-strings.no-fee":"(sin intereses)","payment-plan-strings.pay-now":"Pague ahora {totalAmount}","payment-plan-strings.pay.now.button":"Pagar ahora"},fi={"credit-features.credit-cost-display":"{creditCost} (TAEG {taegPercentage})","credit-features.information":"Un crédit vous engage et doit être remboursé. Vérifiez vos capacités de remboursement avant de vous engager.","credit-features.total-credit-cost":"Dont coût du crédit","eligibility-modal.bullet-1":"Choisissez <strong>Alma</strong> au moment du paiement.","eligibility-modal.bullet-2":"Laissez-vous guider et validez votre paiement en <strong>2 minutes.</strong>","eligibility-modal.bullet-3":"<strong>Gardez le contrôle</strong> en avançant ou reculant vos échéances à votre rythme.","eligibility-modal.no-eligibility":"Oups, il semblerait que la simulation n'ait pas fonctionné.","eligibility-modal.p1x-bullet-1":"Choisissez <strong>Alma - Payer maintenant</strong> au moment du paiement.","eligibility-modal.p1x-bullet-2":"Renseignez les informations de votre <strong>carte bancaire.</strong>","eligibility-modal.p1x-bullet-3":"<strong>La validation </strong> de votre paiement est instantanée !","eligibility-modal.title-deferred-plan":"Payez en plusieurs fois ou plus tard par carte bancaire avec Alma.","eligibility-modal.title-normal":"Payez en plusieurs fois par carte bancaire avec Alma.","eligibility-modal.title-pay-now":"Payez comptant par carte bancaire avec Alma.","installments.today":"Aujourd'hui","installments.total-amount":"Total","installments.total-fees":"Dont frais (TTC)","payment-plan-strings.day-abbreviation":"J{deferredDays}","payment-plan-strings.default-message":"Payez en plusieurs fois avec Alma","payment-plan-strings.deferred":"{totalAmount} à payer le {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Jusqu'à {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"À partir de {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(sans frais)","payment-plan-strings.pay-now":"Payer maintenant {totalAmount}","payment-plan-strings.pay.now.button":"Payer maintenant"},di={"credit-features.credit-cost-display":"{creditCost} (TAEG {taegPercentage})","credit-features.information":"Un pagamento rateale ti impegna e deve essere ripagato. Verifica la tua disponibilità finanziaria prima di impegnarti.","credit-features.total-credit-cost":"Di cui commissioni","eligibility-modal.bullet-1":"Seleziona <strong>Alma</strong> come metodo di pagamento.","eligibility-modal.bullet-2":"Segui le istruzioni e completa l'acquisto <strong>in meno di 2 minuti.</strong>","eligibility-modal.bullet-3":"<strong>Gestisci il tuo piano di pagamento</strong> e modifica le scadenze secondo le tue esigenze.","eligibility-modal.no-eligibility":"Ops, sembra che qualcosa non abbia funzionato.","eligibility-modal.p1x-bullet-1":"Scegli <strong>Alma - Paga ora</strong> alla cassa.","eligibility-modal.p1x-bullet-2":"Inserisci i dati della tua <strong>carta bancaria.</strong>","eligibility-modal.p1x-bullet-3":"Ricevi la conferma di pagamento <strong>istantaneamente!</strong>","eligibility-modal.title-deferred-plan":"Paga a rate con Alma, senza registrazione.","eligibility-modal.title-normal":"Paga a rate con Alma, senza registrazione.","eligibility-modal.title-pay-now":"Paga ora con carta tramite Alma.","installments.today":"Oggi","installments.total-amount":"Totale","installments.total-fees":"Di cui commissioni","payment-plan-strings.day-abbreviation":"G{deferredDays}","payment-plan-strings.default-message":"Paga a rate con Alma, senza registrazione.","payment-plan-strings.deferred":"{totalAmount} da pagare il {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Disponibile fino a {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"Pagamento rateale disponibile a partire da {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {Oggi paghi {firstInstallmentAmount} poi tra {numberOfRemainingInstallments} mese {othersInstallmentAmount}} other {Oggi paghi {firstInstallmentAmount} poi {numberOfRemainingInstallments} rate mensili di {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"In {installmentsCount} rate mensili di {totalAmount}","payment-plan-strings.no-fee":"(senza interessi)","payment-plan-strings.pay-now":"Paga ora {totalAmount}","payment-plan-strings.pay.now.button":"Paga ora"},pi={"credit-features.credit-cost-display":"{creditCost} (gemiddeld rente percentage {taegPercentage})","credit-features.information":"Een lening is bindend en moet worden terugbetaald. Ga na of je het kunt terugbetalen voordat je jezelf vastlegt.","credit-features.total-credit-cost":"Waarvan kredietkosten","eligibility-modal.bullet-1":"Kies <strong>Alma</strong> bij het afrekenen om de eerste termijn te voldoen via iDeal, Bancontact of een gewenste creditcard.","eligibility-modal.bullet-2":"Laat ons je begeleiden om de betaling binnen <strong>1 minuut </strong> te valideren zonder dat je een account hoeft aan te maken.","eligibility-modal.bullet-3":"<strong>Behoudt de controle </strong> en bepaal je eigen tempo. Bij Alma schuif je de deadlines gemakkelijk vooruit of achteruit. Zonder BKR / CKP registratie of bijkomende kosten.","eligibility-modal.no-eligibility":"Oeps, het lijkt erop dat de simulatie niet werkte.","eligibility-modal.p1x-bullet-1":"Kies <strong>Alma - Betaal nu</strong> bij het afrekenen om de eerste termijn te voldoen via iDeal, Bancontact of een gewenste creditcard.","eligibility-modal.p1x-bullet-2":"Vul jouw <strong>gegevens </strong> in","eligibility-modal.p1x-bullet-3":"<strong>De bevestiging </strong> van jouw betaling is onmiddellijk!","eligibility-modal.title-deferred-plan":"Betaal in 2, 3 of 4 rentevrije termijnen bij Alma - zonder BKR of CKP registratie.","eligibility-modal.title-normal":"Betaal in 2, 3 of 4 rentevrije termijnen bij Alma - zonder BKR of CKP registratie.","eligibility-modal.title-pay-now":"Betaal met iDEAL of per creditcard bij Alma.","installments.today":"Vandaag","installments.total-amount":"Totaal","installments.total-fees":"Waarvan kosten (incl. BTW)","payment-plan-strings.day-abbreviation":"D{deferredDays}","payment-plan-strings.default-message":"Betaal in 2, 3 of 4 rentevrije termijnen bij Alma - zonder BKR of CKP registratie","payment-plan-strings.deferred":"{totalAmount} te betalen op {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Tot {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"Vanaf {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} dan {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} dan {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(zonder kosten)","payment-plan-strings.pay-now":"Betaal nu {totalAmount}","payment-plan-strings.pay.now.button":"Betaal nu"},mi={"credit-features.credit-cost-display":"{creditCost} (TAEG {taegPercentage})","credit-features.information":"Um crédito é um compromisso e deve ser reembolsado. Verifique a sua capacidade de pagar antes de se comprometer.","credit-features.total-credit-cost":"Incluindo comissões de crédito","eligibility-modal.bullet-1":"Seleccionar <strong>Alma - Pay Now</strong> no final da compra.","eligibility-modal.bullet-2":"Siga as instruções e valide o seu pagamento em <strong>2 minutos.</strong>","eligibility-modal.bullet-3":"<strong>Mantenha o controlo</strong> adiando as datas de pagamento ao seu próprio ritmo.","eligibility-modal.no-eligibility":"Ups, parece que a simulação não funcionou.","eligibility-modal.p1x-bullet-1":"Escolha <strong>Alma - Pague agora</strong> no checkout.","eligibility-modal.p1x-bullet-2":"Preencha os dados do seu <strong>cartão de bancário.</strong>","eligibility-modal.p1x-bullet-3":"<strong>A validação </strong> do seu pagamento é instantânea!","eligibility-modal.title-deferred-plan":"Pagar em prestações ou mais tarde por cartão de crédito com Alma.","eligibility-modal.title-normal":"Pagar em prestações por cartão bancário com a Alma.","eligibility-modal.title-pay-now":"Pague na integralidade com a Alma por cartão bancário.","installments.today":"Hoje","installments.total-amount":"Total","installments.total-fees":"Das quais comissões (incl. IVA)","payment-plan-strings.day-abbreviation":"D{deferredDays}","payment-plan-strings.default-message":"Pagamento em prestações com a Alma","payment-plan-strings.deferred":"{totalAmount} a pagar em {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Até {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"A partir de {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} depois {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} depois {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(sem encargos)","payment-plan-strings.pay-now":"Pagar agora {totalAmount}","payment-plan-strings.pay.now.button":"Pagar agora"},hi=function(e){switch(e.slice(0,2)){case Jn.fr:return fi;case Jn.es:return ci;case Jn.it:return di;case Jn.de:return ui;case Jn.pt:return mi;case Jn.nl:return pi;case Jn.en:default:return si}},yi=function(e){var t=e.children,n=e.locale;return cr.createElement(ri,{messages:hi(n),locale:n,defaultLocale:"en"},t)},gi=p(function(e,t){var n,r,a,o;if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var l=Date,u=l.now();t.unstable_now=function(){return l.now()-u}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,c=null,f=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(f,0),e}};n=function(e){null!==s?setTimeout(n,0,e):(s=e,setTimeout(f,0))},r=function(e,t){c=setTimeout(e,t)},a=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,p=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var h=!1,y=null,g=-1,v=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):v=0<e?Math.floor(1e3/e):5};var E=new MessageChannel,w=E.port2;E.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();b=e+v;try{y(!0,e)?w.postMessage(null):(h=!1,y=null)}catch(e){throw w.postMessage(null),e}}else h=!1},n=function(e){y=e,h||(h=!0,w.postMessage(null))},r=function(e,n){g=d(function(){e(t.unstable_now())},n)},a=function(){p(g),g=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,a=e[r];if(!(void 0!==a&&0<O(a,t)))break e;e[r]=t,e[n]=a,n=r}}function _(e){return void 0===(e=e[0])?null:e}function C(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length;r<a;){var o=2*(r+1)-1,i=e[o],l=o+1,u=e[l];if(void 0!==i&&0>O(i,n))void 0!==u&&0>O(u,i)?(e[r]=u,e[l]=n,r=l):(e[r]=i,e[o]=n,r=o);else{if(!(void 0!==u&&0>O(u,n)))break e;e[r]=u,e[l]=n,r=l}}}return t}return null}function O(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var k=[],P=[],T=1,x=null,A=3,N=!1,M=!1,L=!1;function R(e){for(var t=_(P);null!==t;){if(null===t.callback)C(P);else{if(!(t.startTime<=e))break;C(P),t.sortIndex=t.expirationTime,S(k,t)}t=_(P)}}function I(e){if(L=!1,R(e),!M)if(null!==_(k))M=!0,n(D);else{var t=_(P);null!==t&&r(I,t.startTime-e)}}function D(e,n){M=!1,L&&(L=!1,a()),N=!0;var o=A;try{for(R(n),x=_(k);null!==x&&(!(x.expirationTime>n)||e&&!t.unstable_shouldYield());){var i=x.callback;if("function"==typeof i){x.callback=null,A=x.priorityLevel;var l=i(x.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?x.callback=l:x===_(k)&&C(k),R(n)}else C(k);x=_(k)}if(null!==x)var u=!0;else{var s=_(P);null!==s&&r(I,s.startTime-n),u=!1}return u}finally{x=null,A=o,N=!1}}var F=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){M||N||(M=!0,n(D))},t.unstable_getCurrentPriorityLevel=function(){return A},t.unstable_getFirstCallbackNode=function(){return _(k)},t.unstable_next=function(e){switch(A){case 1:case 2:case 3:var t=3;break;default:t=A}var n=A;A=t;try{return e()}finally{A=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=F,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=A;A=e;try{return t()}finally{A=n}},t.unstable_scheduleCallback=function(e,o,i){var l=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?l+i:l,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return e={id:T++,callback:o,priorityLevel:e,startTime:i,expirationTime:u=i+u,sortIndex:-1},i>l?(e.sortIndex=i,S(P,e),null===_(k)&&e===_(P)&&(L?a():L=!0,r(I,i-l))):(e.sortIndex=u,S(k,e),M||N||(M=!0,n(D))),e},t.unstable_wrapCallback=function(e){var t=A;return function(){var n=A;A=t;try{return e.apply(this,arguments)}finally{A=n}}}}),vi=(p(function(e,t){}),p(function(e){e.exports=gi}));function bi(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!cr)throw Error(bi(227));var Ei=new Set,wi={};function Si(e,t){_i(e,t),_i(e+"Capture",t)}function _i(e,t){for(wi[e]=t,e=0;e<t.length;e++)Ei.add(t[e])}var Ci=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Oi=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ki=Object.prototype.hasOwnProperty,Pi={},Ti={};function xi(e,t,n,r,a,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var Ai={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ai[e]=new xi(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ai[t]=new xi(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ai[e]=new xi(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ai[e]=new xi(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ai[e]=new xi(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Ai[e]=new xi(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Ai[e]=new xi(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Ai[e]=new xi(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Ai[e]=new xi(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ni=/[\-:]([a-z])/g;function Mi(e){return e[1].toUpperCase()}function Li(e,t,n,r){var a=Ai.hasOwnProperty(t)?Ai[t]:null;(null!==a?0===a.type:!r&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!ki.call(Ti,e)||!ki.call(Pi,e)&&(Oi.test(e)?Ti[e]=!0:(Pi[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ni,Mi);Ai[t]=new xi(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ni,Mi);Ai[t]=new xi(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ni,Mi);Ai[t]=new xi(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Ai[e]=new xi(e,1,!1,e.toLowerCase(),null,!1,!1)}),Ai.xlinkHref=new xi("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Ai[e]=new xi(e,1,!1,e.toLowerCase(),null,!0,!0)});var Ri=cr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ii=60103,Di=60106,Fi=60107,ji=60108,Hi=60114,Bi=60109,Ui=60110,zi=60112,Gi=60113,Vi=60120,Wi=60115,$i=60116,qi=60121,Ki=60128,Qi=60129,Xi=60130,Zi=60131;if("function"==typeof Symbol&&Symbol.for){var Yi=Symbol.for;Ii=Yi("react.element"),Di=Yi("react.portal"),Fi=Yi("react.fragment"),ji=Yi("react.strict_mode"),Hi=Yi("react.profiler"),Bi=Yi("react.provider"),Ui=Yi("react.context"),zi=Yi("react.forward_ref"),Gi=Yi("react.suspense"),Vi=Yi("react.suspense_list"),Wi=Yi("react.memo"),$i=Yi("react.lazy"),qi=Yi("react.block"),Yi("react.scope"),Ki=Yi("react.opaque.id"),Qi=Yi("react.debug_trace_mode"),Xi=Yi("react.offscreen"),Zi=Yi("react.legacy_hidden")}var Ji,el="function"==typeof Symbol&&Symbol.iterator;function tl(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=el&&e[el]||e["@@iterator"])?e:null}function nl(e){if(void 0===Ji)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ji=t&&t[1]||""}return"\n"+Ji+e}var rl=!1;function al(e,t){if(!e||rl)return"";rl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var a=e.stack.split("\n"),o=r.stack.split("\n"),i=a.length-1,l=o.length-1;1<=i&&0<=l&&a[i]!==o[l];)l--;for(;1<=i&&0<=l;i--,l--)if(a[i]!==o[l]){if(1!==i||1!==l)do{if(i--,0>--l||a[i]!==o[l])return"\n"+a[i].replace(" at new "," at ")}while(1<=i&&0<=l);break}}}finally{rl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?nl(e):""}function ol(e){switch(e.tag){case 5:return nl(e.type);case 16:return nl("Lazy");case 13:return nl("Suspense");case 19:return nl("SuspenseList");case 0:case 2:case 15:return al(e.type,!1);case 11:return al(e.type.render,!1);case 22:return al(e.type._render,!1);case 1:return al(e.type,!0);default:return""}}function il(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Fi:return"Fragment";case Di:return"Portal";case Hi:return"Profiler";case ji:return"StrictMode";case Gi:return"Suspense";case Vi:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Ui:return(e.displayName||"Context")+".Consumer";case Bi:return(e._context.displayName||"Context")+".Provider";case zi:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case Wi:return il(e.type);case qi:return il(e._render);case $i:t=e._payload,e=e._init;try{return il(e(t))}catch(e){}}return null}function ll(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ul(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function sl(e){e._valueTracker||(e._valueTracker=function(e){var t=ul(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function cl(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ul(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function fl(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function dl(e,t){var n=t.checked;return ur({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function pl(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ll(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function ml(e,t){null!=(t=t.checked)&&Li(e,"checked",t,!1)}function hl(e,t){ml(e,t);var n=ll(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?gl(e,t.type,n):t.hasOwnProperty("defaultValue")&&gl(e,t.type,ll(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function yl(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(("submit"===r||"reset"===r)&&null==t.value)return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function gl(e,t,n){"number"===t&&fl(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function vl(e,t){return e=ur({children:void 0},t),(t=function(e){var t="";return cr.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(t.children))&&(e.children=t),e}function bl(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ll(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function El(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(bi(91));return ur({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function wl(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(bi(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(bi(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ll(n)}}function Sl(e,t){var n=ll(t.value),r=ll(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function _l(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Cl="http://www.w3.org/1999/xhtml";function Ol(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function kl(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Ol(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Pl,Tl=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,a){MSApp.execUnsafeLocalFunction(function(){return e(t,n)})}:e}(function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((Pl=Pl||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Pl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function xl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Al={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Nl=["Webkit","ms","Moz","O"];function Ml(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Al.hasOwnProperty(e)&&Al[e]?(""+t).trim():t+"px"}function Ll(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=Ml(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(Al).forEach(function(e){Nl.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Al[t]=Al[e]})});var Rl=ur({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Il(e,t){if(t){if(Rl[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(bi(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(bi(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(bi(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(bi(62))}}function Dl(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Fl(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var jl=null,Hl=null,Bl=null;function Ul(e){if(e=uf(e)){if("function"!=typeof jl)throw Error(bi(280));var t=e.stateNode;t&&(t=cf(t),jl(e.stateNode,e.type,t))}}function zl(e){Hl?Bl?Bl.push(e):Bl=[e]:Hl=e}function Gl(){if(Hl){var e=Hl,t=Bl;if(Bl=Hl=null,Ul(e),t)for(e=0;e<t.length;e++)Ul(t[e])}}function Vl(e,t){return e(t)}function Wl(e,t,n,r,a){return e(t,n,r,a)}function $l(){}var ql=Vl,Kl=!1,Ql=!1;function Xl(){null===Hl&&null===Bl||($l(),Gl())}function Zl(e,t){var n=e.stateNode;if(null===n)return null;var r=cf(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(bi(231,t,typeof n));return n}var Yl=!1;if(Ci)try{var Jl={};Object.defineProperty(Jl,"passive",{get:function(){Yl=!0}}),window.addEventListener("test",Jl,Jl),window.removeEventListener("test",Jl,Jl)}catch(e){Yl=!1}function eu(e,t,n,r,a,o,i,l,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}var tu=!1,nu=null,ru=!1,au=null,ou={onError:function(e){tu=!0,nu=e}};function iu(e,t,n,r,a,o,i,l,u){tu=!1,nu=null,eu.apply(ou,arguments)}function lu(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function uu(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function su(e){if(lu(e)!==e)throw Error(bi(188))}function cu(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=lu(e)))throw Error(bi(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var o=a.alternate;if(null===o){if(null!==(r=a.return)){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return su(a),e;if(o===r)return su(a),t;o=o.sibling}throw Error(bi(188))}if(n.return!==r.return)n=a,r=o;else{for(var i=!1,l=a.child;l;){if(l===n){i=!0,n=a,r=o;break}if(l===r){i=!0,r=a,n=o;break}l=l.sibling}if(!i){for(l=o.child;l;){if(l===n){i=!0,n=o,r=a;break}if(l===r){i=!0,r=o,n=a;break}l=l.sibling}if(!i)throw Error(bi(189))}}if(n.alternate!==r)throw Error(bi(190))}if(3!==n.tag)throw Error(bi(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}var fu,du,pu,mu,hu=!1,yu=[],gu=null,vu=null,bu=null,Eu=new Map,wu=new Map,Su=[],_u="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Cu(e,t,n,r,a){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:a,targetContainers:[r]}}function Ou(e,t){switch(e){case"focusin":case"focusout":gu=null;break;case"dragenter":case"dragleave":vu=null;break;case"mouseover":case"mouseout":bu=null;break;case"pointerover":case"pointerout":Eu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":wu.delete(t.pointerId)}}function ku(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e=Cu(t,n,r,a,o),null!==t&&null!==(t=uf(t))&&du(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function Pu(e){var t=lf(e.target);if(null!==t){var n=lu(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=uu(n)))return e.blockedOn=t,void mu(e.lanePriority,function(){vi.unstable_runWithPriority(e.priority,function(){pu(n)})})}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Tu(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=us(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=uf(n))&&du(t),e.blockedOn=n,!1;t.shift()}return!0}function xu(e,t,n){Tu(e)&&n.delete(t)}function Au(){for(hu=!1;0<yu.length;){var e=yu[0];if(null!==e.blockedOn){null!==(e=uf(e.blockedOn))&&fu(e);break}for(var t=e.targetContainers;0<t.length;){var n=us(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&yu.shift()}null!==gu&&Tu(gu)&&(gu=null),null!==vu&&Tu(vu)&&(vu=null),null!==bu&&Tu(bu)&&(bu=null),Eu.forEach(xu),wu.forEach(xu)}function Nu(e,t){e.blockedOn===t&&(e.blockedOn=null,hu||(hu=!0,vi.unstable_scheduleCallback(vi.unstable_NormalPriority,Au)))}function Mu(e){function t(t){return Nu(t,e)}if(0<yu.length){Nu(yu[0],e);for(var n=1;n<yu.length;n++){var r=yu[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==gu&&Nu(gu,e),null!==vu&&Nu(vu,e),null!==bu&&Nu(bu,e),Eu.forEach(t),wu.forEach(t),n=0;n<Su.length;n++)(r=Su[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Su.length&&null===(n=Su[0]).blockedOn;)Pu(n),null===n.blockedOn&&Su.shift()}function Lu(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ru={animationend:Lu("Animation","AnimationEnd"),animationiteration:Lu("Animation","AnimationIteration"),animationstart:Lu("Animation","AnimationStart"),transitionend:Lu("Transition","TransitionEnd")},Iu={},Du={};function Fu(e){if(Iu[e])return Iu[e];if(!Ru[e])return e;var t,n=Ru[e];for(t in n)if(n.hasOwnProperty(t)&&t in Du)return Iu[e]=n[t];return e}Ci&&(Du=document.createElement("div").style,"AnimationEvent"in window||(delete Ru.animationend.animation,delete Ru.animationiteration.animation,delete Ru.animationstart.animation),"TransitionEvent"in window||delete Ru.transitionend.transition);var ju=Fu("animationend"),Hu=Fu("animationiteration"),Bu=Fu("animationstart"),Uu=Fu("transitionend"),zu=new Map,Gu=new Map,Vu=["abort","abort",ju,"animationEnd",Hu,"animationIteration",Bu,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Uu,"transitionEnd","waiting","waiting"];function Wu(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],a=e[n+1];a="on"+(a[0].toUpperCase()+a.slice(1)),Gu.set(r,t),zu.set(r,a),Si(a,[r])}}(0,vi.unstable_now)();var $u=8;function qu(e){if(0!=(1&e))return $u=15,1;if(0!=(2&e))return $u=14,2;if(0!=(4&e))return $u=13,4;var t=24&e;return 0!==t?($u=12,t):0!=(32&e)?($u=11,32):0!=(t=192&e)?($u=10,t):0!=(256&e)?($u=9,256):0!=(t=3584&e)?($u=8,t):0!=(4096&e)?($u=7,4096):0!=(t=4186112&e)?($u=6,t):0!=(t=62914560&e)?($u=5,t):67108864&e?($u=4,67108864):0!=(134217728&e)?($u=3,134217728):0!=(t=805306368&e)?($u=2,t):0!=(1073741824&e)?($u=1,1073741824):($u=8,e)}function Ku(e,t){var n=e.pendingLanes;if(0===n)return $u=0;var r=0,a=0,o=e.expiredLanes,i=e.suspendedLanes,l=e.pingedLanes;if(0!==o)r=o,a=$u=15;else if(0!=(o=134217727&n)){var u=o&~i;0!==u?(r=qu(u),a=$u):0!=(l&=o)&&(r=qu(l),a=$u)}else 0!=(o=n&~i)?(r=qu(o),a=$u):0!==l&&(r=qu(l),a=$u);if(0===r)return 0;if(r=n&((0>(r=31-Ju(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&i)){if(qu(t),a<=$u)return t;$u=a}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)r|=e[n=31-Ju(t)],t&=~(a=1<<n);return r}function Qu(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Xu(e){return e&-e}function Zu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Yu(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ju(t)]=n}var Ju=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(es(e)/ts|0)|0},es=Math.log,ts=Math.LN2,ns=vi.unstable_UserBlockingPriority,rs=vi.unstable_runWithPriority,as=!0;function os(e,t,n,r){Kl||$l();var a=ls,o=Kl;Kl=!0;try{Wl(a,e,t,n,r)}finally{(Kl=o)||Xl()}}function is(e,t,n,r){rs(ns,ls.bind(null,e,t,n,r))}function ls(e,t,n,r){var a;if(as)if((a=0==(4&t))&&0<yu.length&&-1<_u.indexOf(e))e=Cu(null,e,t,n,r),yu.push(e);else{var o=us(e,t,n,r);if(null===o)a&&Ou(e,r);else{if(a){if(-1<_u.indexOf(e))return e=Cu(o,e,t,n,r),void yu.push(e);if(function(e,t,n,r,a){switch(t){case"focusin":return gu=ku(gu,e,t,n,r,a),!0;case"dragenter":return vu=ku(vu,e,t,n,r,a),!0;case"mouseover":return bu=ku(bu,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return Eu.set(o,ku(Eu.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return wu.set(o=a.pointerId,ku(wu.get(o)||null,e,t,n,r,a)),!0}return!1}(o,e,t,n,r))return;Ou(e,r)}Hc(e,t,r,null,n)}}}function us(e,t,n,r){var a=Fl(r);if(null!==(a=lf(a))){var o=lu(a);if(null===o)a=null;else{var i=o.tag;if(13===i){if(null!==(a=uu(o)))return a;a=null}else if(3===i){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;a=null}else o!==a&&(a=null)}}return Hc(e,t,r,a,n),null}var ss=null,cs=null,fs=null;function ds(){if(fs)return fs;var e,t,n=cs,r=n.length,a="value"in ss?ss.value:ss.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[o-t];t++);return fs=a.slice(e,1<t?1-t:void 0)}function ps(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function ms(){return!0}function hs(){return!1}function ys(e){function t(t,n,r,a,o){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(i)&&(this[i]=(t=e[i])?t(a):a[i]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?ms:hs,this.isPropagationStopped=hs,this}return ur(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ms)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ms)},persist:function(){},isPersistent:ms}),t}var gs,vs,bs,Es={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ws=ys(Es),Ss=ur({},Es,{view:0,detail:0}),_s=ys(Ss),Cs=ur({},Ss,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Is,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==bs&&(bs&&"mousemove"===e.type?(gs=e.screenX-bs.screenX,vs=e.screenY-bs.screenY):vs=gs=0,bs=e),gs)},movementY:function(e){return"movementY"in e?e.movementY:vs}}),Os=ys(Cs),ks=ys(ur({},Cs,{dataTransfer:0})),Ps=ys(ur({},Ss,{relatedTarget:0})),Ts=ys(ur({},Es,{animationName:0,elapsedTime:0,pseudoElement:0})),xs=ys(ur({},Es,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),As=ys(ur({},Es,{data:0})),Ns={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ms={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Ls={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Rs(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Ls[e])&&!!t[e]}function Is(){return Rs}var Ds=ys(ur({},Ss,{key:function(e){if(e.key){var t=Ns[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=ps(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Ms[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Is,charCode:function(e){return"keypress"===e.type?ps(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ps(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Fs=ys(ur({},Cs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),js=ys(ur({},Ss,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Is})),Hs=ys(ur({},Es,{propertyName:0,elapsedTime:0,pseudoElement:0})),Bs=ys(ur({},Cs,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Us=[9,13,27,32],zs=Ci&&"CompositionEvent"in window,Gs=null;Ci&&"documentMode"in document&&(Gs=document.documentMode);var Vs=Ci&&"TextEvent"in window&&!Gs,Ws=Ci&&(!zs||Gs&&8<Gs&&11>=Gs),$s=String.fromCharCode(32),qs=!1;function Ks(e,t){switch(e){case"keyup":return-1!==Us.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qs(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Xs=!1,Zs={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ys(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Zs[e.type]:"textarea"===t}function Js(e,t,n,r){zl(r),0<(t=Uc(t,"onChange")).length&&(n=new ws("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ec=null,tc=null;function nc(e){Lc(e,0)}function rc(e){if(cl(sf(e)))return e}function ac(e,t){if("change"===e)return t}var oc=!1;if(Ci){var ic;if(Ci){var lc="oninput"in document;if(!lc){var uc=document.createElement("div");uc.setAttribute("oninput","return;"),lc="function"==typeof uc.oninput}ic=lc}else ic=!1;oc=ic&&(!document.documentMode||9<document.documentMode)}function sc(){ec&&(ec.detachEvent("onpropertychange",cc),tc=ec=null)}function cc(e){if("value"===e.propertyName&&rc(tc)){var t=[];if(Js(t,tc,e,Fl(e)),e=nc,Kl)e(t);else{Kl=!0;try{Vl(e,t)}finally{Kl=!1,Xl()}}}}function fc(e,t,n){"focusin"===e?(sc(),tc=n,(ec=t).attachEvent("onpropertychange",cc)):"focusout"===e&&sc()}function dc(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return rc(tc)}function pc(e,t){if("click"===e)return rc(t)}function mc(e,t){if("input"===e||"change"===e)return rc(t)}var hc="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},yc=Object.prototype.hasOwnProperty;function gc(e,t){if(hc(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!yc.call(t,n[r])||!hc(e[n[r]],t[n[r]]))return!1;return!0}function vc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function bc(e,t){var n,r=vc(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=vc(r)}}function Ec(){for(var e=window,t=fl();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=fl((e=t.contentWindow).document)}return t}function wc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var Sc=Ci&&"documentMode"in document&&11>=document.documentMode,_c=null,Cc=null,Oc=null,kc=!1;function Pc(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;kc||null==_c||_c!==fl(r)||(r="selectionStart"in(r=_c)&&wc(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Oc&&gc(Oc,r)||(Oc=r,0<(r=Uc(Cc,"onSelect")).length&&(t=new ws("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=_c)))}Wu("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Wu("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Wu(Vu,2);for(var Tc="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),xc=0;xc<Tc.length;xc++)Gu.set(Tc[xc],0);_i("onMouseEnter",["mouseout","mouseover"]),_i("onMouseLeave",["mouseout","mouseover"]),_i("onPointerEnter",["pointerout","pointerover"]),_i("onPointerLeave",["pointerout","pointerover"]),Si("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Si("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Si("onBeforeInput",["compositionend","keypress","textInput","paste"]),Si("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Si("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Si("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ac="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Nc=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ac));function Mc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,a,o,i,l,u){if(iu.apply(this,arguments),tu){if(!tu)throw Error(bi(198));var s=nu;tu=!1,nu=null,ru||(ru=!0,au=s)}}(r,t,void 0,e),e.currentTarget=null}function Lc(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],u=l.instance,s=l.currentTarget;if(l=l.listener,u!==o&&a.isPropagationStopped())break e;Mc(a,l,s),o=u}else for(i=0;i<r.length;i++){if(u=(l=r[i]).instance,s=l.currentTarget,l=l.listener,u!==o&&a.isPropagationStopped())break e;Mc(a,l,s),o=u}}}if(ru)throw e=au,ru=!1,au=null,e}function Rc(e,t){var n=ff(t),r=e+"__bubble";n.has(r)||(jc(t,e,2,!1),n.add(r))}var Ic="_reactListening"+Math.random().toString(36).slice(2);function Dc(e){e[Ic]||(e[Ic]=!0,Ei.forEach(function(t){Nc.has(t)||Fc(t,!1,e,null),Fc(t,!0,e,null)}))}function Fc(e,t,n,r){var a=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=n;if("selectionchange"===e&&9!==n.nodeType&&(o=n.ownerDocument),null!==r&&!t&&Nc.has(e)){if("scroll"!==e)return;a|=2,o=r}var i=ff(o),l=e+"__"+(t?"capture":"bubble");i.has(l)||(t&&(a|=4),jc(o,e,a,t),i.add(l))}function jc(e,t,n,r){var a=Gu.get(t);switch(void 0===a?2:a){case 0:a=os;break;case 1:a=is;break;default:a=ls}n=a.bind(null,t,n,e),a=void 0,!Yl||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),e.addEventListener(t,n,r?void 0===a||{capture:!0,passive:a}:void 0!==a&&{passive:a})}function Hc(e,t,n,r,a){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var l=r.stateNode.containerInfo;if(l===a||8===l.nodeType&&l.parentNode===a)break;if(4===i)for(i=r.return;null!==i;){var u=i.tag;if((3===u||4===u)&&((u=i.stateNode.containerInfo)===a||8===u.nodeType&&u.parentNode===a))return;i=i.return}for(;null!==l;){if(null===(i=lf(l)))return;if(5===(u=i.tag)||6===u){r=o=i;continue e}l=l.parentNode}}r=r.return}!function(e,t,n){if(Ql)return e();Ql=!0;try{ql(e,void 0,void 0)}finally{Ql=!1,Xl()}}(function(){var r=o,a=Fl(n),i=[];e:{var l=zu.get(e);if(void 0!==l){var u=ws,s=e;switch(e){case"keypress":if(0===ps(n))break e;case"keydown":case"keyup":u=Ds;break;case"focusin":s="focus",u=Ps;break;case"focusout":s="blur",u=Ps;break;case"beforeblur":case"afterblur":u=Ps;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=Os;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=ks;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=js;break;case ju:case Hu:case Bu:u=Ts;break;case Uu:u=Hs;break;case"scroll":u=_s;break;case"wheel":u=Bs;break;case"copy":case"cut":case"paste":u=xs;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Fs}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==l?l+"Capture":null:l;c=[];for(var p,m=r;null!==m;){var h=(p=m).stateNode;if(5===p.tag&&null!==h&&(p=h,null!==d&&null!=(h=Zl(m,d))&&c.push(Bc(m,h,p))),f)break;m=m.return}0<c.length&&(l=new u(l,s,null,n,a),i.push({event:l,listeners:c}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(s=n.relatedTarget||n.fromElement)||!lf(s)&&!s[af])&&(u||l)&&(l=a.window===a?a:(l=a.ownerDocument)?l.defaultView||l.parentWindow:window,u?(u=r,null!==(s=(s=n.relatedTarget||n.toElement)?lf(s):null)&&(s!==(f=lu(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(u=null,s=r),u!==s)){if(c=Os,h="onMouseLeave",d="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(c=Fs,h="onPointerLeave",d="onPointerEnter",m="pointer"),f=null==u?l:sf(u),p=null==s?l:sf(s),(l=new c(h,m+"leave",u,n,a)).target=f,l.relatedTarget=p,h=null,lf(a)===r&&((c=new c(d,m+"enter",s,n,a)).target=p,c.relatedTarget=f,h=c),f=h,u&&s)e:{for(d=s,m=0,p=c=u;p;p=zc(p))m++;for(p=0,h=d;h;h=zc(h))p++;for(;0<m-p;)c=zc(c),m--;for(;0<p-m;)d=zc(d),p--;for(;m--;){if(c===d||null!==d&&c===d.alternate)break e;c=zc(c),d=zc(d)}c=null}else c=null;null!==u&&Gc(i,l,u,c,!1),null!==s&&null!==f&&Gc(i,f,s,c,!0)}if("select"===(u=(l=r?sf(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===u&&"file"===l.type)var y=ac;else if(Ys(l))if(oc)y=mc;else{y=dc;var g=fc}else(u=l.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(y=pc);switch(y&&(y=y(e,r))?Js(i,y,n,a):(g&&g(e,l,r),"focusout"===e&&(g=l._wrapperState)&&g.controlled&&"number"===l.type&&gl(l,"number",l.value)),g=r?sf(r):window,e){case"focusin":(Ys(g)||"true"===g.contentEditable)&&(_c=g,Cc=r,Oc=null);break;case"focusout":Oc=Cc=_c=null;break;case"mousedown":kc=!0;break;case"contextmenu":case"mouseup":case"dragend":kc=!1,Pc(i,n,a);break;case"selectionchange":if(Sc)break;case"keydown":case"keyup":Pc(i,n,a)}var v;if(zs)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Xs?Ks(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Ws&&"ko"!==n.locale&&(Xs||"onCompositionStart"!==b?"onCompositionEnd"===b&&Xs&&(v=ds()):(cs="value"in(ss=a)?ss.value:ss.textContent,Xs=!0)),0<(g=Uc(r,b)).length&&(b=new As(b,e,null,n,a),i.push({event:b,listeners:g}),(v||null!==(v=Qs(n)))&&(b.data=v))),(v=Vs?function(e,t){switch(e){case"compositionend":return Qs(t);case"keypress":return 32!==t.which?null:(qs=!0,$s);case"textInput":return(e=t.data)===$s&&qs?null:e;default:return null}}(e,n):function(e,t){if(Xs)return"compositionend"===e||!zs&&Ks(e,t)?(e=ds(),fs=cs=ss=null,Xs=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ws&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&0<(r=Uc(r,"onBeforeInput")).length&&(a=new As("onBeforeInput","beforeinput",null,n,a),i.push({event:a,listeners:r}),a.data=v)}Lc(i,t)})}function Bc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Uc(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,o=a.stateNode;5===a.tag&&null!==o&&(a=o,null!=(o=Zl(e,n))&&r.unshift(Bc(e,o,a)),null!=(o=Zl(e,t))&&r.push(Bc(e,o,a))),e=e.return}return r}function zc(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gc(e,t,n,r,a){for(var o=t._reactName,i=[];null!==n&&n!==r;){var l=n,u=l.alternate,s=l.stateNode;if(null!==u&&u===r)break;5===l.tag&&null!==s&&(l=s,a?null!=(u=Zl(n,o))&&i.unshift(Bc(n,u,l)):a||null!=(u=Zl(n,o))&&i.push(Bc(n,u,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}function Vc(){}var Wc=null,$c=null;function qc(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Kc(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Qc="function"==typeof setTimeout?setTimeout:void 0,Xc="function"==typeof clearTimeout?clearTimeout:void 0;function Zc(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function Yc(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Jc(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var ef=0,tf=Math.random().toString(36).slice(2),nf="__reactFiber$"+tf,rf="__reactProps$"+tf,af="__reactContainer$"+tf,of="__reactEvents$"+tf;function lf(e){var t=e[nf];if(t)return t;for(var n=e.parentNode;n;){if(t=n[af]||n[nf]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Jc(e);null!==e;){if(n=e[nf])return n;e=Jc(e)}return t}n=(e=n).parentNode}return null}function uf(e){return!(e=e[nf]||e[af])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function sf(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(bi(33))}function cf(e){return e[rf]||null}function ff(e){var t=e[of];return void 0===t&&(t=e[of]=new Set),t}var df=[],pf=-1;function mf(e){return{current:e}}function hf(e){0>pf||(e.current=df[pf],df[pf]=null,pf--)}function yf(e,t){pf++,df[pf]=e.current,e.current=t}var gf={},vf=mf(gf),bf=mf(!1),Ef=gf;function wf(e,t){var n=e.type.contextTypes;if(!n)return gf;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,o={};for(a in n)o[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Sf(e){return null!=e.childContextTypes}function _f(){hf(bf),hf(vf)}function Cf(e,t,n){if(vf.current!==gf)throw Error(bi(168));yf(vf,t),yf(bf,n)}function Of(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in e))throw Error(bi(108,il(t)||"Unknown",a));return ur({},n,r)}function kf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gf,Ef=vf.current,yf(vf,e),yf(bf,bf.current),!0}function Pf(e,t,n){var r=e.stateNode;if(!r)throw Error(bi(169));n?(e=Of(e,t,Ef),r.__reactInternalMemoizedMergedChildContext=e,hf(bf),hf(vf),yf(vf,e)):hf(bf),yf(bf,n)}var Tf=null,xf=null,Af=vi.unstable_runWithPriority,Nf=vi.unstable_scheduleCallback,Mf=vi.unstable_cancelCallback,Lf=vi.unstable_shouldYield,Rf=vi.unstable_requestPaint,If=vi.unstable_now,Df=vi.unstable_getCurrentPriorityLevel,Ff=vi.unstable_ImmediatePriority,jf=vi.unstable_UserBlockingPriority,Hf=vi.unstable_NormalPriority,Bf=vi.unstable_LowPriority,Uf=vi.unstable_IdlePriority,zf={},Gf=void 0!==Rf?Rf:function(){},Vf=null,Wf=null,$f=!1,qf=If(),Kf=1e4>qf?If:function(){return If()-qf};function Qf(){switch(Df()){case Ff:return 99;case jf:return 98;case Hf:return 97;case Bf:return 96;case Uf:return 95;default:throw Error(bi(332))}}function Xf(e){switch(e){case 99:return Ff;case 98:return jf;case 97:return Hf;case 96:return Bf;case 95:return Uf;default:throw Error(bi(332))}}function Zf(e,t){return e=Xf(e),Af(e,t)}function Yf(e,t,n){return e=Xf(e),Nf(e,t,n)}function Jf(){if(null!==Wf){var e=Wf;Wf=null,Mf(e)}ed()}function ed(){if(!$f&&null!==Vf){$f=!0;var e=0;try{var t=Vf;Zf(99,function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}}),Vf=null}catch(t){throw null!==Vf&&(Vf=Vf.slice(e+1)),Nf(Ff,Jf),t}finally{$f=!1}}}var td=Ri.ReactCurrentBatchConfig;function nd(e,t){if(e&&e.defaultProps){for(var n in t=ur({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var rd=mf(null),ad=null,od=null,id=null;function ld(){id=od=ad=null}function ud(e){var t=rd.current;hf(rd),e.type._context._currentValue=t}function sd(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function cd(e,t){ad=e,id=od=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Up=!0),e.firstContext=null)}function fd(e,t){if(id!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(id=e,t=1073741823),t={context:e,observedBits:t,next:null},null===od){if(null===ad)throw Error(bi(308));od=t,ad.dependencies={lanes:0,firstContext:t,responders:null}}else od=od.next=t;return e._currentValue}var dd=!1;function pd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function md(e,t){t.updateQueue===(e=e.updateQueue)&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function hd(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function yd(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function gd(e,t){var n=e.updateQueue,r=e.alternate;if(null===r||n!==(r=r.updateQueue))null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t;else{var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?a=o=i:o=o.next=i,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;e.updateQueue=n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,effects:r.effects}}}function vd(e,t,n,r){var a=e.updateQueue;dd=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,l=a.shared.pending;if(null!==l){a.shared.pending=null;var u=l,s=u.next;u.next=null,null===i?o=s:i.next=s,i=u;var c=e.alternate;if(null!==c){var f=(c=c.updateQueue).lastBaseUpdate;f!==i&&(null===f?c.firstBaseUpdate=s:f.next=s,c.lastBaseUpdate=u)}}if(null!==o){for(f=a.baseState,i=0,c=s=u=null;;){var d=o.eventTime;if((r&(l=o.lane))===l){null!==c&&(c=c.next={eventTime:d,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var p=e,m=o;switch(l=t,d=n,m.tag){case 1:if("function"==typeof(p=m.payload)){f=p.call(d,f,l);break e}f=p;break e;case 3:p.flags=-4097&p.flags|64;case 0:if(null==(l="function"==typeof(p=m.payload)?p.call(d,f,l):p))break e;f=ur({},f,l);break e;case 2:dd=!0}}null!==o.callback&&(e.flags|=32,null===(l=a.effects)?a.effects=[o]:l.push(o))}else d={eventTime:d,lane:l,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===c?(s=c=d,u=f):c=c.next=d,i|=l;if(null===(o=o.next)){if(null===(l=a.shared.pending))break;o=l.next,l.next=null,a.lastBaseUpdate=l,a.shared.pending=null}}null===c&&(u=f),a.baseState=u,a.firstBaseUpdate=s,a.lastBaseUpdate=c,Bm|=i,e.lanes=i,e.memoizedState=f}}function bd(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=n,"function"!=typeof a)throw Error(bi(191,a));a.call(r)}}}var Ed=(new cr.Component).refs;function wd(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:ur({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Sd={isMounted:function(e){return!!(e=e._reactInternals)&&lu(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=sh(),a=ch(e),o=hd(r,a);o.payload=t,null!=n&&(o.callback=n),yd(e,o),fh(e,a,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=sh(),a=ch(e),o=hd(r,a);o.tag=1,o.payload=t,null!=n&&(o.callback=n),yd(e,o),fh(e,a,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=sh(),r=ch(e),a=hd(n,r);a.tag=2,null!=t&&(a.callback=t),yd(e,a),fh(e,r,n)}};function _d(e,t,n,r,a,o,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,i):!(t.prototype&&t.prototype.isPureReactComponent&&gc(n,r)&&gc(a,o))}function Cd(e,t,n){var r=!1,a=gf,o=t.contextType;return"object"==typeof o&&null!==o?o=fd(o):(a=Sf(t)?Ef:vf.current,o=(r=null!=(r=t.contextTypes))?wf(e,a):gf),t=new t(n,o),e.memoizedState=null!=t.state?t.state:null,t.updater=Sd,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function Od(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Sd.enqueueReplaceState(t,t.state,null)}function kd(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=Ed,pd(e);var o=t.contextType;"object"==typeof o&&null!==o?a.context=fd(o):(o=Sf(t)?Ef:vf.current,a.context=wf(e,o)),vd(e,n,a,r),a.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(wd(e,t,o,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&Sd.enqueueReplaceState(a,a.state,null),vd(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4)}var Pd=Array.isArray;function Td(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(bi(309));var r=n.stateNode}if(!r)throw Error(bi(147,e));var a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=r.refs;t===Ed&&(t=r.refs={}),null===e?delete t[a]:t[a]=e})._stringRef=a,t)}if("string"!=typeof e)throw Error(bi(284));if(!n._owner)throw Error(bi(290,e))}return e}function xd(e,t){if("textarea"!==e.type)throw Error(bi(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Ad(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)e.set(null!==t.key?t.key:t.index,t),t=t.sibling;return e}function a(e,t){return(e=Gh(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function i(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=qh(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=a(t,n.props)).ref=Td(e,t,n),r.return=e,r):((r=Vh(n.type,n.key,n.props,null,e.mode,r)).ref=Td(e,t,n),r.return=e,r)}function s(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Kh(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function c(e,t,n,r,o){return null===t||7!==t.tag?((t=Wh(n,e.mode,r,o)).return=e,t):((t=a(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=qh(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Ii:return(n=Vh(t.type,t.key,t.props,null,e.mode,n)).ref=Td(e,null,t),n.return=e,n;case Di:return(t=Kh(t,e.mode,n)).return=e,t}if(Pd(t)||tl(t))return(t=Wh(t,e.mode,n,null)).return=e,t;xd(e,t)}return null}function d(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==a?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Ii:return n.key===a?n.type===Fi?c(e,t,n.props.children,r,a):u(e,t,n,r):null;case Di:return n.key===a?s(e,t,n,r):null}if(Pd(n)||tl(n))return null!==a?null:c(e,t,n,r,null);xd(e,n)}return null}function p(e,t,n,r,a){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Ii:return e=e.get(null===r.key?n:r.key)||null,r.type===Fi?c(t,e,r.props.children,a,r.key):u(t,e,r,a);case Di:return s(t,e=e.get(null===r.key?n:r.key)||null,r,a)}if(Pd(r)||tl(r))return c(t,e=e.get(n)||null,r,a,null);xd(t,r)}return null}function m(a,i,l,u){for(var s=null,c=null,m=i,h=i=0,y=null;null!==m&&h<l.length;h++){m.index>h?(y=m,m=null):y=m.sibling;var g=d(a,m,l[h],u);if(null===g){null===m&&(m=y);break}e&&m&&null===g.alternate&&t(a,m),i=o(g,i,h),null===c?s=g:c.sibling=g,c=g,m=y}if(h===l.length)return n(a,m),s;if(null===m){for(;h<l.length;h++)null!==(m=f(a,l[h],u))&&(i=o(m,i,h),null===c?s=m:c.sibling=m,c=m);return s}for(m=r(a,m);h<l.length;h++)null!==(y=p(m,a,h,l[h],u))&&(e&&null!==y.alternate&&m.delete(null===y.key?h:y.key),i=o(y,i,h),null===c?s=y:c.sibling=y,c=y);return e&&m.forEach(function(e){return t(a,e)}),s}function h(a,i,l,u){var s=tl(l);if("function"!=typeof s)throw Error(bi(150));if(null==(l=s.call(l)))throw Error(bi(151));for(var c=s=null,m=i,h=i=0,y=null,g=l.next();null!==m&&!g.done;h++,g=l.next()){m.index>h?(y=m,m=null):y=m.sibling;var v=d(a,m,g.value,u);if(null===v){null===m&&(m=y);break}e&&m&&null===v.alternate&&t(a,m),i=o(v,i,h),null===c?s=v:c.sibling=v,c=v,m=y}if(g.done)return n(a,m),s;if(null===m){for(;!g.done;h++,g=l.next())null!==(g=f(a,g.value,u))&&(i=o(g,i,h),null===c?s=g:c.sibling=g,c=g);return s}for(m=r(a,m);!g.done;h++,g=l.next())null!==(g=p(m,a,h,g.value,u))&&(e&&null!==g.alternate&&m.delete(null===g.key?h:g.key),i=o(g,i,h),null===c?s=g:c.sibling=g,c=g);return e&&m.forEach(function(e){return t(a,e)}),s}return function(e,r,o,l){var u="object"==typeof o&&null!==o&&o.type===Fi&&null===o.key;u&&(o=o.props.children);var s="object"==typeof o&&null!==o;if(s)switch(o.$$typeof){case Ii:e:{for(s=o.key,u=r;null!==u;){if(u.key===s){switch(u.tag){case 7:if(o.type===Fi){n(e,u.sibling),(r=a(u,o.props.children)).return=e,e=r;break e}break;default:if(u.elementType===o.type){n(e,u.sibling),(r=a(u,o.props)).ref=Td(e,u,o),r.return=e,e=r;break e}}n(e,u);break}t(e,u),u=u.sibling}o.type===Fi?((r=Wh(o.props.children,e.mode,l,o.key)).return=e,e=r):((l=Vh(o.type,o.key,o.props,null,e.mode,l)).ref=Td(e,r,o),l.return=e,e=l)}return i(e);case Di:e:{for(u=o.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=a(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Kh(o,e.mode,l)).return=e,e=r}return i(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=a(r,o)).return=e,e=r):(n(e,r),(r=qh(o,e.mode,l)).return=e,e=r),i(e);if(Pd(o))return m(e,r,o,l);if(tl(o))return h(e,r,o,l);if(s&&xd(e,o),void 0===o&&!u)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(bi(152,il(e.type)||"Component"))}return n(e,r)}}var Nd=Ad(!0),Md=Ad(!1),Ld={},Rd=mf(Ld),Id=mf(Ld),Dd=mf(Ld);function Fd(e){if(e===Ld)throw Error(bi(174));return e}function jd(e,t){switch(yf(Dd,t),yf(Id,e),yf(Rd,Ld),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:kl(null,"");break;default:t=kl(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}hf(Rd),yf(Rd,t)}function Hd(){hf(Rd),hf(Id),hf(Dd)}function Bd(e){Fd(Dd.current);var t=Fd(Rd.current),n=kl(t,e.type);t!==n&&(yf(Id,e),yf(Rd,n))}function Ud(e){Id.current===e&&(hf(Rd),hf(Id))}var zd=mf(0);function Gd(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Vd=null,Wd=null,$d=!1;function qd(e,t){var n=Uh(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Kd(e,t){switch(e.tag){case 5:return null!==(t=1!==t.nodeType||e.type.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Qd(e){if($d){var t=Wd;if(t){var n=t;if(!Kd(e,t)){if(!(t=Yc(n.nextSibling))||!Kd(e,t))return e.flags=-1025&e.flags|2,$d=!1,void(Vd=e);qd(Vd,n)}Vd=e,Wd=Yc(t.firstChild)}else e.flags=-1025&e.flags|2,$d=!1,Vd=e}}function Xd(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Vd=e}function Zd(e){if(e!==Vd)return!1;if(!$d)return Xd(e),$d=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Kc(t,e.memoizedProps))for(t=Wd;t;)qd(e,t),t=Yc(t.nextSibling);if(Xd(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(bi(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Wd=Yc(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Wd=null}}else Wd=Vd?Yc(e.stateNode.nextSibling):null;return!0}function Yd(){Wd=Vd=null,$d=!1}var Jd=[];function ep(){for(var e=0;e<Jd.length;e++)Jd[e]._workInProgressVersionPrimary=null;Jd.length=0}var tp=Ri.ReactCurrentDispatcher,np=Ri.ReactCurrentBatchConfig,rp=0,ap=null,op=null,ip=null,lp=!1,up=!1;function sp(){throw Error(bi(321))}function cp(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!hc(e[n],t[n]))return!1;return!0}function fp(e,t,n,r,a,o){if(rp=o,ap=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,tp.current=null===e||null===e.memoizedState?Fp:jp,e=n(r,a),up){o=0;do{if(up=!1,!(25>o))throw Error(bi(301));o+=1,ip=op=null,t.updateQueue=null,tp.current=Hp,e=n(r,a)}while(up)}if(tp.current=Dp,t=null!==op&&null!==op.next,rp=0,ip=op=ap=null,lp=!1,t)throw Error(bi(300));return e}function dp(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ip?ap.memoizedState=ip=e:ip=ip.next=e,ip}function pp(){if(null===op){var e=ap.alternate;e=null!==e?e.memoizedState:null}else e=op.next;var t=null===ip?ap.memoizedState:ip.next;if(null!==t)ip=t,op=e;else{if(null===e)throw Error(bi(310));e={memoizedState:(op=e).memoizedState,baseState:op.baseState,baseQueue:op.baseQueue,queue:op.queue,next:null},null===ip?ap.memoizedState=ip=e:ip=ip.next=e}return ip}function mp(e,t){return"function"==typeof t?t(e):t}function hp(e){var t=pp(),n=t.queue;if(null===n)throw Error(bi(311));n.lastRenderedReducer=e;var r=op,a=r.baseQueue,o=n.pending;if(null!==o){if(null!==a){var i=a.next;a.next=o.next,o.next=i}r.baseQueue=a=o,n.pending=null}if(null!==a){r=r.baseState;var l=i=o=null,u=a=a.next;do{var s=u.lane;if((rp&s)===s)null!==l&&(l=l.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var c={lane:s,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===l?(i=l=c,o=r):l=l.next=c,ap.lanes|=s,Bm|=s}u=u.next}while(null!==u&&u!==a);null===l?o=r:l.next=i,hc(r,t.memoizedState)||(Up=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function yp(e){var t=pp(),n=t.queue;if(null===n)throw Error(bi(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(null!==a){n.pending=null;var i=a=a.next;do{o=e(o,i.action),i=i.next}while(i!==a);hc(o,t.memoizedState)||(Up=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function gp(e,t,n){var r=t._getVersion;r=r(t._source);var a=t._workInProgressVersionPrimary;if(null!==a?e=a===r:(e=(rp&(e=e.mutableReadLanes))===e)&&(t._workInProgressVersionPrimary=r,Jd.push(t)),e)return n(t._source);throw Jd.push(t),Error(bi(350))}function vp(e,t,n,r){var a=Mm;if(null===a)throw Error(bi(349));var o=t._getVersion,i=o(t._source),l=tp.current,u=l.useState(function(){return gp(a,t,n)}),s=u[1],c=u[0];u=ip;var f=e.memoizedState,d=f.refs,p=d.getSnapshot,m=f.source;f=f.subscribe;var h=ap;return e.memoizedState={refs:d,source:t,subscribe:r},l.useEffect(function(){d.getSnapshot=n,d.setSnapshot=s;var e=o(t._source);if(!hc(i,e)){e=n(t._source),hc(c,e)||(s(e),e=ch(h),a.mutableReadLanes|=e&a.pendingLanes),a.entangledLanes|=e=a.mutableReadLanes;for(var r=a.entanglements,l=e;0<l;){var u=31-Ju(l),f=1<<u;r[u]|=e,l&=~f}}},[n,t,r]),l.useEffect(function(){return r(t._source,function(){var e=d.getSnapshot,n=d.setSnapshot;try{n(e(t._source));var r=ch(h);a.mutableReadLanes|=r&a.pendingLanes}catch(e){n(function(){throw e})}})},[t,r]),hc(p,n)&&hc(m,t)&&hc(f,r)||((e={pending:null,dispatch:null,lastRenderedReducer:mp,lastRenderedState:c}).dispatch=s=Ip.bind(null,ap,e),u.queue=e,u.baseQueue=null,c=gp(a,t,n),u.memoizedState=u.baseState=c),c}function bp(e,t,n){return vp(pp(),e,t,n)}function Ep(e){var t=dp();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:mp,lastRenderedState:e}).dispatch=Ip.bind(null,ap,e),[t.memoizedState,e]}function wp(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ap.updateQueue)?(ap.updateQueue=t={lastEffect:null},t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Sp(e){return dp().memoizedState={current:e}}function _p(){return pp().memoizedState}function Cp(e,t,n,r){var a=dp();ap.flags|=e,a.memoizedState=wp(1|t,n,void 0,void 0===r?null:r)}function Op(e,t,n,r){var a=pp();r=void 0===r?null:r;var o=void 0;if(null!==op){var i=op.memoizedState;if(o=i.destroy,null!==r&&cp(r,i.deps))return void wp(t,n,o,r)}ap.flags|=e,a.memoizedState=wp(1|t,n,o,r)}function kp(e,t){return Cp(516,4,e,t)}function Pp(e,t){return Op(516,4,e,t)}function Tp(e,t){return Op(4,2,e,t)}function xp(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ap(e,t,n){return n=null!=n?n.concat([e]):null,Op(4,2,xp.bind(null,t,e),n)}function Np(){}function Mp(e,t){var n=pp();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&cp(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Lp(e,t){var n=pp();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&cp(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Rp(e,t){var n=Qf();Zf(98>n?98:n,function(){e(!0)}),Zf(97<n?97:n,function(){var n=np.transition;np.transition=1;try{e(!1),t()}finally{np.transition=n}})}function Ip(e,t,n){var r=sh(),a=ch(e),o={lane:a,action:n,eagerReducer:null,eagerState:null,next:null},i=t.pending;if(null===i?o.next=o:(o.next=i.next,i.next=o),t.pending=o,i=e.alternate,e===ap||null!==i&&i===ap)up=lp=!0;else{if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var l=t.lastRenderedState,u=i(l,n);if(o.eagerReducer=i,o.eagerState=u,hc(u,l))return}catch(e){}fh(e,a,r)}}var Dp={readContext:fd,useCallback:sp,useContext:sp,useEffect:sp,useImperativeHandle:sp,useLayoutEffect:sp,useMemo:sp,useReducer:sp,useRef:sp,useState:sp,useDebugValue:sp,useDeferredValue:sp,useTransition:sp,useMutableSource:sp,useOpaqueIdentifier:sp,unstable_isNewReconciler:!1},Fp={readContext:fd,useCallback:function(e,t){return dp().memoizedState=[e,void 0===t?null:t],e},useContext:fd,useEffect:kp,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Cp(4,2,xp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Cp(4,2,e,t)},useMemo:function(e,t){var n=dp();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=dp();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Ip.bind(null,ap,e),[r.memoizedState,e]},useRef:Sp,useState:Ep,useDebugValue:Np,useDeferredValue:function(e){var t=Ep(e),n=t[0],r=t[1];return kp(function(){var t=np.transition;np.transition=1;try{r(e)}finally{np.transition=t}},[e]),n},useTransition:function(){var e=Ep(!1),t=e[0];return Sp(e=Rp.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=dp();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},vp(r,e,t,n)},useOpaqueIdentifier:function(){if($d){var e=!1,t=function(e){return{$$typeof:Ki,toString:e,valueOf:e}}(function(){throw e||(e=!0,n("r:"+(ef++).toString(36))),Error(bi(355))}),n=Ep(t)[1];return 0==(2&ap.mode)&&(ap.flags|=516,wp(5,function(){n("r:"+(ef++).toString(36))},void 0,null)),t}return Ep(t="r:"+(ef++).toString(36)),t},unstable_isNewReconciler:!1},jp={readContext:fd,useCallback:Mp,useContext:fd,useEffect:Pp,useImperativeHandle:Ap,useLayoutEffect:Tp,useMemo:Lp,useReducer:hp,useRef:_p,useState:function(){return hp(mp)},useDebugValue:Np,useDeferredValue:function(e){var t=hp(mp),n=t[0],r=t[1];return Pp(function(){var t=np.transition;np.transition=1;try{r(e)}finally{np.transition=t}},[e]),n},useTransition:function(){var e=hp(mp)[0];return[_p().current,e]},useMutableSource:bp,useOpaqueIdentifier:function(){return hp(mp)[0]},unstable_isNewReconciler:!1},Hp={readContext:fd,useCallback:Mp,useContext:fd,useEffect:Pp,useImperativeHandle:Ap,useLayoutEffect:Tp,useMemo:Lp,useReducer:yp,useRef:_p,useState:function(){return yp(mp)},useDebugValue:Np,useDeferredValue:function(e){var t=yp(mp),n=t[0],r=t[1];return Pp(function(){var t=np.transition;np.transition=1;try{r(e)}finally{np.transition=t}},[e]),n},useTransition:function(){var e=yp(mp)[0];return[_p().current,e]},useMutableSource:bp,useOpaqueIdentifier:function(){return yp(mp)[0]},unstable_isNewReconciler:!1},Bp=Ri.ReactCurrentOwner,Up=!1;function zp(e,t,n,r){t.child=null===e?Md(t,null,n,r):Nd(t,e.child,n,r)}function Gp(e,t,n,r,a){n=n.render;var o=t.ref;return cd(t,a),r=fp(e,t,n,r,o,a),null===e||Up?(t.flags|=1,zp(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~a,lm(e,t,a))}function Vp(e,t,n,r,a,o){if(null===e){var i=n.type;return"function"!=typeof i||zh(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Vh(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Wp(e,t,i,r,a,o))}return i=e.child,0==(a&o)&&(n=null!==(n=n.compare)?n:gc)(a=i.memoizedProps,r)&&e.ref===t.ref?lm(e,t,o):(t.flags|=1,(e=Gh(i,r)).ref=t.ref,e.return=t,t.child=e)}function Wp(e,t,n,r,a,o){if(null!==e&&gc(e.memoizedProps,r)&&e.ref===t.ref){if(Up=!1,0==(o&a))return t.lanes=e.lanes,lm(e,t,o);0!=(16384&e.flags)&&(Up=!0)}return Kp(e,t,n,r,o)}function $p(e,t,n){var r=t.pendingProps,a=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},bh(0,n);else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},bh(0,e),null;t.memoizedState={baseLanes:0},bh(0,null!==o?o.baseLanes:n)}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,bh(0,r);return zp(e,t,a,n),t.child}function qp(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Kp(e,t,n,r,a){var o=Sf(n)?Ef:vf.current;return o=wf(t,o),cd(t,a),n=fp(e,t,n,r,o,a),null===e||Up?(t.flags|=1,zp(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~a,lm(e,t,a))}function Qp(e,t,n,r,a){if(Sf(n)){var o=!0;kf(t)}else o=!1;if(cd(t,a),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),Cd(t,n,r),kd(t,n,r,a),r=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var u=i.context,s=n.contextType;s="object"==typeof s&&null!==s?fd(s):wf(t,s=Sf(n)?Ef:vf.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;f||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==r||u!==s)&&Od(t,i,r,s),dd=!1;var d=t.memoizedState;i.state=d,vd(t,r,i,a),u=t.memoizedState,l!==r||d!==u||bf.current||dd?("function"==typeof c&&(wd(t,n,c,r),u=t.memoizedState),(l=dd||_d(t,n,l,r,d,u,s))?(f||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4)):("function"==typeof i.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=s,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4),r=!1)}else{i=t.stateNode,md(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:nd(t.type,l),i.props=s,f=t.pendingProps,d=i.context,u="object"==typeof(u=n.contextType)&&null!==u?fd(u):wf(t,u=Sf(n)?Ef:vf.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==f||d!==u)&&Od(t,i,r,u),dd=!1,i.state=d=t.memoizedState,vd(t,r,i,a);var m=t.memoizedState;l!==f||d!==m||bf.current||dd?("function"==typeof p&&(wd(t,n,p,r),m=t.memoizedState),(s=dd||_d(t,n,s,r,d,m,u))?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,m,u),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,m,u)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=m),i.props=r,i.state=m,i.context=u,r=s):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Xp(e,t,n,r,o,a)}function Xp(e,t,n,r,a,o){qp(e,t);var i=0!=(64&t.flags);if(!r&&!i)return a&&Pf(t,n,!1),lm(e,t,o);r=t.stateNode,Bp.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Nd(t,e.child,null,o),t.child=Nd(t,null,l,o)):zp(e,t,l,o),t.memoizedState=r.state,a&&Pf(t,n,!0),t.child}function Zp(e){var t=e.stateNode;t.pendingContext?Cf(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Cf(0,t.context,!1),jd(e,t.containerInfo)}var Yp,Jp,em,tm={dehydrated:null,retryLane:0};function nm(e,t,n){var r,a=t.pendingProps,o=zd.current,i=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&o)),r?(i=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===a.fallback||!0===a.unstable_avoidThisFallback||(o|=1),yf(zd,1&o),null===e?(void 0!==a.fallback&&Qd(t),e=a.children,o=a.fallback,i?(e=rm(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=tm,e):"number"==typeof a.unstable_expectedLoadTime?(e=rm(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=tm,t.lanes=33554432,e):((n=$h({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):i?(a=function(e,t,n,r,a){var o=t.mode,i=e.child;e=i.sibling;var l={mode:"hidden",children:n};return 0==(2&o)&&t.child!==i?((n=t.child).childLanes=0,n.pendingProps=l,null!==(i=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=i,i.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Gh(i,l),null!==e?r=Gh(e,r):(r=Wh(r,o,a,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}(e,t,a.children,a.fallback,n),(i=t.child).memoizedState=null===(o=e.child.memoizedState)?{baseLanes:n}:{baseLanes:o.baseLanes|n},i.childLanes=e.childLanes&~n,t.memoizedState=tm,a):(n=function(e,t,n,r){var a=e.child;return e=a.sibling,n=Gh(a,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}(e,t,a.children,n),t.memoizedState=null,n)}function rm(e,t,n,r){var a=e.mode,o=e.child;return t={mode:"hidden",children:t},0==(2&a)&&null!==o?(o.childLanes=0,o.pendingProps=t):o=$h(t,a,0,null),n=Wh(n,a,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function am(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),sd(e.return,t)}function om(e,t,n,r,a,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a,lastEffect:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=a,i.lastEffect=o)}function im(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(zp(e,t,r.children,n),0!=(2&(r=zd.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&am(e,n);else if(19===e.tag)am(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(yf(zd,r),0==(2&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===Gd(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),om(t,!1,a,n,o,t.lastEffect);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===Gd(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}om(t,!0,n,null,o,t.lastEffect);break;case"together":om(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function lm(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Bm|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(bi(153));if(null!==t.child){for(n=Gh(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)(n=n.sibling=Gh(e=e.sibling,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function um(e,t){if(!$d)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function sm(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return Sf(t.type)&&_f(),null;case 3:return Hd(),hf(bf),hf(vf),ep(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Zd(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Ud(t);var a=Fd(Dd.current);if(n=t.type,null!==e&&null!=t.stateNode)Jp(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(bi(166));return null}if(e=Fd(Rd.current),Zd(t)){n=t.type;var o=t.memoizedProps;switch((r=t.stateNode)[nf]=t,r[rf]=o,n){case"dialog":Rc("cancel",r),Rc("close",r);break;case"iframe":case"object":case"embed":Rc("load",r);break;case"video":case"audio":for(e=0;e<Ac.length;e++)Rc(Ac[e],r);break;case"source":Rc("error",r);break;case"img":case"image":case"link":Rc("error",r),Rc("load",r);break;case"details":Rc("toggle",r);break;case"input":pl(r,o),Rc("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Rc("invalid",r);break;case"textarea":wl(r,o),Rc("invalid",r)}for(var i in Il(n,o),e=null,o)o.hasOwnProperty(i)&&(a=o[i],"children"===i?"string"==typeof a?r.textContent!==a&&(e=["children",a]):"number"==typeof a&&r.textContent!==""+a&&(e=["children",""+a]):wi.hasOwnProperty(i)&&null!=a&&"onScroll"===i&&Rc("scroll",r));switch(n){case"input":sl(r),yl(r,o,!0);break;case"textarea":sl(r),_l(r);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(r.onclick=Vc)}t.updateQueue=r=e,null!==r&&(t.flags|=4)}else{switch(i=9===a.nodeType?a:a.ownerDocument,e===Cl&&(e=Ol(n)),e===Cl?"script"===n?((e=i.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),"select"===n&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[nf]=t,e[rf]=r,Yp(e,t),t.stateNode=e,i=Dl(n,r),n){case"dialog":Rc("cancel",e),Rc("close",e),a=r;break;case"iframe":case"object":case"embed":Rc("load",e),a=r;break;case"video":case"audio":for(a=0;a<Ac.length;a++)Rc(Ac[a],e);a=r;break;case"source":Rc("error",e),a=r;break;case"img":case"image":case"link":Rc("error",e),Rc("load",e),a=r;break;case"details":Rc("toggle",e),a=r;break;case"input":pl(e,r),a=dl(e,r),Rc("invalid",e);break;case"option":a=vl(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=ur({},r,{value:void 0}),Rc("invalid",e);break;case"textarea":wl(e,r),a=El(e,r),Rc("invalid",e);break;default:a=r}Il(n,a);var l=a;for(o in l)if(l.hasOwnProperty(o)){var u=l[o];"style"===o?Ll(e,u):"dangerouslySetInnerHTML"===o?null!=(u=u?u.__html:void 0)&&Tl(e,u):"children"===o?"string"==typeof u?("textarea"!==n||""!==u)&&xl(e,u):"number"==typeof u&&xl(e,""+u):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(wi.hasOwnProperty(o)?null!=u&&"onScroll"===o&&Rc("scroll",e):null!=u&&Li(e,o,u,i))}switch(n){case"input":sl(e),yl(e,r,!1);break;case"textarea":sl(e),_l(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ll(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?bl(e,!!r.multiple,o,!1):null!=r.defaultValue&&bl(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Vc)}qc(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)em(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(bi(166));n=Fd(Dd.current),Fd(Rd.current),Zd(t)?(n=t.memoizedProps,(r=t.stateNode)[nf]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[nf]=t,t.stateNode=r)}return null;case 13:return hf(zd),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Zd(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&zd.current)?0===Fm&&(Fm=3):(0!==Fm&&3!==Fm||(Fm=4),null===Mm||0==(134217727&Bm)&&0==(134217727&Um)||hh(Mm,Rm))),(r||n)&&(t.flags|=4),null);case 4:return Hd(),null===e&&Dc(t.stateNode.containerInfo),null;case 10:return ud(t),null;case 17:return Sf(t.type)&&_f(),null;case 19:if(hf(zd),null===(r=t.memoizedState))return null;if(o=0!=(64&t.flags),null===(i=r.rendering))if(o)um(r,!1);else{if(0!==Fm||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(i=Gd(e))){for(t.flags|=64,um(r,!1),null!==(o=i.updateQueue)&&(t.updateQueue=o,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(i=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,o.dependencies=null===(e=i.dependencies)?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return yf(zd,1&zd.current|2),t.child}e=e.sibling}null!==r.tail&&Kf()>Wm&&(t.flags|=64,o=!0,um(r,!1),t.lanes=33554432)}else{if(!o)if(null!==(e=Gd(i))){if(t.flags|=64,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),um(r,!0),null===r.tail&&"hidden"===r.tailMode&&!i.alternate&&!$d)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Kf()-r.renderingStartTime>Wm&&1073741824!==n&&(t.flags|=64,o=!0,um(r,!1),t.lanes=33554432);r.isBackwards?(i.sibling=t.child,t.child=i):(null!==(n=r.last)?n.sibling=i:t.child=i,r.last=i)}return null!==r.tail?(r.rendering=n=r.tail,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Kf(),n.sibling=null,t=zd.current,yf(zd,o?1&t|2:1&t),n):null;case 23:case 24:return Eh(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(bi(156,t.tag))}function cm(e){switch(e.tag){case 1:Sf(e.type)&&_f();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Hd(),hf(bf),hf(vf),ep(),0!=(64&(t=e.flags)))throw Error(bi(285));return e.flags=-4097&t|64,e;case 5:return Ud(e),null;case 13:return hf(zd),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return hf(zd),null;case 4:return Hd(),null;case 10:return ud(e),null;case 23:case 24:return Eh(),null;default:return null}}function fm(e,t){try{var n="",r=t;do{n+=ol(r),r=r.return}while(r);var a=n}catch(e){a="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:a}}function dm(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}Yp=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Jp=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,Fd(Rd.current);var o,i=null;switch(n){case"input":a=dl(e,a),r=dl(e,r),i=[];break;case"option":a=vl(e,a),r=vl(e,r),i=[];break;case"select":a=ur({},a,{value:void 0}),r=ur({},r,{value:void 0}),i=[];break;case"textarea":a=El(e,a),r=El(e,r),i=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(e.onclick=Vc)}for(s in Il(n,r),n=null,a)if(!r.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s){var l=a[s];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(wi.hasOwnProperty(s)?i||(i=[]):(i=i||[]).push(s,null));for(s in r){var u=r[s];if(l=null!=a?a[s]:void 0,r.hasOwnProperty(s)&&u!==l&&(null!=u||null!=l))if("style"===s)if(l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(i||(i=[]),i.push(s,n)),n=u;else"dangerouslySetInnerHTML"===s?(l=l?l.__html:void 0,null!=(u=u?u.__html:void 0)&&l!==u&&(i=i||[]).push(s,u)):"children"===s?"string"!=typeof u&&"number"!=typeof u||(i=i||[]).push(s,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(wi.hasOwnProperty(s)?(null!=u&&"onScroll"===s&&Rc("scroll",e),i||l===u||(i=[])):"object"==typeof u&&null!==u&&u.$$typeof===Ki?u.toString():(i=i||[]).push(s,u))}n&&(i=i||[]).push("style",n);var s=i;(t.updateQueue=s)&&(t.flags|=4)}},em=function(e,t,n,r){n!==r&&(t.flags|=4)};var pm="function"==typeof WeakMap?WeakMap:Map;function mm(e,t,n){(n=hd(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Qm||(Qm=!0,Xm=r),dm(0,t)},n}function hm(e,t,n){(n=hd(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return dm(0,t),r(a)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Zm?Zm=new Set([this]):Zm.add(this),dm(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ym="function"==typeof WeakSet?WeakSet:Set;function gm(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Fh(e,t)}else t.current=null}function vm(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:nd(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Zc(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(bi(163))}function bm(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var a=e;r=a.next,0!=(4&(a=a.tag))&&0!=(1&a)&&(Rh(n,e),Lh(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:nd(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&bd(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}bd(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&qc(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Mu(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(bi(163))}function Em(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var a=n.memoizedProps.style;a=null!=a&&a.hasOwnProperty("display")?a.display:null,r.style.display=Ml("display",a)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function wm(e,t){if(xf&&"function"==typeof xf.onCommitFiberUnmount)try{xf.onCommitFiberUnmount(Tf,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,a=r.destroy;if(r=r.tag,void 0!==a)if(0!=(4&r))Rh(t,n);else{r=t;try{a()}catch(e){Fh(r,e)}}n=n.next}while(n!==e)}break;case 1:if(gm(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Fh(t,e)}break;case 5:gm(t);break;case 4:Om(e,t)}}function Sm(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function _m(e){return 5===e.tag||3===e.tag||4===e.tag}function Cm(e){e:{for(var t=e.return;null!==t;){if(_m(t))break e;t=t.return}throw Error(bi(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(bi(161))}16&n.flags&&(xl(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||_m(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?function e(t,n,r){var a=t.tag,o=5===a||6===a;if(o)t=o?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=Vc));else if(4!==a&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var a=t.tag,o=5===a||6===a;if(o)t=o?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==a&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function Om(e,t){for(var n,r,a=t,o=!1;;){if(!o){o=a.return;e:for(;;){if(null===o)throw Error(bi(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===a.tag||6===a.tag){e:for(var i=e,l=a,u=l;;)if(wm(i,u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===l)break e;for(;null===u.sibling;){if(null===u.return||u.return===l)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(l=a.stateNode,8===(i=n).nodeType?i.parentNode.removeChild(l):i.removeChild(l)):n.removeChild(a.stateNode)}else if(4===a.tag){if(null!==a.child){n=a.stateNode.containerInfo,r=!0,a.child.return=a,a=a.child;continue}}else if(wm(e,a),null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)return;4===(a=a.return).tag&&(o=!1)}a.sibling.return=a.return,a=a.sibling}}function km(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var a=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[rf]=r,"input"===e&&"radio"===r.type&&null!=r.name&&ml(n,r),Dl(e,a),t=Dl(e,r),a=0;a<o.length;a+=2){var i=o[a],l=o[a+1];"style"===i?Ll(n,l):"dangerouslySetInnerHTML"===i?Tl(n,l):"children"===i?xl(n,l):Li(n,i,l,t)}switch(e){case"input":hl(n,r);break;case"textarea":Sl(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?bl(n,!!r.multiple,o,!1):e!==!!r.multiple&&(null!=r.defaultValue?bl(n,!!r.multiple,r.defaultValue,!0):bl(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(bi(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,Mu(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(Vm=Kf(),Em(t.child,!0)),void Pm(t);case 19:return void Pm(t);case 17:return;case 23:case 24:return void Em(t,null!==t.memoizedState)}throw Error(bi(163))}function Pm(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ym),t.forEach(function(t){var r=Hh.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}var Tm=Math.ceil,xm=Ri.ReactCurrentDispatcher,Am=Ri.ReactCurrentOwner,Nm=0,Mm=null,Lm=null,Rm=0,Im=0,Dm=mf(0),Fm=0,jm=null,Hm=0,Bm=0,Um=0,zm=0,Gm=null,Vm=0,Wm=Infinity;function $m(){Wm=Kf()+500}var qm,Km=null,Qm=!1,Xm=null,Zm=null,Ym=!1,Jm=null,eh=90,th=[],nh=[],rh=null,ah=0,oh=null,ih=-1,lh=0,uh=0;function sh(){return 0!=(48&Nm)?Kf():-1!==ih?ih:ih=Kf()}function ch(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Qf()?1:2;if(0===lh&&(lh=Hm),0!==td.transition){0!==uh&&(uh=null!==Gm?Gm.pendingLanes:0),e=lh;var t=4186112&~uh;return 0==(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=Qf(),function e(t,n){switch(t){case 15:return 1;case 14:return 2;case 12:return 0===(t=Xu(24&~n))?e(10,n):t;case 10:return 0===(t=Xu(192&~n))?e(8,n):t;case 8:return 0===(t=Xu(3584&~n))&&0===(t=Xu(4186112&~n))&&(t=512),t;case 2:return 0===(n=Xu(805306368&~n))&&(n=268435456),n}throw Error(bi(358,t))}(0!=(4&Nm)&&98===e?12:e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),lh)}function fh(e,t,n){if(50<ah)throw ah=0,oh=null,Error(bi(185));if(null===(e=dh(e,t)))return null;Yu(e,t,n),e===Mm&&(Um|=t,4===Fm&&hh(e,Rm));var r=Qf();1===t?0!=(8&Nm)&&0==(48&Nm)?yh(e):(ph(e,n),0===Nm&&($m(),Jf())):(0==(4&Nm)||98!==r&&99!==r||(null===rh?rh=new Set([e]):rh.add(e)),ph(e,n)),Gm=e}function dh(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function ph(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var l=31-Ju(i),u=1<<l,s=o[l];-1===s?0!=(u&r)&&0==(u&a)||(s=t,qu(u),o[l]=10<=$u?s+250:6<=$u?s+5e3:-1):s<=t&&(e.expiredLanes|=u),i&=~u}if(r=Ku(e,e===Mm?Rm:0),t=$u,0===r)null!==n&&(n!==zf&&Mf(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==zf&&Mf(n)}15===t?(n=yh.bind(null,e),null===Vf?(Vf=[n],Wf=Nf(Ff,ed)):Vf.push(n),n=zf):n=14===t?Yf(99,yh.bind(null,e)):Yf(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(bi(358,e))}}(t),mh.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function mh(e){if(ih=-1,uh=lh=0,0!=(48&Nm))throw Error(bi(327));var t=e.callbackNode;if(Mh()&&e.callbackNode!==t)return null;var n=Ku(e,e===Mm?Rm:0);if(0===n)return null;var r=n,a=Nm;Nm|=16;var o=_h();for(Mm===e&&Rm===r||($m(),wh(e,r));;)try{kh();break}catch(t){Sh(e,t)}if(ld(),xm.current=o,Nm=a,null!==Lm?r=0:(Mm=null,Rm=0,r=Fm),0!=(Hm&Um))wh(e,0);else if(0!==r){if(2===r&&(Nm|=64,e.hydrate&&(e.hydrate=!1,Zc(e.containerInfo)),0!==(n=Qu(e))&&(r=Ch(e,n))),1===r)throw t=jm,wh(e,0),hh(e,n),ph(e,Kf()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(bi(345));case 2:xh(e);break;case 3:if(hh(e,n),(62914560&n)===n&&10<(r=Vm+500-Kf())){if(0!==Ku(e,0))break;if(((a=e.suspendedLanes)&n)!==n){sh(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Qc(xh.bind(null,e),r);break}xh(e);break;case 4:if(hh(e,n),(4186112&n)===n)break;for(r=e.eventTimes,a=-1;0<n;){var i=31-Ju(n);o=1<<i,(i=r[i])>a&&(a=i),n&=~o}if(n=a,10<(n=(120>(n=Kf()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Tm(n/1960))-n)){e.timeoutHandle=Qc(xh.bind(null,e),n);break}xh(e);break;case 5:xh(e);break;default:throw Error(bi(329))}}return ph(e,Kf()),e.callbackNode===t?mh.bind(null,e):null}function hh(e,t){for(t&=~zm,e.suspendedLanes|=t&=~Um,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ju(t),r=1<<n;e[n]=-1,t&=~r}}function yh(e){if(0!=(48&Nm))throw Error(bi(327));if(Mh(),e===Mm&&0!=(e.expiredLanes&Rm)){var t=Rm,n=Ch(e,t);0!=(Hm&Um)&&(n=Ch(e,t=Ku(e,t)))}else n=Ch(e,t=Ku(e,0));if(0!==e.tag&&2===n&&(Nm|=64,e.hydrate&&(e.hydrate=!1,Zc(e.containerInfo)),0!==(t=Qu(e))&&(n=Ch(e,t))),1===n)throw n=jm,wh(e,0),hh(e,t),ph(e,Kf()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,xh(e),ph(e,Kf()),null}function gh(e,t){var n=Nm;Nm|=1;try{return e(t)}finally{0===(Nm=n)&&($m(),Jf())}}function vh(e,t){var n=Nm;Nm&=-2,Nm|=8;try{return e(t)}finally{0===(Nm=n)&&($m(),Jf())}}function bh(e,t){yf(Dm,Im),Im|=t,Hm|=t}function Eh(){Im=Dm.current,hf(Dm)}function wh(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Xc(n)),null!==Lm)for(n=Lm.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&_f();break;case 3:Hd(),hf(bf),hf(vf),ep();break;case 5:Ud(r);break;case 4:Hd();break;case 13:case 19:hf(zd);break;case 10:ud(r);break;case 23:case 24:Eh()}n=n.return}Mm=e,Lm=Gh(e.current,null),Rm=Im=Hm=t,Fm=0,jm=null,zm=Um=Bm=0}function Sh(e,t){for(;;){var n=Lm;try{if(ld(),tp.current=Dp,lp){for(var r=ap.memoizedState;null!==r;){var a=r.queue;null!==a&&(a.pending=null),r=r.next}lp=!1}if(rp=0,ip=op=ap=null,up=!1,Am.current=null,null===n||null===n.return){Fm=1,jm=t,Lm=null;break}e:{var o=e,i=n.return,l=n,u=t;if(t=Rm,l.flags|=2048,l.firstEffect=l.lastEffect=null,null!==u&&"object"==typeof u&&"function"==typeof u.then){var s=u;if(0==(2&l.mode)){var c=l.alternate;c?(l.updateQueue=c.updateQueue,l.memoizedState=c.memoizedState,l.lanes=c.lanes):(l.updateQueue=null,l.memoizedState=null)}var f=0!=(1&zd.current),d=i;do{var p;if(p=13===d.tag){var m=d.memoizedState;if(null!==m)p=null!==m.dehydrated;else{var h=d.memoizedProps;p=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!f)}}if(p){var y=d.updateQueue;if(null===y){var g=new Set;g.add(s),d.updateQueue=g}else y.add(s);if(0==(2&d.mode)){if(d.flags|=64,l.flags|=16384,l.flags&=-2981,1===l.tag)if(null===l.alternate)l.tag=17;else{var v=hd(-1,1);v.tag=2,yd(l,v)}l.lanes|=1;break e}u=void 0,l=t;var b=o.pingCache;if(null===b?(b=o.pingCache=new pm,u=new Set,b.set(s,u)):void 0===(u=b.get(s))&&(u=new Set,b.set(s,u)),!u.has(l)){u.add(l);var E=jh.bind(null,o,s,l);s.then(E,E)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);u=Error((il(l.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Fm&&(Fm=2),u=fm(u,l),d=i;do{switch(d.tag){case 3:o=u,d.flags|=4096,d.lanes|=t&=-t,gd(d,mm(0,o,t));break e;case 1:o=u;var w=d.stateNode;if(0==(64&d.flags)&&("function"==typeof d.type.getDerivedStateFromError||null!==w&&"function"==typeof w.componentDidCatch&&(null===Zm||!Zm.has(w)))){d.flags|=4096,d.lanes|=t&=-t,gd(d,hm(d,o,t));break e}}d=d.return}while(null!==d)}Th(n)}catch(e){t=e,Lm===n&&null!==n&&(Lm=n=n.return);continue}break}}function _h(){var e=xm.current;return xm.current=Dp,null===e?Dp:e}function Ch(e,t){var n=Nm;Nm|=16;var r=_h();for(Mm===e&&Rm===t||wh(e,t);;)try{Oh();break}catch(t){Sh(e,t)}if(ld(),Nm=n,xm.current=r,null!==Lm)throw Error(bi(261));return Mm=null,Rm=0,Fm}function Oh(){for(;null!==Lm;)Ph(Lm)}function kh(){for(;null!==Lm&&!Lf();)Ph(Lm)}function Ph(e){var t=qm(e.alternate,e,Im);e.memoizedProps=e.pendingProps,null===t?Th(e):Lm=t,Am.current=null}function Th(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=sm(n,t,Im)))return void(Lm=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Im)||0==(4&n.mode)){for(var r=0,a=n.child;null!==a;)r|=a.lanes|a.childLanes,a=a.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=cm(t)))return n.flags&=2047,void(Lm=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Lm=t);Lm=t=e}while(null!==t);0===Fm&&(Fm=5)}function xh(e){var t=Qf();return Zf(99,Ah.bind(null,e,t)),null}function Ah(e,t){do{Mh()}while(null!==Jm);if(0!=(48&Nm))throw Error(bi(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(bi(177));e.callbackNode=null;var r=n.lanes|n.childLanes,a=r,o=e.pendingLanes&~a;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=a,e.mutableReadLanes&=a,e.entangledLanes&=a,a=e.entanglements;for(var i=e.eventTimes,l=e.expirationTimes;0<o;){var u=31-Ju(o),s=1<<u;a[u]=0,i[u]=-1,l[u]=-1,o&=~s}if(null!==rh&&0==(24&r)&&rh.has(e)&&rh.delete(e),e===Mm&&(Lm=Mm=null,Rm=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(a=Nm,Nm|=32,Am.current=null,Wc=as,wc(i=Ec())){if("selectionStart"in i)l={start:i.selectionStart,end:i.selectionEnd};else if((s=(l=(l=i.ownerDocument)&&l.defaultView||window).getSelection&&l.getSelection())&&0!==s.rangeCount){l=s.anchorNode,o=s.anchorOffset,u=s.focusNode,s=s.focusOffset;var c=0,f=-1,d=-1,p=0,m=0,h=i,y=null;e:for(;;){for(var g;h!==l||0!==o&&3!==h.nodeType||(f=c+o),h!==u||0!==s&&3!==h.nodeType||(d=c+s),3===h.nodeType&&(c+=h.nodeValue.length),null!==(g=h.firstChild);)y=h,h=g;for(;;){if(h===i)break e;if(y===l&&++p===o&&(f=c),y===u&&++m===s&&(d=c),null!==(g=h.nextSibling))break;y=(h=y).parentNode}h=g}l=-1===f||-1===d?null:{start:f,end:d}}else l=null;l=l||{start:0,end:0}}else l=null;$c={focusedElem:i,selectionRange:l},as=!1,Km=r;do{try{Nh()}catch(e){if(null===Km)throw Error(bi(330));Fh(Km,e),Km=Km.nextEffect}}while(null!==Km);Km=r;do{try{for(i=e;null!==Km;){var v=Km.flags;if(16&v&&xl(Km.stateNode,""),128&v){var b=Km.alternate;if(null!==b){var E=b.ref;null!==E&&("function"==typeof E?E(null):E.current=null)}}switch(1038&v){case 2:Cm(Km),Km.flags&=-3;break;case 6:Cm(Km),Km.flags&=-3,km(Km.alternate,Km);break;case 1024:Km.flags&=-1025;break;case 1028:Km.flags&=-1025,km(Km.alternate,Km);break;case 4:km(Km.alternate,Km);break;case 8:Om(i,l=Km);var w=l.alternate;Sm(l),null!==w&&Sm(w)}Km=Km.nextEffect}}catch(e){if(null===Km)throw Error(bi(330));Fh(Km,e),Km=Km.nextEffect}}while(null!==Km);if(E=$c,b=Ec(),i=E.selectionRange,b!==(v=E.focusedElem)&&v&&v.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(v.ownerDocument.documentElement,v)){null!==i&&wc(v)&&(b=i.start,void 0===(E=i.end)&&(E=b),"selectionStart"in v?(v.selectionStart=b,v.selectionEnd=Math.min(E,v.value.length)):(E=(b=v.ownerDocument||document)&&b.defaultView||window).getSelection&&(E=E.getSelection(),l=v.textContent.length,w=Math.min(i.start,l),i=void 0===i.end?w:Math.min(i.end,l),!E.extend&&w>i&&(l=i,i=w,w=l),l=bc(v,w),o=bc(v,i),l&&o&&(1!==E.rangeCount||E.anchorNode!==l.node||E.anchorOffset!==l.offset||E.focusNode!==o.node||E.focusOffset!==o.offset)&&((b=b.createRange()).setStart(l.node,l.offset),E.removeAllRanges(),w>i?(E.addRange(b),E.extend(o.node,o.offset)):(b.setEnd(o.node,o.offset),E.addRange(b))))),b=[];for(E=v;E=E.parentNode;)1===E.nodeType&&b.push({element:E,left:E.scrollLeft,top:E.scrollTop});for("function"==typeof v.focus&&v.focus(),v=0;v<b.length;v++)(E=b[v]).element.scrollLeft=E.left,E.element.scrollTop=E.top}as=!!Wc,$c=Wc=null,e.current=n,Km=r;do{try{for(v=e;null!==Km;){var S=Km.flags;if(36&S&&bm(v,Km.alternate,Km),128&S){b=void 0;var _=Km.ref;if(null!==_){var C=Km.stateNode;switch(Km.tag){case 5:b=C;break;default:b=C}"function"==typeof _?_(b):_.current=b}}Km=Km.nextEffect}}catch(e){if(null===Km)throw Error(bi(330));Fh(Km,e),Km=Km.nextEffect}}while(null!==Km);Km=null,Gf(),Nm=a}else e.current=n;if(Ym)Ym=!1,Jm=e,eh=t;else for(Km=r;null!==Km;)t=Km.nextEffect,Km.nextEffect=null,8&Km.flags&&((S=Km).sibling=null,S.stateNode=null),Km=t;if(0===(r=e.pendingLanes)&&(Zm=null),1===r?e===oh?ah++:(ah=0,oh=e):ah=0,n=n.stateNode,xf&&"function"==typeof xf.onCommitFiberRoot)try{xf.onCommitFiberRoot(Tf,n,void 0,64==(64&n.current.flags))}catch(e){}if(ph(e,Kf()),Qm)throw Qm=!1,e=Xm,Xm=null,e;return 0!=(8&Nm)||Jf(),null}function Nh(){for(;null!==Km;){var e=Km.flags;0!=(256&e)&&vm(Km.alternate,Km),0==(512&e)||Ym||(Ym=!0,Yf(97,function(){return Mh(),null})),Km=Km.nextEffect}}function Mh(){if(90!==eh){var e=97<eh?97:eh;return eh=90,Zf(e,Ih)}return!1}function Lh(e,t){th.push(t,e),Ym||(Ym=!0,Yf(97,function(){return Mh(),null}))}function Rh(e,t){nh.push(t,e),Ym||(Ym=!0,Yf(97,function(){return Mh(),null}))}function Ih(){if(null===Jm)return!1;var e=Jm;if(Jm=null,0!=(48&Nm))throw Error(bi(331));var t=Nm;Nm|=32;var n=nh;nh=[];for(var r=0;r<n.length;r+=2){var a=n[r],o=n[r+1],i=a.destroy;if(a.destroy=void 0,"function"==typeof i)try{i()}catch(e){if(null===o)throw Error(bi(330));Fh(o,e)}}for(n=th,th=[],r=0;r<n.length;r+=2){a=n[r],o=n[r+1];try{var l=a.create;a.destroy=l()}catch(e){if(null===o)throw Error(bi(330));Fh(o,e)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return Nm=t,Jf(),!0}function Dh(e,t,n){yd(e,t=mm(0,t=fm(n,t),1)),t=sh(),null!==(e=dh(e,1))&&(Yu(e,1,t),ph(e,t))}function Fh(e,t){if(3===e.tag)Dh(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Dh(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Zm||!Zm.has(r))){var a=hm(n,e=fm(t,e),1);if(yd(n,a),a=sh(),null!==(n=dh(n,1)))Yu(n,1,a),ph(n,a);else if("function"==typeof r.componentDidCatch&&(null===Zm||!Zm.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function jh(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=sh(),e.pingedLanes|=e.suspendedLanes&n,Mm===e&&(Rm&n)===n&&(4===Fm||3===Fm&&(62914560&Rm)===Rm&&500>Kf()-Vm?wh(e,0):zm|=n),ph(e,t)}function Hh(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Qf()?1:2:(0===lh&&(lh=Hm),0===(t=Xu(62914560&~lh))&&(t=4194304))),n=sh(),null!==(e=dh(e,t))&&(Yu(e,t,n),ph(e,n))}function Bh(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Uh(e,t,n,r){return new Bh(e,t,n,r)}function zh(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Gh(e,t){var n=e.alternate;return null===n?((n=Uh(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.dependencies=null===(t=e.dependencies)?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Vh(e,t,n,r,a,o){var i=2;if(r=e,"function"==typeof e)zh(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case Fi:return Wh(n.children,a,o,t);case Qi:i=8,a|=16;break;case ji:i=8,a|=1;break;case Hi:return(e=Uh(12,n,t,8|a)).elementType=Hi,e.type=Hi,e.lanes=o,e;case Gi:return(e=Uh(13,n,t,a)).type=Gi,e.elementType=Gi,e.lanes=o,e;case Vi:return(e=Uh(19,n,t,a)).elementType=Vi,e.lanes=o,e;case Xi:return $h(n,a,o,t);case Zi:return(e=Uh(24,n,t,a)).elementType=Zi,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Bi:i=10;break e;case Ui:i=9;break e;case zi:i=11;break e;case Wi:i=14;break e;case $i:i=16,r=null;break e;case qi:i=22;break e}throw Error(bi(130,null==e?e:typeof e,""))}return(t=Uh(i,n,t,a)).elementType=e,t.type=r,t.lanes=o,t}function Wh(e,t,n,r){return(e=Uh(7,e,r,t)).lanes=n,e}function $h(e,t,n,r){return(e=Uh(23,e,r,t)).elementType=Xi,e.lanes=n,e}function qh(e,t,n){return(e=Uh(6,e,null,t)).lanes=n,e}function Kh(e,t,n){return(t=Uh(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Qh(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Zu(0),this.expirationTimes=Zu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zu(0),this.mutableSourceEagerHydrationData=null}function Xh(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Di,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Zh(e,t,n,r){var a=t.current,o=sh(),i=ch(a);e:if(n){t:{if(lu(n=n._reactInternals)!==n||1!==n.tag)throw Error(bi(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(Sf(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(bi(171))}if(1===n.tag){var u=n.type;if(Sf(u)){n=Of(n,u,l);break e}}n=l}else n=gf;return null===t.context?t.context=n:t.pendingContext=n,(t=hd(o,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),yd(a,t),fh(a,i,o),i}function Yh(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Jh(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function ey(e,t){Jh(e,t),(e=e.alternate)&&Jh(e,t)}function ty(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Qh(e,t,null!=n&&!0===n.hydrate),t=Uh(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,pd(t),e[af]=n.current,Dc(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var a=(t=r[e])._getVersion;a=a(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,a]:n.mutableSourceEagerHydrationData.push(t,a)}this._internalRoot=n}function ny(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ry(e,t,n,r,a){var o=n._reactRootContainer;if(o){var i=o._internalRoot;if("function"==typeof a){var l=a;a=function(){var e=Yh(i);l.call(e)}}Zh(t,i,e,a)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new ty(e,0,t?{hydrate:!0}:void 0)}(n,r),i=o._internalRoot,"function"==typeof a){var u=a;a=function(){var e=Yh(i);u.call(e)}}vh(function(){Zh(t,i,e,a)})}return Yh(i)}function ay(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ny(t))throw Error(bi(200));return Xh(e,t,null,n)}qm=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||bf.current)Up=!0;else{if(0==(n&r)){switch(Up=!1,t.tag){case 3:Zp(t),Yd();break;case 5:Bd(t);break;case 1:Sf(t.type)&&kf(t);break;case 4:jd(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var a=t.type._context;yf(rd,a._currentValue),a._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?nm(e,t,n):(yf(zd,1&zd.current),null!==(t=lm(e,t,n))?t.sibling:null);yf(zd,1&zd.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return im(e,t,n);t.flags|=64}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),yf(zd,zd.current),r)break;return null;case 23:case 24:return t.lanes=0,$p(e,t,n)}return lm(e,t,n)}Up=0!=(16384&e.flags)}else Up=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=wf(t,vf.current),cd(t,n),a=fp(null,t,r,e,a,n),t.flags|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Sf(r)){var o=!0;kf(t)}else o=!1;t.memoizedState=null!=a.state?a.state:null,pd(t);var i=r.getDerivedStateFromProps;"function"==typeof i&&wd(t,r,i,e),a.updater=Sd,t.stateNode=a,a._reactInternals=t,kd(t,r,e,n),t=Xp(null,t,r,!0,o,n)}else t.tag=0,zp(null,t,a,n),t=t.child;return t;case 16:a=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=(o=a._init)(a._payload),t.type=a,o=t.tag=function(e){if("function"==typeof e)return zh(e)?1:0;if(null!=e){if((e=e.$$typeof)===zi)return 11;if(e===Wi)return 14}return 2}(a),e=nd(a,e),o){case 0:t=Kp(null,t,a,e,n);break e;case 1:t=Qp(null,t,a,e,n);break e;case 11:t=Gp(null,t,a,e,n);break e;case 14:t=Vp(null,t,a,nd(a.type,e),r,n);break e}throw Error(bi(306,a,""))}return t;case 0:return a=t.pendingProps,Kp(e,t,r=t.type,a=t.elementType===r?a:nd(r,a),n);case 1:return a=t.pendingProps,Qp(e,t,r=t.type,a=t.elementType===r?a:nd(r,a),n);case 3:if(Zp(t),r=t.updateQueue,null===e||null===r)throw Error(bi(282));if(r=t.pendingProps,a=null!==(a=t.memoizedState)?a.element:null,md(e,t),vd(t,r,null,n),(r=t.memoizedState.element)===a)Yd(),t=lm(e,t,n);else{if((o=(a=t.stateNode).hydrate)&&(Wd=Yc(t.stateNode.containerInfo.firstChild),Vd=t,o=$d=!0),o){if(null!=(e=a.mutableSourceEagerHydrationData))for(a=0;a<e.length;a+=2)(o=e[a])._workInProgressVersionPrimary=e[a+1],Jd.push(o);for(n=Md(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else zp(e,t,r,n),Yd();t=t.child}return t;case 5:return Bd(t),null===e&&Qd(t),o=null!==e?e.memoizedProps:null,i=(a=t.pendingProps).children,Kc(r=t.type,a)?i=null:null!==o&&Kc(r,o)&&(t.flags|=16),qp(e,t),zp(e,t,i,n),t.child;case 6:return null===e&&Qd(t),null;case 13:return nm(e,t,n);case 4:return jd(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Nd(t,null,r,n):zp(e,t,r,n),t.child;case 11:return a=t.pendingProps,Gp(e,t,r=t.type,a=t.elementType===r?a:nd(r,a),n);case 7:return zp(e,t,t.pendingProps,n),t.child;case 8:case 12:return zp(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.memoizedProps,o=(a=t.pendingProps).value;var l=t.type._context;if(yf(rd,l._currentValue),l._currentValue=o,null!==i)if(0==(o=hc(l=i.value,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,o):1073741823))){if(i.children===a.children&&!bf.current){t=lm(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){i=l.child;for(var s=u.firstContext;null!==s;){if(s.context===r&&0!=(s.observedBits&o)){1===l.tag&&((s=hd(-1,n&-n)).tag=2,yd(l,s)),l.lanes|=n,null!==(s=l.alternate)&&(s.lanes|=n),sd(l.return,n),u.lanes|=n;break}s=s.next}}else i=10===l.tag&&l.type===t.type?null:l.child;if(null!==i)i.return=l;else for(i=l;null!==i;){if(i===t){i=null;break}if(null!==(l=i.sibling)){l.return=i.return,i=l;break}i=i.return}l=i}zp(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=(o=t.pendingProps).children,cd(t,n),r=r(a=fd(a,o.unstable_observedBits)),t.flags|=1,zp(e,t,r,n),t.child;case 14:return o=nd(a=t.type,t.pendingProps),Vp(e,t,a,o=nd(a.type,o),r,n);case 15:return Wp(e,t,t.type,t.pendingProps,r,n);case 17:return a=t.pendingProps,a=t.elementType===(r=t.type)?a:nd(r,a),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Sf(r)?(e=!0,kf(t)):e=!1,cd(t,n),Cd(t,r,a),kd(t,r,a,n),Xp(null,t,r,!0,e,n);case 19:return im(e,t,n);case 23:case 24:return $p(e,t,n)}throw Error(bi(156,t.tag))},ty.prototype.render=function(e){Zh(e,this._internalRoot,null,null)},ty.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Zh(null,e,null,function(){t[af]=null})},fu=function(e){13===e.tag&&(fh(e,4,sh()),ey(e,4))},du=function(e){13===e.tag&&(fh(e,67108864,sh()),ey(e,67108864))},pu=function(e){if(13===e.tag){var t=sh(),n=ch(e);fh(e,n,t),ey(e,n)}},mu=function(e,t){return t()},jl=function(e,t,n){switch(t){case"input":if(hl(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=cf(r);if(!a)throw Error(bi(90));cl(r),hl(r,a)}}}break;case"textarea":Sl(e,n);break;case"select":null!=(t=n.value)&&bl(e,!!n.multiple,t,!1)}},Vl=gh,Wl=function(e,t,n,r,a){var o=Nm;Nm|=4;try{return Zf(98,e.bind(null,t,n,r,a))}finally{0===(Nm=o)&&($m(),Jf())}},$l=function(){0==(49&Nm)&&(function(){if(null!==rh){var e=rh;rh=null,e.forEach(function(e){e.expiredLanes|=24&e.pendingLanes,ph(e,Kf())})}Jf()}(),Mh())},ql=function(e,t){var n=Nm;Nm|=2;try{return e(t)}finally{0===(Nm=n)&&($m(),Jf())}};var oy={Events:[uf,sf,cf,zl,Gl,Mh,{current:!1}]},iy={findFiberByHostInstance:lf,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},ly={bundleType:iy.bundleType,version:iy.version,rendererPackageName:iy.rendererPackageName,rendererConfig:iy.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ri.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=cu(e))?null:e.stateNode},findFiberByHostInstance:iy.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var uy=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uy.isDisabled&&uy.supportsFiber)try{Tf=uy.inject(ly),xf=uy}catch(e){}}var sy={__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:oy,createPortal:ay,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(bi(188));throw Error(bi(268,Object.keys(e)))}return null===(e=cu(t))?null:e.stateNode},flushSync:function(e,t){var n=Nm;if(0!=(48&n))return e(t);Nm|=1;try{if(e)return Zf(99,e.bind(null,t))}finally{Nm=n,Jf()}},hydrate:function(e,t,n){if(!ny(t))throw Error(bi(200));return ry(null,e,t,!0,n)},render:function(e,t,n){if(!ny(t))throw Error(bi(200));return ry(null,e,t,!1,n)},unmountComponentAtNode:function(e){if(!ny(e))throw Error(bi(40));return!!e._reactRootContainer&&(vh(function(){ry(null,null,e,!1,function(){e._reactRootContainer=null,e[af]=null})}),!0)},unstable_batchedUpdates:gh,unstable_createPortal:function(e,t){return ay(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){if(!ny(n))throw Error(bi(200));if(null==e||void 0===e._reactInternals)throw Error(bi(38));return ry(e,t,n,!1,r)},version:"17.0.2"},cy=0,fy={__interactionsRef:null,__subscriberRef:null,unstable_clear:function(e){return e()},unstable_getCurrent:function(){return null},unstable_getThreadID:function(){return++cy},unstable_subscribe:function(){},unstable_trace:function(e,t,n){return n()},unstable_unsubscribe:function(){},unstable_wrap:function(e){return e}},dy=(p(function(e,t){}),p(function(e){e.exports=fy}),p(function(e,t){}),p(function(e){!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=sy}));function py(){return(py=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function my(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}var hy=function(e,t){return!!e.eligible&&!!t&&e.purchase_amount>=(null==t?void 0:t.minAmount)&&e.purchase_amount<=(null==t?void 0:t.maxAmount)},yy=function(e,t,n,r,a){var o,i,l=t.domain,u=t.merchantId,s=cr.useState([]),c=s[0],f=s[1],d=cr.useState(Yn.PENDING),p=d[0],m=d[1],h=null==n?void 0:n.map(function(e){return{installments_count:e.installmentsCount,deferred_days:null==e?void 0:e.deferredDays,deferred_months:null==e?void 0:e.deferredMonths}});return cr.useEffect(function(){if(p===Yn.PENDING){var t=null;r&&(t={country:r});var n=null;a&&(n={country:a}),function(e,t,n){void 0===e&&(e="");try{return Promise.resolve(fetch(e,{method:"POST",headers:py({"Content-Type":"application/json"},n),body:JSON.stringify(t)})).then(function(e){return e.json()})}catch(e){return Promise.reject(e)}}(l+"/v2/payments/eligibility",{purchase_amount:e,queries:h,billing_address:t,shipping_address:n},{Authorization:"Alma-Merchant-Auth "+u,"X-Alma-Agent":"Alma Widget/v3.3.7"}).then(function(e){f(e),m(Yn.SUCCESS)}).catch(function(){m(Yn.FAILED)})}},[p]),[(o=c,i=n,i?o.map(function(e){var t=30*(e.deferred_months?e.deferred_months:0)+(e.deferred_days?e.deferred_days:0),n=i.find(function(n){return e.installments_count===n.installmentsCount&&t===30*(n.deferredMonths?n.deferredMonths:0)+(n.deferredDays?n.deferredDays:0)});return py({},e,{eligible:hy(e,n)},function(e,t){var n,r=null==(n=e.constraints)?void 0:n.purchase_amount;return r&&t?{minAmount:Math.max(t.minAmount,null==r?void 0:r.minimum),maxAmount:Math.min(t.maxAmount,null==r?void 0:r.maximum)}:null!=t?t:{}}(e,n))}):o.filter(function(e){return!(1===e.installments_count&&0===e.deferred_days&&0===e.deferred_months)})),p]},gy=p(function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var a=arguments[r];if(a){var o=typeof a;if("string"===o||"number"===o)e.push(a);else if(Array.isArray(a)){if(a.length){var i=n.apply(null,a);i&&e.push(i)}}else if("object"===o)if(a.toString===Object.prototype.toString)for(var l in a)t.call(a,l)&&a[l]&&e.push(l);else e.push(a.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}),vy="alma-eligibility-modal",by={desktopModal:vy+"-desktop-modal",mobileModal:vy+"-mobile-modal",leftSide:vy+"-left-side",bullet:vy+"-bullet",rightSide:vy+"-right-side",title:vy+"-title",info:vy+"-info",infoMessage:vy+"-info-message",eligibilityOptions:vy+"-eligibility-options",activeOption:vy+"-active-option",closeButton:vy+"-close-button",scheduleDetails:vy+"-schedule-details",scheduleTotal:vy+"-schedule-total",scheduleCredit:vy+"-schedule-credit",cardContainer:vy+"-card-logos",summary:vy+"-summary"},Ey=function(e){var t=e.currentPlan,n=Zo(),r=tr(t.purchase_amount+t.customer_total_cost_amount),a=tr(t.customer_total_cost_amount),o=(null==t?void 0:t.annual_interest_rate)&&t.annual_interest_rate/1e4||0,i=tr(t.customer_total_cost_amount),l=t.installments_count>4;return cr.createElement("div",{className:gy("_GTTk7",by.summary),"data-testid":"modal-summary"},cr.createElement("div",{className:gy("_34s2g",by.scheduleTotal)},cr.createElement(oi,{tagName:"div",id:"installments.total-amount",defaultMessage:"Total"}),cr.createElement(li,{value:r||0,style:"currency",currency:"EUR"})),cr.createElement("div",{className:gy("_W7qIA",by.scheduleCredit)},l?cr.createElement(cr.Fragment,null,cr.createElement(oi,{id:"credit-features.total-credit-cost",defaultMessage:"Dont coût du crédit"}),cr.createElement("span",{className:"_24KmE"},cr.createElement(oi,{id:"credit-features.credit-cost-display",defaultMessage:"{creditCost} (TAEG {taegPercentage})",values:{creditCost:n.formatNumber(a,{style:"currency",currency:"EUR"}),taegPercentage:n.formatNumber(o,{style:"percent",maximumFractionDigits:2})}}))):cr.createElement(cr.Fragment,null,cr.createElement(oi,{id:"installments.total-fees",defaultMessage:"Dont frais (TTC)",tagName:"div"}),cr.createElement("div",null,cr.createElement(li,{value:i,style:"currency",currency:"EUR"})))))},wy=function(e){return cr.createElement("div",{className:gy("_31lrj",e.className),"data-testid":"loader"},cr.createElement("svg",{width:"120",height:"134",viewBox:"0 0 120 134",fill:"none",xmlns:"http://www.w3.org/2000/svg"},cr.createElement("path",{d:"M83.8164 41.0325C79.1708 22.8241 69.3458 17 59.9939 17C50.642 17 40.8171 22.8241 36.1715 41.0325L16 117H35.8804C39.119 104.311 49.1016 97.2436 59.9939 97.2436C70.8863 97.2436 80.8689 104.324 84.1075 117H104L83.8164 41.0325ZM59.9939 79.5428C53.6623 79.5428 47.925 82.0552 43.6918 86.1283L55.0936 41.9207C56.1853 37.6953 57.7985 36.3503 60.0061 36.3503C62.2136 36.3503 63.8269 37.6953 64.9185 41.9207L76.3082 86.1283C72.075 82.0552 66.3256 79.5428 59.9939 79.5428Z",fill:"#FA5022"})))},Sy="function"==typeof Symbol&&Symbol.for,_y=Sy?Symbol.for("react.element"):60103,Cy=Sy?Symbol.for("react.portal"):60106,Oy=Sy?Symbol.for("react.fragment"):60107,ky=Sy?Symbol.for("react.strict_mode"):60108,Py=Sy?Symbol.for("react.profiler"):60114,Ty=Sy?Symbol.for("react.provider"):60109,xy=Sy?Symbol.for("react.context"):60110,Ay=Sy?Symbol.for("react.async_mode"):60111,Ny=Sy?Symbol.for("react.concurrent_mode"):60111,My=Sy?Symbol.for("react.forward_ref"):60112,Ly=Sy?Symbol.for("react.suspense"):60113,Ry=Sy?Symbol.for("react.suspense_list"):60120,Iy=Sy?Symbol.for("react.memo"):60115,Dy=Sy?Symbol.for("react.lazy"):60116,Fy=Sy?Symbol.for("react.block"):60121,jy=Sy?Symbol.for("react.fundamental"):60117,Hy=Sy?Symbol.for("react.responder"):60118,By=Sy?Symbol.for("react.scope"):60119;function Uy(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case _y:switch(e=e.type){case Ay:case Ny:case Oy:case Py:case ky:case Ly:return e;default:switch(e=e&&e.$$typeof){case xy:case My:case Dy:case Iy:case Ty:return e;default:return t}}case Cy:return t}}}function zy(e){return Uy(e)===Ny}var Gy={AsyncMode:Ay,ConcurrentMode:Ny,ContextConsumer:xy,ContextProvider:Ty,Element:_y,ForwardRef:My,Fragment:Oy,Lazy:Dy,Memo:Iy,Portal:Cy,Profiler:Py,StrictMode:ky,Suspense:Ly,isAsyncMode:function(e){return zy(e)||Uy(e)===Ay},isConcurrentMode:zy,isContextConsumer:function(e){return Uy(e)===xy},isContextProvider:function(e){return Uy(e)===Ty},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===_y},isForwardRef:function(e){return Uy(e)===My},isFragment:function(e){return Uy(e)===Oy},isLazy:function(e){return Uy(e)===Dy},isMemo:function(e){return Uy(e)===Iy},isPortal:function(e){return Uy(e)===Cy},isProfiler:function(e){return Uy(e)===Py},isStrictMode:function(e){return Uy(e)===ky},isSuspense:function(e){return Uy(e)===Ly},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===Oy||e===Ny||e===Py||e===ky||e===Ly||e===Ry||"object"==typeof e&&null!==e&&(e.$$typeof===Dy||e.$$typeof===Iy||e.$$typeof===Ty||e.$$typeof===xy||e.$$typeof===My||e.$$typeof===jy||e.$$typeof===Hy||e.$$typeof===By||e.$$typeof===Fy)},typeOf:Uy};function Vy(){}function Wy(){}p(function(e,t){}),p(function(e){e.exports=Gy}),Wy.resetWarningCache=Vy;var $y=p(function(e){e.exports=function(){function e(e,t,n,r,a,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Wy,resetWarningCache:Vy};return n.PropTypes=n,n}()}),qy=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce(function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])},[]).filter(a)};var n=/input|select|textarea|button|object|iframe/;function r(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var n=window.getComputedStyle(e);return t?"visible"!==n.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0:"none"==n.getPropertyValue("display")}catch(e){return console.warn("Failed to inspect element style"),!1}}function a(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var a=isNaN(t);return(a||t>=0)&&function(e,t){var a=e.nodeName.toLowerCase();return(n.test(a)&&!e.disabled||"a"===a&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),r(t))return!1;t=t.parentNode}return!0}(e)}(e,!a)}e.exports=t.default}),Ky=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a=[]},t.log=function(){},t.handleBlur=l,t.handleFocus=u,t.markForFocusLater=function(){a.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==a.length&&(t=a.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){a.length>0&&a.pop()},t.setupScopedFocus=function(e){o=e,window.addEventListener?(window.addEventListener("blur",l,!1),document.addEventListener("focus",u,!0)):(window.attachEvent("onBlur",l),document.attachEvent("onFocus",u))},t.teardownScopedFocus=function(){o=null,window.addEventListener?(window.removeEventListener("blur",l),document.removeEventListener("focus",u)):(window.detachEvent("onBlur",l),document.detachEvent("onFocus",u))};var n,r=(n=qy)&&n.__esModule?n:{default:n},a=[],o=null,i=!1;function l(){i=!0}function u(){if(i){if(i=!1,!o)return;setTimeout(function(){o.contains(document.activeElement)||((0,r.default)(o)[0]||o).focus()},0)}}}),Qy=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,r.default)(e);if(n.length){var a=void 0,o=t.shiftKey,i=n[0],l=n[n.length-1],u=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return t.activeElement.shadowRoot?e(t.activeElement.shadowRoot):t.activeElement}();if(e===u){if(!o)return;a=l}if(l!==u||o||(a=i),i===u&&o&&(a=l),a)return t.preventDefault(),void a.focus();var s=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=s&&"Chrome"!=s[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var c=n.indexOf(u);if(c>-1&&(c+=o?-1:1),void 0===(a=n[c]))return t.preventDefault(),void(a=o?l:i).focus();t.preventDefault(),a.focus()}}else t.preventDefault()};var n,r=(n=qy)&&n.__esModule?n:{default:n};e.exports=t.default}),Xy=function(){},Zy=p(function(e){var t,n;n={canUseDOM:t=!("undefined"==typeof window||!window.document||!window.document.createElement),canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen},e.exports?e.exports=n:window.ExecutionEnvironment=n}),Yy=p(function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r=((n=Zy)&&n.__esModule?n:{default:n}).default,a=r.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=r.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=r.canUseDOM?window.NodeList:{},t.canUseDOM=r.canUseDOM,t.default=a}),Jy=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a&&(a.removeAttribute?a.removeAttribute("aria-hidden"):null!=a.length?a.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(a).forEach(function(e){return e.removeAttribute("aria-hidden")})),a=null},t.log=function(){},t.assertNodeList=o,t.setElement=function(e){var t=e;if("string"==typeof t&&Yy.canUseDOM){var n=document.querySelectorAll(t);o(n,t),t=n}return a=t||a},t.validateElement=i,t.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var a,o=i(e)[Symbol.iterator]();!(t=(a=o.next()).done);t=!0)a.value.setAttribute("aria-hidden","true")}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}},t.show=function(e){var t=!0,n=!1,r=void 0;try{for(var a,o=i(e)[Symbol.iterator]();!(t=(a=o.next()).done);t=!0)a.value.removeAttribute("aria-hidden")}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}},t.documentNotReadyOrSSRTesting=function(){a=null};var n,r=(n=Xy)&&n.__esModule?n:{default:n},a=null;function o(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function i(e){var t=e||a;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,r.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}}),eg=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)a(e,n[t]);var o=document.body;for(var i in r)a(o,r[i]);n={},r={}},t.log=function(){};var n={},r={};function a(e,t){e.classList.remove(t)}t.add=function(e,t){return a=e.classList,o="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach(function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(o,e),a.add(e)});var a,o},t.remove=function(e,t){return a=e.classList,o="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach(function(e){!function(e,t){e[t]&&(e[t]-=1)}(o,e),0===o[e]&&a.remove(e)});var a,o}}),tg=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(r.openInstances.length),r.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")},t.resetState=function(){r=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach(function(n){return n(e,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},r=new n;t.default=r}),ng=(p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[a,o],t=0;t<e.length;t++){var n=e[t];n&&n.parentNode&&n.parentNode.removeChild(n)}a=o=null,i=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(i.length);for(var e=[a,o],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var n,r=(n=tg)&&n.__esModule?n:{default:n},a=void 0,o=void 0,i=[];function l(){0!==i.length&&i[i.length-1].focusContent()}r.default.subscribe(function(e,t){a||o||((a=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),a.style.position="absolute",a.style.opacity="0",a.setAttribute("tabindex","0"),a.addEventListener("focus",l),(o=a.cloneNode()).addEventListener("focus",l)),(i=t).length>0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==o&&document.body.appendChild(o)):(a.parentElement&&a.parentElement.removeChild(a),o.parentElement&&o.parentElement.removeChild(o))})}),p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=p($y),i=d(Ky),l=p(Qy),u=d(Jy),s=d(eg),c=p(Yy),f=p(tg);function d(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function p(e){return e&&e.__esModule?e:{default:e}}var m={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},h=0,y=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,a=e.htmlOpenClassName,o=e.bodyOpenClassName;o&&s.remove(document.body,o),a&&s.remove(document.getElementsByTagName("html")[0],a),r&&h>0&&0==(h-=1)&&u.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(i.returnFocus(n.props.preventScroll),i.teardownScopedFocus()):i.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),f.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(i.setupScopedFocus(n.node),i.markForFocusLater()),n.setState({isOpen:!0},function(){n.openAnimationFrame=requestAnimationFrame(function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})})}))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())})},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){9===e.keyCode&&(0,l.default)(n.content,e),n.props.shouldCloseOnEsc&&27===e.keyCode&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var a="object"===(void 0===t?"undefined":r(t))?t:{base:m[e],afterOpen:m[e]+"--after-open",beforeClose:m[e]+"--before-close"},o=a.base;return n.state.afterOpen&&(o=o+" "+a.afterOpen),n.state.beforeClose&&(o=o+" "+a.beforeClose),"string"==typeof t&&t?o+" "+t:o},n.attributesFromObject=function(e,t){return Object.keys(t).reduce(function(n,r){return n[e+"-"+r]=t[r],n},{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,a=e.bodyOpenClassName;a&&s.add(document.body,a),r&&s.add(document.getElementsByTagName("html")[0],r),n&&(h+=1,u.hide(t)),f.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,r=e.className,a=e.overlayClassName,o=e.defaultStyles,i=e.children,l=r?{}:o.content,u=a?{}:o.overlay;if(this.shouldBeClosed())return null;var s={ref:this.setOverlayRef,className:this.buildClassName("overlay",a),style:n({},u,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},c=n({id:t,ref:this.setContentRef,style:n({},l,this.props.style.content),className:this.buildClassName("content",r),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",n({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),f=this.props.contentElement(c,i);return this.props.overlayElement(s,f)}}]),t}(cr.Component);y.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},y.propTypes={isOpen:o.default.bool.isRequired,defaultStyles:o.default.shape({content:o.default.object,overlay:o.default.object}),style:o.default.shape({content:o.default.object,overlay:o.default.object}),className:o.default.oneOfType([o.default.string,o.default.object]),overlayClassName:o.default.oneOfType([o.default.string,o.default.object]),bodyOpenClassName:o.default.string,htmlOpenClassName:o.default.string,ariaHideApp:o.default.bool,appElement:o.default.oneOfType([o.default.instanceOf(c.default),o.default.instanceOf(Yy.SafeHTMLCollection),o.default.instanceOf(Yy.SafeNodeList),o.default.arrayOf(o.default.instanceOf(c.default))]),onAfterOpen:o.default.func,onAfterClose:o.default.func,onRequestClose:o.default.func,closeTimeoutMS:o.default.number,shouldFocusAfterRender:o.default.bool,shouldCloseOnOverlayClick:o.default.bool,shouldReturnFocusAfterClose:o.default.bool,preventScroll:o.default.bool,role:o.default.string,contentLabel:o.default.string,aria:o.default.object,data:o.default.object,children:o.default.node,shouldCloseOnEsc:o.default.bool,overlayRef:o.default.func,contentRef:o.default.func,id:o.default.string,overlayElement:o.default.func,contentElement:o.default.func,testId:o.default.string},t.default=y,e.exports=t.default}));function rg(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function ag(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function og(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}rg.__suppressDeprecationWarning=!0,ag.__suppressDeprecationWarning=!0,og.__suppressDeprecationWarning=!0;var ig=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=c(cr),o=c(dy),i=c($y),l=c(ng),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(Jy),s=c(Yy);function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var p=t.portalClassName="ReactModalPortal",m=t.bodyOpenClassName="ReactModal__Body--open",h=Yy.canUseDOM&&void 0!==o.default.createPortal,y=function(e){return document.createElement(e)},g=function(){return h?o.default.createPortal:o.default.unstable_renderSubtreeIntoContainer};function v(e){return e()}var b=function(e){function t(){var e,r,i;f(this,t);for(var u=arguments.length,s=Array(u),c=0;c<u;c++)s[c]=arguments[c];return r=i=d(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),i.removePortal=function(){!h&&o.default.unmountComponentAtNode(i.node);var e=v(i.props.parentSelector);e&&e.contains(i.node)?e.removeChild(i.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},i.portalRef=function(e){i.portal=e},i.renderPortal=function(e){var r=g()(i,a.default.createElement(l.default,n({defaultStyles:t.defaultStyles},e)),i.node);i.portalRef(r)},d(i,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){Yy.canUseDOM&&(h||(this.node=y("div")),this.node.className=this.props.portalClassName,v(this.props.parentSelector).appendChild(this.node),!h&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:v(e.parentSelector),nextParent:v(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(Yy.canUseDOM){var r=this.props,a=r.isOpen,o=r.portalClassName;e.portalClassName!==o&&(this.node.className=o);var i=n.prevParent,l=n.nextParent;l!==i&&(i.removeChild(this.node),l.appendChild(this.node)),(e.isOpen||a)&&!h&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(Yy.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return Yy.canUseDOM&&h?(!this.node&&h&&(this.node=y("div")),g()(a.default.createElement(l.default,n({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){u.setElement(e)}}]),t}(cr.Component);b.propTypes={isOpen:i.default.bool.isRequired,style:i.default.shape({content:i.default.object,overlay:i.default.object}),portalClassName:i.default.string,bodyOpenClassName:i.default.string,htmlOpenClassName:i.default.string,className:i.default.oneOfType([i.default.string,i.default.shape({base:i.default.string.isRequired,afterOpen:i.default.string.isRequired,beforeClose:i.default.string.isRequired})]),overlayClassName:i.default.oneOfType([i.default.string,i.default.shape({base:i.default.string.isRequired,afterOpen:i.default.string.isRequired,beforeClose:i.default.string.isRequired})]),appElement:i.default.oneOfType([i.default.instanceOf(s.default),i.default.instanceOf(Yy.SafeHTMLCollection),i.default.instanceOf(Yy.SafeNodeList),i.default.arrayOf(i.default.instanceOf(s.default))]),onAfterOpen:i.default.func,onRequestClose:i.default.func,closeTimeoutMS:i.default.number,ariaHideApp:i.default.bool,shouldFocusAfterRender:i.default.bool,shouldCloseOnOverlayClick:i.default.bool,shouldReturnFocusAfterClose:i.default.bool,preventScroll:i.default.bool,parentSelector:i.default.func,aria:i.default.object,data:i.default.object,role:i.default.string,contentLabel:i.default.string,shouldCloseOnEsc:i.default.bool,overlayRef:i.default.func,contentRef:i.default.func,id:i.default.string,overlayElement:i.default.func,contentElement:i.default.func},b.defaultProps={isOpen:!1,portalClassName:p,bodyOpenClassName:m,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return a.default.createElement("div",e,t)},contentElement:function(e,t){return a.default.createElement("div",e,t)}},b.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},function(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,r=null,a=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?a="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==n||null!==r||null!==a)throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+(e.displayName||e.name)+" uses "+("function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()")+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==r?"\n "+r:"")+(null!==a?"\n "+a:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks");if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=rg,t.componentWillReceiveProps=ag),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=og;var o=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){o.call(this,e,t,this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n)}}}(b),t.default=b}),lg=d(p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n,r=(n=ig)&&n.__esModule?n:{default:n};t.default=r.default,e.exports=t.default})),ug=p(function(e){!function(t){var n,r,a=!1;function o(e){if("undefined"!=typeof document&&!a){var t=document.documentElement;r=window.pageYOffset,t.style.width=document.documentElement.scrollHeight>window.innerHeight?"calc(100% - "+function(){if(void 0!==n)return n;var e=document.documentElement,t=document.createElement("div");return t.setAttribute("style","width:99px;height:99px;position:absolute;top:-9999px;overflow:scroll;"),e.appendChild(t),n=t.offsetWidth-t.clientWidth,e.removeChild(t),n}()+"px)":"100%",t.style.position="fixed",t.style.top=-r+"px",t.style.overflow="hidden",a=!0}}function i(){if("undefined"!=typeof document&&a){var e=document.documentElement;e.style.width="",e.style.position="",e.style.top="",e.style.overflow="",window.scroll(0,r),a=!1}}e.exports={on:o,off:i,toggle:function(){a?i():o()}}}()});function sg(e){var t=e.color;return cr.createElement("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},cr.createElement("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===t?"#fff":t}))}var cg=["children","isOpen","onClose","className","contentClassName","scrollable"],fg=function(e){var t,n=e.children,r=e.isOpen,a=e.onClose,o=e.className,i=e.contentClassName,l=e.scrollable,u=void 0!==l&&l,s=my(e,cg);return lg.setAppElement("body"),cr.createElement(lg,Object.assign({className:gy("_D8SjB",o),overlayClassName:"_1yxCb",onAfterOpen:function(){ug.on()},onAfterClose:function(){ug.off()},onRequestClose:a,isOpen:r,shouldCloseOnOverlayClick:!0,shouldCloseOnEsc:!0},s),cr.createElement("div",{className:"_12LLh"},cr.createElement("button",{onClick:a,className:gy("_3YRro",by.closeButton),"data-testid":"modal-close-button"},cr.createElement(sg,null))),cr.createElement("div",{className:gy("_ocM9x",i,(t={},t._1GP2F=u,t))},n))},dg=p(function(e,t){var n;n=e=>(()=>{var t={"./node_modules/css-mediaquery/index.js":(e,t)=>{t.match=function(e,t){return l(e).some(function(e){var n=e.inverse,r="all"===e.type||t.type===e.type;if(r&&n||!r&&!n)return!1;var a=e.expressions.every(function(e){var n=e.feature,r=e.modifier,a=e.value,o=t[n];if(!o)return!1;switch(n){case"orientation":case"scan":return o.toLowerCase()===a.toLowerCase();case"width":case"height":case"device-width":case"device-height":a=c(a),o=c(o);break;case"resolution":a=s(a),o=s(o);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":a=u(a),o=u(o);break;case"grid":case"color":case"color-index":case"monochrome":a=parseInt(a,10)||1,o=parseInt(o,10)||0}switch(r){case"min":return o>=a;case"max":return o<=a;default:return o===a}});return a&&!n||!a&&n})},t.parse=l;var n=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,r=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,a=/^(?:(min|max)-)?(.+)/,o=/(em|rem|px|cm|mm|in|pt|pc)?$/,i=/(dpi|dpcm|dppx)?$/;function l(e){return e.split(",").map(function(e){var t=(e=e.trim()).match(n),o=t[1],i=t[2],l=t[3]||"",u={};return u.inverse=!!o&&"not"===o.toLowerCase(),u.type=i?i.toLowerCase():"all",l=l.match(/\([^\)]+\)/g)||[],u.expressions=l.map(function(e){var t=e.match(r),n=t[1].toLowerCase().match(a);return{modifier:n[1],feature:n[2],value:t[2]}}),u})}function u(e){var t,n=Number(e);return n||(n=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),n}function s(e){var t=parseFloat(e);switch(String(e).match(i)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function c(e){var t=parseFloat(e);switch(String(e).match(o)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},"./node_modules/hyphenate-style-name/index.js":(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});var r=/[A-Z]/g,a=/^ms-/,o={};function i(e){return"-"+e.toLowerCase()}const l=function(e){if(o.hasOwnProperty(e))return o[e];var t=e.replace(r,i);return o[e]=a.test(t)?"-"+t:t}},"./node_modules/matchmediaquery/index.js":(e,t,n)=>{var r=n("./node_modules/css-mediaquery/index.js").match,a="undefined"!=typeof window?window.matchMedia:null;function o(e,t,n){var o=this;if(a&&!n){var i=a.call(window,e);this.matches=i.matches,this.media=i.media,i.addListener(l)}else this.matches=r(e,t),this.media=e;function l(e){o.matches=e.matches,o.media=e.media}this.addListener=function(e){i&&i.addListener(e)},this.removeListener=function(e){i&&i.removeListener(e)},this.dispose=function(){i&&i.removeListener(l)}}e.exports=function(e,t,n){return new o(e,t,n)}},"./node_modules/object-assign/index.js":e=>{var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,l,u=a(e),s=1;s<arguments.length;s++){for(var c in i=Object(arguments[s]))n.call(i,c)&&(u[c]=i[c]);if(t){l=t(i);for(var f=0;f<l.length;f++)r.call(i,l[f])&&(u[l[f]]=i[l[f]])}}return u}},"./node_modules/prop-types/checkPropTypes.js":(e,t,n)=>{var r,a=n("./node_modules/prop-types/lib/ReactPropTypesSecret.js"),o={},i=n("./node_modules/prop-types/lib/has.js");function l(e,t,n,l,u){for(var s in e)if(i(e,s)){var c;try{if("function"!=typeof e[s]){var f=Error((l||"React class")+": "+n+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}c=e[s](t,s,l,n,null,a)}catch(e){c=e}if(!c||c instanceof Error||r((l||"React class")+": type specification of "+n+" `"+s+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof c+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),c instanceof Error&&!(c.message in o)){o[c.message]=!0;var d=u?u():"";r("Failed "+n+" type: "+c.message+(null!=d?d:""))}}}r=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}},l.resetWarningCache=function(){o={}},e.exports=l},"./node_modules/prop-types/factoryWithTypeCheckers.js":(e,t,n)=>{var r,a=n("./node_modules/react-is/index.js"),o=n("./node_modules/object-assign/index.js"),i=n("./node_modules/prop-types/lib/ReactPropTypesSecret.js"),l=n("./node_modules/prop-types/lib/has.js"),u=n("./node_modules/prop-types/checkPropTypes.js");function s(){return null}r=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}},e.exports=function(e,t){var n="function"==typeof Symbol&&Symbol.iterator,c={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:p(s),arrayOf:function(e){return p(function(t,n,r,a,o){if("function"!=typeof e)return new d("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var l=t[n];if(!Array.isArray(l))return new d("Invalid "+a+" `"+o+"` of type `"+g(l)+"` supplied to `"+r+"`, expected an array.");for(var u=0;u<l.length;u++){var s=e(l,u,r,a,o+"["+u+"]",i);if(s instanceof Error)return s}return null})},element:p(function(t,n,r,a,o){var i=t[n];return e(i)?null:new d("Invalid "+a+" `"+o+"` of type `"+g(i)+"` supplied to `"+r+"`, expected a single ReactElement.")}),elementType:p(function(e,t,n,r,o){var i=e[t];return a.isValidElementType(i)?null:new d("Invalid "+r+" `"+o+"` of type `"+g(i)+"` supplied to `"+n+"`, expected a single ReactElement type.")}),instanceOf:function(e){return p(function(t,n,r,a,o){var i;return t[n]instanceof e?null:new d("Invalid "+a+" `"+o+"` of type `"+((i=t[n]).constructor&&i.constructor.name?i.constructor.name:"<<anonymous>>")+"` supplied to `"+r+"`, expected instance of `"+(e.name||"<<anonymous>>")+"`.")})},node:p(function(e,t,n,r,a){return y(e[t])?null:new d("Invalid "+r+" `"+a+"` supplied to `"+n+"`, expected a ReactNode.")}),objectOf:function(e){return p(function(t,n,r,a,o){if("function"!=typeof e)return new d("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var u=t[n],s=g(u);if("object"!==s)return new d("Invalid "+a+" `"+o+"` of type `"+s+"` supplied to `"+r+"`, expected an object.");for(var c in u)if(l(u,c)){var f=e(u,c,r,a,o+"."+c,i);if(f instanceof Error)return f}return null})},oneOf:function(e){if(!Array.isArray(e))return r(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),s;function t(t,n,r,a,o){for(var i=t[n],l=0;l<e.length;l++)if(f(i,e[l]))return null;var u=JSON.stringify(e,function(e,t){return"symbol"===v(t)?String(t):t});return new d("Invalid "+a+" `"+o+"` of value `"+String(i)+"` supplied to `"+r+"`, expected one of "+u+".")}return p(t)},oneOfType:function(e){if(!Array.isArray(e))return r("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)return r("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+b(n)+" at index "+t+"."),s}return p(function(t,n,r,a,o){for(var u=[],s=0;s<e.length;s++){var c=(0,e[s])(t,n,r,a,o,i);if(null==c)return null;c.data&&l(c.data,"expectedType")&&u.push(c.data.expectedType)}return new d("Invalid "+a+" `"+o+"` supplied to `"+r+"`"+(u.length>0?", expected one of type ["+u.join(", ")+"]":"")+".")})},shape:function(e){return p(function(t,n,r,a,o){var l=t[n],u=g(l);if("object"!==u)return new d("Invalid "+a+" `"+o+"` of type `"+u+"` supplied to `"+r+"`, expected `object`.");for(var s in e){var c=e[s];if("function"!=typeof c)return h(r,a,o,s,v(c));var f=c(l,s,r,a,o+"."+s,i);if(f)return f}return null})},exact:function(e){return p(function(t,n,r,a,u){var s=t[n],c=g(s);if("object"!==c)return new d("Invalid "+a+" `"+u+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");var f=o({},t[n],e);for(var p in f){var m=e[p];if(l(e,p)&&"function"!=typeof m)return h(r,a,u,p,v(m));if(!m)return new d("Invalid "+a+" `"+u+"` key `"+p+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var y=m(s,p,r,a,u+"."+p,i);if(y)return y}return null})}};function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function p(e){var n={},a=0;function o(o,l,u,s,c,f,p){if(s=s||"<<anonymous>>",f=f||u,p!==i){if(t){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}if("undefined"!=typeof console){var h=s+":"+u;!n[h]&&a<3&&(r("You are manually calling a React.PropTypes validation function for the `"+f+"` prop on `"+s+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[h]=!0,a++)}}return null==l[u]?o?new d(null===l[u]?"The "+c+" `"+f+"` is marked as required in `"+s+"`, but its value is `null`.":"The "+c+" `"+f+"` is marked as required in `"+s+"`, but its value is `undefined`."):null:e(l,u,s,c,f)}var l=o.bind(null,!1);return l.isRequired=o.bind(null,!0),l}function m(e){return p(function(t,n,r,a,o,i){var l=t[n];return g(l)!==e?new d("Invalid "+a+" `"+o+"` of type `"+v(l)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null})}function h(e,t,n,r,a){return new d((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+a+"`.")}function y(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(y);if(null===t||e(t))return!0;var r=function(e){var t=e&&(n&&e[n]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(!r)return!1;var a,o=r.call(t);if(r!==t.entries){for(;!(a=o.next()).done;)if(!y(a.value))return!1}else for(;!(a=o.next()).done;){var i=a.value;if(i&&!y(i[1]))return!1}return!0;default:return!1}}function g(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function v(e){if(null==e)return""+e;var t=g(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function b(e){var t=v(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return d.prototype=Error.prototype,c.checkPropTypes=u,c.resetWarningCache=u.resetWarningCache,c.PropTypes=c,c}},"./node_modules/prop-types/index.js":(e,t,n)=>{var r=n("./node_modules/react-is/index.js");e.exports=n("./node_modules/prop-types/factoryWithTypeCheckers.js")(r.isElement,!0)},"./node_modules/prop-types/lib/ReactPropTypesSecret.js":e=>{e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},"./node_modules/prop-types/lib/has.js":e=>{e.exports=Function.call.bind(Object.prototype.hasOwnProperty)},"./node_modules/react-is/cjs/react-is.development.js":(e,t)=>{!function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case s:case c:case a:case i:case o:case d:return p;default:var y=p&&p.$$typeof;switch(y){case u:case f:case h:case m:case l:return y;default:return t}}case r:return t}}}var w=c,S=u,_=l,C=n,O=f,k=a,P=h,T=m,x=r,A=i,N=o,M=d,L=!1;function R(e){return E(e)===c}t.AsyncMode=s,t.ConcurrentMode=w,t.ContextConsumer=S,t.ContextProvider=_,t.Element=C,t.ForwardRef=O,t.Fragment=k,t.Lazy=P,t.Memo=T,t.Portal=x,t.Profiler=A,t.StrictMode=N,t.Suspense=M,t.isAsyncMode=function(e){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),R(e)||E(e)===s},t.isConcurrentMode=R,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return E(e)===f},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===h},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===r},t.isProfiler=function(e){return E(e)===i},t.isStrictMode=function(e){return E(e)===o},t.isSuspense=function(e){return E(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===c||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===g||e.$$typeof===v||e.$$typeof===b||e.$$typeof===y)},t.typeOf=E}()},"./node_modules/react-is/index.js":(e,t,n)=>{e.exports=n("./node_modules/react-is/cjs/react-is.development.js")},"./node_modules/shallow-equal/dist/index.esm.js":(e,t,n)=>{function r(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),a=n.length;if(r.length!==a)return!1;for(var o=0;o<a;o++){var i=n[o];if(e[i]!==t[i]||!Object.prototype.hasOwnProperty.call(t,i))return!1}return!0}function a(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}n.r(t),n.d(t,{shallowEqualArrays:()=>a,shallowEqualObjects:()=>r})},"./src/Component.ts":function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=a(n("./src/useMediaQuery.ts"));t.default=function(e){var t=e.children,n=e.device,a=e.onChange,i=r(e,["children","device","onChange"]),l=(0,o.default)(i,n,a);return"function"==typeof t?t(l):l?t:null}},"./src/Context.ts":(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var r=(0,n("react").createContext)(void 0);t.default=r},"./src/index.ts":function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Context=t.toQuery=t.useMediaQuery=t.default=void 0;var a=r(n("./src/useMediaQuery.ts"));t.useMediaQuery=a.default;var o=r(n("./src/Component.ts"));t.default=o.default;var i=r(n("./src/toQuery.ts"));t.toQuery=i.default;var l=r(n("./src/Context.ts"));t.Context=l.default},"./src/mediaQuery.ts":function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(n("./node_modules/prop-types/index.js")),l=i.default.oneOfType([i.default.string,i.default.number]),u={all:i.default.bool,grid:i.default.bool,aural:i.default.bool,braille:i.default.bool,handheld:i.default.bool,print:i.default.bool,projection:i.default.bool,screen:i.default.bool,tty:i.default.bool,tv:i.default.bool,embossed:i.default.bool},s={orientation:i.default.oneOf(["portrait","landscape"]),scan:i.default.oneOf(["progressive","interlace"]),aspectRatio:i.default.string,deviceAspectRatio:i.default.string,height:l,deviceHeight:l,width:l,deviceWidth:l,color:i.default.bool,colorIndex:i.default.bool,monochrome:i.default.bool,resolution:l,type:Object.keys(u)},c=a(s,["type"]),f=r({minAspectRatio:i.default.string,maxAspectRatio:i.default.string,minDeviceAspectRatio:i.default.string,maxDeviceAspectRatio:i.default.string,minHeight:l,maxHeight:l,minDeviceHeight:l,maxDeviceHeight:l,minWidth:l,maxWidth:l,minDeviceWidth:l,maxDeviceWidth:l,minColor:i.default.number,maxColor:i.default.number,minColorIndex:i.default.number,maxColorIndex:i.default.number,minMonochrome:i.default.number,maxMonochrome:i.default.number,minResolution:l,maxResolution:l},c),d=r(r({},u),f);t.default={all:d,types:u,matchers:s,features:f}},"./src/toQuery.ts":function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n("./node_modules/hyphenate-style-name/index.js")),o=r(n("./src/mediaQuery.ts"));t.default=function(e){var t=[];return Object.keys(o.default.all).forEach(function(n){var r=e[n];null!=r&&t.push(function(e,t){var n=(0,a.default)(e);return"number"==typeof t&&(t="".concat(t,"px")),!0===t?n:!1===t?"not ".concat(n):"(".concat(n,": ").concat(t,")")}(n,r))}),t.join(" and ")}},"./src/useMediaQuery.ts":function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("react"),o=r(n("./node_modules/matchmediaquery/index.js")),i=r(n("./node_modules/hyphenate-style-name/index.js")),l=n("./node_modules/shallow-equal/dist/index.esm.js"),u=r(n("./src/toQuery.ts")),s=r(n("./src/Context.ts")),c=function(e){if(e)return Object.keys(e).reduce(function(t,n){return t[(0,i.default)(n)]=e[n],t},{})},f=function(){var e=(0,a.useRef)(!1);return(0,a.useEffect)(function(){e.current=!0},[]),e.current};t.default=function(e,t,n){var r=function(e){var t=(0,a.useContext)(s.default),n=function(){return c(e)||c(t)},r=(0,a.useState)(n),o=r[0],i=r[1];return(0,a.useEffect)(function(){var e=n();(0,l.shallowEqualObjects)(o,e)||i(e)},[e,t]),o}(t),i=function(e){var t=function(){return function(e){return e.query||(0,u.default)(e)}(e)},n=(0,a.useState)(t),r=n[0],o=n[1];return(0,a.useEffect)(function(){var e=t();r!==e&&o(e)},[e]),r}(e);if(!i)throw new Error("Invalid or missing MediaQuery!");var d=function(e,t){var n=function(){return(0,o.default)(e,t||{},!!t)},r=(0,a.useState)(n),i=r[0],l=r[1],u=f();return(0,a.useEffect)(function(){if(u){var e=n();return l(e),function(){e&&e.dispose()}}},[e,t]),i}(i,r),p=function(e){var t=(0,a.useState)(e.matches),n=t[0],r=t[1];return(0,a.useEffect)(function(){var t=function(e){r(e.matches)};return e.addListener(t),r(e.matches),function(){e.removeListener(t)}},[e]),n}(d),m=f();return(0,a.useEffect)(function(){m&&n&&n(p)},[p]),(0,a.useEffect)(function(){return function(){d&&d.dispose()}},[]),p}},react:t=>{t.exports=e}},n={};function r(e){var a=n[e];if(void 0!==a)return a.exports;var o=n[e]={exports:{}};return t[e].call(o.exports,o,o.exports,r),o.exports}return r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r("./src/index.ts")})(),e.exports=n(cr)});function pg(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function mg(e){pg(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function hg(e){pg(1,arguments);var t=mg(e);return t.setHours(0,0,0,0),t}function yg(e,t){pg(2,arguments);var n=hg(e),r=hg(t);return n.getTime()===r.getTime()}function gg(e){return pg(1,arguments),1e3*e}var vg,bg,Eg,wg=function(e){var t=e.deferred_days,n=e.deferred_months,r=e.installments_count;return 1!==r||t||n?1===r&&t?cr.createElement(oi,{id:"payment-plan-strings.day-abbreviation",defaultMessage:"J{deferredDays}",values:{deferredDays:"+"+t}}):1===r&&n?cr.createElement(oi,{id:"payment-plan-strings.month-abbreviation",defaultMessage:"M{deferredMonths}",values:{deferredMonths:"+"+n}}):r+"x":cr.createElement(oi,{id:"payment-plan-strings.pay.now.button",defaultMessage:"Payer maintenant"})},Sg=function(e){var t;if(null!=(t=e.payment_plan)&&t.every(function(e){return 0===e.customer_fee&&0===e.customer_interest}))return cr.createElement(cr.Fragment,null," ",cr.createElement(oi,{id:"payment-plan-strings.no-fee",defaultMessage:"(sans frais)"}))},_g=function(e){var t=e.eligibilityPlans,n=e.currentPlanIndex,r=e.setCurrentPlanIndex;return cr.createElement("div",{className:gy("_1l2Oa",by.eligibilityOptions)},t.map(function(e,t){var a;return cr.createElement("button",{key:t,className:gy((a={},a[gy("_3rue7",by.activeOption)]=t===n,a)),onClick:function(){return r(t)}},cr.createElement("span",{className:"_2T78a"},wg(e)))}))},Cg=function(e){var t,n,r=e.installment,a=e.index;return cr.createElement("div",{className:"_z2Uiv","data-testid":"installment-"+a},cr.createElement("div",{className:"_2lJQy"},cr.createElement("div",{className:gy("_1Z9wr",(t={},t._2Nmkl=0===a,t))}),function(e){return pg(1,arguments),yg(e,Date.now())}(1e3*r.due_date)?cr.createElement(oi,{id:"installments.today",defaultMessage:"Aujourd'hui",tagName:"strong"}):cr.createElement(ii,{value:1e3*r.due_date,day:"numeric",month:"long",year:"numeric"})),cr.createElement("div",{className:gy((n={},n["_ezY-3"]=0===a,n))},cr.createElement(li,{value:r.total_amount/100,style:"currency",currency:"EUR"})))},Og=function(e){var t=e.currentPlan,n=t.installments_count>4;return cr.createElement(cr.Fragment,null,cr.createElement("div",{className:gy("_MPKjS",by.scheduleDetails),"data-testid":"modal-installments-element"},((null==t?void 0:t.payment_plan)||[]).map(function(e,t){return cr.createElement(Cg,{key:1e3*e.due_date,installment:e,index:t})}),n&&cr.createElement("div",{className:"_3a7er"},cr.createElement(oi,{id:"credit-features.information",defaultMessage:"Un crédit vous engage et doit être remboursé. Vérifiez vos capacités de remboursement avant de vous engager."}))))},kg=["color"],Pg=function(e){var t=e.color,n=void 0===t?"#FA5022":t,r=my(e,kg);return cr.createElement("svg",Object.assign({width:"50",height:"25",viewBox:"0 0 360 109",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),cr.createElement("path",{d:"M333.24 28.3462V38.4459C327.504 31.1018 319.176 26.5132 309.288 26.5132C290.208 26.5132 275.424 43.5497 275.424 64.5757C275.424 85.6018 290.208 102.638 309.288 102.638C319.872 102.638 328.668 97.3908 334.416 89.1241V100.817H352.668V28.3462H333.24ZM314.028 84.4876C303.42 84.4876 294.828 75.574 294.828 64.5757C294.828 53.5775 303.42 44.6639 314.028 44.6639C324.636 44.6639 333.228 53.5775 333.228 64.5757C333.228 75.574 324.636 84.4876 314.028 84.4876ZM109.5 8.23073H128.916V100.805H109.5V8.23073ZM151.248 59.7356C151.248 39.8117 163.5 26.5252 180.468 26.5252C191.004 26.5252 199.332 31.1976 204.348 39.1648C209.376 31.1976 217.692 26.5252 228.228 26.5252C245.196 26.5252 257.448 39.8117 257.448 59.7356V100.817H238.032V57.639C238.032 49.8635 232.872 44.7957 226.044 44.7957C219.216 44.7957 214.056 49.8755 214.056 57.639V100.817H194.64V57.639C194.64 49.8635 189.48 44.7957 182.652 44.7957C175.824 44.7957 170.664 49.8755 170.664 57.639V100.817H151.248V59.7356ZM74.34 29.101C69.744 11.9088 60.0241 6.40967 50.772 6.40967C41.5201 6.40967 31.8 11.9088 27.204 29.101L7.24805 100.829H26.916C30.12 88.8485 39.996 82.1753 50.772 82.1753C61.548 82.1753 71.424 88.8605 74.6281 100.829H94.3081L74.34 29.101ZM50.772 65.4623C44.508 65.4623 38.8321 67.8345 34.6441 71.6803L45.924 29.9397C47.0041 25.9501 48.6001 24.6802 50.784 24.6802C52.9681 24.6802 54.5641 25.9501 55.6441 29.9397L66.912 71.6803C62.724 67.8345 57.036 65.4623 50.772 65.4623Z",fill:n}))},Tg=function(){return cr.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"16",viewBox:"0 0 24 16"},cr.createElement("defs",null,cr.createElement("linearGradient",{id:"cardamex",x1:"10.914%",x2:"87.432%",y1:"86.279%",y2:"15.035%"},cr.createElement("stop",{offset:"0%",stopColor:"#3FA9F5"}),cr.createElement("stop",{offset:"100%",stopColor:"#0071BC"}))),cr.createElement("g",{fill:"none",fillRule:"evenodd"},cr.createElement("path",{fill:"url(#cardamex)",fillRule:"nonzero",d:"M22.559 16H1.379C.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.441 1.338z"}),cr.createElement("g",{fill:"#FFF"},cr.createElement("path",{d:"M10.115 8.711L8.889 6.044H7.295v3.852L5.517 6.044H4.17l-1.778 4.03h1.103l.368-.889h2.023l.368.89h2.084V7.11l1.349 2.963h.92l1.348-2.904v2.904h.98v-4.03H11.28l-1.165 2.667zm-5.272-.474H4.23l.613-1.422v.06l.613 1.362h-.613z"}),cr.createElement("path",{fillRule:"nonzero",d:"M19.372 7.94l.735-.77 1.042-1.185h-1.287L18.697 7.23l-1.164-1.245h-3.985v3.97h3.923l1.226-1.303 1.165 1.304h1.287L20.107 8.71l-.735-.77zM16.92 9.186h-2.33v-.77h2.268v-.77H14.59v-.712h2.33L18.084 8 16.92 9.185z"}))))},xg=function(){return cr.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"16",viewBox:"0 0 24 16"},cr.createElement("g",{fill:"none",fillRule:"nonzero"},cr.createElement("path",{fill:"#FCFCFC",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"})," ",cr.createElement("path",{fill:"#005098",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"}),cr.createElement("path",{fill:"#F6A500",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"}),cr.createElement("path",{fill:"#0A5296",d:"M23.937 3.23H0V1.316C0 .598.627 0 1.379 0H22.62C23.373 0 24 .598 24 1.316V3.23h-.063z"}),cr.createElement("path",{fill:"#F4A428",d:"M.063 13H24v1.8c0 .655-.625 1.2-1.375 1.2H1.375C.625 16 0 15.455 0 14.8V13h.063z"})))},Ag=function(){return cr.createElement("svg",{width:"24px",height:"16px",viewBox:"0 0 24 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},cr.createElement("g",{id:"Parcours-1C-B",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},cr.createElement("g",{id:"mobile-1C-Paiement-V1",transform:"translate(-269.000000, -313.000000)"},cr.createElement("g",{id:"mastercard",transform:"translate(269.000000, 313.000000)"},cr.createElement("rect",{id:"Rectangle",fill:"#FFFFFF",x:"0",y:"0",width:"24",height:"16",rx:"1"}),cr.createElement("g",{id:"Group-6",transform:"translate(4.000000, 3.000000)"},cr.createElement("circle",{id:"Oval-4-Copy",fill:"#EA001B",cx:"5.05263158",cy:"5.05263158",r:"5.05263158"}),cr.createElement("circle",{id:"Oval-4",fillOpacity:"0.25",fill:"#F79F1A",cx:"10.9473684",cy:"5.05263158",r:"5.05263158"}),cr.createElement("circle",{id:"Oval-4-Copy-2",fillOpacity:"0.9",fill:"#F79F1A",cx:"10.9473684",cy:"5.05263158",r:"5.05263158"}),cr.createElement("circle",{id:"Oval-4-Copy-3",fillOpacity:"0.3",fill:"#EA001B",cx:"5.05263158",cy:"5.05263158",r:"5.05263158"}))))))},Ng=function(){return cr.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"16",viewBox:"0 0 24 16"},cr.createElement("defs",null,cr.createElement("linearGradient",{id:"cardcb",x1:"5.842%",x2:"95.393%",y1:"81.753%",y2:"17.344%"},cr.createElement("stop",{offset:"0%",stopColor:"#39B54A"})," ",cr.createElement("stop",{offset:"100%",stopColor:"#0A5296"}))),cr.createElement("g",{fill:"none",fillRule:"nonzero"},cr.createElement("path",{fill:"url(#cardcb)",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"}),cr.createElement("g",{fill:"#FFF"},cr.createElement("path",{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"}))))},Mg={cardContainer:"_1N3yO"},Lg=function(e){var t=Array.from(new Set(e.cards));return cr.createElement("div",{"data-testid":"card-logos",className:gy(Mg.cardContainer,by.cardContainer)},t.map(function(e){return cr.createElement("div",{key:e,className:Mg.card,"data-testid":"card-logo-"+e},"cb"===e&&cr.createElement(Ng,null),"amex"===e&&cr.createElement(Tg,null),"mastercard"===e&&cr.createElement(Ag,null),"visa"===e&&cr.createElement(xg,null))}))},Rg=function(e){var t=e.isCurrentPlanP1X;return cr.createElement("div",{className:gy("_180ro",by.info),"data-testid":"modal-info-element"},cr.createElement("div",{className:"_1HqCO"},cr.createElement("div",{className:gy("_3B8wx",by.bullet)},"1"),cr.createElement("div",{className:by.infoMessage},cr.createElement(oi,t?{id:"eligibility-modal.p1x-bullet-1",defaultMessage:"Choisissez <strong>Alma - Payer maintenant</strong> au moment du paiement.",values:{strong:function(){return cr.createElement("strong",null,[].slice.call(arguments))}}}:{id:"eligibility-modal.bullet-1",defaultMessage:"Choisissez <strong>Alma</strong> au moment du paiement.",values:{strong:function(){return cr.createElement("strong",null,[].slice.call(arguments))}}}))),cr.createElement("div",{className:"_1HqCO"},cr.createElement("div",{className:gy("_3B8wx",by.bullet)},"2"),cr.createElement("div",{className:by.infoMessage},cr.createElement(oi,t?{id:"eligibility-modal.p1x-bullet-2",defaultMessage:"Renseignez les informations de votre <strong>carte bancaire.</strong>",values:{strong:function(){return cr.createElement("strong",null,[].slice.call(arguments))}}}:{id:"eligibility-modal.bullet-2",defaultMessage:"Laissez-vous guider et validez votre paiement en <strong>2 minutes.</strong>",values:{strong:function(){return cr.createElement("strong",null,[].slice.call(arguments))}}}))),cr.createElement("div",{className:"_1HqCO"},cr.createElement("div",{className:gy("_3B8wx",by.bullet)},"3"),cr.createElement("div",{className:by.infoMessage},cr.createElement(oi,t?{id:"eligibility-modal.p1x-bullet-3",defaultMessage:"<strong>La validation </strong> de votre paiement est instantanée !",values:{strong:function(){return cr.createElement("strong",null,[].slice.call(arguments))}}}:{id:"eligibility-modal.bullet-3",defaultMessage:"<strong>Gardez le contrôle</strong> en avançant ou reculant vos échéances à votre rythme.",values:{strong:function(){return cr.createElement("strong",null,[].slice.call(arguments))}}}))))},Ig=function(e){var t=e.isSomePlanDeferred,n=e.isCurrentPlanP1X;return cr.createElement("div",{className:gy("_3ERx-",by.title),"data-testid":"modal-title-element"},cr.createElement(oi,t?{id:"eligibility-modal.title-deferred-plan",defaultMessage:"Payez en plusieurs fois ou plus tard par carte bancaire avec Alma."}:n?{id:"eligibility-modal.title-pay-now",defaultMessage:"Payez comptant par carte bancaire avec Alma."}:{id:"eligibility-modal.title-normal",defaultMessage:"Payez en plusieurs fois par carte bancaire avec Alma."}))},Dg=function(e){var t=e.children,n=e.isSomePlanDeferred,r=e.cards,a=e.isCurrentPlanP1X;return cr.createElement("div",{className:gy("_21g6u",by.desktopModal),"data-testid":"modal-container"},cr.createElement("aside",{className:gy(["_3zaP5","_2SBRC",by.leftSide])},cr.createElement(Ig,{isSomePlanDeferred:n,isCurrentPlanP1X:a}),cr.createElement(Rg,{isCurrentPlanP1X:a}),r&&cr.createElement(Lg,{cards:r}),cr.createElement(Pg,{className:"_xW3wt",width:"75"})),cr.createElement("div",{className:gy("_3zaP5",by.rightSide)},t))},Fg=function(e){var t=e.children,n=e.isSomePlanDeferred,r=e.cards,a=e.isCurrentPlanP1X;return cr.createElement("div",{className:gy("_2G7Ch",by.mobileModal),"data-testid":"modal-container"},cr.createElement(Ig,{isSomePlanDeferred:n,isCurrentPlanP1X:a}),t,cr.createElement(Rg,{isCurrentPlanP1X:a}),r&&cr.createElement(Lg,{cards:r}),cr.createElement(Pg,{className:"_2779r",width:"75"}))},jg=function(e){var t=e.onClose,n=e.eligibilityPlans,r=e.status,a=e.cards,o=cr.useState(e.initialPlanIndex||0),i=o[0],l=o[1],u=dg.useMediaQuery({minWidth:800})?Dg:Fg,s=n.filter(function(e){return e.eligible}),c=s[i],f=n.some(function(e){return e.deferred_days>0||e.deferred_months>0});return cr.createElement(fg,{onClose:t,ariaHideApp:!1,scrollable:!0,isOpen:!0},cr.createElement(u,{isSomePlanDeferred:f,cards:a,isCurrentPlanP1X:rr(c)},r===Yn.PENDING&&cr.createElement("div",{className:"_2oTJq"},cr.createElement(wy,null)),r===Yn.SUCCESS&&0===s.length&&cr.createElement("div",{className:"_17qNJ"},cr.createElement(oi,{id:"eligibility-modal.no-eligibility",defaultMessage:"Oups, il semblerait que la simulation n'ait pas fonctionné."})),r===Yn.SUCCESS&&s.length>=1&&cr.createElement(cr.Fragment,null,cr.createElement(_g,{eligibilityPlans:s,currentPlanIndex:i,setCurrentPlanIndex:l}),cr.createElement("div",{className:"_2u9rj"},cr.createElement("div",{className:"_VRdAU"}),cr.createElement(Og,{currentPlan:c}),cr.createElement(Ey,{currentPlan:c})))))},Hg=function(e){var t=e.onClose,n=e.cards,r=yy(e.purchaseAmount,e.apiData,e.configPlans,e.customerBillingCountry,e.customerShippingCountry);return cr.createElement(jg,{initialPlanIndex:0,onClose:t,eligibilityPlans:r[0],status:r[1],cards:n})},Bg=function(e){return cr.createElement("div",{className:gy("_2SwwZ",e.className),"data-testid":"loader"},cr.createElement("div",{className:"_2qODo"}),cr.createElement("div",{className:"_2YO01"}))},Ug="alma-payment-plans",zg={container:Ug+"-container",eligibilityLine:Ug+"-eligibility-line",eligibilityOptions:Ug+"-eligibility-options",notEligibleOption:Ug+"-not-eligible-option",paymentInfo:Ug+"-payment-info",activeOption:Ug+"-active-option"},Gg=function(e){var t,n,r,a,o=e.hideIfNotEligible,i=e.monochrome,l=e.suggestedPaymentPlan,u=e.cards,s=e.transitionDelay,c=e.hideBorder,f=void 0!==c&&c,d=e.onModalClose,p=yy(e.purchaseAmount,e.apiData,e.configPlans,e.customerBillingCountry,e.customerShippingCountry),m=p[0],h=p[1],y=m.filter(function(e){return e.eligible}),g=function(e){var t=e.suggestedPaymentPlan,n=e.eligibilityPlans,r=Array.isArray(t)?t:[t],a=function(e){var t=r[e],a=n.findIndex(function(e){return e.installments_count===t&&e.eligible&&!e.deferred_days&&!e.deferred_months});if(-1!==a)return{v:a}};for(var o in r){var i=a(o);if("object"==typeof i)return i.v}return 0}({eligibilityPlans:m,suggestedPaymentPlan:null!=l?l:0}),v=void 0!==l,b=void 0!==s,E=cr.useState(!1),w=E[0],S=E[1],_=m.reduce(function(e,t,n){return t.eligible?[].concat(e,[n]):e},[]),C=function(e,t){var n=cr.useState(0),r=n[0],a=n[1],o=cr.useState(!0),i=o[0],l=o[1];return cr.useEffect(function(){var n,o=!0;if(-1!==t)return 0!==e.length&&(!e.includes(r)&&i&&a(e[0]),n=setTimeout(function(){i&&o&&a(e[e.includes(r)?(e.indexOf(r)+1)%e.length:0])},t)),function(){o=!1,clearTimeout(n)}},[e,r]),{current:r,onHover:function(e){a(e),l(!1)},onLeave:function(){l(!0)}}}(_,b?null!=s?s:5500:v?36e5:5500),O=C.current,k=C.onHover,P=C.onLeave;return cr.useEffect(function(){h===Yn.SUCCESS&&v&&(k(g),P())},[h]),h===Yn.PENDING?cr.createElement("div",{className:gy("_TSkFv","_1ZDMS")},cr.createElement(Bg,null)):o&&0===y.length||0===m.length||h===Yn.FAILED?null:cr.createElement(cr.Fragment,null,cr.createElement("div",{onClick:function(e){e.preventDefault(),y.length>0&&S(!0)},className:gy("_TSkFv",(t={},t._UksZa=y.length>0,t["_1lr-q"]=0===y.length,t._3_qcn=f,t),zg.container),"data-testid":"widget-button"},cr.createElement("div",{className:gy("_bMClc",zg.eligibilityLine)},cr.createElement(Pg,{className:"_LJ4nZ",color:i?"var(--off-black)":void 0}),cr.createElement("div",{className:gy("_17c_S",zg.eligibilityOptions)},m.map(function(e,t){var n,r=t===O;return cr.createElement("div",{key:t,onMouseEnter:function(){return k(t)},onTouchStart:function(){return k(t)},onMouseOut:P,onTouchEnd:P,className:gy("_2Kqjn",(n={},n[gy("_3dG_J",zg.activeOption)]=r,n._2hx83=i&&r,n[gy("_3O1bg",zg.notEligibleOption)]=!e.eligible,n))},wg(e))}))),cr.createElement("div",{className:gy("_25GrF",(n={},n[gy("_3O1bg",zg.notEligibleOption)]=m[O]&&!m[O].eligible,n),zg.paymentInfo)},0!==m.length&&function(e){var t=e.installments_count,n=e.minAmount,r=void 0===n?0:n,a=e.maxAmount,o=void 0===a?0:a,i=e.payment_plan,l=e.deferred_days+30*e.deferred_months;if(!e.eligible)return cr.createElement(oi,e.purchase_amount>o?{id:"payment-plan-strings.ineligible-greater-than-max",defaultMessage:"Jusqu'à {maxAmount}",values:{maxAmount:cr.createElement(li,{value:tr(o),style:"currency",currency:"EUR"})}}:{id:"payment-plan-strings.ineligible-lower-than-min",defaultMessage:"À partir de {minAmount}",values:{minAmount:cr.createElement(li,{value:tr(r),style:"currency",currency:"EUR"})}});if(!i)throw Error("No payment plan provided for payment in "+t+" installments. Please contact us if you see this error.");if(0!==l&&1===t)return cr.createElement(cr.Fragment,null,cr.createElement(oi,{id:"payment-plan-strings.deferred",defaultMessage:"{totalAmount} à payer le {dueDate}",values:{totalAmount:cr.createElement(li,{value:tr(i[0].total_amount),style:"currency",currency:"EUR"}),dueDate:cr.createElement(ii,{value:gg(i[0].due_date),day:"numeric",month:"long",year:"numeric"})}}),Sg(e));if(t>0){var u=null==i?void 0:i.every(function(e,t){return 0===t||e.total_amount===i[0].total_amount});return rr(e)?cr.createElement(cr.Fragment,null,cr.createElement(oi,{id:"payment-plan-strings.pay-now",defaultMessage:"Payer maintenant {totalAmount}",values:{totalAmount:cr.createElement(li,{value:tr(i[0].total_amount),style:"currency",currency:"EUR"}),installmentsCount:t}}),Sg(e)):cr.createElement(cr.Fragment,null,cr.createElement(oi,u?{id:"payment-plan-strings.multiple-installments-same-amount",defaultMessage:"{installmentsCount} x {totalAmount}",values:{totalAmount:cr.createElement(li,{value:tr(i[0].total_amount),style:"currency",currency:"EUR"}),installmentsCount:t}}:{id:"payment-plan-strings.multiple-installments",defaultMessage:"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}}}",values:{firstInstallmentAmount:cr.createElement(li,{value:tr(i[0].total_amount),style:"currency",currency:"EUR"}),numberOfRemainingInstallments:t-1,othersInstallmentAmount:cr.createElement(li,{value:tr(i[1].total_amount),style:"currency",currency:"EUR"})}}),Sg(e))}return cr.createElement(oi,{id:"payment-plan-strings.default-message",defaultMessage:"Payez en plusieurs fois avec Alma"})}(m[O]))),w&&cr.createElement(jg,{initialPlanIndex:(r=O,a=_.findIndex(function(e){return e===r}),-1===a?0:a),onClose:function(e){S(!1),d&&d(e)},eligibilityPlans:y,status:h,cards:u}))},Vg=function(){function e(e){this.apiData=e}return e.prototype.add=function(e,t){var n=this,r=document.querySelector(t.container);if(r&&dy.unmountComponentAtNode(r),e===Zn.PaymentPlans){var a=t.container,o=t.hideBorder,i=t.monochrome,l=t.locale;r&&dy.render(cr.createElement(yi,{locale:void 0===l?Jn.en:l},cr.createElement(Gg,{apiData:this.apiData,configPlans:t.plans,hideIfNotEligible:t.hideIfNotEligible,monochrome:void 0===i||i,purchaseAmount:t.purchaseAmount,suggestedPaymentPlan:t.suggestedPaymentPlan,cards:t.cards,customerBillingCountry:t.customerBillingCountry,customerShippingCountry:t.customerShippingCountry,transitionDelay:t.transitionDelay,hideBorder:void 0!==o&&o,onModalClose:t.onModalClose})),document.querySelector(a))}if(e===Zn.Modal){var u,s=t.container,c=t.clickableSelector,f=t.purchaseAmount,d=t.plans,p=t.locale,m=void 0===p?Jn.en:p,h=t.customerBillingCountry,y=t.customerShippingCountry,g=t.cards,v=t.onClose,b=function(e){r&&(dy.unmountComponentAtNode(r),v&&v(e))},E=function(){dy.render(cr.createElement(yi,{locale:m},cr.createElement(Hg,{purchaseAmount:f,apiData:n.apiData,configPlans:d,customerBillingCountry:h,customerShippingCountry:y,onClose:b,cards:g})),document.querySelector(s))};return c&&(null==(u=document.querySelector(c))||u.addEventListener("click",E,!1)),{open:E,close:b}}},e}();(vg=e.ApiMode||(e.ApiMode={})).LIVE="https://api.getalma.eu",vg.TEST="https://api.sandbox.getalma.eu",(bg=e.Widgets||(e.Widgets={})).initialize=function(e,t){return new Vg({domain:t,merchantId:e})},bg.PaymentPlans=Zn.PaymentPlans,bg.Modal=Zn.Modal,(Eg=e.Utils||(e.Utils={})).priceToCents=function(e){return Math.round(100*e)},Eg.priceFromCents=tr,Eg.formatCents=function(e){return String(tr(e)).replace(".",",")}});
|
|
2
2
|
//# sourceMappingURL=widgets.umd.js.map
|