@everymatrix/general-player-register-form-step3 0.0.243 → 0.0.244
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 Ze(){}function p(e){return e()}function h(){return Object.create(null)}function Qe(e){e.forEach(p)}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 F(e,...t){if(null==e)return Ze;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function Je(e,t){e.appendChild(t)}function et(e,t,r){e.insertBefore(t,r||null)}function tt(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 rt(e){return document.createElement(e)}function nt(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function it(e){return document.createTextNode(e)}function ot(){return it(" ")}function st(){return it("")}function at(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function lt(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function ct(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function ut(e,t){e.value=null==t?"":t}function pt(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 U(e){e=e.querySelector(":checked")||e.options[0];return e&&e.__value}let D;function d(e){D=e}const m=[],e=[],n=[],i=[],g=Promise.resolve();let y=!1;function ht(e){n.push(e)}let o=!1;const s=new Set;function E(){if(!o){o=!0;do{for(let e=0;e<m.length;e+=1){var t=m[e];d(t),function(e){{var t;null!==e.fragment&&(e.update(),Qe(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(ht))}}(t.$$)}for(d(null),m.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,m.length);for(;i.length;)i.pop()();y=!1,o=!1,s.clear()}}const b=new Set;function a(n,e,t,r,i,o,s=[-1]){var a,l=D;d(n);const c=n.$$={fragment:null,ctx:null,props:o,update:Ze,not_equal:i,bound:h(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:h(),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]&&(m.push(e),y||(y=!0,g.then(E)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],c.update(),u=!0,Qe(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){const Ze=(r=e.target,Array.from(r.childNodes));c.fragment&&c.fragment.l(Ze),Ze.forEach(tt)}else c.fragment&&c.fragment.c();e.intro&&(a=n.$$.fragment)&&a.i&&(b.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||ht(()=>{var e=o.map(p).filter(f);s?s.push(...e):Qe(e),t.$$.on_mount=[]}),a.forEach(ht)}(n,e.target,e.anchor,e.customElement),E()}d(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(p).filter(f);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){Qe(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(Qe(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=Ze}$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 v(n,i=Ze){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=Ze){const r=[e,t];return s.push(r),1===s.length&&(o=i(a)||Ze),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:v(t,t=>{let r=!1;const n=[];let i=0,o=Ze;const s=()=>{var e;i||(o(),e=a(l?n[0]:n,t),u?t(e):o=f(e)?e:Ze)},e=c.map((e,t)=>F(e,e=>{n[t]=e,i&=~(1<<t),r&&s()},()=>{i|=1<<t}));return r=!0,s(),function(){Qe(e),o()}}).subscribe}}var C=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===_));var t},_="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function T(e,t){return!1!==t.clone&&t.isMergeableObject(e)?k(Array.isArray(e)?[]:{},e,t):e}function A(e,t,r){return e.concat(t).map(function(e){return T(e,r)})}function w(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function S(e,t){try{return t in e}catch(e){return!1}}function P(n,i,o){var s={};return o.isMergeableObject(n)&&w(n).forEach(function(e){s[e]=T(n[e],o)}),w(i).forEach(function(t){var e,r;(!S(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(S(n,t)&&o.isMergeableObject(i[t])?s[t]=function(){if(!o.customMerge)return k;var e=o.customMerge(t);return"function"==typeof e?e:k}()(n[t],i[t],o):s[t]=T(i[t],o))}),s}function k(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||A,r.isMergeableObject=r.isMergeableObject||C,r.cloneUnlessOtherwiseSpecified=T;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):P(e,t,r):T(t,r)}k.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return k(e,t,r)},{})};var O=k,x=function(e,t){return(x=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 M(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}x(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var N,L,I,R=function(){return(R=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 G(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e}function $(e){return e.type===L.literal}function j(e){return e.type===L.number}function z(e){return e.type===L.date}function V(e){return e.type===L.time}function B(e){return e.type===L.select}function X(e){return e.type===L.plural}function q(e){return e.type===L.tag}function K(e){return e&&"object"==typeof e&&e.type===I.number}function W(e){return e&&"object"==typeof e&&e.type===I.dateTime}(fe=N=N||{})[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",(de=L=L||{})[de.literal=0]="literal",de[de.argument=1]="argument",de[de.number=2]="number",de[de.date=3]="date",de[de.time=4]="time",de[de.select=5]="select",de[de.plural=6]="plural",de[de.pound=7]="pound",de[de.tag=8]="tag",(me=I=I||{})[me.number=0]="number",me[me.dateTime=1]="dateTime";var H=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Y=/(?:[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 Z,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=R(R(R({},s),{notation:"scientific"}),i.options.reduce(function(e,t){return R(R({},e),oe(t))},{}));continue;case"engineering":s=R(R(R({},s),{notation:"engineering"}),i.options.reduce(function(e,t){return R(R({},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=R(R({},s),ne(i.options[0])))}else ee.test(i.stem)?s=R(R({},s),ne(i.stem)):((n=ie(i.stem))&&(s=R(R({},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=R(R({},s),n)))}return s}var ae=new RegExp("^"+H.source+"*"),le=new RegExp(H.source+"*$");function ce(e,t){return{start:e,end:t}}var ue=!!String.prototype.startsWith,pe=!!String.fromCodePoint,he=!!Object.fromEntries,fe=!!String.prototype.codePointAt,de=!!String.prototype.trimStart,me=!!String.prototype.trimEnd,ge=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},H=!0;try{H="a"===(null===(Z=we("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Z?void 0:Z[0])}catch(Ze){H=!1}var ye,Ee,be=ue?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},ve=pe?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},Ce=he?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},_e=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}},Te=de?function(e){return e.trimStart()}:function(e){return e.replace(ae,"")},Ae=me?function(e){return e.trimEnd()}:function(e){return e.replace(le,"")};function we(e,t){return new RegExp(e,t)}Ee=H?(ye=we("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return ye.lastIndex=t,null!==(e=ye.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var r,n=[];;){var i=_e(e,t);if(void 0===i||Oe(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 ve.apply(void 0,n)};var Se=(Pe.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},Pe.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(N.UNMATCHED_CLOSING_TAG,ce(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&ke(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:L.pound,location:ce(o,this.clonePosition())})}}}return{val:n,err:null}},Pe.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:L.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()||!ke(this.char()))return this.error(N.INVALID_TAG,ce(t,this.clonePosition()));i=this.clonePosition();return n!==this.parseTagName()?this.error(N.UNMATCHED_CLOSING_TAG,ce(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:L.tag,value:n,children:e,location:ce(r,this.clonePosition())},err:null}:this.error(N.INVALID_TAG,ce(t,this.clonePosition())))}return this.error(N.UNCLOSED_TAG,ce(r,this.clonePosition()))}return this.error(N.INVALID_TAG,ce(r,this.clonePosition()))},Pe.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())},Pe.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:L.literal,value:n,location:r},err:null}},Pe.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ke(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},Pe.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 ve.apply(void 0,t)},Pe.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(),ve(r))},Pe.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE,ce(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(N.EMPTY_ARGUMENT,ce(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(N.MALFORMED_ARGUMENT,ce(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE,ce(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:L.argument,value:n,location:ce(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE,ce(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(N.MALFORMED_ARGUMENT,ce(r,this.clonePosition()))}},Pe.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Ee(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:ce(e,this.clonePosition())}},Pe.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(N.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((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(p=Ae(h.val)).length)return this.error(N.EXPECT_ARGUMENT_STYLE,ce(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:ce(c,this.clonePosition())}}if((f=this.tryParseArgumentClose(n)).err)return f;var u=ce(n,this.clonePosition());if(l&&be(null==l?void 0:l.style,"::",0)){c=Te(l.style.slice(2));if("number"===s)return(h=this.parseNumberSkeletonFromString(c,l.styleLocation)).err?h:{val:{type:L.number,value:r,location:u,style:h.val},err:null};if(0===c.length)return this.error(N.EXPECT_DATE_TIME_SKELETON,u);var p={type:I.dateTime,pattern:c,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},c.replace(Y,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?L.date:L.time,value:r,location:u,style:p},err:null}}return{val:{type:"number"===s?L.number:"date"===s?L.date:L.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(N.EXPECT_SELECT_ARGUMENT_OPTIONS,ce(l,R({},l)));this.bumpSpace();var h,u=this.parseIdentifierIfPossible(),l=0;if("select"!==s&&"offset"===u.value){if(!this.bumpIf(":"))return this.error(N.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ce(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(N.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,N.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),u=this.parseIdentifierIfPossible(),l=h.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:L.select,value:r,options:Ce(u.val),location:f},err:null}:{val:{type:L.plural,value:r,options:Ce(u.val),offset:l,pluralType:"plural"===s?"cardinal":"ordinal",location:f},err:null};default:return this.error(N.INVALID_ARGUMENT_TYPE,ce(o,a))}},Pe.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE,ce(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},Pe.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(N.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}},Pe.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(N.INVALID_NUMBER_SKELETON,t)}return{val:{type:I.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?se(r):{}},err:null}},Pe.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(N.EXPECT_PLURAL_ARGUMENT_SELECTOR,N.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?N.DUPLICATE_SELECT_ARGUMENT_SELECTOR:N.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?N.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:N.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(p);if(c.err)return c;o.push([a,{value:u.val,location:ce(p,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(p=this.parseIdentifierIfPossible()).value,l=p.location}return 0===o.length?this.error("select"===t?N.EXPECT_SELECT_ARGUMENT_SELECTOR:N.EXPECT_PLURAL_ARGUMENT_SELECTOR,ce(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(N.MISSING_OTHER_CLAUSE,ce(this.clonePosition(),this.clonePosition())):{val:o,err:null}},Pe.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?ge(o*=r)?{val:o,err:null}:this.error(t,n):this.error(e,n)},Pe.prototype.offset=function(){return this.position.offset},Pe.prototype.isEOF=function(){return this.offset()===this.message.length},Pe.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},Pe.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=_e(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},Pe.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},Pe.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))},Pe.prototype.bumpIf=function(e){if(be(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},Pe.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)},Pe.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}},Pe.prototype.bumpSpace=function(){for(;!this.isEOF()&&Oe(this.char());)this.bump()},Pe.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},Pe);function Pe(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 ke(e){return 97<=e&&e<=122||65<=e&&e<=90}function Oe(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function xe(e,t){t=R({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r=new Se(e,t).parse();if(r.err){e=SyntaxError(N[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,B(e)||X(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else j(e)&&K(e.style)||(z(e)||V(e))&&W(e.style)?delete e.style.location:q(e)&&r(e.children)})}(r.val),r.val}function Me(e,t){var r=t&&t.cache?t.cache:De,n=t&&t.serializer?t.serializer:Re;return(t&&t.strategy?t.strategy:function(e,t){return Ie(e,this,1===e.length?Ne:Le,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function Ne(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 Le(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 Ie(e,t,r,n,i){return r.bind(t,e,n,i)}var Re=function(){return JSON.stringify(arguments)};function Fe(){this.cache=Object.create(null)}Fe.prototype.has=function(e){return e in this.cache},Fe.prototype.get=function(e){return this.cache[e]},Fe.prototype.set=function(e,t){this.cache[e]=t};var Ue,De={create:function(){return new Fe}},Ge={variadic:function(e,t){return Ie(e,this,Le,t.cache.create(),t.serializer)},monadic:function(e,t){return Ie(e,this,Ne,t.cache.create(),t.serializer)}};(H=Ue=Ue||{}).MISSING_VALUE="MISSING_VALUE",H.INVALID_VALUE="INVALID_VALUE",H.MISSING_INTL_API="MISSING_INTL_API";var $e,je,ze,Ve,Be,Xe=(M(dt,Be=Error),dt.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},dt),qe=(M(ft,Ve=Xe),ft),Ke=(M(Ye,ze=Xe),Ye),We=(M(He,je=Xe),He);function He(e,t){return je.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',Ue.MISSING_VALUE,t)||this}function Ye(e,t,r){return ze.call(this,'Value for "'+e+'" must be of type '+t,Ue.INVALID_VALUE,r)||this}function ft(e,t,r,n){return Ve.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',Ue.INVALID_VALUE,n)||this}function dt(e,t,r){e=Be.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&&$(e[0]))return[{type:$e.literal,value:e[0].value}];for(var a=[],l=0,c=e;l<c.length;l++){var u=c[l];if($(u))a.push({type:$e.literal,value:u.value});else if(u.type===L.pound)"number"==typeof o&&a.push({type:$e.literal,value:r.getNumberFormat(t).format(o)});else{var p=u.value;if(!(i&&p in i))throw new We(p,s);var h=i[p];if(u.type===L.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?$e.literal:$e.object,value:h});else if(z(u)){var f="string"==typeof u.style?n.date[u.style]:W(u.style)?u.style.parsedOptions:void 0;a.push({type:$e.literal,value:r.getDateTimeFormat(t,f).format(h)})}else if(V(u))f="string"==typeof u.style?n.time[u.style]:W(u.style)?u.style.parsedOptions:void 0,a.push({type:$e.literal,value:r.getDateTimeFormat(t,f).format(h)});else if(j(u))(f="string"==typeof u.style?n.number[u.style]:K(u.style)?u.style.parsedOptions:void 0)&&f.scale&&(h*=f.scale||1),a.push({type:$e.literal,value:r.getNumberFormat(t,f).format(h)});else{if(q(u)){var d=u.children,m=u.value,p=i[m];if("function"!=typeof p)throw new Ke(m,"function",s);d=p(mt(d,t,r,n,i,o).map(function(e){return e.value}));Array.isArray(d)||(d=[d]),a.push.apply(a,d.map(function(e){return{type:"string"==typeof e?$e.literal:$e.object,value:e}}))}if(B(u)){if(!(g=u.options[h]||u.options.other))throw new qe(u.value,h,Object.keys(u.options),s);a.push.apply(a,mt(g.value,t,r,n,i))}else if(X(u)){if(!(g=u.options["="+h])){if(!Intl.PluralRules)throw new Xe('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Ue.MISSING_INTL_API,s);var d=r.getPluralRules(t,{type:u.pluralType}).select(h-(u.offset||0)),g=u.options[d]||u.options.other}if(!g)throw new qe(u.value,h,Object.keys(u.options),s);a.push.apply(a,mt(g.value,t,r,n,i,h-(u.offset||0)))}}}}return a.length<2?a:a.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===$e.literal&&t.type===$e.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}}}}}(H=$e=$e||{})[H.literal=0]="literal",H[H.object=1]="object";var yt=(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=xe,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===$e.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])?R(R(R({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=R(R({},r[t]),n[t]||{}),e},{})):r),e},R({},i)):i),this.locales=t,this.formatters=n&&n.formatters||{getNumberFormat:Me(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,G([void 0],t)))},{cache:gt((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:Ge.variadic}),getDateTimeFormat:Me(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,G([void 0],t)))},{cache:gt(n.dateTime),strategy:Ge.variadic}),getPluralRules:Me(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,G([void 0],t)))},{cache:gt(n.pluralRules),strategy:Ge.variadic})}}const bt={},vt=(t,r)=>{if(null!=r){if(r in bt&&t in bt[r])return bt[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 Ct[e]||null}(n),i):null);if(s)return n=t,i=r,(s=s)&&(i in bt||(bt[i]={}),n in bt[i]||(bt[i][n]=s),s)}}};let Ct;const _t=v({});function Tt(e){return e in Ct}function At(t,...r){delete bt[t],_t.update(e=>(e[t]=O.all([e[t]||{},...r]),e))}u([_t],([e])=>Object.keys(e)),_t.subscribe(e=>Ct=e);const wt={};function St(e){return wt[e]}function Pt(e){return Ft(e).some(e=>{return null===(e=St(e))||void 0===e?void 0:e.size})}const kt={};function Ot(e){if(!Pt(e))return e in kt?kt[e]:void 0;const t=Ft(e).map(e=>{var t=St(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return kt[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=>At(t,...e))}(e))).then(()=>Pt(e)?Ot(e):void delete kt[e]),kt[e]}function xt(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 Mt={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 Nt=v(!1);let Lt;const It=v(null);function Rt(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Ft(e,t=Mt.fallbackLocale){e=Rt(e);return t?[...new Set([...e,...Rt(t)])]:e}It.subscribe(e=>{Lt=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const Ut=It.set;It.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)&&Pt(t)){var{loadingDelay:r}=Mt;let e;return"undefined"!=typeof window&&null!=Lt&&r?e=window.setTimeout(()=>Nt.set(!0),r):Nt.set(!0),Ot(t).then(()=>{Ut(t)}).finally(()=>{clearTimeout(e),Nt.set(!1)})}return Ut(t)},It.update=e=>Ut(e(Lt));const Dt=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},Gt=(e,t)=>{var{formats:r}=Mt;if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},$t=Dt(e=>{var{locale:t,format:r}=e,e=xt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=Gt("number",r)),new Intl.NumberFormat(t,e)}),jt=Dt(e=>{var{locale:t,format:r}=e,e=xt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=Gt("date",r):0===Object.keys(e).length&&(e=Gt("date","short")),new Intl.DateTimeFormat(t,e)}),zt=Dt(e=>{var{locale:t,format:r}=e,e=xt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=Gt("time",r):0===Object.keys(e).length&&(e=Gt("time","short")),new Intl.DateTimeFormat(t,e)}),Vt=Dt((e,t=Lt)=>new yt(e,t,Mt.formats,{ignoreTag:Mt.ignoreTag})),Bt=u([It,_t],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:r,locale:n=Lt,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 Mt.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${Ft(n).join('", "')}".${Pt(Lt)?"\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=Vt(o,n).format(r)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return s});u([It],()=>(e,t)=>((e={})=>{var{locale:t=Lt}=e,e=xt(e,["locale"]);return zt(Object.assign({locale:t},e))})(t).format(e)),u([It],()=>(e,t)=>((e={})=>{var{locale:t=Lt}=e,e=xt(e,["locale"]);return jt(Object.assign({locale:t},e))})(t).format(e)),u([It],()=>(e,t)=>((e={})=>{var{locale:t=Lt}=e,e=xt(e,["locale"]);return $t(Object.assign({locale:t},e))})(t).format(e)),u([It,_t],()=>(e,t=Lt)=>vt(e,t));const Xt={en:{registerFormStep3:{registerBackButton:"Back",registerAddress:"Address",registerAddressError:"Address must be at least 1 character long and 100 characters maximum.",registerPostalCode:"Postal Code",registerPostalCodeError:"Postal Code must be at least 1 character long and 20 characters maximum.",registerCity:"City",registerCityError:"City must be at least 1 character long and 50 characters maximum.",registerCountry:"Country",registerNationality:"Nationality",registerMobile:"Mobile",registerMobileError:"Mobile must be at least 5 character long and 20 characters maximum.",registerUserConsents:"I want to receive exclusive offers and bonuses. I am aware that I can unsubscribe whenever I want to.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"Email",registerTermsConditions:"I am at least 18 years old and I have read and accepted the Terms of Conditions.",registerTermsConditionsError:"Please accept the Terms and Conditions before proceeding.",registerOpenAccount:"Open Account"}},tr:{registerFormStep3:{registerBackButton:"Geri",registerAddress:"Adres",registerAddressError:"Adres en az 1 karakter uzunluğunda ve en fazla 100 karakter olmalıdır.",registerPostalCode:"Posta kodu",registerPostalCodeError:"Posta Kodu en az 1 karakter uzunluğunda ve en fazla 20 karakter olmalıdır.",registerCity:"Şehir",registerCityError:"Şehir en az 1 karakter uzunluğunda ve en fazla 50 karakter olmalıdır.",registerCountry:"Ülke",registerNationality:"Milliyet",registerMobile:"Mobil",registerMobileError:"Mobil en az 5 karakter uzunluğunda ve en fazla 20 karakter olmalıdır.",registerUserConsents:"Özel teklifler ve bonuslar almak istiyorum. İstediğim zaman abonelikten çıkabileceğimin farkındayım.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"E-posta",registerTermsConditions:"En az 18 yaşındayım ve Koşullar'ı okudum ve kabul ediyorum.",registerTermsConditionsError:"Lütfen devam etmeden önce Şartlar ve Koşulları kabul edin.",registerOpenAccount:"Hesap Aç"}},ro:{registerFormStep3:{registerBackButton:"Inapoi",registerAddress:"Adresa",registerAddressError:"Adresa trebuie sa fie cuprinsa in 1 si 100 de litere.",registerPostalCode:"Cod Postal",registerPostalCodeError:"Codul postal trebuie sa fie cuprins intre 1 si 20 de caractere.",registerCity:"Oras",registerCityError:"Orasul trebuie sa fie cuprins intre 1 si 50 de litere.",registerCountry:"Tara",registerNationality:"Nationalitatea",registerMobile:"Telefon",registerMobileError:"Telefonul trebuie sa fie cuprins intre 5 si 20 de cifre.",registerUserConsents:"Vreau sa primesc oferte si bonusuri exclusive. Sunt constient ca pot sa dau unsubscribe oricand.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"Email",registerTermsConditions:"Am minim 18 ani si am citit si acceptat Termenii si Conditiile",registerTermsConditionsError:"Te rog accepta Termenii si Conditiile",registerOpenAccount:"Inregistrare"}}};function qt(e,t,r){const n=e.slice();return n[57]=t[r],n}function Kt(e,t,r){const n=e.slice();return n[60]=t[r],n}function Wt(e,t,r){const n=e.slice();return n[63]=t[r],n}function Ht(e){let r,n;return{c(){r=rt("script"),r.src!==(n="//www.google.com/recaptcha/api.js?render="+e[1])&<(r,"src",n),r.async=!0,r.defer=!0},m(e,t){et(e,r,t)},p(e,t){2&t[0]&&r.src!==(n="//www.google.com/recaptcha/api.js?render="+e[1])&<(r,"src",n)},d(e){e&&tt(r)}}}function Yt(e){let r,n,i=e[23]("registerFormStep3.registerAddressError")+"";return{c(){r=rt("p"),n=it(i),lt(r,"class","InvalidInput")},m(e,t){et(e,r,t),Je(r,n)},p(e,t){8388608&t[0]&&i!==(i=e[23]("registerFormStep3.registerAddressError")+"")&&ct(n,i)},d(e){e&&tt(r)}}}function Zt(e){let r,n,i=e[23]("registerFormStep3.registerPostalCodeError")+"";return{c(){r=rt("p"),n=it(i),lt(r,"class","InvalidInput")},m(e,t){et(e,r,t),Je(r,n)},p(e,t){8388608&t[0]&&i!==(i=e[23]("registerFormStep3.registerPostalCodeError")+"")&&ct(n,i)},d(e){e&&tt(r)}}}function Qt(e){let r,n,i=e[23]("registerFormStep3.registerCityError")+"";return{c(){r=rt("p"),n=it(i),lt(r,"class","InvalidInput")},m(e,t){et(e,r,t),Je(r,n)},p(e,t){8388608&t[0]&&i!==(i=e[23]("registerFormStep3.registerCityError")+"")&&ct(n,i)},d(e){e&&tt(r)}}}function Jt(e){let r,n,i,o=e[63].Name+"";return{c(){r=rt("option"),n=it(o),r.__value=i=e[63].Alpha2Code,r.value=r.__value},m(e,t){et(e,r,t),Je(r,n)},p(e,t){2048&t[0]&&o!==(o=e[63].Name+"")&&ct(n,o),2048&t[0]&&i!==(i=e[63].Alpha2Code)&&(r.__value=i,r.value=r.__value)},d(e){e&&tt(r)}}}function er(e){let r,n,i,o=e[60].Name+"";return{c(){r=rt("option"),n=it(o),r.__value=i=e[60].Alpha2Code,r.value=r.__value},m(e,t){et(e,r,t),Je(r,n)},p(e,t){8192&t[0]&&o!==(o=e[60].Name+"")&&ct(n,o),8192&t[0]&&i!==(i=e[60].Alpha2Code)&&(r.__value=i,r.value=r.__value)},d(e){e&&tt(r)}}}function tr(e){let r,n,i,o=e[57].Prefix+"";return{c(){r=rt("option"),n=it(o),r.__value=i=e[57].Prefix,r.value=r.__value},m(e,t){et(e,r,t),Je(r,n)},p(e,t){65536&t[0]&&o!==(o=e[57].Prefix+"")&&ct(n,o),65536&t[0]&&i!==(i=e[57].Prefix)&&(r.__value=i,r.value=r.__value)},d(e){e&&tt(r)}}}function rr(e){let r,n,i=e[23]("registerFormStep3.registerMobileError")+"";return{c(){r=rt("p"),n=it(i),lt(r,"class","InvalidInput")},m(e,t){et(e,r,t),Je(r,n)},p(e,t){8388608&t[0]&&i!==(i=e[23]("registerFormStep3.registerMobileError")+"")&&ct(n,i)},d(e){e&&tt(r)}}}function nr(r){let n,i,o,s,a,l,c,u,p,h,f,d,m,g,y,E,b,v,C,_,T,A,w,S,P,k,O,x,M,N,L,I,R,F,U,D,G=r[23]("registerFormStep3.registerUserConsents")+"",$=r[23]("registerFormStep3.registerUserConsentsSMS")+"",j=r[23]("registerFormStep3.registerUserConsentsEmail")+"",z=r[23]("registerFormStep3.registerTermsConditions")+"",V=!r[21]&&ir(r);return{c(){n=rt("div"),i=rt("label"),o=it(G),s=ot(),a=rt("input"),l=ot(),c=rt("span"),u=ot(),p=rt("div"),h=rt("label"),f=it($),d=ot(),m=rt("input"),y=ot(),E=rt("span"),b=ot(),v=rt("label"),C=it(j),_=ot(),T=rt("input"),w=ot(),S=rt("span"),P=ot(),k=rt("div"),O=rt("label"),x=it(z),M=ot(),N=rt("input"),L=ot(),I=rt("span"),R=ot(),V&&V.c(),F=st(),lt(a,"type","Checkbox"),a.checked=r[18],lt(c,"class","Checkmark"),lt(i,"class","Offers"),lt(m,"type","Checkbox"),m.disabled=g=!r[18],m.checked=r[19],lt(E,"class","Checkmark"),lt(h,"class","OffersMethod"),lt(T,"type","Checkbox"),T.disabled=A=!r[18],T.checked=r[20],lt(S,"class","Checkmark"),lt(v,"class","OffersMethod"),lt(p,"class","OffersMethodsWrapper"),lt(n,"class","OffersContainer"),lt(N,"type","Checkbox"),N.checked=r[21],lt(I,"class","Checkmark"),lt(O,"class","AgeConsent"),lt(k,"class","AgeContainer")},m(e,t){et(e,n,t),Je(n,i),Je(i,o),Je(i,s),Je(i,a),Je(i,l),Je(i,c),Je(n,u),Je(n,p),Je(p,h),Je(h,f),Je(h,d),Je(h,m),Je(h,y),Je(h,E),Je(p,b),Je(p,v),Je(v,C),Je(v,_),Je(v,T),Je(v,w),Je(v,S),et(e,P,t),et(e,k,t),Je(k,O),Je(O,x),Je(O,M),Je(O,N),Je(O,L),Je(O,I),et(e,R,t),V&&V.m(e,t),et(e,F,t),U||(D=[at(a,"click",r[43]),at(m,"click",r[44]),at(T,"click",r[45]),at(N,"click",r[46])],U=!0)},p(e,t){8388608&t[0]&&G!==(G=e[23]("registerFormStep3.registerUserConsents")+"")&&ct(o,G),262144&t[0]&&(a.checked=e[18]),8388608&t[0]&&$!==($=e[23]("registerFormStep3.registerUserConsentsSMS")+"")&&ct(f,$),262144&t[0]&&g!==(g=!e[18])&&(m.disabled=g),524288&t[0]&&(m.checked=e[19]),8388608&t[0]&&j!==(j=e[23]("registerFormStep3.registerUserConsentsEmail")+"")&&ct(C,j),262144&t[0]&&A!==(A=!e[18])&&(T.disabled=A),1048576&t[0]&&(T.checked=e[20]),8388608&t[0]&&z!==(z=e[23]("registerFormStep3.registerTermsConditions")+"")&&ct(x,z),2097152&t[0]&&(N.checked=e[21]),e[21]?V&&(V.d(1),V=null):V?V.p(e,t):(V=ir(e),V.c(),V.m(F.parentNode,F))},d(e){e&&tt(n),e&&tt(P),e&&tt(k),e&&tt(R),V&&V.d(e),e&&tt(F),U=!1,Qe(D)}}}function ir(e){let r,n,i,o=e[23]("registerFormStep3.registerTermsConditionsError")+"";return{c(){r=rt("div"),n=rt("p"),i=it(o),lt(r,"class","NotificationContainer")},m(e,t){et(e,r,t),Je(r,n),Je(n,i)},p(e,t){8388608&t[0]&&o!==(o=e[23]("registerFormStep3.registerTermsConditionsError")+"")&&ct(i,o)},d(e){e&&tt(r)}}}function or(e){let r,n,i;return{c(){r=rt("div"),n=rt("p"),i=it(e[7]),lt(n,"class","RegisterError")},m(e,t){et(e,r,t),Je(r,n),Je(n,i)},p(e,t){128&t[0]&&ct(i,e[7])},d(e){e&&tt(r)}}}function sr(r){let s,n,a,i,o,l,c,u,p,h,f,d,m,g,y,E,b,v,C,_,T,A,w,S,e,P,k,O,x,M,N,L,I,R,F,U,D,G,$,j,z,V,B,X,q,K,W,H,Y,Z,Q,J,ee,te,re,ne,ie,oe,se,ae,le,ce,ue,pe,he,fe,de,me,ge,ye,Ee,be,ve,Ce,_e,Te,Ae,we,Se,Pe,ke,Oe,xe=r[23]("registerFormStep3.registerBackButton")+"",Me=r[23]("registerFormStep3.registerAddress")+"",Ne=r[23]("registerFormStep3.registerPostalCode")+"",Le=r[23]("registerFormStep3.registerCity")+"",Ie=r[23]("registerFormStep3.registerCountry")+"",Re=r[23]("registerFormStep3.registerNationality")+"",Fe=r[23]("registerFormStep3.registerMobile")+"",Ue=r[23]("registerFormStep3.registerOpenAccount")+"",De=r[1]&&Ht(r),Ge=r[2]&&Yt(r),$e=r[3]&&Zt(r),je=r[5]&&Qt(r),ze=r[11],Ve=[];for(let e=0;e<ze.length;e+=1)Ve[e]=Jt(Wt(r,ze,e));let Be=r[13],Xe=[];for(let e=0;e<Be.length;e+=1)Xe[e]=er(Kt(r,Be,e));let qe=r[16],Ke=[];for(let e=0;e<qe.length;e+=1)Ke[e]=tr(qt(r,qe,e));let We=r[4]&&rr(r),He=r[0]&&nr(r),Ye=r[6]&&or(r);return{c(){De&&De.c(),s=st(),n=ot(),a=rt("div"),i=ot(),o=rt("div"),l=rt("button"),c=nt("svg"),u=nt("defs"),p=nt("style"),h=it(".a{fill:var(--emfe-w-color-primary, #D0046C);}"),f=nt("path"),d=ot(),m=it(xe),g=ot(),y=rt("div"),E=rt("div"),b=rt("div"),v=rt("label"),C=it(Me),_=it(":"),T=rt("span"),T.textContent="*",A=ot(),w=rt("input"),S=ot(),Ge&&Ge.c(),P=ot(),k=rt("div"),O=rt("label"),x=it(Ne),M=it(":"),N=rt("span"),N.textContent="*",L=ot(),I=rt("input"),R=ot(),$e&&$e.c(),U=ot(),D=rt("div"),G=rt("label"),$=it(Le),j=it(":"),z=rt("span"),z.textContent="*",V=ot(),B=rt("input"),X=ot(),je&&je.c(),K=ot(),W=rt("div"),H=rt("label"),Y=it(Ie),Z=it(":"),Q=rt("span"),Q.textContent="*",J=ot(),ee=rt("select");for(let e=0;e<Ve.length;e+=1)Ve[e].c();te=ot(),re=rt("div"),ne=rt("label"),ie=it(Re),oe=it(":"),se=rt("span"),se.textContent="*",ae=ot(),le=rt("select");for(let e=0;e<Xe.length;e+=1)Xe[e].c();ce=ot(),ue=rt("div"),pe=rt("label"),he=it(Fe),fe=it(":"),de=rt("span"),de.textContent="*",me=ot(),ge=rt("div"),ye=rt("select");for(let e=0;e<Ke.length;e+=1)Ke[e].c();Ee=ot(),be=rt("input"),ve=ot(),We&&We.c(),_e=ot(),He&&He.c(),Te=ot(),Ye&&Ye.c(),Ae=ot(),we=rt("button"),Se=it(Ue),this.c=Ze,lt(a,"class","g-recaptcha"),lt(a,"data-sitekey",r[1]),lt(f,"class","a"),lt(f,"d","M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z"),lt(f,"transform","translate(24 24) rotate(180)"),lt(c,"xmlns","http://www.w3.org/2000/svg"),lt(c,"viewBox","0 0 24 24"),lt(l,"class","BackButton"),lt(o,"class","RegisterFormHeader"),lt(T,"class","FormRequired"),lt(v,"for","Address"),lt(w,"type","text"),lt(w,"id","Address"),lt(b,"class",e="AddressContainer "+(r[2]?"InvalidField":"")),lt(N,"class","FormRequired"),lt(O,"for","PostalCode"),lt(I,"type","text"),lt(I,"id","PostalCode"),lt(k,"class",F="PostalCodeContainer "+(r[3]?"InvalidField":"")),lt(E,"class","AddressPostalCodeContainer"),lt(z,"class","FormRequired"),lt(G,"for","City"),lt(B,"type","text"),lt(B,"id","City"),lt(D,"class",q="CityContainer "+(r[5]?"InvalidField":"")),lt(Q,"class","FormRequired"),lt(H,"for","Country"),lt(ee,"id","Country"),void 0===r[12]&&ht(()=>r[39].call(ee)),lt(W,"class","CountryContainer"),lt(se,"class","FormRequired"),lt(ne,"for","Nationality"),lt(le,"id","Nationality"),void 0===r[14]&&ht(()=>r[40].call(le)),lt(re,"class","NationalityContainer"),lt(de,"class","FormRequired"),lt(pe,"for","Mobile"),lt(ye,"class","MobilePrefixSelected"),void 0===r[17]&&ht(()=>r[41].call(ye)),lt(be,"type","text"),lt(be,"oninput","this.value = this.value.replace(/[^0-9.]/g, ''); this.value = this.value.replace(/(\\..*)\\./g, '$1');"),lt(be,"id","Mobile"),lt(be,"class","MobileInput"),lt(ge,"class","MobileWrapper"),lt(ue,"class",Ce="MobileContainer "+(r[4]?"InvalidField":"")),lt(y,"class","RegisterFormContent"),lt(we,"class","RegisterStepNext"),we.disabled=Pe=!r[22]},m(e,t){De&&De.m(document.head,null),Je(document.head,s),et(e,n,t),et(e,a,t),et(e,i,t),et(e,o,t),Je(o,l),Je(l,c),Je(c,u),Je(u,p),Je(p,h),Je(c,f),Je(l,d),Je(l,m),et(e,g,t),et(e,y,t),Je(y,E),Je(E,b),Je(b,v),Je(v,C),Je(v,_),Je(v,T),Je(b,A),Je(b,w),ut(w,r[8]),Je(b,S),Ge&&Ge.m(b,null),Je(E,P),Je(E,k),Je(k,O),Je(O,x),Je(O,M),Je(O,N),Je(k,L),Je(k,I),ut(I,r[9]),Je(k,R),$e&&$e.m(k,null),Je(y,U),Je(y,D),Je(D,G),Je(G,$),Je(G,j),Je(G,z),Je(D,V),Je(D,B),ut(B,r[10]),Je(D,X),je&&je.m(D,null),Je(y,K),Je(y,W),Je(W,H),Je(H,Y),Je(H,Z),Je(H,Q),Je(W,J),Je(W,ee);for(let e=0;e<Ve.length;e+=1)Ve[e].m(ee,null);pt(ee,r[12]),Je(y,te),Je(y,re),Je(re,ne),Je(ne,ie),Je(ne,oe),Je(ne,se),Je(re,ae),Je(re,le);for(let e=0;e<Xe.length;e+=1)Xe[e].m(le,null);pt(le,r[14]),Je(y,ce),Je(y,ue),Je(ue,pe),Je(pe,he),Je(pe,fe),Je(pe,de),Je(ue,me),Je(ue,ge),Je(ge,ye);for(let e=0;e<Ke.length;e+=1)Ke[e].m(ye,null);pt(ye,r[17]),Je(ge,Ee),Je(ge,be),ut(be,r[15]),Je(ge,ve),We&&We.m(ge,null),Je(y,_e),He&&He.m(y,null),et(e,Te,t),Ye&&Ye.m(e,t),et(e,Ae,t),et(e,we,t),Je(we,Se),ke||(Oe=[at(l,"click",r[33]),at(w,"input",r[36]),at(w,"blur",r[24]),at(I,"input",r[37]),at(I,"blur",r[25]),at(B,"input",r[38]),at(B,"blur",r[26]),at(ee,"change",r[39]),at(le,"change",r[40]),at(ye,"change",r[41]),at(be,"input",r[42]),at(be,"keyup",r[27]),at(we,"click",r[32])],ke=!0)},p(t,r){if(t[1]?De?De.p(t,r):(De=Ht(t),De.c(),De.m(s.parentNode,s)):De&&(De.d(1),De=null),2&r[0]&<(a,"data-sitekey",t[1]),8388608&r[0]&&xe!==(xe=t[23]("registerFormStep3.registerBackButton")+"")&&ct(m,xe),8388608&r[0]&&Me!==(Me=t[23]("registerFormStep3.registerAddress")+"")&&ct(C,Me),256&r[0]&&w.value!==t[8]&&ut(w,t[8]),t[2]?Ge?Ge.p(t,r):(Ge=Yt(t),Ge.c(),Ge.m(b,null)):Ge&&(Ge.d(1),Ge=null),4&r[0]&&e!==(e="AddressContainer "+(t[2]?"InvalidField":""))&<(b,"class",e),8388608&r[0]&&Ne!==(Ne=t[23]("registerFormStep3.registerPostalCode")+"")&&ct(x,Ne),512&r[0]&&I.value!==t[9]&&ut(I,t[9]),t[3]?$e?$e.p(t,r):($e=Zt(t),$e.c(),$e.m(k,null)):$e&&($e.d(1),$e=null),8&r[0]&&F!==(F="PostalCodeContainer "+(t[3]?"InvalidField":""))&<(k,"class",F),8388608&r[0]&&Le!==(Le=t[23]("registerFormStep3.registerCity")+"")&&ct($,Le),1024&r[0]&&B.value!==t[10]&&ut(B,t[10]),t[5]?je?je.p(t,r):(je=Qt(t),je.c(),je.m(D,null)):je&&(je.d(1),je=null),32&r[0]&&q!==(q="CityContainer "+(t[5]?"InvalidField":""))&<(D,"class",q),8388608&r[0]&&Ie!==(Ie=t[23]("registerFormStep3.registerCountry")+"")&&ct(Y,Ie),2048&r[0]){let e;for(ze=t[11],e=0;e<ze.length;e+=1){var n=Wt(t,ze,e);Ve[e]?Ve[e].p(n,r):(Ve[e]=Jt(n),Ve[e].c(),Ve[e].m(ee,null))}for(;e<Ve.length;e+=1)Ve[e].d(1);Ve.length=ze.length}if(6144&r[0]&&pt(ee,t[12]),8388608&r[0]&&Re!==(Re=t[23]("registerFormStep3.registerNationality")+"")&&ct(ie,Re),8192&r[0]){let e;for(Be=t[13],e=0;e<Be.length;e+=1){var i=Kt(t,Be,e);Xe[e]?Xe[e].p(i,r):(Xe[e]=er(i),Xe[e].c(),Xe[e].m(le,null))}for(;e<Xe.length;e+=1)Xe[e].d(1);Xe.length=Be.length}if(24576&r[0]&&pt(le,t[14]),8388608&r[0]&&Fe!==(Fe=t[23]("registerFormStep3.registerMobile")+"")&&ct(he,Fe),65536&r[0]){let e;for(qe=t[16],e=0;e<qe.length;e+=1){var o=qt(t,qe,e);Ke[e]?Ke[e].p(o,r):(Ke[e]=tr(o),Ke[e].c(),Ke[e].m(ye,null))}for(;e<Ke.length;e+=1)Ke[e].d(1);Ke.length=qe.length}196608&r[0]&&pt(ye,t[17]),32768&r[0]&&be.value!==t[15]&&ut(be,t[15]),t[4]?We?We.p(t,r):(We=rr(t),We.c(),We.m(ge,null)):We&&(We.d(1),We=null),16&r[0]&&Ce!==(Ce="MobileContainer "+(t[4]?"InvalidField":""))&<(ue,"class",Ce),t[0]?He?He.p(t,r):(He=nr(t),He.c(),He.m(y,null)):He&&(He.d(1),He=null),t[6]?Ye?Ye.p(t,r):(Ye=or(t),Ye.c(),Ye.m(Ae.parentNode,Ae)):Ye&&(Ye.d(1),Ye=null),8388608&r[0]&&Ue!==(Ue=t[23]("registerFormStep3.registerOpenAccount")+"")&&ct(Se,Ue),4194304&r[0]&&Pe!==(Pe=!t[22])&&(we.disabled=Pe)},i:Ze,o:Ze,d(e){De&&De.d(e),tt(s),e&&tt(n),e&&tt(a),e&&tt(i),e&&tt(o),e&&tt(g),e&&tt(y),Ge&&Ge.d(),$e&&$e.d(),je&&je.d(),t(Ve,e),t(Xe,e),t(Ke,e),We&&We.d(),He&&He.d(),e&&tt(Te),Ye&&Ye.d(e),e&&tt(Ae),e&&tt(we),ke=!1,Qe(Oe)}}}function ar(t,e,r){let n;var i=Bt;t.$$.on_destroy.push(F(i,e=>r(23,n=e)));let{userconsentsexist:o=!1}=e,{endpoint:s=""}=e,{captchakey:a=""}=e,{lang:l=""}=e,c="",u="",p="",h="",f=!1,d="",m="",g="",y="",E=[],b="",v=[],C="",_="",T=[],A="",w=!1,S=!1,P=!1,k=!1,O=!1;Object.keys(Xt).forEach(e=>{At(e,Xt[e])});const x=()=>{r(22,O=!(c||u||h||p||f||o&&k)),(m.length<=0||g.length<=0||y.length<=0||_.length<=0)&&r(22,O=!1)},M=()=>{!1===w?r(18,w=!0):(r(18,w=!1),r(19,S=!1),r(20,P=!1))},N=()=>{r(19,S=!1===S)},L=()=>{r(20,P=!1===P)},I=()=>{r(21,k=!1===k),x()},R=e=>{if(e.data)switch(e.data.type){case"StepThreeDataBackup":r(8,m=e.data.userData.address1),r(9,g=e.data.userData.postalCode),r(10,y=e.data.userData.city),r(12,b=e.data.userData.country),r(14,C=e.data.userData.nationality),r(17,A=e.data.userData.mobile.prefix),r(15,_=e.data.userData.mobile.number),r(19,S=e.data.userData.userConsents.additionalProp1),r(20,P=e.data.userData.userConsents.additionalProp2),r(21,k=e.data.userData.userConsents.additionalProp3),x();break;case"ShowRegistrationError":r(6,f=e.data.showError),r(7,d=e.data.error)}};return e=()=>(window.addEventListener("message",R,!1),()=>{window.removeEventListener("message",R)}),function(){if(!D)throw new Error("Function called outside component initialization");return D}().$$.on_mount.push(e),t.$$set=e=>{"userconsentsexist"in e&&r(0,o=e.userconsentsexist),"endpoint"in e&&r(34,s=e.endpoint),"captchakey"in e&&r(1,a=e.captchakey),"lang"in e&&r(35,l=e.lang)},t.$$.update=()=>{var e;8&t.$$.dirty[1]&&s&&fetch(`${s}/player/countries`).then(e=>e.json()).then(e=>{r(11,E=e.countries),b||r(12,b=E[0].Alpha2Code),r(13,v=e.countries),C||r(14,C=v[0].Alpha2Code)}),8&t.$$.dirty[1]&&s&&fetch(`${s}/player/phonecodes`).then(e=>e.json()).then(e=>{r(16,T=e.phoneCodes),A||r(17,A=T[0].Prefix)}),16&t.$$.dirty[1]&&l&&(e=l,It.set(e))},[o,a,c,u,p,h,f,d,m,g,y,E,b,v,C,_,T,A,w,S,P,k,O,n,()=>{r(2,c=!(m&&m.length<=100)),x()},()=>{r(3,u=!(g&&g.length<=20)),x()},()=>{r(5,h=!(y&&y.length<=50)),x()},()=>{r(4,p=!(_&&5<=_.length&&_.length<=30)),x()},M,N,L,I,()=>{let t;new Promise((t,e)=>{grecaptcha.ready(()=>{grecaptcha.execute(a,{action:"submit"}).then(e=>{t(e)})})}).then(e=>{t={address:m,postalCode:g,city:y,countrySelected:b,nationalitySelected:C,mobilePrefixSelected:A,mobile:_,consentOffersSms:S,consentOffersEmail:P,consentTerms:k,token:e},window.postMessage({type:"RegisterStepThree",registerStepThreeData:t},window.location.href)})},()=>{var e={address:m,postalCode:g,city:y,countrySelected:b,nationalitySelected:C,mobilePrefixSelected:A,mobile:_,consentOffersSms:S,consentOffersEmail:P,consentTerms:k};window.postMessage({type:"GoBackStepThree",registerStepThreeData:e},window.location.href)},s,l,function(){m=this.value,r(8,m)},function(){g=this.value,r(9,g)},function(){y=this.value,r(10,y)},function(){b=U(this),r(12,b),r(11,E)},function(){C=U(this),r(14,C),r(13,v)},function(){A=U(this),r(17,A),r(16,T)},function(){_=this.value,r(15,_)},()=>M(),()=>N(),()=>L(),()=>I()]}class lr 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:var(--emfe-w-color-contrast, #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:var(--emfe-w-color-primary, #D0046C)}.AddressPostalCodeContainer{display:flex;gap:16px}.CountryContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.CountryContainer select{width:100%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);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 var(--emfe-w-color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.CountryContainer select:focus,.CountryContainer select :focus-within,.CountryContainer select :focus-visible,.CountryContainer select :visited{border:1px solid var(--emfe-w-color-primary, #D0046C);box-shadow:0 0 0 1pt var(--emfe-w-color-primary, #D0046C)}.AddressContainer,.PostalCodeContainer,.CityContainer,.CountryContainer,.NationalityContainer,.MobileContainer{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:30px;position:relative}.AddressContainer label,.PostalCodeContainer label,.CityContainer label,.CountryContainer label,.NationalityContainer label,.MobileContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.AddressContainer input,.PostalCodeContainer input,.CityContainer input,.CountryContainer select,.NationalityContainer select,.MobileContainer input,.MobileContainer select{width:100%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;padding:5px;font-size:14px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.AddressContainer.InvalidField input,.PostalCodeContainer.InvalidField input,.CityContainer.InvalidField input,.MobileContainer.InvalidField input{border:1px solid var(--emfe-w-color-primary, #D0046C);background:var(--emfe-w-color-primary-50, #FBECF4);color:var(--emfe-w-color-primary, #D0046C)}.AddressContainer{width:65%}.PostalCodeContainer{width:35%}.MobileWrapper{display:flex;gap:16px}.MobileWrapper .MobilePrefixSelected{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 var(--emfe-w-color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.MobileWrapper .MobilePrefixSelected:focus,.MobileWrapper .MobilePrefixSelected :focus-within,.MobileWrapper .MobilePrefixSelected :focus-visible,.MobileWrapper .MobilePrefixSelected :visited{border:1px solid var(--emfe-w-color-primary, #D0046C);box-shadow:0 0 0 1pt var(--emfe-w-color-primary, #D0046C)}.MobileWrapper .MobileInput{width:70%}.FormRequired{color:var(--emfe-w-color-secondary, #FD2839)}.InvalidInput{color:var(--emfe-w-color-primary, #D0046C);font-size:10px;position:absolute;bottom:-3px;line-height:10px}.OffersMethodsWrapper{padding-left:32px}.Offers,.OffersMethod,.AgeConsent{display:block;position:relative;padding:5.008px 0 0 35.008px;margin-bottom:16px;font-size:16px;user-select:none;line-height:19.2px}.Offers input,.OffersMethod input,.AgeConsent input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.Offers .Checkmark,.OffersMethod .Checkmark,.AgeConsent .Checkmark{position:absolute;top:0;left:0;height:25.008px;width:25.008px;background-color:var(--emfe-w-color-gray-100, #E6E6E6);border-radius:50%}.Offers input:checked~.Checkmark,.OffersMethod input:checked~.Checkmark,.AgeConsent input:checked~.Checkmark{background-color:var(--emfe-w-color-primary, #D0046C)}.Offers .Checkmark:after,.OffersMethod .Checkmark:after,.AgeConsent .Checkmark:after{content:\"\";position:absolute;display:none;left:9.008px;top:5.008px;width:5.008px;height:10px;border:solid white;border-width:0 3.008px 3.008px 0;transform:rotate(45deg)}.Offers input:checked~.Checkmark:after,.OffersMethod input:checked~.Checkmark:after,.AgeConsent input:checked~.Checkmark:after{display:block}.NotificationContainer{margin-top:32px}.NotificationContainer p{color:var(--emfe-w-color-secondary, #FD2839);font-size:14px}.RegisterError{color:var(--emfe-w-color-secondary, #FD2839);font-size:16px;line-height:19.2px}.RegisterStepNext{color:var(--emfe-w-color-white, #FFFFFF);background:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.RegisterStepNext[disabled]{background:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);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},ar,sr,r,{userconsentsexist:0,endpoint:34,captchakey:1,lang:35},[-1,-1,-1]),e&&(e.target&&et(e.target,this,e.anchor),e.props&&(this.$set(e.props),E()))}static get observedAttributes(){return["userconsentsexist","endpoint","captchakey","lang"]}get userconsentsexist(){return this.$$.ctx[0]}set userconsentsexist(e){this.$set({userconsentsexist:e}),E()}get endpoint(){return this.$$.ctx[34]}set endpoint(e){this.$set({endpoint:e}),E()}get captchakey(){return this.$$.ctx[1]}set captchakey(e){this.$set({captchakey:e}),E()}get lang(){return this.$$.ctx[35]}set lang(e){this.$set({lang:e}),E()}}return customElements.get("general-player-register-form-step3")||customElements.define("general-player-register-form-step3",lr),lr});
|
|
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 Ze(){}function p(e){return e()}function h(){return Object.create(null)}function Qe(e){e.forEach(p)}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 F(e,...t){if(null==e)return Ze;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function Je(e,t){e.appendChild(t)}function et(e,t,r){e.insertBefore(t,r||null)}function tt(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 rt(e){return document.createElement(e)}function nt(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function it(e){return document.createTextNode(e)}function ot(){return it(" ")}function st(){return it("")}function at(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function lt(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function ct(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function ut(e,t){e.value=null==t?"":t}function pt(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 U(e){e=e.querySelector(":checked")||e.options[0];return e&&e.__value}let D;function d(e){D=e}const m=[],e=[],n=[],i=[],g=Promise.resolve();let y=!1;function ht(e){n.push(e)}let o=!1;const s=new Set;function E(){if(!o){o=!0;do{for(let e=0;e<m.length;e+=1){var t=m[e];d(t),function(e){{var t;null!==e.fragment&&(e.update(),Qe(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(ht))}}(t.$$)}for(d(null),m.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,m.length);for(;i.length;)i.pop()();y=!1,o=!1,s.clear()}}const b=new Set;function a(n,e,t,r,i,o,s=[-1]){var a,l=D;d(n);const c=n.$$={fragment:null,ctx:null,props:o,update:Ze,not_equal:i,bound:h(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:h(),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]&&(m.push(e),y||(y=!0,g.then(E)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],c.update(),u=!0,Qe(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){const Ze=(r=e.target,Array.from(r.childNodes));c.fragment&&c.fragment.l(Ze),Ze.forEach(tt)}else c.fragment&&c.fragment.c();e.intro&&(a=n.$$.fragment)&&a.i&&(b.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||ht(()=>{var e=o.map(p).filter(f);s?s.push(...e):Qe(e),t.$$.on_mount=[]}),a.forEach(ht)}(n,e.target,e.anchor,e.customElement),E()}d(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(p).filter(f);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){Qe(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(Qe(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=Ze}$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 v(n,i=Ze){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=Ze){const r=[e,t];return s.push(r),1===s.length&&(o=i(a)||Ze),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:v(t,t=>{let r=!1;const n=[];let i=0,o=Ze;const s=()=>{var e;i||(o(),e=a(l?n[0]:n,t),u?t(e):o=f(e)?e:Ze)},e=c.map((e,t)=>F(e,e=>{n[t]=e,i&=~(1<<t),r&&s()},()=>{i|=1<<t}));return r=!0,s(),function(){Qe(e),o()}}).subscribe}}var C=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===_));var t},_="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function T(e,t){return!1!==t.clone&&t.isMergeableObject(e)?k(Array.isArray(e)?[]:{},e,t):e}function A(e,t,r){return e.concat(t).map(function(e){return T(e,r)})}function w(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function S(e,t){try{return t in e}catch(e){return!1}}function P(n,i,o){var s={};return o.isMergeableObject(n)&&w(n).forEach(function(e){s[e]=T(n[e],o)}),w(i).forEach(function(t){var e,r;(!S(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(S(n,t)&&o.isMergeableObject(i[t])?s[t]=function(){if(!o.customMerge)return k;var e=o.customMerge(t);return"function"==typeof e?e:k}()(n[t],i[t],o):s[t]=T(i[t],o))}),s}function k(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||A,r.isMergeableObject=r.isMergeableObject||C,r.cloneUnlessOtherwiseSpecified=T;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):P(e,t,r):T(t,r)}k.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return k(e,t,r)},{})};var O=k,x=function(e,t){return(x=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 M(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}x(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var N,L,I,R=function(){return(R=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 G(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e}function $(e){return e.type===L.literal}function j(e){return e.type===L.number}function z(e){return e.type===L.date}function V(e){return e.type===L.time}function B(e){return e.type===L.select}function X(e){return e.type===L.plural}function q(e){return e.type===L.tag}function K(e){return e&&"object"==typeof e&&e.type===I.number}function W(e){return e&&"object"==typeof e&&e.type===I.dateTime}(fe=N=N||{})[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",(de=L=L||{})[de.literal=0]="literal",de[de.argument=1]="argument",de[de.number=2]="number",de[de.date=3]="date",de[de.time=4]="time",de[de.select=5]="select",de[de.plural=6]="plural",de[de.pound=7]="pound",de[de.tag=8]="tag",(me=I=I||{})[me.number=0]="number",me[me.dateTime=1]="dateTime";var H=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Y=/(?:[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 Z,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=R(R(R({},s),{notation:"scientific"}),i.options.reduce(function(e,t){return R(R({},e),oe(t))},{}));continue;case"engineering":s=R(R(R({},s),{notation:"engineering"}),i.options.reduce(function(e,t){return R(R({},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=R(R({},s),ne(i.options[0])))}else ee.test(i.stem)?s=R(R({},s),ne(i.stem)):((n=ie(i.stem))&&(s=R(R({},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=R(R({},s),n)))}return s}var ae=new RegExp("^"+H.source+"*"),le=new RegExp(H.source+"*$");function ce(e,t){return{start:e,end:t}}var ue=!!String.prototype.startsWith,pe=!!String.fromCodePoint,he=!!Object.fromEntries,fe=!!String.prototype.codePointAt,de=!!String.prototype.trimStart,me=!!String.prototype.trimEnd,ge=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},H=!0;try{H="a"===(null===(Z=we("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Z?void 0:Z[0])}catch(Ze){H=!1}var ye,Ee,be=ue?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},ve=pe?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},Ce=he?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},_e=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}},Te=de?function(e){return e.trimStart()}:function(e){return e.replace(ae,"")},Ae=me?function(e){return e.trimEnd()}:function(e){return e.replace(le,"")};function we(e,t){return new RegExp(e,t)}Ee=H?(ye=we("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return ye.lastIndex=t,null!==(e=ye.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var r,n=[];;){var i=_e(e,t);if(void 0===i||Oe(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 ve.apply(void 0,n)};var Se=(Pe.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},Pe.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(N.UNMATCHED_CLOSING_TAG,ce(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&ke(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:L.pound,location:ce(o,this.clonePosition())})}}}return{val:n,err:null}},Pe.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:L.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()||!ke(this.char()))return this.error(N.INVALID_TAG,ce(t,this.clonePosition()));i=this.clonePosition();return n!==this.parseTagName()?this.error(N.UNMATCHED_CLOSING_TAG,ce(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:L.tag,value:n,children:e,location:ce(r,this.clonePosition())},err:null}:this.error(N.INVALID_TAG,ce(t,this.clonePosition())))}return this.error(N.UNCLOSED_TAG,ce(r,this.clonePosition()))}return this.error(N.INVALID_TAG,ce(r,this.clonePosition()))},Pe.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())},Pe.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:L.literal,value:n,location:r},err:null}},Pe.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ke(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},Pe.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 ve.apply(void 0,t)},Pe.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(),ve(r))},Pe.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE,ce(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(N.EMPTY_ARGUMENT,ce(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(N.MALFORMED_ARGUMENT,ce(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE,ce(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:L.argument,value:n,location:ce(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE,ce(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(N.MALFORMED_ARGUMENT,ce(r,this.clonePosition()))}},Pe.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Ee(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:ce(e,this.clonePosition())}},Pe.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(N.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((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(p=Ae(h.val)).length)return this.error(N.EXPECT_ARGUMENT_STYLE,ce(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:ce(c,this.clonePosition())}}if((f=this.tryParseArgumentClose(n)).err)return f;var u=ce(n,this.clonePosition());if(l&&be(null==l?void 0:l.style,"::",0)){c=Te(l.style.slice(2));if("number"===s)return(h=this.parseNumberSkeletonFromString(c,l.styleLocation)).err?h:{val:{type:L.number,value:r,location:u,style:h.val},err:null};if(0===c.length)return this.error(N.EXPECT_DATE_TIME_SKELETON,u);var p={type:I.dateTime,pattern:c,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},c.replace(Y,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?L.date:L.time,value:r,location:u,style:p},err:null}}return{val:{type:"number"===s?L.number:"date"===s?L.date:L.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(N.EXPECT_SELECT_ARGUMENT_OPTIONS,ce(l,R({},l)));this.bumpSpace();var h,u=this.parseIdentifierIfPossible(),l=0;if("select"!==s&&"offset"===u.value){if(!this.bumpIf(":"))return this.error(N.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ce(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(N.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,N.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),u=this.parseIdentifierIfPossible(),l=h.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:L.select,value:r,options:Ce(u.val),location:f},err:null}:{val:{type:L.plural,value:r,options:Ce(u.val),offset:l,pluralType:"plural"===s?"cardinal":"ordinal",location:f},err:null};default:return this.error(N.INVALID_ARGUMENT_TYPE,ce(o,a))}},Pe.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE,ce(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},Pe.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(N.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}},Pe.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(N.INVALID_NUMBER_SKELETON,t)}return{val:{type:I.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?se(r):{}},err:null}},Pe.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(N.EXPECT_PLURAL_ARGUMENT_SELECTOR,N.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?N.DUPLICATE_SELECT_ARGUMENT_SELECTOR:N.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?N.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:N.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(p);if(c.err)return c;o.push([a,{value:u.val,location:ce(p,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(p=this.parseIdentifierIfPossible()).value,l=p.location}return 0===o.length?this.error("select"===t?N.EXPECT_SELECT_ARGUMENT_SELECTOR:N.EXPECT_PLURAL_ARGUMENT_SELECTOR,ce(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(N.MISSING_OTHER_CLAUSE,ce(this.clonePosition(),this.clonePosition())):{val:o,err:null}},Pe.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?ge(o*=r)?{val:o,err:null}:this.error(t,n):this.error(e,n)},Pe.prototype.offset=function(){return this.position.offset},Pe.prototype.isEOF=function(){return this.offset()===this.message.length},Pe.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},Pe.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=_e(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},Pe.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},Pe.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))},Pe.prototype.bumpIf=function(e){if(be(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},Pe.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)},Pe.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}},Pe.prototype.bumpSpace=function(){for(;!this.isEOF()&&Oe(this.char());)this.bump()},Pe.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},Pe);function Pe(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 ke(e){return 97<=e&&e<=122||65<=e&&e<=90}function Oe(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function xe(e,t){t=R({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r=new Se(e,t).parse();if(r.err){e=SyntaxError(N[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,B(e)||X(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else j(e)&&K(e.style)||(z(e)||V(e))&&W(e.style)?delete e.style.location:q(e)&&r(e.children)})}(r.val),r.val}function Me(e,t){var r=t&&t.cache?t.cache:De,n=t&&t.serializer?t.serializer:Re;return(t&&t.strategy?t.strategy:function(e,t){return Ie(e,this,1===e.length?Ne:Le,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function Ne(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 Le(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 Ie(e,t,r,n,i){return r.bind(t,e,n,i)}var Re=function(){return JSON.stringify(arguments)};function Fe(){this.cache=Object.create(null)}Fe.prototype.has=function(e){return e in this.cache},Fe.prototype.get=function(e){return this.cache[e]},Fe.prototype.set=function(e,t){this.cache[e]=t};var Ue,De={create:function(){return new Fe}},Ge={variadic:function(e,t){return Ie(e,this,Le,t.cache.create(),t.serializer)},monadic:function(e,t){return Ie(e,this,Ne,t.cache.create(),t.serializer)}};(H=Ue=Ue||{}).MISSING_VALUE="MISSING_VALUE",H.INVALID_VALUE="INVALID_VALUE",H.MISSING_INTL_API="MISSING_INTL_API";var $e,je,ze,Ve,Be,Xe=(M(dt,Be=Error),dt.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},dt),qe=(M(ft,Ve=Xe),ft),Ke=(M(Ye,ze=Xe),Ye),We=(M(He,je=Xe),He);function He(e,t){return je.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',Ue.MISSING_VALUE,t)||this}function Ye(e,t,r){return ze.call(this,'Value for "'+e+'" must be of type '+t,Ue.INVALID_VALUE,r)||this}function ft(e,t,r,n){return Ve.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',Ue.INVALID_VALUE,n)||this}function dt(e,t,r){e=Be.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&&$(e[0]))return[{type:$e.literal,value:e[0].value}];for(var a=[],l=0,c=e;l<c.length;l++){var u=c[l];if($(u))a.push({type:$e.literal,value:u.value});else if(u.type===L.pound)"number"==typeof o&&a.push({type:$e.literal,value:r.getNumberFormat(t).format(o)});else{var p=u.value;if(!(i&&p in i))throw new We(p,s);var h=i[p];if(u.type===L.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?$e.literal:$e.object,value:h});else if(z(u)){var f="string"==typeof u.style?n.date[u.style]:W(u.style)?u.style.parsedOptions:void 0;a.push({type:$e.literal,value:r.getDateTimeFormat(t,f).format(h)})}else if(V(u))f="string"==typeof u.style?n.time[u.style]:W(u.style)?u.style.parsedOptions:void 0,a.push({type:$e.literal,value:r.getDateTimeFormat(t,f).format(h)});else if(j(u))(f="string"==typeof u.style?n.number[u.style]:K(u.style)?u.style.parsedOptions:void 0)&&f.scale&&(h*=f.scale||1),a.push({type:$e.literal,value:r.getNumberFormat(t,f).format(h)});else{if(q(u)){var d=u.children,m=u.value,p=i[m];if("function"!=typeof p)throw new Ke(m,"function",s);d=p(mt(d,t,r,n,i,o).map(function(e){return e.value}));Array.isArray(d)||(d=[d]),a.push.apply(a,d.map(function(e){return{type:"string"==typeof e?$e.literal:$e.object,value:e}}))}if(B(u)){if(!(g=u.options[h]||u.options.other))throw new qe(u.value,h,Object.keys(u.options),s);a.push.apply(a,mt(g.value,t,r,n,i))}else if(X(u)){if(!(g=u.options["="+h])){if(!Intl.PluralRules)throw new Xe('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Ue.MISSING_INTL_API,s);var d=r.getPluralRules(t,{type:u.pluralType}).select(h-(u.offset||0)),g=u.options[d]||u.options.other}if(!g)throw new qe(u.value,h,Object.keys(u.options),s);a.push.apply(a,mt(g.value,t,r,n,i,h-(u.offset||0)))}}}}return a.length<2?a:a.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===$e.literal&&t.type===$e.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}}}}}(H=$e=$e||{})[H.literal=0]="literal",H[H.object=1]="object";var yt=(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=xe,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===$e.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])?R(R(R({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=R(R({},r[t]),n[t]||{}),e},{})):r),e},R({},i)):i),this.locales=t,this.formatters=n&&n.formatters||{getNumberFormat:Me(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,G([void 0],t)))},{cache:gt((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:Ge.variadic}),getDateTimeFormat:Me(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,G([void 0],t)))},{cache:gt(n.dateTime),strategy:Ge.variadic}),getPluralRules:Me(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,G([void 0],t)))},{cache:gt(n.pluralRules),strategy:Ge.variadic})}}const bt={},vt=(t,r)=>{if(null!=r){if(r in bt&&t in bt[r])return bt[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 Ct[e]||null}(n),i):null);if(s)return n=t,i=r,(s=s)&&(i in bt||(bt[i]={}),n in bt[i]||(bt[i][n]=s),s)}}};let Ct;const _t=v({});function Tt(e){return e in Ct}function At(t,...r){delete bt[t],_t.update(e=>(e[t]=O.all([e[t]||{},...r]),e))}u([_t],([e])=>Object.keys(e)),_t.subscribe(e=>Ct=e);const wt={};function St(e){return wt[e]}function Pt(e){return Ft(e).some(e=>{return null===(e=St(e))||void 0===e?void 0:e.size})}const kt={};function Ot(e){if(!Pt(e))return e in kt?kt[e]:void 0;const t=Ft(e).map(e=>{var t=St(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return kt[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=>At(t,...e))}(e))).then(()=>Pt(e)?Ot(e):void delete kt[e]),kt[e]}function xt(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 Mt={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 Nt=v(!1);let Lt;const It=v(null);function Rt(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Ft(e,t=Mt.fallbackLocale){e=Rt(e);return t?[...new Set([...e,...Rt(t)])]:e}It.subscribe(e=>{Lt=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const Ut=It.set;It.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)&&Pt(t)){var{loadingDelay:r}=Mt;let e;return"undefined"!=typeof window&&null!=Lt&&r?e=window.setTimeout(()=>Nt.set(!0),r):Nt.set(!0),Ot(t).then(()=>{Ut(t)}).finally(()=>{clearTimeout(e),Nt.set(!1)})}return Ut(t)},It.update=e=>Ut(e(Lt));const Dt=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},Gt=(e,t)=>{var{formats:r}=Mt;if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},$t=Dt(e=>{var{locale:t,format:r}=e,e=xt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=Gt("number",r)),new Intl.NumberFormat(t,e)}),jt=Dt(e=>{var{locale:t,format:r}=e,e=xt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=Gt("date",r):0===Object.keys(e).length&&(e=Gt("date","short")),new Intl.DateTimeFormat(t,e)}),zt=Dt(e=>{var{locale:t,format:r}=e,e=xt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=Gt("time",r):0===Object.keys(e).length&&(e=Gt("time","short")),new Intl.DateTimeFormat(t,e)}),Vt=Dt((e,t=Lt)=>new yt(e,t,Mt.formats,{ignoreTag:Mt.ignoreTag})),Bt=u([It,_t],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:r,locale:n=Lt,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 Mt.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${Ft(n).join('", "')}".${Pt(Lt)?"\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=Vt(o,n).format(r)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return s});u([It],()=>(e,t)=>((e={})=>{var{locale:t=Lt}=e,e=xt(e,["locale"]);return zt(Object.assign({locale:t},e))})(t).format(e)),u([It],()=>(e,t)=>((e={})=>{var{locale:t=Lt}=e,e=xt(e,["locale"]);return jt(Object.assign({locale:t},e))})(t).format(e)),u([It],()=>(e,t)=>((e={})=>{var{locale:t=Lt}=e,e=xt(e,["locale"]);return $t(Object.assign({locale:t},e))})(t).format(e)),u([It,_t],()=>(e,t=Lt)=>vt(e,t));const Xt={en:{registerFormStep3:{registerBackButton:"Back",registerAddress:"Address",registerAddressError:"Address must be at least 1 character long and 100 characters maximum.",registerPostalCode:"Postal Code",registerPostalCodeError:"Postal Code must be at least 1 character long and 20 characters maximum.",registerCity:"City",registerCityError:"City must be at least 1 character long and 50 characters maximum.",registerCountry:"Country",registerNationality:"Nationality",registerMobile:"Mobile",registerMobileError:"Mobile must be at least 5 character long and 20 characters maximum.",registerUserConsents:"I want to receive exclusive offers and bonuses. I am aware that I can unsubscribe whenever I want to.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"Email",registerTermsConditions:"I am at least 18 years old and I have read and accepted the Terms of Conditions.",registerTermsConditionsError:"Please accept the Terms and Conditions before proceeding.",registerOpenAccount:"Open Account"}},tr:{registerFormStep3:{registerBackButton:"Geri",registerAddress:"Adres",registerAddressError:"Adres en az 1 karakter uzunluğunda ve en fazla 100 karakter olmalıdır.",registerPostalCode:"Posta kodu",registerPostalCodeError:"Posta Kodu en az 1 karakter uzunluğunda ve en fazla 20 karakter olmalıdır.",registerCity:"Şehir",registerCityError:"Şehir en az 1 karakter uzunluğunda ve en fazla 50 karakter olmalıdır.",registerCountry:"Ülke",registerNationality:"Milliyet",registerMobile:"Mobil",registerMobileError:"Mobil en az 5 karakter uzunluğunda ve en fazla 20 karakter olmalıdır.",registerUserConsents:"Özel teklifler ve bonuslar almak istiyorum. İstediğim zaman abonelikten çıkabileceğimin farkındayım.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"E-posta",registerTermsConditions:"En az 18 yaşındayım ve Koşullar'ı okudum ve kabul ediyorum.",registerTermsConditionsError:"Lütfen devam etmeden önce Şartlar ve Koşulları kabul edin.",registerOpenAccount:"Hesap Aç"}},ro:{registerFormStep3:{registerBackButton:"Inapoi",registerAddress:"Adresa",registerAddressError:"Adresa trebuie sa fie cuprinsa in 1 si 100 de litere.",registerPostalCode:"Cod Postal",registerPostalCodeError:"Codul postal trebuie sa fie cuprins intre 1 si 20 de caractere.",registerCity:"Oras",registerCityError:"Orasul trebuie sa fie cuprins intre 1 si 50 de litere.",registerCountry:"Tara",registerNationality:"Nationalitatea",registerMobile:"Telefon",registerMobileError:"Telefonul trebuie sa fie cuprins intre 5 si 20 de cifre.",registerUserConsents:"Vreau sa primesc oferte si bonusuri exclusive. Sunt constient ca pot sa dau unsubscribe oricand.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"Email",registerTermsConditions:"Am minim 18 ani si am citit si acceptat Termenii si Conditiile",registerTermsConditionsError:"Te rog accepta Termenii si Conditiile",registerOpenAccount:"Inregistrare"}}};function qt(e,t,r){const n=e.slice();return n[57]=t[r],n}function Kt(e,t,r){const n=e.slice();return n[60]=t[r],n}function Wt(e,t,r){const n=e.slice();return n[63]=t[r],n}function Ht(e){let r,n;return{c(){r=rt("script"),r.src!==(n="//www.google.com/recaptcha/api.js?render="+e[1])&<(r,"src",n),r.async=!0,r.defer=!0},m(e,t){et(e,r,t)},p(e,t){2&t[0]&&r.src!==(n="//www.google.com/recaptcha/api.js?render="+e[1])&<(r,"src",n)},d(e){e&&tt(r)}}}function Yt(e){let r,n,i=e[23]("registerFormStep3.registerAddressError")+"";return{c(){r=rt("p"),n=it(i),lt(r,"class","InvalidInput")},m(e,t){et(e,r,t),Je(r,n)},p(e,t){8388608&t[0]&&i!==(i=e[23]("registerFormStep3.registerAddressError")+"")&&ct(n,i)},d(e){e&&tt(r)}}}function Zt(e){let r,n,i=e[23]("registerFormStep3.registerPostalCodeError")+"";return{c(){r=rt("p"),n=it(i),lt(r,"class","InvalidInput")},m(e,t){et(e,r,t),Je(r,n)},p(e,t){8388608&t[0]&&i!==(i=e[23]("registerFormStep3.registerPostalCodeError")+"")&&ct(n,i)},d(e){e&&tt(r)}}}function Qt(e){let r,n,i=e[23]("registerFormStep3.registerCityError")+"";return{c(){r=rt("p"),n=it(i),lt(r,"class","InvalidInput")},m(e,t){et(e,r,t),Je(r,n)},p(e,t){8388608&t[0]&&i!==(i=e[23]("registerFormStep3.registerCityError")+"")&&ct(n,i)},d(e){e&&tt(r)}}}function Jt(e){let r,n,i,o=e[63].Name+"";return{c(){r=rt("option"),n=it(o),r.__value=i=e[63].Alpha2Code,r.value=r.__value},m(e,t){et(e,r,t),Je(r,n)},p(e,t){2048&t[0]&&o!==(o=e[63].Name+"")&&ct(n,o),2048&t[0]&&i!==(i=e[63].Alpha2Code)&&(r.__value=i,r.value=r.__value)},d(e){e&&tt(r)}}}function er(e){let r,n,i,o=e[60].Name+"";return{c(){r=rt("option"),n=it(o),r.__value=i=e[60].Alpha2Code,r.value=r.__value},m(e,t){et(e,r,t),Je(r,n)},p(e,t){8192&t[0]&&o!==(o=e[60].Name+"")&&ct(n,o),8192&t[0]&&i!==(i=e[60].Alpha2Code)&&(r.__value=i,r.value=r.__value)},d(e){e&&tt(r)}}}function tr(e){let r,n,i,o=e[57].Prefix+"";return{c(){r=rt("option"),n=it(o),r.__value=i=e[57].Prefix,r.value=r.__value},m(e,t){et(e,r,t),Je(r,n)},p(e,t){65536&t[0]&&o!==(o=e[57].Prefix+"")&&ct(n,o),65536&t[0]&&i!==(i=e[57].Prefix)&&(r.__value=i,r.value=r.__value)},d(e){e&&tt(r)}}}function rr(e){let r,n,i=e[23]("registerFormStep3.registerMobileError")+"";return{c(){r=rt("p"),n=it(i),lt(r,"class","InvalidInput")},m(e,t){et(e,r,t),Je(r,n)},p(e,t){8388608&t[0]&&i!==(i=e[23]("registerFormStep3.registerMobileError")+"")&&ct(n,i)},d(e){e&&tt(r)}}}function nr(r){let n,i,o,s,a,l,c,u,p,h,f,d,m,g,y,E,b,v,C,_,T,A,w,S,P,k,O,x,M,N,L,I,R,F,U,D,G=r[23]("registerFormStep3.registerUserConsents")+"",$=r[23]("registerFormStep3.registerUserConsentsSMS")+"",j=r[23]("registerFormStep3.registerUserConsentsEmail")+"",z=r[23]("registerFormStep3.registerTermsConditions")+"",V=!r[21]&&ir(r);return{c(){n=rt("div"),i=rt("label"),o=it(G),s=ot(),a=rt("input"),l=ot(),c=rt("span"),u=ot(),p=rt("div"),h=rt("label"),f=it($),d=ot(),m=rt("input"),y=ot(),E=rt("span"),b=ot(),v=rt("label"),C=it(j),_=ot(),T=rt("input"),w=ot(),S=rt("span"),P=ot(),k=rt("div"),O=rt("label"),x=it(z),M=ot(),N=rt("input"),L=ot(),I=rt("span"),R=ot(),V&&V.c(),F=st(),lt(a,"type","Checkbox"),a.checked=r[18],lt(c,"class","Checkmark"),lt(i,"class","Offers"),lt(m,"type","Checkbox"),m.disabled=g=!r[18],m.checked=r[19],lt(E,"class","Checkmark"),lt(h,"class","OffersMethod"),lt(T,"type","Checkbox"),T.disabled=A=!r[18],T.checked=r[20],lt(S,"class","Checkmark"),lt(v,"class","OffersMethod"),lt(p,"class","OffersMethodsWrapper"),lt(n,"class","OffersContainer"),lt(N,"type","Checkbox"),N.checked=r[21],lt(I,"class","Checkmark"),lt(O,"class","AgeConsent"),lt(k,"class","AgeContainer")},m(e,t){et(e,n,t),Je(n,i),Je(i,o),Je(i,s),Je(i,a),Je(i,l),Je(i,c),Je(n,u),Je(n,p),Je(p,h),Je(h,f),Je(h,d),Je(h,m),Je(h,y),Je(h,E),Je(p,b),Je(p,v),Je(v,C),Je(v,_),Je(v,T),Je(v,w),Je(v,S),et(e,P,t),et(e,k,t),Je(k,O),Je(O,x),Je(O,M),Je(O,N),Je(O,L),Je(O,I),et(e,R,t),V&&V.m(e,t),et(e,F,t),U||(D=[at(a,"click",r[43]),at(m,"click",r[44]),at(T,"click",r[45]),at(N,"click",r[46])],U=!0)},p(e,t){8388608&t[0]&&G!==(G=e[23]("registerFormStep3.registerUserConsents")+"")&&ct(o,G),262144&t[0]&&(a.checked=e[18]),8388608&t[0]&&$!==($=e[23]("registerFormStep3.registerUserConsentsSMS")+"")&&ct(f,$),262144&t[0]&&g!==(g=!e[18])&&(m.disabled=g),524288&t[0]&&(m.checked=e[19]),8388608&t[0]&&j!==(j=e[23]("registerFormStep3.registerUserConsentsEmail")+"")&&ct(C,j),262144&t[0]&&A!==(A=!e[18])&&(T.disabled=A),1048576&t[0]&&(T.checked=e[20]),8388608&t[0]&&z!==(z=e[23]("registerFormStep3.registerTermsConditions")+"")&&ct(x,z),2097152&t[0]&&(N.checked=e[21]),e[21]?V&&(V.d(1),V=null):V?V.p(e,t):(V=ir(e),V.c(),V.m(F.parentNode,F))},d(e){e&&tt(n),e&&tt(P),e&&tt(k),e&&tt(R),V&&V.d(e),e&&tt(F),U=!1,Qe(D)}}}function ir(e){let r,n,i,o=e[23]("registerFormStep3.registerTermsConditionsError")+"";return{c(){r=rt("div"),n=rt("p"),i=it(o),lt(r,"class","NotificationContainer")},m(e,t){et(e,r,t),Je(r,n),Je(n,i)},p(e,t){8388608&t[0]&&o!==(o=e[23]("registerFormStep3.registerTermsConditionsError")+"")&&ct(i,o)},d(e){e&&tt(r)}}}function or(e){let r,n,i;return{c(){r=rt("div"),n=rt("p"),i=it(e[7]),lt(n,"class","RegisterError")},m(e,t){et(e,r,t),Je(r,n),Je(n,i)},p(e,t){128&t[0]&&ct(i,e[7])},d(e){e&&tt(r)}}}function sr(r){let s,n,a,i,o,l,c,u,p,h,f,d,m,g,y,E,b,v,C,_,T,A,w,S,e,P,k,O,x,M,N,L,I,R,F,U,D,G,$,j,z,V,B,X,q,K,W,H,Y,Z,Q,J,ee,te,re,ne,ie,oe,se,ae,le,ce,ue,pe,he,fe,de,me,ge,ye,Ee,be,ve,Ce,_e,Te,Ae,we,Se,Pe,ke,Oe,xe=r[23]("registerFormStep3.registerBackButton")+"",Me=r[23]("registerFormStep3.registerAddress")+"",Ne=r[23]("registerFormStep3.registerPostalCode")+"",Le=r[23]("registerFormStep3.registerCity")+"",Ie=r[23]("registerFormStep3.registerCountry")+"",Re=r[23]("registerFormStep3.registerNationality")+"",Fe=r[23]("registerFormStep3.registerMobile")+"",Ue=r[23]("registerFormStep3.registerOpenAccount")+"",De=r[1]&&Ht(r),Ge=r[2]&&Yt(r),$e=r[3]&&Zt(r),je=r[5]&&Qt(r),ze=r[11],Ve=[];for(let e=0;e<ze.length;e+=1)Ve[e]=Jt(Wt(r,ze,e));let Be=r[13],Xe=[];for(let e=0;e<Be.length;e+=1)Xe[e]=er(Kt(r,Be,e));let qe=r[16],Ke=[];for(let e=0;e<qe.length;e+=1)Ke[e]=tr(qt(r,qe,e));let We=r[4]&&rr(r),He=r[0]&&nr(r),Ye=r[6]&&or(r);return{c(){De&&De.c(),s=st(),n=ot(),a=rt("div"),i=ot(),o=rt("div"),l=rt("button"),c=nt("svg"),u=nt("defs"),p=nt("style"),h=it(".a{fill:var(--emfe-w-color-primary, #D0046C);}"),f=nt("path"),d=ot(),m=it(xe),g=ot(),y=rt("div"),E=rt("div"),b=rt("div"),v=rt("label"),C=it(Me),_=it(":"),T=rt("span"),T.textContent="*",A=ot(),w=rt("input"),S=ot(),Ge&&Ge.c(),P=ot(),k=rt("div"),O=rt("label"),x=it(Ne),M=it(":"),N=rt("span"),N.textContent="*",L=ot(),I=rt("input"),R=ot(),$e&&$e.c(),U=ot(),D=rt("div"),G=rt("label"),$=it(Le),j=it(":"),z=rt("span"),z.textContent="*",V=ot(),B=rt("input"),X=ot(),je&&je.c(),K=ot(),W=rt("div"),H=rt("label"),Y=it(Ie),Z=it(":"),Q=rt("span"),Q.textContent="*",J=ot(),ee=rt("select");for(let e=0;e<Ve.length;e+=1)Ve[e].c();te=ot(),re=rt("div"),ne=rt("label"),ie=it(Re),oe=it(":"),se=rt("span"),se.textContent="*",ae=ot(),le=rt("select");for(let e=0;e<Xe.length;e+=1)Xe[e].c();ce=ot(),ue=rt("div"),pe=rt("label"),he=it(Fe),fe=it(":"),de=rt("span"),de.textContent="*",me=ot(),ge=rt("div"),ye=rt("select");for(let e=0;e<Ke.length;e+=1)Ke[e].c();Ee=ot(),be=rt("input"),ve=ot(),We&&We.c(),_e=ot(),He&&He.c(),Te=ot(),Ye&&Ye.c(),Ae=ot(),we=rt("button"),Se=it(Ue),this.c=Ze,lt(a,"class","g-recaptcha"),lt(a,"data-sitekey",r[1]),lt(f,"class","a"),lt(f,"d","M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z"),lt(f,"transform","translate(24 24) rotate(180)"),lt(c,"xmlns","http://www.w3.org/2000/svg"),lt(c,"viewBox","0 0 24 24"),lt(l,"class","BackButton"),lt(o,"class","RegisterFormHeader"),lt(T,"class","FormRequired"),lt(v,"for","Address"),lt(w,"type","text"),lt(w,"id","Address"),lt(b,"class",e="AddressContainer "+(r[2]?"InvalidField":"")),lt(N,"class","FormRequired"),lt(O,"for","PostalCode"),lt(I,"type","text"),lt(I,"id","PostalCode"),lt(k,"class",F="PostalCodeContainer "+(r[3]?"InvalidField":"")),lt(E,"class","AddressPostalCodeContainer"),lt(z,"class","FormRequired"),lt(G,"for","City"),lt(B,"type","text"),lt(B,"id","City"),lt(D,"class",q="CityContainer "+(r[5]?"InvalidField":"")),lt(Q,"class","FormRequired"),lt(H,"for","Country"),lt(ee,"id","Country"),void 0===r[12]&&ht(()=>r[39].call(ee)),lt(W,"class","CountryContainer"),lt(se,"class","FormRequired"),lt(ne,"for","Nationality"),lt(le,"id","Nationality"),void 0===r[14]&&ht(()=>r[40].call(le)),lt(re,"class","NationalityContainer"),lt(de,"class","FormRequired"),lt(pe,"for","Mobile"),lt(ye,"class","MobilePrefixSelected"),void 0===r[17]&&ht(()=>r[41].call(ye)),lt(be,"type","text"),lt(be,"oninput","this.value = this.value.replace(/[^0-9.]/g, ''); this.value = this.value.replace(/(\\..*)\\./g, '$1');"),lt(be,"id","Mobile"),lt(be,"class","MobileInput"),lt(ge,"class","MobileWrapper"),lt(ue,"class",Ce="MobileContainer "+(r[4]?"InvalidField":"")),lt(y,"class","RegisterFormContent"),lt(we,"class","RegisterStepNext"),we.disabled=Pe=!r[22]},m(e,t){De&&De.m(document.head,null),Je(document.head,s),et(e,n,t),et(e,a,t),et(e,i,t),et(e,o,t),Je(o,l),Je(l,c),Je(c,u),Je(u,p),Je(p,h),Je(c,f),Je(l,d),Je(l,m),et(e,g,t),et(e,y,t),Je(y,E),Je(E,b),Je(b,v),Je(v,C),Je(v,_),Je(v,T),Je(b,A),Je(b,w),ut(w,r[8]),Je(b,S),Ge&&Ge.m(b,null),Je(E,P),Je(E,k),Je(k,O),Je(O,x),Je(O,M),Je(O,N),Je(k,L),Je(k,I),ut(I,r[9]),Je(k,R),$e&&$e.m(k,null),Je(y,U),Je(y,D),Je(D,G),Je(G,$),Je(G,j),Je(G,z),Je(D,V),Je(D,B),ut(B,r[10]),Je(D,X),je&&je.m(D,null),Je(y,K),Je(y,W),Je(W,H),Je(H,Y),Je(H,Z),Je(H,Q),Je(W,J),Je(W,ee);for(let e=0;e<Ve.length;e+=1)Ve[e].m(ee,null);pt(ee,r[12]),Je(y,te),Je(y,re),Je(re,ne),Je(ne,ie),Je(ne,oe),Je(ne,se),Je(re,ae),Je(re,le);for(let e=0;e<Xe.length;e+=1)Xe[e].m(le,null);pt(le,r[14]),Je(y,ce),Je(y,ue),Je(ue,pe),Je(pe,he),Je(pe,fe),Je(pe,de),Je(ue,me),Je(ue,ge),Je(ge,ye);for(let e=0;e<Ke.length;e+=1)Ke[e].m(ye,null);pt(ye,r[17]),Je(ge,Ee),Je(ge,be),ut(be,r[15]),Je(ge,ve),We&&We.m(ge,null),Je(y,_e),He&&He.m(y,null),et(e,Te,t),Ye&&Ye.m(e,t),et(e,Ae,t),et(e,we,t),Je(we,Se),ke||(Oe=[at(l,"click",r[33]),at(w,"input",r[36]),at(w,"blur",r[24]),at(I,"input",r[37]),at(I,"blur",r[25]),at(B,"input",r[38]),at(B,"blur",r[26]),at(ee,"change",r[39]),at(le,"change",r[40]),at(ye,"change",r[41]),at(be,"input",r[42]),at(be,"keyup",r[27]),at(we,"click",r[32])],ke=!0)},p(t,r){if(t[1]?De?De.p(t,r):(De=Ht(t),De.c(),De.m(s.parentNode,s)):De&&(De.d(1),De=null),2&r[0]&<(a,"data-sitekey",t[1]),8388608&r[0]&&xe!==(xe=t[23]("registerFormStep3.registerBackButton")+"")&&ct(m,xe),8388608&r[0]&&Me!==(Me=t[23]("registerFormStep3.registerAddress")+"")&&ct(C,Me),256&r[0]&&w.value!==t[8]&&ut(w,t[8]),t[2]?Ge?Ge.p(t,r):(Ge=Yt(t),Ge.c(),Ge.m(b,null)):Ge&&(Ge.d(1),Ge=null),4&r[0]&&e!==(e="AddressContainer "+(t[2]?"InvalidField":""))&<(b,"class",e),8388608&r[0]&&Ne!==(Ne=t[23]("registerFormStep3.registerPostalCode")+"")&&ct(x,Ne),512&r[0]&&I.value!==t[9]&&ut(I,t[9]),t[3]?$e?$e.p(t,r):($e=Zt(t),$e.c(),$e.m(k,null)):$e&&($e.d(1),$e=null),8&r[0]&&F!==(F="PostalCodeContainer "+(t[3]?"InvalidField":""))&<(k,"class",F),8388608&r[0]&&Le!==(Le=t[23]("registerFormStep3.registerCity")+"")&&ct($,Le),1024&r[0]&&B.value!==t[10]&&ut(B,t[10]),t[5]?je?je.p(t,r):(je=Qt(t),je.c(),je.m(D,null)):je&&(je.d(1),je=null),32&r[0]&&q!==(q="CityContainer "+(t[5]?"InvalidField":""))&<(D,"class",q),8388608&r[0]&&Ie!==(Ie=t[23]("registerFormStep3.registerCountry")+"")&&ct(Y,Ie),2048&r[0]){let e;for(ze=t[11],e=0;e<ze.length;e+=1){var n=Wt(t,ze,e);Ve[e]?Ve[e].p(n,r):(Ve[e]=Jt(n),Ve[e].c(),Ve[e].m(ee,null))}for(;e<Ve.length;e+=1)Ve[e].d(1);Ve.length=ze.length}if(6144&r[0]&&pt(ee,t[12]),8388608&r[0]&&Re!==(Re=t[23]("registerFormStep3.registerNationality")+"")&&ct(ie,Re),8192&r[0]){let e;for(Be=t[13],e=0;e<Be.length;e+=1){var i=Kt(t,Be,e);Xe[e]?Xe[e].p(i,r):(Xe[e]=er(i),Xe[e].c(),Xe[e].m(le,null))}for(;e<Xe.length;e+=1)Xe[e].d(1);Xe.length=Be.length}if(24576&r[0]&&pt(le,t[14]),8388608&r[0]&&Fe!==(Fe=t[23]("registerFormStep3.registerMobile")+"")&&ct(he,Fe),65536&r[0]){let e;for(qe=t[16],e=0;e<qe.length;e+=1){var o=qt(t,qe,e);Ke[e]?Ke[e].p(o,r):(Ke[e]=tr(o),Ke[e].c(),Ke[e].m(ye,null))}for(;e<Ke.length;e+=1)Ke[e].d(1);Ke.length=qe.length}196608&r[0]&&pt(ye,t[17]),32768&r[0]&&be.value!==t[15]&&ut(be,t[15]),t[4]?We?We.p(t,r):(We=rr(t),We.c(),We.m(ge,null)):We&&(We.d(1),We=null),16&r[0]&&Ce!==(Ce="MobileContainer "+(t[4]?"InvalidField":""))&<(ue,"class",Ce),t[0]?He?He.p(t,r):(He=nr(t),He.c(),He.m(y,null)):He&&(He.d(1),He=null),t[6]?Ye?Ye.p(t,r):(Ye=or(t),Ye.c(),Ye.m(Ae.parentNode,Ae)):Ye&&(Ye.d(1),Ye=null),8388608&r[0]&&Ue!==(Ue=t[23]("registerFormStep3.registerOpenAccount")+"")&&ct(Se,Ue),4194304&r[0]&&Pe!==(Pe=!t[22])&&(we.disabled=Pe)},i:Ze,o:Ze,d(e){De&&De.d(e),tt(s),e&&tt(n),e&&tt(a),e&&tt(i),e&&tt(o),e&&tt(g),e&&tt(y),Ge&&Ge.d(),$e&&$e.d(),je&&je.d(),t(Ve,e),t(Xe,e),t(Ke,e),We&&We.d(),He&&He.d(),e&&tt(Te),Ye&&Ye.d(e),e&&tt(Ae),e&&tt(we),ke=!1,Qe(Oe)}}}function ar(t,e,r){let n;var i=Bt;t.$$.on_destroy.push(F(i,e=>r(23,n=e)));let{userconsentsexist:o=!1}=e,{endpoint:s=""}=e,{captchakey:a=""}=e,{lang:l=""}=e,c="",u="",p="",h="",f=!1,d="",m="",g="",y="",E=[],b="",v=[],C="",_="",T=[],A="",w=!1,S=!1,P=!1,k=!1,O=!1;Object.keys(Xt).forEach(e=>{At(e,Xt[e])});const x=()=>{r(22,O=!(c||u||h||p||f||o&&k)),(m.length<=0||g.length<=0||y.length<=0||_.length<=0)&&r(22,O=!1)},M=()=>{!1===w?r(18,w=!0):(r(18,w=!1),r(19,S=!1),r(20,P=!1))},N=()=>{r(19,S=!1===S)},L=()=>{r(20,P=!1===P)},I=()=>{r(21,k=!1===k),x()},R=e=>{if(e.data)switch(e.data.type){case"StepThreeDataBackup":r(8,m=e.data.userData.address1),r(9,g=e.data.userData.postalCode),r(10,y=e.data.userData.city),r(12,b=e.data.userData.country),r(14,C=e.data.userData.nationality),r(17,A=e.data.userData.mobile.prefix),r(15,_=e.data.userData.mobile.number),r(19,S=e.data.userData.userConsents.additionalProp1),r(20,P=e.data.userData.userConsents.additionalProp2),r(21,k=e.data.userData.userConsents.additionalProp3),x();break;case"ShowRegistrationError":r(6,f=e.data.showError),r(7,d=e.data.error)}};return e=()=>(window.addEventListener("message",R,!1),()=>{window.removeEventListener("message",R)}),function(){if(!D)throw new Error("Function called outside component initialization");return D}().$$.on_mount.push(e),t.$$set=e=>{"userconsentsexist"in e&&r(0,o=e.userconsentsexist),"endpoint"in e&&r(34,s=e.endpoint),"captchakey"in e&&r(1,a=e.captchakey),"lang"in e&&r(35,l=e.lang)},t.$$.update=()=>{var e;8&t.$$.dirty[1]&&s&&fetch(`${s}/player/countries`).then(e=>e.json()).then(e=>{r(11,E=e.countries),b||r(12,b=E[0].Alpha2Code),r(13,v=e.countries),C||r(14,C=v[0].Alpha2Code)}),8&t.$$.dirty[1]&&s&&fetch(`${s}/player/phonecodes`).then(e=>e.json()).then(e=>{r(16,T=e.phoneCodes),A||r(17,A=T[0].Prefix)}),16&t.$$.dirty[1]&&l&&(e=l,It.set(e))},[o,a,c,u,p,h,f,d,m,g,y,E,b,v,C,_,T,A,w,S,P,k,O,n,()=>{r(2,c=!(m&&m.length<=100)),x()},()=>{r(3,u=!(g&&g.length<=20)),x()},()=>{r(5,h=!(y&&y.length<=50)),x()},()=>{r(4,p=!(_&&5<=_.length&&_.length<=30)),x()},M,N,L,I,()=>{let t;new Promise((t,e)=>{grecaptcha.ready(()=>{grecaptcha.execute(a,{action:"submit"}).then(e=>{t(e)})})}).then(e=>{t={address:m,postalCode:g,city:y,countrySelected:b,nationalitySelected:C,mobilePrefixSelected:A,mobile:_,consentOffersSms:S,consentOffersEmail:P,consentTerms:k,token:e},window.postMessage({type:"RegisterStepThree",registerStepThreeData:t},window.location.href)})},()=>{var e={address:m,postalCode:g,city:y,countrySelected:b,nationalitySelected:C,mobilePrefixSelected:A,mobile:_,consentOffersSms:S,consentOffersEmail:P,consentTerms:k};window.postMessage({type:"GoBackStepThree",registerStepThreeData:e},window.location.href)},s,l,function(){m=this.value,r(8,m)},function(){g=this.value,r(9,g)},function(){y=this.value,r(10,y)},function(){b=U(this),r(12,b),r(11,E)},function(){C=U(this),r(14,C),r(13,v)},function(){A=U(this),r(17,A),r(16,T)},function(){_=this.value,r(15,_)},()=>M(),()=>N(),()=>L(),()=>I()]}class lr 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:var(--emfe-w-color-contrast, #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:var(--emfe-w-color-primary, #D0046C)}.AddressPostalCodeContainer{display:flex;gap:16px}.CountryContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.CountryContainer select{width:100%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);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 var(--emfe-w-color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.CountryContainer select:focus,.CountryContainer select :focus-within,.CountryContainer select :focus-visible,.CountryContainer select :visited{border:1px solid var(--emfe-w-color-primary, #D0046C);box-shadow:0 0 0 1pt var(--emfe-w-color-primary, #D0046C)}.AddressContainer,.PostalCodeContainer,.CityContainer,.CountryContainer,.NationalityContainer,.MobileContainer{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:30px;position:relative}.AddressContainer label,.PostalCodeContainer label,.CityContainer label,.CountryContainer label,.NationalityContainer label,.MobileContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.AddressContainer input,.PostalCodeContainer input,.CityContainer input,.CountryContainer select,.NationalityContainer select,.MobileContainer input,.MobileContainer select{width:100%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;padding:5px;font-size:14px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.AddressContainer.InvalidField input,.PostalCodeContainer.InvalidField input,.CityContainer.InvalidField input,.MobileContainer.InvalidField input{border:1px solid var(--emfe-w-color-primary, #D0046C);background:var(--emfe-w-color-primary-50, #FBECF4);color:var(--emfe-w-color-primary, #D0046C)}.AddressContainer{width:65%}.PostalCodeContainer{width:35%}.MobileWrapper{display:flex;gap:16px}.MobileWrapper .MobilePrefixSelected{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 var(--emfe-w-color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.MobileWrapper .MobilePrefixSelected:focus,.MobileWrapper .MobilePrefixSelected :focus-within,.MobileWrapper .MobilePrefixSelected :focus-visible,.MobileWrapper .MobilePrefixSelected :visited{border:1px solid var(--emfe-w-color-primary, #D0046C);box-shadow:0 0 0 1pt var(--emfe-w-color-primary, #D0046C)}.MobileWrapper .MobileInput{width:70%}.FormRequired{color:var(--emfe-w-color-secondary, #FD2839)}.InvalidInput{color:var(--emfe-w-color-error, #FD2839);font-size:10px;position:absolute;bottom:-3px;line-height:10px}.OffersMethodsWrapper{padding-left:32px}.Offers,.OffersMethod,.AgeConsent{display:block;position:relative;padding:5.008px 0 0 35.008px;margin-bottom:16px;font-size:16px;user-select:none;line-height:19.2px}.Offers input,.OffersMethod input,.AgeConsent input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.Offers .Checkmark,.OffersMethod .Checkmark,.AgeConsent .Checkmark{position:absolute;top:0;left:0;height:25.008px;width:25.008px;background-color:var(--emfe-w-color-gray-100, #E6E6E6);border-radius:50%}.Offers input:checked~.Checkmark,.OffersMethod input:checked~.Checkmark,.AgeConsent input:checked~.Checkmark{background-color:var(--emfe-w-color-primary, #D0046C)}.Offers .Checkmark:after,.OffersMethod .Checkmark:after,.AgeConsent .Checkmark:after{content:\"\";position:absolute;display:none;left:9.008px;top:5.008px;width:5.008px;height:10px;border:solid white;border-width:0 3.008px 3.008px 0;transform:rotate(45deg)}.Offers input:checked~.Checkmark:after,.OffersMethod input:checked~.Checkmark:after,.AgeConsent input:checked~.Checkmark:after{display:block}.NotificationContainer{margin-top:32px}.NotificationContainer p{color:var(--emfe-w-color-secondary, #FD2839);font-size:14px}.RegisterError{color:var(--emfe-w-color-secondary, #FD2839);font-size:16px;line-height:19.2px}.RegisterStepNext{color:var(--emfe-w-color-white, #FFFFFF);background:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.RegisterStepNext[disabled]{background:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);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},ar,sr,r,{userconsentsexist:0,endpoint:34,captchakey:1,lang:35},[-1,-1,-1]),e&&(e.target&&et(e.target,this,e.anchor),e.props&&(this.$set(e.props),E()))}static get observedAttributes(){return["userconsentsexist","endpoint","captchakey","lang"]}get userconsentsexist(){return this.$$.ctx[0]}set userconsentsexist(e){this.$set({userconsentsexist:e}),E()}get endpoint(){return this.$$.ctx[34]}set endpoint(e){this.$set({endpoint:e}),E()}get captchakey(){return this.$$.ctx[1]}set captchakey(e){this.$set({captchakey:e}),E()}get lang(){return this.$$.ctx[35]}set lang(e){this.$set({lang:e}),E()}}return customElements.get("general-player-register-form-step3")||customElements.define("general-player-register-form-step3",lr),lr});
|
|
2
2
|
//# sourceMappingURL=general-player-register-form-step3.js.map
|