@everymatrix/general-player-register-form-step1 1.7.1 → 1.7.3

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 at(){}function P(e){return e()}function C(){return Object.create(null)}function lt(e){e.forEach(P)}function H(e){return"function"==typeof e}function p(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function W(e,...t){if(null==e)return at;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function ut(e,t){e.appendChild(t)}function ct(e,t,r){e.insertBefore(t,r||null)}function ht(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 pt(e){return document.createTextNode(e)}function mt(){return pt(" ")}function dt(e,t,r,i){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)}function ft(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function gt(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function yt(e,t){e.value=null==t?"":t}let K;function g(e){K=e}const y=[],Y=[],m=[],d=[],B=Promise.resolve();let _=!1;function I(e){m.push(e)}const L=new Set;let N=0;function E(){const e=K;do{for(;N<y.length;){const e=y[N];N++,g(e),t=r=void 0;var t,r=e.$$;null!==r.fragment&&(r.update(),lt(r.before_update),t=r.dirty,r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,t),r.after_update.forEach(I))}for(g(null),y.length=0,N=0;Y.length;)Y.pop()();for(let e=0;e<m.length;e+=1){const i=m[e];L.has(i)||(L.add(i),i())}}while(m.length=0,y.length);for(;d.length;)d.pop()();_=!1,L.clear(),g(e)}const O=new Set;function R(i,e,t,r,n,s,o,a=[-1]){var l=K;g(i);const u=i.$$={fragment:null,ctx:null,props:s,update:at,not_equal:n,bound:C(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:C(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};o&&o(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(e,t,...r)=>{var r=r.length?r[0]:t;return u.ctx&&n(u.ctx[e],u.ctx[e]=r)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](r),c&&(r=e,-1===(e=i).$$.dirty[0]&&(y.push(e),_||(_=!0,B.then(E)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],u.update(),c=!0,lt(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){s=e.target;const at=Array.from(s.childNodes);u.fragment&&u.fragment.l(at),at.forEach(ht)}else u.fragment&&u.fragment.c();e.intro&&(a=i.$$.fragment)&&a.i&&(O.delete(a),a.i(void 0));{var h=i;o=e.target;t=e.anchor;r=e.customElement;const{fragment:p,on_mount:m,on_destroy:d,after_update:f}=h.$$;p&&p.m(o,t),r||I(()=>{var e=m.map(P).filter(H);d?d.push(...e):lt(e),h.$$.on_mount=[]}),f.forEach(I)}E()}g(l)}let F;"function"==typeof HTMLElement&&(F=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(P).filter(H);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){lt(this.$$.on_disconnect)}$destroy(){{var e;const t=this.$$;null!==t.fragment&&(lt(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}this.$destroy=at}$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 r=[];function M(i,n=at){let s;const o=new Set;function a(e){if(p(i,e)&&(i=e,s)){const e=!r.length;for(const e of o)e[1](),r.push(e,i);if(e){for(let e=0;e<r.length;e+=2)r[e][0](r[e+1]);r.length=0}}}return{set:a,update:function(e){a(e(i))},subscribe:function(e,t=at){const r=[e,t];return o.add(r),1===o.size&&(s=n(a)||at),e(i),()=>{o.delete(r),0===o.size&&(s(),s=null)}}}}function i(e,a,t){const l=!Array.isArray(e),u=l?[e]:e,c=a.length<2;return{subscribe:M(t,t=>{let r=!1;const i=[];let n=0,s=at;const o=()=>{var e;n||(s(),e=a(l?i[0]:i,t),c?t(e):s=H(e)?e:at)},e=u.map((e,t)=>W(e,e=>{i[t]=e,n&=~(1<<t),r&&o()},()=>{n|=1<<t}));return r=!0,o(),function(){lt(e),s()}}).subscribe}}function U(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===x));var t}var x="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function D(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a(Array.isArray(e)?[]:{},e,t):e}function G(e,t,r){return e.concat(t).map(function(e){return D(e,r)})}function k(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function $(e,t){try{return t in e}catch(e){return!1}}function V(i,n,s){var o={};return s.isMergeableObject(i)&&k(i).forEach(function(e){o[e]=D(i[e],s)}),k(n).forEach(function(t){var e,r;(!$(e=i,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&($(i,t)&&s.isMergeableObject(n[t])?o[t]=function(e){if(!e.customMerge)return a;e=e.customMerge(t);return"function"==typeof e?e:a}(s)(i[t],n[t],s):o[t]=D(n[t],s))}),o}function a(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||G,r.isMergeableObject=r.isMergeableObject||U,r.cloneUnlessOtherwiseSpecified=D;var i=Array.isArray(t);return i===Array.isArray(e)?i?r.arrayMerge(e,t,r):V(e,t,r):D(t,r)}a.all=function(e,r){if(Array.isArray(e))return e.reduce(function(e,t){return a(e,t,r)},{});throw new Error("first argument should be an array")};var j=a,z=function(e,t){return(z=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 Q(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}z(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var f,b,v,w=function(){return(w=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function X(e,t,r){if(r||2===arguments.length)for(var i,n=0,s=t.length;n<s;n++)!i&&n in t||((i=i||Array.prototype.slice.call(t,0,n))[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function Z(e){return e.type===b.literal}function J(e){return e.type===b.number}function ee(e){return e.type===b.date}function te(e){return e.type===b.time}function re(e){return e.type===b.select}function ie(e){return e.type===b.plural}function ne(e){return e.type===b.tag}function se(e){return e&&"object"==typeof e&&e.type===v.number}function oe(e){return e&&"object"==typeof e&&e.type===v.dateTime}(n=f=f||{})[n.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",n[n.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",n[n.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",n[n.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",n[n.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",n[n.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",n[n.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",n[n.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",n[n.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",n[n.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",n[n.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",n[n.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",n[n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",n[n.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",n[n.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",n[n.INVALID_TAG=23]="INVALID_TAG",n[n.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",n[n.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",n[n.UNCLOSED_TAG=27]="UNCLOSED_TAG",(n=b=b||{})[n.literal=0]="literal",n[n.argument=1]="argument",n[n.number=2]="number",n[n.date=3]="date",n[n.time=4]="time",n[n.select=5]="select",n[n.plural=6]="plural",n[n.pound=7]="pound",n[n.tag=8]="tag",(n=v=v||{})[n.number=0]="number",n[n.dateTime=1]="dateTime";var n=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ae=/(?:[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 le=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,ue=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ce=/^(@+)?(\+|#+)?[rs]?$/g,he=/(\*)(0+)|(#+)(0+)|(0+)/g,pe=/^(0+)$/;function me(e){var i={};return"r"===e[e.length-1]?i.roundingPriority="morePrecision":"s"===e[e.length-1]&&(i.roundingPriority="lessPrecision"),e.replace(ce,function(e,t,r){return"string"!=typeof r?(i.minimumSignificantDigits=t.length,i.maximumSignificantDigits=t.length):"+"===r?i.minimumSignificantDigits=t.length:"#"===t[0]?i.maximumSignificantDigits=t.length:(i.minimumSignificantDigits=t.length,i.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),i}function de(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 fe(e){return de(e)||{}}function ge(e){for(var o={},t=0,r=e;t<r.length;t++){var i,n=r[t];switch(n.stem){case"percent":case"%":o.style="percent";continue;case"%x100":o.style="percent",o.scale=100;continue;case"currency":o.style="currency",o.currency=n.options[0];continue;case"group-off":case",_":o.useGrouping=!1;continue;case"precision-integer":case".":o.maximumFractionDigits=0;continue;case"measure-unit":case"unit":o.style="unit",o.unit=n.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":o.notation="compact",o.compactDisplay="short";continue;case"compact-long":case"KK":o.notation="compact",o.compactDisplay="long";continue;case"scientific":o=w(w(w({},o),{notation:"scientific"}),n.options.reduce(function(e,t){return w(w({},e),fe(t))},{}));continue;case"engineering":o=w(w(w({},o),{notation:"engineering"}),n.options.reduce(function(e,t){return w(w({},e),fe(t))},{}));continue;case"notation-simple":o.notation="standard";continue;case"unit-width-narrow":o.currencyDisplay="narrowSymbol",o.unitDisplay="narrow";continue;case"unit-width-short":o.currencyDisplay="code",o.unitDisplay="short";continue;case"unit-width-full-name":o.currencyDisplay="name",o.unitDisplay="long";continue;case"unit-width-iso-code":o.currencyDisplay="symbol";continue;case"scale":o.scale=parseFloat(n.options[0]);continue;case"integer-width":if(1<n.options.length)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(he,function(e,t,r,i,n,s){if(t)o.minimumIntegerDigits=r.length;else{if(i&&n)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""});continue}if(pe.test(n.stem))o.minimumIntegerDigits=n.stem.length;else if(ue.test(n.stem)){if(1<n.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(ue,function(e,t,r,i,n,s){return"*"===r?o.minimumFractionDigits=t.length:i&&"#"===i[0]?o.maximumFractionDigits=i.length:n&&s?(o.minimumFractionDigits=n.length,o.maximumFractionDigits=n.length+s.length):(o.minimumFractionDigits=t.length,o.maximumFractionDigits=t.length),""});var s=n.options[0];"w"===s?o=w(w({},o),{trailingZeroDisplay:"stripIfInteger"}):s&&(o=w(w({},o),me(s)))}else ce.test(n.stem)?o=w(w({},o),me(n.stem)):((s=de(n.stem))&&(o=w(w({},o),s)),(i=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)),!pe.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(n.stem))&&(o=w(w({},o),i)))}return o}var ye={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var Ee=new RegExp("^".concat(n.source,"*")),be=new RegExp("".concat(n.source,"*$"));function S(e,t){return{start:e,end:t}}var n=!!String.prototype.startsWith,ve=!!String.fromCodePoint,we=!!Object.fromEntries,Se=!!String.prototype.codePointAt,Te=!!String.prototype.trimStart,Ae=!!String.prototype.trimEnd,Pe=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ce=!0;try{Ce="a"===(null==(Qe=Fe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Qe[0])}catch(at){Ce=!1}var He,Be,_e=n?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Ie=ve?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,i="",n=e.length,s=0;s<n;){if(1114111<(r=e[s++]))throw RangeError(r+" is not a valid code point");i+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return i},Le=we?Object.fromEntries:function(e){for(var t={},r=0,i=e;r<i.length;r++){var n=i[r],s=n[0],n=n[1];t[s]=n}return t},Ne=Se?function(e,t){return e.codePointAt(t)}:function(e,t){var r,i=e.length;if(!(t<0||i<=t))return(r=e.charCodeAt(t))<55296||56319<r||t+1===i||(i=e.charCodeAt(t+1))<56320||57343<i?r:i-56320+(r-55296<<10)+65536},Oe=Te?function(e){return e.trimStart()}:function(e){return e.replace(Ee,"")},Re=Ae?function(e){return e.trimEnd()}:function(e){return e.replace(be,"")};function Fe(e,t){return new RegExp(e,t)}Be=Ce?(He=Fe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return He.lastIndex=t,null!=(t=He.exec(e)[1])?t:""}):function(e,t){for(var r,i=[];;){var n=Ne(e,t);if(void 0===n||xe(n)||(33<=(r=n)&&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;i.push(n),t+=65536<=n?2:1}return Ie.apply(void 0,i)};s.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},s.prototype.parseMessage=function(e,t,r){for(var i=[];!this.isEOF();){var n,s=this.char();if(123===s){if((n=this.parseArgument(e,r)).err)return n;i.push(n.val)}else{if(125===s&&0<e)break;if(35!==s||"plural"!==t&&"selectordinal"!==t){if(60===s&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(f.UNMATCHED_CLOSING_TAG,S(this.clonePosition(),this.clonePosition()))}if(60===s&&!this.ignoreTag&&Ue(this.peek()||0)){if((n=this.parseTag(e,t)).err)return n;i.push(n.val)}else{if((n=this.parseLiteral(e,t)).err)return n;i.push(n.val)}}else{s=this.clonePosition();this.bump(),i.push({type:b.pound,location:S(s,this.clonePosition())})}}}return{val:i,err:null}},s.prototype.parseTag=function(e,t){var r=this.clonePosition(),i=(this.bump(),this.parseTagName());if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:b.literal,value:"<".concat(i,"/>"),location:S(r,this.clonePosition())},err:null};if(this.bumpIf(">")){e=this.parseMessage(e+1,t,!0);if(e.err)return e;t=e.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Ue(this.char()))return this.error(f.INVALID_TAG,S(e,this.clonePosition()));var n=this.clonePosition();return i!==this.parseTagName()?this.error(f.UNMATCHED_CLOSING_TAG,S(n,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:b.tag,value:i,children:t,location:S(r,this.clonePosition())},err:null}:this.error(f.INVALID_TAG,S(e,this.clonePosition())))}return this.error(f.UNCLOSED_TAG,S(r,this.clonePosition()))}return this.error(f.INVALID_TAG,S(r,this.clonePosition()))},s.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())},s.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),i="";;){var n=this.tryParseQuote(t);if(n)i+=n;else{n=this.tryParseUnquoted(e,t);if(n)i+=n;else{n=this.tryParseLeftAngleBracket();if(!n)break;i+=n}}}r=S(r,this.clonePosition());return{val:{type:b.literal,value:i,location:r},err:null}},s.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Ue(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},s.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 Ie.apply(void 0,t)},s.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(),Ie(r))},s.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,S(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(f.EMPTY_ARGUMENT,S(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(f.MALFORMED_ARGUMENT,S(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,S(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:b.argument,value:i,location:S(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,S(r,this.clonePosition())):this.parseArgumentOptions(e,t,i,r);default:return this.error(f.MALFORMED_ARGUMENT,S(r,this.clonePosition()))}},s.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Be(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:S(e,this.clonePosition())}},s.prototype.parseArgumentOptions=function(e,t,r,i){var n,s=this.clonePosition(),o=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(o){case"":return this.error(f.EXPECT_ARGUMENT_TYPE,S(s,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((d=this.parseSimpleArgStyleIfPossible()).err)return d;if(0===(m=Re(d.val)).length)return this.error(f.EXPECT_ARGUMENT_STYLE,S(this.clonePosition(),this.clonePosition()));l={style:m,styleLocation:S(u,this.clonePosition())}}if((u=this.tryParseArgumentClose(i)).err)return u;var c=S(i,this.clonePosition());if(l&&_e(null==l?void 0:l.style,"::",0)){var h=Oe(l.style.slice(2));if("number"===o)return(d=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?d:{val:{type:b.number,value:r,location:c,style:d.val},err:null};if(0===h.length)return this.error(f.EXPECT_DATE_TIME_SKELETON,c);var p=h,m=(this.locale&&(p=function(e,t){for(var r="",i=0;i<e.length;i++){var n=e.charAt(i);if("j"===n){for(var s=0;i+1<e.length&&e.charAt(i+1)===n;)s++,i++;var o=1+(1&s),a=s<2?1:3+(s>>1),l=function(e){var t,r=e.hourCycle;if(r=void 0===r&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(r=e.language)&&(t=e.maximize().region),(ye[t||""]||ye[r||""]||ye["".concat(r,"-001")]||ye["001"])[0]}(t);for("H"!=l&&"k"!=l||(a=0);0<a--;)r+="a";for(;0<o--;)r=l+r}else r+="J"===n?"H":n}return r}(h,this.locale)),{type:v.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(n={},p.replace(ae,function(e){var t=e.length;switch(e[0]){case"G":n.era=4===t?"long":5===t?"narrow":"short";break;case"y":n.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":n.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":n.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":n.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][t-4];break;case"a":n.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":n.hourCycle="h12",n.hour=["numeric","2-digit"][t-1];break;case"H":n.hourCycle="h23",n.hour=["numeric","2-digit"][t-1];break;case"K":n.hourCycle="h11",n.hour=["numeric","2-digit"][t-1];break;case"k":n.hourCycle="h24",n.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":n.minute=["numeric","2-digit"][t-1];break;case"s":n.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":n.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""}),n):{}});return{val:{type:"date"===o?b.date:b.time,value:r,location:c,style:m},err:null}}return{val:{type:"number"===o?b.number:"date"===o?b.date:b.time,value:r,location:c,style:null!=(h=null==l?void 0:l.style)?h:null},err:null};case"plural":case"selectordinal":case"select":p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(f.EXPECT_SELECT_ARGUMENT_OPTIONS,S(p,w({},p)));this.bumpSpace();var d,m=this.parseIdentifierIfPossible(),c=0;if("select"!==o&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,S(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(d=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,f.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return d;this.bumpSpace(),m=this.parseIdentifierIfPossible(),c=d.val}l=this.tryParsePluralOrSelectOptions(e,o,t,m);if(l.err)return l;if((u=this.tryParseArgumentClose(i)).err)return u;h=S(i,this.clonePosition());return"select"===o?{val:{type:b.select,value:r,options:Le(l.val),location:h},err:null}:{val:{type:b.plural,value:r,options:Le(l.val),offset:c,pluralType:"plural"===o?"cardinal":"ordinal",location:h},err:null};default:return this.error(f.INVALID_ARGUMENT_TYPE,S(s,a))}},s.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,S(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},s.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(f.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,S(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}},s.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,i=e.split(le).filter(function(e){return 0<e.length});r<i.length;r++){var n=i[r].split("/");if(0===n.length)throw new Error("Invalid number skeleton");for(var s=n[0],n=n.slice(1),o=0,a=n;o<a.length;o++)if(0===a[o].length)throw new Error("Invalid number skeleton");t.push({stem:s,options:n})}return t}(e)}catch(e){return this.error(f.INVALID_NUMBER_SKELETON,t)}return{val:{type:v.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?ge(r):{}},err:null}},s.prototype.tryParsePluralOrSelectOptions=function(e,t,r,i){for(var n=!1,s=[],o=new Set,a=i.value,l=i.location;;){if(0===a.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_SELECTOR,f.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=S(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(o.has(a))return this.error("select"===t?f.DUPLICATE_SELECT_ARGUMENT_SELECTOR:f.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(n=!0),this.bumpSpace();c=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:f.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,S(this.clonePosition(),this.clonePosition()));u=this.parseMessage(e+1,t,r);if(u.err)return u;var h=this.tryParseArgumentClose(c);if(h.err)return h;s.push([a,{value:u.val,location:S(c,this.clonePosition())}]),o.add(a),this.bumpSpace(),a=(h=this.parseIdentifierIfPossible()).value,l=h.location}return 0===s.length?this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR:f.EXPECT_PLURAL_ARGUMENT_SELECTOR,S(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(f.MISSING_OTHER_CLAUSE,S(this.clonePosition(),this.clonePosition())):{val:s,err:null}},s.prototype.tryParseDecimalInteger=function(e,t){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var n=!1,s=0;!this.isEOF();){var o=this.char();if(!(48<=o&&o<=57))break;n=!0,s=10*s+(o-48),this.bump()}i=S(i,this.clonePosition());return n?Pe(s*=r)?{val:s,err:null}:this.error(t,i):this.error(e,i)},s.prototype.offset=function(){return this.position.offset},s.prototype.isEOF=function(){return this.offset()===this.message.length},s.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},s.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Ne(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},s.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},s.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))},s.prototype.bumpIf=function(e){if(_e(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},s.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},s.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},s.prototype.bumpSpace=function(){for(;!this.isEOF()&&xe(this.char());)this.bump()},s.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),t=this.message.charCodeAt(t+(65536<=e?2:1));return null!=t?t:null};var Me=s;function s(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function Ue(e){return 97<=e&&e<=122||65<=e&&e<=90}function xe(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function De(e,t){t=w({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r,e=new Me(e,t).parse();if(e.err)throw(r=SyntaxError(f[e.err.kind])).location=e.err.location,r.originalMessage=e.err.message,r;return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,re(e)||ie(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else J(e)&&se(e.style)||(ee(e)||te(e))&&oe(e.style)?delete e.style.location:ne(e)&&r(e.children)})}(e.val),e.val}function Ge(e,t){var r=t&&t.cache?t.cache:Xe,i=t&&t.serializer?t.serializer:je;return(t&&t.strategy?t.strategy:function(e,t){return Ve(e,this,1===e.length?ke:$e,t.cache.create(),t.serializer)})(e,{cache:r,serializer:i})}function ke(e,t,r,i){var r=null==i||"number"==typeof i||"boolean"==typeof i?i:r(i),n=t.get(r);return void 0===n&&(n=e.call(this,i),t.set(r,n)),n}function $e(e,t,r){var i=Array.prototype.slice.call(arguments,3),r=r(i),n=t.get(r);return void 0===n&&(n=e.apply(this,i),t.set(r,n)),n}function Ve(e,t,r,i,n){return r.bind(t,e,i,n)}var je=function(){return JSON.stringify(arguments)};function ze(){this.cache=Object.create(null)}ze.prototype.get=function(e){return this.cache[e]},ze.prototype.set=function(e,t){this.cache[e]=t};var T,Qe,Xe={create:function(){return new ze}},Ze={variadic:function(e,t){return Ve(e,this,$e,t.cache.create(),t.serializer)},monadic:function(e,t){return Ve(e,this,ke,t.cache.create(),t.serializer)}};(Qe=T=T||{}).MISSING_VALUE="MISSING_VALUE",Qe.INVALID_VALUE="INVALID_VALUE",Qe.MISSING_INTL_API="MISSING_INTL_API";Q(ot,We=Error),ot.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var A,Ke,Ye,qe,We,Je=ot,et=(Q(st,qe=Je),st),tt=(Q(nt,Ye=Je),nt),rt=(Q(it,Ke=Je),it);function it(e,t){return Ke.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),T.MISSING_VALUE,t)||this}function nt(e,t,r){return Ye.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),T.INVALID_VALUE,r)||this}function st(e,t,r,i){return qe.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(r).join('", "'),'"'),T.INVALID_VALUE,i)||this}function ot(e,t,r){e=We.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function Et(e,t,r,i,n,s,o){if(1===e.length&&Z(e[0]))return[{type:A.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];if(Z(c))a.push({type:A.literal,value:c.value});else if(c.type===b.pound)"number"==typeof s&&a.push({type:A.literal,value:r.getNumberFormat(t).format(s)});else{var h=c.value;if(!(n&&h in n))throw new rt(h,o);h=n[h];if(c.type===b.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?A.literal:A.object,value:h});else if(ee(c)){var p="string"==typeof c.style?i.date[c.style]:oe(c.style)?c.style.parsedOptions:void 0;a.push({type:A.literal,value:r.getDateTimeFormat(t,p).format(h)})}else if(te(c))p="string"==typeof c.style?i.time[c.style]:oe(c.style)?c.style.parsedOptions:i.time.medium,a.push({type:A.literal,value:r.getDateTimeFormat(t,p).format(h)});else if(J(c))(p="string"==typeof c.style?i.number[c.style]:se(c.style)?c.style.parsedOptions:void 0)&&p.scale&&(h*=p.scale||1),a.push({type:A.literal,value:r.getNumberFormat(t,p).format(h)});else{if(ne(c)){var m=c.children,d=c.value,f=n[d];if("function"!=typeof f)throw new tt(d,"function",o);d=f(Et(m,t,r,i,n,s).map(function(e){return e.value}));Array.isArray(d)||(d=[d]),a.push.apply(a,d.map(function(e){return{type:"string"==typeof e?A.literal:A.object,value:e}}))}if(re(c)){if(!(g=c.options[h]||c.options.other))throw new et(c.value,h,Object.keys(c.options),o);a.push.apply(a,Et(g.value,t,r,i,n))}else if(ie(c)){if(!(g=c.options["=".concat(h)])){if(!Intl.PluralRules)throw new Je('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',T.MISSING_INTL_API,o);var f=r.getPluralRules(t,{type:c.pluralType}).select(h-(c.offset||0)),g=c.options[f]||c.options.other}if(!g)throw new et(c.value,h,Object.keys(c.options),o);a.push.apply(a,Et(g.value,t,r,i,n,h-(c.offset||0)))}}}}return(e=a).length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===A.literal&&t.type===A.literal?r.value+=t.value:e.push(t),e},[])}function bt(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(n=A=A||{})[n.literal=0]="literal",n[n.object=1]="object",Object.defineProperty(l,"defaultLocale",{get:function(){return l.memoizedDefaultLocale||(l.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),l.memoizedDefaultLocale},enumerable:!1,configurable:!0}),l.memoizedDefaultLocale=null,l.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},l.__parse=De,l.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"}}};var vt=l;function l(e,t,r,i){var n,s,o=this;if(void 0===t&&(t=l.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=o.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===A.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(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.resolvedOptions=function(){return{locale:o.resolvedLocale.toString()}},this.getAst=function(){return o.ast},this.locales=t,this.resolvedLocale=l.resolveLocale(t),"string"==typeof e){if(this.message=e,!l.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=l.__parse(e,{ignoreTag:null==i?void 0:i.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(n=l.formats,(s=r)?Object.keys(n).reduce(function(e,t){var r,i;return e[t]=(r=n[t],(i=s[t])?w(w(w({},r||{}),i||{}),Object.keys(r).reduce(function(e,t){return e[t]=w(w({},r[t]),i[t]||{}),e},{})):r),e},w({},n)):n),this.formatters=i&&i.formatters||{getNumberFormat:Ge(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,X([void 0],t,!1)))},{cache:bt((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Ze.variadic}),getDateTimeFormat:Ge(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,X([void 0],t,!1)))},{cache:bt(t.dateTime),strategy:Ze.variadic}),getPluralRules:Ge(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,X([void 0],t,!1)))},{cache:bt(t.pluralRules),strategy:Ze.variadic})}}const o={},wt=(e,t,r)=>r&&(t in o||(o[t]={}),e in o[t]||(o[t][e]=r),r),St=(t,r)=>{if(null!=r){if(r in o&&t in o[r])return o[r][t];var i=Mt(r);for(let e=0;e<i.length;e++){var n=function(e,r){if(!Pt(e))return null;e=function(e){return Tt[e]||null}(e);{var i=r;if(null==i)return;if(i in e)return e[i];const n=i.split(".");let t=e;for(let e=0;e<n.length;e++)if("object"==typeof t){if(0<e){const i=n.slice(e,n.length).join(".");if(i in t){t=t[i];break}}t=t[n[e]]}else t=void 0;return t}}(i[e],t);if(n)return wt(t,r,n)}}};let Tt;const At=M({});function Pt(e){return e in Tt}function Ct(t,...r){delete o[t],At.update(e=>(e[t]=j.all([e[t]||{},...r]),e))}i([At],([e])=>Object.keys(e)),At.subscribe(e=>Tt=e);const Ht={};function Bt(e){return Ht[e]}function _t(e){return null!=e&&Mt(e).some(e=>{return null==(e=Bt(e))?void 0:e.size})}const It={};function Lt(e){if(!_t(e))return e in It?It[e]:Promise.resolve();const t=Mt(e).map(e=>{var t=Bt(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return It[e]=Promise.all(t.map(([e,t])=>{{var i=e;e=t;const r=Promise.all(e.map(e=>{var t=i,r=e;return Ht[t].delete(r),0===Ht[t].size&&delete Ht[t],e().then(e=>e.default||e)}));return r.then(e=>Ct(i,...e))}})).then(()=>{if(_t(e))return Lt(e);delete It[e]}),It[e]}function u(e,t){var r={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}const c={fallbackLocale: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,handleMissingMessage:void 0,ignoreTag:!0};const Nt=M(!1);let Ot;const Rt=M(null);function Ft(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Mt(e,t=c.fallbackLocale){e=Ft(e);return t?[...new Set([...e,...Ft(t)])]:e}function h(){return null!=Ot?Ot:void 0}Rt.subscribe(e=>{Ot=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const q=Object.assign(Object.assign({},Rt),{set:t=>{if(t&&function(e){if(null!=e){var t=Mt(e);for(let e=0;e<t.length;e++){var r=t[e];if(Pt(r))return r}}}(t)&&_t(t)){var r=c["loadingDelay"];let e;return"undefined"!=typeof window&&null!=h()&&r?e=window.setTimeout(()=>Nt.set(!0),r):Nt.set(!0),Lt(t).then(()=>{Rt.set(t)}).finally(()=>{clearTimeout(e),Nt.set(!1)})}return Rt.set(t)}}),Ut=r=>{const i=Object.create(null);return e=>{var t=JSON.stringify(e);return t in i?i[t]:i[t]=r(e)}},xt=(e,t)=>{var r=c["formats"];if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Dt=Ut(e=>{var{locale:t,format:r}=e,e=u(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=xt("number",r)),new Intl.NumberFormat(t,e)}),Gt=Ut(e=>{var{locale:t,format:r}=e,e=u(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=xt("date",r):0===Object.keys(e).length&&(e=xt("date","short")),new Intl.DateTimeFormat(t,e)}),kt=Ut(e=>{var{locale:t,format:r}=e,e=u(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=xt("time",r):0===Object.keys(e).length&&(e=xt("time","short")),new Intl.DateTimeFormat(t,e)}),$t=Ut((e,t=h())=>new vt(e,t,c.formats,{ignoreTag:c.ignoreTag})),Vt=i([q,At],()=>(e,t={})=>{var r,i;let n=t;"object"==typeof e&&(e=(n=e).id);var{values:s,locale:o=h(),default:a}=n;if(null==o)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=St(e,o);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(i=null!=(r=null==(r=(i=c).handleMissingMessage)?void 0:r.call(i,{locale:o,id:e,defaultValue:a}))?r:a)?i:e;if(!s)return l;let u=l;try{u=$t(l,o).format(s)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u});function jt(e,t){Ct(e,t)}i([q],()=>(e,t)=>((e={})=>{var{locale:t=h()}=e,e=u(e,["locale"]);return kt(Object.assign({locale:t},e))})(t).format(e)),i([q],()=>(e,t)=>((e={})=>{var{locale:t=h()}=e,e=u(e,["locale"]);return Gt(Object.assign({locale:t},e))})(t).format(e)),i([q],()=>(e,t)=>((e={})=>{var{locale:t=h()}=e,e=u(e,["locale"]);return Dt(Object.assign({locale:t},e))})(t).format(e)),i([q,At],()=>(e,t=h())=>St(e,t));const zt={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.",registerSimplePasswordError:"Password must be 8-20 characters long.",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"}},"zh-hk":{registerFormStep1:{registerTitle:"創建您的帳戶",registerSubtitle:"已經有一個帳戶?",registerSubtitleLogin:"登錄",registerEmail:"電子郵件",registerEmailError:"電子郵件應包含“@”和 2-3 個字母長的域。",registerUsername:"用戶名",registerUsernameError:"名稱的長度必須至少為 2 個字符且不包含特殊字符。",registerPassword:"密碼",registerPasswordError:"密碼長度必須為 8-20 個字符,並且至少包含 1 個大寫字母、1 個數字和 1 個特殊字符。",registerSimplePasswordError:"密码长度必须为 8-20 个字符。",registerConfirmPassword:"確認密碼",registerConfirmPasswordError:"它與密碼不匹配。",registerSecurityQuestion:"安全問題",registerSecurityQuestionError:"安全問題的長度必須至少為 1 個字符,最多 120 個字符。",registerSecurityAnswer:"安全答案",registerSecurityAnswerError:"安全答案的長度必須至少為 1 個字符,最多為 120 個字符。",registerNext:"下一個"}},fr:{registerFormStep1:{registerTitle:"Créez votre compte",registerSubtitle:"Vous avez déjà un compte?",registerSubtitleLogin:"Connexion ",registerEmail:"Email",registerEmailError:"L'adresse mail doit comporter un '@' et un nom de domaine de 2 à 3 lettres.",registerUsername:"Nom d'utilisateur ",registerUsernameError:"Le nom doit être composé d'au moins 2 caractères et ne doitpas contenir de caractères spéciaux.",registerPassword:"Mot de passe",registerPasswordError:"Le mot de passe doit comporter de 8 à 20 charactères et contenir au moins une lettre majuscule, un chiffre et un caractère spécial.",registerSimplePasswordError:"Le mot de passe doit comporter entre 8 et 20 caractères.",registerConfirmPassword:"Confirmer le mot de passe",registerConfirmPasswordError:"ça ne correspond pas au mot de passe.",registerSecurityQuestion:"Questions de sécurité",registerSecurityQuestionError:"La question de sécurité doit comporter au moins un caractère et au maximum 120 caractères.",registerSecurityAnswer:"Réponse de sécurité",registerSecurityAnswerError:"La réponse de sécurité doit comporter au moins un caractère et au maximum 120 caractères.",registerNext:"Suivant"}},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.",registerSimplePasswordError:"Şifre 8-20 karakter uzunluğunda olmalıdır.",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.",registerSimplePasswordError:"Parola trebuie să aibă 8-20 de caractere.",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"}},es:{registerFormStep1:{registerTitle:"Crea tu cuenta",registerSubtitle:"Ya tiene cuenta?",registerSubtitleLogin:"Iniciar sesión",registerEmail:"Email",registerEmailError:"Email debe contener '@' y un dominio de 2 a 3 letras.",registerUsername:"Usuario",registerUsernameError:"El nombre de Usuario debe tener mínimo 4 y máximo 20 caracteres y no contener caracteres especiales.",registerPassword:"Contraseña",registerPasswordError:"La contraseña debe tener de 8 a 20 caracteres y contener al menos 1 letra mayúscula, 1 número y 1 carácter especial.",registerSimplePasswordError:"La contraseña debe tener entre 8 y 20 caracteres.",registerConfirmPassword:"Confirmar Contraseña",registerConfirmPasswordError:"La contraseña no coincide.",registerSecurityQuestion:"Pregunta de seguridad",registerSecurityQuestionError:"La Pregunta de seguridad debe tener un mínimo de 1 carácter y un máximo de 120 caracteres",registerSecurityAnswer:"Respuesta de seguridad",registerSecurityAnswerError:"La Respuesta de seguridad debe tener un mínimo de 1 carácter y un máximo de 120 caracteres",registerNext:"Siguiente"}},pt:{registerFormStep1:{registerTitle:"Crie a sua conta",registerSubtitle:"Já tem uma conta?",registerSubtitleLogin:"Entrar",registerEmail:"E-mail",registerEmailError:"O e-mail deve conter '@' e um domínio de 2 a 3 letras.",registerUsername:"Nome do usuário",registerUsernameError:"O nome deve ter pelo menos 2 caracteres e não conter caracteres especiais.",registerPassword:"Senha",registerPasswordError:"A senha deve ter de 8 a 20 caracteres e conter pelo menos 1 letra maiúscula, 1 número e 1 caractere especial.",registerSimplePasswordError:"A senha deve ter de 8 a 20 caracteres.",registerConfirmPassword:"Confirme a sua senha",registerConfirmPasswordError:"Não corresponde à senha.",registerSecurityQuestion:"Pergunta de segurança",registerSecurityQuestionError:"A pergunta de segurança deve ter no mínimo 1 caractere e no máximo 120 caracteres.",registerSecurityAnswer:"Resposta de segurança",registerSecurityAnswerError:"A resposta de segurança deve ter pelo menos 1 caractere e no máximo 120 caracteres.",registerNext:"Próximo"}}};function Qt(e){let r,i,n=e[27]("registerFormStep1.registerEmailError")+"";return{c(){r=t("p"),i=pt(n),ft(r,"class","InvalidInput"),ft(r,"part","InvalidInput")},m(e,t){ct(e,r,t),ut(r,i)},p(e,t){134217728&t[0]&&n!==(n=e[27]("registerFormStep1.registerEmailError")+"")&&gt(i,n)},d(e){e&&ht(r)}}}function Xt(e){let r,i,n=e[27]("registerFormStep1.registerUsernameError")+"";return{c(){r=t("p"),i=pt(n),ft(r,"class","InvalidInput"),ft(r,"part","InvalidInput")},m(e,t){ct(e,r,t),ut(r,i)},p(e,t){134217728&t[0]&&n!==(n=e[27]("registerFormStep1.registerUsernameError")+"")&&gt(i,n)},d(e){e&&ht(r)}}}function Zt(r){let i,n,s,o,a,l,u,c,h;return{c(){i=e("svg"),n=e("defs"),s=e("style"),o=pt(".a{fill:var(--emfe-w-color-contrast, #07072A);}"),a=e("g"),l=e("path"),u=e("circle"),ft(l,"class","a"),ft(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"),ft(l,"transform","translate(0)"),ft(u,"class","a"),ft(u,"cx","2.779"),ft(u,"cy","2.779"),ft(u,"r","2.779"),ft(u,"transform","translate(20.827 30.303)"),ft(a,"transform","translate(-14.185 -27.832)"),ft(i,"class","TogglePasswordVisibility"),ft(i,"part","TogglePasswordVisibility"),ft(i,"xmlns","http://www.w3.org/2000/svg"),ft(i,"width","18.843"),ft(i,"height","10.5"),ft(i,"viewBox","0 0 18.843 10.5")},m(e,t){ct(e,i,t),ut(i,n),ut(n,s),ut(s,o),ut(i,a),ut(a,l),ut(a,u),c||(h=dt(i,"click",r[58]),c=!0)},p:at,d(e){e&&ht(i),c=!1,h()}}}function Kt(r){let i,n,s,o,a,l,u,c,h,p,m,d,f,g,y;return{c(){i=e("svg"),n=e("defs"),s=e("style"),o=pt(".a{fill:var(--emfe-w-color-contrast, #07072A);}"),a=e("g"),l=e("circle"),u=e("g"),c=e("path"),h=e("path"),p=e("g"),m=e("path"),d=e("path"),f=e("rect"),ft(l,"class","a"),ft(l,"cx","0.05"),ft(l,"cy","0.05"),ft(l,"r","0.05"),ft(l,"transform","translate(121.017 31.148)"),ft(c,"class","a"),ft(c,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),ft(c,"transform","translate(-142.164 -39.123)"),ft(h,"class","a"),ft(h,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),ft(h,"transform","translate(-136.413 -42.068)"),ft(u,"transform","translate(117.499 27.37)"),ft(m,"class","a"),ft(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"),ft(m,"transform","translate(-110.856 -33.157)"),ft(d,"class","a"),ft(d,"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"),ft(d,"transform","translate(-130.743 -29.617)"),ft(p,"transform","translate(110.856 24.899)"),ft(f,"class","a"),ft(f,"width","0.972"),ft(f,"height","15.861"),ft(f,"rx","0.486"),ft(f,"transform","translate(114.827 23.858) rotate(-39.315)"),ft(a,"transform","translate(-110.856 -23.242)"),ft(i,"class","TogglePasswordVisibility"),ft(i,"part","TogglePasswordVisibility"),ft(i,"xmlns","http://www.w3.org/2000/svg"),ft(i,"width","18.844"),ft(i,"height","12.887"),ft(i,"viewBox","0 0 18.844 12.887")},m(e,t){ct(e,i,t),ut(i,n),ut(n,s),ut(s,o),ut(i,a),ut(a,l),ut(a,u),ut(u,c),ut(u,h),ut(a,p),ut(p,m),ut(p,d),ut(a,f),g||(y=dt(i,"click",r[57]),g=!0)},p:at,d(e){e&&ht(i),g=!1,y()}}}function Yt(e){let r,i,n=e[27]("registerFormStep1.registerPasswordError")+"";return{c(){r=t("p"),i=pt(n),ft(r,"class","InvalidInput"),ft(r,"part","InvalidInput")},m(e,t){ct(e,r,t),ut(r,i)},p(e,t){134217728&t[0]&&n!==(n=e[27]("registerFormStep1.registerPasswordError")+"")&&gt(i,n)},d(e){e&&ht(r)}}}function qt(e){let r,i,n=e[27]("registerFormStep1.registerSimplePasswordError")+"";return{c(){r=t("p"),i=pt(n),ft(r,"class","InvalidInput"),ft(r,"part","InvalidInput")},m(e,t){ct(e,r,t),ut(r,i)},p(e,t){134217728&t[0]&&n!==(n=e[27]("registerFormStep1.registerSimplePasswordError")+"")&&gt(i,n)},d(e){e&&ht(r)}}}function Wt(r){let i,n,s,o,a,l,u,c,h;return{c(){i=e("svg"),n=e("defs"),s=e("style"),o=pt(".a{fill:var(--emfe-w-color-contrast, #07072A);}"),a=e("g"),l=e("path"),u=e("circle"),ft(l,"class","a"),ft(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"),ft(l,"transform","translate(0)"),ft(u,"class","a"),ft(u,"cx","2.779"),ft(u,"cy","2.779"),ft(u,"r","2.779"),ft(u,"transform","translate(20.827 30.303)"),ft(a,"transform","translate(-14.185 -27.832)"),ft(i,"class","ToggleConfirmPasswordVisibility"),ft(i,"part","ToggleConfirmPasswordVisibility"),ft(i,"xmlns","http://www.w3.org/2000/svg"),ft(i,"width","18.843"),ft(i,"height","10.5"),ft(i,"viewBox","0 0 18.843 10.5")},m(e,t){ct(e,i,t),ut(i,n),ut(n,s),ut(s,o),ut(i,a),ut(a,l),ut(a,u),c||(h=dt(i,"click",r[64]),c=!0)},p:at,d(e){e&&ht(i),c=!1,h()}}}function Jt(r){let i,n,s,o,a,l,u,c,h,p,m,d,f,g,y;return{c(){i=e("svg"),n=e("defs"),s=e("style"),o=pt(".a{fill:var(--emfe-w-color-contrast, #07072A);}"),a=e("g"),l=e("circle"),u=e("g"),c=e("path"),h=e("path"),p=e("g"),m=e("path"),d=e("path"),f=e("rect"),ft(l,"class","a"),ft(l,"cx","0.05"),ft(l,"cy","0.05"),ft(l,"r","0.05"),ft(l,"transform","translate(121.017 31.148)"),ft(c,"class","a"),ft(c,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),ft(c,"transform","translate(-142.164 -39.123)"),ft(h,"class","a"),ft(h,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),ft(h,"transform","translate(-136.413 -42.068)"),ft(u,"transform","translate(117.499 27.37)"),ft(m,"class","a"),ft(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"),ft(m,"transform","translate(-110.856 -33.157)"),ft(d,"class","a"),ft(d,"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"),ft(d,"transform","translate(-130.743 -29.617)"),ft(p,"transform","translate(110.856 24.899)"),ft(f,"class","a"),ft(f,"width","0.972"),ft(f,"height","15.861"),ft(f,"rx","0.486"),ft(f,"transform","translate(114.827 23.858) rotate(-39.315)"),ft(a,"transform","translate(-110.856 -23.242)"),ft(i,"class","ToggleConfirmPasswordVisibility"),ft(i,"part","ToggleConfirmPasswordVisibility"),ft(i,"xmlns","http://www.w3.org/2000/svg"),ft(i,"width","18.844"),ft(i,"height","12.887"),ft(i,"viewBox","0 0 18.844 12.887")},m(e,t){ct(e,i,t),ut(i,n),ut(n,s),ut(s,o),ut(i,a),ut(a,l),ut(a,u),ut(u,c),ut(u,h),ut(a,p),ut(p,m),ut(p,d),ut(a,f),g||(y=dt(i,"click",r[63]),g=!0)},p:at,d(e){e&&ht(i),g=!1,y()}}}function er(e){let r,i,n=e[27]("registerFormStep1.registerConfirmPasswordError")+"";return{c(){r=t("p"),i=pt(n),ft(r,"class","InvalidInput"),ft(r,"part","InvalidInput")},m(e,t){ct(e,r,t),ut(r,i)},p(e,t){134217728&t[0]&&n!==(n=e[27]("registerFormStep1.registerConfirmPasswordError")+"")&&gt(i,n)},d(e){e&&ht(r)}}}function tr(e){let r,i,n=e[27]("registerFormStep1.registerSecurityQuestionError")+"";return{c(){r=t("p"),i=pt(n),ft(r,"class","InvalidInput"),ft(r,"part","InvalidInput")},m(e,t){ct(e,r,t),ut(r,i)},p(e,t){134217728&t[0]&&n!==(n=e[27]("registerFormStep1.registerSecurityQuestionError")+"")&&gt(i,n)},d(e){e&&ht(r)}}}function rr(e){let r,i,n=e[27]("registerFormStep1.registerSecurityAnswerError")+"";return{c(){r=t("p"),i=pt(n),ft(r,"class","InvalidInput"),ft(r,"part","InvalidInput")},m(e,t){ct(e,r,t),ut(r,i)},p(e,t){134217728&t[0]&&n!==(n=e[27]("registerFormStep1.registerSecurityAnswerError")+"")&&gt(i,n)},d(e){e&&ht(r)}}}function ir(r){let i,n,s,x,D,o,G,k,a,$,V,l,u,c,j,z,h,Q,p,X,Z,K,Y,m,d,q,W,J,ee,f,te,re,ie,ne,se,g,y,oe,ae,le,ue,E,ce,he,pe,me,de,fe,ge,ye,b,v,Ee,be,ve,we,w,Se,Te,Ae,Pe,Ce,S,T,He,Be,_e,Ie,A,Le,Ne,Oe,Re,P,C,Fe,Me,Ue,xe,H,De,Ge,ke,$e,B,Ve,je,ze,Qe,Xe=r[27]("registerFormStep1.registerTitle")+"",Ze=r[27]("registerFormStep1.registerSubtitle")+"",Ke=r[27]("registerFormStep1.registerSubtitleLogin")+"",Ye=r[27]("registerFormStep1.registerEmail")+"",qe=r[27]("registerFormStep1.registerUsername")+"",We=r[27]("registerFormStep1.registerPassword")+"",Je=r[27]("registerFormStep1.registerConfirmPassword")+"",et=r[27]("registerFormStep1.registerSecurityQuestion")+"",tt=r[27]("registerFormStep1.registerSecurityAnswer")+"",rt=r[27]("registerFormStep1.registerNext")+"",_=r[3]&&Qt(r),I=r[4]&&Xt(r);function it(e){return e[22]?Kt:Zt}let nt=it(r),L=nt(r),N=r[5]&&"true"!==r[0]&&Yt(r),O=r[5]&&"true"===r[0]&&qt(r);function st(e){return e[23]?Jt:Wt}let ot=st(r),R=ot(r),F=r[6]&&er(r),M=r[7]&&tr(r),U=r[8]&&rr(r);return{c(){i=t("div"),n=t("div"),s=t("h2"),x=pt(Xe),D=mt(),o=t("p"),G=pt(Ze),k=mt(),a=t("span"),$=pt(Ke),V=mt(),l=t("form"),u=t("div"),c=t("label"),j=pt(Ye),z=pt(":"),(h=t("span")).textContent="*",Q=mt(),p=t("input"),X=mt(),_&&_.c(),Y=mt(),m=t("div"),d=t("label"),q=pt(qe),W=pt(":"),(J=t("span")).textContent="*",ee=mt(),f=t("input"),re=mt(),I&&I.c(),se=mt(),g=t("div"),y=t("label"),oe=pt(We),ae=pt(":"),(le=t("span")).textContent="*",ue=mt(),E=t("input"),he=mt(),L.c(),pe=mt(),N&&N.c(),me=mt(),O&&O.c(),ye=mt(),b=t("div"),v=t("label"),Ee=pt(Je),be=pt(":"),(ve=t("span")).textContent="*",we=mt(),w=t("input"),Se=mt(),R.c(),Te=mt(),F&&F.c(),Ce=mt(),S=t("div"),T=t("label"),He=pt(et),Be=pt(":"),(_e=t("span")).textContent="*",Ie=mt(),A=t("input"),Le=mt(),M&&M.c(),Re=mt(),P=t("div"),C=t("label"),Fe=pt(tt),Me=pt(":"),(Ue=t("span")).textContent="*",xe=mt(),H=t("input"),De=mt(),U&&U.c(),$e=mt(),B=t("button"),Ve=pt(rt),this.c=at,ft(s,"class","RegisterFormTitle"),ft(s,"part","RegisterFormTitle"),ft(a,"class","FormLoginCallToAction"),ft(o,"class","RegisterFormSubtitle"),ft(o,"part","RegisterFormSubtitle"),ft(n,"class","RegisterFormHeader"),ft(n,"part","RegisterFormHeader"),ft(h,"class","FormRequired"),ft(h,"part","FormRequired"),ft(c,"for","Email"),ft(p,"type","text"),ft(p,"id","Email"),ft(u,"class",Z="EmailContainer "+(r[3]&&!r[9]?"InvalidField":"")+(0<=r[15]?.indexOf("email")?"Hidden":"")),ft(u,"part",K="EmailContainer "+(r[3]?"InvalidField":"")),ft(J,"class","FormRequired"),ft(J,"part","FormRequired"),ft(d,"for","UserName"),ft(f,"type","text"),ft(f,"id","UserName"),ft(f,"autocomplete",te=r[1]?"username":"off"),ft(m,"class",ie="UserContainer "+(r[4]&&!r[10]?"InvalidField":"")+(0<=r[15]?.indexOf("username")?"Hidden":"")),ft(m,"part",ne="UserContainer "+(r[4]?"InvalidField":"")),ft(le,"class","FormRequired"),ft(le,"part","FormRequired"),ft(y,"for","Password"),ft(E,"name","new-password"),ft(E,"type","password"),ft(E,"id","new-password"),ft(E,"autocomplete",ce=r[1]?"new-password":"off"),ft(E,"aria-describedby","password-constraints"),ft(g,"class",de="PasswordContainer "+(r[5]&&!r[11]?"InvalidField":"")+(0<=r[15]?.indexOf("password")?"Hidden":"")),ft(g,"part",fe="PasswordContainer "+(r[5]?"InvalidField":"")),g.hidden=ge=0<=r[15]?.indexOf("password"),ft(ve,"class","FormRequired"),ft(ve,"part","FormRequired"),ft(v,"for","ConfirmPassword"),ft(w,"type","password"),ft(w,"id","ConfirmPassword"),ft(b,"class",Ae="ConfirmPasswordContainer "+(r[6]&&!r[12]?"InvalidField":"")+(0<=r[15]?.indexOf("confirmPassword")?"Hidden":"")),ft(b,"part",Pe="ConfirmPasswordContainer "+(r[6]?"InvalidField":"")),ft(_e,"class","FormRequired"),ft(_e,"part","FormRequired"),ft(T,"for","SecurityQuestion"),ft(A,"type","text"),ft(A,"id","SecurityQuestion"),ft(S,"class",Ne="SecurityQuestionContainer "+(r[7]&&!r[13]?"InvalidField":"")+(0<=r[15]?.indexOf("securityQuestion")?"Hidden":"")),ft(S,"part",Oe="SecurityQuestionContainer "+(r[7]?"InvalidField":"")),ft(Ue,"class","FormRequired"),ft(Ue,"part","FormRequired"),ft(C,"for","SecurityAnswer"),ft(H,"type","text"),ft(H,"id","SecurityAnswer"),ft(P,"class",Ge="SecurityAnswerContainer "+(r[8]&&!r[14]?"InvalidField":"")+(0<=r[15]?.indexOf("securityAnswer")?"Hidden":"")),ft(P,"part",ke="SecurityAnswerContainer "+(r[8]?"InvalidField":"")),ft(B,"class","RegisterStepNext"),ft(B,"part","RegisterStepNext"),B.disabled=je=!r[26],ft(l,"class","RegisterFormContent"),ft(l,"part","RegisterFormContent")},m(e,t){ct(e,i,t),ut(i,n),ut(n,s),ut(s,x),ut(n,D),ut(n,o),ut(o,G),ut(o,k),ut(o,a),ut(a,$),ut(i,V),ut(i,l),ut(l,u),ut(u,c),ut(c,j),ut(c,z),ut(c,h),ut(u,Q),ut(u,p),yt(p,r[17]),ut(u,X),_&&_.m(u,null),ut(l,Y),ut(l,m),ut(m,d),ut(d,q),ut(d,W),ut(d,J),ut(m,ee),ut(m,f),yt(f,r[16]),ut(m,re),I&&I.m(m,null),ut(l,se),ut(l,g),ut(g,y),ut(y,oe),ut(y,ae),ut(y,le),ut(g,ue),ut(g,E),yt(E,r[18]),r[56](E),ut(g,he),L.m(g,null),ut(g,pe),N&&N.m(g,null),ut(g,me),O&&O.m(g,null),ut(l,ye),ut(l,b),ut(b,v),ut(v,Ee),ut(v,be),ut(v,ve),ut(b,we),ut(b,w),yt(w,r[19]),r[62](w),ut(b,Se),R.m(b,null),ut(b,Te),F&&F.m(b,null),ut(l,Ce),ut(l,S),ut(S,T),ut(T,He),ut(T,Be),ut(T,_e),ut(S,Ie),ut(S,A),yt(A,r[20]),ut(S,Le),M&&M.m(S,null),ut(l,Re),ut(l,P),ut(P,C),ut(C,Fe),ut(C,Me),ut(C,Ue),ut(P,xe),ut(P,H),yt(H,r[21]),ut(P,De),U&&U.m(P,null),ut(l,$e),ut(l,B),ut(B,Ve),r[72](i),ze||(Qe=[dt(a,"click",r[46]),dt(p,"input",r[47]),dt(p,"keyup",r[29]),dt(p,"focus",r[48]),dt(p,"blur",r[49]),dt(f,"input",r[50]),dt(f,"keyup",r[30]),dt(f,"focus",r[51]),dt(f,"blur",r[52]),dt(E,"input",r[53]),dt(E,"keyup",r[35]),dt(E,"focus",r[54]),dt(E,"blur",r[55]),dt(w,"input",r[59]),dt(w,"keyup",r[36]),dt(w,"focus",r[60]),dt(w,"blur",r[61]),dt(A,"input",r[65]),dt(A,"keyup",r[37]),dt(A,"focus",r[66]),dt(A,"blur",r[67]),dt(H,"input",r[68]),dt(H,"keyup",r[38]),dt(H,"focus",r[69]),dt(H,"blur",r[70]),dt(B,"click",r[71])],ze=!0)},p(e,t){134217728&t[0]&&Xe!==(Xe=e[27]("registerFormStep1.registerTitle")+"")&&gt(x,Xe),134217728&t[0]&&Ze!==(Ze=e[27]("registerFormStep1.registerSubtitle")+"")&&gt(G,Ze),134217728&t[0]&&Ke!==(Ke=e[27]("registerFormStep1.registerSubtitleLogin")+"")&&gt($,Ke),134217728&t[0]&&Ye!==(Ye=e[27]("registerFormStep1.registerEmail")+"")&&gt(j,Ye),131072&t[0]&&p.value!==e[17]&&yt(p,e[17]),e[3]?_?_.p(e,t):((_=Qt(e)).c(),_.m(u,null)):_&&(_.d(1),_=null),33288&t[0]&&Z!==(Z="EmailContainer "+(e[3]&&!e[9]?"InvalidField":"")+(0<=e[15]?.indexOf("email")?"Hidden":""))&&ft(u,"class",Z),8&t[0]&&K!==(K="EmailContainer "+(e[3]?"InvalidField":""))&&ft(u,"part",K),134217728&t[0]&&qe!==(qe=e[27]("registerFormStep1.registerUsername")+"")&&gt(q,qe),2&t[0]&&te!==(te=e[1]?"username":"off")&&ft(f,"autocomplete",te),65536&t[0]&&f.value!==e[16]&&yt(f,e[16]),e[4]?I?I.p(e,t):((I=Xt(e)).c(),I.m(m,null)):I&&(I.d(1),I=null),33808&t[0]&&ie!==(ie="UserContainer "+(e[4]&&!e[10]?"InvalidField":"")+(0<=e[15]?.indexOf("username")?"Hidden":""))&&ft(m,"class",ie),16&t[0]&&ne!==(ne="UserContainer "+(e[4]?"InvalidField":""))&&ft(m,"part",ne),134217728&t[0]&&We!==(We=e[27]("registerFormStep1.registerPassword")+"")&&gt(oe,We),2&t[0]&&ce!==(ce=e[1]?"new-password":"off")&&ft(E,"autocomplete",ce),262144&t[0]&&E.value!==e[18]&&yt(E,e[18]),nt===(nt=it(e))&&L?L.p(e,t):(L.d(1),(L=nt(e))&&(L.c(),L.m(g,pe))),e[5]&&"true"!==e[0]?N?N.p(e,t):((N=Yt(e)).c(),N.m(g,me)):N&&(N.d(1),N=null),e[5]&&"true"===e[0]?O?O.p(e,t):((O=qt(e)).c(),O.m(g,null)):O&&(O.d(1),O=null),34848&t[0]&&de!==(de="PasswordContainer "+(e[5]&&!e[11]?"InvalidField":"")+(0<=e[15]?.indexOf("password")?"Hidden":""))&&ft(g,"class",de),32&t[0]&&fe!==(fe="PasswordContainer "+(e[5]?"InvalidField":""))&&ft(g,"part",fe),32768&t[0]&&ge!==(ge=0<=e[15]?.indexOf("password"))&&(g.hidden=ge),134217728&t[0]&&Je!==(Je=e[27]("registerFormStep1.registerConfirmPassword")+"")&&gt(Ee,Je),524288&t[0]&&w.value!==e[19]&&yt(w,e[19]),ot===(ot=st(e))&&R?R.p(e,t):(R.d(1),(R=ot(e))&&(R.c(),R.m(b,Te))),e[6]?F?F.p(e,t):((F=er(e)).c(),F.m(b,null)):F&&(F.d(1),F=null),36928&t[0]&&Ae!==(Ae="ConfirmPasswordContainer "+(e[6]&&!e[12]?"InvalidField":"")+(0<=e[15]?.indexOf("confirmPassword")?"Hidden":""))&&ft(b,"class",Ae),64&t[0]&&Pe!==(Pe="ConfirmPasswordContainer "+(e[6]?"InvalidField":""))&&ft(b,"part",Pe),134217728&t[0]&&et!==(et=e[27]("registerFormStep1.registerSecurityQuestion")+"")&&gt(He,et),1048576&t[0]&&A.value!==e[20]&&yt(A,e[20]),e[7]?M?M.p(e,t):((M=tr(e)).c(),M.m(S,null)):M&&(M.d(1),M=null),41088&t[0]&&Ne!==(Ne="SecurityQuestionContainer "+(e[7]&&!e[13]?"InvalidField":"")+(0<=e[15]?.indexOf("securityQuestion")?"Hidden":""))&&ft(S,"class",Ne),128&t[0]&&Oe!==(Oe="SecurityQuestionContainer "+(e[7]?"InvalidField":""))&&ft(S,"part",Oe),134217728&t[0]&&tt!==(tt=e[27]("registerFormStep1.registerSecurityAnswer")+"")&&gt(Fe,tt),2097152&t[0]&&H.value!==e[21]&&yt(H,e[21]),e[8]?U?U.p(e,t):((U=rr(e)).c(),U.m(P,null)):U&&(U.d(1),U=null),49408&t[0]&&Ge!==(Ge="SecurityAnswerContainer "+(e[8]&&!e[14]?"InvalidField":"")+(0<=e[15]?.indexOf("securityAnswer")?"Hidden":""))&&ft(P,"class",Ge),256&t[0]&&ke!==(ke="SecurityAnswerContainer "+(e[8]?"InvalidField":""))&&ft(P,"part",ke),134217728&t[0]&&rt!==(rt=e[27]("registerFormStep1.registerNext")+"")&&gt(Ve,rt),67108864&t[0]&&je!==(je=!e[26])&&(B.disabled=je)},i:at,o:at,d(e){e&&ht(i),_&&_.d(),I&&I.d(),r[56](null),L.d(),N&&N.d(),O&&O.d(),r[62](null),R.d(),F&&F.d(),M&&M.d(),U&&U.d(),r[72](null),ze=!1,lt(Qe)}}}function nr(t,e,r){let M;var i=Vt;t.$$.on_destroy.push(W(i,e=>r(27,M=e)));let n,s,o,a,{lang:l=""}=e,{disabledfields:u=""}=e,{defaultoptions:U=""}=e,{simplepasswordvalidation:c="false"}=e,{clientstyling:h=""}=e,{clientstylingurl:p=""}=e,{translationurl:m=""}=e,{savecredentials:x=""}=e,d=!1,f=!1,g=!1,y=!1,E=!1,b=!1,v=!1,w=!1,S=!1,T=!1,A=!1,P=!1,C="",H="",B="",_="",I="",L="",N=!1,O=!1,D=!1,R={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}$/};Object.keys(zt).forEach(e=>{jt(e,zt[e])});const F=()=>{r(26,D=!(d||f||g||y||E||b)),(C.length<=0||H.length<=0||B.length<=0||_.length<=0||I.length<=0||L.length<=0)&&r(26,D=!1)},G=()=>{window.postMessage({type:"ToLogin"},window.location.href)},k=()=>{r(22,N=!0),z()},$=()=>{r(23,O=!0),Q()},V=()=>{r(22,N=!1),z()},j=()=>{r(23,O=!1),Q()},z=()=>{r(24,s.type=N?"text":"password",s)},Q=()=>{r(25,o.type=O?"text":"password",o)},X=e=>{e.preventDefault();e={userEmail:H,userValue:C,userPassword:B,confirmUserPassword:_,securityQuestion:I,securityAnswer:L};window.postMessage({type:"RegisterStepOne",registerStepOneData:e},window.location.href)},Z=e=>{e.data&&"StepOneDataBackup"===e.data.type&&(r(17,H=e.data.userData.email),r(16,C=e.data.userData.username),r(18,B=e.data.userData.password),r(19,_=e.data.userData.password),r(20,I=e.data.userData.securityQuestion),r(21,L=e.data.userData.securityAnswer),F())};return i=()=>(window.addEventListener("message",Z,!1),()=>{window.removeEventListener("message",Z)}),function(){if(K)return K;throw new Error("Function called outside component initialization")}().$$.on_mount.push(i),t.$$set=e=>{"lang"in e&&r(40,l=e.lang),"disabledfields"in e&&r(41,u=e.disabledfields),"defaultoptions"in e&&r(42,U=e.defaultoptions),"simplepasswordvalidation"in e&&r(0,c=e.simplepasswordvalidation),"clientstyling"in e&&r(43,h=e.clientstyling),"clientstylingurl"in e&&r(44,p=e.clientstylingurl),"translationurl"in e&&r(45,m=e.translationurl),"savecredentials"in e&&r(1,x=e.savecredentials)},t.$$.update=()=>{if(512&t.$$.dirty[1]&&l&&(e=l,q.set(e)),1024&t.$$.dirty[1]&&u&&(r(15,n=u.split(",")),0<=n.indexOf("email")&&(r(17,H="dummy@dummy.com"),r(3,d=!1)),0<=n.indexOf("username")&&(r(16,C="dummy username"),r(4,f=!1)),0<=n.indexOf("password")&&(r(18,B="dummy password"),r(5,g=!1)),0<=n.indexOf("confirmPassword")&&(r(19,_="dummy password"),r(6,y=!1)),0<=n.indexOf("securityQuestion")&&(r(20,I="dummy question"),r(7,E=!1)),0<=n.indexOf("securityAnswer")&&(r(21,L="dummy answer"),r(8,b=!1))),1&t.$$.dirty[0]&&c&&"true"==c&&(R.password=/^(?!.* ).{8,20}$/),4&t.$$.dirty[0]|4096&t.$$.dirty[1]&&h&&a){let e=document.createElement("style");e.innerHTML=h,a.appendChild(e)}if(4&t.$$.dirty[0]|8192&t.$$.dirty[1]&&p&&a){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{a.appendChild(t)},1),setTimeout(()=>{},500)})}var e;16384&t.$$.dirty[1]&&m&&fetch(m).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{jt(e,t[e])})}).catch(e=>{console.log(e)})},[c,x,a,d,f,g,y,E,b,v,w,S,T,A,P,n,C,H,B,_,I,L,N,O,s,o,D,M,G,()=>{var e;r(3,(e=H,d=!(R.email.test(e)&&e.length<=100))),F()},()=>{var e;r(4,(e=C,f=!(R.user.test(e)&&e.length<=20))),F()},k,$,V,j,()=>{var e;r(5,(e=B,g=!R.password.test(e))),B!==_&&0<_.length?r(6,y=!0):r(6,y=!1),F()},()=>{r(6,y=!(B===_)),F()},()=>{r(7,E=!(I&&I.length<=120)),F()},()=>{r(8,b=!(L&&L.length<=120)),F()},X,l,u,U,h,p,m,()=>G(),function(){H=this.value,r(17,H)},()=>r(9,v=!0),()=>r(9,v=!1),function(){C=this.value,r(16,C)},()=>r(10,w=!0),()=>r(10,w=!1),function(){B=this.value,r(18,B)},()=>r(11,S=!0),()=>r(11,S=!1),function(e){Y[e?"unshift":"push"](()=>{s=e,r(24,s)})},()=>V(),()=>k(),function(){_=this.value,r(19,_)},()=>r(12,T=!0),()=>r(12,T=!1),function(e){Y[e?"unshift":"push"](()=>{o=e,r(25,o)})},()=>j(),()=>$(),function(){I=this.value,r(20,I)},()=>r(13,A=!0),()=>r(13,A=!1),function(){L=this.value,r(21,L)},()=>r(14,P=!0),()=>r(14,P=!1),e=>X(e),function(e){Y[e?"unshift":"push"](()=>{a=e,r(2,a)})}]}class sr extends F{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:40px;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)}.EmailContainer.Hidden,.UserContainer.Hidden,.PasswordContainer.Hidden,.ConfirmPasswordContainer.Hidden,.SecurityQuestionContainer.Hidden,.SecurityAnswerContainer.Hidden{display:none}.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:55px}.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;padding-top:5px;top:55px;line-height:10px}.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>',R(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},nr,ir,p,{lang:40,disabledfields:41,defaultoptions:42,simplepasswordvalidation:0,clientstyling:43,clientstylingurl:44,translationurl:45,savecredentials:1},null,[-1,-1,-1]),e&&(e.target&&ct(e.target,this,e.anchor),e.props&&(this.$set(e.props),E()))}static get observedAttributes(){return["lang","disabledfields","defaultoptions","simplepasswordvalidation","clientstyling","clientstylingurl","translationurl","savecredentials"]}get lang(){return this.$$.ctx[40]}set lang(e){this.$$set({lang:e}),E()}get disabledfields(){return this.$$.ctx[41]}set disabledfields(e){this.$$set({disabledfields:e}),E()}get defaultoptions(){return this.$$.ctx[42]}set defaultoptions(e){this.$$set({defaultoptions:e}),E()}get simplepasswordvalidation(){return this.$$.ctx[0]}set simplepasswordvalidation(e){this.$$set({simplepasswordvalidation:e}),E()}get clientstyling(){return this.$$.ctx[43]}set clientstyling(e){this.$$set({clientstyling:e}),E()}get clientstylingurl(){return this.$$.ctx[44]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),E()}get translationurl(){return this.$$.ctx[45]}set translationurl(e){this.$$set({translationurl:e}),E()}get savecredentials(){return this.$$.ctx[1]}set savecredentials(e){this.$$set({savecredentials:e}),E()}}return customElements.get("general-player-register-form-step1")||customElements.define("general-player-register-form-step1",sr),sr});
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 at(){}function P(e){return e()}function C(){return Object.create(null)}function lt(e){e.forEach(P)}function H(e){return"function"==typeof e}function p(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function W(e,...t){if(null==e)return at;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function ut(e,t){e.appendChild(t)}function ct(e,t,r){e.insertBefore(t,r||null)}function ht(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 pt(e){return document.createTextNode(e)}function mt(){return pt(" ")}function dt(e,t,r,i){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)}function ft(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function gt(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function yt(e,t){e.value=null==t?"":t}let K;function g(e){K=e}const y=[],Y=[],m=[],d=[],B=Promise.resolve();let _=!1;function I(e){m.push(e)}const L=new Set;let N=0;function E(){const e=K;do{for(;N<y.length;){const e=y[N];N++,g(e),t=r=void 0;var t,r=e.$$;null!==r.fragment&&(r.update(),lt(r.before_update),t=r.dirty,r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,t),r.after_update.forEach(I))}for(g(null),y.length=0,N=0;Y.length;)Y.pop()();for(let e=0;e<m.length;e+=1){const i=m[e];L.has(i)||(L.add(i),i())}}while(m.length=0,y.length);for(;d.length;)d.pop()();_=!1,L.clear(),g(e)}const O=new Set;function R(i,e,t,r,n,s,o,a=[-1]){var l=K;g(i);const u=i.$$={fragment:null,ctx:null,props:s,update:at,not_equal:n,bound:C(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:C(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};o&&o(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(e,t,...r)=>{var r=r.length?r[0]:t;return u.ctx&&n(u.ctx[e],u.ctx[e]=r)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](r),c&&(r=e,-1===(e=i).$$.dirty[0]&&(y.push(e),_||(_=!0,B.then(E)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],u.update(),c=!0,lt(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){s=e.target;const at=Array.from(s.childNodes);u.fragment&&u.fragment.l(at),at.forEach(ht)}else u.fragment&&u.fragment.c();e.intro&&(a=i.$$.fragment)&&a.i&&(O.delete(a),a.i(void 0));{var h=i;o=e.target;t=e.anchor;r=e.customElement;const{fragment:p,on_mount:m,on_destroy:d,after_update:f}=h.$$;p&&p.m(o,t),r||I(()=>{var e=m.map(P).filter(H);d?d.push(...e):lt(e),h.$$.on_mount=[]}),f.forEach(I)}E()}g(l)}let F;"function"==typeof HTMLElement&&(F=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(P).filter(H);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){lt(this.$$.on_disconnect)}$destroy(){{var e;const t=this.$$;null!==t.fragment&&(lt(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}this.$destroy=at}$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 r=[];function M(i,n=at){let s;const o=new Set;function a(e){if(p(i,e)&&(i=e,s)){const e=!r.length;for(const e of o)e[1](),r.push(e,i);if(e){for(let e=0;e<r.length;e+=2)r[e][0](r[e+1]);r.length=0}}}return{set:a,update:function(e){a(e(i))},subscribe:function(e,t=at){const r=[e,t];return o.add(r),1===o.size&&(s=n(a)||at),e(i),()=>{o.delete(r),0===o.size&&(s(),s=null)}}}}function i(e,a,t){const l=!Array.isArray(e),u=l?[e]:e,c=a.length<2;return{subscribe:M(t,t=>{let r=!1;const i=[];let n=0,s=at;const o=()=>{var e;n||(s(),e=a(l?i[0]:i,t),c?t(e):s=H(e)?e:at)},e=u.map((e,t)=>W(e,e=>{i[t]=e,n&=~(1<<t),r&&o()},()=>{n|=1<<t}));return r=!0,o(),function(){lt(e),s()}}).subscribe}}function U(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===x));var t}var x="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function D(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a(Array.isArray(e)?[]:{},e,t):e}function G(e,t,r){return e.concat(t).map(function(e){return D(e,r)})}function k(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function $(e,t){try{return t in e}catch(e){return!1}}function V(i,n,s){var o={};return s.isMergeableObject(i)&&k(i).forEach(function(e){o[e]=D(i[e],s)}),k(n).forEach(function(t){var e,r;(!$(e=i,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&($(i,t)&&s.isMergeableObject(n[t])?o[t]=function(e){if(!e.customMerge)return a;e=e.customMerge(t);return"function"==typeof e?e:a}(s)(i[t],n[t],s):o[t]=D(n[t],s))}),o}function a(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||G,r.isMergeableObject=r.isMergeableObject||U,r.cloneUnlessOtherwiseSpecified=D;var i=Array.isArray(t);return i===Array.isArray(e)?i?r.arrayMerge(e,t,r):V(e,t,r):D(t,r)}a.all=function(e,r){if(Array.isArray(e))return e.reduce(function(e,t){return a(e,t,r)},{});throw new Error("first argument should be an array")};var j=a,z=function(e,t){return(z=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 Q(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}z(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var f,b,v,w=function(){return(w=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function X(e,t,r){if(r||2===arguments.length)for(var i,n=0,s=t.length;n<s;n++)!i&&n in t||((i=i||Array.prototype.slice.call(t,0,n))[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function Z(e){return e.type===b.literal}function J(e){return e.type===b.number}function ee(e){return e.type===b.date}function te(e){return e.type===b.time}function re(e){return e.type===b.select}function ie(e){return e.type===b.plural}function ne(e){return e.type===b.tag}function se(e){return e&&"object"==typeof e&&e.type===v.number}function oe(e){return e&&"object"==typeof e&&e.type===v.dateTime}(n=f=f||{})[n.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",n[n.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",n[n.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",n[n.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",n[n.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",n[n.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",n[n.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",n[n.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",n[n.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",n[n.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",n[n.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",n[n.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",n[n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",n[n.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",n[n.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",n[n.INVALID_TAG=23]="INVALID_TAG",n[n.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",n[n.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",n[n.UNCLOSED_TAG=27]="UNCLOSED_TAG",(n=b=b||{})[n.literal=0]="literal",n[n.argument=1]="argument",n[n.number=2]="number",n[n.date=3]="date",n[n.time=4]="time",n[n.select=5]="select",n[n.plural=6]="plural",n[n.pound=7]="pound",n[n.tag=8]="tag",(n=v=v||{})[n.number=0]="number",n[n.dateTime=1]="dateTime";var n=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ae=/(?:[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 le=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,ue=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ce=/^(@+)?(\+|#+)?[rs]?$/g,he=/(\*)(0+)|(#+)(0+)|(0+)/g,pe=/^(0+)$/;function me(e){var i={};return"r"===e[e.length-1]?i.roundingPriority="morePrecision":"s"===e[e.length-1]&&(i.roundingPriority="lessPrecision"),e.replace(ce,function(e,t,r){return"string"!=typeof r?(i.minimumSignificantDigits=t.length,i.maximumSignificantDigits=t.length):"+"===r?i.minimumSignificantDigits=t.length:"#"===t[0]?i.maximumSignificantDigits=t.length:(i.minimumSignificantDigits=t.length,i.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),i}function de(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 fe(e){return de(e)||{}}function ge(e){for(var o={},t=0,r=e;t<r.length;t++){var i,n=r[t];switch(n.stem){case"percent":case"%":o.style="percent";continue;case"%x100":o.style="percent",o.scale=100;continue;case"currency":o.style="currency",o.currency=n.options[0];continue;case"group-off":case",_":o.useGrouping=!1;continue;case"precision-integer":case".":o.maximumFractionDigits=0;continue;case"measure-unit":case"unit":o.style="unit",o.unit=n.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":o.notation="compact",o.compactDisplay="short";continue;case"compact-long":case"KK":o.notation="compact",o.compactDisplay="long";continue;case"scientific":o=w(w(w({},o),{notation:"scientific"}),n.options.reduce(function(e,t){return w(w({},e),fe(t))},{}));continue;case"engineering":o=w(w(w({},o),{notation:"engineering"}),n.options.reduce(function(e,t){return w(w({},e),fe(t))},{}));continue;case"notation-simple":o.notation="standard";continue;case"unit-width-narrow":o.currencyDisplay="narrowSymbol",o.unitDisplay="narrow";continue;case"unit-width-short":o.currencyDisplay="code",o.unitDisplay="short";continue;case"unit-width-full-name":o.currencyDisplay="name",o.unitDisplay="long";continue;case"unit-width-iso-code":o.currencyDisplay="symbol";continue;case"scale":o.scale=parseFloat(n.options[0]);continue;case"integer-width":if(1<n.options.length)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(he,function(e,t,r,i,n,s){if(t)o.minimumIntegerDigits=r.length;else{if(i&&n)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""});continue}if(pe.test(n.stem))o.minimumIntegerDigits=n.stem.length;else if(ue.test(n.stem)){if(1<n.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(ue,function(e,t,r,i,n,s){return"*"===r?o.minimumFractionDigits=t.length:i&&"#"===i[0]?o.maximumFractionDigits=i.length:n&&s?(o.minimumFractionDigits=n.length,o.maximumFractionDigits=n.length+s.length):(o.minimumFractionDigits=t.length,o.maximumFractionDigits=t.length),""});var s=n.options[0];"w"===s?o=w(w({},o),{trailingZeroDisplay:"stripIfInteger"}):s&&(o=w(w({},o),me(s)))}else ce.test(n.stem)?o=w(w({},o),me(n.stem)):((s=de(n.stem))&&(o=w(w({},o),s)),(i=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)),!pe.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(n.stem))&&(o=w(w({},o),i)))}return o}var ye={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var Ee=new RegExp("^".concat(n.source,"*")),be=new RegExp("".concat(n.source,"*$"));function S(e,t){return{start:e,end:t}}var n=!!String.prototype.startsWith,ve=!!String.fromCodePoint,we=!!Object.fromEntries,Se=!!String.prototype.codePointAt,Te=!!String.prototype.trimStart,Ae=!!String.prototype.trimEnd,Pe=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ce=!0;try{Ce="a"===(null==(Qe=Fe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Qe[0])}catch(at){Ce=!1}var He,Be,_e=n?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Ie=ve?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,i="",n=e.length,s=0;s<n;){if(1114111<(r=e[s++]))throw RangeError(r+" is not a valid code point");i+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return i},Le=we?Object.fromEntries:function(e){for(var t={},r=0,i=e;r<i.length;r++){var n=i[r],s=n[0],n=n[1];t[s]=n}return t},Ne=Se?function(e,t){return e.codePointAt(t)}:function(e,t){var r,i=e.length;if(!(t<0||i<=t))return(r=e.charCodeAt(t))<55296||56319<r||t+1===i||(i=e.charCodeAt(t+1))<56320||57343<i?r:i-56320+(r-55296<<10)+65536},Oe=Te?function(e){return e.trimStart()}:function(e){return e.replace(Ee,"")},Re=Ae?function(e){return e.trimEnd()}:function(e){return e.replace(be,"")};function Fe(e,t){return new RegExp(e,t)}Be=Ce?(He=Fe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return He.lastIndex=t,null!=(t=He.exec(e)[1])?t:""}):function(e,t){for(var r,i=[];;){var n=Ne(e,t);if(void 0===n||xe(n)||(33<=(r=n)&&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;i.push(n),t+=65536<=n?2:1}return Ie.apply(void 0,i)};s.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},s.prototype.parseMessage=function(e,t,r){for(var i=[];!this.isEOF();){var n,s=this.char();if(123===s){if((n=this.parseArgument(e,r)).err)return n;i.push(n.val)}else{if(125===s&&0<e)break;if(35!==s||"plural"!==t&&"selectordinal"!==t){if(60===s&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(f.UNMATCHED_CLOSING_TAG,S(this.clonePosition(),this.clonePosition()))}if(60===s&&!this.ignoreTag&&Ue(this.peek()||0)){if((n=this.parseTag(e,t)).err)return n;i.push(n.val)}else{if((n=this.parseLiteral(e,t)).err)return n;i.push(n.val)}}else{s=this.clonePosition();this.bump(),i.push({type:b.pound,location:S(s,this.clonePosition())})}}}return{val:i,err:null}},s.prototype.parseTag=function(e,t){var r=this.clonePosition(),i=(this.bump(),this.parseTagName());if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:b.literal,value:"<".concat(i,"/>"),location:S(r,this.clonePosition())},err:null};if(this.bumpIf(">")){e=this.parseMessage(e+1,t,!0);if(e.err)return e;t=e.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Ue(this.char()))return this.error(f.INVALID_TAG,S(e,this.clonePosition()));var n=this.clonePosition();return i!==this.parseTagName()?this.error(f.UNMATCHED_CLOSING_TAG,S(n,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:b.tag,value:i,children:t,location:S(r,this.clonePosition())},err:null}:this.error(f.INVALID_TAG,S(e,this.clonePosition())))}return this.error(f.UNCLOSED_TAG,S(r,this.clonePosition()))}return this.error(f.INVALID_TAG,S(r,this.clonePosition()))},s.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())},s.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),i="";;){var n=this.tryParseQuote(t);if(n)i+=n;else{n=this.tryParseUnquoted(e,t);if(n)i+=n;else{n=this.tryParseLeftAngleBracket();if(!n)break;i+=n}}}r=S(r,this.clonePosition());return{val:{type:b.literal,value:i,location:r},err:null}},s.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Ue(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},s.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 Ie.apply(void 0,t)},s.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(),Ie(r))},s.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,S(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(f.EMPTY_ARGUMENT,S(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(f.MALFORMED_ARGUMENT,S(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,S(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:b.argument,value:i,location:S(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,S(r,this.clonePosition())):this.parseArgumentOptions(e,t,i,r);default:return this.error(f.MALFORMED_ARGUMENT,S(r,this.clonePosition()))}},s.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Be(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:S(e,this.clonePosition())}},s.prototype.parseArgumentOptions=function(e,t,r,i){var n,s=this.clonePosition(),o=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(o){case"":return this.error(f.EXPECT_ARGUMENT_TYPE,S(s,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((d=this.parseSimpleArgStyleIfPossible()).err)return d;if(0===(m=Re(d.val)).length)return this.error(f.EXPECT_ARGUMENT_STYLE,S(this.clonePosition(),this.clonePosition()));l={style:m,styleLocation:S(u,this.clonePosition())}}if((u=this.tryParseArgumentClose(i)).err)return u;var c=S(i,this.clonePosition());if(l&&_e(null==l?void 0:l.style,"::",0)){var h=Oe(l.style.slice(2));if("number"===o)return(d=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?d:{val:{type:b.number,value:r,location:c,style:d.val},err:null};if(0===h.length)return this.error(f.EXPECT_DATE_TIME_SKELETON,c);var p=h,m=(this.locale&&(p=function(e,t){for(var r="",i=0;i<e.length;i++){var n=e.charAt(i);if("j"===n){for(var s=0;i+1<e.length&&e.charAt(i+1)===n;)s++,i++;var o=1+(1&s),a=s<2?1:3+(s>>1),l=function(e){var t,r=e.hourCycle;if(r=void 0===r&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(r=e.language)&&(t=e.maximize().region),(ye[t||""]||ye[r||""]||ye["".concat(r,"-001")]||ye["001"])[0]}(t);for("H"!=l&&"k"!=l||(a=0);0<a--;)r+="a";for(;0<o--;)r=l+r}else r+="J"===n?"H":n}return r}(h,this.locale)),{type:v.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(n={},p.replace(ae,function(e){var t=e.length;switch(e[0]){case"G":n.era=4===t?"long":5===t?"narrow":"short";break;case"y":n.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":n.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":n.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":n.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][t-4];break;case"a":n.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":n.hourCycle="h12",n.hour=["numeric","2-digit"][t-1];break;case"H":n.hourCycle="h23",n.hour=["numeric","2-digit"][t-1];break;case"K":n.hourCycle="h11",n.hour=["numeric","2-digit"][t-1];break;case"k":n.hourCycle="h24",n.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":n.minute=["numeric","2-digit"][t-1];break;case"s":n.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":n.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""}),n):{}});return{val:{type:"date"===o?b.date:b.time,value:r,location:c,style:m},err:null}}return{val:{type:"number"===o?b.number:"date"===o?b.date:b.time,value:r,location:c,style:null!=(h=null==l?void 0:l.style)?h:null},err:null};case"plural":case"selectordinal":case"select":p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(f.EXPECT_SELECT_ARGUMENT_OPTIONS,S(p,w({},p)));this.bumpSpace();var d,m=this.parseIdentifierIfPossible(),c=0;if("select"!==o&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,S(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(d=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,f.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return d;this.bumpSpace(),m=this.parseIdentifierIfPossible(),c=d.val}l=this.tryParsePluralOrSelectOptions(e,o,t,m);if(l.err)return l;if((u=this.tryParseArgumentClose(i)).err)return u;h=S(i,this.clonePosition());return"select"===o?{val:{type:b.select,value:r,options:Le(l.val),location:h},err:null}:{val:{type:b.plural,value:r,options:Le(l.val),offset:c,pluralType:"plural"===o?"cardinal":"ordinal",location:h},err:null};default:return this.error(f.INVALID_ARGUMENT_TYPE,S(s,a))}},s.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,S(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},s.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(f.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,S(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}},s.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,i=e.split(le).filter(function(e){return 0<e.length});r<i.length;r++){var n=i[r].split("/");if(0===n.length)throw new Error("Invalid number skeleton");for(var s=n[0],n=n.slice(1),o=0,a=n;o<a.length;o++)if(0===a[o].length)throw new Error("Invalid number skeleton");t.push({stem:s,options:n})}return t}(e)}catch(e){return this.error(f.INVALID_NUMBER_SKELETON,t)}return{val:{type:v.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?ge(r):{}},err:null}},s.prototype.tryParsePluralOrSelectOptions=function(e,t,r,i){for(var n=!1,s=[],o=new Set,a=i.value,l=i.location;;){if(0===a.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_SELECTOR,f.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=S(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(o.has(a))return this.error("select"===t?f.DUPLICATE_SELECT_ARGUMENT_SELECTOR:f.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(n=!0),this.bumpSpace();c=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:f.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,S(this.clonePosition(),this.clonePosition()));u=this.parseMessage(e+1,t,r);if(u.err)return u;var h=this.tryParseArgumentClose(c);if(h.err)return h;s.push([a,{value:u.val,location:S(c,this.clonePosition())}]),o.add(a),this.bumpSpace(),a=(h=this.parseIdentifierIfPossible()).value,l=h.location}return 0===s.length?this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR:f.EXPECT_PLURAL_ARGUMENT_SELECTOR,S(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(f.MISSING_OTHER_CLAUSE,S(this.clonePosition(),this.clonePosition())):{val:s,err:null}},s.prototype.tryParseDecimalInteger=function(e,t){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var n=!1,s=0;!this.isEOF();){var o=this.char();if(!(48<=o&&o<=57))break;n=!0,s=10*s+(o-48),this.bump()}i=S(i,this.clonePosition());return n?Pe(s*=r)?{val:s,err:null}:this.error(t,i):this.error(e,i)},s.prototype.offset=function(){return this.position.offset},s.prototype.isEOF=function(){return this.offset()===this.message.length},s.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},s.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Ne(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},s.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},s.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))},s.prototype.bumpIf=function(e){if(_e(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},s.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},s.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},s.prototype.bumpSpace=function(){for(;!this.isEOF()&&xe(this.char());)this.bump()},s.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),t=this.message.charCodeAt(t+(65536<=e?2:1));return null!=t?t:null};var Me=s;function s(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function Ue(e){return 97<=e&&e<=122||65<=e&&e<=90}function xe(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function De(e,t){t=w({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r,e=new Me(e,t).parse();if(e.err)throw(r=SyntaxError(f[e.err.kind])).location=e.err.location,r.originalMessage=e.err.message,r;return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,re(e)||ie(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else J(e)&&se(e.style)||(ee(e)||te(e))&&oe(e.style)?delete e.style.location:ne(e)&&r(e.children)})}(e.val),e.val}function Ge(e,t){var r=t&&t.cache?t.cache:Xe,i=t&&t.serializer?t.serializer:je;return(t&&t.strategy?t.strategy:function(e,t){return Ve(e,this,1===e.length?ke:$e,t.cache.create(),t.serializer)})(e,{cache:r,serializer:i})}function ke(e,t,r,i){var r=null==i||"number"==typeof i||"boolean"==typeof i?i:r(i),n=t.get(r);return void 0===n&&(n=e.call(this,i),t.set(r,n)),n}function $e(e,t,r){var i=Array.prototype.slice.call(arguments,3),r=r(i),n=t.get(r);return void 0===n&&(n=e.apply(this,i),t.set(r,n)),n}function Ve(e,t,r,i,n){return r.bind(t,e,i,n)}var je=function(){return JSON.stringify(arguments)};function ze(){this.cache=Object.create(null)}ze.prototype.get=function(e){return this.cache[e]},ze.prototype.set=function(e,t){this.cache[e]=t};var T,Qe,Xe={create:function(){return new ze}},Ze={variadic:function(e,t){return Ve(e,this,$e,t.cache.create(),t.serializer)},monadic:function(e,t){return Ve(e,this,ke,t.cache.create(),t.serializer)}};(Qe=T=T||{}).MISSING_VALUE="MISSING_VALUE",Qe.INVALID_VALUE="INVALID_VALUE",Qe.MISSING_INTL_API="MISSING_INTL_API";Q(ot,We=Error),ot.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var A,Ke,Ye,qe,We,Je=ot,et=(Q(st,qe=Je),st),tt=(Q(nt,Ye=Je),nt),rt=(Q(it,Ke=Je),it);function it(e,t){return Ke.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),T.MISSING_VALUE,t)||this}function nt(e,t,r){return Ye.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),T.INVALID_VALUE,r)||this}function st(e,t,r,i){return qe.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(r).join('", "'),'"'),T.INVALID_VALUE,i)||this}function ot(e,t,r){e=We.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function Et(e,t,r,i,n,s,o){if(1===e.length&&Z(e[0]))return[{type:A.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];if(Z(c))a.push({type:A.literal,value:c.value});else if(c.type===b.pound)"number"==typeof s&&a.push({type:A.literal,value:r.getNumberFormat(t).format(s)});else{var h=c.value;if(!(n&&h in n))throw new rt(h,o);h=n[h];if(c.type===b.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?A.literal:A.object,value:h});else if(ee(c)){var p="string"==typeof c.style?i.date[c.style]:oe(c.style)?c.style.parsedOptions:void 0;a.push({type:A.literal,value:r.getDateTimeFormat(t,p).format(h)})}else if(te(c))p="string"==typeof c.style?i.time[c.style]:oe(c.style)?c.style.parsedOptions:i.time.medium,a.push({type:A.literal,value:r.getDateTimeFormat(t,p).format(h)});else if(J(c))(p="string"==typeof c.style?i.number[c.style]:se(c.style)?c.style.parsedOptions:void 0)&&p.scale&&(h*=p.scale||1),a.push({type:A.literal,value:r.getNumberFormat(t,p).format(h)});else{if(ne(c)){var m=c.children,d=c.value,f=n[d];if("function"!=typeof f)throw new tt(d,"function",o);d=f(Et(m,t,r,i,n,s).map(function(e){return e.value}));Array.isArray(d)||(d=[d]),a.push.apply(a,d.map(function(e){return{type:"string"==typeof e?A.literal:A.object,value:e}}))}if(re(c)){if(!(g=c.options[h]||c.options.other))throw new et(c.value,h,Object.keys(c.options),o);a.push.apply(a,Et(g.value,t,r,i,n))}else if(ie(c)){if(!(g=c.options["=".concat(h)])){if(!Intl.PluralRules)throw new Je('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',T.MISSING_INTL_API,o);var f=r.getPluralRules(t,{type:c.pluralType}).select(h-(c.offset||0)),g=c.options[f]||c.options.other}if(!g)throw new et(c.value,h,Object.keys(c.options),o);a.push.apply(a,Et(g.value,t,r,i,n,h-(c.offset||0)))}}}}return(e=a).length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===A.literal&&t.type===A.literal?r.value+=t.value:e.push(t),e},[])}function bt(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(n=A=A||{})[n.literal=0]="literal",n[n.object=1]="object",Object.defineProperty(l,"defaultLocale",{get:function(){return l.memoizedDefaultLocale||(l.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),l.memoizedDefaultLocale},enumerable:!1,configurable:!0}),l.memoizedDefaultLocale=null,l.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},l.__parse=De,l.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"}}};var vt=l;function l(e,t,r,i){var n,s,o=this;if(void 0===t&&(t=l.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=o.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===A.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(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.resolvedOptions=function(){return{locale:o.resolvedLocale.toString()}},this.getAst=function(){return o.ast},this.locales=t,this.resolvedLocale=l.resolveLocale(t),"string"==typeof e){if(this.message=e,!l.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=l.__parse(e,{ignoreTag:null==i?void 0:i.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(n=l.formats,(s=r)?Object.keys(n).reduce(function(e,t){var r,i;return e[t]=(r=n[t],(i=s[t])?w(w(w({},r||{}),i||{}),Object.keys(r).reduce(function(e,t){return e[t]=w(w({},r[t]),i[t]||{}),e},{})):r),e},w({},n)):n),this.formatters=i&&i.formatters||{getNumberFormat:Ge(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,X([void 0],t,!1)))},{cache:bt((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Ze.variadic}),getDateTimeFormat:Ge(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,X([void 0],t,!1)))},{cache:bt(t.dateTime),strategy:Ze.variadic}),getPluralRules:Ge(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,X([void 0],t,!1)))},{cache:bt(t.pluralRules),strategy:Ze.variadic})}}const o={},wt=(e,t,r)=>r&&(t in o||(o[t]={}),e in o[t]||(o[t][e]=r),r),St=(t,r)=>{if(null!=r){if(r in o&&t in o[r])return o[r][t];var i=Mt(r);for(let e=0;e<i.length;e++){var n=function(e,r){if(!Pt(e))return null;e=function(e){return Tt[e]||null}(e);{var i=r;if(null==i)return;if(i in e)return e[i];const n=i.split(".");let t=e;for(let e=0;e<n.length;e++)if("object"==typeof t){if(0<e){const i=n.slice(e,n.length).join(".");if(i in t){t=t[i];break}}t=t[n[e]]}else t=void 0;return t}}(i[e],t);if(n)return wt(t,r,n)}}};let Tt;const At=M({});function Pt(e){return e in Tt}function Ct(t,...r){delete o[t],At.update(e=>(e[t]=j.all([e[t]||{},...r]),e))}i([At],([e])=>Object.keys(e)),At.subscribe(e=>Tt=e);const Ht={};function Bt(e){return Ht[e]}function _t(e){return null!=e&&Mt(e).some(e=>{return null==(e=Bt(e))?void 0:e.size})}const It={};function Lt(e){if(!_t(e))return e in It?It[e]:Promise.resolve();const t=Mt(e).map(e=>{var t=Bt(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return It[e]=Promise.all(t.map(([e,t])=>{{var i=e;e=t;const r=Promise.all(e.map(e=>{var t=i,r=e;return Ht[t].delete(r),0===Ht[t].size&&delete Ht[t],e().then(e=>e.default||e)}));return r.then(e=>Ct(i,...e))}})).then(()=>{if(_t(e))return Lt(e);delete It[e]}),It[e]}function u(e,t){var r={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}const c={fallbackLocale: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,handleMissingMessage:void 0,ignoreTag:!0};const Nt=M(!1);let Ot;const Rt=M(null);function Ft(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Mt(e,t=c.fallbackLocale){e=Ft(e);return t?[...new Set([...e,...Ft(t)])]:e}function h(){return null!=Ot?Ot:void 0}Rt.subscribe(e=>{Ot=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const q=Object.assign(Object.assign({},Rt),{set:t=>{if(t&&function(e){if(null!=e){var t=Mt(e);for(let e=0;e<t.length;e++){var r=t[e];if(Pt(r))return r}}}(t)&&_t(t)){var r=c["loadingDelay"];let e;return"undefined"!=typeof window&&null!=h()&&r?e=window.setTimeout(()=>Nt.set(!0),r):Nt.set(!0),Lt(t).then(()=>{Rt.set(t)}).finally(()=>{clearTimeout(e),Nt.set(!1)})}return Rt.set(t)}}),Ut=r=>{const i=Object.create(null);return e=>{var t=JSON.stringify(e);return t in i?i[t]:i[t]=r(e)}},xt=(e,t)=>{var r=c["formats"];if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Dt=Ut(e=>{var{locale:t,format:r}=e,e=u(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=xt("number",r)),new Intl.NumberFormat(t,e)}),Gt=Ut(e=>{var{locale:t,format:r}=e,e=u(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=xt("date",r):0===Object.keys(e).length&&(e=xt("date","short")),new Intl.DateTimeFormat(t,e)}),kt=Ut(e=>{var{locale:t,format:r}=e,e=u(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=xt("time",r):0===Object.keys(e).length&&(e=xt("time","short")),new Intl.DateTimeFormat(t,e)}),$t=Ut((e,t=h())=>new vt(e,t,c.formats,{ignoreTag:c.ignoreTag})),Vt=i([q,At],()=>(e,t={})=>{var r,i;let n=t;"object"==typeof e&&(e=(n=e).id);var{values:s,locale:o=h(),default:a}=n;if(null==o)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=St(e,o);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(i=null!=(r=null==(r=(i=c).handleMissingMessage)?void 0:r.call(i,{locale:o,id:e,defaultValue:a}))?r:a)?i:e;if(!s)return l;let u=l;try{u=$t(l,o).format(s)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u});function jt(e,t){Ct(e,t)}i([q],()=>(e,t)=>((e={})=>{var{locale:t=h()}=e,e=u(e,["locale"]);return kt(Object.assign({locale:t},e))})(t).format(e)),i([q],()=>(e,t)=>((e={})=>{var{locale:t=h()}=e,e=u(e,["locale"]);return Gt(Object.assign({locale:t},e))})(t).format(e)),i([q],()=>(e,t)=>((e={})=>{var{locale:t=h()}=e,e=u(e,["locale"]);return Dt(Object.assign({locale:t},e))})(t).format(e)),i([q,At],()=>(e,t=h())=>St(e,t));const zt={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.",registerSimplePasswordError:"Password must be 8-20 characters long.",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"}},"zh-hk":{registerFormStep1:{registerTitle:"創建您的帳戶",registerSubtitle:"已經有一個帳戶?",registerSubtitleLogin:"登錄",registerEmail:"電子郵件",registerEmailError:"電子郵件應包含“@”和 2-3 個字母長的域。",registerUsername:"用戶名",registerUsernameError:"名稱的長度必須至少為 2 個字符且不包含特殊字符。",registerPassword:"密碼",registerPasswordError:"密碼長度必須為 8-20 個字符,並且至少包含 1 個大寫字母、1 個數字和 1 個特殊字符。",registerSimplePasswordError:"密码长度必须为 8-20 个字符。",registerConfirmPassword:"確認密碼",registerConfirmPasswordError:"它與密碼不匹配。",registerSecurityQuestion:"安全問題",registerSecurityQuestionError:"安全問題的長度必須至少為 1 個字符,最多 120 個字符。",registerSecurityAnswer:"安全答案",registerSecurityAnswerError:"安全答案的長度必須至少為 1 個字符,最多為 120 個字符。",registerNext:"下一個"}},fr:{registerFormStep1:{registerTitle:"Créez votre compte",registerSubtitle:"Vous avez déjà un compte?",registerSubtitleLogin:"Connexion ",registerEmail:"Email",registerEmailError:"L'adresse mail doit comporter un '@' et un nom de domaine de 2 à 3 lettres.",registerUsername:"Nom d'utilisateur ",registerUsernameError:"Le nom doit être composé d'au moins 2 caractères et ne doitpas contenir de caractères spéciaux.",registerPassword:"Mot de passe",registerPasswordError:"Le mot de passe doit comporter de 8 à 20 charactères et contenir au moins une lettre majuscule, un chiffre et un caractère spécial.",registerSimplePasswordError:"Le mot de passe doit comporter entre 8 et 20 caractères.",registerConfirmPassword:"Confirmer le mot de passe",registerConfirmPasswordError:"ça ne correspond pas au mot de passe.",registerSecurityQuestion:"Questions de sécurité",registerSecurityQuestionError:"La question de sécurité doit comporter au moins un caractère et au maximum 120 caractères.",registerSecurityAnswer:"Réponse de sécurité",registerSecurityAnswerError:"La réponse de sécurité doit comporter au moins un caractère et au maximum 120 caractères.",registerNext:"Suivant"}},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.",registerSimplePasswordError:"Şifre 8-20 karakter uzunluğunda olmalıdır.",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.",registerSimplePasswordError:"Parola trebuie să aibă 8-20 de caractere.",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"}},es:{registerFormStep1:{registerTitle:"Crea tu cuenta",registerSubtitle:"Ya tiene cuenta?",registerSubtitleLogin:"Iniciar sesión",registerEmail:"Email",registerEmailError:"Email debe contener '@' y un dominio de 2 a 3 letras.",registerUsername:"Usuario",registerUsernameError:"El nombre de Usuario debe tener mínimo 4 y máximo 20 caracteres y no contener caracteres especiales.",registerPassword:"Contraseña",registerPasswordError:"La contraseña debe tener de 8 a 20 caracteres y contener al menos 1 letra mayúscula, 1 número y 1 carácter especial.",registerSimplePasswordError:"La contraseña debe tener entre 8 y 20 caracteres.",registerConfirmPassword:"Confirmar Contraseña",registerConfirmPasswordError:"La contraseña no coincide.",registerSecurityQuestion:"Pregunta de seguridad",registerSecurityQuestionError:"La Pregunta de seguridad debe tener un mínimo de 1 carácter y un máximo de 120 caracteres",registerSecurityAnswer:"Respuesta de seguridad",registerSecurityAnswerError:"La Respuesta de seguridad debe tener un mínimo de 1 carácter y un máximo de 120 caracteres",registerNext:"Siguiente"}},pt:{registerFormStep1:{registerTitle:"Crie a sua conta",registerSubtitle:"Já tem uma conta?",registerSubtitleLogin:"Entrar",registerEmail:"E-mail",registerEmailError:"O e-mail deve conter '@' e um domínio de 2 a 3 letras.",registerUsername:"Nome do usuário",registerUsernameError:"O nome deve ter pelo menos 2 caracteres e não conter caracteres especiais.",registerPassword:"Senha",registerPasswordError:"A senha deve ter de 8 a 20 caracteres e conter pelo menos 1 letra maiúscula, 1 número e 1 caractere especial.",registerSimplePasswordError:"A senha deve ter de 8 a 20 caracteres.",registerConfirmPassword:"Confirme a sua senha",registerConfirmPasswordError:"Não corresponde à senha.",registerSecurityQuestion:"Pergunta de segurança",registerSecurityQuestionError:"A pergunta de segurança deve ter no mínimo 1 caractere e no máximo 120 caracteres.",registerSecurityAnswer:"Resposta de segurança",registerSecurityAnswerError:"A resposta de segurança deve ter pelo menos 1 caractere e no máximo 120 caracteres.",registerNext:"Próximo"}}};function Qt(e){let r,i,n=e[27]("registerFormStep1.registerEmailError")+"";return{c(){r=t("p"),i=pt(n),ft(r,"class","InvalidInput"),ft(r,"part","InvalidInput")},m(e,t){ct(e,r,t),ut(r,i)},p(e,t){134217728&t[0]&&n!==(n=e[27]("registerFormStep1.registerEmailError")+"")&&gt(i,n)},d(e){e&&ht(r)}}}function Xt(e){let r,i,n=e[27]("registerFormStep1.registerUsernameError")+"";return{c(){r=t("p"),i=pt(n),ft(r,"class","InvalidInput"),ft(r,"part","InvalidInput")},m(e,t){ct(e,r,t),ut(r,i)},p(e,t){134217728&t[0]&&n!==(n=e[27]("registerFormStep1.registerUsernameError")+"")&&gt(i,n)},d(e){e&&ht(r)}}}function Zt(r){let i,n,s,o,a,l,u,c,h;return{c(){i=e("svg"),n=e("defs"),s=e("style"),o=pt(".a{fill:var(--emfe-w-color-contrast, #07072A);}"),a=e("g"),l=e("path"),u=e("circle"),ft(l,"class","a"),ft(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"),ft(l,"transform","translate(0)"),ft(u,"class","a"),ft(u,"cx","2.779"),ft(u,"cy","2.779"),ft(u,"r","2.779"),ft(u,"transform","translate(20.827 30.303)"),ft(a,"transform","translate(-14.185 -27.832)"),ft(i,"class","TogglePasswordVisibility"),ft(i,"part","TogglePasswordVisibility"),ft(i,"xmlns","http://www.w3.org/2000/svg"),ft(i,"width","18.843"),ft(i,"height","10.5"),ft(i,"viewBox","0 0 18.843 10.5")},m(e,t){ct(e,i,t),ut(i,n),ut(n,s),ut(s,o),ut(i,a),ut(a,l),ut(a,u),c||(h=dt(i,"click",r[58]),c=!0)},p:at,d(e){e&&ht(i),c=!1,h()}}}function Kt(r){let i,n,s,o,a,l,u,c,h,p,m,d,f,g,y;return{c(){i=e("svg"),n=e("defs"),s=e("style"),o=pt(".a{fill:var(--emfe-w-color-contrast, #07072A);}"),a=e("g"),l=e("circle"),u=e("g"),c=e("path"),h=e("path"),p=e("g"),m=e("path"),d=e("path"),f=e("rect"),ft(l,"class","a"),ft(l,"cx","0.05"),ft(l,"cy","0.05"),ft(l,"r","0.05"),ft(l,"transform","translate(121.017 31.148)"),ft(c,"class","a"),ft(c,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),ft(c,"transform","translate(-142.164 -39.123)"),ft(h,"class","a"),ft(h,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),ft(h,"transform","translate(-136.413 -42.068)"),ft(u,"transform","translate(117.499 27.37)"),ft(m,"class","a"),ft(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"),ft(m,"transform","translate(-110.856 -33.157)"),ft(d,"class","a"),ft(d,"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"),ft(d,"transform","translate(-130.743 -29.617)"),ft(p,"transform","translate(110.856 24.899)"),ft(f,"class","a"),ft(f,"width","0.972"),ft(f,"height","15.861"),ft(f,"rx","0.486"),ft(f,"transform","translate(114.827 23.858) rotate(-39.315)"),ft(a,"transform","translate(-110.856 -23.242)"),ft(i,"class","TogglePasswordVisibility"),ft(i,"part","TogglePasswordVisibility"),ft(i,"xmlns","http://www.w3.org/2000/svg"),ft(i,"width","18.844"),ft(i,"height","12.887"),ft(i,"viewBox","0 0 18.844 12.887")},m(e,t){ct(e,i,t),ut(i,n),ut(n,s),ut(s,o),ut(i,a),ut(a,l),ut(a,u),ut(u,c),ut(u,h),ut(a,p),ut(p,m),ut(p,d),ut(a,f),g||(y=dt(i,"click",r[57]),g=!0)},p:at,d(e){e&&ht(i),g=!1,y()}}}function Yt(e){let r,i,n=e[27]("registerFormStep1.registerPasswordError")+"";return{c(){r=t("p"),i=pt(n),ft(r,"class","InvalidInput"),ft(r,"part","InvalidInput")},m(e,t){ct(e,r,t),ut(r,i)},p(e,t){134217728&t[0]&&n!==(n=e[27]("registerFormStep1.registerPasswordError")+"")&&gt(i,n)},d(e){e&&ht(r)}}}function qt(e){let r,i,n=e[27]("registerFormStep1.registerSimplePasswordError")+"";return{c(){r=t("p"),i=pt(n),ft(r,"class","InvalidInput"),ft(r,"part","InvalidInput")},m(e,t){ct(e,r,t),ut(r,i)},p(e,t){134217728&t[0]&&n!==(n=e[27]("registerFormStep1.registerSimplePasswordError")+"")&&gt(i,n)},d(e){e&&ht(r)}}}function Wt(r){let i,n,s,o,a,l,u,c,h;return{c(){i=e("svg"),n=e("defs"),s=e("style"),o=pt(".a{fill:var(--emfe-w-color-contrast, #07072A);}"),a=e("g"),l=e("path"),u=e("circle"),ft(l,"class","a"),ft(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"),ft(l,"transform","translate(0)"),ft(u,"class","a"),ft(u,"cx","2.779"),ft(u,"cy","2.779"),ft(u,"r","2.779"),ft(u,"transform","translate(20.827 30.303)"),ft(a,"transform","translate(-14.185 -27.832)"),ft(i,"class","ToggleConfirmPasswordVisibility"),ft(i,"part","ToggleConfirmPasswordVisibility"),ft(i,"xmlns","http://www.w3.org/2000/svg"),ft(i,"width","18.843"),ft(i,"height","10.5"),ft(i,"viewBox","0 0 18.843 10.5")},m(e,t){ct(e,i,t),ut(i,n),ut(n,s),ut(s,o),ut(i,a),ut(a,l),ut(a,u),c||(h=dt(i,"click",r[64]),c=!0)},p:at,d(e){e&&ht(i),c=!1,h()}}}function Jt(r){let i,n,s,o,a,l,u,c,h,p,m,d,f,g,y;return{c(){i=e("svg"),n=e("defs"),s=e("style"),o=pt(".a{fill:var(--emfe-w-color-contrast, #07072A);}"),a=e("g"),l=e("circle"),u=e("g"),c=e("path"),h=e("path"),p=e("g"),m=e("path"),d=e("path"),f=e("rect"),ft(l,"class","a"),ft(l,"cx","0.05"),ft(l,"cy","0.05"),ft(l,"r","0.05"),ft(l,"transform","translate(121.017 31.148)"),ft(c,"class","a"),ft(c,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),ft(c,"transform","translate(-142.164 -39.123)"),ft(h,"class","a"),ft(h,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),ft(h,"transform","translate(-136.413 -42.068)"),ft(u,"transform","translate(117.499 27.37)"),ft(m,"class","a"),ft(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"),ft(m,"transform","translate(-110.856 -33.157)"),ft(d,"class","a"),ft(d,"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"),ft(d,"transform","translate(-130.743 -29.617)"),ft(p,"transform","translate(110.856 24.899)"),ft(f,"class","a"),ft(f,"width","0.972"),ft(f,"height","15.861"),ft(f,"rx","0.486"),ft(f,"transform","translate(114.827 23.858) rotate(-39.315)"),ft(a,"transform","translate(-110.856 -23.242)"),ft(i,"class","ToggleConfirmPasswordVisibility"),ft(i,"part","ToggleConfirmPasswordVisibility"),ft(i,"xmlns","http://www.w3.org/2000/svg"),ft(i,"width","18.844"),ft(i,"height","12.887"),ft(i,"viewBox","0 0 18.844 12.887")},m(e,t){ct(e,i,t),ut(i,n),ut(n,s),ut(s,o),ut(i,a),ut(a,l),ut(a,u),ut(u,c),ut(u,h),ut(a,p),ut(p,m),ut(p,d),ut(a,f),g||(y=dt(i,"click",r[63]),g=!0)},p:at,d(e){e&&ht(i),g=!1,y()}}}function er(e){let r,i,n=e[27]("registerFormStep1.registerConfirmPasswordError")+"";return{c(){r=t("p"),i=pt(n),ft(r,"class","InvalidInput"),ft(r,"part","InvalidInput")},m(e,t){ct(e,r,t),ut(r,i)},p(e,t){134217728&t[0]&&n!==(n=e[27]("registerFormStep1.registerConfirmPasswordError")+"")&&gt(i,n)},d(e){e&&ht(r)}}}function tr(e){let r,i,n=e[27]("registerFormStep1.registerSecurityQuestionError")+"";return{c(){r=t("p"),i=pt(n),ft(r,"class","InvalidInput"),ft(r,"part","InvalidInput")},m(e,t){ct(e,r,t),ut(r,i)},p(e,t){134217728&t[0]&&n!==(n=e[27]("registerFormStep1.registerSecurityQuestionError")+"")&&gt(i,n)},d(e){e&&ht(r)}}}function rr(e){let r,i,n=e[27]("registerFormStep1.registerSecurityAnswerError")+"";return{c(){r=t("p"),i=pt(n),ft(r,"class","InvalidInput"),ft(r,"part","InvalidInput")},m(e,t){ct(e,r,t),ut(r,i)},p(e,t){134217728&t[0]&&n!==(n=e[27]("registerFormStep1.registerSecurityAnswerError")+"")&&gt(i,n)},d(e){e&&ht(r)}}}function ir(r){let i,n,s,x,D,o,G,k,a,$,V,l,u,c,j,z,h,Q,p,X,Z,K,Y,m,d,q,W,J,ee,f,te,re,ie,ne,se,g,y,oe,ae,le,ue,E,ce,he,pe,me,de,fe,ge,ye,b,v,Ee,be,ve,we,w,Se,Te,Ae,Pe,Ce,S,T,He,Be,_e,Ie,A,Le,Ne,Oe,Re,P,C,Fe,Me,Ue,xe,H,De,Ge,ke,$e,B,Ve,je,ze,Qe,Xe=r[27]("registerFormStep1.registerTitle")+"",Ze=r[27]("registerFormStep1.registerSubtitle")+"",Ke=r[27]("registerFormStep1.registerSubtitleLogin")+"",Ye=r[27]("registerFormStep1.registerEmail")+"",qe=r[27]("registerFormStep1.registerUsername")+"",We=r[27]("registerFormStep1.registerPassword")+"",Je=r[27]("registerFormStep1.registerConfirmPassword")+"",et=r[27]("registerFormStep1.registerSecurityQuestion")+"",tt=r[27]("registerFormStep1.registerSecurityAnswer")+"",rt=r[27]("registerFormStep1.registerNext")+"",_=r[3]&&Qt(r),I=r[4]&&Xt(r);function it(e){return e[22]?Kt:Zt}let nt=it(r),L=nt(r),N=r[5]&&"true"!==r[0]&&Yt(r),O=r[5]&&"true"===r[0]&&qt(r);function st(e){return e[23]?Jt:Wt}let ot=st(r),R=ot(r),F=r[6]&&er(r),M=r[7]&&tr(r),U=r[8]&&rr(r);return{c(){i=t("div"),n=t("div"),s=t("h2"),x=pt(Xe),D=mt(),o=t("p"),G=pt(Ze),k=mt(),a=t("span"),$=pt(Ke),V=mt(),l=t("form"),u=t("div"),c=t("label"),j=pt(Ye),z=pt(":"),(h=t("span")).textContent="*",Q=mt(),p=t("input"),X=mt(),_&&_.c(),Y=mt(),m=t("div"),d=t("label"),q=pt(qe),W=pt(":"),(J=t("span")).textContent="*",ee=mt(),f=t("input"),re=mt(),I&&I.c(),se=mt(),g=t("div"),y=t("label"),oe=pt(We),ae=pt(":"),(le=t("span")).textContent="*",ue=mt(),E=t("input"),he=mt(),L.c(),pe=mt(),N&&N.c(),me=mt(),O&&O.c(),ye=mt(),b=t("div"),v=t("label"),Ee=pt(Je),be=pt(":"),(ve=t("span")).textContent="*",we=mt(),w=t("input"),Se=mt(),R.c(),Te=mt(),F&&F.c(),Ce=mt(),S=t("div"),T=t("label"),He=pt(et),Be=pt(":"),(_e=t("span")).textContent="*",Ie=mt(),A=t("input"),Le=mt(),M&&M.c(),Re=mt(),P=t("div"),C=t("label"),Fe=pt(tt),Me=pt(":"),(Ue=t("span")).textContent="*",xe=mt(),H=t("input"),De=mt(),U&&U.c(),$e=mt(),B=t("button"),Ve=pt(rt),this.c=at,ft(s,"class","RegisterFormTitle"),ft(s,"part","RegisterFormTitle"),ft(a,"class","FormLoginCallToAction"),ft(o,"class","RegisterFormSubtitle"),ft(o,"part","RegisterFormSubtitle"),ft(n,"class","RegisterFormHeader"),ft(n,"part","RegisterFormHeader"),ft(h,"class","FormRequired"),ft(h,"part","FormRequired"),ft(c,"for","Email"),ft(p,"type","text"),ft(p,"id","Email"),ft(u,"class",Z="EmailContainer "+(r[3]&&!r[9]?"InvalidField":"")+(0<=r[15]?.indexOf("email")?"Hidden":"")),ft(u,"part",K="EmailContainer "+(r[3]?"InvalidField":"")),ft(J,"class","FormRequired"),ft(J,"part","FormRequired"),ft(d,"for","UserName"),ft(f,"type","text"),ft(f,"id","UserName"),ft(f,"autocomplete",te=r[1]?"username":"off"),ft(m,"class",ie="UserContainer "+(r[4]&&!r[10]?"InvalidField":"")+(0<=r[15]?.indexOf("username")?"Hidden":"")),ft(m,"part",ne="UserContainer "+(r[4]?"InvalidField":"")),ft(le,"class","FormRequired"),ft(le,"part","FormRequired"),ft(y,"for","Password"),ft(E,"name","new-password"),ft(E,"type","password"),ft(E,"id","new-password"),ft(E,"autocomplete",ce=r[1]?"new-password":"off"),ft(E,"aria-describedby","password-constraints"),ft(g,"class",de="PasswordContainer "+(r[5]&&!r[11]?"InvalidField":"")+(0<=r[15]?.indexOf("password")?"Hidden":"")),ft(g,"part",fe="PasswordContainer "+(r[5]?"InvalidField":"")),g.hidden=ge=0<=r[15]?.indexOf("password"),ft(ve,"class","FormRequired"),ft(ve,"part","FormRequired"),ft(v,"for","ConfirmPassword"),ft(w,"type","password"),ft(w,"id","ConfirmPassword"),ft(b,"class",Ae="ConfirmPasswordContainer "+(r[6]&&!r[12]?"InvalidField":"")+(0<=r[15]?.indexOf("confirmPassword")?"Hidden":"")),ft(b,"part",Pe="ConfirmPasswordContainer "+(r[6]?"InvalidField":"")),ft(_e,"class","FormRequired"),ft(_e,"part","FormRequired"),ft(T,"for","SecurityQuestion"),ft(A,"type","text"),ft(A,"id","SecurityQuestion"),ft(S,"class",Ne="SecurityQuestionContainer "+(r[7]&&!r[13]?"InvalidField":"")+(0<=r[15]?.indexOf("securityQuestion")?"Hidden":"")),ft(S,"part",Oe="SecurityQuestionContainer "+(r[7]?"InvalidField":"")),ft(Ue,"class","FormRequired"),ft(Ue,"part","FormRequired"),ft(C,"for","SecurityAnswer"),ft(H,"type","text"),ft(H,"id","SecurityAnswer"),ft(P,"class",Ge="SecurityAnswerContainer "+(r[8]&&!r[14]?"InvalidField":"")+(0<=r[15]?.indexOf("securityAnswer")?"Hidden":"")),ft(P,"part",ke="SecurityAnswerContainer "+(r[8]?"InvalidField":"")),ft(B,"class","RegisterStepNext"),ft(B,"part","RegisterStepNext"),B.disabled=je=!r[26],ft(l,"class","RegisterFormContent"),ft(l,"part","RegisterFormContent")},m(e,t){ct(e,i,t),ut(i,n),ut(n,s),ut(s,x),ut(n,D),ut(n,o),ut(o,G),ut(o,k),ut(o,a),ut(a,$),ut(i,V),ut(i,l),ut(l,u),ut(u,c),ut(c,j),ut(c,z),ut(c,h),ut(u,Q),ut(u,p),yt(p,r[17]),ut(u,X),_&&_.m(u,null),ut(l,Y),ut(l,m),ut(m,d),ut(d,q),ut(d,W),ut(d,J),ut(m,ee),ut(m,f),yt(f,r[16]),ut(m,re),I&&I.m(m,null),ut(l,se),ut(l,g),ut(g,y),ut(y,oe),ut(y,ae),ut(y,le),ut(g,ue),ut(g,E),yt(E,r[18]),r[56](E),ut(g,he),L.m(g,null),ut(g,pe),N&&N.m(g,null),ut(g,me),O&&O.m(g,null),ut(l,ye),ut(l,b),ut(b,v),ut(v,Ee),ut(v,be),ut(v,ve),ut(b,we),ut(b,w),yt(w,r[19]),r[62](w),ut(b,Se),R.m(b,null),ut(b,Te),F&&F.m(b,null),ut(l,Ce),ut(l,S),ut(S,T),ut(T,He),ut(T,Be),ut(T,_e),ut(S,Ie),ut(S,A),yt(A,r[20]),ut(S,Le),M&&M.m(S,null),ut(l,Re),ut(l,P),ut(P,C),ut(C,Fe),ut(C,Me),ut(C,Ue),ut(P,xe),ut(P,H),yt(H,r[21]),ut(P,De),U&&U.m(P,null),ut(l,$e),ut(l,B),ut(B,Ve),r[72](i),ze||(Qe=[dt(a,"click",r[46]),dt(p,"input",r[47]),dt(p,"keyup",r[29]),dt(p,"focus",r[48]),dt(p,"blur",r[49]),dt(f,"input",r[50]),dt(f,"keyup",r[30]),dt(f,"focus",r[51]),dt(f,"blur",r[52]),dt(E,"input",r[53]),dt(E,"keyup",r[35]),dt(E,"focus",r[54]),dt(E,"blur",r[55]),dt(w,"input",r[59]),dt(w,"keyup",r[36]),dt(w,"focus",r[60]),dt(w,"blur",r[61]),dt(A,"input",r[65]),dt(A,"keyup",r[37]),dt(A,"focus",r[66]),dt(A,"blur",r[67]),dt(H,"input",r[68]),dt(H,"keyup",r[38]),dt(H,"focus",r[69]),dt(H,"blur",r[70]),dt(B,"click",r[71])],ze=!0)},p(e,t){134217728&t[0]&&Xe!==(Xe=e[27]("registerFormStep1.registerTitle")+"")&&gt(x,Xe),134217728&t[0]&&Ze!==(Ze=e[27]("registerFormStep1.registerSubtitle")+"")&&gt(G,Ze),134217728&t[0]&&Ke!==(Ke=e[27]("registerFormStep1.registerSubtitleLogin")+"")&&gt($,Ke),134217728&t[0]&&Ye!==(Ye=e[27]("registerFormStep1.registerEmail")+"")&&gt(j,Ye),131072&t[0]&&p.value!==e[17]&&yt(p,e[17]),e[3]?_?_.p(e,t):((_=Qt(e)).c(),_.m(u,null)):_&&(_.d(1),_=null),33288&t[0]&&Z!==(Z="EmailContainer "+(e[3]&&!e[9]?"InvalidField":"")+(0<=e[15]?.indexOf("email")?"Hidden":""))&&ft(u,"class",Z),8&t[0]&&K!==(K="EmailContainer "+(e[3]?"InvalidField":""))&&ft(u,"part",K),134217728&t[0]&&qe!==(qe=e[27]("registerFormStep1.registerUsername")+"")&&gt(q,qe),2&t[0]&&te!==(te=e[1]?"username":"off")&&ft(f,"autocomplete",te),65536&t[0]&&f.value!==e[16]&&yt(f,e[16]),e[4]?I?I.p(e,t):((I=Xt(e)).c(),I.m(m,null)):I&&(I.d(1),I=null),33808&t[0]&&ie!==(ie="UserContainer "+(e[4]&&!e[10]?"InvalidField":"")+(0<=e[15]?.indexOf("username")?"Hidden":""))&&ft(m,"class",ie),16&t[0]&&ne!==(ne="UserContainer "+(e[4]?"InvalidField":""))&&ft(m,"part",ne),134217728&t[0]&&We!==(We=e[27]("registerFormStep1.registerPassword")+"")&&gt(oe,We),2&t[0]&&ce!==(ce=e[1]?"new-password":"off")&&ft(E,"autocomplete",ce),262144&t[0]&&E.value!==e[18]&&yt(E,e[18]),nt===(nt=it(e))&&L?L.p(e,t):(L.d(1),(L=nt(e))&&(L.c(),L.m(g,pe))),e[5]&&"true"!==e[0]?N?N.p(e,t):((N=Yt(e)).c(),N.m(g,me)):N&&(N.d(1),N=null),e[5]&&"true"===e[0]?O?O.p(e,t):((O=qt(e)).c(),O.m(g,null)):O&&(O.d(1),O=null),34848&t[0]&&de!==(de="PasswordContainer "+(e[5]&&!e[11]?"InvalidField":"")+(0<=e[15]?.indexOf("password")?"Hidden":""))&&ft(g,"class",de),32&t[0]&&fe!==(fe="PasswordContainer "+(e[5]?"InvalidField":""))&&ft(g,"part",fe),32768&t[0]&&ge!==(ge=0<=e[15]?.indexOf("password"))&&(g.hidden=ge),134217728&t[0]&&Je!==(Je=e[27]("registerFormStep1.registerConfirmPassword")+"")&&gt(Ee,Je),524288&t[0]&&w.value!==e[19]&&yt(w,e[19]),ot===(ot=st(e))&&R?R.p(e,t):(R.d(1),(R=ot(e))&&(R.c(),R.m(b,Te))),e[6]?F?F.p(e,t):((F=er(e)).c(),F.m(b,null)):F&&(F.d(1),F=null),36928&t[0]&&Ae!==(Ae="ConfirmPasswordContainer "+(e[6]&&!e[12]?"InvalidField":"")+(0<=e[15]?.indexOf("confirmPassword")?"Hidden":""))&&ft(b,"class",Ae),64&t[0]&&Pe!==(Pe="ConfirmPasswordContainer "+(e[6]?"InvalidField":""))&&ft(b,"part",Pe),134217728&t[0]&&et!==(et=e[27]("registerFormStep1.registerSecurityQuestion")+"")&&gt(He,et),1048576&t[0]&&A.value!==e[20]&&yt(A,e[20]),e[7]?M?M.p(e,t):((M=tr(e)).c(),M.m(S,null)):M&&(M.d(1),M=null),41088&t[0]&&Ne!==(Ne="SecurityQuestionContainer "+(e[7]&&!e[13]?"InvalidField":"")+(0<=e[15]?.indexOf("securityQuestion")?"Hidden":""))&&ft(S,"class",Ne),128&t[0]&&Oe!==(Oe="SecurityQuestionContainer "+(e[7]?"InvalidField":""))&&ft(S,"part",Oe),134217728&t[0]&&tt!==(tt=e[27]("registerFormStep1.registerSecurityAnswer")+"")&&gt(Fe,tt),2097152&t[0]&&H.value!==e[21]&&yt(H,e[21]),e[8]?U?U.p(e,t):((U=rr(e)).c(),U.m(P,null)):U&&(U.d(1),U=null),49408&t[0]&&Ge!==(Ge="SecurityAnswerContainer "+(e[8]&&!e[14]?"InvalidField":"")+(0<=e[15]?.indexOf("securityAnswer")?"Hidden":""))&&ft(P,"class",Ge),256&t[0]&&ke!==(ke="SecurityAnswerContainer "+(e[8]?"InvalidField":""))&&ft(P,"part",ke),134217728&t[0]&&rt!==(rt=e[27]("registerFormStep1.registerNext")+"")&&gt(Ve,rt),67108864&t[0]&&je!==(je=!e[26])&&(B.disabled=je)},i:at,o:at,d(e){e&&ht(i),_&&_.d(),I&&I.d(),r[56](null),L.d(),N&&N.d(),O&&O.d(),r[62](null),R.d(),F&&F.d(),M&&M.d(),U&&U.d(),r[72](null),ze=!1,lt(Qe)}}}function nr(t,e,r){let M;var i=Vt;t.$$.on_destroy.push(W(i,e=>r(27,M=e)));let n,s,o,a,{lang:l=""}=e,{disabledfields:u=""}=e,{defaultoptions:U=""}=e,{simplepasswordvalidation:c="false"}=e,{clientstyling:h=""}=e,{clientstylingurl:p=""}=e,{translationurl:m=""}=e,{savecredentials:x=""}=e,d=!1,f=!1,g=!1,y=!1,E=!1,b=!1,v=!1,w=!1,S=!1,T=!1,A=!1,P=!1,C="",H="",B="",_="",I="",L="",N=!1,O=!1,D=!1,R={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}$/};Object.keys(zt).forEach(e=>{jt(e,zt[e])});const F=()=>{r(26,D=!(d||f||g||y||E||b)),(C.length<=0||H.length<=0||B.length<=0||_.length<=0||I.length<=0||L.length<=0)&&r(26,D=!1)},G=()=>{window.postMessage({type:"ToLogin"},window.location.href)},k=()=>{r(22,N=!0),z()},$=()=>{r(23,O=!0),Q()},V=()=>{r(22,N=!1),z()},j=()=>{r(23,O=!1),Q()},z=()=>{r(24,s.type=N?"text":"password",s)},Q=()=>{r(25,o.type=O?"text":"password",o)},X=e=>{e.preventDefault();e={userEmail:H,userValue:C,userPassword:B,confirmUserPassword:_,securityQuestion:I,securityAnswer:L};window.postMessage({type:"RegisterStepOne",registerStepOneData:e},window.location.href)},Z=e=>{e.data&&"StepOneDataBackup"===e.data.type&&(r(17,H=e.data.userData.email),r(16,C=e.data.userData.username),r(18,B=e.data.userData.password),r(19,_=e.data.userData.password),r(20,I=e.data.userData.securityQuestion),r(21,L=e.data.userData.securityAnswer),F())};return i=()=>(window.addEventListener("message",Z,!1),()=>{window.removeEventListener("message",Z)}),function(){if(K)return K;throw new Error("Function called outside component initialization")}().$$.on_mount.push(i),t.$$set=e=>{"lang"in e&&r(40,l=e.lang),"disabledfields"in e&&r(41,u=e.disabledfields),"defaultoptions"in e&&r(42,U=e.defaultoptions),"simplepasswordvalidation"in e&&r(0,c=e.simplepasswordvalidation),"clientstyling"in e&&r(43,h=e.clientstyling),"clientstylingurl"in e&&r(44,p=e.clientstylingurl),"translationurl"in e&&r(45,m=e.translationurl),"savecredentials"in e&&r(1,x=e.savecredentials)},t.$$.update=()=>{if(512&t.$$.dirty[1]&&l&&(e=l,q.set(e)),1024&t.$$.dirty[1]&&u&&(r(15,n=u.split(",")),0<=n.indexOf("email")&&(r(17,H="dummy@dummy.com"),r(3,d=!1)),0<=n.indexOf("username")&&(r(16,C="dummy username"),r(4,f=!1)),0<=n.indexOf("password")&&(r(18,B="dummy password"),r(5,g=!1)),0<=n.indexOf("confirmPassword")&&(r(19,_="dummy password"),r(6,y=!1)),0<=n.indexOf("securityQuestion")&&(r(20,I="dummy question"),r(7,E=!1)),0<=n.indexOf("securityAnswer")&&(r(21,L="dummy answer"),r(8,b=!1))),1&t.$$.dirty[0]&&c&&"true"==c&&(R.password=/^(?!.* ).{8,20}$/),4&t.$$.dirty[0]|4096&t.$$.dirty[1]&&h&&a){let e=document.createElement("style");e.innerHTML=h,a.appendChild(e)}if(4&t.$$.dirty[0]|8192&t.$$.dirty[1]&&p&&a){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{a.appendChild(t)},1),setTimeout(()=>{},500)})}var e;16384&t.$$.dirty[1]&&m&&fetch(m).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{jt(e,t[e])})}).catch(e=>{console.log(e)})},[c,x,a,d,f,g,y,E,b,v,w,S,T,A,P,n,C,H,B,_,I,L,N,O,s,o,D,M,G,()=>{var e;r(3,(e=H,d=!(R.email.test(e)&&e.length<=100))),F()},()=>{var e;r(4,(e=C,f=!(R.user.test(e)&&e.length<=20))),F()},k,$,V,j,()=>{var e;r(5,(e=B,g=!R.password.test(e))),B!==_&&0<_.length?r(6,y=!0):r(6,y=!1),F()},()=>{r(6,y=!(B===_)),F()},()=>{r(7,E=!(I&&I.length<=120)),F()},()=>{r(8,b=!(L&&L.length<=120)),F()},X,l,u,U,h,p,m,()=>G(),function(){H=this.value,r(17,H)},()=>r(9,v=!0),()=>r(9,v=!1),function(){C=this.value,r(16,C)},()=>r(10,w=!0),()=>r(10,w=!1),function(){B=this.value,r(18,B)},()=>r(11,S=!0),()=>r(11,S=!1),function(e){Y[e?"unshift":"push"](()=>{s=e,r(24,s)})},()=>V(),()=>k(),function(){_=this.value,r(19,_)},()=>r(12,T=!0),()=>r(12,T=!1),function(e){Y[e?"unshift":"push"](()=>{o=e,r(25,o)})},()=>j(),()=>$(),function(){I=this.value,r(20,I)},()=>r(13,A=!0),()=>r(13,A=!1),function(){L=this.value,r(21,L)},()=>r(14,P=!0),()=>r(14,P=!1),e=>X(e),function(e){Y[e?"unshift":"push"](()=>{a=e,r(2,a)})}]}class sr extends F{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:40px;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)}.EmailContainer.Hidden,.UserContainer.Hidden,.PasswordContainer.Hidden,.ConfirmPasswordContainer.Hidden,.SecurityQuestionContainer.Hidden,.SecurityAnswerContainer.Hidden{display:none}.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:55px}.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;padding-top:5px;top:55px;line-height:10px}.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>",R(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},nr,ir,p,{lang:40,disabledfields:41,defaultoptions:42,simplepasswordvalidation:0,clientstyling:43,clientstylingurl:44,translationurl:45,savecredentials:1},null,[-1,-1,-1]),e&&(e.target&&ct(e.target,this,e.anchor),e.props&&(this.$set(e.props),E()))}static get observedAttributes(){return["lang","disabledfields","defaultoptions","simplepasswordvalidation","clientstyling","clientstylingurl","translationurl","savecredentials"]}get lang(){return this.$$.ctx[40]}set lang(e){this.$$set({lang:e}),E()}get disabledfields(){return this.$$.ctx[41]}set disabledfields(e){this.$$set({disabledfields:e}),E()}get defaultoptions(){return this.$$.ctx[42]}set defaultoptions(e){this.$$set({defaultoptions:e}),E()}get simplepasswordvalidation(){return this.$$.ctx[0]}set simplepasswordvalidation(e){this.$$set({simplepasswordvalidation:e}),E()}get clientstyling(){return this.$$.ctx[43]}set clientstyling(e){this.$$set({clientstyling:e}),E()}get clientstylingurl(){return this.$$.ctx[44]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),E()}get translationurl(){return this.$$.ctx[45]}set translationurl(e){this.$$set({translationurl:e}),E()}get savecredentials(){return this.$$.ctx[1]}set savecredentials(e){this.$$set({savecredentials:e}),E()}}return customElements.get("general-player-register-form-step1")||customElements.define("general-player-register-form-step1",sr),sr});
2
2
  //# sourceMappingURL=general-player-register-form-step1.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/general-player-register-form-step1",
3
- "version": "1.7.1",
3
+ "version": "1.7.3",
4
4
  "main": "dist/general-player-register-form-step1.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "c0b2bf42b27d9f10a77af4c5be6a2708be5435cf"
39
+ "gitHead": "af607736d2fefc2fcb0fc155b2023fcd62806a5c"
40
40
  }