@everymatrix/general-player-register-form-step1 0.0.265 → 0.0.269
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 tt(){}function p(e){return e()}function f(){return Object.create(null)}function rt(e){e.forEach(p)}function m(e){return"function"==typeof e}function r(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function O(e,...t){if(null==e)return tt;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function nt(e,t){e.appendChild(t)}function it(e,t,r){e.insertBefore(t,r||null)}function ot(e){e.parentNode.removeChild(e)}function t(e){return document.createElement(e)}function e(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function st(e){return document.createTextNode(e)}function at(){return st(" ")}function lt(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function ut(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 pt(e,t){e.value=null==t?"":t}let U;function h(e){U=e}const g=[],M=[],n=[],i=[],d=Promise.resolve();let E=!1;function y(e){n.push(e)}let o=!1;const s=new Set;function v(){if(!o){o=!0;do{for(let e=0;e<g.length;e+=1){var t=g[e];h(t),function(e){{var t;null!==e.fragment&&(e.update(),rt(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(y))}}(t.$$)}for(h(null),g.length=0;M.length;)M.pop()();for(let e=0;e<n.length;e+=1){const r=n[e];s.has(r)||(s.add(r),r())}}while(n.length=0,g.length);for(;i.length;)i.pop()();E=!1,o=!1,s.clear()}}const b=new Set;function a(n,e,t,r,i,o,s=[-1]){var a,l=U;h(n);const u=n.$$={fragment:null,ctx:null,props:o,update:tt,not_equal:i,bound:f(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:f(),dirty:s,skip_bound:!1};let c=!1;if(u.ctx=t?t(n,e.props||{},(e,t,...r)=>{r=r.length?r[0]:t;return u.ctx&&i(u.ctx[e],u.ctx[e]=r)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](r),c&&(r=e,-1===(e=n).$$.dirty[0]&&(g.push(e),E||(E=!0,d.then(v)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],u.update(),c=!0,rt(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){const tt=(r=e.target,Array.from(r.childNodes));u.fragment&&u.fragment.l(tt),tt.forEach(ot)}else u.fragment&&u.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||y(()=>{var e=o.map(p).filter(m);s?s.push(...e):rt(e),t.$$.on_mount=[]}),a.forEach(y)}(n,e.target,e.anchor,e.customElement),v()}h(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(m);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){rt(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(rt(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=tt}$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 u=[];function w(n,i=tt){let o;const s=[];function a(e){if(r(n,e)&&(n=e,o)){const e=!u.length;for(let e=0;e<s.length;e+=1){const t=s[e];t[1](),u.push(t,n)}if(e){for(let e=0;e<u.length;e+=2)u[e][0](u[e+1]);u.length=0}}}return{set:a,update:function(e){a(e(n))},subscribe:function(e,t=tt){const r=[e,t];return s.push(r),1===s.length&&(o=i(a)||tt),e(n),()=>{var e=s.indexOf(r);-1!==e&&s.splice(e,1),0===s.length&&(o(),o=null)}}}}function c(e,a,t){const l=!Array.isArray(e),u=l?[e]:e,c=a.length<2;return{subscribe:w(t,t=>{let r=!1;const n=[];let i=0,o=tt;const s=()=>{var e;i||(o(),e=a(l?n[0]:n,t),c?t(e):o=m(e)?e:tt)},e=u.map((e,t)=>O(e,e=>{n[t]=e,i&=~(1<<t),r&&s()},()=>{i|=1<<t}));return r=!0,s(),function(){rt(e),o()}}).subscribe}}var T=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===S));var t},S="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function _(e,t){return!1!==t.clone&&t.isMergeableObject(e)?L(Array.isArray(e)?[]:{},e,t):e}function A(e,t,r){return e.concat(t).map(function(e){return _(e,r)})}function P(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function C(e,t){try{return t in e}catch(e){return!1}}function I(n,i,o){var s={};return o.isMergeableObject(n)&&P(n).forEach(function(e){s[e]=_(n[e],o)}),P(i).forEach(function(t){var e,r;(!C(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(C(n,t)&&o.isMergeableObject(i[t])?s[t]=function(){if(!o.customMerge)return L;var e=o.customMerge(t);return"function"==typeof e?e:L}()(n[t],i[t],o):s[t]=_(i[t],o))}),s}function L(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||A,r.isMergeableObject=r.isMergeableObject||T,r.cloneUnlessOtherwiseSpecified=_;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):I(e,t,r):_(t,r)}L.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return L(e,t,r)},{})};var N=L,R=function(e,t){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function F(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}R(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var x,k,D,G=function(){return(G=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 $(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e}function j(e){return e.type===k.literal}function V(e){return e.type===k.number}function z(e){return e.type===k.date}function X(e){return e.type===k.time}function Q(e){return e.type===k.select}function Z(e){return e.type===k.plural}function q(e){return e.type===k.tag}function B(e){return e&&"object"==typeof e&&e.type===D.number}function Y(e){return e&&"object"==typeof e&&e.type===D.dateTime}(he=x=x||{})[he.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",he[he.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",he[he.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",he[he.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",he[he.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",he[he.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",he[he.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",he[he.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",he[he.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",he[he.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",he[he.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",he[he.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",he[he.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",he[he.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",he[he.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",he[he.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",he[he.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",he[he.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",he[he.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",he[he.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",he[he.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",he[he.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",he[he.INVALID_TAG=23]="INVALID_TAG",he[he.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",he[he.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",he[he.UNCLOSED_TAG=27]="UNCLOSED_TAG",(ge=k=k||{})[ge.literal=0]="literal",ge[ge.argument=1]="argument",ge[ge.number=2]="number",ge[ge.date=3]="date",ge[ge.time=4]="time",ge[ge.select=5]="select",ge[ge.plural=6]="plural",ge[ge.pound=7]="pound",ge[ge.tag=8]="tag",(de=D=D||{})[de.number=0]="number",de[de.dateTime=1]="dateTime";var H=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,K=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;var W,J=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,ee=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,te=/^(@+)?(\+|#+)?$/g,re=/(\*)(0+)|(#+)(0+)|(0+)/g,ne=/^(0+)$/;function ie(e){var n={};return e.replace(te,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 oe(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 se(e){return oe(e)||{}}function ae(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=G(G(G({},s),{notation:"scientific"}),i.options.reduce(function(e,t){return G(G({},e),se(t))},{}));continue;case"engineering":s=G(G(G({},s),{notation:"engineering"}),i.options.reduce(function(e,t){return G(G({},e),se(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(re,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(ne.test(i.stem))s.minimumIntegerDigits=i.stem.length;else if(ee.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(ee,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=G(G({},s),ie(i.options[0])))}else te.test(i.stem)?s=G(G({},s),ie(i.stem)):((n=oe(i.stem))&&(s=G(G({},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)),!ne.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(s=G(G({},s),n)))}return s}var le=new RegExp("^"+H.source+"*"),ue=new RegExp(H.source+"*$");function ce(e,t){return{start:e,end:t}}var pe=!!String.prototype.startsWith,fe=!!String.fromCodePoint,me=!!Object.fromEntries,he=!!String.prototype.codePointAt,ge=!!String.prototype.trimStart,de=!!String.prototype.trimEnd,Ee=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},H=!0;try{H="a"===(null===(W=Pe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===W?void 0:W[0])}catch(tt){H=!1}var ye,ve,be=pe?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},we=fe?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},Te=me?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},Se=he?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}},_e=ge?function(e){return e.trimStart()}:function(e){return e.replace(le,"")},Ae=de?function(e){return e.trimEnd()}:function(e){return e.replace(ue,"")};function Pe(e,t){return new RegExp(e,t)}ve=H?(ye=Pe("([^\\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=Se(e,t);if(void 0===i||Ne(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 we.apply(void 0,n)};var Ce=(Ie.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},Ie.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(x.UNMATCHED_CLOSING_TAG,ce(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Le(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{o=this.clonePosition();this.bump(),n.push({type:k.pound,location:ce(o,this.clonePosition())})}}}return{val:n,err:null}},Ie.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:k.literal,value:"<"+n+"/>",location:ce(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;e=i.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Le(this.char()))return this.error(x.INVALID_TAG,ce(t,this.clonePosition()));i=this.clonePosition();return n!==this.parseTagName()?this.error(x.UNMATCHED_CLOSING_TAG,ce(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:k.tag,value:n,children:e,location:ce(r,this.clonePosition())},err:null}:this.error(x.INVALID_TAG,ce(t,this.clonePosition())))}return this.error(x.UNCLOSED_TAG,ce(r,this.clonePosition()))}return this.error(x.INVALID_TAG,ce(r,this.clonePosition()))},Ie.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())},Ie.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:k.literal,value:n,location:r},err:null}},Ie.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Le(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},Ie.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 we.apply(void 0,t)},Ie.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(),we(r))},Ie.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,ce(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(x.EMPTY_ARGUMENT,ce(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(x.MALFORMED_ARGUMENT,ce(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,ce(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:k.argument,value:n,location:ce(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,ce(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(x.MALFORMED_ARGUMENT,ce(r,this.clonePosition()))}},Ie.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=ve(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:ce(e,this.clonePosition())}},Ie.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(x.EXPECT_ARGUMENT_TYPE,ce(o,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((f=this.parseSimpleArgStyleIfPossible()).err)return f;if(0===(p=Ae(f.val)).length)return this.error(x.EXPECT_ARGUMENT_STYLE,ce(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:ce(u,this.clonePosition())}}if((m=this.tryParseArgumentClose(n)).err)return m;var c=ce(n,this.clonePosition());if(l&&be(null==l?void 0:l.style,"::",0)){u=_e(l.style.slice(2));if("number"===s)return(f=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?f:{val:{type:k.number,value:r,location:c,style:f.val},err:null};if(0===u.length)return this.error(x.EXPECT_DATE_TIME_SKELETON,c);var p={type:D.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},u.replace(K,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?k.date:k.time,value:r,location:c,style:p},err:null}}return{val:{type:"number"===s?k.number:"date"===s?k.date:k.time,value:r,location:c,style:null!==(c=null==l?void 0:l.style)&&void 0!==c?c:null},err:null};case"plural":case"selectordinal":case"select":l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS,ce(l,G({},l)));this.bumpSpace();var f,c=this.parseIdentifierIfPossible(),l=0;if("select"!==s&&"offset"===c.value){if(!this.bumpIf(":"))return this.error(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ce(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(f=this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,x.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return f;this.bumpSpace(),c=this.parseIdentifierIfPossible(),l=f.val}c=this.tryParsePluralOrSelectOptions(e,s,t,c);if(c.err)return c;if((m=this.tryParseArgumentClose(n)).err)return m;var m=ce(n,this.clonePosition());return"select"===s?{val:{type:k.select,value:r,options:Te(c.val),location:m},err:null}:{val:{type:k.plural,value:r,options:Te(c.val),offset:l,pluralType:"plural"===s?"cardinal":"ordinal",location:m},err:null};default:return this.error(x.INVALID_ARGUMENT_TYPE,ce(o,a))}},Ie.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,ce(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},Ie.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(x.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}},Ie.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(J).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(x.INVALID_NUMBER_SKELETON,t)}return{val:{type:D.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?ae(r):{}},err:null}},Ie.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 u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_SELECTOR,x.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=ce(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(s.has(a))return this.error("select"===t?x.DUPLICATE_SELECT_ARGUMENT_SELECTOR:x.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?x.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:x.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ce(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,r);if(c.err)return c;u=this.tryParseArgumentClose(p);if(u.err)return u;o.push([a,{value:c.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?x.EXPECT_SELECT_ARGUMENT_SELECTOR:x.EXPECT_PLURAL_ARGUMENT_SELECTOR,ce(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(x.MISSING_OTHER_CLAUSE,ce(this.clonePosition(),this.clonePosition())):{val:o,err:null}},Ie.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?Ee(o*=r)?{val:o,err:null}:this.error(t,n):this.error(e,n)},Ie.prototype.offset=function(){return this.position.offset},Ie.prototype.isEOF=function(){return this.offset()===this.message.length},Ie.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},Ie.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Se(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},Ie.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},Ie.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))},Ie.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},Ie.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)},Ie.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}},Ie.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ne(this.char());)this.bump()},Ie.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},Ie);function Ie(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function Le(e){return 97<=e&&e<=122||65<=e&&e<=90}function Ne(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Re(e,t){t=G({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r=new Ce(e,t).parse();if(r.err){e=SyntaxError(x[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,Q(e)||Z(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else V(e)&&B(e.style)||(z(e)||X(e))&&Y(e.style)?delete e.style.location:q(e)&&r(e.children)})}(r.val),r.val}function Fe(e,t){var r=t&&t.cache?t.cache:Ge,n=t&&t.serializer?t.serializer:xe;return(t&&t.strategy?t.strategy:function(e,t){return Me(e,this,1===e.length?Oe:Ue,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function Oe(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 Ue(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 Me(e,t,r,n,i){return r.bind(t,e,n,i)}var xe=function(){return JSON.stringify(arguments)};function ke(){this.cache=Object.create(null)}ke.prototype.has=function(e){return e in this.cache},ke.prototype.get=function(e){return this.cache[e]},ke.prototype.set=function(e,t){this.cache[e]=t};var De,Ge={create:function(){return new ke}},$e={variadic:function(e,t){return Me(e,this,Ue,t.cache.create(),t.serializer)},monadic:function(e,t){return Me(e,this,Oe,t.cache.create(),t.serializer)}};(H=De=De||{}).MISSING_VALUE="MISSING_VALUE",H.INVALID_VALUE="INVALID_VALUE",H.MISSING_INTL_API="MISSING_INTL_API";var je,Ve,ze,Xe,Qe,Ze=(F(Je,Qe=Error),Je.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},Je),qe=(F(We,Xe=Ze),We),Be=(F(Ke,ze=Ze),Ke),Ye=(F(He,Ve=Ze),He);function He(e,t){return Ve.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',De.MISSING_VALUE,t)||this}function Ke(e,t,r){return ze.call(this,'Value for "'+e+'" must be of type '+t,De.INVALID_VALUE,r)||this}function We(e,t,r,n){return Xe.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',De.INVALID_VALUE,n)||this}function Je(e,t,r){e=Qe.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function et(e,t,r,n,i,o,s){if(1===e.length&&j(e[0]))return[{type:je.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];if(j(c))a.push({type:je.literal,value:c.value});else if(c.type===k.pound)"number"==typeof o&&a.push({type:je.literal,value:r.getNumberFormat(t).format(o)});else{var p=c.value;if(!(i&&p in i))throw new Ye(p,s);var f=i[p];if(c.type===k.argument)f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),a.push({type:"string"==typeof f?je.literal:je.object,value:f});else if(z(c)){var m="string"==typeof c.style?n.date[c.style]:Y(c.style)?c.style.parsedOptions:void 0;a.push({type:je.literal,value:r.getDateTimeFormat(t,m).format(f)})}else if(X(c))m="string"==typeof c.style?n.time[c.style]:Y(c.style)?c.style.parsedOptions:void 0,a.push({type:je.literal,value:r.getDateTimeFormat(t,m).format(f)});else if(V(c))(m="string"==typeof c.style?n.number[c.style]:B(c.style)?c.style.parsedOptions:void 0)&&m.scale&&(f*=m.scale||1),a.push({type:je.literal,value:r.getNumberFormat(t,m).format(f)});else{if(q(c)){var h=c.children,g=c.value,p=i[g];if("function"!=typeof p)throw new Be(g,"function",s);h=p(et(h,t,r,n,i,o).map(function(e){return e.value}));Array.isArray(h)||(h=[h]),a.push.apply(a,h.map(function(e){return{type:"string"==typeof e?je.literal:je.object,value:e}}))}if(Q(c)){if(!(d=c.options[f]||c.options.other))throw new qe(c.value,f,Object.keys(c.options),s);a.push.apply(a,et(d.value,t,r,n,i))}else if(Z(c)){if(!(d=c.options["="+f])){if(!Intl.PluralRules)throw new Ze('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',De.MISSING_INTL_API,s);var h=r.getPluralRules(t,{type:c.pluralType}).select(f-(c.offset||0)),d=c.options[h]||c.options.other}if(!d)throw new qe(c.value,f,Object.keys(c.options),s);a.push.apply(a,et(d.value,t,r,n,i,f-(c.offset||0)))}}}}return a.length<2?a:a.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===je.literal&&t.type===je.literal?r.value+=t.value:e.push(t),e},[])}function ft(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=je=je||{})[H.literal=0]="literal",H[H.object=1]="object";var mt=(Object.defineProperty(ht,"defaultLocale",{get:function(){return ht.memoizedDefaultLocale||(ht.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),ht.memoizedDefaultLocale},enumerable:!1,configurable:!0}),ht.memoizedDefaultLocale=null,ht.__parse=Re,ht.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"}}},ht);function ht(e,t,r,n){var i,o,s=this;if(void 0===t&&(t=ht.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===je.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 et(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,!ht.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=ht.__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=ht.formats,(o=r)?Object.keys(i).reduce(function(e,t){var r,n;return e[t]=(r=i[t],(n=o[t])?G(G(G({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=G(G({},r[t]),n[t]||{}),e},{})):r),e},G({},i)):i),this.locales=t,this.formatters=n&&n.formatters||{getNumberFormat:Fe(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,$([void 0],t)))},{cache:ft((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:$e.variadic}),getDateTimeFormat:Fe(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,$([void 0],t)))},{cache:ft(n.dateTime),strategy:$e.variadic}),getPluralRules:Fe(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,$([void 0],t)))},{cache:ft(n.pluralRules),strategy:$e.variadic})}}const gt={},dt=(t,r)=>{if(null!=r){if(r in gt&&t in gt[r])return gt[r][t];var n,i,o=Ft(r);for(let e=0;e<o.length;e++){var s=(n=o[e],i=t,vt(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 Et[e]||null}(n),i):null);if(s)return n=t,i=r,(s=s)&&(i in gt||(gt[i]={}),n in gt[i]||(gt[i][n]=s),s)}}};let Et;const yt=w({});function vt(e){return e in Et}function bt(t,...r){delete gt[t],yt.update(e=>(e[t]=N.all([e[t]||{},...r]),e))}c([yt],([e])=>Object.keys(e)),yt.subscribe(e=>Et=e);const wt={};function Tt(e){return wt[e]}function St(e){return Ft(e).some(e=>{return null===(e=Tt(e))||void 0===e?void 0:e.size})}const _t={};function At(e){if(!St(e))return e in _t?_t[e]:void 0;const t=Ft(e).map(e=>{var t=Tt(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return _t[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=>bt(t,...e))}(e))).then(()=>St(e)?At(e):void delete _t[e]),_t[e]}function Pt(e,t){var r={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}const Ct={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 It=w(!1);let Lt;const Nt=w(null);function Rt(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Ft(e,t=Ct.fallbackLocale){e=Rt(e);return t?[...new Set([...e,...Rt(t)])]:e}Nt.subscribe(e=>{Lt=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const Ot=Nt.set;Nt.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(vt(r))return r}}}(t)&&St(t)){var{loadingDelay:r}=Ct;let e;return"undefined"!=typeof window&&null!=Lt&&r?e=window.setTimeout(()=>It.set(!0),r):It.set(!0),At(t).then(()=>{Ot(t)}).finally(()=>{clearTimeout(e),It.set(!1)})}return Ot(t)},Nt.update=e=>Ot(e(Lt));const Ut=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},Mt=(e,t)=>{var{formats:r}=Ct;if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},xt=Ut(e=>{var{locale:t,format:r}=e,e=Pt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=Mt("number",r)),new Intl.NumberFormat(t,e)}),kt=Ut(e=>{var{locale:t,format:r}=e,e=Pt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=Mt("date",r):0===Object.keys(e).length&&(e=Mt("date","short")),new Intl.DateTimeFormat(t,e)}),Dt=Ut(e=>{var{locale:t,format:r}=e,e=Pt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=Mt("time",r):0===Object.keys(e).length&&(e=Mt("time","short")),new Intl.DateTimeFormat(t,e)}),Gt=Ut((e,t=Lt)=>new mt(e,t,Ct.formats,{ignoreTag:Ct.ignoreTag})),$t=c([Nt,yt],()=>(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=dt(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 Ct.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${Ft(n).join('", "')}".${St(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=Gt(o,n).format(r)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return s});c([Nt],()=>(e,t)=>((e={})=>{var{locale:t=Lt}=e,e=Pt(e,["locale"]);return Dt(Object.assign({locale:t},e))})(t).format(e)),c([Nt],()=>(e,t)=>((e={})=>{var{locale:t=Lt}=e,e=Pt(e,["locale"]);return kt(Object.assign({locale:t},e))})(t).format(e)),c([Nt],()=>(e,t)=>((e={})=>{var{locale:t=Lt}=e,e=Pt(e,["locale"]);return xt(Object.assign({locale:t},e))})(t).format(e)),c([Nt,yt],()=>(e,t=Lt)=>dt(e,t));const jt={en:{registerFormStep1:{registerTitle:"Create your account",registerSubtitle:"Already have an account?",registerSubtitleLogin:"Login",registerEmail:"Email",registerEmailError:"Email should contain '@' and a 2-3 letter long domain.",registerUsername:"Username",registerUsernameError:"Name must be at least 4-20 characters long and contain no special characters.",registerPassword:"Password",registerPasswordError:"Password must be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",registerConfirmPassword:"Confirm Password",registerConfirmPasswordError:"It doesn't match the password.",registerSecurityQuestion:"Security Question",registerSecurityQuestionError:"Security question must be at least 1 character long and maximum 120 characters.",registerSecurityAnswer:"Security Answer",registerSecurityAnswerError:"Security answer must be at least 1 character long and maximum 120 characters.",registerNext:"Next"}},tr:{registerFormStep1:{registerTitle:"Hesabını oluştur",registerSubtitle:"Zaten hesabınız var mı?",registerSubtitleLogin:"Giriş yapmak",registerEmail:"E-posta",registerEmailError:"E-posta '@' ve 2-3 harf uzunluğunda bir etki alanı içermelidir.",registerUsername:"Kullanıcı adı",registerUsernameError:"Ad en az 4-20 karakter uzunluğunda olmalı ve özel karakter içermemelidir.",registerPassword:"Parola",registerPasswordError:"Şifre 8-20 karakter uzunluğunda olmalı ve en az 1 büyük harf, 1 rakam ve 1 özel karakter içermelidir.",registerConfirmPassword:"Şifreyi Onayla",registerConfirmPasswordError:"Şifreyle eşleşmiyor.",registerSecurityQuestion:"Güvenlik Sorusu",registerSecurityQuestionError:"Güvenlik sorusu en az 1, en fazla 120 karakter uzunluğunda olmalıdır.",registerSecurityAnswer:"Güvenlik cevabı",registerSecurityAnswerError:"Güvenlik cevabı en az 1 karakter uzunluğunda ve en fazla 120 karakter olmalıdır.",registerNext:"Sonraki"}},ro:{registerFormStep1:{registerTitle:"Creaza cont",registerSubtitle:"Ai deja cont?",registerSubtitleLogin:"Autentifica-te",registerEmail:"Email",registerEmailError:"Email-ul ar trebui sa contina '@' si 2-3 litere.",registerUsername:"Utilizator",registerUsernameError:"Utilizatorul trebuie sa fie cuprins intre 4-20 litere si sa nu contina caractere speciale.",registerPassword:"Parola",registerPasswordError:"Parola trebuie sa fie cuprinsa intre 8 si 20 de caractere, cel putin o litera mare, cel putin un numar si cel putin un caracter special.",registerConfirmPassword:"Confirma Parola",registerConfirmPasswordError:"Confirmarea parolei trebuie sa fie la fel cu parola",registerSecurityQuestion:"Intrebare de Securitate",registerSecurityQuestionError:"Intrebarea de securitate trebuie sa fie cuprinsa intre 1 si 120 de litere.",registerSecurityAnswer:"Raspuns de Securitate",registerSecurityAnswerError:"Raspunsul de securitate trebuie sa fie cuprins intre 1 si 120 de litere",registerNext:"Urmatorul"}}};function Vt(e){let r,n,i=e[17]("registerFormStep1.registerEmailError")+"";return{c(){r=t("p"),n=st(i),ut(r,"class","InvalidInput"),ut(r,"part","InvalidInput")},m(e,t){it(e,r,t),nt(r,n)},p(e,t){131072&t[0]&&i!==(i=e[17]("registerFormStep1.registerEmailError")+"")&&ct(n,i)},d(e){e&&ot(r)}}}function zt(e){let r,n,i=e[17]("registerFormStep1.registerUsernameError")+"";return{c(){r=t("p"),n=st(i),ut(r,"class","InvalidInput"),ut(r,"part","InvalidInput")},m(e,t){it(e,r,t),nt(r,n)},p(e,t){131072&t[0]&&i!==(i=e[17]("registerFormStep1.registerUsernameError")+"")&&ct(n,i)},d(e){e&&ot(r)}}}function Xt(r){let n,i,o,s,a,l,u,c,p;return{c(){n=e("svg"),i=e("defs"),o=e("style"),s=st(".a{fill:var(--emfe-w-color-contrast, #07072A);}"),a=e("g"),l=e("path"),u=e("circle"),ut(l,"class","a"),ut(l,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),ut(l,"transform","translate(0)"),ut(u,"class","a"),ut(u,"cx","2.779"),ut(u,"cy","2.779"),ut(u,"r","2.779"),ut(u,"transform","translate(20.827 30.303)"),ut(a,"transform","translate(-14.185 -27.832)"),ut(n,"class","TogglePasswordVisibility"),ut(n,"part","TogglePasswordVisibility"),ut(n,"xmlns","http://www.w3.org/2000/svg"),ut(n,"width","18.843"),ut(n,"height","10.5"),ut(n,"viewBox","0 0 18.843 10.5")},m(e,t){it(e,n,t),nt(n,i),nt(i,o),nt(o,s),nt(n,a),nt(a,l),nt(a,u),c||(p=lt(n,"click",r[37]),c=!0)},p:tt,d(e){e&&ot(n),c=!1,p()}}}function Qt(r){let n,i,o,s,a,l,u,c,p,f,m,h,g,d,E;return{c(){n=e("svg"),i=e("defs"),o=e("style"),s=st(".a{fill:var(--emfe-w-color-contrast, #07072A);}"),a=e("g"),l=e("circle"),u=e("g"),c=e("path"),p=e("path"),f=e("g"),m=e("path"),h=e("path"),g=e("rect"),ut(l,"class","a"),ut(l,"cx","0.05"),ut(l,"cy","0.05"),ut(l,"r","0.05"),ut(l,"transform","translate(121.017 31.148)"),ut(c,"class","a"),ut(c,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),ut(c,"transform","translate(-142.164 -39.123)"),ut(p,"class","a"),ut(p,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),ut(p,"transform","translate(-136.413 -42.068)"),ut(u,"transform","translate(117.499 27.37)"),ut(m,"class","a"),ut(m,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),ut(m,"transform","translate(-110.856 -33.157)"),ut(h,"class","a"),ut(h,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),ut(h,"transform","translate(-130.743 -29.617)"),ut(f,"transform","translate(110.856 24.899)"),ut(g,"class","a"),ut(g,"width","0.972"),ut(g,"height","15.861"),ut(g,"rx","0.486"),ut(g,"transform","translate(114.827 23.858) rotate(-39.315)"),ut(a,"transform","translate(-110.856 -23.242)"),ut(n,"class","TogglePasswordVisibility"),ut(n,"part","TogglePasswordVisibility"),ut(n,"xmlns","http://www.w3.org/2000/svg"),ut(n,"width","18.844"),ut(n,"height","12.887"),ut(n,"viewBox","0 0 18.844 12.887")},m(e,t){it(e,n,t),nt(n,i),nt(i,o),nt(o,s),nt(n,a),nt(a,l),nt(a,u),nt(u,c),nt(u,p),nt(a,f),nt(f,m),nt(f,h),nt(a,g),d||(E=lt(n,"click",r[36]),d=!0)},p:tt,d(e){e&&ot(n),d=!1,E()}}}function Zt(e){let r,n,i=e[17]("registerFormStep1.registerPasswordError")+"";return{c(){r=t("p"),n=st(i),ut(r,"class","InvalidInput"),ut(r,"part","InvalidInput")},m(e,t){it(e,r,t),nt(r,n)},p(e,t){131072&t[0]&&i!==(i=e[17]("registerFormStep1.registerPasswordError")+"")&&ct(n,i)},d(e){e&&ot(r)}}}function qt(r){let n,i,o,s,a,l,u,c,p;return{c(){n=e("svg"),i=e("defs"),o=e("style"),s=st(".a{fill:var(--emfe-w-color-contrast, #07072A);}"),a=e("g"),l=e("path"),u=e("circle"),ut(l,"class","a"),ut(l,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),ut(l,"transform","translate(0)"),ut(u,"class","a"),ut(u,"cx","2.779"),ut(u,"cy","2.779"),ut(u,"r","2.779"),ut(u,"transform","translate(20.827 30.303)"),ut(a,"transform","translate(-14.185 -27.832)"),ut(n,"class","ToggleConfirmPasswordVisibility"),ut(n,"part","ToggleConfirmPasswordVisibility"),ut(n,"xmlns","http://www.w3.org/2000/svg"),ut(n,"width","18.843"),ut(n,"height","10.5"),ut(n,"viewBox","0 0 18.843 10.5")},m(e,t){it(e,n,t),nt(n,i),nt(i,o),nt(o,s),nt(n,a),nt(a,l),nt(a,u),c||(p=lt(n,"click",r[41]),c=!0)},p:tt,d(e){e&&ot(n),c=!1,p()}}}function Bt(r){let n,i,o,s,a,l,u,c,p,f,m,h,g,d,E;return{c(){n=e("svg"),i=e("defs"),o=e("style"),s=st(".a{fill:var(--emfe-w-color-contrast, #07072A);}"),a=e("g"),l=e("circle"),u=e("g"),c=e("path"),p=e("path"),f=e("g"),m=e("path"),h=e("path"),g=e("rect"),ut(l,"class","a"),ut(l,"cx","0.05"),ut(l,"cy","0.05"),ut(l,"r","0.05"),ut(l,"transform","translate(121.017 31.148)"),ut(c,"class","a"),ut(c,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),ut(c,"transform","translate(-142.164 -39.123)"),ut(p,"class","a"),ut(p,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),ut(p,"transform","translate(-136.413 -42.068)"),ut(u,"transform","translate(117.499 27.37)"),ut(m,"class","a"),ut(m,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),ut(m,"transform","translate(-110.856 -33.157)"),ut(h,"class","a"),ut(h,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),ut(h,"transform","translate(-130.743 -29.617)"),ut(f,"transform","translate(110.856 24.899)"),ut(g,"class","a"),ut(g,"width","0.972"),ut(g,"height","15.861"),ut(g,"rx","0.486"),ut(g,"transform","translate(114.827 23.858) rotate(-39.315)"),ut(a,"transform","translate(-110.856 -23.242)"),ut(n,"class","ToggleConfirmPasswordVisibility"),ut(n,"part","ToggleConfirmPasswordVisibility"),ut(n,"xmlns","http://www.w3.org/2000/svg"),ut(n,"width","18.844"),ut(n,"height","12.887"),ut(n,"viewBox","0 0 18.844 12.887")},m(e,t){it(e,n,t),nt(n,i),nt(i,o),nt(o,s),nt(n,a),nt(a,l),nt(a,u),nt(u,c),nt(u,p),nt(a,f),nt(f,m),nt(f,h),nt(a,g),d||(E=lt(n,"click",r[40]),d=!0)},p:tt,d(e){e&&ot(n),d=!1,E()}}}function Yt(e){let r,n,i=e[17]("registerFormStep1.registerConfirmPasswordError")+"";return{c(){r=t("p"),n=st(i),ut(r,"class","InvalidInput"),ut(r,"part","InvalidInput")},m(e,t){it(e,r,t),nt(r,n)},p(e,t){131072&t[0]&&i!==(i=e[17]("registerFormStep1.registerConfirmPasswordError")+"")&&ct(n,i)},d(e){e&&ot(r)}}}function Ht(e){let r,n,i=e[17]("registerFormStep1.registerSecurityQuestionError")+"";return{c(){r=t("p"),n=st(i),ut(r,"class","InvalidInput"),ut(r,"part","InvalidInput")},m(e,t){it(e,r,t),nt(r,n)},p(e,t){131072&t[0]&&i!==(i=e[17]("registerFormStep1.registerSecurityQuestionError")+"")&&ct(n,i)},d(e){e&&ot(r)}}}function Kt(e){let r,n,i=e[17]("registerFormStep1.registerSecurityAnswerError")+"";return{c(){r=t("p"),n=st(i),ut(r,"class","InvalidInput"),ut(r,"part","InvalidInput")},m(e,t){it(e,r,t),nt(r,n)},p(e,t){131072&t[0]&&i!==(i=e[17]("registerFormStep1.registerSecurityAnswerError")+"")&&ct(n,i)},d(e){e&&ot(r)}}}function Wt(r){let n,i,o,s,a,l,u,c,p,f,m,h,g,d,E,y,v,b,w,T,S,_,A,P,C,I,L,N,R,F,O,U,M,x,k,D,G,$,j,V,z,X,Q,Z,q,B,Y,H,K,W,J,ee,te,re,ne,ie,oe,se,ae,le,ue,ce,pe,fe,me,he,ge,de,Ee,ye,ve,be,we,Te,Se,_e,Ae,Pe,Ce,Ie,Le,Ne,Re,Fe,Oe=r[17]("registerFormStep1.registerTitle")+"",Ue=r[17]("registerFormStep1.registerSubtitle")+"",Me=r[17]("registerFormStep1.registerSubtitleLogin")+"",xe=r[17]("registerFormStep1.registerEmail")+"",ke=r[17]("registerFormStep1.registerUsername")+"",De=r[17]("registerFormStep1.registerPassword")+"",Ge=r[17]("registerFormStep1.registerConfirmPassword")+"",$e=r[17]("registerFormStep1.registerSecurityQuestion")+"",je=r[17]("registerFormStep1.registerSecurityAnswer")+"",Ve=r[17]("registerFormStep1.registerNext")+"",ze=r[0]&&Vt(r),Xe=r[1]&&zt(r);function Qe(e){return e[12]?Qt:Xt}let Ze=Qe(r),qe=Ze(r),Be=r[2]&&Zt(r);function Ye(e){return e[13]?Bt:qt}let He=Ye(r),Ke=He(r),We=r[3]&&Yt(r),Je=r[4]&&Ht(r),et=r[5]&&Kt(r);return{c(){n=t("div"),i=t("h2"),o=st(Oe),s=at(),a=t("p"),l=st(Ue),u=at(),c=t("span"),p=st(Me),f=at(),m=t("div"),h=t("div"),g=t("label"),d=st(xe),E=st(":"),y=t("span"),y.textContent="*",v=at(),b=t("input"),w=at(),ze&&ze.c(),_=at(),A=t("div"),P=t("label"),C=st(ke),I=st(":"),L=t("span"),L.textContent="*",N=at(),R=t("input"),F=at(),Xe&&Xe.c(),M=at(),x=t("div"),k=t("label"),D=st(De),G=st(":"),$=t("span"),$.textContent="*",j=at(),V=t("input"),z=at(),qe.c(),X=at(),Be&&Be.c(),q=at(),B=t("div"),Y=t("label"),H=st(Ge),K=st(":"),W=t("span"),W.textContent="*",J=at(),ee=t("input"),te=at(),Ke.c(),re=at(),We&&We.c(),oe=at(),se=t("div"),ae=t("label"),le=st($e),ue=st(":"),ce=t("span"),ce.textContent="*",pe=at(),fe=t("input"),me=at(),Je&&Je.c(),de=at(),Ee=t("div"),ye=t("label"),ve=st(je),be=st(":"),we=t("span"),we.textContent="*",Te=at(),Se=t("input"),_e=at(),et&&et.c(),Ce=at(),Ie=t("button"),Le=st(Ve),this.c=tt,ut(i,"class","RegisterFormTitle"),ut(i,"part","RegisterFormTitle"),ut(c,"class","FormLoginCallToAction"),ut(a,"class","RegisterFormSubtitle"),ut(a,"part","RegisterFormSubtitle"),ut(n,"class","RegisterFormHeader"),ut(n,"part","RegisterFormHeader"),ut(y,"class","FormRequired"),ut(y,"part","FormRequired"),ut(g,"for","Email"),ut(b,"type","text"),ut(b,"id","Email"),ut(h,"class",T="EmailContainer "+(r[0]?"InvalidField":"")),ut(h,"part",S="EmailContainer "+(r[0]?"InvalidField":"")),ut(L,"class","FormRequired"),ut(L,"part","FormRequired"),ut(P,"for","UserName"),ut(R,"type","text"),ut(R,"id","UserName"),ut(A,"class",O="UserContainer "+(r[1]?"InvalidField":"")),ut(A,"part",U="UserContainer "+(r[1]?"InvalidField":"")),ut($,"class","FormRequired"),ut($,"part","FormRequired"),ut(k,"for","Password"),ut(V,"type","password"),ut(V,"id","Password"),ut(x,"class",Q="PasswordContainer "+(r[2]?"InvalidField":"")),ut(x,"part",Z="PasswordContainer "+(r[2]?"InvalidField":"")),ut(W,"class","FormRequired"),ut(W,"part","FormRequired"),ut(Y,"for","ConfirmPassword"),ut(ee,"type","password"),ut(ee,"id","ConfirmPassword"),ut(B,"class",ne="ConfirmPasswordContainer "+(r[3]?"InvalidField":"")),ut(B,"part",ie="ConfirmPasswordContainer "+(r[3]?"InvalidField":"")),ut(ce,"class","FormRequired"),ut(ce,"part","FormRequired"),ut(ae,"for","SecurityQuestion"),ut(fe,"type","text"),ut(fe,"id","SecurityQuestion"),ut(se,"class",he="SecurityQuestionContainer "+(r[4]?"InvalidField":"")),ut(se,"part",ge="SecurityQuestionContainer "+(r[4]?"InvalidField":"")),ut(we,"class","FormRequired"),ut(we,"part","FormRequired"),ut(ye,"for","SecurityAnswer"),ut(Se,"type","text"),ut(Se,"id","SecurityAnswer"),ut(Ee,"class",Ae="SecurityAnswerContainer "+(r[5]?"InvalidField":"")),ut(Ee,"part",Pe="SecurityAnswerContainer "+(r[5]?"InvalidField":"")),ut(m,"class","RegisterFormContent"),ut(m,"part","RegisterFormContent"),ut(Ie,"class","RegisterStepNext"),ut(Ie,"part","RegisterStepNext"),Ie.disabled=Ne=!r[16]},m(e,t){it(e,n,t),nt(n,i),nt(i,o),nt(n,s),nt(n,a),nt(a,l),nt(a,u),nt(a,c),nt(c,p),it(e,f,t),it(e,m,t),nt(m,h),nt(h,g),nt(g,d),nt(g,E),nt(g,y),nt(h,v),nt(h,b),pt(b,r[7]),nt(h,w),ze&&ze.m(h,null),nt(m,_),nt(m,A),nt(A,P),nt(P,C),nt(P,I),nt(P,L),nt(A,N),nt(A,R),pt(R,r[6]),nt(A,F),Xe&&Xe.m(A,null),nt(m,M),nt(m,x),nt(x,k),nt(k,D),nt(k,G),nt(k,$),nt(x,j),nt(x,V),pt(V,r[8]),r[35](V),nt(x,z),qe.m(x,null),nt(x,X),Be&&Be.m(x,null),nt(m,q),nt(m,B),nt(B,Y),nt(Y,H),nt(Y,K),nt(Y,W),nt(B,J),nt(B,ee),pt(ee,r[9]),r[39](ee),nt(B,te),Ke.m(B,null),nt(B,re),We&&We.m(B,null),nt(m,oe),nt(m,se),nt(se,ae),nt(ae,le),nt(ae,ue),nt(ae,ce),nt(se,pe),nt(se,fe),pt(fe,r[10]),nt(se,me),Je&&Je.m(se,null),nt(m,de),nt(m,Ee),nt(Ee,ye),nt(ye,ve),nt(ye,be),nt(ye,we),nt(Ee,Te),nt(Ee,Se),pt(Se,r[11]),nt(Ee,_e),et&&et.m(Ee,null),it(e,Ce,t),it(e,Ie,t),nt(Ie,Le),Re||(Fe=[lt(c,"click",r[31]),lt(b,"input",r[32]),lt(b,"blur",r[19]),lt(R,"input",r[33]),lt(R,"blur",r[20]),lt(V,"input",r[34]),lt(V,"blur",r[25]),lt(ee,"input",r[38]),lt(ee,"blur",r[26]),lt(fe,"input",r[42]),lt(fe,"blur",r[27]),lt(Se,"input",r[43]),lt(Se,"keyup",r[28]),lt(Ie,"click",r[29])],Re=!0)},p(e,t){131072&t[0]&&Oe!==(Oe=e[17]("registerFormStep1.registerTitle")+"")&&ct(o,Oe),131072&t[0]&&Ue!==(Ue=e[17]("registerFormStep1.registerSubtitle")+"")&&ct(l,Ue),131072&t[0]&&Me!==(Me=e[17]("registerFormStep1.registerSubtitleLogin")+"")&&ct(p,Me),131072&t[0]&&xe!==(xe=e[17]("registerFormStep1.registerEmail")+"")&&ct(d,xe),128&t[0]&&b.value!==e[7]&&pt(b,e[7]),e[0]?ze?ze.p(e,t):(ze=Vt(e),ze.c(),ze.m(h,null)):ze&&(ze.d(1),ze=null),1&t[0]&&T!==(T="EmailContainer "+(e[0]?"InvalidField":""))&&ut(h,"class",T),1&t[0]&&S!==(S="EmailContainer "+(e[0]?"InvalidField":""))&&ut(h,"part",S),131072&t[0]&&ke!==(ke=e[17]("registerFormStep1.registerUsername")+"")&&ct(C,ke),64&t[0]&&R.value!==e[6]&&pt(R,e[6]),e[1]?Xe?Xe.p(e,t):(Xe=zt(e),Xe.c(),Xe.m(A,null)):Xe&&(Xe.d(1),Xe=null),2&t[0]&&O!==(O="UserContainer "+(e[1]?"InvalidField":""))&&ut(A,"class",O),2&t[0]&&U!==(U="UserContainer "+(e[1]?"InvalidField":""))&&ut(A,"part",U),131072&t[0]&&De!==(De=e[17]("registerFormStep1.registerPassword")+"")&&ct(D,De),256&t[0]&&V.value!==e[8]&&pt(V,e[8]),Ze===(Ze=Qe(e))&&qe?qe.p(e,t):(qe.d(1),qe=Ze(e),qe&&(qe.c(),qe.m(x,X))),e[2]?Be?Be.p(e,t):(Be=Zt(e),Be.c(),Be.m(x,null)):Be&&(Be.d(1),Be=null),4&t[0]&&Q!==(Q="PasswordContainer "+(e[2]?"InvalidField":""))&&ut(x,"class",Q),4&t[0]&&Z!==(Z="PasswordContainer "+(e[2]?"InvalidField":""))&&ut(x,"part",Z),131072&t[0]&&Ge!==(Ge=e[17]("registerFormStep1.registerConfirmPassword")+"")&&ct(H,Ge),512&t[0]&&ee.value!==e[9]&&pt(ee,e[9]),He===(He=Ye(e))&&Ke?Ke.p(e,t):(Ke.d(1),Ke=He(e),Ke&&(Ke.c(),Ke.m(B,re))),e[3]?We?We.p(e,t):(We=Yt(e),We.c(),We.m(B,null)):We&&(We.d(1),We=null),8&t[0]&&ne!==(ne="ConfirmPasswordContainer "+(e[3]?"InvalidField":""))&&ut(B,"class",ne),8&t[0]&&ie!==(ie="ConfirmPasswordContainer "+(e[3]?"InvalidField":""))&&ut(B,"part",ie),131072&t[0]&&$e!==($e=e[17]("registerFormStep1.registerSecurityQuestion")+"")&&ct(le,$e),1024&t[0]&&fe.value!==e[10]&&pt(fe,e[10]),e[4]?Je?Je.p(e,t):(Je=Ht(e),Je.c(),Je.m(se,null)):Je&&(Je.d(1),Je=null),16&t[0]&&he!==(he="SecurityQuestionContainer "+(e[4]?"InvalidField":""))&&ut(se,"class",he),16&t[0]&&ge!==(ge="SecurityQuestionContainer "+(e[4]?"InvalidField":""))&&ut(se,"part",ge),131072&t[0]&&je!==(je=e[17]("registerFormStep1.registerSecurityAnswer")+"")&&ct(ve,je),2048&t[0]&&Se.value!==e[11]&&pt(Se,e[11]),e[5]?et?et.p(e,t):(et=Kt(e),et.c(),et.m(Ee,null)):et&&(et.d(1),et=null),32&t[0]&&Ae!==(Ae="SecurityAnswerContainer "+(e[5]?"InvalidField":""))&&ut(Ee,"class",Ae),32&t[0]&&Pe!==(Pe="SecurityAnswerContainer "+(e[5]?"InvalidField":""))&&ut(Ee,"part",Pe),131072&t[0]&&Ve!==(Ve=e[17]("registerFormStep1.registerNext")+"")&&ct(Le,Ve),65536&t[0]&&Ne!==(Ne=!e[16])&&(Ie.disabled=Ne)},i:tt,o:tt,d(e){e&&ot(n),e&&ot(f),e&&ot(m),ze&&ze.d(),Xe&&Xe.d(),r[35](null),qe.d(),Be&&Be.d(),r[39](null),Ke.d(),We&&We.d(),Je&&Je.d(),et&&et.d(),e&&ot(Ce),e&&ot(Ie),Re=!1,rt(Fe)}}}function Jt(t,e,r){let n;var i=$t;t.$$.on_destroy.push(O(i,e=>r(17,n=e)));let o,s,{lang:a=""}=e,l=!1,u=!1,c=!1,p=!1,f=!1,m=!1,h="",g="",d="",E="",y="",v="",b=!1,w=!1,T=!1;Object.keys(jt).forEach(e=>{bt(e,jt[e])});const S=()=>{r(16,T=!(l||u||c||p||f||m)),(h.length<=0||g.length<=0||d.length<=0||E.length<=0||y.length<=0||v.length<=0)&&r(16,T=!1)},_=()=>{window.postMessage({type:"ToLogin"},window.location.href)},A={user:/^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){4})^[a-zA-Z\d].*$/,email:/^[^<>()*{}=/|?`~[\]\\,;:\%#^\s@\"$&!@]+@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z0-9]+\.)+[a-zA-Z]{2,}))$/i,password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/},P=()=>{r(12,b=!0),N()},C=()=>{r(13,w=!0),R()},I=()=>{r(12,b=!1),N()},L=()=>{r(13,w=!1),R()},N=()=>{r(14,o.type=b?"text":"password",o)},R=()=>{r(15,s.type=w?"text":"password",s)},F=e=>{e.data&&"StepOneDataBackup"===e.data.type&&(r(7,g=e.data.userData.email),r(6,h=e.data.userData.username),r(8,d=e.data.userData.password),r(9,E=e.data.userData.password),r(10,y=e.data.userData.securityQuestion),r(11,v=e.data.userData.securityAnswer),S())};return e=()=>(window.addEventListener("message",F,!1),()=>{window.removeEventListener("message",F)}),function(){if(!U)throw new Error("Function called outside component initialization");return U}().$$.on_mount.push(e),t.$$set=e=>{"lang"in e&&r(30,a=e.lang)},t.$$.update=()=>{var e;1073741824&t.$$.dirty[0]&&a&&(e=a,Nt.set(e))},[l,u,c,p,f,m,h,g,d,E,y,v,b,w,o,s,T,n,_,()=>{var e;r(0,(e=g,l=!(A.email.test(e)&&e.length<=100))),S()},()=>{var e;r(1,(e=h,u=!(A.user.test(e)&&e.length<=20))),S()},P,C,I,L,()=>{var e;r(2,(e=d,c=!A.password.test(e))),d!==E&&0<E.length?r(3,p=!0):r(3,p=!1),S()},()=>{r(3,p=!(d===E)),S()},()=>{r(4,f=!(y&&y.length<=120)),S()},()=>{r(5,m=!(v&&v.length<=120)),S()},()=>{var e={userEmail:g,userValue:h,userPassword:d,confirmUserPassword:E,securityQuestion:y,securityAnswer:v};window.postMessage({type:"RegisterStepOne",registerStepOneData:e},window.location.href)},a,()=>_(),function(){g=this.value,r(7,g)},function(){h=this.value,r(6,h)},function(){d=this.value,r(8,d)},function(e){M[e?"unshift":"push"](()=>{o=e,r(14,o)})},()=>I(),()=>P(),function(){E=this.value,r(9,E)},function(e){M[e?"unshift":"push"](()=>{s=e,r(15,s)})},()=>L(),()=>C(),function(){y=this.value,r(10,y)},function(){v=this.value,r(11,v)}]}class er 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'}.RegisterFormTitle{font-size:20px;text-transform:uppercase;font-weight:300;margin:0;padding-bottom:8px}.RegisterFormSubtitle{font-size:14px;margin:0;padding-bottom:20px}.FormLoginCallToAction{color:var(--emfe-w-color-primary, #D0046C);font-size:14px;font-weight:400;text-decoration:none;cursor:pointer}.EmailContainer,.UserContainer,.PasswordContainer,.ConfirmPasswordContainer,.SecurityQuestionContainer,.SecurityAnswerContainer{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:30px;position:relative}.EmailContainer label,.UserContainer label,.PasswordContainer label,.ConfirmPasswordContainer label,.SecurityQuestionContainer label,.SecurityAnswerContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.EmailContainer input,.UserContainer input,.PasswordContainer input,.ConfirmPasswordContainer input,.SecurityQuestionContainer input,.SecurityAnswerContainer input{width:100%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.EmailContainer.InvalidField input,.UserContainer.InvalidField input,.PasswordContainer.InvalidField input,.ConfirmPasswordContainer.InvalidField input,.SecurityQuestionContainer.InvalidField input,.SecurityAnswerContainer.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)}.PasswordContainer,.ConfirmPasswordContainer{position:relative}.PasswordContainer input,.ConfirmPasswordContainer input{padding:5px 30px 5px 15px}.FormRequired{color:var(--emfe-w-color-secondary, #FD2839)}.TogglePasswordVisibility,.ToggleConfirmPasswordVisibility{height:13px;position:absolute;right:8px;bottom:45px}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect,.ToggleConfirmPasswordVisibility path,.ToggleConfirmPasswordVisibility circle,.ToggleConfirmPasswordVisibility rect{fill:var(--emfe-w-color-gray-300, #58586B)}.InvalidInput{color:var(--emfe-w-color-error, #FD2839);font-size:10px;position:absolute;bottom:-3px;line-height:10px}.UserContainer .InvalidInput{bottom:-3px}.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-150, #828282);cursor:not-allowed}input::-ms-reveal,input::-ms-clear{display:none}</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},Jt,Wt,r,{lang:30},[-1,-1]),e&&(e.target&&it(e.target,this,e.anchor),e.props&&(this.$set(e.props),v()))}static get observedAttributes(){return["lang"]}get lang(){return this.$$.ctx[30]}set lang(e){this.$set({lang:e}),v()}}return customElements.get("general-player-register-form-step1")||customElements.define("general-player-register-form-step1",er),er});
|
|
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 tt(){}function p(e){return e()}function f(){return Object.create(null)}function rt(e){e.forEach(p)}function m(e){return"function"==typeof e}function r(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function O(e,...t){if(null==e)return tt;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function nt(e,t){e.appendChild(t)}function it(e,t,r){e.insertBefore(t,r||null)}function ot(e){e.parentNode.removeChild(e)}function t(e){return document.createElement(e)}function e(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function st(e){return document.createTextNode(e)}function at(){return st(" ")}function lt(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function ut(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 pt(e,t){e.value=null==t?"":t}let U;function h(e){U=e}const g=[],M=[],n=[],i=[],d=Promise.resolve();let E=!1;function y(e){n.push(e)}let o=!1;const s=new Set;function v(){if(!o){o=!0;do{for(let e=0;e<g.length;e+=1){var t=g[e];h(t),function(e){{var t;null!==e.fragment&&(e.update(),rt(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(y))}}(t.$$)}for(h(null),g.length=0;M.length;)M.pop()();for(let e=0;e<n.length;e+=1){const r=n[e];s.has(r)||(s.add(r),r())}}while(n.length=0,g.length);for(;i.length;)i.pop()();E=!1,o=!1,s.clear()}}const b=new Set;function a(n,e,t,r,i,o,s=[-1]){var a,l=U;h(n);const u=n.$$={fragment:null,ctx:null,props:o,update:tt,not_equal:i,bound:f(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:f(),dirty:s,skip_bound:!1};let c=!1;if(u.ctx=t?t(n,e.props||{},(e,t,...r)=>{r=r.length?r[0]:t;return u.ctx&&i(u.ctx[e],u.ctx[e]=r)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](r),c&&(r=e,-1===(e=n).$$.dirty[0]&&(g.push(e),E||(E=!0,d.then(v)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],u.update(),c=!0,rt(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){const tt=(r=e.target,Array.from(r.childNodes));u.fragment&&u.fragment.l(tt),tt.forEach(ot)}else u.fragment&&u.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||y(()=>{var e=o.map(p).filter(m);s?s.push(...e):rt(e),t.$$.on_mount=[]}),a.forEach(y)}(n,e.target,e.anchor,e.customElement),v()}h(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(m);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){rt(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(rt(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=tt}$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 u=[];function w(n,i=tt){let o;const s=[];function a(e){if(r(n,e)&&(n=e,o)){const e=!u.length;for(let e=0;e<s.length;e+=1){const t=s[e];t[1](),u.push(t,n)}if(e){for(let e=0;e<u.length;e+=2)u[e][0](u[e+1]);u.length=0}}}return{set:a,update:function(e){a(e(n))},subscribe:function(e,t=tt){const r=[e,t];return s.push(r),1===s.length&&(o=i(a)||tt),e(n),()=>{var e=s.indexOf(r);-1!==e&&s.splice(e,1),0===s.length&&(o(),o=null)}}}}function c(e,a,t){const l=!Array.isArray(e),u=l?[e]:e,c=a.length<2;return{subscribe:w(t,t=>{let r=!1;const n=[];let i=0,o=tt;const s=()=>{var e;i||(o(),e=a(l?n[0]:n,t),c?t(e):o=m(e)?e:tt)},e=u.map((e,t)=>O(e,e=>{n[t]=e,i&=~(1<<t),r&&s()},()=>{i|=1<<t}));return r=!0,s(),function(){rt(e),o()}}).subscribe}}var T=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===S));var t},S="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function _(e,t){return!1!==t.clone&&t.isMergeableObject(e)?L(Array.isArray(e)?[]:{},e,t):e}function A(e,t,r){return e.concat(t).map(function(e){return _(e,r)})}function P(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function C(e,t){try{return t in e}catch(e){return!1}}function I(n,i,o){var s={};return o.isMergeableObject(n)&&P(n).forEach(function(e){s[e]=_(n[e],o)}),P(i).forEach(function(t){var e,r;(!C(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(C(n,t)&&o.isMergeableObject(i[t])?s[t]=function(){if(!o.customMerge)return L;var e=o.customMerge(t);return"function"==typeof e?e:L}()(n[t],i[t],o):s[t]=_(i[t],o))}),s}function L(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||A,r.isMergeableObject=r.isMergeableObject||T,r.cloneUnlessOtherwiseSpecified=_;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):I(e,t,r):_(t,r)}L.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return L(e,t,r)},{})};var N=L,R=function(e,t){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function F(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}R(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var x,k,D,G=function(){return(G=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 $(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e}function j(e){return e.type===k.literal}function V(e){return e.type===k.number}function z(e){return e.type===k.date}function X(e){return e.type===k.time}function Q(e){return e.type===k.select}function Z(e){return e.type===k.plural}function q(e){return e.type===k.tag}function B(e){return e&&"object"==typeof e&&e.type===D.number}function Y(e){return e&&"object"==typeof e&&e.type===D.dateTime}(he=x=x||{})[he.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",he[he.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",he[he.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",he[he.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",he[he.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",he[he.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",he[he.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",he[he.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",he[he.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",he[he.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",he[he.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",he[he.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",he[he.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",he[he.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",he[he.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",he[he.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",he[he.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",he[he.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",he[he.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",he[he.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",he[he.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",he[he.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",he[he.INVALID_TAG=23]="INVALID_TAG",he[he.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",he[he.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",he[he.UNCLOSED_TAG=27]="UNCLOSED_TAG",(ge=k=k||{})[ge.literal=0]="literal",ge[ge.argument=1]="argument",ge[ge.number=2]="number",ge[ge.date=3]="date",ge[ge.time=4]="time",ge[ge.select=5]="select",ge[ge.plural=6]="plural",ge[ge.pound=7]="pound",ge[ge.tag=8]="tag",(de=D=D||{})[de.number=0]="number",de[de.dateTime=1]="dateTime";var H=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,K=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;var W,J=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,ee=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,te=/^(@+)?(\+|#+)?$/g,re=/(\*)(0+)|(#+)(0+)|(0+)/g,ne=/^(0+)$/;function ie(e){var n={};return e.replace(te,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 oe(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 se(e){return oe(e)||{}}function ae(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=G(G(G({},s),{notation:"scientific"}),i.options.reduce(function(e,t){return G(G({},e),se(t))},{}));continue;case"engineering":s=G(G(G({},s),{notation:"engineering"}),i.options.reduce(function(e,t){return G(G({},e),se(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(re,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(ne.test(i.stem))s.minimumIntegerDigits=i.stem.length;else if(ee.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(ee,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=G(G({},s),ie(i.options[0])))}else te.test(i.stem)?s=G(G({},s),ie(i.stem)):((n=oe(i.stem))&&(s=G(G({},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)),!ne.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(s=G(G({},s),n)))}return s}var le=new RegExp("^"+H.source+"*"),ue=new RegExp(H.source+"*$");function ce(e,t){return{start:e,end:t}}var pe=!!String.prototype.startsWith,fe=!!String.fromCodePoint,me=!!Object.fromEntries,he=!!String.prototype.codePointAt,ge=!!String.prototype.trimStart,de=!!String.prototype.trimEnd,Ee=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},H=!0;try{H="a"===(null===(W=Pe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===W?void 0:W[0])}catch(tt){H=!1}var ye,ve,be=pe?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},we=fe?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},Te=me?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},Se=he?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}},_e=ge?function(e){return e.trimStart()}:function(e){return e.replace(le,"")},Ae=de?function(e){return e.trimEnd()}:function(e){return e.replace(ue,"")};function Pe(e,t){return new RegExp(e,t)}ve=H?(ye=Pe("([^\\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=Se(e,t);if(void 0===i||Ne(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 we.apply(void 0,n)};var Ce=(Ie.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},Ie.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(x.UNMATCHED_CLOSING_TAG,ce(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Le(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{o=this.clonePosition();this.bump(),n.push({type:k.pound,location:ce(o,this.clonePosition())})}}}return{val:n,err:null}},Ie.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:k.literal,value:"<"+n+"/>",location:ce(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;e=i.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Le(this.char()))return this.error(x.INVALID_TAG,ce(t,this.clonePosition()));i=this.clonePosition();return n!==this.parseTagName()?this.error(x.UNMATCHED_CLOSING_TAG,ce(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:k.tag,value:n,children:e,location:ce(r,this.clonePosition())},err:null}:this.error(x.INVALID_TAG,ce(t,this.clonePosition())))}return this.error(x.UNCLOSED_TAG,ce(r,this.clonePosition()))}return this.error(x.INVALID_TAG,ce(r,this.clonePosition()))},Ie.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())},Ie.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:k.literal,value:n,location:r},err:null}},Ie.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Le(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},Ie.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 we.apply(void 0,t)},Ie.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(),we(r))},Ie.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,ce(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(x.EMPTY_ARGUMENT,ce(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(x.MALFORMED_ARGUMENT,ce(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,ce(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:k.argument,value:n,location:ce(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,ce(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(x.MALFORMED_ARGUMENT,ce(r,this.clonePosition()))}},Ie.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=ve(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:ce(e,this.clonePosition())}},Ie.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(x.EXPECT_ARGUMENT_TYPE,ce(o,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((f=this.parseSimpleArgStyleIfPossible()).err)return f;if(0===(p=Ae(f.val)).length)return this.error(x.EXPECT_ARGUMENT_STYLE,ce(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:ce(u,this.clonePosition())}}if((m=this.tryParseArgumentClose(n)).err)return m;var c=ce(n,this.clonePosition());if(l&&be(null==l?void 0:l.style,"::",0)){u=_e(l.style.slice(2));if("number"===s)return(f=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?f:{val:{type:k.number,value:r,location:c,style:f.val},err:null};if(0===u.length)return this.error(x.EXPECT_DATE_TIME_SKELETON,c);var p={type:D.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},u.replace(K,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?k.date:k.time,value:r,location:c,style:p},err:null}}return{val:{type:"number"===s?k.number:"date"===s?k.date:k.time,value:r,location:c,style:null!==(c=null==l?void 0:l.style)&&void 0!==c?c:null},err:null};case"plural":case"selectordinal":case"select":l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS,ce(l,G({},l)));this.bumpSpace();var f,c=this.parseIdentifierIfPossible(),l=0;if("select"!==s&&"offset"===c.value){if(!this.bumpIf(":"))return this.error(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ce(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(f=this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,x.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return f;this.bumpSpace(),c=this.parseIdentifierIfPossible(),l=f.val}c=this.tryParsePluralOrSelectOptions(e,s,t,c);if(c.err)return c;if((m=this.tryParseArgumentClose(n)).err)return m;var m=ce(n,this.clonePosition());return"select"===s?{val:{type:k.select,value:r,options:Te(c.val),location:m},err:null}:{val:{type:k.plural,value:r,options:Te(c.val),offset:l,pluralType:"plural"===s?"cardinal":"ordinal",location:m},err:null};default:return this.error(x.INVALID_ARGUMENT_TYPE,ce(o,a))}},Ie.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,ce(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},Ie.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(x.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}},Ie.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(J).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(x.INVALID_NUMBER_SKELETON,t)}return{val:{type:D.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?ae(r):{}},err:null}},Ie.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 u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_SELECTOR,x.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=ce(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(s.has(a))return this.error("select"===t?x.DUPLICATE_SELECT_ARGUMENT_SELECTOR:x.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?x.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:x.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ce(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,r);if(c.err)return c;u=this.tryParseArgumentClose(p);if(u.err)return u;o.push([a,{value:c.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?x.EXPECT_SELECT_ARGUMENT_SELECTOR:x.EXPECT_PLURAL_ARGUMENT_SELECTOR,ce(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(x.MISSING_OTHER_CLAUSE,ce(this.clonePosition(),this.clonePosition())):{val:o,err:null}},Ie.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?Ee(o*=r)?{val:o,err:null}:this.error(t,n):this.error(e,n)},Ie.prototype.offset=function(){return this.position.offset},Ie.prototype.isEOF=function(){return this.offset()===this.message.length},Ie.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},Ie.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Se(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},Ie.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},Ie.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))},Ie.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},Ie.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)},Ie.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}},Ie.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ne(this.char());)this.bump()},Ie.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},Ie);function Ie(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function Le(e){return 97<=e&&e<=122||65<=e&&e<=90}function Ne(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Re(e,t){t=G({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r=new Ce(e,t).parse();if(r.err){e=SyntaxError(x[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,Q(e)||Z(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else V(e)&&B(e.style)||(z(e)||X(e))&&Y(e.style)?delete e.style.location:q(e)&&r(e.children)})}(r.val),r.val}function Fe(e,t){var r=t&&t.cache?t.cache:Ge,n=t&&t.serializer?t.serializer:xe;return(t&&t.strategy?t.strategy:function(e,t){return Me(e,this,1===e.length?Oe:Ue,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function Oe(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 Ue(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 Me(e,t,r,n,i){return r.bind(t,e,n,i)}var xe=function(){return JSON.stringify(arguments)};function ke(){this.cache=Object.create(null)}ke.prototype.has=function(e){return e in this.cache},ke.prototype.get=function(e){return this.cache[e]},ke.prototype.set=function(e,t){this.cache[e]=t};var De,Ge={create:function(){return new ke}},$e={variadic:function(e,t){return Me(e,this,Ue,t.cache.create(),t.serializer)},monadic:function(e,t){return Me(e,this,Oe,t.cache.create(),t.serializer)}};(H=De=De||{}).MISSING_VALUE="MISSING_VALUE",H.INVALID_VALUE="INVALID_VALUE",H.MISSING_INTL_API="MISSING_INTL_API";var je,Ve,ze,Xe,Qe,Ze=(F(Je,Qe=Error),Je.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},Je),qe=(F(We,Xe=Ze),We),Be=(F(Ke,ze=Ze),Ke),Ye=(F(He,Ve=Ze),He);function He(e,t){return Ve.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',De.MISSING_VALUE,t)||this}function Ke(e,t,r){return ze.call(this,'Value for "'+e+'" must be of type '+t,De.INVALID_VALUE,r)||this}function We(e,t,r,n){return Xe.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',De.INVALID_VALUE,n)||this}function Je(e,t,r){e=Qe.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function et(e,t,r,n,i,o,s){if(1===e.length&&j(e[0]))return[{type:je.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];if(j(c))a.push({type:je.literal,value:c.value});else if(c.type===k.pound)"number"==typeof o&&a.push({type:je.literal,value:r.getNumberFormat(t).format(o)});else{var p=c.value;if(!(i&&p in i))throw new Ye(p,s);var f=i[p];if(c.type===k.argument)f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),a.push({type:"string"==typeof f?je.literal:je.object,value:f});else if(z(c)){var m="string"==typeof c.style?n.date[c.style]:Y(c.style)?c.style.parsedOptions:void 0;a.push({type:je.literal,value:r.getDateTimeFormat(t,m).format(f)})}else if(X(c))m="string"==typeof c.style?n.time[c.style]:Y(c.style)?c.style.parsedOptions:void 0,a.push({type:je.literal,value:r.getDateTimeFormat(t,m).format(f)});else if(V(c))(m="string"==typeof c.style?n.number[c.style]:B(c.style)?c.style.parsedOptions:void 0)&&m.scale&&(f*=m.scale||1),a.push({type:je.literal,value:r.getNumberFormat(t,m).format(f)});else{if(q(c)){var h=c.children,g=c.value,p=i[g];if("function"!=typeof p)throw new Be(g,"function",s);h=p(et(h,t,r,n,i,o).map(function(e){return e.value}));Array.isArray(h)||(h=[h]),a.push.apply(a,h.map(function(e){return{type:"string"==typeof e?je.literal:je.object,value:e}}))}if(Q(c)){if(!(d=c.options[f]||c.options.other))throw new qe(c.value,f,Object.keys(c.options),s);a.push.apply(a,et(d.value,t,r,n,i))}else if(Z(c)){if(!(d=c.options["="+f])){if(!Intl.PluralRules)throw new Ze('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',De.MISSING_INTL_API,s);var h=r.getPluralRules(t,{type:c.pluralType}).select(f-(c.offset||0)),d=c.options[h]||c.options.other}if(!d)throw new qe(c.value,f,Object.keys(c.options),s);a.push.apply(a,et(d.value,t,r,n,i,f-(c.offset||0)))}}}}return a.length<2?a:a.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===je.literal&&t.type===je.literal?r.value+=t.value:e.push(t),e},[])}function ft(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=je=je||{})[H.literal=0]="literal",H[H.object=1]="object";var mt=(Object.defineProperty(ht,"defaultLocale",{get:function(){return ht.memoizedDefaultLocale||(ht.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),ht.memoizedDefaultLocale},enumerable:!1,configurable:!0}),ht.memoizedDefaultLocale=null,ht.__parse=Re,ht.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"}}},ht);function ht(e,t,r,n){var i,o,s=this;if(void 0===t&&(t=ht.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===je.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 et(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,!ht.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=ht.__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=ht.formats,(o=r)?Object.keys(i).reduce(function(e,t){var r,n;return e[t]=(r=i[t],(n=o[t])?G(G(G({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=G(G({},r[t]),n[t]||{}),e},{})):r),e},G({},i)):i),this.locales=t,this.formatters=n&&n.formatters||{getNumberFormat:Fe(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,$([void 0],t)))},{cache:ft((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:$e.variadic}),getDateTimeFormat:Fe(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,$([void 0],t)))},{cache:ft(n.dateTime),strategy:$e.variadic}),getPluralRules:Fe(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,$([void 0],t)))},{cache:ft(n.pluralRules),strategy:$e.variadic})}}const gt={},dt=(t,r)=>{if(null!=r){if(r in gt&&t in gt[r])return gt[r][t];var n,i,o=Ft(r);for(let e=0;e<o.length;e++){var s=(n=o[e],i=t,vt(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 Et[e]||null}(n),i):null);if(s)return n=t,i=r,(s=s)&&(i in gt||(gt[i]={}),n in gt[i]||(gt[i][n]=s),s)}}};let Et;const yt=w({});function vt(e){return e in Et}function bt(t,...r){delete gt[t],yt.update(e=>(e[t]=N.all([e[t]||{},...r]),e))}c([yt],([e])=>Object.keys(e)),yt.subscribe(e=>Et=e);const wt={};function Tt(e){return wt[e]}function St(e){return Ft(e).some(e=>{return null===(e=Tt(e))||void 0===e?void 0:e.size})}const _t={};function At(e){if(!St(e))return e in _t?_t[e]:void 0;const t=Ft(e).map(e=>{var t=Tt(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return _t[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=>bt(t,...e))}(e))).then(()=>St(e)?At(e):void delete _t[e]),_t[e]}function Pt(e,t){var r={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}const Ct={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 It=w(!1);let Lt;const Nt=w(null);function Rt(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Ft(e,t=Ct.fallbackLocale){e=Rt(e);return t?[...new Set([...e,...Rt(t)])]:e}Nt.subscribe(e=>{Lt=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const Ot=Nt.set;Nt.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(vt(r))return r}}}(t)&&St(t)){var{loadingDelay:r}=Ct;let e;return"undefined"!=typeof window&&null!=Lt&&r?e=window.setTimeout(()=>It.set(!0),r):It.set(!0),At(t).then(()=>{Ot(t)}).finally(()=>{clearTimeout(e),It.set(!1)})}return Ot(t)},Nt.update=e=>Ot(e(Lt));const Ut=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},Mt=(e,t)=>{var{formats:r}=Ct;if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},xt=Ut(e=>{var{locale:t,format:r}=e,e=Pt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=Mt("number",r)),new Intl.NumberFormat(t,e)}),kt=Ut(e=>{var{locale:t,format:r}=e,e=Pt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=Mt("date",r):0===Object.keys(e).length&&(e=Mt("date","short")),new Intl.DateTimeFormat(t,e)}),Dt=Ut(e=>{var{locale:t,format:r}=e,e=Pt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=Mt("time",r):0===Object.keys(e).length&&(e=Mt("time","short")),new Intl.DateTimeFormat(t,e)}),Gt=Ut((e,t=Lt)=>new mt(e,t,Ct.formats,{ignoreTag:Ct.ignoreTag})),$t=c([Nt,yt],()=>(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=dt(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 Ct.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${Ft(n).join('", "')}".${St(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=Gt(o,n).format(r)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return s});c([Nt],()=>(e,t)=>((e={})=>{var{locale:t=Lt}=e,e=Pt(e,["locale"]);return Dt(Object.assign({locale:t},e))})(t).format(e)),c([Nt],()=>(e,t)=>((e={})=>{var{locale:t=Lt}=e,e=Pt(e,["locale"]);return kt(Object.assign({locale:t},e))})(t).format(e)),c([Nt],()=>(e,t)=>((e={})=>{var{locale:t=Lt}=e,e=Pt(e,["locale"]);return xt(Object.assign({locale:t},e))})(t).format(e)),c([Nt,yt],()=>(e,t=Lt)=>dt(e,t));const jt={en:{registerFormStep1:{registerTitle:"Create your account",registerSubtitle:"Already have an account?",registerSubtitleLogin:"Login",registerEmail:"Email",registerEmailError:"Email should contain '@' and a 2-3 letter long domain.",registerUsername:"Username",registerUsernameError:"Name must be at least 4-20 characters long and contain no special characters.",registerPassword:"Password",registerPasswordError:"Password must be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",registerConfirmPassword:"Confirm Password",registerConfirmPasswordError:"It doesn't match the password.",registerSecurityQuestion:"Security Question",registerSecurityQuestionError:"Security question must be at least 1 character long and maximum 120 characters.",registerSecurityAnswer:"Security Answer",registerSecurityAnswerError:"Security answer must be at least 1 character long and maximum 120 characters.",registerNext:"Next"}},tr:{registerFormStep1:{registerTitle:"Hesabını oluştur",registerSubtitle:"Zaten hesabınız var mı?",registerSubtitleLogin:"Giriş yapmak",registerEmail:"E-posta",registerEmailError:"E-posta '@' ve 2-3 harf uzunluğunda bir etki alanı içermelidir.",registerUsername:"Kullanıcı adı",registerUsernameError:"Ad en az 4-20 karakter uzunluğunda olmalı ve özel karakter içermemelidir.",registerPassword:"Parola",registerPasswordError:"Şifre 8-20 karakter uzunluğunda olmalı ve en az 1 büyük harf, 1 rakam ve 1 özel karakter içermelidir.",registerConfirmPassword:"Şifreyi Onayla",registerConfirmPasswordError:"Şifreyle eşleşmiyor.",registerSecurityQuestion:"Güvenlik Sorusu",registerSecurityQuestionError:"Güvenlik sorusu en az 1, en fazla 120 karakter uzunluğunda olmalıdır.",registerSecurityAnswer:"Güvenlik cevabı",registerSecurityAnswerError:"Güvenlik cevabı en az 1 karakter uzunluğunda ve en fazla 120 karakter olmalıdır.",registerNext:"Sonraki"}},ro:{registerFormStep1:{registerTitle:"Creaza cont",registerSubtitle:"Ai deja cont?",registerSubtitleLogin:"Autentifica-te",registerEmail:"Email",registerEmailError:"Email-ul ar trebui sa contina '@' si 2-3 litere.",registerUsername:"Utilizator",registerUsernameError:"Utilizatorul trebuie sa fie cuprins intre 4-20 litere si sa nu contina caractere speciale.",registerPassword:"Parola",registerPasswordError:"Parola trebuie sa fie cuprinsa intre 8 si 20 de caractere, cel putin o litera mare, cel putin un numar si cel putin un caracter special.",registerConfirmPassword:"Confirma Parola",registerConfirmPasswordError:"Confirmarea parolei trebuie sa fie la fel cu parola",registerSecurityQuestion:"Intrebare de Securitate",registerSecurityQuestionError:"Intrebarea de securitate trebuie sa fie cuprinsa intre 1 si 120 de litere.",registerSecurityAnswer:"Raspuns de Securitate",registerSecurityAnswerError:"Raspunsul de securitate trebuie sa fie cuprins intre 1 si 120 de litere",registerNext:"Urmatorul"}}};function Vt(e){let r,n,i=e[17]("registerFormStep1.registerEmailError")+"";return{c(){r=t("p"),n=st(i),ut(r,"class","InvalidInput"),ut(r,"part","InvalidInput")},m(e,t){it(e,r,t),nt(r,n)},p(e,t){131072&t[0]&&i!==(i=e[17]("registerFormStep1.registerEmailError")+"")&&ct(n,i)},d(e){e&&ot(r)}}}function zt(e){let r,n,i=e[17]("registerFormStep1.registerUsernameError")+"";return{c(){r=t("p"),n=st(i),ut(r,"class","InvalidInput"),ut(r,"part","InvalidInput")},m(e,t){it(e,r,t),nt(r,n)},p(e,t){131072&t[0]&&i!==(i=e[17]("registerFormStep1.registerUsernameError")+"")&&ct(n,i)},d(e){e&&ot(r)}}}function Xt(r){let n,i,o,s,a,l,u,c,p;return{c(){n=e("svg"),i=e("defs"),o=e("style"),s=st(".a{fill:var(--emfe-w-color-contrast, #07072A);}"),a=e("g"),l=e("path"),u=e("circle"),ut(l,"class","a"),ut(l,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),ut(l,"transform","translate(0)"),ut(u,"class","a"),ut(u,"cx","2.779"),ut(u,"cy","2.779"),ut(u,"r","2.779"),ut(u,"transform","translate(20.827 30.303)"),ut(a,"transform","translate(-14.185 -27.832)"),ut(n,"class","TogglePasswordVisibility"),ut(n,"part","TogglePasswordVisibility"),ut(n,"xmlns","http://www.w3.org/2000/svg"),ut(n,"width","18.843"),ut(n,"height","10.5"),ut(n,"viewBox","0 0 18.843 10.5")},m(e,t){it(e,n,t),nt(n,i),nt(i,o),nt(o,s),nt(n,a),nt(a,l),nt(a,u),c||(p=lt(n,"click",r[37]),c=!0)},p:tt,d(e){e&&ot(n),c=!1,p()}}}function Qt(r){let n,i,o,s,a,l,u,c,p,f,m,h,g,d,E;return{c(){n=e("svg"),i=e("defs"),o=e("style"),s=st(".a{fill:var(--emfe-w-color-contrast, #07072A);}"),a=e("g"),l=e("circle"),u=e("g"),c=e("path"),p=e("path"),f=e("g"),m=e("path"),h=e("path"),g=e("rect"),ut(l,"class","a"),ut(l,"cx","0.05"),ut(l,"cy","0.05"),ut(l,"r","0.05"),ut(l,"transform","translate(121.017 31.148)"),ut(c,"class","a"),ut(c,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),ut(c,"transform","translate(-142.164 -39.123)"),ut(p,"class","a"),ut(p,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),ut(p,"transform","translate(-136.413 -42.068)"),ut(u,"transform","translate(117.499 27.37)"),ut(m,"class","a"),ut(m,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),ut(m,"transform","translate(-110.856 -33.157)"),ut(h,"class","a"),ut(h,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),ut(h,"transform","translate(-130.743 -29.617)"),ut(f,"transform","translate(110.856 24.899)"),ut(g,"class","a"),ut(g,"width","0.972"),ut(g,"height","15.861"),ut(g,"rx","0.486"),ut(g,"transform","translate(114.827 23.858) rotate(-39.315)"),ut(a,"transform","translate(-110.856 -23.242)"),ut(n,"class","TogglePasswordVisibility"),ut(n,"part","TogglePasswordVisibility"),ut(n,"xmlns","http://www.w3.org/2000/svg"),ut(n,"width","18.844"),ut(n,"height","12.887"),ut(n,"viewBox","0 0 18.844 12.887")},m(e,t){it(e,n,t),nt(n,i),nt(i,o),nt(o,s),nt(n,a),nt(a,l),nt(a,u),nt(u,c),nt(u,p),nt(a,f),nt(f,m),nt(f,h),nt(a,g),d||(E=lt(n,"click",r[36]),d=!0)},p:tt,d(e){e&&ot(n),d=!1,E()}}}function Zt(e){let r,n,i=e[17]("registerFormStep1.registerPasswordError")+"";return{c(){r=t("p"),n=st(i),ut(r,"class","InvalidInput"),ut(r,"part","InvalidInput")},m(e,t){it(e,r,t),nt(r,n)},p(e,t){131072&t[0]&&i!==(i=e[17]("registerFormStep1.registerPasswordError")+"")&&ct(n,i)},d(e){e&&ot(r)}}}function qt(r){let n,i,o,s,a,l,u,c,p;return{c(){n=e("svg"),i=e("defs"),o=e("style"),s=st(".a{fill:var(--emfe-w-color-contrast, #07072A);}"),a=e("g"),l=e("path"),u=e("circle"),ut(l,"class","a"),ut(l,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),ut(l,"transform","translate(0)"),ut(u,"class","a"),ut(u,"cx","2.779"),ut(u,"cy","2.779"),ut(u,"r","2.779"),ut(u,"transform","translate(20.827 30.303)"),ut(a,"transform","translate(-14.185 -27.832)"),ut(n,"class","ToggleConfirmPasswordVisibility"),ut(n,"part","ToggleConfirmPasswordVisibility"),ut(n,"xmlns","http://www.w3.org/2000/svg"),ut(n,"width","18.843"),ut(n,"height","10.5"),ut(n,"viewBox","0 0 18.843 10.5")},m(e,t){it(e,n,t),nt(n,i),nt(i,o),nt(o,s),nt(n,a),nt(a,l),nt(a,u),c||(p=lt(n,"click",r[41]),c=!0)},p:tt,d(e){e&&ot(n),c=!1,p()}}}function Bt(r){let n,i,o,s,a,l,u,c,p,f,m,h,g,d,E;return{c(){n=e("svg"),i=e("defs"),o=e("style"),s=st(".a{fill:var(--emfe-w-color-contrast, #07072A);}"),a=e("g"),l=e("circle"),u=e("g"),c=e("path"),p=e("path"),f=e("g"),m=e("path"),h=e("path"),g=e("rect"),ut(l,"class","a"),ut(l,"cx","0.05"),ut(l,"cy","0.05"),ut(l,"r","0.05"),ut(l,"transform","translate(121.017 31.148)"),ut(c,"class","a"),ut(c,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),ut(c,"transform","translate(-142.164 -39.123)"),ut(p,"class","a"),ut(p,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),ut(p,"transform","translate(-136.413 -42.068)"),ut(u,"transform","translate(117.499 27.37)"),ut(m,"class","a"),ut(m,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),ut(m,"transform","translate(-110.856 -33.157)"),ut(h,"class","a"),ut(h,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),ut(h,"transform","translate(-130.743 -29.617)"),ut(f,"transform","translate(110.856 24.899)"),ut(g,"class","a"),ut(g,"width","0.972"),ut(g,"height","15.861"),ut(g,"rx","0.486"),ut(g,"transform","translate(114.827 23.858) rotate(-39.315)"),ut(a,"transform","translate(-110.856 -23.242)"),ut(n,"class","ToggleConfirmPasswordVisibility"),ut(n,"part","ToggleConfirmPasswordVisibility"),ut(n,"xmlns","http://www.w3.org/2000/svg"),ut(n,"width","18.844"),ut(n,"height","12.887"),ut(n,"viewBox","0 0 18.844 12.887")},m(e,t){it(e,n,t),nt(n,i),nt(i,o),nt(o,s),nt(n,a),nt(a,l),nt(a,u),nt(u,c),nt(u,p),nt(a,f),nt(f,m),nt(f,h),nt(a,g),d||(E=lt(n,"click",r[40]),d=!0)},p:tt,d(e){e&&ot(n),d=!1,E()}}}function Yt(e){let r,n,i=e[17]("registerFormStep1.registerConfirmPasswordError")+"";return{c(){r=t("p"),n=st(i),ut(r,"class","InvalidInput"),ut(r,"part","InvalidInput")},m(e,t){it(e,r,t),nt(r,n)},p(e,t){131072&t[0]&&i!==(i=e[17]("registerFormStep1.registerConfirmPasswordError")+"")&&ct(n,i)},d(e){e&&ot(r)}}}function Ht(e){let r,n,i=e[17]("registerFormStep1.registerSecurityQuestionError")+"";return{c(){r=t("p"),n=st(i),ut(r,"class","InvalidInput"),ut(r,"part","InvalidInput")},m(e,t){it(e,r,t),nt(r,n)},p(e,t){131072&t[0]&&i!==(i=e[17]("registerFormStep1.registerSecurityQuestionError")+"")&&ct(n,i)},d(e){e&&ot(r)}}}function Kt(e){let r,n,i=e[17]("registerFormStep1.registerSecurityAnswerError")+"";return{c(){r=t("p"),n=st(i),ut(r,"class","InvalidInput"),ut(r,"part","InvalidInput")},m(e,t){it(e,r,t),nt(r,n)},p(e,t){131072&t[0]&&i!==(i=e[17]("registerFormStep1.registerSecurityAnswerError")+"")&&ct(n,i)},d(e){e&&ot(r)}}}function Wt(r){let n,i,o,s,a,l,u,c,p,f,m,h,g,d,E,y,v,b,w,T,S,_,A,P,C,I,L,N,R,F,O,U,M,x,k,D,G,$,j,V,z,X,Q,Z,q,B,Y,H,K,W,J,ee,te,re,ne,ie,oe,se,ae,le,ue,ce,pe,fe,me,he,ge,de,Ee,ye,ve,be,we,Te,Se,_e,Ae,Pe,Ce,Ie,Le,Ne,Re,Fe,Oe=r[17]("registerFormStep1.registerTitle")+"",Ue=r[17]("registerFormStep1.registerSubtitle")+"",Me=r[17]("registerFormStep1.registerSubtitleLogin")+"",xe=r[17]("registerFormStep1.registerEmail")+"",ke=r[17]("registerFormStep1.registerUsername")+"",De=r[17]("registerFormStep1.registerPassword")+"",Ge=r[17]("registerFormStep1.registerConfirmPassword")+"",$e=r[17]("registerFormStep1.registerSecurityQuestion")+"",je=r[17]("registerFormStep1.registerSecurityAnswer")+"",Ve=r[17]("registerFormStep1.registerNext")+"",ze=r[0]&&Vt(r),Xe=r[1]&&zt(r);function Qe(e){return e[12]?Qt:Xt}let Ze=Qe(r),qe=Ze(r),Be=r[2]&&Zt(r);function Ye(e){return e[13]?Bt:qt}let He=Ye(r),Ke=He(r),We=r[3]&&Yt(r),Je=r[4]&&Ht(r),et=r[5]&&Kt(r);return{c(){n=t("div"),i=t("h2"),o=st(Oe),s=at(),a=t("p"),l=st(Ue),u=at(),c=t("span"),p=st(Me),f=at(),m=t("div"),h=t("div"),g=t("label"),d=st(xe),E=st(":"),y=t("span"),y.textContent="*",v=at(),b=t("input"),w=at(),ze&&ze.c(),_=at(),A=t("div"),P=t("label"),C=st(ke),I=st(":"),L=t("span"),L.textContent="*",N=at(),R=t("input"),F=at(),Xe&&Xe.c(),M=at(),x=t("div"),k=t("label"),D=st(De),G=st(":"),$=t("span"),$.textContent="*",j=at(),V=t("input"),z=at(),qe.c(),X=at(),Be&&Be.c(),q=at(),B=t("div"),Y=t("label"),H=st(Ge),K=st(":"),W=t("span"),W.textContent="*",J=at(),ee=t("input"),te=at(),Ke.c(),re=at(),We&&We.c(),oe=at(),se=t("div"),ae=t("label"),le=st($e),ue=st(":"),ce=t("span"),ce.textContent="*",pe=at(),fe=t("input"),me=at(),Je&&Je.c(),de=at(),Ee=t("div"),ye=t("label"),ve=st(je),be=st(":"),we=t("span"),we.textContent="*",Te=at(),Se=t("input"),_e=at(),et&&et.c(),Ce=at(),Ie=t("button"),Le=st(Ve),this.c=tt,ut(i,"class","RegisterFormTitle"),ut(i,"part","RegisterFormTitle"),ut(c,"class","FormLoginCallToAction"),ut(a,"class","RegisterFormSubtitle"),ut(a,"part","RegisterFormSubtitle"),ut(n,"class","RegisterFormHeader"),ut(n,"part","RegisterFormHeader"),ut(y,"class","FormRequired"),ut(y,"part","FormRequired"),ut(g,"for","Email"),ut(b,"type","text"),ut(b,"id","Email"),ut(h,"class",T="EmailContainer "+(r[0]?"InvalidField":"")),ut(h,"part",S="EmailContainer "+(r[0]?"InvalidField":"")),ut(L,"class","FormRequired"),ut(L,"part","FormRequired"),ut(P,"for","UserName"),ut(R,"type","text"),ut(R,"id","UserName"),ut(A,"class",O="UserContainer "+(r[1]?"InvalidField":"")),ut(A,"part",U="UserContainer "+(r[1]?"InvalidField":"")),ut($,"class","FormRequired"),ut($,"part","FormRequired"),ut(k,"for","Password"),ut(V,"type","password"),ut(V,"id","Password"),ut(x,"class",Q="PasswordContainer "+(r[2]?"InvalidField":"")),ut(x,"part",Z="PasswordContainer "+(r[2]?"InvalidField":"")),ut(W,"class","FormRequired"),ut(W,"part","FormRequired"),ut(Y,"for","ConfirmPassword"),ut(ee,"type","password"),ut(ee,"id","ConfirmPassword"),ut(B,"class",ne="ConfirmPasswordContainer "+(r[3]?"InvalidField":"")),ut(B,"part",ie="ConfirmPasswordContainer "+(r[3]?"InvalidField":"")),ut(ce,"class","FormRequired"),ut(ce,"part","FormRequired"),ut(ae,"for","SecurityQuestion"),ut(fe,"type","text"),ut(fe,"id","SecurityQuestion"),ut(se,"class",he="SecurityQuestionContainer "+(r[4]?"InvalidField":"")),ut(se,"part",ge="SecurityQuestionContainer "+(r[4]?"InvalidField":"")),ut(we,"class","FormRequired"),ut(we,"part","FormRequired"),ut(ye,"for","SecurityAnswer"),ut(Se,"type","text"),ut(Se,"id","SecurityAnswer"),ut(Ee,"class",Ae="SecurityAnswerContainer "+(r[5]?"InvalidField":"")),ut(Ee,"part",Pe="SecurityAnswerContainer "+(r[5]?"InvalidField":"")),ut(m,"class","RegisterFormContent"),ut(m,"part","RegisterFormContent"),ut(Ie,"class","RegisterStepNext"),ut(Ie,"part","RegisterStepNext"),Ie.disabled=Ne=!r[16]},m(e,t){it(e,n,t),nt(n,i),nt(i,o),nt(n,s),nt(n,a),nt(a,l),nt(a,u),nt(a,c),nt(c,p),it(e,f,t),it(e,m,t),nt(m,h),nt(h,g),nt(g,d),nt(g,E),nt(g,y),nt(h,v),nt(h,b),pt(b,r[7]),nt(h,w),ze&&ze.m(h,null),nt(m,_),nt(m,A),nt(A,P),nt(P,C),nt(P,I),nt(P,L),nt(A,N),nt(A,R),pt(R,r[6]),nt(A,F),Xe&&Xe.m(A,null),nt(m,M),nt(m,x),nt(x,k),nt(k,D),nt(k,G),nt(k,$),nt(x,j),nt(x,V),pt(V,r[8]),r[35](V),nt(x,z),qe.m(x,null),nt(x,X),Be&&Be.m(x,null),nt(m,q),nt(m,B),nt(B,Y),nt(Y,H),nt(Y,K),nt(Y,W),nt(B,J),nt(B,ee),pt(ee,r[9]),r[39](ee),nt(B,te),Ke.m(B,null),nt(B,re),We&&We.m(B,null),nt(m,oe),nt(m,se),nt(se,ae),nt(ae,le),nt(ae,ue),nt(ae,ce),nt(se,pe),nt(se,fe),pt(fe,r[10]),nt(se,me),Je&&Je.m(se,null),nt(m,de),nt(m,Ee),nt(Ee,ye),nt(ye,ve),nt(ye,be),nt(ye,we),nt(Ee,Te),nt(Ee,Se),pt(Se,r[11]),nt(Ee,_e),et&&et.m(Ee,null),it(e,Ce,t),it(e,Ie,t),nt(Ie,Le),Re||(Fe=[lt(c,"click",r[31]),lt(b,"input",r[32]),lt(b,"blur",r[19]),lt(R,"input",r[33]),lt(R,"blur",r[20]),lt(V,"input",r[34]),lt(V,"blur",r[25]),lt(ee,"input",r[38]),lt(ee,"blur",r[26]),lt(fe,"input",r[42]),lt(fe,"blur",r[27]),lt(Se,"input",r[43]),lt(Se,"keyup",r[28]),lt(Ie,"click",r[29])],Re=!0)},p(e,t){131072&t[0]&&Oe!==(Oe=e[17]("registerFormStep1.registerTitle")+"")&&ct(o,Oe),131072&t[0]&&Ue!==(Ue=e[17]("registerFormStep1.registerSubtitle")+"")&&ct(l,Ue),131072&t[0]&&Me!==(Me=e[17]("registerFormStep1.registerSubtitleLogin")+"")&&ct(p,Me),131072&t[0]&&xe!==(xe=e[17]("registerFormStep1.registerEmail")+"")&&ct(d,xe),128&t[0]&&b.value!==e[7]&&pt(b,e[7]),e[0]?ze?ze.p(e,t):(ze=Vt(e),ze.c(),ze.m(h,null)):ze&&(ze.d(1),ze=null),1&t[0]&&T!==(T="EmailContainer "+(e[0]?"InvalidField":""))&&ut(h,"class",T),1&t[0]&&S!==(S="EmailContainer "+(e[0]?"InvalidField":""))&&ut(h,"part",S),131072&t[0]&&ke!==(ke=e[17]("registerFormStep1.registerUsername")+"")&&ct(C,ke),64&t[0]&&R.value!==e[6]&&pt(R,e[6]),e[1]?Xe?Xe.p(e,t):(Xe=zt(e),Xe.c(),Xe.m(A,null)):Xe&&(Xe.d(1),Xe=null),2&t[0]&&O!==(O="UserContainer "+(e[1]?"InvalidField":""))&&ut(A,"class",O),2&t[0]&&U!==(U="UserContainer "+(e[1]?"InvalidField":""))&&ut(A,"part",U),131072&t[0]&&De!==(De=e[17]("registerFormStep1.registerPassword")+"")&&ct(D,De),256&t[0]&&V.value!==e[8]&&pt(V,e[8]),Ze===(Ze=Qe(e))&&qe?qe.p(e,t):(qe.d(1),qe=Ze(e),qe&&(qe.c(),qe.m(x,X))),e[2]?Be?Be.p(e,t):(Be=Zt(e),Be.c(),Be.m(x,null)):Be&&(Be.d(1),Be=null),4&t[0]&&Q!==(Q="PasswordContainer "+(e[2]?"InvalidField":""))&&ut(x,"class",Q),4&t[0]&&Z!==(Z="PasswordContainer "+(e[2]?"InvalidField":""))&&ut(x,"part",Z),131072&t[0]&&Ge!==(Ge=e[17]("registerFormStep1.registerConfirmPassword")+"")&&ct(H,Ge),512&t[0]&&ee.value!==e[9]&&pt(ee,e[9]),He===(He=Ye(e))&&Ke?Ke.p(e,t):(Ke.d(1),Ke=He(e),Ke&&(Ke.c(),Ke.m(B,re))),e[3]?We?We.p(e,t):(We=Yt(e),We.c(),We.m(B,null)):We&&(We.d(1),We=null),8&t[0]&&ne!==(ne="ConfirmPasswordContainer "+(e[3]?"InvalidField":""))&&ut(B,"class",ne),8&t[0]&&ie!==(ie="ConfirmPasswordContainer "+(e[3]?"InvalidField":""))&&ut(B,"part",ie),131072&t[0]&&$e!==($e=e[17]("registerFormStep1.registerSecurityQuestion")+"")&&ct(le,$e),1024&t[0]&&fe.value!==e[10]&&pt(fe,e[10]),e[4]?Je?Je.p(e,t):(Je=Ht(e),Je.c(),Je.m(se,null)):Je&&(Je.d(1),Je=null),16&t[0]&&he!==(he="SecurityQuestionContainer "+(e[4]?"InvalidField":""))&&ut(se,"class",he),16&t[0]&&ge!==(ge="SecurityQuestionContainer "+(e[4]?"InvalidField":""))&&ut(se,"part",ge),131072&t[0]&&je!==(je=e[17]("registerFormStep1.registerSecurityAnswer")+"")&&ct(ve,je),2048&t[0]&&Se.value!==e[11]&&pt(Se,e[11]),e[5]?et?et.p(e,t):(et=Kt(e),et.c(),et.m(Ee,null)):et&&(et.d(1),et=null),32&t[0]&&Ae!==(Ae="SecurityAnswerContainer "+(e[5]?"InvalidField":""))&&ut(Ee,"class",Ae),32&t[0]&&Pe!==(Pe="SecurityAnswerContainer "+(e[5]?"InvalidField":""))&&ut(Ee,"part",Pe),131072&t[0]&&Ve!==(Ve=e[17]("registerFormStep1.registerNext")+"")&&ct(Le,Ve),65536&t[0]&&Ne!==(Ne=!e[16])&&(Ie.disabled=Ne)},i:tt,o:tt,d(e){e&&ot(n),e&&ot(f),e&&ot(m),ze&&ze.d(),Xe&&Xe.d(),r[35](null),qe.d(),Be&&Be.d(),r[39](null),Ke.d(),We&&We.d(),Je&&Je.d(),et&&et.d(),e&&ot(Ce),e&&ot(Ie),Re=!1,rt(Fe)}}}function Jt(t,e,r){let n;var i=$t;t.$$.on_destroy.push(O(i,e=>r(17,n=e)));let o,s,{lang:a=""}=e,l=!1,u=!1,c=!1,p=!1,f=!1,m=!1,h="",g="",d="",E="",y="",v="",b=!1,w=!1,T=!1;Object.keys(jt).forEach(e=>{bt(e,jt[e])});const S=()=>{r(16,T=!(l||u||c||p||f||m)),(h.length<=0||g.length<=0||d.length<=0||E.length<=0||y.length<=0||v.length<=0)&&r(16,T=!1)},_=()=>{window.postMessage({type:"ToLogin"},window.location.href)},A={user:/^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){4})^[a-zA-Z\d]*$/,email:/^[^<>()*{}=/|?`~[\]\\,;:\%#^\s@\"$&!@]+@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z0-9]+\.)+[a-zA-Z]{2,}))$/i,password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/},P=()=>{r(12,b=!0),N()},C=()=>{r(13,w=!0),R()},I=()=>{r(12,b=!1),N()},L=()=>{r(13,w=!1),R()},N=()=>{r(14,o.type=b?"text":"password",o)},R=()=>{r(15,s.type=w?"text":"password",s)},F=e=>{e.data&&"StepOneDataBackup"===e.data.type&&(r(7,g=e.data.userData.email),r(6,h=e.data.userData.username),r(8,d=e.data.userData.password),r(9,E=e.data.userData.password),r(10,y=e.data.userData.securityQuestion),r(11,v=e.data.userData.securityAnswer),S())};return e=()=>(window.addEventListener("message",F,!1),()=>{window.removeEventListener("message",F)}),function(){if(!U)throw new Error("Function called outside component initialization");return U}().$$.on_mount.push(e),t.$$set=e=>{"lang"in e&&r(30,a=e.lang)},t.$$.update=()=>{var e;1073741824&t.$$.dirty[0]&&a&&(e=a,Nt.set(e))},[l,u,c,p,f,m,h,g,d,E,y,v,b,w,o,s,T,n,_,()=>{var e;r(0,(e=g,l=!(A.email.test(e)&&e.length<=100))),S()},()=>{var e;r(1,(e=h,u=!(A.user.test(e)&&e.length<=20))),S()},P,C,I,L,()=>{var e;r(2,(e=d,c=!A.password.test(e))),d!==E&&0<E.length?r(3,p=!0):r(3,p=!1),S()},()=>{r(3,p=!(d===E)),S()},()=>{r(4,f=!(y&&y.length<=120)),S()},()=>{r(5,m=!(v&&v.length<=120)),S()},()=>{var e={userEmail:g,userValue:h,userPassword:d,confirmUserPassword:E,securityQuestion:y,securityAnswer:v};window.postMessage({type:"RegisterStepOne",registerStepOneData:e},window.location.href)},a,()=>_(),function(){g=this.value,r(7,g)},function(){h=this.value,r(6,h)},function(){d=this.value,r(8,d)},function(e){M[e?"unshift":"push"](()=>{o=e,r(14,o)})},()=>I(),()=>P(),function(){E=this.value,r(9,E)},function(e){M[e?"unshift":"push"](()=>{s=e,r(15,s)})},()=>L(),()=>C(),function(){y=this.value,r(10,y)},function(){v=this.value,r(11,v)}]}class er 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'}.RegisterFormTitle{font-size:20px;text-transform:uppercase;font-weight:300;margin:0;padding-bottom:8px}.RegisterFormSubtitle{font-size:14px;margin:0;padding-bottom:20px}.FormLoginCallToAction{color:var(--emfe-w-color-primary, #D0046C);font-size:14px;font-weight:400;text-decoration:none;cursor:pointer}.EmailContainer,.UserContainer,.PasswordContainer,.ConfirmPasswordContainer,.SecurityQuestionContainer,.SecurityAnswerContainer{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:30px;position:relative}.EmailContainer label,.UserContainer label,.PasswordContainer label,.ConfirmPasswordContainer label,.SecurityQuestionContainer label,.SecurityAnswerContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.EmailContainer input,.UserContainer input,.PasswordContainer input,.ConfirmPasswordContainer input,.SecurityQuestionContainer input,.SecurityAnswerContainer input{width:100%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.EmailContainer.InvalidField input,.UserContainer.InvalidField input,.PasswordContainer.InvalidField input,.ConfirmPasswordContainer.InvalidField input,.SecurityQuestionContainer.InvalidField input,.SecurityAnswerContainer.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)}.PasswordContainer,.ConfirmPasswordContainer{position:relative}.PasswordContainer input,.ConfirmPasswordContainer input{padding:5px 30px 5px 15px}.FormRequired{color:var(--emfe-w-color-secondary, #FD2839)}.TogglePasswordVisibility,.ToggleConfirmPasswordVisibility{height:13px;position:absolute;right:8px;bottom:45px}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect,.ToggleConfirmPasswordVisibility path,.ToggleConfirmPasswordVisibility circle,.ToggleConfirmPasswordVisibility rect{fill:var(--emfe-w-color-gray-300, #58586B)}.InvalidInput{color:var(--emfe-w-color-error, #FD2839);font-size:10px;position:absolute;bottom:-3px;line-height:10px}.UserContainer .InvalidInput{bottom:-3px}.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-150, #828282);cursor:not-allowed}input::-ms-reveal,input::-ms-clear{display:none}</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},Jt,Wt,r,{lang:30},[-1,-1]),e&&(e.target&&it(e.target,this,e.anchor),e.props&&(this.$set(e.props),v()))}static get observedAttributes(){return["lang"]}get lang(){return this.$$.ctx[30]}set lang(e){this.$set({lang:e}),v()}}return customElements.get("general-player-register-form-step1")||customElements.define("general-player-register-form-step1",er),er});
|
|
2
2
|
//# sourceMappingURL=general-player-register-form-step1.js.map
|