@everymatrix/general-player-register-form-step3-nd 1.86.3 → 1.86.5
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/GeneralPlayerRegisterFormStep3Nd-BCF6MR_A.cjs +3 -0
- package/components/{GeneralPlayerRegisterFormStep3Nd-DYot0PRn.js → GeneralPlayerRegisterFormStep3Nd-CJT8VX4D.js} +717 -713
- package/components/{GeneralPlayerRegisterFormStep3Nd-Dy5k1QtK.js → GeneralPlayerRegisterFormStep3Nd-LnOS1rex.js} +701 -697
- package/es2015/general-player-register-form-step3-nd.cjs +1 -1
- package/es2015/general-player-register-form-step3-nd.js +1 -1
- package/esnext/general-player-register-form-step3-nd.js +1 -1
- package/package.json +1 -1
- package/components/GeneralPlayerRegisterFormStep3Nd-D_Q4Lvk8.cjs +0 -16
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";var Yn=Object.defineProperty,Kn=Object.defineProperties;var ei=Object.getOwnPropertyDescriptors;var Ur=Object.getOwnPropertySymbols;var ti=Object.prototype.hasOwnProperty,ri=Object.prototype.propertyIsEnumerable;var ur=(e,t,r)=>t in e?Yn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,cr=(e,t)=>{for(var r in t||(t={}))ti.call(t,r)&&ur(e,r,t[r]);if(Ur)for(var r of Ur(t))ri.call(t,r)&&ur(e,r,t[r]);return e},hr=(e,t)=>Kn(e,ei(t));var be=(e,t,r)=>(ur(e,typeof t!="symbol"?t+"":t,r),r);var Fr=(e,t,r)=>new Promise((n,i)=>{var s=c=>{try{l(r.next(c))}catch(a){i(a)}},o=c=>{try{l(r.throw(c))}catch(a){i(a)}},l=c=>c.done?n(c.value):Promise.resolve(c.value).then(s,o);l((r=r.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function Ce(){}function xn(e){return e()}function Dr(){return Object.create(null)}function bt(e){e.forEach(xn)}function Mr(e){return typeof e=="function"}function An(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let Zt;function Gr(e,t){return e===t?!0:(Zt||(Zt=document.createElement("a")),Zt.href=t,e===Zt.href)}function ni(e){return Object.keys(e).length===0}function wn(e,...t){if(e==null){for(const n of t)n(void 0);return Ce}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function ii(e,t,r){e.$$.on_destroy.push(wn(t,r))}function u(e,t){e.appendChild(t)}function si(e,t,r){const n=oi(e);if(!n.getElementById(t)){const i=b("style");i.id=t,i.textContent=r,ai(n,i)}}function oi(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function ai(e,t){return u(e.head||e,t),t.sheet}function L(e,t,r){e.insertBefore(t,r||null)}function k(e){e.parentNode&&e.parentNode.removeChild(e)}function fr(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function b(e){return document.createElement(e)}function $t(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function O(e){return document.createTextNode(e)}function S(){return O(" ")}function Nr(){return O("")}function N(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function p(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function li(e){return Array.from(e.childNodes)}function D(e,t){t=""+t,e.data!==t&&(e.data=t)}function ce(e,t){e.value=t==null?"":t}function ot(e,t,r){for(let n=0;n<e.options.length;n+=1){const i=e.options[n];if(i.__value===t){i.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function dr(e){const t=e.querySelector(":checked");return t&&t.__value}function ui(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}let Nt;function Mt(e){Nt=e}function ci(){if(!Nt)throw new Error("Function called outside component initialization");return Nt}function hi(e){ci().$$.on_mount.push(e)}const ct=[],vr=[];let ht=[];const jr=[],fi=Promise.resolve();let Cr=!1;function di(){Cr||(Cr=!0,fi.then(K))}function ft(e){ht.push(e)}const mr=new Set;let at=0;function K(){if(at!==0)return;const e=Nt;do{try{for(;at<ct.length;){const t=ct[at];at++,Mt(t),mi(t.$$)}}catch(t){throw ct.length=0,at=0,t}for(Mt(null),ct.length=0,at=0;vr.length;)vr.pop()();for(let t=0;t<ht.length;t+=1){const r=ht[t];mr.has(r)||(mr.add(r),r())}ht.length=0}while(ct.length);for(;jr.length;)jr.pop()();Cr=!1,mr.clear(),Mt(e)}function mi(e){if(e.fragment!==null){e.update(),bt(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(ft)}}function pi(e){const t=[],r=[];ht.forEach(n=>e.indexOf(n)===-1?t.push(n):r.push(n)),r.forEach(n=>n()),ht=t}const gi=new Set;function bi(e,t){e&&e.i&&(gi.delete(e),e.i(t))}function lt(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function yi(e,t,r){const{fragment:n,after_update:i}=e.$$;n&&n.m(t,r),ft(()=>{const s=e.$$.on_mount.map(xn).filter(Mr);e.$$.on_destroy?e.$$.on_destroy.push(...s):bt(s),e.$$.on_mount=[]}),i.forEach(ft)}function _i(e,t){const r=e.$$;r.fragment!==null&&(pi(r.after_update),bt(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function Ei(e,t){e.$$.dirty[0]===-1&&(ct.push(e),di(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function vi(e,t,r,n,i,s,o=null,l=[-1]){const c=Nt;Mt(e);const a=e.$$={fragment:null,ctx:[],props:s,update:Ce,not_equal:i,bound:Dr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:Dr(),dirty:l,skip_bound:!1,root:t.target||c.$$.root};o&&o(a.root);let h=!1;if(a.ctx=r?r(e,t.props||{},(d,m,...E)=>{const _=E.length?E[0]:m;return a.ctx&&i(a.ctx[d],a.ctx[d]=_)&&(!a.skip_bound&&a.bound[d]&&a.bound[d](_),h&&Ei(e,d)),m}):[],a.update(),h=!0,bt(a.before_update),a.fragment=n?n(a.ctx):!1,t.target){if(t.hydrate){const d=li(t.target);a.fragment&&a.fragment.l(d),d.forEach(k)}else a.fragment&&a.fragment.c();t.intro&&bi(e.$$.fragment),yi(e,t.target,t.anchor),K()}Mt(c)}let Sn;typeof HTMLElement=="function"&&(Sn=class extends HTMLElement{constructor(t,r,n){super();be(this,"$$ctor");be(this,"$$s");be(this,"$$c");be(this,"$$cn",!1);be(this,"$$d",{});be(this,"$$r",!1);be(this,"$$p_d",{});be(this,"$$l",{});be(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}connectedCallback(){return Fr(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let o;return{c:function(){o=b("slot"),s!=="default"&&p(o,"name",s)},m:function(a,h){L(a,o,h)},d:function(a){a&&k(o)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=ui(this);for(const s of this.$$s)s in n&&(r[s]=[t(s)]);for(const s of this.attributes){const o=this.$$g_p(s.name);o in this.$$d||(this.$$d[o]=Jt(o,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:hr(cr({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const i=()=>{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 o=Jt(s,this.$$d[s],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,o)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const s in this.$$l)for(const o of this.$$l[s]){const l=this.$$c.$on(s,o);this.$$l_u.set(o,l)}this.$$l={}}})}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Jt(t,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Jt(e,t,r,n){var s;const i=(s=r[e])==null?void 0:s.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Ci(e,t,r,n,i,s){let o=class extends Sn{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Object.keys(t).forEach(l=>{Object.defineProperty(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(c){var a;c=Jt(l,c,t),this.$$d[l]=c,(a=this.$$c)==null||a.$set({[l]:c})}})}),n.forEach(l=>{Object.defineProperty(o.prototype,l,{get(){var c;return(c=this.$$c)==null?void 0:c[l]}})}),e.element=o,o}class xi{constructor(){be(this,"$$");be(this,"$$set")}$destroy(){_i(this,1),this.$destroy=Ce}$on(t,r){if(!Mr(r))return Ce;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const i=n.indexOf(r);i!==-1&&n.splice(i,1)}}$set(t){this.$$set&&!ni(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Ai="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ai);const ut=[];function wi(e,t){return{subscribe:nr(e,t).subscribe}}function nr(e,t=Ce){let r;const n=new Set;function i(l){if(An(e,l)&&(e=l,r)){const c=!ut.length;for(const a of n)a[1](),ut.push(a,e);if(c){for(let a=0;a<ut.length;a+=2)ut[a][0](ut[a+1]);ut.length=0}}}function s(l){i(l(e))}function o(l,c=Ce){const a=[l,c];return n.add(a),n.size===1&&(r=t(i,s)||Ce),l(e),()=>{n.delete(a),n.size===0&&r&&(r(),r=null)}}return{set:i,update:s,subscribe:o}}function yt(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=t.length<2;return wi(r,(o,l)=>{let c=!1;const a=[];let h=0,d=Ce;const m=()=>{if(h)return;d();const _=t(n?a[0]:a,o,l);s?o(_):d=Mr(_)?_:Ce},E=i.map((_,v)=>wn(_,P=>{a[v]=P,h&=~(1<<v),c&&m()},()=>{h|=1<<v}));return c=!0,m(),function(){bt(E),d(),c=!1}})}function Si(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ti=function(t){return Hi(t)&&!Bi(t)};function Hi(e){return!!e&&typeof e=="object"}function Bi(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Mi(e)}var Pi=typeof Symbol=="function"&&Symbol.for,Oi=Pi?Symbol.for("react.element"):60103;function Mi(e){return e.$$typeof===Oi}function Ni(e){return Array.isArray(e)?[]:{}}function kt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?dt(Ni(e),e,t):e}function ki(e,t,r){return e.concat(t).map(function(n){return kt(n,r)})}function Ii(e,t){if(!t.customMerge)return dt;var r=t.customMerge(e);return typeof r=="function"?r:dt}function Li(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function zr(e){return Object.keys(e).concat(Li(e))}function Tn(e,t){try{return t in e}catch(r){return!1}}function Ri(e,t){return Tn(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Ui(e,t,r){var n={};return r.isMergeableObject(e)&&zr(e).forEach(function(i){n[i]=kt(e[i],r)}),zr(t).forEach(function(i){Ri(e,i)||(Tn(e,i)&&r.isMergeableObject(t[i])?n[i]=Ii(i,r)(e[i],t[i],r):n[i]=kt(t[i],r))}),n}function dt(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||ki,r.isMergeableObject=r.isMergeableObject||Ti,r.cloneUnlessOtherwiseSpecified=kt;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):Ui(e,t,r):kt(t,r)}dt.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return dt(n,i,r)},{})};var Fi=dt,Di=Fi;const Gi=Si(Di);var xr=function(e,t){return xr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},xr(e,t)};function ir(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");xr(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var we=function(){return we=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},we.apply(this,arguments)};function ji(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function pr(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}function gr(e,t){var r=t&&t.cache?t.cache:$i,n=t&&t.serializer?t.serializer:qi,i=t&&t.strategy?t.strategy:Xi;return i(e,{cache:r,serializer:n})}function zi(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Vi(e,t,r,n){var i=zi(n)?n:r(n),s=t.get(i);return typeof s=="undefined"&&(s=e.call(this,n),t.set(i,s)),s}function Hn(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),s=t.get(i);return typeof s=="undefined"&&(s=e.apply(this,n),t.set(i,s)),s}function Bn(e,t,r,n,i){return r.bind(t,e,n,i)}function Xi(e,t){var r=e.length===1?Vi:Hn;return Bn(e,this,r,t.cache.create(),t.serializer)}function Wi(e,t){return Bn(e,this,Hn,t.cache.create(),t.serializer)}var qi=function(){return JSON.stringify(arguments)},Zi=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r},e}(),$i={create:function(){return new Zi}},br={variadic:Wi},er=function(){return er=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},er.apply(this,arguments)};var w;(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"})(w||(w={}));var I;(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"})(I||(I={}));var mt;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(mt||(mt={}));function Vr(e){return e.type===I.literal}function Qi(e){return e.type===I.argument}function Pn(e){return e.type===I.number}function On(e){return e.type===I.date}function Mn(e){return e.type===I.time}function Nn(e){return e.type===I.select}function kn(e){return e.type===I.plural}function Ji(e){return e.type===I.pound}function In(e){return e.type===I.tag}function Ln(e){return!!(e&&typeof e=="object"&&e.type===mt.number)}function Ar(e){return!!(e&&typeof e=="object"&&e.type===mt.dateTime)}var Rn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Yi=/(?:[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 Ki(e){var t={};return e.replace(Yi,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===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":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-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":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<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""}),t}var R=function(){return R=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},R.apply(this,arguments)};var es=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function ts(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(es).filter(function(m){return m.length>0}),r=[],n=0,i=t;n<i.length;n++){var s=i[n],o=s.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var l=o[0],c=o.slice(1),a=0,h=c;a<h.length;a++){var d=h[a];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:l,options:c})}return r}function rs(e){return e.replace(/^(.*?)-/,"")}var Xr=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Un=/^(@+)?(\+|#+)?[rs]?$/g,ns=/(\*)(0+)|(#+)(0+)|(0+)/g,Fn=/^(0+)$/;function Wr(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Un,function(r,n,i){return typeof i!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):i==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof i=="string"?i.length:0)),""}),t}function Dn(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 is(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Fn.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function qr(e){var t={},r=Dn(e);return r||t}function ss(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=rs(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=R(R(R({},t),{notation:"scientific"}),i.options.reduce(function(c,a){return R(R({},c),qr(a))},{}));continue;case"engineering":t=R(R(R({},t),{notation:"engineering"}),i.options.reduce(function(c,a){return R(R({},c),qr(a))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(ns,function(c,a,h,d,m,E){if(a)t.minimumIntegerDigits=h.length;else{if(d&&m)throw new Error("We currently do not support maximum integer digits");if(E)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Fn.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Xr.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Xr,function(c,a,h,d,m,E){return h==="*"?t.minimumFractionDigits=a.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:m&&E?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+E.length):(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length),""});var s=i.options[0];s==="w"?t=R(R({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=R(R({},t),Wr(s)));continue}if(Un.test(i.stem)){t=R(R({},t),Wr(i.stem));continue}var o=Dn(i.stem);o&&(t=R(R({},t),o));var l=is(i.stem);l&&(t=R(R({},t),l))}return t}var Qt={"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 os(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==="j"){for(var s=0;n+1<e.length&&e.charAt(n+1)===i;)s++,n++;var o=1+(s&1),l=s<2?1:3+(s>>1),c="a",a=as(t);for((a=="H"||a=="k")&&(l=0);l-- >0;)r+=c;for(;o-- >0;)r=a+r}else i==="J"?r+="H":r+=i}return r}function as(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=Qt[n||""]||Qt[r||""]||Qt["".concat(r,"-001")]||Qt["001"];return i[0]}var yr,ls=new RegExp("^".concat(Rn.source,"*")),us=new RegExp("".concat(Rn.source,"*$"));function H(e,t){return{start:e,end:t}}var cs=!!String.prototype.startsWith&&"_a".startsWith("a",1),hs=!!String.fromCodePoint,fs=!!Object.fromEntries,ds=!!String.prototype.codePointAt,ms=!!String.prototype.trimStart,ps=!!String.prototype.trimEnd,gs=!!Number.isSafeInteger,bs=gs?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},wr=!0;try{var ys=jn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");wr=((yr=ys.exec("a"))===null||yr===void 0?void 0:yr[0])==="a"}catch(e){wr=!1}var Zr=cs?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Sr=hs?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,s=0,o;i>s;){if(o=t[s++],o>1114111)throw RangeError(o+" is not a valid code point");n+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return n},$r=fs?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var s=i[n],o=s[0],l=s[1];r[o]=l}return r},Gn=ds?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var i=t.charCodeAt(r),s;return i<55296||i>56319||r+1===n||(s=t.charCodeAt(r+1))<56320||s>57343?i:(i-55296<<10)+(s-56320)+65536}},_s=ms?function(t){return t.trimStart()}:function(t){return t.replace(ls,"")},Es=ps?function(t){return t.trimEnd()}:function(t){return t.replace(us,"")};function jn(e,t){return new RegExp(e,t)}var Tr;if(wr){var Qr=jn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Tr=function(t,r){var n;Qr.lastIndex=r;var i=Qr.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else Tr=function(t,r){for(var n=[];;){var i=Gn(t,r);if(i===void 0||zn(i)||As(i))break;n.push(i),r+=i>=65536?2:1}return Sr.apply(void 0,n)};var vs=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.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(t,r,n){for(var i=[];!this.isEOF();){var s=this.char();if(s===123){var o=this.parseArgument(t,n);if(o.err)return o;i.push(o.val)}else{if(s===125&&t>0)break;if(s===35&&(r==="plural"||r==="selectordinal")){var l=this.clonePosition();this.bump(),i.push({type:I.pound,location:H(l,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(w.UNMATCHED_CLOSING_TAG,H(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&Hr(this.peek()||0)){var o=this.parseTag(t,r);if(o.err)return o;i.push(o.val)}else{var o=this.parseLiteral(t,r);if(o.err)return o;i.push(o.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:I.literal,value:"<".concat(i,"/>"),location:H(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,r,!0);if(s.err)return s;var o=s.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Hr(this.char()))return this.error(w.INVALID_TAG,H(l,this.clonePosition()));var c=this.clonePosition(),a=this.parseTagName();return i!==a?this.error(w.UNMATCHED_CLOSING_TAG,H(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:I.tag,value:i,children:o,location:H(n,this.clonePosition())},err:null}:this.error(w.INVALID_TAG,H(l,this.clonePosition())))}else return this.error(w.UNCLOSED_TAG,H(n,this.clonePosition()))}else return this.error(w.INVALID_TAG,H(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&xs(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var s=this.tryParseQuote(r);if(s){i+=s;continue}var o=this.tryParseUnquoted(t,r);if(o){i+=o;continue}var l=this.tryParseLeftAngleBracket();if(l){i+=l;continue}break}var c=H(n,this.clonePosition());return{val:{type:I.literal,value:i,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Cs(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){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(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return Sr.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),Sr(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE,H(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(w.EMPTY_ARGUMENT,H(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(w.MALFORMED_ARGUMENT,H(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE,H(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:I.argument,value:i,location:H(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE,H(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(w.MALFORMED_ARGUMENT,H(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Tr(this.message,r),i=r+n.length;this.bumpTo(i);var s=this.clonePosition(),o=H(t,s);return{value:n,location:o}},e.prototype.parseArgumentOptions=function(t,r,n,i){var s,o=this.clonePosition(),l=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(l){case"":return this.error(w.EXPECT_ARGUMENT_TYPE,H(o,c));case"number":case"date":case"time":{this.bumpSpace();var a=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var m=Es(d.val);if(m.length===0)return this.error(w.EXPECT_ARGUMENT_STYLE,H(this.clonePosition(),this.clonePosition()));var E=H(h,this.clonePosition());a={style:m,styleLocation:E}}var _=this.tryParseArgumentClose(i);if(_.err)return _;var v=H(i,this.clonePosition());if(a&&Zr(a==null?void 0:a.style,"::",0)){var P=_s(a.style.slice(2));if(l==="number"){var d=this.parseNumberSkeletonFromString(P,a.styleLocation);return d.err?d:{val:{type:I.number,value:n,location:v,style:d.val},err:null}}else{if(P.length===0)return this.error(w.EXPECT_DATE_TIME_SKELETON,v);var T=P;this.locale&&(T=os(P,this.locale));var m={type:mt.dateTime,pattern:T,location:a.styleLocation,parsedOptions:this.shouldParseSkeletons?Ki(T):{}},z=l==="date"?I.date:I.time;return{val:{type:z,value:n,location:v,style:m},err:null}}}return{val:{type:l==="number"?I.number:l==="date"?I.date:I.time,value:n,location:v,style:(s=a==null?void 0:a.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var M=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS,H(M,er({},M)));this.bumpSpace();var V=this.parseIdentifierIfPossible(),X=0;if(l!=="select"&&V.value==="offset"){if(!this.bumpIf(":"))return this.error(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,H(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,w.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),V=this.parseIdentifierIfPossible(),X=d.val}var me=this.tryParsePluralOrSelectOptions(t,l,r,V);if(me.err)return me;var _=this.tryParseArgumentClose(i);if(_.err)return _;var Se=H(i,this.clonePosition());return l==="select"?{val:{type:I.select,value:n,options:$r(me.val),location:Se},err:null}:{val:{type:I.plural,value:n,options:$r(me.val),offset:X,pluralType:l==="plural"?"cardinal":"ordinal",location:Se},err:null}}default:return this.error(w.INVALID_ARGUMENT_TYPE,H(o,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE,H(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(w.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,H(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=ts(t)}catch(i){return this.error(w.INVALID_NUMBER_SKELETON,r)}return{val:{type:mt.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?ss(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var s,o=!1,l=[],c=new Set,a=i.value,h=i.location;;){if(a.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_SELECTOR,w.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;h=H(d,this.clonePosition()),a=this.message.slice(d.offset,this.offset())}else break}if(c.has(a))return this.error(r==="select"?w.DUPLICATE_SELECT_ARGUMENT_SELECTOR:w.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);a==="other"&&(o=!0),this.bumpSpace();var E=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?w.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:w.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,H(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(t+1,r,n);if(_.err)return _;var v=this.tryParseArgumentClose(E);if(v.err)return v;l.push([a,{value:_.val,location:H(E,this.clonePosition())}]),c.add(a),this.bumpSpace(),s=this.parseIdentifierIfPossible(),a=s.value,h=s.location}return l.length===0?this.error(r==="select"?w.EXPECT_SELECT_ARGUMENT_SELECTOR:w.EXPECT_PLURAL_ARGUMENT_SELECTOR,H(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(w.MISSING_OTHER_CLAUSE,H(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var s=!1,o=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)s=!0,o=o*10+(l-48),this.bump();else break}var c=H(i,this.clonePosition());return s?(o*=n,bs(o)?{val:o,err:null}:this.error(r,c)):this.error(t,c)},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 t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=Gn(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Zr(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&zn(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n!=null?n:null},e}();function Hr(e){return e>=97&&e<=122||e>=65&&e<=90}function Cs(e){return Hr(e)||e===47}function xs(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 zn(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function As(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 Br(e){e.forEach(function(t){if(delete t.location,Nn(t)||kn(t))for(var r in t.options)delete t.options[r].location,Br(t.options[r].value);else Pn(t)&&Ln(t.style)||(On(t)||Mn(t))&&Ar(t.style)?delete t.style.location:In(t)&&Br(t.children)})}function ws(e,t){t===void 0&&(t={}),t=er({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new vs(e,t).parse();if(r.err){var n=SyntaxError(w[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||Br(r.val),r.val}var pt;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(pt||(pt={}));var sr=function(e){ir(t,e);function t(r,n,i){var s=e.call(this,r)||this;return s.code=n,s.originalMessage=i,s}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Jr=function(e){ir(t,e);function t(r,n,i,s){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),pt.INVALID_VALUE,s)||this}return t}(sr),Ss=function(e){ir(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),pt.INVALID_VALUE,i)||this}return t}(sr),Ts=function(e){ir(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),pt.MISSING_VALUE,n)||this}return t}(sr),ee;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ee||(ee={}));function Hs(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==ee.literal||r.type!==ee.literal?t.push(r):n.value+=r.value,t},[])}function Bs(e){return typeof e=="function"}function Yt(e,t,r,n,i,s,o){if(e.length===1&&Vr(e[0]))return[{type:ee.literal,value:e[0].value}];for(var l=[],c=0,a=e;c<a.length;c++){var h=a[c];if(Vr(h)){l.push({type:ee.literal,value:h.value});continue}if(Ji(h)){typeof s=="number"&&l.push({type:ee.literal,value:r.getNumberFormat(t).format(s)});continue}var d=h.value;if(!(i&&d in i))throw new Ts(d,o);var m=i[d];if(Qi(h)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),l.push({type:typeof m=="string"?ee.literal:ee.object,value:m});continue}if(On(h)){var E=typeof h.style=="string"?n.date[h.style]:Ar(h.style)?h.style.parsedOptions:void 0;l.push({type:ee.literal,value:r.getDateTimeFormat(t,E).format(m)});continue}if(Mn(h)){var E=typeof h.style=="string"?n.time[h.style]:Ar(h.style)?h.style.parsedOptions:n.time.medium;l.push({type:ee.literal,value:r.getDateTimeFormat(t,E).format(m)});continue}if(Pn(h)){var E=typeof h.style=="string"?n.number[h.style]:Ln(h.style)?h.style.parsedOptions:void 0;E&&E.scale&&(m=m*(E.scale||1)),l.push({type:ee.literal,value:r.getNumberFormat(t,E).format(m)});continue}if(In(h)){var _=h.children,v=h.value,P=i[v];if(!Bs(P))throw new Ss(v,"function",o);var T=Yt(_,t,r,n,i,s),z=P(T.map(function(X){return X.value}));Array.isArray(z)||(z=[z]),l.push.apply(l,z.map(function(X){return{type:typeof X=="string"?ee.literal:ee.object,value:X}}))}if(Nn(h)){var M=h.options[m]||h.options.other;if(!M)throw new Jr(h.value,m,Object.keys(h.options),o);l.push.apply(l,Yt(M.value,t,r,n,i));continue}if(kn(h)){var M=h.options["=".concat(m)];if(!M){if(!Intl.PluralRules)throw new sr(`Intl.PluralRules is not available in this environment.
|
|
2
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3
|
+
`,pt.MISSING_INTL_API,o);var V=r.getPluralRules(t,{type:h.pluralType}).select(m-(h.offset||0));M=h.options[V]||h.options.other}if(!M)throw new Jr(h.value,m,Object.keys(h.options),o);l.push.apply(l,Yt(M.value,t,r,n,i,m-(h.offset||0)));continue}}return Hs(l)}function Ps(e,t){return t?we(we(we({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=we(we({},e[n]),t[n]||{}),r},{})):e}function Os(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Ps(e[n],t[n]),r},we({},e)):e}function _r(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Ms(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:gr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,pr([void 0],r,!1)))},{cache:_r(e.number),strategy:br.variadic}),getDateTimeFormat:gr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,pr([void 0],r,!1)))},{cache:_r(e.dateTime),strategy:br.variadic}),getPluralRules:gr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,pr([void 0],r,!1)))},{cache:_r(e.pluralRules),strategy:br.variadic})}}var Ns=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(c){var a=s.formatToParts(c);if(a.length===1)return a[0].value;var h=a.reduce(function(d,m){return!d.length||m.type!==ee.literal||typeof d[d.length-1]!="string"?d.push(m.value):d[d.length-1]+=m.value,d},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(c){return Yt(s.ast,s.locales,s.formatters,s.formats,c,void 0,s.message)},this.resolvedOptions=function(){var c;return{locale:((c=s.resolvedLocale)===null||c===void 0?void 0:c.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=i||{};o.formatters;var l=ji(o,["formatters"]);this.ast=e.__parse(t,we(we({},l),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Os(e.formats,n),this.formatters=i&&i.formatters||Ms(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(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=ws,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 ks(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const s=r.slice(i,r.length).join(".");if(s in n){n=n[s];break}}n=n[r[i]]}else n=void 0;return n}const Re={},Is=(e,t,r)=>r&&(t in Re||(Re[t]={}),e in Re[t]||(Re[t][e]=r),r),Vn=(e,t)=>{if(t==null)return;if(t in Re&&e in Re[t])return Re[t][e];const r=or(t);for(let n=0;n<r.length;n++){const i=r[n],s=Rs(i,e);if(s)return Is(e,t,s)}};let kr;const _t=nr({});function Ls(e){return kr[e]||null}function Xn(e){return e in kr}function Rs(e,t){if(!Xn(e))return null;const r=Ls(e);return ks(r,t)}function Us(e){if(e==null)return;const t=or(e);for(let r=0;r<t.length;r++){const n=t[r];if(Xn(n))return n}}function Wn(e,...t){delete Re[e],_t.update(r=>(r[e]=Gi.all([r[e]||{},...t]),r))}yt([_t],([e])=>Object.keys(e));_t.subscribe(e=>kr=e);const Kt={};function Fs(e,t){Kt[e].delete(t),Kt[e].size===0&&delete Kt[e]}function qn(e){return Kt[e]}function Ds(e){return or(e).map(t=>{const r=qn(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function Pr(e){return e==null?!1:or(e).some(t=>{var r;return(r=qn(t))==null?void 0:r.size})}function Gs(e,t){return Promise.all(t.map(n=>(Fs(e,n),n().then(i=>i.default||i)))).then(n=>Wn(e,...n))}const Ot={};function Zn(e){if(!Pr(e))return e in Ot?Ot[e]:Promise.resolve();const t=Ds(e);return Ot[e]=Promise.all(t.map(([r,n])=>Gs(r,n))).then(()=>{if(Pr(e))return Zn(e);delete Ot[e]}),Ot[e]}const js={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"}}},zs={fallbackLocale:null,loadingDelay:200,formats:js,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Vs=zs;function gt(){return Vs}const Er=nr(!1);var Xs=Object.defineProperty,Ws=Object.defineProperties,qs=Object.getOwnPropertyDescriptors,Yr=Object.getOwnPropertySymbols,Zs=Object.prototype.hasOwnProperty,$s=Object.prototype.propertyIsEnumerable,Kr=(e,t,r)=>t in e?Xs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Qs=(e,t)=>{for(var r in t||(t={}))Zs.call(t,r)&&Kr(e,r,t[r]);if(Yr)for(var r of Yr(t))$s.call(t,r)&&Kr(e,r,t[r]);return e},Js=(e,t)=>Ws(e,qs(t));let Or;const tr=nr(null);function en(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function or(e,t=gt().fallbackLocale){const r=en(e);return t?[...new Set([...r,...en(t)])]:r}function Xe(){return Or!=null?Or:void 0}tr.subscribe(e=>{Or=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Ys=e=>{if(e&&Us(e)&&Pr(e)){const{loadingDelay:t}=gt();let r;return typeof window!="undefined"&&Xe()!=null&&t?r=window.setTimeout(()=>Er.set(!0),t):Er.set(!0),Zn(e).then(()=>{tr.set(e)}).finally(()=>{clearTimeout(r),Er.set(!1)})}return tr.set(e)},Ue=Js(Qs({},tr),{set:Ys}),ar=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var Ks=Object.defineProperty,rr=Object.getOwnPropertySymbols,$n=Object.prototype.hasOwnProperty,Qn=Object.prototype.propertyIsEnumerable,tn=(e,t,r)=>t in e?Ks(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ir=(e,t)=>{for(var r in t||(t={}))$n.call(t,r)&&tn(e,r,t[r]);if(rr)for(var r of rr(t))Qn.call(t,r)&&tn(e,r,t[r]);return e},Et=(e,t)=>{var r={};for(var n in e)$n.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&rr)for(var n of rr(e))t.indexOf(n)<0&&Qn.call(e,n)&&(r[n]=e[n]);return r};const It=(e,t)=>{const{formats:r}=gt();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},eo=ar(e=>{var t=e,{locale:r,format:n}=t,i=Et(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=It("number",n)),new Intl.NumberFormat(r,i)}),to=ar(e=>{var t=e,{locale:r,format:n}=t,i=Et(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=It("date",n):Object.keys(i).length===0&&(i=It("date","short")),new Intl.DateTimeFormat(r,i)}),ro=ar(e=>{var t=e,{locale:r,format:n}=t,i=Et(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=It("time",n):Object.keys(i).length===0&&(i=It("time","short")),new Intl.DateTimeFormat(r,i)}),no=(e={})=>{var t=e,{locale:r=Xe()}=t,n=Et(t,["locale"]);return eo(Ir({locale:r},n))},io=(e={})=>{var t=e,{locale:r=Xe()}=t,n=Et(t,["locale"]);return to(Ir({locale:r},n))},so=(e={})=>{var t=e,{locale:r=Xe()}=t,n=Et(t,["locale"]);return ro(Ir({locale:r},n))},oo=ar((e,t=Xe())=>new Ns(e,t,gt().formats,{ignoreTag:gt().ignoreTag})),ao=(e,t={})=>{var r,n,i,s;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:l,locale:c=Xe(),default:a}=o;if(c==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=Vn(e,c);if(!h)h=(s=(i=(n=(r=gt()).handleMissingMessage)==null?void 0:n.call(r,{locale:c,id:e,defaultValue:a}))!=null?i:a)!=null?s:e;else if(typeof h!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h;if(!l)return h;let d=h;try{d=oo(h,c).format(l)}catch(m){m instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,m.message)}return d},lo=(e,t)=>so(t).format(e),uo=(e,t)=>io(t).format(e),co=(e,t)=>no(t).format(e),ho=(e,t=Xe())=>Vn(e,t),fo=yt([Ue,_t],()=>ao);yt([Ue],()=>lo);yt([Ue],()=>uo);yt([Ue],()=>co);yt([Ue,_t],()=>ho);function mo({withLocale:e,translations:t}){Ue.subscribe(r=>{r==null&&(_t.set(t),Ue.set(e))})}function rn(e,t){Wn(e,t)}function po(e){Ue.set(e)}const nn={en:{registerBackButton:"Back",registerAddress:"Address",registerAddressError:"Address must be at least 1 character long and 100 characters maximum.",registerPostalCode:"Postal Code",registerPostalCodeError:"Postal Code must be at least 1 character long and 20 characters maximum.",registerCity:"City",registerCityError:"City must be at least 1 character long and 50 characters maximum.",registerCountry:"Country",registerNationality:"Nationality",registerMobile:"Mobile",registerMobileError:"Mobile must be at least 5 character long and 12 characters maximum.",registerUserConsents:"I want to receive exclusive offers and bonuses. I am aware that I can unsubscribe whenever I want to.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"Email",registerTermsConditions:"I am at least 18 years old and I have read and accepted the <a href='/terms-and-conditions' target='_blank'>Terms and Conditions</a>.",registerTermsConditionsError:"Please accept the Terms and Conditions before proceeding.",registerOpenAccount:"Open Account"},"zh-hk":{registerBackButton:"後退",registerAddress:"地址",registerAddressError:"地址必須至少 1 個字符長,最多 100 個字符。",registerPostalCode:"郵政編碼",registerPostalCodeError:"郵政編碼必須至少 1 個字符長,最多 20 個字符。",registerCity:"城市",registerCityError:"城市必須至少 1 個字符長,最多 50 個字符。",registerCountry:"國家",registerNationality:"國籍",registerMobile:"移動的",registerMobileError:"移動設備的長度必須至少為 5 個字符,最多 12 個字符。",registerUserConsents:"我想收到獨家優惠和獎金。 我知道我可以隨時取消訂閱。",registerUserConsentsSMS:"短信",registerUserConsentsEmail:"電子郵件",registerTermsConditions:"我至少 18 歲,並且我已閱讀並接受條件條款。",registerTermsConditionsError:"請在繼續之前接受條款和條件。",registerOpenAccount:"開戶口"},fr:{registerBackButton:"Retour",registerAddress:"Adresse",registerAddressError:"L'adresse doit comporter au moins un caractère et 100 caractères au maximum.",registerPostalCode:"Code postal",registerPostalCodeError:"Le code postal doit comporter au moins un caractère et 20 caractères au maximum.",registerCity:"Ville",registerCityError:"La ville doit comporter au moins un caractère et 50 caractères au maximum.",registerCountry:"Pays",registerNationality:"Nationalité",registerMobile:"Téléphone",registerMobileError:"Le téléphone doit comporter au moins 5 caractère et 12 caractères au maximum.",registerUserConsents:"Je veux recevoir des offres exclusives et des bonus , je sais que je peux me désinscrire quand je le veux.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"Email",registerTermsConditions:"J'ai au moins 18 ans et j'ai lu et accepté les conditions d'utilisation.",registerTermsConditionsError:"Veuillez accepter les termes et conditions avant de poursuivre.",registerOpenAccount:"Ouvrir un compte"},tr:{registerBackButton:"Geri",registerAddress:"Adres",registerAddressError:"Adres en az 1 karakter uzunluğunda ve maksimum 100 karakter olmalıdır.",registerPostalCode:"Posta Kodu",registerPostalCodeError:"Posta Kodu en az 1 karakter uzunluğunda ve maksimum 20 karakter uzunluğunda olmalıdır.",registerCity:"Şehir",registerCityError:"Şehir en az 1 karakter, maksimum 50 karakter uzunluğunda olmalıdır.",registerCountry:"Ülke",registerNationality:"Milliyet",registerMobile:"Mobil",registerMobileError:"Mobil en az 5 karakter uzunluğunda ve maksimum 12 karakter olmalıdır.",registerUserConsents:"Özel teklifler ve bonuslar almak istiyorum. İstediğim zaman abonelikten çıkabileceğimin bilincindeyim.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"E-posta",registerTermsConditions:"En az 18 yaşındayım ve <a href='/terms-and-conditions' target='_blank'>Şartlar ve Koşullar</a>'ı okuyup kabul ettim.",registerTermsConditionsError:"Devam etmeden önce lütfen Şartlar ve Koşulları kabul edin.",registerOpenAccount:"Hesap Aç"},ro:{registerBackButton:"Inapoi",registerAddress:"Adresa",registerAddressError:"Adresa trebuie sa fie cuprinsa in 1 si 100 de litere.",registerPostalCode:"Cod Postal",registerPostalCodeError:"Codul postal trebuie sa fie cuprins intre 1 si 20 de caractere.",registerCity:"Oras",registerCityError:"Orasul trebuie sa fie cuprins intre 1 si 50 de litere.",registerCountry:"Tara",registerNationality:"Nationalitatea",registerMobile:"Telefon",registerMobileError:"Telefonul trebuie sa fie cuprins intre 5 si 12 de cifre.",registerUserConsents:"Vreau sa primesc oferte si bonusuri exclusive. Sunt constient ca pot sa dau unsubscribe oricand.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"Email",registerTermsConditions:"Am minim 18 ani si am citit si acceptat Termenii si Conditiile",registerTermsConditionsError:"Te rog accepta Termenii si Conditiile",registerOpenAccount:"Inregistrare"},es:{registerBackButton:"Anterior",registerAddress:"Dirección",registerAddressError:"La dirección debe tener al menos 1 carácter y un máximo de 100 caracteres.",registerPostalCode:"Código Postal",registerPostalCodeError:"El código postal debe tener al menos 1 carácter y un máximo de 20 caracteres.",registerCity:"Ciudad",registerCityError:"La ciudad debe tener al menos 1 carácter y un máximo de 50 caracteres.",registerCountry:"País",registerNationality:"Nacionalidad",registerMobile:"Celular",registerMobileError:"Número celular debe tener al menos 5 caracteres y un máximo de 12 caracteres",registerUserConsents:"Quiero recibir ofertas Exclusivas y Bonos. Soy consciente que puedo desuscribirme en cualquier momento.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"Email",registerTermsConditions:"Tengo al menos 18 años de edad, y he leido y aceptado los Términos y Condiciones.",registerTermsConditionsError:"Por favor acepta los Términos y Condiciones antes de avanzar.",registerOpenAccount:"Abrir cuenta"},pt:{registerBackButton:"Voltar",registerAddress:"Endereço",registerAddressError:"O endereço deve ter pelo menos 1 caractere e no máximo 100 caracteres.",registerPostalCode:"CEP",registerPostalCodeError:"O CEP deve ter pelo menos 1 caractere e no máximo 20 caracteres.",registerCity:"Cidade",registerCityError:"A cidade deve ter pelo menos 1 caractere e no máximo 50 caracteres.",registerCountry:"País",registerNationality:"Nacionalidade",registerMobile:"Celular",registerMobileError:"O celular deve ter pelo menos 5 caracteres e no máximo 12 caracteres.",registerUserConsents:"Quero receber ofertas e bônus exclusivos. Estou ciente de que posso cancelar a inscrição quando quiser.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"E-mail",registerTermsConditions:"Tenho pelo menos 18 anos e li e aceito os Termos de Condições.",registerTermsConditionsError:"Por favor, aceite os Termos e Condições antes de prosseguir.",registerOpenAccount:"Abrir conta"},hr:{registerBackButton:"Prethodno",registerAddress:"Adresa",registerAddressError:"Adresa mora imati najmanje 1 znak i najviše 100 znakova.",registerPostalCode:"Poštanski broj",registerPostalCodeError:"Poštanski broj mora imati najmanje 1 znak i najviše 20 znakova.",registerCity:"Grad",registerCityError:"Grad mora imati najmanje 1 znak i najviše 50 znakova.",registerCountry:"Zemlja",registerNationality:"Nacionalnost",registerMobile:"Broj mobitela",registerMobileError:"Broj mobitela mora imati najmanje 5 znakova i najviše 12 znakova.",registerUserConsents:"Želim primati ekskluzivne ponude i bonuse. Svjestan sam da se mogu odjaviti kad god to želim.",registerUserConsentsSMS:"SMS","registerUserConsentsE-mail":"E-mail",registerTermsConditions:"Imam najmanje 18 godina i pročitao sam i prihvatio Uvjete.",registerTermsConditionsError:"Prije nastavka prihvatite Uvjete i odredbe.",registerOpenAccount:"Otvori račun"},"pt-br":{registerBackButton:"Voltar",registerAddress:"Endereço",registerAddressError:"O endereço deve ter no mínimo 1 caractere e no máximo 100 caracteres.",registerPostalCode:"Código postal",registerPostalCodeError:"O CEP deve ter no mínimo 1 caractere e no máximo 100 caracteres.",registerCity:"Cidade",registerCityError:"A cidade deve ter pelo menos 1 caractere e no máximo 50 caracteres.",registerCountry:"País",registerNationality:"Nacionalidade",registerMobile:"Número de telemóvel",registerMobileError:"O número do celular deve ter entre 5 e 12 caracteres no máximo.",registerUserConsents:"Quero receber ofertas e bônus exclusivos. Estou ciente de que posso cancelar esta assinatura a qualquer momento.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"Correio eletrônico",registerTermsConditions:"Tenho pelo menos 18 anos de idade e li e aceito os <a href='/terms-and-conditions' target='_blank'>Termos e Condições </a>.",registerTermsConditionsError:"Aceite os Termos e Condições antes de prosseguir.",registerOpenAccount:"Conta aberta"},"es-mx":{registerBackButton:"Atrás",registerAddress:"Dirección",registerAddressError:"La dirección debe tener al menos 1 caracter y 100 caracteres máximo.",registerPostalCode:"Código postal",registerPostalCodeError:"El código postal debe tener al menos 1 caracter y 100 caracteres máximo.",registerCity:"Ciudad",registerCityError:"Ciudad debe tener al menos 1 caracter y 50 caracteres máximo.",registerCountry:"País",registerNationality:"Nacionalidad",registerMobile:"Número de móvil",registerMobileError:"Número de móvil debe tener entre 5 caracteres de largo y 12 caracteres máximo.",registerUserConsents:"Quiero recibir ofertas exclusivas y bonos. Estoy consciente que puedo cancelar esta subscripción en cualquier momento.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"Correo electrónico",registerTermsConditions:"Tengo al menos 18 años de edad y he leído y aceptado los <a href='/terms-and-conditions' target='_blank'>Términos y Condiciones </a>.",registerTermsConditionsError:"Por favor acepte los Términos y Condiciones antes de proceder.",registerOpenAccount:"Abrir cuenta"}};function go(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function bo(e,t){if(!e||!t)return;const r=new URL(t);fetch(r.href).then(n=>n.text()).then(n=>{const i=document.createElement("style");i.innerHTML=n,e&&e.appendChild(i)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function yo(e,t,r){if(window.emMessageBus){const n=document.createElement("style");window.emMessageBus.subscribe(t,i=>{n.innerHTML=i,e&&e.appendChild(n)})}}function _o(e){si(e,"svelte-1b2qzhz",`input,select{font-family:inherit}.BackButton{display:inline-flex;color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));height:15px;border-radius:var(--emw--border-radius-small, 5px);border:none;background:transparent;padding:0;text-transform:uppercase;font-size:22px;cursor:pointer;margin-bottom:30px}.BackButton svg{width:20px;height:20px;margin-right:20px;fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.AddressPostalCodeContainer{display:flex;gap:16px}.CountryContainer label{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-light, 300);padding-bottom:5px}.CountryContainer select{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:var(--emw--border-radius-medium, 15px);box-sizing:border-box;padding:5px 15px;font-size:var(--emw--font-size-medium, 16px);line-height:18px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>") no-repeat var(--emw--color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.CountryContainer select:focus,.CountryContainer select :focus-within,.CountryContainer select :focus-visible,.CountryContainer select :visited{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0 0 0 1pt var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.AddressContainer,.PostalCodeContainer,.CityContainer,.CountryContainer,.NationalityContainer,.MobileContainer{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));display:flex;flex-direction:column;padding-bottom:30px;position:relative}.AddressContainer label,.PostalCodeContainer label,.CityContainer label,.CountryContainer label,.NationalityContainer label,.MobileContainer label{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-light, 300);padding-bottom:5px}.AddressContainer input,.AddressContainer select,.PostalCodeContainer input,.PostalCodeContainer select,.CityContainer input,.CityContainer select,.CountryContainer input,.CountryContainer select,.NationalityContainer input,.NationalityContainer select,.MobileContainer input,.MobileContainer select{width:100%;height:44px;border-radius:var(--emw--border-radius-medium, 15px);border:1px solid var(--emw--registration-contrast, var(--emw--color-gray-300, #58586B));box-sizing:border-box;padding:5px 15px;font-size:var(--emw--font-size-medium, 16px);line-height:18px}.AddressContainer input:focus,.AddressContainer select:focus,.PostalCodeContainer input:focus,.PostalCodeContainer select:focus,.CityContainer input:focus,.CityContainer select:focus,.CountryContainer input:focus,.CountryContainer select:focus,.NationalityContainer input:focus,.NationalityContainer select:focus,.MobileContainer input:focus,.MobileContainer select:focus{border:2px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));outline:none}.AddressContainer.InvalidField input,.PostalCodeContainer.InvalidField input,.CityContainer.InvalidField input,.CountryContainer.InvalidField input,.NationalityContainer.InvalidField input,.MobileContainer.InvalidField input{border:1px solid var(--emw--color-error, #ed0909);background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444))}.AddressContainer.Hidden,.PostalCodeContainer.Hidden,.CityContainer.Hidden,.CountryContainer.Hidden,.NationalityContainer.Hidden,.MobileContainer.Hidden{display:none}.AddressContainer{width:65%}.PostalCodeContainer{width:35%}.MobileWrapper{display:flex;gap:16px}.MobileWrapper .MobilePrefixSelected{width:30%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>") no-repeat var(--emw--color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.MobileWrapper .MobilePrefixSelected:focus,.MobileWrapper .MobilePrefixSelected :focus-within,.MobileWrapper .MobilePrefixSelected :focus-visible,.MobileWrapper .MobilePrefixSelected :visited{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0 0 0 1pt var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.MobileWrapper .MobileInput{width:70%}.grecaptcha-badge{opacity:0}.FormRequired{color:var(--emw--color-secondary, #E1A749)}.InvalidInput{color:var(--emw--color-error, #ed0909);font-size:10px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:var(--emw--font-size-x-small, 12px);color:var(--emw--color-error, #ed0909)}.OffersMethodsWrapper{padding-left:32px}.Offers,.OffersMethod,.AgeConsent{display:block;position:relative;padding:5px 0 0 35px;margin-bottom:16px;font-size:var(--emw--font-size-medium, 16px);user-select:none;line-height:18px}.Offers label,.OffersMethod label,.AgeConsent label{font-size:var(--emw--font-size-medium, 16px);cursor:pointer}.Offers input,.OffersMethod input,.AgeConsent input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.Offers .Checkmark,.OffersMethod .Checkmark,.AgeConsent .Checkmark{position:absolute;top:0;left:0;height:25px;width:25px;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.Offers input:checked~.Checkmark,.OffersMethod input:checked~.Checkmark,.AgeConsent input:checked~.Checkmark{background-color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.Offers .Checkmark:after,.OffersMethod .Checkmark:after,.AgeConsent .Checkmark:after{content:"";position:absolute;display:none;left:9px;top:5px;width:5px;height:10px;border:solid white;border-width:0 3px 3px 0;transform:rotate(45deg)}.Offers input:checked~.Checkmark:after,.OffersMethod input:checked~.Checkmark:after,.AgeConsent input:checked~.Checkmark:after{display:block}.NotificationContainer{margin-top:32px}.NotificationContainer p{color:var(--emw--categories-color-secondary, var(--emw--color-secondary, #E1A749));font-size:var(--emw--font-size-small, 14px)}.RegisterError{color:var(--emw--color-error, #ed0909);font-size:var(--emw--font-size-medium, 16px);line-height:18px}.RegisterStepNext{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 10px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF));width:100%;height:60px;padding:0;text-transform:uppercase;font-size:var(--emw--font-size-medium, 16px);cursor:pointer;margin-top:24px}.RegisterStepNext[disabled]{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-100, #E6E6E6);cursor:not-allowed}`)}function sn(e,t,r){const n=e.slice();return n[87]=t[r],n}function on(e,t,r){const n=e.slice();return n[90]=t[r],n}function an(e,t,r){const n=e.slice();return n[93]=t[r],n}function ln(e){let t,r;return{c(){t=b("script"),Gr(t.src,r="//www.google.com/recaptcha/api.js?render="+e[4])||p(t,"src",r),t.async=!0,t.defer=!0},m(n,i){L(n,t,i)},p(n,i){i[0]&16&&!Gr(t.src,r="//www.google.com/recaptcha/api.js?render="+n[4])&&p(t,"src",r)},d(n){n&&k(t)}}}function un(e){let t,r=e[31]("registerAddressError")+"",n;return{c(){t=b("p"),n=O(r),p(t,"class","InvalidInput")},m(i,s){L(i,t,s),u(t,n)},p(i,s){s[1]&1&&r!==(r=i[31]("registerAddressError")+"")&&D(n,r)},d(i){i&&k(t)}}}function cn(e){let t,r=e[31]("registerPostalCodeError")+"",n;return{c(){t=b("p"),n=O(r),p(t,"class","InvalidInput")},m(i,s){L(i,t,s),u(t,n)},p(i,s){s[1]&1&&r!==(r=i[31]("registerPostalCodeError")+"")&&D(n,r)},d(i){i&&k(t)}}}function hn(e){let t,r=e[31]("registerCityError")+"",n;return{c(){t=b("p"),n=O(r),p(t,"class","InvalidInput")},m(i,s){L(i,t,s),u(t,n)},p(i,s){s[1]&1&&r!==(r=i[31]("registerCityError")+"")&&D(n,r)},d(i){i&&k(t)}}}function fn(e){let t,r=e[93].Name+"",n,i;return{c(){t=b("option"),n=O(r),t.__value=i=e[93].Alpha2Code,ce(t,t.__value)},m(s,o){L(s,t,o),u(t,n)},p(s,o){o[0]&1048576&&r!==(r=s[93].Name+"")&&D(n,r),o[0]&1048576&&i!==(i=s[93].Alpha2Code)&&(t.__value=i,ce(t,t.__value))},d(s){s&&k(t)}}}function dn(e){let t,r=e[90].Name+"",n,i;return{c(){t=b("option"),n=O(r),t.__value=i=e[90].Alpha2Code,ce(t,t.__value)},m(s,o){L(s,t,o),u(t,n)},p(s,o){o[0]&4194304&&r!==(r=s[90].Name+"")&&D(n,r),o[0]&4194304&&i!==(i=s[90].Alpha2Code)&&(t.__value=i,ce(t,t.__value))},d(s){s&&k(t)}}}function mn(e){let t,r=e[87].Prefix+"",n,i;return{c(){t=b("option"),n=O(r),t.__value=i=e[87].Prefix,ce(t,t.__value)},m(s,o){L(s,t,o),u(t,n)},p(s,o){o[0]&33554432&&r!==(r=s[87].Prefix+"")&&D(n,r),o[0]&33554432&&i!==(i=s[87].Prefix)&&(t.__value=i,ce(t,t.__value))},d(s){s&&k(t)}}}function pn(e){let t,r=e[31]("registerMobileError")+"",n;return{c(){t=b("p"),n=O(r),p(t,"class","InvalidInput")},m(i,s){L(i,t,s),u(t,n)},p(i,s){s[1]&1&&r!==(r=i[31]("registerMobileError")+"")&&D(n,r)},d(i){i&&k(t)}}}function gn(e){let t,r,n=(e[2]==="true"||e[3]==="true")&&bn(e),i=e[1]==="true"&&En(e);return{c(){n&&n.c(),t=S(),i&&i.c(),r=Nr()},m(s,o){n&&n.m(s,o),L(s,t,o),i&&i.m(s,o),L(s,r,o)},p(s,o){s[2]==="true"||s[3]==="true"?n?n.p(s,o):(n=bn(s),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null),s[1]==="true"?i?i.p(s,o):(i=En(s),i.c(),i.m(r.parentNode,r)):i&&(i.d(1),i=null)},d(s){s&&(k(t),k(r)),n&&n.d(s),i&&i.d(s)}}}function bn(e){let t,r,n=e[31]("registerUserConsents")+"",i,s,o,l,c,a,h,d,m,E,_=e[2]==="true"&&yn(e),v=e[3]==="true"&&_n(e);return{c(){t=b("div"),r=b("label"),i=O(n),s=S(),o=b("input"),l=S(),c=b("span"),a=S(),h=b("div"),_&&_.c(),d=S(),v&&v.c(),p(o,"type","Checkbox"),o.checked=e[27],p(c,"class","Checkmark"),p(r,"class","Offers"),p(h,"class","OffersMethodsWrapper"),p(t,"class","OffersContainer")},m(P,T){L(P,t,T),u(t,r),u(r,i),u(r,s),u(r,o),u(r,l),u(r,c),u(t,a),u(t,h),_&&_.m(h,null),u(h,d),v&&v.m(h,null),m||(E=N(o,"click",e[64]),m=!0)},p(P,T){T[1]&1&&n!==(n=P[31]("registerUserConsents")+"")&&D(i,n),T[0]&134217728&&(o.checked=P[27]),P[2]==="true"?_?_.p(P,T):(_=yn(P),_.c(),_.m(h,d)):_&&(_.d(1),_=null),P[3]==="true"?v?v.p(P,T):(v=_n(P),v.c(),v.m(h,null)):v&&(v.d(1),v=null)},d(P){P&&k(t),_&&_.d(),v&&v.d(),m=!1,E()}}}function yn(e){let t,r=e[31]("registerUserConsentsSMS")+"",n,i,s,o,l,c,a,h;return{c(){t=b("label"),n=O(r),i=S(),s=b("input"),l=S(),c=b("span"),p(s,"type","Checkbox"),s.checked=o=e[29].userConsents.sms,p(c,"class","Checkmark"),p(t,"class","OffersMethod")},m(d,m){L(d,t,m),u(t,n),u(t,i),u(t,s),u(t,l),u(t,c),a||(h=N(s,"click",e[65]),a=!0)},p(d,m){m[1]&1&&r!==(r=d[31]("registerUserConsentsSMS")+"")&&D(n,r),m[0]&536870912&&o!==(o=d[29].userConsents.sms)&&(s.checked=o)},d(d){d&&k(t),a=!1,h()}}}function _n(e){let t,r=e[31]("registerUserConsentsEmail")+"",n,i,s,o,l,c,a,h;return{c(){t=b("label"),n=O(r),i=S(),s=b("input"),l=S(),c=b("span"),p(s,"type","Checkbox"),s.checked=o=e[29].userConsents.emailmarketing,p(c,"class","Checkmark"),p(t,"class","OffersMethod")},m(d,m){L(d,t,m),u(t,n),u(t,i),u(t,s),u(t,l),u(t,c),a||(h=N(s,"click",e[66]),a=!0)},p(d,m){m[1]&1&&r!==(r=d[31]("registerUserConsentsEmail")+"")&&D(n,r),m[0]&536870912&&o!==(o=d[29].userConsents.emailmarketing)&&(s.checked=o)},d(d){d&&k(t),a=!1,h()}}}function En(e){let t,r,n,i,s,o,l,c,a,h,d,m,E=!e[30].termsandconditions&&vn(e);return{c(){t=b("div"),r=b("label"),n=b("span"),i=S(),s=b("input"),l=S(),c=b("span"),a=S(),E&&E.c(),h=Nr(),p(s,"type","Checkbox"),s.checked=o=e[29].userConsents.termsandconditions,p(c,"class","Checkmark"),p(r,"class","AgeConsent"),p(t,"class","AgeContainer")},m(_,v){L(_,t,v),u(t,r),u(r,n),n.innerHTML=e[32],u(r,i),u(r,s),u(r,l),u(r,c),L(_,a,v),E&&E.m(_,v),L(_,h,v),d||(m=N(s,"click",e[67]),d=!0)},p(_,v){v[0]&536870912&&o!==(o=_[29].userConsents.termsandconditions)&&(s.checked=o),_[30].termsandconditions?E&&(E.d(1),E=null):E?E.p(_,v):(E=vn(_),E.c(),E.m(h.parentNode,h))},d(_){_&&(k(t),k(a),k(h)),E&&E.d(_),d=!1,m()}}}function vn(e){let t,r,n=e[31]("registerTermsConditionsError")+"",i;return{c(){t=b("div"),r=b("p"),i=O(n),p(t,"class","NotificationContainer")},m(s,o){L(s,t,o),u(t,r),u(r,i)},p(s,o){o[1]&1&&n!==(n=s[31]("registerTermsConditionsError")+"")&&D(i,n)},d(s){s&&k(t)}}}function Cn(e){let t,r,n;return{c(){t=b("div"),r=b("p"),n=O(e[16]),p(r,"class","RegisterError")},m(i,s){L(i,t,s),u(t,r),u(r,n)},p(i,s){s[0]&65536&&D(n,i[16])},d(i){i&&k(t)}}}function Eo(e){let t,r,n,i,s,o,l,c,a,h,d,m,E,_=e[31]("registerBackButton")+"",v,P,T,z,M,V,X=e[31]("registerAddress")+"",me,Se,Me,vt,W,Ct,Fe,xe,j,te,Te=e[31]("registerPostalCode")+"",pe,De,he,ye,q,fe,Z,We,U,y,B=e[31]("registerCity")+"",xt,Lt,qe,Rt,de,He,Ze,At,Be,Pe,$e=e[31]("registerCountry")+"",Qe,Ut,Ge,je,_e,ze,Ft,Ae,Ne,Ve=e[31]("registerNationality")+"",wt,Dt,Je,Gt,Ee,Ye,jt,ge,ke,Ke=e[31]("registerMobile")+"",St,zt,et,Vt,Ie,ve,Xt,$,Wt,tt,qt,Tt,Oe,rt=e[31]("registerOpenAccount")+"",g,x,G,lr,Lr,re=e[4]&&ln(e),ne=e[6]&&un(e),ie=e[7]&&cn(e),se=e[9]&&hn(e),nt=lt(e[20]),Q=[];for(let f=0;f<nt.length;f+=1)Q[f]=fn(an(e,nt,f));let it=lt(e[22]),J=[];for(let f=0;f<it.length;f+=1)J[f]=dn(on(e,it,f));let st=lt(e[25]),Y=[];for(let f=0;f<st.length;f+=1)Y[f]=mn(sn(e,st,f));let oe=e[8]&&pn(e),ae=e[0]==="true"&&gn(e),le=e[15]&&Cn(e);return{c(){var f,C,F,Ht,Bt,Pt;re&&re.c(),t=Nr(),r=S(),n=b("div"),i=S(),s=b("div"),o=b("div"),l=b("button"),c=$t("svg"),a=$t("defs"),h=$t("style"),d=O(".a{fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));}"),m=$t("path"),E=S(),v=O(_),P=S(),T=b("form"),z=b("div"),M=b("div"),V=b("label"),me=O(X),Se=O(":"),Me=b("span"),Me.textContent="*",vt=S(),W=b("input"),Ct=S(),ne&&ne.c(),xe=S(),j=b("div"),te=b("label"),pe=O(Te),De=O(":"),he=b("span"),he.textContent="*",ye=S(),q=b("input"),fe=S(),ie&&ie.c(),We=S(),U=b("div"),y=b("label"),xt=O(B),Lt=O(":"),qe=b("span"),qe.textContent="*",Rt=S(),de=b("input"),He=S(),se&&se.c(),At=S(),Be=b("div"),Pe=b("label"),Qe=O($e),Ut=O(":"),Ge=b("span"),Ge.textContent="*",je=S(),_e=b("select");for(let ue=0;ue<Q.length;ue+=1)Q[ue].c();Ft=S(),Ae=b("div"),Ne=b("label"),wt=O(Ve),Dt=O(":"),Je=b("span"),Je.textContent="*",Gt=S(),Ee=b("select");for(let ue=0;ue<J.length;ue+=1)J[ue].c();jt=S(),ge=b("div"),ke=b("label"),St=O(Ke),zt=O(":"),et=b("span"),et.textContent="*",Vt=S(),Ie=b("div"),ve=b("select");for(let ue=0;ue<Y.length;ue+=1)Y[ue].c();Xt=S(),$=b("input"),Wt=S(),oe&&oe.c(),qt=S(),ae&&ae.c(),Tt=S(),Oe=b("button"),g=O(rt),G=S(),le&&le.c(),p(n,"class","g-recaptcha"),p(n,"data-sitekey",e[4]),p(m,"class","a"),p(m,"d","M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z"),p(m,"transform","translate(24 24) rotate(180)"),p(c,"xmlns","http://www.w3.org/2000/svg"),p(c,"viewBox","0 0 24 24"),p(l,"class","BackButton"),p(o,"class","RegisterFormHeader"),p(Me,"class","FormRequired"),p(V,"for","Address"),p(W,"type","text"),p(W,"id","Address"),p(M,"class",Fe="AddressContainer "+(e[6]&&!e[10]?"InvalidField":"")+(((f=e[14])==null?void 0:f.indexOf("address"))>=0?"Hidden":"")),p(he,"class","FormRequired"),p(te,"for","PostalCode"),p(q,"type","text"),p(q,"id","PostalCode"),p(j,"class",Z="PostalCodeContainer "+(e[7]&&!e[11]?"InvalidField":"")+(((C=e[14])==null?void 0:C.indexOf("postalCode"))>=0?"Hidden":"")),p(z,"class","AddressPostalCodeContainer"),p(qe,"class","FormRequired"),p(y,"for","City"),p(de,"type","text"),p(de,"id","City"),p(U,"class",Ze="CityContainer "+(e[9]&&e[13]?"InvalidField":"")+(((F=e[14])==null?void 0:F.indexOf("city"))>=0?"Hidden":"")),p(Ge,"class","FormRequired"),p(Pe,"for","Country"),p(_e,"id","Country"),e[21]===void 0&&ft(()=>e[58].call(_e)),p(Be,"class",ze="CountryContainer "+(((Ht=e[14])==null?void 0:Ht.indexOf("country"))>=0?"Hidden":"")),p(Je,"class","FormRequired"),p(Ne,"for","Nationality"),p(Ee,"id","Nationality"),e[23]===void 0&&ft(()=>e[59].call(Ee)),p(Ae,"class",Ye="NationalityContainer "+(((Bt=e[14])==null?void 0:Bt.indexOf("nationality"))>=0?"Hidden":"")),p(et,"class","FormRequired"),p(ke,"for","Mobile"),p(ve,"class","MobilePrefixSelected"),e[26]===void 0&&ft(()=>e[60].call(ve)),p($,"type","text"),p($,"oninput","this.value = this.value.replace(/[^0-9.]/g, ''); this.value = this.value.replace(/(\\..*)\\./g, '$1');"),p($,"id","Mobile"),p($,"class","MobileInput"),p(Ie,"class","MobileWrapper"),p(ge,"class",tt="MobileContainer "+(e[8]&&!e[12]?"InvalidField":"")+(((Pt=e[14])==null?void 0:Pt.indexOf("mobile"))>=0?"Hidden":"")),p(Oe,"class","RegisterStepNext"),Oe.disabled=x=!e[28],p(T,"class","RegisterFormContent")},m(f,C){re&&re.m(document.head,null),u(document.head,t),L(f,r,C),L(f,n,C),L(f,i,C),L(f,s,C),u(s,o),u(o,l),u(l,c),u(c,a),u(a,h),u(h,d),u(c,m),u(l,E),u(l,v),u(s,P),u(s,T),u(T,z),u(z,M),u(M,V),u(V,me),u(V,Se),u(V,Me),u(M,vt),u(M,W),ce(W,e[17]),u(M,Ct),ne&&ne.m(M,null),u(z,xe),u(z,j),u(j,te),u(te,pe),u(te,De),u(te,he),u(j,ye),u(j,q),ce(q,e[18]),u(j,fe),ie&&ie.m(j,null),u(T,We),u(T,U),u(U,y),u(y,xt),u(y,Lt),u(y,qe),u(U,Rt),u(U,de),ce(de,e[19]),u(U,He),se&&se.m(U,null),u(T,At),u(T,Be),u(Be,Pe),u(Pe,Qe),u(Pe,Ut),u(Pe,Ge),u(Be,je),u(Be,_e);for(let F=0;F<Q.length;F+=1)Q[F]&&Q[F].m(_e,null);ot(_e,e[21],!0),u(T,Ft),u(T,Ae),u(Ae,Ne),u(Ne,wt),u(Ne,Dt),u(Ne,Je),u(Ae,Gt),u(Ae,Ee);for(let F=0;F<J.length;F+=1)J[F]&&J[F].m(Ee,null);ot(Ee,e[23],!0),u(T,jt),u(T,ge),u(ge,ke),u(ke,St),u(ke,zt),u(ke,et),u(ge,Vt),u(ge,Ie),u(Ie,ve);for(let F=0;F<Y.length;F+=1)Y[F]&&Y[F].m(ve,null);ot(ve,e[26],!0),u(Ie,Xt),u(Ie,$),ce($,e[24]),u(ge,Wt),oe&&oe.m(ge,null),u(T,qt),ae&&ae.m(T,null),u(T,Tt),u(T,Oe),u(Oe,g),u(s,G),le&&le.m(s,null),e[69](s),lr||(Lr=[N(l,"click",e[40]),N(W,"input",e[49]),N(W,"keyup",e[33]),N(W,"focus",e[50]),N(W,"blur",e[51]),N(q,"input",e[52]),N(q,"keyup",e[34]),N(q,"focus",e[53]),N(q,"blur",e[54]),N(de,"input",e[55]),N(de,"keyup",e[35]),N(de,"focus",e[56]),N(de,"blur",e[57]),N(_e,"change",e[58]),N(Ee,"change",e[59]),N(ve,"change",e[60]),N($,"input",e[61]),N($,"keyup",e[36]),N($,"focus",e[62]),N($,"blur",e[63]),N(Oe,"click",e[68])],lr=!0)},p(f,C){var F,Ht,Bt,Pt,ue,Rr;if(f[4]?re?re.p(f,C):(re=ln(f),re.c(),re.m(t.parentNode,t)):re&&(re.d(1),re=null),C[0]&16&&p(n,"data-sitekey",f[4]),C[1]&1&&_!==(_=f[31]("registerBackButton")+"")&&D(v,_),C[1]&1&&X!==(X=f[31]("registerAddress")+"")&&D(me,X),C[0]&131072&&W.value!==f[17]&&ce(W,f[17]),f[6]?ne?ne.p(f,C):(ne=un(f),ne.c(),ne.m(M,null)):ne&&(ne.d(1),ne=null),C[0]&17472&&Fe!==(Fe="AddressContainer "+(f[6]&&!f[10]?"InvalidField":"")+(((F=f[14])==null?void 0:F.indexOf("address"))>=0?"Hidden":""))&&p(M,"class",Fe),C[1]&1&&Te!==(Te=f[31]("registerPostalCode")+"")&&D(pe,Te),C[0]&262144&&q.value!==f[18]&&ce(q,f[18]),f[7]?ie?ie.p(f,C):(ie=cn(f),ie.c(),ie.m(j,null)):ie&&(ie.d(1),ie=null),C[0]&18560&&Z!==(Z="PostalCodeContainer "+(f[7]&&!f[11]?"InvalidField":"")+(((Ht=f[14])==null?void 0:Ht.indexOf("postalCode"))>=0?"Hidden":""))&&p(j,"class",Z),C[1]&1&&B!==(B=f[31]("registerCity")+"")&&D(xt,B),C[0]&524288&&de.value!==f[19]&&ce(de,f[19]),f[9]?se?se.p(f,C):(se=hn(f),se.c(),se.m(U,null)):se&&(se.d(1),se=null),C[0]&25088&&Ze!==(Ze="CityContainer "+(f[9]&&f[13]?"InvalidField":"")+(((Bt=f[14])==null?void 0:Bt.indexOf("city"))>=0?"Hidden":""))&&p(U,"class",Ze),C[1]&1&&$e!==($e=f[31]("registerCountry")+"")&&D(Qe,$e),C[0]&1048576){nt=lt(f[20]);let A;for(A=0;A<nt.length;A+=1){const Le=an(f,nt,A);Q[A]?Q[A].p(Le,C):(Q[A]=fn(Le),Q[A].c(),Q[A].m(_e,null))}for(;A<Q.length;A+=1)Q[A].d(1);Q.length=nt.length}if(C[0]&3145728&&ot(_e,f[21]),C[0]&16384&&ze!==(ze="CountryContainer "+(((Pt=f[14])==null?void 0:Pt.indexOf("country"))>=0?"Hidden":""))&&p(Be,"class",ze),C[1]&1&&Ve!==(Ve=f[31]("registerNationality")+"")&&D(wt,Ve),C[0]&4194304){it=lt(f[22]);let A;for(A=0;A<it.length;A+=1){const Le=on(f,it,A);J[A]?J[A].p(Le,C):(J[A]=dn(Le),J[A].c(),J[A].m(Ee,null))}for(;A<J.length;A+=1)J[A].d(1);J.length=it.length}if(C[0]&12582912&&ot(Ee,f[23]),C[0]&16384&&Ye!==(Ye="NationalityContainer "+(((ue=f[14])==null?void 0:ue.indexOf("nationality"))>=0?"Hidden":""))&&p(Ae,"class",Ye),C[1]&1&&Ke!==(Ke=f[31]("registerMobile")+"")&&D(St,Ke),C[0]&33554432){st=lt(f[25]);let A;for(A=0;A<st.length;A+=1){const Le=sn(f,st,A);Y[A]?Y[A].p(Le,C):(Y[A]=mn(Le),Y[A].c(),Y[A].m(ve,null))}for(;A<Y.length;A+=1)Y[A].d(1);Y.length=st.length}C[0]&100663296&&ot(ve,f[26]),C[0]&16777216&&$.value!==f[24]&&ce($,f[24]),f[8]?oe?oe.p(f,C):(oe=pn(f),oe.c(),oe.m(ge,null)):oe&&(oe.d(1),oe=null),C[0]&20736&&tt!==(tt="MobileContainer "+(f[8]&&!f[12]?"InvalidField":"")+(((Rr=f[14])==null?void 0:Rr.indexOf("mobile"))>=0?"Hidden":""))&&p(ge,"class",tt),f[0]==="true"?ae?ae.p(f,C):(ae=gn(f),ae.c(),ae.m(T,Tt)):ae&&(ae.d(1),ae=null),C[1]&1&&rt!==(rt=f[31]("registerOpenAccount")+"")&&D(g,rt),C[0]&268435456&&x!==(x=!f[28])&&(Oe.disabled=x),f[15]?le?le.p(f,C):(le=Cn(f),le.c(),le.m(s,null)):le&&(le.d(1),le=null)},i:Ce,o:Ce,d(f){f&&(k(r),k(n),k(i),k(s)),re&&re.d(f),k(t),ne&&ne.d(),ie&&ie.d(),se&&se.d(),fr(Q,f),fr(J,f),fr(Y,f),oe&&oe.d(),ae&&ae.d(),le&&le.d(),e[69](null),lr=!1,bt(Lr)}}}function vo(e,t,r){let n;ii(e,fo,g=>r(31,n=g));let{userconsentsexist:i="false"}=t,{termsconditions:s="false"}=t,{smsoffers:o="false"}=t,{emailmarketing:l="false"}=t,{endpoint:c=""}=t,{captchakey:a=""}=t,{lang:h=""}=t,{disabledfields:d=""}=t,{defaultoptions:m=""}=t,{mbsource:E}=t,{clientstyling:_=""}=t,{clientstylingurl:v=""}=t,{translationurl:P=""}=t,T,z,M,V,X=!1,me=!1,Se=!1,Me=!1,vt,W,Ct=!1,Fe="",xe="",j="",te="",Te=[],pe="",De=[],he="",ye="",q=[],fe="",Z=!1,We=!1,U,y={mobile:{},userConsents:{}},B={address1:!1,postalCode:!1,city:!1,country:!1,nationality:!1,mobile:!1,termsandconditions:s==="false"};mo({withLocale:"en",translations:{}});const xt=()=>{fetch(P).then(x=>x.json()).then(x=>{Object.keys(x).forEach(G=>{rn(G,x[G])})}).catch(x=>{console.log(x)})};Object.keys(nn).forEach(g=>{rn(g,nn[g])});let Lt=n("registerTermsConditions");const qe=()=>{fetch(`${c}/v1/player/countries`).then(g=>g.json()).then(g=>{fetch(`${c}/v1/player/operatorSupportedCountries`).then(x=>x.status>=300?new Error("Error while fetching the supported countries"):x.json()).then(x=>{r(20,Te=g.countries.filter(G=>x.countries.indexOf(G.Alpha2Code)>=0)),pe||(r(21,pe=Te[0].Alpha2Code),r(30,B.country=!0,B)),r(22,De=g.countries),he||(r(23,he=De.filter(G=>x.countries.indexOf(G.Alpha2Code)>=0)[0].Alpha2Code),r(30,B.nationality=!0,B))})})},Rt=()=>{fetch(`${c}/v1/player/phonecodes`).then(g=>g.json()).then(g=>{r(25,q=g.phoneCodes),fe||r(26,fe=q[0].Prefix)})},de=(g,x)=>{if(!(d.indexOf(g)>=0))switch(g){case"address1":r(17,xe=x),At();break;case"postalCode":r(18,j=x),Pe();break;case"city":r(19,te=x),Qe();break;case"country":r(21,pe=x),r(30,B.country=!0,B);break;case"nationality":r(23,he=x),r(30,B.nationality=!0,B);break;case"mobile":r(26,fe=x.prefix),r(24,ye=x.number),Ge();break;case"userConsents":Object.keys(x).length!==0&&(x.termsandconditions&&x.sms&&r(27,Z=!0),r(30,B.termsandconditions=x.termsandconditions,B),r(29,y.userConsents.termsandconditions=x.termsandconditions,y),r(29,y.userConsents.sms=x.sms,y),r(29,y.userConsents.emailmarketing=x.emailmarketing,y)),He();break}},He=()=>{r(28,We=Object.keys(B).every(g=>d.includes(g)?!0:B[g]!==!1))},Ze=()=>!!(xe&&xe.length<=100),At=()=>{r(29,y.address1=xe,y),r(6,T=!Ze()),r(30,B.address1=!T,B),He()},Be=()=>!!(j&&j.length<=20),Pe=()=>{r(29,y.postalCode=j,y),r(7,z=!Be()),r(30,B.postalCode=!z,B),He()},$e=()=>!!(te&&te.length<=50),Qe=()=>{r(29,y.city=te,y),r(9,V=!$e()),r(30,B.city=!V,B),He()},Ut=()=>!!(ye&&ye.length>=5&&ye.length<=12),Ge=()=>{r(29,y.mobile.number=ye,y),r(8,M=!Ut()),r(30,B.mobile=!M,B),He()},je=g=>{g==="GeneralOffers"?(r(27,Z=!Z),r(29,y.userConsents.sms=Z,y),r(29,y.userConsents.emailmarketing=Z,y)):g==="SmsOffers"?(r(29,y.userConsents.sms=!y.userConsents.sms,y),y.userConsents.sms&&r(27,Z=!0)):g==="EmailOffers"&&(r(29,y.userConsents.emailmarketing=!y.userConsents.emailmarketing,y),y.userConsents.emailmarketing&&r(27,Z=!0)),_e()},_e=()=>{!y.userConsents.sms&&!y.userConsents.emailmarketing&&r(27,Z=!1)},ze=()=>{r(29,y.userConsents.termsandconditions=!y.userConsents.termsandconditions,y),r(30,B.termsandconditions=!B.termsandconditions,B),He()},Ft=()=>new Promise((g,x)=>{grecaptcha.ready(()=>{grecaptcha.execute(a,{action:"submit"}).then(G=>{g(G)})})}),Ae=g=>{g.preventDefault(),r(29,y.nationality=he,y),r(29,y.country=pe,y),r(29,y.mobile.prefix=fe,y);let x={};Ft().then(G=>{x=hr(cr({},y),{token:G}),window.postMessage({type:"RegisterStepThree",registerStepThreeData:x},window.location.href)})},Ne=()=>{r(29,y.nationality=he,y),r(29,y.country=pe,y),r(29,y.mobile.prefix=fe,y),window.postMessage({type:"GoBackStepThree",registerStepThreeData:y},window.location.href)},Ve=g=>{if(g.data)switch(g.data.type){case"StepThreeDataBackup":const x=g.data.userData;for(const G in x)de(G,x[G]);r(28,We=Object.keys(B).every(G=>d.includes(G)?!0:B[G]!==!1));break;case"ShowRegistrationError":r(15,Ct=g.data.showError),r(16,Fe=g.data.error)}},wt=()=>{r(14,vt=d.split(","))},Dt=()=>{W=m.split(","),W.indexOf("consentsTerms")>=0&&r(29,y.userConsents.termsandconditions=!0,y),W.indexOf("consentsOffers")>=0&&(r(27,Z=!0),r(29,y.userConsents.sms=!0,y),r(29,y.userConsents.emailmarketing=!0,y)),W.forEach(g=>{g.includes("phonePrefix")&&(r(26,fe=g.split(":")[1].toString()),r(29,y.mobile.prefix=fe,y))})},Je=()=>{po(h)};hi(()=>(window.addEventListener("message",Ve,!1),()=>{window.removeEventListener("message",Ve)}));function Gt(){xe=this.value,r(17,xe)}const Ee=()=>r(10,X=!0),Ye=()=>r(10,X=!1);function jt(){j=this.value,r(18,j)}const ge=()=>r(11,me=!0),ke=()=>r(11,me=!1);function Ke(){te=this.value,r(19,te)}const St=()=>r(13,Me=!0),zt=()=>r(13,Me=!1);function et(){pe=dr(this),r(21,pe),r(20,Te)}function Vt(){he=dr(this),r(23,he),r(22,De)}function Ie(){fe=dr(this),r(26,fe),r(25,q)}function ve(){ye=this.value,r(24,ye)}const Xt=()=>r(12,Se=!0),$=()=>r(12,Se=!1),Wt=()=>je("GeneralOffers"),tt=()=>je("SmsOffers"),qt=()=>je("EmailOffers"),Tt=()=>ze(),Oe=g=>Ae(g);function rt(g){vr[g?"unshift":"push"](()=>{U=g,r(5,U)})}return e.$$set=g=>{"userconsentsexist"in g&&r(0,i=g.userconsentsexist),"termsconditions"in g&&r(1,s=g.termsconditions),"smsoffers"in g&&r(2,o=g.smsoffers),"emailmarketing"in g&&r(3,l=g.emailmarketing),"endpoint"in g&&r(41,c=g.endpoint),"captchakey"in g&&r(4,a=g.captchakey),"lang"in g&&r(42,h=g.lang),"disabledfields"in g&&r(43,d=g.disabledfields),"defaultoptions"in g&&r(44,m=g.defaultoptions),"mbsource"in g&&r(45,E=g.mbsource),"clientstyling"in g&&r(46,_=g.clientstyling),"clientstylingurl"in g&&r(47,v=g.clientstylingurl),"translationurl"in g&&r(48,P=g.translationurl)},e.$$.update=()=>{e.$$.dirty[1]&1024&&c&&qe(),e.$$.dirty[1]&1024&&c&&Rt(),e.$$.dirty[1]&2048&&h&&Je(),e.$$.dirty[1]&4096&&d&&wt(),e.$$.dirty[1]&8192&&m&&Dt(),e.$$.dirty[0]&32|e.$$.dirty[1]&32768&&_&&U&&go(U,_),e.$$.dirty[0]&32|e.$$.dirty[1]&65536&&v&&U&&bo(U,v),e.$$.dirty[0]&32|e.$$.dirty[1]&16384&&E&&U&&yo(U,`${E}.Style`),e.$$.dirty[1]&131072&&P&&xt(),e.$$.dirty[0]&3&&i&&r(30,B.termsandconditions=s==="false",B)},[i,s,o,l,a,U,T,z,M,V,X,me,Se,Me,vt,Ct,Fe,xe,j,te,Te,pe,De,he,ye,q,fe,Z,We,y,B,n,Lt,At,Pe,Qe,Ge,je,ze,Ae,Ne,c,h,d,m,E,_,v,P,Gt,Ee,Ye,jt,ge,ke,Ke,St,zt,et,Vt,Ie,ve,Xt,$,Wt,tt,qt,Tt,Oe,rt]}class Jn extends xi{constructor(t){super(),vi(this,t,vo,Eo,An,{userconsentsexist:0,termsconditions:1,smsoffers:2,emailmarketing:3,endpoint:41,captchakey:4,lang:42,disabledfields:43,defaultoptions:44,mbsource:45,clientstyling:46,clientstylingurl:47,translationurl:48},_o,[-1,-1,-1,-1])}get userconsentsexist(){return this.$$.ctx[0]}set userconsentsexist(t){this.$$set({userconsentsexist:t}),K()}get termsconditions(){return this.$$.ctx[1]}set termsconditions(t){this.$$set({termsconditions:t}),K()}get smsoffers(){return this.$$.ctx[2]}set smsoffers(t){this.$$set({smsoffers:t}),K()}get emailmarketing(){return this.$$.ctx[3]}set emailmarketing(t){this.$$set({emailmarketing:t}),K()}get endpoint(){return this.$$.ctx[41]}set endpoint(t){this.$$set({endpoint:t}),K()}get captchakey(){return this.$$.ctx[4]}set captchakey(t){this.$$set({captchakey:t}),K()}get lang(){return this.$$.ctx[42]}set lang(t){this.$$set({lang:t}),K()}get disabledfields(){return this.$$.ctx[43]}set disabledfields(t){this.$$set({disabledfields:t}),K()}get defaultoptions(){return this.$$.ctx[44]}set defaultoptions(t){this.$$set({defaultoptions:t}),K()}get mbsource(){return this.$$.ctx[45]}set mbsource(t){this.$$set({mbsource:t}),K()}get clientstyling(){return this.$$.ctx[46]}set clientstyling(t){this.$$set({clientstyling:t}),K()}get clientstylingurl(){return this.$$.ctx[47]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),K()}get translationurl(){return this.$$.ctx[48]}set translationurl(t){this.$$set({translationurl:t}),K()}}Ci(Jn,{userconsentsexist:{},termsconditions:{},smsoffers:{},emailmarketing:{},endpoint:{},captchakey:{},lang:{},disabledfields:{},defaultoptions:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=Jn;
|