@everymatrix/general-player-register-form-step1 1.44.0 → 1.45.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/GeneralPlayerRegisterFormStep1-28ghh1k2.cjs +3 -0
- package/components/GeneralPlayerRegisterFormStep1-ClVsEGiR.js +5036 -0
- package/es2015/general-player-register-form-step1.cjs +1 -0
- package/es2015/general-player-register-form-step1.js +16 -0
- package/package.json +15 -33
- package/CHANGELOG.md +0 -6
- package/README.md +0 -30
- package/dist/general-player-register-form-step1.js +0 -2
- package/dist/general-player-register-form-step1.js.map +0 -1
- package/index.html +0 -22
- package/index.js +0 -1
- package/public/favicon.png +0 -0
- package/public/reset.css +0 -48
- package/rollup.config.js +0 -67
- package/src/GeneralPlayerRegisterFormStep1.svelte +0 -569
- package/src/i18n.js +0 -27
- package/src/index.ts +0 -4
- package/src/translations.js +0 -230
- package/stories/GeneralPlayerRegisterFormStep1.stories.js +0 -13
- package/tsconfig.json +0 -6
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";var Qi=Object.defineProperty,$i=Object.defineProperties;var Xi=Object.getOwnPropertyDescriptors;var Gt=Object.getOwnPropertySymbols;var Zi=Object.prototype.hasOwnProperty,Wi=Object.prototype.propertyIsEnumerable;var dt=(e,r,t)=>r in e?Qi(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,jt=(e,r)=>{for(var t in r||(r={}))Zi.call(r,t)&&dt(e,t,r[t]);if(Gt)for(var t of Gt(r))Wi.call(r,t)&&dt(e,t,r[t]);return e},Vt=(e,r)=>$i(e,Xi(r));var be=(e,r,t)=>dt(e,typeof r!="symbol"?r+"":r,t);var zt=(e,r,t)=>new Promise((i,n)=>{var s=h=>{try{a(t.next(h))}catch(c){n(c)}},l=h=>{try{a(t.throw(h))}catch(c){n(c)}},a=h=>h.done?i(h.value):Promise.resolve(h.value).then(s,l);a((t=t.apply(e,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function X(){}function pi(e){return e()}function Qt(){return Object.create(null)}function cr(e){e.forEach(pi)}function Nt(e){return typeof e=="function"}function bi(e,r){return e!=e?r==r:e!==r||e&&typeof e=="object"||typeof e=="function"}function qi(e){return Object.keys(e).length===0}function yi(e,...r){if(e==null){for(const i of r)i(void 0);return X}const t=e.subscribe(...r);return t.unsubscribe?()=>t.unsubscribe():t}function Ji(e,r,t){e.$$.on_destroy.push(yi(r,t))}function u(e,r){e.appendChild(r)}function Yi(e,r,t){const i=Ki(e);if(!i.getElementById(r)){const n=v("style");n.id=r,n.textContent=t,en(i,n)}}function Ki(e){if(!e)return document;const r=e.getRootNode?e.getRootNode():e.ownerDocument;return r&&r.host?r:e.ownerDocument}function en(e,r){return u(e.head||e,r),r.sheet}function ae(e,r,t){e.insertBefore(r,t||null)}function Z(e){e.parentNode&&e.parentNode.removeChild(e)}function v(e){return document.createElement(e)}function w(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function T(e){return document.createTextNode(e)}function H(){return T(" ")}function C(e,r,t,i){return e.addEventListener(r,t,i),()=>e.removeEventListener(r,t,i)}function o(e,r,t){t==null?e.removeAttribute(r):e.getAttribute(r)!==t&&e.setAttribute(r,t)}function rn(e){return Array.from(e.childNodes)}function U(e,r){r=""+r,e.data!==r&&(e.data=r)}function oe(e,r){e.value=r==null?"":r}function tn(e){const r={};return e.childNodes.forEach(t=>{r[t.slot||"default"]=!0}),r}let Nr;function Br(e){Nr=e}function nn(){if(!Nr)throw new Error("Function called outside component initialization");return Nr}function sn(e){nn().$$.on_mount.push(e)}const nr=[],Ir=[];let sr=[];const $t=[],on=Promise.resolve();let _t=!1;function an(){_t||(_t=!0,on.then(_e))}function wt(e){sr.push(e)}const mt=new Set;let tr=0;function _e(){if(tr!==0)return;const e=Nr;do{try{for(;tr<nr.length;){const r=nr[tr];tr++,Br(r),ln(r.$$)}}catch(r){throw nr.length=0,tr=0,r}for(Br(null),nr.length=0,tr=0;Ir.length;)Ir.pop()();for(let r=0;r<sr.length;r+=1){const t=sr[r];mt.has(t)||(mt.add(t),t())}sr.length=0}while(nr.length);for(;$t.length;)$t.pop()();_t=!1,mt.clear(),Br(e)}function ln(e){if(e.fragment!==null){e.update(),cr(e.before_update);const r=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,r),e.after_update.forEach(wt)}}function un(e){const r=[],t=[];sr.forEach(i=>e.indexOf(i)===-1?r.push(i):t.push(i)),t.forEach(i=>i()),sr=r}const cn=new Set;function hn(e,r){e&&e.i&&(cn.delete(e),e.i(r))}function fn(e,r,t){const{fragment:i,after_update:n}=e.$$;i&&i.m(r,t),wt(()=>{const s=e.$$.on_mount.map(pi).filter(Nt);e.$$.on_destroy?e.$$.on_destroy.push(...s):cr(s),e.$$.on_mount=[]}),n.forEach(wt)}function dn(e,r){const t=e.$$;t.fragment!==null&&(un(t.after_update),cr(t.on_destroy),t.fragment&&t.fragment.d(r),t.on_destroy=t.fragment=null,t.ctx=[])}function mn(e,r){e.$$.dirty[0]===-1&&(nr.push(e),an(),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31}function gn(e,r,t,i,n,s,l=null,a=[-1]){const h=Nr;Br(e);const c=e.$$={fragment:null,ctx:[],props:s,update:X,not_equal:n,bound:Qt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(r.context||(h?h.$$.context:[])),callbacks:Qt(),dirty:a,skip_bound:!1,root:r.target||h.$$.root};l&&l(c.root);let f=!1;if(c.ctx=t?t(e,r.props||{},(m,g,...b)=>{const _=b.length?b[0]:g;return c.ctx&&n(c.ctx[m],c.ctx[m]=_)&&(!c.skip_bound&&c.bound[m]&&c.bound[m](_),f&&mn(e,m)),g}):[],c.update(),f=!0,cr(c.before_update),c.fragment=i?i(c.ctx):!1,r.target){if(r.hydrate){const m=rn(r.target);c.fragment&&c.fragment.l(m),m.forEach(Z)}else c.fragment&&c.fragment.c();r.intro&&hn(e.$$.fragment),fn(e,r.target,r.anchor),_e()}Br(h)}let Ei;typeof HTMLElement=="function"&&(Ei=class extends HTMLElement{constructor(r,t,i){super();be(this,"$$ctor");be(this,"$$s");be(this,"$$c");be(this,"$$cn",!1);be(this,"$$d",{});be(this,"$$r",!1);be(this,"$$p_d",{});be(this,"$$l",{});be(this,"$$l_u",new Map);this.$$ctor=r,this.$$s=t,i&&this.attachShadow({mode:"open"})}addEventListener(r,t,i){if(this.$$l[r]=this.$$l[r]||[],this.$$l[r].push(t),this.$$c){const n=this.$$c.$on(r,t);this.$$l_u.set(t,n)}super.addEventListener(r,t,i)}removeEventListener(r,t,i){if(super.removeEventListener(r,t,i),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}connectedCallback(){return zt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let r=function(s){return()=>{let l;return{c:function(){l=v("slot"),s!=="default"&&o(l,"name",s)},m:function(c,f){ae(c,l,f)},d:function(c){c&&Z(l)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const t={},i=tn(this);for(const s of this.$$s)s in i&&(t[s]=[r(s)]);for(const s of this.attributes){const l=this.$$g_p(s.name);l in this.$$d||(this.$$d[l]=it(l,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Vt(jt({},this.$$d),{$$slots:t,$$scope:{ctx:[]}})});const n=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const l=it(s,this.$$d[s],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,l)}this.$$r=!1};this.$$c.$$.after_update.push(n),n();for(const s in this.$$l)for(const l of this.$$l[s]){const a=this.$$c.$on(s,l);this.$$l_u.set(l,a)}this.$$l={}}})}attributeChangedCallback(r,t,i){var n;this.$$r||(r=this.$$g_p(r),this.$$d[r]=it(r,i,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[r]:this.$$d[r]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(r){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===r||!this.$$p_d[t].attribute&&t.toLowerCase()===r)||r}});function it(e,r,t,i){var s;const n=(s=t[e])==null?void 0:s.type;if(r=n==="Boolean"&&typeof r!="boolean"?r!=null:r,!i||!t[e])return r;if(i==="toAttribute")switch(n){case"Object":case"Array":return r==null?null:JSON.stringify(r);case"Boolean":return r?"":null;case"Number":return r==null?null:r;default:return r}else switch(n){case"Object":case"Array":return r&&JSON.parse(r);case"Boolean":return r;case"Number":return r!=null?+r:r;default:return r}}function pn(e,r,t,i,n,s){let l=class extends Ei{constructor(){super(e,t,n),this.$$p_d=r}static get observedAttributes(){return Object.keys(r).map(a=>(r[a].attribute||a).toLowerCase())}};return Object.keys(r).forEach(a=>{Object.defineProperty(l.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(h){var c;h=it(a,h,r),this.$$d[a]=h,(c=this.$$c)==null||c.$set({[a]:h})}})}),i.forEach(a=>{Object.defineProperty(l.prototype,a,{get(){var h;return(h=this.$$c)==null?void 0:h[a]}})}),e.element=l,l}class bn{constructor(){be(this,"$$");be(this,"$$set")}$destroy(){dn(this,1),this.$destroy=X}$on(r,t){if(!Nt(t))return X;const i=this.$$.callbacks[r]||(this.$$.callbacks[r]=[]);return i.push(t),()=>{const n=i.indexOf(t);n!==-1&&i.splice(n,1)}}$set(r){this.$$set&&!qi(r)&&(this.$$.skip_bound=!0,this.$$set(r),this.$$.skip_bound=!1)}}const yn="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(yn);const ir=[];function En(e,r){return{subscribe:lt(e,r).subscribe}}function lt(e,r=X){let t;const i=new Set;function n(a){if(bi(e,a)&&(e=a,t)){const h=!ir.length;for(const c of i)c[1](),ir.push(c,e);if(h){for(let c=0;c<ir.length;c+=2)ir[c][0](ir[c+1]);ir.length=0}}}function s(a){n(a(e))}function l(a,h=X){const c=[a,h];return i.add(c),i.size===1&&(t=r(n,s)||X),a(e),()=>{i.delete(c),i.size===0&&t&&(t(),t=null)}}return{set:n,update:s,subscribe:l}}function hr(e,r,t){const i=!Array.isArray(e),n=i?[e]:e;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=r.length<2;return En(t,(l,a)=>{let h=!1;const c=[];let f=0,m=X;const g=()=>{if(f)return;m();const _=r(i?c[0]:c,l,a);s?l(_):m=Nt(_)?_:X},b=n.map((_,E)=>yi(_,S=>{c[E]=S,f&=~(1<<E),h&&g()},()=>{f|=1<<E}));return h=!0,g(),function(){cr(b),m(),h=!1}})}function vn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _n=function(r){return wn(r)&&!Sn(r)};function wn(e){return!!e&&typeof e=="object"}function Sn(e){var r=Object.prototype.toString.call(e);return r==="[object RegExp]"||r==="[object Date]"||Cn(e)}var Pn=typeof Symbol=="function"&&Symbol.for,xn=Pn?Symbol.for("react.element"):60103;function Cn(e){return e.$$typeof===xn}function An(e){return Array.isArray(e)?[]:{}}function Or(e,r){return r.clone!==!1&&r.isMergeableObject(e)?or(An(e),e,r):e}function Tn(e,r,t){return e.concat(r).map(function(i){return Or(i,t)})}function Hn(e,r){if(!r.customMerge)return or;var t=r.customMerge(e);return typeof t=="function"?t:or}function Bn(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(r){return Object.propertyIsEnumerable.call(e,r)}):[]}function Xt(e){return Object.keys(e).concat(Bn(e))}function vi(e,r){try{return r in e}catch(t){return!1}}function In(e,r){return vi(e,r)&&!(Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))}function Nn(e,r,t){var i={};return t.isMergeableObject(e)&&Xt(e).forEach(function(n){i[n]=Or(e[n],t)}),Xt(r).forEach(function(n){In(e,n)||(vi(e,n)&&t.isMergeableObject(r[n])?i[n]=Hn(n,t)(e[n],r[n],t):i[n]=Or(r[n],t))}),i}function or(e,r,t){t=t||{},t.arrayMerge=t.arrayMerge||Tn,t.isMergeableObject=t.isMergeableObject||_n,t.cloneUnlessOtherwiseSpecified=Or;var i=Array.isArray(r),n=Array.isArray(e),s=i===n;return s?i?t.arrayMerge(e,r,t):Nn(e,r,t):Or(r,t)}or.all=function(r,t){if(!Array.isArray(r))throw new Error("first argument should be an array");return r.reduce(function(i,n){return or(i,n,t)},{})};var On=or,Ln=On;const Mn=vn(Ln);var St=function(e,r){return St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},St(e,r)};function ut(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");St(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}var A=function(){return A=Object.assign||function(r){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=t[s])}return r},A.apply(this,arguments)};function Rn(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)r.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t}function gt(e,r,t){if(t||arguments.length===2)for(var i=0,n=r.length,s;i<n;i++)(s||!(i in r))&&(s||(s=Array.prototype.slice.call(r,0,i)),s[i]=r[i]);return e.concat(s||Array.prototype.slice.call(r))}var P;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(P||(P={}));var B;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(B||(B={}));var ar;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(ar||(ar={}));function Zt(e){return e.type===B.literal}function Un(e){return e.type===B.argument}function _i(e){return e.type===B.number}function wi(e){return e.type===B.date}function Si(e){return e.type===B.time}function Pi(e){return e.type===B.select}function xi(e){return e.type===B.plural}function Fn(e){return e.type===B.pound}function Ci(e){return e.type===B.tag}function Ai(e){return!!(e&&typeof e=="object"&&e.type===ar.number)}function Pt(e){return!!(e&&typeof e=="object"&&e.type===ar.dateTime)}var Ti=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,kn=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Dn(e){var r={};return e.replace(kn,function(t){var i=t.length;switch(t[0]){case"G":r.era=i===4?"long":i===5?"narrow":"short";break;case"y":r.year=i===2?"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":r.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":r.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":r.weekday=i===4?"long":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][i-4];break;case"a":r.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][i-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][i-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][i-1];break;case"k":r.hourCycle="h24",r.hour=["numeric","2-digit"][i-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":r.minute=["numeric","2-digit"][i-1];break;case"s":r.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":r.timeZoneName=i<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""}),r}var Gn=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function jn(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var r=e.split(Gn).filter(function(g){return g.length>0}),t=[],i=0,n=r;i<n.length;i++){var s=n[i],l=s.split("/");if(l.length===0)throw new Error("Invalid number skeleton");for(var a=l[0],h=l.slice(1),c=0,f=h;c<f.length;c++){var m=f[c];if(m.length===0)throw new Error("Invalid number skeleton")}t.push({stem:a,options:h})}return t}function Vn(e){return e.replace(/^(.*?)-/,"")}var Wt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Hi=/^(@+)?(\+|#+)?[rs]?$/g,zn=/(\*)(0+)|(#+)(0+)|(0+)/g,Bi=/^(0+)$/;function qt(e){var r={};return e[e.length-1]==="r"?r.roundingPriority="morePrecision":e[e.length-1]==="s"&&(r.roundingPriority="lessPrecision"),e.replace(Hi,function(t,i,n){return typeof n!="string"?(r.minimumSignificantDigits=i.length,r.maximumSignificantDigits=i.length):n==="+"?r.minimumSignificantDigits=i.length:i[0]==="#"?r.maximumSignificantDigits=i.length:(r.minimumSignificantDigits=i.length,r.maximumSignificantDigits=i.length+(typeof n=="string"?n.length:0)),""}),r}function Ii(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 Qn(e){var r;if(e[0]==="E"&&e[1]==="E"?(r={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(r={notation:"scientific"},e=e.slice(1)),r){var t=e.slice(0,2);if(t==="+!"?(r.signDisplay="always",e=e.slice(2)):t==="+?"&&(r.signDisplay="exceptZero",e=e.slice(2)),!Bi.test(e))throw new Error("Malformed concise eng/scientific notation");r.minimumIntegerDigits=e.length}return r}function Jt(e){var r={},t=Ii(e);return t||r}function $n(e){for(var r={},t=0,i=e;t<i.length;t++){var n=i[t];switch(n.stem){case"percent":case"%":r.style="percent";continue;case"%x100":r.style="percent",r.scale=100;continue;case"currency":r.style="currency",r.currency=n.options[0];continue;case"group-off":case",_":r.useGrouping=!1;continue;case"precision-integer":case".":r.maximumFractionDigits=0;continue;case"measure-unit":case"unit":r.style="unit",r.unit=Vn(n.options[0]);continue;case"compact-short":case"K":r.notation="compact",r.compactDisplay="short";continue;case"compact-long":case"KK":r.notation="compact",r.compactDisplay="long";continue;case"scientific":r=A(A(A({},r),{notation:"scientific"}),n.options.reduce(function(h,c){return A(A({},h),Jt(c))},{}));continue;case"engineering":r=A(A(A({},r),{notation:"engineering"}),n.options.reduce(function(h,c){return A(A({},h),Jt(c))},{}));continue;case"notation-simple":r.notation="standard";continue;case"unit-width-narrow":r.currencyDisplay="narrowSymbol",r.unitDisplay="narrow";continue;case"unit-width-short":r.currencyDisplay="code",r.unitDisplay="short";continue;case"unit-width-full-name":r.currencyDisplay="name",r.unitDisplay="long";continue;case"unit-width-iso-code":r.currencyDisplay="symbol";continue;case"scale":r.scale=parseFloat(n.options[0]);continue;case"rounding-mode-floor":r.roundingMode="floor";continue;case"rounding-mode-ceiling":r.roundingMode="ceil";continue;case"rounding-mode-down":r.roundingMode="trunc";continue;case"rounding-mode-up":r.roundingMode="expand";continue;case"rounding-mode-half-even":r.roundingMode="halfEven";continue;case"rounding-mode-half-down":r.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":r.roundingMode="halfExpand";continue;case"integer-width":if(n.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(zn,function(h,c,f,m,g,b){if(c)r.minimumIntegerDigits=f.length;else{if(m&&g)throw new Error("We currently do not support maximum integer digits");if(b)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Bi.test(n.stem)){r.minimumIntegerDigits=n.stem.length;continue}if(Wt.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(Wt,function(h,c,f,m,g,b){return f==="*"?r.minimumFractionDigits=c.length:m&&m[0]==="#"?r.maximumFractionDigits=m.length:g&&b?(r.minimumFractionDigits=g.length,r.maximumFractionDigits=g.length+b.length):(r.minimumFractionDigits=c.length,r.maximumFractionDigits=c.length),""});var s=n.options[0];s==="w"?r=A(A({},r),{trailingZeroDisplay:"stripIfInteger"}):s&&(r=A(A({},r),qt(s)));continue}if(Hi.test(n.stem)){r=A(A({},r),qt(n.stem));continue}var l=Ii(n.stem);l&&(r=A(A({},r),l));var a=Qn(n.stem);a&&(r=A(A({},r),a))}return r}var tt={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","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"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Xn(e,r){for(var t="",i=0;i<e.length;i++){var n=e.charAt(i);if(n==="j"){for(var s=0;i+1<e.length&&e.charAt(i+1)===n;)s++,i++;var l=1+(s&1),a=s<2?1:3+(s>>1),h="a",c=Zn(r);for((c=="H"||c=="k")&&(a=0);a-- >0;)t+=h;for(;l-- >0;)t=c+t}else n==="J"?t+="H":t+=n}return t}function Zn(e){var r=e.hourCycle;if(r===void 0&&e.hourCycles&&e.hourCycles.length&&(r=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")}var t=e.language,i;t!=="root"&&(i=e.maximize().region);var n=tt[i||""]||tt[t||""]||tt["".concat(t,"-001")]||tt["001"];return n[0]}var pt,Wn=new RegExp("^".concat(Ti.source,"*")),qn=new RegExp("".concat(Ti.source,"*$"));function x(e,r){return{start:e,end:r}}var Jn=!!String.prototype.startsWith&&"_a".startsWith("a",1),Yn=!!String.fromCodePoint,Kn=!!Object.fromEntries,es=!!String.prototype.codePointAt,rs=!!String.prototype.trimStart,ts=!!String.prototype.trimEnd,is=!!Number.isSafeInteger,ns=is?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},xt=!0;try{var ss=Oi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");xt=((pt=ss.exec("a"))===null||pt===void 0?void 0:pt[0])==="a"}catch(e){xt=!1}var Yt=Jn?function(r,t,i){return r.startsWith(t,i)}:function(r,t,i){return r.slice(i,i+t.length)===t},Ct=Yn?String.fromCodePoint:function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var i="",n=r.length,s=0,l;n>s;){if(l=r[s++],l>1114111)throw RangeError(l+" is not a valid code point");i+=l<65536?String.fromCharCode(l):String.fromCharCode(((l-=65536)>>10)+55296,l%1024+56320)}return i},Kt=Kn?Object.fromEntries:function(r){for(var t={},i=0,n=r;i<n.length;i++){var s=n[i],l=s[0],a=s[1];t[l]=a}return t},Ni=es?function(r,t){return r.codePointAt(t)}:function(r,t){var i=r.length;if(!(t<0||t>=i)){var n=r.charCodeAt(t),s;return n<55296||n>56319||t+1===i||(s=r.charCodeAt(t+1))<56320||s>57343?n:(n-55296<<10)+(s-56320)+65536}},os=rs?function(r){return r.trimStart()}:function(r){return r.replace(Wn,"")},as=ts?function(r){return r.trimEnd()}:function(r){return r.replace(qn,"")};function Oi(e,r){return new RegExp(e,r)}var At;if(xt){var ei=Oi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");At=function(r,t){var i;ei.lastIndex=t;var n=ei.exec(r);return(i=n[1])!==null&&i!==void 0?i:""}}else At=function(r,t){for(var i=[];;){var n=Ni(r,t);if(n===void 0||Li(n)||hs(n))break;i.push(n),t+=n>=65536?2:1}return Ct.apply(void 0,i)};var ls=function(){function e(r,t){t===void 0&&(t={}),this.message=r,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(r,t,i){for(var n=[];!this.isEOF();){var s=this.char();if(s===123){var l=this.parseArgument(r,i);if(l.err)return l;n.push(l.val)}else{if(s===125&&r>0)break;if(s===35&&(t==="plural"||t==="selectordinal")){var a=this.clonePosition();this.bump(),n.push({type:B.pound,location:x(a,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(P.UNMATCHED_CLOSING_TAG,x(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&Tt(this.peek()||0)){var l=this.parseTag(r,t);if(l.err)return l;n.push(l.val)}else{var l=this.parseLiteral(r,t);if(l.err)return l;n.push(l.val)}}}return{val:n,err:null}},e.prototype.parseTag=function(r,t){var i=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:B.literal,value:"<".concat(n,"/>"),location:x(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(r+1,t,!0);if(s.err)return s;var l=s.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Tt(this.char()))return this.error(P.INVALID_TAG,x(a,this.clonePosition()));var h=this.clonePosition(),c=this.parseTagName();return n!==c?this.error(P.UNMATCHED_CLOSING_TAG,x(h,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:B.tag,value:n,children:l,location:x(i,this.clonePosition())},err:null}:this.error(P.INVALID_TAG,x(a,this.clonePosition())))}else return this.error(P.UNCLOSED_TAG,x(i,this.clonePosition()))}else return this.error(P.INVALID_TAG,x(i,this.clonePosition()))},e.prototype.parseTagName=function(){var r=this.offset();for(this.bump();!this.isEOF()&&cs(this.char());)this.bump();return this.message.slice(r,this.offset())},e.prototype.parseLiteral=function(r,t){for(var i=this.clonePosition(),n="";;){var s=this.tryParseQuote(t);if(s){n+=s;continue}var l=this.tryParseUnquoted(r,t);if(l){n+=l;continue}var a=this.tryParseLeftAngleBracket();if(a){n+=a;continue}break}var h=x(i,this.clonePosition());return{val:{type:B.literal,value:n,location:h},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!us(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(r){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(r==="plural"||r==="selectordinal")break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(i);this.bump()}return Ct.apply(void 0,t)},e.prototype.tryParseUnquoted=function(r,t){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(t==="plural"||t==="selectordinal")||i===125&&r>0?null:(this.bump(),Ct(i))},e.prototype.parseArgument=function(r,t){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE,x(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(P.EMPTY_ARGUMENT,x(i,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(P.MALFORMED_ARGUMENT,x(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE,x(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:B.argument,value:n,location:x(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE,x(i,this.clonePosition())):this.parseArgumentOptions(r,t,n,i);default:return this.error(P.MALFORMED_ARGUMENT,x(i,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var r=this.clonePosition(),t=this.offset(),i=At(this.message,t),n=t+i.length;this.bumpTo(n);var s=this.clonePosition(),l=x(r,s);return{value:i,location:l}},e.prototype.parseArgumentOptions=function(r,t,i,n){var s,l=this.clonePosition(),a=this.parseIdentifierIfPossible().value,h=this.clonePosition();switch(a){case"":return this.error(P.EXPECT_ARGUMENT_TYPE,x(l,h));case"number":case"date":case"time":{this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),m=this.parseSimpleArgStyleIfPossible();if(m.err)return m;var g=as(m.val);if(g.length===0)return this.error(P.EXPECT_ARGUMENT_STYLE,x(this.clonePosition(),this.clonePosition()));var b=x(f,this.clonePosition());c={style:g,styleLocation:b}}var _=this.tryParseArgumentClose(n);if(_.err)return _;var E=x(n,this.clonePosition());if(c&&Yt(c==null?void 0:c.style,"::",0)){var S=os(c.style.slice(2));if(a==="number"){var m=this.parseNumberSkeletonFromString(S,c.styleLocation);return m.err?m:{val:{type:B.number,value:i,location:E,style:m.val},err:null}}else{if(S.length===0)return this.error(P.EXPECT_DATE_TIME_SKELETON,E);var N=S;this.locale&&(N=Xn(S,this.locale));var g={type:ar.dateTime,pattern:N,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?Dn(N):{}},G=a==="date"?B.date:B.time;return{val:{type:G,value:i,location:E,style:g},err:null}}}return{val:{type:a==="number"?B.number:a==="date"?B.date:B.time,value:i,location:E,style:(s=c==null?void 0:c.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var M=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(P.EXPECT_SELECT_ARGUMENT_OPTIONS,x(M,A({},M)));this.bumpSpace();var me=this.parseIdentifierIfPossible(),j=0;if(a!=="select"&&me.value==="offset"){if(!this.bumpIf(":"))return this.error(P.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,x(this.clonePosition(),this.clonePosition()));this.bumpSpace();var m=this.tryParseDecimalInteger(P.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,P.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(m.err)return m;this.bumpSpace(),me=this.parseIdentifierIfPossible(),j=m.val}var ye=this.tryParsePluralOrSelectOptions(r,a,t,me);if(ye.err)return ye;var _=this.tryParseArgumentClose(n);if(_.err)return _;var F=x(n,this.clonePosition());return a==="select"?{val:{type:B.select,value:i,options:Kt(ye.val),location:F},err:null}:{val:{type:B.plural,value:i,options:Kt(ye.val),offset:j,pluralType:a==="plural"?"cardinal":"ordinal",location:F},err:null}}default:return this.error(P.INVALID_ARGUMENT_TYPE,x(l,h))}},e.prototype.tryParseArgumentClose=function(r){return this.isEOF()||this.char()!==125?this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE,x(r,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var r=0,t=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(P.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,x(n,this.clonePosition()));this.bump();break}case 123:{r+=1,this.bump();break}case 125:{if(r>0)r-=1;else return{val:this.message.slice(t.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(r,t){var i=[];try{i=jn(r)}catch(n){return this.error(P.INVALID_NUMBER_SKELETON,t)}return{val:{type:ar.number,tokens:i,location:t,parsedOptions:this.shouldParseSkeletons?$n(i):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(r,t,i,n){for(var s,l=!1,a=[],h=new Set,c=n.value,f=n.location;;){if(c.length===0){var m=this.clonePosition();if(t!=="select"&&this.bumpIf("=")){var g=this.tryParseDecimalInteger(P.EXPECT_PLURAL_ARGUMENT_SELECTOR,P.INVALID_PLURAL_ARGUMENT_SELECTOR);if(g.err)return g;f=x(m,this.clonePosition()),c=this.message.slice(m.offset,this.offset())}else break}if(h.has(c))return this.error(t==="select"?P.DUPLICATE_SELECT_ARGUMENT_SELECTOR:P.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);c==="other"&&(l=!0),this.bumpSpace();var b=this.clonePosition();if(!this.bumpIf("{"))return this.error(t==="select"?P.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:P.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,x(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(r+1,t,i);if(_.err)return _;var E=this.tryParseArgumentClose(b);if(E.err)return E;a.push([c,{value:_.val,location:x(b,this.clonePosition())}]),h.add(c),this.bumpSpace(),s=this.parseIdentifierIfPossible(),c=s.value,f=s.location}return a.length===0?this.error(t==="select"?P.EXPECT_SELECT_ARGUMENT_SELECTOR:P.EXPECT_PLURAL_ARGUMENT_SELECTOR,x(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!l?this.error(P.MISSING_OTHER_CLAUSE,x(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(r,t){var i=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var s=!1,l=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)s=!0,l=l*10+(a-48),this.bump();else break}var h=x(n,this.clonePosition());return s?(l*=i,ns(l)?{val:l,err:null}:this.error(t,h)):this.error(r,h)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var r=this.position.offset;if(r>=this.message.length)throw Error("out of bound");var t=Ni(this.message,r);if(t===void 0)throw Error("Offset ".concat(r," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(r,t){return{val:null,err:{kind:r,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var r=this.char();r===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=r<65536?1:2)}},e.prototype.bumpIf=function(r){if(Yt(this.message,r,this.offset())){for(var t=0;t<r.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(r){var t=this.offset(),i=this.message.indexOf(r,t);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(r){if(this.offset()>r)throw Error("targetOffset ".concat(r," must be greater than or equal to the current offset ").concat(this.offset()));for(r=Math.min(r,this.message.length);;){var t=this.offset();if(t===r)break;if(t>r)throw Error("targetOffset ".concat(r," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Li(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var r=this.char(),t=this.offset(),i=this.message.charCodeAt(t+(r>=65536?2:1));return i!=null?i:null},e}();function Tt(e){return e>=97&&e<=122||e>=65&&e<=90}function us(e){return Tt(e)||e===47}function cs(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Li(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function hs(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Ht(e){e.forEach(function(r){if(delete r.location,Pi(r)||xi(r))for(var t in r.options)delete r.options[t].location,Ht(r.options[t].value);else _i(r)&&Ai(r.style)||(wi(r)||Si(r))&&Pt(r.style)?delete r.style.location:Ci(r)&&Ht(r.children)})}function fs(e,r){r===void 0&&(r={}),r=A({shouldParseSkeletons:!0,requiresOtherClause:!0},r);var t=new ls(e,r).parse();if(t.err){var i=SyntaxError(P[t.err.kind]);throw i.location=t.err.location,i.originalMessage=t.err.message,i}return r!=null&&r.captureLocation||Ht(t.val),t.val}function bt(e,r){var t=r&&r.cache?r.cache:ys,i=r&&r.serializer?r.serializer:bs,n=r&&r.strategy?r.strategy:ms;return n(e,{cache:t,serializer:i})}function ds(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Mi(e,r,t,i){var n=ds(i)?i:t(i),s=r.get(n);return typeof s=="undefined"&&(s=e.call(this,i),r.set(n,s)),s}function Ri(e,r,t){var i=Array.prototype.slice.call(arguments,3),n=t(i),s=r.get(n);return typeof s=="undefined"&&(s=e.apply(this,i),r.set(n,s)),s}function Ot(e,r,t,i,n){return t.bind(r,e,i,n)}function ms(e,r){var t=e.length===1?Mi:Ri;return Ot(e,this,t,r.cache.create(),r.serializer)}function gs(e,r){return Ot(e,this,Ri,r.cache.create(),r.serializer)}function ps(e,r){return Ot(e,this,Mi,r.cache.create(),r.serializer)}var bs=function(){return JSON.stringify(arguments)};function Lt(){this.cache=Object.create(null)}Lt.prototype.get=function(e){return this.cache[e]};Lt.prototype.set=function(e,r){this.cache[e]=r};var ys={create:function(){return new Lt}},yt={variadic:gs,monadic:ps},lr;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(lr||(lr={}));var ct=function(e){ut(r,e);function r(t,i,n){var s=e.call(this,t)||this;return s.code=i,s.originalMessage=n,s}return r.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},r}(Error),ri=function(e){ut(r,e);function r(t,i,n,s){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(i,'". Options are "').concat(Object.keys(n).join('", "'),'"'),lr.INVALID_VALUE,s)||this}return r}(ct),Es=function(e){ut(r,e);function r(t,i,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(i),lr.INVALID_VALUE,n)||this}return r}(ct),vs=function(e){ut(r,e);function r(t,i){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(i,'"'),lr.MISSING_VALUE,i)||this}return r}(ct),$;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})($||($={}));function _s(e){return e.length<2?e:e.reduce(function(r,t){var i=r[r.length-1];return!i||i.type!==$.literal||t.type!==$.literal?r.push(t):i.value+=t.value,r},[])}function ws(e){return typeof e=="function"}function nt(e,r,t,i,n,s,l){if(e.length===1&&Zt(e[0]))return[{type:$.literal,value:e[0].value}];for(var a=[],h=0,c=e;h<c.length;h++){var f=c[h];if(Zt(f)){a.push({type:$.literal,value:f.value});continue}if(Fn(f)){typeof s=="number"&&a.push({type:$.literal,value:t.getNumberFormat(r).format(s)});continue}var m=f.value;if(!(n&&m in n))throw new vs(m,l);var g=n[m];if(Un(f)){(!g||typeof g=="string"||typeof g=="number")&&(g=typeof g=="string"||typeof g=="number"?String(g):""),a.push({type:typeof g=="string"?$.literal:$.object,value:g});continue}if(wi(f)){var b=typeof f.style=="string"?i.date[f.style]:Pt(f.style)?f.style.parsedOptions:void 0;a.push({type:$.literal,value:t.getDateTimeFormat(r,b).format(g)});continue}if(Si(f)){var b=typeof f.style=="string"?i.time[f.style]:Pt(f.style)?f.style.parsedOptions:i.time.medium;a.push({type:$.literal,value:t.getDateTimeFormat(r,b).format(g)});continue}if(_i(f)){var b=typeof f.style=="string"?i.number[f.style]:Ai(f.style)?f.style.parsedOptions:void 0;b&&b.scale&&(g=g*(b.scale||1)),a.push({type:$.literal,value:t.getNumberFormat(r,b).format(g)});continue}if(Ci(f)){var _=f.children,E=f.value,S=n[E];if(!ws(S))throw new Es(E,"function",l);var N=nt(_,r,t,i,n,s),G=S(N.map(function(j){return j.value}));Array.isArray(G)||(G=[G]),a.push.apply(a,G.map(function(j){return{type:typeof j=="string"?$.literal:$.object,value:j}}))}if(Pi(f)){var M=f.options[g]||f.options.other;if(!M)throw new ri(f.value,g,Object.keys(f.options),l);a.push.apply(a,nt(M.value,r,t,i,n));continue}if(xi(f)){var M=f.options["=".concat(g)];if(!M){if(!Intl.PluralRules)throw new ct(`Intl.PluralRules is not available in this environment.
|
|
2
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3
|
+
`,lr.MISSING_INTL_API,l);var me=t.getPluralRules(r,{type:f.pluralType}).select(g-(f.offset||0));M=f.options[me]||f.options.other}if(!M)throw new ri(f.value,g,Object.keys(f.options),l);a.push.apply(a,nt(M.value,r,t,i,n,g-(f.offset||0)));continue}}return _s(a)}function Ss(e,r){return r?A(A(A({},e||{}),r||{}),Object.keys(e).reduce(function(t,i){return t[i]=A(A({},e[i]),r[i]||{}),t},{})):e}function Ps(e,r){return r?Object.keys(e).reduce(function(t,i){return t[i]=Ss(e[i],r[i]),t},A({},e)):e}function Et(e){return{create:function(){return{get:function(r){return e[r]},set:function(r,t){e[r]=t}}}}}function xs(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:bt(function(){for(var r,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((r=Intl.NumberFormat).bind.apply(r,gt([void 0],t,!1)))},{cache:Et(e.number),strategy:yt.variadic}),getDateTimeFormat:bt(function(){for(var r,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((r=Intl.DateTimeFormat).bind.apply(r,gt([void 0],t,!1)))},{cache:Et(e.dateTime),strategy:yt.variadic}),getPluralRules:bt(function(){for(var r,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((r=Intl.PluralRules).bind.apply(r,gt([void 0],t,!1)))},{cache:Et(e.pluralRules),strategy:yt.variadic})}}var Cs=function(){function e(r,t,i,n){var s=this;if(t===void 0&&(t=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(h){var c=s.formatToParts(h);if(c.length===1)return c[0].value;var f=c.reduce(function(m,g){return!m.length||g.type!==$.literal||typeof m[m.length-1]!="string"?m.push(g.value):m[m.length-1]+=g.value,m},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(h){return nt(s.ast,s.locales,s.formatters,s.formats,h,void 0,s.message)},this.resolvedOptions=function(){var h;return{locale:((h=s.resolvedLocale)===null||h===void 0?void 0:h.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=t,this.resolvedLocale=e.resolveLocale(t),typeof r=="string"){if(this.message=r,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var l=n||{};l.formatters;var a=Rn(l,["formatters"]);this.ast=e.__parse(r,A(A({},a),{locale:this.resolvedLocale}))}else this.ast=r;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Ps(e.formats,i),this.formatters=n&&n.formatters||xs(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(r){if(typeof Intl.Locale!="undefined"){var t=Intl.NumberFormat.supportedLocalesOf(r);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof r=="string"?r:r[0])}},e.__parse=fs,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function As(e,r){if(r==null)return;if(r in e)return e[r];const t=r.split(".");let i=e;for(let n=0;n<t.length;n++)if(typeof i=="object"){if(n>0){const s=t.slice(n,t.length).join(".");if(s in i){i=i[s];break}}i=i[t[n]]}else i=void 0;return i}const Oe={},Ts=(e,r,t)=>t&&(r in Oe||(Oe[r]={}),e in Oe[r]||(Oe[r][e]=t),t),Ui=(e,r)=>{if(r==null)return;if(r in Oe&&e in Oe[r])return Oe[r][e];const t=ht(r);for(let i=0;i<t.length;i++){const n=t[i],s=Bs(n,e);if(s)return Ts(e,r,s)}};let Mt;const Mr=lt({});function Hs(e){return Mt[e]||null}function Fi(e){return e in Mt}function Bs(e,r){if(!Fi(e))return null;const t=Hs(e);return As(t,r)}function Is(e){if(e==null)return;const r=ht(e);for(let t=0;t<r.length;t++){const i=r[t];if(Fi(i))return i}}function ki(e,...r){delete Oe[e],Mr.update(t=>(t[e]=Mn.all([t[e]||{},...r]),t))}hr([Mr],([e])=>Object.keys(e));Mr.subscribe(e=>Mt=e);const st={};function Ns(e,r){st[e].delete(r),st[e].size===0&&delete st[e]}function Di(e){return st[e]}function Os(e){return ht(e).map(r=>{const t=Di(r);return[r,t?[...t]:[]]}).filter(([,r])=>r.length>0)}function Bt(e){return e==null?!1:ht(e).some(r=>{var t;return(t=Di(r))==null?void 0:t.size})}function Ls(e,r){return Promise.all(r.map(i=>(Ns(e,i),i().then(n=>n.default||n)))).then(i=>ki(e,...i))}const Hr={};function Gi(e){if(!Bt(e))return e in Hr?Hr[e]:Promise.resolve();const r=Os(e);return Hr[e]=Promise.all(r.map(([t,i])=>Ls(t,i))).then(()=>{if(Bt(e))return Gi(e);delete Hr[e]}),Hr[e]}const Ms={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"}}},Rs={fallbackLocale:null,loadingDelay:200,formats:Ms,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Us=Rs;function ur(){return Us}const vt=lt(!1);var Fs=Object.defineProperty,ks=Object.defineProperties,Ds=Object.getOwnPropertyDescriptors,ti=Object.getOwnPropertySymbols,Gs=Object.prototype.hasOwnProperty,js=Object.prototype.propertyIsEnumerable,ii=(e,r,t)=>r in e?Fs(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Vs=(e,r)=>{for(var t in r||(r={}))Gs.call(r,t)&&ii(e,t,r[t]);if(ti)for(var t of ti(r))js.call(r,t)&&ii(e,t,r[t]);return e},zs=(e,r)=>ks(e,Ds(r));let It;const ot=lt(null);function ni(e){return e.split("-").map((r,t,i)=>i.slice(0,t+1).join("-")).reverse()}function ht(e,r=ur().fallbackLocale){const t=ni(e);return r?[...new Set([...t,...ni(r)])]:t}function Fe(){return It!=null?It:void 0}ot.subscribe(e=>{It=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Qs=e=>{if(e&&Is(e)&&Bt(e)){const{loadingDelay:r}=ur();let t;return typeof window!="undefined"&&Fe()!=null&&r?t=window.setTimeout(()=>vt.set(!0),r):vt.set(!0),Gi(e).then(()=>{ot.set(e)}).finally(()=>{clearTimeout(t),vt.set(!1)})}return ot.set(e)},fr=zs(Vs({},ot),{set:Qs}),ft=e=>{const r=Object.create(null);return i=>{const n=JSON.stringify(i);return n in r?r[n]:r[n]=e(i)}};var $s=Object.defineProperty,at=Object.getOwnPropertySymbols,ji=Object.prototype.hasOwnProperty,Vi=Object.prototype.propertyIsEnumerable,si=(e,r,t)=>r in e?$s(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Rt=(e,r)=>{for(var t in r||(r={}))ji.call(r,t)&&si(e,t,r[t]);if(at)for(var t of at(r))Vi.call(r,t)&&si(e,t,r[t]);return e},dr=(e,r)=>{var t={};for(var i in e)ji.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&at)for(var i of at(e))r.indexOf(i)<0&&Vi.call(e,i)&&(t[i]=e[i]);return t};const Lr=(e,r)=>{const{formats:t}=ur();if(e in t&&r in t[e])return t[e][r];throw new Error(`[svelte-i18n] Unknown "${r}" ${e} format.`)},Xs=ft(e=>{var r=e,{locale:t,format:i}=r,n=dr(r,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(n=Lr("number",i)),new Intl.NumberFormat(t,n)}),Zs=ft(e=>{var r=e,{locale:t,format:i}=r,n=dr(r,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?n=Lr("date",i):Object.keys(n).length===0&&(n=Lr("date","short")),new Intl.DateTimeFormat(t,n)}),Ws=ft(e=>{var r=e,{locale:t,format:i}=r,n=dr(r,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?n=Lr("time",i):Object.keys(n).length===0&&(n=Lr("time","short")),new Intl.DateTimeFormat(t,n)}),qs=(e={})=>{var r=e,{locale:t=Fe()}=r,i=dr(r,["locale"]);return Xs(Rt({locale:t},i))},Js=(e={})=>{var r=e,{locale:t=Fe()}=r,i=dr(r,["locale"]);return Zs(Rt({locale:t},i))},Ys=(e={})=>{var r=e,{locale:t=Fe()}=r,i=dr(r,["locale"]);return Ws(Rt({locale:t},i))},Ks=ft((e,r=Fe())=>new Cs(e,r,ur().formats,{ignoreTag:ur().ignoreTag})),eo=(e,r={})=>{var t,i,n,s;let l=r;typeof e=="object"&&(l=e,e=l.id);const{values:a,locale:h=Fe(),default:c}=l;if(h==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=Ui(e,h);if(!f)f=(s=(n=(i=(t=ur()).handleMissingMessage)==null?void 0:i.call(t,{locale:h,id:e,defaultValue:c}))!=null?n:c)!=null?s:e;else if(typeof f!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),f;if(!a)return f;let m=f;try{m=Ks(f,h).format(a)}catch(g){g instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,g.message)}return m},ro=(e,r)=>Ys(r).format(e),to=(e,r)=>Js(r).format(e),io=(e,r)=>qs(r).format(e),no=(e,r=Fe())=>Ui(e,r),so=hr([fr,Mr],()=>eo);hr([fr],()=>ro);hr([fr],()=>to);hr([fr],()=>io);hr([fr,Mr],()=>no);function oi(e,r){ki(e,r)}function oo(e){fr.set(e)}const ai={en:{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.',registerPromoCode:"Promotional Code (Facultative)",promoCodeError:"",registerSecurityQuestion:"Security Question",registerSecurityQuestion2:"Document Type (DNI, Foreign ID Card, Passport)",registerSecurityQuestionError:"Security question must be at least 1 character long and maximum 120 characters.",registerSecurityQuestionError2:"Only letters and numbers are accepted.",registerSecurityAnswer:"Security Answer",registerSecurityAnswer2:"Document Number",registerSecurityAnswerError:"Security answer must be at least 1 character long and maximum 120 characters.",registerSecurityAnswerError2:"Only letters and numbers are accepted.",registerNext:"Next"},"zh-hk":{registerTitle:"創建您的帳戶",registerSubtitle:"已經有一個帳戶?",registerSubtitleLogin:"登錄",registerEmail:"電子郵件",registerEmailError:"電子郵件應包含“@”和 2-3 個字母長的域。",registerUsername:"用戶名",registerUsernameError:"名稱的長度必須至少為 2 個字符且不包含特殊字符。",registerPassword:"密碼",registerPasswordError:"密碼長度必須為 8-20 個字符,並且至少包含 1 個大寫字母、1 個數字和 1 個特殊字符。",registerSimplePasswordError:"密码长度必须为 8-20 个字符。",registerConfirmPassword:"確認密碼",registerConfirmPasswordError:"它與密碼不匹配。",registerPromoCode:"促销代码",promoCodeError:"",registerSecurityQuestion:"安全問題",registerSecurityQuestionError:"安全問題的長度必須至少為 1 個字符,最多 120 個字符。",registerSecurityAnswer:"安全答案",registerSecurityAnswerError:"安全答案的長度必須至少為 1 個字符,最多為 120 個字符。",registerNext:"下一個"},fr:{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.",registerPromoCode:"Code Promotionnel (Facultatif)",promoCodeError:"",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:{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 alan adı içermelidir.",registerUsername:"Kullanıcı adı",registerUsernameError:"Ad en az 4-20 karakter uzunluğunda olmalı ve özel karakter içermemelidir.",registerPassword:"Şifre",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 karakter uzunluğunda, 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",registerPromoCode:"Promosyon Kodu (İsteğe bağlı)",promoCodeError:"",registerSecurityQuestion2:"Belge Türü (DNI, Yabancı Kimlik Kartı, Pasaport)",registerSecurityQuestionError2:"Yalnızca harf ve rakamlar kabul edilir.",registerSecurityAnswer2:"Belge Numarası",registerSecurityAnswerError2:"Yalnızca harf ve rakamlar kabul edilir."},ro:{registerTitle:"Creeaza 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:{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",registerSecurityQuestion2:"Tipo de Documento (DNI, CE o Pasaporte)",registerSecurityQuestionError:"La Pregunta de seguridad debe tener un mínimo de 1 carácter y un máximo de 120 caracteres",registerSecurityQuestionError2:"Solo se aceptan letras y números.",registerSecurityAnswer:"Respuesta de seguridad",registerSecurityAnswer2:"Número de Documento",registerSecurityAnswerError:"La Respuesta de seguridad debe tener un mínimo de 1 carácter y un máximo de 120 caracteres",registerSecurityAnswerError2:"Solo se aceptan letras y números.",registerNext:"Siguiente"},pt:{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"},hr:{registerTitle:"Kreiraj svoj račun",registerSubtitle:"Već imate račun?",registerSubtitleLogin:"Prijava","registerE-mail":"E-mail","registerE-mailError":"E-mail treba sadržavati '@' i domenu od 2-3 slova.",registerUsername:"Korisničko ime",registerUsernameError:"Ime mora imati najmanje 4-20 znakova i ne smije sadržavati posebne znakove.",registerPassword:"Lozinka",registerPasswordError:"Lozinka mora imati 8-20 znakova",registerSimplePasswordError:"Lozinka mora imati 8-20 znakova",registerConfirmPassword:"Potvrdi lozinku",registerConfirmPasswordError:"Ne odgovara lozinci.",registerPromoCode:"Promotivni kod (fakultativno)",promoCodeError:"promoCodeError",registerSecurityQuestion:"Sigurnosno pitanje",registerSecurityQuestion2:"Vrsta dokumenta",registerSecurityQuestionError:"Sigurnosno pitanje mora imati najmanje 1 znak i najviše 120 znakova.",registerSecurityQuestionError2:"Prihvaćaju se samo slova i brojke.",registerSecurityAnswer:"Sigurnosni Odgovor",registerSecurityAnswer2:"Broj dokumenta",registerSecurityAnswerError:"Sigurnosni odgovor mora imati najmanje 1 znak i najviše 120 znakova.",registerSecurityAnswerError2:"Prihvaćaju se samo slova i brojke.",registerNext:"Sljedeće"},"pt-br":{registerTitle:"Crie sua conta",registerSubtitle:"Você ja tem uma conta?",registerSubtitleLogin:"Iniciar sessão",registerEmail:"Correio eletrônico",registerEmailError:"O correio eletrônico deve conter '@' e um domínio de pelo menos 2-3 letras largas.",registerUsername:"Usuário",registerUsernameError:"O nome deve conter pelo menos 4 caracteres largos e não ter caracteres especiais.",registerPassword:"Senha",registerPasswordError:"A senha deve ter de 8 a 20 caracteres de largura.,e contener pelo menos 1 mayúscula, 1 número e 1 caractere especial",registerSimplePasswordError:"A senha deve ter de 8 a 20 caracteres de largura.",registerConfirmPassword:"Confirmar contrasenha",registerConfirmPasswordError:"Não coincide com a contraseña",registerPromoCode:"Código promocional (Facultativo)",promoCodeError:"",registerSecurityQuestion:"Pergunta de segurança",registerSecurityQuestion2:"Tipo de documento (Identificação Nacional,Carteira de identidade internacional, Pasaporte)",registerSecurityQuestionError:"A questão de segurança deve ter pelo menos 1 caractere e no máximo 120 caracteres.",registerSecurityQuestionError2:"Somente letras e números individuais são aceitos",registerSecurityAnswer:"Resposta de segurança",registerSecurityAnswer2:"Número de documento",registerSecurityAnswerError:"A resposta de segurança deve ter pelo menos 1 caractere e no máximo 120 caracteres",registerSecurityAnswerError2:"Solo letras y números son aceptados",registerNext:"Próximo"},"es-mx":{registerTitle:"Crear su cuenta",registerSubtitle:"¿Ya tiene cuenta?",registerSubtitleLogin:"Iniciar Sesión",registerEmail:"Correo electrónico",registerEmailError:"El correo electrónico debe contener '@' y un dominio de al menos 2-3 letras de largo.",registerUsername:"Usuario",registerUsernameError:"El nombre debe contener al menos 4 caracteres de largo y no tener caracteres especiales.",registerPassword:"Contraseña",registerPasswordError:"La contraseña debe ser de 8 a 20 caracteres de largo., y contener al menos 1 mayúscula, 1 número y 1 caracter especial",registerSimplePasswordError:"La contraseña debe ser de 8 a 20 caracteres de largo.",registerConfirmPassword:"Confirmar contraseña",registerConfirmPasswordError:"No coincide con la contraseña",registerPromoCode:"Código promocional (Facultativo)",promoCodeError:"",registerSecurityQuestion:"Pregunta de seguridad",registerSecurityQuestion2:"Tipo de documento (Identificación Nacional, Tarjeta de id internacional, Pasaporte)",registerSecurityQuestionError:"La pregunta de seguridad debe ser de al menos 1 caracter y máximo 120 caracteres.",registerSecurityQuestionError2:"Solo letras y números son aceptados",registerSecurityAnswer:"Respuesta de seguridad",registerSecurityAnswer2:"Número de documento",registerSecurityAnswerError:"La respuesta de seguridad debe ser de al menos 1 caracter y máximo 120 caracteres",registerSecurityAnswerError2:"Solo letras y números son aceptados",registerNext:"Siguiente"}};function ao(e){Yi(e,"svelte-q3pyzz",".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-registration-color-primary, var(--emfe-w-color-primary, #D0046C));font-size:14px;font-weight:400;text-decoration:none;cursor:pointer}.EmailContainer,.UserContainer,.PasswordContainer,.ConfirmPasswordContainer,.PromoCodeContainer,.SecurityQuestionContainer,.SecurityAnswerContainer{color:var(--emfe-w-registration-contrast, 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,.PromoCodeContainer label,.SecurityQuestionContainer label,.SecurityAnswerContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.EmailContainer input,.UserContainer input,.PasswordContainer input,.ConfirmPasswordContainer input,.PromoCodeContainer 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,.PromoCodeContainer.InvalidField input,.SecurityQuestionContainer.InvalidField input,.SecurityAnswerContainer.InvalidField input{border:1px solid var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C));background:var(--emfe-w-color-pale, #FBECF4);color:var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C))}.EmailContainer.Hidden,.UserContainer.Hidden,.PasswordContainer.Hidden,.ConfirmPasswordContainer.Hidden,.PromoCodeContainer.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-categories-color-secondary, var(--emfe-w-color-secondary, #FD2839))}.TogglePasswordVisibility,.ToggleConfirmPasswordVisibility{height:13px;position:absolute;right:8px;bottom:55px}.TogglePasswordVisibility.InvalidToggle path,.TogglePasswordVisibility.InvalidToggle circle,.TogglePasswordVisibility.InvalidToggle rect,.ToggleConfirmPasswordVisibility.InvalidToggle path,.ToggleConfirmPasswordVisibility.InvalidToggle circle,.ToggleConfirmPasswordVisibility.InvalidToggle rect{fill:var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C))}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect,.ToggleConfirmPasswordVisibility path,.ToggleConfirmPasswordVisibility circle,.ToggleConfirmPasswordVisibility rect{fill:var(--emfe-w-registration-contrast, var(--emfe-w-color-gray-300, #58586B))}.InvalidInput{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909));font-size:10px;position:absolute;padding-top:5px;top:55px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:12px;color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.RegisterStepNext{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background:var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-registration-color-primary, 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}")}function li(e){let r,t=e[31]("registerEmailError")+"",i;return{c(){r=v("p"),i=T(t),o(r,"class","InvalidInput")},m(n,s){ae(n,r,s),u(r,i)},p(n,s){s[1]&1&&t!==(t=n[31]("registerEmailError")+"")&&U(i,t)},d(n){n&&Z(r)}}}function ui(e){let r,t=e[31]("registerUsernameError")+"",i;return{c(){r=v("p"),i=T(t),o(r,"class","InvalidInput")},m(n,s){ae(n,r,s),u(r,i)},p(n,s){s[1]&1&&t!==(t=n[31]("registerUsernameError")+"")&&U(i,t)},d(n){n&&Z(r)}}}function lo(e){let r,t,i,n,s,l,a,h,c;return{c(){r=w("svg"),t=w("defs"),i=w("style"),n=T(".a{fill:var(--emfe-w-registration-typography, var(--emfe-w-color-background, #07072A));}"),s=w("g"),l=w("path"),a=w("circle"),o(l,"class","a"),o(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"),o(l,"transform","translate(0)"),o(a,"class","a"),o(a,"cx","2.779"),o(a,"cy","2.779"),o(a,"r","2.779"),o(a,"transform","translate(20.827 30.303)"),o(s,"transform","translate(-14.185 -27.832)"),o(r,"class","TogglePasswordVisibility"),o(r,"xmlns","http://www.w3.org/2000/svg"),o(r,"width","18.843"),o(r,"height","10.5"),o(r,"viewBox","0 0 18.843 10.5")},m(f,m){ae(f,r,m),u(r,t),u(t,i),u(i,n),u(r,s),u(s,l),u(s,a),h||(c=C(r,"click",e[63]),h=!0)},p:X,d(f){f&&Z(r),h=!1,c()}}}function uo(e){let r,t,i,n,s,l,a,h,c,f,m,g,b,_,E;return{c(){r=w("svg"),t=w("defs"),i=w("style"),n=T(".a{fill:var(--emfe-w-registration-typography, var(--emfe-w-color-background, #07072A));}"),s=w("g"),l=w("circle"),a=w("g"),h=w("path"),c=w("path"),f=w("g"),m=w("path"),g=w("path"),b=w("rect"),o(l,"class","a"),o(l,"cx","0.05"),o(l,"cy","0.05"),o(l,"r","0.05"),o(l,"transform","translate(121.017 31.148)"),o(h,"class","a"),o(h,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),o(h,"transform","translate(-142.164 -39.123)"),o(c,"class","a"),o(c,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),o(c,"transform","translate(-136.413 -42.068)"),o(a,"transform","translate(117.499 27.37)"),o(m,"class","a"),o(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"),o(m,"transform","translate(-110.856 -33.157)"),o(g,"class","a"),o(g,"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"),o(g,"transform","translate(-130.743 -29.617)"),o(f,"transform","translate(110.856 24.899)"),o(b,"class","a"),o(b,"width","0.972"),o(b,"height","15.861"),o(b,"rx","0.486"),o(b,"transform","translate(114.827 23.858) rotate(-39.315)"),o(s,"transform","translate(-110.856 -23.242)"),o(r,"class","TogglePasswordVisibility"),o(r,"xmlns","http://www.w3.org/2000/svg"),o(r,"width","18.844"),o(r,"height","12.887"),o(r,"viewBox","0 0 18.844 12.887")},m(S,N){ae(S,r,N),u(r,t),u(t,i),u(i,n),u(r,s),u(s,l),u(s,a),u(a,h),u(a,c),u(s,f),u(f,m),u(f,g),u(s,b),_||(E=C(r,"click",e[62]),_=!0)},p:X,d(S){S&&Z(r),_=!1,E()}}}function ci(e){let r,t=e[31]("registerPasswordError")+"",i;return{c(){r=v("p"),i=T(t),o(r,"class","InvalidInput")},m(n,s){ae(n,r,s),u(r,i)},p(n,s){s[1]&1&&t!==(t=n[31]("registerPasswordError")+"")&&U(i,t)},d(n){n&&Z(r)}}}function hi(e){let r,t=e[31]("registerSimplePasswordError")+"",i;return{c(){r=v("p"),i=T(t),o(r,"class","InvalidInput")},m(n,s){ae(n,r,s),u(r,i)},p(n,s){s[1]&1&&t!==(t=n[31]("registerSimplePasswordError")+"")&&U(i,t)},d(n){n&&Z(r)}}}function co(e){let r,t,i,n,s,l,a,h,c;return{c(){r=w("svg"),t=w("defs"),i=w("style"),n=T(".a{fill:var(--emfe-w-registration-typography, var(--emfe-w-color-background, #07072A));}"),s=w("g"),l=w("path"),a=w("circle"),o(l,"class","a"),o(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"),o(l,"transform","translate(0)"),o(a,"class","a"),o(a,"cx","2.779"),o(a,"cy","2.779"),o(a,"r","2.779"),o(a,"transform","translate(20.827 30.303)"),o(s,"transform","translate(-14.185 -27.832)"),o(r,"class","ToggleConfirmPasswordVisibility"),o(r,"xmlns","http://www.w3.org/2000/svg"),o(r,"width","18.843"),o(r,"height","10.5"),o(r,"viewBox","0 0 18.843 10.5")},m(f,m){ae(f,r,m),u(r,t),u(t,i),u(i,n),u(r,s),u(s,l),u(s,a),h||(c=C(r,"click",e[69]),h=!0)},p:X,d(f){f&&Z(r),h=!1,c()}}}function ho(e){let r,t,i,n,s,l,a,h,c,f,m,g,b,_,E;return{c(){r=w("svg"),t=w("defs"),i=w("style"),n=T(".a{fill:var(--emfe-w-registration-typography, var(--emfe-w-color-background, #07072A));}"),s=w("g"),l=w("circle"),a=w("g"),h=w("path"),c=w("path"),f=w("g"),m=w("path"),g=w("path"),b=w("rect"),o(l,"class","a"),o(l,"cx","0.05"),o(l,"cy","0.05"),o(l,"r","0.05"),o(l,"transform","translate(121.017 31.148)"),o(h,"class","a"),o(h,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),o(h,"transform","translate(-142.164 -39.123)"),o(c,"class","a"),o(c,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),o(c,"transform","translate(-136.413 -42.068)"),o(a,"transform","translate(117.499 27.37)"),o(m,"class","a"),o(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"),o(m,"transform","translate(-110.856 -33.157)"),o(g,"class","a"),o(g,"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"),o(g,"transform","translate(-130.743 -29.617)"),o(f,"transform","translate(110.856 24.899)"),o(b,"class","a"),o(b,"width","0.972"),o(b,"height","15.861"),o(b,"rx","0.486"),o(b,"transform","translate(114.827 23.858) rotate(-39.315)"),o(s,"transform","translate(-110.856 -23.242)"),o(r,"class","ToggleConfirmPasswordVisibility"),o(r,"xmlns","http://www.w3.org/2000/svg"),o(r,"width","18.844"),o(r,"height","12.887"),o(r,"viewBox","0 0 18.844 12.887")},m(S,N){ae(S,r,N),u(r,t),u(t,i),u(i,n),u(r,s),u(s,l),u(s,a),u(a,h),u(a,c),u(s,f),u(f,m),u(f,g),u(s,b),_||(E=C(r,"click",e[68]),_=!0)},p:X,d(S){S&&Z(r),_=!1,E()}}}function fi(e){let r,t=e[31]("registerConfirmPasswordError")+"",i;return{c(){r=v("p"),i=T(t),o(r,"class","InvalidInput")},m(n,s){ae(n,r,s),u(r,i)},p(n,s){s[1]&1&&t!==(t=n[31]("registerConfirmPasswordError")+"")&&U(i,t)},d(n){n&&Z(r)}}}function di(e){let r,t=e[31]("promoCodeError")+"",i;return{c(){r=v("p"),i=T(t),o(r,"class","InvalidInput")},m(n,s){ae(n,r,s),u(r,i)},p(n,s){s[1]&1&&t!==(t=n[31]("promoCodeError")+"")&&U(i,t)},d(n){n&&Z(r)}}}function mi(e){let r,t=(e[2]=="true"?e[31]("registerSecurityQuestionError2"):e[31]("registerSecurityQuestionError"))+"",i;return{c(){r=v("p"),i=T(t),o(r,"class","InvalidInput")},m(n,s){ae(n,r,s),u(r,i)},p(n,s){s[0]&4|s[1]&1&&t!==(t=(n[2]=="true"?n[31]("registerSecurityQuestionError2"):n[31]("registerSecurityQuestionError"))+"")&&U(i,t)},d(n){n&&Z(r)}}}function gi(e){let r,t=(e[2]=="true"?e[31]("registerSecurityAnswerError2"):e[31]("registerSecurityAnswerError"))+"",i;return{c(){r=v("p"),i=T(t),o(r,"class","InvalidInput")},m(n,s){ae(n,r,s),u(r,i)},p(n,s){s[0]&4|s[1]&1&&t!==(t=(n[2]=="true"?n[31]("registerSecurityAnswerError2"):n[31]("registerSecurityAnswerError"))+"")&&U(i,t)},d(n){n&&Z(r)}}}function fo(e){let r,t,i,n=e[31]("registerTitle")+"",s,l,a,h=e[31]("registerSubtitle")+"",c,f,m,g=e[31]("registerSubtitleLogin")+"",b,_,E,S,N,G=e[31]("registerEmail")+"",M,me,j,ye,F,ke,Te,De,L,z,le=e[31]("registerUsername")+"",W,ue,D,Q,R,xe,Le,we,He,I,q,Ee=e[31]("registerPassword")+"",mr,ve,Me,Rr,k,Ge,Ur,gr,je,Re,Ue,pr,V,Ce,Ve=e[31]("registerConfirmPassword")+"",br,Fr,ze,kr,J,Dr,yr,Qe,Gr,ce,Be,$e=e[31]("registerPromoCode")+"",Er,jr,Vr,he,zr,Xe,Qr,ge,Ie,Ze=(e[2]=="true"?e[31]("registerSecurityQuestion2"):e[31]("registerSecurityQuestion"))+"",vr,$r,We,Xr,fe,Zr,qe,Wr,pe,Ne,Je=(e[2]=="true"?e[31]("registerSecurityAnswer2"):e[31]("registerSecurityAnswer"))+"",_r,qr,Ye,Jr,de,Yr,Ke,Kr,Ae,er=e[31]("registerNext")+"",wr,rr,p,Y,O=e[4]&&li(e),K=e[5]&&ui(e);function Ut(d,y){return d[26]?uo:lo}let et=Ut(e),Se=et(e),ee=e[6]&&e[0]!=="true"&&ci(e),re=e[6]&&e[0]==="true"&&hi(e);function Ft(d,y){return d[27]?ho:co}let rt=Ft(e),Pe=rt(e),te=e[7]&&fi(e),ie=e[10]&&di(e),ne=e[8]&&mi(e),se=e[9]&&gi(e);return{c(){var d,y,Sr,Pr,xr,Cr,Ar,Tr;r=v("div"),t=v("div"),i=v("h2"),s=T(n),l=H(),a=v("p"),c=T(h),f=H(),m=v("span"),b=T(g),_=H(),E=v("form"),S=v("div"),N=v("label"),M=T(G),me=T(":"),j=v("span"),j.textContent="*",ye=H(),F=v("input"),ke=H(),O&&O.c(),De=H(),L=v("div"),z=v("label"),W=T(le),ue=T(":"),D=v("span"),D.textContent="*",Q=H(),R=v("input"),Le=H(),K&&K.c(),He=H(),I=v("div"),q=v("label"),mr=T(Ee),ve=T(":"),Me=v("span"),Me.textContent="*",Rr=H(),k=v("input"),Ur=H(),Se.c(),gr=H(),ee&&ee.c(),je=H(),re&&re.c(),pr=H(),V=v("div"),Ce=v("label"),br=T(Ve),Fr=T(":"),ze=v("span"),ze.textContent="*",kr=H(),J=v("input"),Dr=H(),Pe.c(),yr=H(),te&&te.c(),Gr=H(),ce=v("div"),Be=v("label"),Er=T($e),jr=T(":"),Vr=H(),he=v("input"),zr=H(),ie&&ie.c(),Qr=H(),ge=v("div"),Ie=v("label"),vr=T(Ze),$r=T(":"),We=v("span"),We.textContent="*",Xr=H(),fe=v("input"),Zr=H(),ne&&ne.c(),Wr=H(),pe=v("div"),Ne=v("label"),_r=T(Je),qr=T(":"),Ye=v("span"),Ye.textContent="*",Jr=H(),de=v("input"),Yr=H(),se&&se.c(),Kr=H(),Ae=v("button"),wr=T(er),o(i,"class","RegisterFormTitle"),o(m,"class","FormLoginCallToAction"),o(a,"class","RegisterFormSubtitle"),o(t,"class","RegisterFormHeader"),o(j,"class","FormRequired"),o(N,"for","Email"),o(F,"type","text"),o(F,"id","Email"),o(S,"class",Te="EmailContainer "+(e[4]&&!e[11]?"InvalidField":"")+(((d=e[18])==null?void 0:d.indexOf("email"))>=0?"Hidden":"")),o(D,"class","FormRequired"),o(z,"for","UserName"),o(R,"type","text"),o(R,"id","UserName"),o(R,"autocomplete",xe=e[1]?"username":"off"),o(L,"class",we="UserContainer "+(e[5]&&!e[12]?"InvalidField":"")+(((y=e[18])==null?void 0:y.indexOf("username"))>=0?"Hidden":"")),o(Me,"class","FormRequired"),o(q,"for","Password"),o(k,"name","new-password"),o(k,"type","password"),o(k,"id","new-password"),o(k,"autocomplete",Ge=e[1]?"new-password":"off"),o(k,"aria-describedby","password-constraints"),o(I,"class",Re="PasswordContainer "+(e[6]&&!e[13]?"InvalidField":"")+(((Sr=e[18])==null?void 0:Sr.indexOf("password"))>=0?"Hidden":"")),I.hidden=Ue=((Pr=e[18])==null?void 0:Pr.indexOf("password"))>=0,o(ze,"class","FormRequired"),o(Ce,"for","ConfirmPassword"),o(J,"type","password"),o(J,"id","ConfirmPassword"),o(V,"class",Qe="ConfirmPasswordContainer "+(e[7]&&!e[14]?"InvalidField":"")+(((xr=e[18])==null?void 0:xr.indexOf("confirmPassword"))>=0?"Hidden":"")),o(Be,"for","PromoCode"),o(he,"type","text"),o(he,"id","PromoCode"),o(ce,"class",Xe="PromoCodeContainer "+(((Cr=e[18])==null?void 0:Cr.indexOf("promoCode"))>=0?"Hidden":"")),o(We,"class","FormRequired"),o(Ie,"for","SecurityQuestion"),o(fe,"type","text"),o(fe,"id","SecurityQuestion"),o(ge,"class",qe="SecurityQuestionContainer "+(e[8]&&!e[15]?"InvalidField":"")+(((Ar=e[18])==null?void 0:Ar.indexOf("securityQuestion"))>=0?"Hidden":"")),o(Ye,"class","FormRequired"),o(Ne,"for","SecurityAnswer"),o(de,"type","text"),o(de,"id","SecurityAnswer"),o(pe,"class",Ke="SecurityAnswerContainer "+(e[9]&&!e[16]?"InvalidField":"")+(((Tr=e[18])==null?void 0:Tr.indexOf("securityAnswer"))>=0?"Hidden":"")),o(Ae,"class","RegisterStepNext"),Ae.disabled=rr=!e[30],o(E,"class","RegisterFormContent")},m(d,y){ae(d,r,y),u(r,t),u(t,i),u(i,s),u(t,l),u(t,a),u(a,c),u(a,f),u(a,m),u(m,b),u(r,_),u(r,E),u(E,S),u(S,N),u(N,M),u(N,me),u(N,j),u(S,ye),u(S,F),oe(F,e[20]),u(S,ke),O&&O.m(S,null),u(E,De),u(E,L),u(L,z),u(z,W),u(z,ue),u(z,D),u(L,Q),u(L,R),oe(R,e[19]),u(L,Le),K&&K.m(L,null),u(E,He),u(E,I),u(I,q),u(q,mr),u(q,ve),u(q,Me),u(I,Rr),u(I,k),oe(k,e[21]),e[61](k),u(I,Ur),Se.m(I,null),u(I,gr),ee&&ee.m(I,null),u(I,je),re&&re.m(I,null),u(E,pr),u(E,V),u(V,Ce),u(Ce,br),u(Ce,Fr),u(Ce,ze),u(V,kr),u(V,J),oe(J,e[22]),e[67](J),u(V,Dr),Pe.m(V,null),u(V,yr),te&&te.m(V,null),u(E,Gr),u(E,ce),u(ce,Be),u(Be,Er),u(Be,jr),u(ce,Vr),u(ce,he),oe(he,e[25]),u(ce,zr),ie&&ie.m(ce,null),u(E,Qr),u(E,ge),u(ge,Ie),u(Ie,vr),u(Ie,$r),u(Ie,We),u(ge,Xr),u(ge,fe),oe(fe,e[23]),u(ge,Zr),ne&&ne.m(ge,null),u(E,Wr),u(E,pe),u(pe,Ne),u(Ne,_r),u(Ne,qr),u(Ne,Ye),u(pe,Jr),u(pe,de),oe(de,e[24]),u(pe,Yr),se&&se.m(pe,null),u(E,Kr),u(E,Ae),u(Ae,wr),e[80](r),p||(Y=[C(m,"click",e[51]),C(F,"input",e[52]),C(F,"keyup",e[33]),C(F,"focus",e[53]),C(F,"blur",e[54]),C(R,"input",e[55]),C(R,"keyup",e[34]),C(R,"focus",e[56]),C(R,"blur",e[57]),C(k,"input",e[58]),C(k,"keyup",e[39]),C(k,"focus",e[59]),C(k,"blur",e[60]),C(J,"input",e[64]),C(J,"keyup",e[40]),C(J,"focus",e[65]),C(J,"blur",e[66]),C(he,"input",e[70]),C(he,"keyup",e[41]),C(he,"focus",e[71]),C(he,"blur",e[72]),C(fe,"input",e[73]),C(fe,"keyup",e[42]),C(fe,"focus",e[74]),C(fe,"blur",e[75]),C(de,"input",e[76]),C(de,"keyup",e[43]),C(de,"focus",e[77]),C(de,"blur",e[78]),C(Ae,"click",e[79])],p=!0)},p(d,y){var Sr,Pr,xr,Cr,Ar,Tr,kt,Dt;y[1]&1&&n!==(n=d[31]("registerTitle")+"")&&U(s,n),y[1]&1&&h!==(h=d[31]("registerSubtitle")+"")&&U(c,h),y[1]&1&&g!==(g=d[31]("registerSubtitleLogin")+"")&&U(b,g),y[1]&1&&G!==(G=d[31]("registerEmail")+"")&&U(M,G),y[0]&1048576&&F.value!==d[20]&&oe(F,d[20]),d[4]?O?O.p(d,y):(O=li(d),O.c(),O.m(S,null)):O&&(O.d(1),O=null),y[0]&264208&&Te!==(Te="EmailContainer "+(d[4]&&!d[11]?"InvalidField":"")+(((Sr=d[18])==null?void 0:Sr.indexOf("email"))>=0?"Hidden":""))&&o(S,"class",Te),y[1]&1&&le!==(le=d[31]("registerUsername")+"")&&U(W,le),y[0]&2&&xe!==(xe=d[1]?"username":"off")&&o(R,"autocomplete",xe),y[0]&524288&&R.value!==d[19]&&oe(R,d[19]),d[5]?K?K.p(d,y):(K=ui(d),K.c(),K.m(L,null)):K&&(K.d(1),K=null),y[0]&266272&&we!==(we="UserContainer "+(d[5]&&!d[12]?"InvalidField":"")+(((Pr=d[18])==null?void 0:Pr.indexOf("username"))>=0?"Hidden":""))&&o(L,"class",we),y[1]&1&&Ee!==(Ee=d[31]("registerPassword")+"")&&U(mr,Ee),y[0]&2&&Ge!==(Ge=d[1]?"new-password":"off")&&o(k,"autocomplete",Ge),y[0]&2097152&&k.value!==d[21]&&oe(k,d[21]),et===(et=Ut(d))&&Se?Se.p(d,y):(Se.d(1),Se=et(d),Se&&(Se.c(),Se.m(I,gr))),d[6]&&d[0]!=="true"?ee?ee.p(d,y):(ee=ci(d),ee.c(),ee.m(I,je)):ee&&(ee.d(1),ee=null),d[6]&&d[0]==="true"?re?re.p(d,y):(re=hi(d),re.c(),re.m(I,null)):re&&(re.d(1),re=null),y[0]&270400&&Re!==(Re="PasswordContainer "+(d[6]&&!d[13]?"InvalidField":"")+(((xr=d[18])==null?void 0:xr.indexOf("password"))>=0?"Hidden":""))&&o(I,"class",Re),y[0]&262144&&Ue!==(Ue=((Cr=d[18])==null?void 0:Cr.indexOf("password"))>=0)&&(I.hidden=Ue),y[1]&1&&Ve!==(Ve=d[31]("registerConfirmPassword")+"")&&U(br,Ve),y[0]&4194304&&J.value!==d[22]&&oe(J,d[22]),rt===(rt=Ft(d))&&Pe?Pe.p(d,y):(Pe.d(1),Pe=rt(d),Pe&&(Pe.c(),Pe.m(V,yr))),d[7]?te?te.p(d,y):(te=fi(d),te.c(),te.m(V,null)):te&&(te.d(1),te=null),y[0]&278656&&Qe!==(Qe="ConfirmPasswordContainer "+(d[7]&&!d[14]?"InvalidField":"")+(((Ar=d[18])==null?void 0:Ar.indexOf("confirmPassword"))>=0?"Hidden":""))&&o(V,"class",Qe),y[1]&1&&$e!==($e=d[31]("registerPromoCode")+"")&&U(Er,$e),y[0]&33554432&&he.value!==d[25]&&oe(he,d[25]),d[10]?ie?ie.p(d,y):(ie=di(d),ie.c(),ie.m(ce,null)):ie&&(ie.d(1),ie=null),y[0]&262144&&Xe!==(Xe="PromoCodeContainer "+(((Tr=d[18])==null?void 0:Tr.indexOf("promoCode"))>=0?"Hidden":""))&&o(ce,"class",Xe),y[0]&4|y[1]&1&&Ze!==(Ze=(d[2]=="true"?d[31]("registerSecurityQuestion2"):d[31]("registerSecurityQuestion"))+"")&&U(vr,Ze),y[0]&8388608&&fe.value!==d[23]&&oe(fe,d[23]),d[8]?ne?ne.p(d,y):(ne=mi(d),ne.c(),ne.m(ge,null)):ne&&(ne.d(1),ne=null),y[0]&295168&&qe!==(qe="SecurityQuestionContainer "+(d[8]&&!d[15]?"InvalidField":"")+(((kt=d[18])==null?void 0:kt.indexOf("securityQuestion"))>=0?"Hidden":""))&&o(ge,"class",qe),y[0]&4|y[1]&1&&Je!==(Je=(d[2]=="true"?d[31]("registerSecurityAnswer2"):d[31]("registerSecurityAnswer"))+"")&&U(_r,Je),y[0]&16777216&&de.value!==d[24]&&oe(de,d[24]),d[9]?se?se.p(d,y):(se=gi(d),se.c(),se.m(pe,null)):se&&(se.d(1),se=null),y[0]&328192&&Ke!==(Ke="SecurityAnswerContainer "+(d[9]&&!d[16]?"InvalidField":"")+(((Dt=d[18])==null?void 0:Dt.indexOf("securityAnswer"))>=0?"Hidden":""))&&o(pe,"class",Ke),y[1]&1&&er!==(er=d[31]("registerNext")+"")&&U(wr,er),y[0]&1073741824&&rr!==(rr=!d[30])&&(Ae.disabled=rr)},i:X,o:X,d(d){d&&Z(r),O&&O.d(),K&&K.d(),e[61](null),Se.d(),ee&&ee.d(),re&&re.d(),e[67](null),Pe.d(),te&&te.d(),ie&&ie.d(),ne&&ne.d(),se&&se.d(),e[80](null),p=!1,cr(Y)}}}function mo(e,r,t){let i;Ji(e,so,p=>t(31,i=p));let{lang:n=""}=r,{disabledfields:s=""}=r,{defaultoptions:l=""}=r,{simplepasswordvalidation:a="false"}=r,{clientstyling:h=""}=r,{clientstylingurl:c=""}=r,{translationurl:f=""}=r,{savecredentials:m=""}=r,{custominputtextswitch:g="false"}=r,b=!1,_=!1,E=!1,S=!1,N=!1,G=!1,M=!1,me=!1,j=!1,ye=!1,F=!1,ke=!1,Te=!1,De=!1,L,z="",le="",W="",ue="",D="",Q="",R="",xe=!1,Le=!1,we,He,I=!1,q,Ee={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}$/,document:/^(?=.*[a-zA-Z0-9])[a-zA-Z0-9\s]+$/};const mr=()=>{fetch(f).then(Y=>Y.json()).then(Y=>{Object.keys(Y).forEach(O=>{oi(O,Y[O])})}).catch(Y=>{console.log(Y)})};Object.keys(ai).forEach(p=>{oi(p,ai[p])});const ve=()=>{t(30,I=!(b||_||E||S||N||G||M)),(z.length<=0||le.length<=0||W.length<=0||ue.length<=0||D.length<=0||Q.length<=0)&&t(30,I=!1)},Me=()=>{window.postMessage({type:"ToLogin"},window.location.href)},Rr=()=>{a=="true"&&(Ee.password=/^(?!.* ).{8,20}$/)},k=p=>!!(Ee.email.test(p)&&p.length<=100),Ge=()=>{t(4,b=!k(le)),ve()},Ur=p=>!!(Ee.user.test(p)&&p.length<=20),gr=()=>{t(5,_=!Ur(z)),ve()},je=()=>{t(26,xe=!0),V()},Re=()=>{t(27,Le=!0),Ce()},Ue=()=>{t(26,xe=!1),V()},pr=()=>{t(27,Le=!1),Ce()},V=()=>{t(28,we.type=xe?"text":"password",we)},Ce=()=>{t(29,He.type=Le?"text":"password",He)},Ve=p=>!!Ee.password.test(p),br=()=>{t(6,E=!Ve(W)),W!==ue&&ue.length>0?t(7,S=!0):t(7,S=!1),ve()},Fr=()=>W===ue,ze=()=>{t(7,S=!Fr()),ve()},kr=()=>!0,J=()=>{t(10,M=!kr()),ve()},Dr=()=>{if(D)switch(g){case"true":if(Ee.document.test(D)&&D.length<=50)return!0;break;case"false":if(D&&D.length<=120)return!0;break}return!1},yr=()=>{t(8,N=!Dr()),ve()},Qe=()=>{if(Q)switch(g){case"true":if(Ee.document.test(Q)&&Q.length<=50)return!0;break;case"false":if(Q&&Q.length<=120)return!0;break}return!1},Gr=()=>{t(9,G=!Qe()),ve()},ce=p=>{p.preventDefault();let Y={userEmail:le,userValue:z,userPassword:W,confirmUserPassword:ue,securityQuestion:D,securityAnswer:Q,promoCode:R};window.postMessage({type:"RegisterStepOne",registerStepOneData:Y},window.location.href)},Be=p=>{if(p.data)switch(p.data.type){case"StepOneDataBackup":t(20,le=p.data.userData.email),t(19,z=p.data.userData.username),t(21,W=p.data.userData.password),t(22,ue=p.data.userData.password),t(23,D=p.data.userData.securityQuestion),t(24,Q=p.data.userData.securityAnswer),t(25,R=p.data.userData.promoCode),ve();break}},$e=()=>{t(18,L=s.split(",")),L.indexOf("email")>=0&&(t(20,le="dummy@dummy.com"),t(4,b=!1)),L.indexOf("username")>=0&&(t(19,z="dummy username"),t(5,_=!1)),L.indexOf("password")>=0&&(t(21,W="dummy password"),t(6,E=!1)),L.indexOf("confirmPassword")>=0&&(t(22,ue="dummy password"),t(7,S=!1)),L.indexOf("securityQuestion")>=0&&(t(23,D="dummy question"),t(8,N=!1)),L.indexOf("securityAnswer")>=0&&(t(24,Q="dummy answer"),t(9,G=!1)),L.indexOf("promoCode")>=0&&t(10,M=!1)},Er=()=>{oo(n)},jr=()=>{let p=document.createElement("style");p.innerHTML=h,q.appendChild(p)},Vr=()=>{let p=new URL(c),Y=document.createElement("style");fetch(p.href).then(O=>O.text()).then(O=>{Y.innerHTML=O,setTimeout(()=>{q.appendChild(Y)},1),setTimeout(()=>{},500)})};sn(()=>(window.addEventListener("message",Be,!1),()=>{window.removeEventListener("message",Be)}));const he=()=>Me();function zr(){le=this.value,t(20,le)}const Xe=()=>t(11,me=!0),Qr=()=>t(11,me=!1);function ge(){z=this.value,t(19,z)}const Ie=()=>t(12,j=!0),Ze=()=>t(12,j=!1);function vr(){W=this.value,t(21,W)}const $r=()=>t(13,ye=!0),We=()=>t(13,ye=!1);function Xr(p){Ir[p?"unshift":"push"](()=>{we=p,t(28,we)})}const fe=()=>Ue(),Zr=()=>je();function qe(){ue=this.value,t(22,ue)}const Wr=()=>t(14,F=!0),pe=()=>t(14,F=!1);function Ne(p){Ir[p?"unshift":"push"](()=>{He=p,t(29,He)})}const Je=()=>pr(),_r=()=>Re();function qr(){R=this.value,t(25,R)}const Ye=()=>t(17,De=!0),Jr=()=>t(17,De=!1);function de(){D=this.value,t(23,D)}const Yr=()=>t(15,ke=!0),Ke=()=>t(15,ke=!1);function Kr(){Q=this.value,t(24,Q)}const Ae=()=>t(16,Te=!0),er=()=>t(16,Te=!1),wr=p=>ce(p);function rr(p){Ir[p?"unshift":"push"](()=>{q=p,t(3,q)})}return e.$$set=p=>{"lang"in p&&t(45,n=p.lang),"disabledfields"in p&&t(46,s=p.disabledfields),"defaultoptions"in p&&t(47,l=p.defaultoptions),"simplepasswordvalidation"in p&&t(0,a=p.simplepasswordvalidation),"clientstyling"in p&&t(48,h=p.clientstyling),"clientstylingurl"in p&&t(49,c=p.clientstylingurl),"translationurl"in p&&t(50,f=p.translationurl),"savecredentials"in p&&t(1,m=p.savecredentials),"custominputtextswitch"in p&&t(2,g=p.custominputtextswitch)},e.$$.update=()=>{e.$$.dirty[1]&16384&&n&&Er(),e.$$.dirty[1]&32768&&s&&$e(),e.$$.dirty[0]&1&&a&&Rr(),e.$$.dirty[0]&8|e.$$.dirty[1]&131072&&h&&q&&jr(),e.$$.dirty[0]&8|e.$$.dirty[1]&262144&&c&&q&&Vr(),e.$$.dirty[1]&524288&&f&&mr()},[a,m,g,q,b,_,E,S,N,G,M,me,j,ye,F,ke,Te,De,L,z,le,W,ue,D,Q,R,xe,Le,we,He,I,i,Me,Ge,gr,je,Re,Ue,pr,br,ze,J,yr,Gr,ce,n,s,l,h,c,f,he,zr,Xe,Qr,ge,Ie,Ze,vr,$r,We,Xr,fe,Zr,qe,Wr,pe,Ne,Je,_r,qr,Ye,Jr,de,Yr,Ke,Kr,Ae,er,wr,rr]}class zi extends bn{constructor(r){super(),gn(this,r,mo,fo,bi,{lang:45,disabledfields:46,defaultoptions:47,simplepasswordvalidation:0,clientstyling:48,clientstylingurl:49,translationurl:50,savecredentials:1,custominputtextswitch:2},ao,[-1,-1,-1,-1])}get lang(){return this.$$.ctx[45]}set lang(r){this.$$set({lang:r}),_e()}get disabledfields(){return this.$$.ctx[46]}set disabledfields(r){this.$$set({disabledfields:r}),_e()}get defaultoptions(){return this.$$.ctx[47]}set defaultoptions(r){this.$$set({defaultoptions:r}),_e()}get simplepasswordvalidation(){return this.$$.ctx[0]}set simplepasswordvalidation(r){this.$$set({simplepasswordvalidation:r}),_e()}get clientstyling(){return this.$$.ctx[48]}set clientstyling(r){this.$$set({clientstyling:r}),_e()}get clientstylingurl(){return this.$$.ctx[49]}set clientstylingurl(r){this.$$set({clientstylingurl:r}),_e()}get translationurl(){return this.$$.ctx[50]}set translationurl(r){this.$$set({translationurl:r}),_e()}get savecredentials(){return this.$$.ctx[1]}set savecredentials(r){this.$$set({savecredentials:r}),_e()}get custominputtextswitch(){return this.$$.ctx[2]}set custominputtextswitch(r){this.$$set({custominputtextswitch:r}),_e()}}pn(zi,{lang:{},disabledfields:{},defaultoptions:{},simplepasswordvalidation:{},clientstyling:{},clientstylingurl:{},translationurl:{},savecredentials:{},custominputtextswitch:{}},[],[],!0);exports.default=zi;
|