@everymatrix/general-player-register-form-step1 1.77.19 → 1.77.20
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-BGNJ1Tpn.js → GeneralPlayerRegisterFormStep1-21letT_w.js} +803 -809
- package/components/GeneralPlayerRegisterFormStep1-CRq7lYkO.cjs +16 -0
- package/components/{GeneralPlayerRegisterFormStep1-CCtaghRj.js → GeneralPlayerRegisterFormStep1-DI4oc2Z2.js} +829 -835
- package/es2015/general-player-register-form-step1.cjs +1 -1
- package/es2015/general-player-register-form-step1.js +1 -1
- package/esnext/general-player-register-form-step1.js +1 -1
- package/package.json +1 -1
- package/components/GeneralPlayerRegisterFormStep1-CnwnqG8Z.cjs +0 -3
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";var Gi=Object.defineProperty,ji=Object.defineProperties;var Vi=Object.getOwnPropertyDescriptors;var kt=Object.getOwnPropertySymbols;var $i=Object.prototype.hasOwnProperty,Qi=Object.prototype.propertyIsEnumerable;var ht=(e,r,t)=>r in e?Gi(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Ft=(e,r)=>{for(var t in r||(r={}))$i.call(r,t)&&ht(e,t,r[t]);if(kt)for(var t of kt(r))Qi.call(r,t)&&ht(e,t,r[t]);return e},Dt=(e,r)=>ji(e,Vi(r));var me=(e,r,t)=>(ht(e,typeof r!="symbol"?r+"":r,t),t);var Gt=(e,r,t)=>new Promise((i,n)=>{var s=h=>{try{l(t.next(h))}catch(c){n(c)}},a=h=>{try{l(t.throw(h))}catch(c){n(c)}},l=h=>h.done?i(h.value):Promise.resolve(h.value).then(s,a);l((t=t.apply(e,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function z(){}function fi(e){return e()}function jt(){return Object.create(null)}function ur(e){e.forEach(fi)}function Bt(e){return typeof e=="function"}function di(e,r){return e!=e?r==r:e!==r||e&&typeof e=="object"||typeof e=="function"}function zi(e){return Object.keys(e).length===0}function mi(e,...r){if(e==null){for(const i of r)i(void 0);return z}const t=e.subscribe(...r);return t.unsubscribe?()=>t.unsubscribe():t}function Xi(e,r,t){e.$$.on_destroy.push(mi(r,t))}function u(e,r){e.appendChild(r)}function Zi(e,r,t){const i=Wi(e);if(!i.getElementById(r)){const n=v("style");n.id=r,n.textContent=t,qi(i,n)}}function Wi(e){if(!e)return document;const r=e.getRootNode?e.getRootNode():e.ownerDocument;return r&&r.host?r:e.ownerDocument}function qi(e,r){return u(e.head||e,r),r.sheet}function ue(e,r,t){e.insertBefore(r,t||null)}function ie(e){e.parentNode&&e.parentNode.removeChild(e)}function v(e){return document.createElement(e)}function _(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function H(e){return document.createTextNode(e)}function I(){return H(" ")}function x(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 Ji(e){return Array.from(e.childNodes)}function D(e,r){r=""+r,e.data!==r&&(e.data=r)}function te(e,r){e.value=r==null?"":r}function Yi(e){const r={};return e.childNodes.forEach(t=>{r[t.slot||"default"]=!0}),r}let Br;function Tr(e){Br=e}function Ki(){if(!Br)throw new Error("Function called outside component initialization");return Br}function en(e){Ki().$$.on_mount.push(e)}const ir=[],Hr=[];let nr=[];const Vt=[],rn=Promise.resolve();let Et=!1;function tn(){Et||(Et=!0,rn.then(ye))}function vt(e){nr.push(e)}const ft=new Set;let rr=0;function ye(){if(rr!==0)return;const e=Br;do{try{for(;rr<ir.length;){const r=ir[rr];rr++,Tr(r),nn(r.$$)}}catch(r){throw ir.length=0,rr=0,r}for(Tr(null),ir.length=0,rr=0;Hr.length;)Hr.pop()();for(let r=0;r<nr.length;r+=1){const t=nr[r];ft.has(t)||(ft.add(t),t())}nr.length=0}while(ir.length);for(;Vt.length;)Vt.pop()();Et=!1,ft.clear(),Tr(e)}function nn(e){if(e.fragment!==null){e.update(),ur(e.before_update);const r=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,r),e.after_update.forEach(vt)}}function sn(e){const r=[],t=[];nr.forEach(i=>e.indexOf(i)===-1?r.push(i):t.push(i)),t.forEach(i=>i()),nr=r}const on=new Set;function an(e,r){e&&e.i&&(on.delete(e),e.i(r))}function ln(e,r,t){const{fragment:i,after_update:n}=e.$$;i&&i.m(r,t),vt(()=>{const s=e.$$.on_mount.map(fi).filter(Bt);e.$$.on_destroy?e.$$.on_destroy.push(...s):ur(s),e.$$.on_mount=[]}),n.forEach(vt)}function un(e,r){const t=e.$$;t.fragment!==null&&(sn(t.after_update),ur(t.on_destroy),t.fragment&&t.fragment.d(r),t.on_destroy=t.fragment=null,t.ctx=[])}function cn(e,r){e.$$.dirty[0]===-1&&(ir.push(e),tn(),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31}function hn(e,r,t,i,n,s,a=null,l=[-1]){const h=Br;Tr(e);const c=e.$$={fragment:null,ctx:[],props:s,update:z,not_equal:n,bound:jt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(r.context||(h?h.$$.context:[])),callbacks:jt(),dirty:l,skip_bound:!1,root:r.target||h.$$.root};a&&a(c.root);let f=!1;if(c.ctx=t?t(e,r.props||{},(m,g,...b)=>{const w=b.length?b[0]:g;return c.ctx&&n(c.ctx[m],c.ctx[m]=w)&&(!c.skip_bound&&c.bound[m]&&c.bound[m](w),f&&cn(e,m)),g}):[],c.update(),f=!0,ur(c.before_update),c.fragment=i?i(c.ctx):!1,r.target){if(r.hydrate){const m=Ji(r.target);c.fragment&&c.fragment.l(m),m.forEach(ie)}else c.fragment&&c.fragment.c();r.intro&&an(e.$$.fragment),ln(e,r.target,r.anchor),ye()}Tr(h)}let gi;typeof HTMLElement=="function"&&(gi=class extends HTMLElement{constructor(r,t,i){super();me(this,"$$ctor");me(this,"$$s");me(this,"$$c");me(this,"$$cn",!1);me(this,"$$d",{});me(this,"$$r",!1);me(this,"$$p_d",{});me(this,"$$l",{});me(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 Gt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let r=function(s){return()=>{let a;return{c:function(){a=v("slot"),s!=="default"&&o(a,"name",s)},m:function(c,f){ue(c,a,f)},d:function(c){c&&ie(a)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const t={},i=Yi(this);for(const s of this.$$s)s in i&&(t[s]=[r(s)]);for(const s of this.attributes){const a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=Kr(a,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:Dt(Ft({},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 a=Kr(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1};this.$$c.$$.after_update.push(n),n();for(const s in this.$$l)for(const a of this.$$l[s]){const l=this.$$c.$on(s,a);this.$$l_u.set(a,l)}this.$$l={}}})}attributeChangedCallback(r,t,i){var n;this.$$r||(r=this.$$g_p(r),this.$$d[r]=Kr(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 Kr(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 fn(e,r,t,i,n,s){let a=class extends gi{constructor(){super(e,t,n),this.$$p_d=r}static get observedAttributes(){return Object.keys(r).map(l=>(r[l].attribute||l).toLowerCase())}};return Object.keys(r).forEach(l=>{Object.defineProperty(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(h){var c;h=Kr(l,h,r),this.$$d[l]=h,(c=this.$$c)==null||c.$set({[l]:h})}})}),i.forEach(l=>{Object.defineProperty(a.prototype,l,{get(){var h;return(h=this.$$c)==null?void 0:h[l]}})}),e.element=a,a}class dn{constructor(){me(this,"$$");me(this,"$$set")}$destroy(){un(this,1),this.$destroy=z}$on(r,t){if(!Bt(t))return z;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&&!zi(r)&&(this.$$.skip_bound=!0,this.$$set(r),this.$$.skip_bound=!1)}}const mn="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(mn);const tr=[];function gn(e,r){return{subscribe:nt(e,r).subscribe}}function nt(e,r=z){let t;const i=new Set;function n(l){if(di(e,l)&&(e=l,t)){const h=!tr.length;for(const c of i)c[1](),tr.push(c,e);if(h){for(let c=0;c<tr.length;c+=2)tr[c][0](tr[c+1]);tr.length=0}}}function s(l){n(l(e))}function a(l,h=z){const c=[l,h];return i.add(c),i.size===1&&(t=r(n,s)||z),l(e),()=>{i.delete(c),i.size===0&&t&&(t(),t=null)}}return{set:n,update:s,subscribe:a}}function cr(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 gn(t,(a,l)=>{let h=!1;const c=[];let f=0,m=z;const g=()=>{if(f)return;m();const w=r(i?c[0]:c,a,l);s?a(w):m=Bt(w)?w:z},b=n.map((w,E)=>mi(w,A=>{c[E]=A,f&=~(1<<E),h&&g()},()=>{f|=1<<E}));return h=!0,g(),function(){ur(b),m(),h=!1}})}function pn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bn=function(r){return yn(r)&&!En(r)};function yn(e){return!!e&&typeof e=="object"}function En(e){var r=Object.prototype.toString.call(e);return r==="[object RegExp]"||r==="[object Date]"||_n(e)}var vn=typeof Symbol=="function"&&Symbol.for,wn=vn?Symbol.for("react.element"):60103;function _n(e){return e.$$typeof===wn}function Sn(e){return Array.isArray(e)?[]:{}}function Ir(e,r){return r.clone!==!1&&r.isMergeableObject(e)?sr(Sn(e),e,r):e}function Pn(e,r,t){return e.concat(r).map(function(i){return Ir(i,t)})}function xn(e,r){if(!r.customMerge)return sr;var t=r.customMerge(e);return typeof t=="function"?t:sr}function Cn(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(r){return Object.propertyIsEnumerable.call(e,r)}):[]}function $t(e){return Object.keys(e).concat(Cn(e))}function pi(e,r){try{return r in e}catch(t){return!1}}function An(e,r){return pi(e,r)&&!(Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))}function Tn(e,r,t){var i={};return t.isMergeableObject(e)&&$t(e).forEach(function(n){i[n]=Ir(e[n],t)}),$t(r).forEach(function(n){An(e,n)||(pi(e,n)&&t.isMergeableObject(r[n])?i[n]=xn(n,t)(e[n],r[n],t):i[n]=Ir(r[n],t))}),i}function sr(e,r,t){t=t||{},t.arrayMerge=t.arrayMerge||Pn,t.isMergeableObject=t.isMergeableObject||bn,t.cloneUnlessOtherwiseSpecified=Ir;var i=Array.isArray(r),n=Array.isArray(e),s=i===n;return s?i?t.arrayMerge(e,r,t):Tn(e,r,t):Ir(r,t)}sr.all=function(r,t){if(!Array.isArray(r))throw new Error("first argument should be an array");return r.reduce(function(i,n){return sr(i,n,t)},{})};var Hn=sr,Bn=Hn;const In=pn(Bn);/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation.
|
|
3
|
+
|
|
4
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
+
purpose with or without fee is hereby granted.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
***************************************************************************** */var wt=function(e,r){return wt=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])},wt(e,r)};function st(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");wt(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}var T=function(){return T=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},T.apply(this,arguments)};function Nn(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 dt(e,r,t){if(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||r)}function mt(e,r){var t=r&&r.cache?r.cache:Fn,i=r&&r.serializer?r.serializer:Un,n=r&&r.strategy?r.strategy:Mn;return n(e,{cache:t,serializer:i})}function On(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Ln(e,r,t,i){var n=On(i)?i:t(i),s=r.get(n);return typeof s=="undefined"&&(s=e.call(this,i),r.set(n,s)),s}function bi(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 yi(e,r,t,i,n){return t.bind(r,e,i,n)}function Mn(e,r){var t=e.length===1?Ln:bi;return yi(e,this,t,r.cache.create(),r.serializer)}function Rn(e,r){return yi(e,this,bi,r.cache.create(),r.serializer)}var Un=function(){return JSON.stringify(arguments)},kn=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(r){return this.cache[r]},e.prototype.set=function(r,t){this.cache[r]=t},e}(),Fn={create:function(){return new kn}},gt={variadic:Rn},S;(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"})(S||(S={}));var L;(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"})(L||(L={}));var or;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(or||(or={}));function Qt(e){return e.type===L.literal}function Dn(e){return e.type===L.argument}function Ei(e){return e.type===L.number}function vi(e){return e.type===L.date}function wi(e){return e.type===L.time}function _i(e){return e.type===L.select}function Si(e){return e.type===L.plural}function Gn(e){return e.type===L.pound}function Pi(e){return e.type===L.tag}function xi(e){return!!(e&&typeof e=="object"&&e.type===or.number)}function _t(e){return!!(e&&typeof e=="object"&&e.type===or.dateTime)}var Ci=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,jn=/(?:[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 Vn(e){var r={};return e.replace(jn,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 $n=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Qn(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var r=e.split($n).filter(function(g){return g.length>0}),t=[],i=0,n=r;i<n.length;i++){var s=n[i],a=s.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var l=a[0],h=a.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:l,options:h})}return t}function zn(e){return e.replace(/^(.*?)-/,"")}var zt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ai=/^(@+)?(\+|#+)?[rs]?$/g,Xn=/(\*)(0+)|(#+)(0+)|(0+)/g,Ti=/^(0+)$/;function Xt(e){var r={};return e[e.length-1]==="r"?r.roundingPriority="morePrecision":e[e.length-1]==="s"&&(r.roundingPriority="lessPrecision"),e.replace(Ai,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 Hi(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 Zn(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)),!Ti.test(e))throw new Error("Malformed concise eng/scientific notation");r.minimumIntegerDigits=e.length}return r}function Zt(e){var r={},t=Hi(e);return t||r}function Wn(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=zn(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=T(T(T({},r),{notation:"scientific"}),n.options.reduce(function(h,c){return T(T({},h),Zt(c))},{}));continue;case"engineering":r=T(T(T({},r),{notation:"engineering"}),n.options.reduce(function(h,c){return T(T({},h),Zt(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(Xn,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(Ti.test(n.stem)){r.minimumIntegerDigits=n.stem.length;continue}if(zt.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(zt,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=T(T({},r),{trailingZeroDisplay:"stripIfInteger"}):s&&(r=T(T({},r),Xt(s)));continue}if(Ai.test(n.stem)){r=T(T({},r),Xt(n.stem));continue}var a=Hi(n.stem);a&&(r=T(T({},r),a));var l=Zn(n.stem);l&&(r=T(T({},r),l))}return r}var Yr={"001":["H","h"],419:["h","H","hB","hb"],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","H","hB","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","H","hB","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","H","hB","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"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["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 qn(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 a=1+(s&1),l=s<2?1:3+(s>>1),h="a",c=Jn(r);for((c=="H"||c=="k")&&(l=0);l-- >0;)t+=h;for(;a-- >0;)t=c+t}else n==="J"?t+="H":t+=n}return t}function Jn(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=Yr[i||""]||Yr[t||""]||Yr["".concat(t,"-001")]||Yr["001"];return n[0]}var pt,Yn=new RegExp("^".concat(Ci.source,"*")),Kn=new RegExp("".concat(Ci.source,"*$"));function P(e,r){return{start:e,end:r}}var es=!!String.prototype.startsWith&&"_a".startsWith("a",1),rs=!!String.fromCodePoint,ts=!!Object.fromEntries,is=!!String.prototype.codePointAt,ns=!!String.prototype.trimStart,ss=!!String.prototype.trimEnd,os=!!Number.isSafeInteger,as=os?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},St=!0;try{var ls=Ii("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");St=((pt=ls.exec("a"))===null||pt===void 0?void 0:pt[0])==="a"}catch(e){St=!1}var Wt=es?function(r,t,i){return r.startsWith(t,i)}:function(r,t,i){return r.slice(i,i+t.length)===t},Pt=rs?String.fromCodePoint:function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var i="",n=r.length,s=0,a;n>s;){if(a=r[s++],a>1114111)throw RangeError(a+" is not a valid code point");i+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return i},qt=ts?Object.fromEntries:function(r){for(var t={},i=0,n=r;i<n.length;i++){var s=n[i],a=s[0],l=s[1];t[a]=l}return t},Bi=is?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}},us=ns?function(r){return r.trimStart()}:function(r){return r.replace(Yn,"")},cs=ss?function(r){return r.trimEnd()}:function(r){return r.replace(Kn,"")};function Ii(e,r){return new RegExp(e,r)}var xt;if(St){var Jt=Ii("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");xt=function(r,t){var i;Jt.lastIndex=t;var n=Jt.exec(r);return(i=n[1])!==null&&i!==void 0?i:""}}else xt=function(r,t){for(var i=[];;){var n=Bi(r,t);if(n===void 0||Ni(n)||ms(n))break;i.push(n),t+=n>=65536?2:1}return Pt.apply(void 0,i)};var hs=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 a=this.parseArgument(r,i);if(a.err)return a;n.push(a.val)}else{if(s===125&&r>0)break;if(s===35&&(t==="plural"||t==="selectordinal")){var l=this.clonePosition();this.bump(),n.push({type:L.pound,location:P(l,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(S.UNMATCHED_CLOSING_TAG,P(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&Ct(this.peek()||0)){var a=this.parseTag(r,t);if(a.err)return a;n.push(a.val)}else{var a=this.parseLiteral(r,t);if(a.err)return a;n.push(a.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:L.literal,value:"<".concat(n,"/>"),location:P(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(r+1,t,!0);if(s.err)return s;var a=s.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Ct(this.char()))return this.error(S.INVALID_TAG,P(l,this.clonePosition()));var h=this.clonePosition(),c=this.parseTagName();return n!==c?this.error(S.UNMATCHED_CLOSING_TAG,P(h,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:L.tag,value:n,children:a,location:P(i,this.clonePosition())},err:null}:this.error(S.INVALID_TAG,P(l,this.clonePosition())))}else return this.error(S.UNCLOSED_TAG,P(i,this.clonePosition()))}else return this.error(S.INVALID_TAG,P(i,this.clonePosition()))},e.prototype.parseTagName=function(){var r=this.offset();for(this.bump();!this.isEOF()&&ds(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 a=this.tryParseUnquoted(r,t);if(a){n+=a;continue}var l=this.tryParseLeftAngleBracket();if(l){n+=l;continue}break}var h=P(i,this.clonePosition());return{val:{type:L.literal,value:n,location:h},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!fs(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 Pt.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(),Pt(i))},e.prototype.parseArgument=function(r,t){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,P(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(S.EMPTY_ARGUMENT,P(i,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(S.MALFORMED_ARGUMENT,P(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,P(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:L.argument,value:n,location:P(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,P(i,this.clonePosition())):this.parseArgumentOptions(r,t,n,i);default:return this.error(S.MALFORMED_ARGUMENT,P(i,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var r=this.clonePosition(),t=this.offset(),i=xt(this.message,t),n=t+i.length;this.bumpTo(n);var s=this.clonePosition(),a=P(r,s);return{value:i,location:a}},e.prototype.parseArgumentOptions=function(r,t,i,n){var s,a=this.clonePosition(),l=this.parseIdentifierIfPossible().value,h=this.clonePosition();switch(l){case"":return this.error(S.EXPECT_ARGUMENT_TYPE,P(a,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=cs(m.val);if(g.length===0)return this.error(S.EXPECT_ARGUMENT_STYLE,P(this.clonePosition(),this.clonePosition()));var b=P(f,this.clonePosition());c={style:g,styleLocation:b}}var w=this.tryParseArgumentClose(n);if(w.err)return w;var E=P(n,this.clonePosition());if(c&&Wt(c==null?void 0:c.style,"::",0)){var A=us(c.style.slice(2));if(l==="number"){var m=this.parseNumberSkeletonFromString(A,c.styleLocation);return m.err?m:{val:{type:L.number,value:i,location:E,style:m.val},err:null}}else{if(A.length===0)return this.error(S.EXPECT_DATE_TIME_SKELETON,E);var O=A;this.locale&&(O=qn(A,this.locale));var g={type:or.dateTime,pattern:O,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?Vn(O):{}},M=l==="date"?L.date:L.time;return{val:{type:M,value:i,location:E,style:g},err:null}}}return{val:{type:l==="number"?L.number:l==="date"?L.date:L.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 R=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(S.EXPECT_SELECT_ARGUMENT_OPTIONS,P(R,T({},R)));this.bumpSpace();var ce=this.parseIdentifierIfPossible(),G=0;if(l!=="select"&&ce.value==="offset"){if(!this.bumpIf(":"))return this.error(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,P(this.clonePosition(),this.clonePosition()));this.bumpSpace();var m=this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,S.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(m.err)return m;this.bumpSpace(),ce=this.parseIdentifierIfPossible(),G=m.val}var ge=this.tryParsePluralOrSelectOptions(r,l,t,ce);if(ge.err)return ge;var w=this.tryParseArgumentClose(n);if(w.err)return w;var U=P(n,this.clonePosition());return l==="select"?{val:{type:L.select,value:i,options:qt(ge.val),location:U},err:null}:{val:{type:L.plural,value:i,options:qt(ge.val),offset:G,pluralType:l==="plural"?"cardinal":"ordinal",location:U},err:null}}default:return this.error(S.INVALID_ARGUMENT_TYPE,P(a,h))}},e.prototype.tryParseArgumentClose=function(r){return this.isEOF()||this.char()!==125?this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,P(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(S.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,P(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=Qn(r)}catch(n){return this.error(S.INVALID_NUMBER_SKELETON,t)}return{val:{type:or.number,tokens:i,location:t,parsedOptions:this.shouldParseSkeletons?Wn(i):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(r,t,i,n){for(var s,a=!1,l=[],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(S.EXPECT_PLURAL_ARGUMENT_SELECTOR,S.INVALID_PLURAL_ARGUMENT_SELECTOR);if(g.err)return g;f=P(m,this.clonePosition()),c=this.message.slice(m.offset,this.offset())}else break}if(h.has(c))return this.error(t==="select"?S.DUPLICATE_SELECT_ARGUMENT_SELECTOR:S.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);c==="other"&&(a=!0),this.bumpSpace();var b=this.clonePosition();if(!this.bumpIf("{"))return this.error(t==="select"?S.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:S.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,P(this.clonePosition(),this.clonePosition()));var w=this.parseMessage(r+1,t,i);if(w.err)return w;var E=this.tryParseArgumentClose(b);if(E.err)return E;l.push([c,{value:w.val,location:P(b,this.clonePosition())}]),h.add(c),this.bumpSpace(),s=this.parseIdentifierIfPossible(),c=s.value,f=s.location}return l.length===0?this.error(t==="select"?S.EXPECT_SELECT_ARGUMENT_SELECTOR:S.EXPECT_PLURAL_ARGUMENT_SELECTOR,P(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(S.MISSING_OTHER_CLAUSE,P(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(r,t){var i=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var s=!1,a=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)s=!0,a=a*10+(l-48),this.bump();else break}var h=P(n,this.clonePosition());return s?(a*=i,as(a)?{val:a,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=Bi(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(Wt(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()&&Ni(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 Ct(e){return e>=97&&e<=122||e>=65&&e<=90}function fs(e){return Ct(e)||e===47}function ds(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 Ni(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function ms(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 At(e){e.forEach(function(r){if(delete r.location,_i(r)||Si(r))for(var t in r.options)delete r.options[t].location,At(r.options[t].value);else Ei(r)&&xi(r.style)||(vi(r)||wi(r))&&_t(r.style)?delete r.style.location:Pi(r)&&At(r.children)})}function gs(e,r){r===void 0&&(r={}),r=T({shouldParseSkeletons:!0,requiresOtherClause:!0},r);var t=new hs(e,r).parse();if(t.err){var i=SyntaxError(S[t.err.kind]);throw i.location=t.err.location,i.originalMessage=t.err.message,i}return r!=null&&r.captureLocation||At(t.val),t.val}var ar;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(ar||(ar={}));var ot=function(e){st(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),Yt=function(e){st(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('", "'),'"'),ar.INVALID_VALUE,s)||this}return r}(ot),ps=function(e){st(r,e);function r(t,i,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(i),ar.INVALID_VALUE,n)||this}return r}(ot),bs=function(e){st(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,'"'),ar.MISSING_VALUE,i)||this}return r}(ot),Q;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Q||(Q={}));function ys(e){return e.length<2?e:e.reduce(function(r,t){var i=r[r.length-1];return!i||i.type!==Q.literal||t.type!==Q.literal?r.push(t):i.value+=t.value,r},[])}function Es(e){return typeof e=="function"}function et(e,r,t,i,n,s,a){if(e.length===1&&Qt(e[0]))return[{type:Q.literal,value:e[0].value}];for(var l=[],h=0,c=e;h<c.length;h++){var f=c[h];if(Qt(f)){l.push({type:Q.literal,value:f.value});continue}if(Gn(f)){typeof s=="number"&&l.push({type:Q.literal,value:t.getNumberFormat(r).format(s)});continue}var m=f.value;if(!(n&&m in n))throw new bs(m,a);var g=n[m];if(Dn(f)){(!g||typeof g=="string"||typeof g=="number")&&(g=typeof g=="string"||typeof g=="number"?String(g):""),l.push({type:typeof g=="string"?Q.literal:Q.object,value:g});continue}if(vi(f)){var b=typeof f.style=="string"?i.date[f.style]:_t(f.style)?f.style.parsedOptions:void 0;l.push({type:Q.literal,value:t.getDateTimeFormat(r,b).format(g)});continue}if(wi(f)){var b=typeof f.style=="string"?i.time[f.style]:_t(f.style)?f.style.parsedOptions:i.time.medium;l.push({type:Q.literal,value:t.getDateTimeFormat(r,b).format(g)});continue}if(Ei(f)){var b=typeof f.style=="string"?i.number[f.style]:xi(f.style)?f.style.parsedOptions:void 0;b&&b.scale&&(g=g*(b.scale||1)),l.push({type:Q.literal,value:t.getNumberFormat(r,b).format(g)});continue}if(Pi(f)){var w=f.children,E=f.value,A=n[E];if(!Es(A))throw new ps(E,"function",a);var O=et(w,r,t,i,n,s),M=A(O.map(function(G){return G.value}));Array.isArray(M)||(M=[M]),l.push.apply(l,M.map(function(G){return{type:typeof G=="string"?Q.literal:Q.object,value:G}}))}if(_i(f)){var R=f.options[g]||f.options.other;if(!R)throw new Yt(f.value,g,Object.keys(f.options),a);l.push.apply(l,et(R.value,r,t,i,n));continue}if(Si(f)){var R=f.options["=".concat(g)];if(!R){if(!Intl.PluralRules)throw new ot(`Intl.PluralRules is not available in this environment.
|
|
15
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
16
|
+
`,ar.MISSING_INTL_API,a);var ce=t.getPluralRules(r,{type:f.pluralType}).select(g-(f.offset||0));R=f.options[ce]||f.options.other}if(!R)throw new Yt(f.value,g,Object.keys(f.options),a);l.push.apply(l,et(R.value,r,t,i,n,g-(f.offset||0)));continue}}return ys(l)}function vs(e,r){return r?T(T(T({},e||{}),r||{}),Object.keys(e).reduce(function(t,i){return t[i]=T(T({},e[i]),r[i]||{}),t},{})):e}function ws(e,r){return r?Object.keys(e).reduce(function(t,i){return t[i]=vs(e[i],r[i]),t},T({},e)):e}function bt(e){return{create:function(){return{get:function(r){return e[r]},set:function(r,t){e[r]=t}}}}}function _s(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:mt(function(){for(var r,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((r=Intl.NumberFormat).bind.apply(r,dt([void 0],t,!1)))},{cache:bt(e.number),strategy:gt.variadic}),getDateTimeFormat:mt(function(){for(var r,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((r=Intl.DateTimeFormat).bind.apply(r,dt([void 0],t,!1)))},{cache:bt(e.dateTime),strategy:gt.variadic}),getPluralRules:mt(function(){for(var r,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((r=Intl.PluralRules).bind.apply(r,dt([void 0],t,!1)))},{cache:bt(e.pluralRules),strategy:gt.variadic})}}var Ss=function(){function e(r,t,i,n){t===void 0&&(t=e.defaultLocale);var s=this;if(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!==Q.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 et(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 a=n||{};a.formatters;var l=Nn(a,["formatters"]);this.ast=e.__parse(r,T(T({},l),{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=ws(e.formats,i),this.formatters=n&&n.formatters||_s(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=gs,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 Ps(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={},xs=(e,r,t)=>t&&(r in Oe||(Oe[r]={}),e in Oe[r]||(Oe[r][e]=t),t),Oi=(e,r)=>{if(r==null)return;if(r in Oe&&e in Oe[r])return Oe[r][e];const t=at(r);for(let i=0;i<t.length;i++){const n=t[i],s=As(n,e);if(s)return xs(e,r,s)}};let It;const Or=nt({});function Cs(e){return It[e]||null}function Li(e){return e in It}function As(e,r){if(!Li(e))return null;const t=Cs(e);return Ps(t,r)}function Ts(e){if(e==null)return;const r=at(e);for(let t=0;t<r.length;t++){const i=r[t];if(Li(i))return i}}function Mi(e,...r){delete Oe[e],Or.update(t=>(t[e]=In.all([t[e]||{},...r]),t))}cr([Or],([e])=>Object.keys(e));Or.subscribe(e=>It=e);const rt={};function Hs(e,r){rt[e].delete(r),rt[e].size===0&&delete rt[e]}function Ri(e){return rt[e]}function Bs(e){return at(e).map(r=>{const t=Ri(r);return[r,t?[...t]:[]]}).filter(([,r])=>r.length>0)}function Tt(e){return e==null?!1:at(e).some(r=>{var t;return(t=Ri(r))==null?void 0:t.size})}function Is(e,r){return Promise.all(r.map(i=>(Hs(e,i),i().then(n=>n.default||n)))).then(i=>Mi(e,...i))}const Ar={};function Ui(e){if(!Tt(e))return e in Ar?Ar[e]:Promise.resolve();const r=Bs(e);return Ar[e]=Promise.all(r.map(([t,i])=>Is(t,i))).then(()=>{if(Tt(e))return Ui(e);delete Ar[e]}),Ar[e]}const Ns={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"}}},Os={fallbackLocale:null,loadingDelay:200,formats:Ns,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Ls=Os;function lr(){return Ls}const yt=nt(!1);var Ms=Object.defineProperty,Rs=Object.defineProperties,Us=Object.getOwnPropertyDescriptors,Kt=Object.getOwnPropertySymbols,ks=Object.prototype.hasOwnProperty,Fs=Object.prototype.propertyIsEnumerable,ei=(e,r,t)=>r in e?Ms(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Ds=(e,r)=>{for(var t in r||(r={}))ks.call(r,t)&&ei(e,t,r[t]);if(Kt)for(var t of Kt(r))Fs.call(r,t)&&ei(e,t,r[t]);return e},Gs=(e,r)=>Rs(e,Us(r));let Ht;const tt=nt(null);function ri(e){return e.split("-").map((r,t,i)=>i.slice(0,t+1).join("-")).reverse()}function at(e,r=lr().fallbackLocale){const t=ri(e);return r?[...new Set([...t,...ri(r)])]:t}function De(){return Ht!=null?Ht:void 0}tt.subscribe(e=>{Ht=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const js=e=>{if(e&&Ts(e)&&Tt(e)){const{loadingDelay:r}=lr();let t;return typeof window!="undefined"&&De()!=null&&r?t=window.setTimeout(()=>yt.set(!0),r):yt.set(!0),Ui(e).then(()=>{tt.set(e)}).finally(()=>{clearTimeout(t),yt.set(!1)})}return tt.set(e)},hr=Gs(Ds({},tt),{set:js}),lt=e=>{const r=Object.create(null);return i=>{const n=JSON.stringify(i);return n in r?r[n]:r[n]=e(i)}};var Vs=Object.defineProperty,it=Object.getOwnPropertySymbols,ki=Object.prototype.hasOwnProperty,Fi=Object.prototype.propertyIsEnumerable,ti=(e,r,t)=>r in e?Vs(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Nt=(e,r)=>{for(var t in r||(r={}))ki.call(r,t)&&ti(e,t,r[t]);if(it)for(var t of it(r))Fi.call(r,t)&&ti(e,t,r[t]);return e},fr=(e,r)=>{var t={};for(var i in e)ki.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&it)for(var i of it(e))r.indexOf(i)<0&&Fi.call(e,i)&&(t[i]=e[i]);return t};const Nr=(e,r)=>{const{formats:t}=lr();if(e in t&&r in t[e])return t[e][r];throw new Error(`[svelte-i18n] Unknown "${r}" ${e} format.`)},$s=lt(e=>{var r=e,{locale:t,format:i}=r,n=fr(r,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(n=Nr("number",i)),new Intl.NumberFormat(t,n)}),Qs=lt(e=>{var r=e,{locale:t,format:i}=r,n=fr(r,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?n=Nr("date",i):Object.keys(n).length===0&&(n=Nr("date","short")),new Intl.DateTimeFormat(t,n)}),zs=lt(e=>{var r=e,{locale:t,format:i}=r,n=fr(r,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?n=Nr("time",i):Object.keys(n).length===0&&(n=Nr("time","short")),new Intl.DateTimeFormat(t,n)}),Xs=(e={})=>{var r=e,{locale:t=De()}=r,i=fr(r,["locale"]);return $s(Nt({locale:t},i))},Zs=(e={})=>{var r=e,{locale:t=De()}=r,i=fr(r,["locale"]);return Qs(Nt({locale:t},i))},Ws=(e={})=>{var r=e,{locale:t=De()}=r,i=fr(r,["locale"]);return zs(Nt({locale:t},i))},qs=lt((e,r=De())=>new Ss(e,r,lr().formats,{ignoreTag:lr().ignoreTag})),Js=(e,r={})=>{var t,i,n,s;let a=r;typeof e=="object"&&(a=e,e=a.id);const{values:l,locale:h=De(),default:c}=a;if(h==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=Oi(e,h);if(!f)f=(s=(n=(i=(t=lr()).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(!l)return f;let m=f;try{m=qs(f,h).format(l)}catch(g){g instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,g.message)}return m},Ys=(e,r)=>Ws(r).format(e),Ks=(e,r)=>Zs(r).format(e),eo=(e,r)=>Xs(r).format(e),ro=(e,r=De())=>Oi(e,r),to=cr([hr,Or],()=>Js);cr([hr],()=>Ys);cr([hr],()=>Ks);cr([hr],()=>eo);cr([hr,Or],()=>ro);function ii(e,r){Mi(e,r)}function io(e){hr.set(e)}const ni={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"},"en-us":{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"}};function no(e,r){if(e){const t=document.createElement("style");t.innerHTML=r,e.appendChild(t)}}function so(e,r){const t=new URL(r);fetch(t.href).then(i=>i.text()).then(i=>{const n=document.createElement("style");n.innerHTML=i,e&&e.appendChild(n)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function oo(e,r,t){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(r,n=>{i.innerHTML=n,e&&e.appendChild(i)})}}function ao(e){Zi(e,"svelte-1ueqy7d",".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(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));font-size:14px;font-weight:400;text-decoration:none;cursor:pointer}.EmailContainer,.UserContainer,.PasswordContainer,.ConfirmPasswordContainer,.PromoCodeContainer,.SecurityQuestionContainer,.SecurityAnswerContainer{color:var(--emw--registration-contrast, var(--emw--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(--emw--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(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.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(--emw--categories-color-secondary, var(--emw--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(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect,.ToggleConfirmPasswordVisibility path,.ToggleConfirmPasswordVisibility circle,.ToggleConfirmPasswordVisibility rect{fill:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586B))}.InvalidInput{color:var(--emw--color-error, var(--emw--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(--emw--color-error, var(--emw--color-red, #ed0909))}.RegisterStepNext{color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.RegisterStepNext[disabled]{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);cursor:not-allowed}input::-ms-reveal,input::-ms-clear{display:none}")}function si(e){let r,t=e[30]("registerEmailError")+"",i;return{c(){r=v("p"),i=H(t),o(r,"class","InvalidInput")},m(n,s){ue(n,r,s),u(r,i)},p(n,s){s[0]&1073741824&&t!==(t=n[30]("registerEmailError")+"")&&D(i,t)},d(n){n&&ie(r)}}}function oi(e){let r,t=e[30]("registerUsernameError")+"",i;return{c(){r=v("p"),i=H(t),o(r,"class","InvalidInput")},m(n,s){ue(n,r,s),u(r,i)},p(n,s){s[0]&1073741824&&t!==(t=n[30]("registerUsernameError")+"")&&D(i,t)},d(n){n&&ie(r)}}}function lo(e){let r,t,i,n,s,a,l,h,c;return{c(){r=_("svg"),t=_("defs"),i=_("style"),n=H(".a{fill:var(--emw--registration-typography, var(--emw--color-background, #07072A));}"),s=_("g"),a=_("path"),l=_("circle"),o(a,"class","a"),o(a,"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(a,"transform","translate(0)"),o(l,"class","a"),o(l,"cx","2.779"),o(l,"cy","2.779"),o(l,"r","2.779"),o(l,"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){ue(f,r,m),u(r,t),u(t,i),u(i,n),u(r,s),u(s,a),u(s,l),h||(c=x(r,"click",e[62]),h=!0)},p:z,d(f){f&&ie(r),h=!1,c()}}}function uo(e){let r,t,i,n,s,a,l,h,c,f,m,g,b,w,E;return{c(){r=_("svg"),t=_("defs"),i=_("style"),n=H(".a{fill:var(--emw--registration-typography, var(--emw--color-background, #07072A));}"),s=_("g"),a=_("circle"),l=_("g"),h=_("path"),c=_("path"),f=_("g"),m=_("path"),g=_("path"),b=_("rect"),o(a,"class","a"),o(a,"cx","0.05"),o(a,"cy","0.05"),o(a,"r","0.05"),o(a,"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(l,"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(A,O){ue(A,r,O),u(r,t),u(t,i),u(i,n),u(r,s),u(s,a),u(s,l),u(l,h),u(l,c),u(s,f),u(f,m),u(f,g),u(s,b),w||(E=x(r,"click",e[61]),w=!0)},p:z,d(A){A&&ie(r),w=!1,E()}}}function ai(e){let r,t=e[30]("registerPasswordError")+"",i;return{c(){r=v("p"),i=H(t),o(r,"class","InvalidInput")},m(n,s){ue(n,r,s),u(r,i)},p(n,s){s[0]&1073741824&&t!==(t=n[30]("registerPasswordError")+"")&&D(i,t)},d(n){n&&ie(r)}}}function li(e){let r,t=e[30]("registerSimplePasswordError")+"",i;return{c(){r=v("p"),i=H(t),o(r,"class","InvalidInput")},m(n,s){ue(n,r,s),u(r,i)},p(n,s){s[0]&1073741824&&t!==(t=n[30]("registerSimplePasswordError")+"")&&D(i,t)},d(n){n&&ie(r)}}}function co(e){let r,t,i,n,s,a,l,h,c;return{c(){r=_("svg"),t=_("defs"),i=_("style"),n=H(".a{fill:var(--emw--registration-typography, var(--emw--color-background, #07072A));}"),s=_("g"),a=_("path"),l=_("circle"),o(a,"class","a"),o(a,"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(a,"transform","translate(0)"),o(l,"class","a"),o(l,"cx","2.779"),o(l,"cy","2.779"),o(l,"r","2.779"),o(l,"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){ue(f,r,m),u(r,t),u(t,i),u(i,n),u(r,s),u(s,a),u(s,l),h||(c=x(r,"click",e[68]),h=!0)},p:z,d(f){f&&ie(r),h=!1,c()}}}function ho(e){let r,t,i,n,s,a,l,h,c,f,m,g,b,w,E;return{c(){r=_("svg"),t=_("defs"),i=_("style"),n=H(".a{fill:var(--emw--registration-typography, var(--emw--color-background, #07072A));}"),s=_("g"),a=_("circle"),l=_("g"),h=_("path"),c=_("path"),f=_("g"),m=_("path"),g=_("path"),b=_("rect"),o(a,"class","a"),o(a,"cx","0.05"),o(a,"cy","0.05"),o(a,"r","0.05"),o(a,"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(l,"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(A,O){ue(A,r,O),u(r,t),u(t,i),u(i,n),u(r,s),u(s,a),u(s,l),u(l,h),u(l,c),u(s,f),u(f,m),u(f,g),u(s,b),w||(E=x(r,"click",e[67]),w=!0)},p:z,d(A){A&&ie(r),w=!1,E()}}}function ui(e){let r,t=e[30]("registerConfirmPasswordError")+"",i;return{c(){r=v("p"),i=H(t),o(r,"class","InvalidInput")},m(n,s){ue(n,r,s),u(r,i)},p(n,s){s[0]&1073741824&&t!==(t=n[30]("registerConfirmPasswordError")+"")&&D(i,t)},d(n){n&&ie(r)}}}function ci(e){let r,t=(e[2]=="true"?e[30]("registerSecurityQuestionError2"):e[30]("registerSecurityQuestionError"))+"",i;return{c(){r=v("p"),i=H(t),o(r,"class","InvalidInput")},m(n,s){ue(n,r,s),u(r,i)},p(n,s){s[0]&1073741828&&t!==(t=(n[2]=="true"?n[30]("registerSecurityQuestionError2"):n[30]("registerSecurityQuestionError"))+"")&&D(i,t)},d(n){n&&ie(r)}}}function hi(e){let r,t=(e[2]=="true"?e[30]("registerSecurityAnswerError2"):e[30]("registerSecurityAnswerError"))+"",i;return{c(){r=v("p"),i=H(t),o(r,"class","InvalidInput")},m(n,s){ue(n,r,s),u(r,i)},p(n,s){s[0]&1073741828&&t!==(t=(n[2]=="true"?n[30]("registerSecurityAnswerError2"):n[30]("registerSecurityAnswerError"))+"")&&D(i,t)},d(n){n&&ie(r)}}}function fo(e){let r,t,i,n=e[30]("registerTitle")+"",s,a,l,h=e[30]("registerSubtitle")+"",c,f,m,g=e[30]("registerSubtitleLogin")+"",b,w,E,A,O,M=e[30]("registerEmail")+"",R,ce,G,ge,U,Ge,Ae,je,k,X,he=e[30]("registerUsername")+"",pe,ne,V,Te,F,xe,He,Ee,be,C,ve,Z=e[30]("registerPassword")+"",we,Lr,Le,Mr,B,Me,dr,mr,Ve,Re,Ue,gr,j,Ce,$e=e[30]("registerConfirmPassword")+"",Qe,Rr,Be,pr,$,br,ze,ke,Ur,_e,Fe,Xe=e[30]("registerPromoCode")+"",yr,kr,Fr,se,Dr,Ze,Gr,fe,Ie,We=(e[2]=="true"?e[30]("registerSecurityQuestion2"):e[30]("registerSecurityQuestion"))+"",Er,jr,qe,Vr,oe,$r,Je,Qr,de,Ne,Ye=(e[2]=="true"?e[30]("registerSecurityAnswer2"):e[30]("registerSecurityAnswer"))+"",vr,zr,Ke,Xr,ae,Zr,er,p,N,le=e[30]("registerNext")+"",ut,Wr,ct,Ot,W=e[4]&&si(e),q=e[5]&&oi(e);function Lt(d,y){return d[25]?uo:lo}let qr=Lt(e),Se=qr(e),J=e[6]&&e[0]!=="true"&&ai(e),Y=e[6]&&e[0]==="true"&&li(e);function Mt(d,y){return d[26]?ho:co}let Jr=Mt(e),Pe=Jr(e),K=e[7]&&ui(e),ee=e[8]&&ci(e),re=e[9]&&hi(e);return{c(){var d,y,wr,_r,Sr,Pr,xr,Cr;r=v("div"),t=v("div"),i=v("h2"),s=H(n),a=I(),l=v("p"),c=H(h),f=I(),m=v("span"),b=H(g),w=I(),E=v("form"),A=v("div"),O=v("label"),R=H(M),ce=H(":"),G=v("span"),G.textContent="*",ge=I(),U=v("input"),Ge=I(),W&&W.c(),je=I(),k=v("div"),X=v("label"),pe=H(he),ne=H(":"),V=v("span"),V.textContent="*",Te=I(),F=v("input"),He=I(),q&&q.c(),be=I(),C=v("div"),ve=v("label"),we=H(Z),Lr=H(":"),Le=v("span"),Le.textContent="*",Mr=I(),B=v("input"),dr=I(),Se.c(),mr=I(),J&&J.c(),Ve=I(),Y&&Y.c(),gr=I(),j=v("div"),Ce=v("label"),Qe=H($e),Rr=H(":"),Be=v("span"),Be.textContent="*",pr=I(),$=v("input"),br=I(),Pe.c(),ze=I(),K&&K.c(),Ur=I(),_e=v("div"),Fe=v("label"),yr=H(Xe),kr=H(":"),Fr=I(),se=v("input"),Dr=I(),Gr=I(),fe=v("div"),Ie=v("label"),Er=H(We),jr=H(":"),qe=v("span"),qe.textContent="*",Vr=I(),oe=v("input"),$r=I(),ee&&ee.c(),Qr=I(),de=v("div"),Ne=v("label"),vr=H(Ye),zr=H(":"),Ke=v("span"),Ke.textContent="*",Xr=I(),ae=v("input"),Zr=I(),re&&re.c(),p=I(),N=v("button"),ut=H(le),o(i,"class","RegisterFormTitle"),o(m,"class","FormLoginCallToAction"),o(l,"class","RegisterFormSubtitle"),o(t,"class","RegisterFormHeader"),o(G,"class","FormRequired"),o(O,"for","Email"),o(U,"type","text"),o(U,"id","Email"),o(A,"class",Ae="EmailContainer "+(e[4]&&!e[10]?"InvalidField":"")+(((d=e[17])==null?void 0:d.indexOf("email"))>=0?"Hidden":"")),o(V,"class","FormRequired"),o(X,"for","UserName"),o(F,"type","text"),o(F,"id","UserName"),o(F,"autocomplete",xe=e[1]?"username":"off"),o(k,"class",Ee="UserContainer "+(e[5]&&!e[11]?"InvalidField":"")+(((y=e[17])==null?void 0:y.indexOf("username"))>=0?"Hidden":"")),o(Le,"class","FormRequired"),o(ve,"for","Password"),o(B,"name","new-password"),o(B,"type","password"),o(B,"id","new-password"),o(B,"autocomplete",Me=e[1]?"new-password":"off"),o(B,"aria-describedby","password-constraints"),o(C,"class",Re="PasswordContainer "+(e[6]&&!e[12]?"InvalidField":"")+(((wr=e[17])==null?void 0:wr.indexOf("password"))>=0?"Hidden":"")),C.hidden=Ue=((_r=e[17])==null?void 0:_r.indexOf("password"))>=0,o(Be,"class","FormRequired"),o(Ce,"for","ConfirmPassword"),o($,"type","password"),o($,"id","ConfirmPassword"),o(j,"class",ke="ConfirmPasswordContainer "+(e[7]&&!e[13]?"InvalidField":"")+(((Sr=e[17])==null?void 0:Sr.indexOf("confirmPassword"))>=0?"Hidden":"")),o(Fe,"for","PromoCode"),o(se,"type","text"),o(se,"id","PromoCode"),o(_e,"class",Ze="PromoCodeContainer "+(((Pr=e[17])==null?void 0:Pr.indexOf("promoCode"))>=0?"Hidden":"")),o(qe,"class","FormRequired"),o(Ie,"for","SecurityQuestion"),o(oe,"type","text"),o(oe,"id","SecurityQuestion"),o(fe,"class",Je="SecurityQuestionContainer "+(e[8]&&!e[14]?"InvalidField":"")+(((xr=e[17])==null?void 0:xr.indexOf("securityQuestion"))>=0?"Hidden":"")),o(Ke,"class","FormRequired"),o(Ne,"for","SecurityAnswer"),o(ae,"type","text"),o(ae,"id","SecurityAnswer"),o(de,"class",er="SecurityAnswerContainer "+(e[9]&&!e[15]?"InvalidField":"")+(((Cr=e[17])==null?void 0:Cr.indexOf("securityAnswer"))>=0?"Hidden":"")),o(N,"class","RegisterStepNext"),N.disabled=Wr=!e[29],o(E,"class","RegisterFormContent")},m(d,y){ue(d,r,y),u(r,t),u(t,i),u(i,s),u(t,a),u(t,l),u(l,c),u(l,f),u(l,m),u(m,b),u(r,w),u(r,E),u(E,A),u(A,O),u(O,R),u(O,ce),u(O,G),u(A,ge),u(A,U),te(U,e[19]),u(A,Ge),W&&W.m(A,null),u(E,je),u(E,k),u(k,X),u(X,pe),u(X,ne),u(X,V),u(k,Te),u(k,F),te(F,e[18]),u(k,He),q&&q.m(k,null),u(E,be),u(E,C),u(C,ve),u(ve,we),u(ve,Lr),u(ve,Le),u(C,Mr),u(C,B),te(B,e[20]),e[60](B),u(C,dr),Se.m(C,null),u(C,mr),J&&J.m(C,null),u(C,Ve),Y&&Y.m(C,null),u(E,gr),u(E,j),u(j,Ce),u(Ce,Qe),u(Ce,Rr),u(Ce,Be),u(j,pr),u(j,$),te($,e[21]),e[66]($),u(j,br),Pe.m(j,null),u(j,ze),K&&K.m(j,null),u(E,Ur),u(E,_e),u(_e,Fe),u(Fe,yr),u(Fe,kr),u(_e,Fr),u(_e,se),te(se,e[24]),u(_e,Dr),u(E,Gr),u(E,fe),u(fe,Ie),u(Ie,Er),u(Ie,jr),u(Ie,qe),u(fe,Vr),u(fe,oe),te(oe,e[22]),u(fe,$r),ee&&ee.m(fe,null),u(E,Qr),u(E,de),u(de,Ne),u(Ne,vr),u(Ne,zr),u(Ne,Ke),u(de,Xr),u(de,ae),te(ae,e[23]),u(de,Zr),re&&re.m(de,null),u(E,p),u(E,N),u(N,ut),e[79](r),ct||(Ot=[x(m,"click",e[50]),x(U,"input",e[51]),x(U,"keyup",e[32]),x(U,"focus",e[52]),x(U,"blur",e[53]),x(F,"input",e[54]),x(F,"keyup",e[33]),x(F,"focus",e[55]),x(F,"blur",e[56]),x(B,"input",e[57]),x(B,"keyup",e[38]),x(B,"focus",e[58]),x(B,"blur",e[59]),x($,"input",e[63]),x($,"keyup",e[39]),x($,"focus",e[64]),x($,"blur",e[65]),x(se,"input",e[69]),x(se,"keyup",e[40]),x(se,"focus",e[70]),x(se,"blur",e[71]),x(oe,"input",e[72]),x(oe,"keyup",e[41]),x(oe,"focus",e[73]),x(oe,"blur",e[74]),x(ae,"input",e[75]),x(ae,"keyup",e[42]),x(ae,"focus",e[76]),x(ae,"blur",e[77]),x(N,"click",e[78])],ct=!0)},p(d,y){var wr,_r,Sr,Pr,xr,Cr,Rt,Ut;y[0]&1073741824&&n!==(n=d[30]("registerTitle")+"")&&D(s,n),y[0]&1073741824&&h!==(h=d[30]("registerSubtitle")+"")&&D(c,h),y[0]&1073741824&&g!==(g=d[30]("registerSubtitleLogin")+"")&&D(b,g),y[0]&1073741824&&M!==(M=d[30]("registerEmail")+"")&&D(R,M),y[0]&524288&&U.value!==d[19]&&te(U,d[19]),d[4]?W?W.p(d,y):(W=si(d),W.c(),W.m(A,null)):W&&(W.d(1),W=null),y[0]&132112&&Ae!==(Ae="EmailContainer "+(d[4]&&!d[10]?"InvalidField":"")+(((wr=d[17])==null?void 0:wr.indexOf("email"))>=0?"Hidden":""))&&o(A,"class",Ae),y[0]&1073741824&&he!==(he=d[30]("registerUsername")+"")&&D(pe,he),y[0]&2&&xe!==(xe=d[1]?"username":"off")&&o(F,"autocomplete",xe),y[0]&262144&&F.value!==d[18]&&te(F,d[18]),d[5]?q?q.p(d,y):(q=oi(d),q.c(),q.m(k,null)):q&&(q.d(1),q=null),y[0]&133152&&Ee!==(Ee="UserContainer "+(d[5]&&!d[11]?"InvalidField":"")+(((_r=d[17])==null?void 0:_r.indexOf("username"))>=0?"Hidden":""))&&o(k,"class",Ee),y[0]&1073741824&&Z!==(Z=d[30]("registerPassword")+"")&&D(we,Z),y[0]&2&&Me!==(Me=d[1]?"new-password":"off")&&o(B,"autocomplete",Me),y[0]&1048576&&B.value!==d[20]&&te(B,d[20]),qr===(qr=Lt(d))&&Se?Se.p(d,y):(Se.d(1),Se=qr(d),Se&&(Se.c(),Se.m(C,mr))),d[6]&&d[0]!=="true"?J?J.p(d,y):(J=ai(d),J.c(),J.m(C,Ve)):J&&(J.d(1),J=null),d[6]&&d[0]==="true"?Y?Y.p(d,y):(Y=li(d),Y.c(),Y.m(C,null)):Y&&(Y.d(1),Y=null),y[0]&135232&&Re!==(Re="PasswordContainer "+(d[6]&&!d[12]?"InvalidField":"")+(((Sr=d[17])==null?void 0:Sr.indexOf("password"))>=0?"Hidden":""))&&o(C,"class",Re),y[0]&131072&&Ue!==(Ue=((Pr=d[17])==null?void 0:Pr.indexOf("password"))>=0)&&(C.hidden=Ue),y[0]&1073741824&&$e!==($e=d[30]("registerConfirmPassword")+"")&&D(Qe,$e),y[0]&2097152&&$.value!==d[21]&&te($,d[21]),Jr===(Jr=Mt(d))&&Pe?Pe.p(d,y):(Pe.d(1),Pe=Jr(d),Pe&&(Pe.c(),Pe.m(j,ze))),d[7]?K?K.p(d,y):(K=ui(d),K.c(),K.m(j,null)):K&&(K.d(1),K=null),y[0]&139392&&ke!==(ke="ConfirmPasswordContainer "+(d[7]&&!d[13]?"InvalidField":"")+(((xr=d[17])==null?void 0:xr.indexOf("confirmPassword"))>=0?"Hidden":""))&&o(j,"class",ke),y[0]&1073741824&&Xe!==(Xe=d[30]("registerPromoCode")+"")&&D(yr,Xe),y[0]&16777216&&se.value!==d[24]&&te(se,d[24]),y[0]&131072&&Ze!==(Ze="PromoCodeContainer "+(((Cr=d[17])==null?void 0:Cr.indexOf("promoCode"))>=0?"Hidden":""))&&o(_e,"class",Ze),y[0]&1073741828&&We!==(We=(d[2]=="true"?d[30]("registerSecurityQuestion2"):d[30]("registerSecurityQuestion"))+"")&&D(Er,We),y[0]&4194304&&oe.value!==d[22]&&te(oe,d[22]),d[8]?ee?ee.p(d,y):(ee=ci(d),ee.c(),ee.m(fe,null)):ee&&(ee.d(1),ee=null),y[0]&147712&&Je!==(Je="SecurityQuestionContainer "+(d[8]&&!d[14]?"InvalidField":"")+(((Rt=d[17])==null?void 0:Rt.indexOf("securityQuestion"))>=0?"Hidden":""))&&o(fe,"class",Je),y[0]&1073741828&&Ye!==(Ye=(d[2]=="true"?d[30]("registerSecurityAnswer2"):d[30]("registerSecurityAnswer"))+"")&&D(vr,Ye),y[0]&8388608&&ae.value!==d[23]&&te(ae,d[23]),d[9]?re?re.p(d,y):(re=hi(d),re.c(),re.m(de,null)):re&&(re.d(1),re=null),y[0]&164352&&er!==(er="SecurityAnswerContainer "+(d[9]&&!d[15]?"InvalidField":"")+(((Ut=d[17])==null?void 0:Ut.indexOf("securityAnswer"))>=0?"Hidden":""))&&o(de,"class",er),y[0]&1073741824&&le!==(le=d[30]("registerNext")+"")&&D(ut,le),y[0]&536870912&&Wr!==(Wr=!d[29])&&(N.disabled=Wr)},i:z,o:z,d(d){d&&ie(r),W&&W.d(),q&&q.d(),e[60](null),Se.d(),J&&J.d(),Y&&Y.d(),e[66](null),Pe.d(),K&&K.d(),ee&&ee.d(),re&&re.d(),e[79](null),ct=!1,ur(Ot)}}}function mo(e,r,t){let i;Xi(e,to,p=>t(30,i=p));let{lang:n=""}=r,{disabledfields:s=""}=r,{simplepasswordvalidation:a="false"}=r,{mbsource:l}=r,{clientstyling:h=""}=r,{clientstylingurl:c=""}=r,{translationurl:f=""}=r,{savecredentials:m=""}=r,{custominputtextswitch:g="false"}=r,b=!1,w=!1,E=!1,A=!1,O=!1,M=!1,R=!1,ce=!1,G=!1,ge=!1,U=!1,Ge=!1,Ae=!1,je,k="",X="",he="",pe="",ne="",V="",Te="",F=!1,xe=!1,He,Ee,be={},C={username:!1,email:!1,password:!1,confirmUserPassword:!1,securityAnswer:!1,securityQuestion:!1,promoCode:!0},ve=!1,Z,we={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 Lr=()=>{fetch(f).then(N=>N.json()).then(N=>{Object.keys(N).forEach(le=>{ii(le,N[le])})}).catch(N=>{console.log(N)})};Object.keys(ni).forEach(p=>{ii(p,ni[p])});const Le=()=>{window.postMessage({type:"ToLogin"},window.location.href)},Mr=(p,N)=>{if(!(je.indexOf(p)>=0))switch(p){case"username":t(18,k=N),dr();break;case"email":t(19,X=N),Me();break;case"password":t(20,he=N),Qe();break;case"confirmUserPassword":t(21,pe=N),Be();break;case"securityQuestion":t(22,ne=N),$();break;case"securityAnswer":t(23,V=N),br();break;case"promoCode":t(24,Te=N),pr();break}},B=()=>{t(29,ve=Object.keys(C).every(p=>s.includes(p)?!0:C[p]!==!1))},Me=()=>{be.email=X,we.email.test(X)&&X.length<=100?t(4,b=!1):t(4,b=!0),C.email=!b,B()},dr=()=>{be.username=k,we.user.test(k)&&k.length<=20?t(5,w=!1):t(5,w=!0),C.username=!w,B()},mr=()=>{a=="true"&&(we.password=/^(?!.* ).{8,20}$/)},Ve=()=>{t(25,F=!0),j()},Re=()=>{t(26,xe=!0),Ce()},Ue=()=>{t(25,F=!1),j()},gr=()=>{t(26,xe=!1),Ce()},j=()=>{t(27,He.type=F?"text":"password",He)},Ce=()=>{t(28,Ee.type=xe?"text":"password",Ee)},$e=()=>!!we.password.test(he),Qe=()=>{be.password=he,t(6,E=!$e()),pe.length!==0&&Be(),C.password=!E,B()},Rr=()=>he===pe,Be=()=>{be.confirmUserPassword=pe,t(7,A=!Rr()),C.confirmUserPassword=!A,B()},pr=()=>{be.promoCode=Te},$=()=>{if(be.securityQuestion=ne,ne)switch(g){case"true":if(we.document.test(ne)&&ne.length<=50){t(8,O=!1),C.securityQuestion=!O,B();return}break;case"false":if(ne&&ne.length<=120){t(8,O=!1),C.securityQuestion=!O,B();return}break}t(8,O=!0),C.securityQuestion=!O,B()},br=()=>{if(be.securityAnswer=V,V)switch(g){case"true":if(we.document.test(V)&&V.length<=50){t(9,M=!1),C.securityAnswer=!M,B();return}break;case"false":if(V&&V.length<=120){t(9,M=!1),C.securityAnswer=!M,B();return}break}t(9,M=!0),C.securityAnswer=!M,B()},ze=p=>{p.preventDefault(),window.postMessage({type:"RegisterStepOne",registerStepOneData:be},window.location.href)},ke=p=>{if(p.data)switch(p.data.type){case"StepOneDataBackup":const N=p.data.userData;for(const le in N)Mr(le,N[le]);t(29,ve=Object.keys(C).every(le=>s.includes(le)?!0:C[le]!==!1));break}},Ur=()=>{t(17,je=s.split(","))},_e=()=>{io(n)};en(()=>(window.addEventListener("message",ke,!1),()=>{window.removeEventListener("message",ke)}));const Fe=()=>Le();function Xe(){X=this.value,t(19,X)}const yr=()=>t(10,R=!0),kr=()=>t(10,R=!1);function Fr(){k=this.value,t(18,k)}const se=()=>t(11,ce=!0),Dr=()=>t(11,ce=!1);function Ze(){he=this.value,t(20,he)}const Gr=()=>t(12,G=!0),fe=()=>t(12,G=!1);function Ie(p){Hr[p?"unshift":"push"](()=>{He=p,t(27,He)})}const We=()=>Ue(),Er=()=>Ve();function jr(){pe=this.value,t(21,pe)}const qe=()=>t(13,ge=!0),Vr=()=>t(13,ge=!1);function oe(p){Hr[p?"unshift":"push"](()=>{Ee=p,t(28,Ee)})}const $r=()=>gr(),Je=()=>Re();function Qr(){Te=this.value,t(24,Te)}const de=()=>t(16,Ae=!0),Ne=()=>t(16,Ae=!1);function Ye(){ne=this.value,t(22,ne)}const vr=()=>t(14,U=!0),zr=()=>t(14,U=!1);function Ke(){V=this.value,t(23,V)}const Xr=()=>t(15,Ge=!0),ae=()=>t(15,Ge=!1),Zr=p=>ze(p);function er(p){Hr[p?"unshift":"push"](()=>{Z=p,t(3,Z)})}return e.$$set=p=>{"lang"in p&&t(44,n=p.lang),"disabledfields"in p&&t(45,s=p.disabledfields),"simplepasswordvalidation"in p&&t(0,a=p.simplepasswordvalidation),"mbsource"in p&&t(46,l=p.mbsource),"clientstyling"in p&&t(47,h=p.clientstyling),"clientstylingurl"in p&&t(48,c=p.clientstylingurl),"translationurl"in p&&t(49,f=p.translationurl),"savecredentials"in p&&t(1,m=p.savecredentials),"custominputtextswitch"in p&&t(2,g=p.custominputtextswitch)},e.$$.update=()=>{e.$$.dirty[1]&8192&&n&&_e(),e.$$.dirty[1]&16384&&s&&Ur(),e.$$.dirty[0]&1&&a&&mr(),e.$$.dirty[0]&8|e.$$.dirty[1]&65536&&h&&Z&&no(Z,h),e.$$.dirty[0]&8|e.$$.dirty[1]&131072&&c&&Z&&so(Z,c),e.$$.dirty[0]&8|e.$$.dirty[1]&32768&&l&&Z&&oo(Z,`${l}.Style`),e.$$.dirty[1]&262144&&f&&Lr()},[a,m,g,Z,b,w,E,A,O,M,R,ce,G,ge,U,Ge,Ae,je,k,X,he,pe,ne,V,Te,F,xe,He,Ee,ve,i,Le,Me,dr,Ve,Re,Ue,gr,Qe,Be,pr,$,br,ze,n,s,l,h,c,f,Fe,Xe,yr,kr,Fr,se,Dr,Ze,Gr,fe,Ie,We,Er,jr,qe,Vr,oe,$r,Je,Qr,de,Ne,Ye,vr,zr,Ke,Xr,ae,Zr,er]}class Di extends dn{constructor(r){super(),hn(this,r,mo,fo,di,{lang:44,disabledfields:45,simplepasswordvalidation:0,mbsource:46,clientstyling:47,clientstylingurl:48,translationurl:49,savecredentials:1,custominputtextswitch:2},ao,[-1,-1,-1,-1])}get lang(){return this.$$.ctx[44]}set lang(r){this.$$set({lang:r}),ye()}get disabledfields(){return this.$$.ctx[45]}set disabledfields(r){this.$$set({disabledfields:r}),ye()}get simplepasswordvalidation(){return this.$$.ctx[0]}set simplepasswordvalidation(r){this.$$set({simplepasswordvalidation:r}),ye()}get mbsource(){return this.$$.ctx[46]}set mbsource(r){this.$$set({mbsource:r}),ye()}get clientstyling(){return this.$$.ctx[47]}set clientstyling(r){this.$$set({clientstyling:r}),ye()}get clientstylingurl(){return this.$$.ctx[48]}set clientstylingurl(r){this.$$set({clientstylingurl:r}),ye()}get translationurl(){return this.$$.ctx[49]}set translationurl(r){this.$$set({translationurl:r}),ye()}get savecredentials(){return this.$$.ctx[1]}set savecredentials(r){this.$$set({savecredentials:r}),ye()}get custominputtextswitch(){return this.$$.ctx[2]}set custominputtextswitch(r){this.$$set({custominputtextswitch:r}),ye()}}fn(Di,{lang:{},disabledfields:{},simplepasswordvalidation:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},savecredentials:{},custominputtextswitch:{}},[],[],!0);exports.default=Di;
|