@everymatrix/general-player-register-form-step2 0.0.211 → 0.0.215

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.
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function pe(){}function u(e){return e()}function p(){return Object.create(null)}function he(e){e.forEach(u)}function h(e){return"function"==typeof e}function t(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function fe(e,t){e.appendChild(t)}function ge(e,t,n){e.insertBefore(t,n||null)}function me(e){e.parentNode.removeChild(e)}function be(t,n){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}function ve(e){return document.createElement(e)}function xe(e){return document.createTextNode(e)}function Ce(){return xe(" ")}function we(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function ye(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Be(e,t){e.value=null==t?"":t}function De(t,n){for(let e=0;e<t.options.length;e+=1){const r=t.options[e];if(r.__value===n)return r.selected=!0,0}}function $(e){e=e.querySelector(":checked")||e.options[0];return e&&e.__value}let _;function f(e){_=e}const g=[],e=[],r=[],i=[],m=Promise.resolve();let b=!1;function $e(e){r.push(e)}let a=!1;const o=new Set;function v(){if(!a){a=!0;do{for(let e=0;e<g.length;e+=1){var t=g[e];f(t),function(e){{var t;null!==e.fragment&&(e.update(),he(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach($e))}}(t.$$)}for(f(null),g.length=0;e.length;)e.pop()();for(let e=0;e<r.length;e+=1){const n=r[e];o.has(n)||(o.add(n),n())}}while(r.length=0,g.length);for(;i.length;)i.pop()();b=!1,a=!1,o.clear()}}const x=new Set;function n(r,e,t,n,i,a,o=[-1]){var l,s=_;f(r);const c=r.$$={fragment:null,ctx:null,props:a,update:pe,not_equal:i,bound:p(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s?s.$$.context:e.context||[]),callbacks:p(),dirty:o,skip_bound:!1};let d=!1;if(c.ctx=t?t(r,e.props||{},(e,t,...n)=>{n=n.length?n[0]:t;return c.ctx&&i(c.ctx[e],c.ctx[e]=n)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](n),d&&(n=e,-1===(e=r).$$.dirty[0]&&(g.push(e),b||(b=!0,m.then(v)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31)),t}):[],c.update(),d=!0,he(c.before_update),c.fragment=!!n&&n(c.ctx),e.target){if(e.hydrate){const pe=(n=e.target,Array.from(n.childNodes));c.fragment&&c.fragment.l(pe),pe.forEach(me)}else c.fragment&&c.fragment.c();e.intro&&(l=r.$$.fragment)&&l.i&&(x.delete(l),l.i(void 0)),function(t,e,n,r){const{fragment:i,on_mount:a,on_destroy:o,after_update:l}=t.$$;i&&i.m(e,n),r||$e(()=>{var e=a.map(u).filter(h);o?o.push(...e):he(e),t.$$.on_mount=[]}),l.forEach($e)}(r,e.target,e.anchor,e.customElement),v()}f(s)}let l;function _e(e,t,n){const r=e.slice();return r[37]=t[n],r}function Fe(e,t,n){const r=e.slice();return r[40]=t[n],r}function Se(e,t,n){const r=e.slice();return r[43]=t[n],r}function ke(e,t,n){const r=e.slice();return r[46]=t[n],r}function Te(e,t,n){const r=e.slice();return r[49]=t[n],r}function Me(e){let n,r,t=e[49]+"";return{c(){n=ve("option"),r=xe(t),n.__value=e[49],n.value=n.__value},m(e,t){ge(e,n,t),fe(n,r)},p:pe,d(e){e&&me(n)}}}function Ne(){let n;return{c(){n=ve("p"),n.textContent="First name must be at least 2 characters long and contain no special characters.",ye(n,"class","InvalidInput")},m(e,t){ge(e,n,t)},d(e){e&&me(n)}}}function Le(){let n;return{c(){n=ve("p"),n.textContent="Last name must be at least 2 characters long and contain no special characters.",ye(n,"class","InvalidInput")},m(e,t){ge(e,n,t)},d(e){e&&me(n)}}}function ze(e){let n,r,t=e[46]+"";return{c(){n=ve("option"),r=xe(t),n.__value=e[46],n.value=n.__value},m(e,t){ge(e,n,t),fe(n,r)},p:pe,d(e){e&&me(n)}}}function Oe(e){let n,r,t=e[43]+"";return{c(){n=ve("option"),r=xe(t),n.__value=e[43],n.value=n.__value},m(e,t){ge(e,n,t),fe(n,r)},p:pe,d(e){e&&me(n)}}}function Ee(e){let n,r,t=e[40]+"";return{c(){n=ve("option"),r=xe(t),n.__value=e[40],n.value=n.__value},m(e,t){ge(e,n,t),fe(n,r)},p:pe,d(e){e&&me(n)}}}function Ie(){let n;return{c(){n=ve("p"),n.textContent="Birth place must be at least 1 character long.",ye(n,"class","InvalidInput")},m(e,t){ge(e,n,t)},d(e){e&&me(n)}}}function Re(e){let i,a,o,l=e[37]+"";return{c(){i=ve("option"),a=xe(l),i.__value=o=e[37],i.value=i.__value},m(e,t){ge(e,i,t),fe(i,a)},p(e,t){var n,r;1024&t[0]&&l!==(l=e[37]+"")&&(n=a,r=l,n.wholeText!==(r=""+r)&&(n.data=r)),1024&t[0]&&o!==(o=e[37])&&(i.__value=o,i.value=i.__value)},d(e){e&&me(i)}}}function s(n){let r,i,a,o,l,s,c,d,u,p,h,f,g,m,b,e,v,x,C,w,y,B,D,$,_,F,S,k,T,M,N,L,z,O,E,I,R,H,P,U,A,q,Y,j,Z,G,J,K,Q,V,W,X=n[13],ee=[];for(let e=0;e<X.length;e+=1)ee[e]=Me(Te(n,X,e));let te=n[0]&&Ne(),ne=n[1]&&Le(),re=n[14],ie=[];for(let e=0;e<re.length;e+=1)ie[e]=ze(ke(n,re,e));let ae=n[15],oe=[];for(let e=0;e<ae.length;e+=1)oe[e]=Oe(Se(n,ae,e));let le=n[16],se=[];for(let e=0;e<le.length;e+=1)se[e]=Ee(Fe(n,le,e));let ce=n[2]&&Ie(),de=n[10],ue=[];for(let e=0;e<de.length;e+=1)ue[e]=Re(_e(n,de,e));return{c(){r=ve("div"),i=ve("button"),i.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.a{fill:#d0046c;}</style></defs><path class="a" d="M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z" transform="translate(24 24) rotate(180)"></path></svg>\n Back',a=Ce(),o=ve("div"),l=ve("div"),s=ve("label"),s.innerHTML='Title:<span class="FormRequired">*</span>',c=Ce(),d=ve("select");for(let e=0;e<ee.length;e+=1)ee[e].c();u=xe("}"),p=Ce(),h=ve("div"),f=ve("label"),f.innerHTML='First Name:<span class="FormRequired">*</span>',g=Ce(),m=ve("input"),b=Ce(),te&&te.c(),v=Ce(),x=ve("div"),C=ve("label"),C.innerHTML='Last Name:<span class="FormRequired">*</span>',w=Ce(),y=ve("input"),B=Ce(),ne&&ne.c(),$=Ce(),_=ve("div"),F=ve("label"),F.innerHTML='Date of Birth:<span class="FormRequired">*</span>',S=Ce(),k=ve("div"),T=ve("select");for(let e=0;e<ie.length;e+=1)ie[e].c();M=Ce(),N=ve("select");for(let e=0;e<oe.length;e+=1)oe[e].c();L=Ce(),z=ve("select");for(let e=0;e<se.length;e+=1)se[e].c();O=Ce(),E=ve("div"),I=ve("label"),I.innerHTML='Birth Place:<span class="FormRequired">*</span>',R=Ce(),H=ve("input"),P=Ce(),ce&&ce.c(),A=Ce(),q=ve("div"),Y=ve("label"),Y.innerHTML='Currency:<span class="FormRequired">*</span>',j=Ce(),Z=ve("select");for(let e=0;e<ue.length;e+=1)ue[e].c();G=Ce(),J=ve("button"),K=xe("Next"),this.c=pe,ye(i,"class","BackButton"),ye(r,"class","RegisterFormHeader"),ye(s,"for","Title"),ye(d,"id","Title"),void 0===n[3]&&$e(()=>n[23].call(d)),ye(l,"class","UserTitleContainer"),ye(f,"for","FirstName"),ye(m,"type","text"),ye(m,"id","FirstName"),ye(h,"class",e="FirstNameContainer "+(n[0]?"InvalidField":"")),ye(C,"for","LastName"),ye(y,"type","text"),ye(y,"id","LastName"),ye(x,"class",D="LastNameContainer "+(n[1]?"InvalidField":"")),ye(F,"for","BirthDate"),ye(T,"class","BirthDaySelected"),void 0===n[6]&&$e(()=>n[26].call(T)),ye(N,"class","BirthMonthSelected"),void 0===n[7]&&$e(()=>n[27].call(N)),ye(z,"class","BirthYearSelected"),void 0===n[8]&&$e(()=>n[28].call(z)),ye(k,"class","BirthDateOptions"),ye(_,"class","BirthDateContainer"),ye(I,"for","BirthPlace"),ye(H,"type","text"),ye(H,"id","BirthPlace"),ye(E,"class",U="BirthPlaceContainer "+(n[2]?"InvalidField":"")),ye(Y,"for","Currency"),ye(Z,"id","Currency"),void 0===n[11]&&$e(()=>n[30].call(Z)),ye(q,"class","CurrencyContainer"),ye(o,"class","RegisterFormContent"),ye(J,"class","RegisterStepNext"),J.disabled=Q=!n[12]},m(e,t){ge(e,r,t),fe(r,i),ge(e,a,t),ge(e,o,t),fe(o,l),fe(l,s),fe(l,c),fe(l,d);for(let e=0;e<ee.length;e+=1)ee[e].m(d,null);fe(d,u),De(d,n[3]),fe(o,p),fe(o,h),fe(h,f),fe(h,g),fe(h,m),Be(m,n[4]),fe(h,b),te&&te.m(h,null),fe(o,v),fe(o,x),fe(x,C),fe(x,w),fe(x,y),Be(y,n[5]),fe(x,B),ne&&ne.m(x,null),fe(o,$),fe(o,_),fe(_,F),fe(_,S),fe(_,k),fe(k,T);for(let e=0;e<ie.length;e+=1)ie[e].m(T,null);De(T,n[6]),fe(k,M),fe(k,N);for(let e=0;e<oe.length;e+=1)oe[e].m(N,null);De(N,n[7]),fe(k,L),fe(k,z);for(let e=0;e<se.length;e+=1)se[e].m(z,null);De(z,n[8]),fe(o,O),fe(o,E),fe(E,I),fe(E,R),fe(E,H),Be(H,n[9]),fe(E,P),ce&&ce.m(E,null),fe(o,A),fe(o,q),fe(q,Y),fe(q,j),fe(q,Z);for(let e=0;e<ue.length;e+=1)ue[e].m(Z,null);De(Z,n[11]),ge(e,G,t),ge(e,J,t),fe(J,K),V||(W=[we(i,"click",n[21]),we(d,"change",n[23]),we(m,"input",n[24]),we(m,"blur",n[17]),we(y,"input",n[25]),we(y,"blur",n[18]),we(T,"change",n[26]),we(N,"change",n[27]),we(z,"change",n[28]),we(H,"input",n[29]),we(H,"keyup",n[19]),we(Z,"change",n[30]),we(J,"click",n[20])],V=!0)},p(t,n){if(8192&n[0]){let e;for(X=t[13],e=0;e<X.length;e+=1){var r=Te(t,X,e);ee[e]?ee[e].p(r,n):(ee[e]=Me(r),ee[e].c(),ee[e].m(d,u))}for(;e<ee.length;e+=1)ee[e].d(1);ee.length=X.length}if(8200&n[0]&&De(d,t[3]),16&n[0]&&m.value!==t[4]&&Be(m,t[4]),t[0]?te||(te=Ne(),te.c(),te.m(h,null)):te&&(te.d(1),te=null),1&n[0]&&e!==(e="FirstNameContainer "+(t[0]?"InvalidField":""))&&ye(h,"class",e),32&n[0]&&y.value!==t[5]&&Be(y,t[5]),t[1]?ne||(ne=Le(),ne.c(),ne.m(x,null)):ne&&(ne.d(1),ne=null),2&n[0]&&D!==(D="LastNameContainer "+(t[1]?"InvalidField":""))&&ye(x,"class",D),16384&n[0]){let e;for(re=t[14],e=0;e<re.length;e+=1){var i=ke(t,re,e);ie[e]?ie[e].p(i,n):(ie[e]=ze(i),ie[e].c(),ie[e].m(T,null))}for(;e<ie.length;e+=1)ie[e].d(1);ie.length=re.length}if(16448&n[0]&&De(T,t[6]),32768&n[0]){let e;for(ae=t[15],e=0;e<ae.length;e+=1){var a=Se(t,ae,e);oe[e]?oe[e].p(a,n):(oe[e]=Oe(a),oe[e].c(),oe[e].m(N,null))}for(;e<oe.length;e+=1)oe[e].d(1);oe.length=ae.length}if(32896&n[0]&&De(N,t[7]),65536&n[0]){let e;for(le=t[16],e=0;e<le.length;e+=1){var o=Fe(t,le,e);se[e]?se[e].p(o,n):(se[e]=Ee(o),se[e].c(),se[e].m(z,null))}for(;e<se.length;e+=1)se[e].d(1);se.length=le.length}if(65792&n[0]&&De(z,t[8]),512&n[0]&&H.value!==t[9]&&Be(H,t[9]),t[2]?ce||(ce=Ie(),ce.c(),ce.m(E,null)):ce&&(ce.d(1),ce=null),4&n[0]&&U!==(U="BirthPlaceContainer "+(t[2]?"InvalidField":""))&&ye(E,"class",U),1024&n[0]){let e;for(de=t[10],e=0;e<de.length;e+=1){var l=_e(t,de,e);ue[e]?ue[e].p(l,n):(ue[e]=Re(l),ue[e].c(),ue[e].m(Z,null))}for(;e<ue.length;e+=1)ue[e].d(1);ue.length=de.length}3072&n[0]&&De(Z,t[11]),4096&n[0]&&Q!==(Q=!t[12])&&(J.disabled=Q)},i:pe,o:pe,d(e){e&&me(r),e&&me(a),e&&me(o),be(ee,e),te&&te.d(),ne&&ne.d(),be(ie,e),be(oe,e),be(se,e),ce&&ce.d(),be(ue,e),e&&me(G),e&&me(J),V=!1,he(W)}}}function c(e,t,n){let{endpoint:r=""}=t,i=!1,a=!1,o=!1,l=["Mr.","Mrs.","Ms."],s=l[0],c="",d="",u=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31],p=u[0],h=[1,2,3,4,5,6,7,8,9,10,11,12],f=h[0],g=[1999,1998,1997,1996,1995,1994,1993,1992,1991,1990,1989,1988,1987,1986,1985,1984,1983,1982,1981,1980,1979],m=g[0],b="",v=[],x="",C=!1;const w=()=>{n(12,C=!(i||a||o)),(c.length<=0||d.length<=0||b.length<=0)&&n(12,C=!1)},y={user:/^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){2})^[a-zA-Z\d]*$/},B=e=>!!y.user.test(e),D=e=>{e.data&&"StepTwoDataBackup"===e.data.type&&(n(3,s=e.data.userData.title),n(4,c=e.data.userData.firstname),n(5,d=e.data.userData.lastname),n(6,p=e.data.userData.birth.day),n(7,f=e.data.userData.birth.month),n(8,m=e.data.userData.birth.year),n(9,b=e.data.userData.birthPlace),n(11,x=e.data.userData.currency),w())};return t=()=>(window.addEventListener("message",D,!1),()=>{window.removeEventListener("message",D)}),function(){if(!_)throw new Error("Function called outside component initialization");return _}().$$.on_mount.push(t),e.$$set=e=>{"endpoint"in e&&n(22,r=e.endpoint)},e.$$.update=()=>{4194304&e.$$.dirty[0]&&r&&fetch(`${r}/player/operatorSupportedCurrencies`).then(e=>e.json()).then(e=>{n(10,v=e.currencies),x||n(11,x=v[0])})},[i,a,o,s,c,d,p,f,m,b,v,x,C,l,u,h,g,()=>{n(0,i=!B(c)),w()},()=>{n(1,a=!B(d)),w()},()=>{n(2,o=!b),w()},()=>{var e={userTitleSelected:s,userFirstName:c,userLastName:d,birthDaySelected:p,birthMonthSelected:f,birthYearSelected:m,birthPlace:b,currencySelected:x};window.postMessage({type:"RegisterStepTwo",registerStepTwoData:e},window.location.href)},()=>{var e={userTitleSelected:s,userFirstName:c,userLastName:d,birthDaySelected:p,birthMonthSelected:f,birthYearSelected:m,birthPlace:b,currencySelected:x};window.postMessage({type:"GoBackStepTwo",registerStepTwoData:e},window.location.href)},r,function(){s=$(this),n(3,s),n(13,l)},function(){c=this.value,n(4,c)},function(){d=this.value,n(5,d)},function(){p=$(this),n(6,p),n(14,u)},function(){f=$(this),n(7,f),n(15,h)},function(){m=$(this),n(8,m),n(16,g)},function(){b=this.value,n(9,b)},function(){x=$(this),n(11,x),n(10,v)}]}"function"==typeof HTMLElement&&(l=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(u).filter(h);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){he(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(he(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=pe}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});class d extends l{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}.BackButton{display:inline-flex;color:#07072A;height:24px;line-height:24px;border-radius:5px;border:none;background:transparent;padding:0;text-transform:uppercase;font-size:32px;cursor:pointer;margin-bottom:30px}.BackButton svg{width:24px;height:24px;margin-right:20px;fill:#D0046C}.UserTitleContainer label,.CurrencyContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.UserTitleContainer select,.CurrencyContainer select{width:100%;height:44px;border:1px solid #D1D1D1;border-radius:5px;padding:5px;font-size:14px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat #FFF;background-position:calc(100% - 0.75rem) center}.UserTitleContainer select:focus,.UserTitleContainer select :focus-within,.UserTitleContainer select :focus-visible,.UserTitleContainer select :visited,.CurrencyContainer select:focus,.CurrencyContainer select :focus-within,.CurrencyContainer select :focus-visible,.CurrencyContainer select :visited{border:1px solid #D0046C;box-shadow:0 0 0 1pt #D0046C}.UserTitleContainer,.FirstNameContainer,.LastNameContainer,.BirthDateContainer,.BirthPlaceContainer,.CurrencyContainer{color:#58586B;display:flex;flex-direction:column;padding-bottom:30px;position:relative}.UserTitleContainer label,.FirstNameContainer label,.LastNameContainer label,.BirthDateContainer label,.BirthPlaceContainer label,.CurrencyContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.UserTitleContainer select,.FirstNameContainer input,.LastNameContainer input,.BirthDateContainer select,.BirthPlaceContainer input,.CurrencyContainer select{width:100%;height:44px;border:1px solid #D1D1D1;border-radius:5px;padding:5px;font-size:14px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.FirstNameContainer.InvalidField input,.LastNameContainer.InvalidField input,.BirthPlaceContainer.InvalidField input{border:1px solid #D0046C;background:#FBECF4;color:#D0046C}.BirthDateOptions{display:flex;gap:10px}.BirthDateOptions .BirthDaySelected{width:30%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat #FFF;background-position:calc(100% - 0.75rem) center}.BirthDateOptions .BirthDaySelected:focus,.BirthDateOptions .BirthDaySelected :focus-within,.BirthDateOptions .BirthDaySelected :focus-visible,.BirthDateOptions .BirthDaySelected :visited{border:1px solid #D0046C;box-shadow:0 0 0 1pt #D0046C}.BirthDateOptions .BirthMonthSelected{width:30%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat #FFF;background-position:calc(100% - 0.75rem) center}.BirthDateOptions .BirthMonthSelected:focus,.BirthDateOptions .BirthMonthSelected :focus-within,.BirthDateOptions .BirthMonthSelected :focus-visible,.BirthDateOptions .BirthMonthSelected :visited{border:1px solid #D0046C;box-shadow:0 0 0 1pt #D0046C}.BirthDateOptions .BirthYearSelected{width:40%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat #FFF;background-position:calc(100% - 0.75rem) center}.BirthDateOptions .BirthYearSelected:focus,.BirthDateOptions .BirthYearSelected :focus-within,.BirthDateOptions .BirthYearSelected :focus-visible,.BirthDateOptions .BirthYearSelected :visited{border:1px solid #D0046C;box-shadow:0 0 0 1pt #D0046C}.FormRequired{color:#FD2839}.InvalidInput{color:#D0046C;font-size:10px;position:absolute;bottom:-3px;line-height:10px}.RegisterStepNext{color:#fff;background:#D0046C;border:1px solid #D0046C;border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.RegisterStepNext[disabled]{background:#c1c1c1;border:1px solid #c1c1c1;cursor:not-allowed}</style>",n(this,{target:this.shadowRoot,props:function(e){const t={};for(const n of e)t[n.name]=n.value;return t}(this.attributes),customElement:!0},c,s,t,{endpoint:22},[-1,-1]),e&&(e.target&&ge(e.target,this,e.anchor),e.props&&(this.$set(e.props),v()))}static get observedAttributes(){return["endpoint"]}get endpoint(){return this.$$.ctx[22]}set endpoint(e){this.$set({endpoint:e}),v()}}return customElements.get("general-player-register-form-step2")||customElements.define("general-player-register-form-step2",d),d});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function Xe(){}function h(e){return e()}function p(){return Object.create(null)}function Ye(e){e.forEach(h)}function f(e){return"function"==typeof e}function r(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function L(e,...t){if(null==e)return Xe;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function qe(e,t){e.appendChild(t)}function He(e,t,r){e.insertBefore(t,r||null)}function Ke(e){e.parentNode.removeChild(e)}function t(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function Ze(e){return document.createElement(e)}function We(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Qe(e){return document.createTextNode(e)}function Je(){return Qe(" ")}function et(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function tt(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function rt(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function nt(e,t){e.value=null==t?"":t}function it(t,r){for(let e=0;e<t.options.length;e+=1){const n=t.options[e];if(n.__value===r)return n.selected=!0,0}}function P(e){e=e.querySelector(":checked")||e.options[0];return e&&e.__value}let O;function m(e){O=e}const g=[],e=[],n=[],i=[],d=Promise.resolve();let E=!1;function ot(e){n.push(e)}let o=!1;const s=new Set;function y(){if(!o){o=!0;do{for(let e=0;e<g.length;e+=1){var t=g[e];m(t),function(e){{var t;null!==e.fragment&&(e.update(),Ye(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(ot))}}(t.$$)}for(m(null),g.length=0;e.length;)e.pop()();for(let e=0;e<n.length;e+=1){const r=n[e];s.has(r)||(s.add(r),r())}}while(n.length=0,g.length);for(;i.length;)i.pop()();E=!1,o=!1,s.clear()}}const v=new Set;function a(n,e,t,r,i,o,s=[-1]){var a,l=O;m(n);const c=n.$$={fragment:null,ctx:null,props:o,update:Xe,not_equal:i,bound:p(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:p(),dirty:s,skip_bound:!1};let u=!1;if(c.ctx=t?t(n,e.props||{},(e,t,...r)=>{r=r.length?r[0]:t;return c.ctx&&i(c.ctx[e],c.ctx[e]=r)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](r),u&&(r=e,-1===(e=n).$$.dirty[0]&&(g.push(e),E||(E=!0,d.then(y)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],c.update(),u=!0,Ye(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){const Xe=(r=e.target,Array.from(r.childNodes));c.fragment&&c.fragment.l(Xe),Xe.forEach(Ke)}else c.fragment&&c.fragment.c();e.intro&&(a=n.$$.fragment)&&a.i&&(v.delete(a),a.i(void 0)),function(t,e,r,n){const{fragment:i,on_mount:o,on_destroy:s,after_update:a}=t.$$;i&&i.m(e,r),n||ot(()=>{var e=o.map(h).filter(f);s?s.push(...e):Ye(e),t.$$.on_mount=[]}),a.forEach(ot)}(n,e.target,e.anchor,e.customElement),y()}m(l)}let l;"function"==typeof HTMLElement&&(l=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(h).filter(f);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){Ye(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(Ye(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=Xe}$on(e,t){const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});const c=[];function b(n,i=Xe){let o;const s=[];function a(e){if(r(n,e)&&(n=e,o)){const e=!c.length;for(let e=0;e<s.length;e+=1){const t=s[e];t[1](),c.push(t,n)}if(e){for(let e=0;e<c.length;e+=2)c[e][0](c[e+1]);c.length=0}}}return{set:a,update:function(e){a(e(n))},subscribe:function(e,t=Xe){const r=[e,t];return s.push(r),1===s.length&&(o=i(a)||Xe),e(n),()=>{var e=s.indexOf(r);-1!==e&&s.splice(e,1),0===s.length&&(o(),o=null)}}}}function u(e,a,t){const l=!Array.isArray(e),c=l?[e]:e,u=a.length<2;return{subscribe:b(t,t=>{let r=!1;const n=[];let i=0,o=Xe;const s=()=>{var e;i||(o(),e=a(l?n[0]:n,t),u?t(e):o=f(e)?e:Xe)},e=c.map((e,t)=>L(e,e=>{n[t]=e,i&=~(1<<t),r&&s()},()=>{i|=1<<t}));return r=!0,s(),function(){Ye(e),o()}}).subscribe}}var _=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===T));var t},T="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function S(e,t){return!1!==t.clone&&t.isMergeableObject(e)?D(Array.isArray(e)?[]:{},e,t):e}function w(e,t,r){return e.concat(t).map(function(e){return S(e,r)})}function C(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function A(e,t){try{return t in e}catch(e){return!1}}function N(n,i,o){var s={};return o.isMergeableObject(n)&&C(n).forEach(function(e){s[e]=S(n[e],o)}),C(i).forEach(function(t){var e,r;(!A(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(A(n,t)&&o.isMergeableObject(i[t])?s[t]=function(){if(!o.customMerge)return D;var e=o.customMerge(t);return"function"==typeof e?e:D}()(n[t],i[t],o):s[t]=S(i[t],o))}),s}function D(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||w,r.isMergeableObject=r.isMergeableObject||_,r.cloneUnlessOtherwiseSpecified=S;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):N(e,t,r):S(t,r)}D.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return D(e,t,r)},{})};var I=D,R=function(e,t){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function x(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}R(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var F,M,U,k=function(){return(k=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function B(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e}function G(e){return e.type===M.literal}function $(e){return e.type===M.number}function j(e){return e.type===M.date}function z(e){return e.type===M.time}function V(e){return e.type===M.select}function X(e){return e.type===M.plural}function Y(e){return e.type===M.tag}function q(e){return e&&"object"==typeof e&&e.type===U.number}function H(e){return e&&"object"==typeof e&&e.type===U.dateTime}(fe=F=F||{})[fe.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",fe[fe.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",fe[fe.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",fe[fe.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",fe[fe.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",fe[fe.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",fe[fe.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",fe[fe.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",fe[fe.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",fe[fe.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",fe[fe.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",fe[fe.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",fe[fe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",fe[fe.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",fe[fe.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",fe[fe.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",fe[fe.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",fe[fe.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",fe[fe.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",fe[fe.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",fe[fe.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",fe[fe.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",fe[fe.INVALID_TAG=23]="INVALID_TAG",fe[fe.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",fe[fe.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",fe[fe.UNCLOSED_TAG=27]="UNCLOSED_TAG",(me=M=M||{})[me.literal=0]="literal",me[me.argument=1]="argument",me[me.number=2]="number",me[me.date=3]="date",me[me.time=4]="time",me[me.select=5]="select",me[me.plural=6]="plural",me[me.pound=7]="pound",me[me.tag=8]="tag",(ge=U=U||{})[ge.number=0]="number",ge[ge.dateTime=1]="dateTime";var K=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Z=/(?:[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;var W,Q=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,J=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ee=/^(@+)?(\+|#+)?$/g,te=/(\*)(0+)|(#+)(0+)|(0+)/g,re=/^(0+)$/;function ne(e){var n={};return e.replace(ee,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function ie(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 oe(e){return ie(e)||{}}function se(e){for(var s={},t=0,r=e;t<r.length;t++){var n,i=r[t];switch(i.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=i.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=k(k(k({},s),{notation:"scientific"}),i.options.reduce(function(e,t){return k(k({},e),oe(t))},{}));continue;case"engineering":s=k(k(k({},s),{notation:"engineering"}),i.options.reduce(function(e,t){return k(k({},e),oe(t))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.scale=parseFloat(i.options[0]);continue;case"integer-width":if(1<i.options.length)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(te,function(e,t,r,n,i,o){if(t)s.minimumIntegerDigits=r.length;else{if(n&&i)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""});continue}if(re.test(i.stem))s.minimumIntegerDigits=i.stem.length;else if(J.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(J,function(e,t,r,n,i,o){return"*"===r?s.minimumFractionDigits=t.length:n&&"#"===n[0]?s.maximumFractionDigits=n.length:i&&o?(s.minimumFractionDigits=i.length,s.maximumFractionDigits=i.length+o.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""}),i.options.length&&(s=k(k({},s),ne(i.options[0])))}else ee.test(i.stem)?s=k(k({},s),ne(i.stem)):((n=ie(i.stem))&&(s=k(k({},s),n)),(n=function(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 r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!re.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(s=k(k({},s),n)))}return s}var ae=new RegExp("^"+K.source+"*"),le=new RegExp(K.source+"*$");function ce(e,t){return{start:e,end:t}}var ue=!!String.prototype.startsWith,he=!!String.fromCodePoint,pe=!!Object.fromEntries,fe=!!String.prototype.codePointAt,me=!!String.prototype.trimStart,ge=!!String.prototype.trimEnd,de=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},K=!0;try{K="a"===(null===(W=Ce("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===W?void 0:W[0])}catch(Xe){K=!1}var Ee,ye,ve=ue?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},be=he?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;o<i;){if(1114111<(r=e[o++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},_e=pe?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],i=i[1];t[o]=i}return t},Te=fe?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||r<=t)){var n,i=e.charCodeAt(t);return i<55296||56319<i||t+1===r||(n=e.charCodeAt(t+1))<56320||57343<n?i:n-56320+(i-55296<<10)+65536}},Se=me?function(e){return e.trimStart()}:function(e){return e.replace(ae,"")},we=ge?function(e){return e.trimEnd()}:function(e){return e.replace(le,"")};function Ce(e,t){return new RegExp(e,t)}ye=K?(Ee=Ce("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Ee.lastIndex=t,null!==(e=Ee.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var r,n=[];;){var i=Te(e,t);if(void 0===i||Pe(i)||(33<=(r=i)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094))break;n.push(i),t+=65536<=i?2:1}return be.apply(void 0,n)};var Ae=(Ne.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},Ne.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i,o=this.char();if(123===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(F.UNMATCHED_CLOSING_TAG,ce(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Le(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{o=this.clonePosition();this.bump(),n.push({type:M.pound,location:ce(o,this.clonePosition())})}}}return{val:n,err:null}},Ne.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:M.literal,value:"<"+n+"/>",location:ce(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;e=i.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Le(this.char()))return this.error(F.INVALID_TAG,ce(t,this.clonePosition()));i=this.clonePosition();return n!==this.parseTagName()?this.error(F.UNMATCHED_CLOSING_TAG,ce(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:M.tag,value:n,children:e,location:ce(r,this.clonePosition())},err:null}:this.error(F.INVALID_TAG,ce(t,this.clonePosition())))}return this.error(F.UNCLOSED_TAG,ce(r,this.clonePosition()))}return this.error(F.INVALID_TAG,ce(r,this.clonePosition()))},Ne.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},Ne.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{i=this.tryParseUnquoted(e,t);if(i)n+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;n+=i}}}r=ce(r,this.clonePosition());return{val:{type:M.literal,value:n,location:r},err:null}},Ne.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Le(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},Ne.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 r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return be.apply(void 0,t)},Ne.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),be(r))},Ne.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,ce(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(F.EMPTY_ARGUMENT,ce(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(F.MALFORMED_ARGUMENT,ce(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,ce(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:M.argument,value:n,location:ce(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,ce(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(F.MALFORMED_ARGUMENT,ce(r,this.clonePosition()))}},Ne.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=ye(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:ce(e,this.clonePosition())}},Ne.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(F.EXPECT_ARGUMENT_TYPE,ce(o,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((p=this.parseSimpleArgStyleIfPossible()).err)return p;if(0===(h=we(p.val)).length)return this.error(F.EXPECT_ARGUMENT_STYLE,ce(this.clonePosition(),this.clonePosition()));l={style:h,styleLocation:ce(c,this.clonePosition())}}if((f=this.tryParseArgumentClose(n)).err)return f;var u=ce(n,this.clonePosition());if(l&&ve(null==l?void 0:l.style,"::",0)){c=Se(l.style.slice(2));if("number"===s)return(p=this.parseNumberSkeletonFromString(c,l.styleLocation)).err?p:{val:{type:M.number,value:r,location:u,style:p.val},err:null};if(0===c.length)return this.error(F.EXPECT_DATE_TIME_SKELETON,u);var h={type:U.dateTime,pattern:c,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},c.replace(Z,function(e){var t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.year=2===t?"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":i.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][t-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":i.minute=["numeric","2-digit"][t-1];break;case"s":i.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=t<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""}),i):{}};return{val:{type:"date"===s?M.date:M.time,value:r,location:u,style:h},err:null}}return{val:{type:"number"===s?M.number:"date"===s?M.date:M.time,value:r,location:u,style:null!==(u=null==l?void 0:l.style)&&void 0!==u?u:null},err:null};case"plural":case"selectordinal":case"select":l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(F.EXPECT_SELECT_ARGUMENT_OPTIONS,ce(l,k({},l)));this.bumpSpace();var p,u=this.parseIdentifierIfPossible(),l=0;if("select"!==s&&"offset"===u.value){if(!this.bumpIf(":"))return this.error(F.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ce(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(p=this.tryParseDecimalInteger(F.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,F.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return p;this.bumpSpace(),u=this.parseIdentifierIfPossible(),l=p.val}u=this.tryParsePluralOrSelectOptions(e,s,t,u);if(u.err)return u;if((f=this.tryParseArgumentClose(n)).err)return f;var f=ce(n,this.clonePosition());return"select"===s?{val:{type:M.select,value:r,options:_e(u.val),location:f},err:null}:{val:{type:M.plural,value:r,options:_e(u.val),offset:l,pluralType:"plural"===s?"cardinal":"ordinal",location:f},err:null};default:return this.error(F.INVALID_ARGUMENT_TYPE,ce(o,a))}},Ne.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,ce(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},Ne.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(F.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ce(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},Ne.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(Q).filter(function(e){return 0<e.length});r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],i=i.slice(1),s=0,a=i;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:i})}return t}(e)}catch(e){return this.error(F.INVALID_NUMBER_SKELETON,t)}return{val:{type:U.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?se(r):{}},err:null}},Ne.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i=!1,o=[],s=new Set,a=n.value,l=n.location;;){if(0===a.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(F.EXPECT_PLURAL_ARGUMENT_SELECTOR,F.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=ce(c,this.clonePosition()),a=this.message.slice(c.offset,this.offset())}if(s.has(a))return this.error("select"===t?F.DUPLICATE_SELECT_ARGUMENT_SELECTOR:F.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?F.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:F.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ce(this.clonePosition(),this.clonePosition()));u=this.parseMessage(e+1,t,r);if(u.err)return u;c=this.tryParseArgumentClose(h);if(c.err)return c;o.push([a,{value:u.val,location:ce(h,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(h=this.parseIdentifierIfPossible()).value,l=h.location}return 0===o.length?this.error("select"===t?F.EXPECT_SELECT_ARGUMENT_SELECTOR:F.EXPECT_PLURAL_ARGUMENT_SELECTOR,ce(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(F.MISSING_OTHER_CLAUSE,ce(this.clonePosition(),this.clonePosition())):{val:o,err:null}},Ne.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;i=!0,o=10*o+(s-48),this.bump()}n=ce(n,this.clonePosition());return i?de(o*=r)?{val:o,err:null}:this.error(t,n):this.error(e,n)},Ne.prototype.offset=function(){return this.position.offset},Ne.prototype.isEOF=function(){return this.offset()===this.message.length},Ne.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},Ne.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Te(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},Ne.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},Ne.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},Ne.prototype.bumpIf=function(e){if(ve(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},Ne.prototype.bumpUntil=function(e){var t=this.offset(),t=this.message.indexOf(e,t);return 0<=t?(this.bumpTo(t),!0):(this.bumpTo(this.message.length),!1)},Ne.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},Ne.prototype.bumpSpace=function(){for(;!this.isEOF()&&Pe(this.char());)this.bump()},Ne.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),e=this.message.charCodeAt(t+(65536<=e?2:1));return null!=e?e:null},Ne);function Ne(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function Le(e){return 97<=e&&e<=122||65<=e&&e<=90}function Pe(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Oe(e,t){t=k({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r=new Ae(e,t).parse();if(r.err){e=SyntaxError(F[r.err.kind]);throw e.location=r.err.location,e.originalMessage=r.err.message,e}return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,V(e)||X(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else $(e)&&q(e.style)||(j(e)||z(e))&&H(e.style)?delete e.style.location:Y(e)&&r(e.children)})}(r.val),r.val}function De(e,t){var r=t&&t.cache?t.cache:ke,n=t&&t.serializer?t.serializer:Fe;return(t&&t.strategy?t.strategy:function(e,t){return xe(e,this,1===e.length?Ie:Re,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function Ie(e,t,r,n){var i=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),r=t.get(i);return void 0===r&&(r=e.call(this,n),t.set(i,r)),r}function Re(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),r=t.get(i);return void 0===r&&(r=e.apply(this,n),t.set(i,r)),r}function xe(e,t,r,n,i){return r.bind(t,e,n,i)}var Fe=function(){return JSON.stringify(arguments)};function Me(){this.cache=Object.create(null)}Me.prototype.has=function(e){return e in this.cache},Me.prototype.get=function(e){return this.cache[e]},Me.prototype.set=function(e,t){this.cache[e]=t};var Ue,ke={create:function(){return new Me}},Be={variadic:function(e,t){return xe(e,this,Re,t.cache.create(),t.serializer)},monadic:function(e,t){return xe(e,this,Ie,t.cache.create(),t.serializer)}};(K=Ue=Ue||{}).MISSING_VALUE="MISSING_VALUE",K.INVALID_VALUE="INVALID_VALUE",K.MISSING_INTL_API="MISSING_INTL_API";var Ge,$e,je,ze,Ve,st=(x(ft,Ve=Error),ft.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},ft),at=(x(pt,ze=st),pt),lt=(x(ht,je=st),ht),ct=(x(ut,$e=st),ut);function ut(e,t){return $e.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',Ue.MISSING_VALUE,t)||this}function ht(e,t,r){return je.call(this,'Value for "'+e+'" must be of type '+t,Ue.INVALID_VALUE,r)||this}function pt(e,t,r,n){return ze.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',Ue.INVALID_VALUE,n)||this}function ft(e,t,r){e=Ve.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function mt(e,t,r,n,i,o,s){if(1===e.length&&G(e[0]))return[{type:Ge.literal,value:e[0].value}];for(var a=[],l=0,c=e;l<c.length;l++){var u=c[l];if(G(u))a.push({type:Ge.literal,value:u.value});else if(u.type===M.pound)"number"==typeof o&&a.push({type:Ge.literal,value:r.getNumberFormat(t).format(o)});else{var h=u.value;if(!(i&&h in i))throw new ct(h,s);var p=i[h];if(u.type===M.argument)p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),a.push({type:"string"==typeof p?Ge.literal:Ge.object,value:p});else if(j(u)){var f="string"==typeof u.style?n.date[u.style]:H(u.style)?u.style.parsedOptions:void 0;a.push({type:Ge.literal,value:r.getDateTimeFormat(t,f).format(p)})}else if(z(u))f="string"==typeof u.style?n.time[u.style]:H(u.style)?u.style.parsedOptions:void 0,a.push({type:Ge.literal,value:r.getDateTimeFormat(t,f).format(p)});else if($(u))(f="string"==typeof u.style?n.number[u.style]:q(u.style)?u.style.parsedOptions:void 0)&&f.scale&&(p*=f.scale||1),a.push({type:Ge.literal,value:r.getNumberFormat(t,f).format(p)});else{if(Y(u)){var m=u.children,g=u.value,h=i[g];if("function"!=typeof h)throw new lt(g,"function",s);m=h(mt(m,t,r,n,i,o).map(function(e){return e.value}));Array.isArray(m)||(m=[m]),a.push.apply(a,m.map(function(e){return{type:"string"==typeof e?Ge.literal:Ge.object,value:e}}))}if(V(u)){if(!(d=u.options[p]||u.options.other))throw new at(u.value,p,Object.keys(u.options),s);a.push.apply(a,mt(d.value,t,r,n,i))}else if(X(u)){if(!(d=u.options["="+p])){if(!Intl.PluralRules)throw new st('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Ue.MISSING_INTL_API,s);var m=r.getPluralRules(t,{type:u.pluralType}).select(p-(u.offset||0)),d=u.options[m]||u.options.other}if(!d)throw new at(u.value,p,Object.keys(u.options),s);a.push.apply(a,mt(d.value,t,r,n,i,p-(u.offset||0)))}}}}return a.length<2?a:a.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===Ge.literal&&t.type===Ge.literal?r.value+=t.value:e.push(t),e},[])}function gt(r){return{create:function(){return{has:function(e){return e in r},get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(K=Ge=Ge||{})[K.literal=0]="literal",K[K.object=1]="object";var dt=(Object.defineProperty(Et,"defaultLocale",{get:function(){return Et.memoizedDefaultLocale||(Et.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Et.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Et.memoizedDefaultLocale=null,Et.__parse=Oe,Et.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"}}},Et);function Et(e,t,r,n){var i,o,s=this;if(void 0===t&&(t=Et.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=s.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===Ge.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return mt(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},"string"==typeof e){if(this.message=e,!Et.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Et.__parse(e,{ignoreTag:null==n?void 0:n.ignoreTag})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(i=Et.formats,(o=r)?Object.keys(i).reduce(function(e,t){var r,n;return e[t]=(r=i[t],(n=o[t])?k(k(k({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=k(k({},r[t]),n[t]||{}),e},{})):r),e},k({},i)):i),this.locales=t,this.formatters=n&&n.formatters||{getNumberFormat:De(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,B([void 0],t)))},{cache:gt((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:Be.variadic}),getDateTimeFormat:De(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,B([void 0],t)))},{cache:gt(n.dateTime),strategy:Be.variadic}),getPluralRules:De(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,B([void 0],t)))},{cache:gt(n.pluralRules),strategy:Be.variadic})}}const yt={},vt=(t,r)=>{if(null!=r){if(r in yt&&t in yt[r])return yt[r][t];var n,i,o=Ft(r);for(let e=0;e<o.length;e++){var s=(n=o[e],i=t,Tt(n)?function(e,t){if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(0<e){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(function(e){return bt[e]||null}(n),i):null);if(s)return n=t,i=r,(s=s)&&(i in yt||(yt[i]={}),n in yt[i]||(yt[i][n]=s),s)}}};let bt;const _t=b({});function Tt(e){return e in bt}function St(t,...r){delete yt[t],_t.update(e=>(e[t]=I.all([e[t]||{},...r]),e))}u([_t],([e])=>Object.keys(e)),_t.subscribe(e=>bt=e);const wt={};function Ct(e){return wt[e]}function At(e){return Ft(e).some(e=>{return null===(e=Ct(e))||void 0===e?void 0:e.size})}const Nt={};function Lt(e){if(!At(e))return e in Nt?Nt[e]:void 0;const t=Ft(e).map(e=>{var t=Ct(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return Nt[e]=Promise.all(t.map(([e,r])=>function(t){return Promise.all(r.map(e=>(function(e,t){wt[e].delete(t),0===wt[e].size&&delete wt[e]}(t,e),e().then(e=>e.default||e)))).then(e=>St(t,...e))}(e))).then(()=>At(e)?Lt(e):void delete Nt[e]),Nt[e]}function Pt(e,t){var r={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}const Ot={fallbackLocale:null,initialLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},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"}}},warnOnMissingMessages:!0,ignoreTag:!0};const Dt=b(!1);let It;const Rt=b(null);function xt(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Ft(e,t=Ot.fallbackLocale){e=xt(e);return t?[...new Set([...e,...xt(t)])]:e}Rt.subscribe(e=>{It=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const Mt=Rt.set;Rt.set=t=>{if(function(e){if(null!=e){var t=Ft(e);for(let e=0;e<t.length;e++){var r=t[e];if(Tt(r))return r}}}(t)&&At(t)){var{loadingDelay:r}=Ot;let e;return"undefined"!=typeof window&&null!=It&&r?e=window.setTimeout(()=>Dt.set(!0),r):Dt.set(!0),Lt(t).then(()=>{Mt(t)}).finally(()=>{clearTimeout(e),Dt.set(!1)})}return Mt(t)},Rt.update=e=>Mt(e(It));const Ut=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},kt=(e,t)=>{var{formats:r}=Ot;if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Bt=Ut(e=>{var{locale:t,format:r}=e,e=Pt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=kt("number",r)),new Intl.NumberFormat(t,e)}),Gt=Ut(e=>{var{locale:t,format:r}=e,e=Pt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=kt("date",r):0===Object.keys(e).length&&(e=kt("date","short")),new Intl.DateTimeFormat(t,e)}),$t=Ut(e=>{var{locale:t,format:r}=e,e=Pt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=kt("time",r):0===Object.keys(e).length&&(e=kt("time","short")),new Intl.DateTimeFormat(t,e)}),jt=Ut((e,t=It)=>new dt(e,t,Ot.formats,{ignoreTag:Ot.ignoreTag})),zt=u([Rt,_t],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:r,locale:n=It,default:i}=t;if(null==n)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let o=vt(e,n);if(o){if("string"!=typeof o)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof o}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),o}else Ot.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${Ft(n).join('", "')}".${At(It)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),o=i||e;if(!r)return o;let s=o;try{s=jt(o,n).format(r)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return s});u([Rt],()=>(e,t)=>((e={})=>{var{locale:t=It}=e,e=Pt(e,["locale"]);return $t(Object.assign({locale:t},e))})(t).format(e)),u([Rt],()=>(e,t)=>((e={})=>{var{locale:t=It}=e,e=Pt(e,["locale"]);return Gt(Object.assign({locale:t},e))})(t).format(e)),u([Rt],()=>(e,t)=>((e={})=>{var{locale:t=It}=e,e=Pt(e,["locale"]);return Bt(Object.assign({locale:t},e))})(t).format(e)),u([Rt,_t],()=>(e,t=It)=>vt(e,t));const Vt={en:{registerFormStep2:{registerBackButton:"Back",registerUserTitle:"Title",registerFirstName:"First Name",registerFirstNameError:"First name must be at least 2 characters long and contain no special characters.",registerLastName:"Last Name",registerLastNameError:"Last name must be at least 2 characters long and contain no special characters.",registerDateOfBirth:"Date of Birth",registerBirthPlace:"Birth Place",registerBirthPlaceError:"Birth place must be at least 1 character long.",registerCurrency:"Currency",registerNext:"Next"}},tr:{registerFormStep2:{registerBackButton:"Geri",registerUserTitle:"Başlık",registerFirstName:"İlk adı",registerFirstNameError:"Ad en az 2 karakter uzunluğunda olmalı ve özel karakter içermemelidir.",registerLastName:"Soyadı",registerLastNameError:"Soyadı en az 2 karakter uzunluğunda olmalı ve özel karakter içermemelidir.",registerDateOfBirth:"Doğum tarihi",registerBirthPlace:"Doğum yeri",registerBirthPlaceError:"Doğum yeri en az 1 karakter uzunluğunda olmalıdır.",registerCurrency:"Para birimi",registerNext:"Sonraki"}},ro:{registerFormStep2:{registerBackButton:"Inapoi",registerUserTitle:"Titlu",registerFirstName:"Prenume",registerFirstNameError:"Prenumele trebuie sa fie de minim 2 litere si sa nu contina caractere speciale.",registerLastName:"Nume",registerLastNameError:"Numele trebuie sa fie de minim 2 litere si sa nu contina caractere speciale",registerDateOfBirth:"Data Nasterii",registerBirthPlace:"Locule nasterii",registerBirthPlaceError:"Locul nasterii trebuie sa contina minim o litera",registerCurrency:"Moneda",registerNext:"Urmatorul"}}};function Xt(e,t,r){const n=e.slice();return n[40]=t[r],n}function Yt(e,t,r){const n=e.slice();return n[43]=t[r],n}function qt(e,t,r){const n=e.slice();return n[46]=t[r],n}function Ht(e,t,r){const n=e.slice();return n[49]=t[r],n}function Kt(e,t,r){const n=e.slice();return n[52]=t[r],n}function Zt(e){let r,n,t=e[52]+"";return{c(){r=Ze("option"),n=Qe(t),r.__value=e[52],r.value=r.__value},m(e,t){He(e,r,t),qe(r,n)},p:Xe,d(e){e&&Ke(r)}}}function Wt(e){let r,n,i=e[13]("registerFormStep2.registerFirstNameError")+"";return{c(){r=Ze("p"),n=Qe(i),tt(r,"class","InvalidInput")},m(e,t){He(e,r,t),qe(r,n)},p(e,t){8192&t[0]&&i!==(i=e[13]("registerFormStep2.registerFirstNameError")+"")&&rt(n,i)},d(e){e&&Ke(r)}}}function Qt(e){let r,n,i=e[13]("registerFormStep2.registerLastNameError")+"";return{c(){r=Ze("p"),n=Qe(i),tt(r,"class","InvalidInput")},m(e,t){He(e,r,t),qe(r,n)},p(e,t){8192&t[0]&&i!==(i=e[13]("registerFormStep2.registerLastNameError")+"")&&rt(n,i)},d(e){e&&Ke(r)}}}function Jt(e){let r,n,t=e[49]+"";return{c(){r=Ze("option"),n=Qe(t),r.__value=e[49],r.value=r.__value},m(e,t){He(e,r,t),qe(r,n)},p:Xe,d(e){e&&Ke(r)}}}function er(e){let r,n,t=e[46]+"";return{c(){r=Ze("option"),n=Qe(t),r.__value=e[46],r.value=r.__value},m(e,t){He(e,r,t),qe(r,n)},p:Xe,d(e){e&&Ke(r)}}}function tr(e){let r,n,t=e[43]+"";return{c(){r=Ze("option"),n=Qe(t),r.__value=e[43],r.value=r.__value},m(e,t){He(e,r,t),qe(r,n)},p:Xe,d(e){e&&Ke(r)}}}function rr(e){let r,n,i=e[13]("registerFormStep2.registerBirthPlaceError")+"";return{c(){r=Ze("p"),n=Qe(i),tt(r,"class","InvalidInput")},m(e,t){He(e,r,t),qe(r,n)},p(e,t){8192&t[0]&&i!==(i=e[13]("registerFormStep2.registerBirthPlaceError")+"")&&rt(n,i)},d(e){e&&Ke(r)}}}function nr(e){let r,n,i,o=e[40]+"";return{c(){r=Ze("option"),n=Qe(o),r.__value=i=e[40],r.value=r.__value},m(e,t){He(e,r,t),qe(r,n)},p(e,t){1024&t[0]&&o!==(o=e[40]+"")&&rt(n,o),1024&t[0]&&i!==(i=e[40])&&(r.__value=i,r.value=r.__value)},d(e){e&&Ke(r)}}}function ir(r){let n,i,o,s,a,l,c,u,h,p,f,m,g,d,E,y,v,b,_,T,S,w,C,A,N,L,P,O,e,D,I,R,x,F,M,U,k,B,G,$,j,z,V,X,Y,q,H,K,Z,W,Q,J,ee,te,re,ne,ie,oe,se,ae,le,ce,ue,he,pe,fe,me,ge,de,Ee,ye,ve,be,_e,Te,Se,we=r[13]("registerFormStep2.registerBackButton")+"",Ce=r[13]("registerFormStep2.registerUserTitle")+"",Ae=r[13]("registerFormStep2.registerFirstName")+"",Ne=r[13]("registerFormStep2.registerLastName")+"",Le=r[13]("registerFormStep2.registerDateOfBirth")+"",Pe=r[13]("registerFormStep2.registerBirthPlace")+"",Oe=r[13]("registerFormStep2.registerCurrency")+"",De=r[13]("registerFormStep2.registerNext")+"",Ie=r[14],Re=[];for(let e=0;e<Ie.length;e+=1)Re[e]=Zt(Kt(r,Ie,e));let xe=r[0]&&Wt(r),Fe=r[1]&&Qt(r),Me=r[15],Ue=[];for(let e=0;e<Me.length;e+=1)Ue[e]=Jt(Ht(r,Me,e));let ke=r[16],Be=[];for(let e=0;e<ke.length;e+=1)Be[e]=er(qt(r,ke,e));let Ge=r[17],$e=[];for(let e=0;e<Ge.length;e+=1)$e[e]=tr(Yt(r,Ge,e));let je=r[2]&&rr(r),ze=r[10],Ve=[];for(let e=0;e<ze.length;e+=1)Ve[e]=nr(Xt(r,ze,e));return{c(){n=Ze("div"),i=Ze("button"),o=We("svg"),s=We("defs"),a=We("style"),l=Qe(".a{fill:#d0046c;}"),c=We("path"),u=Je(),h=Qe(we),p=Je(),f=Ze("div"),m=Ze("div"),g=Ze("label"),d=Qe(Ce),E=Qe(":"),y=Ze("span"),y.textContent="*",v=Je(),b=Ze("select");for(let e=0;e<Re.length;e+=1)Re[e].c();_=Qe("}"),T=Je(),S=Ze("div"),w=Ze("label"),C=Qe(Ae),A=Qe(":"),N=Ze("span"),N.textContent="*",L=Je(),P=Ze("input"),O=Je(),xe&&xe.c(),D=Je(),I=Ze("div"),R=Ze("label"),x=Qe(Ne),F=Qe(":"),M=Ze("span"),M.textContent="*",U=Je(),k=Ze("input"),B=Je(),Fe&&Fe.c(),$=Je(),j=Ze("div"),z=Ze("label"),V=Qe(Le),X=Qe(":"),Y=Ze("span"),Y.textContent="*",q=Je(),H=Ze("div"),K=Ze("select");for(let e=0;e<Ue.length;e+=1)Ue[e].c();Z=Je(),W=Ze("select");for(let e=0;e<Be.length;e+=1)Be[e].c();Q=Je(),J=Ze("select");for(let e=0;e<$e.length;e+=1)$e[e].c();ee=Je(),te=Ze("div"),re=Ze("label"),ne=Qe(Pe),ie=Qe(":"),oe=Ze("span"),oe.textContent="*",se=Je(),ae=Ze("input"),le=Je(),je&&je.c(),ue=Je(),he=Ze("div"),pe=Ze("label"),fe=Qe(Oe),me=Qe(":"),ge=Ze("span"),ge.textContent="*",de=Je(),Ee=Ze("select");for(let e=0;e<Ve.length;e+=1)Ve[e].c();ye=Je(),ve=Ze("button"),be=Qe(De),this.c=Xe,tt(c,"class","a"),tt(c,"d","M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z"),tt(c,"transform","translate(24 24) rotate(180)"),tt(o,"xmlns","http://www.w3.org/2000/svg"),tt(o,"viewBox","0 0 24 24"),tt(i,"class","BackButton"),tt(n,"class","RegisterFormHeader"),tt(y,"class","FormRequired"),tt(g,"for","Title"),tt(b,"id","Title"),void 0===r[3]&&ot(()=>r[25].call(b)),tt(m,"class","UserTitleContainer"),tt(N,"class","FormRequired"),tt(w,"for","FirstName"),tt(P,"type","text"),tt(P,"id","FirstName"),tt(S,"class",e="FirstNameContainer "+(r[0]?"InvalidField":"")),tt(M,"class","FormRequired"),tt(R,"for","LastName"),tt(k,"type","text"),tt(k,"id","LastName"),tt(I,"class",G="LastNameContainer "+(r[1]?"InvalidField":"")),tt(Y,"class","FormRequired"),tt(z,"for","BirthDate"),tt(K,"class","BirthDaySelected"),void 0===r[6]&&ot(()=>r[28].call(K)),tt(W,"class","BirthMonthSelected"),void 0===r[7]&&ot(()=>r[29].call(W)),tt(J,"class","BirthYearSelected"),void 0===r[8]&&ot(()=>r[30].call(J)),tt(H,"class","BirthDateOptions"),tt(j,"class","BirthDateContainer"),tt(oe,"class","FormRequired"),tt(re,"for","BirthPlace"),tt(ae,"type","text"),tt(ae,"id","BirthPlace"),tt(te,"class",ce="BirthPlaceContainer "+(r[2]?"InvalidField":"")),tt(ge,"class","FormRequired"),tt(pe,"for","Currency"),tt(Ee,"id","Currency"),void 0===r[11]&&ot(()=>r[32].call(Ee)),tt(he,"class","CurrencyContainer"),tt(f,"class","RegisterFormContent"),tt(ve,"class","RegisterStepNext"),ve.disabled=_e=!r[12]},m(e,t){He(e,n,t),qe(n,i),qe(i,o),qe(o,s),qe(s,a),qe(a,l),qe(o,c),qe(i,u),qe(i,h),He(e,p,t),He(e,f,t),qe(f,m),qe(m,g),qe(g,d),qe(g,E),qe(g,y),qe(m,v),qe(m,b);for(let e=0;e<Re.length;e+=1)Re[e].m(b,null);qe(b,_),it(b,r[3]),qe(f,T),qe(f,S),qe(S,w),qe(w,C),qe(w,A),qe(w,N),qe(S,L),qe(S,P),nt(P,r[4]),qe(S,O),xe&&xe.m(S,null),qe(f,D),qe(f,I),qe(I,R),qe(R,x),qe(R,F),qe(R,M),qe(I,U),qe(I,k),nt(k,r[5]),qe(I,B),Fe&&Fe.m(I,null),qe(f,$),qe(f,j),qe(j,z),qe(z,V),qe(z,X),qe(z,Y),qe(j,q),qe(j,H),qe(H,K);for(let e=0;e<Ue.length;e+=1)Ue[e].m(K,null);it(K,r[6]),qe(H,Z),qe(H,W);for(let e=0;e<Be.length;e+=1)Be[e].m(W,null);it(W,r[7]),qe(H,Q),qe(H,J);for(let e=0;e<$e.length;e+=1)$e[e].m(J,null);it(J,r[8]),qe(f,ee),qe(f,te),qe(te,re),qe(re,ne),qe(re,ie),qe(re,oe),qe(te,se),qe(te,ae),nt(ae,r[9]),qe(te,le),je&&je.m(te,null),qe(f,ue),qe(f,he),qe(he,pe),qe(pe,fe),qe(pe,me),qe(pe,ge),qe(he,de),qe(he,Ee);for(let e=0;e<Ve.length;e+=1)Ve[e].m(Ee,null);it(Ee,r[11]),He(e,ye,t),He(e,ve,t),qe(ve,be),Te||(Se=[et(i,"click",r[22]),et(b,"change",r[25]),et(P,"input",r[26]),et(P,"blur",r[18]),et(k,"input",r[27]),et(k,"blur",r[19]),et(K,"change",r[28]),et(W,"change",r[29]),et(J,"change",r[30]),et(ae,"input",r[31]),et(ae,"keyup",r[20]),et(Ee,"change",r[32]),et(ve,"click",r[21])],Te=!0)},p(t,r){if(8192&r[0]&&we!==(we=t[13]("registerFormStep2.registerBackButton")+"")&&rt(h,we),8192&r[0]&&Ce!==(Ce=t[13]("registerFormStep2.registerUserTitle")+"")&&rt(d,Ce),16384&r[0]){let e;for(Ie=t[14],e=0;e<Ie.length;e+=1){var n=Kt(t,Ie,e);Re[e]?Re[e].p(n,r):(Re[e]=Zt(n),Re[e].c(),Re[e].m(b,_))}for(;e<Re.length;e+=1)Re[e].d(1);Re.length=Ie.length}if(16392&r[0]&&it(b,t[3]),8192&r[0]&&Ae!==(Ae=t[13]("registerFormStep2.registerFirstName")+"")&&rt(C,Ae),16&r[0]&&P.value!==t[4]&&nt(P,t[4]),t[0]?xe?xe.p(t,r):(xe=Wt(t),xe.c(),xe.m(S,null)):xe&&(xe.d(1),xe=null),1&r[0]&&e!==(e="FirstNameContainer "+(t[0]?"InvalidField":""))&&tt(S,"class",e),8192&r[0]&&Ne!==(Ne=t[13]("registerFormStep2.registerLastName")+"")&&rt(x,Ne),32&r[0]&&k.value!==t[5]&&nt(k,t[5]),t[1]?Fe?Fe.p(t,r):(Fe=Qt(t),Fe.c(),Fe.m(I,null)):Fe&&(Fe.d(1),Fe=null),2&r[0]&&G!==(G="LastNameContainer "+(t[1]?"InvalidField":""))&&tt(I,"class",G),8192&r[0]&&Le!==(Le=t[13]("registerFormStep2.registerDateOfBirth")+"")&&rt(V,Le),32768&r[0]){let e;for(Me=t[15],e=0;e<Me.length;e+=1){var i=Ht(t,Me,e);Ue[e]?Ue[e].p(i,r):(Ue[e]=Jt(i),Ue[e].c(),Ue[e].m(K,null))}for(;e<Ue.length;e+=1)Ue[e].d(1);Ue.length=Me.length}if(32832&r[0]&&it(K,t[6]),65536&r[0]){let e;for(ke=t[16],e=0;e<ke.length;e+=1){var o=qt(t,ke,e);Be[e]?Be[e].p(o,r):(Be[e]=er(o),Be[e].c(),Be[e].m(W,null))}for(;e<Be.length;e+=1)Be[e].d(1);Be.length=ke.length}if(65664&r[0]&&it(W,t[7]),131072&r[0]){let e;for(Ge=t[17],e=0;e<Ge.length;e+=1){var s=Yt(t,Ge,e);$e[e]?$e[e].p(s,r):($e[e]=tr(s),$e[e].c(),$e[e].m(J,null))}for(;e<$e.length;e+=1)$e[e].d(1);$e.length=Ge.length}if(131328&r[0]&&it(J,t[8]),8192&r[0]&&Pe!==(Pe=t[13]("registerFormStep2.registerBirthPlace")+"")&&rt(ne,Pe),512&r[0]&&ae.value!==t[9]&&nt(ae,t[9]),t[2]?je?je.p(t,r):(je=rr(t),je.c(),je.m(te,null)):je&&(je.d(1),je=null),4&r[0]&&ce!==(ce="BirthPlaceContainer "+(t[2]?"InvalidField":""))&&tt(te,"class",ce),8192&r[0]&&Oe!==(Oe=t[13]("registerFormStep2.registerCurrency")+"")&&rt(fe,Oe),1024&r[0]){let e;for(ze=t[10],e=0;e<ze.length;e+=1){var a=Xt(t,ze,e);Ve[e]?Ve[e].p(a,r):(Ve[e]=nr(a),Ve[e].c(),Ve[e].m(Ee,null))}for(;e<Ve.length;e+=1)Ve[e].d(1);Ve.length=ze.length}3072&r[0]&&it(Ee,t[11]),8192&r[0]&&De!==(De=t[13]("registerFormStep2.registerNext")+"")&&rt(be,De),4096&r[0]&&_e!==(_e=!t[12])&&(ve.disabled=_e)},i:Xe,o:Xe,d(e){e&&Ke(n),e&&Ke(p),e&&Ke(f),t(Re,e),xe&&xe.d(),Fe&&Fe.d(),t(Ue,e),t(Be,e),t($e,e),je&&je.d(),t(Ve,e),e&&Ke(ye),e&&Ke(ve),Te=!1,Ye(Se)}}}function or(t,e,r){let n;var i=zt;t.$$.on_destroy.push(L(i,e=>r(13,n=e)));let{endpoint:o=""}=e,{lang:s=""}=e,a=!1,l=!1,c=!1,u=["Mr.","Mrs.","Ms."],h=u[0],p="",f="",m=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31],g=m[0],d=[1,2,3,4,5,6,7,8,9,10,11,12],E=d[0],y=[1999,1998,1997,1996,1995,1994,1993,1992,1991,1990,1989,1988,1987,1986,1985,1984,1983,1982,1981,1980,1979],v=y[0],b="",_=[],T="",S=!1;Object.keys(Vt).forEach(e=>{St(e,Vt[e])});const w=()=>{r(12,S=!(a||l||c)),(p.length<=0||f.length<=0||b.length<=0)&&r(12,S=!1)},C={user:/^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){2})^[a-zA-Z\d]*$/},A=e=>!!C.user.test(e),N=e=>{e.data&&"StepTwoDataBackup"===e.data.type&&(r(3,h=e.data.userData.title),r(4,p=e.data.userData.firstname),r(5,f=e.data.userData.lastname),r(6,g=e.data.userData.birth.day),r(7,E=e.data.userData.birth.month),r(8,v=e.data.userData.birth.year),r(9,b=e.data.userData.birthPlace),r(11,T=e.data.userData.currency),w())};return e=()=>(window.addEventListener("message",N,!1),()=>{window.removeEventListener("message",N)}),function(){if(!O)throw new Error("Function called outside component initialization");return O}().$$.on_mount.push(e),t.$$set=e=>{"endpoint"in e&&r(23,o=e.endpoint),"lang"in e&&r(24,s=e.lang)},t.$$.update=()=>{var e;8388608&t.$$.dirty[0]&&o&&fetch(`${o}/player/operatorSupportedCurrencies`).then(e=>e.json()).then(e=>{r(10,_=e.currencies),T||r(11,T=_[0])}),16777216&t.$$.dirty[0]&&s&&(e=s,Rt.set(e))},[a,l,c,h,p,f,g,E,v,b,_,T,S,n,u,m,d,y,()=>{r(0,a=!A(p)),w()},()=>{r(1,l=!A(f)),w()},()=>{r(2,c=!b),w()},()=>{var e={userTitleSelected:h,userFirstName:p,userLastName:f,birthDaySelected:g,birthMonthSelected:E,birthYearSelected:v,birthPlace:b,currencySelected:T};window.postMessage({type:"RegisterStepTwo",registerStepTwoData:e},window.location.href)},()=>{var e={userTitleSelected:h,userFirstName:p,userLastName:f,birthDaySelected:g,birthMonthSelected:E,birthYearSelected:v,birthPlace:b,currencySelected:T};window.postMessage({type:"GoBackStepTwo",registerStepTwoData:e},window.location.href)},o,s,function(){h=P(this),r(3,h),r(14,u)},function(){p=this.value,r(4,p)},function(){f=this.value,r(5,f)},function(){g=P(this),r(6,g),r(15,m)},function(){E=P(this),r(7,E),r(16,d)},function(){v=P(this),r(8,v),r(17,y)},function(){b=this.value,r(9,b)},function(){T=P(this),r(11,T),r(10,_)}]}class sr extends l{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}.BackButton{display:inline-flex;color:#07072A;height:24px;line-height:24px;border-radius:5px;border:none;background:transparent;padding:0;text-transform:uppercase;font-size:32px;cursor:pointer;margin-bottom:30px}.BackButton svg{width:24px;height:24px;margin-right:20px;fill:#D0046C}.UserTitleContainer label,.CurrencyContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.UserTitleContainer select,.CurrencyContainer select{width:100%;height:44px;border:1px solid #D1D1D1;border-radius:5px;padding:5px;font-size:14px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat #FFF;background-position:calc(100% - 0.75rem) center}.UserTitleContainer select:focus,.UserTitleContainer select :focus-within,.UserTitleContainer select :focus-visible,.UserTitleContainer select :visited,.CurrencyContainer select:focus,.CurrencyContainer select :focus-within,.CurrencyContainer select :focus-visible,.CurrencyContainer select :visited{border:1px solid #D0046C;box-shadow:0 0 0 1pt #D0046C}.UserTitleContainer,.FirstNameContainer,.LastNameContainer,.BirthDateContainer,.BirthPlaceContainer,.CurrencyContainer{color:#58586B;display:flex;flex-direction:column;padding-bottom:30px;position:relative}.UserTitleContainer label,.FirstNameContainer label,.LastNameContainer label,.BirthDateContainer label,.BirthPlaceContainer label,.CurrencyContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.UserTitleContainer select,.FirstNameContainer input,.LastNameContainer input,.BirthDateContainer select,.BirthPlaceContainer input,.CurrencyContainer select{width:100%;height:44px;border:1px solid #D1D1D1;border-radius:5px;padding:5px;font-size:14px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.FirstNameContainer.InvalidField input,.LastNameContainer.InvalidField input,.BirthPlaceContainer.InvalidField input{border:1px solid #D0046C;background:#FBECF4;color:#D0046C}.BirthDateOptions{display:flex;gap:10px}.BirthDateOptions .BirthDaySelected{width:30%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat #FFF;background-position:calc(100% - 0.75rem) center}.BirthDateOptions .BirthDaySelected:focus,.BirthDateOptions .BirthDaySelected :focus-within,.BirthDateOptions .BirthDaySelected :focus-visible,.BirthDateOptions .BirthDaySelected :visited{border:1px solid #D0046C;box-shadow:0 0 0 1pt #D0046C}.BirthDateOptions .BirthMonthSelected{width:30%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat #FFF;background-position:calc(100% - 0.75rem) center}.BirthDateOptions .BirthMonthSelected:focus,.BirthDateOptions .BirthMonthSelected :focus-within,.BirthDateOptions .BirthMonthSelected :focus-visible,.BirthDateOptions .BirthMonthSelected :visited{border:1px solid #D0046C;box-shadow:0 0 0 1pt #D0046C}.BirthDateOptions .BirthYearSelected{width:40%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat #FFF;background-position:calc(100% - 0.75rem) center}.BirthDateOptions .BirthYearSelected:focus,.BirthDateOptions .BirthYearSelected :focus-within,.BirthDateOptions .BirthYearSelected :focus-visible,.BirthDateOptions .BirthYearSelected :visited{border:1px solid #D0046C;box-shadow:0 0 0 1pt #D0046C}.FormRequired{color:#FD2839}.InvalidInput{color:#D0046C;font-size:10px;position:absolute;bottom:-3px;line-height:10px}.RegisterStepNext{color:#fff;background:#D0046C;border:1px solid #D0046C;border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.RegisterStepNext[disabled]{background:#c1c1c1;border:1px solid #c1c1c1;cursor:not-allowed}</style>",a(this,{target:this.shadowRoot,props:function(e){const t={};for(const r of e)t[r.name]=r.value;return t}(this.attributes),customElement:!0},or,ir,r,{endpoint:23,lang:24},[-1,-1]),e&&(e.target&&He(e.target,this,e.anchor),e.props&&(this.$set(e.props),y()))}static get observedAttributes(){return["endpoint","lang"]}get endpoint(){return this.$$.ctx[23]}set endpoint(e){this.$set({endpoint:e}),y()}get lang(){return this.$$.ctx[24]}set lang(e){this.$set({lang:e}),y()}}return customElements.get("general-player-register-form-step2")||customElements.define("general-player-register-form-step2",sr),sr});
2
2
  //# sourceMappingURL=general-player-register-form-step2.js.map